From 976b6f0e27e9e42e12808a3488e56c89b62e9904 Mon Sep 17 00:00:00 2001 From: Shahana Farooqui Date: Tue, 24 May 2022 15:52:10 -0400 Subject: [PATCH] Forwarding events pagination Forwarding events pagination --- backend/controllers/cln/channels.js | 12 +++---- frontend/564.b12bb2ed125c558f.js | 1 + frontend/564.d41ab2b8bdd42ac9.js | 1 - frontend/636.b549737f890c9793.js | 1 + frontend/636.f8c5bc0215761948.js | 1 - frontend/index.html | 2 +- frontend/main.1300125d72833537.js | 1 - frontend/main.e9a1704f9917b7a1.js | 1 + ...5c6a024.js => runtime.4044bb587d7fc143.js} | 2 +- server/controllers/cln/channels.ts | 12 +++---- .../failed-transactions.component.ts | 32 ++++++------------ .../forwarding-history.component.ts | 30 +++++------------ .../local-failed-transactions.component.ts | 33 ++++++------------- src/app/cln/store/cln.effects.ts | 8 ++--- src/app/cln/store/cln.reducers.ts | 11 +------ src/app/shared/models/clnModels.ts | 7 ++-- 16 files changed, 48 insertions(+), 107 deletions(-) create mode 100644 frontend/564.b12bb2ed125c558f.js delete mode 100644 frontend/564.d41ab2b8bdd42ac9.js create mode 100644 frontend/636.b549737f890c9793.js delete mode 100644 frontend/636.f8c5bc0215761948.js delete mode 100644 frontend/main.1300125d72833537.js create mode 100644 frontend/main.e9a1704f9917b7a1.js rename frontend/{runtime.dae90b7a05c6a024.js => runtime.4044bb587d7fc143.js} (95%) diff --git a/backend/controllers/cln/channels.js b/backend/controllers/cln/channels.js index 0d452435..4ad42b34 100644 --- a/backend/controllers/cln/channels.js +++ b/backend/controllers/cln/channels.js @@ -147,14 +147,10 @@ export const listForwardsPaginated = (req, res, next) => { if (options.error) { return res.status(options.statusCode).json({ message: options.message, error: options.error }); } - let queryStr = ''; - if (req.query && Object.keys(req.query).length > 0) { - queryStr = req.query.status ? '&status=' + req.query.status : ''; - queryStr = req.query.maxLen ? (queryStr + '&maxLen=' + req.query.maxLen) : ''; - queryStr = req.query.offset ? (queryStr + '&offset=' + req.query.offset) : ''; - queryStr = req.query.reverse ? (queryStr + '&reverse=' + req.query.reverse) : ''; - queryStr = queryStr.replace('&', '?'); - } + const { status, maxLen, offset } = req.query; + let queryStr = '?status=' + (status ? status : 'settled'); + queryStr = queryStr + '&maxLen=' + (maxLen ? maxLen : '10'); + queryStr = queryStr + '&offset=' + (offset ? offset : '0'); options.url = req.session.selectedNode.ln_server_url + '/v1/channel/listForwardsPaginated' + queryStr; logger.log({ selectedNode: req.session.selectedNode, level: 'DEBUG', fileName: 'Channels', msg: 'Paginated Forwarding History url' + options.url }); request.get(options).then((body) => { diff --git a/frontend/564.b12bb2ed125c558f.js b/frontend/564.b12bb2ed125c558f.js new file mode 100644 index 00000000..8e8db972 --- /dev/null +++ b/frontend/564.b12bb2ed125c558f.js @@ -0,0 +1 @@ +(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[564],{9564:(oi,xr,St)=>{"use strict";St.r(xr),St.d(xr,{CLNModule:()=>nf});var Et=St(9808),_t=St(1402),Pn=St(8878),A=St(5e3),Ct=St(7093),T=St(5899);function I(r,v){1&r&&A._UZ(0,"mat-progress-bar",3)}let n=(()=>{class r{constructor(t){this.router=t,this.loading=!1,this.router.events.subscribe(s=>{switch(!0){case s instanceof _t.OD:this.loading=!0;break;case s instanceof _t.m2:case s instanceof _t.gk:case s instanceof _t.Q3:this.loading=!1}})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-root"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["color","primary","mode","indeterminate",4,"ngIf"],["outlet","outlet"],["color","primary","mode","indeterminate"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,I,1,0,"mat-progress-bar",1),A._UZ(2,"router-outlet",null,2),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",s.loading))},directives:[Ct.xw,Ct.yH,Ct.Wh,Et.O5,_t.lC,T.pW],styles:[""],data:{animation:[Pn.g]}}),r})();var c=St(7579),i=St(2722),o=St(1365),l=St(534),h=St(801),a=St(7731),B=St(9828),E=St(5043),u=St(5620),C=St(6642),e=St(62),f=St(9444),g=St(3954),w=St(9224),Q=St(2181),d=St(3322),Y=St(7423),y=St(5245);const p=function(r){return{backgroundColor:r}};function m(r,v){if(1&r&&A._UZ(0,"span",6),2&r){const t=A.oxw();A.Q6J("ngStyle",A.VKq(1,p,"#"+(null==t.information?null:t.information.color)))}}function D(r,v){if(1&r&&(A.TgZ(0,"div"),A.TgZ(1,"h4",1),A._uU(2,"Color"),A.qZA(),A.TgZ(3,"div",2),A._UZ(4,"span",7),A._uU(5),A.ALo(6,"uppercase"),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(4),A.Q6J("ngStyle",A.VKq(4,p,"#"+(null==t.information?null:t.information.color))),A.xp6(1),A.hij(" ",A.lcZ(6,2,null==t.information?null:t.information.color)," ")}}function U(r,v){if(1&r&&(A.TgZ(0,"span",2),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(t)}}let N=(()=>{class r{constructor(t){this.commonService=t,this.chains=[""]}ngOnChanges(){this.information&&this.information.chains&&this.information.chains.length>0&&(this.chains=[""],this.information.chains.forEach(t=>{this.chains.push(this.commonService.titleCase(t.chain)+" "+this.commonService.titleCase(t.network))}))}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},features:[A.TTD],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(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div"),A.TgZ(2,"h4",1),A._uU(3,"Alias"),A.qZA(),A.TgZ(4,"div",2),A._uU(5),A.YNc(6,m,1,3,"span",3),A.qZA(),A.qZA(),A.YNc(7,D,7,6,"div",4),A.TgZ(8,"div"),A.TgZ(9,"h4",1),A._uU(10,"Implementation"),A.qZA(),A.TgZ(11,"div",2),A._uU(12),A.qZA(),A.qZA(),A.TgZ(13,"div"),A.TgZ(14,"h4",1),A._uU(15,"Chain"),A.qZA(),A.YNc(16,U,2,1,"span",5),A.qZA(),A.qZA()),2&t&&(A.xp6(5),A.hij(" ",null==s.information?null:s.information.alias," "),A.xp6(1),A.Q6J("ngIf",!s.showColorFieldSeparately),A.xp6(1),A.Q6J("ngIf",s.showColorFieldSeparately),A.xp6(5),A.Oqu(null!=s.information&&s.information.lnImplementation||null!=s.information&&s.information.version?(null==s.information?null:s.information.lnImplementation)+" "+(null==s.information?null:s.information.version):""),A.xp6(4),A.Q6J("ngForOf",s.chains))},directives:[Ct.xw,Ct.yH,Ct.Wh,Et.O5,Et.sg,Et.PC,d.Zl],pipes:[Et.gd],styles:[""]}),r})();function F(r,v){if(1&r&&(A.TgZ(0,"div",2),A.TgZ(1,"div"),A.TgZ(2,"h4",3),A._uU(3,"Lightning"),A.qZA(),A.TgZ(4,"div",4),A._uU(5),A.ALo(6,"number"),A.qZA(),A._UZ(7,"mat-progress-bar",5),A.qZA(),A.TgZ(8,"div"),A.TgZ(9,"h4",3),A._uU(10,"On-chain"),A.qZA(),A.TgZ(11,"div",4),A._uU(12),A.ALo(13,"number"),A.qZA(),A._UZ(14,"mat-progress-bar",5),A.qZA(),A.TgZ(15,"div"),A.TgZ(16,"h4",3),A._uU(17,"Total"),A.qZA(),A.TgZ(18,"div",4),A._uU(19),A.ALo(20,"number"),A.qZA(),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(5),A.hij("",A.lcZ(6,5,t.balances.lightning)," Sats"),A.xp6(2),A.s9C("value",t.balances.lightning/t.balances.total*100),A.xp6(5),A.hij("",A.lcZ(13,7,t.balances.onchain)," Sats"),A.xp6(2),A.s9C("value",t.balances.onchain/t.balances.total*100),A.xp6(5),A.hij("",A.lcZ(20,9,t.balances.total)," Sats")}}function z(r,v){if(1&r&&(A.TgZ(0,"div",6),A.TgZ(1,"p"),A._uU(2),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let L=(()=>{class r{constructor(){this.balances={onchain:0,lightning:0,total:0}}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-balances-info"]],inputs:{balances:"balances",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["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(t,s){if(1&t&&(A.YNc(0,F,21,11,"div",0),A.YNc(1,z,3,1,"ng-template",null,1,A.W1O)),2&t){const G=A.MAs(2);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",G)}},directives:[Et.O5,Ct.xw,Ct.yH,Ct.Wh,T.pW],pipes:[Et.JJ],styles:[""]}),r})();var W=St(7322),aA=St(7238),AA=St(4834),lA=St(644);const MA=function(){return["../connections/channels/open"]},cA=function(r){return{filter:r}};function gA(r,v){if(1&r&&(A.TgZ(0,"div",19),A.TgZ(1,"a",20),A._uU(2),A.ALo(3,"slice"),A.qZA(),A.TgZ(4,"div",6),A.TgZ(5,"mat-hint",21),A.TgZ(6,"strong",8),A._uU(7,"Local:"),A.qZA(),A._uU(8),A.ALo(9,"number"),A.qZA(),A.TgZ(10,"mat-hint",22),A._UZ(11,"fa-icon",23),A._uU(12),A.ALo(13,"number"),A.qZA(),A.TgZ(14,"mat-hint",24),A.TgZ(15,"strong",8),A._uU(16,"Remote:"),A.qZA(),A._uU(17),A.ALo(18,"number"),A.qZA(),A.qZA(),A._UZ(19,"mat-progress-bar",25),A.qZA()),2&r){const t=v.$implicit,s=A.oxw(3);A.xp6(1),A.s9C("matTooltip",t.alias||t.id),A.s9C("matTooltipDisabled",(t.alias||t.id).length<26),A.Q6J("routerLink",A.DdM(23,MA))("state",A.VKq(24,cA,t.id)),A.xp6(1),A.AsE(" ",A.Dn7(3,11,t.alias||t.id,0,24),"",(t.alias||t.id).length>25?"...":""," "),A.xp6(6),A.hij("",A.xi3(9,15,t.msatoshi_to_us/1e3||0,"1.0-0")," Sats"),A.xp6(3),A.Q6J("icon",s.faBalanceScale),A.xp6(1),A.hij(" (",A.lcZ(13,18,t.balancedness||0),") "),A.xp6(5),A.hij("",A.xi3(18,20,t.msatoshi_to_them/1e3||0,"1.0-0")," Sats"),A.xp6(2),A.s9C("value",t.msatoshi_to_us&&t.msatoshi_to_us>0?+t.msatoshi_to_us/(+t.msatoshi_to_us+ +t.msatoshi_to_them)*100:0)}}function BA(r,v){if(1&r&&(A.TgZ(0,"div",17),A.YNc(1,gA,20,26,"div",18),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngForOf",t.activeChannels)}}function vA(r,v){if(1&r&&(A.TgZ(0,"div",3),A.TgZ(1,"div",4),A.TgZ(2,"span",5),A._uU(3,"Total Capacity"),A.qZA(),A.TgZ(4,"div",6),A.TgZ(5,"mat-hint",7),A.TgZ(6,"strong",8),A._uU(7,"Local:"),A.qZA(),A._uU(8),A.ALo(9,"number"),A.qZA(),A.TgZ(10,"mat-hint",9),A._UZ(11,"fa-icon",10),A._uU(12),A.ALo(13,"number"),A.qZA(),A.TgZ(14,"mat-hint",11),A.TgZ(15,"strong",8),A._uU(16,"Remote:"),A.qZA(),A._uU(17),A.ALo(18,"number"),A.qZA(),A.qZA(),A._UZ(19,"mat-progress-bar",12),A.qZA(),A.TgZ(20,"div",13),A._UZ(21,"mat-divider",14),A.qZA(),A.TgZ(22,"div",15),A.YNc(23,BA,2,1,"div",16),A.qZA(),A.qZA()),2&r){const t=A.oxw(),s=A.MAs(2);A.xp6(8),A.hij("",A.xi3(9,7,(null==t.channelBalances?null:t.channelBalances.localBalance)||0,"1.0-0")," Sats"),A.xp6(3),A.Q6J("icon",t.faBalanceScale),A.xp6(1),A.hij(" (",A.lcZ(13,10,(null==t.channelBalances?null:t.channelBalances.balancedness)||0),") "),A.xp6(5),A.hij("",A.xi3(18,12,(null==t.channelBalances?null:t.channelBalances.remoteBalance)||0,"1.0-0")," Sats"),A.xp6(2),A.s9C("value",null!=t.channelBalances&&t.channelBalances.localBalance&&(null==t.channelBalances?null:t.channelBalances.localBalance)>0?+(null==t.channelBalances?null:t.channelBalances.localBalance)/(+(null==t.channelBalances?null:t.channelBalances.localBalance)+ +(null==t.channelBalances?null:t.channelBalances.remoteBalance))*100:0),A.xp6(4),A.Q6J("ngIf",t.activeChannels&&t.activeChannels.length>0)("ngIfElse",s)}}function FA(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",26),A._uU(1," No channels available. "),A.TgZ(2,"button",27),A.NdJ("click",function(){return A.CHM(t),A.oxw().goToChannels()}),A._uU(3,"Open Channel"),A.qZA(),A.qZA()}}function _(r,v){if(1&r&&(A.TgZ(0,"div",28),A.TgZ(1,"p"),A._uU(2),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let dA=(()=>{class r{constructor(t){this.router=t,this.faBalanceScale=h.DL8,this.faDumbbell=h.FlN,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/cln/connections")}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-capacity-info"]],inputs:{channelBalances:"channelBalances",activeChannels:"activeChannels",sortBy:"sortBy",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","9","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,"routerLink","state","matTooltip","matTooltipDisabled"],["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(t,s){if(1&t&&(A.YNc(0,vA,24,15,"div",0),A.YNc(1,FA,4,0,"ng-template",null,1,A.W1O),A.YNc(3,_,3,1,"ng-template",null,2,A.W1O)),2&t){const G=A.MAs(4);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",G)}},directives:[Et.O5,Ct.xw,Ct.Wh,Ct.yH,W.bx,f.BN,aA.gM,T.pW,AA.d,lA.$V,Et.sg,_t.yS,Y.lW],pipes:[Et.JJ,Et.OU],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}),r})();function uA(r,v){if(1&r&&(A.TgZ(0,"div",2),A.TgZ(1,"div",3),A.TgZ(2,"div"),A.TgZ(3,"h4",4),A._uU(4,"Total"),A.qZA(),A.TgZ(5,"div",5),A._uU(6),A.ALo(7,"number"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(8,"div",3),A.TgZ(9,"div"),A.TgZ(10,"h4",4),A._uU(11,"Transactions"),A.qZA(),A.TgZ(12,"div",5),A._uU(13),A.ALo(14,"number"),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(6),A.hij("",A.lcZ(7,2,(null==t.fees?null:t.fees.feeCollected)/1e3)," Sats"),A.xp6(7),A.Oqu(A.lcZ(14,4,null==t.fees?null:t.fees.totalTxCount))}}function CA(r,v){if(1&r&&(A.TgZ(0,"div",6),A.TgZ(1,"p"),A._uU(2),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let NA=(()=>{class r{constructor(){this.totalFees=[{name:"Total",value:0}]}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-fee-info"]],inputs:{fees:"fees",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["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(t,s){if(1&t&&(A.YNc(0,uA,15,6,"div",0),A.YNc(1,CA,3,1,"ng-template",null,1,A.W1O)),2&t){const G=A.MAs(2);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",G)}},directives:[Et.O5,Ct.xw,Ct.yH,Ct.Wh],pipes:[Et.JJ],styles:[""]}),r})();function bA(r,v){if(1&r&&(A.TgZ(0,"div",2),A.TgZ(1,"div",3),A.TgZ(2,"div"),A.TgZ(3,"h4",4),A._uU(4,"Active"),A.qZA(),A.TgZ(5,"div",5),A._UZ(6,"span",6),A._uU(7),A.ALo(8,"number"),A.qZA(),A.qZA(),A.TgZ(9,"div"),A.TgZ(10,"h4",4),A._uU(11,"Pending"),A.qZA(),A.TgZ(12,"div",5),A._UZ(13,"span",7),A._uU(14),A.ALo(15,"number"),A.qZA(),A.qZA(),A.TgZ(16,"div"),A.TgZ(17,"h4",4),A._uU(18,"Inactive"),A.qZA(),A.TgZ(19,"div",5),A._UZ(20,"span",8),A._uU(21),A.ALo(22,"number"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(23,"div",3),A.TgZ(24,"div"),A.TgZ(25,"h4",4),A._uU(26,"Capacity"),A.qZA(),A.TgZ(27,"div",5),A._uU(28),A.ALo(29,"number"),A.qZA(),A.qZA(),A.TgZ(30,"div"),A.TgZ(31,"h4",4),A._uU(32,"Capacity"),A.qZA(),A.TgZ(33,"div",5),A._uU(34),A.ALo(35,"number"),A.qZA(),A.qZA(),A.TgZ(36,"div"),A.TgZ(37,"h4",4),A._uU(38,"Capacity"),A.qZA(),A.TgZ(39,"div",5),A._uU(40),A.ALo(41,"number"),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(7),A.Oqu(A.lcZ(8,6,(null==t.channelsStatus||null==t.channelsStatus.active?null:t.channelsStatus.active.channels)||0)),A.xp6(7),A.Oqu(A.lcZ(15,8,(null==t.channelsStatus||null==t.channelsStatus.pending?null:t.channelsStatus.pending.channels)||0)),A.xp6(7),A.Oqu(A.lcZ(22,10,(null==t.channelsStatus||null==t.channelsStatus.inactive?null:t.channelsStatus.inactive.channels)||0)),A.xp6(7),A.hij("",A.lcZ(29,12,(null==t.channelsStatus||null==t.channelsStatus.active?null:t.channelsStatus.active.capacity)||0)," Sats"),A.xp6(6),A.hij("",A.lcZ(35,14,(null==t.channelsStatus||null==t.channelsStatus.pending?null:t.channelsStatus.pending.capacity)||0)," Sats"),A.xp6(6),A.hij("",A.lcZ(41,16,(null==t.channelsStatus||null==t.channelsStatus.inactive?null:t.channelsStatus.inactive.capacity)||0)," Sats")}}function XA(r,v){if(1&r&&(A.TgZ(0,"div",9),A.TgZ(1,"p"),A._uU(2),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let q=(()=>{class r{constructor(){this.channelsStatus={active:{},pending:{},inactive:{}}}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-status-info"]],inputs:{channelsStatus:"channelsStatus",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["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(t,s){if(1&t&&(A.YNc(0,bA,42,18,"div",0),A.YNc(1,XA,3,1,"ng-template",null,1,A.W1O)),2&t){const G=A.MAs(2);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",G)}},directives:[Et.O5,Ct.xw,Ct.yH,Ct.Wh],pipes:[Et.JJ],styles:[""]}),r})();function O(r,v){if(1&r&&(A.TgZ(0,"mat-hint",19),A.TgZ(1,"strong",20),A._uU(2,"Capacity: "),A.qZA(),A._uU(3),A.ALo(4,"number"),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(3),A.hij("",A.xi3(4,1,t.msatoshi_to_them/1e3||0,"1.0-0")," Sats")}}function $(r,v){if(1&r&&(A.TgZ(0,"mat-hint",19),A.TgZ(1,"strong",20),A._uU(2,"Capacity: "),A.qZA(),A._uU(3),A.ALo(4,"number"),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(3),A.hij("",A.xi3(4,1,t.msatoshi_to_us/1e3||0,"1.0-0")," Sats")}}function V(r,v){if(1&r&&A._UZ(0,"mat-progress-bar",21),2&r){const t=A.oxw().$implicit,s=A.oxw(3);A.s9C("value",s.totalLiquidity>0?(+t.msatoshi_to_them/1e3||0)/s.totalLiquidity*100:0)}}function hA(r,v){if(1&r&&A._UZ(0,"mat-progress-bar",21),2&r){const t=A.oxw().$implicit,s=A.oxw(3);A.s9C("value",s.totalLiquidity>0?(+t.msatoshi_to_us/1e3||0)/s.totalLiquidity*100:0)}}const mA=function(){return["../connections/channels/open"]},nA=function(r){return{filter:r}};function EA(r,v){if(1&r&&(A.TgZ(0,"div",14),A.TgZ(1,"a",15),A._uU(2),A.ALo(3,"slice"),A.qZA(),A.TgZ(4,"div",16),A.YNc(5,O,5,4,"mat-hint",17),A.YNc(6,$,5,4,"mat-hint",17),A.qZA(),A.YNc(7,V,1,1,"mat-progress-bar",18),A.YNc(8,hA,1,1,"mat-progress-bar",18),A.qZA()),2&r){const t=v.$implicit,s=A.oxw(3);A.xp6(1),A.s9C("matTooltip",t.alias||t.id),A.s9C("matTooltipDisabled",(t.alias||t.id).length<26),A.Q6J("routerLink",A.DdM(14,mA))("state",A.VKq(15,nA,t.id)),A.xp6(1),A.AsE(" ",A.Dn7(3,10,t.alias||t.id,0,24),"",(t.alias||t.id).length>25?"...":""," "),A.xp6(3),A.Q6J("ngIf","In"===s.direction),A.xp6(1),A.Q6J("ngIf","Out"===s.direction),A.xp6(1),A.Q6J("ngIf","In"===s.direction),A.xp6(1),A.Q6J("ngIf","Out"===s.direction)}}function GA(r,v){if(1&r&&(A.TgZ(0,"div",12),A.YNc(1,EA,9,17,"div",13),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngForOf",t.activeChannels)}}const et=function(r,v,t){return{"mb-4":r,"mb-2":v,"mb-1":t}};function ot(r,v){if(1&r&&(A.TgZ(0,"div",3),A.TgZ(1,"div",4),A.TgZ(2,"span",5),A._uU(3,"Total Capacity"),A.qZA(),A.TgZ(4,"mat-hint",6),A._uU(5),A.ALo(6,"number"),A.qZA(),A._UZ(7,"mat-progress-bar",7),A.qZA(),A.TgZ(8,"div",8),A._UZ(9,"mat-divider",9),A.qZA(),A.TgZ(10,"div",10),A.YNc(11,GA,2,1,"div",11),A.qZA(),A.qZA()),2&r){const t=A.oxw(),s=A.MAs(2);A.Q6J("ngClass",A.kEZ(7,et,t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM,t.screenSize===t.screenSizeEnum.MD,t.screenSize===t.screenSizeEnum.LG||t.screenSize===t.screenSizeEnum.XL)),A.xp6(5),A.hij("",A.xi3(6,4,t.totalLiquidity,"1.0-0")," Sats"),A.xp6(6),A.Q6J("ngIf",t.activeChannels&&t.activeChannels.length>0)("ngIfElse",s)}}function TA(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"button",24),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).goToChannels()}),A._uU(1,"Open Channel"),A.qZA()}}function it(r,v){if(1&r&&(A.TgZ(0,"div",22),A._uU(1," No channels available. "),A.YNc(2,TA,2,0,"button",23),A.qZA()),2&r){const t=A.oxw();A.xp6(2),A.Q6J("ngIf","Out"===t.direction)}}function mt(r,v){if(1&r&&(A.TgZ(0,"div",25),A.TgZ(1,"p"),A._uU(2),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let It=(()=>{class r{constructor(t,s){this.router=t,this.commonService=s,this.screenSize="",this.screenSizeEnum=a.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}goToChannels(){this.router.navigateByUrl("/cln/connections")}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(_t.F0),A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",activeChannels:"activeChannels",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",3,"ngClass",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",3,"ngClass"],["fxLayout","column","fxFlex","9","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,"routerLink","state","matTooltip","matTooltipDisabled"],["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 center",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(t,s){if(1&t&&(A.YNc(0,ot,12,11,"div",0),A.YNc(1,it,3,1,"ng-template",null,1,A.W1O),A.YNc(3,mt,3,1,"ng-template",null,2,A.W1O)),2&t){const G=A.MAs(4);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",G)}},directives:[Et.O5,Ct.xw,Ct.Wh,Ct.yH,Et.mk,d.oO,W.bx,T.pW,AA.d,lA.$V,Et.sg,_t.yS,aA.gM,Y.lW],pipes:[Et.JJ,Et.OU],styles:[""]}),r})();var ut=St(3251),JA=St(9300),VA=St(6087),rt=St(4847),yA=St(2075),Mt=St(8966),ft=St(429),OA=St(3075),Yt=St(7531),H=St(3390),k=St(6534),R=St(4107),QA=St(2368),wA=St(508);function PA(r,v){if(1&r&&(A.TgZ(0,"mat-option",27),A._uU(1),A.ALo(2,"titlecase"),A.qZA()),2&r){const t=v.$implicit;A.Q6J("value",t),A.xp6(1),A.Oqu(A.lcZ(2,2,t))}}function rA(r,v){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.invoiceError)}}function ct(r,v){if(1&r&&(A.TgZ(0,"div",28),A._UZ(1,"fa-icon",29),A.YNc(2,rA,2,1,"span",30),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.invoiceError)}}let Ft=(()=>{class r{constructor(t,s,G,DA,ht,Ce){this.dialogRef=t,this.data=s,this.store=G,this.decimalPipe=DA,this.commonService=ht,this.actions=Ce,this.faExclamationTriangle=h.eHv,this.selNode={},this.description="",this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=a.IV,this.timeUnitEnum=a.Qk,this.timeUnits=a.LO,this.selTimeUnit=a.Qk.SECS,this.invoiceError="",this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(B.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(B.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.actions.pipe((0,i.R)(this.unSubs[2]),(0,JA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&"SaveNewInvoice"===t.payload.action&&(t.payload.status===a.Bn.ERROR&&(this.invoiceError=t.payload.message),t.payload.status===a.Bn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(t){this.invoiceError="",this.invoiceValue||(this.invoiceValue=0);let s=this.expiry?this.expiry:3600;this.selTimeUnit!==a.Qk.SECS&&(s=this.commonService.convertTime(this.expiry,this.selTimeUnit,a.Qk.SECS)),this.store.dispatch((0,ft.Rd)({payload:{label:"ulbl"+Math.random().toString(36).slice(2)+Date.now(),amount:1e3*this.invoiceValue,description:this.description,expiry:s,private:this.private}}))}resetData(){this.description="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=a.Qk.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[3])).subscribe({next:t=>{this.invoiceValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,a.Xz.OTHER)+" "+t.unit},error:t=>{this.invoiceValueHint="Conversion Error: "+t}}))}onTimeUnitChange(t){this.expiry&&this.selTimeUnit!==t.value&&(this.expiry=this.commonService.convertTime(this.expiry,this.selTimeUnit,t.value)),this.selTimeUnit=t.value}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(u.yh),A.Y36(Et.JJ),A.Y36(e.v),A.Y36(C.eX))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-create-invoices"]],decls:39,vars:16,consts:[["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","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"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","autoFocus","","placeholder","Description","tabindex","2","name","description",3,"ngModel","ngModelChange"],["fxLayout","row","fxLayoutAlign","space-between start","fxFlex","100"],["fxFlex","40"],["matInput","","placeholder","Amount","type","number","tabindex","3","name","invoiceValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxFlex","30"],["matInput","","name","expiry","placeholder","Expiry","type","number","tabindex","4",3,"ngModel","step","min","ngModelChange"],["fxFlex","26"],["tabindex","5","name","timeUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","50","fxLayoutAlign","start center",1,"mt-2"],["tabindex","6","color","primary","name","private",3,"ngModel","ngModelChange"],["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","tabindex","7","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","8",3,"click"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"]],template:function(t,s){if(1&t){const G=A.EpF();A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-card-header",2),A.TgZ(3,"div",3),A.TgZ(4,"span",4),A._uU(5,"Create Invoice"),A.qZA(),A.qZA(),A.TgZ(6,"button",5),A._uU(7,"X"),A.qZA(),A.qZA(),A.TgZ(8,"mat-card-content",6),A.TgZ(9,"form",7,8),A.TgZ(11,"mat-form-field",9),A.TgZ(12,"input",10),A.NdJ("ngModelChange",function(ht){return s.description=ht}),A.qZA(),A.qZA(),A.TgZ(13,"div",11),A.TgZ(14,"mat-form-field",12),A.TgZ(15,"input",13),A.NdJ("ngModelChange",function(ht){return s.invoiceValue=ht})("keyup",function(){return s.onInvoiceValueChange()}),A.qZA(),A.TgZ(16,"span",14),A._uU(17," Sats "),A.qZA(),A.TgZ(18,"mat-hint"),A._uU(19),A.qZA(),A.qZA(),A.TgZ(20,"mat-form-field",15),A.TgZ(21,"input",16),A.NdJ("ngModelChange",function(ht){return s.expiry=ht}),A.qZA(),A.TgZ(22,"span",14),A._uU(23),A.ALo(24,"titlecase"),A.qZA(),A.qZA(),A.TgZ(25,"mat-form-field",17),A.TgZ(26,"mat-select",18),A.NdJ("selectionChange",function(ht){return s.onTimeUnitChange(ht)}),A.YNc(27,PA,3,4,"mat-option",19),A.qZA(),A.qZA(),A.qZA(),A.TgZ(28,"div",20),A.TgZ(29,"mat-slide-toggle",21),A.NdJ("ngModelChange",function(ht){return s.private=ht}),A._uU(30,"Private Routing Hints"),A.qZA(),A.TgZ(31,"mat-icon",22),A._uU(32,"info_outline"),A.qZA(),A.qZA(),A.YNc(33,ct,3,2,"div",23),A.TgZ(34,"div",24),A.TgZ(35,"button",25),A.NdJ("click",function(){return s.resetData()}),A._uU(36,"Clear Field"),A.qZA(),A.TgZ(37,"button",26),A.NdJ("click",function(){A.CHM(G);const ht=A.MAs(10);return s.onAddInvoice(ht)}),A._uU(38,"Create Invoice"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()}2&t&&(A.xp6(6),A.Q6J("mat-dialog-close",!1),A.xp6(6),A.Q6J("ngModel",s.description),A.xp6(3),A.Q6J("ngModel",s.invoiceValue)("step",100)("min",1),A.xp6(4),A.Oqu(s.invoiceValueHint),A.xp6(2),A.Q6J("ngModel",s.expiry)("step",s.selTimeUnit===s.timeUnitEnum.SECS?300:s.selTimeUnit===s.timeUnitEnum.MINS?10:s.selTimeUnit===s.timeUnitEnum.HOURS?2:1)("min",1),A.xp6(2),A.hij(" ",A.lcZ(24,14,s.selTimeUnit)," "),A.xp6(3),A.Q6J("value",s.selTimeUnit),A.xp6(1),A.Q6J("ngForOf",s.timeUnits),A.xp6(2),A.Q6J("ngModel",s.private),A.xp6(4),A.Q6J("ngIf",""!==s.invoiceError))},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Y.lW,Mt.ZT,w.dn,OA._Y,OA.JL,OA.F,W.KE,Yt.Nt,OA.Fj,H.h,OA.JJ,OA.On,OA.wV,OA.qQ,k.q,W.R9,W.bx,R.gD,Et.sg,QA.Rr,y.Hw,aA.gM,Et.O5,wA.ey,f.BN],pipes:[Et.rS],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();var j=St(5566),kA=St(7861),At=St(3093);function xA(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"form",4,5),A.TgZ(2,"mat-form-field",6),A.TgZ(3,"input",7),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().description=G}),A.qZA(),A.qZA(),A.TgZ(4,"mat-form-field",8),A.TgZ(5,"input",9),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().invoiceValue=G})("keyup",function(){return A.CHM(t),A.oxw().onInvoiceValueChange()}),A.qZA(),A.TgZ(6,"span",10),A._uU(7," Sats "),A.qZA(),A.TgZ(8,"mat-hint"),A._uU(9),A.qZA(),A.qZA(),A.TgZ(10,"div",11),A.TgZ(11,"button",12),A.NdJ("click",function(){return A.CHM(t),A.oxw().resetData()}),A._uU(12,"Clear Field"),A.qZA(),A.TgZ(13,"button",13),A.NdJ("click",function(){A.CHM(t);const G=A.MAs(1);return A.oxw().onAddInvoice(G)}),A._uU(14,"Create Invoice"),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.description),A.xp6(2),A.Q6J("ngModel",t.invoiceValue)("step",100)("min",1),A.xp6(4),A.Oqu(t.invoiceValueHint)}}function ZA(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",14),A.TgZ(1,"button",15),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDeleteExpiredInvoices()}),A._uU(2,"Delete Expired"),A.qZA(),A.TgZ(3,"button",16),A.NdJ("click",function(){return A.CHM(t),A.oxw().openCreateInvoiceModal()}),A._uU(4,"Create Invoice"),A.qZA(),A.qZA()}}function st(r,v){1&r&&A._UZ(0,"mat-progress-bar",46)}function Lt(r,v){1&r&&(A.TgZ(0,"th",47),A._uU(1," Expiry Date "),A.qZA())}const vt=function(r){return{"mr-0":r}};function Rt(r,v){if(1&r&&A._UZ(0,"span",52),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,vt,t.screenSize===t.screenSizeEnum.XS))}}function Kt(r,v){if(1&r&&A._UZ(0,"span",53),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,vt,t.screenSize===t.screenSizeEnum.XS))}}function Le(r,v){if(1&r&&A._UZ(0,"span",54),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,vt,t.screenSize===t.screenSizeEnum.XS))}}function re(r,v){if(1&r&&(A.TgZ(0,"td",48),A.YNc(1,Rt,1,3,"span",49),A.YNc(2,Kt,1,3,"span",50),A.YNc(3,Le,1,3,"span",51),A._uU(4),A.ALo(5,"date"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Q6J("ngIf","paid"===(null==t?null:t.status)),A.xp6(1),A.Q6J("ngIf","unpaid"===(null==t?null:t.status)),A.xp6(1),A.Q6J("ngIf","expired"===(null==t?null:t.status)),A.xp6(1),A.hij(" ",A.xi3(5,4,1e3*(null==t?null:t.expires_at),"dd/MMM/y HH:mm")," ")}}function Ae(r,v){1&r&&(A.TgZ(0,"th",47),A._uU(1," Date Settled "),A.qZA())}function ye(r,v){if(1&r&&(A.TgZ(0,"td",48),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.paid_at),"dd/MMM/y HH:mm")||"-")}}function be(r,v){1&r&&(A.TgZ(0,"th",47),A._uU(1," Type "),A.qZA())}function Re(r,v){if(1&r&&(A.TgZ(0,"td",48),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(null!=t&&t.bolt12?"Bolt12":null!=t&&t.bolt11&&!t.label.includes("keysend-")?"Bolt11":"Keysend")}}function yn(r,v){1&r&&(A.TgZ(0,"th",47),A._uU(1," Description "),A.qZA())}const xn=function(r){return{"max-width":r}};function ne(r,v){if(1&r&&(A.TgZ(0,"td",48),A.TgZ(1,"div",55),A.TgZ(2,"span",56),A._uU(3),A.qZA(),A.qZA(),A.qZA()),2&r){const t=v.$implicit,s=A.oxw(2);A.xp6(1),A.Q6J("ngStyle",A.VKq(2,xn,s.screenSize===s.screenSizeEnum.XS?"10rem":"32rem")),A.xp6(2),A.Oqu(null==t?null:t.description)}}function tn(r,v){1&r&&(A.TgZ(0,"th",57),A._uU(1," Amount (Sats) "),A.qZA())}function Te(r,v){if(1&r&&(A.TgZ(0,"td",48),A.TgZ(1,"span",58),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.hij(" ",A.xi3(3,1,(null==t?null:t.msatoshi)/1e3,(null==t?null:t.msatoshi)<1e3?"1.0-4":"1.0-0"),"")}}function en(r,v){1&r&&(A.TgZ(0,"th",57),A._uU(1," Amount Settled (Sats) "),A.qZA())}function Xe(r,v){if(1&r&&(A.TgZ(0,"td",48),A.TgZ(1,"span",58),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.hij(" ",A.xi3(3,1,(null==t?null:t.msatoshi_received)/1e3,(null==t?null:t.msatoshi_received)<1e3?"1.0-4":"1.0-0"),"")}}function Ln(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"th",59),A.TgZ(1,"div",60),A.TgZ(2,"mat-select",61),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",62),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}const bn=function(r){return{"px-3":r}};function Jt(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",63),A.TgZ(1,"div",64),A.TgZ(2,"mat-select",65),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",62),A.NdJ("click",function(){const DA=A.CHM(t).$implicit;return A.oxw(2).onInvoiceClick(DA)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",62),A.NdJ("click",function(){const DA=A.CHM(t).$implicit;return A.oxw(2).onRefreshInvoice(DA)}),A._uU(7,"Refresh"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,bn,t.screenSize!==t.screenSizeEnum.XS))}}function bt(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No invoice available."),A.qZA())}function Xt(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting invoices..."),A.qZA())}function ae(r,v){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function Dn(r,v){if(1&r&&(A.TgZ(0,"td",66),A.YNc(1,bt,2,0,"p",67),A.YNc(2,Xt,2,0,"p",67),A.YNc(3,ae,2,1,"p",67),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.invoices&&t.invoices.data)||(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.invoices&&t.invoices.data)||(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.invoices&&t.invoices.data)||(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const pn=function(r){return{"display-none":r}};function Yn(r,v){if(1&r&&A._UZ(0,"tr",68),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,pn,(null==t.invoices?null:t.invoices.data)&&(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)>0))}}function jn(r,v){1&r&&A._UZ(0,"tr",69)}function Br(r,v){1&r&&A._UZ(0,"tr",70)}const Tn=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},WA=function(){return["no_invoice"]};function YA(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",17),A.TgZ(1,"div",18),A.TgZ(2,"div",19),A._UZ(3,"fa-icon",20),A.TgZ(4,"span",21),A._uU(5,"Invoices History"),A.qZA(),A.qZA(),A.TgZ(6,"mat-form-field",22),A.TgZ(7,"input",23),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyFilter()})("ngModelChange",function(G){return A.CHM(t),A.oxw().selFilter=G}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(8,"div",24),A.YNc(9,st,1,0,"mat-progress-bar",25),A.TgZ(10,"table",26,27),A.ynx(12,28),A.YNc(13,Lt,2,0,"th",29),A.YNc(14,re,6,7,"td",30),A.BQk(),A.ynx(15,31),A.YNc(16,Ae,2,0,"th",29),A.YNc(17,ye,3,4,"td",30),A.BQk(),A.ynx(18,32),A.YNc(19,be,2,0,"th",29),A.YNc(20,Re,2,1,"td",30),A.BQk(),A.ynx(21,33),A.YNc(22,yn,2,0,"th",29),A.YNc(23,ne,4,4,"td",30),A.BQk(),A.ynx(24,34),A.YNc(25,tn,2,0,"th",35),A.YNc(26,Te,4,4,"td",30),A.BQk(),A.ynx(27,36),A.YNc(28,en,2,0,"th",35),A.YNc(29,Xe,4,4,"td",30),A.BQk(),A.ynx(30,37),A.YNc(31,Ln,6,0,"th",38),A.YNc(32,Jt,8,3,"td",39),A.BQk(),A.ynx(33,40),A.YNc(34,Dn,4,3,"td",41),A.BQk(),A.YNc(35,Yn,1,3,"tr",42),A.YNc(36,jn,1,0,"tr",43),A.YNc(37,Br,1,0,"tr",44),A.qZA(),A.qZA(),A._UZ(38,"mat-paginator",45),A.qZA()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("icon",t.faHistory),A.xp6(4),A.Q6J("ngModel",t.selFilter),A.xp6(2),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.invoices)("ngClass",A.VKq(12,Tn,""!==t.errorMessage)),A.xp6(25),A.Q6J("matFooterRowDef",A.DdM(14,WA)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns),A.xp6(1),A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let tt=(()=>{class r{constructor(t,s,G,DA,ht,Ce,un){this.logger=t,this.store=s,this.decimalPipe=G,this.commonService=DA,this.rtlEffects=ht,this.datePipe=Ce,this.actions=un,this.calledFrom="transactions",this.faHistory=h.qO$,this.selNode={},this.newlyAddedInvoiceMemo="",this.newlyAddedInvoiceValue=0,this.description="",this.invoiceValue=null,this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoiceJSONArr=[],this.information={},this.flgSticky=!1,this.private=!1,this.expiryStep=100,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["expires_at","msatoshi","actions"]):this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["expires_at","description","msatoshi","actions"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["expires_at","type","description","msatoshi","msatoshi_received","actions"]):(this.flgSticky=!0,this.displayedColumns=["expires_at","paid_at","type","description","msatoshi","msatoshi_received","actions"])}ngOnInit(){this.store.select(B.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(B.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(B.gc).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.invoiceJSONArr=t.listInvoices.invoices||[],this.invoiceJSONArr&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&this.loadInvoicesTable(this.invoiceJSONArr),this.logger.info(t)}),this.actions.pipe((0,i.R)(this.unSubs[3]),(0,JA.h)(t=>t.type===a.AB.SET_LOOKUP_CLN||t.type===a.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{t.type===a.AB.SET_LOOKUP_CLN&&this.invoiceJSONArr&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&t.payload&&(this.updateInvoicesData(JSON.parse(JSON.stringify(t.payload))),this.loadInvoicesTable(this.invoiceJSONArr))})}ngAfterViewInit(){this.invoiceJSONArr&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&this.loadInvoicesTable(this.invoiceJSONArr)}openCreateInvoiceModal(){this.store.dispatch((0,kA.qR)({payload:{data:{pageSize:this.pageSize,component:Ft}}}))}onAddInvoice(t){this.invoiceValue||(this.invoiceValue=0);const s=this.expiry?this.expiry:3600;this.newlyAddedInvoiceMemo="ulbl"+Math.random().toString(36).slice(2)+Date.now(),this.newlyAddedInvoiceValue=this.invoiceValue,this.store.dispatch((0,ft.Rd)({payload:{label:this.newlyAddedInvoiceMemo,amount:1e3*this.invoiceValue,description:this.description,expiry:s,private:this.private}})),this.resetData()}onDeleteExpiredInvoices(){this.store.dispatch((0,kA.c1)({payload:{data:{type:"CONFIRM",titleMessage:"Delete Expired Invoices",noBtnText:"Cancel",yesBtnText:"Delete Invoices"}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[4])).subscribe(t=>{t&&this.store.dispatch((0,ft.g6)({payload:null}))})}onInvoiceClick(t){this.store.dispatch((0,kA.qR)({payload:{data:{invoice:{msatoshi:t.msatoshi,label:t.label,expires_at:t.expires_at,paid_at:t.paid_at,bolt11:t.bolt11,payment_hash:t.payment_hash,description:t.description,status:t.status,msatoshi_received:t.msatoshi_received},newlyAdded:!1,component:j.y}}}))}resetData(){this.description="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint=""}applyFilter(){this.invoices.filter=this.selFilter.trim().toLowerCase()}onInvoiceValueChange(){this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[5])).subscribe({next:t=>{this.invoiceValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,a.Xz.OTHER)+" "+t.unit},error:t=>{this.invoiceValueHint="Conversion Error: "+t}}))}onRefreshInvoice(t){this.store.dispatch((0,ft.n7)({payload:t.label}))}updateInvoicesData(t){this.invoiceJSONArr=this.invoiceJSONArr.map(s=>s.label===t.label?t:s)}loadInvoicesTable(t){this.invoices=new yA.by(t?[...t]:[]),this.invoices.sortingDataAccessor=(s,G)=>s[G]&&isNaN(s[G])?s[G].toLocaleLowerCase():s[G]?+s[G]:null,this.invoices.sort=this.sort,this.invoices.filterPredicate=(s,G)=>((s.paid_at?this.datePipe.transform(new Date(1e3*s.paid_at),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(s.expires_at?this.datePipe.transform(new Date(1e3*s.expires_at),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(s.bolt12?"bolt12":s.bolt11?"bolt11":"keysend")+JSON.stringify(s).toLowerCase()).includes(G),this.invoices.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(Et.JJ),A.Y36(e.v),A.Y36(At.V),A.Y36(Et.uU),A.Y36(C.eX))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-lightning-invoices-table"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(VA.NW,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.sort=G.first),A.iGM(G=A.CRH())&&(s.paginator=G.first)}},inputs:{calledFrom:"calledFrom"},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Invoices")}])],decls:4,vars:3,consts:[["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"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","space-between stretch"],["matInput","","placeholder","Description","tabindex","2","name","description",3,"ngModel","ngModelChange"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","name","invoiceValue","type","number","tabindex","3",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["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"],["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","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","expires_at"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","paid_at"],["matColumnDef","type"],["matColumnDef","description"],["matColumnDef","msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi_received"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["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"],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["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(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,xA,15,5,"form",1),A.YNc(2,ZA,5,0,"div",2),A.YNc(3,YA,39,15,"div",3),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf","home"===s.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===s.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===s.calledFrom))},directives:[Ct.xw,Ct.yH,Ct.Wh,Et.O5,OA._Y,OA.JL,OA.F,W.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,OA.wV,OA.qQ,k.q,W.R9,W.bx,Y.lW,f.BN,lA.$V,yA.BZ,rt.YE,Et.mk,d.oO,yA.w1,yA.fO,yA.Dz,yA.mD,yA.Ke,yA.as,yA.nj,VA.NW,T.pW,yA.ge,rt.nU,yA.ev,aA.gM,Et.PC,d.Zl,R.gD,R.$L,wA.ey,yA.yh,yA.Q2,yA.XQ,yA.Gk],pipes:[Et.uU,Et.JJ],styles:[".mat-column-description[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-description[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();var UA=St(5698),RA=St(8104),zA=St(9814),HA=St(7446);const $A=["sendPaymentForm"],LA=["paymentAmt"],at=["offerAmt"],KA=["paymentReq"],dt=["offerReq"];function Nt(r,v){if(1&r&&(A.TgZ(0,"mat-radio-button",22),A._uU(1,"Offer"),A.qZA()),2&r){const t=A.oxw(2);A.s9C("value",t.paymentTypes.OFFER)}}function Ut(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-radio-group",18),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().paymentType=G})("change",function(){return A.CHM(t),A.oxw().onPaymentTypeChange()}),A.TgZ(1,"mat-radio-button",19),A._uU(2,"Invoice"),A.qZA(),A.TgZ(3,"mat-radio-button",20),A._uU(4,"Keysend"),A.qZA(),A.YNc(5,Nt,2,1,"mat-radio-button",21),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("ngModel",t.paymentType),A.xp6(1),A.s9C("value",t.paymentTypes.INVOICE),A.xp6(2),A.s9C("value",t.paymentTypes.KEYSEND),A.xp6(2),A.Q6J("ngIf",t.selNode.enableOffers)}}function kt(r,v){1&r&&A.GkF(0)}function Vt(r,v){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.paymentError)}}function te(r,v){if(1&r&&(A.TgZ(0,"div",23),A._UZ(1,"fa-icon",24),A.YNc(2,Vt,2,1,"span",25),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.paymentError)}}function wt(r,v){if(1&r&&(A.TgZ(0,"mat-hint"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.paymentDecodedHint)}}function Pt(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Payment request is required."),A.qZA())}function jt(r,v){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.paymentDecodedHint)}}function Ht(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Payment amount is required."),A.qZA())}function le(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1),A.TgZ(1,"input",29,30),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw(2).paymentAmount=G})("change",function(G){return A.CHM(t),A.oxw(2).onAmountChange(G)}),A.qZA(),A.TgZ(3,"mat-hint"),A._uU(4,"It is a zero amount invoice, enter amount to be paid."),A.qZA(),A.YNc(5,Ht,2,0,"mat-error",25),A.qZA()}if(2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngModel",t.paymentAmount),A.xp6(4),A.Q6J("ngIf",!t.paymentAmount)}}function Wt(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1),A.TgZ(1,"textarea",26,27),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().onPaymentRequestEntry(G)})("matTextareaAutosize",function(){return!0}),A.qZA(),A.YNc(3,wt,2,1,"mat-hint",25),A.YNc(4,Pt,2,0,"mat-error",25),A.YNc(5,jt,2,1,"mat-error",25),A.qZA(),A.YNc(6,le,6,2,"mat-form-field",28)}if(2&r){const t=A.MAs(2),s=A.oxw();A.xp6(1),A.Q6J("ngModel",s.paymentRequest),A.xp6(2),A.Q6J("ngIf",s.paymentRequest&&""!==s.paymentDecodedHint),A.xp6(1),A.Q6J("ngIf",!s.paymentRequest),A.xp6(1),A.Q6J("ngIf",null==t.errors?null:t.errors.decodeError),A.xp6(1),A.Q6J("ngIf",s.zeroAmtInvoice)}}function Be(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Pubkey is required."),A.qZA())}function ce(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Keysend amount is required."),A.qZA())}function De(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1),A.TgZ(1,"input",31),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().pubkey=G}),A.qZA(),A.YNc(2,Be,2,0,"mat-error",25),A.qZA(),A.TgZ(3,"mat-form-field",1),A.TgZ(4,"input",32,33),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().keysendAmount=G}),A.qZA(),A.YNc(6,ce,2,0,"mat-error",25),A.qZA()}if(2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngModel",t.pubkey),A.xp6(1),A.Q6J("ngIf",!t.pubkey),A.xp6(2),A.Q6J("ngModel",t.keysendAmount),A.xp6(2),A.Q6J("ngIf",!t.keysendAmount)}}function Ge(r,v){if(1&r&&(A.TgZ(0,"mat-hint"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.offerDecodedHint)}}function Ne(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Offer request is required."),A.qZA())}function xe(r,v){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.offerDecodedHint)}}function Se(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Offer amount is required."),A.qZA())}function _e(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1),A.TgZ(1,"input",40,41),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw(2).offerAmount=G})("change",function(G){return A.CHM(t),A.oxw(2).onAmountChange(G)}),A.qZA(),A.TgZ(3,"mat-hint"),A._uU(4,"It is a zero amount offer, enter amount to be paid."),A.qZA(),A.YNc(5,Se,2,0,"mat-error",25),A.qZA()}if(2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngModel",t.offerAmount),A.xp6(4),A.Q6J("ngIf",!t.offerAmount)}}function Fn(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",42),A.TgZ(1,"input",43),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw(2).offerTitle=G}),A.qZA(),A.qZA()}if(2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngModel",t.offerTitle)}}function rn(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1),A.TgZ(1,"textarea",34,35),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().onPaymentRequestEntry(G)})("matTextareaAutosize",function(){return!0}),A.qZA(),A.YNc(3,Ge,2,1,"mat-hint",25),A.YNc(4,Ne,2,0,"mat-error",25),A.YNc(5,xe,2,1,"mat-error",25),A.qZA(),A.YNc(6,_e,6,2,"mat-form-field",28),A.TgZ(7,"div",36),A.TgZ(8,"mat-checkbox",37),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().flgSaveToDB=G}),A._uU(9,"Bookmark Offer"),A.qZA(),A.TgZ(10,"mat-icon",38),A._uU(11,"info_outline"),A.qZA(),A.qZA(),A.YNc(12,Fn,2,1,"mat-form-field",39)}if(2&r){const t=A.MAs(2),s=A.oxw();A.xp6(1),A.Q6J("ngModel",s.offerRequest),A.xp6(2),A.Q6J("ngIf",s.offerRequest&&""!==s.offerDecodedHint),A.xp6(1),A.Q6J("ngIf",!s.offerRequest),A.xp6(1),A.Q6J("ngIf",null==t.errors?null:t.errors.decodeError),A.xp6(1),A.Q6J("ngIf",s.zeroAmtOffer),A.xp6(2),A.Q6J("ngModel",s.flgSaveToDB),A.xp6(4),A.Q6J("ngIf",s.flgSaveToDB||""!==s.offerTitle)}}let Cn=(()=>{class r{constructor(t,s,G,DA,ht,Ce,un,Qe){this.dialogRef=t,this.data=s,this.store=G,this.logger=DA,this.commonService=ht,this.decimalPipe=Ce,this.actions=un,this.dataService=Qe,this.faExclamationTriangle=h.eHv,this.paymentTypes=a.IX,this.paymentType=a.IX.INVOICE,this.selNode={},this.offerDecoded={},this.offerRequest="",this.offerDecodedHint="",this.offerDescription="",this.offerVendor="",this.offerTitle="",this.zeroAmtOffer=!1,this.offerInvoice=null,this.offerAmount=null,this.flgSaveToDB=!1,this.paymentDecoded={},this.paymentRequest="",this.paymentDecodedHint="",this.zeroAmtInvoice=!1,this.paymentAmount=null,this.pubkey="",this.keysendAmount=null,this.selActiveChannel={},this.activeChannels={},this.feeLimit=null,this.selFeeLimitType=a.Vc[0],this.feeLimitTypes=a.Vc,this.paymentError="",this.isCompatibleVersion=!1,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x]}set payReq(t){t&&(this.paymentReq=t)}set offrReq(t){t&&(this.offerReq=t)}ngOnInit(){if(this.data&&this.data.paymentType)switch(this.paymentType=this.data.paymentType,this.paymentType){case a.IX.INVOICE:this.paymentRequest=this.data.invoiceBolt11;break;case a.IX.KEYSEND:this.pubkey=this.data.pubkeyKeysend;break;case a.IX.OFFER:this.onPaymentRequestEntry(this.data.bolt12),this.offerTitle=this.data.offerTitle,this.flgSaveToDB=!1}this.store.select(B.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(B.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.isCompatibleVersion=this.commonService.isVersionCompatible(t.version,"0.9.0")&&this.commonService.isVersionCompatible(t.api_version,"0.4.0")}),this.store.select(B.ZW).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.activeChannels=t.activeChannels,this.logger.info(t)}),this.actions.pipe((0,i.R)(this.unSubs[3]),(0,JA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN||t.type===a.AB.SEND_PAYMENT_STATUS_CLN||t.type===a.AB.SET_OFFER_INVOICE_CLN)).subscribe(t=>{t.type===a.AB.SEND_PAYMENT_STATUS_CLN&&this.dialogRef.close(),t.type===a.AB.SET_OFFER_INVOICE_CLN&&(this.offerInvoice=t.payload,this.sendPayment()),t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&t.payload.status===a.Bn.ERROR&&("SendPayment"===t.payload.action&&(delete this.paymentDecoded.msatoshi,this.paymentError=t.payload.message),"DecodePayment"===t.payload.action&&(this.paymentType===a.IX.INVOICE&&(this.paymentDecodedHint="ERROR: "+t.payload.message,this.paymentReq.control.setErrors({decodeError:!0})),this.paymentType===a.IX.OFFER&&(this.offerDecodedHint="ERROR: "+t.payload.message,this.offerReq.control.setErrors({decodeError:!0}))),"FetchOfferInvoice"===t.payload.action&&this.paymentType===a.IX.OFFER&&(this.paymentError=t.payload.message))})}onSendPayment(){switch(this.paymentType){case a.IX.KEYSEND:if(!this.pubkey||""===this.pubkey.trim()||!this.keysendAmount||this.keysendAmount<=0)return!0;this.keysendPayment();break;case a.IX.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.R)(this.unSubs[4])).subscribe(t=>{"bolt12 offer"===t.type&&t.offer_id?(this.paymentDecodedHint="ERROR: Select Offer option to pay the bolt12 offer invoice.",this.paymentReq.control.setErrors({decodeError:!0})):(this.paymentDecoded=t,this.setPaymentDecodedDetails())}));break;case a.IX.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.R)(this.unSubs[5])).subscribe(t=>{"bolt11 invoice"===t.type&&t.payment_hash?(this.offerDecodedHint="ERROR: Select Invoice option to pay the bolt11 invoice.",this.offerReq.control.setErrors({decodeError:!0})):(this.offerDecoded=t,this.setOfferDecodedDetails())}))}}keysendPayment(){this.store.dispatch((0,ft.oV)({payload:{uiMessage:a.m6.SEND_KEYSEND,paymentType:a.IX.KEYSEND,pubkey:this.pubkey,amount:1e3*this.keysendAmount,fromDialog:!0}}))}sendPayment(){this.paymentError="",this.paymentType===a.IX.INVOICE?this.store.dispatch((0,ft.oV)(this.zeroAmtInvoice?{payload:{uiMessage:a.m6.SEND_PAYMENT,paymentType:a.IX.INVOICE,invoice:this.paymentRequest,amount:1e3*this.paymentAmount,fromDialog:!0}}:{payload:{uiMessage:a.m6.SEND_PAYMENT,paymentType:a.IX.INVOICE,invoice:this.paymentRequest,fromDialog:!0}})):this.paymentType===a.IX.OFFER&&this.store.dispatch(this.offerInvoice?(0,ft.oV)({payload:{uiMessage:a.m6.SEND_PAYMENT,paymentType:a.IX.OFFER,invoice:this.offerInvoice.invoice,saveToDB:this.flgSaveToDB,bolt12:this.offerRequest,amount:1e3*this.offerAmount,zeroAmtOffer:this.zeroAmtOffer,title:this.offerTitle,vendor:this.offerVendor,description:this.offerDescription,fromDialog:!0}}):(0,ft.eM)(this.zeroAmtOffer?{payload:{offer:this.offerRequest,msatoshi:1e3*this.offerAmount}}:{payload:{offer:this.offerRequest}}))}onPaymentRequestEntry(t){this.paymentType===a.IX.INVOICE?(this.paymentRequest=t,this.resetInvoiceDetails()):this.paymentType===a.IX.OFFER&&(this.offerRequest=t,this.resetOfferDetails()),t.length>100&&this.dataService.decodePayment(t,!0).pipe((0,i.R)(this.unSubs[6])).subscribe(s=>{this.paymentType===a.IX.INVOICE?"bolt12 offer"===s.type&&s.offer_id?(this.paymentDecodedHint="ERROR: Select Offer option to pay the bolt12 offer invoice.",this.paymentReq.control.setErrors({decodeError:!0})):(this.paymentDecoded=s,this.setPaymentDecodedDetails()):this.paymentType===a.IX.OFFER&&("bolt11 invoice"===s.type&&s.payment_hash?(this.offerDecodedHint="ERROR: Select Invoice option to pay the bolt11 invoice.",this.offerReq.control.setErrors({decodeError:!0})):(this.offerDecoded=s,this.setOfferDecodedDetails()))})}resetOfferDetails(){this.offerInvoice=null,this.offerAmount=null,this.offerDecodedHint="",this.zeroAmtOffer=!1,this.paymentError="",this.offerReq&&this.offerReq.control.setErrors(null)}resetInvoiceDetails(){this.paymentAmount=null,this.paymentDecodedHint="",this.zeroAmtInvoice=!1,this.paymentError="",this.paymentReq&&this.paymentReq.control.setErrors(null)}onAmountChange(t){this.paymentType===a.IX.INVOICE&&(delete this.paymentDecoded.msatoshi,this.paymentDecoded.msatoshi=+t.target.value),this.paymentType===a.IX.OFFER&&(delete this.offerDecoded.amount,delete this.offerDecoded.amount_msat,this.offerDecoded.amount=1e3*+t.target.value,this.offerDecoded.amount_msat=t.target.value+"msat")}onPaymentTypeChange(){this.paymentError="",this.paymentDecodedHint="",this.offerDecodedHint="",this.offerInvoice=null}setOfferDecodedDetails(){this.offerDecoded.offer_id&&!this.offerDecoded.amount_msat?(this.offerDecoded.amount_msat="0msat",this.offerDecoded.amount=0,this.zeroAmtOffer=!0,this.offerDescription=this.offerDecoded.description,this.offerVendor=this.offerDecoded.vendor?this.offerDecoded.vendor:this.offerDecoded.issuer?this.offerDecoded.issuer:"",this.offerDecodedHint="Zero Amount Offer | Description: "+this.offerDecoded.description):(this.zeroAmtOffer=!1,this.offerDecoded.amount=+(this.offerDecoded.amount||this.offerDecoded.amount_msat.slice(0,-4)),this.offerAmount=this.offerDecoded.amount?this.offerDecoded.amount/1e3:0,this.offerDescription=this.offerDecoded.description,this.offerVendor=this.offerDecoded.vendor?this.offerDecoded.vendor:this.offerDecoded.issuer?this.offerDecoded.issuer:"",this.selNode.fiatConversion?this.commonService.convertCurrency(this.offerAmount,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[7])).subscribe({next:t=>{this.offerDecodedHint="Sending: "+this.decimalPipe.transform(this.offerAmount)+" Sats ("+t.symbol+this.decimalPipe.transform(t.OTHER?t.OTHER:0,a.Xz.OTHER)+") | Description: "+this.offerDecoded.description},error:t=>{this.offerDecodedHint="Sending: "+this.decimalPipe.transform(this.offerAmount)+" Sats | Description: "+this.offerDecoded.description+". Unable to convert currency."}}):this.offerDecodedHint="Sending: "+this.decimalPipe.transform(this.offerAmount)+" Sats | Description: "+this.offerDecoded.description)}setPaymentDecodedDetails(){this.paymentDecoded.created_at&&!this.paymentDecoded.msatoshi?(this.paymentDecoded.msatoshi=0,this.zeroAmtInvoice=!0,this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description):(this.zeroAmtInvoice=!1,this.selNode.fiatConversion?this.commonService.convertCurrency(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[8])).subscribe({next:t=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats ("+t.symbol+this.decimalPipe.transform(t.OTHER?t.OTHER:0,a.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:t=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description)}resetData(){switch(this.paymentType){case a.IX.KEYSEND:this.pubkey="",this.keysendAmount=null;break;case a.IX.INVOICE:this.paymentRequest="",this.paymentDecoded={},this.selActiveChannel=null,this.feeLimit=null,this.selFeeLimitType=a.Vc[0],this.resetInvoiceDetails();break;case a.IX.OFFER:this.offerRequest="",this.offerDecoded={},this.flgSaveToDB=!1,this.resetOfferDetails()}this.paymentError=""}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(u.yh),A.Y36(E.mQ),A.Y36(e.v),A.Y36(Et.JJ),A.Y36(C.eX),A.Y36(RA.D))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-lightning-send-payments"]],viewQuery:function(t,s){if(1&t&&(A.Gf($A,5),A.Gf(LA,5),A.Gf(at,5),A.Gf(KA,5),A.Gf(dt,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.form=G.first),A.iGM(G=A.CRH())&&(s.paymentAmt=G.first),A.iGM(G=A.CRH())&&(s.offerAmt=G.first),A.iGM(G=A.CRH())&&(s.payReq=G.first),A.iGM(G=A.CRH())&&(s.offrReq=G.first)}},decls:25,vars:4,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","12","fxFlex","10","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["class","my-1","color","primary","name","paymentType","fxFlex","100","fxLayoutAlign","start start",3,"ngModel","ngModelChange","change",4,"ngIf"],["fxLayoutAlign","space-between stretch","fxLayout","column",3,"submit","reset"],["sendPaymentForm","ngForm"],[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"],["invoiceBlock",""],["keysendBlock",""],["offerBlock",""],["color","primary","name","paymentType","fxFlex","100","fxLayoutAlign","start start",1,"my-1",3,"ngModel","ngModelChange","change"],["fxFlex","20","tabindex","1",3,"value"],["fxFlex","20","tabindex","2",3,"value"],["fxFlex","20","tabindex","3",3,"value",4,"ngIf"],["fxFlex","20","tabindex","3",3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"],["autoFocus","","matInput","","placeholder","Payment Request","rows","4","name","paymentRequest","tabindex","4","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],["fxFlex","100",4,"ngIf"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","5","required","",3,"ngModel","ngModelChange","change"],["paymentAmt","ngModel"],["autoFocus","","matInput","","placeholder","Pubkey","name","pubkey","tabindex","4","required","",3,"ngModel","ngModelChange"],["matInput","","placeholder","Amount (Sats)","name","keysendAmount","tabindex","5","required","",3,"ngModel","ngModelChange"],["keysendAmt","ngModel"],["autoFocus","","matInput","","placeholder","Offer Request","rows","4","name","offerRequest","tabindex","4","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["offerReq","ngModel"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["fxFlex","none","tabindex","6","color","primary",3,"ngModel","ngModelChange"],["matTooltip","Save offer in database for future payments","matTooltipPosition","below","fxFlex","none",1,"info-icon"],["fxFlex","100","class","mt-1",4,"ngIf"],["matInput","","placeholder","Amount (Sats)","name","amountoffer","tabindex","5","required","",3,"ngModel","ngModelChange","change"],["offerAmt","ngModel"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Title to Save","tabindex","7",3,"ngModel","ngModelChange"]],template:function(t,s){if(1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-card-header",2),A.TgZ(3,"div",3),A.TgZ(4,"span",4),A._uU(5,"Send Payment"),A.qZA(),A.qZA(),A.TgZ(6,"button",5),A._uU(7,"X"),A.qZA(),A.qZA(),A.TgZ(8,"mat-card-content",6),A.YNc(9,Ut,6,4,"mat-radio-group",7),A.TgZ(10,"form",8,9),A.NdJ("submit",function(){return s.onSendPayment()})("reset",function(){return s.resetData()}),A.YNc(12,kt,1,0,"ng-container",10),A.YNc(13,te,3,2,"div",11),A.TgZ(14,"div",12),A.TgZ(15,"button",13),A._uU(16,"Clear Fields"),A.qZA(),A.TgZ(17,"button",14),A._uU(18,"Send Payment"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.YNc(19,Wt,7,5,"ng-template",null,15,A.W1O),A.YNc(21,De,7,4,"ng-template",null,16,A.W1O),A.YNc(23,rn,13,7,"ng-template",null,17,A.W1O)),2&t){const G=A.MAs(20),DA=A.MAs(22),ht=A.MAs(24);A.xp6(6),A.Q6J("mat-dialog-close",!1),A.xp6(3),A.Q6J("ngIf",s.isCompatibleVersion),A.xp6(3),A.Q6J("ngTemplateOutlet",s.paymentType===s.paymentTypes.KEYSEND?DA:s.paymentType===s.paymentTypes.OFFER?ht:G),A.xp6(1),A.Q6J("ngIf",""!==s.paymentError)}},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Y.lW,Mt.ZT,w.dn,Et.O5,OA._Y,OA.JL,OA.F,Et.tP,zA.VQ,OA.JJ,OA.On,zA.U0,f.BN,W.KE,Yt.Nt,OA.Fj,H.h,OA.Q7,W.bx,W.TO,HA.oG,y.Hw,aA.gM],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),r})();var In=St(4947);const an=["sendPaymentForm"];function fn(r,v){if(1&r&&(A.TgZ(0,"mat-hint"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.paymentDecodedHint)}}function cn(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Payment request is required."),A.qZA())}function Xn(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"form",4,5),A.TgZ(2,"mat-form-field",6),A.TgZ(3,"textarea",7,8),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().onPaymentRequestEntry(G)})("matTextareaAutosize",function(){return!0}),A.qZA(),A.YNc(5,fn,2,1,"mat-hint",9),A.YNc(6,cn,2,0,"mat-error",9),A.qZA(),A.TgZ(7,"div",10),A.TgZ(8,"button",11),A.NdJ("click",function(){return A.CHM(t),A.oxw().resetData()}),A._uU(9,"Clear Field"),A.qZA(),A.TgZ(10,"button",12),A.NdJ("click",function(){return A.CHM(t),A.oxw().onSendPayment()}),A._uU(11,"Send Payment"),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.paymentRequest),A.xp6(2),A.Q6J("ngIf",t.paymentRequest&&""!==t.paymentDecodedHint),A.xp6(1),A.Q6J("ngIf",!t.paymentRequest)}}function Fr(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",13),A.TgZ(1,"button",12),A.NdJ("click",function(){return A.CHM(t),A.oxw().openSendPaymentModal()}),A._uU(2,"Send Payment"),A.qZA(),A.qZA()}}function Yr(r,v){1&r&&A._UZ(0,"mat-progress-bar",50)}function nr(r,v){1&r&&(A.TgZ(0,"th",51),A._uU(1,"Created At"),A.qZA())}const hn=function(r){return{"mr-0":r}};function qn(r,v){if(1&r&&A._UZ(0,"span",55),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,hn,t.screenSize===t.screenSizeEnum.XS))}}function IA(r,v){if(1&r&&A._UZ(0,"span",56),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,hn,t.screenSize===t.screenSizeEnum.XS))}}function J(r,v){if(1&r&&(A.TgZ(0,"td",52),A.YNc(1,qn,1,3,"span",53),A.YNc(2,IA,1,3,"span",54),A._uU(3),A.ALo(4,"date"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Q6J("ngIf","complete"===t.status),A.xp6(1),A.Q6J("ngIf","complete"!==t.status),A.xp6(1),A.hij(" ",A.xi3(4,3,1e3*(null==t?null:t.created_at),"dd/MMM/y HH:mm")," ")}}function S(r,v){1&r&&(A.TgZ(0,"th",51),A._uU(1," Type "),A.qZA())}function X(r,v){if(1&r&&(A.TgZ(0,"td",52),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(null!=t&&t.bolt12?"Bolt12":null!=t&&t.bolt11?"Bolt11":"Keysend")}}function Z(r,v){1&r&&(A.TgZ(0,"th",51),A._uU(1,"Payment Hash"),A.qZA())}const fA=function(r){return{"max-width":r}};function pA(r,v){if(1&r&&(A.TgZ(0,"td",52),A.TgZ(1,"span",57),A.TgZ(2,"span",58),A._uU(3),A.qZA(),A.qZA(),A.qZA()),2&r){const t=v.$implicit,s=A.oxw(2);A.xp6(1),A.Q6J("ngStyle",A.VKq(2,fA,s.screenSize===s.screenSizeEnum.XS?"10rem":"30rem")),A.xp6(2),A.Oqu(null==t?null:t.payment_hash)}}function _A(r,v){1&r&&(A.TgZ(0,"th",59),A._uU(1,"Sats Sent"),A.qZA())}function nt(r,v){if(1&r&&(A.TgZ(0,"td",52),A.TgZ(1,"span",60),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.msatoshi_sent)/1e3,(null==t?null:t.msatoshi_sent)<1e3?"1.0-4":"1.0-0"))}}function Bt(r,v){1&r&&(A.TgZ(0,"th",59),A._uU(1,"Sats Received"),A.qZA())}function Qt(r,v){if(1&r&&(A.TgZ(0,"td",52),A.TgZ(1,"span",60),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.msatoshi)/1e3,(null==t?null:t.msatoshi)<1e3?"1.0-4":"1.0-0"))}}function Dt(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"th",61),A.TgZ(1,"div",62),A.TgZ(2,"mat-select",63),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",64),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function xt(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",65),A.TgZ(1,"button",66),A.NdJ("click",function(){const DA=A.CHM(t).$implicit;return A.oxw(2).onPaymentClick(DA)}),A._uU(2,"View Info"),A.qZA(),A.qZA()}}function Tt(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No payment available."),A.qZA())}function Ot(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting payments..."),A.qZA())}function Zt(r,v){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function ue(r,v){if(1&r&&(A.TgZ(0,"td",67),A.YNc(1,Tt,2,0,"p",9),A.YNc(2,Ot,2,0,"p",9),A.YNc(3,Zt,2,1,"p",9),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.payments&&t.payments.data)||(null==t.payments||null==t.payments.data?null:t.payments.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.payments&&t.payments.data)||(null==t.payments||null==t.payments.data?null:t.payments.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.payments&&t.payments.data)||(null==t.payments||null==t.payments.data?null:t.payments.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}function he(r,v){if(1&r&&A._UZ(0,"span",71),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,hn,t.screenSize===t.screenSizeEnum.XS))}}function Ie(r,v){if(1&r&&A._UZ(0,"span",72),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,hn,t.screenSize===t.screenSizeEnum.XS))}}function nn(r,v){if(1&r&&A._UZ(0,"span",71),2&r){const t=A.oxw(5);A.Q6J("ngClass",A.VKq(1,hn,t.screenSize===t.screenSizeEnum.XS))}}function Me(r,v){if(1&r&&A._UZ(0,"span",72),2&r){const t=A.oxw(5);A.Q6J("ngClass",A.VKq(1,hn,t.screenSize===t.screenSizeEnum.XS))}}function je(r,v){if(1&r&&(A.TgZ(0,"span",74),A.YNc(1,nn,1,3,"span",69),A.YNc(2,Me,1,3,"span",70),A._uU(3),A.ALo(4,"date"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Q6J("ngIf","complete"===t.status),A.xp6(1),A.Q6J("ngIf","complete"!==t.status),A.xp6(1),A.hij(" ",A.xi3(4,3,1e3*t.created_at,"dd/MMM/y HH:mm")," ")}}function Qn(r,v){if(1&r&&(A.ynx(0),A.YNc(1,je,5,6,"span",73),A.BQk()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function Ze(r,v){if(1&r&&(A.TgZ(0,"td",52),A.TgZ(1,"span",68),A.YNc(2,he,1,3,"span",69),A.YNc(3,Ie,1,3,"span",70),A._uU(4),A.qZA(),A.YNc(5,Qn,2,1,"ng-container",9),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Q6J("ngIf","complete"===t.status),A.xp6(1),A.Q6J("ngIf","complete"!==t.status),A.xp6(1),A.hij(" Total Attempts: ",null==t?null:t.total_parts," "),A.xp6(1),A.Q6J("ngIf",t.is_expanded)}}function dn(r,v){if(1&r&&(A.TgZ(0,"span",68),A._uU(1),A.qZA()),2&r){const t=A.oxw(2).$implicit;A.xp6(1),A.Oqu(null!=t&&t.bolt12?"Bolt12":null!=t&&t.bolt11?"Bolt11":"Keysend")}}function Zn(r,v){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,dn,2,1,"span",75),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function _n(r,v){if(1&r&&(A.TgZ(0,"td",52),A.TgZ(1,"span",68),A._uU(2),A.qZA(),A.YNc(3,Zn,2,1,"span",9),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(null!=t&&t.bolt12?"Bolt12":null!=t&&t.bolt11?"Bolt11":"Keysend"),A.xp6(1),A.Q6J("ngIf",t.is_expanded)}}function Nn(r,v){if(1&r&&(A.TgZ(0,"span",68),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" Part ID ",t.partid?t.partid:0," ")}}function Rr(r,v){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,Nn,2,1,"span",75),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function Hn(r,v){if(1&r&&(A.TgZ(0,"td",52),A.TgZ(1,"span",76),A.TgZ(2,"span",58),A._uU(3),A.qZA(),A.qZA(),A.YNc(4,Rr,2,1,"span",9),A.qZA()),2&r){const t=v.$implicit,s=A.oxw(2);A.xp6(1),A.Q6J("ngStyle",A.VKq(3,fA,s.screenSize===s.screenSizeEnum.XS?"10rem":"30rem")),A.xp6(2),A.Oqu(null==t?null:t.payment_hash),A.xp6(1),A.Q6J("ngIf",t.is_expanded)}}function rr(r,v){if(1&r&&(A.TgZ(0,"span",77),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,t.msatoshi_sent/1e3,t.msatoshi_sent<1e3?"1.0-4":"1.0-0")," ")}}function Qr(r,v){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,rr,3,4,"span",78),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function $n(r,v){if(1&r&&(A.TgZ(0,"td",52),A.TgZ(1,"span",77),A._uU(2),A.ALo(3,"number"),A.qZA(),A.YNc(4,Qr,2,1,"span",9),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.xi3(3,2,(null==t?null:t.msatoshi_sent)/1e3,(null==t?null:t.msatoshi_sent)<1e3?"1.0-4":"1.0-0")),A.xp6(2),A.Q6J("ngIf",t.is_expanded)}}function ur(r,v){if(1&r&&(A.TgZ(0,"span",77),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,t.msatoshi/1e3,t.msatoshi<1e3?"1.0-4":"1.0-0")," ")}}function zr(r,v){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,ur,3,4,"span",78),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function Kn(r,v){if(1&r&&(A.TgZ(0,"td",52),A.TgZ(1,"span",77),A._uU(2),A.ALo(3,"number"),A.qZA(),A.YNc(4,zr,2,1,"span",9),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.xi3(3,2,(null==t?null:t.msatoshi)/1e3,(null==t?null:t.msatoshi)<1e3?"1.0-4":"1.0-0")),A.xp6(2),A.Q6J("ngIf",t.is_expanded)}}function Lr(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",60),A.TgZ(1,"button",82),A.NdJ("click",function(){const DA=A.CHM(t).$implicit;return A.oxw(4).onPaymentClick(DA)}),A._uU(2),A.qZA(),A.qZA()}if(2&r){const t=v.$implicit;A.xp6(2),A.hij("View ",t.partid?t.partid:0,"")}}function dr(r,v){if(1&r&&(A.TgZ(0,"div"),A.YNc(1,Lr,3,1,"div",81),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function br(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",79),A.TgZ(1,"span",60),A.TgZ(2,"button",80),A.NdJ("click",function(){const DA=A.CHM(t).$implicit;return DA.is_expanded=!DA.is_expanded}),A._uU(3),A.qZA(),A.qZA(),A.YNc(4,dr,2,1,"div",9),A.qZA()}if(2&r){const t=v.$implicit;A.xp6(3),A.Oqu(t.is_expanded?"Hide":"Show"),A.xp6(1),A.Q6J("ngIf",t.is_expanded)}}function Gr(r,v){1&r&&A._UZ(0,"tr",83)}const si=function(r){return{"display-none":r}};function Hr(r,v){if(1&r&&A._UZ(0,"tr",84),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,si,(null==t.payments?null:t.payments.data)&&(null==t.payments||null==t.payments.data?null:t.payments.data.length)>0))}}function ir(r,v){1&r&&A._UZ(0,"tr",85)}function Jr(r,v){1&r&&A._UZ(0,"tr",83)}const Vn=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},Li=function(){return["no_payment"]};function bi(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",14),A.TgZ(1,"div",15),A.TgZ(2,"div",16),A._UZ(3,"fa-icon",17),A.TgZ(4,"span",18),A._uU(5,"Payments History"),A.qZA(),A.qZA(),A.TgZ(6,"mat-form-field",19),A.TgZ(7,"input",20),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyFilter()})("ngModelChange",function(G){return A.CHM(t),A.oxw().selFilter=G}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(8,"div",21),A.TgZ(9,"div",22),A.YNc(10,Yr,1,0,"mat-progress-bar",23),A.TgZ(11,"table",24,25),A.ynx(13,26),A.YNc(14,nr,2,0,"th",27),A.YNc(15,J,5,6,"td",28),A.BQk(),A.ynx(16,29),A.YNc(17,S,2,0,"th",27),A.YNc(18,X,2,1,"td",28),A.BQk(),A.ynx(19,30),A.YNc(20,Z,2,0,"th",27),A.YNc(21,pA,4,4,"td",28),A.BQk(),A.ynx(22,31),A.YNc(23,_A,2,0,"th",32),A.YNc(24,nt,4,4,"td",28),A.BQk(),A.ynx(25,33),A.YNc(26,Bt,2,0,"th",32),A.YNc(27,Qt,4,4,"td",28),A.BQk(),A.ynx(28,34),A.YNc(29,Dt,6,0,"th",35),A.YNc(30,xt,3,0,"td",36),A.BQk(),A.ynx(31,37),A.YNc(32,ue,4,3,"td",38),A.BQk(),A.ynx(33,39),A.YNc(34,Ze,6,4,"td",28),A.BQk(),A.ynx(35,40),A.YNc(36,_n,4,2,"td",28),A.BQk(),A.ynx(37,41),A.YNc(38,Hn,5,5,"td",28),A.BQk(),A.ynx(39,42),A.YNc(40,$n,5,5,"td",28),A.BQk(),A.ynx(41,43),A.YNc(42,Kn,5,5,"td",28),A.BQk(),A.ynx(43,44),A.YNc(44,br,5,2,"td",45),A.BQk(),A.YNc(45,Gr,1,0,"tr",46),A.YNc(46,Hr,1,3,"tr",47),A.YNc(47,ir,1,0,"tr",48),A.YNc(48,Jr,1,0,"tr",46),A.qZA(),A.qZA(),A.qZA(),A._UZ(49,"mat-paginator",49),A.qZA()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("icon",t.faHistory),A.xp6(4),A.Q6J("ngModel",t.selFilter),A.xp6(3),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.payments)("ngClass",A.VKq(15,Vn,""!==t.errorMessage)),A.xp6(34),A.Q6J("matRowDefColumns",t.mppColumns)("matRowDefWhen",t.is_group),A.xp6(1),A.Q6J("matFooterRowDef",A.DdM(17,Li)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)("matRowDefWhen",!t.is_group),A.xp6(1),A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let aa=(()=>{class r{constructor(t,s,G,DA,ht,Ce,un,Qe,An){this.logger=t,this.commonService=s,this.store=G,this.rtlEffects=DA,this.clnEffects=ht,this.decimalPipe=Ce,this.titleCasePipe=un,this.datePipe=Qe,this.dataService=An,this.calledFrom="transactions",this.faHistory=h.qO$,this.newlyAddedPayment="",this.selNode={},this.information={},this.paymentJSONArr=[],this.displayedColumns=[],this.mppColumns=[],this.paymentDecoded={},this.paymentRequest="",this.paymentDecodedHint="",this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["created_at","actions"],this.mppColumns=["groupTotal","groupAction"]):this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["created_at","msatoshi","actions"],this.mppColumns=["groupTotal","groupAmtRecv","groupAction"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["created_at","type","msatoshi_sent","msatoshi","actions"],this.mppColumns=["groupTotal","groupType","groupAmtSent","groupAmtRecv","groupAction"]):(this.flgSticky=!0,this.displayedColumns=["created_at","type","payment_hash","msatoshi_sent","msatoshi","actions"],this.mppColumns=["groupTotal","groupType","groupHash","groupAmtSent","groupAmtRecv","groupAction"])}ngOnInit(){this.store.select(B.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(B.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(B.PP).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.paymentJSONArr=t.payments||[],this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr),this.logger.info(t)})}ngAfterViewInit(){this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr)}is_group(t,s){return s.is_group}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.created_at?this.sendPayment():this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.paymentDecoded=t,this.paymentDecoded.created_at?(this.paymentDecoded.msatoshi||(this.paymentDecoded.msatoshi=0),this.sendPayment()):this.resetData()})}sendPayment(){this.newlyAddedPayment=this.paymentDecoded.payment_hash,this.paymentDecoded.msatoshi&&0!==this.paymentDecoded.msatoshi?(this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.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:a.Gi.DATE_TIME},{key:"num_satoshis",value:this.paymentDecoded.msatoshi/1e3,title:"Amount (Sats)",width:50,type:a.Gi.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:a.Gi.NUMBER},{key:"min_finaltv_expiry",value:this.paymentDecoded.min_final_cltv_expiry,title:"CLTV Expiry",width:50}]]}}})),this.rtlEffects.closeConfirm.pipe((0,UA.q)(1)).subscribe(s=>{s&&(this.store.dispatch((0,ft.oV)({payload:{uiMessage:a.m6.SEND_PAYMENT,paymentType:a.IX.INVOICE,invoice:this.paymentRequest,fromDialog:!1}})),this.resetData())})):(this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.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:a.Gi.DATE_TIME},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:a.Gi.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:a.Gi.NUMBER.toLowerCase(),inputValue:"",width:30}]}}})),this.rtlEffects.closeConfirm.pipe((0,UA.q)(1)).subscribe(G=>{G&&(this.paymentDecoded.msatoshi=G[0].inputValue,this.store.dispatch((0,ft.oV)({payload:{uiMessage:a.m6.SEND_PAYMENT,paymentType:a.IX.INVOICE,invoice:this.paymentRequest,amount:1e3*G[0].inputValue,fromDialog:!1}})),this.resetData())}))}onPaymentRequestEntry(t){this.paymentRequest=t,this.paymentDecodedHint="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,i.R)(this.unSubs[1])).subscribe(s=>{this.paymentDecoded=s,this.paymentDecoded.msatoshi?this.selNode.fiatConversion?this.commonService.convertCurrency(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[3])).subscribe({next:G=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats ("+G.symbol+this.decimalPipe.transform(G.OTHER?G.OTHER:0,a.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:G=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description:this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description})}openSendPaymentModal(){this.store.dispatch((0,kA.qR)({payload:{data:{component:Cn}}}))}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}onPaymentClick(t){const s=[[{key:"payment_preimage",value:t.payment_preimage,title:"Payment Preimage",width:100,type:a.Gi.STRING}],[{key:"id",value:t.id,title:"ID",width:20,type:a.Gi.STRING},{key:"destination",value:t.destination,title:"Destination",width:80,type:a.Gi.STRING}],[{key:"created_at",value:t.created_at,title:"Creation Date",width:50,type:a.Gi.DATE_TIME},{key:"status",value:this.titleCasePipe.transform(t.status),title:"Status",width:50,type:a.Gi.STRING}],[{key:"msatoshi",value:t.msatoshi,title:"Amount (mSats)",width:50,type:a.Gi.NUMBER},{key:"msatoshi_sent",value:t.msatoshi_sent,title:"Amount Sent (mSats)",width:50,type:a.Gi.NUMBER}]];t.bolt11&&""!==t.bolt11&&s.unshift([{key:"bolt11",value:t.bolt11,title:"Bolt 11",width:100,type:a.Gi.STRING}]),t.bolt12&&""!==t.bolt12&&s.unshift([{key:"bolt12",value:t.bolt12,title:"Bolt 12",width:100,type:a.Gi.STRING}]),t.memo&&""!==t.memo&&s.splice(2,0,[{key:"memo",value:t.memo,title:"Memo",width:100,type:a.Gi.STRING}]),t.hasOwnProperty("partid")?s.unshift([{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:80,type:a.Gi.STRING},{key:"partid",value:t.partid,title:"Part ID",width:20,type:a.Gi.STRING}]):s.unshift([{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:a.Gi.STRING}]),this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Payment Information",message:s}}}))}applyFilter(){this.payments.filter=this.selFilter.trim().toLowerCase()}loadPaymentsTable(t){this.payments=new yA.by(t?[...t]:[]),this.payments.data=this.paymentJSONArr,this.payments.sort=this.sort,this.payments.sortingDataAccessor=(s,G)=>s[G]&&isNaN(s[G])?s[G].toLocaleLowerCase():s[G]?+s[G]:null,this.payments.filterPredicate=(s,G)=>((s.created_at?this.datePipe.transform(new Date(1e3*s.created_at),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(s.bolt12?"bolt12":s.bolt11?"bolt11":"keysend")+JSON.stringify(s).toLowerCase()).includes(G),this.payments.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const s=JSON.parse(JSON.stringify(this.payments.data)).reduce((G,DA)=>DA.mpps?G.concat(DA.mpps):(delete DA.is_group,delete DA.is_expanded,delete DA.total_parts,G.concat(DA)),[]);this.commonService.downloadFile(s,"Payments")}}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh),A.Y36(At.V),A.Y36(In.J),A.Y36(Et.JJ),A.Y36(Et.rS),A.Y36(Et.uU),A.Y36(RA.D))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-lightning-payments"]],viewQuery:function(t,s){if(1&t&&(A.Gf(an,5),A.Gf(rt.YE,5),A.Gf(VA.NW,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.form=G.first),A.iGM(G=A.CRH())&&(s.sort=G.first),A.iGM(G=A.CRH())&&(s.paginator=G.first)}},inputs:{calledFrom:"calledFrom"},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Payments")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","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"],["sendPaymentForm","ngForm"],["fxFlex","100"],["matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","1","required","",3,"perfectScrollbar","ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[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"],["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","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","created_at"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","payment_hash"],["matColumnDef","msatoshi_sent"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","groupTotal"],["matColumnDef","groupType"],["matColumnDef","groupHash"],["matColumnDef","groupAmtSent"],["matColumnDef","groupAmtRecv"],["matColumnDef","groupAction"],["mat-cell","","class","px-3",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot green","matTooltip","Completed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Failed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Completed","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Failed","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["fxLayout","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"mpp-row-span"],["class","dot green mt-0","matTooltip","Completed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow mt-0","matTooltip","Incomplete/Failed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Completed","matTooltipPosition","right",1,"dot","green","mt-0",3,"ngClass"],["matTooltip","Incomplete/Failed","matTooltipPosition","right",1,"dot","yellow","mt-0",3,"ngClass"],["fxLayoutAlign","start center","class","mpp-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"mpp-row-span","pl-3"],["fxLayoutAlign","start center","class","mpp-row-span",4,"ngFor","ngForOf"],["fxLayout","row",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"],["mat-cell","",1,"px-3"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-mpp-expand",3,"click"],["fxLayoutAlign","end center",4,"ngFor","ngForOf"],["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(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,Xn,12,3,"form",1),A.YNc(2,Fr,3,0,"div",2),A.YNc(3,bi,50,18,"div",3),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf","home"===s.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===s.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===s.calledFrom))},directives:[Ct.xw,Ct.yH,Ct.Wh,Et.O5,OA._Y,OA.JL,OA.F,W.KE,Yt.Nt,OA.Fj,OA.Q7,lA.$V,OA.JJ,OA.On,Y.lW,W.bx,W.TO,f.BN,yA.BZ,rt.YE,Et.mk,d.oO,yA.w1,yA.fO,yA.Dz,yA.mD,yA.nj,yA.Ke,yA.as,VA.NW,T.pW,yA.ge,rt.nU,yA.ev,aA.gM,Et.PC,d.Zl,R.gD,R.$L,wA.ey,yA.yh,Et.sg,yA.Gk,yA.Q2,yA.XQ],pipes:[Et.uU,Et.JJ],styles:[".mat-column-payment_hash[_ngcontent-%COMP%]{flex:0 0 25%;width:25%}.mat-column-payment_hash[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%], .mat-column-groupAction[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-mpp-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-mpp-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}.mpp-row-span[_ngcontent-%COMP%]{min-height:4.2rem;place-content:center flex-start;align-items:center}.mat-column-groupTotal[_ngcontent-%COMP%]{min-width:17rem}"]}),r})();function oo(r,v){if(1&r&&(A.TgZ(0,"button",26),A.TgZ(1,"mat-icon"),A._uU(2,"more_vert"),A.qZA(),A.qZA()),2&r){A.oxw();const t=A.MAs(11);A.Q6J("matMenuTriggerFor",t)}}function so(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"button",27),A.NdJ("click",function(){const DA=A.CHM(t).index,ht=A.oxw().$implicit;return A.oxw(2).onNavigateTo(ht.links[DA])}),A._uU(1),A.qZA()}if(2&r){const t=v.$implicit;A.xp6(1),A.Oqu(t)}}function lo(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"button",27),A.NdJ("click",function(){return A.CHM(t),A.oxw(3).onsortChannelsBy()}),A._uU(1),A.qZA()}if(2&r){const t=A.oxw(3);A.xp6(1),A.hij("Sort By ","Balance Score"===t.sortField?"Capacity":"Balance Score","")}}function co(r,v){1&r&&A._UZ(0,"mat-progress-bar",28)}function go(r,v){if(1&r&&A._UZ(0,"rtl-cln-node-info",29),2&r){const t=A.oxw(3);A.Q6J("information",t.information)("showColorFieldSeparately",!1)}}function Bo(r,v){if(1&r&&A._UZ(0,"rtl-cln-balances-info",30),2&r){const t=A.oxw(3);A.Q6J("balances",t.balances)("errorMessage",t.errorMessages[2]+" "+t.errorMessages[3])}}function oa(r,v){if(1&r&&A._UZ(0,"rtl-cln-channel-capacity-info",31),2&r){const t=A.oxw(3);A.Q6J("sortBy",t.sortField)("channelBalances",t.channelBalances)("activeChannels",t.activeChannelsCapacity)("errorMessage",t.errorMessages[4]+" "+t.errorMessages[3])}}function uo(r,v){if(1&r&&A._UZ(0,"rtl-cln-fee-info",32),2&r){const t=A.oxw(3);A.Q6J("fees",t.fees)("errorMessage",t.errorMessages[1]+" "+t.errorMessages[4]+" "+t.errorMessages[5])}}function sa(r,v){if(1&r&&A._UZ(0,"rtl-cln-channel-status-info",33),2&r){const t=A.oxw(3);A.Q6J("channelsStatus",t.channelsStatus)("errorMessage",t.errorMessages[0]+" "+t.errorMessages[3]+" "+t.errorMessages[4])}}function la(r,v){1&r&&(A.TgZ(0,"h3"),A._uU(1,"Error! Unable to find information!"),A.qZA())}const ca=function(r){return{"dashboard-card-content":!0,"error-border":r}};function fo(r,v){if(1&r&&(A.TgZ(0,"mat-grid-tile",8),A.TgZ(1,"mat-card",9),A.TgZ(2,"mat-card-header"),A.TgZ(3,"mat-card-title",10),A.TgZ(4,"div"),A._UZ(5,"fa-icon",11),A.TgZ(6,"span"),A._uU(7),A.qZA(),A.qZA(),A.TgZ(8,"div"),A.YNc(9,oo,3,1,"button",12),A.TgZ(10,"mat-menu",13,14),A.YNc(12,so,2,1,"button",15),A.YNc(13,lo,2,1,"button",16),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.TgZ(14,"mat-card-content",17),A.YNc(15,co,1,0,"mat-progress-bar",18),A.TgZ(16,"div",19),A.YNc(17,go,1,2,"rtl-cln-node-info",20),A.YNc(18,Bo,1,2,"rtl-cln-balances-info",21),A.YNc(19,oa,1,4,"rtl-cln-channel-capacity-info",22),A.YNc(20,uo,1,2,"rtl-cln-fee-info",23),A.YNc(21,sa,1,2,"rtl-cln-channel-status-info",24),A.YNc(22,la,2,0,"h3",25),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&r){const t=v.$implicit,s=A.oxw(2);A.Q6J("colspan",t.cols)("rowspan",t.rows),A.xp6(5),A.Q6J("icon",t.icon),A.xp6(2),A.Oqu(t.title),A.xp6(2),A.Q6J("ngIf",t.links[0]),A.xp6(3),A.Q6J("ngForOf",t.goToOptions),A.xp6(1),A.Q6J("ngIf","capacity"===t.id),A.xp6(1),A.s9C("fxFlex","capacity"===t.id?90:70),A.Q6J("ngClass",A.VKq(16,ca,"node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||"balance"===t.id&&(s.apiCallStatusBalance.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR)||"capacity"===t.id&&(s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.ERROR)||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR))),A.xp6(1),A.Q6J("ngIf","node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||"balance"===t.id&&(s.apiCallStatusBalance.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.INITIATED)||"capacity"===t.id&&(s.apiCallStatusChannels.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.INITIATED)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusChannels.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.INITIATED)||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusChannels.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.INITIATED)),A.xp6(1),A.Q6J("ngSwitch",t.id),A.xp6(1),A.Q6J("ngSwitchCase","node"),A.xp6(1),A.Q6J("ngSwitchCase","balance"),A.xp6(1),A.Q6J("ngSwitchCase","capacity"),A.xp6(1),A.Q6J("ngSwitchCase","fee"),A.xp6(1),A.Q6J("ngSwitchCase","status")}}function ho(r,v){if(1&r&&(A.TgZ(0,"div",2),A.TgZ(1,"div",3),A._UZ(2,"fa-icon",4),A.TgZ(3,"span",5),A._uU(4),A.qZA(),A.qZA(),A.TgZ(5,"mat-grid-list",6),A.YNc(6,fo,23,18,"mat-grid-tile",7),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(2),A.Q6J("icon",t.apiCallStatusNodeInfo.status===t.apiCallStatusEnum.ERROR?t.faFrown:t.faSmile),A.xp6(2),A.Oqu(t.apiCallStatusNodeInfo.status===t.apiCallStatusEnum.COMPLETED?"Welcome "+t.information.alias+"! Your node is up and running.":t.apiCallStatusNodeInfo.status===t.apiCallStatusEnum.INITIATED?"Wait! Getting your node information...":"Error! Please check the server connection."),A.xp6(1),A.Q6J("rowHeight",t.operatorCardHeight),A.xp6(1),A.Q6J("ngForOf",t.operatorCards)}}function Eo(r,v){if(1&r&&(A.TgZ(0,"button",26),A.TgZ(1,"mat-icon"),A._uU(2,"more_vert"),A.qZA(),A.qZA()),2&r){A.oxw();const t=A.MAs(9);A.Q6J("matMenuTriggerFor",t)}}function wo(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"button",27),A.NdJ("click",function(){const DA=A.CHM(t).index,ht=A.oxw(2).$implicit;return A.oxw(2).onNavigateTo(ht.links[DA])}),A._uU(1),A.qZA()}if(2&r){const t=v.$implicit;A.xp6(1),A.Oqu(t)}}function Co(r,v){if(1&r&&(A.TgZ(0,"mat-card-header"),A.TgZ(1,"mat-card-title",10),A.TgZ(2,"div"),A._UZ(3,"fa-icon",11),A.TgZ(4,"span"),A._uU(5),A.qZA(),A.qZA(),A.TgZ(6,"div"),A.YNc(7,Eo,3,1,"button",12),A.TgZ(8,"mat-menu",13,42),A.YNc(10,wo,2,1,"button",15),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(3),A.Q6J("icon",t.icon),A.xp6(2),A.Oqu(t.title),A.xp6(2),A.Q6J("ngIf",t.links[0]),A.xp6(3),A.Q6J("ngForOf",t.goToOptions)}}function Qo(r,v){1&r&&A._UZ(0,"mat-progress-bar",28)}function Mo(r,v){if(1&r&&A._UZ(0,"rtl-cln-node-info",43),2&r){const t=A.oxw(3);A.Q6J("information",t.information)}}function po(r,v){if(1&r&&A._UZ(0,"rtl-cln-balances-info",30),2&r){const t=A.oxw(3);A.Q6J("balances",t.balances)("errorMessage",t.errorMessages[2]+" "+t.errorMessages[3])}}function Io(r,v){if(1&r&&A._UZ(0,"rtl-cln-channel-liquidity-info",44),2&r){const t=A.oxw(3);A.Q6J("direction","In")("totalLiquidity",t.totalInboundLiquidity)("activeChannels",t.allInboundChannels)("errorMessage",t.errorMessages[4])}}function ga(r,v){if(1&r&&A._UZ(0,"rtl-cln-channel-liquidity-info",44),2&r){const t=A.oxw(3);A.Q6J("direction","Out")("totalLiquidity",t.totalOutboundLiquidity)("activeChannels",t.allOutboundChannels)("errorMessage",t.errorMessages[4])}}function mo(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"button",27),A.NdJ("click",function(){const DA=A.CHM(t).index,ht=A.oxw(3).$implicit;return A.oxw(2).onNavigateTo(ht.links[DA])}),A._uU(1),A.qZA()}if(2&r){const t=v.$implicit;A.xp6(1),A.Oqu(t)}}function Do(r,v){if(1&r&&(A.TgZ(0,"button",26),A.TgZ(1,"mat-icon"),A._uU(2,"more_vert"),A.qZA(),A.qZA(),A.TgZ(3,"mat-menu",13,53),A.YNc(5,mo,2,1,"button",15),A.qZA()),2&r){const t=A.MAs(4),s=A.oxw(2).$implicit;A.Q6J("matMenuTriggerFor",t),A.xp6(5),A.Q6J("ngForOf",s.goToOptions)}}function vo(r,v){1&r&&(A.TgZ(0,"span",45),A.TgZ(1,"mat-tab-group",46),A.TgZ(2,"mat-tab",47),A._UZ(3,"rtl-cln-lightning-invoices-table",48),A.qZA(),A.TgZ(4,"mat-tab",49),A._UZ(5,"rtl-cln-lightning-payments",50),A.qZA(),A.TgZ(6,"mat-tab",51),A.YNc(7,Do,6,2,"ng-template",52),A.qZA(),A.qZA(),A.qZA()),2&r&&(A.xp6(3),A.Q6J("calledFrom","home"),A.xp6(2),A.Q6J("calledFrom","home"),A.xp6(1),A.Q6J("disabled",!0))}function yo(r,v){1&r&&(A.TgZ(0,"h3"),A._uU(1,"Error! Unable to find information!"),A.qZA())}const Ar=function(r){return{"p-0":r}};function fr(r,v){if(1&r&&(A.TgZ(0,"mat-grid-tile",8),A.TgZ(1,"mat-card",36),A.YNc(2,Co,11,4,"mat-card-header",37),A.TgZ(3,"mat-card-content",38),A.YNc(4,Qo,1,0,"mat-progress-bar",18),A.TgZ(5,"div",19),A.YNc(6,Mo,1,1,"rtl-cln-node-info",39),A.YNc(7,po,1,2,"rtl-cln-balances-info",21),A.YNc(8,Io,1,4,"rtl-cln-channel-liquidity-info",40),A.YNc(9,ga,1,4,"rtl-cln-channel-liquidity-info",40),A.YNc(10,vo,8,3,"span",41),A.YNc(11,yo,2,0,"h3",25),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&r){const t=v.$implicit,s=A.oxw(2);A.Q6J("colspan",t.cols)("rowspan",t.rows),A.xp6(1),A.Q6J("ngClass",A.VKq(13,Ar,"transactions"===t.id)),A.xp6(1),A.Q6J("ngIf","transactions"!==t.id),A.xp6(1),A.s9C("fxFlex","transactions"===t.id?100:"balance"===t.id?70:90),A.Q6J("ngClass",A.VKq(15,ca,"node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||"balance"===t.id&&(s.apiCallStatusBalance.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR)||("inboundLiq"===t.id||"outboundLiq"===t.id)&&s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR)),A.xp6(1),A.Q6J("ngIf","node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||"balance"===t.id&&(s.apiCallStatusBalance.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.INITIATED)||("inboundLiq"===t.id||"outboundLiq"===t.id)&&s.apiCallStatusChannels.status===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngSwitch",t.id),A.xp6(1),A.Q6J("ngSwitchCase","node"),A.xp6(1),A.Q6J("ngSwitchCase","balance"),A.xp6(1),A.Q6J("ngSwitchCase","inboundLiq"),A.xp6(1),A.Q6J("ngSwitchCase","outboundLiq"),A.xp6(1),A.Q6J("ngSwitchCase","transactions")}}function li(r,v){if(1&r&&(A.TgZ(0,"div",34),A._UZ(1,"fa-icon",4),A.TgZ(2,"span",5),A._uU(3),A.qZA(),A.qZA(),A.TgZ(4,"mat-grid-list",35),A.YNc(5,fr,12,17,"mat-grid-tile",7),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faSmile),A.xp6(2),A.hij("Welcome ",t.information.alias,"! Your node is up and running."),A.xp6(1),A.Q6J("rowHeight",t.merchantCardHeight),A.xp6(1),A.Q6J("ngForOf",t.merchantCards)}}let xo=(()=>{class r{constructor(t,s,G,DA,ht){this.logger=t,this.store=s,this.actions=G,this.commonService=DA,this.router=ht,this.faSmile=l.I3,this.faFrown=l.Kf,this.faAngleDoubleDown=h.Sbq,this.faAngleDoubleUp=h.Vfw,this.faChartPie=h.OS1,this.faBolt=h.BDt,this.faServer=h.xf3,this.faNetworkWired=h.kXW,this.userPersonaEnum=a.ol,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.selNode={},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="330px",this.merchantCardHeight="65px",this.sortField="Balance Score",this.errorMessages=["","","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusFees=null,this.apiCallStatusBalance=null,this.apiCallStatusLRBal=null,this.apiCallStatusChannels=null,this.apiCallStatusFHistory=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.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===a.cu.SM||this.screenSize===a.cu.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(B.Hz).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessages[0]="",this.errorMessages[5]="",this.apiCallStatusNodeInfo=t.apisCallStatus[0],this.apiCallStatusFHistory=t.apisCallStatus[1],this.apiCallStatusNodeInfo.status===a.Bn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message),this.apiCallStatusFHistory.status===a.Bn.ERROR&&(this.errorMessages[5]="object"==typeof this.apiCallStatusFHistory.message?JSON.stringify(this.apiCallStatusFHistory.message):this.apiCallStatusFHistory.message),this.selNode=t.nodeSettings,this.information=t.information}),this.store.select(B.JG).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.errorMessages[1]="",this.apiCallStatusFees=t.apiCallStatus,this.apiCallStatusFees.status===a.Bn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message),this.fees=t.fees,this.logger.info(t)}),this.store.select(B.ZW).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.errorMessages[4]="",this.apiCallStatusChannels=t.apiCallStatus,this.apiCallStatusChannels.status===a.Bn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message),this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.activeChannels=t.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(s=>s.msatoshi_to_them>0),"msatoshi_to_them")))||[],this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.activeChannels.filter(s=>s.msatoshi_to_us>0),"msatoshi_to_us")))||[],this.activeChannels.forEach(s=>{this.totalInboundLiquidity=this.totalInboundLiquidity+Math.ceil(s.msatoshi_to_them/1e3),this.totalOutboundLiquidity=this.totalOutboundLiquidity+Math.floor(s.msatoshi_to_us/1e3)}),this.channelsStatus.active.channels=t.activeChannels.length||0,this.channelsStatus.pending.channels=t.pendingChannels.length||0,this.channelsStatus.inactive.channels=t.inactiveChannels.length||0,this.logger.info(t)}),this.store.select(B.Rn).pipe((0,i.R)(this.unSubs[3]),(0,o.M)(this.store.select(B.Wj))).subscribe(([t,s])=>{this.errorMessages[2]="",this.apiCallStatusBalance=t.apiCallStatus,this.apiCallStatusBalance.status===a.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusBalance.message?JSON.stringify(this.apiCallStatusBalance.message):this.apiCallStatusBalance.message),this.errorMessages[3]="",this.apiCallStatusLRBal=s.apiCallStatus,this.apiCallStatusLRBal.status===a.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusLRBal.message?JSON.stringify(this.apiCallStatusLRBal.message):this.apiCallStatusLRBal.message),this.totalBalance=t.balance,this.balances.onchain=t.balance.totalBalance,this.balances.lightning=s.localRemoteBalance.localBalance,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances);const G=s.localRemoteBalance.localBalance?+s.localRemoteBalance.localBalance:0,DA=s.localRemoteBalance.remoteBalance?+s.localRemoteBalance.remoteBalance:0;this.channelBalances={localBalance:G,remoteBalance:DA,balancedness:+(1-Math.abs((G-DA)/(G+DA))).toFixed(3)},this.channelsStatus.active.capacity=s.localRemoteBalance.localBalance||0,this.channelsStatus.pending.capacity=s.localRemoteBalance.pendingBalance||0,this.channelsStatus.inactive.capacity=s.localRemoteBalance.inactiveBalance||0,this.logger.info(t),this.logger.info(s)})}onNavigateTo(t){this.router.navigateByUrl("/cln/"+t)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.activeChannelsCapacity=this.activeChannels.sort((t,s)=>{const G=+t.msatoshi_to_us+ +t.msatoshi_to_them,DA=+s.msatoshi_to_them+ +s.msatoshi_to_them;return G>DA?-1:G{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(C.eX),A.Y36(e.v),A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-home"]],decls:3,vars:2,consts:[["fxLayout","column",4,"ngIf","ngIfElse"],["merchantDashboard",""],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","mb-0"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","10",3,"rowHeight"],[3,"colspan","rowspan",4,"ngFor","ngForOf"],[3,"colspan","rowspan"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card","mt-4"],["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"],["menuOperator","matMenu"],["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-0"],["cols","6",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card","mt-4",3,"ngClass"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",3,"fxFlex","ngClass"],["fxFlex","100",3,"information",4,"ngSwitchCase"],["fxFlex","100",3,"direction","totalLiquidity","activeChannels","errorMessage",4,"ngSwitchCase"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start",4,"ngSwitchCase"],["menuMerchant","matMenu"],["fxFlex","100",3,"information"],["fxFlex","100",3,"direction","totalLiquidity","activeChannels","errorMessage"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","column",1,"w-100","dashboard-tabs-group"],["label","Receive"],[1,"h-100",3,"calledFrom"],["label","Pay"],[3,"calledFrom"],[3,"disabled"],["mat-tab-label",""],["menuTransactions","matMenu"]],template:function(t,s){if(1&t&&(A.YNc(0,ho,7,4,"div",0),A.YNc(1,li,6,4,"ng-template",null,1,A.W1O)),2&t){const G=A.MAs(2);A.Q6J("ngIf",(null==s.selNode?null:s.selNode.userPersona)===s.userPersonaEnum.OPERATOR)("ngIfElse",G)}},directives:[Et.O5,Ct.xw,Ct.Wh,f.BN,g.Il,Et.sg,g.DX,w.a8,Ct.yH,w.dk,w.n5,Q.VK,w.dn,Et.mk,d.oO,Et.RF,Et.n9,Et.ED,Y.lW,Q.p6,y.Hw,Q.OP,T.pW,N,L,dA,NA,q,It,ut.SP,ut.uX,tt,aa,ut.uD],styles:[""]}),r})();var Ba=St(9841),Fo=St(8012),ua=St(8377),Tr=St(7261),ar=St(1125),Mr=St(5615);const Yo=["form"],To=["formSweepAll"],No=["stepper"];function So(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Bitcoin address is required."),A.qZA())}function Uo(r,v){1&r&&(A.TgZ(0,"mat-hint"),A._uU(1,"Amount replaced by UTXO balance"),A.qZA())}function Po(r,v){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.amountError)}}function Ro(r,v){if(1&r&&(A.TgZ(0,"mat-option",38),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.Q6J("value",t),A.xp6(1),A.Oqu(t)}}function zo(r,v){if(1&r&&(A.TgZ(0,"mat-option",38),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function Lo(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function bo(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",39),A.TgZ(1,"input",40,41),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw(2).customFeeRate=G}),A.qZA(),A.YNc(3,Lo,2,0,"mat-error",14),A.qZA()}if(2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngModel",t.customFeeRate)("step",.1)("min",0)("required","customperkb"===t.selFeeRate&&!t.flgMinConf),A.xp6(2),A.Q6J("ngIf","customperkb"===t.selFeeRate&&!t.flgMinConf&&!t.customFeeRate)}}function Go(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function Ho(r,v){if(1&r&&(A.TgZ(0,"mat-option",38),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=v.$implicit;A.Q6J("value",t),A.xp6(1),A.hij("",A.lcZ(2,2,t.value)," Sats")}}function fa(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",23),A.TgZ(1,"mat-expansion-panel",42),A.NdJ("closed",function(){return A.CHM(t),A.oxw(2).onAdvancedPanelToggle(!0)})("opened",function(){return A.CHM(t),A.oxw(2).onAdvancedPanelToggle(!1)}),A.TgZ(2,"mat-expansion-panel-header"),A.TgZ(3,"mat-panel-title"),A.TgZ(4,"span"),A._uU(5),A.qZA(),A.qZA(),A.qZA(),A.TgZ(6,"div",22),A.TgZ(7,"div",43),A.TgZ(8,"mat-form-field",44),A.TgZ(9,"mat-select",45),A.NdJ("selectionChange",function(G){return A.CHM(t),A.oxw(2).onUTXOSelectionChange(G)})("valueChange",function(G){return A.CHM(t),A.oxw(2).selUTXOs=G}),A.TgZ(10,"mat-select-trigger"),A._uU(11),A.ALo(12,"number"),A.qZA(),A.YNc(13,Ho,3,4,"mat-option",21),A.qZA(),A.qZA(),A.TgZ(14,"div",46),A.TgZ(15,"mat-slide-toggle",47),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw(2).flgUseAllBalance=G})("change",function(){return A.CHM(t),A.oxw(2).onUTXOAllBalanceChange()}),A._uU(16," Use selected UTXOs balance "),A.qZA(),A.TgZ(17,"mat-icon",48),A._uU(18,"info_outline"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=A.oxw(2);A.xp6(5),A.Oqu(t.advancedTitle),A.xp6(4),A.Q6J("value",t.selUTXOs),A.xp6(2),A.AsE("",A.lcZ(12,7,t.totalSelectedUTXOAmount)," Sats (",t.selUTXOs.length>1?t.selUTXOs.length+" UTXOs":"1 UTXO",")"),A.xp6(2),A.Q6J("ngForOf",t.utxos),A.xp6(2),A.Q6J("ngModel",t.flgUseAllBalance)("disabled",t.selUTXOs.length<1)}}function Jo(r,v){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.sendFundError)}}function Oo(r,v){if(1&r&&(A.TgZ(0,"div",49),A._UZ(1,"fa-icon",50),A.YNc(2,Jo,2,1,"span",14),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.sendFundError)}}const ha=function(r,v){return{"mr-6":r,"mr-2":v}};function ko(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"form",9,10),A.NdJ("submit",function(){return A.CHM(t),A.oxw().onSendFunds()})("reset",function(){return A.CHM(t),A.oxw().resetData()}),A.TgZ(2,"mat-form-field",11),A.TgZ(3,"input",12,13),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().transaction.address=G}),A.qZA(),A.YNc(5,So,2,0,"mat-error",14),A.qZA(),A.TgZ(6,"mat-form-field",15),A.TgZ(7,"input",16,17),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().transaction.satoshis=G}),A.qZA(),A.YNc(9,Uo,2,0,"mat-hint",14),A.TgZ(10,"span",18),A._uU(11),A.qZA(),A.YNc(12,Po,2,1,"mat-error",14),A.qZA(),A.TgZ(13,"mat-form-field",19),A.TgZ(14,"mat-select",20),A.NdJ("selectionChange",function(G){return A.CHM(t),A.oxw().onAmountUnitChange(G)}),A.YNc(15,Ro,2,2,"mat-option",21),A.qZA(),A.qZA(),A.TgZ(16,"div",22),A.TgZ(17,"div",23),A.TgZ(18,"div",24),A.TgZ(19,"mat-form-field",25),A.TgZ(20,"mat-select",26),A.NdJ("valueChange",function(G){return A.CHM(t),A.oxw().selFeeRate=G})("selectionChange",function(){return A.CHM(t),A.oxw().customFeeRate=null}),A.YNc(21,zo,2,2,"mat-option",21),A.qZA(),A.qZA(),A.YNc(22,bo,4,5,"mat-form-field",27),A.qZA(),A.TgZ(23,"div",28),A.TgZ(24,"mat-checkbox",29),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().flgMinConf=G})("change",function(){A.CHM(t);const G=A.oxw();return G.flgMinConf?G.selFeeRate=null:G.minConfValue=null}),A.qZA(),A.TgZ(25,"mat-form-field",30),A.TgZ(26,"input",31,32),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().minConfValue=G}),A.qZA(),A.YNc(28,Go,2,0,"mat-error",14),A.qZA(),A.qZA(),A.qZA(),A.YNc(29,fa,19,9,"div",33),A._UZ(30,"div",22),A.YNc(31,Oo,3,2,"div",34),A.TgZ(32,"div",35),A.TgZ(33,"button",36),A._uU(34,"Clear Fields"),A.qZA(),A.TgZ(35,"button",37),A._uU(36,"Send Funds"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.transaction.address),A.xp6(2),A.Q6J("ngIf",!t.transaction.address),A.xp6(2),A.Q6J("ngModel",t.transaction.satoshis)("type",t.flgUseAllBalance?"text":"number")("step",100)("min",0)("disabled",t.flgUseAllBalance),A.xp6(2),A.Q6J("ngIf",t.flgUseAllBalance),A.xp6(2),A.hij(" ",t.selAmountUnit," "),A.xp6(1),A.Q6J("ngIf",!t.transaction.satoshis),A.xp6(2),A.Q6J("value",t.selAmountUnit)("disabled",t.flgUseAllBalance),A.xp6(1),A.Q6J("ngForOf",t.amountUnits),A.xp6(4),A.Q6J("fxFlex","customperkb"!==t.selFeeRate||t.flgMinConf?"100":"48"),A.xp6(1),A.Q6J("value",t.selFeeRate)("disabled",t.flgMinConf),A.xp6(1),A.Q6J("ngForOf",t.feeRateTypes),A.xp6(1),A.Q6J("ngIf","customperkb"===t.selFeeRate&&!t.flgMinConf),A.xp6(2),A.Q6J("ngModel",t.flgMinConf)("ngClass",A.WLB(28,ha,t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM,t.screenSize===t.screenSizeEnum.MD||t.screenSize===t.screenSizeEnum.LG||t.screenSize===t.screenSizeEnum.XL)),A.xp6(2),A.Q6J("ngModel",t.minConfValue)("step",1)("min",0)("required",t.flgMinConf)("disabled",!t.flgMinConf),A.xp6(2),A.Q6J("ngIf",t.flgMinConf&&!t.minConfValue),A.xp6(1),A.Q6J("ngIf",t.isCompatibleVersion),A.xp6(2),A.Q6J("ngIf",""!==t.sendFundError)}}function jo(r,v){if(1&r&&A._uU(0),2&r){const t=A.oxw(3);A.Oqu(t.passwordFormLabel)}}function Zo(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Password is required."),A.qZA())}function Ko(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-step",55),A.TgZ(1,"form",73),A.YNc(2,jo,1,1,"ng-template",67),A.TgZ(3,"div",0),A.TgZ(4,"mat-form-field",1),A._UZ(5,"input",74),A.YNc(6,Zo,2,0,"mat-error",14),A.qZA(),A.qZA(),A.TgZ(7,"div",75),A.TgZ(8,"button",76),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onAuthenticate()}),A._uU(9,"Confirm"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=A.oxw(2);A.Q6J("stepControl",t.passwordFormGroup)("editable",t.flgEditable),A.xp6(1),A.Q6J("formGroup",t.passwordFormGroup),A.xp6(5),A.Q6J("ngIf",null==t.passwordFormGroup.controls.password.errors?null:t.passwordFormGroup.controls.password.errors.required)}}function Vo(r,v){if(1&r&&A._uU(0),2&r){const t=A.oxw(2);A.Oqu(t.sendFundFormLabel)}}function Wo(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Bitcoin address is required."),A.qZA())}function Xo(r,v){if(1&r&&(A.TgZ(0,"mat-option",38),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function qo(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function _o(r,v){if(1&r&&(A.TgZ(0,"mat-form-field",39),A._UZ(1,"input",77),A.YNc(2,qo,2,0,"mat-error",14),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("step",.1)("min",0),A.xp6(1),A.Q6J("ngIf","customperkb"===t.sendFundFormGroup.controls.selFeeRate.value&&!t.sendFundFormGroup.controls.flgMinConf.value&&!t.sendFundFormGroup.controls.customFeeRate.value)}}function oe(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function $o(r,v){if(1&r&&A._uU(0),2&r){const t=A.oxw(2);A.Oqu(t.confirmFormLabel)}}function ci(r,v){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.sendFundError)}}function gi(r,v){if(1&r&&(A.TgZ(0,"div",49),A._UZ(1,"fa-icon",50),A.YNc(2,ci,2,1,"span",14),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.sendFundError)}}function Nr(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",51),A.TgZ(1,"mat-vertical-stepper",52,53),A.NdJ("selectionChange",function(G){return A.CHM(t),A.oxw().stepSelectionChanged(G)}),A.YNc(3,Ko,10,4,"mat-step",54),A.TgZ(4,"mat-step",55),A.TgZ(5,"form",56),A.YNc(6,Vo,1,1,"ng-template",57),A.TgZ(7,"div",22),A.TgZ(8,"mat-form-field",1),A._UZ(9,"input",58),A.YNc(10,Wo,2,0,"mat-error",14),A.qZA(),A.TgZ(11,"div",59),A.TgZ(12,"div",24),A.TgZ(13,"mat-form-field",25),A.TgZ(14,"mat-select",60),A.YNc(15,Xo,2,2,"mat-option",21),A.qZA(),A.qZA(),A.YNc(16,_o,3,3,"mat-form-field",27),A.qZA(),A.TgZ(17,"div",28),A._UZ(18,"mat-checkbox",61),A.TgZ(19,"mat-form-field",30),A._UZ(20,"input",62),A.YNc(21,oe,2,0,"mat-error",14),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.TgZ(22,"div",63),A.TgZ(23,"button",64),A._uU(24,"Next"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.TgZ(25,"mat-step",65),A.TgZ(26,"form",66),A.YNc(27,$o,1,1,"ng-template",67),A.TgZ(28,"div",51),A.TgZ(29,"div",68),A._UZ(30,"fa-icon",69),A.TgZ(31,"span"),A._uU(32,"You are about to sweep all funds from RTL. Are you sure?"),A.qZA(),A.qZA(),A.YNc(33,gi,3,2,"div",34),A.TgZ(34,"div",63),A.TgZ(35,"button",70),A.NdJ("click",function(){return A.CHM(t),A.oxw().onSendFunds()}),A._uU(36,"Sweep All Funds"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.TgZ(37,"div",71),A.TgZ(38,"button",72),A._uU(39),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=A.oxw();A.xp6(1),A.Q6J("linear",!0),A.xp6(2),A.Q6J("ngIf",!t.appConfig.sso.rtlSSO),A.xp6(1),A.Q6J("stepControl",t.sendFundFormGroup)("editable",t.flgEditable),A.xp6(1),A.Q6J("formGroup",t.sendFundFormGroup),A.xp6(5),A.Q6J("ngIf",null==t.sendFundFormGroup.controls.transactionAddress.errors?null:t.sendFundFormGroup.controls.transactionAddress.errors.required),A.xp6(3),A.Q6J("fxFlex","customperkb"!==t.sendFundFormGroup.controls.selFeeRate.value||t.sendFundFormGroup.controls.flgMinConf.value?"100":"48"),A.xp6(2),A.Q6J("ngForOf",t.feeRateTypes),A.xp6(1),A.Q6J("ngIf","customperkb"===t.sendFundFormGroup.controls.selFeeRate.value&&!t.sendFundFormGroup.controls.flgMinConf.value),A.xp6(2),A.Q6J("ngClass",A.WLB(20,ha,t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM,t.screenSize===t.screenSizeEnum.MD||t.screenSize===t.screenSizeEnum.LG||t.screenSize===t.screenSizeEnum.XL)),A.xp6(2),A.Q6J("step",1)("min",0)("required",t.sendFundFormGroup.controls.flgMinConf.value),A.xp6(1),A.Q6J("ngIf",t.sendFundFormGroup.controls.flgMinConf.value&&!t.sendFundFormGroup.controls.minConfValue.value),A.xp6(4),A.Q6J("stepControl",t.confirmFormGroup),A.xp6(1),A.Q6J("formGroup",t.confirmFormGroup),A.xp6(4),A.Q6J("icon",t.faExclamationTriangle),A.xp6(3),A.Q6J("ngIf",""!==t.sendFundError),A.xp6(5),A.Q6J("mat-dialog-close",!1),A.xp6(1),A.Oqu(t.flgValidated?"Close":"Cancel")}}let or=(()=>{class r{constructor(t,s,G,DA,ht,Ce,un,Qe,An,ia){this.dialogRef=t,this.data=s,this.logger=G,this.store=DA,this.commonService=ht,this.decimalPipe=Ce,this.actions=un,this.formBuilder=Qe,this.rtlEffects=An,this.snackBar=ia,this.faExclamationTriangle=h.eHv,this.sweepAll=!1,this.selNode={},this.addressTypes=[],this.utxos=[],this.selUTXOs=[],this.flgUseAllBalance=!1,this.totalSelectedUTXOAmount=null,this.selectedAddress=a._t[1],this.blockchainBalance={},this.information={},this.isCompatibleVersion=!1,this.newAddress="",this.transaction={},this.feeRateTypes=a.vn,this.selFeeRate="",this.customFeeRate=null,this.flgMinConf=!1,this.minConfValue=null,this.sendFundError="",this.fiatConversion=!1,this.amountUnits=a.uA,this.selAmountUnit=a.uA[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=a.Xz,this.advancedTitle="Advanced Options",this.flgValidated=!1,this.flgEditable=!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=a.cu,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.sweepAll=this.data.sweepAll,this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[OA.kI.required]],password:["",[OA.kI.required]]}),this.sendFundFormGroup=this.formBuilder.group({transactionAddress:["",OA.kI.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.R)(this.unSubs[0])).subscribe(t=>{t?(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([OA.kI.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.R)(this.unSubs[1])).subscribe(t=>{this.sendFundFormGroup.controls.customFeeRate.setValue(null),this.sendFundFormGroup.controls.customFeeRate.reset(),this.sendFundFormGroup.controls.customFeeRate.setValidators("customperkb"!==t||this.sendFundFormGroup.controls.flgMinConf.value?null:[OA.kI.required])}),(0,Ba.a)([this.store.select(ua.dT),this.store.select(ua.Yj)]).pipe((0,i.R)(this.unSubs[1])).subscribe(([t,s])=>{this.fiatConversion=t.settings.fiatConversion,this.amountUnits=t.settings.currencyUnits,this.appConfig=s}),this.store.select(B.ey).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.information=t,this.isCompatibleVersion=this.commonService.isVersionCompatible(this.information.version,"0.9.0")&&this.commonService.isVersionCompatible(this.information.api_version,"0.4.0")}),this.store.select(B.T4).pipe((0,i.R)(this.unSubs[3])).subscribe(t=>{this.utxos=this.commonService.sortAscByKey(t.utxos.filter(s=>"confirmed"===s.status),"value"),this.logger.info(t)}),this.actions.pipe((0,i.R)(this.unSubs[4]),(0,JA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN||t.type===a.AB.SET_CHANNEL_TRANSACTION_RES_CLN)).subscribe(t=>{t.type===a.AB.SET_CHANNEL_TRANSACTION_RES_CLN&&(this.store.dispatch((0,kA.jW)({payload:"Fund Sent Successfully!"})),this.dialogRef.close()),t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&t.payload.status===a.Bn.ERROR&&"SetChannelTransaction"===t.payload.action&&(this.sendFundError=t.payload.message)})}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,kA.QO)({payload:Fo(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,UA.q)(1)).subscribe(t=>{"ERROR"!==t?(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.satoshis="all"),this.selUTXOs.length&&this.selUTXOs.length>0&&(this.transaction.utxos=[],this.selUTXOs.forEach(t=>this.transaction.utxos.push(t.txid+":"+t.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.satoshis="all",this.transaction.address=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,ft.Wi)({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.transaction.address||""===this.transaction.address||!this.transaction.satoshis||+this.transaction.satoshis<=0||this.flgMinConf&&(!this.transaction.minconf||this.transaction.minconf<=0)||"customperkb"===this.selFeeRate&&!this.flgMinConf&&!this.customFeeRate)return!0;this.transaction.satoshis&&"all"!==this.transaction.satoshis&&this.selAmountUnit!==a.NT.SATS?this.commonService.convertCurrency(+this.transaction.satoshis,this.selAmountUnit===this.amountUnits[2]?a.NT.OTHER:this.selAmountUnit,a.NT.SATS,this.amountUnits[2],this.fiatConversion).pipe((0,i.R)(this.unSubs[5])).subscribe({next:t=>{this.transaction.satoshis=t[a.NT.SATS],this.selAmountUnit=a.NT.SATS,this.store.dispatch((0,ft.Wi)({payload:this.transaction}))},error:t=>{this.transaction.satoshis=null,this.selAmountUnit=a.NT.SATS,this.amountError="Conversion Error: "+t}}):this.store.dispatch((0,ft.Wi)({payload:this.transaction}))}}resetData(){this.sendFundError="",this.transaction={},this.flgMinConf=!1,this.totalSelectedUTXOAmount=null,this.selUTXOs=[],this.flgUseAllBalance=!1,this.selAmountUnit=a.uA[0]}stepSelectionChanged(t){switch(this.sendFundError="",t.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(s=>s.feeRateId===this.sendFundFormGroup.controls.selFeeRate.value).feeRateType:"")}t.selectedIndex0?(this.totalSelectedUTXOAmount=this.selUTXOs.reduce((G,DA)=>(s.value=G.value+DA.value,s)).value,this.flgUseAllBalance&&this.onUTXOAllBalanceChange()):(this.totalSelectedUTXOAmount=null,this.transaction.satoshis=null,this.flgUseAllBalance=!1)}onUTXOAllBalanceChange(){this.flgUseAllBalance?(this.transaction.satoshis=this.totalSelectedUTXOAmount,this.selAmountUnit=a.uA[0]):this.transaction.satoshis=null}onAmountUnitChange(t){const s=this,G=this.selAmountUnit===this.amountUnits[2]?a.NT.OTHER:this.selAmountUnit;let DA=t.value===this.amountUnits[2]?a.NT.OTHER:t.value;this.transaction.satoshis&&this.selAmountUnit!==t.value&&this.commonService.convertCurrency(+this.transaction.satoshis,G,DA,this.amountUnits[2],this.fiatConversion).pipe((0,i.R)(this.unSubs[6])).subscribe({next:ht=>{this.selAmountUnit=t.value,s.transaction.satoshis=s.decimalPipe.transform(ht[DA],s.currencyUnitFormats[DA]).replace(/,/g,"")},error:ht=>{s.transaction.satoshis=null,this.amountError="Conversion Error: "+ht,this.selAmountUnit=G,DA=G}})}onAdvancedPanelToggle(t){this.advancedTitle=t&&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(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(E.mQ),A.Y36(u.yh),A.Y36(e.v),A.Y36(Et.JJ),A.Y36(C.eX),A.Y36(OA.qu),A.Y36(At.V),A.Y36(Tr.ux))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-on-chain-send-modal"]],viewQuery:function(t,s){if(1&t&&(A.Gf(Yo,7),A.Gf(To,5),A.Gf(No,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.form=G.first),A.iGM(G=A.CRH())&&(s.formSweepAll=G.first),A.iGM(G=A.CRH())&&(s.stepper=G.first)}},decls:12,vars:4,consts:[["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","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","class","overflow-x-hidden",3,"submit","reset",4,"ngIf","ngIfElse"],["sweepAllBlock",""],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"overflow-x-hidden",3,"submit","reset"],["form","ngForm"],["fxFlex","55"],["matInput","","autoFocus","","placeholder","Bitcoin Address","tabindex","1","name","address","required","",3,"ngModel","ngModelChange"],["address","ngModel"],[4,"ngIf"],["fxFlex","30"],["matInput","","placeholder","Amount","name","amount","tabindex","2","required","",3,"ngModel","type","step","min","disabled","ngModelChange"],["amount","ngModel"],["matSuffix",""],["fxFlex","10","fxLayoutAlign","start end"],["tabindex","3","required","","name","amountUnit",3,"value","disabled","selectionChange"],[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 end"],["fxLayoutAlign","start center",3,"fxFlex"],["tabindex","4","placeholder","Fee Rate",3,"value","disabled","valueChange","selectionChange"],["fxFlex","48","fxLayoutAlign","end center",4,"ngIf"],["fxFlex","48","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","2","tabindex","5","color","primary","name","flgMinConf","fxLayoutAlign","stretch start",3,"ngModel","ngClass","ngModelChange","change"],["fxFlex","98"],["matInput","","placeholder","Min Confirmation Blocks","type","number","name","blocks","tabindex","8",3,"ngModel","step","min","required","disabled","ngModelChange"],["blocks","ngModel"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-sm","space-between center","fxLayout.gt-sm","row wrap",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"],[3,"value"],["fxFlex","48","fxLayoutAlign","end center"],["matInput","","placeholder","Fee Rate (Sats/vByte)","type","number","name","custFeeRate","tabindex","4",3,"ngModel","step","min","required","ngModelChange"],["custFeeRate","ngModel"],["fxLayout","column","fxFlex","100","expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","35","fxLayoutAlign","start end"],["tabindex","8","placeholder","Coin Selection","multiple","",3,"value","selectionChange","valueChange"],["fxFlex","60","fxLayout","row","fxLayoutAlign","start center"],["tabindex","9","color","primary","name","flgUseAllBalance",3,"ngModel","disabled","ngModelChange","change"],["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",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl","editable"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["matInput","","formControlName","transactionAddress","placeholder","Bitcoin Address","tabindex","4","name","address","required",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign.gt-sm","space-between center"],["tabindex","4","placeholder","Fee Rate","formControlName","selFeeRate"],["fxFlex","2","tabindex","5","color","primary","formControlName","flgMinConf","fxLayoutAlign","stretch start",3,"ngClass"],["matInput","","formControlName","minConfValue","placeholder","Min Confirmation Blocks","type","number","name","blocks","tabindex","8",3,"step","min","required"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","8","type","default","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","tabindex","9","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["autoFocus","","matInput","","placeholder","Password","type","password","tabindex","1","formControlName","password","required",""],["fxLayout","row",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","default",3,"click"],["matInput","","formControlName","customFeeRate","placeholder","Fee Rate (Sats/vByte)","type","number","name","custFeeRate","tabindex","4",3,"step","min"]],template:function(t,s){if(1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-card-header",2),A.TgZ(3,"div",3),A.TgZ(4,"span",4),A._uU(5),A.qZA(),A.qZA(),A.TgZ(6,"button",5),A._uU(7,"X"),A.qZA(),A.qZA(),A.TgZ(8,"mat-card-content",6),A.YNc(9,ko,37,31,"form",7),A.qZA(),A.qZA(),A.qZA(),A.YNc(10,Nr,40,23,"ng-template",null,8,A.W1O)),2&t){const G=A.MAs(11);A.xp6(5),A.Oqu(s.sweepAll?"Sweep All Funds":"Send Funds"),A.xp6(1),A.Q6J("mat-dialog-close",!1),A.xp6(3),A.Q6J("ngIf",!s.sweepAll)("ngIfElse",G)}},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Y.lW,Mt.ZT,w.dn,Et.O5,OA._Y,OA.JL,OA.F,W.KE,Yt.Nt,OA.Fj,H.h,OA.Q7,OA.JJ,OA.On,k.q,W.R9,R.gD,Et.sg,HA.oG,Et.mk,d.oO,OA.wV,OA.qQ,W.TO,W.bx,wA.ey,ar.ib,ar.yz,ar.yK,R.$L,QA.Rr,y.Hw,aA.gM,f.BN,Mr.Vq,Mr.C0,OA.sg,Mr.VY,OA.u,Mr.Ic],pipes:[Et.JJ],styles:[""]}),r})();var Or=St(1203);function As(r,v){1&r&&A._UZ(0,"mat-progress-bar",27)}function ts(r,v){1&r&&(A.TgZ(0,"th",28),A._uU(1," Transaction ID "),A.qZA())}function es(r,v){1&r&&(A.TgZ(0,"span",36),A.TgZ(1,"mat-icon",37),A._uU(2,"warning"),A.qZA(),A.qZA())}function Sr(r,v){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,es,3,0,"span",35),A.qZA()),2&r){const t=A.oxw().$implicit;A.oxw();const s=A.MAs(32);A.xp6(1),A.Q6J("ngIf",t.value<1e3)("ngIfElse",s)}}function Ur(r,v){1&r&&A._UZ(0,"span",38)}function Gi(r,v){if(1&r&&(A._UZ(0,"span",39),A.ALo(1,"titlecase")),2&r){const t=A.oxw().$implicit;A.s9C("matTooltip",A.lcZ(1,1,t.status))}}const Hi=function(r){return{"max-width":r}};function Ji(r,v){if(1&r&&(A.TgZ(0,"td",29),A.TgZ(1,"span",30),A.YNc(2,Sr,2,2,"span",31),A.YNc(3,Ur,1,0,"span",32),A.YNc(4,Gi,2,3,"span",33),A.TgZ(5,"span",34),A._uU(6),A.qZA(),A.qZA(),A.qZA()),2&r){const t=v.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(5,Hi,s.screenSize===s.screenSizeEnum.XS?"10rem":"50rem")),A.xp6(1),A.Q6J("ngIf",s.numDustUTXOs>0&&!s.isDustUTXO),A.xp6(1),A.Q6J("ngIf","confirmed"===t.status),A.xp6(1),A.Q6J("ngIf","confirmed"!==t.status),A.xp6(2),A.Oqu(t.txid)}}function ns(r,v){1&r&&(A.TgZ(0,"th",40),A._uU(1," Output "),A.qZA())}function Ea(r,v){if(1&r&&(A.TgZ(0,"td",29),A.TgZ(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.output)," ")}}function rs(r,v){1&r&&(A.TgZ(0,"th",40),A._uU(1," Value (Sats) "),A.qZA())}function is(r,v){if(1&r&&(A.TgZ(0,"span",41),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.Oqu(A.lcZ(2,1,t.value))}}function as(r,v){if(1&r&&(A.TgZ(0,"span",44),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.hij("(",A.lcZ(2,1,-1*t.value),")")}}function os(r,v){if(1&r&&(A.TgZ(0,"td",29),A.YNc(1,is,3,3,"span",42),A.YNc(2,as,3,3,"span",43),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Q6J("ngIf",t.value>0||0===t.value),A.xp6(1),A.Q6J("ngIf",t.value<0)}}function ss(r,v){1&r&&(A.TgZ(0,"th",40),A._uU(1," Blockheight "),A.qZA())}function wa(r,v){if(1&r&&(A.TgZ(0,"td",29),A.TgZ(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.blockheight)," ")}}function ls(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"th",45),A.TgZ(1,"div",46),A.TgZ(2,"mat-select",47),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",48),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function cs(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",49),A.TgZ(1,"button",50),A.NdJ("click",function(G){const ht=A.CHM(t).$implicit;return A.oxw().onUTXOClick(ht,G)}),A._uU(2,"View Info"),A.qZA(),A.qZA()}}function pr(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No utxos available."),A.qZA())}function zt(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting utxos..."),A.qZA())}function Bi(r,v){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function ui(r,v){if(1&r&&(A.TgZ(0,"td",51),A.YNc(1,pr,2,0,"p",31),A.YNc(2,zt,2,0,"p",31),A.YNc(3,Bi,2,1,"p",31),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(!(null!=t.listUTXOs&&t.listUTXOs.data)||(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.listUTXOs&&t.listUTXOs.data)||(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.listUTXOs&&t.listUTXOs.data)||(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const Ir=function(r){return{"display-none":r}};function Ca(r,v){if(1&r&&A._UZ(0,"tr",52),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,Ir,(null==t.listUTXOs?null:t.listUTXOs.data)&&(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)>0))}}function fi(r,v){1&r&&A._UZ(0,"tr",53)}function gs(r,v){1&r&&A._UZ(0,"tr",54)}function Qa(r,v){1&r&&A._UZ(0,"mat-icon",37)}const Bs=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},kr=function(){return["no_utxo"]};let hi=(()=>{class r{constructor(t,s,G){this.logger=t,this.commonService=s,this.store=G,this.numDustUTXOs=0,this.isDustUTXO=!1,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["txid","value","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["txid","output","value","blockheight","actions"]):(this.flgSticky=!0,this.displayedColumns=["txid","output","value","blockheight","actions"])}ngOnInit(){this.store.select(B.T4).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.logger.info(t)})}ngAfterViewInit(){this.utxos&&this.utxos.length>0&&this.sort&&this.paginator&&this.loadUTXOsTable(this.utxos)}ngOnChanges(){this.utxos&&this.utxos.length>0&&this.loadUTXOsTable(this.utxos)}applyFilter(){this.listUTXOs.filter=this.selFilter.trim().toLowerCase()}onUTXOClick(t,s){const G=[[{key:"txid",value:t.txid,title:"Transaction ID",width:100}],[{key:"output",value:t.output,title:"Output",width:50,type:a.Gi.NUMBER},{key:"value",value:t.value,title:"Value (Sats)",width:50,type:a.Gi.NUMBER}],[{key:"status",value:this.commonService.titleCase(t.status),title:"Status",width:50,type:a.Gi.STRING},{key:"blockheight",value:t.blockheight,title:"Blockheight",width:50,type:a.Gi.NUMBER}],[{key:"address",value:t.address,title:"Address",width:100}]];this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"UTXO Information",message:G}}}))}loadUTXOsTable(t){this.listUTXOs=new yA.by([...t]),this.listUTXOs.sortingDataAccessor=(s,G)=>s[G]&&isNaN(s[G])?s[G].toLocaleLowerCase():s[G]?+s[G]:null,this.listUTXOs.sort=this.sort,this.listUTXOs.filterPredicate=(s,G)=>JSON.stringify(s).toLowerCase().includes(G),this.listUTXOs.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listUTXOs)}onDownloadCSV(){this.listUTXOs.data&&this.listUTXOs.data.length>0&&this.commonService.downloadFile(this.listUTXOs.data,"UTXOs")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-on-chain-utxos"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(VA.NW,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.sort=G.first),A.iGM(G=A.CRH())&&(s.paginator=G.first)}},inputs:{numDustUTXOs:"numDustUTXOs",isDustUTXO:"isDustUTXO",utxos:"utxos"},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("UTXOs")}]),A.TTD],decls:33,vars:14,consts:[["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","txid"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","output"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","value"],["matColumnDef","blockheight"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","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","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["emptySpace",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayout","row",1,"ellipsis-parent",3,"ngStyle"],[4,"ngIf"],["class","dot green","matTooltip","Confirmed","matTooltipPosition","right",4,"ngIf"],["class","dot yellow","matTooltipPosition","right",3,"matTooltip",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Risk of dust attack","matTooltipPosition","right",4,"ngIf","ngIfElse"],["matTooltip","Risk of dust attack","matTooltipPosition","right"],["fxLayoutAlign","start center","color","warn",1,"mr-1"],["matTooltip","Confirmed","matTooltipPosition","right",1,"dot","green"],["matTooltipPosition","right",1,"dot","yellow",3,"matTooltip"],["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","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A._UZ(2,"div",2),A.TgZ(3,"mat-form-field",3),A.TgZ(4,"input",4),A.NdJ("keyup",function(){return s.applyFilter()})("ngModelChange",function(DA){return s.selFilter=DA}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(5,"div",5),A.TgZ(6,"div",6),A.YNc(7,As,1,0,"mat-progress-bar",7),A.TgZ(8,"table",8,9),A.ynx(10,10),A.YNc(11,ts,2,0,"th",11),A.YNc(12,Ji,7,7,"td",12),A.BQk(),A.ynx(13,13),A.YNc(14,ns,2,0,"th",14),A.YNc(15,Ea,4,3,"td",12),A.BQk(),A.ynx(16,15),A.YNc(17,rs,2,0,"th",14),A.YNc(18,os,3,2,"td",12),A.BQk(),A.ynx(19,16),A.YNc(20,ss,2,0,"th",14),A.YNc(21,wa,4,3,"td",12),A.BQk(),A.ynx(22,17),A.YNc(23,ls,6,0,"th",18),A.YNc(24,cs,3,0,"td",19),A.BQk(),A.ynx(25,20),A.YNc(26,ui,4,3,"td",21),A.BQk(),A.YNc(27,Ca,1,3,"tr",22),A.YNc(28,fi,1,0,"tr",23),A.YNc(29,gs,1,0,"tr",24),A.qZA(),A._UZ(30,"mat-paginator",25),A.qZA(),A.qZA(),A.qZA(),A.YNc(31,Qa,1,0,"ng-template",null,26,A.W1O)),2&t&&(A.xp6(4),A.Q6J("ngModel",s.selFilter),A.xp6(3),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",s.listUTXOs)("ngClass",A.VKq(11,Bs,""!==s.errorMessage)),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(13,kr)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[Ct.xw,Ct.Wh,Ct.yH,W.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,Et.O5,yA.BZ,rt.YE,Et.mk,d.oO,yA.w1,yA.fO,yA.Dz,yA.mD,yA.Ke,yA.as,yA.nj,VA.NW,T.pW,yA.ge,rt.nU,yA.ev,Et.PC,d.Zl,aA.gM,y.Hw,R.gD,R.$L,wA.ey,Y.lW,yA.yh,yA.Q2,yA.XQ,yA.Gk],pipes:[Et.rS,Et.JJ],styles:[".mat-column-txid[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-txid[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();var Oi=St(7544);function da(r,v){if(1&r&&(A.TgZ(0,"span",5),A._uU(1,"UTXOs"),A.qZA()),2&r){const t=A.oxw();A.s9C("matBadge",t.numUtxos)}}function Ma(r,v){if(1&r&&(A.TgZ(0,"span",5),A._uU(1,"Dust UTXOs"),A.qZA()),2&r){const t=A.oxw();A.s9C("matBadge",t.numDustUtxos)}}let pa=(()=>{class r{constructor(t,s){this.logger=t,this.store=s,this.selectedTableIndex=0,this.selectedTableIndexChange=new A.vpe,this.utxos=[],this.numUtxos=0,this.dustUtxos=[],this.numDustUtxos=0,this.unSubs=[new c.x,new c.x]}ngOnInit(){this.store.select(B.T4).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{t.utxos&&t.utxos.length>0&&(this.utxos=t.utxos,this.numUtxos=this.utxos.length,this.dustUtxos=t.utxos.filter(s=>+s.value<1e3),this.numDustUtxos=this.dustUtxos.length),t.utxos&&t.utxos.length>0&&(this.utxos=t.utxos,this.numUtxos=this.utxos.length),this.logger.info(t)})}onSelectedIndexChanged(t){this.selectedTableIndexChange.emit(t)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-utxo-tables"]],inputs:{selectedTableIndex:"selectedTableIndex"},outputs:{selectedTableIndexChange:"selectedTableIndexChange"},decls:8,vars:7,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"bordered-box"],[3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["xLayout","row","fxFlex","100",3,"utxos","numDustUTXOs","isDustUTXO"],["fxLayout","row","fxFlex","100",3,"utxos","numDustUTXOs","isDustUTXO"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"mat-tab-group",1),A.NdJ("selectedIndexChange",function(DA){return s.onSelectedIndexChanged(DA)}),A.TgZ(2,"mat-tab"),A.YNc(3,da,2,1,"ng-template",2),A._UZ(4,"rtl-cln-on-chain-utxos",3),A.qZA(),A.TgZ(5,"mat-tab"),A.YNc(6,Ma,2,1,"ng-template",2),A._UZ(7,"rtl-cln-on-chain-utxos",4),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(1),A.Q6J("selectedIndex",s.selectedTableIndex),A.xp6(3),A.Q6J("utxos",s.utxos)("numDustUTXOs",s.numDustUtxos)("isDustUTXO",!1),A.xp6(3),A.Q6J("utxos",s.dustUtxos)("numDustUTXOs",s.numDustUtxos)("isDustUTXO",!0))},directives:[Ct.xw,Ct.yH,Ct.Wh,ut.SP,ut.uX,ut.uD,hi,Oi.k],styles:[""]}),r})();const us=function(r,v){return[r,v]};function fs(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",12),A.NdJ("click",function(){const DA=A.CHM(t).$implicit;return A.oxw().activeLink=null==DA?null:DA.link}),A._uU(1),A.qZA()}if(2&r){const t=v.$implicit,s=A.oxw();A.Q6J("active",s.activeLink===(null==t?null:t.link))("routerLink",A.WLB(3,us,null==t?null:t.link,null==s.selectedTable?null:s.selectedTable.name)),A.xp6(1),A.Oqu(null==t?null:t.name)}}let jr=(()=>{class r{constructor(t,s,G){this.store=t,this.router=s,this.activatedRoute=G,this.selNode={},this.faExchangeAlt=h.Ssp,this.faChartPie=h.OS1,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 c.x,new c.x,new c.x,new c.x]}ngOnInit(){const t=this.links.find(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.selectedTable=this.tables.find(s=>s.name===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(s=>s instanceof _t.Av)).subscribe({next:s=>{const G=this.links.find(DA=>s.urlAfterRedirects.includes(DA.link));this.activeLink=G?G.link:this.links[0].link,this.selectedTable=this.tables.find(DA=>DA.name===s.urlAfterRedirects.substring(s.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(B.lw).pipe((0,i.R)(this.unSubs[1])).subscribe(s=>{this.selNode=s}),this.store.select(B.Rn).pipe((0,i.R)(this.unSubs[2])).subscribe(s=>{this.balances=[{title:"Total Balance",dataValue:s.balance.totalBalance||0},{title:"Confirmed",dataValue:s.balance.confBalance},{title:"Unconfirmed",dataValue:s.balance.unconfBalance}]})}openSendFundsModal(t){this.store.dispatch((0,kA.qR)({payload:{data:{sweepAll:t,component:or}}}))}onSelectedTableIndexChanged(t){this.selectedTable=this.tables.find(s=>s.id===t),this.router.navigate(["./",this.activeLink,this.selectedTable.name],{relativeTo:this.activatedRoute})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(u.yh),A.Y36(_t.F0),A.Y36(_t.gz))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-on-chain"]],decls:21,vars:5,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-tab-nav-bar",""],["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,"selectedTableIndex","selectedTableIndexChange"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"On-chain Balance"),A.qZA(),A.qZA(),A.TgZ(4,"div",3),A.TgZ(5,"mat-card"),A.TgZ(6,"mat-card-content",4),A._UZ(7,"rtl-currency-unit-converter",5),A.qZA(),A.qZA(),A.qZA(),A.TgZ(8,"div",0),A._UZ(9,"fa-icon",1),A.TgZ(10,"span",2),A._uU(11,"On-chain Transactions"),A.qZA(),A.qZA(),A.TgZ(12,"div",6),A.TgZ(13,"mat-card"),A.TgZ(14,"mat-card-content",4),A.TgZ(15,"nav",7),A.YNc(16,fs,2,6,"div",8),A.qZA(),A.TgZ(17,"div",9),A._UZ(18,"router-outlet"),A.qZA(),A.TgZ(19,"div",10),A.TgZ(20,"rtl-cln-utxo-tables",11),A.NdJ("selectedTableIndexChange",function(DA){return s.onSelectedTableIndexChanged(DA)}),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(1),A.Q6J("icon",s.faChartPie),A.xp6(6),A.Q6J("values",s.balances),A.xp6(2),A.Q6J("icon",s.faExchangeAlt),A.xp6(7),A.Q6J("ngForOf",s.links),A.xp6(4),A.Q6J("selectedTableIndex",null==s.selectedTable?null:s.selectedTable.id))},directives:[Ct.xw,Ct.Wh,f.BN,w.a8,w.dn,Or.D,ut.BU,Et.sg,Ct.yH,_t.lC,pa,ut.Nj,_t.rH],styles:[""]}),r})();function hs(r,v){if(1&r&&(A.TgZ(0,"span",10),A._uU(1,"Channels"),A.qZA()),2&r){const t=A.oxw();A.s9C("matBadge",t.activeChannels)}}function Es(r,v){if(1&r&&(A.TgZ(0,"span",10),A._uU(1,"Peers"),A.qZA()),2&r){const t=A.oxw();A.s9C("matBadge",t.activePeers)}}let ws=(()=>{class r{constructor(t,s,G){this.store=t,this.logger=s,this.router=G,this.activePeers=0,this.activeChannels=0,this.faUsers=h.FVb,this.faChartPie=h.OS1,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.x,new c.x,new c.x,new c.x]}ngOnInit(){this.activeLink=this.links.findIndex(t=>t.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(t=>t instanceof _t.Av)).subscribe({next:t=>{this.activeLink=this.links.findIndex(s=>s.link===t.urlAfterRedirects.substring(t.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(B.ZW).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.activeChannels=t.activeChannels.length||0}),this.store.select(B.Wi).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.activePeers=t.peers&&t.peers.length?t.peers.length:0,this.logger.info(t)}),this.store.select(B.Rn).pipe((0,i.R)(this.unSubs[3])).subscribe(t=>{this.balances=[{title:"Total Balance",dataValue:t.balance.totalBalance||0},{title:"Confirmed",dataValue:t.balance.confBalance},{title:"Unconfirmed",dataValue:t.balance.unconfBalance}]})}onSelectedTabChange(t){this.router.navigateByUrl("/cln/connections/"+this.links[t.index].link)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(u.yh),A.Y36(E.mQ),A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-connections"]],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"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["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(t,s){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"On-chain Balance"),A.qZA(),A.qZA(),A.TgZ(4,"div",3),A.TgZ(5,"mat-card"),A.TgZ(6,"mat-card-content",4),A._UZ(7,"rtl-currency-unit-converter",5),A.qZA(),A.qZA(),A.qZA(),A.TgZ(8,"div",0),A._UZ(9,"fa-icon",1),A.TgZ(10,"span",2),A._uU(11,"Connections"),A.qZA(),A.qZA(),A.TgZ(12,"div",6),A.TgZ(13,"mat-card"),A.TgZ(14,"mat-card-content",4),A.TgZ(15,"mat-tab-group",7),A.NdJ("selectedIndexChange",function(DA){return s.activeLink=DA})("selectedTabChange",function(DA){return s.onSelectedTabChange(DA)}),A.TgZ(16,"mat-tab"),A.YNc(17,hs,2,1,"ng-template",8),A.qZA(),A.TgZ(18,"mat-tab"),A.YNc(19,Es,2,1,"ng-template",8),A.qZA(),A.qZA(),A.TgZ(20,"div",9),A._UZ(21,"router-outlet"),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(1),A.Q6J("icon",s.faChartPie),A.xp6(6),A.Q6J("values",s.balances),A.xp6(2),A.Q6J("icon",s.faUsers),A.xp6(6),A.Q6J("selectedIndex",s.activeLink))},directives:[Ct.xw,Ct.Wh,f.BN,w.a8,w.dn,Or.D,ut.SP,ut.uX,ut.uD,Ct.yH,_t.lC,Oi.k],styles:[""]}),r})();function Ia(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",11),A.NdJ("click",function(){const DA=A.CHM(t).$implicit;return A.oxw().activeLink=DA.link}),A._uU(1),A.qZA()}if(2&r){const t=v.$implicit,s=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",s.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let Cs=(()=>{class r{constructor(t,s,G){this.logger=t,this.store=s,this.router=G,this.faExchangeAlt=h.Ssp,this.faChartPie=h.OS1,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.selNode={},this.links=[{link:"payments",name:"Payments"},{link:"invoices",name:"Invoices"}],this.activeLink=this.links[0].link,this.unSubs=[new c.x,new c.x,new c.x,new c.x]}ngOnInit(){const t=this.links.find(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(s=>s instanceof _t.Av)).subscribe({next:s=>{const G=this.links.find(DA=>s.urlAfterRedirects.includes(DA.link));this.activeLink=G?G.link:this.links[0].link,this.routerUrl=s.urlAfterRedirects}}),this.store.select(B.lw).pipe((0,i.R)(this.unSubs[1])).subscribe(s=>{if(this.selNode=s,this.selNode.enableOffers){this.store.dispatch((0,ft.yl)()),this.store.dispatch((0,ft.uT)()),this.links.push({link:"offers",name:"Offers"}),this.links.push({link:"offrBookmarks",name:"Paid Offer Bookmarks"});const G=this.links.find(DA=>this.router.url.includes(DA.link));this.activeLink=G?G.link:this.links[0].link}}),this.store.select(B.Wj).pipe((0,i.R)(this.unSubs[2]),(0,o.M)(this.store.select(B.lw))).subscribe(([s,G])=>{this.currencyUnits=G.currencyUnits,this.balances=G.userPersona===a.ol.OPERATOR?[{title:"Local Capacity",dataValue:s.localRemoteBalance.localBalance,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:s.localRemoteBalance.remoteBalance,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:s.localRemoteBalance.localBalance,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:s.localRemoteBalance.remoteBalance,tooltip:"Amount you can receive"}],this.logger.info(s)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-transactions"]],decls:19,vars:4,consts:[["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",""],["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"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Lightning Balance"),A.qZA(),A.qZA(),A.TgZ(4,"div",3),A.TgZ(5,"mat-card"),A.TgZ(6,"mat-card-content",4),A._UZ(7,"rtl-currency-unit-converter",5),A.qZA(),A.qZA(),A.qZA(),A.TgZ(8,"div",6),A._UZ(9,"fa-icon",1),A.TgZ(10,"span",2),A._uU(11,"Lightning Transactions"),A.qZA(),A.qZA(),A.TgZ(12,"div",7),A.TgZ(13,"mat-card"),A.TgZ(14,"mat-card-content",4),A.TgZ(15,"nav",8),A.YNc(16,Ia,2,3,"div",9),A.qZA(),A.TgZ(17,"div",10),A._UZ(18,"router-outlet"),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(1),A.Q6J("icon",s.faChartPie),A.xp6(6),A.Q6J("values",s.balances),A.xp6(2),A.Q6J("icon",s.faExchangeAlt),A.xp6(7),A.Q6J("ngForOf",s.links))},directives:[Ct.xw,Ct.Wh,f.BN,w.a8,w.dn,Or.D,ut.BU,Et.sg,Ct.yH,_t.lC,ut.Nj,_t.rH],styles:[""]}),r})();function Qs(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",11),A.NdJ("click",function(){const DA=A.CHM(t).$implicit;return A.oxw().activeLink=DA.link}),A._uU(1),A.qZA()}if(2&r){const t=v.$implicit,s=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",s.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let ds=(()=>{class r{constructor(t){this.router=t,this.faMapSigns=h.SuH,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 c.x,new c.x,new c.x]}ngOnInit(){const t=this.links.find(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(s=>s instanceof _t.Av)).subscribe({next:s=>{const G=this.links.find(DA=>s.urlAfterRedirects.includes(DA.link));this.activeLink=G?G.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-routing"]],decls:13,vars:2,consts:[["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","","fxFlex","100"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A._UZ(2,"fa-icon",2),A.TgZ(3,"span",3),A._uU(4,"Routing"),A.qZA(),A.qZA(),A.TgZ(5,"div",4),A.TgZ(6,"mat-card",5),A.TgZ(7,"mat-card-content",6),A.TgZ(8,"div",7),A.TgZ(9,"nav",8),A.YNc(10,Qs,2,3,"div",9),A.qZA(),A.qZA(),A.TgZ(11,"div",10),A._UZ(12,"router-outlet"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(2),A.Q6J("icon",s.faMapSigns),A.xp6(8),A.Q6J("ngForOf",s.links))},directives:[Ct.xw,Ct.Wh,f.BN,Ct.yH,w.a8,w.dn,ut.BU,Et.sg,_t.lC,ut.Nj,_t.rH],styles:[""]}),r})();var Zr=St(6895);function Ms(r,v){if(1&r&&(A.TgZ(0,"span",6),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(t)}}function ma(r,v){1&r&&(A.TgZ(0,"th",27),A._uU(1,"Type"),A.qZA())}function ps(r,v){if(1&r&&(A.TgZ(0,"td",28),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.type," ")}}function Is(r,v){1&r&&(A.TgZ(0,"th",27),A._uU(1,"Address"),A.qZA())}function ms(r,v){if(1&r&&(A.TgZ(0,"td",28),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.address," ")}}function Ds(r,v){1&r&&(A.TgZ(0,"th",27),A._uU(1,"Port"),A.qZA())}function vs(r,v){if(1&r&&(A.TgZ(0,"td",28),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.port," ")}}function Sn(r,v){1&r&&(A.TgZ(0,"th",29),A.TgZ(1,"span",30),A._uU(2,"Actions"),A.qZA(),A.qZA())}function ys(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",31),A.TgZ(1,"span",30),A.TgZ(2,"button",32),A.NdJ("copied",function(G){return A.CHM(t),A.oxw(2).onCopyNodeURI(G)}),A._uU(3,"Copy Node URI"),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=v.$implicit,s=A.oxw(2);A.xp6(2),A.Q6J("payload",(null==s.lookupResult?null:s.lookupResult.nodeid)+"@"+t.address+":"+t.port)}}function xs(r,v){1&r&&A._UZ(0,"tr",33)}function Fs(r,v){1&r&&A._UZ(0,"tr",34)}const Ys=function(r){return{"background-color":r}};function Ts(r,v){if(1&r&&(A.TgZ(0,"div",1),A._UZ(1,"mat-divider",2),A.TgZ(2,"div",3),A.TgZ(3,"div",4),A.TgZ(4,"h4",5),A._uU(5,"Alias"),A.qZA(),A.TgZ(6,"span",6),A._uU(7),A.TgZ(8,"span",7),A._uU(9),A.qZA(),A.qZA(),A.qZA(),A.TgZ(10,"div",8),A.TgZ(11,"h4",5),A._uU(12,"Pub Key"),A.qZA(),A.TgZ(13,"span",9),A._uU(14),A.qZA(),A.qZA(),A.qZA(),A._UZ(15,"mat-divider",10),A.TgZ(16,"div",3),A.TgZ(17,"div",4),A.TgZ(18,"h4",5),A._uU(19,"Last Update"),A.qZA(),A.TgZ(20,"span",6),A._uU(21),A.ALo(22,"date"),A.qZA(),A.qZA(),A.TgZ(23,"div",8),A.TgZ(24,"h4",5),A._uU(25,"Features"),A.qZA(),A.YNc(26,Ms,2,1,"span",11),A.qZA(),A.qZA(),A._UZ(27,"mat-divider",10),A.TgZ(28,"div",12),A.TgZ(29,"h4",13),A._uU(30,"Addresses"),A.qZA(),A.TgZ(31,"div",14),A.TgZ(32,"table",15,16),A.ynx(34,17),A.YNc(35,ma,2,0,"th",18),A.YNc(36,ps,2,1,"td",19),A.BQk(),A.ynx(37,20),A.YNc(38,Is,2,0,"th",18),A.YNc(39,ms,2,1,"td",19),A.BQk(),A.ynx(40,21),A.YNc(41,Ds,2,0,"th",18),A.YNc(42,vs,2,1,"td",19),A.BQk(),A.ynx(43,22),A.YNc(44,Sn,3,0,"th",23),A.YNc(45,ys,4,1,"td",24),A.BQk(),A.YNc(46,xs,1,0,"tr",25),A.YNc(47,Fs,1,0,"tr",26),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(null==t.lookupResult?null:t.lookupResult.alias),A.xp6(1),A.Q6J("ngStyle",A.VKq(15,Ys,"#"+(null==t.lookupResult?null:t.lookupResult.color))),A.xp6(1),A.Oqu(null!=t.lookupResult&&t.lookupResult.color?"#"+(null==t.lookupResult?null:t.lookupResult.color):""),A.xp6(5),A.Oqu(null==t.lookupResult?null:t.lookupResult.nodeid),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(A.xi3(22,12,1e3*(null==t.lookupResult?null:t.lookupResult.last_timestamp),"dd/MMM/y HH:mm")),A.xp6(5),A.Q6J("ngForOf",t.featureDescriptions),A.xp6(1),A.Q6J("inset",!0),A.xp6(5),A.Q6J("dataSource",t.addresses),A.xp6(14),A.Q6J("matHeaderRowDef",t.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}let Ns=(()=>{class r{constructor(t,s){this.logger=t,this.snackBar=s,this.featureDescriptions=[],this.displayedColumns=["type","address","port","actions"]}ngOnInit(){if(this.addresses=new yA.by(this.lookupResult&&this.lookupResult.addresses?[...this.lookupResult.addresses]:[]),this.addresses.data=this.lookupResult.addresses||[],this.addresses.sort=this.sort,this.addresses.sortingDataAccessor=(t,s)=>t[s]&&isNaN(t[s])?t[s].toLocaleLowerCase():t[s]?+t[s]:null,this.lookupResult.features&&""!==this.lookupResult.features.trim()){const t=parseInt(this.lookupResult.features,16);a.Df.forEach(s=>{t&(1<{class r{constructor(t){this.store=t,this.lookupResult=[],this.node1_match=!1,this.node2_match=!1,this.unSubs=[new c.x,new c.x,new c.x,new c.x]}ngOnInit(){this.store.select(B.ey).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.lookupResult.length>0&&this.lookupResult[0].source===t.id&&(this.node1_match=!0),this.lookupResult.length>1&&this.lookupResult[1].source===t.id&&(this.node2_match=!0)})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-lookup"]],inputs:{lookupResult:"lookupResult"},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 start",1,"mt-1","bordered-box","padding-gap-large"],["fxLayout","column"],["class","page-title font-bold-500",4,"ngIf"],[3,"inset"],["fxLayout","column","fxFlex","20",1,"my-1"],[1,"font-bold-500"],[1,"foreground-secondary-text"],["fxLayout","column","fxFlex","10",1,"my-1"],[1,"page-title","font-bold-500"]],template:function(t,s){1&t&&A.YNc(0,Da,204,91,"div",0),2&t&&A.Q6J("ngIf",s.lookupResult)},directives:[Et.O5,Ct.xw,AA.d,Ct.Wh,Ct.yH],pipes:[Et.JJ,Et.uU],styles:[".mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%], .mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{height:38px!important}"]}),r})();const Ke=["form"];function Er(r,v){if(1&r&&(A.TgZ(0,"mat-radio-button",17),A._uU(1),A.qZA()),2&r){const t=v.$implicit,s=A.oxw();A.Q6J("value",t.id)("checked",s.selectedFieldId===t.id),A.xp6(1),A.hij(" ",t.name," ")}}function ji(r,v){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.hij("",null==t.lookupFields[t.selectedFieldId]?null:t.lookupFields[t.selectedFieldId].placeholder," is required.")}}function Rs(r,v){if(1&r&&(A.TgZ(0,"div"),A._UZ(1,"rtl-cln-node-lookup",26),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Q6J("lookupResult",t.nodeLookupValue)}}function Ei(r,v){if(1&r&&(A.TgZ(0,"span",24),A.YNc(1,Rs,2,1,"div",25),A.qZA()),2&r){const t=A.oxw(2),s=A.MAs(19);A.xp6(1),A.Q6J("ngIf",""!==t.nodeLookupValue.nodeid)("ngIfElse",s)}}function wi(r,v){if(1&r&&(A.TgZ(0,"div"),A._UZ(1,"rtl-cln-channel-lookup",26),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Q6J("lookupResult",t.channelLookupValue)}}function Ci(r,v){if(1&r&&(A.TgZ(0,"span",24),A.YNc(1,wi,2,1,"div",25),A.qZA()),2&r){const t=A.oxw(2),s=A.MAs(19);A.xp6(1),A.Q6J("ngIf",t.channelLookupValue.length>0)("ngIfElse",s)}}function ve(r,v){1&r&&(A.TgZ(0,"span",24),A.TgZ(1,"h3"),A._uU(2,"Error! Unable to find details!"),A.qZA(),A.qZA())}function zs(r,v){if(1&r&&(A.TgZ(0,"div",18),A.TgZ(1,"div",19),A.TgZ(2,"span",20),A._uU(3),A.qZA(),A.qZA(),A.TgZ(4,"div",21),A.YNc(5,Ei,2,2,"span",22),A.YNc(6,Ci,2,2,"span",22),A.YNc(7,ve,3,0,"span",23),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(3),A.hij("",t.lookupFields[t.selectedFieldId].name," Details"),A.xp6(1),A.Q6J("ngSwitch",t.selectedFieldId),A.xp6(1),A.Q6J("ngSwitchCase",0),A.xp6(1),A.Q6J("ngSwitchCase",1)}}function wr(r,v){1&r&&(A.TgZ(0,"h3"),A._uU(1,"Error! Unable to find details!"),A.qZA())}const Ls=function(r){return{"mt-1":!0,"mt-2":r}};let bs=(()=>{class r{constructor(t,s,G,DA){this.logger=t,this.commonService=s,this.store=G,this.actions=DA,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=h.wn1,this.screenSize="",this.screenSizeEnum=a.cu,this.unSubs=[new c.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(t=>t.type===a.AB.SET_LOOKUP_CLN||t.type===a.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{if(t.type===a.AB.SET_LOOKUP_CLN){switch(this.flgLoading[0]=!0,this.selectedFieldId){case 0:this.nodeLookupValue="object"!=typeof t.payload[0]?{nodeid:""}:JSON.parse(JSON.stringify(t.payload[0]));break;case 1:this.channelLookupValue="object"!=typeof t.payload[0]?[]:JSON.parse(JSON.stringify(t.payload))}this.flgSetLookupValue=!0,this.logger.info(this.nodeLookupValue),this.logger.info(this.channelLookupValue)}t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&t.payload.status===a.Bn.ERROR&&"Lookup"===t.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,ft.Sf)({payload:this.lookupKey.trim()}));break;case 1:this.store.dispatch((0,ft.$A)({payload:{uiMessage:a.m6.SEARCHING_CHANNEL,shortChannelID:this.lookupKey.trim(),showError:!1}}))}}onSelectChange(t){this.resetData(),this.selectedFieldId=t.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(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh),A.Y36(C.eX))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-lookups"]],viewQuery:function(t,s){if(1&t&&A.Gf(Ke,7),2&t){let G;A.iGM(G=A.CRH())&&(s.form=G.first)}},decls:20,vars:9,consts:[["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"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModel","ngModelChange","change"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"placeholder","ngModel","change","ngModelChange"],["key",""],[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"],["errorBlock",""],[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"],["fxFlex","100",4,"ngSwitchDefault"],["fxFlex","100"],[4,"ngIf","ngIfElse"],[3,"lookupResult"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-card-content",2),A.TgZ(3,"form",3,4),A.TgZ(5,"div",5),A.TgZ(6,"mat-radio-group",6),A.NdJ("ngModelChange",function(DA){return s.selectedFieldId=DA})("change",function(DA){return s.onSelectChange(DA)}),A.YNc(7,Er,2,3,"mat-radio-button",7),A.qZA(),A.qZA(),A.TgZ(8,"mat-form-field",8),A.TgZ(9,"input",9,10),A.NdJ("change",function(){return s.clearLookupValue()})("ngModelChange",function(DA){return s.lookupKey=DA}),A.qZA(),A.YNc(11,ji,2,1,"mat-error",11),A.qZA(),A.TgZ(12,"div",12),A.TgZ(13,"button",13),A.NdJ("click",function(){return s.resetData()}),A._uU(14,"Clear"),A.qZA(),A.TgZ(15,"button",14),A.NdJ("click",function(){return s.onLookup()}),A._uU(16,"Lookup"),A.qZA(),A.qZA(),A.qZA(),A.YNc(17,zs,8,4,"div",15),A.qZA(),A.qZA(),A.qZA(),A.YNc(18,wr,2,0,"ng-template",null,16,A.W1O)),2&t&&(A.xp6(6),A.Q6J("ngModel",s.selectedFieldId),A.xp6(1),A.Q6J("ngForOf",s.lookupFields),A.xp6(1),A.Q6J("ngClass",A.VKq(7,Ls,s.screenSize===s.screenSizeEnum.XS||s.screenSize===s.screenSizeEnum.SM)),A.xp6(1),A.Q6J("placeholder",(null==s.lookupFields[s.selectedFieldId]?null:s.lookupFields[s.selectedFieldId].placeholder)||"Lookup Key")("ngModel",s.lookupKey),A.xp6(2),A.Q6J("ngIf",!s.lookupKey),A.xp6(6),A.Q6J("ngIf",s.flgSetLookupValue))},directives:[Ct.xw,Ct.yH,Ct.Wh,w.dn,OA._Y,OA.JL,OA.F,zA.VQ,OA.JJ,OA.On,Et.sg,W.KE,Et.mk,d.oO,Yt.Nt,OA.Fj,OA.Q7,Et.O5,Y.lW,zA.U0,W.TO,Et.RF,Et.n9,Et.ED,Ns,ki],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}.pl-3[_ngcontent-%COMP%]{padding-left:3rem}"]}),r})();var Kr=(()=>{return(r=Kr||(Kr={})).KB="KB",r.KW="KW",Kr;var r})();function Qi(r,v){if(1&r&&(A.TgZ(0,"div",2),A.TgZ(1,"div",3),A.TgZ(2,"div"),A.TgZ(3,"h4",4),A._uU(4," Opening "),A.TgZ(5,"mat-icon",5),A._uU(6,"info_outline"),A.qZA(),A.qZA(),A.TgZ(7,"div",6),A._uU(8),A.ALo(9,"number"),A.qZA(),A.qZA(),A.TgZ(10,"div"),A.TgZ(11,"h4",4),A._uU(12," Mutual Close "),A.TgZ(13,"mat-icon",7),A._uU(14,"info_outline"),A.qZA(),A.qZA(),A.TgZ(15,"div",6),A._uU(16),A.ALo(17,"number"),A.qZA(),A.qZA(),A.TgZ(18,"div"),A.TgZ(19,"h4",4),A._uU(20," Unilateral Close "),A.TgZ(21,"mat-icon",8),A._uU(22,"info_outline"),A.qZA(),A.qZA(),A.TgZ(23,"div",6),A._uU(24),A.ALo(25,"number"),A.qZA(),A.qZA(),A.TgZ(26,"div"),A.TgZ(27,"h4",4),A._uU(28," Delayed To Us "),A.TgZ(29,"mat-icon",9),A._uU(30,"info_outline"),A.qZA(),A.qZA(),A.TgZ(31,"div",6),A._uU(32),A.ALo(33,"number"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(34,"div",3),A.TgZ(35,"div"),A.TgZ(36,"h4",4),A._uU(37," Minimum Acceptable "),A.TgZ(38,"mat-icon",10),A._uU(39,"info_outline"),A.qZA(),A.qZA(),A.TgZ(40,"div",6),A._uU(41),A.ALo(42,"number"),A.qZA(),A.qZA(),A.TgZ(43,"div"),A.TgZ(44,"h4",4),A._uU(45," Maximum Acceptable "),A.TgZ(46,"mat-icon",11),A._uU(47,"info_outline"),A.qZA(),A.qZA(),A.TgZ(48,"div",6),A._uU(49),A.ALo(50,"number"),A.qZA(),A.qZA(),A.TgZ(51,"div"),A.TgZ(52,"h4",4),A._uU(53," HTLC Resolution "),A.TgZ(54,"mat-icon",12),A._uU(55,"info_outline"),A.qZA(),A.qZA(),A.TgZ(56,"div",6),A._uU(57),A.ALo(58,"number"),A.qZA(),A.qZA(),A.TgZ(59,"div"),A.TgZ(60,"h4",4),A._uU(61," Penalty "),A.TgZ(62,"mat-icon",13),A._uU(63,"info_outline"),A.qZA(),A.qZA(),A.TgZ(64,"div",6),A._uU(65),A.ALo(66,"number"),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(8),A.Oqu(A.lcZ(9,8,null==t.perkbw?null:t.perkbw.opening)),A.xp6(8),A.Oqu(A.lcZ(17,10,null==t.perkbw?null:t.perkbw.mutual_close)),A.xp6(8),A.Oqu(A.lcZ(25,12,null==t.perkbw?null:t.perkbw.unilateral_close)),A.xp6(8),A.Oqu(A.lcZ(33,14,null==t.perkbw?null:t.perkbw.delayed_to_us)),A.xp6(9),A.Oqu(A.lcZ(42,16,null==t.perkbw?null:t.perkbw.min_acceptable)),A.xp6(8),A.Oqu(A.lcZ(50,18,null==t.perkbw?null:t.perkbw.max_acceptable)),A.xp6(8),A.Oqu(A.lcZ(58,20,null==t.perkbw?null:t.perkbw.htlc_resolution)),A.xp6(8),A.Oqu(A.lcZ(66,22,null==t.perkbw?null:t.perkbw.penalty))}}function sr(r,v){if(1&r&&(A.TgZ(0,"div",14),A.TgZ(1,"p"),A._uU(2),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let va=(()=>{class r{constructor(){this.perkbw={}}ngAfterContentChecked(){this.feeRateStyle===Kr.KB?this.perkbw=this.feeRates.perkb:this.feeRateStyle===Kr.KW&&(this.perkbw=this.feeRates.perkw)}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-fee-rates"]],inputs:{feeRateStyle:"feeRateStyle",feeRates:"feeRates",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","stretch","class","h-100",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","stretch",1,"h-100"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start center",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"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,s){if(1&t&&(A.YNc(0,Qi,67,24,"div",0),A.YNc(1,sr,3,1,"ng-template",null,1,A.W1O)),2&t){const G=A.MAs(2);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",G)}},directives:[Et.O5,Ct.xw,Ct.yH,Ct.Wh,y.Hw,aA.gM],pipes:[Et.JJ],styles:[".fee-rate-list[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{height:44px}"]}),r})();function Pr(r,v){if(1&r&&(A.TgZ(0,"div",2),A.TgZ(1,"div",3),A.TgZ(2,"div"),A.TgZ(3,"h4",4),A._uU(4," Opening Channel "),A.TgZ(5,"mat-icon",5),A._uU(6,"info_outline"),A.qZA(),A.qZA(),A.TgZ(7,"div",6),A._uU(8),A.ALo(9,"number"),A.qZA(),A.qZA(),A.TgZ(10,"div"),A.TgZ(11,"h4",4),A._uU(12," Mutual Close "),A.TgZ(13,"mat-icon",7),A._uU(14,"info_outline"),A.qZA(),A.qZA(),A.TgZ(15,"div",6),A._uU(16),A.ALo(17,"number"),A.qZA(),A.qZA(),A.TgZ(18,"div"),A.TgZ(19,"h4",4),A._uU(20," Unilateral Close "),A.TgZ(21,"mat-icon",8),A._uU(22,"info_outline"),A.qZA(),A.qZA(),A.TgZ(23,"div",6),A._uU(24),A.ALo(25,"number"),A.qZA(),A.qZA(),A.TgZ(26,"div",9),A._UZ(27,"h4",4),A._UZ(28,"div",6),A.qZA(),A.qZA(),A.TgZ(29,"div",3),A.TgZ(30,"div"),A.TgZ(31,"h4",4),A._uU(32," HTLC Timeout "),A.TgZ(33,"mat-icon",10),A._uU(34,"info_outline"),A.qZA(),A.qZA(),A.TgZ(35,"div",6),A._uU(36),A.ALo(37,"number"),A.qZA(),A.qZA(),A.TgZ(38,"div"),A.TgZ(39,"h4",4),A._uU(40," HTLC Success "),A.TgZ(41,"mat-icon",11),A._uU(42,"info_outline"),A.qZA(),A.qZA(),A.TgZ(43,"div",6),A._uU(44),A.ALo(45,"number"),A.qZA(),A.qZA(),A.TgZ(46,"div",9),A._UZ(47,"h4",4),A._UZ(48,"div",6),A.qZA(),A.TgZ(49,"div",9),A._UZ(50,"h4",4),A._UZ(51,"div",6),A.qZA(),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(8),A.Oqu(A.lcZ(9,5,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.opening_channel_satoshis)),A.xp6(8),A.Oqu(A.lcZ(17,7,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.mutual_close_satoshis)),A.xp6(8),A.Oqu(A.lcZ(25,9,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.unilateral_close_satoshis)),A.xp6(12),A.Oqu(A.lcZ(37,11,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.htlc_timeout_satoshis)),A.xp6(8),A.Oqu(A.lcZ(45,13,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.htlc_success_satoshis))}}function ya(r,v){if(1&r&&(A.TgZ(0,"div",12),A.TgZ(1,"p"),A._uU(2),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let Gs=(()=>{class r{constructor(){}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-onchain-fee-estimates"]],inputs:{feeRates:"feeRates",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","stretch","class","h-100",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","stretch",1,"h-100"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start center",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(t,s){if(1&t&&(A.YNc(0,Pr,52,15,"div",0),A.YNc(1,ya,3,1,"ng-template",null,1,A.W1O)),2&t){const G=A.MAs(2);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",G)}},directives:[Et.O5,Ct.xw,Ct.yH,Ct.Wh,y.Hw,aA.gM],pipes:[Et.JJ],styles:[".fee-rate-list[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{height:44px}"]}),r})();function di(r,v){1&r&&A._UZ(0,"mat-progress-bar",19)}function Mi(r,v){if(1&r&&A._UZ(0,"rtl-cln-node-info",20),2&r){const t=A.oxw(3);A.Q6J("information",t.information)("showColorFieldSeparately",!1)}}function mr(r,v){if(1&r&&A._UZ(0,"rtl-cln-channel-status-info",21),2&r){const t=A.oxw(3);A.Q6J("channelsStatus",t.channelsStatus)("errorMessage",t.errorMessages[0]+" "+t.errorMessages[2])}}function Hs(r,v){if(1&r&&A._UZ(0,"rtl-cln-fee-info",22),2&r){const t=A.oxw(3);A.Q6J("fees",t.fees)("errorMessage",t.errorMessages[1]+" "+t.errorMessages[3]+" "+t.errorMessages[4])}}function pi(r,v){if(1&r&&A._UZ(0,"rtl-cln-fee-rates",23),2&r){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKB)("feeRateStyle","KB")("errorMessage",t.errorMessages[5])}}function Vr(r,v){if(1&r&&A._UZ(0,"rtl-cln-fee-rates",23),2&r){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKW)("feeRateStyle","KW")("errorMessage",t.errorMessages[6])}}function Js(r,v){if(1&r&&A._UZ(0,"rtl-cln-onchain-fee-estimates",24),2&r){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKW)("errorMessage",t.errorMessages[5])}}const xa=function(r){return{"dashboard-card-content":!0,"error-border":r}};function Os(r,v){if(1&r&&(A.TgZ(0,"mat-grid-tile",4),A.TgZ(1,"div",5),A.TgZ(2,"div",6),A.TgZ(3,"div",7),A._UZ(4,"fa-icon",8),A.TgZ(5,"span"),A._uU(6),A.qZA(),A.qZA(),A.qZA(),A.TgZ(7,"div",9),A.TgZ(8,"mat-card",10),A.TgZ(9,"mat-card-content",11),A.YNc(10,di,1,0,"mat-progress-bar",12),A.TgZ(11,"div",13),A.YNc(12,Mi,1,2,"rtl-cln-node-info",14),A.YNc(13,mr,1,2,"rtl-cln-channel-status-info",15),A.YNc(14,Hs,1,2,"rtl-cln-fee-info",16),A.YNc(15,pi,1,3,"rtl-cln-fee-rates",17),A.YNc(16,Vr,1,3,"rtl-cln-fee-rates",17),A.YNc(17,Js,1,2,"rtl-cln-onchain-fee-estimates",18),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&r){const t=v.$implicit,s=A.oxw(2);A.Q6J("colspan",t.cols)("rowspan",t.rows),A.xp6(4),A.Q6J("icon",t.icon),A.xp6(2),A.Oqu(t.title),A.xp6(3),A.Q6J("ngClass",A.VKq(13,xa,"node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.ERROR)||"feeRatesKB"===t.id&&s.apiCallStatusPerKB.status===s.apiCallStatusEnum.ERROR||"feeRatesKW"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.ERROR||"onChainFeeEstimates"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.ERROR)),A.xp6(1),A.Q6J("ngIf","node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.INITIATED)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusChannels.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.INITIATED)||"feeRatesKB"===t.id&&s.apiCallStatusPerKB.status===s.apiCallStatusEnum.INITIATED||"feeRatesKW"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.INITIATED||"onChainFeeEstimates"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngSwitch",t.id),A.xp6(1),A.Q6J("ngSwitchCase","node"),A.xp6(1),A.Q6J("ngSwitchCase","status"),A.xp6(1),A.Q6J("ngSwitchCase","fee"),A.xp6(1),A.Q6J("ngSwitchCase","feeRatesKB"),A.xp6(1),A.Q6J("ngSwitchCase","feeRatesKW"),A.xp6(1),A.Q6J("ngSwitchCase","onChainFeeEstimates")}}function Fa(r,v){if(1&r&&(A.TgZ(0,"mat-grid-list",2),A.YNc(1,Os,18,15,"mat-grid-tile",3),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngForOf",t.nodeCardsOperator)}}function ks(r,v){1&r&&A._UZ(0,"mat-progress-bar",19)}function js(r,v){if(1&r&&A._UZ(0,"rtl-cln-node-info",20),2&r){const t=A.oxw(3);A.Q6J("information",t.information)("showColorFieldSeparately",!1)}}function Zs(r,v){if(1&r&&A._UZ(0,"rtl-cln-channel-status-info",21),2&r){const t=A.oxw(3);A.Q6J("channelsStatus",t.channelsStatus)("errorMessage",t.errorMessages[0]+" "+t.errorMessages[2])}}function Ks(r,v){if(1&r&&A._UZ(0,"rtl-cln-fee-info",22),2&r){const t=A.oxw(3);A.Q6J("fees",t.fees)("errorMessage",t.errorMessages[1]+" "+t.errorMessages[3]+" "+t.errorMessages[4])}}function Vs(r,v){if(1&r&&A._UZ(0,"rtl-cln-fee-rates",23),2&r){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKB)("feeRateStyle","KB")("errorMessage",t.errorMessages[5])}}function Ws(r,v){if(1&r&&A._UZ(0,"rtl-cln-fee-rates",23),2&r){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKW)("feeRateStyle","KW")("errorMessage",t.errorMessages[5])}}function Xs(r,v){if(1&r&&A._UZ(0,"rtl-cln-onchain-fee-estimates",24),2&r){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKW)("errorMessage",t.errorMessages[5])}}function qs(r,v){if(1&r&&(A.TgZ(0,"mat-grid-tile",4),A.TgZ(1,"div",5),A.TgZ(2,"div",6),A.TgZ(3,"div",25),A._UZ(4,"fa-icon",8),A.TgZ(5,"span"),A._uU(6),A.qZA(),A.qZA(),A.qZA(),A.TgZ(7,"div",9),A.TgZ(8,"mat-card",10),A.TgZ(9,"mat-card-content",11),A.YNc(10,ks,1,0,"mat-progress-bar",12),A.TgZ(11,"div",13),A.YNc(12,js,1,2,"rtl-cln-node-info",14),A.YNc(13,Zs,1,2,"rtl-cln-channel-status-info",15),A.YNc(14,Ks,1,2,"rtl-cln-fee-info",16),A.YNc(15,Vs,1,3,"rtl-cln-fee-rates",17),A.YNc(16,Ws,1,3,"rtl-cln-fee-rates",17),A.YNc(17,Xs,1,2,"rtl-cln-onchain-fee-estimates",18),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&r){const t=v.$implicit,s=A.oxw(2);A.Q6J("colspan",t.cols)("rowspan",t.rows),A.xp6(4),A.Q6J("icon",t.icon),A.xp6(2),A.Oqu(t.title),A.xp6(3),A.Q6J("ngClass",A.VKq(13,xa,"node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.ERROR)||"feeRatesKB"===t.id&&s.apiCallStatusPerKB.status===s.apiCallStatusEnum.ERROR||"feeRatesKW"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.ERROR||"onChainFeeEstimates"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.ERROR)),A.xp6(1),A.Q6J("ngIf","node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.INITIATED)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusChannels.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.INITIATED)||"feeRatesKB"===t.id&&s.apiCallStatusPerKB.status===s.apiCallStatusEnum.INITIATED||"feeRatesKW"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.INITIATED||"onChainFeeEstimates"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngSwitch",t.id),A.xp6(1),A.Q6J("ngSwitchCase","node"),A.xp6(1),A.Q6J("ngSwitchCase","status"),A.xp6(1),A.Q6J("ngSwitchCase","fee"),A.xp6(1),A.Q6J("ngSwitchCase","feeRatesKB"),A.xp6(1),A.Q6J("ngSwitchCase","feeRatesKW"),A.xp6(1),A.Q6J("ngSwitchCase","onChainFeeEstimates")}}function _s(r,v){if(1&r&&(A.TgZ(0,"mat-grid-list",2),A.YNc(1,qs,18,15,"mat-grid-tile",3),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngForOf",t.nodeCardsMerchant)}}let $s=(()=>{class r{constructor(t,s,G){this.logger=t,this.commonService=s,this.store=G,this.faBolt=h.BDt,this.faServer=h.xf3,this.faNetworkWired=h.kXW,this.faLink=h.nNP,this.selNode={},this.information={},this.channelsStatus={active:{},pending:{},inactive:{}},this.feeRatesPerKB={},this.feeRatesPerKW={},this.nodeCardsOperator=[],this.nodeCardsMerchant=[],this.screenSize="",this.screenSizeEnum=a.cu,this.userPersonaEnum=a.ol,this.errorMessages=["","","","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusLRBal=null,this.apiCallStatusChannels=null,this.apiCallStatusFees=null,this.apiCallStatusFHistory=null,this.apiCallStatusPerKB=null,this.apiCallStatusPerKW=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.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:4},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:4,rows:4},{id:"onChainFeeEstimates",icon:this.faLink,title:"Onchain Fee Estimates (Sats)",cols:4,rows:4}],this.nodeCardsOperator=[{id:"feeRatesKB",icon:this.faServer,title:"Fee Rate Per KB",cols:4,rows:4},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:4,rows:4},{id:"onChainFeeEstimates",icon:this.faLink,title:"Onchain Fee Estimates (Sats)",cols:4,rows:4}]):(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:4},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:2,rows:4},{id:"onChainFeeEstimates",icon:this.faLink,title:"Onchain Fee Estimates (Sats)",cols:2,rows:4}],this.nodeCardsOperator=[{id:"feeRatesKB",icon:this.faServer,title:"Fee Rate Per KB",cols:2,rows:4},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:2,rows:4},{id:"onChainFeeEstimates",icon:this.faLink,title:"Onchain Fee Estimates (Sats)",cols:2,rows:4}])}ngOnInit(){this.store.select(B.Hz).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=t.apisCallStatus[0],this.apiCallStatusNodeInfo.status===a.Bn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message),this.selNode=t.nodeSettings,this.information=t.information,this.logger.info(t)}),this.store.select(B.ZW).pipe((0,i.R)(this.unSubs[1]),(0,o.M)(this.store.select(B.Wj))).subscribe(([t,s])=>{this.errorMessages[2]="",this.errorMessages[3]="",this.apiCallStatusLRBal=t.apiCallStatus,this.apiCallStatusChannels=s.apiCallStatus,this.apiCallStatusLRBal.status===a.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusLRBal.message?JSON.stringify(this.apiCallStatusLRBal.message):this.apiCallStatusLRBal.message),this.apiCallStatusChannels.status===a.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message),this.channelsStatus.active.channels=t.activeChannels.length||0,this.channelsStatus.pending.channels=t.pendingChannels.length||0,this.channelsStatus.inactive.channels=t.inactiveChannels.length||0,this.channelsStatus.active.capacity=s.localRemoteBalance.localBalance||0,this.channelsStatus.pending.capacity=s.localRemoteBalance.pendingBalance||0,this.channelsStatus.inactive.capacity=s.localRemoteBalance.inactiveBalance||0}),this.store.select(B.JG).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.errorMessages[1]="",this.apiCallStatusFees=t.apiCallStatus,this.apiCallStatusFees.status===a.Bn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message),this.fees=t.fees}),this.store.select(B.Bo).pipe((0,i.R)(this.unSubs[3])).subscribe(t=>{this.errorMessages[4]="",this.apiCallStatusFHistory=t.apiCallStatus,this.apiCallStatusFHistory.status===a.Bn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusFHistory.message?JSON.stringify(this.apiCallStatusFHistory.message):this.apiCallStatusFHistory.message),t.forwardingHistory&&t.forwardingHistory.listForwards.length&&(this.fees.totalTxCount=t.forwardingHistory.listForwards.length)}),this.store.select(B.zm).pipe((0,i.R)(this.unSubs[4])).subscribe(t=>{this.errorMessages[5]="",this.apiCallStatusPerKB=t.apiCallStatus,this.apiCallStatusPerKB.status===a.Bn.ERROR&&(this.errorMessages[5]="object"==typeof this.apiCallStatusPerKB.message?JSON.stringify(this.apiCallStatusPerKB.message):this.apiCallStatusPerKB.message),this.feeRatesPerKB=t.feeRatesPerKB}),this.store.select(B.hx).pipe((0,i.R)(this.unSubs[5])).subscribe(t=>{this.errorMessages[6]="",this.apiCallStatusPerKW=t.apiCallStatus,this.apiCallStatusPerKW.status===a.Bn.ERROR&&(this.errorMessages[6]="object"==typeof this.apiCallStatusPerKW.message?JSON.stringify(this.apiCallStatusPerKW.message):this.apiCallStatusPerKW.message),this.feeRatesPerKW=t.feeRatesPerKW})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-network-info"]],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",3,"feeRates","feeRateStyle","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"],[1,"h-100",3,"feeRates","feeRateStyle","errorMessage"],[1,"h-100",3,"feeRates","errorMessage"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","pl-15px"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,Fa,2,1,"mat-grid-list",1),A.YNc(2,_s,2,1,"mat-grid-list",1),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",s.selNode.userPersona===s.userPersonaEnum.OPERATOR),A.xp6(1),A.Q6J("ngIf",s.selNode.userPersona===s.userPersonaEnum.MERCHANT))},directives:[Ct.xw,Ct.Wh,Et.O5,g.Il,Et.sg,g.DX,Ct.yH,f.BN,w.a8,w.dn,Et.mk,d.oO,Et.RF,Et.n9,T.pW,N,q,NA,va,Gs],styles:[""]}),r})();function A0(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",8),A.NdJ("click",function(){const DA=A.CHM(t).$implicit;return A.oxw().activeLink=DA.link}),A._uU(1),A.qZA()}if(2&r){const t=v.$implicit,s=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",s.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let Ii=(()=>{class r{constructor(t){this.router=t,this.faUserCheck=h.hkK,this.links=[{link:"sign",name:"Sign"},{link:"verify",name:"Verify"}],this.activeLink=this.links[0].link,this.unSubs=[new c.x,new c.x]}ngOnInit(){const t=this.links.find(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(s=>s instanceof _t.Av)).subscribe({next:s=>{const G=this.links.find(DA=>s.urlAfterRedirects.includes(DA.link));this.activeLink=G?G.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-sign-verify-message"]],decls:11,vars:2,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-tab-nav-bar",""],["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"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Sign/Verify Message"),A.qZA(),A.qZA(),A.TgZ(4,"div",3),A.TgZ(5,"mat-card"),A.TgZ(6,"mat-card-content",4),A.TgZ(7,"nav",5),A.YNc(8,A0,2,3,"div",6),A.qZA(),A.TgZ(9,"div",7),A._UZ(10,"router-outlet"),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(1),A.Q6J("icon",s.faUserCheck),A.xp6(7),A.Q6J("ngForOf",s.links))},directives:[Ct.xw,Ct.Wh,f.BN,w.a8,w.dn,ut.BU,Et.sg,Ct.yH,_t.lC,ut.Nj,_t.rH],styles:[""]}),r})();var Zi=St(9122);function mi(r,v){if(1&r&&(A.TgZ(0,"mat-option",7),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.Q6J("value",t),A.xp6(1),A.hij(" ",t.addressTp," ")}}let Ya=(()=>{class r{constructor(t,s){this.store=t,this.clnEffects=s,this.addressTypes=a._t,this.selectedAddressType=a._t[0],this.newAddress=""}onGenerateAddress(){this.store.dispatch((0,ft._E)({payload:this.selectedAddressType})),this.clnEffects.setNewAddressCL.pipe((0,UA.q)(1)).subscribe(t=>{this.newAddress=t,setTimeout(()=>{this.store.dispatch((0,kA.qR)({payload:{data:{address:this.newAddress,addressType:this.selectedAddressType.addressTp,component:Zi.n}}}))},0)})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(u.yh),A.Y36(In.J))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-on-chain-receive"]],decls:8,vars:2,consts:[["fxLayout","column",1,"padding-gap-x"],["fxLayout","row","fxLayoutAlign","space-between end","fxLayoutAlign.gt-sm","start end"],["fxFlex","48","fxFlex.gt-md","25","fxLayoutAlign","start end",1,"mr-2"],["placeholder","Address Type","name","address_type","tabindex","1",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mt-2"],["mat-flat-button","","color","primary","tabindex","2",1,"top-minus-15px",3,"click"],[3,"value"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-form-field",2),A.TgZ(3,"mat-select",3),A.NdJ("ngModelChange",function(DA){return s.selectedAddressType=DA}),A.YNc(4,mi,2,2,"mat-option",4),A.qZA(),A.qZA(),A.TgZ(5,"div",5),A.TgZ(6,"button",6),A.NdJ("click",function(){return s.onGenerateAddress()}),A._uU(7,"Generate Address"),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(3),A.Q6J("ngModel",s.selectedAddressType),A.xp6(1),A.Q6J("ngForOf",s.addressTypes))},directives:[Ct.xw,Ct.Wh,W.KE,Ct.yH,R.gD,OA.JJ,OA.On,Et.sg,Y.lW,wA.ey],styles:[""]}),r})(),Ta=(()=>{class r{constructor(t,s){this.store=t,this.activatedRoute=s,this.sweepAll=!1,this.unSubs=[new c.x,new c.x]}ngOnInit(){this.activatedRoute.data.pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.sweepAll=t.sweepAll})}openSendFundsModal(){this.store.dispatch((0,kA.qR)({payload:{data:{sweepAll:this.sweepAll,component:or}}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(u.yh),A.Y36(_t.gz))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-on-chain-send"]],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(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"button",2),A.NdJ("click",function(){return s.openSendFundsModal()}),A._uU(3),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(3),A.Oqu(s.sweepAll?"Sweep All":"Send Funds"))},directives:[Ct.xw,Ct.yH,Ct.Wh,Y.lW],styles:[""]}),r})();var Di=St(8675),Un=St(4004),tr=St(9843),vi=St(1079);const Ki=["form"];function Vi(r,v){if(1&r&&(A.TgZ(0,"mat-option",42),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.Q6J("value",t),A.xp6(1),A.Oqu(t.alias?t.alias:t.id?t.id:"")}}function t0(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Peer alias is required."),A.qZA())}function Wr(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Peer not found in the list."),A.qZA())}function Na(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1),A.TgZ(1,"input",39),A.NdJ("change",function(){return A.CHM(t),A.oxw().onSelectedPeerChanged()}),A.qZA(),A.TgZ(2,"mat-autocomplete",40,41),A.NdJ("optionSelected",function(){return A.CHM(t),A.oxw().onSelectedPeerChanged()}),A.YNc(4,Vi,2,2,"mat-option",26),A.ALo(5,"async"),A.qZA(),A.YNc(6,t0,2,0,"mat-error",17),A.YNc(7,Wr,2,0,"mat-error",17),A.qZA()}if(2&r){const t=A.MAs(3),s=A.oxw();A.xp6(1),A.Q6J("formControl",s.selectedPeer)("matAutocomplete",t),A.xp6(1),A.Q6J("displayWith",s.displayFn),A.xp6(2),A.Q6J("ngForOf",A.lcZ(5,6,s.filteredPeers)),A.xp6(2),A.Q6J("ngIf",null==s.selectedPeer.errors?null:s.selectedPeer.errors.required),A.xp6(1),A.Q6J("ngIf",null==s.selectedPeer.errors?null:s.selectedPeer.errors.notfound)}}function e0(r,v){1&r&&A.GkF(0)}function n0(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount is required."),A.qZA())}function r0(r,v){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.hij("Amount must be less than or equal to ",t.totalBalance,".")}}function i0(r,v){if(1&r&&(A.TgZ(0,"mat-option",42),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function a0(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function o0(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",43),A.TgZ(1,"input",44,45),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().customFeeRate=G}),A.qZA(),A.YNc(3,a0,2,0,"mat-error",17),A.qZA()}if(2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngModel",t.customFeeRate)("step",.1)("min",0)("required","customperkb"===t.selFeeRate&&!t.flgMinConf),A.xp6(2),A.Q6J("ngIf","customperkb"===t.selFeeRate&&!t.flgMinConf&&!t.customFeeRate)}}function s0(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function l0(r,v){if(1&r&&(A.TgZ(0,"mat-option",42),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=v.$implicit;A.Q6J("value",t),A.xp6(1),A.hij("",A.lcZ(2,2,t.value)," Sats")}}function c0(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",22),A.TgZ(1,"mat-form-field",46),A.TgZ(2,"mat-select",47),A.NdJ("selectionChange",function(G){return A.CHM(t),A.oxw().onUTXOSelectionChange(G)})("valueChange",function(G){return A.CHM(t),A.oxw().selUTXOs=G}),A.TgZ(3,"mat-select-trigger"),A._uU(4),A.ALo(5,"number"),A.qZA(),A.YNc(6,l0,3,4,"mat-option",26),A.qZA(),A.qZA(),A.TgZ(7,"div",28),A.TgZ(8,"mat-slide-toggle",48),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().flgUseAllBalance=G})("change",function(){return A.CHM(t),A.oxw().onUTXOAllBalanceChange()}),A._uU(9," Use selected UTXOs balance "),A.qZA(),A.TgZ(10,"mat-icon",49),A._uU(11,"info_outline"),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=A.oxw();A.xp6(2),A.Q6J("value",t.selUTXOs),A.xp6(2),A.AsE("",A.lcZ(5,6,t.totalSelectedUTXOAmount)," Sats (",t.selUTXOs.length>1?t.selUTXOs.length+" UTXOs":"1 UTXO",")"),A.xp6(2),A.Q6J("ngForOf",t.utxos),A.xp6(2),A.Q6J("ngModel",t.flgUseAllBalance)("disabled",t.selUTXOs.length<1)}}function g0(r,v){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.channelConnectionError)}}function B0(r,v){if(1&r&&(A.TgZ(0,"div",50),A._UZ(1,"fa-icon",51),A.YNc(2,g0,2,1,"span",17),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.channelConnectionError)}}function u0(r,v){if(1&r&&(A.TgZ(0,"mat-expansion-panel",53),A.TgZ(1,"mat-expansion-panel-header"),A.TgZ(2,"mat-panel-title"),A.TgZ(3,"span"),A._uU(4,"Peer: \xa0"),A.qZA(),A.TgZ(5,"strong",54),A._uU(6),A.qZA(),A.qZA(),A.qZA(),A.TgZ(7,"div",9),A.TgZ(8,"div",0),A.TgZ(9,"div",1),A.TgZ(10,"h4",55),A._uU(11,"Pubkey"),A.qZA(),A.TgZ(12,"span",56),A._uU(13),A.qZA(),A.qZA(),A.qZA(),A._UZ(14,"mat-divider",57),A.TgZ(15,"div",0),A.TgZ(16,"div",58),A.TgZ(17,"h4",55),A._uU(18,"Address"),A.qZA(),A.TgZ(19,"span",59),A._uU(20),A.qZA(),A.qZA(),A.TgZ(21,"div",58),A.TgZ(22,"h4",55),A._uU(23,"Connected"),A.qZA(),A.TgZ(24,"span",59),A._uU(25),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&r){const t=A.oxw(2);A.xp6(6),A.Oqu((null==t.peer?null:t.peer.alias)||(null==t.peer?null:t.peer.id)),A.xp6(7),A.Oqu(t.peer.id),A.xp6(7),A.Oqu(null==t.peer?null:t.peer.netaddr),A.xp6(5),A.Oqu(t.peer.connected?"True":"False")}}function f0(r,v){if(1&r&&A.YNc(0,u0,26,4,"mat-expansion-panel",52),2&r){const t=A.oxw();A.Q6J("ngIf",t.peer)}}const yi=function(r,v){return{"mr-6":r,"mr-2":v}};let pe=(()=>{class r{constructor(t,s,G,DA,ht,Ce){this.dialogRef=t,this.data=s,this.store=G,this.actions=DA,this.decimalPipe=ht,this.commonService=Ce,this.selectedPeer=new OA.NI,this.faExclamationTriangle=h.eHv,this.isCompatibleVersion=!1,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=a.vn,this.selFeeRate="",this.customFeeRate=null,this.flgMinConf=!1,this.minConfValue=null,this.screenSize="",this.screenSizeEnum=a.cu,this.unSubs=[new c.x,new c.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.isCompatibleVersion=this.data.message.isCompatibleVersion,this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.utxos=this.data.message.utxos,this.alertTitle=this.data.alertTitle,this.peer=this.data.message.peer||null,this.peers=this.data.message.peers||[],this.actions.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(G=>G.type===a.AB.UPDATE_API_CALL_STATUS_CLN||G.type===a.AB.FETCH_CHANNELS_CLN)).subscribe(G=>{G.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&G.payload.status===a.Bn.ERROR&&"SaveNewChannel"===G.payload.action&&(this.channelConnectionError=G.payload.message),G.type===a.AB.FETCH_CHANNELS_CLN&&this.dialogRef.close()});let t="",s="";this.sortedPeers=this.peers.sort((G,DA)=>(t=G.alias?G.alias.toLowerCase():G.id?G.id.toLowerCase():"",s=DA.alias?DA.alias.toLowerCase():G.id.toLowerCase(),ts?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe((0,i.R)(this.unSubs[1]),(0,Di.O)(""),(0,Un.U)(G=>"string"==typeof G?G:G.alias?G.alias:G.id),(0,Un.U)(G=>G?this.filterPeers(G):this.sortedPeers.slice()))}filterPeers(t){return this.sortedPeers.filter(s=>0===s.alias.toLowerCase().indexOf(t?t.toLowerCase():""))}displayFn(t){return t&&t.alias?t.alias:t&&t.id?t.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 t=this.peers.filter(s=>s.alias.length===this.selectedPeer.value.length&&0===s.alias.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""));1===t.length&&t[0].id&&(this.selectedPubkey=t[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=!1,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.form.resetForm()}onAdvancedPanelToggle(t){t&&(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(s=>s.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"}onUTXOSelectionChange(t){const s={value:0};this.selUTXOs.length&&this.selUTXOs.length>0?(this.totalSelectedUTXOAmount=this.selUTXOs.reduce((G,DA)=>(s.value=G.value+DA.value,s)).value,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)return!0;const t={peerId:this.peer&&this.peer.id?this.peer.id:this.selectedPubkey,satoshis:this.flgUseAllBalance?"all":this.fundingAmount.toString(),announce:!this.isPrivate,minconf:this.flgMinConf?this.minConfValue:null};t.feeRate="customperkb"===this.selFeeRate&&!this.flgMinConf&&this.customFeeRate?1e3*this.customFeeRate+"perkb":this.selFeeRate,this.selUTXOs.length&&this.selUTXOs.length>0&&(t.utxos=[],this.selUTXOs.forEach(s=>t.utxos.push(s.txid+":"+s.output))),this.store.dispatch((0,ft.YX)({payload:t}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(u.yh),A.Y36(C.eX),A.Y36(Et.JJ),A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-open-channel"]],viewQuery:function(t,s){if(1&t&&A.Gf(Ki,7),2&t){let G;A.iGM(G=A.CRH())&&(s.form=G.first)}},decls:56,vars:34,consts:[["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","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column",3,"submit","reset"],["form","ngForm"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","70","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","1","required","","name","amount",3,"ngModel","step","min","max","disabled","ngModelChange"],["amount","ngModel"],["matSuffix",""],[4,"ngIf"],["fxFlex","25","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","isPrivate",3,"ngModel","ngModelChange"],["expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["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","54","fxLayoutAlign","space-between end"],["fxLayoutAlign","start center",3,"fxFlex"],["tabindex","4","placeholder","Fee Rate",3,"value","disabled","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48","fxLayoutAlign","end center",4,"ngIf"],["fxFlex","42","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","2","tabindex","5","color","primary","name","flgMinConf","fxLayoutAlign","stretch start",3,"ngModel","ngClass","ngModelChange","change"],["fxFlex","98"],["matInput","","placeholder","Min Confirmation Blocks","type","number","name","blocks","tabindex","8",3,"ngModel","step","min","required","disabled","ngModelChange"],["blocks","ngModel"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-sm","space-between center","fxLayout.gt-sm","row wrap",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","7","type","reset",1,"mr-1"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","9"],["peerDetailsExpansionBlock",""],["type","text","placeholder","Peer Alias","aria-label","Peers","matInput","","tabindex","1","required","",3,"formControl","matAutocomplete","change"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value"],["fxFlex","48","fxLayoutAlign","end center"],["matInput","","placeholder","Fee Rate (Sats/vByte)","type","number","name","custFeeRate","tabindex","4",3,"ngModel","step","min","required","ngModelChange"],["custFeeRate","ngModel"],["fxFlex","54","fxLayoutAlign","start end"],["tabindex","6","placeholder","Coin Selection","multiple","",3,"value","selectionChange","valueChange"],["tabindex","7","color","primary","name","flgUseAllBalance",3,"ngModel","disabled","ngModelChange","change"],["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",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["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(t,s){if(1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-card-header",2),A.TgZ(3,"div",3),A.TgZ(4,"span",4),A._uU(5),A.qZA(),A.qZA(),A.TgZ(6,"button",5),A.NdJ("click",function(){return s.onClose()}),A._uU(7,"X"),A.qZA(),A.qZA(),A.TgZ(8,"mat-card-content",6),A.TgZ(9,"form",7,8),A.NdJ("submit",function(){return s.onOpenChannel()})("reset",function(){return s.resetData()}),A.TgZ(11,"div",9),A.YNc(12,Na,8,8,"mat-form-field",10),A.qZA(),A.YNc(13,e0,1,0,"ng-container",11),A.TgZ(14,"div",9),A.TgZ(15,"div",12),A.TgZ(16,"mat-form-field",13),A.TgZ(17,"input",14,15),A.NdJ("ngModelChange",function(DA){return s.fundingAmount=DA}),A.qZA(),A.TgZ(19,"mat-hint"),A._uU(20),A.ALo(21,"number"),A.qZA(),A.TgZ(22,"span",16),A._uU(23," Sats "),A.qZA(),A.YNc(24,n0,2,0,"mat-error",17),A.YNc(25,r0,2,1,"mat-error",17),A.qZA(),A.TgZ(26,"div",18),A.TgZ(27,"mat-slide-toggle",19),A.NdJ("ngModelChange",function(DA){return s.isPrivate=DA}),A._uU(28,"Private Channel"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(29,"mat-expansion-panel",20),A.NdJ("closed",function(){return s.onAdvancedPanelToggle(!0)})("opened",function(){return s.onAdvancedPanelToggle(!1)}),A.TgZ(30,"mat-expansion-panel-header"),A.TgZ(31,"mat-panel-title"),A.TgZ(32,"span"),A._uU(33),A.qZA(),A.qZA(),A.qZA(),A.TgZ(34,"div",21),A.TgZ(35,"div",22),A.TgZ(36,"div",23),A.TgZ(37,"mat-form-field",24),A.TgZ(38,"mat-select",25),A.NdJ("valueChange",function(DA){return s.selFeeRate=DA})("selectionChange",function(){return s.customFeeRate=null}),A.YNc(39,i0,2,2,"mat-option",26),A.qZA(),A.qZA(),A.YNc(40,o0,4,5,"mat-form-field",27),A.qZA(),A.TgZ(41,"div",28),A.TgZ(42,"mat-checkbox",29),A.NdJ("ngModelChange",function(DA){return s.flgMinConf=DA})("change",function(){return s.flgMinConf?s.selFeeRate=null:s.minConfValue=null}),A.qZA(),A.TgZ(43,"mat-form-field",30),A.TgZ(44,"input",31,32),A.NdJ("ngModelChange",function(DA){return s.minConfValue=DA}),A.qZA(),A.YNc(46,s0,2,0,"mat-error",17),A.qZA(),A.qZA(),A.qZA(),A.YNc(47,c0,12,8,"div",33),A.qZA(),A.qZA(),A.qZA(),A.YNc(48,B0,3,2,"div",34),A.TgZ(49,"div",35),A.TgZ(50,"button",36),A._uU(51,"Clear Fields"),A.qZA(),A.TgZ(52,"button",37),A._uU(53,"Open Channel"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.YNc(54,f0,1,1,"ng-template",null,38,A.W1O)),2&t){const G=A.MAs(18),DA=A.MAs(55);A.xp6(5),A.Oqu(s.alertTitle),A.xp6(7),A.Q6J("ngIf",!s.peer&&s.peers&&s.peers.length>0),A.xp6(1),A.Q6J("ngTemplateOutlet",DA),A.xp6(4),A.Q6J("ngModel",s.fundingAmount)("step",1e3)("min",1)("max",s.totalBalance)("disabled",s.flgUseAllBalance),A.xp6(3),A.AsE("Remaining Bal: ",A.lcZ(21,29,s.totalBalance-(s.fundingAmount?s.fundingAmount:0)),"",s.flgUseAllBalance?". Amount replaced by UTXO balance":"",""),A.xp6(4),A.Q6J("ngIf",(null==G.errors?null:G.errors.required)||!s.fundingAmount),A.xp6(1),A.Q6J("ngIf",null==G.errors?null:G.errors.max),A.xp6(2),A.Q6J("ngModel",s.isPrivate),A.xp6(6),A.Oqu(s.advancedTitle),A.xp6(4),A.Q6J("fxFlex","customperkb"!==s.selFeeRate||s.flgMinConf?"100":"48"),A.xp6(1),A.Q6J("value",s.selFeeRate)("disabled",s.flgMinConf),A.xp6(1),A.Q6J("ngForOf",s.feeRateTypes),A.xp6(1),A.Q6J("ngIf","customperkb"===s.selFeeRate&&!s.flgMinConf),A.xp6(2),A.Q6J("ngModel",s.flgMinConf)("ngClass",A.WLB(31,yi,s.screenSize===s.screenSizeEnum.XS||s.screenSize===s.screenSizeEnum.SM,s.screenSize===s.screenSizeEnum.MD||s.screenSize===s.screenSizeEnum.LG||s.screenSize===s.screenSizeEnum.XL)),A.xp6(2),A.Q6J("ngModel",s.minConfValue)("step",1)("min",0)("required",s.flgMinConf)("disabled",!s.flgMinConf),A.xp6(2),A.Q6J("ngIf",s.flgMinConf&&!s.minConfValue),A.xp6(1),A.Q6J("ngIf",s.isCompatibleVersion),A.xp6(1),A.Q6J("ngIf",""!==s.channelConnectionError)}},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Y.lW,w.dn,OA._Y,OA.JL,OA.F,Et.O5,Et.tP,W.KE,Yt.Nt,OA.wV,OA.qQ,OA.Fd,OA.Fj,k.q,tr.F,OA.Q7,OA.JJ,OA.On,W.bx,W.R9,QA.Rr,ar.ib,ar.yz,ar.yK,R.gD,Et.sg,HA.oG,Et.mk,d.oO,H.h,vi.ZL,OA.oH,vi.XC,wA.ey,W.TO,R.$L,y.Hw,aA.gM,f.BN,AA.d],pipes:[Et.JJ,Et.Ov],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),r})();function ee(r,v){if(1&r&&(A.TgZ(0,"span",7),A._uU(1,"Open"),A.qZA()),2&r){const t=A.oxw();A.s9C("matBadge",t.openChannels)}}function h0(r,v){if(1&r&&(A.TgZ(0,"span",7),A._uU(1,"Pending/Inactive"),A.qZA()),2&r){const t=A.oxw();A.s9C("matBadge",t.pendingChannels)}}let Sa=(()=>{class r{constructor(t,s,G,DA){this.logger=t,this.store=s,this.commonService=G,this.router=DA,this.openChannels=0,this.pendingChannels=0,this.selNode={},this.information={},this.peers=[],this.utxos=[],this.totalBalance=0,this.links=[{link:"open",name:"Open"},{link:"pending",name:"Pending/Inactive"}],this.activeLink=0,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x]}ngOnInit(){this.activeLink=this.links.findIndex(t=>t.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(t=>t instanceof _t.Av)).subscribe({next:t=>{this.activeLink=this.links.findIndex(s=>s.link===t.urlAfterRedirects.substring(t.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(B.OL).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.selNode=t.nodeSettings,this.information=t.information,this.totalBalance=t.balance.totalBalance,this.logger.info(t)}),this.store.select(B.Wi).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.peers=t.peers}),this.store.select(B.T4).pipe((0,i.R)(this.unSubs[3])).subscribe(t=>{this.utxos=this.commonService.sortAscByKey(t.utxos.filter(s=>"confirmed"===s.status),"value")}),this.store.select(B.ZW).pipe((0,i.R)(this.unSubs[4])).subscribe(t=>{this.openChannels=t.activeChannels.length||0,this.pendingChannels=t.pendingChannels.length+t.inactiveChannels.length||0,this.logger.info(t)})}onOpenChannel(){const t={peers:this.peers,information:this.information,balance:this.totalBalance,utxos:this.utxos,isCompatibleVersion:this.commonService.isVersionCompatible(this.information.version,"0.9.0")&&this.commonService.isVersionCompatible(this.information.api_version,"0.4.0")};this.store.dispatch((0,kA.qR)({payload:{data:{alertTitle:"Open Channel",message:t,component:pe}}}))}onSelectedTabChange(t){this.router.navigateByUrl("/cln/connections/channels/"+this.links[t.index].link)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(e.v),A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channels-tables"]],decls:12,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,"my-2","bordered-box"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["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(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"button",2),A.NdJ("click",function(){return s.onOpenChannel()}),A._uU(3,"Open Channel"),A.qZA(),A.qZA(),A.TgZ(4,"div",3),A.TgZ(5,"mat-tab-group",4),A.NdJ("selectedIndexChange",function(DA){return s.activeLink=DA})("selectedTabChange",function(DA){return s.onSelectedTabChange(DA)}),A.TgZ(6,"mat-tab"),A.YNc(7,ee,2,1,"ng-template",5),A.qZA(),A.TgZ(8,"mat-tab"),A.YNc(9,h0,2,1,"ng-template",5),A.qZA(),A.qZA(),A.TgZ(10,"div",6),A._UZ(11,"router-outlet"),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(5),A.Q6J("selectedIndex",s.activeLink))},directives:[Ct.xw,Ct.yH,Ct.Wh,Y.lW,ut.SP,ut.uX,ut.uD,_t.lC,Oi.k],styles:[""]}),r})();function Xr(r,v){if(1&r&&(A.TgZ(0,"div"),A.TgZ(1,"div",9),A.TgZ(2,"div",1),A.TgZ(3,"h4",11),A._uU(4,"Funding Transaction Id"),A.qZA(),A.TgZ(5,"span",12),A._uU(6),A.qZA(),A.qZA(),A.qZA(),A._UZ(7,"mat-divider",13),A.qZA()),2&r){const t=A.oxw();A.xp6(6),A.Oqu(t.channel.funding_txid),A.xp6(1),A.Q6J("inset",!0)}}function Ua(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Show Advanced"),A.qZA())}function E0(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Hide Advanced"),A.qZA())}function w0(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"button",23),A.NdJ("copied",function(G){return A.CHM(t),A.oxw().onCopyChanID(G)}),A._uU(1,"Copy Short Channel ID"),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("payload",t.channel.short_channel_id)}}function Pa(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"button",24),A.NdJ("click",function(){return A.CHM(t),A.oxw().onClose()}),A._uU(1,"OK"),A.qZA()}}const C0=function(r){return{"xs-scroll-y":r}},En=function(r,v){return{"mt-2":r,"mt-1":v}};let xi=(()=>{class r{constructor(t,s,G,DA,ht){this.dialogRef=t,this.data=s,this.logger=G,this.commonService=DA,this.snackBar=ht,this.faReceipt=h.dLy,this.showAdvanced=!1,this.showCopy=!0,this.showCopyField=null,this.screenSize="",this.screenSizeEnum=a.cu}ngOnInit(){this.channel=this.data.channel,this.showCopy=this.data.showCopy,this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyChanID(t){this.snackBar.open("Short channel ID "+t+" copied."),this.logger.info("Copied Text: "+t)}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(E.mQ),A.Y36(e.v),A.Y36(Tr.ux))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-information"]],decls:94,vars:40,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-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","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"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["fxFlex","25"],[1,"overflow-wrap","foreground-secondary-text"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["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"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(t,s){if(1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-card-header",2),A.TgZ(3,"div",3),A._UZ(4,"fa-icon",4),A.TgZ(5,"span",5),A._uU(6,"Channel Information"),A.qZA(),A.qZA(),A.TgZ(7,"button",6),A.NdJ("click",function(){return s.onClose()}),A._uU(8,"X"),A.qZA(),A.qZA(),A.TgZ(9,"mat-card-content",7),A.TgZ(10,"div",8),A.TgZ(11,"div",9),A.TgZ(12,"div",10),A.TgZ(13,"h4",11),A._uU(14,"Short Channel ID"),A.qZA(),A.TgZ(15,"span",12),A._uU(16),A.qZA(),A.qZA(),A.TgZ(17,"div",10),A.TgZ(18,"h4",11),A._uU(19,"Peer Alias"),A.qZA(),A.TgZ(20,"span",12),A._uU(21),A.qZA(),A.qZA(),A.qZA(),A._UZ(22,"mat-divider",13),A.TgZ(23,"div",9),A.TgZ(24,"div",1),A.TgZ(25,"h4",11),A._uU(26,"Channel ID"),A.qZA(),A.TgZ(27,"span",12),A._uU(28),A.qZA(),A.qZA(),A.qZA(),A._UZ(29,"mat-divider",13),A.TgZ(30,"div",9),A.TgZ(31,"div",1),A.TgZ(32,"h4",11),A._uU(33,"Peer Public Key"),A.qZA(),A.TgZ(34,"span",12),A._uU(35),A.qZA(),A.qZA(),A.qZA(),A._UZ(36,"mat-divider",13),A.TgZ(37,"div",9),A.TgZ(38,"div",14),A.TgZ(39,"h4",11),A._uU(40,"mSatoshi to Us"),A.qZA(),A.TgZ(41,"span",15),A._uU(42),A.ALo(43,"number"),A.qZA(),A.qZA(),A.TgZ(44,"div",14),A.TgZ(45,"h4",11),A._uU(46,"Spendable (mSats)"),A.qZA(),A.TgZ(47,"span",15),A._uU(48),A.ALo(49,"number"),A.qZA(),A.qZA(),A.TgZ(50,"div",14),A.TgZ(51,"h4",11),A._uU(52,"Total (mSats)"),A.qZA(),A.TgZ(53,"span",15),A._uU(54),A.ALo(55,"number"),A.qZA(),A.qZA(),A.TgZ(56,"div",14),A.TgZ(57,"h4",11),A._uU(58,"State"),A.qZA(),A.TgZ(59,"span",15),A._uU(60),A.qZA(),A.qZA(),A.qZA(),A._UZ(61,"mat-divider",13),A.TgZ(62,"div",9),A.TgZ(63,"div",14),A.TgZ(64,"h4",11),A._uU(65,"Our Reserve (Sats)"),A.qZA(),A.TgZ(66,"span",15),A._uU(67),A.ALo(68,"number"),A.qZA(),A.qZA(),A.TgZ(69,"div",14),A.TgZ(70,"h4",11),A._uU(71,"Their Reserve (Sats)"),A.qZA(),A.TgZ(72,"span",15),A._uU(73),A.ALo(74,"number"),A.qZA(),A.qZA(),A.TgZ(75,"div",14),A.TgZ(76,"h4",11),A._uU(77,"Connected"),A.qZA(),A.TgZ(78,"span",15),A._uU(79),A.qZA(),A.qZA(),A.TgZ(80,"div",14),A.TgZ(81,"h4",11),A._uU(82,"Private"),A.qZA(),A.TgZ(83,"span",15),A._uU(84),A.qZA(),A.qZA(),A.qZA(),A._UZ(85,"mat-divider",13),A.YNc(86,Xr,8,2,"div",16),A.TgZ(87,"div",17),A.TgZ(88,"button",18),A.NdJ("click",function(){return s.onShowAdvanced()}),A.YNc(89,Ua,2,0,"p",19),A.YNc(90,E0,2,0,"ng-template",null,20,A.W1O),A.qZA(),A.YNc(92,w0,2,1,"button",21),A.YNc(93,Pa,2,0,"button",22),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t){const G=A.MAs(91);A.xp6(4),A.Q6J("icon",s.faReceipt),A.xp6(5),A.Q6J("ngClass",A.VKq(35,C0,s.screenSize===s.screenSizeEnum.XS)),A.xp6(7),A.Oqu(s.channel.short_channel_id),A.xp6(5),A.Oqu(s.channel.alias),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(s.channel.channel_id),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(s.channel.id),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(A.lcZ(43,25,s.channel.msatoshi_to_us)),A.xp6(6),A.Oqu(A.lcZ(49,27,s.channel.spendable_msatoshi)),A.xp6(6),A.Oqu(A.lcZ(55,29,s.channel.msatoshi_total)),A.xp6(6),A.Oqu(s.channel.state),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(A.lcZ(68,31,s.channel.our_channel_reserve_satoshis)),A.xp6(6),A.Oqu(A.lcZ(74,33,s.channel.their_channel_reserve_satoshis)),A.xp6(6),A.Oqu(s.channel.connected?"Yes":"No"),A.xp6(5),A.Oqu(s.channel.private?"Yes":"No"),A.xp6(1),A.Q6J("inset",!0),A.xp6(1),A.Q6J("ngIf",s.showAdvanced),A.xp6(1),A.Q6J("ngClass",A.WLB(37,En,!s.showAdvanced,s.showAdvanced)),A.xp6(2),A.Q6J("ngIf",!s.showAdvanced)("ngIfElse",G),A.xp6(3),A.Q6J("ngIf",s.showCopy),A.xp6(1),A.Q6J("ngIf",!s.showCopy)}},directives:[Ct.xw,Ct.Wh,Ct.yH,w.dk,f.BN,Y.lW,w.dn,Et.mk,d.oO,AA.d,Et.O5,H.h,Zr.y],pipes:[Et.JJ],styles:[""]}),r})();function Ra(r,v){1&r&&A._UZ(0,"mat-progress-bar",33)}function Fi(r,v){1&r&&(A.TgZ(0,"th",34),A._uU(1," Short Channel ID "),A.qZA())}function Q0(r,v){if(1&r&&(A.TgZ(0,"span",40),A._UZ(1,"fa-icon",41),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("icon",t.faEyeSlash)}}function Dr(r,v){if(1&r&&(A.TgZ(0,"span",42),A._UZ(1,"fa-icon",41),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("icon",t.faEye)}}const Wn=function(r){return{"max-width":r}};function lr(r,v){if(1&r&&(A.TgZ(0,"td",35),A.TgZ(1,"div",36),A.YNc(2,Q0,2,1,"span",37),A.YNc(3,Dr,2,1,"span",38),A.TgZ(4,"span",39),A._uU(5),A.qZA(),A.qZA(),A.qZA()),2&r){const t=v.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(4,Wn,s.screenSize===s.screenSizeEnum.XS?"12rem":"22rem")),A.xp6(1),A.Q6J("ngIf",t.private),A.xp6(1),A.Q6J("ngIf",!t.private),A.xp6(2),A.Oqu(null==t?null:t.short_channel_id)}}function cr(r,v){1&r&&(A.TgZ(0,"th",34),A._uU(1," Alias "),A.qZA())}function d0(r,v){if(1&r&&(A.TgZ(0,"td",35),A.TgZ(1,"div",36),A.TgZ(2,"span",39),A._uU(3),A.qZA(),A.qZA(),A.qZA()),2&r){const t=v.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(2,Wn,s.screenSize===s.screenSizeEnum.XS?"12rem":"22rem")),A.xp6(2),A.Oqu(null==t?null:t.alias)}}function M0(r,v){1&r&&(A.TgZ(0,"th",34),A._uU(1," Connected "),A.qZA())}function p0(r,v){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.connected?"Connected":"Disconnected"," ")}}function Yi(r,v){1&r&&(A.TgZ(0,"th",34),A._uU(1," Private "),A.qZA())}function I0(r,v){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.private?"Private":"Public"," ")}}function za(r,v){1&r&&(A.TgZ(0,"th",34),A._uU(1," State "),A.qZA())}function m0(r,v){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.state,"")}}function D0(r,v){1&r&&(A.TgZ(0,"th",43),A._uU(1," Local Balance (Sats) "),A.qZA())}function de(r,v){if(1&r&&(A.TgZ(0,"td",35),A.TgZ(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.hij(" ",A.xi3(3,1,(null==t?null:t.msatoshi_to_us)/1e3,(null==t?null:t.msatoshi_to_us)<1e3?"1.0-4":"1.0-0")," ")}}function La(r,v){1&r&&(A.TgZ(0,"th",43),A._uU(1," Remote Balance (Sats) "),A.qZA())}function v0(r,v){if(1&r&&(A.TgZ(0,"td",35),A.TgZ(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.hij(" ",A.xi3(3,1,(null==t?null:t.msatoshi_to_them)/1e3,(null==t?null:t.msatoshi_to_them)<1e3?"1.0-4":"1.0-0")," ")}}function y0(r,v){1&r&&(A.TgZ(0,"th",43),A._uU(1," Total mSatoshis "),A.qZA())}function ba(r,v){if(1&r&&(A.TgZ(0,"td",35),A.TgZ(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.msatoshi_total)," ")}}function x0(r,v){1&r&&(A.TgZ(0,"th",43),A._uU(1," Spendable Satoshi "),A.qZA())}function F0(r,v){if(1&r&&(A.TgZ(0,"td",35),A.TgZ(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.spendable_msatoshi)," ")}}function Y0(r,v){1&r&&(A.TgZ(0,"th",45),A._uU(1,"Balance Score "),A.qZA())}function Ga(r,v){if(1&r&&(A.TgZ(0,"td",46),A.TgZ(1,"div",47),A.TgZ(2,"mat-hint",48),A._uU(3),A.ALo(4,"number"),A.qZA(),A.qZA(),A._UZ(5,"mat-progress-bar",49),A.qZA()),2&r){const t=v.$implicit;A.xp6(3),A.Oqu(A.lcZ(4,2,t.balancedness||0)),A.xp6(2),A.s9C("value",t.msatoshi_to_us&&t.msatoshi_to_us>0?+t.msatoshi_to_us/(+t.msatoshi_to_us+ +t.msatoshi_to_them)*100:0)}}function Ti(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"th",50),A.TgZ(1,"div",51),A.TgZ(2,"mat-select",52),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",53),A.NdJ("click",function(){return A.CHM(t),A.oxw().onChannelUpdate("all")}),A._uU(5,"Update Fee Policy"),A.qZA(),A.TgZ(6,"mat-option",53),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(7,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function Ha(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",54),A.TgZ(1,"div",55),A.TgZ(2,"mat-select",56),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",53),A.NdJ("click",function(G){const ht=A.CHM(t).$implicit;return A.oxw().onChannelClick(ht,G)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",53),A.NdJ("click",function(){const DA=A.CHM(t).$implicit;return A.oxw().onViewRemotePolicy(DA)}),A._uU(7,"View Remote Fee"),A.qZA(),A.TgZ(8,"mat-option",53),A.NdJ("click",function(){const DA=A.CHM(t).$implicit;return A.oxw().onChannelUpdate(DA)}),A._uU(9,"Update Fee Policy"),A.qZA(),A.TgZ(10,"mat-option",53),A.NdJ("click",function(){const DA=A.CHM(t).$implicit;return A.oxw().onChannelClose(DA)}),A._uU(11,"Close Channel"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function T0(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No peers connected. Add a peer in order to open a channel."),A.qZA())}function N0(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No channel available."),A.qZA())}function S0(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting channels..."),A.qZA())}function U0(r,v){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function P0(r,v){if(1&r&&(A.TgZ(0,"td",57),A.YNc(1,T0,2,0,"p",58),A.YNc(2,N0,2,0,"p",58),A.YNc(3,S0,2,0,"p",58),A.YNc(4,U0,2,1,"p",58),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",t.numPeers<1&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",t.numPeers>0&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const R0=function(r){return{"display-none":r}};function z0(r,v){if(1&r&&A._UZ(0,"tr",59),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,R0,t.numPeers>0&&(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function Ni(r,v){1&r&&A._UZ(0,"tr",60)}function L0(r,v){1&r&&A._UZ(0,"tr",61)}const Wi=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},Ja=function(){return["no_peer"]};let b0=(()=>{class r{constructor(t,s,G,DA,ht,Ce){var un,Qe,An,ia;this.logger=t,this.store=s,this.rtlEffects=G,this.clnEffects=DA,this.commonService=ht,this.router=Ce,this.faEye=h.Mdf,this.faEyeSlash=h.Aq,this.totalBalance=0,this.displayedColumns=[],this.channelsData=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=a.vn,this.selFilter="",this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","msatoshi_to_us","msatoshi_to_them","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["short_channel_id","alias","msatoshi_to_us","msatoshi_to_them","actions"]):(this.flgSticky=!0,this.displayedColumns=["short_channel_id","alias","msatoshi_to_us","msatoshi_to_them","balancedness","actions"]),this.selFilter=(null===(Qe=null===(un=this.router.getCurrentNavigation().extras)||void 0===un?void 0:un.state)||void 0===Qe?void 0:Qe.filter)?null===(ia=null===(An=this.router.getCurrentNavigation().extras)||void 0===An?void 0:An.state)||void 0===ia?void 0:ia.filter:""}ngOnInit(){this.store.select(B.jK).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.information=t.information,this.numPeers=t.numPeers,this.totalBalance=t.balance.totalBalance,this.logger.info(t)}),this.store.select(B.ZW).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.channelsData=t.activeChannels,this.channelsData.length>0&&this.loadChannelsTable(this.channelsData),this.logger.info(t)})}ngAfterViewInit(){this.channelsData.length>0&&this.loadChannelsTable(this.channelsData)}onViewRemotePolicy(t){this.store.dispatch((0,ft.$A)({payload:{uiMessage:a.m6.GET_REMOTE_POLICY,shortChannelID:t.short_channel_id,showError:!0}})),this.clnEffects.setLookupCL.pipe((0,UA.q)(1)).subscribe(s=>{if(0===s.length)return!1;let G={};G=s[0].source!==this.information.id?s[0]:s[1];const DA=[[{key:"base_fee_millisatoshi",value:G.base_fee_millisatoshi,title:"Base Fees (mSats)",width:34,type:a.Gi.NUMBER},{key:"fee_per_millionth",value:G.fee_per_millionth,title:"Fee/Millionth",width:33,type:a.Gi.NUMBER},{key:"delay",value:G.delay,title:"Delay",width:33,type:a.Gi.NUMBER}]],ht="Remote policy for Channel: "+(t.alias||t.short_channel_id?t.alias&&t.short_channel_id?t.alias+" ("+t.short_channel_id+")":t.alias?t.alias:t.short_channel_id:t.channel_id);setTimeout(()=>{this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Remote Channel Policy",titleMessage:ht,message:DA}}}))},0)})}onChannelUpdate(t){"all"!==t&&"ONCHAIN"===t.state||("all"===t?(this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.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:"number",inputValue:1e3,width:48},{placeholder:"Fee Rate (mili mSats)",inputType:"number",inputValue:1,min:1,width:48,hintFunction:this.percentHintFunction}]}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[1])).subscribe(G=>{G&&this.store.dispatch((0,ft.pW)({payload:{baseFeeMsat:G[0].inputValue,feeRate:G[1].inputValue,channelId:"all"}}))})):(this.myChanPolicy={fee_base_msat:0,fee_rate_milli_msat:0},this.store.dispatch((0,ft.$A)({payload:{uiMessage:a.m6.GET_CHAN_POLICY,shortChannelID:t.short_channel_id,showError:!1}})),this.clnEffects.setLookupCL.pipe((0,UA.q)(1)).subscribe(s=>{this.myChanPolicy=s.length>0&&s[0].source===this.information.id?{fee_base_msat:s[0].base_fee_millisatoshi,fee_rate_milli_msat:s[0].fee_per_millionth}:s.length>1&&s[1].source===this.information.id?{fee_base_msat:s[1].base_fee_millisatoshi,fee_rate_milli_msat:s[1].fee_per_millionth}:{fee_base_msat:0,fee_rate_milli_msat:0},this.logger.info(this.myChanPolicy);const G="Update fee policy for Channel: "+(t.alias||t.short_channel_id?t.alias&&t.short_channel_id?t.alias+" ("+t.short_channel_id+")":t.alias?t.alias:t.short_channel_id:t.channel_id),DA=[];setTimeout(()=>{this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update",message:DA,titleMessage:G,flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSats)",inputType:"number",inputValue:""===this.myChanPolicy.fee_base_msat?0:this.myChanPolicy.fee_base_msat,width:48},{placeholder:"Fee Rate (mili mSats)",inputType:"number",inputValue:this.myChanPolicy.fee_rate_milli_msat,min:1,width:48,hintFunction:this.percentHintFunction}]}}}))},0)}),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[2])).subscribe(s=>{s&&this.store.dispatch((0,ft.pW)({payload:{baseFeeMsat:s[0].inputValue,feeRate:s[1].inputValue,channelId:t.channel_id}}))})),this.applyFilter())}percentHintFunction(t){return(t/1e4).toString()+"%"}onChannelClose(t){this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Close Channel",titleMessage:"Closing channel: "+(t.alias||t.short_channel_id?t.alias&&t.short_channel_id?t.alias+" ("+t.short_channel_id+")":t.alias?t.alias:t.short_channel_id:t.channel_id),noBtnText:"Cancel",yesBtnText:"Close Channel"}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[3])).subscribe(s=>{s&&this.store.dispatch((0,ft.BL)({payload:{id:t.id,channelId:t.channel_id,force:!1}}))})}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}onChannelClick(t,s){this.store.dispatch((0,kA.qR)({payload:{data:{channel:t,showCopy:!0,component:xi}}}))}loadChannelsTable(t){t.sort((s,G)=>s.active===G.active?0:G.active?1:-1),this.channels=new yA.by([...t]),this.channels.filterPredicate=(s,G)=>((s.connected?"connected":"disconnected")+(s.channel_id?s.channel_id.toLowerCase():"")+(s.short_channel_id?s.short_channel_id.toLowerCase():"")+(s.id?s.id.toLowerCase():"")+(s.alias?s.alias.toLowerCase():"")+(s.private?"private":"public")+(s.state?s.state.toLowerCase():"")+(s.funding_txid?s.funding_txid.toLowerCase():"")+(s.msatoshi_to_us?s.msatoshi_to_us:"")+(s.msatoshi_total?s.msatoshi_total:"")+(s.their_channel_reserve_satoshis?s.their_channel_reserve_satoshis:"")+(s.our_channel_reserve_satoshis?s.our_channel_reserve_satoshis:"")+(s.spendable_msatoshi?s.spendable_msatoshi:"")).includes(G),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(s,G)=>s[G]&&isNaN(s[G])?s[G].toLocaleLowerCase():s[G]?+s[G]:null,this.channels.paginator=this.paginator,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(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(At.V),A.Y36(In.J),A.Y36(e.v),A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-open-table"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(VA.NW,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.sort=G.first),A.iGM(G=A.CRH())&&(s.paginator=G.first)}},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Channels")}])],decls:48,vars:14,consts:[["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","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["mode","indeterminate",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100",3,"perfectScrollbar"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","short_channel_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","connected"],["matColumnDef","private"],["matColumnDef","state"],["matColumnDef","msatoshi_to_us"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi_to_them"],["matColumnDef","msatoshi_total"],["matColumnDef","spendable_msatoshi"],["matColumnDef","balancedness"],["mat-header-cell","","mat-sort-header","","class","pl-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pl-1",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["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"],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-3"],["mat-cell","",1,"pl-3"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-1"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["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(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A._UZ(2,"div",2),A.TgZ(3,"mat-form-field",3),A.TgZ(4,"input",4),A.NdJ("keyup",function(){return s.applyFilter()})("ngModelChange",function(DA){return s.selFilter=DA}),A.qZA(),A.qZA(),A.qZA(),A.YNc(5,Ra,1,0,"mat-progress-bar",5),A.TgZ(6,"div",6),A.TgZ(7,"table",7,8),A.ynx(9,9),A.YNc(10,Fi,2,0,"th",10),A.YNc(11,lr,6,6,"td",11),A.BQk(),A.ynx(12,12),A.YNc(13,cr,2,0,"th",10),A.YNc(14,d0,4,4,"td",11),A.BQk(),A.ynx(15,13),A.YNc(16,M0,2,0,"th",10),A.YNc(17,p0,2,1,"td",11),A.BQk(),A.ynx(18,14),A.YNc(19,Yi,2,0,"th",10),A.YNc(20,I0,2,1,"td",11),A.BQk(),A.ynx(21,15),A.YNc(22,za,2,0,"th",10),A.YNc(23,m0,2,1,"td",11),A.BQk(),A.ynx(24,16),A.YNc(25,D0,2,0,"th",17),A.YNc(26,de,4,4,"td",11),A.BQk(),A.ynx(27,18),A.YNc(28,La,2,0,"th",17),A.YNc(29,v0,4,4,"td",11),A.BQk(),A.ynx(30,19),A.YNc(31,y0,2,0,"th",17),A.YNc(32,ba,4,3,"td",11),A.BQk(),A.ynx(33,20),A.YNc(34,x0,2,0,"th",17),A.YNc(35,F0,4,3,"td",11),A.BQk(),A.ynx(36,21),A.YNc(37,Y0,2,0,"th",22),A.YNc(38,Ga,6,4,"td",23),A.BQk(),A.ynx(39,24),A.YNc(40,Ti,8,0,"th",25),A.YNc(41,Ha,12,0,"td",26),A.BQk(),A.ynx(42,27),A.YNc(43,P0,5,4,"td",28),A.BQk(),A.YNc(44,z0,1,3,"tr",29),A.YNc(45,Ni,1,0,"tr",30),A.YNc(46,L0,1,0,"tr",31),A.qZA(),A.qZA(),A._UZ(47,"mat-paginator",32),A.qZA()),2&t&&(A.xp6(4),A.Q6J("ngModel",s.selFilter),A.xp6(1),A.Q6J("ngIf",s.apiCallStatus.status===s.apiCallStatusEnum.INITIATED),A.xp6(2),A.Q6J("dataSource",s.channels)("ngClass",A.VKq(11,Wi,""!==s.errorMessage)),A.xp6(37),A.Q6J("matFooterRowDef",A.DdM(13,Ja)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[Ct.xw,Ct.Wh,Ct.yH,W.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,Et.O5,lA.$V,yA.BZ,rt.YE,Et.mk,d.oO,yA.w1,yA.fO,yA.Dz,yA.mD,yA.Ke,yA.as,yA.nj,VA.NW,T.pW,yA.ge,rt.nU,yA.ev,Et.PC,d.Zl,aA.gM,f.BN,W.bx,R.gD,R.$L,wA.ey,yA.yh,yA.Q2,yA.XQ,yA.Gk],pipes:[Et.JJ],styles:[".mat-column-short_channel_id[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-short_channel_id[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-alias[_ngcontent-%COMP%]{flex:0 0 20%;width:20%}.mat-column-alias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:3rem;flex:0 0 22%;width:22%}.mat-column-state[_ngcontent-%COMP%], .mat-column-msatoshi_to_us[_ngcontent-%COMP%], .mat-column-msatoshi_to_them[_ngcontent-%COMP%]{flex:1 1 15%;width:15%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media only screen and (max-width: 37.5em){.mat-column-state[_ngcontent-%COMP%], .mat-column-msatoshi_to_us[_ngcontent-%COMP%], .mat-column-msatoshi_to_them[_ngcontent-%COMP%]{white-space:unset}}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 100%}@media only screen and (max-width: 37.5em){.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 80%}}"]}),r})();const qr=["outputIdx"];function wn(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Output Index required."),A.qZA())}function Si(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Invalid index value."),A.qZA())}function Oa(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fees is required."),A.qZA())}function G0(r,v){if(1&r&&(A.TgZ(0,"div",27),A._UZ(1,"fa-icon",13),A.TgZ(2,"span"),A._uU(3),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(2),A.Oqu(t.bumpFeeError)}}let H0=(()=>{class r{constructor(t,s,G,DA,ht,Ce){this.actions=t,this.dialogRef=s,this.data=G,this.store=DA,this.logger=ht,this.snackBar=Ce,this.newAddress="",this.fees=null,this.outputIndex=null,this.faCopy=h.kZ_,this.faInfoCircle=h.sqG,this.faExclamationTriangle=h.eHv,this.bumpFeeError="",this.unSubs=[new c.x,new c.x]}set payReq(t){t&&(this.outputIdx=t)}ngOnInit(){this.bumpFeeChannel=this.data.channel}onBumpFee(){if(!this.outputIndex&&0!==this.outputIndex||!this.fees)return!0;this.bumpFeeError="",this.store.dispatch((0,ft._E)({payload:a._t[0]})),this.actions.pipe((0,JA.h)(t=>t.type===a.AB.SET_NEW_ADDRESS_CLN),(0,UA.q)(1)).subscribe(t=>{this.store.dispatch((0,ft.Wi)({payload:{address:t.payload,satoshis:"all",feeRate:this.fees,utxos:[this.bumpFeeChannel.funding_txid+":"+this.outputIndex.toString()]}}))}),this.actions.pipe((0,JA.h)(t=>t.type===a.AB.SET_CHANNEL_TRANSACTION_RES_CLN),(0,UA.q)(1)).subscribe(t=>{this.store.dispatch((0,kA.jW)({payload:"Successfully bumped the fee. Use the block explorer to verify transaction."})),this.dialogRef.close()}),this.actions.pipe((0,JA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN),(0,i.R)(this.unSubs[0])).subscribe(t=>{t.payload.status===a.Bn.ERROR&&("SetChannelTransaction"===t.payload.action||"GenerateNewAddress"===t.payload.action)&&(this.logger.error(t.payload.message),this.bumpFeeError=t.payload.message)})}onCopyID(t){this.snackBar.open("Transaction ID copied.")}resetData(){this.bumpFeeError="",this.fees=null,this.outputIndex=null,this.outputIdx.control.setErrors(null)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(C.eX),A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(u.yh),A.Y36(E.mQ),A.Y36(Tr.ux))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-bump-fee"]],viewQuery:function(t,s){if(1&t&&A.Gf(qr,5),2&t){let G;A.iGM(G=A.CRH())&&(s.payReq=G.first)}},decls:47,vars:15,consts:[["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","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"],["matSuffix","","rtlClipboard","","matTooltip","Copy transaction ID",1,"ml-1",3,"icon","payload","copied"],["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"],[1,"pl-1"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","49"],["autoFocus","","matInput","","placeholder","Output Index","type","number","tabindex","1","required","","name","outputIdx",3,"ngModel","step","min","ngModelChange"],["outputIdx","ngModel"],[4,"ngIf"],["matInput","","placeholder","Fees (Sats/vByte)","type","number","name","fees","required","","tabindex","4",3,"ngModel","step","min","ngModelChange"],["fee","ngModel"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","tabindex","5","default","",1,"mr-1",3,"click"],["mat-button","","color","primary","type","submit","tabindex","6",3,"click"],["fxFlex","100",1,"alert","alert-danger","mt-1"]],template:function(t,s){if(1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-card-header",2),A.TgZ(3,"div",3),A.TgZ(4,"span",4),A._uU(5,"Bump Fee"),A.qZA(),A.qZA(),A.TgZ(6,"button",5),A.NdJ("click",function(){return s.onClose()}),A._uU(7,"X"),A.qZA(),A.qZA(),A.TgZ(8,"mat-card-content",6),A.TgZ(9,"form",7),A.TgZ(10,"div",8),A.TgZ(11,"p",9),A._uU(12),A.TgZ(13,"fa-icon",10),A.NdJ("copied",function(DA){return s.onCopyID(DA)}),A.qZA(),A.qZA(),A.TgZ(14,"div",11),A.TgZ(15,"div",12),A._UZ(16,"fa-icon",13),A.TgZ(17,"span",14),A._uU(18,"Bumping fee on pending open channels is an advanced feature, attempt it only if you are familiar with the functionality of Bitcoin transactions. "),A.TgZ(19,"div"),A._uU(20,"Before attempting fee bump ensure the following:"),A.qZA(),A.TgZ(21,"div",15),A._uU(22,"1: Use a Bitcoin block explorer to ensure that channel opening transaction is not confirmed."),A.qZA(),A.TgZ(23,"div",15),A._uU(24,"2: The channel opening transaction must have a sizable change output, which can be spent further. The fee cannot be bumped without the change output."),A.qZA(),A.TgZ(25,"div",15),A._uU(26,"3: Find the index value of the change output via a block explorer."),A.qZA(),A.TgZ(27,"div",15),A._uU(28,"4: Enter the index value of the change output in the form below and the desired fee rate."),A.qZA(),A.TgZ(29,"div",15),A._uU(30,"5: Upon successful fee bump, use your block explorer to track the child transaction in the mempool, which should be linked with the change output transaction."),A.qZA(),A.qZA(),A.qZA(),A.TgZ(31,"div",16),A.TgZ(32,"mat-form-field",17),A.TgZ(33,"input",18,19),A.NdJ("ngModelChange",function(DA){return s.outputIndex=DA}),A.qZA(),A.YNc(35,wn,2,0,"mat-error",20),A.YNc(36,Si,2,0,"mat-error",20),A.qZA(),A.TgZ(37,"mat-form-field",17),A.TgZ(38,"input",21,22),A.NdJ("ngModelChange",function(DA){return s.fees=DA}),A.qZA(),A.YNc(40,Oa,2,0,"mat-error",20),A.qZA(),A.qZA(),A.YNc(41,G0,4,2,"div",23),A.qZA(),A.qZA(),A.TgZ(42,"div",24),A.TgZ(43,"button",25),A.NdJ("click",function(){return s.resetData()}),A._uU(44,"Clear"),A.qZA(),A.TgZ(45,"button",26),A.NdJ("click",function(){return s.onBumpFee()}),A._uU(46),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t){const G=A.MAs(34);A.xp6(12),A.hij("Bump fee for transaction id: ",null==s.bumpFeeChannel?null:s.bumpFeeChannel.funding_txid," "),A.xp6(1),A.Q6J("icon",s.faCopy)("payload",null==s.bumpFeeChannel?null:s.bumpFeeChannel.funding_txid),A.xp6(3),A.Q6J("icon",s.faInfoCircle),A.xp6(17),A.Q6J("ngModel",s.outputIndex)("step",1)("min",0),A.xp6(2),A.Q6J("ngIf",null==G.errors?null:G.errors.required),A.xp6(1),A.Q6J("ngIf",null==G.errors?null:G.errors.pendingChannelOutputIndex),A.xp6(2),A.Q6J("ngModel",s.fees)("step",1)("min",0),A.xp6(2),A.Q6J("ngIf",!s.fees),A.xp6(1),A.Q6J("ngIf",""!==s.bumpFeeError),A.xp6(5),A.Oqu(""!==s.bumpFeeError?"Retry Bump Fee":"Bump Fee")}},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Y.lW,w.dn,OA._Y,OA.JL,OA.F,f.BN,W.R9,Zr.y,aA.gM,W.KE,Yt.Nt,OA.wV,OA.qQ,OA.Fj,k.q,H.h,OA.Q7,OA.JJ,OA.On,Et.O5,W.TO],styles:[""]}),r})();function J0(r,v){1&r&&A._UZ(0,"mat-progress-bar",30)}function O0(r,v){1&r&&(A.TgZ(0,"th",31),A._uU(1," Short Channel ID "),A.qZA())}function k0(r,v){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.short_channel_id,"")}}function j0(r,v){1&r&&(A.TgZ(0,"th",31),A._uU(1," Alias "),A.qZA())}function Z0(r,v){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(null==t?null:t.alias)}}function K0(r,v){1&r&&(A.TgZ(0,"th",31),A._uU(1," Connected "),A.qZA())}function ka(r,v){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.connected?"Connected":"Disconnected"," ")}}function V0(r,v){1&r&&(A.TgZ(0,"th",31),A._uU(1," Private "),A.qZA())}function W0(r,v){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.private?"Private":"Public"," ")}}function X0(r,v){1&r&&(A.TgZ(0,"th",31),A._uU(1," State "),A.qZA())}const gr=function(r){return{"max-width":r}};function q0(r,v){if(1&r&&(A.TgZ(0,"td",33),A._uU(1),A.qZA()),2&r){const t=v.$implicit,s=A.oxw();A.Q6J("ngStyle",A.VKq(2,gr,s.screenSize===s.screenSizeEnum.XS?"10rem":"")),A.xp6(1),A.hij(" ",s.CLNChannelPendingState[null==t?null:t.state]," ")}}function Ui(r,v){1&r&&(A.TgZ(0,"th",34),A._uU(1," mSatoshi To Us "),A.qZA())}function _0(r,v){if(1&r&&(A.TgZ(0,"td",32),A.TgZ(1,"span",35),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.msatoshi_to_us)," ")}}function $0(r,v){1&r&&(A.TgZ(0,"th",34),A._uU(1," Total (Sats) "),A.qZA())}function Al(r,v){if(1&r&&(A.TgZ(0,"td",32),A.TgZ(1,"span",35),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,(null==t?null:t.msatoshi_total)/1e3)," ")}}function ja(r,v){1&r&&(A.TgZ(0,"th",34),A._uU(1," Spendable Satoshi "),A.qZA())}function tl(r,v){if(1&r&&(A.TgZ(0,"td",32),A.TgZ(1,"span",35),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.spendable_msatoshi)," ")}}function el(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"th",36),A.TgZ(1,"div",37),A.TgZ(2,"mat-select",38),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",39),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function nl(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",39),A.NdJ("click",function(){A.CHM(t);const G=A.oxw().$implicit;return A.oxw().onChannelClose(G)}),A._uU(1,"Close Channel"),A.qZA()}}function rl(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",39),A.NdJ("click",function(){A.CHM(t);const G=A.oxw().$implicit;return A.oxw().onBumpFee(G)}),A._uU(1,"Bump Fee"),A.qZA()}}function Za(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",40),A.TgZ(1,"div",37),A.TgZ(2,"mat-select",41),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",39),A.NdJ("click",function(G){const ht=A.CHM(t).$implicit;return A.oxw().onChannelClick(ht,G)}),A._uU(5,"View Info"),A.qZA(),A.YNc(6,nl,2,0,"mat-option",42),A.YNc(7,rl,2,0,"mat-option",42),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=v.$implicit,s=A.oxw();A.xp6(6),A.Q6J("ngIf",s.isCompatibleVersion&&("CHANNELD_SHUTTING_DOWN"===t.state||"CLOSINGD_SIGEXCHANGE"===t.state||!t.connected&&"CHANNELD_NORMAL"===t.state)),A.xp6(1),A.Q6J("ngIf","CHANNELD_AWAITING_LOCKIN"===t.state)}}function il(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No peers connected. Add a peer in order to open a channel."),A.qZA())}function Ka(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No pending/inactive channel available."),A.qZA())}function Va(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting pending/inactive channels..."),A.qZA())}function Wa(r,v){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function al(r,v){if(1&r&&(A.TgZ(0,"td",43),A.YNc(1,il,2,0,"p",44),A.YNc(2,Ka,2,0,"p",44),A.YNc(3,Va,2,0,"p",44),A.YNc(4,Wa,2,1,"p",44),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",t.numPeers<1&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",t.numPeers>0&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const ol=function(r){return{"display-none":r}};function sl(r,v){if(1&r&&A._UZ(0,"tr",45),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,ol,t.numPeers>0&&(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function ll(r,v){1&r&&A._UZ(0,"tr",46)}function cl(r,v){1&r&&A._UZ(0,"tr",47)}const Xa=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},gl=function(){return["no_peer"]};let Bl=(()=>{class r{constructor(t,s,G,DA){this.logger=t,this.store=s,this.rtlEffects=G,this.commonService=DA,this.isCompatibleVersion=!1,this.totalBalance=0,this.displayedColumns=[],this.channelsData=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=a.vn,this.selFilter="",this.flgSticky=!1,this.CLNChannelPendingState=a.Zs,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","state","actions"]):this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","connected","state","actions"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","connected","state","msatoshi_total","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","connected","state","msatoshi_total","actions"])}ngOnInit(){this.store.select(B.jK).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.information=t.information,this.information.api_version&&(this.isCompatibleVersion=this.commonService.isVersionCompatible(this.information.api_version,"0.4.2")),this.numPeers=t.numPeers,this.totalBalance=t.balance.totalBalance,this.logger.info(t)}),this.store.select(B.ZW).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.channelsData=[...t.pendingChannels,...t.inactiveChannels],this.channelsData=this.channelsData.sort((s,G)=>this.CLNChannelPendingState[s.state]>=this.CLNChannelPendingState[G.state]?1:-1),this.channelsData&&this.channelsData.length>0&&this.loadChannelsTable(this.channelsData),this.logger.info(t)})}ngAfterViewInit(){this.channelsData&&this.channelsData.length>0&&this.loadChannelsTable(this.channelsData)}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}onBumpFee(t){this.store.dispatch((0,kA.qR)({payload:{data:{channel:t,component:H0}}}))}onChannelClick(t,s){this.store.dispatch((0,kA.qR)({payload:{data:{channel:t,showCopy:!0,component:xi}}}))}onChannelClose(t){this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Force Close Channel",titleMessage:"Force closing channel: "+(t.alias||t.short_channel_id?t.alias&&t.short_channel_id?t.alias+" ("+t.short_channel_id+")":t.alias?t.alias:t.short_channel_id:t.channel_id),noBtnText:"Cancel",yesBtnText:"Force Close"}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[2])).subscribe(s=>{s&&this.store.dispatch((0,ft.BL)({payload:{id:t.id,channelId:t.channel_id,force:!0}}))})}loadChannelsTable(t){t.sort((s,G)=>s.active===G.active?0:G.active?1:-1),this.channels=new yA.by([...t]),this.channels.filterPredicate=(s,G)=>((s.connected?"connected":"disconnected")+(s.channel_id?s.channel_id.toLowerCase():"")+(s.short_channel_id?s.short_channel_id.toLowerCase():"")+(s.id?s.id.toLowerCase():"")+(s.alias?s.alias.toLowerCase():"")+(s.private?"private":"public")+(s.state&&this.CLNChannelPendingState[s.state]?this.CLNChannelPendingState[s.state].toLowerCase():"")+(s.funding_txid?s.funding_txid.toLowerCase():"")+(s.msatoshi_to_us?s.msatoshi_to_us:"")+(s.msatoshi_total?s.msatoshi_total:"")+(s.their_channel_reserve_satoshis?s.their_channel_reserve_satoshis:"")+(s.our_channel_reserve_satoshis?s.our_channel_reserve_satoshis:"")+(s.spendable_msatoshi?s.spendable_msatoshi:"")).includes(G),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(s,G)=>"state"===G?this.CLNChannelPendingState[s.state]:s[G]&&isNaN(s[G])?s[G].toLocaleLowerCase():s[G]?+s[G]:null,this.channels.paginator=this.paginator,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(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(At.V),A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-pending-table"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(VA.NW,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.sort=G.first),A.iGM(G=A.CRH())&&(s.paginator=G.first)}},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Channels")}])],decls:42,vars:14,consts:[["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","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["mode","indeterminate",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100",3,"perfectScrollbar"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","short_channel_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","connected"],["matColumnDef","private"],["matColumnDef","state"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","msatoshi_to_us"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi_total"],["matColumnDef","spendable_msatoshi"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pr-3",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pr-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pr-3"],["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(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A._UZ(2,"div",2),A.TgZ(3,"mat-form-field",3),A.TgZ(4,"input",4),A.NdJ("keyup",function(){return s.applyFilter()})("ngModelChange",function(DA){return s.selFilter=DA}),A.qZA(),A.qZA(),A.qZA(),A.YNc(5,J0,1,0,"mat-progress-bar",5),A.TgZ(6,"div",6),A.TgZ(7,"table",7,8),A.ynx(9,9),A.YNc(10,O0,2,0,"th",10),A.YNc(11,k0,2,1,"td",11),A.BQk(),A.ynx(12,12),A.YNc(13,j0,2,0,"th",10),A.YNc(14,Z0,2,1,"td",11),A.BQk(),A.ynx(15,13),A.YNc(16,K0,2,0,"th",10),A.YNc(17,ka,2,1,"td",11),A.BQk(),A.ynx(18,14),A.YNc(19,V0,2,0,"th",10),A.YNc(20,W0,2,1,"td",11),A.BQk(),A.ynx(21,15),A.YNc(22,X0,2,0,"th",10),A.YNc(23,q0,2,4,"td",16),A.BQk(),A.ynx(24,17),A.YNc(25,Ui,2,0,"th",18),A.YNc(26,_0,4,3,"td",11),A.BQk(),A.ynx(27,19),A.YNc(28,$0,2,0,"th",18),A.YNc(29,Al,4,3,"td",11),A.BQk(),A.ynx(30,20),A.YNc(31,ja,2,0,"th",18),A.YNc(32,tl,4,3,"td",11),A.BQk(),A.ynx(33,21),A.YNc(34,el,6,0,"th",22),A.YNc(35,Za,8,2,"td",23),A.BQk(),A.ynx(36,24),A.YNc(37,al,5,4,"td",25),A.BQk(),A.YNc(38,sl,1,3,"tr",26),A.YNc(39,ll,1,0,"tr",27),A.YNc(40,cl,1,0,"tr",28),A.qZA(),A.qZA(),A._UZ(41,"mat-paginator",29),A.qZA()),2&t&&(A.xp6(4),A.Q6J("ngModel",s.selFilter),A.xp6(1),A.Q6J("ngIf",s.apiCallStatus.status===s.apiCallStatusEnum.INITIATED),A.xp6(2),A.Q6J("dataSource",s.channels)("ngClass",A.VKq(11,Xa,""!==s.errorMessage)),A.xp6(31),A.Q6J("matFooterRowDef",A.DdM(13,gl)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[Ct.xw,Ct.Wh,Ct.yH,W.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,Et.O5,lA.$V,yA.BZ,rt.YE,Et.mk,d.oO,yA.w1,yA.fO,yA.Dz,yA.mD,yA.Ke,yA.as,yA.nj,VA.NW,T.pW,yA.ge,rt.nU,yA.ev,Et.PC,d.Zl,R.gD,R.$L,wA.ey,yA.yh,yA.Q2,yA.XQ,yA.Gk],pipes:[Et.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-state[_ngcontent-%COMP%]{flex:1 1 15%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),r})();const ul=["peersForm"],fl=["stepper"];function hl(r,v){if(1&r&&A._uU(0),2&r){const t=A.oxw();A.Oqu(t.peerFormLabel)}}function El(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Address is required."),A.qZA())}function qa(r,v){if(1&r&&(A.TgZ(0,"div",40),A._UZ(1,"fa-icon",41),A.TgZ(2,"span"),A._uU(3),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(2),A.Oqu(t.peerConnectionError)}}function _a(r,v){if(1&r&&A._uU(0),2&r){const t=A.oxw();A.Oqu(t.channelFormLabel)}}function wl(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount is required."),A.qZA())}function Cl(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount must be a positive number."),A.qZA())}function Ql(r,v){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.hij("Amount must be less than or equal to ",t.totalBalance,".")}}function on(r,v){if(1&r&&(A.TgZ(0,"mat-option",42),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function vr(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function dl(r,v){if(1&r&&(A.TgZ(0,"mat-form-field",43),A._UZ(1,"input",44),A.YNc(2,vr,2,0,"mat-error",14),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("step",.1)("min",0),A.xp6(1),A.Q6J("ngIf","customperkb"===t.channelFormGroup.controls.selFeeRate.value&&!t.channelFormGroup.controls.flgMinConf.value&&!t.channelFormGroup.controls.customFeeRate.value)}}function $a(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function Ml(r,v){if(1&r&&(A.TgZ(0,"div",40),A._UZ(1,"fa-icon",41),A.TgZ(2,"span"),A._uU(3),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(2),A.Oqu(t.channelConnectionError)}}const pl=function(r,v){return{"mr-6":r,"mr-2":v}};let Ao=(()=>{class r{constructor(t,s,G,DA,ht,Ce,un){this.dialogRef=t,this.data=s,this.store=G,this.formBuilder=DA,this.actions=ht,this.logger=Ce,this.commonService=un,this.faExclamationTriangle=h.eHv,this.peerAddress="",this.totalBalance=0,this.feeRateTypes=a.vn,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=a.cu,this.unSubs=[new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){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.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[OA.kI.required]],peerAddress:[this.peerAddress,[OA.kI.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[OA.kI.required,OA.kI.min(1),OA.kI.max(this.totalBalance)]],isPrivate:[!1],selFeeRate:[null],customFeeRate:[null],flgMinConf:[!1],minConfValue:[{value:null,disabled:!0}],hiddenAmount:["",[OA.kI.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.channelFormGroup.controls.flgMinConf.valueChanges.pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{t?(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([OA.kI.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.R)(this.unSubs[1])).subscribe(t=>{this.channelFormGroup.controls.customFeeRate.setValue(null),this.channelFormGroup.controls.customFeeRate.reset(),this.channelFormGroup.controls.customFeeRate.setValidators("customperkb"!==t||this.channelFormGroup.controls.flgMinConf.value?null:[OA.kI.required])}),this.actions.pipe((0,i.R)(this.unSubs[2]),(0,JA.h)(t=>t.type===a.AB.NEWLY_ADDED_PEER_CLN||t.type===a.AB.FETCH_CHANNELS_CLN||t.type===a.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{t.type===a.AB.NEWLY_ADDED_PEER_CLN&&(this.logger.info(t.payload),this.flgEditable=!1,this.newlyAddedPeer=t.payload.peer,this.peerFormGroup.controls.hiddenAddress.setValue(this.peerFormGroup.controls.peerAddress.value),this.stepper.next()),t.type===a.AB.FETCH_CHANNELS_CLN&&this.dialogRef.close(),t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&t.payload.status===a.Bn.ERROR&&("SaveNewPeer"===t.payload.action?this.peerConnectionError=t.payload.message:"SaveNewChannel"===t.payload.action&&(this.channelConnectionError=t.payload.message))})}onConnectPeer(){if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="",this.store.dispatch((0,ft.El)({payload:{id:this.peerFormGroup.controls.peerAddress.value}}))}onOpenChannel(){if(!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0||this.channelFormGroup.controls.flgMinConf.value&&!this.channelFormGroup.controls.minConfValue.value)return!0;this.channelConnectionError="",this.store.dispatch((0,ft.YX)({payload:{peerId:this.newlyAddedPeer.id,satoshis: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(t){switch(t.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)"}t.selectedIndex{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(u.yh),A.Y36(OA.qu),A.Y36(C.eX),A.Y36(E.mQ),A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-connect-peer"]],viewQuery:function(t,s){if(1&t&&(A.Gf(ul,5),A.Gf(fl,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.form=G.first),A.iGM(G=A.CRH())&&(s.stepper=G.first)}},decls:57,vars:30,consts:[["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","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["autoFocus","","matInput","","placeholder","Lightning Address (pubkey OR pubkey@ip:port)","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","ngSubmit"],["matStepLabel","","disabled","true"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign.gt-sm","space-between center"],["fxFlex","60","fxLayoutAlign","start end"],["matInput","","autoFocus","","formControlName","fundingAmount","placeholder","Amount","type","number","tabindex","1","required","",3,"step"],["matSuffix",""],["fxFlex","35","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","60","fxLayoutAlign","space-between end"],["fxLayoutAlign","start center",3,"fxFlex"],["tabindex","4","placeholder","Fee Rate","formControlName","selFeeRate"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48","fxLayoutAlign","end center",4,"ngIf"],["fxFlex","35","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","2","tabindex","5","color","primary","formControlName","flgMinConf","fxLayoutAlign","stretch start",3,"ngClass"],["fxFlex","98"],["matInput","","formControlName","minConfValue","placeholder","Min Confirmation Blocks","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"],[3,"value"],["fxFlex","48","fxLayoutAlign","end center"],["matInput","","formControlName","customFeeRate","placeholder","Fee Rate (Sats/vByte)","type","number","name","custFeeRate","tabindex","4",3,"step","min"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-card-header",2),A.TgZ(3,"div",3),A.TgZ(4,"span",4),A._uU(5,"Connect to a new peer"),A.qZA(),A.qZA(),A.TgZ(6,"button",5),A.NdJ("click",function(){return s.onClose()}),A._uU(7,"X"),A.qZA(),A.qZA(),A.TgZ(8,"mat-card-content",6),A.TgZ(9,"div",7),A.TgZ(10,"mat-vertical-stepper",8,9),A.NdJ("selectionChange",function(DA){return s.stepSelectionChanged(DA)}),A.TgZ(12,"mat-step",10),A.TgZ(13,"form",11),A.YNc(14,hl,1,1,"ng-template",12),A.TgZ(15,"mat-form-field",1),A._UZ(16,"input",13),A.YNc(17,El,2,0,"mat-error",14),A.qZA(),A.YNc(18,qa,4,2,"div",15),A.TgZ(19,"div",16),A.TgZ(20,"button",17),A.NdJ("click",function(){return s.onConnectPeer()}),A._uU(21),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.TgZ(22,"mat-step",10),A.TgZ(23,"form",18),A.NdJ("ngSubmit",function(){return s.onOpenChannel()}),A.YNc(24,_a,1,1,"ng-template",19),A.TgZ(25,"div",20),A.TgZ(26,"div",21),A.TgZ(27,"mat-form-field",22),A._UZ(28,"input",23),A.TgZ(29,"mat-hint"),A._uU(30),A.qZA(),A.TgZ(31,"span",24),A._uU(32," Sats "),A.qZA(),A.YNc(33,wl,2,0,"mat-error",14),A.YNc(34,Cl,2,0,"mat-error",14),A.YNc(35,Ql,2,1,"mat-error",14),A.qZA(),A.TgZ(36,"div",25),A.TgZ(37,"mat-slide-toggle",26),A._uU(38,"Private Channel"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(39,"div",27),A.TgZ(40,"div",28),A.TgZ(41,"mat-form-field",29),A.TgZ(42,"mat-select",30),A.YNc(43,on,2,2,"mat-option",31),A.qZA(),A.qZA(),A.YNc(44,dl,3,3,"mat-form-field",32),A.qZA(),A.TgZ(45,"div",33),A._UZ(46,"mat-checkbox",34),A.TgZ(47,"mat-form-field",35),A._UZ(48,"input",36),A.YNc(49,$a,2,0,"mat-error",14),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.YNc(50,Ml,4,2,"div",15),A.TgZ(51,"div",16),A.TgZ(52,"button",37),A._uU(53),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.TgZ(54,"div",38),A.TgZ(55,"button",39),A._uU(56),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(10),A.Q6J("linear",!0),A.xp6(2),A.Q6J("stepControl",s.peerFormGroup)("editable",s.flgEditable),A.xp6(1),A.Q6J("formGroup",s.peerFormGroup),A.xp6(4),A.Q6J("ngIf",null==s.peerFormGroup.controls.peerAddress.errors?null:s.peerFormGroup.controls.peerAddress.errors.required),A.xp6(1),A.Q6J("ngIf",""!==s.peerConnectionError),A.xp6(3),A.Oqu(""!==s.peerConnectionError?"Retry":"Add Peer"),A.xp6(1),A.Q6J("stepControl",s.channelFormGroup)("editable",s.flgEditable),A.xp6(1),A.Q6J("formGroup",s.channelFormGroup),A.xp6(5),A.Q6J("step",1e3),A.xp6(2),A.hij("Remaining Bal: ",s.totalBalance-(s.channelFormGroup.controls.fundingAmount.value?s.channelFormGroup.controls.fundingAmount.value:0),""),A.xp6(3),A.Q6J("ngIf",null==s.channelFormGroup.controls.fundingAmount.errors?null:s.channelFormGroup.controls.fundingAmount.errors.required),A.xp6(1),A.Q6J("ngIf",null==s.channelFormGroup.controls.fundingAmount.errors?null:s.channelFormGroup.controls.fundingAmount.errors.min),A.xp6(1),A.Q6J("ngIf",null==s.channelFormGroup.controls.fundingAmount.errors?null:s.channelFormGroup.controls.fundingAmount.errors.max),A.xp6(6),A.Q6J("fxFlex","customperkb"!==s.channelFormGroup.controls.selFeeRate.value||s.channelFormGroup.controls.flgMinConf.value?"100":"48"),A.xp6(2),A.Q6J("ngForOf",s.feeRateTypes),A.xp6(1),A.Q6J("ngIf","customperkb"===s.channelFormGroup.controls.selFeeRate.value&&!s.channelFormGroup.controls.flgMinConf.value),A.xp6(2),A.Q6J("ngClass",A.WLB(27,pl,s.screenSize===s.screenSizeEnum.XS||s.screenSize===s.screenSizeEnum.SM,s.screenSize===s.screenSizeEnum.MD||s.screenSize===s.screenSizeEnum.LG||s.screenSize===s.screenSizeEnum.XL)),A.xp6(2),A.Q6J("step",1)("min",0)("required",s.channelFormGroup.controls.flgMinConf.value),A.xp6(1),A.Q6J("ngIf",s.channelFormGroup.controls.flgMinConf.value&&!s.channelFormGroup.controls.minConfValue.value),A.xp6(1),A.Q6J("ngIf",""!==s.channelConnectionError),A.xp6(3),A.Oqu(""!==s.channelConnectionError?"Retry":"Open Channel"),A.xp6(2),A.Q6J("mat-dialog-close",!1),A.xp6(1),A.Oqu(null!=s.newlyAddedPeer&&s.newlyAddedPeer.id?"Do It Later":"Close"))},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Y.lW,w.dn,Mr.Vq,Mr.C0,OA._Y,OA.JL,OA.sg,Mr.VY,W.KE,Yt.Nt,OA.Fj,H.h,OA.JJ,OA.u,OA.Q7,Et.O5,OA.wV,W.bx,W.R9,QA.Rr,R.gD,Et.sg,HA.oG,Et.mk,d.oO,OA.qQ,k.q,Mt.ZT,W.TO,f.BN,wA.ey],styles:[""]}),r})();function Il(r,v){1&r&&A._UZ(0,"mat-progress-bar",32)}function ml(r,v){1&r&&(A.TgZ(0,"th",33),A._uU(1," Alias "),A.qZA())}const Xi=function(r){return{"mr-0":r}};function Dl(r,v){if(1&r&&A._UZ(0,"span",37),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Xi,t.screenSize===t.screenSizeEnum.XS))}}function yr(r,v){if(1&r&&A._UZ(0,"span",38),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Xi,t.screenSize===t.screenSizeEnum.XS))}}const qi=function(r){return{"max-width":r}};function vl(r,v){if(1&r&&(A.TgZ(0,"td",34),A.YNc(1,Dl,1,3,"span",35),A.YNc(2,yr,1,3,"span",36),A._uU(3),A.qZA()),2&r){const t=v.$implicit,s=A.oxw();A.Q6J("ngStyle",A.VKq(4,qi,s.screenSize===s.screenSizeEnum.XS?"10rem":"40rem")),A.xp6(1),A.Q6J("ngIf",null==t?null:t.connected),A.xp6(1),A.Q6J("ngIf",!(null!=t&&t.connected)),A.xp6(1),A.hij(" ",null==t?null:t.alias," ")}}function yl(r,v){1&r&&(A.TgZ(0,"th",39),A._uU(1," ID "),A.qZA())}function xl(r,v){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=v.$implicit,s=A.oxw();A.Q6J("ngStyle",A.VKq(2,qi,s.screenSize===s.screenSizeEnum.XS?"10rem":"40rem")),A.xp6(1),A.hij(" ",null==t?null:t.id," ")}}function to(r,v){1&r&&(A.TgZ(0,"th",33),A._uU(1," Network Address "),A.qZA())}function _i(r,v){1&r&&(A.TgZ(0,"span"),A._uU(1,","),A._UZ(2,"br"),A.qZA())}function er(r,v){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.YNc(2,_i,3,0,"span",42),A.qZA()),2&r){const t=v.$implicit,s=v.last;A.xp6(1),A.Oqu(t),A.xp6(1),A.Q6J("ngIf",!s)}}function Fl(r,v){if(1&r&&(A.TgZ(0,"td",34),A.YNc(1,er,3,2,"span",41),A.qZA()),2&r){const t=v.$implicit,s=A.oxw();A.Q6J("ngStyle",A.VKq(2,qi,s.screenSize===s.screenSizeEnum.XS?"10rem":"20rem")),A.xp6(1),A.Q6J("ngForOf",null==t?null:t.netaddr)}}function Yl(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"th",43),A.TgZ(1,"div",44),A.TgZ(2,"mat-select",45),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",46),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function Tl(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",46),A.NdJ("click",function(){A.CHM(t);const G=A.oxw().$implicit;return A.oxw().onPeerDetach(G)}),A._uU(1,"Disconnect"),A.qZA()}}function Nl(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",46),A.NdJ("click",function(){A.CHM(t);const G=A.oxw().$implicit;return A.oxw().onConnectPeer(G)}),A._uU(1,"Reconnect"),A.qZA()}}function Gl(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",47),A.TgZ(1,"div",48),A.TgZ(2,"mat-select",45),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",46),A.NdJ("click",function(G){const ht=A.CHM(t).$implicit;return A.oxw().onPeerClick(ht,G)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",46),A.NdJ("click",function(){const DA=A.CHM(t).$implicit;return A.oxw().onOpenChannel(DA)}),A._uU(7,"Open Channel"),A.qZA(),A.YNc(8,Tl,2,0,"mat-option",49),A.YNc(9,Nl,2,0,"mat-option",49),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=v.$implicit;A.xp6(8),A.Q6J("ngIf",t.connected),A.xp6(1),A.Q6J("ngIf",!t.connected)}}function Sl(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No connected peer."),A.qZA())}function Ul(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting peers..."),A.qZA())}function Pl(r,v){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function Rl(r,v){if(1&r&&(A.TgZ(0,"td",50),A.YNc(1,Sl,2,0,"p",42),A.YNc(2,Ul,2,0,"p",42),A.YNc(3,Pl,2,1,"p",42),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(!(null!=t.peers&&t.peers.data)||(null==t.peers||null==t.peers.data?null:t.peers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.peers&&t.peers.data)||(null==t.peers||null==t.peers.data?null:t.peers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.peers&&t.peers.data)||(null==t.peers||null==t.peers.data?null:t.peers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const eo=function(r){return{"display-none":r}};function zl(r,v){if(1&r&&A._UZ(0,"tr",51),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,eo,(null==t.peers?null:t.peers.data)&&(null==t.peers||null==t.peers.data?null:t.peers.data.length)>0))}}function eA(r,v){1&r&&A._UZ(0,"tr",52)}function b(r,v){1&r&&A._UZ(0,"tr",53)}const K=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},M=function(){return["no_peer"]};let x=(()=>{class r{constructor(t,s,G,DA,ht){this.logger=t,this.store=s,this.rtlEffects=G,this.actions=DA,this.commonService=ht,this.faUsers=h.FVb,this.newlyAddedPeer="",this.displayedColumns=[],this.peerAddress="",this.peersData=[],this.information={},this.availableBalance=0,this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","id","netaddr","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","id","netaddr","actions"])}ngOnInit(){this.store.select(B.Ao).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.information=t.information,this.availableBalance=t.balance.totalBalance||0}),this.store.select(B.Wi).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.peersData=t.peers||[],this.peersData.length>0&&this.loadPeersTable(this.peersData),this.logger.info(t)}),this.actions.pipe((0,i.R)(this.unSubs[2]),(0,JA.h)(t=>t.type===a.AB.SET_PEERS_CLN)).subscribe(t=>{this.peerAddress=null})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(t,s){this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Peer Information",showQRName:"Public Key",showQRField:t.id,message:[[{key:"id",value:t.id,title:"Public Key",width:100}],[{key:"netaddr",value:t.netaddr,title:"Address",width:100}],[{key:"alias",value:t.alias,title:"Alias",width:50},{key:"connected",value:t.connected?"True":"False",title:"Connected",width:50}]]}}}))}onConnectPeer(t){this.store.dispatch((0,kA.qR)({payload:{data:{message:{peer:t.id?t:null,information:this.information,balance:this.availableBalance},component:Ao}}}))}onOpenChannel(t){this.store.dispatch((0,kA.qR)({payload:{data:{alertTitle:"Open Channel",message:{peer:t,information:this.information,balance:this.availableBalance},newlyAdded:!1,component:pe}}}))}onPeerDetach(t){this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(t.alias?t.alias:t.id),noBtnText:"Cancel",yesBtnText:"Disconnect"}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[3])).subscribe(G=>{G&&this.store.dispatch((0,ft.z)({payload:{id:t.id,force:!1}}))})}applyFilter(){this.peers.filter=this.selFilter.trim().toLowerCase()}loadPeersTable(t){this.peers=new yA.by([...t]),this.peers.sortingDataAccessor=(s,G)=>{if("netaddr"===G){if(s.netaddr&&s.netaddr[0]){const DA=s.netaddr[0].toString().split(".");return DA[0]?+DA[0]:s.netaddr[0]}return""}return s[G]&&isNaN(s[G])?s[G].toLocaleLowerCase():s[G]?+s[G]:null},this.peers.sort=this.sort,this.peers.filterPredicate=(s,G)=>JSON.stringify(s).toLowerCase().includes(G),this.peers.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){this.peers.data&&this.peers.data.length>0&&this.commonService.downloadFile(this.peers.data,"Peers")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(At.V),A.Y36(C.eX),A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-peers"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(VA.NW,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.sort=G.first),A.iGM(G=A.CRH())&&(s.paginator=G.first)}},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Peers")}])],decls:36,vars:15,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["peersForm","ngForm"],["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","30","fxFlex.gt-xs","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["fxLayout","row","fxLayoutAlign","start start"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","class","px-3","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","px-3",3,"ngStyle",4,"matCellDef"],["matColumnDef","netaddr"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["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,"px-3"],["mat-cell","",1,"px-3",3,"ngStyle"],[4,"ngFor","ngForOf"],[4,"ngIf"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["fxFlex","100","fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"form",1,2),A.TgZ(3,"button",3),A.NdJ("click",function(){return s.onConnectPeer({})}),A._uU(4,"Add Peer"),A.qZA(),A.qZA(),A.TgZ(5,"div",4),A.TgZ(6,"div",5),A.TgZ(7,"div",6),A._UZ(8,"fa-icon",7),A.TgZ(9,"span",8),A._uU(10,"Connected Peers"),A.qZA(),A.qZA(),A.TgZ(11,"mat-form-field",9),A.TgZ(12,"div",10),A.TgZ(13,"input",11),A.NdJ("keyup",function(){return s.applyFilter()})("ngModelChange",function(DA){return s.selFilter=DA}),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.TgZ(14,"div",12),A.YNc(15,Il,1,0,"mat-progress-bar",13),A.TgZ(16,"table",14,15),A.ynx(18,16),A.YNc(19,ml,2,0,"th",17),A.YNc(20,vl,4,6,"td",18),A.BQk(),A.ynx(21,19),A.YNc(22,yl,2,0,"th",20),A.YNc(23,xl,2,4,"td",21),A.BQk(),A.ynx(24,22),A.YNc(25,to,2,0,"th",17),A.YNc(26,Fl,2,4,"td",18),A.BQk(),A.ynx(27,23),A.YNc(28,Yl,6,0,"th",24),A.YNc(29,Gl,10,2,"td",25),A.BQk(),A.ynx(30,26),A.YNc(31,Rl,4,3,"td",27),A.BQk(),A.YNc(32,zl,1,3,"tr",28),A.YNc(33,eA,1,0,"tr",29),A.YNc(34,b,1,0,"tr",30),A.qZA(),A.qZA(),A._UZ(35,"mat-paginator",31),A.qZA(),A.qZA()),2&t&&(A.xp6(8),A.Q6J("icon",s.faUsers),A.xp6(5),A.Q6J("ngModel",s.selFilter),A.xp6(2),A.Q6J("ngIf",s.apiCallStatus.status===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",s.peers)("ngClass",A.VKq(12,K,""!==s.errorMessage)),A.xp6(16),A.Q6J("matFooterRowDef",A.DdM(14,M)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[Ct.xw,Ct.yH,Ct.Wh,OA._Y,OA.JL,OA.F,Y.lW,f.BN,W.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,Et.O5,yA.BZ,rt.YE,Et.mk,d.oO,yA.w1,yA.fO,yA.Dz,yA.mD,yA.Ke,yA.as,yA.nj,VA.NW,T.pW,yA.ge,rt.nU,yA.ev,Et.PC,d.Zl,aA.gM,Et.sg,R.gD,R.$L,wA.ey,yA.yh,yA.Q2,yA.XQ,yA.Gk],styles:[".mat-column-alias[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-id[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:2rem}.mat-column-netaddr[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();const P=["queryRoutesForm"];function tA(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Destination pubkey is required."),A.qZA())}function oA(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount is required."),A.qZA())}function sA(r,v){1&r&&A._UZ(0,"mat-progress-bar",38)}function iA(r,v){1&r&&(A.TgZ(0,"th",39),A._uU(1," ID "),A.qZA())}function SA(r,v){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.id," ")}}function jA(r,v){1&r&&(A.TgZ(0,"th",39),A._uU(1," Alias "),A.qZA())}function lt(r,v){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.alias," ")}}function qA(r,v){1&r&&(A.TgZ(0,"th",39),A._uU(1," Channel "),A.qZA())}function gt(r,v){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.channel," ")}}function pt(r,v){1&r&&(A.TgZ(0,"th",39),A._uU(1," Direction "),A.qZA())}function yt(r,v){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.direction," ")}}function Gt(r,v){1&r&&(A.TgZ(0,"th",41),A._uU(1," Delay "),A.qZA())}function $t(r,v){if(1&r&&(A.TgZ(0,"td",40),A.TgZ(1,"span",42),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.delay)," ")}}function qt(r,v){1&r&&(A.TgZ(0,"th",41),A._uU(1," Amount (Sats) "),A.qZA())}function ie(r,v){if(1&r&&(A.TgZ(0,"td",40),A.TgZ(1,"span",42),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,(null==t?null:t.msatoshi)/1e3)," ")}}function ge(r,v){1&r&&(A.TgZ(0,"th",43),A._uU(1," Amount mSat "),A.qZA())}function Ee(r,v){if(1&r&&(A.TgZ(0,"td",44),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.amount_msat," ")}}function we(r,v){1&r&&(A.TgZ(0,"th",45),A.TgZ(1,"span",42),A._uU(2,"Actions"),A.qZA(),A.qZA())}function He(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",44),A.TgZ(1,"button",46),A.NdJ("click",function(G){const ht=A.CHM(t).$implicit;return A.oxw().onHopClick(ht,G)}),A._uU(2,"View Info"),A.qZA(),A.qZA()}}function sn(r,v){1&r&&A._UZ(0,"tr",47)}function Je(r,v){1&r&&A._UZ(0,"tr",48)}const se=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}};let ln=(()=>{class r{constructor(t,s,G){this.store=t,this.clnEffects=s,this.commonService=G,this.destinationPubkey="",this.amount=null,this.flgSticky=!1,this.displayedColumns=[],this.flgLoading=[!1],this.faRoute=h.FpQ,this.faExclamationTriangle=h.eHv,this.screenSize="",this.screenSizeEnum=a.cu,this.unSubs=[new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","msatoshi","actions"]):this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","direction","msatoshi","actions"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","direction","delay","msatoshi","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","channel","direction","delay","msatoshi","actions"])}ngOnInit(){this.clnEffects.setQueryRoutesCL.pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.qrHops=new yA.by([]),this.qrHops.data=[],t.routes&&t.routes.length&&t.routes.length>0?(this.flgLoading[0]=!1,this.qrHops=new yA.by([...t.routes]),this.qrHops.data=t.routes):this.flgLoading[0]="error",this.qrHops.sort=this.sort,this.qrHops.sortingDataAccessor=(s,G)=>s[G]&&isNaN(s[G])?s[G].toLocaleLowerCase():s[G]?+s[G]:null})}onQueryRoutes(){if(!this.destinationPubkey||!this.amount)return!0;this.flgLoading[0]=!0,this.store.dispatch((0,ft.WO)({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(t,s){this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Route Information",message:[[{key:"id",value:t.id,title:"ID",width:100,type:a.Gi.STRING}],[{key:"channel",value:t.channel,title:"Channel",width:50,type:a.Gi.STRING},{key:"alias",value:t.alias,title:"Peer Alias",width:50,type:a.Gi.STRING}],[{key:"msatoshi",value:t.msatoshi,title:"mSatoshi",width:50,type:a.Gi.NUMBER},{key:"amount_msat",value:t.amount_msat,title:"Amount mSat",width:50,type:a.Gi.STRING}],[{key:"direction",value:t.direction,title:"Direction",width:50,type:a.Gi.STRING},{key:"delay",value:t.delay,title:"Delay",width:50,type:a.Gi.NUMBER}]]}}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(u.yh),A.Y36(In.J),A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-query-routes"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(P,7)),2&t){let G;A.iGM(G=A.CRH())&&(s.sort=G.first),A.iGM(G=A.CRH())&&(s.form=G.first)}},decls:54,vars:16,consts:[["fxLayout","column","fxFlex","100",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",3,"ngSubmit"],["queryRoutesForm","ngForm"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","69","fxLayoutAlign","start end"],["matInput","","placeholder","Destination Pubkey","name","destinationPubkey","tabindex","1","required","",3,"ngModel","ngModelChange"],["destPubkey","ngModel"],[4,"ngIf"],["fxFlex","29","fxLayoutAlign","start end"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","type","number","required","",3,"ngModel","step","min","ngModelChange"],["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,"dataSource","ngClass"],["table",""],["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","amount_msat"],["mat-header-cell","","class","pl-4","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-4 pr-3",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-4"],["mat-cell","",1,"pl-4"],["mat-header-cell","",1,"pl-4","pr-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(t,s){if(1&t){const G=A.EpF();A.TgZ(0,"div",0),A.TgZ(1,"form",1,2),A.NdJ("ngSubmit",function(){return A.CHM(G),A.MAs(2).form.valid&&s.onQueryRoutes()}),A.TgZ(3,"div",3),A._UZ(4,"fa-icon",4),A.TgZ(5,"span"),A._uU(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),A.qZA(),A.qZA(),A.TgZ(7,"mat-form-field",5),A.TgZ(8,"input",6,7),A.NdJ("ngModelChange",function(ht){return s.destinationPubkey=ht}),A.qZA(),A.YNc(10,tA,2,0,"mat-error",8),A.qZA(),A.TgZ(11,"mat-form-field",9),A.TgZ(12,"input",10),A.NdJ("ngModelChange",function(ht){return s.amount=ht}),A.qZA(),A.YNc(13,oA,2,0,"mat-error",8),A.qZA(),A.TgZ(14,"div",11),A.TgZ(15,"button",12),A.NdJ("click",function(){return s.resetData()}),A._uU(16,"Clear"),A.qZA(),A.TgZ(17,"button",13),A._uU(18,"Query Route"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(19,"div",14),A.TgZ(20,"div",15),A._UZ(21,"fa-icon",16),A.TgZ(22,"span",17),A._uU(23,"Transaction Route"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(24,"div",18),A.YNc(25,sA,1,0,"mat-progress-bar",19),A.TgZ(26,"table",20,21),A.ynx(28,22),A.YNc(29,iA,2,0,"th",23),A.YNc(30,SA,2,1,"td",24),A.BQk(),A.ynx(31,25),A.YNc(32,jA,2,0,"th",23),A.YNc(33,lt,2,1,"td",24),A.BQk(),A.ynx(34,26),A.YNc(35,qA,2,0,"th",23),A.YNc(36,gt,2,1,"td",24),A.BQk(),A.ynx(37,27),A.YNc(38,pt,2,0,"th",23),A.YNc(39,yt,2,1,"td",24),A.BQk(),A.ynx(40,28),A.YNc(41,Gt,2,0,"th",29),A.YNc(42,$t,4,3,"td",24),A.BQk(),A.ynx(43,30),A.YNc(44,qt,2,0,"th",29),A.YNc(45,ie,4,3,"td",24),A.BQk(),A.ynx(46,31),A.YNc(47,ge,2,0,"th",32),A.YNc(48,Ee,2,1,"td",33),A.BQk(),A.ynx(49,34),A.YNc(50,we,3,0,"th",35),A.YNc(51,He,3,0,"td",33),A.BQk(),A.YNc(52,sn,1,0,"tr",36),A.YNc(53,Je,1,0,"tr",37),A.qZA(),A.qZA(),A.qZA()}2&t&&(A.xp6(4),A.Q6J("icon",s.faExclamationTriangle),A.xp6(4),A.Q6J("ngModel",s.destinationPubkey),A.xp6(2),A.Q6J("ngIf",!s.destinationPubkey),A.xp6(2),A.Q6J("ngModel",s.amount)("step",1e3)("min",0),A.xp6(1),A.Q6J("ngIf",!s.amount),A.xp6(8),A.Q6J("icon",s.faRoute),A.xp6(4),A.Q6J("ngIf",!0===s.flgLoading[0]),A.xp6(1),A.Q6J("dataSource",s.qrHops)("ngClass",A.VKq(14,se,"error"===s.flgLoading[0])),A.xp6(26),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns))},directives:[Ct.xw,Ct.yH,OA._Y,OA.JL,OA.F,Ct.Wh,f.BN,W.KE,Yt.Nt,OA.Fj,OA.Q7,OA.JJ,OA.On,Et.O5,OA.wV,OA.qQ,k.q,Y.lW,lA.$V,yA.BZ,rt.YE,Et.mk,d.oO,yA.w1,yA.fO,yA.Dz,yA.as,yA.nj,W.TO,T.pW,yA.ge,rt.nU,yA.ev,yA.XQ,yA.Gk],pipes:[Et.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{flex:0 0 5%;width:5%}.mat-column-pubkey_alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),r})();function Ve(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Message is required."),A.qZA())}let Oe=(()=>{class r{constructor(t,s,G){this.dataService=t,this.snackBar=s,this.logger=G,this.message="",this.signedMessage="",this.signature="",this.unSubs=[new c.x,new c.x]}onSign(){if(!this.message||""===this.message)return!0;this.dataService.signMessage(this.message).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.signedMessage=this.message,this.signature=t.zbase})}onMessageChange(){this.signedMessage!==this.message&&(this.signature="")}onCopyField(t){this.snackBar.open("Signature copied."),this.logger.info("Copied Text: "+t)}resetData(){this.message="",this.signature="",this.signedMessage=""}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(RA.D),A.Y36(Tr.ux),A.Y36(E.mQ))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-sign"]],decls:20,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to sign","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[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,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","4","rtlClipboard","","type","button",3,"payload","copied"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"form",1,2),A.TgZ(3,"mat-form-field",3),A.TgZ(4,"textarea",4),A.NdJ("ngModelChange",function(DA){return s.message=DA})("keyup",function(){return s.onMessageChange()}),A.qZA(),A.YNc(5,Ve,2,0,"mat-error",5),A.qZA(),A.TgZ(6,"div",6),A.TgZ(7,"button",7),A.NdJ("click",function(){return s.resetData()}),A._uU(8,"Clear Field"),A.qZA(),A.TgZ(9,"button",8),A.NdJ("click",function(){return s.onSign()}),A._uU(10,"Sign"),A.qZA(),A.qZA(),A._UZ(11,"mat-divider",9),A.TgZ(12,"div",10),A.TgZ(13,"p"),A._uU(14,"Generated Signature"),A.qZA(),A.qZA(),A.TgZ(15,"div",11),A._uU(16),A.qZA(),A.TgZ(17,"div",12),A.TgZ(18,"button",13),A.NdJ("copied",function(DA){return s.onCopyField(DA)}),A._uU(19,"Copy Signature"),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(4),A.Q6J("ngModel",s.message),A.xp6(1),A.Q6J("ngIf",!s.message),A.xp6(6),A.Q6J("inset",!0),A.xp6(5),A.Oqu(s.signature),A.xp6(2),A.Q6J("payload",s.signature))},directives:[Ct.xw,Ct.yH,Ct.Wh,OA._Y,OA.JL,OA.F,W.KE,Yt.Nt,OA.Fj,H.h,OA.Q7,OA.JJ,OA.On,Et.O5,Y.lW,AA.d,Zr.y,W.TO],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),r})();function fe(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Message is required."),A.qZA())}function qe(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Signature is required."),A.qZA())}function Ue(r,v){1&r&&(A.TgZ(0,"p",13),A.TgZ(1,"mat-icon",14),A._uU(2,"close"),A.qZA(),A._uU(3,"Verification failed, please double check message and signature"),A.qZA())}function Fe(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Pubkey Used"),A.qZA())}function $e(r,v){if(1&r&&(A.TgZ(0,"div",20),A.TgZ(1,"p"),A._uU(2),A.qZA(),A.qZA()),2&r){const t=A.oxw(2);A.xp6(2),A.Oqu(null==t.verifyRes?null:t.verifyRes.pubkey)}}function Rn(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",21),A.TgZ(1,"button",22),A.NdJ("copied",function(G){return A.CHM(t),A.oxw(2).onCopyField(G)}),A._uU(2,"Copy Pubkey"),A.qZA(),A.qZA()}if(2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("payload",null==t.verifyRes?null:t.verifyRes.pubkey)}}function gn(r,v){if(1&r&&(A.TgZ(0,"div",15),A._UZ(1,"mat-divider",16),A.TgZ(2,"div",17),A.YNc(3,Fe,2,0,"p",5),A.qZA(),A.YNc(4,$e,3,1,"div",18),A.YNc(5,Rn,3,1,"div",19),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("inset",!0),A.xp6(2),A.Q6J("ngIf",t.verifyRes.verified),A.xp6(1),A.Q6J("ngIf",t.verifyRes.verified),A.xp6(1),A.Q6J("ngIf",t.verifyRes.verified)}}let mn=(()=>{class r{constructor(t,s,G){this.dataService=t,this.snackBar=s,this.logger=G,this.message="",this.verifiedMessage="",this.signature="",this.verifiedSignature="",this.showVerifyStatus=!1,this.verifyRes={pubkey:"",verified:null},this.unSubs=[new c.x,new c.x]}onVerify(){if(!this.message||""===this.message||!this.signature||""===this.signature)return!0;this.dataService.verifyMessage(this.message,this.signature).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.verifyRes=t,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(t){this.snackBar.open("Pubkey copied."),this.logger.info("Copied Text: "+t)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(RA.D),A.Y36(Tr.ux),A.Y36(E.mQ))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-verify"]],decls:17,vars:6,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to verify","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["matInput","","placeholder","Signature provided","name","signature","tabindex","2","required","",3,"ngModel","ngModelChange","keyup"],["sign","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 h-4 padding-gap",4,"ngIf"],["fxLayout","row","class","mt-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","5","rtlClipboard","","type","button",3,"payload","copied"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"form",1,2),A.TgZ(3,"mat-form-field",3),A.TgZ(4,"textarea",4),A.NdJ("ngModelChange",function(DA){return s.message=DA})("keyup",function(){return s.onChange()}),A.qZA(),A.YNc(5,fe,2,0,"mat-error",5),A.qZA(),A.TgZ(6,"mat-form-field",3),A.TgZ(7,"input",6,7),A.NdJ("ngModelChange",function(DA){return s.signature=DA})("keyup",function(){return s.onChange()}),A.qZA(),A.YNc(9,qe,2,0,"mat-error",5),A.qZA(),A.YNc(10,Ue,4,0,"p",8),A.TgZ(11,"div",9),A.TgZ(12,"button",10),A.NdJ("click",function(){return s.resetData()}),A._uU(13,"Clear Fields"),A.qZA(),A.TgZ(14,"button",11),A.NdJ("click",function(){return s.onVerify()}),A._uU(15,"Verify"),A.qZA(),A.qZA(),A.YNc(16,gn,6,4,"div",12),A.qZA(),A.qZA()),2&t&&(A.xp6(4),A.Q6J("ngModel",s.message),A.xp6(1),A.Q6J("ngIf",!s.message),A.xp6(2),A.Q6J("ngModel",s.signature),A.xp6(2),A.Q6J("ngIf",!s.signature),A.xp6(1),A.Q6J("ngIf",s.showVerifyStatus&&!s.verifyRes.verified),A.xp6(6),A.Q6J("ngIf",s.showVerifyStatus&&s.verifyRes.verified))},directives:[Ct.xw,Ct.yH,Ct.Wh,OA._Y,OA.JL,OA.F,W.KE,Yt.Nt,OA.Fj,H.h,OA.Q7,OA.JJ,OA.On,Et.O5,Y.lW,W.TO,y.Hw,AA.d,Zr.y],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),r})();function Gn(r,v){if(1&r&&(A.TgZ(0,"div",5),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Oqu(t.errorMessage)}}function Jn(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",6),A._UZ(1,"div",7),A.TgZ(2,"mat-form-field",8),A.TgZ(3,"input",9),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().filterValue=G})("input",function(){return A.CHM(t),A.oxw().applyFilter()})("keyup",function(){return A.CHM(t),A.oxw().applyFilter()}),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.filterValue)}}function vn(r,v){1&r&&A._UZ(0,"mat-progress-bar",33)}function Mn(r,v){1&r&&(A.TgZ(0,"th",34),A._uU(1,"Status"),A.qZA())}function On(r,v){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(null==t?null:t.status)}}function kn(r,v){1&r&&(A.TgZ(0,"th",34),A._uU(1,"Received Time"),A.qZA())}function me(r,v){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.received_time),"dd/MMM/y HH:mm"))}}function Pe(r,v){1&r&&(A.TgZ(0,"th",34),A._uU(1,"Resolved Time"),A.qZA())}function Ye(r,v){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.resolved_time),"dd/MMM/y HH:mm"))}}function We(r,v){1&r&&(A.TgZ(0,"th",34),A._uU(1,"In Channel"),A.qZA())}function ke(r,v){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(null==t?null:t.in_channel_alias)}}function Bn(r,v){1&r&&(A.TgZ(0,"th",34),A._uU(1,"Out Channel"),A.qZA())}function $i(r,v){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(null==t?null:t.out_channel_alias)}}function zn(r,v){1&r&&(A.TgZ(0,"th",36),A._uU(1,"Amount In (Sats)"),A.qZA())}function Aa(r,v){if(1&r&&(A.TgZ(0,"td",35),A.TgZ(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.in_msatoshi)/1e3,(null==t?null:t.in_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function ta(r,v){1&r&&(A.TgZ(0,"th",36),A._uU(1,"Amount Out (Sats)"),A.qZA())}function Ll(r,v){if(1&r&&(A.TgZ(0,"td",35),A.TgZ(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.out_msatoshi)/1e3,(null==t?null:t.out_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function bl(r,v){1&r&&(A.TgZ(0,"th",36),A._uU(1,"Fee (mSat)"),A.qZA())}function Pi(r,v){if(1&r&&(A.TgZ(0,"td",35),A.TgZ(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.lcZ(3,1,null==t?null:t.fee))}}function _r(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"th",38),A.TgZ(1,"div",39),A.TgZ(2,"mat-select",40),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",41),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function ea(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",42),A.TgZ(1,"button",43),A.NdJ("click",function(G){const ht=A.CHM(t).$implicit;return A.oxw(2).onForwardingEventClick(ht,G)}),A._uU(2,"View Info"),A.qZA(),A.qZA()}}function Ri(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No forwarding history available."),A.qZA())}function zi(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting forwarding history..."),A.qZA())}function $r(r,v){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function Ai(r,v){if(1&r&&(A.TgZ(0,"td",44),A.YNc(1,Ri,2,0,"p",45),A.YNc(2,zi,2,0,"p",45),A.YNc(3,$r,2,1,"p",45),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const ti=function(r){return{"display-none":r}};function ei(r,v){if(1&r&&A._UZ(0,"tr",46),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,ti,(null==t.forwardingHistoryEvents?null:t.forwardingHistoryEvents.data)&&(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)>0))}}function ni(r,v){1&r&&A._UZ(0,"tr",47)}function ri(r,v){1&r&&A._UZ(0,"tr",48)}const ii=function(){return["no_event"]};function ai(r,v){if(1&r&&(A.TgZ(0,"div",10),A.YNc(1,vn,1,0,"mat-progress-bar",11),A.TgZ(2,"table",12,13),A.ynx(4,14),A.YNc(5,Mn,2,0,"th",15),A.YNc(6,On,2,1,"td",16),A.BQk(),A.ynx(7,17),A.YNc(8,kn,2,0,"th",15),A.YNc(9,me,3,4,"td",16),A.BQk(),A.ynx(10,18),A.YNc(11,Pe,2,0,"th",15),A.YNc(12,Ye,3,4,"td",16),A.BQk(),A.ynx(13,19),A.YNc(14,We,2,0,"th",15),A.YNc(15,ke,2,1,"td",16),A.BQk(),A.ynx(16,20),A.YNc(17,Bn,2,0,"th",15),A.YNc(18,$i,2,1,"td",16),A.BQk(),A.ynx(19,21),A.YNc(20,zn,2,0,"th",22),A.YNc(21,Aa,4,4,"td",16),A.BQk(),A.ynx(22,23),A.YNc(23,ta,2,0,"th",22),A.YNc(24,Ll,4,4,"td",16),A.BQk(),A.ynx(25,24),A.YNc(26,bl,2,0,"th",22),A.YNc(27,Pi,4,3,"td",16),A.BQk(),A.ynx(28,25),A.YNc(29,_r,6,0,"th",26),A.YNc(30,ea,3,0,"td",27),A.BQk(),A.ynx(31,28),A.YNc(32,Ai,4,3,"td",29),A.BQk(),A.YNc(33,ei,1,3,"tr",30),A.YNc(34,ni,1,0,"tr",31),A.YNc(35,ri,1,0,"tr",32),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.forwardingHistoryEvents),A.xp6(31),A.Q6J("matFooterRowDef",A.DdM(6,ii)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}function Cr(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-paginator",49),A.NdJ("page",function(G){return A.CHM(t),A.oxw().onPageChange(G)}),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("length",t.totalForwardedTransactions)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let na=(()=>{class r{constructor(t,s,G,DA){this.logger=t,this.commonService=s,this.store=G,this.datePipe=DA,this.eventsData=[],this.filterValue="",this.successfulEvents=[],this.displayedColumns=[],this.flgSticky=!1,this.indexOffset=-1,this.totalForwardedTransactions=0,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["in_msatoshi","out_msatoshi","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["received_time","in_msatoshi","out_msatoshi","fee","actions"]):(this.flgSticky=!0,this.displayedColumns=["received_time","resolved_time","in_channel","out_channel","in_msatoshi","out_msatoshi","fee","actions"])}ngOnInit(){this.store.select(B.Bo).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.eventsData.length<=0&&t.forwardingHistory.listForwards&&(this.totalForwardedTransactions=t.forwardingHistory.totalForwards,this.indexOffset=t.forwardingHistory.offset,this.successfulEvents=t.forwardingHistory.listForwards||[],this.successfulEvents.length>0&&this.sort&&this.paginator&&this.loadForwardingEventsTable(this.successfulEvents),this.logger.info(t))})}ngAfterViewInit(){this.successfulEvents.length>0&&this.loadForwardingEventsTable(this.successfulEvents)}ngOnChanges(t){t.eventsData&&(this.apiCallStatus={status:a.Bn.COMPLETED,action:"FetchForwardingHistory"},this.eventsData=t.eventsData.currentValue,this.successfulEvents=this.eventsData,t.eventsData.firstChange||this.loadForwardingEventsTable(this.successfulEvents)),t.filterValue&&!t.filterValue.firstChange&&this.applyFilter()}onForwardingEventClick(t,s){this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Event Information",message:[[{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:a.Gi.STRING}],[{key:"status",value:"Settled",title:"Status",width:50,type:a.Gi.STRING},{key:"fee",value:t.fee,title:"Fee (mSats)",width:50,type:a.Gi.NUMBER}],[{key:"received_time",value:t.received_time,title:"Received Time",width:50,type:a.Gi.DATE_TIME},{key:"resolved_time",value:t.resolved_time,title:"Resolved Time",width:50,type:a.Gi.DATE_TIME}],[{key:"in_channel",value:t.in_channel_alias,title:"Inbound Channel",width:50,type:a.Gi.STRING},{key:"out_channel",value:t.out_channel_alias,title:"Outbound Channel",width:50,type:a.Gi.STRING}],[{key:"in_msatoshi",value:t.in_msatoshi,title:"In (mSats)",width:50,type:a.Gi.NUMBER},{key:"out_msatoshi",value:t.out_msatoshi,title:"Out (mSats)",width:50,type:a.Gi.NUMBER}]]}}}))}loadForwardingEventsTable(t){this.forwardingHistoryEvents=new yA.by([...t]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(s,G)=>s[G]&&isNaN(s[G])?s[G].toLocaleLowerCase():s[G]?+s[G]:null,this.forwardingHistoryEvents.filterPredicate=(s,G)=>((s.received_time?this.datePipe.transform(new Date(1e3*s.received_time),"dd/MMM/YYYY HH:mm").toLowerCase()+" ":"")+(s.resolved_time?this.datePipe.transform(new Date(1e3*s.resolved_time),"dd/MMM/YYYY HH:mm").toLowerCase()+" ":"")+(s.in_channel?s.in_channel.toLowerCase()+" ":"")+(s.out_channel?s.out_channel.toLowerCase()+" ":"")+(s.in_channel_alias?s.in_channel_alias.toLowerCase()+" ":"")+(s.out_channel_alias?s.out_channel_alias.toLowerCase()+" ":"")+(s.in_msatoshi?s.in_msatoshi/1e3+" ":"")+(s.out_msatoshi?s.out_msatoshi/1e3+" ":"")+(s.fee?s.fee+" ":"")).includes(G),this.logger.info(this.forwardingHistoryEvents)}onDownloadCSV(){this.forwardingHistoryEvents&&this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")}applyFilter(){this.forwardingHistoryEvents&&(this.forwardingHistoryEvents.filter=this.filterValue.trim().toLowerCase())}onPageChange(t){this.pageSize!==t.pageSize?(this.pageSize=t.pageSize,this.indexOffset=0):this.indexOffset=t.pageIndex*this.pageSize,this.store.dispatch((0,ft.u0)({payload:{status:a.OO.SETTLED,maxLen:this.pageSize,offset:this.indexOffset}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh),A.Y36(Et.uU))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-forwarding-history"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(VA.NW,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.sort=G.first),A.iGM(G=A.CRH())&&(s.paginator=G.first)}},inputs:{eventsData:"eventsData",filterValue:"filterValue"},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Events")}]),A.TTD],decls:5,vars:4,consts:[["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,"length","pageSize","pageSizeOptions","showFirstLastButtons","page",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","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","keyup"],["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,"dataSource"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","received_time"],["matColumnDef","resolved_time"],["matColumnDef","in_channel"],["matColumnDef","out_channel"],["matColumnDef","in_msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","out_msatoshi"],["matColumnDef","fee"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","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","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,Gn,2,1,"div",1),A.YNc(2,Jn,4,1,"div",2),A.YNc(3,ai,36,7,"div",3),A.YNc(4,Cr,1,4,"mat-paginator",4),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage))},directives:[Ct.xw,Ct.Wh,Et.O5,Ct.yH,W.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,yA.BZ,rt.YE,yA.w1,yA.fO,yA.Dz,yA.mD,yA.Ke,yA.as,yA.nj,T.pW,yA.ge,rt.nU,yA.ev,R.gD,R.$L,wA.ey,Y.lW,yA.yh,yA.Q2,Et.mk,d.oO,yA.XQ,yA.Gk,VA.NW],pipes:[Et.uU,Et.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();function no(r,v){if(1&r&&(A.TgZ(0,"div",5),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Oqu(t.errorMessage)}}function ro(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",6),A._UZ(1,"div",7),A.TgZ(2,"mat-form-field",8),A.TgZ(3,"input",9),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyFilter()})("ngModelChange",function(G){return A.CHM(t),A.oxw().selFilter=G}),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.selFilter)}}function io(r,v){1&r&&A._UZ(0,"mat-progress-bar",32)}function ra(r,v){1&r&&(A.TgZ(0,"th",33),A._uU(1,"Received Time"),A.qZA())}function Vl(r,v){if(1&r&&(A.TgZ(0,"td",34),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.received_time),"dd/MMM/y HH:mm"))}}function Wl(r,v){1&r&&(A.TgZ(0,"th",33),A._uU(1,"Resolved Time"),A.qZA())}function Xl(r,v){if(1&r&&(A.TgZ(0,"td",34),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.resolved_time),"dd/MMM/y HH:mm"))}}function ql(r,v){1&r&&(A.TgZ(0,"th",33),A._uU(1,"In Channel"),A.qZA())}function _l(r,v){if(1&r&&(A.TgZ(0,"td",34),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(null==t?null:t.in_channel_alias)}}function $l(r,v){1&r&&(A.TgZ(0,"th",33),A._uU(1,"Out Channel"),A.qZA())}function Ac(r,v){if(1&r&&(A.TgZ(0,"td",34),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(null==t?null:t.out_channel_alias)}}function tc(r,v){1&r&&(A.TgZ(0,"th",35),A._uU(1,"Amount In (Sats)"),A.qZA())}function ec(r,v){if(1&r&&(A.TgZ(0,"td",34),A.TgZ(1,"span",36),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.in_msatoshi)/1e3,(null==t?null:t.in_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function nc(r,v){1&r&&(A.TgZ(0,"th",35),A._uU(1,"Amount Out (Sats)"),A.qZA())}function rc(r,v){if(1&r&&(A.TgZ(0,"td",34),A.TgZ(1,"span",36),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.out_msatoshi)/1e3,(null==t?null:t.out_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function ic(r,v){1&r&&(A.TgZ(0,"th",35),A._uU(1,"Fee (mSats)"),A.qZA())}function ac(r,v){if(1&r&&(A.TgZ(0,"td",34),A.TgZ(1,"span",36),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,null==t?null:t.fee,"1.0-0"))}}function oc(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"th",37),A.TgZ(1,"div",38),A.TgZ(2,"mat-select",39),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",40),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function sc(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",41),A.TgZ(1,"button",42),A.NdJ("click",function(){const DA=A.CHM(t).$implicit;return A.oxw(2).onFailedEventClick(DA)}),A._uU(2,"View Info"),A.qZA(),A.qZA()}}function lc(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No failed transaction available."),A.qZA())}function cc(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting failed transactions..."),A.qZA())}function gc(r,v){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function Bc(r,v){if(1&r&&(A.TgZ(0,"td",43),A.YNc(1,lc,2,0,"p",44),A.YNc(2,cc,2,0,"p",44),A.YNc(3,gc,2,1,"p",44),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedForwardingEvents&&t.failedForwardingEvents.data)||(null==t.failedForwardingEvents||null==t.failedForwardingEvents.data?null:t.failedForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedForwardingEvents&&t.failedForwardingEvents.data)||(null==t.failedForwardingEvents||null==t.failedForwardingEvents.data?null:t.failedForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedForwardingEvents&&t.failedForwardingEvents.data)||(null==t.failedForwardingEvents||null==t.failedForwardingEvents.data?null:t.failedForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const uc=function(r){return{"display-none":r}};function fc(r,v){if(1&r&&A._UZ(0,"tr",45),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,uc,(null==t.failedForwardingEvents?null:t.failedForwardingEvents.data)&&(null==t.failedForwardingEvents||null==t.failedForwardingEvents.data?null:t.failedForwardingEvents.data.length)>0))}}function hc(r,v){1&r&&A._UZ(0,"tr",46)}function Ec(r,v){1&r&&A._UZ(0,"tr",47)}const wc=function(){return["no_event"]};function Cc(r,v){if(1&r&&(A.TgZ(0,"div",10),A.YNc(1,io,1,0,"mat-progress-bar",11),A.TgZ(2,"table",12,13),A.ynx(4,14),A.YNc(5,ra,2,0,"th",15),A.YNc(6,Vl,3,4,"td",16),A.BQk(),A.ynx(7,17),A.YNc(8,Wl,2,0,"th",15),A.YNc(9,Xl,3,4,"td",16),A.BQk(),A.ynx(10,18),A.YNc(11,ql,2,0,"th",15),A.YNc(12,_l,2,1,"td",16),A.BQk(),A.ynx(13,19),A.YNc(14,$l,2,0,"th",15),A.YNc(15,Ac,2,1,"td",16),A.BQk(),A.ynx(16,20),A.YNc(17,tc,2,0,"th",21),A.YNc(18,ec,4,4,"td",16),A.BQk(),A.ynx(19,22),A.YNc(20,nc,2,0,"th",21),A.YNc(21,rc,4,4,"td",16),A.BQk(),A.ynx(22,23),A.YNc(23,ic,2,0,"th",21),A.YNc(24,ac,4,4,"td",16),A.BQk(),A.ynx(25,24),A.YNc(26,oc,6,0,"th",25),A.YNc(27,sc,3,0,"td",26),A.BQk(),A.ynx(28,27),A.YNc(29,Bc,4,3,"td",28),A.BQk(),A.YNc(30,fc,1,3,"tr",29),A.YNc(31,hc,1,0,"tr",30),A.YNc(32,Ec,1,0,"tr",31),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.failedForwardingEvents),A.xp6(28),A.Q6J("matFooterRowDef",A.DdM(6,wc)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}function Qc(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-paginator",48),A.NdJ("page",function(G){return A.CHM(t),A.oxw().onPageChange(G)}),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("length",t.totalFailedTransactions)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let dc=(()=>{class r{constructor(t,s,G,DA,ht){this.logger=t,this.commonService=s,this.store=G,this.datePipe=DA,this.router=ht,this.errorMessage="",this.displayedColumns=[],this.flgSticky=!1,this.selFilter="",this.indexOffset=-1,this.totalFailedTransactions=0,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["received_time","in_channel","in_msatoshi","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["received_time","in_channel","out_channel","in_msatoshi","out_msatoshi","actions"]):(this.flgSticky=!0,this.displayedColumns=["received_time","resolved_time","in_channel","out_channel","in_msatoshi","out_msatoshi","fee","actions"])}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.store.dispatch((0,ft.u0)({payload:{status:a.OO.FAILED,maxLen:this.pageSize,offset:0}})),this.store.select(B.xQ).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.totalFailedTransactions=t.failedForwardingHistory.totalForwards,this.indexOffset=t.failedForwardingHistory.offset,this.failedEvents=t.failedForwardingHistory.listForwards||[],this.failedEvents.length>0&&this.sort&&this.paginator&&this.loadFailedEventsTable(this.failedEvents),this.logger.info(t)})}ngAfterViewInit(){this.failedEvents.length>0&&this.loadFailedEventsTable(this.failedEvents)}onFailedEventClick(t){const s=[[{key:"received_time",value:t.received_time,title:"Received Time",width:50,type:a.Gi.DATE_TIME},{key:"resolved_time",value:t.resolved_time,title:"Resolved Time",width:50,type:a.Gi.DATE_TIME}],[{key:"in_channel_alias",value:t.in_channel_alias,title:"Inbound Channel",width:50,type:a.Gi.STRING},{key:"out_channel_alias",value:t.out_channel_alias,title:"Outbound Channel",width:50,type:a.Gi.STRING}],[{key:"in_msatoshi",value:t.in_msatoshi,title:"Amount In (mSats)",width:33,type:a.Gi.NUMBER},{key:"out_msatoshi",value:t.out_msatoshi,title:"Amount Out (mSats)",width:33,type:a.Gi.NUMBER},{key:"fee",value:t.fee,title:"Fee (mSats)",width:34,type:a.Gi.NUMBER}]];t.payment_hash&&s.unshift([{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:a.Gi.STRING}]),this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Failed Event Information",message:s}}}))}loadFailedEventsTable(t){this.failedForwardingEvents=new yA.by([...t]),this.failedForwardingEvents.sort=this.sort,this.failedForwardingEvents.sortingDataAccessor=(s,G)=>s[G]&&isNaN(s[G])?s[G].toLocaleLowerCase():s[G]?+s[G]:null,this.failedForwardingEvents.filterPredicate=(s,G)=>((s.received_time?this.datePipe.transform(new Date(1e3*s.received_time),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(s.resolved_time?this.datePipe.transform(new Date(1e3*s.resolved_time),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(s.payment_hash?s.payment_hash.toLowerCase():"")+(s.in_channel?s.in_channel.toLowerCase():"")+(s.out_channel?s.out_channel.toLowerCase():"")+(s.in_channel_alias?s.in_channel_alias.toLowerCase():"")+(s.out_channel_alias?s.out_channel_alias.toLowerCase():"")+(s.in_msatoshi?s.in_msatoshi/1e3:"")+(s.out_msatoshi?s.out_msatoshi/1e3:"")+(s.fee?s.fee:"")).includes(G),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")}applyFilter(){this.failedForwardingEvents.filter=this.selFilter.trim().toLowerCase()}onPageChange(t){this.pageSize!==t.pageSize?(this.pageSize=t.pageSize,this.indexOffset=0):this.indexOffset=t.pageIndex*this.pageSize,this.store.dispatch((0,ft.u0)({payload:{status:a.OO.FAILED,maxLen:this.pageSize,offset:this.indexOffset}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh),A.Y36(Et.uU),A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-failed-history"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(VA.NW,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.sort=G.first),A.iGM(G=A.CRH())&&(s.paginator=G.first)}},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Failed events")}])],decls:5,vars:4,consts:[["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,"length","pageSize","pageSizeOptions","showFirstLastButtons","page",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","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["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,"dataSource"],["table",""],["matColumnDef","received_time"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","resolved_time"],["matColumnDef","in_channel"],["matColumnDef","out_channel"],["matColumnDef","in_msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","out_msatoshi"],["matColumnDef","fee"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","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","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,no,2,1,"div",1),A.YNc(2,ro,4,1,"div",2),A.YNc(3,Cc,33,7,"div",3),A.YNc(4,Qc,1,4,"mat-paginator",4),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage))},directives:[Ct.xw,Ct.Wh,Et.O5,Ct.yH,W.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,yA.BZ,rt.YE,yA.w1,yA.fO,yA.Dz,yA.mD,yA.Ke,yA.as,yA.nj,T.pW,yA.ge,rt.nU,yA.ev,R.gD,R.$L,wA.ey,Y.lW,yA.yh,yA.Q2,Et.mk,d.oO,yA.XQ,yA.Gk,VA.NW],pipes:[Et.uU,Et.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();const Mc=["tableIn"],pc=["tableOut"],Ic=["paginatorIn"],mc=["paginatorOut"];function Dc(r,v){if(1&r&&(A.TgZ(0,"div",3),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Oqu(t.errorMessage)}}function vc(r,v){1&r&&A._UZ(0,"mat-progress-bar",36)}function yc(r,v){1&r&&(A.TgZ(0,"th",37),A._uU(1,"Channel ID"),A.qZA())}const ao=function(r){return{"max-width":r}};function xc(r,v){if(1&r&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&r){const t=v.$implicit,s=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,ao,s.screenSize===s.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.channel_id)}}function Fc(r,v){1&r&&(A.TgZ(0,"th",37),A._uU(1,"Peer Alias"),A.qZA())}function Yc(r,v){if(1&r&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&r){const t=v.$implicit,s=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,ao,s.screenSize===s.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.alias)}}function Tc(r,v){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Events"),A.qZA())}function Nc(r,v){if(1&r&&(A.TgZ(0,"td",40),A.TgZ(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.lcZ(3,1,t.events))}}function Sc(r,v){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Amount (Sats)"),A.qZA())}function Uc(r,v){if(1&r&&(A.TgZ(0,"td",40),A.TgZ(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.total_amount)/1e3,(null==t?null:t.total_amount)<1e3?"1.0-4":"1.0-0"))}}function Pc(r,v){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Fee (Sats)"),A.qZA())}function Rc(r,v){if(1&r&&(A.TgZ(0,"td",40),A.TgZ(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.total_fee)/1e3,(null==t?null:t.total_fee)<1e3?"1.0-4":"1.0-0"))}}function zc(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No incoming routing peer available."),A.qZA())}function Lc(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting incoming routing peers..."),A.qZA())}function bc(r,v){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function Gc(r,v){if(1&r&&(A.TgZ(0,"td",42),A.YNc(1,zc,2,0,"p",43),A.YNc(2,Lc,2,0,"p",43),A.YNc(3,bc,2,1,"p",43),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersIncoming&&t.RoutingPeersIncoming.data)||(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersIncoming&&t.RoutingPeersIncoming.data)||(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersIncoming&&t.RoutingPeersIncoming.data)||(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const Hl=function(r){return{"display-none":r}};function Hc(r,v){if(1&r&&A._UZ(0,"tr",44),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Hl,(null==t.RoutingPeersIncoming?null:t.RoutingPeersIncoming.data)&&(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)>0))}}function Jc(r,v){1&r&&A._UZ(0,"tr",45)}function Oc(r,v){1&r&&A._UZ(0,"tr",46)}function kc(r,v){1&r&&A._UZ(0,"mat-progress-bar",36)}function jc(r,v){1&r&&(A.TgZ(0,"th",37),A._uU(1,"Channel ID"),A.qZA())}function Zc(r,v){if(1&r&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&r){const t=v.$implicit,s=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,ao,s.screenSize===s.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.channel_id)}}function Kc(r,v){1&r&&(A.TgZ(0,"th",37),A._uU(1,"Peer Alias"),A.qZA())}function Vc(r,v){if(1&r&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&r){const t=v.$implicit,s=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,ao,s.screenSize===s.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.alias)}}function Wc(r,v){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Events"),A.qZA())}function Xc(r,v){if(1&r&&(A.TgZ(0,"td",40),A.TgZ(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.lcZ(3,1,t.events))}}function qc(r,v){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Amount (Sats)"),A.qZA())}function _c(r,v){if(1&r&&(A.TgZ(0,"td",40),A.TgZ(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.total_amount)/1e3,(null==t?null:t.total_amount)<1e3?"1.0-4":"1.0-0"))}}function $c(r,v){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Fee (Sats)"),A.qZA())}function Ag(r,v){if(1&r&&(A.TgZ(0,"td",40),A.TgZ(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.total_fee)/1e3,(null==t?null:t.total_fee)<1e3?"1.0-4":"1.0-0"))}}function tg(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No outgoing routing peer available."),A.qZA())}function eg(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting outgoing routing peers..."),A.qZA())}function ng(r,v){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function rg(r,v){if(1&r&&(A.TgZ(0,"td",42),A.YNc(1,tg,2,0,"p",43),A.YNc(2,eg,2,0,"p",43),A.YNc(3,ng,2,1,"p",43),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersOutgoing&&t.RoutingPeersOutgoing.data)||(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersOutgoing&&t.RoutingPeersOutgoing.data)||(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersOutgoing&&t.RoutingPeersOutgoing.data)||(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}function ig(r,v){if(1&r&&A._UZ(0,"tr",44),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Hl,(null==t.RoutingPeersOutgoing?null:t.RoutingPeersOutgoing.data)&&(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)>0))}}function ag(r,v){1&r&&A._UZ(0,"tr",45)}function og(r,v){1&r&&A._UZ(0,"tr",46)}const sg=function(r,v){return{"mt-2":r,"mt-1":v}},lg=function(){return["no_incoming_event"]},cg=function(r){return{"mt-2":r}},gg=function(){return["no_outgoing_event"]};function Bg(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",4),A.TgZ(1,"div",5),A.TgZ(2,"div",6),A.TgZ(3,"div",7),A._uU(4,"Incoming"),A.qZA(),A.TgZ(5,"mat-form-field",8),A.TgZ(6,"input",9),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyIncomingFilter()})("ngModelChange",function(G){return A.CHM(t),A.oxw().filterIn=G}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(7,"div",10),A.YNc(8,vc,1,0,"mat-progress-bar",11),A.TgZ(9,"table",12,13),A.ynx(11,14),A.YNc(12,yc,2,0,"th",15),A.YNc(13,xc,2,4,"td",16),A.BQk(),A.ynx(14,17),A.YNc(15,Fc,2,0,"th",15),A.YNc(16,Yc,2,4,"td",16),A.BQk(),A.ynx(17,18),A.YNc(18,Tc,2,0,"th",19),A.YNc(19,Nc,4,3,"td",20),A.BQk(),A.ynx(20,21),A.YNc(21,Sc,2,0,"th",19),A.YNc(22,Uc,4,4,"td",20),A.BQk(),A.ynx(23,22),A.YNc(24,Pc,2,0,"th",19),A.YNc(25,Rc,4,4,"td",20),A.BQk(),A.ynx(26,23),A.YNc(27,Gc,4,3,"td",24),A.BQk(),A.YNc(28,Hc,1,3,"tr",25),A.YNc(29,Jc,1,0,"tr",26),A.YNc(30,Oc,1,0,"tr",27),A.qZA(),A.qZA(),A._UZ(31,"mat-paginator",28,29),A.qZA(),A.TgZ(33,"div",30),A.TgZ(34,"div",6),A.TgZ(35,"div",7),A._uU(36,"Outgoing"),A.qZA(),A.TgZ(37,"mat-form-field",8),A.TgZ(38,"input",9),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyOutgoingFilter()})("ngModelChange",function(G){return A.CHM(t),A.oxw().filterOut=G}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(39,"div",31),A.YNc(40,kc,1,0,"mat-progress-bar",11),A.TgZ(41,"table",32,33),A.ynx(43,14),A.YNc(44,jc,2,0,"th",15),A.YNc(45,Zc,2,4,"td",16),A.BQk(),A.ynx(46,17),A.YNc(47,Kc,2,0,"th",15),A.YNc(48,Vc,2,4,"td",16),A.BQk(),A.ynx(49,18),A.YNc(50,Wc,2,0,"th",19),A.YNc(51,Xc,4,3,"td",20),A.BQk(),A.ynx(52,21),A.YNc(53,qc,2,0,"th",19),A.YNc(54,_c,4,4,"td",20),A.BQk(),A.ynx(55,22),A.YNc(56,$c,2,0,"th",19),A.YNc(57,Ag,4,4,"td",20),A.BQk(),A.ynx(58,34),A.YNc(59,rg,4,3,"td",24),A.BQk(),A.YNc(60,ig,1,3,"tr",25),A.YNc(61,ag,1,0,"tr",26),A.YNc(62,og,1,0,"tr",27),A.qZA(),A._UZ(63,"mat-paginator",28,35),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=A.oxw();A.xp6(2),A.Q6J("ngClass",A.WLB(22,sg,t.screenSize===t.screenSizeEnum.XS,t.screenSize===t.screenSizeEnum.SM)),A.xp6(4),A.Q6J("ngModel",t.filterIn),A.xp6(2),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.RoutingPeersIncoming),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(25,lg)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns),A.xp6(1),A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS),A.xp6(3),A.Q6J("ngClass",A.VKq(26,cg,t.screenSize!==t.screenSizeEnum.LG)),A.xp6(4),A.Q6J("ngModel",t.filterOut),A.xp6(2),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.RoutingPeersOutgoing),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(28,gg)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns),A.xp6(1),A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let ug=(()=>{class r{constructor(t,s,G){this.logger=t,this.commonService=s,this.store=G,this.eventsData=[],this.filterValue="",this.successfulEvents=[],this.displayedColumns=[],this.RoutingPeersIncoming=[],this.RoutingPeersOutgoing=[],this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.filterIn="",this.filterOut="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","total_fee"]):this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","events","total_fee"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","events","total_amount","total_fee"]):(this.flgSticky=!0,this.displayedColumns=["channel_id","alias","events","total_amount","total_fee"])}ngOnInit(){this.store.select(B.Bo).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.eventsData.length<=0&&(this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.successfulEvents=t.forwardingHistory.listForwards||[],this.successfulEvents.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.successfulEvents),this.logger.info(t))})}ngAfterViewInit(){this.successfulEvents.length>0&&this.loadRoutingPeersTable(this.successfulEvents)}ngOnChanges(t){t.eventsData&&(this.apiCallStatus={status:a.Bn.COMPLETED,action:"FetchForwardingHistory"},this.eventsData=t.eventsData.currentValue,this.successfulEvents=this.eventsData,t.eventsData.firstChange||this.loadRoutingPeersTable(this.successfulEvents))}loadRoutingPeersTable(t){if(t.length>0){const s=this.groupRoutingPeers(t);this.RoutingPeersIncoming=new yA.by(s[0]),this.RoutingPeersIncoming.sort=this.sortIn,this.RoutingPeersIncoming.filterPredicate=(G,DA)=>JSON.stringify(G).toLowerCase().includes(DA),this.RoutingPeersIncoming.paginator=this.paginatorIn,this.logger.info(this.RoutingPeersIncoming),this.RoutingPeersOutgoing=new yA.by(s[1]),this.RoutingPeersOutgoing.sort=this.sortOut,this.RoutingPeersOutgoing.filterPredicate=(G,DA)=>JSON.stringify(G).toLowerCase().includes(DA),this.RoutingPeersOutgoing.paginator=this.paginatorOut,this.logger.info(this.RoutingPeersOutgoing)}else this.RoutingPeersIncoming=new yA.by([]),this.RoutingPeersOutgoing=new yA.by([]);this.applyIncomingFilter(),this.applyOutgoingFilter(),this.logger.info(this.RoutingPeersIncoming),this.logger.info(this.RoutingPeersOutgoing)}groupRoutingPeers(t){const s=[],G=[];return t.forEach(DA=>{const ht=s.find(un=>un.channel_id===DA.in_channel),Ce=G.find(un=>un.channel_id===DA.out_channel);ht?(ht.events++,ht.total_amount=+ht.total_amount+ +DA.in_msatoshi,ht.total_fee=DA.in_msatoshi-DA.out_msatoshi+ +ht.total_fee):s.push({channel_id:DA.in_channel,alias:DA.in_channel_alias,events:1,total_amount:DA.in_msatoshi,total_fee:DA.in_msatoshi-DA.out_msatoshi}),Ce?(Ce.events++,Ce.total_amount=+Ce.total_amount+ +DA.out_msatoshi,Ce.total_fee=DA.in_msatoshi-DA.out_msatoshi+ +Ce.total_fee):G.push({channel_id:DA.out_channel,alias:DA.out_channel_alias,events:1,total_amount:DA.out_msatoshi,total_fee:DA.in_msatoshi-DA.out_msatoshi})}),[this.commonService.sortDescByKey(s,"total_fee"),this.commonService.sortDescByKey(G,"total_fee")]}applyIncomingFilter(){this.RoutingPeersIncoming.filter=this.filterIn.toLowerCase()}applyOutgoingFilter(){this.RoutingPeersOutgoing.filter=this.filterOut.toLowerCase()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-routing-peers"]],viewQuery:function(t,s){if(1&t&&(A.Gf(Mc,5,rt.YE),A.Gf(pc,5,rt.YE),A.Gf(Ic,5),A.Gf(mc,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.sortIn=G.first),A.iGM(G=A.CRH())&&(s.sortOut=G.first),A.iGM(G=A.CRH())&&(s.paginatorIn=G.first),A.iGM(G=A.CRH())&&(s.paginatorOut=G.first)}},inputs:{eventsData:"eventsData",filterValue:"filterValue"},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Peers")}]),A.TTD],decls:3,vars:2,consts:[["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",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"],["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","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["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,"dataSource"],["tableIn",""],["matColumnDef","channel_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","events"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["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","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["paginatorIn",""],["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,"dataSource"],["tableOut",""],["matColumnDef","no_outgoing_event"],["paginatorOut",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,Dc,2,1,"div",1),A.YNc(2,Bg,65,29,"div",2),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage))},directives:[Ct.xw,Ct.Wh,Et.O5,Ct.yH,Et.mk,d.oO,W.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,yA.BZ,rt.YE,yA.w1,yA.fO,yA.Dz,yA.mD,yA.Ke,yA.as,yA.nj,VA.NW,T.pW,yA.ge,rt.nU,yA.ev,Et.PC,d.Zl,yA.yh,yA.Q2,yA.XQ,yA.Gk],pipes:[Et.JJ],styles:[".mat-column-channelId[_ngcontent-%COMP%], .mat-column-alias[_ngcontent-%COMP%]{flex:1 1 10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),r})();function fg(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",7),A.NdJ("click",function(){const DA=A.CHM(t).$implicit;return A.oxw().activeLink=DA.link}),A._uU(1),A.qZA()}if(2&r){const t=v.$implicit,s=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",s.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let hg=(()=>{class r{constructor(t){this.router=t,this.faChartBar=h.koM,this.links=[{link:"routingreport",name:"Routing"},{link:"transactions",name:"Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new c.x,new c.x,new c.x,new c.x]}ngOnInit(){const t=this.links.find(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(s=>s instanceof _t.Av)).subscribe({next:s=>{const G=this.links.find(DA=>s.urlAfterRedirects.includes(DA.link));this.activeLink=G?G.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-reports"]],decls:10,vars:2,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-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Reports"),A.qZA(),A.qZA(),A.TgZ(4,"div",3),A.TgZ(5,"mat-card"),A.TgZ(6,"mat-card-content",4),A.TgZ(7,"nav",5),A.YNc(8,fg,2,3,"div",6),A.qZA(),A._UZ(9,"router-outlet"),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(1),A.Q6J("icon",s.faChartBar),A.xp6(7),A.Q6J("ngForOf",s.links))},directives:[Ct.xw,Ct.Wh,f.BN,w.a8,w.dn,ut.BU,Et.sg,_t.lC,ut.Nj,_t.rH],styles:[""]}),r})();var Jl=St(7772),Ol=St(7671),kl=St(6046);function Eg(r,v){1&r&&(A.TgZ(0,"div",14),A._UZ(1,"mat-progress-bar",15),A.TgZ(2,"p"),A._uU(3,"Getting Forwarding History..."),A.qZA(),A.qZA())}function wg(r,v){if(1&r&&(A.TgZ(0,"div",16),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Oqu(t.errorMessage)}}function Cg(r,v){if(1&r&&(A.TgZ(0,"div",17),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=A.oxw();A.Q6J("@fadeIn",t.totalFeeMsat),A.xp6(1),A.AsE("",A.xi3(2,3,t.totalFeeMsat/1e3||0,"1.0-2")," Sats/",A.lcZ(3,6,t.filteredEventsBySelectedPeriod.length||0)," Events")}}function Qg(r,v){1&r&&(A.TgZ(0,"div",14),A._uU(1,"No routing report for the selected period"),A.qZA())}function dg(r,v){if(1&r&&(A.TgZ(0,"span"),A.TgZ(1,"span",20),A._uU(2),A.ALo(3,"number"),A.qZA(),A.TgZ(4,"span",20),A._uU(5),A.ALo(6,"number"),A.qZA(),A.qZA()),2&r){const t=v.model,s=A.oxw(2);A.xp6(2),A.hij("Events: ",A.lcZ(3,2,(s.selReportBy===s.reportBy.EVENTS?t.value:t.extra.totalEvents)||0),""),A.xp6(3),A.hij("Fee: ",A.xi3(6,4,(s.selReportBy===s.reportBy.EVENTS?t.extra.totalFees:t.value)||0,"1.0-2"),"")}}function Mg(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"ngx-charts-bar-vertical",18),A.NdJ("select",function(G){return A.CHM(t),A.oxw().onChartBarSelected(G)})("mouseup",function(G){return A.CHM(t),A.oxw().onChartMouseUp(G)}),A.YNc(1,dg,7,7,"ng-template",null,19,A.W1O),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("view",t.view)("results",t.routingReportData)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",t.showYAxisLabel)("xAxisLabel",t.xAxisLabel)("yAxisLabel",t.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)}}function pg(r,v){if(1&r&&A._UZ(0,"rtl-cln-forwarding-history",21),2&r){const t=A.oxw();A.Q6J("eventsData",t.filteredEventsBySelectedPeriod)("filterValue",t.eventFilterValue)}}let Ig=(()=>{class r{constructor(t,s,G){this.logger=t,this.commonService=s,this.store=G,this.reportPeriod=a.op[0],this.secondsInADay=86400,this.events=[],this.filteredEventsBySelectedPeriod=[],this.eventFilterValue="",this.reportBy=a.Xr,this.selReportBy=a.Xr.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=a.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===a.cu.XS||this.screenSize===a.cu.SM),this.store.select(B.Bo).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.events=t.forwardingHistory.listForwards||[],this.filterForwardingEvents(this.startDate,this.endDate),this.logger.info(t)}),this.commonService.containerSizeUpdated.pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{switch(this.screenSize){case a.cu.MD:this.screenPaddingX=t.width/10;break;case a.cu.LG:this.screenPaddingX=t.width/16;break;default:this.screenPaddingX=t.width/20}this.view=[t.width-this.screenPaddingX,t.height/2.2],this.logger.info("Container Size: "+JSON.stringify(t)),this.logger.info("View: "+JSON.stringify(this.view))})}filterForwardingEvents(t,s){const G=Math.round(t.getTime()/1e3),DA=Math.round(s.getTime()/1e3);this.filteredEventsBySelectedPeriod=[],this.routingReportData=[],this.totalFeeMsat=null,this.events&&this.events.length>0&&(this.events.forEach(ht=>{ht.received_time>=G&&ht.received_time0&&"ngx-charts"===t.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(t){this.eventFilterValue=this.reportPeriod===a.op[1]?t.name+"/"+this.startDate.getFullYear():t.name.toString().padStart(2,"0")+"/"+a.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}prepareFeeReport(t){const s=Math.round(t.getTime()/1e3),G=[];if(this.totalFeeMsat=0,this.reportPeriod===a.op[1]){for(let DA=0;DA<12;DA++)G.push({name:a.gg[DA].name,value:0,extra:{totalEvents:0}});this.filteredEventsBySelectedPeriod.map(DA=>{const ht=new Date(1e3*+DA.received_time).getMonth();return G[ht].value=G[ht].value+ +DA.fee/1e3,G[ht].extra.totalEvents=G[ht].extra.totalEvents+1,this.totalFeeMsat=(this.totalFeeMsat?this.totalFeeMsat:0)+ +DA.fee,this.filteredEventsBySelectedPeriod})}else{for(let DA=0;DA{const ht=Math.floor((+DA.received_time-s)/this.secondsInADay);return G[ht].value=G[ht].value+ +DA.fee/1e3,G[ht].extra.totalEvents=G[ht].extra.totalEvents+1,this.totalFeeMsat=(this.totalFeeMsat?this.totalFeeMsat:0)+ +DA.fee,this.filteredEventsBySelectedPeriod})}return G}prepareEventsReport(t){const s=Math.round(t.getTime()/1e3),G=[];if(this.totalFeeMsat=0,this.reportPeriod===a.op[1]){for(let DA=0;DA<12;DA++)G.push({name:a.gg[DA].name,value:0,extra:{totalFees:0}});this.filteredEventsBySelectedPeriod.map(DA=>{const ht=new Date(1e3*+DA.received_time).getMonth();return G[ht].value=G[ht].value+1,G[ht].extra.totalFees=G[ht].extra.totalFees+ +DA.fee/1e3,this.totalFeeMsat=(this.totalFeeMsat?this.totalFeeMsat:0)+ +DA.fee,this.filteredEventsBySelectedPeriod})}else{for(let DA=0;DA{const ht=Math.floor((+DA.received_time-s)/this.secondsInADay);return G[ht].value=G[ht].value+1,G[ht].extra.totalFees=G[ht].extra.totalFees+ +DA.fee/1e3,this.totalFeeMsat=(this.totalFeeMsat?this.totalFeeMsat:0)+ +DA.fee,this.filteredEventsBySelectedPeriod})}return G}onSelectionChange(t){const s=t.selDate.getMonth(),G=t.selDate.getFullYear();this.reportPeriod=t.selScrollRange,this.reportPeriod===a.op[1]?(this.startDate=new Date(G,0,1,0,0,0),this.endDate=new Date(G,11,31,23,59,59)):(this.startDate=new Date(G,s,1,0,0,0),this.endDate=new Date(G,s,this.getMonthDays(s,G),23,59,59)),this.filterForwardingEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(t,s){return 1===t&&s%4==0?a.gg[t].days+1:a.gg[t].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(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-routing-report"]],hostBindings:function(t,s){1&t&&A.NdJ("mouseup",function(DA){return s.onChartMouseUp(DA)})},decls:19,vars:9,consts:[["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 start",1,"my-1",3,"ngModel","ngModelChange","change"],[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"],[3,"eventsData","filterValue",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,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"eventsData","filterValue"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"rtl-horizontal-scroller",1),A.NdJ("stepChanged",function(DA){return s.onSelectionChange(DA)}),A.qZA(),A.TgZ(2,"div",2),A.TgZ(3,"mat-radio-group",3),A.NdJ("ngModelChange",function(DA){return s.selReportBy=DA})("change",function(){return s.onSelReportByChange()}),A.TgZ(4,"span",4),A._uU(5,"Report By: "),A.qZA(),A.TgZ(6,"mat-radio-button",5),A._uU(7,"Fees"),A.qZA(),A.TgZ(8,"mat-radio-button",6),A._uU(9,"Events"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(10,"div",7),A.YNc(11,Eg,4,0,"div",8),A.YNc(12,wg,2,1,"div",9),A.YNc(13,Cg,4,8,"div",10),A.YNc(14,Qg,2,0,"div",8),A.TgZ(15,"div",11),A.YNc(16,Mg,3,11,"ngx-charts-bar-vertical",12),A.qZA(),A.TgZ(17,"div",11),A.YNc(18,pg,1,2,"rtl-cln-forwarding-history",13),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(3),A.Q6J("ngModel",s.selReportBy),A.xp6(3),A.s9C("value",s.reportBy.FEES),A.xp6(2),A.s9C("value",s.reportBy.EVENTS),A.xp6(3),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.ERROR),A.xp6(1),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.COMPLETED&&s.routingReportData.length>0&&s.filteredEventsBySelectedPeriod.length>0),A.xp6(1),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.COMPLETED&&(s.routingReportData.length<=0||s.filteredEventsBySelectedPeriod.length<=0)),A.xp6(2),A.Q6J("ngIf",s.routingReportData.length>0&&s.filteredEventsBySelectedPeriod.length>0),A.xp6(2),A.Q6J("ngIf",s.filteredEventsBySelectedPeriod&&s.filteredEventsBySelectedPeriod.length>0))},directives:[Ct.xw,Ct.Wh,Ct.yH,Ol.D,zA.VQ,OA.JJ,OA.On,zA.U0,Et.O5,T.pW,kl.K$,na],pipes:[Et.JJ],styles:[""],data:{animation:[Jl.J]}}),r})();var mg=St(165);function Dg(r,v){if(1&r&&(A.TgZ(0,"div",10),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.AsE(" Paid ",A.xi3(2,2,t.transactionsReportSummary.amountPaidSelectedPeriod/1e3||0,"1.0-2")," Sats/",A.lcZ(3,5,t.transactionsReportSummary.paymentsSelectedPeriod)," Payments ")}}function vg(r,v){if(1&r&&(A.TgZ(0,"div",10),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.AsE(" Received ",A.xi3(2,2,t.transactionsReportSummary.amountReceivedSelectedPeriod/1e3||0,"1.0-2")," Sats/",A.lcZ(3,5,t.transactionsReportSummary.invoicesSelectedPeriod)," Invoices ")}}function yg(r,v){if(1&r&&(A.TgZ(0,"div",8),A.YNc(1,Dg,4,7,"div",9),A.YNc(2,vg,4,7,"div",9),A.qZA()),2&r){const t=A.oxw();A.Q6J("@fadeIn",t.transactionsReportSummary),A.xp6(1),A.Q6J("ngIf",t.transactionsReportSummary.paymentsSelectedPeriod),A.xp6(1),A.Q6J("ngIf",t.transactionsReportSummary.invoicesSelectedPeriod)}}function xg(r,v){1&r&&(A.TgZ(0,"div",11),A._uU(1,"No transactions report for the selected period"),A.qZA())}function Fg(r,v){if(1&r&&(A.TgZ(0,"span",14),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=v.model;A.xp6(1),A.HOy("",t.name,": ",A.xi3(2,4,t.value||0,"1.0-2"),"/# ","Paid"===t.name?"Payments":"Invoices",": ",A.lcZ(3,7,(null==t.extra?null:t.extra.total)||0),"")}}function Yg(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"ngx-charts-bar-vertical-2d",12),A.NdJ("select",function(G){return A.CHM(t),A.oxw().onChartBarSelected(G)})("mouseup",function(G){return A.CHM(t),A.oxw().onChartMouseUp(G)}),A.YNc(1,Fg,4,9,"ng-template",null,13,A.W1O),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("view",t.view)("results",t.transactionsReportData)("noBarWhenZero",!1)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",t.showYAxisLabel)("xAxisLabel",t.xAxisLabel)("yAxisLabel",t.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)("groupPadding",t.reportPeriod===t.scrollRanges[0]?2:4)}}function Tg(r,v){if(1&r&&A._UZ(0,"rtl-transactions-report-table",15),2&r){const t=A.oxw();A.Q6J("dataList",t.transactionsNonZeroReportData)("dataRange",t.reportPeriod)("filterValue",t.transactionFilterValue)}}let Ng=(()=>{class r{constructor(t,s,G){this.logger=t,this.commonService=s,this.store=G,this.scrollRanges=a.op,this.reportPeriod=a.op[0],this.secondsInADay=86400,this.payments=[],this.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=a.cu,this.unSubs=[new c.x,new c.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===a.cu.XS||this.screenSize===a.cu.SM),this.store.select(B.PP).pipe((0,i.R)(this.unSubs[0]),(0,o.M)(this.store.select(B.gc))).subscribe(([t,s])=>{this.payments=t.payments,this.invoices=s.listInvoices.invoices,this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData()}),this.commonService.containerSizeUpdated.pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{switch(this.screenSize){case a.cu.MD:this.screenPaddingX=t.width/10;break;case a.cu.LG:this.screenPaddingX=t.width/16;break;default:this.screenPaddingX=t.width/20}this.view=[t.width-this.screenPaddingX,t.height/2.2],this.logger.info("Container Size: "+JSON.stringify(t)),this.logger.info("View: "+JSON.stringify(this.view))})}onChartMouseUp(t){"svg"===t.srcElement.tagName&&t.srcElement.classList.length>0&&"ngx-charts"===t.srcElement.classList[0]&&(this.transactionFilterValue="")}onChartBarSelected(t){this.transactionFilterValue=this.reportPeriod===a.op[1]?t.series+"/"+this.startDate.getFullYear():t.series.toString().padStart(2,"0")+"/"+a.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(t,s){const G=Math.round(t.getTime()/1e3),DA=Math.round(s.getTime()/1e3),ht=[];this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};const Ce=this.payments.filter(Qe=>"complete"===Qe.status&&Qe.created_at>=G&&Qe.created_at"paid"===Qe.status&&Qe.paid_at>=G&&Qe.paid_at{const An=new Date(1e3*Qe.created_at).getMonth();return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+Qe.msatoshi_sent,ht[An].series[0].value=ht[An].series[0].value+Qe.msatoshi_sent/1e3,ht[An].series[0].extra.total=ht[An].series[0].extra.total+1,this.transactionsReportSummary}),un.map(Qe=>{const An=new Date(1e3*+Qe.paid_at).getMonth();return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+Qe.msatoshi_received,ht[An].series[1].value=ht[An].series[1].value+Qe.msatoshi_received/1e3,ht[An].series[1].extra.total=ht[An].series[1].extra.total+1,this.transactionsReportSummary})}else{for(let Qe=0;Qe{const An=Math.floor((+Qe.created_at-G)/this.secondsInADay);return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+Qe.msatoshi_sent,ht[An].series[0].value=ht[An].series[0].value+Qe.msatoshi_sent/1e3,ht[An].series[0].extra.total=ht[An].series[0].extra.total+1,this.transactionsReportSummary}),un.map(Qe=>{const An=Math.floor((+Qe.paid_at-G)/this.secondsInADay);return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+Qe.msatoshi_received,ht[An].series[1].value=ht[An].series[1].value+Qe.msatoshi_received/1e3,ht[An].series[1].extra.total=ht[An].series[1].extra.total+1,this.transactionsReportSummary})}return ht}prepareTableData(){return this.transactionsReportData.reduce((t,s)=>s.series[0].extra.total>0||s.series[1].extra.total>0?t.concat({date:s.date,amount_paid:s.series[0].value,num_payments:s.series[0].extra.total,amount_received:s.series[1].value,num_invoices:s.series[1].extra.total}):t,[])}onSelectionChange(t){const s=t.selDate.getMonth(),G=t.selDate.getFullYear();this.reportPeriod=t.selScrollRange,this.reportPeriod===a.op[1]?(this.startDate=new Date(G,0,1,0,0,0),this.endDate=new Date(G,11,31,23,59,59)):(this.startDate=new Date(G,s,1,0,0,0),this.endDate=new Date(G,s,this.getMonthDays(s,G),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(t,s){return 1===t&&s%4==0?a.gg[t].days+1:a.gg[t].days}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-transactions-report"]],hostBindings:function(t,s){1&t&&A.NdJ("mouseup",function(DA){return s.onChartMouseUp(DA)})},decls:9,vars:4,consts:[["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,"dataList","dataRange","filterValue",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,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"dataList","dataRange","filterValue"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"rtl-horizontal-scroller",1),A.NdJ("stepChanged",function(DA){return s.onSelectionChange(DA)}),A.qZA(),A.TgZ(2,"div",2),A.YNc(3,yg,3,3,"div",3),A.YNc(4,xg,2,0,"div",4),A.TgZ(5,"div",5),A.YNc(6,Yg,3,13,"ngx-charts-bar-vertical-2d",6),A.qZA(),A.TgZ(7,"div",5),A.YNc(8,Tg,1,3,"rtl-transactions-report-table",7),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(3),A.Q6J("ngIf",s.transactionsNonZeroReportData.length>0),A.xp6(1),A.Q6J("ngIf",s.transactionsNonZeroReportData.length<=0),A.xp6(2),A.Q6J("ngIf",s.transactionsNonZeroReportData.length>0),A.xp6(2),A.Q6J("ngIf",s.transactionsNonZeroReportData.length>0))},directives:[Ct.xw,Ct.Wh,Ct.yH,Ol.D,Et.O5,kl.H5,mg.g],pipes:[Et.JJ],styles:[""],data:{animation:[Jl.J]}}),r})();var ze=St(1643),Sg=St(9442);function Ug(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",8),A.NdJ("click",function(){const DA=A.CHM(t).$implicit;return A.oxw().activeLink=DA.link}),A._uU(1),A.qZA()}if(2&r){const t=v.$implicit,s=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",s.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let Pg=(()=>{class r{constructor(t){this.router=t,this.faSearch=h.wn1,this.links=[{link:"lookups",name:"Lookup"},{link:"queryroutes",name:"Query Routes"}],this.activeLink=this.links[0].link,this.unSubs=[new c.x,new c.x,new c.x,new c.x]}ngOnInit(){const t=this.links.find(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(s=>s instanceof _t.Av)).subscribe({next:s=>{const G=this.links.find(DA=>s.urlAfterRedirects.includes(DA.link));this.activeLink=G?G.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-graph"]],decls:11,vars:2,consts:[["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",""],["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"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Graph Lookups"),A.qZA(),A.qZA(),A.TgZ(4,"div",3),A.TgZ(5,"mat-card"),A.TgZ(6,"mat-card-content",4),A.TgZ(7,"nav",5),A.YNc(8,Ug,2,3,"div",6),A.qZA(),A.TgZ(9,"div",7),A._UZ(10,"router-outlet"),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(1),A.Q6J("icon",s.faSearch),A.xp6(7),A.Q6J("ngForOf",s.links))},directives:[Ct.xw,Ct.Wh,f.BN,w.a8,w.dn,ut.BU,Et.sg,Ct.yH,_t.lC,ut.Nj,_t.rH],styles:[""]}),r})();var Rg=St(4641),zg=St(8493);function Lg(r,v){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.offerError)}}function bg(r,v){if(1&r&&(A.TgZ(0,"div",21),A._UZ(1,"fa-icon",22),A.YNc(2,Lg,2,1,"span",23),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.offerError)}}let Gg=(()=>{class r{constructor(t,s,G,DA,ht,Ce){this.dialogRef=t,this.data=s,this.store=G,this.decimalPipe=DA,this.commonService=ht,this.actions=Ce,this.faExclamationTriangle=h.eHv,this.selNode={},this.description="",this.vendor="",this.offerValueHint="",this.information={},this.pageSize=a.IV,this.offerError="",this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(B.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(B.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.information=t,this.vendor=this.information.alias}),this.actions.pipe((0,i.R)(this.unSubs[2]),(0,JA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&"SaveNewOffer"===t.payload.action&&(t.payload.status===a.Bn.ERROR&&(this.offerError=t.payload.message),t.payload.status===a.Bn.COMPLETED&&this.dialogRef.close())})}onAddOffer(){this.offerError="",this.store.dispatch((0,ft.dh)({payload:{amount:this.offerValue?this.offerValue+"sats":"any",description:this.description,vendor:this.vendor}}))}resetData(){this.description="",this.vendor=this.information.alias,this.offerValue=null,this.offerValueHint="",this.offerError=""}onOfferValueChange(){this.selNode.fiatConversion&&this.offerValue>99&&(this.offerValueHint="",this.commonService.convertCurrency(this.offerValue,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[3])).subscribe({next:t=>{this.offerValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,a.Xz.OTHER)+" "+t.unit},error:t=>{this.offerValueHint="Conversion Error: "+t}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(u.yh),A.Y36(Et.JJ),A.Y36(e.v),A.Y36(C.eX))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-create-offer"]],decls:28,vars:8,consts:[["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","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"],["addOfferForm","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","autoFocus","","placeholder","Description","tabindex","1","name","description",3,"ngModel","ngModelChange"],["fxLayout","row","fxLayoutAlign","space-between start","fxFlex","100"],["fxFlex","40"],["matInput","","placeholder","Amount","type","number","tabindex","2","name","offerValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxFlex","58","fxLayoutAlign","start end"],["matInput","","placeholder","Vendor","tabindex","3","name","vendor",3,"ngModel","ngModelChange"],["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(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-card-header",2),A.TgZ(3,"div",3),A.TgZ(4,"span",4),A._uU(5,"Create Offer"),A.qZA(),A.qZA(),A.TgZ(6,"button",5),A._uU(7,"X"),A.qZA(),A.qZA(),A.TgZ(8,"mat-card-content",6),A.TgZ(9,"form",7,8),A.TgZ(11,"mat-form-field",9),A.TgZ(12,"input",10),A.NdJ("ngModelChange",function(DA){return s.description=DA}),A.qZA(),A.qZA(),A.TgZ(13,"div",11),A.TgZ(14,"mat-form-field",12),A.TgZ(15,"input",13),A.NdJ("ngModelChange",function(DA){return s.offerValue=DA})("keyup",function(){return s.onOfferValueChange()}),A.qZA(),A.TgZ(16,"span",14),A._uU(17," Sats "),A.qZA(),A.TgZ(18,"mat-hint"),A._uU(19),A.qZA(),A.qZA(),A.TgZ(20,"mat-form-field",15),A.TgZ(21,"input",16),A.NdJ("ngModelChange",function(DA){return s.vendor=DA}),A.qZA(),A.qZA(),A.qZA(),A.YNc(22,bg,3,2,"div",17),A.TgZ(23,"div",18),A.TgZ(24,"button",19),A.NdJ("click",function(){return s.resetData()}),A._uU(25,"Clear Field"),A.qZA(),A.TgZ(26,"button",20),A.NdJ("click",function(){return s.onAddOffer()}),A._uU(27,"Create Offer"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(6),A.Q6J("mat-dialog-close",!1),A.xp6(6),A.Q6J("ngModel",s.description),A.xp6(3),A.Q6J("ngModel",s.offerValue)("step",100)("min",1),A.xp6(4),A.Oqu(s.offerValueHint),A.xp6(2),A.Q6J("ngModel",s.vendor),A.xp6(1),A.Q6J("ngIf",""!==s.offerError))},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Y.lW,Mt.ZT,w.dn,OA._Y,OA.JL,OA.F,W.KE,Yt.Nt,OA.Fj,H.h,OA.JJ,OA.On,OA.wV,OA.qQ,k.q,W.R9,W.bx,Et.O5,f.BN],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();var jl=St(1462);function Hg(r,v){1&r&&A._UZ(0,"mat-progress-bar",28)}function Jg(r,v){1&r&&(A.TgZ(0,"th",29),A._uU(1," Offer ID "),A.qZA())}const Zl=function(r){return{"mr-0":r}};function Og(r,v){if(1&r&&A._UZ(0,"span",35),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Zl,t.screenSize===t.screenSizeEnum.XS))}}function kg(r,v){if(1&r&&A._UZ(0,"span",36),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Zl,t.screenSize===t.screenSizeEnum.XS))}}const jg=function(r){return{"max-width":r}};function Zg(r,v){if(1&r&&(A.TgZ(0,"td",30),A.TgZ(1,"div",31),A.TgZ(2,"span",32),A.YNc(3,Og,1,3,"span",33),A.YNc(4,kg,1,3,"span",34),A._uU(5),A.qZA(),A.qZA(),A.qZA()),2&r){const t=v.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(4,jg,s.screenSize===s.screenSizeEnum.XS?"25rem":"45rem")),A.xp6(2),A.Q6J("ngIf",t.active),A.xp6(1),A.Q6J("ngIf",!t.active),A.xp6(1),A.hij(" ",t.offer_id," ")}}function Kg(r,v){1&r&&(A.TgZ(0,"th",29),A._uU(1," Single Use "),A.qZA())}function Vg(r,v){if(1&r&&(A.TgZ(0,"td",30),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(t.single_use?"Yes":"No")}}function Wg(r,v){1&r&&(A.TgZ(0,"th",29),A._uU(1," Used "),A.qZA())}function Xg(r,v){if(1&r&&(A.TgZ(0,"td",30),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",t.used?"Yes":"No"," ")}}function qg(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"th",37),A.TgZ(1,"div",38),A.TgZ(2,"mat-select",39),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",40),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function _g(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",40),A.NdJ("click",function(){A.CHM(t);const G=A.oxw().$implicit;return A.oxw().onDisableOffer(G)}),A._uU(1,"Disable Offer"),A.qZA()}}function $g(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",40),A.NdJ("click",function(){A.CHM(t);const G=A.oxw().$implicit;return A.oxw().onPrintOffer(G)}),A._uU(1,"Export QR code"),A.qZA()}}const AB=function(r){return{"px-3":r}};function tB(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",41),A.TgZ(1,"div",42),A.TgZ(2,"mat-select",43),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",40),A.NdJ("click",function(){const DA=A.CHM(t).$implicit;return A.oxw().onOfferClick(DA)}),A._uU(5,"View Info"),A.qZA(),A.YNc(6,_g,2,0,"mat-option",44),A.YNc(7,$g,2,0,"mat-option",44),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=v.$implicit,s=A.oxw();A.Q6J("ngClass",A.VKq(3,AB,s.screenSize!==s.screenSizeEnum.XS)),A.xp6(6),A.Q6J("ngIf",t.active),A.xp6(1),A.Q6J("ngIf",t.active)}}function eB(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No offer available."),A.qZA())}function nB(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting offers..."),A.qZA())}function rB(r,v){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function iB(r,v){if(1&r&&(A.TgZ(0,"td",45),A.YNc(1,eB,2,0,"p",46),A.YNc(2,nB,2,0,"p",46),A.YNc(3,rB,2,1,"p",46),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(!(null!=t.offers&&t.offers.data)||(null==t.offers||null==t.offers.data?null:t.offers.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.offers&&t.offers.data)||(null==t.offers||null==t.offers.data?null:t.offers.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.offers&&t.offers.data)||(null==t.offers||null==t.offers.data?null:t.offers.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const aB=function(r){return{"display-none":r}};function oB(r,v){if(1&r&&A._UZ(0,"tr",47),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,aB,(null==t.offers?null:t.offers.data)&&(null==t.offers||null==t.offers.data?null:t.offers.data.length)>0))}}function sB(r,v){1&r&&A._UZ(0,"tr",48)}function lB(r,v){1&r&&A._UZ(0,"tr",49)}const cB=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},gB=function(){return["no_offer"]};let BB=(()=>{class r{constructor(t,s,G,DA,ht,Ce,un){this.logger=t,this.store=s,this.commonService=G,this.rtlEffects=DA,this.dataService=ht,this.decimalPipe=Ce,this.datePipe=un,this.faHistory=h.qO$,this.selNode={},this.newlyAddedOfferMemo="",this.newlyAddedOfferValue=0,this.description="",this.offerValue=null,this.offerValueHint="",this.displayedColumns=[],this.offerPaymentReq="",this.offerJSONArr=[],this.information={},this.flgSticky=!1,this.private=!1,this.expiryStep=100,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["offer_id","single_use","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["offer_id","single_use","used","actions"]):(this.flgSticky=!0,this.displayedColumns=["offer_id","single_use","used","actions"])}ngOnInit(){this.store.select(B.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(B.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(B.Y_).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.offerJSONArr=t.offers||[],this.offerJSONArr&&this.offerJSONArr.length>0&&this.sort&&this.paginator&&this.loadOffersTable(this.offerJSONArr),this.logger.info(t)})}ngAfterViewInit(){this.offerJSONArr&&this.offerJSONArr.length>0&&this.sort&&this.paginator&&this.loadOffersTable(this.offerJSONArr)}openCreateOfferModal(){this.store.dispatch((0,kA.qR)({payload:{data:{pageSize:this.pageSize,component:Gg}}}))}onOfferClick(t){this.store.dispatch((0,kA.qR)({payload:{data:{offer:{used:t.used,single_use:t.single_use,active:t.active,offer_id:t.offer_id,bolt12:t.bolt12,bolt12_unsigned:t.bolt12_unsigned},newlyAdded:!1,component:jl.k}}}))}onDisableOffer(t){this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Disable Offer",titleMessage:"Disabling Offer: "+(t.offer_id||t.bolt12),noBtnText:"Cancel",yesBtnText:"Disable"}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[3])).subscribe(s=>{s&&this.store.dispatch((0,ft.i9)({payload:{offer_id:t.offer_id}}))})}onPrintOffer(t){this.dataService.decodePayment(t.bolt12,!1).pipe((0,UA.q)(1)).subscribe(s=>{s.offer_id&&!s.amount_msat?(s.amount_msat="0msat",s.amount=0):s.amount=+(s.amount||s.amount_msat.slice(0,-4));const G={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:s.vendor||s.issuer||"",alignment:"center",fontSize:25,color:"#272727",margin:[0,20,0,0]},content:[{svg:'',width:249,height:40,alignment:"center"},{text:s.description?s.description.substring(0,160):"",alignment:"center",fontSize:16,color:"#5C5C5C"},{qr:t.bolt12,eccLevel:"M",fit:"227",alignment:"center",absolutePosition:{x:7,y:205}},{text:(null==s?void 0:s.amount_msat)&&0!==(null==s?void 0:s.amount)?this.decimalPipe.transform(s.amount/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"}};Rg.createPdf(G,null,null,zg.I.vfs).download("Offer-"+(s&&s.description?s.description:t.bolt12))})}applyFilter(){this.offers.filter=this.selFilter.trim().toLowerCase()}loadOffersTable(t){this.offers=new yA.by(t?[...t]:[]),this.offers.sortingDataAccessor=(s,G)=>s[G]&&isNaN(s[G])?s[G].toLocaleLowerCase():s[G]?+s[G]:null,this.offers.sort=this.sort,this.offers.filterPredicate=(s,G)=>(("active"===G||"inactive"===G||"used"===G||"unused"===G||"single"===G||"multiple"===G)&&(G=" "+G),((s.active?" active":" inactive")+(s.used?" used":" unused")+(s.single_use?" single":" multiple")+JSON.stringify(s).toLowerCase()).includes(G)),this.offers.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){this.offers.data&&this.offers.data.length>0&&this.commonService.downloadFile(this.offers.data,"Offers")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(e.v),A.Y36(At.V),A.Y36(RA.D),A.Y36(Et.JJ),A.Y36(Et.uU))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-offers-table"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(VA.NW,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.sort=G.first),A.iGM(G=A.CRH())&&(s.paginator=G.first)}},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Offers")}])],decls:34,vars:15,consts:[["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","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","offer_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","single_use"],["matColumnDef","used"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_offer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["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"],["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","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["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(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"button",2),A.NdJ("click",function(){return s.openCreateOfferModal()}),A._uU(3,"Create Offer"),A.qZA(),A.qZA(),A.TgZ(4,"div",3),A.TgZ(5,"div",4),A.TgZ(6,"div",5),A._UZ(7,"fa-icon",6),A.TgZ(8,"span",7),A._uU(9,"Offers History"),A.qZA(),A.qZA(),A.TgZ(10,"mat-form-field",8),A.TgZ(11,"input",9),A.NdJ("keyup",function(){return s.applyFilter()})("ngModelChange",function(DA){return s.selFilter=DA}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(12,"div",10),A.YNc(13,Hg,1,0,"mat-progress-bar",11),A.TgZ(14,"table",12,13),A.ynx(16,14),A.YNc(17,Jg,2,0,"th",15),A.YNc(18,Zg,6,6,"td",16),A.BQk(),A.ynx(19,17),A.YNc(20,Kg,2,0,"th",15),A.YNc(21,Vg,2,1,"td",16),A.BQk(),A.ynx(22,18),A.YNc(23,Wg,2,0,"th",15),A.YNc(24,Xg,2,1,"td",16),A.BQk(),A.ynx(25,19),A.YNc(26,qg,6,0,"th",20),A.YNc(27,tB,8,5,"td",21),A.BQk(),A.ynx(28,22),A.YNc(29,iB,4,3,"td",23),A.BQk(),A.YNc(30,oB,1,3,"tr",24),A.YNc(31,sB,1,0,"tr",25),A.YNc(32,lB,1,0,"tr",26),A.qZA(),A.qZA(),A._UZ(33,"mat-paginator",27),A.qZA(),A.qZA()),2&t&&(A.xp6(7),A.Q6J("icon",s.faHistory),A.xp6(4),A.Q6J("ngModel",s.selFilter),A.xp6(2),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",s.offers)("ngClass",A.VKq(12,cB,""!==s.errorMessage)),A.xp6(16),A.Q6J("matFooterRowDef",A.DdM(14,gB)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[Ct.xw,Ct.yH,Ct.Wh,Y.lW,f.BN,W.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,Et.O5,yA.BZ,rt.YE,Et.mk,d.oO,yA.w1,yA.fO,yA.Dz,yA.mD,yA.Ke,yA.as,yA.nj,VA.NW,T.pW,yA.ge,rt.nU,yA.ev,Et.PC,d.Zl,aA.gM,R.gD,R.$L,wA.ey,yA.yh,yA.Q2,yA.XQ,yA.Gk],styles:[".mat-column-offer_id[_ngcontent-%COMP%]{flex:0 0 65%;width:65%}.mat-column-offer_id[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();function uB(r,v){1&r&&A._UZ(0,"mat-progress-bar",30)}function fB(r,v){1&r&&(A.TgZ(0,"th",31),A._uU(1," Updated At "),A.qZA())}function hB(r,v){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,t.lastUpdatedAt,"dd/MMM/y HH:mm"))}}function EB(r,v){1&r&&(A.TgZ(0,"th",31),A._uU(1," Title "),A.qZA())}const Kl=function(r){return{"max-width":r}};function wB(r,v){if(1&r&&(A.TgZ(0,"td",32),A.TgZ(1,"div",33),A.TgZ(2,"span",34),A._uU(3),A.qZA(),A.qZA(),A.qZA()),2&r){const t=v.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(2,Kl,s.screenSize===s.screenSizeEnum.XS?"20rem":"35rem")),A.xp6(2),A.Oqu(t.title)}}function CB(r,v){1&r&&(A.TgZ(0,"th",35),A._uU(1," Amount (Sats) "),A.qZA())}function QB(r,v){if(1&r&&(A.TgZ(0,"td",36),A.TgZ(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(0===t.amountmSat?"Open":A.lcZ(3,1,t.amountmSat/1e3))}}function dB(r,v){1&r&&(A.TgZ(0,"th",31),A._uU(1," Description "),A.qZA())}function MB(r,v){if(1&r&&(A.TgZ(0,"td",32),A.TgZ(1,"div",33),A.TgZ(2,"span",34),A._uU(3),A.qZA(),A.qZA(),A.qZA()),2&r){const t=v.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(2,Kl,s.screenSize===s.screenSizeEnum.XS?"20rem":"35rem")),A.xp6(2),A.Oqu(t.description)}}function pB(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"th",38),A.TgZ(1,"div",39),A.TgZ(2,"mat-select",40),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",41),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}const IB=function(r){return{"px-3":r}};function mB(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",42),A.TgZ(1,"div",43),A.TgZ(2,"mat-select",44),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",41),A.NdJ("click",function(){const DA=A.CHM(t).$implicit;return A.oxw().onOfferBookmarkClick(DA)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",41),A.NdJ("click",function(){const DA=A.CHM(t).$implicit;return A.oxw().onRePayOffer(DA)}),A._uU(7,"Pay Again"),A.qZA(),A.TgZ(8,"mat-option",41),A.NdJ("click",function(){const DA=A.CHM(t).$implicit;return A.oxw().onDeleteBookmark(DA)}),A._uU(9,"Delete Bookmark"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,IB,t.screenSize!==t.screenSizeEnum.XS))}}function DB(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No offer bookmarked."),A.qZA())}function vB(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting offer bookmarks..."),A.qZA())}function yB(r,v){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function xB(r,v){if(1&r&&(A.TgZ(0,"td",45),A.YNc(1,DB,2,0,"p",46),A.YNc(2,vB,2,0,"p",46),A.YNc(3,yB,2,1,"p",46),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(!(null!=t.offersBookmarks&&t.offersBookmarks.data)||(null==t.offersBookmarks||null==t.offersBookmarks.data?null:t.offersBookmarks.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.offersBookmarks&&t.offersBookmarks.data)||(null==t.offersBookmarks||null==t.offersBookmarks.data?null:t.offersBookmarks.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.offersBookmarks&&t.offersBookmarks.data)||(null==t.offersBookmarks||null==t.offersBookmarks.data?null:t.offersBookmarks.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const FB=function(r){return{"display-none":r}};function YB(r,v){if(1&r&&A._UZ(0,"tr",47),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,FB,(null==t.offersBookmarks?null:t.offersBookmarks.data)&&(null==t.offersBookmarks||null==t.offersBookmarks.data?null:t.offersBookmarks.data.length)>0))}}function TB(r,v){1&r&&A._UZ(0,"tr",48)}function NB(r,v){1&r&&A._UZ(0,"tr",49)}const SB=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},UB=function(){return["no_offer"]};let PB=(()=>{class r{constructor(t,s,G,DA){this.logger=t,this.store=s,this.commonService=G,this.rtlEffects=DA,this.faHistory=h.qO$,this.displayedColumns=[],this.offersBookmarksJSONArr=[],this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.selFilter="",this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS||this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["lastUpdatedAt","title","amountmSat","actions"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["lastUpdatedAt","title","amountmSat","description","actions"]):(this.flgSticky=!0,this.displayedColumns=["lastUpdatedAt","title","amountmSat","description","actions"])}ngOnInit(){this.store.select(B.EQ).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.offersBookmarksJSONArr=t.offersBookmarks||[],this.offersBookmarksJSONArr&&this.offersBookmarksJSONArr.length>0&&this.sort&&this.paginator&&this.loadOffersTable(this.offersBookmarksJSONArr),this.logger.info(t)})}ngAfterViewInit(){this.offersBookmarksJSONArr&&this.offersBookmarksJSONArr.length>0&&this.sort&&this.paginator&&this.loadOffersTable(this.offersBookmarksJSONArr)}onOfferBookmarkClick(t){this.store.dispatch((0,kA.qR)({payload:{data:{offer:{bolt12:t.bolt12},newlyAdded:!1,component:jl.k}}}))}onDeleteBookmark(t){this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Delete Bookmark",titleMessage:"Deleting Bookmark: "+(t.title||t.description),noBtnText:"Cancel",yesBtnText:"Delete"}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[1])).subscribe(s=>{s&&this.store.dispatch((0,ft._9)({payload:{bolt12:t.bolt12}}))})}onRePayOffer(t){this.store.dispatch((0,kA.qR)({payload:{data:{paymentType:a.IX.OFFER,bolt12:t.bolt12,offerTitle:t.title,component:Cn}}}))}applyFilter(){this.offersBookmarks.filter=this.selFilter.trim().toLowerCase()}loadOffersTable(t){this.offersBookmarks=new yA.by(t?[...t]:[]),this.offersBookmarks.sortingDataAccessor=(s,G)=>s[G]&&isNaN(s[G])?s[G].toLocaleLowerCase():s[G]?+s[G]:null,this.offersBookmarks.sort=this.sort,this.offersBookmarks.filterPredicate=(s,G)=>JSON.stringify(s).toLowerCase().includes(G),this.offersBookmarks.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){this.offersBookmarks.data&&this.offersBookmarks.data.length>0&&this.commonService.downloadFile(this.offersBookmarks.data,"OfferBookmarks")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(e.v),A.Y36(At.V))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-offer-bookmarks-table"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(VA.NW,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.sort=G.first),A.iGM(G=A.CRH())&&(s.paginator=G.first)}},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Offer Bookmarks")}])],decls:35,vars:15,consts:[["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","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","lastUpdatedAt"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","title"],["matColumnDef","amountmSat"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","pr-2",4,"matHeaderCellDef"],["mat-cell","","class","pr-2",4,"matCellDef"],["matColumnDef","description"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_offer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["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","","mat-sort-header","","arrowPosition","before",1,"pr-2"],["mat-cell","",1,"pr-2"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["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(t,s){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"div",1),A.TgZ(2,"div",2),A.TgZ(3,"div",3),A.TgZ(4,"div",4),A._UZ(5,"fa-icon",5),A.TgZ(6,"span",6),A._uU(7,"Offer Bookmarks"),A.qZA(),A.qZA(),A.TgZ(8,"mat-form-field",7),A.TgZ(9,"input",8),A.NdJ("keyup",function(){return s.applyFilter()})("ngModelChange",function(DA){return s.selFilter=DA}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(10,"div",9),A.YNc(11,uB,1,0,"mat-progress-bar",10),A.TgZ(12,"table",11,12),A.ynx(14,13),A.YNc(15,fB,2,0,"th",14),A.YNc(16,hB,3,4,"td",15),A.BQk(),A.ynx(17,16),A.YNc(18,EB,2,0,"th",14),A.YNc(19,wB,4,4,"td",15),A.BQk(),A.ynx(20,17),A.YNc(21,CB,2,0,"th",18),A.YNc(22,QB,4,3,"td",19),A.BQk(),A.ynx(23,20),A.YNc(24,dB,2,0,"th",14),A.YNc(25,MB,4,4,"td",15),A.BQk(),A.ynx(26,21),A.YNc(27,pB,6,0,"th",22),A.YNc(28,mB,10,3,"td",23),A.BQk(),A.ynx(29,24),A.YNc(30,xB,4,3,"td",25),A.BQk(),A.YNc(31,YB,1,3,"tr",26),A.YNc(32,TB,1,0,"tr",27),A.YNc(33,NB,1,0,"tr",28),A.qZA(),A.qZA(),A._UZ(34,"mat-paginator",29),A.qZA(),A.qZA()),2&t&&(A.xp6(5),A.Q6J("icon",s.faHistory),A.xp6(4),A.Q6J("ngModel",s.selFilter),A.xp6(2),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",s.offersBookmarks)("ngClass",A.VKq(12,SB,""!==s.errorMessage)),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(14,UB)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[Ct.xw,Ct.yH,Ct.Wh,f.BN,W.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,Et.O5,yA.BZ,rt.YE,Et.mk,d.oO,yA.w1,yA.fO,yA.Dz,yA.mD,yA.Ke,yA.as,yA.nj,VA.NW,T.pW,yA.ge,rt.nU,yA.ev,Et.PC,d.Zl,R.gD,R.$L,wA.ey,yA.yh,yA.Q2,yA.XQ,yA.Gk],pipes:[Et.uU,Et.JJ],styles:[".mat-column-title[_ngcontent-%COMP%], .mat-column-description[_ngcontent-%COMP%]{flex:0 0 30%;width:30%}.mat-column-title[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%], .mat-column-description[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();function RB(r,v){if(1&r&&(A.TgZ(0,"div",5),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Oqu(t.errorMessage)}}function zB(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",6),A._UZ(1,"div",7),A.TgZ(2,"mat-form-field",8),A.TgZ(3,"input",9),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyFilter()})("ngModelChange",function(G){return A.CHM(t),A.oxw().selFilter=G}),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.selFilter)}}function LB(r,v){1&r&&A._UZ(0,"mat-progress-bar",31)}function bB(r,v){1&r&&(A.TgZ(0,"th",32),A._uU(1,"Received Time"),A.qZA())}function GB(r,v){if(1&r&&(A.TgZ(0,"td",33),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.received_time),"dd/MMM/y HH:mm"))}}function HB(r,v){1&r&&(A.TgZ(0,"th",32),A._uU(1,"In Channel"),A.qZA())}function JB(r,v){if(1&r&&(A.TgZ(0,"td",33),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(null==t?null:t.in_channel_alias)}}function OB(r,v){1&r&&(A.TgZ(0,"th",34),A._uU(1,"Amount In (Sats)"),A.qZA())}function kB(r,v){if(1&r&&(A.TgZ(0,"td",33),A.TgZ(1,"span",35),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.in_msatoshi)/1e3,(null==t?null:t.in_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function jB(r,v){1&r&&(A.TgZ(0,"th",36),A._uU(1,"Fail Reason"),A.qZA())}function ZB(r,v){if(1&r&&(A.TgZ(0,"td",37),A._uU(1),A.qZA()),2&r){const t=v.$implicit,s=A.oxw(2);A.xp6(1),A.Oqu(s.CLNFailReason[null==t?null:t.failreason])}}function KB(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"th",38),A.TgZ(1,"div",39),A.TgZ(2,"mat-select",40),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",41),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function VB(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",42),A.TgZ(1,"button",43),A.NdJ("click",function(){const DA=A.CHM(t).$implicit;return A.oxw(2).onFailedLocalEventClick(DA)}),A._uU(2,"View Info"),A.qZA(),A.qZA()}}function WB(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No failed transaction available."),A.qZA())}function XB(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting failed transactions..."),A.qZA())}function qB(r,v){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function _B(r,v){if(1&r&&(A.TgZ(0,"td",44),A.YNc(1,WB,2,0,"p",45),A.YNc(2,XB,2,0,"p",45),A.YNc(3,qB,2,1,"p",45),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedLocalForwardingEvents&&t.failedLocalForwardingEvents.data)||(null==t.failedLocalForwardingEvents||null==t.failedLocalForwardingEvents.data?null:t.failedLocalForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedLocalForwardingEvents&&t.failedLocalForwardingEvents.data)||(null==t.failedLocalForwardingEvents||null==t.failedLocalForwardingEvents.data?null:t.failedLocalForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedLocalForwardingEvents&&t.failedLocalForwardingEvents.data)||(null==t.failedLocalForwardingEvents||null==t.failedLocalForwardingEvents.data?null:t.failedLocalForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const $B=function(r){return{"display-none":r}};function Au(r,v){if(1&r&&A._UZ(0,"tr",46),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,$B,(null==t.failedLocalForwardingEvents?null:t.failedLocalForwardingEvents.data)&&(null==t.failedLocalForwardingEvents||null==t.failedLocalForwardingEvents.data?null:t.failedLocalForwardingEvents.data.length)>0))}}function tu(r,v){1&r&&A._UZ(0,"tr",47)}function eu(r,v){1&r&&A._UZ(0,"tr",48)}const nu=function(){return["no_event"]};function ru(r,v){if(1&r&&(A.TgZ(0,"div",10),A.YNc(1,LB,1,0,"mat-progress-bar",11),A.TgZ(2,"table",12,13),A.ynx(4,14),A.YNc(5,bB,2,0,"th",15),A.YNc(6,GB,3,4,"td",16),A.BQk(),A.ynx(7,17),A.YNc(8,HB,2,0,"th",15),A.YNc(9,JB,2,1,"td",16),A.BQk(),A.ynx(10,18),A.YNc(11,OB,2,0,"th",19),A.YNc(12,kB,4,4,"td",16),A.BQk(),A.ynx(13,20),A.YNc(14,jB,2,0,"th",21),A.YNc(15,ZB,2,1,"td",22),A.BQk(),A.ynx(16,23),A.YNc(17,KB,6,0,"th",24),A.YNc(18,VB,3,0,"td",25),A.BQk(),A.ynx(19,26),A.YNc(20,_B,4,3,"td",27),A.BQk(),A.YNc(21,Au,1,3,"tr",28),A.YNc(22,tu,1,0,"tr",29),A.YNc(23,eu,1,0,"tr",30),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.failedLocalForwardingEvents),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(6,nu)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}function iu(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-paginator",49),A.NdJ("page",function(G){return A.CHM(t),A.oxw().onPageChange(G)}),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("length",t.totalLocalFailedTransactions)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let au=(()=>{class r{constructor(t,s,G,DA,ht){this.logger=t,this.commonService=s,this.store=G,this.datePipe=DA,this.router=ht,this.CLNFailReason=a.p7,this.errorMessage="",this.displayedColumns=[],this.flgSticky=!1,this.selFilter="",this.indexOffset=-1,this.totalLocalFailedTransactions=0,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS||this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["received_time","in_channel","in_msatoshi","actions"]):(this.flgSticky=!0,this.displayedColumns=["received_time","in_channel","in_msatoshi","failreason","actions"])}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.store.dispatch((0,ft.u0)({payload:{status:a.OO.LOCAL_FAILED,maxLen:this.pageSize,offset:0}})),this.store.select(B.lK).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.totalLocalFailedTransactions=t.localFailedForwardingHistory.totalForwards,this.indexOffset=t.localFailedForwardingHistory.offset,this.failedLocalEvents=t.localFailedForwardingHistory.listForwards||[],this.failedLocalEvents.length>0&&this.sort&&this.paginator&&this.loadLocalfailedLocalEventsTable(this.failedLocalEvents),this.logger.info(t)})}ngAfterViewInit(){this.failedLocalEvents.length>0&&this.loadLocalfailedLocalEventsTable(this.failedLocalEvents)}onFailedLocalEventClick(t){this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Local Failed Event Information",message:[[{key:"received_time",value:t.received_time,title:"Received Time",width:50,type:a.Gi.DATE_TIME},{key:"in_channel_alias",value:t.in_channel_alias,title:"Inbound Channel",width:50,type:a.Gi.STRING}],[{key:"in_msatoshi",value:t.in_msatoshi,title:"Amount In (mSats)",width:100,type:a.Gi.NUMBER}],[{key:"failreason",value:this.CLNFailReason[t.failreason],title:"Reason for Failure",width:100,type:a.Gi.STRING}]]}}}))}loadLocalfailedLocalEventsTable(t){this.failedLocalForwardingEvents=new yA.by([...t]),this.failedLocalForwardingEvents.filterPredicate=(s,G)=>((s.received_time?this.datePipe.transform(new Date(1e3*s.received_time),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(s.in_channel_alias?s.in_channel_alias.toLowerCase():"")+(s.failreason&&this.CLNFailReason[s.failreason]?this.CLNFailReason[s.failreason].toLowerCase():"")+(s.in_msatoshi?s.in_msatoshi/1e3:"")).includes(G),this.failedLocalForwardingEvents.sort=this.sort,this.failedLocalForwardingEvents.sortingDataAccessor=(s,G)=>"failreason"===G?this.CLNFailReason[s.failreason]:s[G]&&isNaN(s[G])?s[G].toLocaleLowerCase():s[G]?+s[G]:null,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")}applyFilter(){this.failedLocalForwardingEvents.filter=this.selFilter.trim().toLowerCase()}onPageChange(t){this.pageSize!==t.pageSize?(this.pageSize=t.pageSize,this.indexOffset=0):this.indexOffset=t.pageIndex*this.pageSize,this.store.dispatch((0,ft.u0)({payload:{status:a.OO.LOCAL_FAILED,maxLen:this.pageSize,offset:this.indexOffset}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh),A.Y36(Et.uU),A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-local-failed-history"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(VA.NW,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.sort=G.first),A.iGM(G=A.CRH())&&(s.paginator=G.first)}},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Local failed events")}])],decls:5,vars:4,consts:[["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,"length","pageSize","pageSizeOptions","showFirstLastButtons","page",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","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["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,"dataSource"],["table",""],["matColumnDef","received_time"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","in_channel"],["matColumnDef","in_msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","failreason"],["mat-header-cell","","mat-sort-header","","class","pl-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","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","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-3"],["mat-cell","",1,"pl-3"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,RB,2,1,"div",1),A.YNc(2,zB,4,1,"div",2),A.YNc(3,ru,24,7,"div",3),A.YNc(4,iu,1,4,"mat-paginator",4),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage))},directives:[Ct.xw,Ct.Wh,Et.O5,Ct.yH,W.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,yA.BZ,rt.YE,yA.w1,yA.fO,yA.Dz,yA.mD,yA.Ke,yA.as,yA.nj,T.pW,yA.ge,rt.nU,yA.ev,R.gD,R.$L,wA.ey,Y.lW,yA.yh,yA.Q2,Et.mk,d.oO,yA.XQ,yA.Gk,VA.NW],pipes:[Et.uU,Et.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();const ou=["form"];function su(r,v){1&r&&A.GkF(0)}function lu(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Requested amount is required."),A.qZA())}function cu(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee rate is required."),A.qZA())}function gu(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Local amount is required."),A.qZA())}function Bu(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Local amount must be greater than or equal to 20000."),A.qZA())}function uu(r,v){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.hij("Local amount must be less than or equal to ",t.totalBalance,".")}}function fu(r,v){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.channelConnectionError)}}function hu(r,v){if(1&r&&(A.TgZ(0,"div",26),A._UZ(1,"fa-icon",27),A.YNc(2,fu,2,1,"span",15),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.channelConnectionError)}}function Eu(r,v){1&r&&(A.TgZ(0,"th",47),A._uU(1,"Type"),A.qZA())}function wu(r,v){if(1&r&&(A.TgZ(0,"td",48),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.type," ")}}function Cu(r,v){1&r&&(A.TgZ(0,"th",47),A._uU(1,"Address"),A.qZA())}function Qu(r,v){if(1&r&&(A.TgZ(0,"td",48),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.address," ")}}function du(r,v){1&r&&(A.TgZ(0,"th",47),A._uU(1,"Port"),A.qZA())}function Mu(r,v){if(1&r&&(A.TgZ(0,"td",48),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.port," ")}}function pu(r,v){1&r&&A._UZ(0,"tr",49)}function Iu(r,v){1&r&&A._UZ(0,"tr",50)}function mu(r,v){if(1&r&&(A.TgZ(0,"mat-expansion-panel",29),A.TgZ(1,"mat-expansion-panel-header"),A.TgZ(2,"mat-panel-title"),A.TgZ(3,"span"),A._uU(4,"Node: \xa0"),A.qZA(),A.TgZ(5,"strong",30),A._uU(6),A.qZA(),A.qZA(),A.qZA(),A.TgZ(7,"div",7),A.TgZ(8,"div",0),A.TgZ(9,"div",1),A.TgZ(10,"h4",31),A._uU(11,"Pubkey"),A.qZA(),A.TgZ(12,"span",32),A._uU(13),A.qZA(),A.qZA(),A.qZA(),A._UZ(14,"mat-divider",33),A.TgZ(15,"div",0),A.TgZ(16,"div",1),A.TgZ(17,"h4",31),A._uU(18,"Last Timestamp"),A.qZA(),A.TgZ(19,"span",34),A._uU(20),A.ALo(21,"date"),A.qZA(),A.qZA(),A.qZA(),A._UZ(22,"mat-divider",33),A.TgZ(23,"div",35),A.TgZ(24,"h4",36),A._uU(25,"Addresses"),A.qZA(),A.TgZ(26,"div",37),A.TgZ(27,"table",38,39),A.ynx(29,40),A.YNc(30,Eu,2,0,"th",41),A.YNc(31,wu,2,1,"td",42),A.BQk(),A.ynx(32,43),A.YNc(33,Cu,2,0,"th",41),A.YNc(34,Qu,2,1,"td",42),A.BQk(),A.ynx(35,44),A.YNc(36,du,2,0,"th",41),A.YNc(37,Mu,2,1,"td",42),A.BQk(),A.YNc(38,pu,1,0,"tr",45),A.YNc(39,Iu,1,0,"tr",46),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&r){const t=A.oxw(2);A.xp6(6),A.Oqu((null==t.node?null:t.node.alias)||(null==t.node?null:t.node.nodeid)),A.xp6(7),A.Oqu(t.node.nodeid),A.xp6(7),A.Oqu(A.xi3(21,6,1e3*t.node.last_timestamp,"dd/MMM/y HH:mm")),A.xp6(7),A.Q6J("dataSource",t.node.addresses),A.xp6(11),A.Q6J("matHeaderRowDef",t.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}function Du(r,v){if(1&r&&A.YNc(0,mu,40,9,"mat-expansion-panel",28),2&r){const t=A.oxw();A.Q6J("ngIf",t.node)}}let vu=(()=>{class r{constructor(t,s,G,DA){this.dialogRef=t,this.data=s,this.actions=G,this.store=DA,this.faExclamationTriangle=h.eHv,this.totalBalance=0,this.requestedAmount=0,this.feeRate=0,this.localAmount=0,this.channelConnectionError="",this.displayedColumns=["type","address","port"],this.unSubs=[new c.x,new c.x]}ngOnInit(){this.alertTitle=this.data.alertTitle,this.totalBalance=this.data.message.balance,this.node=this.data.message.node,this.requestedAmount=this.data.message.requestedAmount,this.feeRate=this.data.message.feeRate,this.localAmount=this.data.message.localAmount,this.actions.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN||t.type===a.AB.FETCH_CHANNELS_CLN)).subscribe(t=>{t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&t.payload.status===a.Bn.ERROR&&"SaveNewChannel"===t.payload.action&&(this.channelConnectionError=t.payload.message),t.type===a.AB.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.channelOpeningFee=+this.node.option_will_fund.lease_fee_base_msat/1e3+this.requestedAmount*+this.node.option_will_fund.lease_fee_basis/1e4+ +this.node.option_will_fund.funding_weight/4*this.feeRate}onOpenChannel(){if(!(this.node&&this.node.option_will_fund&&this.requestedAmount&&this.feeRate&&this.localAmount))return!0;const t={peerId:this.node.nodeid,satoshis:this.localAmount.toString(),feeRate:this.feeRate+"perkb",requestAmount:this.requestedAmount.toString(),compactLease:this.node.option_will_fund.compact_lease};this.store.dispatch((0,ft.YX)({payload:t}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(C.eX),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-open-liquidity-channel"]],viewQuery:function(t,s){if(1&t&&A.Gf(ou,7),2&t){let G;A.iGM(G=A.CRH())&&(s.form=G.first)}},decls:48,vars:24,consts:[["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","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["form","ngForm"],[4,"ngTemplateOutlet"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-sm","space-between center","fxLayout.gt-sm","row wrap"],["fxFlex","30","fxLayoutAlign","start end"],["autoFocus","","matInput","","placeholder","Requested Amount","type","number","tabindex","1","required","","name","ramount",3,"ngModel","step","min","ngModelChange","keyup"],["ramount","ngModel"],["matSuffix",""],[4,"ngIf"],["matInput","","placeholder","Fee Rate","type","number","tabindex","2","required","","name","feerate",3,"ngModel","step","min","ngModelChange","keyup"],["feeRt","ngModel"],["matInput","","placeholder","Local Amount","type","number","tabindex","3","required","","name","lamount",3,"ngModel","step","min","max","ngModelChange"],["lamount","ngModel"],["fxFlex","100",1,"alert","alert-info","mt-2"],["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"],["nodeDetailsExpansionBlock",""],["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"],["table",""],["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(t,s){if(1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-card-header",2),A.TgZ(3,"div",3),A.TgZ(4,"span",4),A._uU(5),A.qZA(),A.qZA(),A.TgZ(6,"button",5),A.NdJ("click",function(){return s.onClose()}),A._uU(7,"X"),A.qZA(),A.qZA(),A.TgZ(8,"mat-card-content",6),A.TgZ(9,"form",7,8),A.YNc(11,su,1,0,"ng-container",9),A.TgZ(12,"div",10),A.TgZ(13,"mat-form-field",11),A.TgZ(14,"input",12,13),A.NdJ("ngModelChange",function(DA){return s.requestedAmount=DA})("keyup",function(){return s.calculateFee()}),A.qZA(),A.TgZ(16,"span",14),A._uU(17," Sats "),A.qZA(),A.YNc(18,lu,2,0,"mat-error",15),A.qZA(),A.TgZ(19,"mat-form-field",11),A.TgZ(20,"input",16,17),A.NdJ("ngModelChange",function(DA){return s.feeRate=DA})("keyup",function(){return s.calculateFee()}),A.qZA(),A.TgZ(22,"span",14),A._uU(23," Sats/vByte "),A.qZA(),A.YNc(24,cu,2,0,"mat-error",15),A.qZA(),A.TgZ(25,"mat-form-field",11),A.TgZ(26,"input",18,19),A.NdJ("ngModelChange",function(DA){return s.localAmount=DA}),A.qZA(),A.TgZ(28,"mat-hint"),A._uU(29),A.ALo(30,"number"),A.qZA(),A.TgZ(31,"span",14),A._uU(32," Sats "),A.qZA(),A.YNc(33,gu,2,0,"mat-error",15),A.YNc(34,Bu,2,0,"mat-error",15),A.YNc(35,uu,2,1,"mat-error",15),A.qZA(),A.qZA(),A.TgZ(36,"div",20),A.TgZ(37,"span"),A._uU(38),A.ALo(39,"number"),A.qZA(),A.qZA(),A.YNc(40,hu,3,2,"div",21),A.TgZ(41,"div",22),A.TgZ(42,"button",23),A.NdJ("click",function(){return s.resetData()}),A._uU(43,"Clear"),A.qZA(),A.TgZ(44,"button",24),A.NdJ("click",function(){return s.onOpenChannel()}),A._uU(45,"Execute"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.YNc(46,Du,1,1,"ng-template",null,25,A.W1O)),2&t){const G=A.MAs(15),DA=A.MAs(21),ht=A.MAs(27),Ce=A.MAs(47);A.xp6(5),A.Oqu(s.alertTitle),A.xp6(6),A.Q6J("ngTemplateOutlet",Ce),A.xp6(3),A.Q6J("ngModel",s.requestedAmount)("step",1e4)("min",0),A.xp6(4),A.Q6J("ngIf",null==G.errors?null:G.errors.required),A.xp6(2),A.Q6J("ngModel",s.feeRate)("step",10)("min",0),A.xp6(4),A.Q6J("ngIf",null==DA.errors?null:DA.errors.required),A.xp6(2),A.Q6J("ngModel",s.localAmount)("step",1e4)("min",2e4)("max",s.totalBalance),A.xp6(3),A.hij("Remaining Bal: ",A.lcZ(30,20,s.totalBalance-(s.localAmount?s.localAmount:0)),""),A.xp6(4),A.Q6J("ngIf",null==ht.errors?null:ht.errors.required),A.xp6(1),A.Q6J("ngIf",null==ht.errors?null:ht.errors.min),A.xp6(1),A.Q6J("ngIf",null==ht.errors?null:ht.errors.max),A.xp6(3),A.hij("Total cost to lease ",A.lcZ(39,22,s.node.channelOpeningFee)," (Sats)"),A.xp6(2),A.Q6J("ngIf",""!==s.channelConnectionError)}},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Y.lW,w.dn,OA._Y,OA.JL,OA.F,Et.tP,W.KE,Yt.Nt,OA.wV,OA.qQ,OA.Fj,k.q,H.h,OA.Q7,OA.JJ,OA.On,W.R9,Et.O5,OA.Fd,tr.F,W.bx,W.TO,f.BN,ar.ib,ar.yz,ar.yK,AA.d,yA.BZ,rt.YE,yA.w1,yA.fO,yA.Dz,yA.as,yA.nj,yA.ge,rt.nU,yA.ev,yA.XQ,yA.Gk],pipes:[Et.JJ,Et.uU],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),r})();function yu(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Channel amount is required."),A.qZA())}function xu(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Channel opening fee rate is required."),A.qZA())}function Fu(r,v){1&r&&A._UZ(0,"mat-progress-bar",40)}function Yu(r,v){1&r&&(A.TgZ(0,"th",41),A._uU(1," Alias "),A.qZA())}const Tu=function(r){return{"max-width":r}};function Nu(r,v){if(1&r&&(A.TgZ(0,"td",42),A._uU(1),A.qZA()),2&r){const t=v.$implicit,s=A.oxw();A.Q6J("ngStyle",A.VKq(2,Tu,s.screenSize===s.screenSizeEnum.XS?"10rem":"40rem")),A.xp6(1),A.hij(" ",null==t?null:t.alias," ")}}function Su(r,v){1&r&&(A.TgZ(0,"th",43),A._uU(1," Capacity/Channels "),A.qZA())}function Uu(r,v){if(1&r&&(A.TgZ(0,"td",44),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.AsE(" ",A.xi3(2,2,(null==t?null:t.nodeCapacity)/1e8,"1.0-2")," BTC / ",A.xi3(3,5,null==t?null:t.channelCount,"1.0-0")," ")}}function Pu(r,v){1&r&&(A.TgZ(0,"th",43),A._uU(1," Lease Fee "),A.qZA())}function Ru(r,v){if(1&r&&(A.TgZ(0,"td",44),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.AsE(" ",A.xi3(2,2,(null==t||null==t.option_will_fund?null:t.option_will_fund.lease_fee_base_msat)/1e3,"1.0-0")," Sats + ",A.xi3(3,5,(null==t||null==t.option_will_fund?null:t.option_will_fund.lease_fee_basis)/100,"1.2-2"),"% ")}}function zu(r,v){1&r&&(A.TgZ(0,"th",43),A._uU(1," Routing Fee "),A.qZA())}function Lu(r,v){if(1&r&&(A.TgZ(0,"td",44),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.AsE(" ",A.xi3(2,2,(null==t||null==t.option_will_fund?null:t.option_will_fund.channel_fee_max_base_msat)/1e3,"1.0-0")," Sats + ",A.xi3(3,5,1e3*(null==t||null==t.option_will_fund?null:t.option_will_fund.channel_fee_max_proportional_thousandths),"1.0-0")," ppm ")}}function bu(r,v){1&r&&(A.TgZ(0,"th",45),A._uU(1," Channel Opening Fee "),A.qZA())}function Gu(r,v){if(1&r&&(A.TgZ(0,"td",44),A.TgZ(1,"span",46),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.hij(" ",A.xi3(3,1,t.channelOpeningFee,"1.0-0")," Sats ")}}function Hu(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"th",47),A.TgZ(1,"div",48),A.TgZ(2,"mat-select",49),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",50),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function Ju(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",51),A.TgZ(1,"div",52),A.TgZ(2,"mat-select",49),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",50),A.NdJ("click",function(){const DA=A.CHM(t).$implicit;return A.oxw().onViewLeaseInfo(DA)}),A._uU(5,"View Lease Info"),A.qZA(),A.TgZ(6,"mat-option",50),A.NdJ("click",function(){const DA=A.CHM(t).$implicit;return A.oxw().onOpenChannel(DA)}),A._uU(7,"Open Channel"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function Ou(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No node with liquidity."),A.qZA())}function ku(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting nodes with liquidity..."),A.qZA())}function ju(r,v){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function Zu(r,v){if(1&r&&(A.TgZ(0,"td",53),A.YNc(1,Ou,2,0,"p",15),A.YNc(2,ku,2,0,"p",15),A.YNc(3,ju,2,1,"p",15),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(!(null!=t.liquidityNodes&&t.liquidityNodes.data)||(null==t.liquidityNodes||null==t.liquidityNodes.data?null:t.liquidityNodes.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.liquidityNodes&&t.liquidityNodes.data)||(null==t.liquidityNodes||null==t.liquidityNodes.data?null:t.liquidityNodes.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.liquidityNodes&&t.liquidityNodes.data)||(null==t.liquidityNodes||null==t.liquidityNodes.data?null:t.liquidityNodes.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Ku=function(r){return{"display-none":r}};function Vu(r,v){if(1&r&&A._UZ(0,"tr",54),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,Ku,(null==t.liquidityNodes?null:t.liquidityNodes.data)&&(null==t.liquidityNodes||null==t.liquidityNodes.data?null:t.liquidityNodes.data.length)>0))}}function Wu(r,v){1&r&&A._UZ(0,"tr",55)}function Xu(r,v){1&r&&A._UZ(0,"tr",56)}const qu=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},_u=function(){return["no_lqNode"]},tf=_t.Bz.forChild([{path:"",component:n,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:xo,canActivate:[ze.eQ]},{path:"onchain",component:jr,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"receive/utxos"},{path:"receive/:selTab",component:Ya,canActivate:[ze.eQ]},{path:"send/:selTab",component:Ta,data:{sweepAll:!1},canActivate:[ze.eQ]},{path:"sweep/:selTab",component:Ta,data:{sweepAll:!0},canActivate:[ze.eQ]}]},{path:"connections",component:ws,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:Sa,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:b0,canActivate:[ze.eQ]},{path:"pending",component:Bl,canActivate:[ze.eQ]}]},{path:"peers",component:x,data:{sweepAll:!1},canActivate:[ze.eQ]}]},{path:"liquidityads",component:(()=>{class r{constructor(t,s,G,DA,ht){this.logger=t,this.store=s,this.dataService=G,this.commonService=DA,this.rtlEffects=ht,this.askTooltipMsg="",this.nodesTooltipMsg="",this.displayedColumns=[],this.faBullhorn=h.Acd,this.faExclamationTriangle=h.eHv,this.totalBalance=0,this.channelAmount=1e5,this.channelOpeningFeeRate=10,this.nodeCapacity=5e5,this.channelCount=5,this.liquidityNodesData=[],this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.apiCallStatus={status:a.Bn.INITIATED},this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x],this.askTooltipMsg="Specify the liquidity requirements for your node: \n 1. Channel Amount - Amount in Sats you need for 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 are the nodes which 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(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","channelOpeningFee","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","leaseFee","routingFee","channelOpeningFee","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","leaseFee","routingFee","channelOpeningFee","actions"])}ngOnInit(){(0,Ba.a)([this.store.select(B.OL),this.dataService.listNetworkNodes("?liquidity_ads=yes")]).pipe((0,i.R)(this.unSubs[0])).subscribe({next:([t,s])=>{this.information=t.information,this.totalBalance=t.balance.totalBalance,this.logger.info(t),s&&!s.length&&(s=[]),this.logger.info("Received Liquidity Ads Enabled Nodes: "+JSON.stringify(s)),this.apiCallStatus.status=a.Bn.COMPLETED,this.liquidityNodesData=s.filter(G=>G.nodeid!==this.information.id),this.onCalculateOpeningFee(),this.loadLiqNodesTable(this.liquidityNodesData)},error:t=>{this.logger.error("Liquidity Ads Nodes Error: "+JSON.stringify(t)),this.apiCallStatus.status=a.Bn.ERROR,this.errorMessage=JSON.stringify(t)}})}onCalculateOpeningFee(){this.liquidityNodesData.forEach(t=>{t.option_will_fund&&(t.channelOpeningFee=+t.option_will_fund.lease_fee_base_msat/1e3+this.channelAmount*+t.option_will_fund.lease_fee_basis/1e4+ +t.option_will_fund.funding_weight/4*this.channelOpeningFeeRate)}),this.paginator&&this.paginator.firstPage()}loadLiqNodesTable(t){this.liquidityNodes=new yA.by([...t]),this.liquidityNodes.sortingDataAccessor=(s,G)=>s[G]&&isNaN(s[G])?s[G].toLocaleLowerCase():s[G]?+s[G]:null,this.liquidityNodes.sort=this.sort,this.liquidityNodes.paginator=this.paginator,this.sort&&this.sort.sort({id:"channelOpeningFee",start:"asc",disableClear:!0})}onOpenChannel(t){this.store.dispatch((0,kA.qR)({payload:{data:{alertTitle:"Open Channel",message:{node:t,balance:this.totalBalance,requestedAmount:this.channelAmount,feeRate:this.channelOpeningFeeRate,localAmount:2e4},component:vu}}}))}onViewLeaseInfo(t){const s=t.addresses.reduce((DA,ht)=>(ht.address.length>40&&(ht.address=ht.address.substring(0,39)+"..."),DA.concat(JSON.stringify(ht).replace("{","").replace("}","").replace(/:/g,": ").replace(/,/g,"        ").replace(/"/g,""))),[]);this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Lease Information",noBtnText:"Close",yesBtnText:"Open Channel",message:[[{key:"alias",value:t.alias,title:"Node Alias",width:50,type:a.Gi.STRING},{key:"last_timestamp",value:t.last_timestamp,title:"Last Timestamp",width:50,type:a.Gi.DATE_TIME}],[{key:"nodeid",value:t.nodeid,title:"Node ID",width:100,type:a.Gi.STRING}],[{key:"base_fee",value:t.option_will_fund.lease_fee_base_msat/1e3,title:"Lease Base Fee (Sats)",width:50,type:a.Gi.NUMBER},{key:"fee_basis",value:t.option_will_fund.lease_fee_basis,title:"Lease Base Basis (bps)",width:50,type:a.Gi.NUMBER}],[{key:"channel_max_base",value:t.option_will_fund.channel_fee_max_base_msat/1e3,title:"Max Channel Routing Base Fee (Sats)",width:50,type:a.Gi.NUMBER},{key:"channel_max_rate",value:1e3*t.option_will_fund.channel_fee_max_proportional_thousandths,title:"Max Channel Routing Fee Rate (ppm)",width:50,type:a.Gi.NUMBER}],[{key:"funding_rate",value:t.option_will_fund.funding_weight,title:"Funding Weight",width:100,type:a.Gi.NUMBER}],[{key:"address",value:s,title:"Address",width:100,type:a.Gi.ARRAY}]]}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[1])).subscribe(DA=>{DA&&this.onOpenChannel(t)})}onDownloadCSV(){this.liquidityNodes.data&&this.liquidityNodes.data.length>0&&this.commonService.downloadFile(this.liquidityNodes.data,"LiquidityNodes")}onFilterReset(){this.nodeCapacity=0,this.channelCount=0}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(RA.D),A.Y36(e.v),A.Y36(At.V))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-liquidity-ads-list"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(VA.NW,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.sort=G.first),A.iGM(G=A.CRH())&&(s.paginator=G.first)}},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Liquidity Ads")}])],decls:54,vars:20,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"],[1,"padding-gap-large"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["formAsk","ngForm"],["fxFlex","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 start",1,"page-sub-title-container","mt-1"],["fxFlex","30"],["matTooltipPosition","above","matTooltipClass","pre-wrap",1,"info-icon","info-icon-primary",3,"matTooltip"],["fxFlex","34"],["autoFocus","","matInput","","placeholder","Channel Amount (Sats)","name","channelAmount","tabindex","1","type","number","step","10000","required","",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["matInput","","placeholder","Channel Opening Fee Rate (Sats/vByte)","name","channelOpeningFeeRate","type","number","step","10","tabindex","2","required","",3,"ngModel","ngModelChange","keyup"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container","mt-2",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","capacityChannels"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","leaseFee"],["matColumnDef","routingFee"],["matColumnDef","channelOpeningFee"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_lqNode"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Liquidity Ads"),A.qZA(),A.qZA(),A.TgZ(4,"div",3),A.TgZ(5,"mat-card"),A.TgZ(6,"mat-card-content",4),A.TgZ(7,"div",5),A.TgZ(8,"form",6,7),A.TgZ(10,"div",8),A._UZ(11,"fa-icon",9),A.TgZ(12,"span"),A._uU(13,"Ads should be suplemented with additional research of the nodes, before buying liquidity."),A.qZA(),A.qZA(),A.TgZ(14,"div",10),A.TgZ(15,"div",11),A.TgZ(16,"span",2),A._uU(17," Liquidity Ask "),A.TgZ(18,"mat-icon",12),A._uU(19,"info_outline"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(20,"mat-form-field",13),A.TgZ(21,"input",14),A.NdJ("ngModelChange",function(DA){return s.channelAmount=DA})("keyup",function(){return s.onCalculateOpeningFee()}),A.qZA(),A.YNc(22,yu,2,0,"mat-error",15),A.qZA(),A.TgZ(23,"mat-form-field",13),A.TgZ(24,"input",16),A.NdJ("ngModelChange",function(DA){return s.channelOpeningFeeRate=DA})("keyup",function(){return s.onCalculateOpeningFee()}),A.qZA(),A.YNc(25,xu,2,0,"mat-error",15),A.qZA(),A.qZA(),A.qZA(),A.TgZ(26,"div",17),A.YNc(27,Fu,1,0,"mat-progress-bar",18),A.TgZ(28,"table",19,20),A.ynx(30,21),A.YNc(31,Yu,2,0,"th",22),A.YNc(32,Nu,2,4,"td",23),A.BQk(),A.ynx(33,24),A.YNc(34,Su,2,0,"th",25),A.YNc(35,Uu,4,8,"td",26),A.BQk(),A.ynx(36,27),A.YNc(37,Pu,2,0,"th",25),A.YNc(38,Ru,4,8,"td",26),A.BQk(),A.ynx(39,28),A.YNc(40,zu,2,0,"th",25),A.YNc(41,Lu,4,8,"td",26),A.BQk(),A.ynx(42,29),A.YNc(43,bu,2,0,"th",30),A.YNc(44,Gu,4,4,"td",26),A.BQk(),A.ynx(45,31),A.YNc(46,Hu,6,0,"th",32),A.YNc(47,Ju,8,0,"td",33),A.BQk(),A.ynx(48,34),A.YNc(49,Zu,4,3,"td",35),A.BQk(),A.YNc(50,Vu,1,3,"tr",36),A.YNc(51,Wu,1,0,"tr",37),A.YNc(52,Xu,1,0,"tr",38),A.qZA(),A.qZA(),A._UZ(53,"mat-paginator",39),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(1),A.Q6J("icon",s.faBullhorn),A.xp6(10),A.Q6J("icon",s.faExclamationTriangle),A.xp6(7),A.Q6J("matTooltip",s.askTooltipMsg),A.xp6(3),A.Q6J("ngModel",s.channelAmount),A.xp6(1),A.Q6J("ngIf",!s.channelAmount),A.xp6(2),A.Q6J("ngModel",s.channelOpeningFeeRate),A.xp6(1),A.Q6J("ngIf",!s.channelOpeningFeeRate),A.xp6(2),A.Q6J("ngIf",s.apiCallStatus.status===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",s.liquidityNodes)("ngClass",A.VKq(17,qu,""!==s.errorMessage)),A.xp6(22),A.Q6J("matFooterRowDef",A.DdM(19,_u)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[Ct.xw,Ct.Wh,f.BN,w.a8,w.dn,Ct.yH,OA._Y,OA.JL,OA.F,y.Hw,aA.gM,W.KE,Yt.Nt,OA.wV,OA.Fj,H.h,OA.Q7,OA.JJ,OA.On,Et.O5,lA.$V,yA.BZ,rt.YE,Et.mk,d.oO,yA.w1,yA.fO,yA.Dz,yA.mD,yA.Ke,yA.as,yA.nj,VA.NW,W.TO,T.pW,yA.ge,rt.nU,yA.ev,Et.PC,d.Zl,R.gD,R.$L,wA.ey,yA.yh,yA.Q2,yA.XQ,yA.Gk],pipes:[Et.JJ],styles:[".mat-column-alias[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})(),canActivate:[ze.eQ]},{path:"transactions",component:Cs,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:aa,canActivate:[ze.eQ]},{path:"invoices",component:tt,canActivate:[ze.eQ]},{path:"offers",component:BB,canActivate:[ze.eQ]},{path:"offrBookmarks",component:PB,canActivate:[ze.eQ]}]},{path:"messages",component:Ii,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"sign"},{path:"sign",component:Oe,canActivate:[ze.eQ]},{path:"verify",component:mn,canActivate:[ze.eQ]}]},{path:"routing",component:ds,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:na,canActivate:[ze.eQ]},{path:"failedtransactions",component:dc,canActivate:[ze.eQ]},{path:"localfail",component:au,canActivate:[ze.eQ]},{path:"routingpeers",component:ug,canActivate:[ze.eQ]}]},{path:"reports",component:hg,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"routingreport"},{path:"routingreport",component:Ig,canActivate:[ze.eQ]},{path:"transactions",component:Ng,canActivate:[ze.eQ]}]},{path:"graph",component:Pg,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"lookups"},{path:"lookups",component:bs,canActivate:[ze.eQ]},{path:"queryroutes",component:ln,canActivate:[ze.eQ]}]},{path:"rates",component:$s,canActivate:[ze.eQ]},{path:"**",component:Sg.w},{path:"network",redirectTo:"rates"},{path:"wallet",redirectTo:"home"},{path:"backup",redirectTo:"home"}]}]);var ef=St(8750);let nf=(()=>{class r{}return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=A.oAB({type:r,bootstrap:[n]}),r.\u0275inj=A.cJS({providers:[ze.eQ],imports:[[Et.ez,ef.m,tf]]}),r})()},4641:function(oi,xr,St){var Et=St(7757);"undefined"!=typeof self&&self,oi.exports=function(){var _t={9282:function(T,I,n){"use strict";var c=n(4155);function i($){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(hA){return typeof hA}:function(hA){return hA&&"function"==typeof Symbol&&hA.constructor===Symbol&&hA!==Symbol.prototype?"symbol":typeof hA})($)}var m,D,h=n(2136).codes,a=h.ERR_AMBIGUOUS_ARGUMENT,B=h.ERR_INVALID_ARG_TYPE,E=h.ERR_INVALID_ARG_VALUE,u=h.ERR_INVALID_RETURN_VALUE,C=h.ERR_MISSING_ARGS,e=n(5961),g=n(9539).inspect,w=n(9539).types,Q=w.isPromise,d=w.isRegExp,Y=Object.assign?Object.assign:n(8091).assign,y=Object.is?Object.is:n(609);function z(){var $=n(9158);m=$.isDeepEqual,D=$.isDeepStrictEqual}var AA=!1,lA=T.exports=vA,MA={};function cA($){throw $.message instanceof Error?$.message:new e($)}function BA($,V,hA,mA){if(!hA){var nA=!1;if(0===V)nA=!0,mA="No value argument passed to `assert.ok()`";else if(mA instanceof Error)throw mA;var EA=new e({actual:hA,expected:!0,message:mA,operator:"==",stackStartFn:$});throw EA.generatedMessage=nA,EA}}function vA(){for(var $=arguments.length,V=new Array($),hA=0;hA<$;hA++)V[hA]=arguments[hA];BA.apply(void 0,[vA,V.length].concat(V))}lA.fail=function gA($,V,hA,mA,nA){var GA,EA=arguments.length;if(0===EA?GA="Failed":1===EA?(hA=$,$=void 0):(!1===AA&&(AA=!0,(c.emitWarning?c.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===EA&&(mA="!=")),hA instanceof Error)throw hA;var ot={actual:$,expected:V,operator:void 0===mA?"fail":mA,stackStartFn:nA||gA};void 0!==hA&&(ot.message=hA);var TA=new e(ot);throw GA&&(TA.message=GA,TA.generatedMessage=!0),TA},lA.AssertionError=e,lA.ok=vA,lA.equal=function $(V,hA,mA){if(arguments.length<2)throw new C("actual","expected");V!=hA&&cA({actual:V,expected:hA,message:mA,operator:"==",stackStartFn:$})},lA.notEqual=function $(V,hA,mA){if(arguments.length<2)throw new C("actual","expected");V==hA&&cA({actual:V,expected:hA,message:mA,operator:"!=",stackStartFn:$})},lA.deepEqual=function $(V,hA,mA){if(arguments.length<2)throw new C("actual","expected");void 0===m&&z(),m(V,hA)||cA({actual:V,expected:hA,message:mA,operator:"deepEqual",stackStartFn:$})},lA.notDeepEqual=function $(V,hA,mA){if(arguments.length<2)throw new C("actual","expected");void 0===m&&z(),m(V,hA)&&cA({actual:V,expected:hA,message:mA,operator:"notDeepEqual",stackStartFn:$})},lA.deepStrictEqual=function $(V,hA,mA){if(arguments.length<2)throw new C("actual","expected");void 0===m&&z(),D(V,hA)||cA({actual:V,expected:hA,message:mA,operator:"deepStrictEqual",stackStartFn:$})},lA.notDeepStrictEqual=function FA($,V,hA){if(arguments.length<2)throw new C("actual","expected");void 0===m&&z(),D($,V)&&cA({actual:$,expected:V,message:hA,operator:"notDeepStrictEqual",stackStartFn:FA})},lA.strictEqual=function $(V,hA,mA){if(arguments.length<2)throw new C("actual","expected");y(V,hA)||cA({actual:V,expected:hA,message:mA,operator:"strictEqual",stackStartFn:$})},lA.notStrictEqual=function $(V,hA,mA){if(arguments.length<2)throw new C("actual","expected");y(V,hA)&&cA({actual:V,expected:hA,message:mA,operator:"notStrictEqual",stackStartFn:$})};var _=function $(V,hA,mA){var nA=this;(function o($,V){if(!($ instanceof V))throw new TypeError("Cannot call a class as a function")})(this,$),hA.forEach(function(EA){EA in V&&(nA[EA]=void 0!==mA&&"string"==typeof mA[EA]&&d(V[EA])&&V[EA].test(mA[EA])?mA[EA]:V[EA])})};function dA($,V,hA,mA,nA,EA){if(!(hA in $)||!D($[hA],V[hA])){if(!mA){var GA=new _($,nA),et=new _(V,nA,$),ot=new e({actual:GA,expected:et,operator:"deepStrictEqual",stackStartFn:EA});throw ot.actual=$,ot.expected=V,ot.operator=EA.name,ot}cA({actual:$,expected:V,message:mA,operator:EA.name,stackStartFn:EA})}}function uA($,V,hA,mA){if("function"!=typeof V){if(d(V))return V.test($);if(2===arguments.length)throw new B("expected",["Function","RegExp"],V);if("object"!==i($)||null===$){var nA=new e({actual:$,expected:V,message:hA,operator:"deepStrictEqual",stackStartFn:mA});throw nA.operator=mA.name,nA}var EA=Object.keys(V);if(V instanceof Error)EA.push("name","message");else if(0===EA.length)throw new E("error",V,"may not be an empty object");return void 0===m&&z(),EA.forEach(function(GA){"string"==typeof $[GA]&&d(V[GA])&&V[GA].test($[GA])||dA($,V,GA,hA,EA,mA)}),!0}return void 0!==V.prototype&&$ instanceof V||!Error.isPrototypeOf(V)&&!0===V.call({},$)}function CA($){if("function"!=typeof $)throw new B("fn","Function",$);try{$()}catch(V){return V}return MA}function NA($){return Q($)||null!==$&&"object"===i($)&&"function"==typeof $.then&&"function"==typeof $.catch}function bA($){return Promise.resolve().then(function(){var V;if("function"==typeof $){if(!NA(V=$()))throw new u("instance of Promise","promiseFn",V)}else{if(!NA($))throw new B("promiseFn",["Function","Promise"],$);V=$}return Promise.resolve().then(function(){return V}).then(function(){return MA}).catch(function(hA){return hA})})}function XA($,V,hA,mA){if("string"==typeof hA){if(4===arguments.length)throw new B("error",["Object","Error","Function","RegExp"],hA);if("object"===i(V)&&null!==V){if(V.message===hA)throw new a("error/message",'The error message "'.concat(V.message,'" is identical to the message.'))}else if(V===hA)throw new a("error/message",'The error "'.concat(V,'" is identical to the message.'));mA=hA,hA=void 0}else if(null!=hA&&"object"!==i(hA)&&"function"!=typeof hA)throw new B("error",["Object","Error","Function","RegExp"],hA);if(V===MA){var nA="";hA&&hA.name&&(nA+=" (".concat(hA.name,")")),nA+=mA?": ".concat(mA):".",cA({actual:void 0,expected:hA,operator:$.name,message:"Missing expected ".concat("rejects"===$.name?"rejection":"exception").concat(nA),stackStartFn:$})}if(hA&&!uA(V,hA,mA,$))throw V}function q($,V,hA,mA){if(V!==MA){if("string"==typeof hA&&(mA=hA,hA=void 0),!hA||uA(V,hA)){var nA=mA?": ".concat(mA):".";cA({actual:V,expected:hA,operator:$.name,message:"Got unwanted ".concat("doesNotReject"===$.name?"rejection":"exception").concat(nA,"\n")+'Actual message: "'.concat(V&&V.message,'"'),stackStartFn:$})}throw V}}function O(){for(var $=arguments.length,V=new Array($),hA=0;hA<$;hA++)V[hA]=arguments[hA];BA.apply(void 0,[O,V.length].concat(V))}lA.throws=function $(V){for(var hA=arguments.length,mA=new Array(hA>1?hA-1:0),nA=1;nA1?hA-1:0),nA=1;nA1?hA-1:0),nA=1;nA1?hA-1:0),nA=1;nAgA.length)&&(vA=gA.length),gA.substring(vA-BA.length,vA)===BA}var N="",F="",z="",L="",W={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 AA(gA){var BA=Object.keys(gA),vA=Object.create(Object.getPrototypeOf(gA));return BA.forEach(function(FA){vA[FA]=gA[FA]}),Object.defineProperty(vA,"message",{value:gA.message}),vA}function lA(gA){return y(gA,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function MA(gA,BA,vA){var FA="",_="",dA=0,uA="",CA=!1,NA=lA(gA),bA=NA.split("\n"),XA=lA(BA).split("\n"),q=0,O="";if("strictEqual"===vA&&"object"===d(gA)&&"object"===d(BA)&&null!==gA&&null!==BA&&(vA="strictEqualObject"),1===bA.length&&1===XA.length&&bA[0]!==XA[0]){var $=bA[0].length+XA[0].length;if($<=10){if(!("object"===d(gA)&&null!==gA||"object"===d(BA)&&null!==BA||0===gA&&0===BA))return"".concat(W[vA],"\n\n")+"".concat(bA[0]," !== ").concat(XA[0],"\n")}else if("strictEqualObject"!==vA&&$<(c.stderr&&c.stderr.isTTY?c.stderr.columns:80)){for(;bA[0][q]===XA[0][q];)q++;q>2&&(O="\n ".concat(function U(gA,BA){if(BA=Math.floor(BA),0==gA.length||0==BA)return"";var vA=gA.length*BA;for(BA=Math.floor(Math.log(BA)/Math.log(2));BA;)gA+=gA,BA--;return gA+gA.substring(0,vA-gA.length)}(" ",q),"^"),q=0)}}for(var hA=bA[bA.length-1],mA=XA[XA.length-1];hA===mA&&(q++<2?uA="\n ".concat(hA).concat(uA):FA=hA,bA.pop(),XA.pop(),0!==bA.length&&0!==XA.length);)hA=bA[bA.length-1],mA=XA[XA.length-1];var nA=Math.max(bA.length,XA.length);if(0===nA){var EA=NA.split("\n");if(EA.length>30)for(EA[26]="".concat(N,"...").concat(L);EA.length>27;)EA.pop();return"".concat(W.notIdentical,"\n\n").concat(EA.join("\n"),"\n")}q>3&&(uA="\n".concat(N,"...").concat(L).concat(uA),CA=!0),""!==FA&&(uA="\n ".concat(FA).concat(uA),FA="");var GA=0,et=W[vA]+"\n".concat(F,"+ actual").concat(L," ").concat(z,"- expected").concat(L),ot=" ".concat(N,"...").concat(L," Lines skipped");for(q=0;q1&&q>2&&(TA>4?(_+="\n".concat(N,"...").concat(L),CA=!0):TA>3&&(_+="\n ".concat(XA[q-2]),GA++),_+="\n ".concat(XA[q-1]),GA++),dA=q,FA+="\n".concat(z,"-").concat(L," ").concat(XA[q]),GA++;else if(XA.length1&&q>2&&(TA>4?(_+="\n".concat(N,"...").concat(L),CA=!0):TA>3&&(_+="\n ".concat(bA[q-2]),GA++),_+="\n ".concat(bA[q-1]),GA++),dA=q,_+="\n".concat(F,"+").concat(L," ").concat(bA[q]),GA++;else{var it=XA[q],mt=bA[q],It=mt!==it&&(!D(mt,",")||mt.slice(0,-1)!==it);It&&D(it,",")&&it.slice(0,-1)===mt&&(It=!1,mt+=","),It?(TA>1&&q>2&&(TA>4?(_+="\n".concat(N,"...").concat(L),CA=!0):TA>3&&(_+="\n ".concat(bA[q-2]),GA++),_+="\n ".concat(bA[q-1]),GA++),dA=q,_+="\n".concat(F,"+").concat(L," ").concat(mt),FA+="\n".concat(z,"-").concat(L," ").concat(it),GA+=2):(_+=FA,FA="",(1===TA||0===q)&&(_+="\n ".concat(mt),GA++))}if(GA>20&&q30)for(q[26]="".concat(N,"...").concat(L);q.length>27;)q.pop();FA=B(this,1===q.length?Q(BA).call(this,"".concat(XA," ").concat(q[0])):Q(BA).call(this,"".concat(XA,"\n\n").concat(q.join("\n"),"\n")))}else{var O=lA(CA),$="",V=W[dA];"notDeepEqual"===dA||"notEqual"===dA?(O="".concat(W[dA],"\n\n").concat(O)).length>1024&&(O="".concat(O.slice(0,1021),"...")):($="".concat(lA(NA)),O.length>512&&(O="".concat(O.slice(0,509),"...")),$.length>512&&($="".concat($.slice(0,509),"...")),"deepEqual"===dA||"equal"===dA?O="".concat(V,"\n\n").concat(O,"\n\nshould equal\n\n"):$=" ".concat(dA," ").concat($)),FA=B(this,Q(BA).call(this,"".concat(O).concat($)))}return Error.stackTraceLimit=bA,FA.generatedMessage=!_,Object.defineProperty(E(FA),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),FA.code="ERR_ASSERTION",FA.actual=CA,FA.expected=NA,FA.operator=dA,Error.captureStackTrace&&Error.captureStackTrace(E(FA),uA),FA.name="AssertionError",B(FA)}return function u(gA,BA){if("function"!=typeof BA&&null!==BA)throw new TypeError("Super expression must either be null or a function");gA.prototype=Object.create(BA&&BA.prototype,{constructor:{value:gA,writable:!0,configurable:!0}}),BA&&w(gA,BA)}(BA,gA),function a(gA,BA,vA){return BA&&h(gA.prototype,BA),vA&&h(gA,vA),gA}(BA,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:y.custom,value:function(FA,_){return y(this,function i(gA){for(var BA=1;BA2?"one of ".concat(Y," ").concat(d.slice(0,y-1).join(", "),", or ")+d[y-1]:2===y?"one of ".concat(Y," ").concat(d[0]," or ").concat(d[1]):"of ".concat(Y," ").concat(d[0])}return"of ".concat(Y," ").concat(String(d))}e("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),e("ERR_INVALID_ARG_TYPE",function(d,Y,y){var p,m;if(void 0===u&&(u=n(9282)),u("string"==typeof d,"'name' must be a string"),"string"==typeof Y&&function g(d,Y,y){return d.substr(!y||y<0?0:+y,Y.length)===Y}(Y,"not ")?(p="must not be",Y=Y.replace(/^not /,"")):p="must be",function w(d,Y,y){return(void 0===y||y>d.length)&&(y=d.length),d.substring(y-Y.length,y)===Y}(d," argument"))m="The ".concat(d," ").concat(p," ").concat(f(Y,"type"));else{var D=function Q(d,Y,y){return"number"!=typeof y&&(y=0),!(y+Y.length>d.length)&&-1!==d.indexOf(Y,y)}(d,".")?"property":"argument";m='The "'.concat(d,'" ').concat(D," ").concat(p," ").concat(f(Y,"type"))}return m+". Received type ".concat(c(y))},TypeError),e("ERR_INVALID_ARG_VALUE",function(d,Y){var y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===C&&(C=n(9539));var p=C.inspect(Y);return p.length>128&&(p="".concat(p.slice(0,128),"...")),"The argument '".concat(d,"' ").concat(y,". Received ").concat(p)},TypeError,RangeError),e("ERR_INVALID_RETURN_VALUE",function(d,Y,y){var p;return p=y&&y.constructor&&y.constructor.name?"instance of ".concat(y.constructor.name):"type ".concat(c(y)),"Expected ".concat(d,' to be returned from the "').concat(Y,'"')+" function but got ".concat(p,".")},TypeError),e("ERR_MISSING_ARGS",function(){for(var d=arguments.length,Y=new Array(d),y=0;y0,"At least one arg needs to be specified");var p="The ",m=Y.length;switch(Y=Y.map(function(D){return'"'.concat(D,'"')}),m){case 1:p+="".concat(Y[0]," argument");break;case 2:p+="".concat(Y[0]," and ").concat(Y[1]," arguments");break;default:p+=Y.slice(0,m-1).join(", "),p+=", and ".concat(Y[m-1]," arguments")}return"".concat(p," must be specified")},TypeError),T.exports.codes=E},9158:function(T,I,n){"use strict";function c(JA,VA){return function l(JA){if(Array.isArray(JA))return JA}(JA)||function o(JA,VA){var rt=[],yA=!0,Mt=!1,ft=void 0;try{for(var Yt,OA=JA[Symbol.iterator]();!(yA=(Yt=OA.next()).done)&&(rt.push(Yt.value),!VA||rt.length!==VA);yA=!0);}catch(H){Mt=!0,ft=H}finally{try{!yA&&null!=OA.return&&OA.return()}finally{if(Mt)throw ft}}return rt}(JA,VA)||function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function h(JA){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(rt){return typeof rt}:function(rt){return rt&&"function"==typeof Symbol&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt})(JA)}var a=void 0!==/a/g.flags,B=function(VA){var rt=[];return VA.forEach(function(yA){return rt.push(yA)}),rt},E=function(VA){var rt=[];return VA.forEach(function(yA,Mt){return rt.push([Mt,yA])}),rt},u=Object.is?Object.is:n(609),C=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},e=Number.isNaN?Number.isNaN:n(360);function f(JA){return JA.call.bind(JA)}var g=f(Object.prototype.hasOwnProperty),w=f(Object.prototype.propertyIsEnumerable),Q=f(Object.prototype.toString),d=n(9539).types,Y=d.isAnyArrayBuffer,y=d.isArrayBufferView,p=d.isDate,m=d.isMap,D=d.isRegExp,U=d.isSet,N=d.isNativeError,F=d.isBoxedPrimitive,z=d.isNumberObject,L=d.isStringObject,W=d.isBooleanObject,aA=d.isBigIntObject,AA=d.isSymbolObject,lA=d.isFloat32Array,MA=d.isFloat64Array;function cA(JA){if(0===JA.length||JA.length>10)return!0;for(var VA=0;VA57)return!0}return 10===JA.length&&JA>=Math.pow(2,32)}function gA(JA){return Object.keys(JA).filter(cA).concat(C(JA).filter(Object.prototype.propertyIsEnumerable.bind(JA)))}function BA(JA,VA){if(JA===VA)return 0;for(var rt=JA.length,yA=VA.length,Mt=0,ft=Math.min(rt,yA);Mt=E.length?{done:!0}:{done:!1,value:E[e++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(E,u){(null==u||u>E.length)&&(u=E.length);for(var C=0,e=new Array(u);Cthis.buffer.length)return this.flush()},f.flush=function(){if(this.bufferOffset>0)return this.push(c.from(this.buffer.slice(0,this.bufferOffset))),this.bufferOffset=0},f.writeBuffer=function(w){return this.flush(),this.push(w),this.pos+=w.length},f.writeString=function(w,Q){switch(void 0===Q&&(Q="ascii"),Q){case"utf16le":case"ucs2":case"utf8":case"ascii":return this.writeBuffer(c.from(w,Q));case"utf16be":for(var d=c.from(w,"utf16le"),Y=0,y=d.length-1;Y>>16&255,this.buffer[this.bufferOffset++]=w>>>8&255,this.buffer[this.bufferOffset++]=255&w,this.pos+=3},f.writeUInt24LE=function(w){return this.ensure(3),this.buffer[this.bufferOffset++]=255&w,this.buffer[this.bufferOffset++]=w>>>8&255,this.buffer[this.bufferOffset++]=w>>>16&255,this.pos+=3},f.writeInt24BE=function(w){return this.writeUInt24BE(w>=0?w:w+16777215+1)},f.writeInt24LE=function(w){return this.writeUInt24LE(w>=0?w:w+16777215+1)},f.fill=function(w,Q){if(Q=this.length)){if(null==this.items[w]){var Q=this.stream.pos;this.stream.pos=this.base+this.type.size(null,this.ctx)*w,this.items[w]=this.type.decode(this.stream,this.ctx),this.stream.pos=Q}return this.items[w]}},f.toArray=function(){for(var w=[],Q=0,d=this.length;Q>1),(f=a.call(this,"Int"+u,C)||this)._point=1<u)throw new RangeError('The value "'+H+'" is invalid for option "size"');var k=new Uint8Array(H);return Object.setPrototypeOf(k,f.prototype),k}function f(H,k,R){if("number"==typeof H){if("string"==typeof k)throw new TypeError('The "string" argument must be of type string. Received type number');return d(H)}return g(H,k,R)}function g(H,k,R){if("string"==typeof H)return function Y(H,k){if(("string"!=typeof k||""===k)&&(k="utf8"),!f.isEncoding(k))throw new TypeError("Unknown encoding: "+k);var R=0|F(H,k),QA=e(R),wA=QA.write(H,k);return wA!==R&&(QA=QA.slice(0,wA)),QA}(H,k);if(ArrayBuffer.isView(H))return function p(H){if(yA(H,Uint8Array)){var k=new Uint8Array(H);return m(k.buffer,k.byteOffset,k.byteLength)}return y(H)}(H);if(null==H)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof H);if(yA(H,ArrayBuffer)||H&&yA(H.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(yA(H,SharedArrayBuffer)||H&&yA(H.buffer,SharedArrayBuffer)))return m(H,k,R);if("number"==typeof H)throw new TypeError('The "value" argument must not be of type number. Received type number');var QA=H.valueOf&&H.valueOf();if(null!=QA&&QA!==H)return f.from(QA,k,R);var wA=function D(H){if(f.isBuffer(H)){var k=0|U(H.length),R=e(k);return 0===R.length||H.copy(R,0,0,k),R}return void 0!==H.length?"number"!=typeof H.length||Mt(H.length)?e(0):y(H):"Buffer"===H.type&&Array.isArray(H.data)?y(H.data):void 0}(H);if(wA)return wA;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof H[Symbol.toPrimitive])return f.from(H[Symbol.toPrimitive]("string"),k,R);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof H)}function w(H){if("number"!=typeof H)throw new TypeError('"size" argument must be of type number');if(H<0)throw new RangeError('The value "'+H+'" is invalid for option "size"')}function d(H){return w(H),e(H<0?0:0|U(H))}function y(H){for(var k=H.length<0?0:0|U(H.length),R=e(k),QA=0;QA=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return 0|H}function F(H,k){if(f.isBuffer(H))return H.length;if(ArrayBuffer.isView(H)||yA(H,ArrayBuffer))return H.byteLength;if("string"!=typeof H)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof H);var R=H.length,QA=arguments.length>2&&!0===arguments[2];if(!QA&&0===R)return 0;for(var wA=!1;;)switch(k){case"ascii":case"latin1":case"binary":return R;case"utf8":case"utf-8":return It(H).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*R;case"hex":return R>>>1;case"base64":return VA(H).length;default:if(wA)return QA?-1:It(H).length;k=(""+k).toLowerCase(),wA=!0}}function z(H,k,R){var QA=!1;if((void 0===k||k<0)&&(k=0),k>this.length||((void 0===R||R>this.length)&&(R=this.length),R<=0)||(R>>>=0)<=(k>>>=0))return"";for(H||(H="utf8");;)switch(H){case"hex":return CA(this,k,R);case"utf8":case"utf-8":return vA(this,k,R);case"ascii":return dA(this,k,R);case"latin1":case"binary":return uA(this,k,R);case"base64":return BA(this,k,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return NA(this,k,R);default:if(QA)throw new TypeError("Unknown encoding: "+H);H=(H+"").toLowerCase(),QA=!0}}function L(H,k,R){var QA=H[k];H[k]=H[R],H[R]=QA}function W(H,k,R,QA,wA){if(0===H.length)return-1;if("string"==typeof R?(QA=R,R=0):R>2147483647?R=2147483647:R<-2147483648&&(R=-2147483648),Mt(R=+R)&&(R=wA?0:H.length-1),R<0&&(R=H.length+R),R>=H.length){if(wA)return-1;R=H.length-1}else if(R<0){if(!wA)return-1;R=0}if("string"==typeof k&&(k=f.from(k,QA)),f.isBuffer(k))return 0===k.length?-1:aA(H,k,R,QA,wA);if("number"==typeof k)return k&=255,"function"==typeof Uint8Array.prototype.indexOf?wA?Uint8Array.prototype.indexOf.call(H,k,R):Uint8Array.prototype.lastIndexOf.call(H,k,R):aA(H,[k],R,QA,wA);throw new TypeError("val must be string, number or Buffer")}function aA(H,k,R,QA,wA){var j,PA=1,rA=H.length,ct=k.length;if(void 0!==QA&&("ucs2"===(QA=String(QA).toLowerCase())||"ucs-2"===QA||"utf16le"===QA||"utf-16le"===QA)){if(H.length<2||k.length<2)return-1;PA=2,rA/=2,ct/=2,R/=2}function Ft(ZA,st){return 1===PA?ZA[st]:ZA.readUInt16BE(st*PA)}if(wA){var kA=-1;for(j=R;jrA&&(R=rA-ct),j=R;j>=0;j--){for(var At=!0,xA=0;xAwA&&(QA=wA):QA=wA;var rA,PA=k.length;for(QA>PA/2&&(QA=PA/2),rA=0;rA>8,PA.push(R%256),PA.push(QA);return PA}(k,H.length-R),H,R,QA)}function BA(H,k,R){return a.fromByteArray(0===k&&R===H.length?H:H.slice(k,R))}function vA(H,k,R){R=Math.min(H.length,R);for(var QA=[],wA=k;wA239?4:PA>223?3:PA>191?2:1;if(wA+ct<=R){var Ft=void 0,j=void 0,kA=void 0,At=void 0;switch(ct){case 1:PA<128&&(rA=PA);break;case 2:128==(192&(Ft=H[wA+1]))&&(At=(31&PA)<<6|63&Ft)>127&&(rA=At);break;case 3:j=H[wA+2],128==(192&(Ft=H[wA+1]))&&128==(192&j)&&(At=(15&PA)<<12|(63&Ft)<<6|63&j)>2047&&(At<55296||At>57343)&&(rA=At);break;case 4:j=H[wA+2],kA=H[wA+3],128==(192&(Ft=H[wA+1]))&&128==(192&j)&&128==(192&kA)&&(At=(15&PA)<<18|(63&Ft)<<12|(63&j)<<6|63&kA)>65535&&At<1114112&&(rA=At)}}null===rA?(rA=65533,ct=1):rA>65535&&(QA.push((rA-=65536)>>>10&1023|55296),rA=56320|1023&rA),QA.push(rA),wA+=ct}return function _(H){var k=H.length;if(k<=4096)return String.fromCharCode.apply(String,H);for(var R="",QA=0;QAwA.length?(f.isBuffer(rA)||(rA=f.from(rA)),rA.copy(wA,PA)):Uint8Array.prototype.set.call(wA,rA,PA);else{if(!f.isBuffer(rA))throw new TypeError('"list" argument must be an Array of Buffers');rA.copy(wA,PA)}PA+=rA.length}return wA},f.byteLength=F,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var k=this.length;if(k%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var R=0;RR&&(k+=" ... "),""},E&&(f.prototype[E]=f.prototype.inspect),f.prototype.compare=function(k,R,QA,wA,PA){if(yA(k,Uint8Array)&&(k=f.from(k,k.offset,k.byteLength)),!f.isBuffer(k))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof k);if(void 0===R&&(R=0),void 0===QA&&(QA=k?k.length:0),void 0===wA&&(wA=0),void 0===PA&&(PA=this.length),R<0||QA>k.length||wA<0||PA>this.length)throw new RangeError("out of range index");if(wA>=PA&&R>=QA)return 0;if(wA>=PA)return-1;if(R>=QA)return 1;if(this===k)return 0;for(var rA=(PA>>>=0)-(wA>>>=0),ct=(QA>>>=0)-(R>>>=0),Ft=Math.min(rA,ct),j=this.slice(wA,PA),kA=k.slice(R,QA),At=0;At>>=0,isFinite(QA)?(QA>>>=0,void 0===wA&&(wA="utf8")):(wA=QA,QA=void 0)}var PA=this.length-R;if((void 0===QA||QA>PA)&&(QA=PA),k.length>0&&(QA<0||R<0)||R>this.length)throw new RangeError("Attempt to write outside buffer bounds");wA||(wA="utf8");for(var rA=!1;;)switch(wA){case"hex":return AA(this,k,R,QA);case"utf8":case"utf-8":return lA(this,k,R,QA);case"ascii":case"latin1":case"binary":return MA(this,k,R,QA);case"base64":return cA(this,k,R,QA);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gA(this,k,R,QA);default:if(rA)throw new TypeError("Unknown encoding: "+wA);wA=(""+wA).toLowerCase(),rA=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function dA(H,k,R){var QA="";R=Math.min(H.length,R);for(var wA=k;wAQA)&&(R=QA);for(var wA="",PA=k;PAR)throw new RangeError("Trying to access beyond buffer length")}function XA(H,k,R,QA,wA,PA){if(!f.isBuffer(H))throw new TypeError('"buffer" argument must be a Buffer instance');if(k>wA||kH.length)throw new RangeError("Index out of range")}function q(H,k,R,QA,wA){et(k,QA,wA,H,R,7);var PA=Number(k&BigInt(4294967295));H[R++]=PA,H[R++]=PA>>=8,H[R++]=PA>>=8,H[R++]=PA>>=8;var rA=Number(k>>BigInt(32)&BigInt(4294967295));return H[R++]=rA,H[R++]=rA>>=8,H[R++]=rA>>=8,H[R++]=rA>>=8,R}function O(H,k,R,QA,wA){et(k,QA,wA,H,R,7);var PA=Number(k&BigInt(4294967295));H[R+7]=PA,H[R+6]=PA>>=8,H[R+5]=PA>>=8,H[R+4]=PA>>=8;var rA=Number(k>>BigInt(32)&BigInt(4294967295));return H[R+3]=rA,H[R+2]=rA>>=8,H[R+1]=rA>>=8,H[R]=rA>>=8,R+8}function $(H,k,R,QA,wA,PA){if(R+QA>H.length)throw new RangeError("Index out of range");if(R<0)throw new RangeError("Index out of range")}function V(H,k,R,QA,wA){return k=+k,R>>>=0,wA||$(H,0,R,4),B.write(H,k,R,QA,23,4),R+4}function hA(H,k,R,QA,wA){return k=+k,R>>>=0,wA||$(H,0,R,8),B.write(H,k,R,QA,52,8),R+8}f.prototype.slice=function(k,R){var QA=this.length;(k=~~k)<0?(k+=QA)<0&&(k=0):k>QA&&(k=QA),(R=void 0===R?QA:~~R)<0?(R+=QA)<0&&(R=0):R>QA&&(R=QA),R>>=0,R>>>=0,QA||bA(k,R,this.length);for(var wA=this[k],PA=1,rA=0;++rA>>=0,R>>>=0,QA||bA(k,R,this.length);for(var wA=this[k+--R],PA=1;R>0&&(PA*=256);)wA+=this[k+--R]*PA;return wA},f.prototype.readUint8=f.prototype.readUInt8=function(k,R){return k>>>=0,R||bA(k,1,this.length),this[k]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(k,R){return k>>>=0,R||bA(k,2,this.length),this[k]|this[k+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(k,R){return k>>>=0,R||bA(k,2,this.length),this[k]<<8|this[k+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(k,R){return k>>>=0,R||bA(k,4,this.length),(this[k]|this[k+1]<<8|this[k+2]<<16)+16777216*this[k+3]},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(k,R){return k>>>=0,R||bA(k,4,this.length),16777216*this[k]+(this[k+1]<<16|this[k+2]<<8|this[k+3])},f.prototype.readBigUInt64LE=OA(function(k){ot(k>>>=0,"offset");var R=this[k],QA=this[k+7];(void 0===R||void 0===QA)&&TA(k,this.length-8);var wA=R+this[++k]*Math.pow(2,8)+this[++k]*Math.pow(2,16)+this[++k]*Math.pow(2,24),PA=this[++k]+this[++k]*Math.pow(2,8)+this[++k]*Math.pow(2,16)+QA*Math.pow(2,24);return BigInt(wA)+(BigInt(PA)<>>=0,"offset");var R=this[k],QA=this[k+7];(void 0===R||void 0===QA)&&TA(k,this.length-8);var wA=R*Math.pow(2,24)+this[++k]*Math.pow(2,16)+this[++k]*Math.pow(2,8)+this[++k],PA=this[++k]*Math.pow(2,24)+this[++k]*Math.pow(2,16)+this[++k]*Math.pow(2,8)+QA;return(BigInt(wA)<>>=0,R>>>=0,QA||bA(k,R,this.length);for(var wA=this[k],PA=1,rA=0;++rA=(PA*=128)&&(wA-=Math.pow(2,8*R)),wA},f.prototype.readIntBE=function(k,R,QA){k>>>=0,R>>>=0,QA||bA(k,R,this.length);for(var wA=R,PA=1,rA=this[k+--wA];wA>0&&(PA*=256);)rA+=this[k+--wA]*PA;return rA>=(PA*=128)&&(rA-=Math.pow(2,8*R)),rA},f.prototype.readInt8=function(k,R){return k>>>=0,R||bA(k,1,this.length),128&this[k]?-1*(255-this[k]+1):this[k]},f.prototype.readInt16LE=function(k,R){k>>>=0,R||bA(k,2,this.length);var QA=this[k]|this[k+1]<<8;return 32768&QA?4294901760|QA:QA},f.prototype.readInt16BE=function(k,R){k>>>=0,R||bA(k,2,this.length);var QA=this[k+1]|this[k]<<8;return 32768&QA?4294901760|QA:QA},f.prototype.readInt32LE=function(k,R){return k>>>=0,R||bA(k,4,this.length),this[k]|this[k+1]<<8|this[k+2]<<16|this[k+3]<<24},f.prototype.readInt32BE=function(k,R){return k>>>=0,R||bA(k,4,this.length),this[k]<<24|this[k+1]<<16|this[k+2]<<8|this[k+3]},f.prototype.readBigInt64LE=OA(function(k){ot(k>>>=0,"offset");var R=this[k],QA=this[k+7];(void 0===R||void 0===QA)&&TA(k,this.length-8);var wA=this[k+4]+this[k+5]*Math.pow(2,8)+this[k+6]*Math.pow(2,16)+(QA<<24);return(BigInt(wA)<>>=0,"offset");var R=this[k],QA=this[k+7];(void 0===R||void 0===QA)&&TA(k,this.length-8);var wA=(R<<24)+this[++k]*Math.pow(2,16)+this[++k]*Math.pow(2,8)+this[++k];return(BigInt(wA)<>>=0,R||bA(k,4,this.length),B.read(this,k,!0,23,4)},f.prototype.readFloatBE=function(k,R){return k>>>=0,R||bA(k,4,this.length),B.read(this,k,!1,23,4)},f.prototype.readDoubleLE=function(k,R){return k>>>=0,R||bA(k,8,this.length),B.read(this,k,!0,52,8)},f.prototype.readDoubleBE=function(k,R){return k>>>=0,R||bA(k,8,this.length),B.read(this,k,!1,52,8)},f.prototype.writeUintLE=f.prototype.writeUIntLE=function(k,R,QA,wA){k=+k,R>>>=0,QA>>>=0,wA||XA(this,k,R,QA,Math.pow(2,8*QA)-1,0);var rA=1,ct=0;for(this[R]=255&k;++ct>>=0,QA>>>=0,wA||XA(this,k,R,QA,Math.pow(2,8*QA)-1,0);var rA=QA-1,ct=1;for(this[R+rA]=255&k;--rA>=0&&(ct*=256);)this[R+rA]=k/ct&255;return R+QA},f.prototype.writeUint8=f.prototype.writeUInt8=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,1,255,0),this[R]=255&k,R+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,2,65535,0),this[R]=255&k,this[R+1]=k>>>8,R+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,2,65535,0),this[R]=k>>>8,this[R+1]=255&k,R+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,4,4294967295,0),this[R+3]=k>>>24,this[R+2]=k>>>16,this[R+1]=k>>>8,this[R]=255&k,R+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,4,4294967295,0),this[R]=k>>>24,this[R+1]=k>>>16,this[R+2]=k>>>8,this[R+3]=255&k,R+4},f.prototype.writeBigUInt64LE=OA(function(k,R){return void 0===R&&(R=0),q(this,k,R,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeBigUInt64BE=OA(function(k,R){return void 0===R&&(R=0),O(this,k,R,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeIntLE=function(k,R,QA,wA){if(k=+k,R>>>=0,!wA){var PA=Math.pow(2,8*QA-1);XA(this,k,R,QA,PA-1,-PA)}var rA=0,ct=1,Ft=0;for(this[R]=255&k;++rA>0)-Ft&255;return R+QA},f.prototype.writeIntBE=function(k,R,QA,wA){if(k=+k,R>>>=0,!wA){var PA=Math.pow(2,8*QA-1);XA(this,k,R,QA,PA-1,-PA)}var rA=QA-1,ct=1,Ft=0;for(this[R+rA]=255&k;--rA>=0&&(ct*=256);)k<0&&0===Ft&&0!==this[R+rA+1]&&(Ft=1),this[R+rA]=(k/ct>>0)-Ft&255;return R+QA},f.prototype.writeInt8=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,1,127,-128),k<0&&(k=255+k+1),this[R]=255&k,R+1},f.prototype.writeInt16LE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,2,32767,-32768),this[R]=255&k,this[R+1]=k>>>8,R+2},f.prototype.writeInt16BE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,2,32767,-32768),this[R]=k>>>8,this[R+1]=255&k,R+2},f.prototype.writeInt32LE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,4,2147483647,-2147483648),this[R]=255&k,this[R+1]=k>>>8,this[R+2]=k>>>16,this[R+3]=k>>>24,R+4},f.prototype.writeInt32BE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,4,2147483647,-2147483648),k<0&&(k=4294967295+k+1),this[R]=k>>>24,this[R+1]=k>>>16,this[R+2]=k>>>8,this[R+3]=255&k,R+4},f.prototype.writeBigInt64LE=OA(function(k,R){return void 0===R&&(R=0),q(this,k,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeBigInt64BE=OA(function(k,R){return void 0===R&&(R=0),O(this,k,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeFloatLE=function(k,R,QA){return V(this,k,R,!0,QA)},f.prototype.writeFloatBE=function(k,R,QA){return V(this,k,R,!1,QA)},f.prototype.writeDoubleLE=function(k,R,QA){return hA(this,k,R,!0,QA)},f.prototype.writeDoubleBE=function(k,R,QA){return hA(this,k,R,!1,QA)},f.prototype.copy=function(k,R,QA,wA){if(!f.isBuffer(k))throw new TypeError("argument should be a Buffer");if(QA||(QA=0),!wA&&0!==wA&&(wA=this.length),R>=k.length&&(R=k.length),R||(R=0),wA>0&&wA=this.length)throw new RangeError("Index out of range");if(wA<0)throw new RangeError("sourceEnd out of bounds");wA>this.length&&(wA=this.length),k.length-R>>=0,QA=void 0===QA?this.length:QA>>>0,k||(k=0),"number"==typeof k)for(rA=R;rA=QA+4;R-=3)k="_"+H.slice(R-3,R)+k;return""+H.slice(0,R)+k}function et(H,k,R,QA,wA,PA){if(H>R||H3?0===k||k===BigInt(0)?">= 0"+rA+" and < 2"+rA+" ** "+8*(PA+1)+rA:">= -(2"+rA+" ** "+(8*(PA+1)-1)+rA+") and < 2 ** "+(8*(PA+1)-1)+rA:">= "+k+rA+" and <= "+R+rA,new mA.ERR_OUT_OF_RANGE("value",ct,H)}!function GA(H,k,R){ot(k,"offset"),(void 0===H[k]||void 0===H[k+R])&&TA(k,H.length-(R+1))}(QA,wA,PA)}function ot(H,k){if("number"!=typeof H)throw new mA.ERR_INVALID_ARG_TYPE(k,"number",H)}function TA(H,k,R){throw Math.floor(H)!==H?(ot(H,R),new mA.ERR_OUT_OF_RANGE(R||"offset","an integer",H)):k<0?new mA.ERR_BUFFER_OUT_OF_BOUNDS:new mA.ERR_OUT_OF_RANGE(R||"offset",">= "+(R?1:0)+" and <= "+k,H)}nA("ERR_BUFFER_OUT_OF_BOUNDS",function(H){return H?H+" is outside of buffer bounds":"Attempt to access memory outside buffer bounds"},RangeError),nA("ERR_INVALID_ARG_TYPE",function(H,k){return'The "'+H+'" argument must be of type number. Received type '+typeof k},TypeError),nA("ERR_OUT_OF_RANGE",function(H,k,R){var QA='The value of "'+H+'" is out of range.',wA=R;return Number.isInteger(R)&&Math.abs(R)>Math.pow(2,32)?wA=EA(String(R)):"bigint"==typeof R&&(wA=String(R),(R>Math.pow(BigInt(2),BigInt(32))||R<-Math.pow(BigInt(2),BigInt(32)))&&(wA=EA(wA)),wA+="n"),QA+" It must be "+k+". Received "+wA},RangeError);var it=/[^+/0-9A-Za-z-_]/g;function It(H,k){k=k||1/0;for(var R,QA=H.length,wA=null,PA=[],rA=0;rA55295&&R<57344){if(!wA){if(R>56319){(k-=3)>-1&&PA.push(239,191,189);continue}if(rA+1===QA){(k-=3)>-1&&PA.push(239,191,189);continue}wA=R;continue}if(R<56320){(k-=3)>-1&&PA.push(239,191,189),wA=R;continue}R=65536+(wA-55296<<10|R-56320)}else wA&&(k-=3)>-1&&PA.push(239,191,189);if(wA=null,R<128){if((k-=1)<0)break;PA.push(R)}else if(R<2048){if((k-=2)<0)break;PA.push(R>>6|192,63&R|128)}else if(R<65536){if((k-=3)<0)break;PA.push(R>>12|224,R>>6&63|128,63&R|128)}else{if(!(R<1114112))throw new Error("Invalid code point");if((k-=4)<0)break;PA.push(R>>18|240,R>>12&63|128,R>>6&63|128,63&R|128)}}return PA}function VA(H){return a.toByteArray(function mt(H){if((H=(H=H.split("=")[0]).trim().replace(it,"")).length<2)return"";for(;H.length%4!=0;)H+="=";return H}(H))}function rt(H,k,R,QA){var wA;for(wA=0;wA=k.length||wA>=H.length);++wA)k[wA+R]=H[wA];return wA}function yA(H,k){return H instanceof k||null!=H&&null!=H.constructor&&null!=H.constructor.name&&H.constructor.name===k.name}function Mt(H){return H!=H}var ft=function(){for(var H="0123456789abcdef",k=new Array(256),R=0;R<16;++R)for(var QA=16*R,wA=0;wA<16;++wA)k[QA+wA]=H[R]+H[wA];return k}();function OA(H){return"undefined"==typeof BigInt?Yt:H}function Yt(){throw new Error("BigInt not supported")}},477:function(T,I,n){"use strict";n(7803),n(1539),T.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},2094:function(T,I,n){"use strict";var lA,MA,cA,c=n(477),i=n(9781),o=n(7854),l=n(614),h=n(111),a=n(2597),B=n(648),E=n(6330),u=n(8880),C=n(1320),e=n(3070).f,f=n(7976),g=n(9518),w=n(7674),Q=n(5112),d=n(9711),Y=o.Int8Array,y=Y&&Y.prototype,p=o.Uint8ClampedArray,m=p&&p.prototype,D=Y&&g(Y),U=y&&g(y),N=Object.prototype,F=o.TypeError,z=Q("toStringTag"),L=d("TYPED_ARRAY_TAG"),W=d("TYPED_ARRAY_CONSTRUCTOR"),aA=c&&!!w&&"Opera"!==B(o.opera),AA=!1,gA={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},BA={BigInt64Array:8,BigUint64Array:8},FA=function(bA){if(!h(bA))return!1;var XA=B(bA);return a(gA,XA)||a(BA,XA)};for(lA in gA)(cA=(MA=o[lA])&&MA.prototype)?u(cA,W,MA):aA=!1;for(lA in BA)(cA=(MA=o[lA])&&MA.prototype)&&u(cA,W,MA);if((!aA||!l(D)||D===Function.prototype)&&(D=function(){throw F("Incorrect invocation")},aA))for(lA in gA)o[lA]&&w(o[lA],D);if((!aA||!U||U===N)&&(U=D.prototype,aA))for(lA in gA)o[lA]&&w(o[lA].prototype,U);if(aA&&g(m)!==U&&w(m,U),i&&!a(U,z))for(lA in AA=!0,e(U,z,{get:function(){return h(this)?this[L]:void 0}}),gA)o[lA]&&u(o[lA],L,lA);T.exports={NATIVE_ARRAY_BUFFER_VIEWS:aA,TYPED_ARRAY_CONSTRUCTOR:W,TYPED_ARRAY_TAG:AA&&L,aTypedArray:function(bA){if(FA(bA))return bA;throw F("Target is not a typed array")},aTypedArrayConstructor:function(bA){if(l(bA)&&(!w||f(D,bA)))return bA;throw F(E(bA)+" is not a typed array constructor")},exportTypedArrayMethod:function(bA,XA,q){if(i){if(q)for(var O in gA){var $=o[O];if($&&a($.prototype,bA))try{delete $.prototype[bA]}catch(V){}}(!U[bA]||q)&&C(U,bA,q?XA:aA&&y[bA]||XA)}},exportTypedArrayStaticMethod:function(bA,XA,q){var O,$;if(i){if(w){if(q)for(O in gA)if(($=o[O])&&a($,bA))try{delete $[bA]}catch(V){}if(D[bA]&&!q)return;try{return C(D,bA,q?XA:aA&&D[bA]||XA)}catch(V){}}for(O in gA)($=o[O])&&(!$[bA]||q)&&C($,bA,XA)}},isView:function(bA){if(!h(bA))return!1;var XA=B(bA);return"DataView"===XA||a(gA,XA)||a(BA,XA)},isTypedArray:FA,TypedArray:D,TypedArrayPrototype:U}},2091:function(T,I,n){"use strict";n(8309);var c=n(7854),i=n(1702),o=n(9781),l=n(477),h=n(6530),a=n(8880),B=n(2248),E=n(7293),u=n(5787),C=n(9303),e=n(7466),f=n(7067),g=n(1179),w=n(9518),Q=n(7674),d=n(8006).f,Y=n(3070).f,y=n(1285),p=n(206),m=n(8003),D=n(9909),U=h.PROPER,N=h.CONFIGURABLE,F=D.get,z=D.set,L="ArrayBuffer",W="DataView",aA="prototype",lA="Wrong index",MA=c[L],cA=MA,gA=cA&&cA[aA],BA=c[W],vA=BA&&BA[aA],FA=Object.prototype,_=c.Array,dA=c.RangeError,uA=i(y),CA=i([].reverse),NA=g.pack,bA=g.unpack,XA=function(ut){return[255&ut]},q=function(ut){return[255&ut,ut>>8&255]},O=function(ut){return[255&ut,ut>>8&255,ut>>16&255,ut>>24&255]},$=function(ut){return ut[3]<<24|ut[2]<<16|ut[1]<<8|ut[0]},V=function(ut){return NA(ut,23,4)},hA=function(ut){return NA(ut,52,8)},mA=function(ut,JA){Y(ut[aA],JA,{get:function(){return F(this)[JA]}})},nA=function(ut,JA,VA,rt){var yA=f(VA),Mt=F(ut);if(yA+JA>Mt.byteLength)throw dA(lA);var ft=F(Mt.buffer).bytes,OA=yA+Mt.byteOffset,Yt=p(ft,OA,OA+JA);return rt?Yt:CA(Yt)},EA=function(ut,JA,VA,rt,yA,Mt){var ft=f(VA),OA=F(ut);if(ft+JA>OA.byteLength)throw dA(lA);for(var Yt=F(OA.buffer).bytes,H=ft+OA.byteOffset,k=rt(+yA),R=0;Rot;)(TA=et[ot++])in cA||a(cA,TA,MA[TA]);gA.constructor=cA}Q&&w(vA)!==FA&&Q(vA,FA);var it=new BA(new cA(2)),mt=i(vA.setInt8);it.setInt8(0,2147483648),it.setInt8(1,2147483649),(it.getInt8(0)||!it.getInt8(1))&&B(vA,{setInt8:function(ut,JA){mt(this,ut,JA<<24>>24)},setUint8:function(ut,JA){mt(this,ut,JA<<24>>24)}},{unsafe:!0})}else gA=(cA=function(ut){u(this,gA);var JA=f(ut);z(this,{bytes:uA(_(JA),0),byteLength:JA}),o||(this.byteLength=JA)})[aA],vA=(BA=function(ut,JA,VA){u(this,vA),u(ut,gA);var rt=F(ut).byteLength,yA=C(JA);if(yA<0||yA>rt)throw dA("Wrong offset");if(yA+(VA=void 0===VA?rt-yA:e(VA))>rt)throw dA("Wrong length");z(this,{buffer:ut,byteLength:VA,byteOffset:yA}),o||(this.buffer=ut,this.byteLength=VA,this.byteOffset=yA)})[aA],o&&(mA(cA,"byteLength"),mA(BA,"buffer"),mA(BA,"byteLength"),mA(BA,"byteOffset")),B(vA,{getInt8:function(ut){return nA(this,1,ut)[0]<<24>>24},getUint8:function(ut){return nA(this,1,ut)[0]},getInt16:function(ut){var JA=nA(this,2,ut,arguments.length>1?arguments[1]:void 0);return(JA[1]<<8|JA[0])<<16>>16},getUint16:function(ut){var JA=nA(this,2,ut,arguments.length>1?arguments[1]:void 0);return JA[1]<<8|JA[0]},getInt32:function(ut){return $(nA(this,4,ut,arguments.length>1?arguments[1]:void 0))},getUint32:function(ut){return $(nA(this,4,ut,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(ut){return bA(nA(this,4,ut,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(ut){return bA(nA(this,8,ut,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(ut,JA){EA(this,1,ut,XA,JA)},setUint8:function(ut,JA){EA(this,1,ut,XA,JA)},setInt16:function(ut,JA){EA(this,2,ut,q,JA,arguments.length>2?arguments[2]:void 0)},setUint16:function(ut,JA){EA(this,2,ut,q,JA,arguments.length>2?arguments[2]:void 0)},setInt32:function(ut,JA){EA(this,4,ut,O,JA,arguments.length>2?arguments[2]:void 0)},setUint32:function(ut,JA){EA(this,4,ut,O,JA,arguments.length>2?arguments[2]:void 0)},setFloat32:function(ut,JA){EA(this,4,ut,V,JA,arguments.length>2?arguments[2]:void 0)},setFloat64:function(ut,JA){EA(this,8,ut,hA,JA,arguments.length>2?arguments[2]:void 0)}});m(cA,L),m(BA,W),T.exports={ArrayBuffer:cA,DataView:BA}},7803:function(T,I,n){"use strict";var c=n(2109),i=n(7854),o=n(2091),l=n(6340),h="ArrayBuffer",a=o[h];c({global:!0,forced:i[h]!==a},{ArrayBuffer:a}),l(h)},194:function(T,I,n){"use strict";T.exports=function(c){return function(){var i=c,l=i.lib.BlockCipher,h=i.algo,a=[],B=[],E=[],u=[],C=[],e=[],f=[],g=[],w=[],Q=[];!function(){for(var y=[],p=0;p<256;p++)y[p]=p<128?p<<1:p<<1^283;var m=0,D=0;for(p=0;p<256;p++){var U=D^D<<1^D<<2^D<<3^D<<4;a[m]=U=U>>>8^255&U^99,B[U]=m;var L,N=y[m],F=y[N],z=y[F];E[m]=(L=257*y[U]^16843008*U)<<24|L>>>8,u[m]=L<<16|L>>>16,C[m]=L<<8|L>>>24,e[m]=L,f[U]=(L=16843009*z^65537*F^257*N^16843008*m)<<24|L>>>8,g[U]=L<<16|L>>>16,w[U]=L<<8|L>>>24,Q[U]=L,m?(m=N^y[y[y[z^N]]],D^=y[y[D]]):m=D=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],Y=h.AES=l.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var m=this._keyPriorReset=this._key,D=m.words,U=m.sigBytes/4,F=4*((this._nRounds=U+6)+1),z=this._keySchedule=[],L=0;L6&&L%U==4&&(p=a[p>>>24]<<24|a[p>>>16&255]<<16|a[p>>>8&255]<<8|a[255&p]):(p=a[(p=p<<8|p>>>24)>>>24]<<24|a[p>>>16&255]<<16|a[p>>>8&255]<<8|a[255&p],p^=d[L/U|0]<<24),z[L]=z[L-U]^p);for(var W=this._invKeySchedule=[],aA=0;aA>>24]]^g[a[p>>>16&255]]^w[a[p>>>8&255]]^Q[a[255&p]]}}},encryptBlock:function(p,m){this._doCryptBlock(p,m,this._keySchedule,E,u,C,e,a)},decryptBlock:function(p,m){var D=p[m+1];p[m+1]=p[m+3],p[m+3]=D,this._doCryptBlock(p,m,this._invKeySchedule,f,g,w,Q,B),D=p[m+1],p[m+1]=p[m+3],p[m+3]=D},_doCryptBlock:function(p,m,D,U,N,F,z,L){for(var W=this._nRounds,aA=p[m]^D[0],AA=p[m+1]^D[1],lA=p[m+2]^D[2],MA=p[m+3]^D[3],cA=4,gA=1;gA>>24]^N[AA>>>16&255]^F[lA>>>8&255]^z[255&MA]^D[cA++],vA=U[AA>>>24]^N[lA>>>16&255]^F[MA>>>8&255]^z[255&aA]^D[cA++],FA=U[lA>>>24]^N[MA>>>16&255]^F[aA>>>8&255]^z[255&AA]^D[cA++],_=U[MA>>>24]^N[aA>>>16&255]^F[AA>>>8&255]^z[255&lA]^D[cA++];aA=BA,AA=vA,lA=FA,MA=_}BA=(L[aA>>>24]<<24|L[AA>>>16&255]<<16|L[lA>>>8&255]<<8|L[255&MA])^D[cA++],vA=(L[AA>>>24]<<24|L[lA>>>16&255]<<16|L[MA>>>8&255]<<8|L[255&aA])^D[cA++],FA=(L[lA>>>24]<<24|L[MA>>>16&255]<<16|L[aA>>>8&255]<<8|L[255&AA])^D[cA++],_=(L[MA>>>24]<<24|L[aA>>>16&255]<<16|L[AA>>>8&255]<<8|L[255&lA])^D[cA++],p[m]=BA,p[m+1]=vA,p[m+2]=FA,p[m+3]=_},keySize:8});i.AES=l._createHelper(Y)}(),c.AES}(n(757),n(7508),n(3440),n(3839),n(1582))},1582:function(T,I,n){"use strict";n(7042),n(2222),n(1539),n(9714),n(561),T.exports=function(c){var o,l,h,a,B,C,f,g,Q,d,Y,p,D,N,F,L,W;c.lib.Cipher||(a=(l=(o=c).lib).WordArray,C=o.enc.Base64,f=o.algo.EvpKDF,g=l.Cipher=(B=l.BufferedBlockAlgorithm).extend({cfg:(h=l.Base).extend(),createEncryptor:function(AA,lA){return this.create(this._ENC_XFORM_MODE,AA,lA)},createDecryptor:function(AA,lA){return this.create(this._DEC_XFORM_MODE,AA,lA)},init:function(AA,lA,MA){this.cfg=this.cfg.extend(MA),this._xformMode=AA,this._key=lA,this.reset()},reset:function(){B.reset.call(this),this._doReset()},process:function(AA){return this._append(AA),this._process()},finalize:function(AA){return AA&&this._append(AA),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function aA(AA){return"string"==typeof AA?W:F}return function(AA){return{encrypt:function(MA,cA,gA){return aA(cA).encrypt(AA,MA,cA,gA)},decrypt:function(MA,cA,gA){return aA(cA).decrypt(AA,MA,cA,gA)}}}}()}),l.StreamCipher=g.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),Q=o.mode={},d=l.BlockCipherMode=h.extend({createEncryptor:function(AA,lA){return this.Encryptor.create(AA,lA)},createDecryptor:function(AA,lA){return this.Decryptor.create(AA,lA)},init:function(AA,lA){this._cipher=AA,this._iv=lA}}),Y=Q.CBC=function(){var aA=d.extend();function AA(lA,MA,cA){var gA,BA=this._iv;BA?(gA=BA,this._iv=undefined):gA=this._prevBlock;for(var vA=0;vA>>2]}},l.BlockCipher=g.extend({cfg:g.cfg.extend({mode:Y,padding:p}),reset:function(){var AA;g.reset.call(this);var lA=this.cfg,MA=lA.iv,cA=lA.mode;this._xformMode==this._ENC_XFORM_MODE?AA=cA.createEncryptor:(AA=cA.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==AA?this._mode.init(this,MA&&MA.words):(this._mode=AA.call(cA,this,MA&&MA.words),this._mode.__creator=AA)},_doProcessBlock:function(AA,lA){this._mode.processBlock(AA,lA)},_doFinalize:function(){var AA,lA=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(lA.pad(this._data,this.blockSize),AA=this._process(!0)):(AA=this._process(!0),lA.unpad(AA)),AA},blockSize:4}),D=l.CipherParams=h.extend({init:function(AA){this.mixIn(AA)},toString:function(AA){return(AA||this.formatter).stringify(this)}}),N=(o.format={}).OpenSSL={stringify:function(AA){var MA=AA.ciphertext,cA=AA.salt;return(cA?a.create([1398893684,1701076831]).concat(cA).concat(MA):MA).toString(C)},parse:function(AA){var lA,MA=C.parse(AA),cA=MA.words;return 1398893684==cA[0]&&1701076831==cA[1]&&(lA=a.create(cA.slice(2,4)),cA.splice(0,4),MA.sigBytes-=16),D.create({ciphertext:MA,salt:lA})}},F=l.SerializableCipher=h.extend({cfg:h.extend({format:N}),encrypt:function(AA,lA,MA,cA){cA=this.cfg.extend(cA);var gA=AA.createEncryptor(MA,cA),BA=gA.finalize(lA),vA=gA.cfg;return D.create({ciphertext:BA,key:MA,iv:vA.iv,algorithm:AA,mode:vA.mode,padding:vA.padding,blockSize:AA.blockSize,formatter:cA.format})},decrypt:function(AA,lA,MA,cA){return cA=this.cfg.extend(cA),lA=this._parse(lA,cA.format),AA.createDecryptor(MA,cA).finalize(lA.ciphertext)},_parse:function(AA,lA){return"string"==typeof AA?lA.parse(AA,this):AA}}),L=(o.kdf={}).OpenSSL={execute:function(AA,lA,MA,cA){cA||(cA=a.random(8));var gA=f.create({keySize:lA+MA}).compute(AA,cA),BA=a.create(gA.words.slice(lA),4*MA);return gA.sigBytes=4*lA,D.create({key:gA,iv:BA,salt:cA})}},W=l.PasswordBasedCipher=F.extend({cfg:F.cfg.extend({kdf:L}),encrypt:function(AA,lA,MA,cA){var gA=(cA=this.cfg.extend(cA)).kdf.execute(MA,AA.keySize,AA.ivSize);cA.iv=gA.iv;var BA=F.encrypt.call(this,AA,lA,gA.key,cA);return BA.mixIn(gA),BA},decrypt:function(AA,lA,MA,cA){cA=this.cfg.extend(cA),lA=this._parse(lA,cA.format);var gA=cA.kdf.execute(MA,AA.keySize,AA.ivSize,lA.salt);return cA.iv=gA.iv,F.decrypt.call(this,AA,lA,gA.key,cA)}}))}(n(757),n(3839))},757:function(T,I,n){"use strict";var i;n(5743),n(6992),n(1539),n(9135),n(2990),n(8927),n(3105),n(5035),n(4345),n(7174),n(2846),n(4731),n(7209),n(6319),n(8867),n(7789),n(3739),n(9368),n(4483),n(2056),n(3462),n(678),n(7462),n(3824),n(5021),n(2974),n(5016),n(9714),n(7042),n(9600),n(2222),n(561),i=function(){var c=c||function(i,o){var l;if("undefined"!=typeof window&&window.crypto&&(l=window.crypto),"undefined"!=typeof self&&self.crypto&&(l=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(l=globalThis.crypto),!l&&"undefined"!=typeof window&&window.msCrypto&&(l=window.msCrypto),!l&&void 0!==n.g&&n.g.crypto&&(l=n.g.crypto),!l)try{l=n(2480)}catch(y){}var h=function(){if(l){if("function"==typeof l.getRandomValues)try{return l.getRandomValues(new Uint32Array(1))[0]}catch(p){}if("function"==typeof l.randomBytes)try{return l.randomBytes(4).readInt32LE()}catch(p){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function y(){}return function(p){var m;return y.prototype=p,m=new y,y.prototype=null,m}}(),B={},E=B.lib={},u=E.Base={extend:function(p){var m=a(this);return p&&m.mixIn(p),(!m.hasOwnProperty("init")||this.init===m.init)&&(m.init=function(){m.$super.init.apply(this,arguments)}),m.init.prototype=m,m.$super=this,m},create:function(){var p=this.extend();return p.init.apply(p,arguments),p},init:function(){},mixIn:function(p){for(var m in p)p.hasOwnProperty(m)&&(this[m]=p[m]);p.hasOwnProperty("toString")&&(this.toString=p.toString)},clone:function(){return this.init.prototype.extend(this)}},C=E.WordArray=u.extend({init:function(p,m){p=this.words=p||[],this.sigBytes=null!=m?m:4*p.length},toString:function(p){return(p||f).stringify(this)},concat:function(p){var m=this.words,D=p.words,U=this.sigBytes,N=p.sigBytes;if(this.clamp(),U%4)for(var F=0;F>>2]|=(D[F>>>2]>>>24-F%4*8&255)<<24-(U+F)%4*8;else for(var L=0;L>>2]=D[L>>>2];return this.sigBytes+=N,this},clamp:function(){var p=this.words,m=this.sigBytes;p[m>>>2]&=4294967295<<32-m%4*8,p.length=i.ceil(m/4)},clone:function(){var p=u.clone.call(this);return p.words=this.words.slice(0),p},random:function(p){for(var m=[],D=0;D>>2]>>>24-N%4*8&255;U.push((F>>>4).toString(16)),U.push((15&F).toString(16))}return U.join("")},parse:function(p){for(var m=p.length,D=[],U=0;U>>3]|=parseInt(p.substr(U,2),16)<<24-U%8*4;return new C.init(D,m/2)}},g=e.Latin1={stringify:function(p){for(var m=p.words,D=p.sigBytes,U=[],N=0;N>>2]>>>24-N%4*8&255));return U.join("")},parse:function(p){for(var m=p.length,D=[],U=0;U>>2]|=(255&p.charCodeAt(U))<<24-U%4*8;return new C.init(D,m)}},w=e.Utf8={stringify:function(p){try{return decodeURIComponent(escape(g.stringify(p)))}catch(m){throw new Error("Malformed UTF-8 data")}},parse:function(p){return g.parse(unescape(encodeURIComponent(p)))}},Q=E.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new C.init,this._nDataBytes=0},_append:function(p){"string"==typeof p&&(p=w.parse(p)),this._data.concat(p),this._nDataBytes+=p.sigBytes},_process:function(p){var m,D=this._data,U=D.words,N=D.sigBytes,F=this.blockSize,L=N/(4*F),W=(L=p?i.ceil(L):i.max((0|L)-this._minBufferSize,0))*F,aA=i.min(4*W,N);if(W){for(var AA=0;AA>>2]>>>24-w%4*8&255)<<16|(C[w+1>>>2]>>>24-(w+1)%4*8&255)<<8|C[w+2>>>2]>>>24-(w+2)%4*8&255,p=0;p<4&&w+.75*p>>6*(3-p)&63));var m=f.charAt(64);if(m)for(;g.length%4;)g.push(m);return g.join("")},parse:function(u){var C=u.length,e=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var g=0;g>>6-g%4*2;e[f>>>2]|=(w|Q)<<24-f%4*8,f++}return l.create(e,f)}(u,C,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},c.enc.Base64;var l}(n(757))},7590:function(T,I,n){"use strict";n(9600),T.exports=function(c){return l=c.lib.WordArray,c.enc.Base64url={stringify:function(u,C){void 0===C&&(C=!0);var e=u.words,f=u.sigBytes,g=C?this._safe_map:this._map;u.clamp();for(var w=[],Q=0;Q>>2]>>>24-Q%4*8&255)<<16|(e[Q+1>>>2]>>>24-(Q+1)%4*8&255)<<8|e[Q+2>>>2]>>>24-(Q+2)%4*8&255,m=0;m<4&&Q+.75*m>>6*(3-m)&63));var D=g.charAt(64);if(D)for(;w.length%4;)w.push(D);return w.join("")},parse:function(u,C){void 0===C&&(C=!0);var e=u.length,f=C?this._safe_map:this._map,g=this._reverseMap;if(!g){g=this._reverseMap=[];for(var w=0;w>>6-g%4*2;e[f>>>2]|=(w|Q)<<24-f%4*8,f++}return l.create(e,f)}(u,e,g)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},c.enc.Base64url;var l}(n(757))},4978:function(T,I,n){"use strict";n(9600),T.exports=function(c){return function(){var l=c.lib.WordArray,h=c.enc;function B(E){return E<<8&4278255360|E>>>8&16711935}h.Utf16=h.Utf16BE={stringify:function(u){for(var C=u.words,e=u.sigBytes,f=[],g=0;g>>2]>>>16-g%4*8&65535));return f.join("")},parse:function(u){for(var C=u.length,e=[],f=0;f>>1]|=u.charCodeAt(f)<<16-f%2*16;return l.create(e,2*C)}},h.Utf16LE={stringify:function(u){for(var C=u.words,e=u.sigBytes,f=[],g=0;g>>2]>>>16-g%4*8&65535);f.push(String.fromCharCode(w))}return f.join("")},parse:function(u){for(var C=u.length,e=[],f=0;f>>1]|=B(u.charCodeAt(f)<<16-f%2*16);return l.create(e,2*C)}}}(),c.enc.Utf16}(n(757))},3839:function(T,I,n){"use strict";n(2222),T.exports=function(c){return h=(o=(i=c).lib).WordArray,E=(a=i.algo).EvpKDF=(l=o.Base).extend({cfg:l.extend({keySize:4,hasher:a.MD5,iterations:1}),init:function(C){this.cfg=this.cfg.extend(C)},compute:function(C,e){for(var f,g=this.cfg,w=g.hasher.create(),Q=h.create(),d=Q.words,Y=g.keySize,y=g.iterations;d.lengthg&&(e=C.finalize(e)),e.clamp();for(var w=this._oKey=e.clone(),Q=this._iKey=e.clone(),d=w.words,Y=Q.words,y=0;y>>2]|=B[C]<<24-C%4*8;h.call(this,u,E)}else h.apply(this,arguments)};a.prototype=l}}(),c.lib.WordArray},T.exports=i(n(757))},3440:function(T,I,n){"use strict";T.exports=function(c){return function(i){var o=c,l=o.lib,h=l.WordArray,a=l.Hasher,B=o.algo,E=[];!function(){for(var w=0;w<64;w++)E[w]=4294967296*i.abs(i.sin(w+1))|0}();var u=B.MD5=a.extend({_doReset:function(){this._hash=new h.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(Q,d){for(var Y=0;Y<16;Y++){var y=d+Y,p=Q[y];Q[y]=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8)}var m=this._hash.words,D=Q[d+0],U=Q[d+1],N=Q[d+2],F=Q[d+3],z=Q[d+4],L=Q[d+5],W=Q[d+6],aA=Q[d+7],AA=Q[d+8],lA=Q[d+9],MA=Q[d+10],cA=Q[d+11],gA=Q[d+12],BA=Q[d+13],vA=Q[d+14],FA=Q[d+15],_=m[0],dA=m[1],uA=m[2],CA=m[3];_=C(_,dA,uA,CA,D,7,E[0]),CA=C(CA,_,dA,uA,U,12,E[1]),uA=C(uA,CA,_,dA,N,17,E[2]),dA=C(dA,uA,CA,_,F,22,E[3]),_=C(_,dA,uA,CA,z,7,E[4]),CA=C(CA,_,dA,uA,L,12,E[5]),uA=C(uA,CA,_,dA,W,17,E[6]),dA=C(dA,uA,CA,_,aA,22,E[7]),_=C(_,dA,uA,CA,AA,7,E[8]),CA=C(CA,_,dA,uA,lA,12,E[9]),uA=C(uA,CA,_,dA,MA,17,E[10]),dA=C(dA,uA,CA,_,cA,22,E[11]),_=C(_,dA,uA,CA,gA,7,E[12]),CA=C(CA,_,dA,uA,BA,12,E[13]),uA=C(uA,CA,_,dA,vA,17,E[14]),_=e(_,dA=C(dA,uA,CA,_,FA,22,E[15]),uA,CA,U,5,E[16]),CA=e(CA,_,dA,uA,W,9,E[17]),uA=e(uA,CA,_,dA,cA,14,E[18]),dA=e(dA,uA,CA,_,D,20,E[19]),_=e(_,dA,uA,CA,L,5,E[20]),CA=e(CA,_,dA,uA,MA,9,E[21]),uA=e(uA,CA,_,dA,FA,14,E[22]),dA=e(dA,uA,CA,_,z,20,E[23]),_=e(_,dA,uA,CA,lA,5,E[24]),CA=e(CA,_,dA,uA,vA,9,E[25]),uA=e(uA,CA,_,dA,F,14,E[26]),dA=e(dA,uA,CA,_,AA,20,E[27]),_=e(_,dA,uA,CA,BA,5,E[28]),CA=e(CA,_,dA,uA,N,9,E[29]),uA=e(uA,CA,_,dA,aA,14,E[30]),_=f(_,dA=e(dA,uA,CA,_,gA,20,E[31]),uA,CA,L,4,E[32]),CA=f(CA,_,dA,uA,AA,11,E[33]),uA=f(uA,CA,_,dA,cA,16,E[34]),dA=f(dA,uA,CA,_,vA,23,E[35]),_=f(_,dA,uA,CA,U,4,E[36]),CA=f(CA,_,dA,uA,z,11,E[37]),uA=f(uA,CA,_,dA,aA,16,E[38]),dA=f(dA,uA,CA,_,MA,23,E[39]),_=f(_,dA,uA,CA,BA,4,E[40]),CA=f(CA,_,dA,uA,D,11,E[41]),uA=f(uA,CA,_,dA,F,16,E[42]),dA=f(dA,uA,CA,_,W,23,E[43]),_=f(_,dA,uA,CA,lA,4,E[44]),CA=f(CA,_,dA,uA,gA,11,E[45]),uA=f(uA,CA,_,dA,FA,16,E[46]),_=g(_,dA=f(dA,uA,CA,_,N,23,E[47]),uA,CA,D,6,E[48]),CA=g(CA,_,dA,uA,aA,10,E[49]),uA=g(uA,CA,_,dA,vA,15,E[50]),dA=g(dA,uA,CA,_,L,21,E[51]),_=g(_,dA,uA,CA,gA,6,E[52]),CA=g(CA,_,dA,uA,F,10,E[53]),uA=g(uA,CA,_,dA,MA,15,E[54]),dA=g(dA,uA,CA,_,U,21,E[55]),_=g(_,dA,uA,CA,AA,6,E[56]),CA=g(CA,_,dA,uA,FA,10,E[57]),uA=g(uA,CA,_,dA,W,15,E[58]),dA=g(dA,uA,CA,_,BA,21,E[59]),_=g(_,dA,uA,CA,z,6,E[60]),CA=g(CA,_,dA,uA,cA,10,E[61]),uA=g(uA,CA,_,dA,N,15,E[62]),dA=g(dA,uA,CA,_,lA,21,E[63]),m[0]=m[0]+_|0,m[1]=m[1]+dA|0,m[2]=m[2]+uA|0,m[3]=m[3]+CA|0},_doFinalize:function(){var Q=this._data,d=Q.words,Y=8*this._nDataBytes,y=8*Q.sigBytes;d[y>>>5]|=128<<24-y%32;var p=i.floor(Y/4294967296),m=Y;d[15+(y+64>>>9<<4)]=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),d[14+(y+64>>>9<<4)]=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),Q.sigBytes=4*(d.length+1),this._process();for(var D=this._hash,U=D.words,N=0;N<4;N++){var F=U[N];U[N]=16711935&(F<<8|F>>>24)|4278255360&(F<<24|F>>>8)}return D},clone:function(){var Q=a.clone.call(this);return Q._hash=this._hash.clone(),Q}});function C(w,Q,d,Y,y,p,m){var D=w+(Q&d|~Q&Y)+y+m;return(D<>>32-p)+Q}function e(w,Q,d,Y,y,p,m){var D=w+(Q&Y|d&~Y)+y+m;return(D<>>32-p)+Q}function f(w,Q,d,Y,y,p,m){var D=w+(Q^d^Y)+y+m;return(D<>>32-p)+Q}function g(w,Q,d,Y,y,p,m){var D=w+(d^(Q|~Y))+y+m;return(D<>>32-p)+Q}o.MD5=a._createHelper(u),o.HmacMD5=a._createHmacHelper(u)}(Math),c.MD5}(n(757))},702:function(T,I,n){"use strict";n(7042),T.exports=function(c){return c.mode.CFB=function(){var i=c.lib.BlockCipherMode.extend();function o(l,h,a,B){var E,u=this._iv;u?(E=u.slice(0),this._iv=void 0):E=this._prevBlock,B.encryptBlock(E,0);for(var C=0;C>24&255)){var B=a>>16&255,E=a>>8&255,u=255&a;255===B?(B=0,255===E?(E=0,255===u?u=0:++u):++E):++B,a=0,a+=B<<16,a+=E<<8,a+=u}else a+=16777216;return a}var h=i.Encryptor=i.extend({processBlock:function(B,E){var u=this._cipher,C=u.blockSize,e=this._iv,f=this._counter;e&&(f=this._counter=e.slice(0),this._iv=void 0),function l(a){return 0===(a[0]=o(a[0]))&&(a[1]=o(a[1])),a}(f);var g=f.slice(0);u.encryptBlock(g,0);for(var w=0;w>>2]|=B<<24-E%4*8,o.sigBytes+=B},unpad:function(o){o.sigBytes-=255&o.words[o.sigBytes-1>>>2]}},c.pad.Ansix923}(n(757),n(1582))},4431:function(T,I,n){"use strict";n(2222),T.exports=function(c){return c.pad.Iso10126={pad:function(o,l){var h=4*l,a=h-o.sigBytes%h;o.concat(c.lib.WordArray.random(a-1)).concat(c.lib.WordArray.create([a<<24],1))},unpad:function(o){o.sigBytes-=255&o.words[o.sigBytes-1>>>2]}},c.pad.Iso10126}(n(757),n(1582))},8800:function(T,I,n){"use strict";n(2222),T.exports=function(c){return c.pad.Iso97971={pad:function(o,l){o.concat(c.lib.WordArray.create([2147483648],1)),c.pad.ZeroPadding.pad(o,l)},unpad:function(o){c.pad.ZeroPadding.unpad(o),o.sigBytes--}},c.pad.Iso97971}(n(757),n(1582))},649:function(T,I,n){"use strict";T.exports=function(c){return c.pad.NoPadding={pad:function(){},unpad:function(){}},c.pad.NoPadding}(n(757),n(1582))},3992:function(T,I,n){"use strict";T.exports=function(c){return c.pad.ZeroPadding={pad:function(o,l){var h=4*l;o.clamp(),o.sigBytes+=h-(o.sigBytes%h||h)},unpad:function(o){var l=o.words,h=o.sigBytes-1;for(h=o.sigBytes-1;h>=0;h--)if(l[h>>>2]>>>24-h%4*8&255){o.sigBytes=h+1;break}}},c.pad.ZeroPadding}(n(757),n(1582))},3486:function(T,I,n){"use strict";n(2222),T.exports=function(c){return h=(o=(i=c).lib).WordArray,E=(a=i.algo).HMAC,u=a.PBKDF2=(l=o.Base).extend({cfg:l.extend({keySize:4,hasher:a.SHA1,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,f){for(var g=this.cfg,w=E.create(g.hasher,e),Q=h.create(),d=h.create([1]),Y=Q.words,y=d.words,p=g.keySize,m=g.iterations;Y.length>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],Q=this._C=[f[2]<<16|f[2]>>>16,4294901760&f[0]|65535&f[1],f[3]<<16|f[3]>>>16,4294901760&f[1]|65535&f[2],f[0]<<16|f[0]>>>16,4294901760&f[2]|65535&f[3],f[1]<<16|f[1]>>>16,4294901760&f[3]|65535&f[0]];this._b=0;for(var d=0;d<4;d++)C.call(this);for(d=0;d<8;d++)Q[d]^=w[d+4&7];if(g){var Y=g.words,y=Y[0],p=Y[1],m=16711935&(y<<8|y>>>24)|4278255360&(y<<24|y>>>8),D=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),U=m>>>16|4294901760&D,N=D<<16|65535&m;for(Q[0]^=m,Q[1]^=U,Q[2]^=D,Q[3]^=N,Q[4]^=m,Q[5]^=U,Q[6]^=D,Q[7]^=N,d=0;d<4;d++)C.call(this)}},_doProcessBlock:function(f,g){var w=this._X;C.call(this),a[0]=w[0]^w[5]>>>16^w[3]<<16,a[1]=w[2]^w[7]>>>16^w[5]<<16,a[2]=w[4]^w[1]>>>16^w[7]<<16,a[3]=w[6]^w[3]>>>16^w[1]<<16;for(var Q=0;Q<4;Q++)a[Q]=16711935&(a[Q]<<8|a[Q]>>>24)|4278255360&(a[Q]<<24|a[Q]>>>8),f[g+Q]^=a[Q]},blockSize:4,ivSize:2});function C(){for(var e=this._X,f=this._C,g=0;g<8;g++)B[g]=f[g];for(f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0>>0?1:0)|0,this._b=f[7]>>>0>>0?1:0,g=0;g<8;g++){var w=e[g]+f[g],Q=65535&w,d=w>>>16;E[g]=((Q*Q>>>17)+Q*d>>>15)+d*d^((4294901760&w)*w|0)+((65535&w)*w|0)}e[0]=E[0]+(E[7]<<16|E[7]>>>16)+(E[6]<<16|E[6]>>>16)|0,e[1]=E[1]+(E[0]<<8|E[0]>>>24)+E[7]|0,e[2]=E[2]+(E[1]<<16|E[1]>>>16)+(E[0]<<16|E[0]>>>16)|0,e[3]=E[3]+(E[2]<<8|E[2]>>>24)+E[1]|0,e[4]=E[4]+(E[3]<<16|E[3]>>>16)+(E[2]<<16|E[2]>>>16)|0,e[5]=E[5]+(E[4]<<8|E[4]>>>24)+E[3]|0,e[6]=E[6]+(E[5]<<16|E[5]>>>16)+(E[4]<<16|E[4]>>>16)|0,e[7]=E[7]+(E[6]<<8|E[6]>>>24)+E[5]|0}i.RabbitLegacy=l._createHelper(u)}(),c.RabbitLegacy}(n(757),n(7508),n(3440),n(3839),n(1582))},5323:function(T,I,n){"use strict";T.exports=function(c){return function(){var i=c,l=i.lib.StreamCipher,a=[],B=[],E=[],u=i.algo.Rabbit=l.extend({_doReset:function(){for(var f=this._key.words,g=this.cfg.iv,w=0;w<4;w++)f[w]=16711935&(f[w]<<8|f[w]>>>24)|4278255360&(f[w]<<24|f[w]>>>8);var Q=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],d=this._C=[f[2]<<16|f[2]>>>16,4294901760&f[0]|65535&f[1],f[3]<<16|f[3]>>>16,4294901760&f[1]|65535&f[2],f[0]<<16|f[0]>>>16,4294901760&f[2]|65535&f[3],f[1]<<16|f[1]>>>16,4294901760&f[3]|65535&f[0]];for(this._b=0,w=0;w<4;w++)C.call(this);for(w=0;w<8;w++)d[w]^=Q[w+4&7];if(g){var Y=g.words,y=Y[0],p=Y[1],m=16711935&(y<<8|y>>>24)|4278255360&(y<<24|y>>>8),D=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),U=m>>>16|4294901760&D,N=D<<16|65535&m;for(d[0]^=m,d[1]^=U,d[2]^=D,d[3]^=N,d[4]^=m,d[5]^=U,d[6]^=D,d[7]^=N,w=0;w<4;w++)C.call(this)}},_doProcessBlock:function(f,g){var w=this._X;C.call(this),a[0]=w[0]^w[5]>>>16^w[3]<<16,a[1]=w[2]^w[7]>>>16^w[5]<<16,a[2]=w[4]^w[1]>>>16^w[7]<<16,a[3]=w[6]^w[3]>>>16^w[1]<<16;for(var Q=0;Q<4;Q++)a[Q]=16711935&(a[Q]<<8|a[Q]>>>24)|4278255360&(a[Q]<<24|a[Q]>>>8),f[g+Q]^=a[Q]},blockSize:4,ivSize:2});function C(){for(var e=this._X,f=this._C,g=0;g<8;g++)B[g]=f[g];for(f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0>>0?1:0)|0,this._b=f[7]>>>0>>0?1:0,g=0;g<8;g++){var w=e[g]+f[g],Q=65535&w,d=w>>>16;E[g]=((Q*Q>>>17)+Q*d>>>15)+d*d^((4294901760&w)*w|0)+((65535&w)*w|0)}e[0]=E[0]+(E[7]<<16|E[7]>>>16)+(E[6]<<16|E[6]>>>16)|0,e[1]=E[1]+(E[0]<<8|E[0]>>>24)+E[7]|0,e[2]=E[2]+(E[1]<<16|E[1]>>>16)+(E[0]<<16|E[0]>>>16)|0,e[3]=E[3]+(E[2]<<8|E[2]>>>24)+E[1]|0,e[4]=E[4]+(E[3]<<16|E[3]>>>16)+(E[2]<<16|E[2]>>>16)|0,e[5]=E[5]+(E[4]<<8|E[4]>>>24)+E[3]|0,e[6]=E[6]+(E[5]<<16|E[5]>>>16)+(E[4]<<16|E[4]>>>16)|0,e[7]=E[7]+(E[6]<<8|E[6]>>>24)+E[5]|0}i.Rabbit=l._createHelper(u)}(),c.Rabbit}(n(757),n(7508),n(3440),n(3839),n(1582))},4640:function(T,I,n){"use strict";n(1539),n(8674),T.exports=function(c){return function(){var i=c,l=i.lib.StreamCipher,h=i.algo,a=h.RC4=l.extend({_doReset:function(){for(var C=this._key,e=C.words,f=C.sigBytes,g=this._S=[],w=0;w<256;w++)g[w]=w;w=0;for(var Q=0;w<256;w++){var d=w%f,y=g[w];g[w]=g[Q=(Q+g[w]+(e[d>>>2]>>>24-d%4*8&255))%256],g[Q]=y}this._i=this._j=0},_doProcessBlock:function(C,e){C[e]^=B.call(this)},keySize:8,ivSize:0});function B(){for(var u=this._S,C=this._i,e=this._j,f=0,g=0;g<4;g++){var w=u[C=(C+1)%256];u[C]=u[e=(e+u[C])%256],u[e]=w,f|=u[(u[C]+u[e])%256]<<24-8*g}return this._i=C,this._j=e,f}i.RC4=l._createHelper(a);var E=h.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var C=this.cfg.drop;C>0;C--)B.call(this)}});i.RC4Drop=l._createHelper(E)}(),c.RC4}(n(757),n(7508),n(3440),n(3839),n(1582))},8714:function(T,I,n){"use strict";T.exports=function(c){return function(i){var o=c,l=o.lib,h=l.WordArray,a=l.Hasher,B=o.algo,E=h.create([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]),u=h.create([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]),C=h.create([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]),e=h.create([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]),f=h.create([0,1518500249,1859775393,2400959708,2840853838]),g=h.create([1352829926,1548603684,1836072691,2053994217,0]),w=B.RIPEMD160=a.extend({_doReset:function(){this._hash=h.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(U,N){for(var F=0;F<16;F++){var z=N+F,L=U[z];U[z]=16711935&(L<<8|L>>>24)|4278255360&(L<<24|L>>>8)}var BA,vA,FA,_,dA,uA,CA,NA,bA,XA,q,W=this._hash.words,aA=f.words,AA=g.words,lA=E.words,MA=u.words,cA=C.words,gA=e.words;for(uA=BA=W[0],CA=vA=W[1],NA=FA=W[2],bA=_=W[3],XA=dA=W[4],F=0;F<80;F+=1)q=BA+U[N+lA[F]]|0,q+=F<16?Q(vA,FA,_)+aA[0]:F<32?d(vA,FA,_)+aA[1]:F<48?Y(vA,FA,_)+aA[2]:F<64?y(vA,FA,_)+aA[3]:p(vA,FA,_)+aA[4],q=(q=m(q|=0,cA[F]))+dA|0,BA=dA,dA=_,_=m(FA,10),FA=vA,vA=q,q=uA+U[N+MA[F]]|0,q+=F<16?p(CA,NA,bA)+AA[0]:F<32?y(CA,NA,bA)+AA[1]:F<48?Y(CA,NA,bA)+AA[2]:F<64?d(CA,NA,bA)+AA[3]:Q(CA,NA,bA)+AA[4],q=(q=m(q|=0,gA[F]))+XA|0,uA=XA,XA=bA,bA=m(NA,10),NA=CA,CA=q;q=W[1]+FA+bA|0,W[1]=W[2]+_+XA|0,W[2]=W[3]+dA+uA|0,W[3]=W[4]+BA+CA|0,W[4]=W[0]+vA+NA|0,W[0]=q},_doFinalize:function(){var U=this._data,N=U.words,F=8*this._nDataBytes,z=8*U.sigBytes;N[z>>>5]|=128<<24-z%32,N[14+(z+64>>>9<<4)]=16711935&(F<<8|F>>>24)|4278255360&(F<<24|F>>>8),U.sigBytes=4*(N.length+1),this._process();for(var L=this._hash,W=L.words,aA=0;aA<5;aA++){var AA=W[aA];W[aA]=16711935&(AA<<8|AA>>>24)|4278255360&(AA<<24|AA>>>8)}return L},clone:function(){var U=a.clone.call(this);return U._hash=this._hash.clone(),U}});function Q(D,U,N){return D^U^N}function d(D,U,N){return D&U|~D&N}function Y(D,U,N){return(D|~U)^N}function y(D,U,N){return D&N|U&~N}function p(D,U,N){return D^(U|~N)}function m(D,U){return D<>>32-U}o.RIPEMD160=a._createHelper(w),o.HmacRIPEMD160=a._createHmacHelper(w)}(Math),c.RIPEMD160}(n(757))},9865:function(T,I,n){"use strict";T.exports=function(c){return l=(o=(i=c).lib).WordArray,B=[],E=i.algo.SHA1=(h=o.Hasher).extend({_doReset:function(){this._hash=new l.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(C,e){for(var f=this._hash.words,g=f[0],w=f[1],Q=f[2],d=f[3],Y=f[4],y=0;y<80;y++){if(y<16)B[y]=0|C[e+y];else{var p=B[y-3]^B[y-8]^B[y-14]^B[y-16];B[y]=p<<1|p>>>31}var m=(g<<5|g>>>27)+Y+B[y];m+=y<20?1518500249+(w&Q|~w&d):y<40?1859775393+(w^Q^d):y<60?(w&Q|w&d|Q&d)-1894007588:(w^Q^d)-899497514,Y=d,d=Q,Q=w<<30|w>>>2,w=g,g=m}f[0]=f[0]+g|0,f[1]=f[1]+w|0,f[2]=f[2]+Q|0,f[3]=f[3]+d|0,f[4]=f[4]+Y|0},_doFinalize:function(){var C=this._data,e=C.words,f=8*this._nDataBytes,g=8*C.sigBytes;return e[g>>>5]|=128<<24-g%32,e[14+(g+64>>>9<<4)]=Math.floor(f/4294967296),e[15+(g+64>>>9<<4)]=f,C.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var C=h.clone.call(this);return C._hash=this._hash.clone(),C}}),i.SHA1=h._createHelper(E),i.HmacSHA1=h._createHmacHelper(E),c.SHA1;var i,o,l,h,B,E}(n(757))},6876:function(T,I,n){"use strict";T.exports=function(c){return l=(i=c).lib.WordArray,B=(h=i.algo).SHA224=(a=h.SHA256).extend({_doReset:function(){this._hash=new l.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var u=a._doFinalize.call(this);return u.sigBytes-=4,u}}),i.SHA224=a._createHelper(B),i.HmacSHA224=a._createHmacHelper(B),c.SHA224;var i,l,h,a,B}(n(757),n(8921))},8921:function(T,I,n){"use strict";n(7042),T.exports=function(c){return function(i){var o=c,l=o.lib,h=l.WordArray,a=l.Hasher,B=o.algo,E=[],u=[];!function(){function f(d){for(var Y=i.sqrt(d),y=2;y<=Y;y++)if(!(d%y))return!1;return!0}function g(d){return 4294967296*(d-(0|d))|0}for(var w=2,Q=0;Q<64;)f(w)&&(Q<8&&(E[Q]=g(i.pow(w,.5))),u[Q]=g(i.pow(w,.3333333333333333)),Q++),w++}();var C=[],e=B.SHA256=a.extend({_doReset:function(){this._hash=new h.init(E.slice(0))},_doProcessBlock:function(g,w){for(var Q=this._hash.words,d=Q[0],Y=Q[1],y=Q[2],p=Q[3],m=Q[4],D=Q[5],U=Q[6],N=Q[7],F=0;F<64;F++){if(F<16)C[F]=0|g[w+F];else{var z=C[F-15],W=C[F-2];C[F]=((z<<25|z>>>7)^(z<<14|z>>>18)^z>>>3)+C[F-7]+((W<<15|W>>>17)^(W<<13|W>>>19)^W>>>10)+C[F-16]}var lA=d&Y^d&y^Y&y,gA=N+((m<<26|m>>>6)^(m<<21|m>>>11)^(m<<7|m>>>25))+(m&D^~m&U)+u[F]+C[F];N=U,U=D,D=m,m=p+gA|0,p=y,y=Y,Y=d,d=gA+(((d<<30|d>>>2)^(d<<19|d>>>13)^(d<<10|d>>>22))+lA)|0}Q[0]=Q[0]+d|0,Q[1]=Q[1]+Y|0,Q[2]=Q[2]+y|0,Q[3]=Q[3]+p|0,Q[4]=Q[4]+m|0,Q[5]=Q[5]+D|0,Q[6]=Q[6]+U|0,Q[7]=Q[7]+N|0},_doFinalize:function(){var g=this._data,w=g.words,Q=8*this._nDataBytes,d=8*g.sigBytes;return w[d>>>5]|=128<<24-d%32,w[14+(d+64>>>9<<4)]=i.floor(Q/4294967296),w[15+(d+64>>>9<<4)]=Q,g.sigBytes=4*w.length,this._process(),this._hash},clone:function(){var g=a.clone.call(this);return g._hash=this._hash.clone(),g}});o.SHA256=a._createHelper(e),o.HmacSHA256=a._createHmacHelper(e)}(Math),c.SHA256}(n(757))},8342:function(T,I,n){"use strict";n(7042),T.exports=function(c){return function(i){var o=c,l=o.lib,h=l.WordArray,a=l.Hasher,E=o.x64.Word,u=o.algo,C=[],e=[],f=[];!function(){for(var Q=1,d=0,Y=0;Y<24;Y++){C[Q+5*d]=(Y+1)*(Y+2)/2%64;var p=(2*Q+3*d)%5;Q=d%5,d=p}for(Q=0;Q<5;Q++)for(d=0;d<5;d++)e[Q+5*d]=d+(2*Q+3*d)%5*5;for(var m=1,D=0;D<24;D++){for(var U=0,N=0,F=0;F<7;F++){if(1&m){var z=(1<>>24)|4278255360&(D<<24|D>>>8),(N=y[m]).high^=U=16711935&(U<<8|U>>>24)|4278255360&(U<<24|U>>>8),N.low^=D}for(var F=0;F<24;F++){for(var z=0;z<5;z++){for(var L=0,W=0,aA=0;aA<5;aA++)L^=(N=y[z+5*aA]).high,W^=N.low;var AA=g[z];AA.high=L,AA.low=W}for(z=0;z<5;z++){var lA=g[(z+4)%5],MA=g[(z+1)%5],cA=MA.high,gA=MA.low;for(L=lA.high^(cA<<1|gA>>>31),W=lA.low^(gA<<1|cA>>>31),aA=0;aA<5;aA++)(N=y[z+5*aA]).high^=L,N.low^=W}for(var BA=1;BA<25;BA++){var vA=(N=y[BA]).high,FA=N.low,_=C[BA];_<32?(L=vA<<_|FA>>>32-_,W=FA<<_|vA>>>32-_):(L=FA<<_-32|vA>>>64-_,W=vA<<_-32|FA>>>64-_);var dA=g[e[BA]];dA.high=L,dA.low=W}var uA=g[0],CA=y[0];for(uA.high=CA.high,uA.low=CA.low,z=0;z<5;z++)for(aA=0;aA<5;aA++){var NA=g[BA=z+5*aA],bA=g[(z+1)%5+5*aA],XA=g[(z+2)%5+5*aA];(N=y[BA]).high=NA.high^~bA.high&XA.high,N.low=NA.low^~bA.low&XA.low}var N,q=f[F];(N=y[0]).high^=q.high,N.low^=q.low}},_doFinalize:function(){var d=this._data,Y=d.words,p=8*d.sigBytes,m=32*this.blockSize;Y[p>>>5]|=1<<24-p%32,Y[(i.ceil((p+1)/m)*m>>>5)-1]|=128,d.sigBytes=4*Y.length,this._process();for(var D=this._state,U=this.cfg.outputLength/8,N=U/8,F=[],z=0;z>>24)|4278255360&(W<<24|W>>>8),F.push(aA=16711935&(aA<<8|aA>>>24)|4278255360&(aA<<24|aA>>>8)),F.push(W)}return new h.init(F,U)},clone:function(){for(var d=a.clone.call(this),Y=d._state=this._state.slice(0),y=0;y<25;y++)Y[y]=Y[y].clone();return d}});o.SHA3=a._createHelper(w),o.HmacSHA3=a._createHmacHelper(w)}(Math),c.SHA3}(n(757),n(2601))},8122:function(T,I,n){"use strict";T.exports=function(c){return l=(o=(i=c).x64).Word,h=o.WordArray,E=(a=i.algo).SHA384=(B=a.SHA512).extend({_doReset:function(){this._hash=new h.init([new l.init(3418070365,3238371032),new l.init(1654270250,914150663),new l.init(2438529370,812702999),new l.init(355462360,4144912697),new l.init(1731405415,4290775857),new l.init(2394180231,1750603025),new l.init(3675008525,1694076839),new l.init(1203062813,3204075428)])},_doFinalize:function(){var C=B._doFinalize.call(this);return C.sigBytes-=16,C}}),i.SHA384=B._createHelper(E),i.HmacSHA384=B._createHmacHelper(E),c.SHA384;var i,o,l,h,a,B,E}(n(757),n(2601),n(7991))},7991:function(T,I,n){"use strict";var i;i=function(c){return function(){var i=c,l=i.lib.Hasher,h=i.x64,a=h.Word,B=h.WordArray,E=i.algo;function u(){return a.create.apply(a,arguments)}var C=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],e=[];!function(){for(var g=0;g<80;g++)e[g]=u()}();var f=E.SHA512=l.extend({_doReset:function(){this._hash=new B.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(w,Q){for(var d=this._hash.words,Y=d[0],y=d[1],p=d[2],m=d[3],D=d[4],U=d[5],N=d[6],F=d[7],z=Y.high,L=Y.low,W=y.high,aA=y.low,AA=p.high,lA=p.low,MA=m.high,cA=m.low,gA=D.high,BA=D.low,vA=U.high,FA=U.low,_=N.high,dA=N.low,uA=F.high,CA=F.low,NA=z,bA=L,XA=W,q=aA,O=AA,$=lA,V=MA,hA=cA,mA=gA,nA=BA,EA=vA,GA=FA,et=_,ot=dA,TA=uA,it=CA,mt=0;mt<80;mt++){var It,ut,JA=e[mt];if(mt<16)ut=JA.high=0|w[Q+2*mt],It=JA.low=0|w[Q+2*mt+1];else{var VA=e[mt-15],rt=VA.high,yA=VA.low,ft=(yA>>>1|rt<<31)^(yA>>>8|rt<<24)^(yA>>>7|rt<<25),OA=e[mt-2],Yt=OA.high,H=OA.low,R=(H>>>19|Yt<<13)^(H<<3|Yt>>>29)^(H>>>6|Yt<<26),QA=e[mt-7],rA=e[mt-16],Ft=rA.low;JA.high=ut=(ut=(ut=((rt>>>1|yA<<31)^(rt>>>8|yA<<24)^rt>>>7)+QA.high+((It=ft+QA.low)>>>0>>0?1:0))+((Yt>>>19|H<<13)^(Yt<<3|H>>>29)^Yt>>>6)+((It+=R)>>>0>>0?1:0))+rA.high+((It+=Ft)>>>0>>0?1:0),JA.low=It}var re,j=mA&EA^~mA&et,kA=nA&GA^~nA&ot,At=NA&XA^NA&O^XA&O,st=(bA>>>28|NA<<4)^(bA<<30|NA>>>2)^(bA<<25|NA>>>7),Rt=C[mt],Le=Rt.low,Ae=TA+((mA>>>14|nA<<18)^(mA>>>18|nA<<14)^(mA<<23|nA>>>9))+((re=it+((nA>>>14|mA<<18)^(nA>>>18|mA<<14)^(nA<<23|mA>>>9)))>>>0>>0?1:0),ye=st+(bA&q^bA&$^q&$);TA=et,it=ot,et=EA,ot=GA,EA=mA,GA=nA,mA=V+(Ae=(Ae=(Ae=Ae+j+((re+=kA)>>>0>>0?1:0))+Rt.high+((re+=Le)>>>0>>0?1:0))+ut+((re+=It)>>>0>>0?1:0))+((nA=hA+re|0)>>>0>>0?1:0)|0,V=O,hA=$,O=XA,$=q,XA=NA,q=bA,NA=Ae+(((NA>>>28|bA<<4)^(NA<<30|bA>>>2)^(NA<<25|bA>>>7))+At+(ye>>>0>>0?1:0))+((bA=re+ye|0)>>>0>>0?1:0)|0}L=Y.low=L+bA,Y.high=z+NA+(L>>>0>>0?1:0),aA=y.low=aA+q,y.high=W+XA+(aA>>>0>>0?1:0),lA=p.low=lA+$,p.high=AA+O+(lA>>>0<$>>>0?1:0),cA=m.low=cA+hA,m.high=MA+V+(cA>>>0>>0?1:0),BA=D.low=BA+nA,D.high=gA+mA+(BA>>>0>>0?1:0),FA=U.low=FA+GA,U.high=vA+EA+(FA>>>0>>0?1:0),dA=N.low=dA+ot,N.high=_+et+(dA>>>0>>0?1:0),CA=F.low=CA+it,F.high=uA+TA+(CA>>>0>>0?1:0)},_doFinalize:function(){var w=this._data,Q=w.words,d=8*this._nDataBytes,Y=8*w.sigBytes;return Q[Y>>>5]|=128<<24-Y%32,Q[30+(Y+128>>>10<<5)]=Math.floor(d/4294967296),Q[31+(Y+128>>>10<<5)]=d,w.sigBytes=4*Q.length,this._process(),this._hash.toX32()},clone:function(){var w=l.clone.call(this);return w._hash=this._hash.clone(),w},blockSize:32});i.SHA512=l._createHelper(f),i.HmacSHA512=l._createHmacHelper(f)}(),c.SHA512},T.exports=i(n(757),n(2601))},8437:function(T,I,n){"use strict";n(7042),T.exports=function(c){return function(){var i=c,o=i.lib,l=o.WordArray,h=o.BlockCipher,a=i.algo,B=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],E=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],C=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],e=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=a.DES=h.extend({_doReset:function(){for(var y=this._key.words,p=[],m=0;m<56;m++){var D=B[m]-1;p[m]=y[D>>>5]>>>31-D%32&1}for(var U=this._subKeys=[],N=0;N<16;N++){var F=U[N]=[],z=u[N];for(m=0;m<24;m++)F[m/6|0]|=p[(E[m]-1+z)%28]<<31-m%6,F[4+(m/6|0)]|=p[28+(E[m+24]-1+z)%28]<<31-m%6;for(F[0]=F[0]<<1|F[0]>>>31,m=1;m<7;m++)F[m]=F[m]>>>4*(m-1)+3;F[7]=F[7]<<5|F[7]>>>27}var L=this._invSubKeys=[];for(m=0;m<16;m++)L[m]=U[15-m]},encryptBlock:function(Y,y){this._doCryptBlock(Y,y,this._subKeys)},decryptBlock:function(Y,y){this._doCryptBlock(Y,y,this._invSubKeys)},_doCryptBlock:function(Y,y,p){this._lBlock=Y[y],this._rBlock=Y[y+1],g.call(this,4,252645135),g.call(this,16,65535),w.call(this,2,858993459),w.call(this,8,16711935),g.call(this,1,1431655765);for(var m=0;m<16;m++){for(var D=p[m],U=this._lBlock,N=this._rBlock,F=0,z=0;z<8;z++)F|=C[z][((N^D[z])&e[z])>>>0];this._lBlock=N,this._rBlock=U^F}var L=this._lBlock;this._lBlock=this._rBlock,this._rBlock=L,g.call(this,1,1431655765),w.call(this,8,16711935),w.call(this,2,858993459),g.call(this,16,65535),g.call(this,4,252645135),Y[y]=this._lBlock,Y[y+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function g(d,Y){var y=(this._lBlock>>>d^this._rBlock)&Y;this._rBlock^=y,this._lBlock^=y<>>d^this._lBlock)&Y;this._lBlock^=y,this._rBlock^=y<192.");var p=y.slice(0,2),m=y.length<4?y.slice(0,2):y.slice(2,4),D=y.length<6?y.slice(0,2):y.slice(4,6);this._des1=f.createEncryptor(l.create(p)),this._des2=f.createEncryptor(l.create(m)),this._des3=f.createEncryptor(l.create(D))},encryptBlock:function(Y,y){this._des1.encryptBlock(Y,y),this._des2.decryptBlock(Y,y),this._des3.encryptBlock(Y,y)},decryptBlock:function(Y,y){this._des3.decryptBlock(Y,y),this._des2.encryptBlock(Y,y),this._des1.decryptBlock(Y,y)},keySize:6,ivSize:2,blockSize:2});i.TripleDES=h._createHelper(Q)}(),c.TripleDES}(n(757),n(7508),n(3440),n(3839),n(1582))},2601:function(T,I,n){"use strict";n(7042),T.exports=function(c){return h=(l=c.lib).Base,a=l.WordArray,(B=c.x64={}).Word=h.extend({init:function(e,f){this.high=e,this.low=f}}),B.WordArray=h.extend({init:function(e,f){e=this.words=e||[],this.sigBytes=null!=f?f:8*e.length},toX32:function(){for(var e=this.words,f=e.length,g=[],w=0;w=B.length?{done:!0}:{done:!1,value:B[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(B,E){(null==E||E>B.length)&&(E=B.length);for(var u=0,C=new Array(E);u=Q)){D.next=13;break}return D.next=13,[Q,d,f.tags[Y]];case 13:w=f.stateTable[1][p],Q=null;case 15:0!==w&&null==Q&&(Q=y),f.accepting[w]&&(d=y),0===w&&(w=1);case 18:y++,D.next=5;break;case 21:if(!(null!=Q&&null!=d&&d>=Q)){D.next=24;break}return D.next=24,[Q,d,f.tags[w]];case 24:case"end":return D.stop()}},g)}),e},E.apply=function(C,e){for(var g,f=c(this.match(C));!(g=f()).done;)for(var p,w=g.value,Q=w[0],d=w[1],y=c(w[2]);!(p=y()).done;){var m=p.value;"function"==typeof e[m]&&e[m](Q,d,C.slice(Q,d+1))}},B}()},8478:function(T,I,n){"use strict";var c=n(8823).Buffer;n(7042),n(6699);var i=n(3857),o=n(2635);T.exports=function(){function l(a){var B;for(this.data=a,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.text={};;){var E=this.readUInt32(),u="";for(B=0;B<4;B++)u+=String.fromCharCode(this.data[this.pos++]);switch(u){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"PLTE":this.palette=this.read(E);break;case"IDAT":for(B=0;B0)for(B=0;Bthis.data.length)throw new Error("Incomplete or corrupt PNG file")}}l.decode=function(B,E){return i.readFile(B,function(u,C){return new l(C).decode(function(f){return E(f)})})},l.load=function(B){return new l(i.readFileSync(B))};var h=l.prototype;return h.read=function(B){for(var E=new Array(B),u=0;u=2147483648)throw new RangeError('The value "'+B+'" is invalid for option "size"');var C=o(B);return E&&0!==E.length?"string"==typeof u?C.fill(E,u):C.fill(E):C.fill(0),C}),!l.kStringMaxLength)try{l.kStringMaxLength=c.binding("buffer").kStringMaxLength}catch(B){}l.constants||(l.constants={MAX_LENGTH:l.kMaxLength},l.kStringMaxLength&&(l.constants.MAX_STRING_LENGTH=l.kStringMaxLength)),T.exports=l},3361:function(T,I,n){"use strict";function c(g,w){var Q=Object.keys(g);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(g);w&&(d=d.filter(function(Y){return Object.getOwnPropertyDescriptor(g,Y).enumerable})),Q.push.apply(Q,d)}return Q}function o(g,w,Q){return w in g?Object.defineProperty(g,w,{value:Q,enumerable:!0,configurable:!0,writable:!0}):g[w]=Q,g}function h(g,w){for(var Q=0;Q0?this.tail.next=d:this.head=d,this.tail=d,++this.length}},{key:"unshift",value:function(Q){var d={data:Q,next:this.head};0===this.length&&(this.tail=d),this.head=d,++this.length}},{key:"shift",value:function(){if(0!==this.length){var Q=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,Q}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Q){if(0===this.length)return"";for(var d=this.head,Y=""+d.data;d=d.next;)Y+=Q+d.data;return Y}},{key:"concat",value:function(Q){if(0===this.length)return E.alloc(0);for(var d=E.allocUnsafe(Q>>>0),Y=this.head,y=0;Y;)f(Y.data,d,y),y+=Y.data.length,Y=Y.next;return d}},{key:"consume",value:function(Q,d){var Y;return Qp.length?p.length:Q;if(y+=m===p.length?p:p.slice(0,Q),0==(Q-=m)){m===p.length?(++Y,this.head=d.next?d.next:this.tail=null):(this.head=d,d.data=p.slice(m));break}++Y}return this.length-=Y,y}},{key:"_getBuffer",value:function(Q){var d=E.allocUnsafe(Q),Y=this.head,y=1;for(Y.data.copy(d),Q-=Y.data.length;Y=Y.next;){var p=Y.data,m=Q>p.length?p.length:Q;if(p.copy(d,d.length-Q,0,m),0==(Q-=m)){m===p.length?(++y,this.head=Y.next?Y.next:this.tail=null):(this.head=Y,Y.data=p.slice(m));break}++y}return this.length-=y,d}},{key:e,value:function(Q,d){return C(this,function i(g){for(var w=1;wIA.length)&&(J=IA.length);for(var S=0,X=new Array(J);S=IA.length?{done:!0}:{done:!1,value:IA[X++]}},e:function(Bt){throw Bt},f:Z}}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 _A,fA=!0,pA=!1;return{s:function(){S=IA[Symbol.iterator]()},n:function(){var Bt=S.next();return fA=Bt.done,Bt},e:function(Bt){pA=!0,_A=Bt},f:function(){try{!fA&&null!=S.return&&S.return()}finally{if(pA)throw _A}}}}var FA=function(){function IA(){f(this,IA)}return w(IA,[{key:"toString",value:function(){throw new Error("Must be implemented by subclasses")}}]),IA}(),_=function(){function IA(){var J=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f(this,IA),this._items={},this.limits="boolean"!=typeof J.limits||J.limits}return w(IA,[{key:"add",value:function(S,X){return this._items[S]=X}},{key:"get",value:function(S){return this._items[S]}},{key:"toString",value:function(){var S=this,X=Object.keys(this._items).sort(function(Qt,Dt){return S._compareKeys(Qt,Dt)}),Z=["<<"];if(this.limits&&X.length>1){var pA=X[X.length-1];Z.push(" /Limits ".concat(bA.convert([this._dataForKey(X[0]),this._dataForKey(pA)])))}Z.push(" /".concat(this._keysName()," ["));var nt,_A=vA(X);try{for(_A.s();!(nt=_A.n()).done;){var Bt=nt.value;Z.push(" ".concat(bA.convert(this._dataForKey(Bt))," ").concat(bA.convert(this._items[Bt])))}}catch(Qt){_A.e(Qt)}finally{_A.f()}return Z.push("]"),Z.push(">>"),Z.join("\n")}},{key:"_compareKeys",value:function(){throw new Error("Must be implemented by subclasses")}},{key:"_keysName",value:function(){throw new Error("Must be implemented by subclasses")}},{key:"_dataForKey",value:function(){throw new Error("Must be implemented by subclasses")}}]),IA}(),dA=function(J,S){return(Array(S+1).join("0")+J).slice(-S)},uA=/[\n\r\t\b\f()\\]/g,CA={"\n":"\\n","\r":"\\r","\t":"\\t","\b":"\\b","\f":"\\f","\\":"\\\\","(":"\\(",")":"\\)"},NA=function(J){var S=J.length;if(1&S)throw new Error("Buffer length must be even");for(var X=0,Z=S-1;X1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof S)return"/".concat(S);if(S instanceof String){for(var Z=S,fA=!1,pA=0,_A=Z.length;pA<_A;pA++)if(Z.charCodeAt(pA)>127){fA=!0;break}var nt;return nt=fA?NA(i.from("\ufeff".concat(Z),"utf16le")):i.from(Z.valueOf(),"ascii"),Z=(Z=X?X(nt).toString("binary"):nt.toString("binary")).replace(uA,function(Ot){return CA[Ot]}),"(".concat(Z,")")}if(i.isBuffer(S))return"<".concat(S.toString("hex"),">");if(S instanceof FA||S instanceof _)return S.toString();if(S instanceof Date){var Bt="D:".concat(dA(S.getUTCFullYear(),4))+dA(S.getUTCMonth()+1,2)+dA(S.getUTCDate(),2)+dA(S.getUTCHours(),2)+dA(S.getUTCMinutes(),2)+dA(S.getUTCSeconds(),2)+"Z";return X&&(Bt=(Bt=X(i.from(Bt,"ascii")).toString("binary")).replace(uA,function(Ot){return CA[Ot]})),"(".concat(Bt,")")}if(Array.isArray(S)){var Qt=S.map(function(Ot){return IA.convert(Ot,X)}).join(" ");return"[".concat(Qt,"]")}if("[object Object]"==={}.toString.call(S)){var Dt=["<<"];for(var xt in S){var Tt=S[xt];Dt.push("/".concat(xt," ").concat(IA.convert(Tt,X)))}return Dt.push(">>"),Dt.join("\n")}return"number"==typeof S?IA.number(S):"".concat(S)}},{key:"number",value:function(S){if(S>-1e21&&S<1e21)return Math.round(1e6*S)/1e6;throw new Error("unsupported number: ".concat(S))}}]),IA}(),XA=function(IA){y(S,IA);var J=F(S);function S(X,Z){var fA,pA=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f(this,S),(fA=J.call(this)).document=X,fA.id=Z,fA.data=pA,fA.gen=0,fA.compress=fA.document.compress&&!fA.data.Filter,fA.uncompressedLength=0,fA.buffer=[],fA}return w(S,[{key:"write",value:function(Z){if(i.isBuffer(Z)||(Z=i.from(Z+"\n","binary")),this.uncompressedLength+=Z.length,null==this.data.Length&&(this.data.Length=0),this.buffer.push(Z),this.data.Length+=Z.length,this.compress)return this.data.Filter="FlateDecode"}},{key:"end",value:function(Z){return Z&&this.write(Z),this.finalize()}},{key:"finalize",value:function(){this.offset=this.document._offset;var Z=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=l.default.deflateSync(this.buffer)),Z&&(this.buffer=Z(this.buffer)),this.data.Length=this.buffer.length),this.document._write("".concat(this.id," ").concat(this.gen," obj")),this.document._write(bA.convert(this.data,Z)),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)}},{key:"toString",value:function(){return"".concat(this.id," ").concat(this.gen," R")}}]),S}(FA),q={top:72,left:72,bottom:72,right:72},O={"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(){function IA(J){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f(this,IA),this.document=J,this.size=S.size||"letter",this.layout=S.layout||"portrait",this.margins="number"==typeof S.margin?{top:S.margin,left:S.margin,bottom:S.margin,right:S.margin}:S.margins||q;var X=Array.isArray(this.size)?this.size:O[this.size.toUpperCase()];this.width=X["portrait"===this.layout?0:1],this.height=X["portrait"===this.layout?1:0],this.content=this.document.ref(),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}),this.markings=[]}return w(IA,[{key:"maxY",value:function(){return this.height-this.margins.bottom}},{key:"write",value:function(S){return this.content.write(S)}},{key:"end",value:function(){return this.dictionary.end(),this.resources.end(),this.content.end()}},{key:"fonts",get:function(){var S=this.resources.data;return null!=S.Font?S.Font:S.Font={}}},{key:"xobjects",get:function(){var S=this.resources.data;return null!=S.XObject?S.XObject:S.XObject={}}},{key:"ext_gstates",get:function(){var S=this.resources.data;return null!=S.ExtGState?S.ExtGState:S.ExtGState={}}},{key:"patterns",get:function(){var S=this.resources.data;return null!=S.Pattern?S.Pattern:S.Pattern={}}},{key:"colorSpaces",get:function(){var S=this.resources.data;return S.ColorSpace||(S.ColorSpace={})}},{key:"annotations",get:function(){var S=this.dictionary.data;return null!=S.Annots?S.Annots:S.Annots=[]}},{key:"structParentTreeKey",get:function(){var S=this.dictionary.data;return null!=S.StructParents?S.StructParents:S.StructParents=this.document.createStructParentTreeNextKey()}}]),IA}(),V=function(IA){y(S,IA);var J=F(S);function S(){return f(this,S),J.apply(this,arguments)}return w(S,[{key:"_compareKeys",value:function(Z,fA){return Z.localeCompare(fA)}},{key:"_keysName",value:function(){return"Names"}},{key:"_dataForKey",value:function(Z){return new String(Z)}}]),S}(_);function hA(IA,J){if(IA=J[fA]&&IA<=J[fA+1])return!0;IA>J[fA+1]?S=Z+1:X=Z-1}return!1}var mA=[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],nA=function(J){return hA(J,mA)},EA=[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],et=[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],TA=[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],it=[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],mt=[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],It=function(J){return hA(J,et)||hA(J,mt)||hA(J,TA)||hA(J,it)},ut=[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],JA=function(J){return hA(J,ut)},VA=[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],rt=function(J){return hA(J,VA)},yA=function(J){return hA(J,et)},Mt=function(J){return hA(J,EA)},ft=function(J){return J.codePointAt(0)},OA=function(J){return J[0]},Yt=function(J){return J[J.length-1]};function H(IA){for(var J=[],S=IA.length,X=0;X=55296&&Z<=56319&&S>X+1){var fA=IA.charCodeAt(X+1);if(fA>=56320&&fA<=57343){J.push(1024*(Z-55296)+fA-56320+65536),X+=1;continue}}J.push(Z)}return J}function k(IA){var J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof IA)throw new TypeError("Expected string.");if(0===IA.length)return"";var S=H(IA).map(function(Dt){return yA(Dt)?32:Dt}).filter(function(Dt){return!Mt(Dt)}),X=String.fromCodePoint.apply(null,S).normalize("NFKC"),Z=H(X);if(Z.some(It))throw new Error("Prohibited character, see https://tools.ietf.org/html/rfc4013#section-2.3");if(!0!==J.allowUnassigned&&Z.some(nA))throw new Error("Unassigned code point, see https://tools.ietf.org/html/rfc4013#section-2.5");var _A=Z.some(JA),nt=Z.some(rt);if(_A&&nt)throw new Error("String must not contain RandALCat and LCat at the same time, see https://tools.ietf.org/html/rfc3454#section-6");var Bt=JA(ft(OA(X))),Qt=JA(ft(Yt(X)));if(_A&&(!Bt||!Qt))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 X}var R=function(){function IA(J){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(f(this,IA),!S.ownerPassword&&!S.userPassword)throw new Error("None of owner password and user password is defined.");this.document=J,this._setupEncryption(S)}return w(IA,null,[{key:"generateFileID",value:function(){var S=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},X="".concat(S.CreationDate.getTime(),"\n");for(var Z in S)!S.hasOwnProperty(Z)||(X+="".concat(Z,": ").concat(S[Z].valueOf(),"\n"));return Kt(h.default.MD5(X))}},{key:"generateRandomWordArray",value:function(S){return h.default.lib.WordArray.random(S)}},{key:"create",value:function(S){var X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return X.ownerPassword||X.userPassword?new IA(S,X):null}}]),w(IA,[{key:"_setupEncryption",value:function(S){switch(S.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}var X={Filter:"Standard"};switch(this.version){case 1:case 2:case 4:this._setupEncryptionV1V2V4(this.version,X,S);break;case 5:this._setupEncryptionV5(X,S)}this.dictionary=this.document.ref(X)}},{key:"_setupEncryptionV1V2V4",value:function(S,X,Z){var fA,pA;switch(S){case 1:fA=2,this.keyBits=40,pA=function QA(){var IA=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},J=-64;return IA.printing&&(J|=4),IA.modifying&&(J|=8),IA.copying&&(J|=16),IA.annotating&&(J|=32),J}(Z.permissions);break;case 2:fA=3,this.keyBits=128,pA=wA(Z.permissions);break;case 4:fA=4,this.keyBits=128,pA=wA(Z.permissions)}var Qt,_A=Lt(Z.userPassword),nt=Z.ownerPassword?Lt(Z.ownerPassword):_A,Bt=function ct(IA,J,S,X){for(var Z=X,fA=IA>=3?51:1,pA=0;pA=3?20:1;for(var Bt=0;Bt=3?51:1,nt=0;nt<_A;nt++)(pA=h.default.MD5(pA)).sigBytes=J/8;return pA}(fA,this.keyBits,this.document._id,_A,Bt,pA),Qt=2===fA?function PA(IA){return h.default.RC4.encrypt(Lt(),IA).ciphertext}(this.encryptionKey):function rA(IA,J){for(var S=J.clone(),X=h.default.MD5(Lt().concat(h.default.lib.WordArray.create(IA))),Z=0;Z<20;Z++){for(var fA=Math.ceil(S.sigBytes/4),pA=0;pA=2&&(X.Length=this.keyBits),4===S&&(X.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV2",Length:this.keyBits/8}},X.StmF="StdCF",X.StrF="StdCF"),X.R=fA,X.O=Kt(Bt),X.U=Kt(Qt),X.P=pA}},{key:"_setupEncryptionV5",value:function(S,X){this.keyBits=256;var Z=wA(X.permissions),fA=vt(X.userPassword),pA=X.ownerPassword?vt(X.ownerPassword):fA;this.encryptionKey=function ZA(IA){return IA(32)}(IA.generateRandomWordArray);var _A=function j(IA,J){var S=J(8),X=J(8);return h.default.SHA256(IA.clone().concat(S)).concat(S).concat(X)}(fA,IA.generateRandomWordArray),Bt=function kA(IA,J,S){var X=h.default.SHA256(IA.clone().concat(J)),Z={mode:h.default.mode.CBC,padding:h.default.pad.NoPadding,iv:h.default.lib.WordArray.create(null,16)};return h.default.AES.encrypt(S,X,Z).ciphertext}(fA,h.default.lib.WordArray.create(_A.words.slice(10,12),8),this.encryptionKey),Qt=function At(IA,J,S){var X=S(8),Z=S(8);return h.default.SHA256(IA.clone().concat(X).concat(J)).concat(X).concat(Z)}(pA,_A,IA.generateRandomWordArray),xt=function xA(IA,J,S,X){var Z=h.default.SHA256(IA.clone().concat(J).concat(S)),fA={mode:h.default.mode.CBC,padding:h.default.pad.NoPadding,iv:h.default.lib.WordArray.create(null,16)};return h.default.AES.encrypt(X,Z,fA).ciphertext}(pA,h.default.lib.WordArray.create(Qt.words.slice(10,12),8),_A,this.encryptionKey),Tt=function st(IA,J,S){var X=h.default.lib.WordArray.create([Rt(IA),4294967295,1415668834],12).concat(S(4));return h.default.AES.encrypt(X,J,{mode:h.default.mode.ECB,padding:h.default.pad.NoPadding}).ciphertext}(Z,this.encryptionKey,IA.generateRandomWordArray);S.V=5,S.Length=this.keyBits,S.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV3",Length:this.keyBits/8}},S.StmF="StdCF",S.StrF="StdCF",S.R=5,S.O=Kt(Qt),S.OE=Kt(xt),S.U=Kt(_A),S.UE=Kt(Bt),S.P=Z,S.Perms=Kt(Tt)}},{key:"getEncryptFn",value:function(S,X){var Z,pA;if(this.version<5&&(Z=this.encryptionKey.clone().concat(h.default.lib.WordArray.create([(255&S)<<24|(65280&S)<<8|S>>8&65280|255&X,(65280&X)<<16],5))),1===this.version||2===this.version){var fA=h.default.MD5(Z);return fA.sigBytes=Math.min(16,this.keyBits/8+5),function(Bt){return Kt(h.default.RC4.encrypt(h.default.lib.WordArray.create(Bt),fA).ciphertext)}}pA=4===this.version?h.default.MD5(Z.concat(h.default.lib.WordArray.create([1933667412],4))):this.encryptionKey;var _A=IA.generateRandomWordArray(16),nt={mode:h.default.mode.CBC,padding:h.default.pad.Pkcs7,iv:_A};return function(Bt){return Kt(_A.clone().concat(h.default.AES.encrypt(h.default.lib.WordArray.create(Bt),pA,nt).ciphertext))}}},{key:"end",value:function(){this.dictionary.end()}}]),IA}();function wA(){var IA=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},J=-3904;return"lowResolution"===IA.printing&&(J|=4),"highResolution"===IA.printing&&(J|=2052),IA.modifying&&(J|=8),IA.copying&&(J|=16),IA.annotating&&(J|=32),IA.fillingForms&&(J|=256),IA.contentAccessibility&&(J|=512),IA.documentAssembly&&(J|=1024),J}function Lt(){for(var IA=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",J=i.alloc(32),S=IA.length,X=0;X255)throw new Error("Password contains one or more invalid characters.");J[X]=Z,X++}for(;X<32;)J[X]=Le[X-S],X++;return h.default.lib.WordArray.create(J)}function vt(){var IA=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";IA=unescape(encodeURIComponent(k(IA)));for(var J=Math.min(127,IA.length),S=i.alloc(J),X=0;X>8&65280|IA>>24&255}function Kt(IA){for(var J=[],S=0;S>8*(3-S%4)&255);return i.from(J)}var Jt,bt,Xt,ae,Dn,pn,Le=[40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122],re=bA.number,Ae=function(){function IA(J){f(this,IA),this.doc=J,this.stops=[],this.embedded=!1,this.transform=[1,0,0,1,0,0]}return w(IA,[{key:"stop",value:function(S,X,Z){if(null==Z&&(Z=1),X=this.doc._normalizeColor(X),0===this.stops.length)if(3===X.length)this._colorSpace="DeviceRGB";else if(4===X.length)this._colorSpace="DeviceCMYK";else{if(1!==X.length)throw new Error("Unknown color space");this._colorSpace="DeviceGray"}else if("DeviceRGB"===this._colorSpace&&3!==X.length||"DeviceCMYK"===this._colorSpace&&4!==X.length||"DeviceGray"===this._colorSpace&&1!==X.length)throw new Error("All gradient stops must use the same color space");return Z=Math.max(0,Math.min(1,Z)),this.stops.push([S,X,Z]),this}},{key:"setTransform",value:function(S,X,Z,fA,pA,_A){return this.transform=[S,X,Z,fA,pA,_A],this}},{key:"embed",value:function(S){var X,Z=this.stops.length;if(0!==Z){this.embedded=!0,this.matrix=S;var fA=this.stops[Z-1];fA[0]<1&&this.stops.push([1,fA[1],fA[2]]);for(var pA=[],_A=[],nt=[],Bt=0;Bt>16,S>>8&255,255&S]}else bn[J]&&(J=bn[J]);return Array.isArray(J)?(3===J.length?J=J.map(function(X){return X/255}):4===J.length&&(J=J.map(function(X){return X/100})),J):null},_setColor:function(J,S){return J instanceof tn?(J.apply(S),!0):Array.isArray(J)&&J[0]instanceof Xe?(J[0].apply(S,J[1]),!0):this._setColorCore(J,S)},_setColorCore:function(J,S){if(!(J=this._normalizeColor(J)))return!1;var X=S?"SCN":"scn",Z=this._getColorSpace(J);return this._setColorSpace(Z,S),J=J.join(" "),this.addContent("".concat(J," ").concat(X)),!0},_setColorSpace:function(J,S){var X=S?"CS":"cs";return this.addContent("/".concat(J," ").concat(X))},_getColorSpace:function(J){return 4===J.length?"DeviceCMYK":"DeviceRGB"},fillColor:function(J,S){return this._setColor(J,!1)&&this.fillOpacity(S),this._fillColor=[J,S],this},strokeColor:function(J,S){return this._setColor(J,!0)&&this.strokeOpacity(S),this},opacity:function(J){return this._doOpacity(J,J),this},fillOpacity:function(J){return this._doOpacity(J,null),this},strokeOpacity:function(J){return this._doOpacity(null,J),this},_doOpacity:function(J,S){var X,Z;if(null!=J||null!=S){null!=J&&(J=Math.max(0,Math.min(1,J))),null!=S&&(S=Math.max(0,Math.min(1,S)));var fA="".concat(J,"_").concat(S);if(this._opacityRegistry[fA]){var pA=z(this._opacityRegistry[fA],2);X=pA[0],Z=pA[1]}else{X={Type:"ExtGState"},null!=J&&(X.ca=J),null!=S&&(X.CA=S),(X=this.ref(X)).end();var _A=++this._opacityCount;Z="Gs".concat(_A),this._opacityRegistry[fA]=[X,Z]}return this.page.ext_gstates[Z]=X,this.addContent("/".concat(Z," gs"))}},linearGradient:function(J,S,X,Z){return new Te(this,J,S,X,Z)},radialGradient:function(J,S,X,Z,fA,pA){return new en(this,J,S,X,Z,fA,pA)},pattern:function(J,S,X,Z){return new Xe(this,J,S,X,Z)}},bn={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]};Jt=bt=Xt=ae=Dn=pn=0;var Yn={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},Tn={M:function(J,S){return Xt=ae=null,Dn=Jt=S[0],pn=bt=S[1],J.moveTo(Jt,bt)},m:function(J,S){return Xt=ae=null,Dn=Jt+=S[0],pn=bt+=S[1],J.moveTo(Jt,bt)},C:function(J,S){return Jt=S[4],bt=S[5],Xt=S[2],ae=S[3],J.bezierCurveTo.apply(J,L(S))},c:function(J,S){return J.bezierCurveTo(S[0]+Jt,S[1]+bt,S[2]+Jt,S[3]+bt,S[4]+Jt,S[5]+bt),Xt=Jt+S[2],ae=bt+S[3],Jt+=S[4],bt+=S[5]},S:function(J,S){return null===Xt&&(Xt=Jt,ae=bt),J.bezierCurveTo(Jt-(Xt-Jt),bt-(ae-bt),S[0],S[1],S[2],S[3]),Xt=S[0],ae=S[1],Jt=S[2],bt=S[3]},s:function(J,S){return null===Xt&&(Xt=Jt,ae=bt),J.bezierCurveTo(Jt-(Xt-Jt),bt-(ae-bt),Jt+S[0],bt+S[1],Jt+S[2],bt+S[3]),Xt=Jt+S[0],ae=bt+S[1],Jt+=S[2],bt+=S[3]},Q:function(J,S){return Xt=S[0],ae=S[1],J.quadraticCurveTo(S[0],S[1],Jt=S[2],bt=S[3])},q:function(J,S){return J.quadraticCurveTo(S[0]+Jt,S[1]+bt,S[2]+Jt,S[3]+bt),Xt=Jt+S[0],ae=bt+S[1],Jt+=S[2],bt+=S[3]},T:function(J,S){return null===Xt?(Xt=Jt,ae=bt):(Xt=Jt-(Xt-Jt),ae=bt-(ae-bt)),J.quadraticCurveTo(Xt,ae,S[0],S[1]),Xt=Jt-(Xt-Jt),ae=bt-(ae-bt),Jt=S[0],bt=S[1]},t:function(J,S){return null===Xt?(Xt=Jt,ae=bt):(Xt=Jt-(Xt-Jt),ae=bt-(ae-bt)),J.quadraticCurveTo(Xt,ae,Jt+S[0],bt+S[1]),Jt+=S[0],bt+=S[1]},A:function(J,S){return WA(J,Jt,bt,S),Jt=S[5],bt=S[6]},a:function(J,S){return S[5]+=Jt,S[6]+=bt,WA(J,Jt,bt,S),Jt=S[5],bt=S[6]},L:function(J,S){return Xt=ae=null,J.lineTo(Jt=S[0],bt=S[1])},l:function(J,S){return Xt=ae=null,J.lineTo(Jt+=S[0],bt+=S[1])},H:function(J,S){return Xt=ae=null,J.lineTo(Jt=S[0],bt)},h:function(J,S){return Xt=ae=null,J.lineTo(Jt+=S[0],bt)},V:function(J,S){return Xt=ae=null,J.lineTo(Jt,bt=S[0])},v:function(J,S){return Xt=ae=null,J.lineTo(Jt,bt+=S[0])},Z:function(J){return J.closePath(),Jt=Dn,bt=pn},z:function(J){return J.closePath(),Jt=Dn,bt=pn}},WA=function(J,S,X,Z){var Zt,fA=z(Z,7),Ot=vA(YA(fA[5],fA[6],fA[0],fA[1],fA[3],fA[4],fA[2],S,X));try{for(Ot.s();!(Zt=Ot.n()).done;){var he=tt.apply(void 0,L(Zt.value));J.bezierCurveTo.apply(J,L(he))}}catch(Ie){Ot.e(Ie)}finally{Ot.f()}},YA=function(J,S,X,Z,fA,pA,_A,nt,Bt){var Qt=_A*(Math.PI/180),Dt=Math.sin(Qt),xt=Math.cos(Qt);X=Math.abs(X),Z=Math.abs(Z);var Tt=(Xt=xt*(nt-J)*.5+Dt*(Bt-S)*.5)*Xt/(X*X)+(ae=xt*(Bt-S)*.5-Dt*(nt-J)*.5)*ae/(Z*Z);Tt>1&&(X*=Tt=Math.sqrt(Tt),Z*=Tt);var Ot=xt/X,Zt=Dt/X,ue=-Dt/Z,he=xt/Z,Ie=Ot*nt+Zt*Bt,nn=ue*nt+he*Bt,Me=Ot*J+Zt*S,je=ue*J+he*S,Ze=1/((Me-Ie)*(Me-Ie)+(je-nn)*(je-nn))-.25;Ze<0&&(Ze=0);var dn=Math.sqrt(Ze);pA===fA&&(dn=-dn);var Zn=.5*(Ie+Me)-dn*(je-nn),_n=.5*(nn+je)+dn*(Me-Ie),Nn=Math.atan2(nn-_n,Ie-Zn),Hn=Math.atan2(je-_n,Me-Zn)-Nn;Hn<0&&1===pA?Hn+=2*Math.PI:Hn>0&&0===pA&&(Hn-=2*Math.PI);for(var rr=Math.ceil(Math.abs(Hn/(.5*Math.PI+.001))),Qr=[],$n=0;$n0&&(Z[Z.length]=+fA),X[X.length]={cmd:S,args:Z},Z=[],fA="",pA=!1),S=Qt;else if([" ",","].includes(Qt)||"-"===Qt&&fA.length>0&&"e"!==fA[fA.length-1]||"."===Qt&&pA){if(0===fA.length)continue;Z.length===_A?(X[X.length]={cmd:S,args:Z},Z=[+fA],"M"===S&&(S="L"),"m"===S&&(S="l")):Z[Z.length]=+fA,pA="."===Qt,fA=["-","."].includes(Qt)?Qt:""}else fA+=Qt,"."===Qt&&(pA=!0)}}catch(Dt){nt.e(Dt)}finally{nt.f()}return fA.length>0&&(Z.length===_A?(X[X.length]={cmd:S,args:Z},Z=[+fA],"M"===S&&(S="L"),"m"===S&&(S="l")):Z[Z.length]=+fA),X[X.length]={cmd:S,args:Z},X}(X);!function(J,S){Jt=bt=Xt=ae=Dn=pn=0;for(var X=0;X1&&void 0!==arguments[1]?arguments[1]:{},X=J;if(Array.isArray(J)||(J=[J,S.space||J]),!J.every(function(fA){return Number.isFinite(fA)&&fA>0}))throw new Error("dash(".concat(JSON.stringify(X),", ").concat(JSON.stringify(S),") invalid, lengths must be numeric and greater than zero"));return J=J.map(RA).join(" "),this.addContent("[".concat(J,"] ").concat(RA(S.phase||0)," d"))},undash:function(){return this.addContent("[] 0 d")},moveTo:function(J,S){return this.addContent("".concat(RA(J)," ").concat(RA(S)," m"))},lineTo:function(J,S){return this.addContent("".concat(RA(J)," ").concat(RA(S)," l"))},bezierCurveTo:function(J,S,X,Z,fA,pA){return this.addContent("".concat(RA(J)," ").concat(RA(S)," ").concat(RA(X)," ").concat(RA(Z)," ").concat(RA(fA)," ").concat(RA(pA)," c"))},quadraticCurveTo:function(J,S,X,Z){return this.addContent("".concat(RA(J)," ").concat(RA(S)," ").concat(RA(X)," ").concat(RA(Z)," v"))},rect:function(J,S,X,Z){return this.addContent("".concat(RA(J)," ").concat(RA(S)," ").concat(RA(X)," ").concat(RA(Z)," re"))},roundedRect:function(J,S,X,Z,fA){null==fA&&(fA=0);var pA=(fA=Math.min(fA,.5*X,.5*Z))*(1-zA);return this.moveTo(J+fA,S),this.lineTo(J+X-fA,S),this.bezierCurveTo(J+X-pA,S,J+X,S+pA,J+X,S+fA),this.lineTo(J+X,S+Z-fA),this.bezierCurveTo(J+X,S+Z-pA,J+X-pA,S+Z,J+X-fA,S+Z),this.lineTo(J+fA,S+Z),this.bezierCurveTo(J+pA,S+Z,J,S+Z-pA,J,S+Z-fA),this.lineTo(J,S+fA),this.bezierCurveTo(J,S+pA,J+pA,S,J+fA,S),this.closePath()},ellipse:function(J,S,X,Z){null==Z&&(Z=X);var fA=X*zA,pA=Z*zA,_A=(J-=X)+2*X,nt=(S-=Z)+2*Z,Bt=J+X,Qt=S+Z;return this.moveTo(J,Qt),this.bezierCurveTo(J,Qt-pA,Bt-fA,S,Bt,S),this.bezierCurveTo(Bt+fA,S,_A,Qt-pA,_A,Qt),this.bezierCurveTo(_A,Qt+pA,Bt+fA,nt,Bt,nt),this.bezierCurveTo(Bt-fA,nt,J,Qt+pA,J,Qt),this.closePath()},circle:function(J,S,X){return this.ellipse(J,S,X)},arc:function(J,S,X,Z,fA,pA){null==pA&&(pA=!1);var _A=2*Math.PI,nt=.5*Math.PI,Bt=fA-Z;Math.abs(Bt)>_A?Bt=_A:0!==Bt&&pA!==Bt<0&&(Bt=(pA?-1:1)*_A+Bt);var Dt=Math.ceil(Math.abs(Bt)/nt),xt=Bt/Dt,Tt=xt/nt*zA*X,Ot=Z,Zt=-Math.sin(Ot)*Tt,ue=Math.cos(Ot)*Tt,he=J+Math.cos(Ot)*X,Ie=S+Math.sin(Ot)*X;this.moveTo(he,Ie);for(var nn=0;nn1&&void 0!==arguments[1]?arguments[1]:{},Z=J*Math.PI/180,fA=Math.cos(Z),pA=Math.sin(Z),_A=X=0;if(null!=S.origin){var nt=z(S.origin,2),Qt=(_A=nt[0])*pA+(X=nt[1])*fA;_A-=_A*fA-X*pA,X-=Qt}return this.transform(fA,pA,-pA,fA,_A,X)},scale:function(J,S){var Z,X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};null==S&&(S=J),"object"==typeof S&&(X=S,S=J);var fA=Z=0;if(null!=X.origin){var pA=z(X.origin,2);fA=pA[0],Z=pA[1],fA-=J*fA,Z-=S*Z}return this.transform(J,0,0,S,fA,Z)}},$A={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},LA=".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+/),at=function(){function IA(J){f(this,IA),this.contents=J,this.attributes={},this.glyphWidths={},this.boundingBoxes={},this.kernPairs={},this.parse(),this.charWidths=new Array(256);for(var S=0;S<=255;S++)this.charWidths[S]=this.glyphWidths[LA[S]];this.bbox=this.attributes.FontBBox.split(/\s+/).map(function(X){return+X}),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)}return w(IA,null,[{key:"open",value:function(S){return new IA(e.readFileSync(S,"utf8"))}}]),w(IA,[{key:"parse",value:function(){var Z,S="",X=vA(this.contents.split("\n"));try{for(X.s();!(Z=X.n()).done;){var pA,_A,fA=Z.value;if(pA=fA.match(/^Start(\w+)/))S=pA[1];else if(pA=fA.match(/^End(\w+)/))S="";else switch(S){case"FontMetrics":var nt=(pA=fA.match(/(^\w+)\s+(.*)/))[1],Bt=pA[2];(_A=this.attributes[nt])?(Array.isArray(_A)||(_A=this.attributes[nt]=[_A]),_A.push(Bt)):this.attributes[nt]=Bt;break;case"CharMetrics":if(!/^CH?\s/.test(fA))continue;var Qt=fA.match(/\bN\s+(\.?\w+)\s*;/)[1];this.glyphWidths[Qt]=+fA.match(/\bWX\s+(\d+)\s*;/)[1];break;case"KernPairs":(pA=fA.match(/^KPX\s+(\.?\w+)\s+(\.?\w+)\s+(-?\d+)/))&&(this.kernPairs[pA[1]+"\0"+pA[2]]=parseInt(pA[3]))}}}catch(Dt){X.e(Dt)}finally{X.f()}}},{key:"encodeText",value:function(S){for(var X=[],Z=0,fA=S.length;Z>8,nt=0;this.font.post.isFixedPitch&&(nt|=1),1<=_A&&_A<=7&&(nt|=2),nt|=4,10===_A&&(nt|=8),this.font.head.macStyle.italic&&(nt|=64);var Qt=[1,2,3,4,5,6].map(function(Zt){return String.fromCharCode((Z.id.charCodeAt(Zt)||73)+17)}).join("")+"+"+this.font.postscriptName,Dt=this.font.bbox,xt=this.document.ref({Type:"FontDescriptor",FontName:Qt,Flags:nt,FontBBox:[Dt.minX*this.scale,Dt.minY*this.scale,Dt.maxX*this.scale,Dt.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});fA?xt.data.FontFile3=pA:xt.data.FontFile2=pA,xt.end();var Tt={Type:"Font",Subtype:"CIDFontType0",BaseFont:Qt,CIDSystemInfo:{Registry:new String("Adobe"),Ordering:new String("Identity"),Supplement:0},FontDescriptor:xt,W:[0,this.widths]};fA||(Tt.Subtype="CIDFontType2",Tt.CIDToGIDMap="Identity");var Ot=this.document.ref(Tt);return Ot.end(),this.dictionary.data={Type:"Font",Subtype:"Type0",BaseFont:Qt,Encoding:"Identity-H",DescendantFonts:[Ot],ToUnicode:this.toUnicodeCmap()},this.dictionary.end()}},{key:"toUnicodeCmap",value:function(){var _A,Z=this.document.ref(),fA=[],pA=vA(this.unicode);try{for(pA.s();!(_A=pA.n()).done;){var Dt,Bt=[],Qt=vA(_A.value);try{for(Qt.s();!(Dt=Qt.n()).done;){var xt=Dt.value;xt>65535&&(Bt.push(Ut((xt-=65536)>>>10&1023|55296)),xt=56320|1023&xt),Bt.push(Ut(xt))}}catch(Tt){Qt.e(Tt)}finally{Qt.f()}fA.push("<".concat(Bt.join(" "),">"))}}catch(Tt){pA.e(Tt)}finally{pA.f()}return Z.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\n1 beginbfrange\n<0000> <".concat(Ut(fA.length-1),"> [").concat(fA.join(" "),"]\nendbfrange\nendcmap\nCMapName currentdict /CMap defineresource pop\nend\nend")),Z}}]),S}(KA),Vt=function(){function IA(){f(this,IA)}return w(IA,null,[{key:"open",value:function(S,X,Z,fA){var pA;if("string"==typeof X){if(Nt.isStandardFont(X))return new Nt(S,X,fA);X=e.readFileSync(X)}if(i.isBuffer(X)?pA=a.default.create(X,Z):X instanceof Uint8Array?pA=a.default.create(i.from(X),Z):X instanceof ArrayBuffer&&(pA=a.default.create(i.from(new Uint8Array(X)),Z)),null==pA)throw new Error("Not a supported font format or standard PDF font.");return new kt(S,pA,fA)}}]),IA}(),te={initFonts:function(){var J=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Helvetica";this._fontFamilies={},this._fontCount=0,this._fontSize=12,this._font=null,this._registeredFonts={},J&&this.font(J)},font:function(J,S,X){var Z,fA;if("number"==typeof S&&(X=S,S=null),"string"==typeof J&&this._registeredFonts[J]){Z=J;var pA=this._registeredFonts[J];J=pA.src,S=pA.family}else"string"!=typeof(Z=S||J)&&(Z=null);if(null!=X&&this.fontSize(X),fA=this._fontFamilies[Z])return this._font=fA,this;var _A="F".concat(++this._fontCount);return this._font=Vt.open(this,J,S,_A),(fA=this._fontFamilies[this._font.name])?(this._font=fA,this):(Z&&(this._fontFamilies[Z]=this._font),this._font.name&&(this._fontFamilies[this._font.name]=this._font),this)},fontSize:function(J){return this._fontSize=J,this},currentLineHeight:function(J){return null==J&&(J=!1),this._font.lineHeight(this._fontSize,J)},registerFont:function(J,S,X){return this._registeredFonts[J]={src:S,family:X},this}},wt=function(IA){y(S,IA);var J=F(S);function S(X,Z){var fA;return f(this,S),(fA=J.call(this)).document=X,fA.indent=Z.indent||0,fA.characterSpacing=Z.characterSpacing||0,fA.wordSpacing=0===Z.wordSpacing,fA.columns=Z.columns||1,fA.columnGap=null!=Z.columnGap?Z.columnGap:18,fA.lineWidth=(Z.width-fA.columnGap*(fA.columns-1))/fA.columns,fA.spaceLeft=fA.lineWidth,fA.startX=fA.document.x,fA.startY=fA.document.y,fA.column=1,fA.ellipsis=Z.ellipsis,fA.continuedX=0,fA.features=Z.features,null!=Z.height?(fA.height=Z.height,fA.maxY=fA.startY+Z.height):fA.maxY=fA.document.page.maxY(),fA.on("firstLine",function(pA){var _A=fA.continuedX||fA.indent;return fA.document.x+=_A,fA.lineWidth-=_A,fA.once("line",function(){if(fA.document.x-=_A,fA.lineWidth+=_A,pA.continued&&!fA.continuedX&&(fA.continuedX=fA.indent),!pA.continued)return fA.continuedX=0})}),fA.on("lastLine",function(pA){var _A=pA.align;return"justify"===_A&&(pA.align="left"),fA.lastLine=!0,fA.once("line",function(){return fA.document.y+=pA.paragraphGap||0,pA.align=_A,fA.lastLine=!1})}),fA}return w(S,[{key:"wordWidth",value:function(Z){return this.document.widthOfString(Z,this)+this.characterSpacing+this.wordSpacing}},{key:"eachWord",value:function(Z,fA){for(var pA,_A=new E.default(Z),nt=null,Bt=Object.create(null);pA=_A.nextBreak();){var Qt,Dt=Z.slice((null!=nt?nt.position:void 0)||0,pA.position),xt=null!=Bt[Dt]?Bt[Dt]:Bt[Dt]=this.wordWidth(Dt);if(xt>this.lineWidth+this.continuedX)for(var Tt=nt,Ot={};Dt.length;){var Zt,ue;xt>this.spaceLeft?(Zt=Math.ceil(this.spaceLeft/(xt/Dt.length)),ue=(xt=this.wordWidth(Dt.slice(0,Zt)))<=this.spaceLeft&&Ztthis.spaceLeft&&Zt>0;he||ue;)he?he=(xt=this.wordWidth(Dt.slice(0,--Zt)))>this.spaceLeft&&Zt>0:(he=(xt=this.wordWidth(Dt.slice(0,++Zt)))>this.spaceLeft&&Zt>0,ue=xt<=this.spaceLeft&&Ztthis.maxY||_A>this.maxY)&&this.nextSection();var nt="",Bt=0,Qt=0,Dt=0,xt=this.document.y,Tt=function(){return fA.textWidth=Bt+pA.wordSpacing*(Qt-1),fA.wordCount=Qt,fA.lineWidth=pA.lineWidth,xt=pA.document.y,pA.emit("line",nt,fA,pA),Dt++};return this.emit("sectionStart",fA,this),this.eachWord(Z,function(Ot,Zt,ue,he){if((null==he||he.required)&&(pA.emit("firstLine",fA,pA),pA.spaceLeft=pA.lineWidth),Zt<=pA.spaceLeft&&(nt+=Ot,Bt+=Zt,Qt++),ue.required||Zt>pA.spaceLeft){var Ie=pA.document.currentLineHeight(!0);if(null!=pA.height&&pA.ellipsis&&pA.document.y+2*Ie>pA.maxY&&pA.column>=pA.columns){for(!0===pA.ellipsis&&(pA.ellipsis="\u2026"),nt=nt.replace(/\s+$/,""),Bt=pA.wordWidth(nt+pA.ellipsis);nt&&Bt>pA.lineWidth;)nt=nt.slice(0,-1).replace(/\s+$/,""),Bt=pA.wordWidth(nt+pA.ellipsis);Bt<=pA.lineWidth&&(nt+=pA.ellipsis),Bt=pA.wordWidth(nt)}return ue.required&&(Zt>pA.spaceLeft&&(Tt(),nt=Ot,Bt=Zt,Qt=1),pA.emit("lastLine",fA,pA)),Tt(),pA.document.y+Ie>pA.maxY&&!pA.nextSection()?(Qt=0,nt="",!1):ue.required?(pA.spaceLeft=pA.lineWidth,nt="",Bt=0,Qt=0):(pA.spaceLeft=pA.lineWidth-Zt,nt=Ot,Bt=Zt,Qt=1)}return pA.spaceLeft-=Zt}),Qt>0&&(this.emit("lastLine",fA,this),Tt()),this.emit("sectionEnd",fA,this),!0===fA.continued?(Dt>1&&(this.continuedX=0),this.continuedX+=fA.textWidth||0,this.document.y=xt):this.document.x=this.startX}},{key:"nextSection",value:function(Z){if(this.emit("sectionEnd",Z,this),++this.column>this.columns){if(null!=this.height)return!1;var fA;this.document.continueOnNewPage(),this.column=1,this.startY=this.document.page.margins.top,this.maxY=this.document.page.maxY(),this.document.x=this.startX,this.document._fillColor&&(fA=this.document).fillColor.apply(fA,L(this.document._fillColor)),this.emit("pageBreak",Z,this)}else this.document.x+=this.lineWidth+this.columnGap,this.document.y=this.startY,this.emit("columnBreak",Z,this);return this.emit("sectionStart",Z,this),!0}}]),S}(B.EventEmitter),Pt=bA.number,jt={initText:function(){return this._line=this._line.bind(this),this.x=0,this.y=0,this._lineGap=0},lineGap:function(J){return this._lineGap=J,this},moveDown:function(J){return null==J&&(J=1),this.y+=this.currentLineHeight(!0)*J+this._lineGap,this},moveUp:function(J){return null==J&&(J=1),this.y-=this.currentLineHeight(!0)*J+this._lineGap,this},_text:function(J,S,X,Z,fA){var pA=this;Z=this._initOptions(S,X,Z),J=null==J?"":"".concat(J),Z.wordSpacing&&(J=J.replace(/\s{2,}/g," "));var _A=function(){Z.structParent&&Z.structParent.add(pA.struct(Z.structType||"P",[pA.markStructureContent(Z.structType||"P")]))};if(Z.width){var nt=this._wrapper;nt||((nt=new wt(this,Z)).on("line",fA),nt.on("firstLine",_A)),this._wrapper=Z.continued?nt:null,this._textOptions=Z.continued?Z:null,nt.wrap(J,Z)}else{var Qt,Bt=vA(J.split("\n"));try{for(Bt.s();!(Qt=Bt.n()).done;){var Dt=Qt.value;_A(),fA(Dt,Z)}}catch(xt){Bt.e(xt)}finally{Bt.f()}}return this},text:function(J,S,X,Z){return this._text(J,S,X,Z,this._line)},widthOfString:function(J){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._font.widthOfString(J,this._fontSize,S.features)+(S.characterSpacing||0)*(J.length-1)},heightOfString:function(J,S){var X=this,Z=this.x,fA=this.y;(S=this._initOptions(S)).height=1/0;var pA=S.lineGap||this._lineGap||0;this._text(J,this.x,this.y,S,function(){return X.y+=X.currentLineHeight(!0)+pA});var _A=this.y-fA;return this.x=Z,this.y=fA,_A},list:function(J,S,X,Z,fA){var pA=this,_A=(Z=this._initOptions(S,X,Z)).listType||"bullet",nt=Math.round(this._font.ascender/1e3*this._fontSize),Bt=nt/2,Qt=Z.bulletRadius||nt/3,Dt=Z.textIndent||("bullet"===_A?5*Qt:2*nt),xt=Z.bulletIndent||("bullet"===_A?8*Qt:2*nt),Tt=1,Ot=[],Zt=[],ue=[];!function Me(je){for(var Qn=1,Ze=0;Ze0&&void 0!==arguments[0]?arguments[0]:{},S=arguments.length>1?arguments[1]:void 0,X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"==typeof J&&(X=J,J=null);var Z=Object.assign({},X);if(this._textOptions)for(var fA in this._textOptions)"continued"!==fA&&void 0===Z[fA]&&(Z[fA]=this._textOptions[fA]);return null!=J&&(this.x=J),null!=S&&(this.y=S),!1!==Z.lineBreak&&(null==Z.width&&(Z.width=this.page.width-this.x-this.page.margins.right),Z.width=Math.max(Z.width,0)),Z.columns||(Z.columns=0),null==Z.columnGap&&(Z.columnGap=18),Z},_line:function(J){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},X=arguments.length>2?arguments[2]:void 0;this._fragment(J,this.x,this.y,S);var Z=S.lineGap||this._lineGap||0;return X?this.y+=this.currentLineHeight(!0)+Z:this.x+=this.widthOfString(J)},_fragment:function(J,S,X,Z){var pA,_A,nt,Bt,Qt,Dt,fA=this;if(0!==(J="".concat(J).replace(/\n/g,"")).length){var Tt=Z.wordSpacing||0,Ot=Z.characterSpacing||0;if(Z.width)switch(Z.align||"left"){case"right":Qt=this.widthOfString(J.replace(/\s+$/,""),Z),S+=Z.lineWidth-Qt;break;case"center":S+=Z.lineWidth/2-Z.textWidth/2;break;case"justify":Dt=J.trim().split(/\s+/),Qt=this.widthOfString(J.replace(/\s+/g,""),Z);var Zt=this.widthOfString(" ")+Ot;Tt=Math.max(0,(Z.lineWidth-Qt)/Math.max(1,Dt.length-1)-Zt)}if("number"==typeof Z.baseline)pA=-Z.baseline;else{switch(Z.baseline){case"svg-middle":pA=.5*this._font.xHeight;break;case"middle":case"svg-central":pA=.5*(this._font.descender+this._font.ascender);break;case"bottom":case"ideographic":pA=this._font.descender;break;case"alphabetic":pA=0;break;case"mathematical":pA=.5*this._font.ascender;break;case"hanging":pA=.8*this._font.ascender;break;default:pA=this._font.ascender}pA=pA/1e3*this._fontSize}var je,ue=Z.textWidth+Tt*(Z.wordCount-1)+Ot*(J.length-1);if(null!=Z.link&&this.link(S,X,ue,this.currentLineHeight(),Z.link),null!=Z.goTo&&this.goTo(S,X,ue,this.currentLineHeight(),Z.goTo),null!=Z.destination&&this.addNamedDestination(Z.destination,"XYZ",S,X,null),Z.underline){this.save(),Z.stroke||this.strokeColor.apply(this,L(this._fillColor||[]));var he=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(he);var Ie=X+this.currentLineHeight()-he;this.moveTo(S,Ie),this.lineTo(S+ue,Ie),this.stroke(),this.restore()}if(Z.strike){this.save(),Z.stroke||this.strokeColor.apply(this,L(this._fillColor||[]));var nn=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(nn);var Me=X+this.currentLineHeight()/2;this.moveTo(S,Me),this.lineTo(S+ue,Me),this.stroke(),this.restore()}this.save(),Z.oblique&&(je="number"==typeof Z.oblique?-Math.tan(Z.oblique*Math.PI/180):-.25,this.transform(1,0,0,1,S,X),this.transform(1,0,je,1,-je*pA,0),this.transform(1,0,0,1,-S,-X)),this.transform(1,0,0,-1,0,this.page.height),X=this.page.height-X-pA,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 ".concat(Pt(S)," ").concat(Pt(X)," Tm")),this.addContent("/".concat(this._font.id," ").concat(Pt(this._fontSize)," Tf"));var Qn=Z.fill&&Z.stroke?2:Z.stroke?1:0;if(Qn&&this.addContent("".concat(Qn," Tr")),Ot&&this.addContent("".concat(Pt(Ot)," Tc")),Tt){Dt=J.trim().split(/\s+/),Tt+=this.widthOfString(" ")+Ot,Tt*=1e3/this._fontSize,_A=[],Bt=[];var dn,Ze=vA(Dt);try{for(Ze.s();!(dn=Ze.n()).done;){var Nn=z(this._font.encode(dn.value,Z.features),2),Hn=Nn[1];_A=_A.concat(Nn[0]),Bt=Bt.concat(Hn);var rr={},Qr=Bt[Bt.length-1];for(var $n in Qr)rr[$n]=Qr[$n];rr.xAdvance+=Tt,Bt[Bt.length-1]=rr}}catch(Jr){Ze.e(Jr)}finally{Ze.f()}}else{var Kn=z(this._font.encode(J,Z.features),2);_A=Kn[0],Bt=Kn[1]}var Lr=this._fontSize/1e3,dr=[],br=0,Gr=!1,si=function(Vn){if(br ").concat(Pt(-bi)))}return br=Vn},Hr=function(Vn){if(si(Vn),dr.length>0)return fA.addContent("[".concat(dr.join(" "),"] TJ")),dr.length=0};for(nt=0;nt3&&void 0!==arguments[3]?arguments[3]:{};"object"==typeof S&&(Z=S,S=null),S=null!=(Qt=null!=S?S:Z.x)?Qt:this.x,X=null!=(Dt=null!=X?X:Z.y)?Dt:this.y,"string"==typeof J&&(nt=this._imageRegistry[J]),nt||(nt=J.width&&J.height?J:this.openImage(J)),nt.obj||nt.embed(this),null==this.page.xobjects[nt.label]&&(this.page.xobjects[nt.label]=nt.obj);var xt=Z.width||nt.width,Tt=Z.height||nt.height;if(Z.width&&!Z.height){var Ot=xt/nt.width;xt=nt.width*Ot,Tt=nt.height*Ot}else if(Z.height&&!Z.width){var Zt=Tt/nt.height;xt=nt.width*Zt,Tt=nt.height*Zt}else if(Z.scale)xt=nt.width*Z.scale,Tt=nt.height*Z.scale;else if(Z.fit){var ue=z(Z.fit,2);(Bt=nt.width/nt.height)>(_A=ue[0])/(fA=ue[1])?(xt=_A,Tt=_A/Bt):(Tt=fA,xt=fA*Bt)}else if(Z.cover){var he=z(Z.cover,2);(Bt=nt.width/nt.height)>(_A=he[0])/(fA=he[1])?(Tt=fA,xt=fA*Bt):(xt=_A,Tt=_A/Bt)}return(Z.fit||Z.cover)&&("center"===Z.align?S=S+_A/2-xt/2:"right"===Z.align&&(S=S+_A-xt),"center"===Z.valign?X=X+fA/2-Tt/2:"bottom"===Z.valign&&(X=X+fA-Tt)),null!=Z.link&&this.link(S,X,xt,Tt,Z.link),null!=Z.goTo&&this.goTo(S,X,xt,Tt,Z.goTo),null!=Z.destination&&this.addNamedDestination(Z.destination,"XYZ",S,X,null),this.y===X&&(this.y+=Tt),this.save(),this.transform(xt,0,0,-Tt,S,X+Tt),this.addContent("/".concat(nt.label," Do")),this.restore(),this},openImage:function(J){var S;return"string"==typeof J&&(S=this._imageRegistry[J]),S||(S=ce.open(J,"I".concat(++this._imageCount)),"string"==typeof J&&(this._imageRegistry[J]=S)),S}},Ge={annotate:function(J,S,X,Z,fA){for(var pA in fA.Type="Annot",fA.Rect=this._convertRect(J,S,X,Z),fA.Border=[0,0,0],"Link"===fA.Subtype&&void 0===fA.F&&(fA.F=4),"Link"!==fA.Subtype&&null==fA.C&&(fA.C=this._normalizeColor(fA.color||[0,0,0])),delete fA.color,"string"==typeof fA.Dest&&(fA.Dest=new String(fA.Dest)),fA){var _A=fA[pA];fA[pA[0].toUpperCase()+pA.slice(1)]=_A}var nt=this.ref(fA);return this.page.annotations.push(nt),nt.end(),this},note:function(J,S,X,Z,fA){var pA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return pA.Subtype="Text",pA.Contents=new String(fA),pA.Name="Comment",null==pA.color&&(pA.color=[243,223,92]),this.annotate(J,S,X,Z,pA)},goTo:function(J,S,X,Z,fA){var pA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return pA.Subtype="Link",pA.A=this.ref({S:"GoTo",D:new String(fA)}),pA.A.end(),this.annotate(J,S,X,Z,pA)},link:function(J,S,X,Z,fA){var pA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(pA.Subtype="Link","number"==typeof fA){var _A=this._root.data.Pages.data;if(!(fA>=0&&fA<_A.Kids.length))throw new Error("The document has no page ".concat(fA));pA.A=this.ref({S:"GoTo",D:[_A.Kids[fA],"XYZ",null,null,null]}),pA.A.end()}else pA.A=this.ref({S:"URI",URI:new String(fA)}),pA.A.end();return this.annotate(J,S,X,Z,pA)},_markup:function(J,S,X,Z){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},_A=z(this._convertRect(J,S,X,Z),4),nt=_A[0],Bt=_A[1],Qt=_A[2],Dt=_A[3];return fA.QuadPoints=[nt,Dt,Qt,Dt,nt,Bt,Qt,Bt],fA.Contents=new String,this.annotate(J,S,X,Z,fA)},highlight:function(J,S,X,Z){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Highlight",null==fA.color&&(fA.color=[241,238,148]),this._markup(J,S,X,Z,fA)},underline:function(J,S,X,Z){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Underline",this._markup(J,S,X,Z,fA)},strike:function(J,S,X,Z){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="StrikeOut",this._markup(J,S,X,Z,fA)},lineAnnotation:function(J,S,X,Z){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Line",fA.Contents=new String,fA.L=[J,this.page.height-S,X,this.page.height-Z],this.annotate(J,S,X,Z,fA)},rectAnnotation:function(J,S,X,Z){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Square",fA.Contents=new String,this.annotate(J,S,X,Z,fA)},ellipseAnnotation:function(J,S,X,Z){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Circle",fA.Contents=new String,this.annotate(J,S,X,Z,fA)},textAnnotation:function(J,S,X,Z,fA){var pA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return pA.Subtype="FreeText",pA.Contents=new String(fA),pA.DA=new String,this.annotate(J,S,X,Z,pA)},fileAnnotation:function(J,S,X,Z){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},pA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},_A=this.file(fA.src,Object.assign({hidden:!0},fA));return pA.Subtype="FileAttachment",pA.FS=_A,pA.Contents?pA.Contents=new String(pA.Contents):_A.data.Desc&&(pA.Contents=_A.data.Desc),this.annotate(J,S,X,Z,pA)},_convertRect:function(J,S,X,Z){var fA=S;S+=Z;var pA=J+X,_A=z(this._ctm,6),nt=_A[0],Bt=_A[1],Qt=_A[2],Dt=_A[3],xt=_A[4],Tt=_A[5];return[J=nt*J+Qt*S+xt,S=Bt*J+Dt*S+Tt,pA=nt*pA+Qt*fA+xt,fA=Bt*pA+Dt*fA+Tt]}},Ne=function(){function IA(J,S,X,Z){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{expanded:!1};f(this,IA),this.document=J,this.options=fA,this.outlineData={},null!==Z&&(this.outlineData.Dest=[Z.dictionary,"Fit"]),null!==S&&(this.outlineData.Parent=S),null!==X&&(this.outlineData.Title=new String(X)),this.dictionary=this.document.ref(this.outlineData),this.children=[]}return w(IA,[{key:"addItem",value:function(S){var Z=new IA(this.document,this.dictionary,S,this.document.page,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{expanded:!1});return this.children.push(Z),Z}},{key:"endOutline",value:function(){if(this.children.length>0){this.options.expanded&&(this.outlineData.Count=this.children.length);var X=this.children[this.children.length-1];this.outlineData.First=this.children[0].dictionary,this.outlineData.Last=X.dictionary;for(var Z=0,fA=this.children.length;Z0&&(pA.outlineData.Prev=this.children[Z-1].dictionary),Z0)return this._root.data.Outlines=this.outline.dictionary,this._root.data.PageMode="UseOutlines"}},Se=function(){function IA(J,S){f(this,IA),this.refs=[{pageRef:J,mcid:S}]}return w(IA,[{key:"push",value:function(S){var X=this;S.refs.forEach(function(Z){return X.refs.push(Z)})}}]),IA}(),_e=function(){function IA(J,S){var X=this,Z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},fA=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;f(this,IA),this.document=J,this._attached=!1,this._ended=!1,this._flushed=!1,this.dictionary=J.ref({S});var pA=this.dictionary.data;(Array.isArray(Z)||this._isValidChild(Z))&&(fA=Z,Z={}),void 0!==Z.title&&(pA.T=new String(Z.title)),void 0!==Z.lang&&(pA.Lang=new String(Z.lang)),void 0!==Z.alt&&(pA.Alt=new String(Z.alt)),void 0!==Z.expanded&&(pA.E=new String(Z.expanded)),void 0!==Z.actual&&(pA.ActualText=new String(Z.actual)),this._children=[],fA&&(Array.isArray(fA)||(fA=[fA]),fA.forEach(function(_A){return X.add(_A)}),this.end())}return w(IA,[{key:"add",value:function(S){if(this._ended)throw new Error("Cannot add child to already-ended structure element");if(!this._isValidChild(S))throw new Error("Invalid structure element child");return S instanceof IA&&(S.setParent(this.dictionary),this._attached&&S.setAttached()),S instanceof Se&&this._addContentToParentTree(S),"function"==typeof S&&this._attached&&(S=this._contentForClosure(S)),this._children.push(S),this}},{key:"_addContentToParentTree",value:function(S){var X=this;S.refs.forEach(function(Z){var fA=Z.pageRef,pA=Z.mcid;X.document.getStructParentTree().get(fA.data.StructParents)[pA]=X.dictionary})}},{key:"setParent",value:function(S){if(this.dictionary.data.P)throw new Error("Structure element added to more than one parent");this.dictionary.data.P=S,this._flush()}},{key:"setAttached",value:function(){var S=this;this._attached||(this._children.forEach(function(X,Z){X instanceof IA&&X.setAttached(),"function"==typeof X&&(S._children[Z]=S._contentForClosure(X))}),this._attached=!0,this._flush())}},{key:"end",value:function(){this._ended||(this._children.filter(function(S){return S instanceof IA}).forEach(function(S){return S.end()}),this._ended=!0,this._flush())}},{key:"_isValidChild",value:function(S){return S instanceof IA||S instanceof Se||"function"==typeof S}},{key:"_contentForClosure",value:function(S){var X=this.document.markStructureContent(this.dictionary.data.S);return S(),this.document.endMarkedContent(),this._addContentToParentTree(X),X}},{key:"_isFlushable",value:function(){return!(!this.dictionary.data.P||!this._ended)&&this._children.every(function(S){return"function"!=typeof S&&(!(S instanceof IA)||S._isFlushable())})}},{key:"_flush",value:function(){var S=this;this._flushed||!this._isFlushable()||(this.dictionary.data.K=[],this._children.forEach(function(X){return S._flushChild(X)}),this.dictionary.end(),this._children=[],this.dictionary.data.K=null,this._flushed=!0)}},{key:"_flushChild",value:function(S){var X=this;S instanceof IA&&this.dictionary.data.K.push(S.dictionary),S instanceof Se&&S.refs.forEach(function(Z){var fA=Z.pageRef,pA=Z.mcid;X.dictionary.data.Pg||(X.dictionary.data.Pg=fA),X.dictionary.data.K.push(X.dictionary.data.Pg===fA?pA:{Type:"MCR",Pg:fA,MCID:pA})})}}]),IA}(),Fn=function(IA){y(S,IA);var J=F(S);function S(){return f(this,S),J.apply(this,arguments)}return w(S,[{key:"_compareKeys",value:function(Z,fA){return parseInt(Z)-parseInt(fA)}},{key:"_keysName",value:function(){return"Nums"}},{key:"_dataForKey",value:function(Z){return parseInt(Z)}}]),S}(_),rn={initMarkings:function(J){this.structChildren=[],J.tagged&&(this.getMarkInfoDictionary().data.Marked=!0,this.getStructTreeRoot())},markContent:function(J){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("Artifact"===J||S&&S.mcid){var X=0;for(this.page.markings.forEach(function(fA){(X||fA.structContent||"Artifact"===fA.tag)&&X++});X--;)this.endMarkedContent()}if(!S)return this.page.markings.push({tag:J}),this.addContent("/".concat(J," BMC")),this;this.page.markings.push({tag:J,options:S});var Z={};return void 0!==S.mcid&&(Z.MCID=S.mcid),"Artifact"===J&&("string"==typeof S.type&&(Z.Type=S.type),Array.isArray(S.bbox)&&(Z.BBox=[S.bbox[0],this.page.height-S.bbox[3],S.bbox[2],this.page.height-S.bbox[1]]),Array.isArray(S.attached)&&S.attached.every(function(fA){return"string"==typeof fA})&&(Z.Attached=S.attached)),"Span"===J&&(S.lang&&(Z.Lang=new String(S.lang)),S.alt&&(Z.Alt=new String(S.alt)),S.expanded&&(Z.E=new String(S.expanded)),S.actual&&(Z.ActualText=new String(S.actual))),this.addContent("/".concat(J," ").concat(bA.convert(Z)," BDC")),this},markStructureContent:function(J){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},X=this.getStructParentTree().get(this.page.structParentTreeKey),Z=X.length;X.push(null),this.markContent(J,Y(Y({},S),{},{mcid:Z}));var fA=new Se(this.page.dictionary,Z);return this.page.markings.slice(-1)[0].structContent=fA,fA},endMarkedContent:function(){return this.page.markings.pop(),this.addContent("EMC"),this},struct:function(J){return new _e(this,J,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)},addStructure:function(J){var S=this.getStructTreeRoot();return J.setParent(S),J.setAttached(),this.structChildren.push(J),S.data.K||(S.data.K=[]),S.data.K.push(J.dictionary),this},initPageMarkings:function(J){var S=this;J.forEach(function(X){if(X.structContent){var Z=X.structContent,fA=S.markStructureContent(X.tag,X.options);Z.push(fA),S.page.markings.slice(-1)[0].structContent=Z}else S.markContent(X.tag,X.options)})},endPageMarkings:function(J){var S=J.markings;return S.forEach(function(){return J.write("EMC")}),J.markings=[],S},getMarkInfoDictionary:function(){return this._root.data.MarkInfo||(this._root.data.MarkInfo=this.ref({})),this._root.data.MarkInfo},getStructTreeRoot:function(){return this._root.data.StructTreeRoot||(this._root.data.StructTreeRoot=this.ref({Type:"StructTreeRoot",ParentTree:new Fn,ParentTreeNextKey:0})),this._root.data.StructTreeRoot},getStructParentTree:function(){return this.getStructTreeRoot().data.ParentTree},createStructParentTreeNextKey:function(){this.getMarkInfoDictionary();var J=this.getStructTreeRoot(),S=J.data.ParentTreeNextKey++;return J.data.ParentTree.add(S,[]),S},endMarkings:function(){var J=this._root.data.StructTreeRoot;J&&(J.end(),this.structChildren.forEach(function(S){return S.end()})),this._root.data.MarkInfo&&this._root.data.MarkInfo.end()}},Cn={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},In={left:0,center:1,right:2},an={value:"V",defaultValue:"DV"},fn={zip:"0",zipPlus4:"1",zip4:"1",phone:"2",ssn:"3"},cn_number={nDec:0,sepComma:!1,negStyle:"MinusBlack",currency:"",currencyPrepend:!0},cn_percent={nDec:0,sepComma:!1},Xn={initForm:function(){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();var J={Fields:[],NeedAppearances:!0,DA:new String("/".concat(this._font.id," 0 Tf 0 g")),DR:{Font:{}}};J.DR.Font[this._font.id]=this._font.ref();var S=this.ref(J);return this._root.data.AcroForm=S,this},endAcroForm:function(){var J=this;if(this._root.data.AcroForm){if(!Object.keys(this._acroform.fonts).length&&!this._acroform.defaultFont)throw new Error("No fonts specified for PDF form");var S=this._root.data.AcroForm.data.DR.Font;Object.keys(this._acroform.fonts).forEach(function(X){S[X]=J._acroform.fonts[X]}),this._root.data.AcroForm.data.Fields.forEach(function(X){J._endChild(X)}),this._root.data.AcroForm.end()}return this},_endChild:function(J){var S=this;return Array.isArray(J.data.Kids)&&(J.data.Kids.forEach(function(X){S._endChild(X)}),J.end()),this},formField:function(J){var X=this._fieldDict(J,null,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),Z=this.ref(X);return this._addToParent(Z),Z},formAnnotation:function(J,S,X,Z,fA,pA){var nt=this._fieldDict(J,S,arguments.length>6&&void 0!==arguments[6]?arguments[6]:{});return nt.Subtype="Widget",void 0===nt.F&&(nt.F=4),this.annotate(X,Z,fA,pA,nt),this._addToParent(this.page.annotations[this.page.annotations.length-1])},formText:function(J,S,X,Z,fA){return this.formAnnotation(J,"text",S,X,Z,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formPushButton:function(J,S,X,Z,fA){return this.formAnnotation(J,"pushButton",S,X,Z,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formCombo:function(J,S,X,Z,fA){return this.formAnnotation(J,"combo",S,X,Z,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formList:function(J,S,X,Z,fA){return this.formAnnotation(J,"list",S,X,Z,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formRadioButton:function(J,S,X,Z,fA){return this.formAnnotation(J,"radioButton",S,X,Z,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formCheckbox:function(J,S,X,Z,fA){return this.formAnnotation(J,"checkbox",S,X,Z,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},_addToParent:function(J){var S=J.data.Parent;return S?(S.data.Kids||(S.data.Kids=[]),S.data.Kids.push(J)):this._root.data.AcroForm.data.Fields.push(J),this},_fieldDict:function(J,S){var X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._acroform)throw new Error("Call document.initForms() method before adding form elements to document");var Z=Object.assign({},X);return null!==S&&(Z=this._resolveType(S,X)),Z=this._resolveFlags(Z),Z=this._resolveJustify(Z),Z=this._resolveFont(Z),Z=this._resolveStrings(Z),Z=this._resolveColors(Z),(Z=this._resolveFormat(Z)).T=new String(J),Z.parent&&(Z.Parent=Z.parent,delete Z.parent),Z},_resolveType:function(J,S){if("text"===J)S.FT="Tx";else if("pushButton"===J)S.FT="Btn",S.pushButton=!0;else if("radioButton"===J)S.FT="Btn",S.radioButton=!0;else if("checkbox"===J)S.FT="Btn";else if("combo"===J)S.FT="Ch",S.combo=!0;else{if("list"!==J)throw new Error("Invalid form annotation type '".concat(J,"'"));S.FT="Ch"}return S},_resolveFormat:function(J){var S=J.format;if(S&&S.type){var X,Z,fA="";if(void 0!==fn[S.type])X="AFSpecial_Keystroke",Z="AFSpecial_Format",fA=fn[S.type];else{var pA=S.type.charAt(0).toUpperCase()+S.type.slice(1);if(X="AF".concat(pA,"_Keystroke"),Z="AF".concat(pA,"_Format"),"date"===S.type)X+="Ex",fA=String(S.param);else if("time"===S.type)fA=String(S.param);else if("number"===S.type){var _A=Object.assign({},cn_number,S);fA=String([String(_A.nDec),_A.sepComma?"0":"1",'"'+_A.negStyle+'"',"null",'"'+_A.currency+'"',String(_A.currencyPrepend)].join(","))}else if("percent"===S.type){var nt=Object.assign({},cn_percent,S);fA=String([String(nt.nDec),nt.sepComma?"0":"1"].join(","))}}J.AA=J.AA?J.AA:{},J.AA.K={S:"JavaScript",JS:new String("".concat(X,"(").concat(fA,");"))},J.AA.F={S:"JavaScript",JS:new String("".concat(Z,"(").concat(fA,");"))}}return delete J.format,J},_resolveColors:function(J){var S=this._normalizeColor(J.backgroundColor);return S&&(J.MK||(J.MK={}),J.MK.BG=S),(S=this._normalizeColor(J.borderColor))&&(J.MK||(J.MK={}),J.MK.BC=S),delete J.backgroundColor,delete J.borderColor,J},_resolveFlags:function(J){var S=0;return Object.keys(J).forEach(function(X){Cn[X]&&(S|=Cn[X],delete J[X])}),0!==S&&(J.Ff=J.Ff?J.Ff:0,J.Ff|=S),J},_resolveJustify:function(J){var S=0;return void 0!==J.align&&("number"==typeof In[J.align]&&(S=In[J.align]),delete J.align),0!==S&&(J.Q=S),J},_resolveFont:function(J){if(null===this._acroform.fonts[this._font.id]&&(this._acroform.fonts[this._font.id]=this._font.ref()),this._acroform.defaultFont!==this._font.name){J.DR={Font:{}};var S=J.fontSize||0;J.DR.Font[this._font.id]=this._font.ref(),J.DA=new String("/".concat(this._font.id," ").concat(S," Tf 0 g"))}return J},_resolveStrings:function(J){var S=[];function X(Z){if(Array.isArray(Z))for(var fA=0;fA1&&void 0!==arguments[1]?arguments[1]:{};S.name=S.name||J;var Z,X={Type:"EmbeddedFile",Params:{}};if(!J)throw new Error("No src specified");if(i.isBuffer(J))Z=J;else if(J instanceof ArrayBuffer)Z=i.from(new Uint8Array(J));else{var fA;if(fA=/^data:(.*);base64,(.*)$/.exec(J))fA[1]&&(X.Subtype=fA[1].replace("/","#2F")),Z=i.from(fA[2],"base64");else{if(!(Z=e.readFileSync(J)))throw new Error("Could not read contents of file at filepath ".concat(J));var pA=e.statSync(J),nt=pA.ctime;X.Params.CreationDate=pA.birthtime,X.Params.ModDate=nt}}S.creationDate instanceof Date&&(X.Params.CreationDate=S.creationDate),S.modifiedDate instanceof Date&&(X.Params.ModDate=S.modifiedDate),S.type&&(X.Subtype=S.type.replace("/","#2F"));var Qt,Bt=h.default.MD5(h.default.lib.WordArray.create(new Uint8Array(Z)));X.Params.CheckSum=new String(Bt),X.Params.Size=Z.byteLength,this._fileRegistry||(this._fileRegistry={});var Dt=this._fileRegistry[S.name];Dt&&Yr(X,Dt)?Qt=Dt.ref:((Qt=this.ref(X)).end(Z),this._fileRegistry[S.name]=Y(Y({},X),{},{ref:Qt}));var xt={Type:"Filespec",F:new String(S.name),EF:{F:Qt},UF:new String(S.name)};S.description&&(xt.Desc=new String(S.description));var Tt=this.ref(xt);return Tt.end(),S.hidden||this.addNamedEmbeddedFile(S.name,Tt),Tt}};function Yr(IA,J){return IA.Subtype===J.Subtype&&IA.Params.CheckSum.toString()===J.Params.CheckSum.toString()&&IA.Params.Size===J.Params.Size&&IA.Params.CreationDate===J.Params.CreationDate&&IA.Params.ModDate===J.Params.ModDate}var nr=function(IA){y(S,IA);var J=F(S);function S(){var X,Z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};switch(f(this,S),(X=J.call(this,Z)).options=Z,Z.pdfVersion){case"1.4":X.version=1.4;break;case"1.5":X.version=1.5;break;case"1.6":X.version=1.6;break;case"1.7":case"1.7ext3":X.version=1.7;break;default:X.version=1.3}X.compress=null==X.options.compress||X.options.compress,X._pageBuffer=[],X._pageBufferStart=0,X._offsets=[],X._waiting=0,X._ended=!1,X._offset=0;var fA=X.ref({Type:"Pages",Count:0,Kids:[]}),pA=X.ref({Dests:new V});if(X._root=X.ref({Type:"Catalog",Pages:fA,Names:pA}),X.options.lang&&(X._root.data.Lang=new String(X.options.lang)),X.page=null,X.initColor(),X.initVector(),X.initFonts(Z.font),X.initText(),X.initImages(),X.initOutline(),X.initMarkings(Z),X.info={Producer:"PDFKit",Creator:"PDFKit",CreationDate:new Date},X.options.info)for(var _A in X.options.info)X.info[_A]=X.options.info[_A];return X.options.displayTitle&&(X._root.data.ViewerPreferences=X.ref({DisplayDocTitle:!0})),X._id=R.generateFileID(X.info),X._security=R.create(U(X),Z),X._write("%PDF-".concat(X.version)),X._write("%\xff\xff\xff\xff"),!1!==X.options.autoFirstPage&&X.addPage(),X}return w(S,[{key:"addPage",value:function(Z){null==Z&&(Z=this.options),this.options.bufferPages||this.flushPages(),this.page=new $(this,Z),this._pageBuffer.push(this.page);var fA=this._root.data.Pages.data;return fA.Kids.push(this.page.dictionary),fA.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}},{key:"continueOnNewPage",value:function(Z){var fA=this.endPageMarkings(this.page);return this.addPage(Z),this.initPageMarkings(fA),this}},{key:"bufferedPageRange",value:function(){return{start:this._pageBufferStart,count:this._pageBuffer.length}}},{key:"switchToPage",value:function(Z){var fA;if(!(fA=this._pageBuffer[Z-this._pageBufferStart]))throw new Error("switchToPage(".concat(Z,") out of bounds, current buffer covers pages ").concat(this._pageBufferStart," to ").concat(this._pageBufferStart+this._pageBuffer.length-1));return this.page=fA}},{key:"flushPages",value:function(){var Z=this._pageBuffer;this._pageBuffer=[],this._pageBufferStart+=Z.length;var pA,fA=vA(Z);try{for(fA.s();!(pA=fA.n()).done;){var _A=pA.value;this.endPageMarkings(_A),_A.end()}}catch(nt){fA.e(nt)}finally{fA.f()}}},{key:"addNamedDestination",value:function(Z){for(var fA=arguments.length,pA=new Array(fA>1?fA-1:0),_A=1;_A>z&AA]},getCombiningClass:function(mA){var nA=p.get(mA);return y.combiningClasses[nA>>L&lA]},getScript:function(mA){var nA=p.get(mA);return y.scripts[nA>>W&MA]},getEastAsianWidth:function(mA){var nA=p.get(mA);return y.eaw[nA>>10&cA]},getNumericValue:function(mA){var nA=p.get(mA),EA=1023&nA;if(0===EA)return null;if(EA<=50)return EA-1;if(EA<480)return((EA>>4)-12)/(1+(15&EA));if(EA<768){nA=(EA>>5)-14;for(var ot=2+(31&EA);ot>0;)nA*=10,ot--;return nA}nA=(EA>>2)-191;for(var TA=1+(3&EA);TA>0;)nA*=60,TA--;return nA},isAlphabetic:uA,isDigit:CA,isPunctuation:NA,isLowerCase:bA,isUpperCase:XA,isTitleCase:q,isWhiteSpace:O,isBaseForm:$,isMark:V});I.default=Q},4781:function(T,I,n){"use strict";n(7042),n(6992),n(1539),n(2472),n(2990),n(8927),n(3105),n(5035),n(4345),n(7174),n(2846),n(4731),n(7209),n(6319),n(8867),n(7789),n(3739),n(9368),n(4483),n(2056),n(3462),n(678),n(7462),n(3824),n(5021),n(2974),n(5016),n(9135);var c=n(311),o=n(1753).swap32LE;T.exports=function(){function D(N){var F="function"==typeof N.readUInt32BE&&"function"==typeof N.slice;if(F||N instanceof Uint8Array){var z;if(F)this.highStart=N.readUInt32LE(0),this.errorValue=N.readUInt32LE(4),z=N.readUInt32LE(8),N=N.slice(12);else{var L=new DataView(N.buffer);this.highStart=L.getUint32(0,!0),this.errorValue=L.getUint32(4,!0),z=L.getUint32(8,!0),N=N.subarray(12)}N=c(N,new Uint8Array(z)),N=c(N,new Uint8Array(z)),o(N),this.data=new Uint32Array(N.buffer)}else{var W=N;this.data=W.data,this.highStart=W.highStart,this.errorValue=W.errorValue}}return D.prototype.get=function(F){return F<0||F>1114111?this.errorValue:F<55296||F>56319&&F<=65535?this.data[(this.data[F>>5]<<2)+(31&F)]:F<=65535?this.data[(this.data[2048+(F-55296>>5)]<<2)+(31&F)]:F>11)]+(F>>5&63)]<<2)+(31&F)]:this.data[this.data.length-4]},D}()},1753:function(T,I,n){"use strict";n(6992),n(1539),n(2472),n(2990),n(8927),n(3105),n(5035),n(4345),n(7174),n(2846),n(4731),n(7209),n(6319),n(8867),n(7789),n(3739),n(9368),n(4483),n(2056),n(3462),n(678),n(7462),n(3824),n(5021),n(2974),n(5016),n(9135);var c=18===new Uint8Array(new Uint32Array([305419896]).buffer)[0],i=function(a,B,E){var u=a[B];a[B]=a[E],a[E]=u};T.exports={swap32LE:function(a){c&&function(a){for(var B=a.length,E=0;E/)){for(;at=$A();)KA.childNodes.push(at),at.parentNode=KA,KA.textContent+=3===at.nodeType||4===at.nodeType?at.nodeValue:at.textContent;return(LA=tt.match(/^<\/([\w:.-]+)\s*>/,!0))?(LA[1]===KA.nodeName||(ne('parseXml: tag not matching, opening "'+KA.nodeName+'" & closing "'+LA[1]+'"'),zA=!0),KA):(ne('parseXml: tag not matching, opening "'+KA.nodeName+'" & not closing'),zA=!0,KA)}if(tt.match(/^\/>/))return KA;ne('parseXml: tag could not be parsed "'+KA.nodeName+'"'),zA=!0}else{if(LA=tt.match(/^/))return new YA(null,8,LA,zA);if(LA=tt.match(/^<\?[\s\S]*?\?>/))return new YA(null,7,LA,zA);if(LA=tt.match(/^/))return new YA(null,10,LA,zA);if(LA=tt.match(/^/,!0))return new YA("#cdata-section",4,LA[1],zA);if(LA=tt.match(/^([^<]+)/,!0))return new YA("#text",3,AA(LA[1]),zA)}};RA=HA();)1!==RA.nodeType||UA?(1===RA.nodeType||3===RA.nodeType&&""!==RA.nodeValue.trim())&&ne("parseXml: data after document end has been discarded"):UA=RA;return tt.matchAll()&&ne("parseXml: parsing error"),UA}function AA(WA){return WA.replace(/&(?:#([0-9]+)|#[xX]([0-9A-Fa-f]+)|([0-9A-Za-z]+));/g,function(YA,tt,UA,RA){return tt?String.fromCharCode(parseInt(tt,10)):UA?String.fromCharCode(parseInt(UA,16)):RA&&C[RA]?String.fromCharCode(C[RA]):YA})}function lA(WA){var YA,tt;return WA=(WA||"").trim(),(YA=E[WA])?tt=[YA.slice(),1]:(YA=WA.match(/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)$/i))?(YA[1]=parseInt(YA[1]),YA[2]=parseInt(YA[2]),YA[3]=parseInt(YA[3]),YA[4]=parseFloat(YA[4]),YA[1]<256&&YA[2]<256&&YA[3]<256&&YA[4]<=1&&(tt=[YA.slice(1,4),YA[4]])):(YA=WA.match(/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)$/i))?(YA[1]=parseInt(YA[1]),YA[2]=parseInt(YA[2]),YA[3]=parseInt(YA[3]),YA[1]<256&&YA[2]<256&&YA[3]<256&&(tt=[YA.slice(1,4),1])):(YA=WA.match(/^rgb\(\s*([0-9.]+)%\s*,\s*([0-9.]+)%\s*,\s*([0-9.]+)%\s*\)$/i))?(YA[1]=2.55*parseFloat(YA[1]),YA[2]=2.55*parseFloat(YA[2]),YA[3]=2.55*parseFloat(YA[3]),YA[1]<256&&YA[2]<256&&YA[3]<256&&(tt=[YA.slice(1,4),1])):(YA=WA.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i))?tt=[[parseInt(YA[1],16),parseInt(YA[2],16),parseInt(YA[3],16)],1]:(YA=WA.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i))&&(tt=[[17*parseInt(YA[1],16),17*parseInt(YA[2],16),17*parseInt(YA[3],16)],1]),en?en(tt,WA):tt}function MA(WA,YA,tt){var UA=WA[0].slice(),RA=WA[1]*YA;if(tt){for(var zA=0;zA=0;YA--)WA=cA(bn[YA].savedMatrix,WA);return WA}function vA(){return(new VA).M(0,0).L(o.page.width,0).L(o.page.width,o.page.height).L(0,o.page.height).transform(FA(BA())).getBoundingBox()}function FA(WA){var YA=WA[0]*WA[3]-WA[1]*WA[2];return[WA[3]/YA,-WA[1]/YA,-WA[2]/YA,WA[0]/YA,(WA[2]*WA[5]-WA[3]*WA[4])/YA,(WA[1]*WA[4]-WA[0]*WA[5])/YA]}function _(WA){var YA=bA(WA[0]),tt=bA(WA[1]),UA=bA(WA[2]),RA=bA(WA[3]),zA=bA(WA[4]),HA=bA(WA[5]);if(NA(YA*RA-tt*UA,0))return[YA,tt,UA,RA,zA,HA]}function dA(WA){var YA=WA[2]||0,tt=WA[1]||0,UA=WA[0]||0;if(CA(YA,0)&&CA(tt,0))return[];if(CA(YA,0))return[-UA/tt];var RA=tt*tt-4*YA*UA;return NA(RA,0)&&RA>0?[(-tt+Math.sqrt(RA))/(2*YA),(-tt-Math.sqrt(RA))/(2*YA)]:CA(RA,0)?[-tt/(2*YA)]:[]}function uA(WA,YA){return(YA[0]||0)+(YA[1]||0)*WA+(YA[2]||0)*WA*WA+(YA[3]||0)*WA*WA*WA}function CA(WA,YA){return Math.abs(WA-YA)<1e-10}function NA(WA,YA){return Math.abs(WA-YA)>=1e-10}function bA(WA){return WA>-1e21&&WA<1e21?Math.round(1e6*WA)/1e6:0}function q(WA){for(var UA,YA=new It((WA||"").trim()),tt=[1,0,0,1,0,0];UA=YA.match(/^([A-Za-z]+)\s*[(]([^(]+)[)]/,!0);){for(var RA=UA[1],zA=[],HA=new It(UA[2].trim()),$A=void 0;$A=HA.matchNumber();)zA.push(Number($A)),HA.matchSeparator();if("matrix"===RA&&6===zA.length)tt=cA(tt,[zA[0],zA[1],zA[2],zA[3],zA[4],zA[5]]);else if("translate"===RA&&2===zA.length)tt=cA(tt,[1,0,0,1,zA[0],zA[1]]);else if("translate"===RA&&1===zA.length)tt=cA(tt,[1,0,0,1,zA[0],0]);else if("scale"===RA&&2===zA.length)tt=cA(tt,[zA[0],0,0,zA[1],0,0]);else if("scale"===RA&&1===zA.length)tt=cA(tt,[zA[0],0,0,zA[0],0,0]);else if("rotate"===RA&&3===zA.length){var LA=zA[0]*Math.PI/180;tt=cA(tt,[1,0,0,1,zA[1],zA[2]],[Math.cos(LA),Math.sin(LA),-Math.sin(LA),Math.cos(LA),0,0],[1,0,0,1,-zA[1],-zA[2]])}else if("rotate"===RA&&1===zA.length){var at=zA[0]*Math.PI/180;tt=cA(tt,[Math.cos(at),Math.sin(at),-Math.sin(at),Math.cos(at),0,0])}else if("skewX"===RA&&1===zA.length){var KA=zA[0]*Math.PI/180;tt=cA(tt,[1,0,Math.tan(KA),1,0,0])}else{if("skewY"!==RA||1!==zA.length)return;var dt=zA[0]*Math.PI/180;tt=cA(tt,[1,Math.tan(dt),0,1,0,0])}YA.matchSeparator()}if(!YA.matchAll())return tt}function O(WA,YA,tt,UA,RA,zA){var HA=(WA||"").trim().match(/^(none)$|^x(Min|Mid|Max)Y(Min|Mid|Max)(?:\s+(meet|slice))?$/)||[],$A=HA[1]||HA[4]||"meet",KA=YA/UA,dt=tt/RA,Nt={Min:0,Mid:.5,Max:1}[HA[2]||"Mid"]-(zA||0),Ut={Min:0,Mid:.5,Max:1}[HA[3]||"Mid"]-(zA||0);return"slice"===$A?dt=KA=Math.max(KA,dt):"meet"===$A&&(dt=KA=Math.min(KA,dt)),[KA,0,0,dt,Nt*(YA-UA*KA),Ut*(tt-RA*dt)]}function $(WA){var YA=Object.create(null);WA=(WA||"").trim().split(/;/);for(var tt=0;ttBe&&(Ht=Be,Be=le,le=Ht),Wt>ce&&(Ht=ce,ce=Wt,Wt=Ht);for(var De=dA(Nt),Ge=0;Ge=0&&De[Ge]<=1){var Ne=uA(De[Ge],KA);NeBe&&(Be=Ne)}for(var xe=dA(Ut),Se=0;Se=0&&xe[Se]<=1){var _e=uA(xe[Se],dt);_ece&&(ce=_e)}return[le,Wt,Be,ce]},this.getPointAtLength=function(Ht){if(CA(Ht,0))return this.startPoint;if(CA(Ht,this.totalLength))return this.endPoint;if(!(Ht<0||Ht>this.totalLength))for(var le=1;le<=at;le++){var Wt=kt[le-1],Be=kt[le];if(Wt<=Ht&&Ht<=Be){var ce=(le-(Be-Ht)/(Be-Wt))/at,De=uA(ce,KA),Ge=uA(ce,dt),Ne=uA(ce,Nt),xe=uA(ce,Ut);return[De,Ge,Math.atan2(xe,Ne)]}}}},JA=function(YA,tt,UA,RA){this.totalLength=Math.sqrt((UA-YA)*(UA-YA)+(RA-tt)*(RA-tt)),this.startPoint=[YA,tt,Math.atan2(RA-tt,UA-YA)],this.endPoint=[UA,RA,Math.atan2(RA-tt,UA-YA)],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){var HA=zA/this.totalLength||0;return[this.startPoint[0]+HA*(this.endPoint[0]-this.startPoint[0]),this.startPoint[1]+HA*(this.endPoint[1]-this.startPoint[1]),this.startPoint[2]]}}},VA=function WA(){this.pathCommands=[],this.pathSegments=[],this.startPoint=null,this.endPoint=null,this.totalLength=0;var zA,HA,$A,YA=0,tt=0,UA=0,RA=0;this.move=function(LA,at){return YA=UA=LA,tt=RA=at,null},this.line=function(LA,at){var KA=new JA(UA,RA,LA,at);return UA=LA,RA=at,KA},this.curve=function(LA,at,KA,dt,Nt,Ut){var kt=new ut(UA,RA,LA,at,KA,dt,Nt,Ut);return UA=Nt,RA=Ut,kt},this.close=function(){var LA=new JA(UA,RA,YA,tt);return UA=YA,RA=tt,LA},this.addCommand=function(LA){this.pathCommands.push(LA);var at=this[LA[0]].apply(this,LA.slice(3));at&&(at.hasStart=LA[1],at.hasEnd=LA[2],this.startPoint=this.startPoint||at.startPoint,this.endPoint=at.endPoint,this.pathSegments.push(at),this.totalLength+=at.totalLength)},this.M=function(LA,at){return this.addCommand(["move",!0,!0,LA,at]),zA="M",this},this.m=function(LA,at){return this.M(UA+LA,RA+at)},this.Z=this.z=function(){return this.addCommand(["close",!0,!0]),zA="Z",this},this.L=function(LA,at){return this.addCommand(["line",!0,!0,LA,at]),zA="L",this},this.l=function(LA,at){return this.L(UA+LA,RA+at)},this.H=function(LA){return this.L(LA,RA)},this.h=function(LA){return this.L(UA+LA,RA)},this.V=function(LA){return this.L(UA,LA)},this.v=function(LA){return this.L(UA,RA+LA)},this.C=function(LA,at,KA,dt,Nt,Ut){return this.addCommand(["curve",!0,!0,LA,at,KA,dt,Nt,Ut]),zA="C",HA=KA,$A=dt,this},this.c=function(LA,at,KA,dt,Nt,Ut){return this.C(UA+LA,RA+at,UA+KA,RA+dt,UA+Nt,RA+Ut)},this.S=function(LA,at,KA,dt){return this.C(UA+("C"===zA?UA-HA:0),RA+("C"===zA?RA-$A:0),LA,at,KA,dt)},this.s=function(LA,at,KA,dt){return this.C(UA+("C"===zA?UA-HA:0),RA+("C"===zA?RA-$A:0),UA+LA,RA+at,UA+KA,RA+dt)},this.Q=function(LA,at,KA,dt){return this.addCommand(["curve",!0,!0,UA+.6666666666666666*(LA-UA),RA+2/3*(at-RA),KA+2/3*(LA-KA),dt+2/3*(at-dt),KA,dt]),zA="Q",HA=LA,$A=at,this},this.q=function(LA,at,KA,dt){return this.Q(UA+LA,RA+at,UA+KA,RA+dt)},this.T=function(LA,at){return this.Q(UA+("Q"===zA?UA-HA:0),RA+("Q"===zA?RA-$A:0),LA,at)},this.t=function(LA,at){return this.Q(UA+("Q"===zA?UA-HA:0),RA+("Q"===zA?RA-$A:0),UA+LA,RA+at)},this.A=function(LA,at,KA,dt,Nt,Ut,kt){if(CA(LA,0)||CA(at,0))this.addCommand(["line",!0,!0,Ut,kt]);else{KA*=Math.PI/180,LA=Math.abs(LA),at=Math.abs(at),dt=1*!!dt,Nt=1*!!Nt;var Vt=Math.cos(KA)*(UA-Ut)/2+Math.sin(KA)*(RA-kt)/2,te=Math.cos(KA)*(RA-kt)/2-Math.sin(KA)*(UA-Ut)/2,wt=Vt*Vt/(LA*LA)+te*te/(at*at);wt>1&&(LA*=Math.sqrt(wt),at*=Math.sqrt(wt));var Pt=Math.sqrt(Math.max(0,LA*LA*at*at-LA*LA*te*te-at*at*Vt*Vt)/(LA*LA*te*te+at*at*Vt*Vt)),jt=(dt===Nt?-1:1)*Pt*LA*te/at,Ht=(dt===Nt?1:-1)*Pt*at*Vt/LA,le=Math.cos(KA)*jt-Math.sin(KA)*Ht+(UA+Ut)/2,Wt=Math.sin(KA)*jt+Math.cos(KA)*Ht+(RA+kt)/2,Be=Math.atan2((te-Ht)/at,(Vt-jt)/LA),ce=Math.atan2((-te-Ht)/at,(-Vt-jt)/LA);0===Nt&&ce-Be>0?ce-=2*Math.PI:1===Nt&&ce-Be<0&&(ce+=2*Math.PI);for(var De=Math.ceil(Math.abs(ce-Be)/(Math.PI/Ln)),Ge=0;GeLA[2]&&(LA[2]=dt[2]),dt[1]LA[3]&&(LA[3]=dt[3]);return LA[0]===1/0&&(LA[0]=0),LA[1]===1/0&&(LA[1]=0),LA[2]===-1/0&&(LA[2]=0),LA[3]===-1/0&&(LA[3]=0),LA},this.getPointAtLength=function(LA){if(LA>=0&&LA<=this.totalLength){for(var at,KA=0;KARA.selector.specificity||(YA[zA]=RA.css[zA],tt[zA]=RA.selector.specificity)}return YA}(YA),this.allowedChildren=[],this.attr=function(zA){if("function"==typeof YA.getAttribute)return YA.getAttribute(zA)},this.resolveUrl=function(zA){var HA=(zA||"").match(/^\s*(?:url\("(.*)#(.*)"\)|url\('(.*)#(.*)'\)|url\((.*)#(.*)\)|(.*)#(.*))\s*$/)||[],$A=HA[1]||HA[3]||HA[5]||HA[7],LA=HA[2]||HA[4]||HA[6]||HA[8];if(LA){if(!$A){var at=l.getElementById(LA);if(at)return-1===this.stack.indexOf(at)?at:void ne('SVGtoPDF: loop of circular references for id "'+LA+'"')}if(Xe){var KA=Jt[$A];if(!KA){(function XA(WA){return"object"==typeof WA&&null!==WA&&"number"==typeof WA.length})(KA=Xe($A))||(KA=[KA]);for(var dt=0;dt=0&&$A[3]>=0?$A:HA},this.getPercent=function(zA,HA){var $A=this.attr(zA),LA=new It(($A||"").trim()),dt=LA.matchNumber();return!dt||(LA.match("%")&&(dt*=.01),LA.matchAll())?HA:Math.max(0,Math.min(1,dt))},this.chooseValue=function(zA){for(var HA=0;HA=0&&(LA=KA);break;case"stroke-miterlimit":null!=(KA=parseFloat($A))&&KA>=1&&(LA=KA);break;case"word-spacing":case"letter-spacing":LA=this.computeLength($A,this.getViewport());break;case"stroke-dashoffset":if(null!=(LA=this.computeLength($A,this.getViewport()))&&LA<0)for(var te=this.get("stroke-dasharray"),wt=0;wt0?HA:this.ref?this.ref.getChildren():[]},this.getPaint=function(HA,$A,LA,at){var KA="userSpaceOnUse"!==this.attr("patternUnits"),dt="objectBoundingBox"===this.attr("patternContentUnits"),Nt=this.getLength("x",KA?1:this.getParentVWidth(),0),Ut=this.getLength("y",KA?1:this.getParentVHeight(),0),kt=this.getLength("width",KA?1:this.getParentVWidth(),0),Vt=this.getLength("height",KA?1:this.getParentVHeight(),0);dt&&!KA?(Nt=(Nt-HA[0])/(HA[2]-HA[0])||0,Ut=(Ut-HA[1])/(HA[3]-HA[1])||0,kt=kt/(HA[2]-HA[0])||0,Vt=Vt/(HA[3]-HA[1])||0):!dt&&KA&&(Nt=HA[0]+Nt*(HA[2]-HA[0]),Ut=HA[1]+Ut*(HA[3]-HA[1]),kt*=HA[2]-HA[0],Vt*=HA[3]-HA[1]);var te=this.getViewbox("viewBox",[0,0,kt,Vt]),Pt=cA(O((this.attr("preserveAspectRatio")||"").trim(),kt,Vt,te[2],te[3],0),[1,0,0,1,-te[0],-te[1]]),jt=q(this.attr("patternTransform"));if(dt&&(jt=cA([HA[2]-HA[0],0,0,HA[3]-HA[1],HA[0],HA[1]],jt)),(jt=_(jt=cA(jt,[1,0,0,1,Nt,Ut])))&&(Pt=_(Pt))&&(kt=bA(kt))&&(Vt=bA(Vt))){var Ht=w([0,0,kt,Vt]);return o.transform.apply(o,Pt),this.drawChildren(LA,at),Q(Ht),[y(Ht,kt,Vt,jt),$A]}return UA?[UA[0],UA[1]*$A]:void 0},this.getVWidth=function(){var HA="userSpaceOnUse"!==this.attr("patternUnits"),$A=this.getLength("width",HA?1:this.getParentVWidth(),0);return this.getViewbox("viewBox",[0,0,$A,0])[2]},this.getVHeight=function(){var HA="userSpaceOnUse"!==this.attr("patternUnits"),$A=this.getLength("height",HA?1:this.getParentVHeight(),0);return this.getViewbox("viewBox",[0,0,0,$A])[3]}},PA=function WA(YA,tt,UA){rt.call(this,YA,tt),this.allowedChildren=["stop"],this.ref=function(){var HA=this.getUrl("href")||this.getUrl("xlink:href");if(HA&&HA.nodeName===YA.nodeName)return new WA(HA,tt,UA)}.call(this);var RA=this.attr;this.attr=function(HA){var $A=RA.call(this,HA);return null!=$A||"href"===HA||"xlink:href"===HA?$A:this.ref?this.ref.attr(HA):null};var zA=this.getChildren;this.getChildren=function(){var HA=zA.call(this);return HA.length>0?HA:this.ref?this.ref.getChildren():[]},this.getPaint=function(HA,$A,LA,at){var KA=this.getChildren();if(0!==KA.length){if(1===KA.length){var dt=KA[0],Nt=dt.get("stop-color");return"none"===Nt?void 0:MA(Nt,dt.get("stop-opacity")*$A,at)}var te,wt,Pt,jt,Ht,le,Ut="userSpaceOnUse"!==this.attr("gradientUnits"),kt=q(this.attr("gradientTransform")),Vt=this.attr("spreadMethod"),Wt=0,Be=0,ce=1;if(Ut&&(kt=cA([HA[2]-HA[0],0,0,HA[3]-HA[1],HA[0],HA[1]],kt)),kt=_(kt)){if("linearGradient"===this.name)wt=this.getLength("x1",Ut?1:this.getVWidth(),0),Pt=this.getLength("x2",Ut?1:this.getVWidth(),Ut?1:this.getVWidth()),jt=this.getLength("y1",Ut?1:this.getVHeight(),0),Ht=this.getLength("y2",Ut?1:this.getVHeight(),0);else{Pt=this.getLength("cx",Ut?1:this.getVWidth(),Ut?.5:.5*this.getVWidth()),Ht=this.getLength("cy",Ut?1:this.getVHeight(),Ut?.5:.5*this.getVHeight()),le=this.getLength("r",Ut?1:this.getViewport(),Ut?.5:.5*this.getViewport()),wt=this.getLength("fx",Ut?1:this.getVWidth(),Pt),jt=this.getLength("fy",Ut?1:this.getVHeight(),Ht),le<0&&ne("SvgElemGradient: negative r value");var De=Math.sqrt(Math.pow(Pt-wt,2)+Math.pow(Ht-jt,2)),Ge=1;De>le&&(wt=Pt+(wt-Pt)*(Ge=le/De),jt=Ht+(jt-Ht)*Ge),le=Math.max(le,De*Ge*1.000001)}if("reflect"===Vt||"repeat"===Vt){var Ne=FA(kt),xe=gA([HA[0],HA[1]],Ne),Se=gA([HA[2],HA[1]],Ne),_e=gA([HA[2],HA[3]],Ne),Fn=gA([HA[0],HA[3]],Ne);"linearGradient"===this.name?(Wt=Math.max((xe[0]-Pt)*(Pt-wt)+(xe[1]-Ht)*(Ht-jt),(Se[0]-Pt)*(Pt-wt)+(Se[1]-Ht)*(Ht-jt),(_e[0]-Pt)*(Pt-wt)+(_e[1]-Ht)*(Ht-jt),(Fn[0]-Pt)*(Pt-wt)+(Fn[1]-Ht)*(Ht-jt))/(Math.pow(Pt-wt,2)+Math.pow(Ht-jt,2)),Be=Math.max((xe[0]-wt)*(wt-Pt)+(xe[1]-jt)*(jt-Ht),(Se[0]-wt)*(wt-Pt)+(Se[1]-jt)*(jt-Ht),(_e[0]-wt)*(wt-Pt)+(_e[1]-jt)*(jt-Ht),(Fn[0]-wt)*(wt-Pt)+(Fn[1]-jt)*(jt-Ht))/(Math.pow(Pt-wt,2)+Math.pow(Ht-jt,2))):Wt=Math.sqrt(Math.max(Math.pow(xe[0]-Pt,2)+Math.pow(xe[1]-Ht,2),Math.pow(Se[0]-Pt,2)+Math.pow(Se[1]-Ht,2),Math.pow(_e[0]-Pt,2)+Math.pow(_e[1]-Ht,2),Math.pow(Fn[0]-Pt,2)+Math.pow(Fn[1]-Ht,2)))/le-1,Wt=Math.ceil(Wt+.5),ce=(Be=Math.ceil(Be+.5))+1+Wt}te="linearGradient"===this.name?o.linearGradient(wt-Be*(Pt-wt),jt-Be*(Ht-jt),Pt+Wt*(Pt-wt),Ht+Wt*(Ht-jt)):o.radialGradient(wt,jt,0,Pt,Ht,le+Wt*le);for(var rn=0;rn0&&te.stop((rn+0)/ce,cn[0],cn[1]),te.stop((rn+Cn)/(Wt+Be+1),cn[0],cn[1]),an===KA.length-1&&Cn<1&&te.stop((rn+1)/ce,cn[0],cn[1])}return te.setTransform.apply(te,kt),[te,1]}return UA?[UA[0],UA[1]*$A]:void 0}}},rA=function(YA,tt){yA.call(this,YA,tt),this.dashScale=1,this.getBoundingShape=function(){return this.shape},this.getTransformation=function(){return this.get("transform")},this.drawInDocument=function(UA,RA){if("hidden"!==this.get("visibility")&&this.shape){if(o.save(),this.transform(),this.clip(),UA)this.shape.insertInDocument(),z(u.white),o.fill(this.get("clip-rule"));else{var HA;this.mask()&&(HA=w(vA()));var $A=this.shape.getSubPaths(),LA=this.getFill(UA,RA),at=this.getStroke(UA,RA),KA=this.get("stroke-width"),dt=this.get("stroke-linecap");if(LA||at){if(LA&&z(LA),at){for(var Nt=0;Nt<$A.length;Nt++)if(CA($A[Nt].totalLength,0)&&("square"===dt||"round"===dt)&&KA>0&&$A[Nt].startPoint&&$A[Nt].startPoint.length>1){var Ut=$A[Nt].startPoint[0],kt=$A[Nt].startPoint[1];z(at),"square"===dt?o.rect(Ut-.5*KA,kt-.5*KA,KA,KA):"round"===dt&&o.circle(Ut,kt,.5*KA),o.fill()}var Vt=this.get("stroke-dasharray"),te=this.get("stroke-dashoffset");if(NA(this.dashScale,1)){for(var wt=0;wt0&&$A[Pt].insertInDocument();LA&&at?o.fillAndStroke(this.get("fill-rule")):LA?o.fill(this.get("fill-rule")):at&&o.stroke()}var jt=this.get("marker-start"),Ht=this.get("marker-mid"),le=this.get("marker-end");if("none"!==jt||"none"!==Ht||"none"!==le){var Wt=this.shape.getMarkers();if("none"!==jt&&new st(jt,null).drawMarker(!1,RA,Wt[0],KA),"none"!==Ht)for(var ce=1;ce0&&HA>0?$A&&LA?($A=Math.min($A,.5*zA),LA=Math.min(LA,.5*HA),this.shape=(new VA).M(UA+$A,RA).L(UA+zA-$A,RA).A($A,LA,0,0,1,UA+zA,RA+LA).L(UA+zA,RA+HA-LA).A($A,LA,0,0,1,UA+zA-$A,RA+HA).L(UA+$A,RA+HA).A($A,LA,0,0,1,UA,RA+HA-LA).L(UA,RA+LA).A($A,LA,0,0,1,UA+$A,RA).Z()):this.shape=(new VA).M(UA,RA).L(UA+zA,RA).L(UA+zA,RA+HA).L(UA,RA+HA).Z():this.shape=new VA},Ft=function(YA,tt){rA.call(this,YA,tt);var UA=this.getLength("cx",this.getVWidth(),0),RA=this.getLength("cy",this.getVHeight(),0),zA=this.getLength("r",this.getViewport(),0);this.shape=zA>0?(new VA).M(UA+zA,RA).A(zA,zA,0,0,1,UA-zA,RA).A(zA,zA,0,0,1,UA+zA,RA).Z():new VA},j=function(YA,tt){rA.call(this,YA,tt);var UA=this.getLength("cx",this.getVWidth(),0),RA=this.getLength("cy",this.getVHeight(),0),zA=this.getLength("rx",this.getVWidth(),0),HA=this.getLength("ry",this.getVHeight(),0);this.shape=zA>0&&HA>0?(new VA).M(UA+zA,RA).A(zA,HA,0,0,1,UA-zA,RA).A(zA,HA,0,0,1,UA+zA,RA).Z():new VA},kA=function(YA,tt){rA.call(this,YA,tt);var UA=this.getLength("x1",this.getVWidth(),0),RA=this.getLength("y1",this.getVHeight(),0),zA=this.getLength("x2",this.getVWidth(),0),HA=this.getLength("y2",this.getVHeight(),0);this.shape=(new VA).M(UA,RA).L(zA,HA)},At=function(YA,tt){rA.call(this,YA,tt);var UA=this.getNumberList("points");this.shape=new VA;for(var RA=0;RA0?UA:void 0,this.dashScale=void 0!==this.pathLength?this.shape.totalLength/this.pathLength:1},st=function(YA,tt){Mt.call(this,YA,tt);var UA=this.getLength("markerWidth",this.getParentVWidth(),3),RA=this.getLength("markerHeight",this.getParentVHeight(),3),zA=this.getViewbox("viewBox",[0,0,UA,RA]);this.getVWidth=function(){return zA[2]},this.getVHeight=function(){return zA[3]},this.drawMarker=function(HA,$A,LA,at){o.save();var KA=this.attr("orient"),dt=this.attr("markerUnits"),Nt="auto"===KA?LA[2]:(parseFloat(KA)||0)*Math.PI/180,Ut="userSpaceOnUse"===dt?1:at;o.transform(Math.cos(Nt)*Ut,Math.sin(Nt)*Ut,-Math.sin(Nt)*Ut,Math.cos(Nt)*Ut,LA[0],LA[1]);var wt,kt=this.getLength("refX",this.getVWidth(),0),Vt=this.getLength("refY",this.getVHeight(),0),te=O(this.attr("preserveAspectRatio"),UA,RA,zA[2],zA[3],.5);"hidden"===this.get("overflow")&&o.rect(te[0]*(zA[0]+zA[2]/2-kt)-UA/2,te[3]*(zA[1]+zA[3]/2-Vt)-RA/2,UA,RA).clip(),o.transform.apply(o,te),o.translate(-kt,-Vt),this.get("opacity")<1&&!HA&&(wt=w(vA())),this.drawChildren(HA,$A),wt&&(Q(wt),o.fillOpacity(this.get("opacity")),d(wt)),o.restore()}},Lt=function(YA,tt){Mt.call(this,YA,tt),this.useMask=function(UA){var RA=w(vA());o.save(),"objectBoundingBox"===this.attr("clipPathUnits")&&o.transform(UA[2]-UA[0],0,0,UA[3]-UA[1],UA[0],UA[1]),this.clip(),this.drawChildren(!0,!1),o.restore(),Q(RA),Y(RA,!0)}},vt=function(YA,tt){Mt.call(this,YA,tt),this.useMask=function(UA){var zA,HA,$A,LA,RA=w(vA());o.save(),"userSpaceOnUse"===this.attr("maskUnits")?(zA=this.getLength("x",this.getVWidth(),-.1*(UA[2]-UA[0])+UA[0]),HA=this.getLength("y",this.getVHeight(),-.1*(UA[3]-UA[1])+UA[1]),$A=this.getLength("width",this.getVWidth(),1.2*(UA[2]-UA[0])),LA=this.getLength("height",this.getVHeight(),1.2*(UA[3]-UA[1]))):(zA=this.getLength("x",this.getVWidth(),-.1)*(UA[2]-UA[0])+UA[0],HA=this.getLength("y",this.getVHeight(),-.1)*(UA[3]-UA[1])+UA[1],$A=this.getLength("width",this.getVWidth(),1.2)*(UA[2]-UA[0]),LA=this.getLength("height",this.getVHeight(),1.2)*(UA[3]-UA[1])),o.rect(zA,HA,$A,LA).clip(),"objectBoundingBox"===this.attr("maskContentUnits")&&o.transform(UA[2]-UA[0],0,0,UA[3]-UA[1],UA[0],UA[1]),this.clip(),this.drawChildren(!1,!0),o.restore(),Q(RA),Y(RA,!0)}},Rt=function(YA,tt){yA.call(this,YA,tt),this.allowedChildren=["tspan","#text","#cdata-section","a"],this.isText=!0,this.getBoundingShape=function(){for(var UA=new VA,RA=0;RA Tj")}o.addContent("ET")}}}"line-through"===this.get("text-decoration")&&this.decorate(.05*this._font.size,.5*(GA(this._font.font,this._font.size)+et(this._font.font,this._font.size)),UA,RA)},this.decorate=function(UA,RA,zA,HA){var $A=this.getFill(zA,HA),LA=this.getStroke(zA,HA);$A&&z($A),LA&&(L(LA),o.lineWidth(this.get("stroke-width")).miterLimit(this.get("stroke-miterlimit")).lineJoin(this.get("stroke-linejoin")).lineCap(this.get("stroke-linecap")).dash(this.get("stroke-dasharray"),{phase:this.get("stroke-dashoffset")}));for(var at=0,KA=this._pos;at0?HA:this.pathObject.totalLength,this.pathScale=this.pathObject.totalLength/this.pathLength}else if((zA=this.getUrl("href")||this.getUrl("xlink:href"))&&"path"===zA.nodeName){var $A=new ZA(zA,this);this.pathObject=$A.shape.clone().transform($A.get("transform")),this.pathLength=this.chooseValue($A.pathLength,this.pathObject.totalLength),this.pathScale=this.pathObject.totalLength/this.pathLength}},Ae=function(YA,tt){Rt.call(this,YA,tt),this.allowedChildren=["textPath","tspan","#text","#cdata-section","a"],function(UA){var LA,at,RA="",zA=YA.textContent,HA=[],$A=[],KA=0,dt=0;function Nt(){if($A.length)for(var wt=$A[$A.length-1],Ht={startltr:0,middleltr:.5,endltr:1,startrtl:1,middlertl:.5,endrtl:0}[LA+at]*(wt.x+wt.width-$A[0].x)||0,le=0;le<$A.length;le++)$A[le].x-=Ht;$A=[]}function Vt(wt){var Pt=wt.pathObject,jt=wt.pathLength,Ht=wt.pathScale;if(Pt)for(var le=wt.getLength("startOffset",jt,0),Wt=0;Wtjt||Be<0)wt._pos[Wt].hidden=!0;else{var ce=Pt.getPointAtLength(Be*Ht);NA(Ht,1)&&(wt._pos[Wt].scale*=Ht,wt._pos[Wt].width*=Ht),wt._pos[Wt].x=ce[0]-.5*wt._pos[Wt].width*Math.cos(ce[2])-wt._pos[Wt].y*Math.sin(ce[2]),wt._pos[Wt].y=ce[1]-.5*wt._pos[Wt].width*Math.sin(ce[2])+wt._pos[Wt].y*Math.cos(ce[2]),wt._pos[Wt].rotate=ce[2]+wt._pos[Wt].rotate,wt._pos[Wt].continuous=!1}}else for(var De=0;De0&&ce<1/0)for(var De=0;De=2)for(var Ge=(Pt-(Be-Wt))/(wt.length-1),Ne=0;Ne0?d-4:d;for(D=0;D>16&255,y[p++]=w>>8&255,y[p++]=255&w;return 2===Y&&(w=c[g.charCodeAt(D)]<<2|c[g.charCodeAt(D+1)]>>4,y[p++]=255&w),1===Y&&(w=c[g.charCodeAt(D)]<<10|c[g.charCodeAt(D+1)]<<4|c[g.charCodeAt(D+2)]>>2,y[p++]=w>>8&255,y[p++]=255&w),y},I.fromByteArray=function f(g){for(var w,Q=g.length,d=Q%3,Y=[],y=16383,p=0,m=Q-d;pm?m:p+y));return 1===d?Y.push(n[(w=g[Q-1])>>2]+n[w<<4&63]+"=="):2===d&&Y.push(n[(w=(g[Q-2]<<8)+g[Q-1])>>10]+n[w>>4&63]+n[w<<2&63]+"="),Y.join("")};for(var n=[],c=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,h=o.length;l0)throw new Error("Invalid string. Length must be a multiple of 4");var Q=g.indexOf("=");return-1===Q&&(Q=w),[Q,Q===w?0:4-Q%4]}function C(g){return n[g>>18&63]+n[g>>12&63]+n[g>>6&63]+n[63&g]}function e(g,w,Q){for(var Y=[],y=w;y0},o.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 l=this.buf_ptr_,h=this.input_.read(this.buf_,l,I);if(h<0)throw new Error("Unexpected end of input");if(h=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},o.prototype.readBits=function(l){32-this.bit_pos_>>this.bit_pos_&i[l];return this.bit_pos_+=l,h},T.exports=o},7080:function(T,I){I.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]),I.lookupOffsets=new Uint16Array([1024,1536,1280,1536,0,256,768,512])},6450:function(T,I,n){var i=n(6154).g,o=n(6154).j,l=n(4181),h=n(5139),a=n(966).h,B=n(966).g,E=n(7080),u=n(8435),C=n(2973),m=1080,U=new Uint8Array([1,2,3,4,0,5,17,6,16,7,8,9,10,11,12,13,14,15]),F=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]),L=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 W($){var V;return 0===$.readBits(1)?16:(V=$.readBits(3))>0?17+V:(V=$.readBits(3))>0?8+V:17}function aA($){if($.readBits(1)){var V=$.readBits(3);return 0===V?1:$.readBits(V)+(1<1&&0===EA)throw new Error("Invalid size byte");V.meta_block_length|=EA<<8*nA}}else for(nA=0;nA4&&0===GA)throw new Error("Invalid size nibble");V.meta_block_length|=GA<<4*nA}return++V.meta_block_length,!V.input_end&&!V.is_metadata&&(V.is_uncompressed=$.readBits(1)),V}function MA($,V,hA){var nA;return hA.fillBitWindow(),(nA=$[V+=hA.val_>>>hA.bit_pos_&255].bits-8)>0&&(hA.bit_pos_+=8,V+=$[V].value,V+=hA.val_>>>hA.bit_pos_&(1<>=1,++TA;for(et=0;et0;++et){var Mt,rt=U[et],yA=0;mA.fillBitWindow(),mA.bit_pos_+=VA[yA+=mA.val_>>>mA.bit_pos_&15].bits,It[rt]=Mt=VA[yA].value,0!==Mt&&(ut-=32>>Mt,++JA)}if(1!==JA&&0!==ut)throw new Error("[ReadHuffmanCode] invalid num_codes or space");!function cA($,V,hA,mA){for(var nA=0,EA=8,GA=0,et=0,ot=32768,TA=[],it=0;it<32;it++)TA.push(new a(0,0));for(B(TA,0,5,$,18);nA0;){var It,mt=0;if(mA.readMoreInput(),mA.fillBitWindow(),mA.bit_pos_+=TA[mt+=mA.val_>>>mA.bit_pos_&31].bits,(It=255&TA[mt].value)<16)GA=0,hA[nA++]=It,0!==It&&(EA=It,ot-=32768>>It);else{var JA,VA,ut=It-14,rt=0;if(16===It&&(rt=EA),et!==rt&&(GA=0,et=rt),JA=GA,GA>0&&(GA-=2,GA<<=ut),nA+(VA=(GA+=mA.readBits(ut)+3)-JA)>V)throw new Error("[ReadHuffmanCodeLengths] symbol + repeat_delta > num_symbols");for(var yA=0;yA>>5]),this.htrees=new Uint32Array(V)}function uA($,V){var EA,GA,hA={num_htrees:null,context_map:null},nA=0;V.readMoreInput();var et=hA.num_htrees=aA(V)+1,ot=hA.context_map=new Uint8Array($);if(et<=1)return hA;for(V.readBits(1)&&(nA=V.readBits(4)+1),EA=[],GA=0;GA=$)throw new Error("[DecodeContextMap] i >= context_map_size");ot[GA]=0,++GA}else ot[GA]=TA-nA,++GA}return V.readBits(1)&&function _($,V){var mA,hA=new Uint8Array(256);for(mA=0;mA<256;++mA)hA[mA]=mA;for(mA=0;mA=$&&(it-=$),mA[hA]=it,nA[et+(1&EA[ot])]=it,++EA[ot]}function NA($,V,hA,mA,nA,EA){var TA,GA=nA+1,et=hA&nA,ot=EA.pos_&l.IBUF_MASK;if(V<8||EA.bit_pos_+(V<<3)0;)EA.readMoreInput(),mA[et++]=EA.readBits(8),et===GA&&($.write(mA,GA),et=0);else{if(EA.bit_end_pos_<32)throw new Error("[CopyUncompressedBlockToOutput] br.bit_end_pos_ < 32");for(;EA.bit_pos_<32;)mA[et]=EA.val_>>>EA.bit_pos_,EA.bit_pos_+=8,++et,--V;if(ot+(TA=EA.bit_end_pos_-EA.bit_pos_>>3)>l.IBUF_MASK){for(var it=l.IBUF_MASK+1-ot,mt=0;mt=GA)for($.write(mA,GA),et-=GA,mt=0;mt=GA;){if(EA.input_.read(mA,et,TA=GA-et)V.buffer.length){var ne=new Uint8Array(mA+H);ne.set(V.buffer),V.buffer=ne}if(nA=xn.input_end,k=xn.is_uncompressed,xn.is_metadata)for(bA(ft);H>0;--H)ft.readMoreInput(),ft.readBits(8);else if(0!==H){if(k){ft.bit_pos_=ft.bit_pos_+7&-8,NA(V,H,mA,it,TA,ft),mA+=H;continue}for(hA=0;hA<3;++hA)wA[hA]=aA(ft)+1,wA[hA]>=2&&(gA(wA[hA]+2,yA,hA*m,ft),gA(26,Mt,hA*m,ft),R[hA]=BA(Mt,hA*m,ft),rA[hA]=1);for(ft.readMoreInput(),j=(1<<(ct=ft.readBits(2)))-1,kA=(Ft=16+(ft.readBits(4)<0;){var en,Xe,Ln,bn,Jt,bt,Xt,ae,pn,Yn,jn,Br;for(ft.readMoreInput(),0===R[1]&&(CA(wA[1],yA,1,QA,PA,rA,ft),R[1]=BA(Mt,m,ft),yn=rt[1].htrees[QA[1]]),--R[1],(Xe=(en=MA(rt[1].codes,yn,ft))>>6)>=2?(Xe-=2,Xt=-1):Xt=0,bn=u.kCopyRangeLut[Xe]+(7&en),Jt=u.kInsertLengthPrefixCode[Ln=u.kInsertRangeLut[Xe]+(en>>3&7)].offset+ft.readBits(u.kInsertLengthPrefixCode[Ln].nbits),bt=u.kCopyLengthPrefixCode[bn].offset+ft.readBits(u.kCopyLengthPrefixCode[bn].nbits),JA=it[mA-1&TA],VA=it[mA-2&TA],pn=0;pn4?3:bt-2))]],ft))>=Ft&&(Br=(Xt-=Ft)&j,Xt=Ft+((Tn=(2+(1&(Xt>>=ct))<<(jn=1+(Xt>>1)))-4)+ft.readBits(jn)<(et=mA=h.minDictionaryWordLength&&bt<=h.maxDictionaryWordLength))throw new Error("Invalid backward reference. pos: "+mA+" distance: "+ae+" len: "+bt+" bytes left: "+H);var Tn=h.offsetsByLength[bt],WA=ae-et-1,YA=h.sizeBitsByLength[bt],RA=WA>>YA;if(Tn+=(WA&(1<=mt){V.write(it,ot);for(var HA=0;HA0&&(It[3&ut]=ae,++ut),bt>H)throw new Error("Invalid backward reference. pos: "+mA+" distance: "+ae+" len: "+bt+" bytes left: "+H);for(pn=0;pn>=1;return(h&B-1)+B}function o(h,a,B,E,u){do{h[a+(E-=B)]=new n(u.bits,u.value)}while(E>0)}function l(h,a,B){for(var E=1<0;--U[f])o(h,a+w,Q,p,new n(255&f,65535&D[g++])),w=i(w,f);for(Y=m-1,d=-1,f=B+1,Q=2;f<=c;++f,Q<<=1)for(;U[f]>0;--U[f])(w&Y)!==d&&(a+=p,m+=p=1<<(y=l(U,f,B)),h[C+(d=w&Y)]=new n(y+B&255,a-C-d&65535)),o(h,a+(w>>B),Q,p,new n(f-B&255,65535&D[g++])),w=i(w,f);return m}},8435:function(T,I){function n(c,i){this.offset=c,this.nbits=i}I.kBlockLengthPrefixCode=[new n(1,2),new n(5,2),new n(9,2),new n(13,2),new n(17,3),new n(25,3),new n(33,3),new n(41,3),new n(49,4),new n(65,4),new n(81,4),new n(97,4),new n(113,5),new n(145,5),new n(177,5),new n(209,5),new n(241,6),new n(305,6),new n(369,7),new n(497,8),new n(753,9),new n(1265,10),new n(2289,11),new n(4337,12),new n(8433,13),new n(16625,24)],I.kInsertLengthPrefixCode=[new n(0,0),new n(1,0),new n(2,0),new n(3,0),new n(4,0),new n(5,0),new n(6,1),new n(8,1),new n(10,2),new n(14,2),new n(18,3),new n(26,3),new n(34,4),new n(50,4),new n(66,5),new n(98,5),new n(130,6),new n(194,7),new n(322,8),new n(578,9),new n(1090,10),new n(2114,12),new n(6210,14),new n(22594,24)],I.kCopyLengthPrefixCode=[new n(2,0),new n(3,0),new n(4,0),new n(5,0),new n(6,0),new n(7,0),new n(8,0),new n(9,0),new n(10,1),new n(12,1),new n(14,2),new n(18,2),new n(22,3),new n(30,3),new n(38,4),new n(54,4),new n(70,5),new n(102,5),new n(134,6),new n(198,7),new n(326,8),new n(582,9),new n(1094,10),new n(2118,24)],I.kInsertRangeLut=[0,0,8,8,0,16,8,16,16],I.kCopyRangeLut=[0,8,0,8,16,0,16,8,16]},6154:function(T,I){function n(i){this.buffer=i,this.pos=0}function c(i){this.buffer=i,this.pos=0}n.prototype.read=function(i,o,l){this.pos+l>this.buffer.length&&(l=this.buffer.length-this.pos);for(var h=0;hthis.buffer.length)throw new Error("Output buffer is not large enough");return this.buffer.set(i.subarray(0,o),this.pos),this.pos+=o,o},I.j=c},2973:function(T,I,n){var c=n(5139),f=10,g=11;function N(L,W,aA){this.prefix=new Uint8Array(L.length),this.transform=W,this.suffix=new Uint8Array(aA.length);for(var AA=0;AA'),new N("",0,"\n"),new N("",3,""),new N("",0,"]"),new N("",0," for "),new N("",14,""),new N("",2,""),new N("",0," a "),new N("",0," that "),new N(" ",f,""),new N("",0,". "),new N(".",0,""),new N(" ",0,", "),new N("",15,""),new N("",0," with "),new N("",0,"'"),new N("",0," from "),new N("",0," by "),new N("",16,""),new N("",17,""),new N(" the ",0,""),new N("",4,""),new N("",0,". The "),new N("",g,""),new N("",0," on "),new N("",0," as "),new N("",0," is "),new N("",7,""),new N("",1,"ing "),new N("",0,"\n\t"),new N("",0,":"),new N(" ",0,". "),new N("",0,"ed "),new N("",20,""),new N("",18,""),new N("",6,""),new N("",0,"("),new N("",f,", "),new N("",8,""),new N("",0," at "),new N("",0,"ly "),new N(" the ",0," of "),new N("",5,""),new N("",9,""),new N(" ",f,", "),new N("",f,'"'),new N(".",0,"("),new N("",g," "),new N("",f,'">'),new N("",0,'="'),new N(" ",0,"."),new N(".com/",0,""),new N(" the ",0," of the "),new N("",f,"'"),new N("",0,". This "),new N("",0,","),new N(".",0," "),new N("",f,"("),new N("",f,"."),new N("",0," not "),new N(" ",0,'="'),new N("",0,"er "),new N(" ",g," "),new N("",0,"al "),new N(" ",g,""),new N("",0,"='"),new N("",g,'"'),new N("",f,". "),new N(" ",0,"("),new N("",0,"ful "),new N(" ",f,". "),new N("",0,"ive "),new N("",0,"less "),new N("",g,"'"),new N("",0,"est "),new N(" ",f,"."),new N("",g,'">'),new N(" ",0,"='"),new N("",f,","),new N("",0,"ize "),new N("",g,"."),new N("\xc2\xa0",0,""),new N(" ",0,","),new N("",f,'="'),new N("",g,'="'),new N("",0,"ous "),new N("",g,", "),new N("",f,"='"),new N(" ",f,","),new N(" ",g,'="'),new N(" ",g,", "),new N("",g,","),new N("",g,"("),new N("",g,". "),new N(" ",g,"."),new N("",g,"='"),new N(" ",g,". "),new N(" ",f,'="'),new N(" ",g,"='"),new N(" ",f,"='")];function z(L,W){return L[W]<192?(L[W]>=97&&L[W]<=122&&(L[W]^=32),1):L[W]<224?(L[W+1]^=32,2):(L[W+2]^=5,3)}I.kTransforms=F,I.kNumTransforms=F.length,I.transformDictionaryWord=function(L,W,aA,AA,lA){var _,MA=F[lA].prefix,cA=F[lA].suffix,gA=F[lA].transform,BA=gA<12?0:gA-11,vA=0,FA=W;BA>AA&&(BA=AA);for(var dA=0;dA0;){var uA=z(L,_);_+=uA,AA-=uA}for(var CA=0;CAI.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=f,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}e.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,o(this.init_done,"close before init"),o(this.mode<=I.UNZIP),this.mode===I.DEFLATE||this.mode===I.GZIP||this.mode===I.DEFLATERAW?h.deflateEnd(this.strm):(this.mode===I.INFLATE||this.mode===I.GUNZIP||this.mode===I.INFLATERAW||this.mode===I.UNZIP)&&a.inflateEnd(this.strm),this.mode=I.NONE,this.dictionary=null)},e.prototype.write=function(f,g,w,Q,d,Y,y){return this._write(!0,f,g,w,Q,d,Y,y)},e.prototype.writeSync=function(f,g,w,Q,d,Y,y){return this._write(!1,f,g,w,Q,d,Y,y)},e.prototype._write=function(f,g,w,Q,d,Y,y,p){if(o.equal(arguments.length,8),o(this.init_done,"write before init"),o(this.mode!==I.NONE,"already finalized"),o.equal(!1,this.write_in_progress,"write already in progress"),o.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,o.equal(!1,void 0===g,"must provide flush value"),this.write_in_progress=!0,g!==I.Z_NO_FLUSH&&g!==I.Z_PARTIAL_FLUSH&&g!==I.Z_SYNC_FLUSH&&g!==I.Z_FULL_FLUSH&&g!==I.Z_FINISH&&g!==I.Z_BLOCK)throw new Error("Invalid flush value");if(null==w&&(w=c.alloc(0),d=0,Q=0),this.strm.avail_in=d,this.strm.input=w,this.strm.next_in=Q,this.strm.avail_out=p,this.strm.output=Y,this.strm.next_out=y,this.flush=g,!f)return this._process(),this._checkError()?this._afterSync():void 0;var m=this;return i.nextTick(function(){m._process(),m._after()}),this},e.prototype._afterSync=function(){var f=this.strm.avail_out,g=this.strm.avail_in;return this.write_in_progress=!1,[g,f]},e.prototype._process=function(){var f=null;switch(this.mode){case I.DEFLATE:case I.GZIP:case I.DEFLATERAW:this.err=h.deflate(this.strm,this.flush);break;case I.UNZIP:switch(this.strm.avail_in>0&&(f=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===f)break;if(31!==this.strm.input[f]){this.mode=I.INFLATE;break}if(this.gzip_id_bytes_read=1,f++,1===this.strm.avail_in)break;case 1:if(null===f)break;139===this.strm.input[f]?(this.gzip_id_bytes_read=2,this.mode=I.GUNZIP):this.mode=I.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case I.INFLATE:case I.GUNZIP:case I.INFLATERAW:for(this.err=a.inflate(this.strm,this.flush),this.err===I.Z_NEED_DICT&&this.dictionary&&(this.err=a.inflateSetDictionary(this.strm,this.dictionary),this.err===I.Z_OK?this.err=a.inflate(this.strm,this.flush):this.err===I.Z_DATA_ERROR&&(this.err=I.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===I.GUNZIP&&this.err===I.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=a.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},e.prototype._checkError=function(){switch(this.err){case I.Z_OK:case I.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===I.Z_FINISH)return this._error("unexpected end of file"),!1;break;case I.Z_STREAM_END:break;case I.Z_NEED_DICT:return this._error(null==this.dictionary?"Missing dictionary":"Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},e.prototype._after=function(){if(this._checkError()){var f=this.strm.avail_out,g=this.strm.avail_in;this.write_in_progress=!1,this.callback(g,f),this.pending_close&&this.close()}},e.prototype._error=function(f){this.strm.msg&&(f=this.strm.msg),this.onerror(f,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},e.prototype.init=function(f,g,w,Q,d){o(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),o(f>=8&&f<=15,"invalid windowBits"),o(g>=-1&&g<=9,"invalid compression level"),o(w>=1&&w<=9,"invalid memlevel"),o(Q===I.Z_FILTERED||Q===I.Z_HUFFMAN_ONLY||Q===I.Z_RLE||Q===I.Z_FIXED||Q===I.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(g,f,w,Q,d),this._setDictionary()},e.prototype.params=function(){throw new Error("deflateParams Not supported")},e.prototype.reset=function(){this._reset(),this._setDictionary()},e.prototype._init=function(f,g,w,Q,d){switch(this.level=f,this.windowBits=g,this.memLevel=w,this.strategy=Q,this.flush=I.Z_NO_FLUSH,this.err=I.Z_OK,(this.mode===I.GZIP||this.mode===I.GUNZIP)&&(this.windowBits+=16),this.mode===I.UNZIP&&(this.windowBits+=32),(this.mode===I.DEFLATERAW||this.mode===I.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new l,this.mode){case I.DEFLATE:case I.GZIP:case I.DEFLATERAW:this.err=h.deflateInit2(this.strm,this.level,I.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case I.INFLATE:case I.GUNZIP:case I.INFLATERAW:case I.UNZIP:this.err=a.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==I.Z_OK&&this._error("Init error"),this.dictionary=d,this.write_in_progress=!1,this.init_done=!0},e.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=I.Z_OK,this.mode){case I.DEFLATE:case I.DEFLATERAW:this.err=h.deflateSetDictionary(this.strm,this.dictionary)}this.err!==I.Z_OK&&this._error("Failed to set dictionary")}},e.prototype._reset=function(){switch(this.err=I.Z_OK,this.mode){case I.DEFLATE:case I.DEFLATERAW:case I.GZIP:this.err=h.deflateReset(this.strm);break;case I.INFLATE:case I.INFLATERAW:case I.GUNZIP:this.err=a.inflateReset(this.strm)}this.err!==I.Z_OK&&this._error("Failed to reset stream")},I.Zlib=e},2635:function(T,I,n){"use strict";var c=n(4155),i=n(8823).Buffer,o=n(2830).Transform,l=n(4505),h=n(9539),a=n(9282).ok,B=n(8823).kMaxLength,E="Cannot create final Buffer. It would be larger than 0x"+B.toString(16)+" bytes";l.Z_MIN_WINDOWBITS=8,l.Z_MAX_WINDOWBITS=15,l.Z_DEFAULT_WINDOWBITS=15,l.Z_MIN_CHUNK=64,l.Z_MAX_CHUNK=1/0,l.Z_DEFAULT_CHUNK=16384,l.Z_MIN_MEMLEVEL=1,l.Z_MAX_MEMLEVEL=9,l.Z_DEFAULT_MEMLEVEL=8,l.Z_MIN_LEVEL=-1,l.Z_MAX_LEVEL=9,l.Z_DEFAULT_LEVEL=l.Z_DEFAULT_COMPRESSION;for(var u=Object.keys(l),C=0;C=B?dA=new RangeError(E):_=i.concat(cA,gA),cA=[],AA.close(),MA(dA,_)}AA.on("error",function vA(_){AA.removeListener("end",FA),AA.removeListener("readable",BA),MA(_)}),AA.on("end",FA),AA.end(lA),BA()}function Y(AA,lA){if("string"==typeof lA&&(lA=i.from(lA)),!i.isBuffer(lA))throw new TypeError("Not a string or buffer");return AA._processChunk(lA,AA._finishFlushFlag)}function y(AA){if(!(this instanceof y))return new y(AA);L.call(this,AA,l.DEFLATE)}function p(AA){if(!(this instanceof p))return new p(AA);L.call(this,AA,l.INFLATE)}function m(AA){if(!(this instanceof m))return new m(AA);L.call(this,AA,l.GZIP)}function D(AA){if(!(this instanceof D))return new D(AA);L.call(this,AA,l.GUNZIP)}function U(AA){if(!(this instanceof U))return new U(AA);L.call(this,AA,l.DEFLATERAW)}function N(AA){if(!(this instanceof N))return new N(AA);L.call(this,AA,l.INFLATERAW)}function F(AA){if(!(this instanceof F))return new F(AA);L.call(this,AA,l.UNZIP)}function z(AA){return AA===l.Z_NO_FLUSH||AA===l.Z_PARTIAL_FLUSH||AA===l.Z_SYNC_FLUSH||AA===l.Z_FULL_FLUSH||AA===l.Z_FINISH||AA===l.Z_BLOCK}function L(AA,lA){var MA=this;if(this._opts=AA=AA||{},this._chunkSize=AA.chunkSize||I.Z_DEFAULT_CHUNK,o.call(this,AA),AA.flush&&!z(AA.flush))throw new Error("Invalid flush flag: "+AA.flush);if(AA.finishFlush&&!z(AA.finishFlush))throw new Error("Invalid flush flag: "+AA.finishFlush);if(this._flushFlag=AA.flush||l.Z_NO_FLUSH,this._finishFlushFlag=void 0!==AA.finishFlush?AA.finishFlush:l.Z_FINISH,AA.chunkSize&&(AA.chunkSizeI.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+AA.chunkSize);if(AA.windowBits&&(AA.windowBitsI.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+AA.windowBits);if(AA.level&&(AA.levelI.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+AA.level);if(AA.memLevel&&(AA.memLevelI.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+AA.memLevel);if(AA.strategy&&AA.strategy!=I.Z_FILTERED&&AA.strategy!=I.Z_HUFFMAN_ONLY&&AA.strategy!=I.Z_RLE&&AA.strategy!=I.Z_FIXED&&AA.strategy!=I.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+AA.strategy);if(AA.dictionary&&!i.isBuffer(AA.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new l.Zlib(lA);var cA=this;this._hadError=!1,this._handle.onerror=function(vA,FA){W(cA),cA._hadError=!0;var _=new Error(vA);_.errno=FA,_.code=I.codes[FA],cA.emit("error",_)};var gA=I.Z_DEFAULT_COMPRESSION;"number"==typeof AA.level&&(gA=AA.level);var BA=I.Z_DEFAULT_STRATEGY;"number"==typeof AA.strategy&&(BA=AA.strategy),this._handle.init(AA.windowBits||I.Z_DEFAULT_WINDOWBITS,gA,AA.memLevel||I.Z_DEFAULT_MEMLEVEL,BA,AA.dictionary),this._buffer=i.allocUnsafe(this._chunkSize),this._offset=0,this._level=gA,this._strategy=BA,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!MA._handle},configurable:!0,enumerable:!0})}function W(AA,lA){lA&&c.nextTick(lA),AA._handle&&(AA._handle.close(),AA._handle=null)}function aA(AA){AA.emit("close")}Object.defineProperty(I,"codes",{enumerable:!0,value:Object.freeze(f),writable:!1}),I.Deflate=y,I.Inflate=p,I.Gzip=m,I.Gunzip=D,I.DeflateRaw=U,I.InflateRaw=N,I.Unzip=F,I.createDeflate=function(AA){return new y(AA)},I.createInflate=function(AA){return new p(AA)},I.createDeflateRaw=function(AA){return new U(AA)},I.createInflateRaw=function(AA){return new N(AA)},I.createGzip=function(AA){return new m(AA)},I.createGunzip=function(AA){return new D(AA)},I.createUnzip=function(AA){return new F(AA)},I.deflate=function(AA,lA,MA){return"function"==typeof lA&&(MA=lA,lA={}),d(new y(lA),AA,MA)},I.deflateSync=function(AA,lA){return Y(new y(lA),AA)},I.gzip=function(AA,lA,MA){return"function"==typeof lA&&(MA=lA,lA={}),d(new m(lA),AA,MA)},I.gzipSync=function(AA,lA){return Y(new m(lA),AA)},I.deflateRaw=function(AA,lA,MA){return"function"==typeof lA&&(MA=lA,lA={}),d(new U(lA),AA,MA)},I.deflateRawSync=function(AA,lA){return Y(new U(lA),AA)},I.unzip=function(AA,lA,MA){return"function"==typeof lA&&(MA=lA,lA={}),d(new F(lA),AA,MA)},I.unzipSync=function(AA,lA){return Y(new F(lA),AA)},I.inflate=function(AA,lA,MA){return"function"==typeof lA&&(MA=lA,lA={}),d(new p(lA),AA,MA)},I.inflateSync=function(AA,lA){return Y(new p(lA),AA)},I.gunzip=function(AA,lA,MA){return"function"==typeof lA&&(MA=lA,lA={}),d(new D(lA),AA,MA)},I.gunzipSync=function(AA,lA){return Y(new D(lA),AA)},I.inflateRaw=function(AA,lA,MA){return"function"==typeof lA&&(MA=lA,lA={}),d(new N(lA),AA,MA)},I.inflateRawSync=function(AA,lA){return Y(new N(lA),AA)},h.inherits(L,o),L.prototype.params=function(AA,lA,MA){if(AAI.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+AA);if(lA!=I.Z_FILTERED&&lA!=I.Z_HUFFMAN_ONLY&&lA!=I.Z_RLE&&lA!=I.Z_FIXED&&lA!=I.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+lA);if(this._level!==AA||this._strategy!==lA){var cA=this;this.flush(l.Z_SYNC_FLUSH,function(){a(cA._handle,"zlib binding closed"),cA._handle.params(AA,lA),cA._hadError||(cA._level=AA,cA._strategy=lA,MA&&MA())})}else c.nextTick(MA)},L.prototype.reset=function(){return a(this._handle,"zlib binding closed"),this._handle.reset()},L.prototype._flush=function(AA){this._transform(i.alloc(0),"",AA)},L.prototype.flush=function(AA,lA){var MA=this,cA=this._writableState;("function"==typeof AA||void 0===AA&&!lA)&&(lA=AA,AA=l.Z_FULL_FLUSH),cA.ended?lA&&c.nextTick(lA):cA.ending?lA&&this.once("end",lA):cA.needDrain?lA&&this.once("drain",function(){return MA.flush(AA,lA)}):(this._flushFlag=AA,this.write(i.alloc(0),"",lA))},L.prototype.close=function(AA){W(this,AA),c.nextTick(aA,this)},L.prototype._transform=function(AA,lA,MA){var cA,gA=this._writableState,vA=(gA.ending||gA.ended)&&(!AA||gA.length===AA.length);return null===AA||i.isBuffer(AA)?this._handle?(vA?cA=this._finishFlushFlag:(cA=this._flushFlag,AA.length>=gA.length&&(this._flushFlag=this._opts.flush||l.Z_NO_FLUSH)),void this._processChunk(AA,cA,MA)):MA(new Error("zlib binding closed")):MA(new Error("invalid input"))},L.prototype._processChunk=function(AA,lA,MA){var cA=AA&&AA.length,gA=this._chunkSize-this._offset,BA=0,vA=this,FA="function"==typeof MA;if(!FA){var uA,_=[],dA=0;this.on("error",function(q){uA=q}),a(this._handle,"zlib binding closed");do{var CA=this._handle.writeSync(lA,AA,BA,cA,this._buffer,this._offset,gA)}while(!this._hadError&&XA(CA[0],CA[1]));if(this._hadError)throw uA;if(dA>=B)throw W(this),new RangeError(E);var NA=i.concat(_,dA);return W(this),NA}a(this._handle,"zlib binding closed");var bA=this._handle.write(lA,AA,BA,cA,this._buffer,this._offset,gA);function XA(q,O){if(this&&(this.buffer=null,this.callback=null),!vA._hadError){var $=gA-O;if(a($>=0,"have should not go down"),$>0){var V=vA._buffer.slice(vA._offset,vA._offset+$);vA._offset+=$,FA?vA.push(V):(_.push(V),dA+=V.length)}if((0===O||vA._offset>=vA._chunkSize)&&(gA=vA._chunkSize,vA._offset=0,vA._buffer=i.allocUnsafe(vA._chunkSize)),0===O){if(BA+=cA-q,cA=q,!FA)return!0;var hA=vA._handle.write(lA,AA,BA,cA,vA._buffer,vA._offset,vA._chunkSize);return hA.callback=XA,void(hA.buffer=AA)}if(!FA)return!1;MA()}}bA.buffer=AA,bA.callback=XA},h.inherits(y,L),h.inherits(p,L),h.inherits(m,L),h.inherits(D,L),h.inherits(U,L),h.inherits(N,L),h.inherits(F,L)},6907:function(T,I){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function c(l,h){return Object.prototype.hasOwnProperty.call(l,h)}I.assign=function(l){for(var h=Array.prototype.slice.call(arguments,1);h.length;){var a=h.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(var B in a)c(a,B)&&(l[B]=a[B])}}return l},I.shrinkBuf=function(l,h){return l.length===h?l:l.subarray?l.subarray(0,h):(l.length=h,l)};var i={arraySet:function(l,h,a,B,E){if(h.subarray&&l.subarray)l.set(h.subarray(a,a+B),E);else for(var u=0;u>>16&65535|0,a=0;0!==i;){i-=a=i>2e3?2e3:i;do{h=h+(l=l+c[o++]|0)|0}while(--a);l%=65521,h%=65521}return l|h<<16|0}},7162:function(T){"use strict";T.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}},3415:function(T){"use strict";var n=function I(){for(var i,o=[],l=0;l<256;l++){i=l;for(var h=0;h<8;h++)i=1&i?3988292384^i>>>1:i>>>1;o[l]=i}return o}();T.exports=function c(i,o,l,h){var a=n,B=h+l;i^=-1;for(var E=h;E>>8^a[255&(i^o[E])];return-1^i}},2233:function(T,I,n){"use strict";var OA,c=n(6907),i=n(1339),o=n(7575),l=n(3415),h=n(9364),g=-2,vA=258,FA=262,q=666;function nA(j,kA){return j.msg=h[kA],kA}function EA(j){return(j<<1)-(j>4?9:0)}function GA(j){for(var kA=j.length;--kA>=0;)j[kA]=0}function et(j){var kA=j.state,At=kA.pending;At>j.avail_out&&(At=j.avail_out),0!==At&&(c.arraySet(j.output,kA.pending_buf,kA.pending_out,At,j.next_out),j.next_out+=At,kA.pending_out+=At,j.total_out+=At,j.avail_out-=At,kA.pending-=At,0===kA.pending&&(kA.pending_out=0))}function ot(j,kA){i._tr_flush_block(j,j.block_start>=0?j.block_start:-1,j.strstart-j.block_start,kA),j.block_start=j.strstart,et(j.strm)}function TA(j,kA){j.pending_buf[j.pending++]=kA}function it(j,kA){j.pending_buf[j.pending++]=kA>>>8&255,j.pending_buf[j.pending++]=255&kA}function mt(j,kA,At,xA){var ZA=j.avail_in;return ZA>xA&&(ZA=xA),0===ZA?0:(j.avail_in-=ZA,c.arraySet(kA,j.input,j.next_in,ZA,At),1===j.state.wrap?j.adler=o(j.adler,kA,ZA,At):2===j.state.wrap&&(j.adler=l(j.adler,kA,ZA,At)),j.next_in+=ZA,j.total_in+=ZA,ZA)}function It(j,kA){var ZA,st,At=j.max_chain_length,xA=j.strstart,Lt=j.prev_length,vt=j.nice_match,Rt=j.strstart>j.w_size-FA?j.strstart-(j.w_size-FA):0,Kt=j.window,Le=j.w_mask,re=j.prev,Ae=j.strstart+vA,ye=Kt[xA+Lt-1],be=Kt[xA+Lt];j.prev_length>=j.good_match&&(At>>=2),vt>j.lookahead&&(vt=j.lookahead);do{if(Kt[(ZA=kA)+Lt]===be&&Kt[ZA+Lt-1]===ye&&Kt[ZA]===Kt[xA]&&Kt[++ZA]===Kt[xA+1]){xA+=2,ZA++;do{}while(Kt[++xA]===Kt[++ZA]&&Kt[++xA]===Kt[++ZA]&&Kt[++xA]===Kt[++ZA]&&Kt[++xA]===Kt[++ZA]&&Kt[++xA]===Kt[++ZA]&&Kt[++xA]===Kt[++ZA]&&Kt[++xA]===Kt[++ZA]&&Kt[++xA]===Kt[++ZA]&&xALt){if(j.match_start=kA,Lt=st,st>=vt)break;ye=Kt[xA+Lt-1],be=Kt[xA+Lt]}}}while((kA=re[kA&Le])>Rt&&0!=--At);return Lt<=j.lookahead?Lt:j.lookahead}function ut(j){var At,xA,ZA,st,Lt,kA=j.w_size;do{if(st=j.window_size-j.lookahead-j.strstart,j.strstart>=kA+(kA-FA)){c.arraySet(j.window,j.window,kA,kA,0),j.match_start-=kA,j.strstart-=kA,j.block_start-=kA,At=xA=j.hash_size;do{ZA=j.head[--At],j.head[At]=ZA>=kA?ZA-kA:0}while(--xA);At=xA=kA;do{ZA=j.prev[--At],j.prev[At]=ZA>=kA?ZA-kA:0}while(--xA);st+=kA}if(0===j.strm.avail_in)break;if(xA=mt(j.strm,j.window,j.strstart+j.lookahead,st),j.lookahead+=xA,j.lookahead+j.insert>=3)for(j.ins_h=j.window[Lt=j.strstart-j.insert],j.ins_h=(j.ins_h<=3&&(j.ins_h=(j.ins_h<=3)if(xA=i._tr_tally(j,j.strstart-j.match_start,j.match_length-3),j.lookahead-=j.match_length,j.match_length<=j.max_lazy_match&&j.lookahead>=3){j.match_length--;do{j.strstart++,j.ins_h=(j.ins_h<=3&&(j.ins_h=(j.ins_h<4096)&&(j.match_length=2)),j.prev_length>=3&&j.match_length<=j.prev_length){ZA=j.strstart+j.lookahead-3,xA=i._tr_tally(j,j.strstart-1-j.prev_match,j.prev_length-3),j.lookahead-=j.prev_length-1,j.prev_length-=2;do{++j.strstart<=ZA&&(j.ins_h=(j.ins_h<15&&(Lt=2,xA-=16),ZA<1||ZA>9||8!==At||xA<8||xA>15||kA<0||kA>9||st<0||st>4)return nA(j,g);8===xA&&(xA=9);var vt=new H;return j.state=vt,vt.strm=j,vt.wrap=Lt,vt.gzhead=null,vt.w_bits=xA,vt.w_size=1<j.pending_buf_size-5&&(At=j.pending_buf_size-5);;){if(j.lookahead<=1){if(ut(j),0===j.lookahead&&0===kA)return 1;if(0===j.lookahead)break}j.strstart+=j.lookahead,j.lookahead=0;var xA=j.block_start+At;if((0===j.strstart||j.strstart>=xA)&&(j.lookahead=j.strstart-xA,j.strstart=xA,ot(j,!1),0===j.strm.avail_out)||j.strstart-j.block_start>=j.w_size-FA&&(ot(j,!1),0===j.strm.avail_out))return 1}return j.insert=0,4===kA?(ot(j,!0),0===j.strm.avail_out?3:4):(j.strstart>j.block_start&&ot(j,!1),1)}),new ft(4,4,8,4,VA),new ft(4,5,16,8,VA),new ft(4,6,32,32,VA),new ft(4,4,16,16,rt),new ft(8,16,32,32,rt),new ft(8,16,128,128,rt),new ft(8,32,128,256,rt),new ft(32,128,258,1024,rt),new ft(32,258,258,4096,rt)],I.deflateInit=function PA(j,kA){return wA(j,kA,8,15,8,0)},I.deflateInit2=wA,I.deflateReset=R,I.deflateResetKeep=k,I.deflateSetHeader=function QA(j,kA){return j&&j.state&&2===j.state.wrap?(j.state.gzhead=kA,0):g},I.deflate=function rA(j,kA){var At,xA,ZA,st;if(!j||!j.state||kA>5||kA<0)return j?nA(j,g):g;if(xA=j.state,!j.output||!j.input&&0!==j.avail_in||xA.status===q&&4!==kA)return nA(j,0===j.avail_out?-5:g);if(xA.strm=j,At=xA.last_flush,xA.last_flush=kA,42===xA.status)if(2===xA.wrap)j.adler=0,TA(xA,31),TA(xA,139),TA(xA,8),xA.gzhead?(TA(xA,(xA.gzhead.text?1:0)+(xA.gzhead.hcrc?2:0)+(xA.gzhead.extra?4:0)+(xA.gzhead.name?8:0)+(xA.gzhead.comment?16:0)),TA(xA,255&xA.gzhead.time),TA(xA,xA.gzhead.time>>8&255),TA(xA,xA.gzhead.time>>16&255),TA(xA,xA.gzhead.time>>24&255),TA(xA,9===xA.level?2:xA.strategy>=2||xA.level<2?4:0),TA(xA,255&xA.gzhead.os),xA.gzhead.extra&&xA.gzhead.extra.length&&(TA(xA,255&xA.gzhead.extra.length),TA(xA,xA.gzhead.extra.length>>8&255)),xA.gzhead.hcrc&&(j.adler=l(j.adler,xA.pending_buf,xA.pending,0)),xA.gzindex=0,xA.status=69):(TA(xA,0),TA(xA,0),TA(xA,0),TA(xA,0),TA(xA,0),TA(xA,9===xA.level?2:xA.strategy>=2||xA.level<2?4:0),TA(xA,3),xA.status=113);else{var Lt=8+(xA.w_bits-8<<4)<<8;Lt|=(xA.strategy>=2||xA.level<2?0:xA.level<6?1:6===xA.level?2:3)<<6,0!==xA.strstart&&(Lt|=32),Lt+=31-Lt%31,xA.status=113,it(xA,Lt),0!==xA.strstart&&(it(xA,j.adler>>>16),it(xA,65535&j.adler)),j.adler=1}if(69===xA.status)if(xA.gzhead.extra){for(ZA=xA.pending;xA.gzindex<(65535&xA.gzhead.extra.length)&&(xA.pending!==xA.pending_buf_size||(xA.gzhead.hcrc&&xA.pending>ZA&&(j.adler=l(j.adler,xA.pending_buf,xA.pending-ZA,ZA)),et(j),ZA=xA.pending,xA.pending!==xA.pending_buf_size));)TA(xA,255&xA.gzhead.extra[xA.gzindex]),xA.gzindex++;xA.gzhead.hcrc&&xA.pending>ZA&&(j.adler=l(j.adler,xA.pending_buf,xA.pending-ZA,ZA)),xA.gzindex===xA.gzhead.extra.length&&(xA.gzindex=0,xA.status=73)}else xA.status=73;if(73===xA.status)if(xA.gzhead.name){ZA=xA.pending;do{if(xA.pending===xA.pending_buf_size&&(xA.gzhead.hcrc&&xA.pending>ZA&&(j.adler=l(j.adler,xA.pending_buf,xA.pending-ZA,ZA)),et(j),ZA=xA.pending,xA.pending===xA.pending_buf_size)){st=1;break}st=xA.gzindexZA&&(j.adler=l(j.adler,xA.pending_buf,xA.pending-ZA,ZA)),0===st&&(xA.gzindex=0,xA.status=91)}else xA.status=91;if(91===xA.status)if(xA.gzhead.comment){ZA=xA.pending;do{if(xA.pending===xA.pending_buf_size&&(xA.gzhead.hcrc&&xA.pending>ZA&&(j.adler=l(j.adler,xA.pending_buf,xA.pending-ZA,ZA)),et(j),ZA=xA.pending,xA.pending===xA.pending_buf_size)){st=1;break}st=xA.gzindexZA&&(j.adler=l(j.adler,xA.pending_buf,xA.pending-ZA,ZA)),0===st&&(xA.status=103)}else xA.status=103;if(103===xA.status&&(xA.gzhead.hcrc?(xA.pending+2>xA.pending_buf_size&&et(j),xA.pending+2<=xA.pending_buf_size&&(TA(xA,255&j.adler),TA(xA,j.adler>>8&255),j.adler=0,xA.status=113)):xA.status=113),0!==xA.pending){if(et(j),0===j.avail_out)return xA.last_flush=-1,0}else if(0===j.avail_in&&EA(kA)<=EA(At)&&4!==kA)return nA(j,-5);if(xA.status===q&&0!==j.avail_in)return nA(j,-5);if(0!==j.avail_in||0!==xA.lookahead||0!==kA&&xA.status!==q){var Rt=2===xA.strategy?function Mt(j,kA){for(var At;;){if(0===j.lookahead&&(ut(j),0===j.lookahead)){if(0===kA)return 1;break}if(j.match_length=0,At=i._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++,At&&(ot(j,!1),0===j.strm.avail_out))return 1}return j.insert=0,4===kA?(ot(j,!0),0===j.strm.avail_out?3:4):j.last_lit&&(ot(j,!1),0===j.strm.avail_out)?1:2}(xA,kA):3===xA.strategy?function yA(j,kA){for(var At,xA,ZA,st,Lt=j.window;;){if(j.lookahead<=vA){if(ut(j),j.lookahead<=vA&&0===kA)return 1;if(0===j.lookahead)break}if(j.match_length=0,j.lookahead>=3&&j.strstart>0&&(xA=Lt[ZA=j.strstart-1])===Lt[++ZA]&&xA===Lt[++ZA]&&xA===Lt[++ZA]){st=j.strstart+vA;do{}while(xA===Lt[++ZA]&&xA===Lt[++ZA]&&xA===Lt[++ZA]&&xA===Lt[++ZA]&&xA===Lt[++ZA]&&xA===Lt[++ZA]&&xA===Lt[++ZA]&&xA===Lt[++ZA]&&ZAj.lookahead&&(j.match_length=j.lookahead)}if(j.match_length>=3?(At=i._tr_tally(j,1,j.match_length-3),j.lookahead-=j.match_length,j.strstart+=j.match_length,j.match_length=0):(At=i._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++),At&&(ot(j,!1),0===j.strm.avail_out))return 1}return j.insert=0,4===kA?(ot(j,!0),0===j.strm.avail_out?3:4):j.last_lit&&(ot(j,!1),0===j.strm.avail_out)?1:2}(xA,kA):OA[xA.level].func(xA,kA);if((3===Rt||4===Rt)&&(xA.status=q),1===Rt||3===Rt)return 0===j.avail_out&&(xA.last_flush=-1),0;if(2===Rt&&(1===kA?i._tr_align(xA):5!==kA&&(i._tr_stored_block(xA,0,0,!1),3===kA&&(GA(xA.head),0===xA.lookahead&&(xA.strstart=0,xA.block_start=0,xA.insert=0))),et(j),0===j.avail_out))return xA.last_flush=-1,0}return 4!==kA?0:xA.wrap<=0?1:(2===xA.wrap?(TA(xA,255&j.adler),TA(xA,j.adler>>8&255),TA(xA,j.adler>>16&255),TA(xA,j.adler>>24&255),TA(xA,255&j.total_in),TA(xA,j.total_in>>8&255),TA(xA,j.total_in>>16&255),TA(xA,j.total_in>>24&255)):(it(xA,j.adler>>>16),it(xA,65535&j.adler)),et(j),xA.wrap>0&&(xA.wrap=-xA.wrap),0!==xA.pending?0:1)},I.deflateEnd=function ct(j){var kA;return j&&j.state?42!==(kA=j.state.status)&&69!==kA&&73!==kA&&91!==kA&&103!==kA&&113!==kA&&kA!==q?nA(j,g):(j.state=null,113===kA?nA(j,-3):0):g},I.deflateSetDictionary=function Ft(j,kA){var xA,ZA,st,Lt,vt,Rt,Kt,Le,At=kA.length;if(!j||!j.state||2===(Lt=(xA=j.state).wrap)||1===Lt&&42!==xA.status||xA.lookahead)return g;for(1===Lt&&(j.adler=o(j.adler,kA,At,0)),xA.wrap=0,At>=xA.w_size&&(0===Lt&&(GA(xA.head),xA.strstart=0,xA.block_start=0,xA.insert=0),Le=new c.Buf8(xA.w_size),c.arraySet(Le,kA,At-xA.w_size,xA.w_size,0),kA=Le,At=xA.w_size),vt=j.avail_in,Rt=j.next_in,Kt=j.input,j.avail_in=At,j.next_in=0,j.input=kA,ut(xA);xA.lookahead>=3;){ZA=xA.strstart,st=xA.lookahead-2;do{xA.ins_h=(xA.ins_h<>>=U=D>>>24,d-=U,0==(U=D>>>16&255))aA[B++]=65535&D;else{if(!(16&U)){if(0==(64&U)){D=Y[(65535&D)+(Q&(1<>>=U,d-=U),d<15&&(Q+=W[h++]<>>=U=D>>>24,d-=U,!(16&(U=D>>>16&255))){if(0==(64&U)){D=y[(65535&D)+(Q&(1<C){i.msg="invalid distance too far back",l.mode=30;break A}if(Q>>>=U,d-=U,F>(U=B-E)){if((U=F-U)>f&&l.sane){i.msg="invalid distance too far back",l.mode=30;break A}if(z=0,L=w,0===g){if(z+=e-U,U2;)aA[B++]=L[z++],aA[B++]=L[z++],aA[B++]=L[z++],N-=3;N&&(aA[B++]=L[z++],N>1&&(aA[B++]=L[z++]))}else{z=B-F;do{aA[B++]=aA[z++],aA[B++]=aA[z++],aA[B++]=aA[z++],N-=3}while(N>2);N&&(aA[B++]=aA[z++],N>1&&(aA[B++]=aA[z++]))}break}}break}}while(h>3)<<3))-1,i.next_in=h-=N,i.next_out=B,i.avail_in=h>>24&255)+(wA>>>8&65280)+((65280&wA)<<8)+((255&wA)<<24)}function mt(){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 c.Buf16(320),this.work=new c.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function It(wA){var PA;return wA&&wA.state?(wA.total_in=wA.total_out=(PA=wA.state).total=0,wA.msg="",PA.wrap&&(wA.adler=1&PA.wrap),PA.mode=1,PA.last=0,PA.havedict=0,PA.dmax=32768,PA.head=null,PA.hold=0,PA.bits=0,PA.lencode=PA.lendyn=new c.Buf32(852),PA.distcode=PA.distdyn=new c.Buf32(592),PA.sane=1,PA.back=-1,0):Q}function ut(wA){var PA;return wA&&wA.state?((PA=wA.state).wsize=0,PA.whave=0,PA.wnext=0,It(wA)):Q}function JA(wA,PA){var rA,ct;return!wA||!wA.state||(ct=wA.state,PA<0?(rA=0,PA=-PA):(rA=1+(PA>>4),PA<48&&(PA&=15)),PA&&(PA<8||PA>15))?Q:(null!==ct.window&&ct.wbits!==PA&&(ct.window=null),ct.wrap=rA,ct.wbits=PA,ut(wA))}function VA(wA,PA){var rA,ct;return wA?(ct=new mt,wA.state=ct,ct.window=null,0!==(rA=JA(wA,PA))&&(wA.state=null),rA):Q}var Mt,ft,yA=!0;function OA(wA){if(yA){var PA;for(Mt=new c.Buf32(512),ft=new c.Buf32(32),PA=0;PA<144;)wA.lens[PA++]=8;for(;PA<256;)wA.lens[PA++]=9;for(;PA<280;)wA.lens[PA++]=7;for(;PA<288;)wA.lens[PA++]=8;for(h(1,wA.lens,0,288,Mt,0,wA.work,{bits:9}),PA=0;PA<32;)wA.lens[PA++]=5;h(2,wA.lens,0,32,ft,0,wA.work,{bits:5}),yA=!1}wA.lencode=Mt,wA.lenbits=9,wA.distcode=ft,wA.distbits=5}function Yt(wA,PA,rA,ct){var Ft,j=wA.state;return null===j.window&&(j.wsize=1<=j.wsize?(c.arraySet(j.window,PA,rA-j.wsize,j.wsize,0),j.wnext=0,j.whave=j.wsize):((Ft=j.wsize-j.wnext)>ct&&(Ft=ct),c.arraySet(j.window,PA,rA-ct,Ft,j.wnext),(ct-=Ft)?(c.arraySet(j.window,PA,rA-ct,ct,0),j.wnext=ct,j.whave=j.wsize):(j.wnext+=Ft,j.wnext===j.wsize&&(j.wnext=0),j.whave>>8&255,rA.check=o(rA.check,Te,2,0),ZA=0,st=0,rA.mode=2;break}if(rA.flags=0,rA.head&&(rA.head.done=!1),!(1&rA.wrap)||(((255&ZA)<<8)+(ZA>>8))%31){wA.msg="incorrect header check",rA.mode=30;break}if(8!=(15&ZA)){wA.msg="unknown compression method",rA.mode=30;break}if(st-=4,ne=8+(15&(ZA>>>=4)),0===rA.wbits)rA.wbits=ne;else if(ne>rA.wbits){wA.msg="invalid window size",rA.mode=30;break}rA.dmax=1<>8&1),512&rA.flags&&(Te[0]=255&ZA,Te[1]=ZA>>>8&255,rA.check=o(rA.check,Te,2,0)),ZA=0,st=0,rA.mode=3;case 3:for(;st<32;){if(0===At)break A;At--,ZA+=ct[j++]<>>8&255,Te[2]=ZA>>>16&255,Te[3]=ZA>>>24&255,rA.check=o(rA.check,Te,4,0)),ZA=0,st=0,rA.mode=4;case 4:for(;st<16;){if(0===At)break A;At--,ZA+=ct[j++]<>8),512&rA.flags&&(Te[0]=255&ZA,Te[1]=ZA>>>8&255,rA.check=o(rA.check,Te,2,0)),ZA=0,st=0,rA.mode=5;case 5:if(1024&rA.flags){for(;st<16;){if(0===At)break A;At--,ZA+=ct[j++]<>>8&255,rA.check=o(rA.check,Te,2,0)),ZA=0,st=0}else rA.head&&(rA.head.extra=null);rA.mode=6;case 6:if(1024&rA.flags&&((Rt=rA.length)>At&&(Rt=At),Rt&&(rA.head&&(ne=rA.head.extra_len-rA.length,rA.head.extra||(rA.head.extra=new Array(rA.head.extra_len)),c.arraySet(rA.head.extra,ct,j,Rt,ne)),512&rA.flags&&(rA.check=o(rA.check,ct,Rt,j)),At-=Rt,j+=Rt,rA.length-=Rt),rA.length))break A;rA.length=0,rA.mode=7;case 7:if(2048&rA.flags){if(0===At)break A;Rt=0;do{ne=ct[j+Rt++],rA.head&&ne&&rA.length<65536&&(rA.head.name+=String.fromCharCode(ne))}while(ne&&Rt>9&1,rA.head.done=!0),wA.adler=rA.check=0,rA.mode=12;break;case 10:for(;st<32;){if(0===At)break A;At--,ZA+=ct[j++]<>>=7&st,st-=7&st,rA.mode=27;break}for(;st<3;){if(0===At)break A;At--,ZA+=ct[j++]<>>=1)){case 0:rA.mode=14;break;case 1:if(OA(rA),rA.mode=20,6===PA){ZA>>>=2,st-=2;break A}break;case 2:rA.mode=17;break;case 3:wA.msg="invalid block type",rA.mode=30}ZA>>>=2,st-=2;break;case 14:for(ZA>>>=7&st,st-=7&st;st<32;){if(0===At)break A;At--,ZA+=ct[j++]<>>16^65535)){wA.msg="invalid stored block lengths",rA.mode=30;break}if(rA.length=65535&ZA,ZA=0,st=0,rA.mode=15,6===PA)break A;case 15:rA.mode=16;case 16:if(Rt=rA.length){if(Rt>At&&(Rt=At),Rt>xA&&(Rt=xA),0===Rt)break A;c.arraySet(Ft,ct,j,Rt,kA),At-=Rt,j+=Rt,xA-=Rt,kA+=Rt,rA.length-=Rt;break}rA.mode=12;break;case 17:for(;st<14;){if(0===At)break A;At--,ZA+=ct[j++]<>>=5)),st-=5,rA.ncode=4+(15&(ZA>>>=5)),ZA>>>=4,st-=4,rA.nlen>286||rA.ndist>30){wA.msg="too many length or distance symbols",rA.mode=30;break}rA.have=0,rA.mode=18;case 18:for(;rA.have>>=3,st-=3}for(;rA.have<19;)rA.lens[Ln[rA.have++]]=0;if(rA.lencode=rA.lendyn,rA.lenbits=7,tn=h(0,rA.lens,0,19,rA.lencode,0,rA.work,en={bits:rA.lenbits}),rA.lenbits=en.bits,tn){wA.msg="invalid code lengths set",rA.mode=30;break}rA.have=0,rA.mode=19;case 19:for(;rA.have>>16&255,be=65535&re,!((Ae=re>>>24)<=st);){if(0===At)break A;At--,ZA+=ct[j++]<>>=Ae,st-=Ae,rA.lens[rA.have++]=be;else{if(16===be){for(Xe=Ae+2;st>>=Ae,st-=Ae,0===rA.have){wA.msg="invalid bit length repeat",rA.mode=30;break}ne=rA.lens[rA.have-1],Rt=3+(3&ZA),ZA>>>=2,st-=2}else if(17===be){for(Xe=Ae+3;st>>=Ae)),ZA>>>=3,st-=3}else{for(Xe=Ae+7;st>>=Ae)),ZA>>>=7,st-=7}if(rA.have+Rt>rA.nlen+rA.ndist){wA.msg="invalid bit length repeat",rA.mode=30;break}for(;Rt--;)rA.lens[rA.have++]=ne}}if(30===rA.mode)break;if(0===rA.lens[256]){wA.msg="invalid code -- missing end-of-block",rA.mode=30;break}if(rA.lenbits=9,tn=h(1,rA.lens,0,rA.nlen,rA.lencode,0,rA.work,en={bits:rA.lenbits}),rA.lenbits=en.bits,tn){wA.msg="invalid literal/lengths set",rA.mode=30;break}if(rA.distbits=6,rA.distcode=rA.distdyn,tn=h(2,rA.lens,rA.nlen,rA.ndist,rA.distcode,0,rA.work,en={bits:rA.distbits}),rA.distbits=en.bits,tn){wA.msg="invalid distances set",rA.mode=30;break}if(rA.mode=20,6===PA)break A;case 20:rA.mode=21;case 21:if(At>=6&&xA>=258){wA.next_out=kA,wA.avail_out=xA,wA.next_in=j,wA.avail_in=At,rA.hold=ZA,rA.bits=st,l(wA,vt),kA=wA.next_out,Ft=wA.output,xA=wA.avail_out,j=wA.next_in,ct=wA.input,At=wA.avail_in,ZA=rA.hold,st=rA.bits,12===rA.mode&&(rA.back=-1);break}for(rA.back=0;ye=(re=rA.lencode[ZA&(1<>>16&255,be=65535&re,!((Ae=re>>>24)<=st);){if(0===At)break A;At--,ZA+=ct[j++]<>Re)])>>>16&255,be=65535&re,!(Re+(Ae=re>>>24)<=st);){if(0===At)break A;At--,ZA+=ct[j++]<>>=Re,st-=Re,rA.back+=Re}if(ZA>>>=Ae,st-=Ae,rA.back+=Ae,rA.length=be,0===ye){rA.mode=26;break}if(32&ye){rA.back=-1,rA.mode=12;break}if(64&ye){wA.msg="invalid literal/length code",rA.mode=30;break}rA.extra=15&ye,rA.mode=22;case 22:if(rA.extra){for(Xe=rA.extra;st>>=rA.extra,st-=rA.extra,rA.back+=rA.extra}rA.was=rA.length,rA.mode=23;case 23:for(;ye=(re=rA.distcode[ZA&(1<>>16&255,be=65535&re,!((Ae=re>>>24)<=st);){if(0===At)break A;At--,ZA+=ct[j++]<>Re)])>>>16&255,be=65535&re,!(Re+(Ae=re>>>24)<=st);){if(0===At)break A;At--,ZA+=ct[j++]<>>=Re,st-=Re,rA.back+=Re}if(ZA>>>=Ae,st-=Ae,rA.back+=Ae,64&ye){wA.msg="invalid distance code",rA.mode=30;break}rA.offset=be,rA.extra=15&ye,rA.mode=24;case 24:if(rA.extra){for(Xe=rA.extra;st>>=rA.extra,st-=rA.extra,rA.back+=rA.extra}if(rA.offset>rA.dmax){wA.msg="invalid distance too far back",rA.mode=30;break}rA.mode=25;case 25:if(0===xA)break A;if(rA.offset>(Rt=vt-xA)){if((Rt=rA.offset-Rt)>rA.whave&&rA.sane){wA.msg="invalid distance too far back",rA.mode=30;break}Kt=Rt>rA.wnext?rA.wsize-(Rt-=rA.wnext):rA.wnext-Rt,Rt>rA.length&&(Rt=rA.length),Le=rA.window}else Le=Ft,Kt=kA-rA.offset,Rt=rA.length;Rt>xA&&(Rt=xA),xA-=Rt,rA.length-=Rt;do{Ft[kA++]=Le[Kt++]}while(--Rt);0===rA.length&&(rA.mode=21);break;case 26:if(0===xA)break A;Ft[kA++]=rA.length,xA--,rA.mode=21;break;case 27:if(rA.wrap){for(;st<32;){if(0===At)break A;At--,ZA|=ct[j++]<=1&&0===CA[z];z--);if(L>z&&(L=z),0===z)return Y[y++]=20971520,Y[y++]=20971520,m.bits=1,0;for(F=1;F0&&(0===g||1!==z))return-1;for(NA[1]=0,U=1;U852||2===g&&lA>592)return 1;for(;;){q=U-aA,p[N]uA?(O=bA[XA+p[N]],$=_[dA+p[N]]):(O=96,$=0),cA=1<>aA)+(gA-=cA)]=q<<24|O<<16|$|0}while(0!==gA);for(cA=1<>=1;if(0!==cA?(MA&=cA-1,MA+=cA):MA=0,N++,0==--CA[U]){if(U===z)break;U=w[Q+p[N]]}if(U>L&&(MA&vA)!==BA){for(0===aA&&(aA=L),FA+=F,AA=1<<(W=U-aA);W+aA852||2===g&&lA>592)return 1;Y[BA=MA&vA]=L<<24|W<<16|FA-y|0}}return 0!==MA&&(Y[FA+MA]=4194304|U-aA<<24),m.bits=L,0}},9364:function(T){"use strict";T.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"}},1339:function(T,I,n){"use strict";var c=n(6907);function a(H){for(var k=H.length;--k>=0;)H[k]=0}var g=256,w=286,Q=30,y=15,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],L=[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],W=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],aA=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],lA=new Array(576);a(lA);var MA=new Array(60);a(MA);var cA=new Array(512);a(cA);var gA=new Array(256);a(gA);var BA=new Array(29);a(BA);var _,dA,uA,vA=new Array(Q);function FA(H,k,R,QA,wA){this.static_tree=H,this.extra_bits=k,this.extra_base=R,this.elems=QA,this.max_length=wA,this.has_stree=H&&H.length}function CA(H,k){this.dyn_tree=H,this.max_code=0,this.stat_desc=k}function NA(H){return H<256?cA[H]:cA[256+(H>>>7)]}function bA(H,k){H.pending_buf[H.pending++]=255&k,H.pending_buf[H.pending++]=k>>>8&255}function XA(H,k,R){H.bi_valid>16-R?(H.bi_buf|=k<>16-H.bi_valid,H.bi_valid+=R-16):(H.bi_buf|=k<>>=1,R<<=1}while(--k>0);return R>>>1}function hA(H,k,R){var PA,rA,QA=new Array(16),wA=0;for(PA=1;PA<=y;PA++)QA[PA]=wA=wA+R[PA-1]<<1;for(rA=0;rA<=k;rA++){var ct=H[2*rA+1];0!==ct&&(H[2*rA]=O(QA[ct]++,ct))}}function nA(H){var k;for(k=0;k8?bA(H,H.bi_buf):H.bi_valid>0&&(H.pending_buf[H.pending++]=H.bi_buf),H.bi_buf=0,H.bi_valid=0}function et(H,k,R,QA){var wA=2*k,PA=2*R;return H[wA]>1;rA>=1;rA--)ot(H,R,rA);j=PA;do{rA=H.heap[1],H.heap[1]=H.heap[H.heap_len--],ot(H,R,1),ct=H.heap[1],H.heap[--H.heap_max]=rA,H.heap[--H.heap_max]=ct,R[2*j]=R[2*rA]+R[2*ct],H.depth[j]=(H.depth[rA]>=H.depth[ct]?H.depth[rA]:H.depth[ct])+1,R[2*rA+1]=R[2*ct+1]=j,H.heap[1]=j++,ot(H,R,1)}while(H.heap_len>=2);H.heap[--H.heap_max]=H.heap[1],function V(H,k){var j,kA,At,xA,ZA,st,R=k.dyn_tree,QA=k.max_code,wA=k.stat_desc.static_tree,PA=k.stat_desc.has_stree,rA=k.stat_desc.extra_bits,ct=k.stat_desc.extra_base,Ft=k.stat_desc.max_length,Lt=0;for(xA=0;xA<=y;xA++)H.bl_count[xA]=0;for(R[2*H.heap[H.heap_max]+1]=0,j=H.heap_max+1;j<573;j++)(xA=R[2*R[2*(kA=H.heap[j])+1]+1]+1)>Ft&&(xA=Ft,Lt++),R[2*kA+1]=xA,!(kA>QA)&&(H.bl_count[xA]++,ZA=0,kA>=ct&&(ZA=rA[kA-ct]),H.opt_len+=(st=R[2*kA])*(xA+ZA),PA&&(H.static_len+=st*(wA[2*kA+1]+ZA)));if(0!==Lt){do{for(xA=Ft-1;0===H.bl_count[xA];)xA--;H.bl_count[xA]--,H.bl_count[xA+1]+=2,H.bl_count[Ft]--,Lt-=2}while(Lt>0);for(xA=Ft;0!==xA;xA--)for(kA=H.bl_count[xA];0!==kA;)!((At=H.heap[--j])>QA)&&(R[2*At+1]!==xA&&(H.opt_len+=(xA-R[2*At+1])*R[2*At],R[2*At+1]=xA),kA--)}}(H,k),hA(R,Ft,H.bl_count)}function mt(H,k,R){var QA,PA,wA=-1,rA=k[1],ct=0,Ft=7,j=4;for(0===rA&&(Ft=138,j=3),k[2*(R+1)+1]=65535,QA=0;QA<=R;QA++)PA=rA,rA=k[2*(QA+1)+1],!(++ct>=7;QA0?(2===H.strm.data_type&&(H.strm.data_type=function VA(H){var R,k=4093624447;for(R=0;R<=31;R++,k>>>=1)if(1&k&&0!==H.dyn_ltree[2*R])return 0;if(0!==H.dyn_ltree[18]||0!==H.dyn_ltree[20]||0!==H.dyn_ltree[26])return 1;for(R=32;R=3&&0===H.bl_tree[2*aA[k]+1];k--);return H.opt_len+=3*(k+1)+5+5+4,k}(H),(PA=H.static_len+3+7>>>3)<=(wA=H.opt_len+3+7>>>3)&&(wA=PA)):wA=PA=R+5,R+4<=wA&&-1!==k?Mt(H,k,R,QA):4===H.strategy||PA===wA?(XA(H,2+(QA?1:0),3),TA(H,lA,MA)):(XA(H,4+(QA?1:0),3),function JA(H,k,R,QA){var wA;for(XA(H,k-257,5),XA(H,R-1,5),XA(H,QA-4,4),wA=0;wA>>8&255,H.pending_buf[H.d_buf+2*H.last_lit+1]=255&k,H.pending_buf[H.l_buf+H.last_lit]=255&R,H.last_lit++,0===k?H.dyn_ltree[2*R]++:(H.matches++,k--,H.dyn_ltree[2*(gA[R]+g+1)]++,H.dyn_dtree[2*NA(k)]++),H.last_lit===H.lit_bufsize-1},I._tr_align=function ft(H){XA(H,2,3),q(H,256,lA),function $(H){16===H.bi_valid?(bA(H,H.bi_buf),H.bi_buf=0,H.bi_valid=0):H.bi_valid>=8&&(H.pending_buf[H.pending++]=255&H.bi_buf,H.bi_buf>>=8,H.bi_valid-=8)}(H)}},4860:function(T){"use strict";T.exports=function I(){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}},1924:function(T,I,n){"use strict";var c=n(210),i=n(5559),o=i(c("String.prototype.indexOf"));T.exports=function(h,a){var B=c(h,!!a);return"function"==typeof B&&o(h,".prototype.")>-1?i(B):B}},5559:function(T,I,n){"use strict";var c=n(8612),i=n(210),o=i("%Function.prototype.apply%"),l=i("%Function.prototype.call%"),h=i("%Reflect.apply%",!0)||c.call(l,o),a=i("%Object.getOwnPropertyDescriptor%",!0),B=i("%Object.defineProperty%",!0),E=i("%Math.max%");if(B)try{B({},"a",{value:1})}catch(C){B=null}T.exports=function(e){var f=h(c,l,arguments);return a&&B&&a(f,"length").configurable&&B(f,"length",{value:1+E(0,e.length-(arguments.length-1))}),f};var u=function(){return h(c,o,arguments)};B?B(T.exports,"apply",{value:u}):T.exports.apply=u},6313:function(T,I,n){var c=n(8823).Buffer,i=function(){"use strict";function o(u,C,e,f){"object"==typeof C&&(e=C.depth,f=C.prototype,C=C.circular);var w=[],Q=[],d=void 0!==c;return void 0===C&&(C=!0),void 0===e&&(e=1/0),function Y(y,p){if(null===y)return null;if(0==p)return y;var m,D;if("object"!=typeof y)return y;if(o.__isArray(y))m=[];else if(o.__isRegExp(y))m=new RegExp(y.source,E(y)),y.lastIndex&&(m.lastIndex=y.lastIndex);else if(o.__isDate(y))m=new Date(y.getTime());else{if(d&&c.isBuffer(y))return m=c.allocUnsafe?c.allocUnsafe(y.length):new c(y.length),y.copy(m),m;void 0===f?(D=Object.getPrototypeOf(y),m=Object.create(D)):(m=Object.create(f),D=f)}if(C){var U=w.indexOf(y);if(-1!=U)return Q[U];w.push(y),Q.push(m)}for(var N in y){var F;D&&(F=Object.getOwnPropertyDescriptor(D,N)),(!F||null!=F.set)&&(m[N]=Y(y[N],p-1))}return m}(u,e)}function l(u){return Object.prototype.toString.call(u)}function E(u){var C="";return u.global&&(C+="g"),u.ignoreCase&&(C+="i"),u.multiline&&(C+="m"),C}return o.clonePrototype=function(C){if(null===C)return null;var e=function(){};return e.prototype=C,new e},o.__objToStr=l,o.__isDate=function h(u){return"object"==typeof u&&"[object Date]"===l(u)},o.__isArray=function a(u){return"object"==typeof u&&"[object Array]"===l(u)},o.__isRegExp=function B(u){return"object"==typeof u&&"[object RegExp]"===l(u)},o.__getRegExpFlags=E,o}();T.exports&&(T.exports=i)},4667:function(T,I,n){n(2479);var c=n(857);T.exports=c.Object.values},7633:function(T,I,n){n(9170),n(6992),n(1539),n(8674),n(7922),n(4668),n(7727),n(8783);var c=n(857);T.exports=c.Promise},3867:function(T,I,n){var c=n(1150);n(8628),n(7314),n(7479),n(6290),T.exports=c},9662:function(T,I,n){var c=n(7854),i=n(614),o=n(6330),l=c.TypeError;T.exports=function(h){if(i(h))return h;throw l(o(h)+" is not a function")}},9483:function(T,I,n){var c=n(7854),i=n(4411),o=n(6330),l=c.TypeError;T.exports=function(h){if(i(h))return h;throw l(o(h)+" is not a constructor")}},6077:function(T,I,n){var c=n(7854),i=n(614),o=c.String,l=c.TypeError;T.exports=function(h){if("object"==typeof h||i(h))return h;throw l("Can't set "+o(h)+" as a prototype")}},1223:function(T,I,n){var c=n(5112),i=n(30),o=n(3070),l=c("unscopables"),h=Array.prototype;null==h[l]&&o.f(h,l,{configurable:!0,value:i(null)}),T.exports=function(a){h[l][a]=!0}},1530:function(T,I,n){"use strict";var c=n(8710).charAt;T.exports=function(i,o,l){return o+(l?c(i,o).length:1)}},5787:function(T,I,n){var c=n(7854),i=n(7976),o=c.TypeError;T.exports=function(l,h){if(i(h,l))return l;throw o("Incorrect invocation")}},9670:function(T,I,n){var c=n(7854),i=n(111),o=c.String,l=c.TypeError;T.exports=function(h){if(i(h))return h;throw l(o(h)+" is not an object")}},1048:function(T,I,n){"use strict";var c=n(7908),i=n(1400),o=n(6244),l=Math.min;T.exports=[].copyWithin||function(a,B){var E=c(this),u=o(E),C=i(a,u),e=i(B,u),f=arguments.length>2?arguments[2]:void 0,g=l((void 0===f?u:i(f,u))-e,u-C),w=1;for(e0;)e in E?E[C]=E[e]:delete E[C],C+=w,e+=w;return E}},1285:function(T,I,n){"use strict";var c=n(7908),i=n(1400),o=n(6244);T.exports=function(h){for(var a=c(this),B=o(a),E=arguments.length,u=i(E>1?arguments[1]:void 0,B),C=E>2?arguments[2]:void 0,e=void 0===C?B:i(C,B);e>u;)a[u++]=h;return a}},8533:function(T,I,n){"use strict";var c=n(2092).forEach,o=n(9341)("forEach");T.exports=o?[].forEach:function(h){return c(this,h,arguments.length>1?arguments[1]:void 0)}},7745:function(T){T.exports=function(I,n){for(var c=0,i=n.length,o=new I(i);i>c;)o[c]=n[c++];return o}},8457:function(T,I,n){"use strict";var c=n(7854),i=n(9974),o=n(6916),l=n(7908),h=n(3411),a=n(7659),B=n(4411),E=n(6244),u=n(6135),C=n(8554),e=n(1246),f=c.Array;T.exports=function(w){var Q=l(w),d=B(this),Y=arguments.length,y=Y>1?arguments[1]:void 0,p=void 0!==y;p&&(y=i(y,Y>2?arguments[2]:void 0));var U,N,F,z,L,W,m=e(Q),D=0;if(!m||this==f&&a(m))for(U=E(Q),N=d?new this(U):f(U);U>D;D++)W=p?y(Q[D],D):Q[D],u(N,D,W);else for(L=(z=C(Q,m)).next,N=d?new this:[];!(F=o(L,z)).done;D++)W=p?h(z,y,[F.value,D],!0):F.value,u(N,D,W);return N.length=D,N}},1318:function(T,I,n){var c=n(5656),i=n(1400),o=n(6244),l=function(h){return function(a,B,E){var f,u=c(a),C=o(u),e=i(E,C);if(h&&B!=B){for(;C>e;)if((f=u[e++])!=f)return!0}else for(;C>e;e++)if((h||e in u)&&u[e]===B)return h||e||0;return!h&&-1}};T.exports={includes:l(!0),indexOf:l(!1)}},2092:function(T,I,n){var c=n(9974),i=n(1702),o=n(8361),l=n(7908),h=n(6244),a=n(5417),B=i([].push),E=function(u){var C=1==u,e=2==u,f=3==u,g=4==u,w=6==u,Q=7==u,d=5==u||w;return function(Y,y,p,m){for(var aA,AA,D=l(Y),U=o(D),N=c(y,p),F=h(U),z=0,L=m||a,W=C?L(Y,F):e||Q?L(Y,0):void 0;F>z;z++)if((d||z in U)&&(AA=N(aA=U[z],z,D),u))if(C)W[z]=AA;else if(AA)switch(u){case 3:return!0;case 5:return aA;case 6:return z;case 2:B(W,aA)}else switch(u){case 4:return!1;case 7:B(W,aA)}return w?-1:f||g?g:W}};T.exports={forEach:E(0),map:E(1),filter:E(2),some:E(3),every:E(4),find:E(5),findIndex:E(6),filterReject:E(7)}},6583:function(T,I,n){"use strict";var c=n(2104),i=n(5656),o=n(9303),l=n(6244),h=n(9341),a=Math.min,B=[].lastIndexOf,E=!!B&&1/[1].lastIndexOf(1,-0)<0,u=h("lastIndexOf");T.exports=E||!u?function(f){if(E)return c(B,this,arguments)||0;var g=i(this),w=l(g),Q=w-1;for(arguments.length>1&&(Q=a(Q,o(arguments[1]))),Q<0&&(Q=w+Q);Q>=0;Q--)if(Q in g&&g[Q]===f)return Q||0;return-1}:B},1194:function(T,I,n){var c=n(7293),i=n(5112),o=n(7392),l=i("species");T.exports=function(h){return o>=51||!c(function(){var a=[];return(a.constructor={})[l]=function(){return{foo:1}},1!==a[h](Boolean).foo})}},9341:function(T,I,n){"use strict";var c=n(7293);T.exports=function(i,o){var l=[][i];return!!l&&c(function(){l.call(null,o||function(){throw 1},1)})}},3671:function(T,I,n){var c=n(7854),i=n(9662),o=n(7908),l=n(8361),h=n(6244),a=c.TypeError,B=function(E){return function(u,C,e,f){i(C);var g=o(u),w=l(g),Q=h(g),d=E?Q-1:0,Y=E?-1:1;if(e<2)for(;;){if(d in w){f=w[d],d+=Y;break}if(d+=Y,E?d<0:Q<=d)throw a("Reduce of empty array with no initial value")}for(;E?d>=0:Q>d;d+=Y)d in w&&(f=C(f,w[d],d,g));return f}};T.exports={left:B(!1),right:B(!0)}},206:function(T,I,n){var c=n(1702);T.exports=c([].slice)},4362:function(T,I,n){var c=n(206),i=Math.floor,o=function(a,B){var E=a.length,u=i(E/2);return E<8?l(a,B):h(a,o(c(a,0,u),B),o(c(a,u),B),B)},l=function(a,B){for(var C,e,E=a.length,u=1;u0;)a[e]=a[--e];e!==u++&&(a[e]=C)}return a},h=function(a,B,E,u){for(var C=B.length,e=E.length,f=0,g=0;f1?arguments[1]:void 0);W=W?W.next:z.first;)for(L(W.value,W.key,this);W&&W.removed;)W=W.previous},has:function(F){return!!U(this,F)}}),o(p,d?{get:function(F){var z=U(this,F);return z&&z.value},set:function(F,z){return D(this,0===F?0:F,z)}}:{add:function(F){return D(this,F=0===F?0:F,F)}}),u&&c(p,"size",{get:function(){return m(this).size}}),y},setStrong:function(w,Q,d){var Y=Q+" Iterator",y=g(Q),p=g(Y);B(w,Q,function(m,D){f(this,{type:Y,target:m,state:y(m),kind:D,last:void 0})},function(){for(var m=p(this),D=m.kind,U=m.last;U&&U.removed;)U=U.previous;return m.target&&(m.last=U=U?U.next:m.state.first)?"keys"==D?{value:U.key,done:!1}:"values"==D?{value:U.value,done:!1}:{value:[U.key,U.value],done:!1}:(m.target=void 0,{value:void 0,done:!0})},d?"entries":"values",!d,!0),E(Q)}}},7710:function(T,I,n){"use strict";var c=n(2109),i=n(7854),o=n(1702),l=n(4705),h=n(1320),a=n(2423),B=n(408),E=n(5787),u=n(614),C=n(111),e=n(7293),f=n(7072),g=n(8003),w=n(9587);T.exports=function(Q,d,Y){var y=-1!==Q.indexOf("Map"),p=-1!==Q.indexOf("Weak"),m=y?"set":"add",D=i[Q],U=D&&D.prototype,N=D,F={},z=function(cA){var gA=o(U[cA]);h(U,cA,"add"==cA?function(vA){return gA(this,0===vA?0:vA),this}:"delete"==cA?function(BA){return!(p&&!C(BA))&&gA(this,0===BA?0:BA)}:"get"==cA?function(vA){return p&&!C(vA)?void 0:gA(this,0===vA?0:vA)}:"has"==cA?function(vA){return!(p&&!C(vA))&&gA(this,0===vA?0:vA)}:function(vA,FA){return gA(this,0===vA?0:vA,FA),this})};if(l(Q,!u(D)||!(p||U.forEach&&!e(function(){(new D).entries().next()}))))N=Y.getConstructor(d,Q,y,m),a.enable();else if(l(Q,!0)){var W=new N,aA=W[m](p?{}:-0,1)!=W,AA=e(function(){W.has(1)}),lA=f(function(cA){new D(cA)}),MA=!p&&e(function(){for(var cA=new D,gA=5;gA--;)cA[m](gA,gA);return!cA.has(-0)});lA||((N=d(function(cA,gA){E(cA,U);var BA=w(new D,cA,N);return null!=gA&&B(gA,BA[m],{that:BA,AS_ENTRIES:y}),BA})).prototype=U,U.constructor=N),(AA||MA)&&(z("delete"),z("has"),y&&z("get")),(MA||aA)&&z(m),p&&U.clear&&delete U.clear}return F[Q]=N,c({global:!0,forced:N!=D},F),g(N,Q),p||Y.setStrong(N,Q,y),N}},9920:function(T,I,n){var c=n(2597),i=n(3887),o=n(1236),l=n(3070);T.exports=function(h,a){for(var B=i(a),E=l.f,u=o.f,C=0;C"+C+""}},4994:function(T,I,n){"use strict";var c=n(3383).IteratorPrototype,i=n(30),o=n(9114),l=n(8003),h=n(7497),a=function(){return this};T.exports=function(B,E,u){var C=E+" Iterator";return B.prototype=i(c,{next:o(1,u)}),l(B,C,!1,!0),h[C]=a,B}},8880:function(T,I,n){var c=n(9781),i=n(3070),o=n(9114);T.exports=c?function(l,h,a){return i.f(l,h,o(1,a))}:function(l,h,a){return l[h]=a,l}},9114:function(T){T.exports=function(I,n){return{enumerable:!(1&I),configurable:!(2&I),writable:!(4&I),value:n}}},6135:function(T,I,n){"use strict";var c=n(4948),i=n(3070),o=n(9114);T.exports=function(l,h,a){var B=c(h);B in l?i.f(l,B,o(0,a)):l[B]=a}},8709:function(T,I,n){"use strict";var c=n(7854),i=n(9670),o=n(2140),l=c.TypeError;T.exports=function(h){if(i(this),"string"===h||"default"===h)h="string";else if("number"!==h)throw l("Incorrect hint");return o(this,h)}},654:function(T,I,n){"use strict";var c=n(2109),i=n(6916),o=n(1913),l=n(6530),h=n(614),a=n(4994),B=n(9518),E=n(7674),u=n(8003),C=n(8880),e=n(1320),f=n(5112),g=n(7497),w=n(3383),Q=l.PROPER,d=l.CONFIGURABLE,Y=w.IteratorPrototype,y=w.BUGGY_SAFARI_ITERATORS,p=f("iterator"),m="keys",D="values",U="entries",N=function(){return this};T.exports=function(F,z,L,W,aA,AA,lA){a(L,z,W);var dA,uA,CA,MA=function(NA){if(NA===aA&&FA)return FA;if(!y&&NA in BA)return BA[NA];switch(NA){case m:case D:case U:return function(){return new L(this,NA)}}return function(){return new L(this)}},cA=z+" Iterator",gA=!1,BA=F.prototype,vA=BA[p]||BA["@@iterator"]||aA&&BA[aA],FA=!y&&vA||MA(aA),_="Array"==z&&BA.entries||vA;if(_&&(dA=B(_.call(new F)))!==Object.prototype&&dA.next&&(!o&&B(dA)!==Y&&(E?E(dA,Y):h(dA[p])||e(dA,p,N)),u(dA,cA,!0,!0),o&&(g[cA]=N)),Q&&aA==D&&vA&&vA.name!==D&&(!o&&d?C(BA,"name",D):(gA=!0,FA=function(){return i(vA,this)})),aA)if(uA={values:MA(D),keys:AA?FA:MA(m),entries:MA(U)},lA)for(CA in uA)(y||gA||!(CA in BA))&&e(BA,CA,uA[CA]);else c({target:z,proto:!0,forced:y||gA},uA);return(!o||lA)&&BA[p]!==FA&&e(BA,p,FA,{name:aA}),g[z]=FA,uA}},7235:function(T,I,n){var c=n(857),i=n(2597),o=n(6061),l=n(3070).f;T.exports=function(h){var a=c.Symbol||(c.Symbol={});i(a,h)||l(a,h,{value:o.f(h)})}},9781:function(T,I,n){var c=n(7293);T.exports=!c(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},317:function(T,I,n){var c=n(7854),i=n(111),o=c.document,l=i(o)&&i(o.createElement);T.exports=function(h){return l?o.createElement(h):{}}},8324:function(T){T.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:function(T,I,n){var i=n(317)("span").classList,o=i&&i.constructor&&i.constructor.prototype;T.exports=o===Object.prototype?void 0:o},8886:function(T,I,n){var i=n(8113).match(/firefox\/(\d+)/i);T.exports=!!i&&+i[1]},7871:function(T){T.exports="object"==typeof window},256:function(T,I,n){var c=n(8113);T.exports=/MSIE|Trident/.test(c)},1528:function(T,I,n){var c=n(8113),i=n(7854);T.exports=/ipad|iphone|ipod/i.test(c)&&void 0!==i.Pebble},6833:function(T,I,n){var c=n(8113);T.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(c)},5268:function(T,I,n){var c=n(4326),i=n(7854);T.exports="process"==c(i.process)},1036:function(T,I,n){var c=n(8113);T.exports=/web0s(?!.*chrome)/i.test(c)},8113:function(T,I,n){var c=n(5005);T.exports=c("navigator","userAgent")||""},7392:function(T,I,n){var B,E,c=n(7854),i=n(8113),o=c.process,l=c.Deno,h=o&&o.versions||l&&l.version,a=h&&h.v8;a&&(E=(B=a.split("."))[0]>0&&B[0]<4?1:+(B[0]+B[1])),!E&&i&&(!(B=i.match(/Edge\/(\d+)/))||B[1]>=74)&&(B=i.match(/Chrome\/(\d+)/))&&(E=+B[1]),T.exports=E},8008:function(T,I,n){var i=n(8113).match(/AppleWebKit\/(\d+)\./);T.exports=!!i&&+i[1]},748:function(T){T.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(T,I,n){var c=n(7293),i=n(9114);T.exports=!c(function(){var o=Error("a");return!("stack"in o)||(Object.defineProperty(o,"stack",i(1,7)),7!==o.stack)})},2109:function(T,I,n){var c=n(7854),i=n(1236).f,o=n(8880),l=n(1320),h=n(3505),a=n(9920),B=n(4705);T.exports=function(E,u){var w,Q,d,Y,y,C=E.target,e=E.global,f=E.stat;if(w=e?c:f?c[C]||h(C,{}):(c[C]||{}).prototype)for(Q in u){if(Y=u[Q],d=E.noTargetGet?(y=i(w,Q))&&y.value:w[Q],!B(e?Q:C+(f?".":"#")+Q,E.forced)&&void 0!==d){if(typeof Y==typeof d)continue;a(Y,d)}(E.sham||d&&d.sham)&&o(Y,"sham",!0),l(w,Q,Y,E)}}},7293:function(T){T.exports=function(I){try{return!!I()}catch(n){return!0}}},7007:function(T,I,n){"use strict";n(4916);var c=n(1702),i=n(1320),o=n(2261),l=n(7293),h=n(5112),a=n(8880),B=h("species"),E=RegExp.prototype;T.exports=function(u,C,e,f){var g=h(u),w=!l(function(){var y={};return y[g]=function(){return 7},7!=""[u](y)}),Q=w&&!l(function(){var y=!1,p=/a/;return"split"===u&&((p={}).constructor={},p.constructor[B]=function(){return p},p.flags="",p[g]=/./[g]),p.exec=function(){return y=!0,null},p[g](""),!y});if(!w||!Q||e){var d=c(/./[g]),Y=C(g,""[u],function(y,p,m,D,U){var N=c(y),F=p.exec;return F===o||F===E.exec?w&&!U?{done:!0,value:d(p,m,D)}:{done:!0,value:N(m,p,D)}:{done:!1}});i(String.prototype,u,Y[0]),i(E,g,Y[1])}f&&a(E[g],"sham",!0)}},6677:function(T,I,n){var c=n(7293);T.exports=!c(function(){return Object.isExtensible(Object.preventExtensions({}))})},2104:function(T){var I=Function.prototype,n=I.apply,i=I.call;T.exports="object"==typeof Reflect&&Reflect.apply||(I.bind?i.bind(n):function(){return i.apply(n,arguments)})},9974:function(T,I,n){var c=n(1702),i=n(9662),o=c(c.bind);T.exports=function(l,h){return i(l),void 0===h?l:o?o(l,h):function(){return l.apply(h,arguments)}}},7065:function(T,I,n){"use strict";var c=n(7854),i=n(1702),o=n(9662),l=n(111),h=n(2597),a=n(206),B=c.Function,E=i([].concat),u=i([].join),C={},e=function(f,g,w){if(!h(C,g)){for(var Q=[],d=0;d]*>)/g,E=/\$([$&'`]|\d{1,2})/g;T.exports=function(u,C,e,f,g,w){var Q=e+u.length,d=f.length,Y=E;return void 0!==g&&(g=i(g),Y=B),h(w,Y,function(y,p){var m;switch(l(p,0)){case"$":return"$";case"&":return u;case"`":return a(C,0,e);case"'":return a(C,Q);case"<":m=g[a(p,1,-1)];break;default:var D=+p;if(0===D)return y;if(D>d){var U=o(D/10);return 0===U?y:U<=d?void 0===f[U-1]?l(p,1):f[U-1]+l(p,1):y}m=f[D-1]}return void 0===m?"":m})}},7854:function(T,I,n){var c=function(i){return i&&i.Math==Math&&i};T.exports=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(T,I,n){var c=n(1702),i=n(7908),o=c({}.hasOwnProperty);T.exports=Object.hasOwn||function(h,a){return o(i(h),a)}},3501:function(T){T.exports={}},842:function(T,I,n){var c=n(7854);T.exports=function(i,o){var l=c.console;l&&l.error&&(1==arguments.length?l.error(i):l.error(i,o))}},490:function(T,I,n){var c=n(5005);T.exports=c("document","documentElement")},4664:function(T,I,n){var c=n(9781),i=n(7293),o=n(317);T.exports=!c&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},1179:function(T,I,n){var i=n(7854).Array,o=Math.abs,l=Math.pow,h=Math.floor,a=Math.log,B=Math.LN2;T.exports={pack:function(C,e,f){var m,D,U,g=i(f),w=8*f-e-1,Q=(1<>1,Y=23===e?l(2,-24)-l(2,-77):0,y=C<0||0===C&&1/C<0?1:0,p=0;for((C=o(C))!=C||C===1/0?(D=C!=C?1:0,m=Q):(m=h(a(C)/B),C*(U=l(2,-m))<1&&(m--,U*=2),(C+=m+d>=1?Y/U:Y*l(2,1-d))*U>=2&&(m++,U/=2),m+d>=Q?(D=0,m=Q):m+d>=1?(D=(C*U-1)*l(2,e),m+=d):(D=C*l(2,d-1)*l(2,e),m=0));e>=8;g[p++]=255&D,D/=256,e-=8);for(m=m<0;g[p++]=255&m,m/=256,w-=8);return g[--p]|=128*y,g},unpack:function(C,e){var m,f=C.length,g=8*f-e-1,w=(1<>1,d=g-7,Y=f-1,y=C[Y--],p=127&y;for(y>>=7;d>0;p=256*p+C[Y],Y--,d-=8);for(m=p&(1<<-d)-1,p>>=-d,d+=e;d>0;m=256*m+C[Y],Y--,d-=8);if(0===p)p=1-Q;else{if(p===w)return m?NaN:y?-1/0:1/0;m+=l(2,e),p-=Q}return(y?-1:1)*m*l(2,p-e)}}},8361:function(T,I,n){var c=n(7854),i=n(1702),o=n(7293),l=n(4326),h=c.Object,a=i("".split);T.exports=o(function(){return!h("z").propertyIsEnumerable(0)})?function(B){return"String"==l(B)?a(B,""):h(B)}:h},9587:function(T,I,n){var c=n(614),i=n(111),o=n(7674);T.exports=function(l,h,a){var B,E;return o&&c(B=h.constructor)&&B!==a&&i(E=B.prototype)&&E!==a.prototype&&o(l,E),l}},2788:function(T,I,n){var c=n(1702),i=n(614),o=n(5465),l=c(Function.toString);i(o.inspectSource)||(o.inspectSource=function(h){return l(h)}),T.exports=o.inspectSource},8340:function(T,I,n){var c=n(111),i=n(8880);T.exports=function(o,l){c(l)&&"cause"in l&&i(o,"cause",l.cause)}},2423:function(T,I,n){var c=n(2109),i=n(1702),o=n(3501),l=n(111),h=n(2597),a=n(3070).f,B=n(8006),E=n(1156),u=n(9711),C=n(6677),e=!1,f=u("meta"),g=0,w=Object.isExtensible||function(){return!0},Q=function(D){a(D,f,{value:{objectID:"O"+g++,weakData:{}}})},m=T.exports={enable:function(){m.enable=function(){},e=!0;var D=B.f,U=i([].splice),N={};N[f]=1,D(N).length&&(B.f=function(F){for(var z=D(F),L=0,W=z.length;Lz;z++)if((W=MA(Q[z]))&&E(w,W))return W;return new g(!1)}N=u(Q,F)}for(aA=N.next;!(AA=o(aA,N)).done;){try{W=MA(AA.value)}catch(cA){e(N,"throw",cA)}if("object"==typeof W&&W&&E(w,W))return W}return new g(!1)}},9212:function(T,I,n){var c=n(6916),i=n(9670),o=n(8173);T.exports=function(l,h,a){var B,E;i(l);try{if(!(B=o(l,"return"))){if("throw"===h)throw a;return a}B=c(B,l)}catch(u){E=!0,B=u}if("throw"===h)throw a;if(E)throw B;return i(B),a}},3383:function(T,I,n){"use strict";var C,e,f,c=n(7293),i=n(614),o=n(30),l=n(9518),h=n(1320),a=n(5112),B=n(1913),E=a("iterator"),u=!1;[].keys&&("next"in(f=[].keys())?(e=l(l(f)))!==Object.prototype&&(C=e):u=!0),null==C||c(function(){var w={};return C[E].call(w)!==w})?C={}:B&&(C=o(C)),i(C[E])||h(C,E,function(){return this}),T.exports={IteratorPrototype:C,BUGGY_SAFARI_ITERATORS:u}},7497:function(T){T.exports={}},6244:function(T,I,n){var c=n(7466);T.exports=function(i){return c(i.length)}},5948:function(T,I,n){var Q,d,Y,y,p,m,D,U,c=n(7854),i=n(9974),o=n(1236).f,l=n(261).set,h=n(6833),a=n(1528),B=n(1036),E=n(5268),u=c.MutationObserver||c.WebKitMutationObserver,C=c.document,e=c.process,f=c.Promise,g=o(c,"queueMicrotask"),w=g&&g.value;w||(Q=function(){var N,F;for(E&&(N=e.domain)&&N.exit();d;){F=d.fn,d=d.next;try{F()}catch(z){throw d?y():Y=void 0,z}}Y=void 0,N&&N.enter()},h||E||B||!u||!C?!a&&f&&f.resolve?((D=f.resolve(void 0)).constructor=f,U=i(D.then,D),y=function(){U(Q)}):E?y=function(){e.nextTick(Q)}:(l=i(l,c),y=function(){l(Q)}):(p=!0,m=C.createTextNode(""),new u(Q).observe(m,{characterData:!0}),y=function(){m.data=p=!p})),T.exports=w||function(N){var F={fn:N,next:void 0};Y&&(Y.next=F),d||(d=F,y()),Y=F}},3366:function(T,I,n){var c=n(7854);T.exports=c.Promise},133:function(T,I,n){var c=n(7392),i=n(7293);T.exports=!!Object.getOwnPropertySymbols&&!i(function(){var o=Symbol();return!String(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&c&&c<41})},8536:function(T,I,n){var c=n(7854),i=n(614),o=n(2788),l=c.WeakMap;T.exports=i(l)&&/native code/.test(o(l))},8523:function(T,I,n){"use strict";var c=n(9662),i=function(o){var l,h;this.promise=new o(function(a,B){if(void 0!==l||void 0!==h)throw TypeError("Bad Promise constructor");l=a,h=B}),this.resolve=c(l),this.reject=c(h)};T.exports.f=function(o){return new i(o)}},6277:function(T,I,n){var c=n(1340);T.exports=function(i,o){return void 0===i?arguments.length<2?"":o:c(i)}},3929:function(T,I,n){var c=n(7854),i=n(7850),o=c.TypeError;T.exports=function(l){if(i(l))throw o("The method doesn't accept regular expressions");return l}},7023:function(T,I,n){var i=n(7854).isFinite;T.exports=Number.isFinite||function(l){return"number"==typeof l&&i(l)}},1574:function(T,I,n){"use strict";var c=n(9781),i=n(1702),o=n(6916),l=n(7293),h=n(1956),a=n(5181),B=n(5296),E=n(7908),u=n(8361),C=Object.assign,e=Object.defineProperty,f=i([].concat);T.exports=!C||l(function(){if(c&&1!==C({b:1},C(e({},"a",{enumerable:!0,get:function(){e(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var g={},w={},Q=Symbol(),d="abcdefghijklmnopqrst";return g[Q]=7,d.split("").forEach(function(Y){w[Y]=Y}),7!=C({},g)[Q]||h(C({},w)).join("")!=d})?function(w,Q){for(var d=E(w),Y=arguments.length,y=1,p=a.f,m=B.f;Y>y;)for(var z,D=u(arguments[y++]),U=p?f(h(D),p(D)):h(D),N=U.length,F=0;N>F;)z=U[F++],(!c||o(m,D,z))&&(d[z]=D[z]);return d}:C},30:function(T,I,n){var Y,c=n(9670),i=n(6048),o=n(748),l=n(3501),h=n(490),a=n(317),B=n(6200),C="prototype",e="script",f=B("IE_PROTO"),g=function(){},w=function(p){return"<"+e+">"+p+""},Q=function(p){p.write(w("")),p.close();var m=p.parentWindow.Object;return p=null,m},y=function(){try{Y=new ActiveXObject("htmlfile")}catch(m){}y="undefined"!=typeof document?document.domain&&Y?Q(Y):function(){var D,p=a("iframe");return p.style.display="none",h.appendChild(p),p.src=String("javascript:"),(D=p.contentWindow.document).open(),D.write(w("document.F=Object")),D.close(),D.F}():Q(Y);for(var p=o.length;p--;)delete y[C][o[p]];return y()};l[f]=!0,T.exports=Object.create||function(m,D){var U;return null!==m?(g[C]=c(m),U=new g,g[C]=null,U[f]=m):U=y(),void 0===D?U:i(U,D)}},6048:function(T,I,n){var c=n(9781),i=n(3070),o=n(9670),l=n(5656),h=n(1956);T.exports=c?Object.defineProperties:function(B,E){o(B);for(var g,u=l(E),C=h(E),e=C.length,f=0;e>f;)i.f(B,g=C[f++],u[g]);return B}},3070:function(T,I,n){var c=n(7854),i=n(9781),o=n(4664),l=n(9670),h=n(4948),a=c.TypeError,B=Object.defineProperty;I.f=i?B:function(u,C,e){if(l(u),C=h(C),l(e),o)try{return B(u,C,e)}catch(f){}if("get"in e||"set"in e)throw a("Accessors not supported");return"value"in e&&(u[C]=e.value),u}},1236:function(T,I,n){var c=n(9781),i=n(6916),o=n(5296),l=n(9114),h=n(5656),a=n(4948),B=n(2597),E=n(4664),u=Object.getOwnPropertyDescriptor;I.f=c?u:function(e,f){if(e=h(e),f=a(f),E)try{return u(e,f)}catch(g){}if(B(e,f))return l(!i(o.f,e,f),e[f])}},1156:function(T,I,n){var c=n(4326),i=n(5656),o=n(8006).f,l=n(206),h="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];T.exports.f=function(E){return h&&"Window"==c(E)?function(B){try{return o(B)}catch(E){return l(h)}}(E):o(i(E))}},8006:function(T,I,n){var c=n(6324),o=n(748).concat("length","prototype");I.f=Object.getOwnPropertyNames||function(h){return c(h,o)}},5181:function(T,I){I.f=Object.getOwnPropertySymbols},9518:function(T,I,n){var c=n(7854),i=n(2597),o=n(614),l=n(7908),h=n(6200),a=n(8544),B=h("IE_PROTO"),E=c.Object,u=E.prototype;T.exports=a?E.getPrototypeOf:function(C){var e=l(C);if(i(e,B))return e[B];var f=e.constructor;return o(f)&&e instanceof f?f.prototype:e instanceof E?u:null}},7976:function(T,I,n){var c=n(1702);T.exports=c({}.isPrototypeOf)},6324:function(T,I,n){var c=n(1702),i=n(2597),o=n(5656),l=n(1318).indexOf,h=n(3501),a=c([].push);T.exports=function(B,E){var f,u=o(B),C=0,e=[];for(f in u)!i(h,f)&&i(u,f)&&a(e,f);for(;E.length>C;)i(u,f=E[C++])&&(~l(e,f)||a(e,f));return e}},1956:function(T,I,n){var c=n(6324),i=n(748);T.exports=Object.keys||function(l){return c(l,i)}},5296:function(T,I){"use strict";var n={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,i=c&&!n.call({1:2},1);I.f=i?function(l){var h=c(this,l);return!!h&&h.enumerable}:n},7674:function(T,I,n){var c=n(1702),i=n(9670),o=n(6077);T.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var a,l=!1,h={};try{(a=c(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(h,[]),l=h instanceof Array}catch(B){}return function(E,u){return i(E),o(u),l?a(E,u):E.__proto__=u,E}}():void 0)},4699:function(T,I,n){var c=n(9781),i=n(1702),o=n(1956),l=n(5656),a=i(n(5296).f),B=i([].push),E=function(u){return function(C){for(var d,e=l(C),f=o(e),g=f.length,w=0,Q=[];g>w;)d=f[w++],(!c||a(e,d))&&B(Q,u?[d,e[d]]:e[d]);return Q}};T.exports={entries:E(!0),values:E(!1)}},288:function(T,I,n){"use strict";var c=n(1694),i=n(648);T.exports=c?{}.toString:function(){return"[object "+i(this)+"]"}},2140:function(T,I,n){var c=n(7854),i=n(6916),o=n(614),l=n(111),h=c.TypeError;T.exports=function(a,B){var E,u;if("string"===B&&o(E=a.toString)&&!l(u=i(E,a))||o(E=a.valueOf)&&!l(u=i(E,a))||"string"!==B&&o(E=a.toString)&&!l(u=i(E,a)))return u;throw h("Can't convert object to primitive value")}},3887:function(T,I,n){var c=n(5005),i=n(1702),o=n(8006),l=n(5181),h=n(9670),a=i([].concat);T.exports=c("Reflect","ownKeys")||function(E){var u=o.f(h(E)),C=l.f;return C?a(u,C(E)):u}},857:function(T,I,n){var c=n(7854);T.exports=c},2534:function(T){T.exports=function(I){try{return{error:!1,value:I()}}catch(n){return{error:!0,value:n}}}},9478:function(T,I,n){var c=n(9670),i=n(111),o=n(8523);T.exports=function(l,h){if(c(l),i(h)&&h.constructor===l)return h;var a=o.f(l);return(0,a.resolve)(h),a.promise}},2248:function(T,I,n){var c=n(1320);T.exports=function(i,o,l){for(var h in o)c(i,h,o[h],l);return i}},1320:function(T,I,n){var c=n(7854),i=n(614),o=n(2597),l=n(8880),h=n(3505),a=n(2788),B=n(9909),E=n(6530).CONFIGURABLE,u=B.get,C=B.enforce,e=String(String).split("String");(T.exports=function(f,g,w,Q){var m,d=!!Q&&!!Q.unsafe,Y=!!Q&&!!Q.enumerable,y=!!Q&&!!Q.noTargetGet,p=Q&&void 0!==Q.name?Q.name:g;i(w)&&("Symbol("===String(p).slice(0,7)&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(w,"name")||E&&w.name!==p)&&l(w,"name",p),(m=C(w)).source||(m.source=e.join("string"==typeof p?p:""))),f!==c?(d?!y&&f[g]&&(Y=!0):delete f[g],Y?f[g]=w:l(f,g,w)):Y?f[g]=w:h(g,w)})(Function.prototype,"toString",function(){return i(this)&&u(this).source||a(this)})},7651:function(T,I,n){var c=n(7854),i=n(6916),o=n(9670),l=n(614),h=n(4326),a=n(2261),B=c.TypeError;T.exports=function(E,u){var C=E.exec;if(l(C)){var e=i(C,E,u);return null!==e&&o(e),e}if("RegExp"===h(E))return i(a,E,u);throw B("RegExp#exec called on incompatible receiver")}},2261:function(T,I,n){"use strict";var U,N,c=n(6916),i=n(1702),o=n(1340),l=n(7066),h=n(2999),a=n(2309),B=n(30),E=n(9909).get,u=n(9441),C=n(7168),e=a("native-string-replace",String.prototype.replace),f=RegExp.prototype.exec,g=f,w=i("".charAt),Q=i("".indexOf),d=i("".replace),Y=i("".slice),y=(N=/b*/g,c(f,U=/a/,"a"),c(f,N,"a"),0!==U.lastIndex||0!==N.lastIndex),p=h.UNSUPPORTED_Y||h.BROKEN_CARET,m=void 0!==/()??/.exec("")[1];(y||m||p||u||C)&&(g=function(N){var aA,AA,lA,MA,cA,gA,BA,F=this,z=E(F),L=o(N),W=z.raw;if(W)return W.lastIndex=F.lastIndex,aA=c(g,W,L),F.lastIndex=W.lastIndex,aA;var vA=z.groups,FA=p&&F.sticky,_=c(l,F),dA=F.source,uA=0,CA=L;if(FA&&(_=d(_,"y",""),-1===Q(_,"g")&&(_+="g"),CA=Y(L,F.lastIndex),F.lastIndex>0&&(!F.multiline||F.multiline&&"\n"!==w(L,F.lastIndex-1))&&(dA="(?: "+dA+")",CA=" "+CA,uA++),AA=new RegExp("^(?:"+dA+")",_)),m&&(AA=new RegExp("^"+dA+"$(?!\\s)",_)),y&&(lA=F.lastIndex),MA=c(f,FA?AA:F,CA),FA?MA?(MA.input=Y(MA.input,uA),MA[0]=Y(MA[0],uA),MA.index=F.lastIndex,F.lastIndex+=MA[0].length):F.lastIndex=0:y&&MA&&(F.lastIndex=F.global?MA.index+MA[0].length:lA),m&&MA&&MA.length>1&&c(e,MA[0],AA,function(){for(cA=1;cAb)","g");return"b"!==l.exec("b").groups.a||"bc"!=="b".replace(l,"$c")})},4488:function(T,I,n){var i=n(7854).TypeError;T.exports=function(o){if(null==o)throw i("Can't call method on "+o);return o}},3505:function(T,I,n){var c=n(7854),i=Object.defineProperty;T.exports=function(o,l){try{i(c,o,{value:l,configurable:!0,writable:!0})}catch(h){c[o]=l}return l}},6340:function(T,I,n){"use strict";var c=n(5005),i=n(3070),o=n(5112),l=n(9781),h=o("species");T.exports=function(a){var B=c(a);l&&B&&!B[h]&&(0,i.f)(B,h,{configurable:!0,get:function(){return this}})}},8003:function(T,I,n){var c=n(3070).f,i=n(2597),l=n(5112)("toStringTag");T.exports=function(h,a,B){h&&!i(h=B?h:h.prototype,l)&&c(h,l,{configurable:!0,value:a})}},6200:function(T,I,n){var c=n(2309),i=n(9711),o=c("keys");T.exports=function(l){return o[l]||(o[l]=i(l))}},5465:function(T,I,n){var c=n(7854),i=n(3505),o="__core-js_shared__",l=c[o]||i(o,{});T.exports=l},2309:function(T,I,n){var c=n(1913),i=n(5465);(T.exports=function(o,l){return i[o]||(i[o]=void 0!==l?l:{})})("versions",[]).push({version:"3.19.0",mode:c?"pure":"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(T,I,n){var c=n(9670),i=n(9483),l=n(5112)("species");T.exports=function(h,a){var E,B=c(h).constructor;return void 0===B||null==(E=c(B)[l])?a:i(E)}},3429:function(T,I,n){var c=n(7293);T.exports=function(i){return c(function(){var o=""[i]('"');return o!==o.toLowerCase()||o.split('"').length>3})}},8710:function(T,I,n){var c=n(1702),i=n(9303),o=n(1340),l=n(4488),h=c("".charAt),a=c("".charCodeAt),B=c("".slice),E=function(u){return function(C,e){var Q,d,f=o(l(C)),g=i(e),w=f.length;return g<0||g>=w?u?"":void 0:(Q=a(f,g))<55296||Q>56319||g+1===w||(d=a(f,g+1))<56320||d>57343?u?h(f,g):Q:u?B(f,g,g+2):d-56320+(Q-55296<<10)+65536}};T.exports={codeAt:E(!1),charAt:E(!0)}},8415:function(T,I,n){"use strict";var c=n(7854),i=n(9303),o=n(1340),l=n(4488),h=c.RangeError;T.exports=function(B){var E=o(l(this)),u="",C=i(B);if(C<0||C==1/0)throw h("Wrong number of repetitions");for(;C>0;(C>>>=1)&&(E+=E))1&C&&(u+=E);return u}},6091:function(T,I,n){var c=n(6530).PROPER,i=n(7293),o=n(1361);T.exports=function(h){return i(function(){return!!o[h]()||"\u200b\x85\u180e"!=="\u200b\x85\u180e"[h]()||c&&o[h].name!==h})}},3111:function(T,I,n){var c=n(1702),i=n(4488),o=n(1340),l=n(1361),h=c("".replace),a="["+l+"]",B=RegExp("^"+a+a+"*"),E=RegExp(a+a+"*$"),u=function(C){return function(e){var f=o(i(e));return 1&C&&(f=h(f,B,"")),2&C&&(f=h(f,E,"")),f}};T.exports={start:u(1),end:u(2),trim:u(3)}},261:function(T,I,n){var U,N,F,z,c=n(7854),i=n(2104),o=n(9974),l=n(614),h=n(2597),a=n(7293),B=n(490),E=n(206),u=n(317),C=n(6833),e=n(5268),f=c.setImmediate,g=c.clearImmediate,w=c.process,Q=c.Dispatch,d=c.Function,Y=c.MessageChannel,y=c.String,p=0,m={},D="onreadystatechange";try{U=c.location}catch(lA){}var L=function(lA){if(h(m,lA)){var MA=m[lA];delete m[lA],MA()}},W=function(lA){return function(){L(lA)}},aA=function(lA){L(lA.data)},AA=function(lA){c.postMessage(y(lA),U.protocol+"//"+U.host)};(!f||!g)&&(f=function(MA){var cA=E(arguments,1);return m[++p]=function(){i(l(MA)?MA:d(MA),void 0,cA)},N(p),p},g=function(MA){delete m[MA]},e?N=function(lA){w.nextTick(W(lA))}:Q&&Q.now?N=function(lA){Q.now(W(lA))}:Y&&!C?(z=(F=new Y).port2,F.port1.onmessage=aA,N=o(z.postMessage,z)):c.addEventListener&&l(c.postMessage)&&!c.importScripts&&U&&"file:"!==U.protocol&&!a(AA)?(N=AA,c.addEventListener("message",aA,!1)):N=D in u("script")?function(lA){B.appendChild(u("script"))[D]=function(){B.removeChild(this),L(lA)}}:function(lA){setTimeout(W(lA),0)}),T.exports={set:f,clear:g}},863:function(T,I,n){var c=n(1702);T.exports=c(1..valueOf)},1400:function(T,I,n){var c=n(9303),i=Math.max,o=Math.min;T.exports=function(l,h){var a=c(l);return a<0?i(a+h,0):o(a,h)}},7067:function(T,I,n){var c=n(7854),i=n(9303),o=n(7466),l=c.RangeError;T.exports=function(h){if(void 0===h)return 0;var a=i(h),B=o(a);if(a!==B)throw l("Wrong length or index");return B}},5656:function(T,I,n){var c=n(8361),i=n(4488);T.exports=function(o){return c(i(o))}},9303:function(T){var I=Math.ceil,n=Math.floor;T.exports=function(c){var i=+c;return i!=i||0===i?0:(i>0?n:I)(i)}},7466:function(T,I,n){var c=n(9303),i=Math.min;T.exports=function(o){return o>0?i(c(o),9007199254740991):0}},7908:function(T,I,n){var c=n(7854),i=n(4488),o=c.Object;T.exports=function(l){return o(i(l))}},4590:function(T,I,n){var c=n(7854),i=n(3002),o=c.RangeError;T.exports=function(l,h){var a=i(l);if(a%h)throw o("Wrong offset");return a}},3002:function(T,I,n){var c=n(7854),i=n(9303),o=c.RangeError;T.exports=function(l){var h=i(l);if(h<0)throw o("The argument can't be less than 0");return h}},7593:function(T,I,n){var c=n(7854),i=n(6916),o=n(111),l=n(2190),h=n(8173),a=n(2140),B=n(5112),E=c.TypeError,u=B("toPrimitive");T.exports=function(C,e){if(!o(C)||l(C))return C;var g,f=h(C,u);if(f){if(void 0===e&&(e="default"),g=i(f,C,e),!o(g)||l(g))return g;throw E("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(C,e)}},4948:function(T,I,n){var c=n(7593),i=n(2190);T.exports=function(o){var l=c(o,"string");return i(l)?l:l+""}},1694:function(T,I,n){var o={};o[n(5112)("toStringTag")]="z",T.exports="[object z]"===String(o)},1340:function(T,I,n){var c=n(7854),i=n(648),o=c.String;T.exports=function(l){if("Symbol"===i(l))throw TypeError("Cannot convert a Symbol value to a string");return o(l)}},6330:function(T,I,n){var i=n(7854).String;T.exports=function(o){try{return i(o)}catch(l){return"Object"}}},9843:function(T,I,n){"use strict";var c=n(2109),i=n(7854),o=n(6916),l=n(9781),h=n(3832),a=n(2094),B=n(2091),E=n(5787),u=n(9114),C=n(8880),e=n(5988),f=n(7466),g=n(7067),w=n(4590),Q=n(4948),d=n(2597),Y=n(648),y=n(111),p=n(2190),m=n(30),D=n(7976),U=n(7674),N=n(8006).f,F=n(7321),z=n(2092).forEach,L=n(6340),W=n(3070),aA=n(1236),AA=n(9909),lA=n(9587),MA=AA.get,cA=AA.set,gA=W.f,BA=aA.f,vA=Math.round,FA=i.RangeError,_=B.ArrayBuffer,dA=_.prototype,uA=B.DataView,CA=a.NATIVE_ARRAY_BUFFER_VIEWS,NA=a.TYPED_ARRAY_CONSTRUCTOR,bA=a.TYPED_ARRAY_TAG,XA=a.TypedArray,q=a.TypedArrayPrototype,O=a.aTypedArrayConstructor,$=a.isTypedArray,V="BYTES_PER_ELEMENT",hA="Wrong length",mA=function(TA,it){O(TA);for(var mt=0,It=it.length,ut=new TA(It);It>mt;)ut[mt]=it[mt++];return ut},nA=function(TA,it){gA(TA,it,{get:function(){return MA(this)[it]}})},EA=function(TA){var it;return D(dA,TA)||"ArrayBuffer"==(it=Y(TA))||"SharedArrayBuffer"==it},GA=function(TA,it){return $(TA)&&!p(it)&&it in TA&&e(+it)&&it>=0},et=function(it,mt){return mt=Q(mt),GA(it,mt)?u(2,it[mt]):BA(it,mt)},ot=function(it,mt,It){return mt=Q(mt),!(GA(it,mt)&&y(It)&&d(It,"value"))||d(It,"get")||d(It,"set")||It.configurable||d(It,"writable")&&!It.writable||d(It,"enumerable")&&!It.enumerable?gA(it,mt,It):(it[mt]=It.value,it)};l?(CA||(aA.f=et,W.f=ot,nA(q,"buffer"),nA(q,"byteOffset"),nA(q,"byteLength"),nA(q,"length")),c({target:"Object",stat:!0,forced:!CA},{getOwnPropertyDescriptor:et,defineProperty:ot}),T.exports=function(TA,it,mt){var It=TA.match(/\d+$/)[0]/8,ut=TA+(mt?"Clamped":"")+"Array",JA="get"+TA,VA="set"+TA,rt=i[ut],yA=rt,Mt=yA&&yA.prototype,ft={},H=function(k,R){gA(k,R,{get:function(){return function(k,R){var QA=MA(k);return QA.view[JA](R*It+QA.byteOffset,!0)}(this,R)},set:function(QA){return function(k,R,QA){var wA=MA(k);mt&&(QA=(QA=vA(QA))<0?0:QA>255?255:255&QA),wA.view[VA](R*It+wA.byteOffset,QA,!0)}(this,R,QA)},enumerable:!0})};CA?h&&(yA=it(function(k,R,QA,wA){return E(k,Mt),lA(y(R)?EA(R)?void 0!==wA?new rt(R,w(QA,It),wA):void 0!==QA?new rt(R,w(QA,It)):new rt(R):$(R)?mA(yA,R):o(F,yA,R):new rt(g(R)),k,yA)}),U&&U(yA,XA),z(N(rt),function(k){k in yA||C(yA,k,rt[k])}),yA.prototype=Mt):(yA=it(function(k,R,QA,wA){E(k,Mt);var ct,Ft,j,PA=0,rA=0;if(y(R)){if(!EA(R))return $(R)?mA(yA,R):o(F,yA,R);ct=R,rA=w(QA,It);var kA=R.byteLength;if(void 0===wA){if(kA%It||(Ft=kA-rA)<0)throw FA(hA)}else if((Ft=f(wA)*It)+rA>kA)throw FA(hA);j=Ft/It}else j=g(R),ct=new _(Ft=j*It);for(cA(k,{buffer:ct,byteOffset:rA,byteLength:Ft,length:j,view:new uA(ct)});PA1?arguments[1]:void 0,d=void 0!==Q,Y=B(g);if(Y&&!E(Y))for(N=(U=a(g,Y)).next,g=[];!(D=i(N,U)).done;)g.push(D.value);for(d&&w>2&&(Q=c(Q,arguments[2])),p=h(g),m=new(u(f))(p),y=0;p>y;y++)m[y]=d?Q(g[y],y):g[y];return m}},6304:function(T,I,n){var c=n(2094),i=n(6707),o=c.TYPED_ARRAY_CONSTRUCTOR,l=c.aTypedArrayConstructor;T.exports=function(h){return l(i(h,h[o]))}},9711:function(T,I,n){var c=n(1702),i=0,o=Math.random(),l=c(1..toString);T.exports=function(h){return"Symbol("+(void 0===h?"":h)+")_"+l(++i+o,36)}},3307:function(T,I,n){var c=n(133);T.exports=c&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},6061:function(T,I,n){var c=n(5112);I.f=c},5112:function(T,I,n){var c=n(7854),i=n(2309),o=n(2597),l=n(9711),h=n(133),a=n(3307),B=i("wks"),E=c.Symbol,u=E&&E.for,C=a?E:E&&E.withoutSetter||l;T.exports=function(e){if(!o(B,e)||!h&&"string"!=typeof B[e]){var f="Symbol."+e;B[e]=h&&o(E,e)?E[e]:a&&u?u(f):C(f)}return B[e]}},1361:function(T){T.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},9170:function(T,I,n){"use strict";var c=n(2109),i=n(7854),o=n(7976),l=n(9518),h=n(7674),a=n(9920),B=n(30),E=n(8880),u=n(9114),C=n(7741),e=n(8340),f=n(408),g=n(6277),w=n(2914),Q=i.Error,d=[].push,Y=function(m,D){var U=o(y,this)?this:B(y),N=arguments.length>2?arguments[2]:void 0;h&&(U=h(new Q(void 0),l(U))),E(U,"message",g(D,"")),w&&E(U,"stack",C(U.stack,1)),e(U,N);var F=[];return f(m,d,{that:F}),E(U,"errors",F),U};h?h(Y,Q):a(Y,Q);var y=Y.prototype=B(Q.prototype,{constructor:u(1,Y),message:u(1,""),name:u(1,"AggregateError")});c({global:!0},{AggregateError:Y})},2222:function(T,I,n){"use strict";var c=n(2109),i=n(7854),o=n(7293),l=n(3157),h=n(111),a=n(7908),B=n(6244),E=n(6135),u=n(5417),C=n(1194),e=n(5112),f=n(7392),g=e("isConcatSpreadable"),w=9007199254740991,Q="Maximum allowed index exceeded",d=i.TypeError,Y=f>=51||!o(function(){var D=[];return D[g]=!1,D.concat()[0]!==D}),y=C("concat"),p=function(D){if(!h(D))return!1;var U=D[g];return void 0!==U?!!U:l(D)};c({target:"Array",proto:!0,forced:!Y||!y},{concat:function(U){var L,W,aA,AA,lA,N=a(this),F=u(N,0),z=0;for(L=-1,aA=arguments.length;Lw)throw d(Q);for(W=0;W=w)throw d(Q);E(F,z++,lA)}return F.length=z,F}})},545:function(T,I,n){var c=n(2109),i=n(1048),o=n(1223);c({target:"Array",proto:!0},{copyWithin:i}),o("copyWithin")},3290:function(T,I,n){var c=n(2109),i=n(1285),o=n(1223);c({target:"Array",proto:!0},{fill:i}),o("fill")},7327:function(T,I,n){"use strict";var c=n(2109),i=n(2092).filter;c({target:"Array",proto:!0,forced:!n(1194)("filter")},{filter:function(a){return i(this,a,arguments.length>1?arguments[1]:void 0)}})},1038:function(T,I,n){var c=n(2109),i=n(8457);c({target:"Array",stat:!0,forced:!n(7072)(function(h){Array.from(h)})},{from:i})},6699:function(T,I,n){"use strict";var c=n(2109),i=n(1318).includes,o=n(1223);c({target:"Array",proto:!0},{includes:function(h){return i(this,h,arguments.length>1?arguments[1]:void 0)}}),o("includes")},6992:function(T,I,n){"use strict";var c=n(5656),i=n(1223),o=n(7497),l=n(9909),h=n(654),a="Array Iterator",B=l.set,E=l.getterFor(a);T.exports=h(Array,"Array",function(u,C){B(this,{type:a,target:c(u),index:0,kind:C})},function(){var u=E(this),C=u.target,e=u.kind,f=u.index++;return!C||f>=C.length?(u.target=void 0,{value:void 0,done:!0}):"keys"==e?{value:f,done:!1}:"values"==e?{value:C[f],done:!1}:{value:[f,C[f]],done:!1}},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},9600:function(T,I,n){"use strict";var c=n(2109),i=n(1702),o=n(8361),l=n(5656),h=n(9341),a=i([].join),B=o!=Object,E=h("join",",");c({target:"Array",proto:!0,forced:B||!E},{join:function(C){return a(l(this),void 0===C?",":C)}})},1249:function(T,I,n){"use strict";var c=n(2109),i=n(2092).map;c({target:"Array",proto:!0,forced:!n(1194)("map")},{map:function(a){return i(this,a,arguments.length>1?arguments[1]:void 0)}})},7042:function(T,I,n){"use strict";var c=n(2109),i=n(7854),o=n(3157),l=n(4411),h=n(111),a=n(1400),B=n(6244),E=n(5656),u=n(6135),C=n(5112),e=n(1194),f=n(206),g=e("slice"),w=C("species"),Q=i.Array,d=Math.max;c({target:"Array",proto:!0,forced:!g},{slice:function(y,p){var F,z,L,m=E(this),D=B(m),U=a(y,D),N=a(void 0===p?D:p,D);if(o(m)&&((l(F=m.constructor)&&(F===Q||o(F.prototype))||h(F)&&null===(F=F[w]))&&(F=void 0),F===Q||void 0===F))return f(m,U,N);for(z=new(void 0===F?Q:F)(d(N-U,0)),L=0;U3)){if(e)return!0;if(g)return g<603;var F,z,L,W,N="";for(F=65;F<76;F++){switch(z=String.fromCharCode(F),F){case 66:case 69:case 70:case 72:L=3;break;case 68:case 71:L=4;break;default:L=2}for(W=0;W<47;W++)w.push({k:z+W,v:L})}for(w.sort(function(aA,AA){return AA.v-aA.v}),W=0;Wa(z)?1:-1}}(F)),aA=L.length,AA=0;AAw)throw e(Q);for(z=B(p,F),L=0;Lm-F+N;L--)delete p[L-1]}else if(N>F)for(L=m-F;L>D;L--)aA=L+N-1,(W=L+F-1)in p?p[aA]=p[W]:delete p[aA];for(L=0;L2)if(lA=d(lA),43===(MA=U(lA,0))||45===MA){if(88===(cA=U(lA,2))||120===cA)return NaN}else if(48===MA){switch(U(lA,1)){case 66:case 98:gA=2,BA=49;break;case 79:case 111:gA=8,BA=55;break;default:return+lA}for(FA=(vA=D(lA,2)).length,_=0;_BA)return NaN;return parseInt(vA,gA)}return+lA};if(l(Y,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var aA,z=function(lA){var MA=arguments.length<1?0:y(N(lA)),cA=this;return E(p,cA)&&e(function(){Q(cA)})?B(Object(MA),cA,z):MA},L=c?f(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),W=0;L.length>W;W++)a(y,aA=L[W])&&!a(z,aA)&&w(z,aA,g(y,aA));z.prototype=p,p.constructor=z,h(i,Y,z)}},3299:function(T,I,n){n(2109)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},5192:function(T,I,n){n(2109)({target:"Number",stat:!0},{isFinite:n(7023)})},3161:function(T,I,n){n(2109)({target:"Number",stat:!0},{isInteger:n(5988)})},6977:function(T,I,n){"use strict";var c=n(2109),i=n(7854),o=n(1702),l=n(9303),h=n(863),a=n(8415),B=n(7293),E=i.RangeError,u=i.String,C=Math.floor,e=o(a),f=o("".slice),g=o(1..toFixed),w=function(m,D,U){return 0===D?U:D%2==1?w(m,D-1,U*m):w(m*m,D/2,U)},d=function(m,D,U){for(var N=-1,F=U;++N<6;)m[N]=(F+=D*m[N])%1e7,F=C(F/1e7)},Y=function(m,D){for(var U=6,N=0;--U>=0;)m[U]=C((N+=m[U])/D),N=N%D*1e7},y=function(m){for(var D=6,U="";--D>=0;)if(""!==U||0===D||0!==m[D]){var N=u(m[D]);U=""===U?N:U+e("0",7-N.length)+N}return U};c({target:"Number",proto:!0,forced:B(function(){return"0.000"!==g(8e-5,3)||"1"!==g(.9,0)||"1.25"!==g(1.255,2)||"1000000000000000128"!==g(0xde0b6b3a7640080,0)})||!B(function(){g({})})},{toFixed:function(D){var W,aA,AA,lA,U=h(this),N=l(D),F=[0,0,0,0,0,0],z="",L="0";if(N<0||N>20)throw E("Incorrect fraction digits");if(U!=U)return"NaN";if(U<=-1e21||U>=1e21)return u(U);if(U<0&&(z="-",U=-U),U>1e-21)if(aA=(W=function(m){for(var D=0,U=m;U>=4096;)D+=12,U/=4096;for(;U>=2;)D+=1,U/=2;return D}(U*w(2,69,1))-69)<0?U*w(2,-W,1):U/w(2,W,1),aA*=4503599627370496,(W=52-W)>0){for(d(F,0,aA),AA=N;AA>=7;)d(F,1e7,0),AA-=7;for(d(F,w(10,AA,1),0),AA=W-1;AA>=23;)Y(F,8388608),AA-=23;Y(F,1<0?z+((lA=L.length)<=N?"0."+e("0",N-lA)+L:f(L,0,lA-N)+"."+f(L,lA-N)):z+L}})},9601:function(T,I,n){var c=n(2109),i=n(1574);c({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},3371:function(T,I,n){var c=n(2109),i=n(6677),o=n(7293),l=n(111),h=n(2423).onFreeze,a=Object.freeze;c({target:"Object",stat:!0,forced:o(function(){a(1)}),sham:!i},{freeze:function(u){return a&&l(u)?a(h(u)):u}})},5003:function(T,I,n){var c=n(2109),i=n(7293),o=n(5656),l=n(1236).f,h=n(9781),a=i(function(){l(1)});c({target:"Object",stat:!0,forced:!h||a,sham:!h},{getOwnPropertyDescriptor:function(u,C){return l(o(u),C)}})},9337:function(T,I,n){var c=n(2109),i=n(9781),o=n(3887),l=n(5656),h=n(1236),a=n(6135);c({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(E){for(var w,Q,u=l(E),C=h.f,e=o(u),f={},g=0;e.length>g;)void 0!==(Q=C(u,w=e[g++]))&&a(f,w,Q);return f}})},489:function(T,I,n){var c=n(2109),i=n(7293),o=n(7908),l=n(9518),h=n(8544);c({target:"Object",stat:!0,forced:i(function(){l(1)}),sham:!h},{getPrototypeOf:function(E){return l(o(E))}})},7941:function(T,I,n){var c=n(2109),i=n(7908),o=n(1956);c({target:"Object",stat:!0,forced:n(7293)(function(){o(1)})},{keys:function(B){return o(i(B))}})},1539:function(T,I,n){var c=n(1694),i=n(1320),o=n(288);c||i(Object.prototype,"toString",o,{unsafe:!0})},2479:function(T,I,n){var c=n(2109),i=n(4699).values;c({target:"Object",stat:!0},{values:function(l){return i(l)}})},7922:function(T,I,n){"use strict";var c=n(2109),i=n(6916),o=n(9662),l=n(8523),h=n(2534),a=n(408);c({target:"Promise",stat:!0},{allSettled:function(E){var u=this,C=l.f(u),e=C.resolve,f=C.reject,g=h(function(){var w=o(u.resolve),Q=[],d=0,Y=1;a(E,function(y){var p=d++,m=!1;Y++,i(w,u,y).then(function(D){m||(m=!0,Q[p]={status:"fulfilled",value:D},--Y||e(Q))},function(D){m||(m=!0,Q[p]={status:"rejected",reason:D},--Y||e(Q))})}),--Y||e(Q)});return g.error&&f(g.value),C.promise}})},4668:function(T,I,n){"use strict";var c=n(2109),i=n(9662),o=n(5005),l=n(6916),h=n(8523),a=n(2534),B=n(408),E="No one promise resolved";c({target:"Promise",stat:!0},{any:function(C){var e=this,f=o("AggregateError"),g=h.f(e),w=g.resolve,Q=g.reject,d=a(function(){var Y=i(e.resolve),y=[],p=0,m=1,D=!1;B(C,function(U){var N=p++,F=!1;m++,l(Y,e,U).then(function(z){F||D||(D=!0,w(z))},function(z){F||D||(F=!0,y[N]=z,--m||Q(new f(y,E)))})}),--m||Q(new f(y,E))});return d.error&&Q(d.value),g.promise}})},7727:function(T,I,n){"use strict";var c=n(2109),i=n(1913),o=n(3366),l=n(7293),h=n(5005),a=n(614),B=n(6707),E=n(9478),u=n(1320);if(c({target:"Promise",proto:!0,real:!0,forced:!!o&&l(function(){o.prototype.finally.call({then:function(){}},function(){})})},{finally:function(f){var g=B(this,h("Promise")),w=a(f);return this.then(w?function(Q){return E(g,f()).then(function(){return Q})}:f,w?function(Q){return E(g,f()).then(function(){throw Q})}:f)}}),!i&&a(o)){var e=h("Promise").prototype.finally;o.prototype.finally!==e&&u(o.prototype,"finally",e,{unsafe:!0})}},8674:function(T,I,n){"use strict";var TA,it,mt,It,c=n(2109),i=n(1913),o=n(7854),l=n(5005),h=n(6916),a=n(3366),B=n(1320),E=n(2248),u=n(7674),C=n(8003),e=n(6340),f=n(9662),g=n(614),w=n(111),Q=n(5787),d=n(2788),Y=n(408),y=n(7072),p=n(6707),m=n(261).set,D=n(5948),U=n(9478),N=n(842),F=n(8523),z=n(2534),L=n(9909),W=n(4705),aA=n(5112),AA=n(7871),lA=n(5268),MA=n(7392),cA=aA("species"),gA="Promise",BA=L.get,vA=L.set,FA=L.getterFor(gA),_=a&&a.prototype,dA=a,uA=_,CA=o.TypeError,NA=o.document,bA=o.process,XA=F.f,q=XA,O=!!(NA&&NA.createEvent&&o.dispatchEvent),$=g(o.PromiseRejectionEvent),V="unhandledrejection",ot=!1,ut=W(gA,function(){var R=d(dA),QA=R!==String(dA);if(!QA&&66===MA||i&&!uA.finally)return!0;if(MA>=51&&/native code/.test(R))return!1;var wA=new dA(function(ct){ct(1)}),PA=function(ct){ct(function(){},function(){})};return(wA.constructor={})[cA]=PA,!(ot=wA.then(function(){})instanceof PA)||!QA&&AA&&!$}),JA=ut||!y(function(R){dA.all(R).catch(function(){})}),VA=function(R){var QA;return!(!w(R)||!g(QA=R.then))&&QA},rt=function(R,QA){if(!R.notified){R.notified=!0;var wA=R.reactions;D(function(){for(var PA=R.value,rA=1==R.state,ct=0;wA.length>ct;){var ZA,st,Lt,Ft=wA[ct++],j=rA?Ft.ok:Ft.fail,kA=Ft.resolve,At=Ft.reject,xA=Ft.domain;try{j?(rA||(2===R.rejection&&OA(R),R.rejection=1),!0===j?ZA=PA:(xA&&xA.enter(),ZA=j(PA),xA&&(xA.exit(),Lt=!0)),ZA===Ft.promise?At(CA("Promise-chain cycle")):(st=VA(ZA))?h(st,ZA,kA,At):kA(ZA)):At(PA)}catch(vt){xA&&!Lt&&xA.exit(),At(vt)}}R.reactions=[],R.notified=!1,QA&&!R.rejection&&Mt(R)})}},yA=function(R,QA,wA){var PA,rA;O?((PA=NA.createEvent("Event")).promise=QA,PA.reason=wA,PA.initEvent(R,!1,!0),o.dispatchEvent(PA)):PA={promise:QA,reason:wA},!$&&(rA=o["on"+R])?rA(PA):R===V&&N("Unhandled promise rejection",wA)},Mt=function(R){h(m,o,function(){var rA,QA=R.facade,wA=R.value;if(ft(R)&&(rA=z(function(){lA?bA.emit("unhandledRejection",wA,QA):yA(V,QA,wA)}),R.rejection=lA||ft(R)?2:1,rA.error))throw rA.value})},ft=function(R){return 1!==R.rejection&&!R.parent},OA=function(R){h(m,o,function(){var QA=R.facade;lA?bA.emit("rejectionHandled",QA):yA("rejectionhandled",QA,R.value)})},Yt=function(R,QA,wA){return function(PA){R(QA,PA,wA)}},H=function(R,QA,wA){R.done||(R.done=!0,wA&&(R=wA),R.value=QA,R.state=2,rt(R,!0))},k=function(R,QA,wA){if(!R.done){R.done=!0,wA&&(R=wA);try{if(R.facade===QA)throw CA("Promise can't be resolved itself");var PA=VA(QA);PA?D(function(){var rA={done:!1};try{h(PA,QA,Yt(k,rA,R),Yt(H,rA,R))}catch(ct){H(rA,ct,R)}}):(R.value=QA,R.state=1,rt(R,!1))}catch(rA){H({done:!1},rA,R)}}};if(ut&&(dA=function(QA){Q(this,uA),f(QA),h(TA,this);var wA=BA(this);try{QA(Yt(k,wA),Yt(H,wA))}catch(PA){H(wA,PA)}},(TA=function(QA){vA(this,{type:gA,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=E(uA=dA.prototype,{then:function(QA,wA){var PA=FA(this),rA=PA.reactions,ct=XA(p(this,dA));return ct.ok=!g(QA)||QA,ct.fail=g(wA)&&wA,ct.domain=lA?bA.domain:void 0,PA.parent=!0,rA[rA.length]=ct,0!=PA.state&&rt(PA,!1),ct.promise},catch:function(R){return this.then(void 0,R)}}),it=function(){var R=new TA,QA=BA(R);this.promise=R,this.resolve=Yt(k,QA),this.reject=Yt(H,QA)},F.f=XA=function(R){return R===dA||R===mt?new it(R):q(R)},!i&&g(a)&&_!==Object.prototype)){It=_.then,ot||(B(_,"then",function(QA,wA){var PA=this;return new dA(function(rA,ct){h(It,PA,rA,ct)}).then(QA,wA)},{unsafe:!0}),B(_,"catch",uA.catch,{unsafe:!0}));try{delete _.constructor}catch(R){}u&&u(_,uA)}c({global:!0,wrap:!0,forced:ut},{Promise:dA}),C(dA,gA,!1,!0),e(gA),mt=l(gA),c({target:gA,stat:!0,forced:ut},{reject:function(QA){var wA=XA(this);return h(wA.reject,void 0,QA),wA.promise}}),c({target:gA,stat:!0,forced:i||ut},{resolve:function(QA){return U(i&&this===mt?dA:this,QA)}}),c({target:gA,stat:!0,forced:JA},{all:function(QA){var wA=this,PA=XA(wA),rA=PA.resolve,ct=PA.reject,Ft=z(function(){var j=f(wA.resolve),kA=[],At=0,xA=1;Y(QA,function(ZA){var st=At++,Lt=!1;xA++,h(j,wA,ZA).then(function(vt){Lt||(Lt=!0,kA[st]=vt,--xA||rA(kA))},ct)}),--xA||rA(kA)});return Ft.error&&ct(Ft.value),PA.promise},race:function(QA){var wA=this,PA=XA(wA),rA=PA.reject,ct=z(function(){var Ft=f(wA.resolve);Y(QA,function(j){h(Ft,wA,j).then(PA.resolve,rA)})});return ct.error&&rA(ct.value),PA.promise}})},2419:function(T,I,n){var c=n(2109),i=n(5005),o=n(2104),l=n(7065),h=n(9483),a=n(9670),B=n(111),E=n(30),u=n(7293),C=i("Reflect","construct"),e=Object.prototype,f=[].push,g=u(function(){function d(){}return!(C(function(){},[],d)instanceof d)}),w=!u(function(){C(function(){})}),Q=g||w;c({target:"Reflect",stat:!0,forced:Q,sham:Q},{construct:function(Y,y){h(Y),a(y);var p=arguments.length<3?Y:h(arguments[2]);if(w&&!g)return C(Y,y,p);if(Y==p){switch(y.length){case 0:return new Y;case 1:return new Y(y[0]);case 2:return new Y(y[0],y[1]);case 3:return new Y(y[0],y[1],y[2]);case 4:return new Y(y[0],y[1],y[2],y[3])}var m=[null];return o(f,m,y),new(o(l,Y,m))}var D=p.prototype,U=E(B(D)?D:e),N=o(Y,U,y);return B(N)?N:U}})},4916:function(T,I,n){"use strict";var c=n(2109),i=n(2261);c({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},2087:function(T,I,n){var c=n(9781),i=n(3070),o=n(7066),l=n(7293),h=RegExp.prototype;c&&l(function(){return"sy"!==Object.getOwnPropertyDescriptor(h,"flags").get.call({dotAll:!0,sticky:!0})})&&i.f(h,"flags",{configurable:!0,get:o})},9714:function(T,I,n){"use strict";var c=n(1702),i=n(6530).PROPER,o=n(1320),l=n(9670),h=n(7976),a=n(1340),B=n(7293),E=n(7066),u="toString",C=RegExp.prototype,e=C[u],f=c(E);(B(function(){return"/a/b"!=e.call({source:"a",flags:"b"})})||i&&e.name!=u)&&o(RegExp.prototype,u,function(){var d=l(this),Y=a(d.source),y=d.flags;return"/"+Y+"/"+a(void 0===y&&h(C,d)&&!("flags"in C)?f(d):y)},{unsafe:!0})},189:function(T,I,n){"use strict";n(7710)("Set",function(o){return function(){return o(this,arguments.length?arguments[0]:void 0)}},n(5631))},9841:function(T,I,n){"use strict";var c=n(2109),i=n(8710).codeAt;c({target:"String",proto:!0},{codePointAt:function(l){return i(this,l)}})},4953:function(T,I,n){var c=n(2109),i=n(7854),o=n(1702),l=n(1400),h=i.RangeError,a=String.fromCharCode,B=String.fromCodePoint,E=o([].join);c({target:"String",stat:!0,forced:!!B&&1!=B.length},{fromCodePoint:function(e){for(var Q,f=[],g=arguments.length,w=0;g>w;){if(Q=+arguments[w++],l(Q,1114111)!==Q)throw h(Q+" is not a valid code point");f[w]=Q<65536?a(Q):a(55296+((Q-=65536)>>10),Q%1024+56320)}return E(f,"")}})},2023:function(T,I,n){"use strict";var c=n(2109),i=n(1702),o=n(3929),l=n(4488),h=n(1340),a=n(4964),B=i("".indexOf);c({target:"String",proto:!0,forced:!a("includes")},{includes:function(u){return!!~B(h(l(this)),h(o(u)),arguments.length>1?arguments[1]:void 0)}})},8734:function(T,I,n){"use strict";var c=n(2109),i=n(4230);c({target:"String",proto:!0,forced:n(3429)("italics")},{italics:function(){return i(this,"i","","")}})},8783:function(T,I,n){"use strict";var c=n(8710).charAt,i=n(1340),o=n(9909),l=n(654),h="String Iterator",a=o.set,B=o.getterFor(h);l(String,"String",function(E){a(this,{type:h,string:i(E),index:0})},function(){var f,u=B(this),C=u.string,e=u.index;return e>=C.length?{value:void 0,done:!0}:(f=c(C,e),u.index+=f.length,{value:f,done:!1})})},9254:function(T,I,n){"use strict";var c=n(2109),i=n(4230);c({target:"String",proto:!0,forced:n(3429)("link")},{link:function(h){return i(this,"a","href",h)}})},6373:function(T,I,n){"use strict";var c=n(2109),i=n(7854),o=n(6916),l=n(1702),h=n(4994),a=n(4488),B=n(7466),E=n(1340),u=n(9670),C=n(4326),e=n(7976),f=n(7850),g=n(7066),w=n(8173),Q=n(1320),d=n(7293),Y=n(5112),y=n(6707),p=n(1530),m=n(7651),D=n(9909),U=n(1913),N=Y("matchAll"),F="RegExp String",z=F+" Iterator",L=D.set,W=D.getterFor(z),aA=RegExp.prototype,AA=i.TypeError,lA=l(g),MA=l("".indexOf),cA=l("".matchAll),gA=!!cA&&!d(function(){cA("a",/./)}),BA=h(function(_,dA,uA,CA){L(this,{type:z,regexp:_,string:dA,global:uA,unicode:CA,done:!1})},F,function(){var _=W(this);if(_.done)return{value:void 0,done:!0};var dA=_.regexp,uA=_.string,CA=m(dA,uA);return null===CA?{value:void 0,done:_.done=!0}:_.global?(""===E(CA[0])&&(dA.lastIndex=p(uA,B(dA.lastIndex),_.unicode)),{value:CA,done:!1}):(_.done=!0,{value:CA,done:!1})}),vA=function(FA){var uA,CA,NA,bA,XA,q,_=u(this),dA=E(FA);return uA=y(_,RegExp),void 0===(CA=_.flags)&&e(aA,_)&&!("flags"in aA)&&(CA=lA(_)),NA=void 0===CA?"":E(CA),bA=new uA(uA===RegExp?_.source:_,NA),XA=!!~MA(NA,"g"),q=!!~MA(NA,"u"),bA.lastIndex=B(_.lastIndex),new BA(bA,dA,XA,q)};c({target:"String",proto:!0,forced:gA},{matchAll:function(_){var uA,CA,NA,bA,dA=a(this);if(null!=_){if(f(_)&&(uA=E(a("flags"in aA?_.flags:lA(_))),!~MA(uA,"g")))throw AA("`.matchAll` does not allow non-global regexes");if(gA)return cA(dA,_);if(void 0===(NA=w(_,N))&&U&&"RegExp"==C(_)&&(NA=vA),NA)return o(NA,_,dA)}else if(gA)return cA(dA,_);return CA=E(dA),bA=new RegExp(_,"g"),U?o(vA,bA,CA):bA[N](CA)}}),U||N in aA||Q(aA,N,vA)},4723:function(T,I,n){"use strict";var c=n(6916),i=n(7007),o=n(9670),l=n(7466),h=n(1340),a=n(4488),B=n(8173),E=n(1530),u=n(7651);i("match",function(C,e,f){return[function(w){var Q=a(this),d=null==w?void 0:B(w,C);return d?c(d,w,Q):new RegExp(w)[C](h(Q))},function(g){var w=o(this),Q=h(g),d=f(e,w,Q);if(d.done)return d.value;if(!w.global)return u(w,Q);var Y=w.unicode;w.lastIndex=0;for(var m,y=[],p=0;null!==(m=u(w,Q));){var D=h(m[0]);y[p]=D,""===D&&(w.lastIndex=E(Q,l(w.lastIndex),Y)),p++}return 0===p?null:y}]})},2481:function(T,I,n){n(2109)({target:"String",proto:!0},{repeat:n(8415)})},5306:function(T,I,n){"use strict";var c=n(2104),i=n(6916),o=n(1702),l=n(7007),h=n(7293),a=n(9670),B=n(614),E=n(9303),u=n(7466),C=n(1340),e=n(4488),f=n(1530),g=n(8173),w=n(647),Q=n(7651),Y=n(5112)("replace"),y=Math.max,p=Math.min,m=o([].concat),D=o([].push),U=o("".indexOf),N=o("".slice),F=function(aA){return void 0===aA?aA:String(aA)},z="$0"==="a".replace(/./,"$0"),L=!!/./[Y]&&""===/./[Y]("a","$0");l("replace",function(aA,AA,lA){var MA=L?"$":"$0";return[function(gA,BA){var vA=e(this),FA=null==gA?void 0:g(gA,Y);return FA?i(FA,gA,vA,BA):i(AA,C(vA),gA,BA)},function(cA,gA){var BA=a(this),vA=C(cA);if("string"==typeof gA&&-1===U(gA,MA)&&-1===U(gA,"$<")){var FA=lA(AA,BA,vA,gA);if(FA.done)return FA.value}var _=B(gA);_||(gA=C(gA));var dA=BA.global;if(dA){var uA=BA.unicode;BA.lastIndex=0}for(var CA=[];;){var NA=Q(BA,vA);if(null===NA||(D(CA,NA),!dA))break;""===C(NA[0])&&(BA.lastIndex=f(vA,u(BA.lastIndex),uA))}for(var XA="",q=0,O=0;O=q&&(XA+=N(vA,q,V)+GA,q=V+$.length)}return XA+N(vA,q)}]},!!h(function(){var aA=/./;return aA.exec=function(){var AA=[];return AA.groups={a:"7"},AA},"7"!=="".replace(aA,"$")})||!z||L)},3123:function(T,I,n){"use strict";var c=n(2104),i=n(6916),o=n(1702),l=n(7007),h=n(7850),a=n(9670),B=n(4488),E=n(6707),u=n(1530),C=n(7466),e=n(1340),f=n(8173),g=n(206),w=n(7651),Q=n(2261),d=n(2999),Y=n(7293),y=d.UNSUPPORTED_Y,p=4294967295,m=Math.min,D=[].push,U=o(/./.exec),N=o(D),F=o("".slice),z=!Y(function(){var L=/(?:)/,W=L.exec;L.exec=function(){return W.apply(this,arguments)};var aA="ab".split(L);return 2!==aA.length||"a"!==aA[0]||"b"!==aA[1]});l("split",function(L,W,aA){var AA;return AA="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(lA,MA){var cA=e(B(this)),gA=void 0===MA?p:MA>>>0;if(0===gA)return[];if(void 0===lA)return[cA];if(!h(lA))return i(W,cA,lA,gA);for(var dA,uA,CA,BA=[],FA=0,_=new RegExp(lA.source,(lA.ignoreCase?"i":"")+(lA.multiline?"m":"")+(lA.unicode?"u":"")+(lA.sticky?"y":"")+"g");(dA=i(Q,_,cA))&&!((uA=_.lastIndex)>FA&&(N(BA,F(cA,FA,dA.index)),dA.length>1&&dA.index=gA));)_.lastIndex===dA.index&&_.lastIndex++;return FA===cA.length?(CA||!U(_,""))&&N(BA,""):N(BA,F(cA,FA)),BA.length>gA?g(BA,0,gA):BA}:"0".split(void 0,0).length?function(lA,MA){return void 0===lA&&0===MA?[]:i(W,this,lA,MA)}:W,[function(MA,cA){var gA=B(this),BA=null==MA?void 0:f(MA,L);return BA?i(BA,MA,gA,cA):i(AA,e(gA),MA,cA)},function(lA,MA){var cA=a(this),gA=e(lA),BA=aA(AA,cA,gA,MA,AA!==W);if(BA.done)return BA.value;var vA=E(cA,RegExp),FA=cA.unicode,dA=new vA(y?"^(?:"+cA.source+")":cA,(cA.ignoreCase?"i":"")+(cA.multiline?"m":"")+(cA.unicode?"u":"")+(y?"g":"y")),uA=void 0===MA?p:MA>>>0;if(0===uA)return[];if(0===gA.length)return null===w(dA,gA)?[gA]:[];for(var CA=0,NA=0,bA=[];NA2?arguments[2]:void 0)})},8927:function(T,I,n){"use strict";var c=n(2094),i=n(2092).every,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("every",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},3105:function(T,I,n){"use strict";var c=n(2094),i=n(6916),o=n(1285),l=c.aTypedArray;(0,c.exportTypedArrayMethod)("fill",function(B){var E=arguments.length;return i(o,l(this),B,E>1?arguments[1]:void 0,E>2?arguments[2]:void 0)})},5035:function(T,I,n){"use strict";var c=n(2094),i=n(2092).filter,o=n(3074),l=c.aTypedArray;(0,c.exportTypedArrayMethod)("filter",function(B){var E=i(l(this),B,arguments.length>1?arguments[1]:void 0);return o(this,E)})},7174:function(T,I,n){"use strict";var c=n(2094),i=n(2092).findIndex,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("findIndex",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},4345:function(T,I,n){"use strict";var c=n(2094),i=n(2092).find,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("find",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},4197:function(T,I,n){n(9843)("Float32",function(i){return function(l,h,a){return i(this,l,h,a)}})},6495:function(T,I,n){n(9843)("Float64",function(i){return function(l,h,a){return i(this,l,h,a)}})},2846:function(T,I,n){"use strict";var c=n(2094),i=n(2092).forEach,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("forEach",function(a){i(o(this),a,arguments.length>1?arguments[1]:void 0)})},8145:function(T,I,n){"use strict";var c=n(3832);(0,n(2094).exportTypedArrayStaticMethod)("from",n(7321),c)},4731:function(T,I,n){"use strict";var c=n(2094),i=n(1318).includes,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("includes",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},7209:function(T,I,n){"use strict";var c=n(2094),i=n(1318).indexOf,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("indexOf",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},5109:function(T,I,n){n(9843)("Int16",function(i){return function(l,h,a){return i(this,l,h,a)}})},5125:function(T,I,n){n(9843)("Int32",function(i){return function(l,h,a){return i(this,l,h,a)}})},7145:function(T,I,n){n(9843)("Int8",function(i){return function(l,h,a){return i(this,l,h,a)}})},6319:function(T,I,n){"use strict";var c=n(7854),i=n(1702),o=n(6530).PROPER,l=n(2094),h=n(6992),B=n(5112)("iterator"),E=c.Uint8Array,u=i(h.values),C=i(h.keys),e=i(h.entries),f=l.aTypedArray,g=l.exportTypedArrayMethod,w=E&&E.prototype[B],Q=!!w&&"values"===w.name,d=function(){return u(f(this))};g("entries",function(){return e(f(this))}),g("keys",function(){return C(f(this))}),g("values",d,o&&!Q),g(B,d,o&&!Q)},8867:function(T,I,n){"use strict";var c=n(2094),i=n(1702),o=c.aTypedArray,l=c.exportTypedArrayMethod,h=i([].join);l("join",function(B){return h(o(this),B)})},7789:function(T,I,n){"use strict";var c=n(2094),i=n(2104),o=n(6583),l=c.aTypedArray;(0,c.exportTypedArrayMethod)("lastIndexOf",function(B){var E=arguments.length;return i(o,l(this),E>1?[B,arguments[1]]:[B])})},3739:function(T,I,n){"use strict";var c=n(2094),i=n(2092).map,o=n(6304),l=c.aTypedArray;(0,c.exportTypedArrayMethod)("map",function(B){return i(l(this),B,arguments.length>1?arguments[1]:void 0,function(E,u){return new(o(E))(u)})})},4483:function(T,I,n){"use strict";var c=n(2094),i=n(3671).right,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("reduceRight",function(a){var B=arguments.length;return i(o(this),a,B,B>1?arguments[1]:void 0)})},9368:function(T,I,n){"use strict";var c=n(2094),i=n(3671).left,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("reduce",function(a){var B=arguments.length;return i(o(this),a,B,B>1?arguments[1]:void 0)})},2056:function(T,I,n){"use strict";var c=n(2094),i=c.aTypedArray,l=Math.floor;(0,c.exportTypedArrayMethod)("reverse",function(){for(var C,a=this,B=i(a).length,E=l(B/2),u=0;u1?arguments[1]:void 0,1),w=this.length,Q=h(f),d=o(Q),Y=0;if(d+g>w)throw B("Wrong length");for(;Yg;)Q[g]=e[g++];return Q},o(function(){new Int8Array(1).slice()}))},7462:function(T,I,n){"use strict";var c=n(2094),i=n(2092).some,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("some",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},3824:function(T,I,n){"use strict";var c=n(7854),i=n(1702),o=n(7293),l=n(9662),h=n(4362),a=n(2094),B=n(8886),E=n(256),u=n(7392),C=n(8008),e=c.Array,f=a.aTypedArray,g=a.exportTypedArrayMethod,w=c.Uint16Array,Q=w&&i(w.prototype.sort),d=!(!Q||o(function(){Q(new w(2),null)})&&o(function(){Q(new w(2),{})})),Y=!!Q&&!o(function(){if(u)return u<74;if(B)return B<67;if(E)return!0;if(C)return C<602;var D,U,p=new w(516),m=e(516);for(D=0;D<516;D++)U=D%4,p[D]=515-D,m[D]=D-2*U+3;for(Q(p,function(N,F){return(N/4|0)-(F/4|0)}),D=0;D<516;D++)if(p[D]!==m[D])return!0});g("sort",function(m){return void 0!==m&&l(m),Y?Q(this,m):h(f(this),(p=m,function(m,D){return void 0!==p?+p(m,D)||0:D!=D?-1:m!=m?1:0===m&&0===D?1/m>0&&1/D<0?1:-1:m>D}));var p},!Y||d)},5021:function(T,I,n){"use strict";var c=n(2094),i=n(7466),o=n(1400),l=n(6304),h=c.aTypedArray;(0,c.exportTypedArrayMethod)("subarray",function(E,u){var C=h(this),e=C.length,f=o(E,e);return new(l(C))(C.buffer,C.byteOffset+f*C.BYTES_PER_ELEMENT,i((void 0===u?e:o(u,e))-f))})},2974:function(T,I,n){"use strict";var c=n(7854),i=n(2104),o=n(2094),l=n(7293),h=n(206),a=c.Int8Array,B=o.aTypedArray,E=o.exportTypedArrayMethod,u=[].toLocaleString,C=!!a&&l(function(){u.call(new a(1))});E("toLocaleString",function(){return i(u,C?h(B(this)):B(this),h(arguments))},l(function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()})||!l(function(){a.prototype.toLocaleString.call([1,2])}))},5016:function(T,I,n){"use strict";var c=n(2094).exportTypedArrayMethod,i=n(7293),o=n(7854),l=n(1702),h=o.Uint8Array,a=h&&h.prototype||{},B=[].toString,E=l([].join);i(function(){B.call({})})&&(B=function(){return E(this)}),c("toString",B,a.toString!=B)},8255:function(T,I,n){n(9843)("Uint16",function(i){return function(l,h,a){return i(this,l,h,a)}})},9135:function(T,I,n){n(9843)("Uint32",function(i){return function(l,h,a){return i(this,l,h,a)}})},2472:function(T,I,n){n(9843)("Uint8",function(i){return function(l,h,a){return i(this,l,h,a)}})},9743:function(T,I,n){n(9843)("Uint8",function(i){return function(l,h,a){return i(this,l,h,a)}},!0)},8628:function(T,I,n){n(9170)},5743:function(T,I,n){n(5837)},7314:function(T,I,n){n(7922)},6290:function(T,I,n){n(4668)},7479:function(T,I,n){"use strict";var c=n(2109),i=n(8523),o=n(2534);c({target:"Promise",stat:!0},{try:function(l){var h=i.f(this),a=o(l);return(a.error?h.reject:h.resolve)(a.value),h.promise}})},3728:function(T,I,n){n(6373)},4747:function(T,I,n){var c=n(7854),i=n(8324),o=n(8509),l=n(8533),h=n(8880),a=function(E){if(E&&E.forEach!==l)try{h(E,"forEach",l)}catch(u){E.forEach=l}};for(var B in i)i[B]&&a(c[B]&&c[B].prototype);a(o)},3948:function(T,I,n){var c=n(7854),i=n(8324),o=n(8509),l=n(6992),h=n(8880),a=n(5112),B=a("iterator"),E=a("toStringTag"),u=l.values,C=function(f,g){if(f){if(f[B]!==u)try{h(f,B,u)}catch(Q){f[B]=u}if(f[E]||h(f,E,g),i[g])for(var w in l)if(f[w]!==l[w])try{h(f,w,l[w])}catch(Q){f[w]=l[w]}}};for(var e in i)C(c[e]&&c[e].prototype,e);C(o,"DOMTokenList")},3753:function(T,I,n){"use strict";var c=n(2109),i=n(6916);c({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},1150:function(T,I,n){var c=n(7633);n(3948),T.exports=c},251:function(T,I,n){var c=n(2215),i=n(2584),o=n(609),l=n(8420),h=n(2847),a=n(8923),B=Date.prototype.getTime;function E(f,g,w){var Q=w||{};return!!(Q.strict?o(f,g):f===g)||(!f||!g||"object"!=typeof f&&"object"!=typeof g?Q.strict?o(f,g):f==g:function e(f,g,w){var Q,d;if(typeof f!=typeof g||u(f)||u(g)||f.prototype!==g.prototype||i(f)!==i(g))return!1;var Y=l(f),y=l(g);if(Y!==y)return!1;if(Y||y)return f.source===g.source&&h(f)===h(g);if(a(f)&&a(g))return B.call(f)===B.call(g);var p=C(f),m=C(g);if(p!==m)return!1;if(p||m){if(f.length!==g.length)return!1;for(Q=0;Q=0;Q--)if(D[Q]!=U[Q])return!1;for(Q=D.length-1;Q>=0;Q--)if(!E(f[d=D[Q]],g[d],w))return!1;return!0}(f,g,Q))}function u(f){return null==f}function C(f){return!(!f||"object"!=typeof f||"number"!=typeof f.length||"function"!=typeof f.copy||"function"!=typeof f.slice||f.length>0&&"number"!=typeof f[0])}T.exports=E},4289:function(T,I,n){"use strict";var c=n(2215),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,l=Array.prototype.concat,h=Object.defineProperty,E=h&&function(){var e={};try{for(var f in h(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(g){return!1}}(),u=function(e,f,g,w){f in e&&(!function(e){return"function"==typeof e&&"[object Function]"===o.call(e)}(w)||!w())||(E?h(e,f,{configurable:!0,enumerable:!1,value:g,writable:!0}):e[f]=g)},C=function(e,f){var g=arguments.length>2?arguments[2]:{},w=c(f);i&&(w=l.call(w,Object.getOwnPropertySymbols(f)));for(var Q=0;Q0&&z.length>N&&!z.warned){z.warned=!0;var L=new Error("Possible EventEmitter memory leak detected. "+z.length+" "+String(m)+" listeners added. Use emitter.setMaxListeners() to increase limit");L.name="MaxListenersExceededWarning",L.emitter=p,L.type=m,L.count=z.length,function i(p){console&&console.warn&&console.warn(p)}(L)}return p}function u(){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 C(p,m,D){var U={fired:!1,wrapFn:void 0,target:p,type:m,listener:D},N=u.bind(U);return N.listener=D,U.wrapFn=N,N}function e(p,m,D){var U=p._events;if(void 0===U)return[];var N=U[m];return void 0===N?[]:"function"==typeof N?D?[N.listener||N]:[N]:D?function Q(p){for(var m=new Array(p.length),D=0;D0&&(z=D[0]),z instanceof Error)throw z;var L=new Error("Unhandled error."+(z?" ("+z.message+")":""));throw L.context=z,L}var W=F[m];if(void 0===W)return!1;if("function"==typeof W)n(W,this,D);else{var aA=W.length,AA=g(W,aA);for(U=0;U=0;z--)if(U[z]===D||U[z].listener===D){L=U[z].listener,F=z;break}if(F<0)return this;0===F?U.shift():function w(p,m){for(;m+1=0;N--)this.removeListener(m,D[N]);return this},l.prototype.listeners=function(m){return e(this,m,!0)},l.prototype.rawListeners=function(m){return e(this,m,!1)},l.listenerCount=function(p,m){return"function"==typeof p.listenerCount?p.listenerCount(m):f.call(p,m)},l.prototype.listenerCount=f,l.prototype.eventNames=function(){return this._eventsCount>0?c(this._events):[]}},2536:function(T,I,n){var c=n(4275),i=n(7672);void 0===i.pdfMake&&(i.pdfMake=c),T.exports=c},7672:function(T,I,n){"use strict";T.exports=function(){if("object"==typeof globalThis)return globalThis;var c;try{c=this||new Function("return this")()}catch(i){if("object"==typeof window)return window;if("object"==typeof self)return self;if(void 0!==n.g)return n.g}return c}()},9804:function(T){var I=Object.prototype.hasOwnProperty,n=Object.prototype.toString;T.exports=function(i,o,l){if("[object Function]"!==n.call(o))throw new TypeError("iterator must be a function");var h=i.length;if(h===+h)for(var a=0;a1&&"boolean"!=typeof aA)throw new l('"allowMissing" argument must be a boolean');var AA=F(W),lA=AA.length>0?AA[0]:"",MA=z("%"+lA+"%",aA),cA=MA.name,gA=MA.value,BA=!1,vA=MA.alias;vA&&(lA=vA[0],p(AA,y([0,1],vA)));for(var FA=1,_=!0;FA=AA.length){var NA=a(gA,dA);gA=(_=!!NA)&&"get"in NA&&!("originalValue"in NA.get)?NA.get:gA[dA]}else _=Y(gA,dA),gA=gA[dA];_&&!BA&&(g[cA]=gA)}}return gA}},1405:function(T,I,n){"use strict";var c="undefined"!=typeof Symbol&&Symbol,i=n(5419);T.exports=function(){return"function"==typeof c&&"function"==typeof Symbol&&"symbol"==typeof c("foo")&&"symbol"==typeof Symbol("bar")&&i()}},5419:function(T){"use strict";T.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var n={},c=Symbol("test"),i=Object(c);if("string"==typeof c||"[object Symbol]"!==Object.prototype.toString.call(c)||"[object Symbol]"!==Object.prototype.toString.call(i))return!1;for(c in n[c]=42,n)return!1;if("function"==typeof Object.keys&&0!==Object.keys(n).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(n).length)return!1;var l=Object.getOwnPropertySymbols(n);if(1!==l.length||l[0]!==c||!Object.prototype.propertyIsEnumerable.call(n,c))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var h=Object.getOwnPropertyDescriptor(n,c);if(42!==h.value||!0!==h.enumerable)return!1}return!0}},6410:function(T,I,n){"use strict";var c=n(5419);T.exports=function(){return c()&&!!Symbol.toStringTag}},7642:function(T,I,n){"use strict";var c=n(8612);T.exports=c.call(Function.call,Object.prototype.hasOwnProperty)},688:function(T,I,n){"use strict";var c=n(7103).Buffer;I._dbcs=u;for(var i=-1,l=-10,h=-1e3,a=new Array(256),E=0;E<256;E++)a[E]=i;function u(g,w){if(this.encodingName=g.encodingName,!g)throw new Error("DBCS codec is called without the data.");if(!g.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var Q=g.table();this.decodeTables=[],this.decodeTables[0]=a.slice(0),this.decodeTableSeq=[];for(var d=0;dh)throw new Error("gb18030 decode tables conflict at byte 2");for(var U=this.decodeTables[h-m[D]],N=129;N<=254;N++){if(U[N]===i)U[N]=h-y;else{if(U[N]===h-y)continue;if(U[N]>h)throw new Error("gb18030 decode tables conflict at byte 3")}for(var F=this.decodeTables[h-U[N]],z=48;z<=57;z++)F[z]===i&&(F[z]=-2)}}}this.defaultCharUnicode=w.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var L={};if(g.encodeSkipVals)for(d=0;dw)return-1;for(var Q=0,d=g.length;Q>1);g[Y]<=w?Q=Y:d=Y}return Q}u.prototype.encoder=C,u.prototype.decoder=e,u.prototype._getDecodeTrieNode=function(g){for(var w=[];g>0;g>>>=8)w.push(255&g);0==w.length&&w.push(0);for(var Q=this.decodeTables[0],d=w.length-1;d>0;d--){var Y=Q[w[d]];if(Y==i)Q[w[d]]=h-this.decodeTables.length,this.decodeTables.push(Q=a.slice(0));else{if(!(Y<=h))throw new Error("Overwrite byte in "+this.encodingName+", addr: "+g.toString(16));Q=this.decodeTables[h-Y]}}return Q},u.prototype._addDecodeChunk=function(g){var w=parseInt(g[0],16),Q=this._getDecodeTrieNode(w);w&=255;for(var d=1;d255)throw new Error("Incorrect chunk in "+this.encodingName+" at addr "+g[0]+": too long"+w)},u.prototype._getEncodeBucket=function(g){var w=g>>8;return void 0===this.encodeTable[w]&&(this.encodeTable[w]=a.slice(0)),this.encodeTable[w]},u.prototype._setEncodeChar=function(g,w){var Q=this._getEncodeBucket(g),d=255&g;Q[d]<=l?this.encodeTableSeq[l-Q[d]][-1]=w:Q[d]==i&&(Q[d]=w)},u.prototype._setEncodeSequence=function(g,w){var y,Q=g[0],d=this._getEncodeBucket(Q),Y=255&Q;d[Y]<=l?y=this.encodeTableSeq[l-d[Y]]:(y={},d[Y]!==i&&(y[-1]=d[Y]),d[Y]=l-this.encodeTableSeq.length,this.encodeTableSeq.push(y));for(var p=1;p=0)this._setEncodeChar(m,D),Y=!0;else if(m<=h){var U=h-m;y[U]||(this._fillEncodeTable(U,D<<8>>>0,Q)?Y=!0:y[U]=!0)}else m<=l&&(this._setEncodeSequence(this.decodeTableSeq[l-m],D),Y=!0)}return Y},C.prototype.write=function(g){for(var w=c.alloc(g.length*(this.gb18030?4:3)),Q=this.leadSurrogate,d=this.seqObj,Y=-1,y=0,p=0;;){if(-1===Y){if(y==g.length)break;var m=g.charCodeAt(y++)}else m=Y,Y=-1;if(55296<=m&&m<57344)if(m<56320){if(-1===Q){Q=m;continue}Q=m,m=i}else-1!==Q?(m=65536+1024*(Q-55296)+(m-56320),Q=-1):m=i;else-1!==Q&&(Y=m,m=i,Q=-1);var D=i;if(void 0!==d&&m!=i){var U=d[m];if("object"==typeof U){d=U;continue}"number"==typeof U?D=U:null==U&&void 0!==(U=d[-1])&&(D=U,Y=m),d=void 0}else if(m>=0){var N=this.encodeTable[m>>8];if(void 0!==N&&(D=N[255&m]),D<=l){d=this.encodeTableSeq[l-D];continue}if(D==i&&this.gb18030){var F=f(this.gb18030.uChars,m);if(-1!=F){D=this.gb18030.gbChars[F]+(m-this.gb18030.uChars[F]),w[p++]=129+Math.floor(D/12600),D%=12600,w[p++]=48+Math.floor(D/1260),D%=1260,w[p++]=129+Math.floor(D/10),w[p++]=48+(D%=10);continue}}}D===i&&(D=this.defaultCharSingleByte),D<256?w[p++]=D:D<65536?(w[p++]=D>>8,w[p++]=255&D):D<16777216?(w[p++]=D>>16,w[p++]=D>>8&255,w[p++]=255&D):(w[p++]=D>>>24,w[p++]=D>>>16&255,w[p++]=D>>>8&255,w[p++]=255&D)}return this.seqObj=d,this.leadSurrogate=Q,w.slice(0,p)},C.prototype.end=function(){if(-1!==this.leadSurrogate||void 0!==this.seqObj){var g=c.alloc(10),w=0;if(this.seqObj){var Q=this.seqObj[-1];void 0!==Q&&(Q<256?g[w++]=Q:(g[w++]=Q>>8,g[w++]=255&Q)),this.seqObj=void 0}return-1!==this.leadSurrogate&&(g[w++]=this.defaultCharSingleByte,this.leadSurrogate=-1),g.slice(0,w)}},C.prototype.findIdx=f,e.prototype.write=function(g){for(var w=c.alloc(2*g.length),Q=this.nodeIdx,d=this.prevBytes,Y=this.prevBytes.length,y=-this.prevBytes.length,m=0,D=0;m=0?g[m]:d[m+Y];if(!((p=this.decodeTables[Q][U])>=0))if(p===i)p=this.defaultCharUnicode.charCodeAt(0),m=y;else if(-2===p){if(m>=3)var N=12600*(g[m-3]-129)+1260*(g[m-2]-48)+10*(g[m-1]-129)+(U-48);else N=12600*(d[m-3+Y]-129)+1260*((m-2>=0?g[m-2]:d[m-2+Y])-48)+10*((m-1>=0?g[m-1]:d[m-1+Y])-129)+(U-48);var F=f(this.gb18030.gbChars,N);p=this.gb18030.uChars[F]+N-this.gb18030.gbChars[F]}else{if(p<=h){Q=h-p;continue}if(!(p<=l))throw new Error("iconv-lite internal error: invalid decoding table value "+p+" at "+Q+"/"+U);for(var z=this.decodeTableSeq[l-p],L=0;L>8;p=z[z.length-1]}if(p>=65536){var W=55296|(p-=65536)>>10;w[D++]=255&W,w[D++]=W>>8,p=56320|1023&p}w[D++]=255&p,w[D++]=p>>8,Q=0,y=m+1}return this.nodeIdx=Q,this.prevBytes=y>=0?Array.prototype.slice.call(g,y):d.slice(y+Y).concat(Array.prototype.slice.call(g)),w.slice(0,D).toString("ucs2")},e.prototype.end=function(){for(var g="";this.prevBytes.length>0;){g+=this.defaultCharUnicode;var w=this.prevBytes.slice(1);this.prevBytes=[],this.nodeIdx=0,w.length>0&&(g+=this.write(w))}return this.prevBytes=[],this.nodeIdx=0,g}},5990:function(T,I,n){"use strict";T.exports={shiftjis:{type:"_dbcs",table:function(){return n(7014)},encodeAdd:{"\xa5":92,"\u203e":126},encodeSkipVals:[{from:60736,to:63808}]},csshiftjis:"shiftjis",mskanji:"shiftjis",sjis:"shiftjis",windows31j:"shiftjis",ms31j:"shiftjis",xsjis:"shiftjis",windows932:"shiftjis",ms932:"shiftjis",932:"shiftjis",cp932:"shiftjis",eucjp:{type:"_dbcs",table:function(){return n(5633)},encodeAdd:{"\xa5":92,"\u203e":126}},gb2312:"cp936",gb231280:"cp936",gb23121980:"cp936",csgb2312:"cp936",csiso58gb231280:"cp936",euccn:"cp936",windows936:"cp936",ms936:"cp936",936:"cp936",cp936:{type:"_dbcs",table:function(){return n(3336)}},gbk:{type:"_dbcs",table:function(){return n(3336).concat(n(4346))}},xgbk:"gbk",isoir58:"gbk",gb18030:{type:"_dbcs",table:function(){return n(3336).concat(n(4346))},gb18030:function(){return n(6258)},encodeSkipVals:[128],encodeAdd:{"\u20ac":41699}},chinese:"gb18030",windows949:"cp949",ms949:"cp949",949:"cp949",cp949:{type:"_dbcs",table:function(){return n(7348)}},cseuckr:"cp949",csksc56011987:"cp949",euckr:"cp949",isoir149:"cp949",korean:"cp949",ksc56011987:"cp949",ksc56011989:"cp949",ksc5601:"cp949",windows950:"cp950",ms950:"cp950",950:"cp950",cp950:{type:"_dbcs",table:function(){return n(4284)}},big5:"big5hkscs",big5hkscs:{type:"_dbcs",table:function(){return n(4284).concat(n(3480))},encodeSkipVals:[36457,36463,36478,36523,36532,36557,36560,36695,36713,36718,36811,36862,36973,36986,37060,37084,37105,37311,37551,37552,37553,37554,37585,37959,38090,38361,38652,39285,39798,39800,39803,39878,39902,39916,39926,40002,40019,40034,40040,40043,40055,40124,40125,40144,40279,40282,40388,40431,40443,40617,40687,40701,40800,40907,41079,41180,41183,36812,37576,38468,38637,41636,41637,41639,41638,41676,41678]},cnbig5:"big5hkscs",csbig5:"big5hkscs",xxbig5:"big5hkscs"}},6934:function(T,I,n){"use strict";for(var c=[n(1025),n(7688),n(1279),n(758),n(9068),n(3769),n(7018),n(688),n(5990)],i=0;i>>6),C[e++]=128+(63&g)):(C[e++]=224+(g>>>12),C[e++]=128+(g>>>6&63),C[e++]=128+(63&g))}return C.slice(0,e)},B.prototype.end=function(){},E.prototype.write=function(u){for(var C=this.acc,e=this.contBytes,f=this.accBytes,g="",w=0;w0&&(g+=this.defaultCharUnicode,e=0),Q<128?g+=String.fromCharCode(Q):Q<224?(C=31&Q,e=1,f=1):Q<240?(C=15&Q,e=2,f=1):g+=this.defaultCharUnicode):e>0?(C=C<<6|63&Q,f++,0==--e&&(g+=2===f&&C<128&&C>0||3===f&&C<2048?this.defaultCharUnicode:String.fromCharCode(C))):g+=this.defaultCharUnicode}return this.acc=C,this.contBytes=e,this.accBytes=f,g},E.prototype.end=function(){var u=0;return this.contBytes>0&&(u+=this.defaultCharUnicode),u}},9068:function(T,I,n){"use strict";var c=n(7103).Buffer;function i(h,a){if(!h)throw new Error("SBCS codec is called without the data.");if(!h.chars||128!==h.chars.length&&256!==h.chars.length)throw new Error("Encoding '"+h.type+"' has incorrect 'chars' (must be of len 128 or 256)");if(128===h.chars.length){for(var B="",E=0;E<128;E++)B+=String.fromCharCode(E);h.chars=B+h.chars}this.decodeBuf=c.from(h.chars,"ucs2");var u=c.alloc(65536,a.defaultCharSingleByte.charCodeAt(0));for(E=0;E?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\xb0\xb7\u2219\u221a\u2592\u2500\u2502\u253c\u2524\u252c\u251c\u2534\u2510\u250c\u2514\u2518\u03b2\u221e\u03c6\xb1\xbd\xbc\u2248\xab\xbb\ufef7\ufef8\ufffd\ufffd\ufefb\ufefc\ufffd\xa0\xad\ufe82\xa3\xa4\ufe84\ufffd\ufffd\ufe8e\ufe8f\ufe95\ufe99\u060c\ufe9d\ufea1\ufea5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\ufed1\u061b\ufeb1\ufeb5\ufeb9\u061f\xa2\ufe80\ufe81\ufe83\ufe85\ufeca\ufe8b\ufe8d\ufe91\ufe93\ufe97\ufe9b\ufe9f\ufea3\ufea7\ufea9\ufeab\ufead\ufeaf\ufeb3\ufeb7\ufebb\ufebf\ufec1\ufec5\ufecb\ufecf\xa6\xac\xf7\xd7\ufec9\u0640\ufed3\ufed7\ufedb\ufedf\ufee3\ufee7\ufeeb\ufeed\ufeef\ufef3\ufebd\ufecc\ufece\ufecd\ufee1\ufe7d\u0651\ufee5\ufee9\ufeec\ufef0\ufef2\ufed0\ufed5\ufef5\ufef6\ufedd\ufed9\ufef1\u25a0\ufffd"},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xc7\xfc\xe9\xe2\xe4\xe0\xe5\xe7\xea\xeb\xe8\xef\xee\xec\xc4\xc5\xc9\xe6\xc6\xf4\xf6\xf2\xfb\xf9\xff\xd6\xdc\xf8\xa3\xd8\u20a7\u0192\xe1\xed\xf3\xfa\xf1\xd1\xaa\xba\xbf\u2310\xac\xbd\xbc\xa1\xab\xa4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u03b1\xdf\u0393\u03c0\u03a3\u03c3\xb5\u03c4\u03a6\u0398\u03a9\u03b4\u221e\u03c6\u03b5\u2229\u2261\xb1\u2265\u2264\u2320\u2321\xf7\u2248\xb0\u2219\xb7\u221a\u207f\xb2\u25a0\xa0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\u0401\u0451\u0404\u0454\u0407\u0457\u040e\u045e\xb0\u2219\xb7\u221a\u2116\xa4\u25a0\xa0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0386\ufffd\xb7\xac\xa6\u2018\u2019\u0388\u2015\u0389\u038a\u03aa\u038c\ufffd\ufffd\u038e\u03ab\xa9\u038f\xb2\xb3\u03ac\xa3\u03ad\u03ae\u03af\u03ca\u0390\u03cc\u03cd\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xbd\u0398\u0399\xab\xbb\u2591\u2592\u2593\u2502\u2524\u039a\u039b\u039c\u039d\u2563\u2551\u2557\u255d\u039e\u039f\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u03a0\u03a1\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u03a3\u03a4\u03a5\u03a6\u03a7\u03a8\u03a9\u03b1\u03b2\u03b3\u2518\u250c\u2588\u2584\u03b4\u03b5\u2580\u03b6\u03b7\u03b8\u03b9\u03ba\u03bb\u03bc\u03bd\u03be\u03bf\u03c0\u03c1\u03c3\u03c2\u03c4\u0384\xad\xb1\u03c5\u03c6\u03c7\xa7\u03c8\u0385\xb0\xa8\u03c9\u03cb\u03b0\u03ce\u25a0\xa0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\u203e\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\u0160\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\u017d\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\u0161\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\u017e\xff"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\ufe88\xd7\xf7\uf8f6\uf8f5\uf8f4\uf8f7\ufe71\x88\u25a0\u2502\u2500\u2510\u250c\u2514\u2518\ufe79\ufe7b\ufe7d\ufe7f\ufe77\ufe8a\ufef0\ufef3\ufef2\ufece\ufecf\ufed0\ufef6\ufef8\ufefa\ufefc\xa0\uf8fa\uf8f9\uf8f8\xa4\uf8fb\ufe8b\ufe91\ufe97\ufe9b\ufe9f\ufea3\u060c\xad\ufea7\ufeb3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\ufeb7\u061b\ufebb\ufebf\ufeca\u061f\ufecb\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062a\u062b\u062c\u062d\u062e\u062f\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\ufec7\u0639\u063a\ufecc\ufe82\ufe84\ufe8e\ufed3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064a\u064b\u064c\u064d\u064e\u064f\u0650\u0651\u0652\ufed7\ufedb\ufedf\uf8fc\ufef5\ufef7\ufef9\ufefb\ufee3\ufee7\ufeec\ufee9\ufffd"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040a\u040b\u040c\xad\u040e\u040f\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\u2116\u0451\u0452\u0491\u0454\u0455\u0456\u0457\u0458\u0459\u045a\u045b\u045c\xa7\u045e\u045f"},ibm1124:"cp1124",csibm1124:"cp1124",cp1125:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\u0401\u0451\u0490\u0491\u0404\u0454\u0406\u0456\u0407\u0457\xb7\u221a\u2116\xa4\u25a0\xa0"},ibm1125:"cp1125",csibm1125:"cp1125",cp1129:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\u0153\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\u0178\xb5\xb6\xb7\u0152\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\u0102\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\u0300\xcd\xce\xcf\u0110\xd1\u0309\xd3\xd4\u01a0\xd6\xd7\xd8\xd9\xda\xdb\xdc\u01af\u0303\xdf\xe0\xe1\xe2\u0103\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\u0301\xed\xee\xef\u0111\xf1\u0323\xf3\xf4\u01a1\xf6\xf7\xf8\xf9\xfa\xfb\xfc\u01b0\u20ab\xff"},ibm1129:"cp1129",csibm1129:"cp1129",cp1133:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\u0e81\u0e82\u0e84\u0e87\u0e88\u0eaa\u0e8a\u0e8d\u0e94\u0e95\u0e96\u0e97\u0e99\u0e9a\u0e9b\u0e9c\u0e9d\u0e9e\u0e9f\u0ea1\u0ea2\u0ea3\u0ea5\u0ea7\u0eab\u0ead\u0eae\ufffd\ufffd\ufffd\u0eaf\u0eb0\u0eb2\u0eb3\u0eb4\u0eb5\u0eb6\u0eb7\u0eb8\u0eb9\u0ebc\u0eb1\u0ebb\u0ebd\ufffd\ufffd\ufffd\u0ec0\u0ec1\u0ec2\u0ec3\u0ec4\u0ec8\u0ec9\u0eca\u0ecb\u0ecc\u0ecd\u0ec6\ufffd\u0edc\u0edd\u20ad\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0ed0\u0ed1\u0ed2\u0ed3\u0ed4\u0ed5\u0ed6\u0ed7\u0ed8\u0ed9\ufffd\ufffd\xa2\xac\xa6\ufffd"},ibm1133:"cp1133",csibm1133:"cp1133",cp1161:{type:"_sbcs",chars:"\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0e48\u0e01\u0e02\u0e03\u0e04\u0e05\u0e06\u0e07\u0e08\u0e09\u0e0a\u0e0b\u0e0c\u0e0d\u0e0e\u0e0f\u0e10\u0e11\u0e12\u0e13\u0e14\u0e15\u0e16\u0e17\u0e18\u0e19\u0e1a\u0e1b\u0e1c\u0e1d\u0e1e\u0e1f\u0e20\u0e21\u0e22\u0e23\u0e24\u0e25\u0e26\u0e27\u0e28\u0e29\u0e2a\u0e2b\u0e2c\u0e2d\u0e2e\u0e2f\u0e30\u0e31\u0e32\u0e33\u0e34\u0e35\u0e36\u0e37\u0e38\u0e39\u0e3a\u0e49\u0e4a\u0e4b\u20ac\u0e3f\u0e40\u0e41\u0e42\u0e43\u0e44\u0e45\u0e46\u0e47\u0e48\u0e49\u0e4a\u0e4b\u0e4c\u0e4d\u0e4e\u0e4f\u0e50\u0e51\u0e52\u0e53\u0e54\u0e55\u0e56\u0e57\u0e58\u0e59\u0e5a\u0e5b\xa2\xac\xa6\xa0"},ibm1161:"cp1161",csibm1161:"cp1161",cp1162:{type:"_sbcs",chars:"\u20ac\x81\x82\x83\x84\u2026\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\u2018\u2019\u201c\u201d\u2022\u2013\u2014\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\u0e01\u0e02\u0e03\u0e04\u0e05\u0e06\u0e07\u0e08\u0e09\u0e0a\u0e0b\u0e0c\u0e0d\u0e0e\u0e0f\u0e10\u0e11\u0e12\u0e13\u0e14\u0e15\u0e16\u0e17\u0e18\u0e19\u0e1a\u0e1b\u0e1c\u0e1d\u0e1e\u0e1f\u0e20\u0e21\u0e22\u0e23\u0e24\u0e25\u0e26\u0e27\u0e28\u0e29\u0e2a\u0e2b\u0e2c\u0e2d\u0e2e\u0e2f\u0e30\u0e31\u0e32\u0e33\u0e34\u0e35\u0e36\u0e37\u0e38\u0e39\u0e3a\ufffd\ufffd\ufffd\ufffd\u0e3f\u0e40\u0e41\u0e42\u0e43\u0e44\u0e45\u0e46\u0e47\u0e48\u0e49\u0e4a\u0e4b\u0e4c\u0e4d\u0e4e\u0e4f\u0e50\u0e51\u0e52\u0e53\u0e54\u0e55\u0e56\u0e57\u0e58\u0e59\u0e5a\u0e5b\ufffd\ufffd\ufffd\ufffd"},ibm1162:"cp1162",csibm1162:"cp1162",cp1163:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\u20ac\xa5\xa6\xa7\u0153\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\u0178\xb5\xb6\xb7\u0152\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\u0102\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\u0300\xcd\xce\xcf\u0110\xd1\u0309\xd3\xd4\u01a0\xd6\xd7\xd8\xd9\xda\xdb\xdc\u01af\u0303\xdf\xe0\xe1\xe2\u0103\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\u0301\xed\xee\xef\u0111\xf1\u0323\xf3\xf4\u01a1\xf6\xf7\xf8\xf9\xfa\xfb\xfc\u01b0\u20ab\xff"},ibm1163:"cp1163",csibm1163:"cp1163",maccroatian:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\u0160\u2122\xb4\xa8\u2260\u017d\xd8\u221e\xb1\u2264\u2265\u2206\xb5\u2202\u2211\u220f\u0161\u222b\xaa\xba\u2126\u017e\xf8\xbf\xa1\xac\u221a\u0192\u2248\u0106\xab\u010c\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u0110\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\ufffd\xa9\u2044\xa4\u2039\u203a\xc6\xbb\u2013\xb7\u201a\u201e\u2030\xc2\u0107\xc1\u010d\xc8\xcd\xce\xcf\xcc\xd3\xd4\u0111\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u03c0\xcb\u02da\xb8\xca\xe6\u02c7"},maccyrillic:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u2020\xb0\xa2\xa3\xa7\u2022\xb6\u0406\xae\xa9\u2122\u0402\u0452\u2260\u0403\u0453\u221e\xb1\u2264\u2265\u0456\xb5\u2202\u0408\u0404\u0454\u0407\u0457\u0409\u0459\u040a\u045a\u0458\u0405\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\u040b\u045b\u040c\u045c\u0455\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u201e\u040e\u045e\u040f\u045f\u2116\u0401\u0451\u044f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\xa4"},macgreek:{type:"_sbcs",chars:"\xc4\xb9\xb2\xc9\xb3\xd6\xdc\u0385\xe0\xe2\xe4\u0384\xa8\xe7\xe9\xe8\xea\xeb\xa3\u2122\xee\xef\u2022\xbd\u2030\xf4\xf6\xa6\xad\xf9\xfb\xfc\u2020\u0393\u0394\u0398\u039b\u039e\u03a0\xdf\xae\xa9\u03a3\u03aa\xa7\u2260\xb0\u0387\u0391\xb1\u2264\u2265\xa5\u0392\u0395\u0396\u0397\u0399\u039a\u039c\u03a6\u03ab\u03a8\u03a9\u03ac\u039d\xac\u039f\u03a1\u2248\u03a4\xab\xbb\u2026\xa0\u03a5\u03a7\u0386\u0388\u0153\u2013\u2015\u201c\u201d\u2018\u2019\xf7\u0389\u038a\u038c\u038e\u03ad\u03ae\u03af\u03cc\u038f\u03cd\u03b1\u03b2\u03c8\u03b4\u03b5\u03c6\u03b3\u03b7\u03b9\u03be\u03ba\u03bb\u03bc\u03bd\u03bf\u03c0\u03ce\u03c1\u03c3\u03c4\u03b8\u03c9\u03c2\u03c7\u03c5\u03b6\u03ca\u03cb\u0390\u03b0\ufffd"},maciceland:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\xdd\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\xc6\xd8\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u2126\xe6\xf8\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u2044\xa4\xd0\xf0\xde\xfe\xfd\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\ufffd\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7"},macroman:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\xc6\xd8\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u2126\xe6\xf8\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u2044\xa4\u2039\u203a\ufb01\ufb02\u2021\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\ufffd\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7"},macromania:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\u0102\u015e\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u2126\u0103\u015f\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u2044\xa4\u2039\u203a\u0162\u0163\u2021\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\ufffd\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7"},macthai:{type:"_sbcs",chars:"\xab\xbb\u2026\uf88c\uf88f\uf892\uf895\uf898\uf88b\uf88e\uf891\uf894\uf897\u201c\u201d\uf899\ufffd\u2022\uf884\uf889\uf885\uf886\uf887\uf888\uf88a\uf88d\uf890\uf893\uf896\u2018\u2019\ufffd\xa0\u0e01\u0e02\u0e03\u0e04\u0e05\u0e06\u0e07\u0e08\u0e09\u0e0a\u0e0b\u0e0c\u0e0d\u0e0e\u0e0f\u0e10\u0e11\u0e12\u0e13\u0e14\u0e15\u0e16\u0e17\u0e18\u0e19\u0e1a\u0e1b\u0e1c\u0e1d\u0e1e\u0e1f\u0e20\u0e21\u0e22\u0e23\u0e24\u0e25\u0e26\u0e27\u0e28\u0e29\u0e2a\u0e2b\u0e2c\u0e2d\u0e2e\u0e2f\u0e30\u0e31\u0e32\u0e33\u0e34\u0e35\u0e36\u0e37\u0e38\u0e39\u0e3a\ufeff\u200b\u2013\u2014\u0e3f\u0e40\u0e41\u0e42\u0e43\u0e44\u0e45\u0e46\u0e47\u0e48\u0e49\u0e4a\u0e4b\u0e4c\u0e4d\u2122\u0e4f\u0e50\u0e51\u0e52\u0e53\u0e54\u0e55\u0e56\u0e57\u0e58\u0e59\xae\xa9\ufffd\ufffd\ufffd\ufffd"},macturkish:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\xc6\xd8\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u2126\xe6\xf8\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u011e\u011f\u0130\u0131\u015e\u015f\u2021\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\ufffd\xd2\xda\xdb\xd9\ufffd\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7"},macukraine:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u2020\xb0\u0490\xa3\xa7\u2022\xb6\u0406\xae\xa9\u2122\u0402\u0452\u2260\u0403\u0453\u221e\xb1\u2264\u2265\u0456\xb5\u0491\u0408\u0404\u0454\u0407\u0457\u0409\u0459\u040a\u045a\u0458\u0405\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\u040b\u045b\u040c\u045c\u0455\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u201e\u040e\u045e\u040f\u045f\u2116\u0401\u0451\u044f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\xa4"},koi8r:{type:"_sbcs",chars:"\u2500\u2502\u250c\u2510\u2514\u2518\u251c\u2524\u252c\u2534\u253c\u2580\u2584\u2588\u258c\u2590\u2591\u2592\u2593\u2320\u25a0\u2219\u221a\u2248\u2264\u2265\xa0\u2321\xb0\xb2\xb7\xf7\u2550\u2551\u2552\u0451\u2553\u2554\u2555\u2556\u2557\u2558\u2559\u255a\u255b\u255c\u255d\u255e\u255f\u2560\u2561\u0401\u2562\u2563\u2564\u2565\u2566\u2567\u2568\u2569\u256a\u256b\u256c\xa9\u044e\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u044f\u0440\u0441\u0442\u0443\u0436\u0432\u044c\u044b\u0437\u0448\u044d\u0449\u0447\u044a\u042e\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u042f\u0420\u0421\u0422\u0423\u0416\u0412\u042c\u042b\u0417\u0428\u042d\u0429\u0427\u042a"},koi8u:{type:"_sbcs",chars:"\u2500\u2502\u250c\u2510\u2514\u2518\u251c\u2524\u252c\u2534\u253c\u2580\u2584\u2588\u258c\u2590\u2591\u2592\u2593\u2320\u25a0\u2219\u221a\u2248\u2264\u2265\xa0\u2321\xb0\xb2\xb7\xf7\u2550\u2551\u2552\u0451\u0454\u2554\u0456\u0457\u2557\u2558\u2559\u255a\u255b\u0491\u255d\u255e\u255f\u2560\u2561\u0401\u0404\u2563\u0406\u0407\u2566\u2567\u2568\u2569\u256a\u0490\u256c\xa9\u044e\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u044f\u0440\u0441\u0442\u0443\u0436\u0432\u044c\u044b\u0437\u0448\u044d\u0449\u0447\u044a\u042e\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u042f\u0420\u0421\u0422\u0423\u0416\u0412\u042c\u042b\u0417\u0428\u042d\u0429\u0427\u042a"},koi8ru:{type:"_sbcs",chars:"\u2500\u2502\u250c\u2510\u2514\u2518\u251c\u2524\u252c\u2534\u253c\u2580\u2584\u2588\u258c\u2590\u2591\u2592\u2593\u2320\u25a0\u2219\u221a\u2248\u2264\u2265\xa0\u2321\xb0\xb2\xb7\xf7\u2550\u2551\u2552\u0451\u0454\u2554\u0456\u0457\u2557\u2558\u2559\u255a\u255b\u0491\u045e\u255e\u255f\u2560\u2561\u0401\u0404\u2563\u0406\u0407\u2566\u2567\u2568\u2569\u256a\u0490\u040e\xa9\u044e\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u044f\u0440\u0441\u0442\u0443\u0436\u0432\u044c\u044b\u0437\u0448\u044d\u0449\u0447\u044a\u042e\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u042f\u0420\u0421\u0422\u0423\u0416\u0412\u042c\u042b\u0417\u0428\u042d\u0429\u0427\u042a"},koi8t:{type:"_sbcs",chars:"\u049b\u0493\u201a\u0492\u201e\u2026\u2020\u2021\ufffd\u2030\u04b3\u2039\u04b2\u04b7\u04b6\ufffd\u049a\u2018\u2019\u201c\u201d\u2022\u2013\u2014\ufffd\u2122\ufffd\u203a\ufffd\ufffd\ufffd\ufffd\ufffd\u04ef\u04ee\u0451\xa4\u04e3\xa6\xa7\ufffd\ufffd\ufffd\xab\xac\xad\xae\ufffd\xb0\xb1\xb2\u0401\ufffd\u04e2\xb6\xb7\ufffd\u2116\ufffd\xbb\ufffd\ufffd\ufffd\xa9\u044e\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u044f\u0440\u0441\u0442\u0443\u0436\u0432\u044c\u044b\u0437\u0448\u044d\u0449\u0447\u044a\u042e\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u042f\u0420\u0421\u0422\u0423\u0416\u0412\u042c\u042b\u0417\u0428\u042d\u0429\u0427\u042a"},armscii8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\ufffd\u0587\u0589)(\xbb\xab\u2014.\u055d,-\u058a\u2026\u055c\u055b\u055e\u0531\u0561\u0532\u0562\u0533\u0563\u0534\u0564\u0535\u0565\u0536\u0566\u0537\u0567\u0538\u0568\u0539\u0569\u053a\u056a\u053b\u056b\u053c\u056c\u053d\u056d\u053e\u056e\u053f\u056f\u0540\u0570\u0541\u0571\u0542\u0572\u0543\u0573\u0544\u0574\u0545\u0575\u0546\u0576\u0547\u0577\u0548\u0578\u0549\u0579\u054a\u057a\u054b\u057b\u054c\u057c\u054d\u057d\u054e\u057e\u054f\u057f\u0550\u0580\u0551\u0581\u0552\u0582\u0553\u0583\u0554\u0584\u0555\u0585\u0556\u0586\u055a\ufffd"},rk1048:{type:"_sbcs",chars:"\u0402\u0403\u201a\u0453\u201e\u2026\u2020\u2021\u20ac\u2030\u0409\u2039\u040a\u049a\u04ba\u040f\u0452\u2018\u2019\u201c\u201d\u2022\u2013\u2014\ufffd\u2122\u0459\u203a\u045a\u049b\u04bb\u045f\xa0\u04b0\u04b1\u04d8\xa4\u04e8\xa6\xa7\u0401\xa9\u0492\xab\xac\xad\xae\u04ae\xb0\xb1\u0406\u0456\u04e9\xb5\xb6\xb7\u0451\u2116\u0493\xbb\u04d9\u04a2\u04a3\u04af\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f"},tcvn:{type:"_sbcs",chars:"\0\xda\u1ee4\x03\u1eea\u1eec\u1eee\x07\b\t\n\v\f\r\x0e\x0f\x10\u1ee8\u1ef0\u1ef2\u1ef6\u1ef8\xdd\u1ef4\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\xc0\u1ea2\xc3\xc1\u1ea0\u1eb6\u1eac\xc8\u1eba\u1ebc\xc9\u1eb8\u1ec6\xcc\u1ec8\u0128\xcd\u1eca\xd2\u1ece\xd5\xd3\u1ecc\u1ed8\u1edc\u1ede\u1ee0\u1eda\u1ee2\xd9\u1ee6\u0168\xa0\u0102\xc2\xca\xd4\u01a0\u01af\u0110\u0103\xe2\xea\xf4\u01a1\u01b0\u0111\u1eb0\u0300\u0309\u0303\u0301\u0323\xe0\u1ea3\xe3\xe1\u1ea1\u1eb2\u1eb1\u1eb3\u1eb5\u1eaf\u1eb4\u1eae\u1ea6\u1ea8\u1eaa\u1ea4\u1ec0\u1eb7\u1ea7\u1ea9\u1eab\u1ea5\u1ead\xe8\u1ec2\u1ebb\u1ebd\xe9\u1eb9\u1ec1\u1ec3\u1ec5\u1ebf\u1ec7\xec\u1ec9\u1ec4\u1ebe\u1ed2\u0129\xed\u1ecb\xf2\u1ed4\u1ecf\xf5\xf3\u1ecd\u1ed3\u1ed5\u1ed7\u1ed1\u1ed9\u1edd\u1edf\u1ee1\u1edb\u1ee3\xf9\u1ed6\u1ee7\u0169\xfa\u1ee5\u1eeb\u1eed\u1eef\u1ee9\u1ef1\u1ef3\u1ef7\u1ef9\xfd\u1ef5\u1ed0"},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201a\u0192\u201e\u2026\u2020\u2021\u02c6\u2030\u0160\u2039\u0152\x8d\x8e\x8f\x90\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u0161\u203a\u0153\x9d\x9e\u0178\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\u10d0\u10d1\u10d2\u10d3\u10d4\u10d5\u10d6\u10d7\u10d8\u10d9\u10da\u10db\u10dc\u10dd\u10de\u10df\u10e0\u10e1\u10e2\u10e3\u10e4\u10e5\u10e6\u10e7\u10e8\u10e9\u10ea\u10eb\u10ec\u10ed\u10ee\u10ef\u10f0\u10f1\u10f2\u10f3\u10f4\u10f5\u10f6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201a\u0192\u201e\u2026\u2020\u2021\u02c6\u2030\u0160\u2039\u0152\x8d\x8e\x8f\x90\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u0161\u203a\u0153\x9d\x9e\u0178\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\u10d0\u10d1\u10d2\u10d3\u10d4\u10d5\u10d6\u10f1\u10d7\u10d8\u10d9\u10da\u10db\u10dc\u10f2\u10dd\u10de\u10df\u10e0\u10e1\u10e2\u10f3\u10e3\u10e4\u10e5\u10e6\u10e7\u10e8\u10e9\u10ea\u10eb\u10ec\u10ed\u10ee\u10f4\u10ef\u10f0\u10f5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04ee\u0493\u201e\u2026\u04b6\u04ae\u04b2\u04af\u04a0\u04e2\u04a2\u049a\u04ba\u04b8\u0497\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u04b3\u04b7\u04a1\u04e3\u04a3\u049b\u04bb\u04b9\xa0\u040e\u045e\u0408\u04e8\u0498\u04b0\xa7\u0401\xa9\u04d8\xab\xac\u04ef\xae\u049c\xb0\u04b1\u0406\u0456\u0499\u04e9\xb6\xb7\u0451\u2116\u04d9\xbb\u0458\u04aa\u04ab\u049d\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f"},viscii:{type:"_sbcs",chars:"\0\x01\u1eb2\x03\x04\u1eb4\u1eaa\x07\b\t\n\v\f\r\x0e\x0f\x10\x11\x12\x13\u1ef6\x15\x16\x17\x18\u1ef8\x1a\x1b\x1c\x1d\u1ef4\x1f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\u1ea0\u1eae\u1eb0\u1eb6\u1ea4\u1ea6\u1ea8\u1eac\u1ebc\u1eb8\u1ebe\u1ec0\u1ec2\u1ec4\u1ec6\u1ed0\u1ed2\u1ed4\u1ed6\u1ed8\u1ee2\u1eda\u1edc\u1ede\u1eca\u1ece\u1ecc\u1ec8\u1ee6\u0168\u1ee4\u1ef2\xd5\u1eaf\u1eb1\u1eb7\u1ea5\u1ea7\u1ea9\u1ead\u1ebd\u1eb9\u1ebf\u1ec1\u1ec3\u1ec5\u1ec7\u1ed1\u1ed3\u1ed5\u1ed7\u1ee0\u01a0\u1ed9\u1edd\u1edf\u1ecb\u1ef0\u1ee8\u1eea\u1eec\u01a1\u1edb\u01af\xc0\xc1\xc2\xc3\u1ea2\u0102\u1eb3\u1eb5\xc8\xc9\xca\u1eba\xcc\xcd\u0128\u1ef3\u0110\u1ee9\xd2\xd3\xd4\u1ea1\u1ef7\u1eeb\u1eed\xd9\xda\u1ef9\u1ef5\xdd\u1ee1\u01b0\xe0\xe1\xe2\xe3\u1ea3\u0103\u1eef\u1eab\xe8\xe9\xea\u1ebb\xec\xed\u0129\u1ec9\u0111\u1ef1\xf2\xf3\xf4\xf5\u1ecf\u1ecd\u1ee5\xf9\xfa\u0169\u1ee7\xfd\u1ee3\u1eee"},iso646cn:{type:"_sbcs",chars:"\0\x01\x02\x03\x04\x05\x06\x07\b\t\n\v\f\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !\"#\xa5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}\u203e\x7f\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd"},iso646jp:{type:"_sbcs",chars:"\0\x01\x02\x03\x04\x05\x06\x07\b\t\n\v\f\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xa5]^_`abcdefghijklmnopqrstuvwxyz{|}\u203e\x7f\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd"},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xc0\xc2\xc8\xca\xcb\xce\xcf\xb4\u02cb\u02c6\xa8\u02dc\xd9\xdb\u20a4\xaf\xdd\xfd\xb0\xc7\xe7\xd1\xf1\xa1\xbf\xa4\xa3\xa5\xa7\u0192\xa2\xe2\xea\xf4\xfb\xe1\xe9\xf3\xfa\xe0\xe8\xf2\xf9\xe4\xeb\xf6\xfc\xc5\xee\xd8\xc6\xe5\xed\xf8\xe6\xc4\xec\xd6\xdc\xc9\xef\xdf\xd4\xc1\xc3\xe3\xd0\xf0\xcd\xcc\xd3\xd2\xd5\xf5\u0160\u0161\xda\u0178\xff\xde\xfe\xb7\xb5\xb6\xbe\u2014\xbc\xbd\xaa\xba\xab\u25a0\xbb\xb1\ufffd"},macintosh:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\xc6\xd8\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u2126\xe6\xf8\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u2044\xa4\u2039\u203a\ufb01\ufb02\u2021\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\ufffd\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7"},ascii:{type:"_sbcs",chars:"\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd"},tis620:{type:"_sbcs",chars:"\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0e01\u0e02\u0e03\u0e04\u0e05\u0e06\u0e07\u0e08\u0e09\u0e0a\u0e0b\u0e0c\u0e0d\u0e0e\u0e0f\u0e10\u0e11\u0e12\u0e13\u0e14\u0e15\u0e16\u0e17\u0e18\u0e19\u0e1a\u0e1b\u0e1c\u0e1d\u0e1e\u0e1f\u0e20\u0e21\u0e22\u0e23\u0e24\u0e25\u0e26\u0e27\u0e28\u0e29\u0e2a\u0e2b\u0e2c\u0e2d\u0e2e\u0e2f\u0e30\u0e31\u0e32\u0e33\u0e34\u0e35\u0e36\u0e37\u0e38\u0e39\u0e3a\ufffd\ufffd\ufffd\ufffd\u0e3f\u0e40\u0e41\u0e42\u0e43\u0e44\u0e45\u0e46\u0e47\u0e48\u0e49\u0e4a\u0e4b\u0e4c\u0e4d\u0e4e\u0e4f\u0e50\u0e51\u0e52\u0e53\u0e54\u0e55\u0e56\u0e57\u0e58\u0e59\u0e5a\u0e5b\ufffd\ufffd\ufffd\ufffd"}}},3769:function(T){"use strict";T.exports={10029:"maccenteuro",maccenteuro:{type:"_sbcs",chars:"\xc4\u0100\u0101\xc9\u0104\xd6\xdc\xe1\u0105\u010c\xe4\u010d\u0106\u0107\xe9\u0179\u017a\u010e\xed\u010f\u0112\u0113\u0116\xf3\u0117\xf4\xf6\xf5\xfa\u011a\u011b\xfc\u2020\xb0\u0118\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\u0119\xa8\u2260\u0123\u012e\u012f\u012a\u2264\u2265\u012b\u0136\u2202\u2211\u0142\u013b\u013c\u013d\u013e\u0139\u013a\u0145\u0146\u0143\xac\u221a\u0144\u0147\u2206\xab\xbb\u2026\xa0\u0148\u0150\xd5\u0151\u014c\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\u014d\u0154\u0155\u0158\u2039\u203a\u0159\u0156\u0157\u0160\u201a\u201e\u0161\u015a\u015b\xc1\u0164\u0165\xcd\u017d\u017e\u016a\xd3\xd4\u016b\u016e\xda\u016f\u0170\u0171\u0172\u0173\xdd\xfd\u0137\u017b\u0141\u017c\u0122\u02c7"},808:"cp808",ibm808:"cp808",cp808:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\u0401\u0451\u0404\u0454\u0407\u0457\u040e\u045e\xb0\u2219\xb7\u221a\u2116\u20ac\u25a0\xa0"},mik:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\u2514\u2534\u252c\u251c\u2500\u253c\u2563\u2551\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2510\u2591\u2592\u2593\u2502\u2524\u2116\xa7\u2557\u255d\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u03b1\xdf\u0393\u03c0\u03a3\u03c3\xb5\u03c4\u03a6\u0398\u03a9\u03b4\u221e\u03c6\u03b5\u2229\u2261\xb1\u2265\u2264\u2320\u2321\xf7\u2248\xb0\u2219\xb7\u221a\u207f\xb2\u25a0\xa0"},cp720:{type:"_sbcs",chars:"\x80\x81\xe9\xe2\x84\xe0\x86\xe7\xea\xeb\xe8\xef\xee\x8d\x8e\x8f\x90\u0651\u0652\xf4\xa4\u0640\xfb\xf9\u0621\u0622\u0623\u0624\xa3\u0625\u0626\u0627\u0628\u0629\u062a\u062b\u062c\u062d\u062e\u062f\u0630\u0631\u0632\u0633\u0634\u0635\xab\xbb\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u0636\u0637\u0638\u0639\u063a\u0641\xb5\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064a\u2261\u064b\u064c\u064d\u064e\u064f\u0650\u2248\xb0\u2219\xb7\u221a\u207f\xb2\u25a0\xa0"},ascii8bit:"ascii",usascii:"ascii",ansix34:"ascii",ansix341968:"ascii",ansix341986:"ascii",csascii:"ascii",cp367:"ascii",ibm367:"ascii",isoir6:"ascii",iso646us:"ascii",iso646irv:"ascii",us:"ascii",latin1:"iso88591",latin2:"iso88592",latin3:"iso88593",latin4:"iso88594",latin5:"iso88599",latin6:"iso885910",latin7:"iso885913",latin8:"iso885914",latin9:"iso885915",latin10:"iso885916",csisolatin1:"iso88591",csisolatin2:"iso88592",csisolatin3:"iso88593",csisolatin4:"iso88594",csisolatincyrillic:"iso88595",csisolatinarabic:"iso88596",csisolatingreek:"iso88597",csisolatinhebrew:"iso88598",csisolatin5:"iso88599",csisolatin6:"iso885910",l1:"iso88591",l2:"iso88592",l3:"iso88593",l4:"iso88594",l5:"iso88599",l6:"iso885910",l7:"iso885913",l8:"iso885914",l9:"iso885915",l10:"iso885916",isoir14:"iso646jp",isoir57:"iso646cn",isoir100:"iso88591",isoir101:"iso88592",isoir109:"iso88593",isoir110:"iso88594",isoir144:"iso88595",isoir127:"iso88596",isoir126:"iso88597",isoir138:"iso88598",isoir148:"iso88599",isoir157:"iso885910",isoir166:"tis620",isoir179:"iso885913",isoir199:"iso885914",isoir203:"iso885915",isoir226:"iso885916",cp819:"iso88591",ibm819:"iso88591",cyrillic:"iso88595",arabic:"iso88596",arabic8:"iso88596",ecma114:"iso88596",asmo708:"iso88596",greek:"iso88597",greek8:"iso88597",ecma118:"iso88597",elot928:"iso88597",hebrew:"iso88598",hebrew8:"iso88598",turkish:"iso88599",turkish8:"iso88599",thai:"iso885911",thai8:"iso885911",celtic:"iso885914",celtic8:"iso885914",isoceltic:"iso885914",tis6200:"tis620",tis62025291:"tis620",tis62025330:"tis620",1e4:"macroman",10006:"macgreek",10007:"maccyrillic",10079:"maciceland",10081:"macturkish",cspc8codepage437:"cp437",cspc775baltic:"cp775",cspc850multilingual:"cp850",cspcp852:"cp852",cspc862latinhebrew:"cp862",cpgr:"cp869",msee:"cp1250",mscyrl:"cp1251",msansi:"cp1252",msgreek:"cp1253",msturk:"cp1254",mshebr:"cp1255",msarab:"cp1256",winbaltrim:"cp1257",cp20866:"koi8r",20866:"koi8r",ibm878:"koi8r",cskoi8r:"koi8r",cp21866:"koi8u",21866:"koi8u",ibm1168:"koi8u",strk10482002:"rk1048",tcvn5712:"tcvn",tcvn57121:"tcvn",gb198880:"iso646cn",cn:"iso646cn",csiso14jisc6220ro:"iso646jp",jisc62201969ro:"iso646jp",jp:"iso646jp",cshproman8:"hproman8",r8:"hproman8",roman8:"hproman8",xroman8:"hproman8",ibm1051:"hproman8",mac:"macintosh",csmacintosh:"macintosh"}},1279:function(T,I,n){"use strict";var c=n(7103).Buffer;function i(){}function o(){}function l(){this.overflowByte=-1}function h(u,C){this.iconv=C}function a(u,C){void 0===(u=u||{}).addBOM&&(u.addBOM=!0),this.encoder=C.iconv.getEncoder("utf-16le",u)}function B(u,C){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=u||{},this.iconv=C.iconv}function E(u,C){var e=[],f=0,g=0,w=0;A:for(var Q=0;Q=100)break A}return w>g?"utf-16be":w1114111)&&(f=g),f>=65536){var w=55296|(f-=65536)>>10;C[e++]=255&w,C[e++]=w>>8,f=56320|1023&f}return C[e++]=255&f,C[e++]=f>>8,e}function a(C,e){this.iconv=e}function B(C,e){void 0===(C=C||{}).addBOM&&(C.addBOM=!0),this.encoder=e.iconv.getEncoder(C.defaultEncoding||"utf-32le",C)}function E(C,e){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=C||{},this.iconv=e.iconv}function u(C,e){var f=[],g=0,w=0,Q=0,d=0,Y=0;A:for(var y=0;y16)&&Q++,(0!==f[3]||f[2]>16)&&w++,0===f[0]&&0===f[1]&&(0!==f[2]||0!==f[3])&&Y++,(0!==f[0]||0!==f[1])&&0===f[2]&&0===f[3]&&d++,f.length=0,++g>=100)break A}return Y-Q>d-w?"utf-32be":Y-Q0){for(;e0&&(d=this.iconv.decode(c.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",d},I.utf7imap=f,f.prototype.encoder=g,f.prototype.decoder=w,f.prototype.bomAware=!0,g.prototype.write=function(d){for(var Y=this.inBase64,y=this.base64Accum,p=this.base64AccumIdx,m=c.alloc(5*d.length+10),D=0,U=0;U0&&(D+=m.write(y.slice(0,p).toString("base64").replace(/\//g,",").replace(/=+$/,""),D),p=0),m[D++]=C,Y=!1),Y||(m[D++]=N,N===e&&(m[D++]=C))):(Y||(m[D++]=e,Y=!0),Y&&(y[p++]=N>>8,y[p++]=255&N,p==y.length&&(D+=m.write(y.toString("base64").replace(/\//g,","),D),p=0)))}return this.inBase64=Y,this.base64AccumIdx=p,m.slice(0,D)},g.prototype.end=function(){var d=c.alloc(10),Y=0;return this.inBase64&&(this.base64AccumIdx>0&&(Y+=d.write(this.base64Accum.slice(0,this.base64AccumIdx).toString("base64").replace(/\//g,",").replace(/=+$/,""),Y),this.base64AccumIdx=0),d[Y++]=C,this.inBase64=!1),d.slice(0,Y)};var Q=B.slice();Q[",".charCodeAt(0)]=!0,w.prototype.write=function(d){for(var Y="",y=0,p=this.inBase64,m=this.base64Accum,D=0;D0&&(d=this.iconv.decode(c.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",d}},5395:function(T,I){"use strict";function c(o,l){this.encoder=o,this.addBOM=!0}function i(o,l){this.decoder=o,this.pass=!1,this.options=l||{}}I.PrependBOM=c,c.prototype.write=function(o){return this.addBOM&&(o="\ufeff"+o,this.addBOM=!1),this.encoder.write(o)},c.prototype.end=function(){return this.encoder.end()},I.StripBOM=i,i.prototype.write=function(o){var l=this.decoder.write(o);return this.pass||!l||("\ufeff"===l[0]&&(l=l.slice(1),"function"==typeof this.options.stripBOM&&this.options.stripBOM()),this.pass=!0),l},i.prototype.end=function(){return this.decoder.end()}},4914:function(T,I,n){"use strict";var l,c=n(7103).Buffer,i=n(5395),o=T.exports;o.encodings=null,o.defaultCharUnicode="\ufffd",o.defaultCharSingleByte="?",o.encode=function(a,B,E){a=""+(a||"");var u=o.getEncoder(B,E),C=u.write(a),e=u.end();return e&&e.length>0?c.concat([C,e]):C},o.decode=function(a,B,E){"string"==typeof a&&(o.skipDecodeWarning||(console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding"),o.skipDecodeWarning=!0),a=c.from(""+(a||""),"binary"));var u=o.getDecoder(B,E),C=u.write(a),e=u.end();return e?C+e:C},o.encodingExists=function(a){try{return o.getCodec(a),!0}catch(B){return!1}},o.toEncoding=o.encode,o.fromEncoding=o.decode,o._codecDataCache={},o.getCodec=function(a){o.encodings||(o.encodings=n(6934));for(var B=o._canonicalizeEncoding(a),E={};;){var u=o._codecDataCache[B];if(u)return u;var C=o.encodings[B];switch(typeof C){case"string":B=C;break;case"object":for(var e in C)E[e]=C[e];E.encodingName||(E.encodingName=B),B=C.type;break;case"function":return E.encodingName||(E.encodingName=B),u=new C(E,o),o._codecDataCache[E.encodingName]=u,u;default:throw new Error("Encoding not recognized: '"+a+"' (searched as: '"+B+"')")}}},o._canonicalizeEncoding=function(h){return(""+h).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g,"")},o.getEncoder=function(a,B){var E=o.getCodec(a),u=new E.encoder(B,E);return E.bomAware&&B&&B.addBOM&&(u=new i.PrependBOM(u,B)),u},o.getDecoder=function(a,B){var E=o.getCodec(a),u=new E.decoder(B,E);return E.bomAware&&!(B&&!1===B.stripBOM)&&(u=new i.StripBOM(u,B)),u},o.enableStreamingAPI=function(a){if(!o.supportsStreams){var B=n(8044)(a);o.IconvLiteEncoderStream=B.IconvLiteEncoderStream,o.IconvLiteDecoderStream=B.IconvLiteDecoderStream,o.encodeStream=function(u,C){return new o.IconvLiteEncoderStream(o.getEncoder(u,C),C)},o.decodeStream=function(u,C){return new o.IconvLiteDecoderStream(o.getDecoder(u,C),C)},o.supportsStreams=!0}};try{l=n(5832)}catch(h){}l&&l.Transform?o.enableStreamingAPI(l):o.encodeStream=o.decodeStream=function(){throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.")}},8044:function(T,I,n){"use strict";var c=n(7103).Buffer;T.exports=function(i){var o=i.Transform;function l(a,B){this.conv=a,(B=B||{}).decodeStrings=!1,o.call(this,B)}function h(a,B){this.conv=a,(B=B||{}).encoding=this.encoding="utf8",o.call(this,B)}return(l.prototype=Object.create(o.prototype,{constructor:{value:l}}))._transform=function(a,B,E){if("string"!=typeof a)return E(new Error("Iconv encoding stream needs strings as its input."));try{var u=this.conv.write(a);u&&u.length&&this.push(u),E()}catch(C){E(C)}},l.prototype._flush=function(a){try{var B=this.conv.end();B&&B.length&&this.push(B),a()}catch(E){a(E)}},l.prototype.collect=function(a){var B=[];return this.on("error",a),this.on("data",function(E){B.push(E)}),this.on("end",function(){a(null,c.concat(B))}),this},(h.prototype=Object.create(o.prototype,{constructor:{value:h}}))._transform=function(a,B,E){if(!(c.isBuffer(a)||a instanceof Uint8Array))return E(new Error("Iconv decoding stream needs buffers as its input."));try{var u=this.conv.write(a);u&&u.length&&this.push(u,this.encoding),E()}catch(C){E(C)}},h.prototype._flush=function(a){try{var B=this.conv.end();B&&B.length&&this.push(B,this.encoding),a()}catch(E){a(E)}},h.prototype.collect=function(a){var B="";return this.on("error",a),this.on("data",function(E){B+=E}),this.on("end",function(){a(null,B)}),this},{IconvLiteEncoderStream:l,IconvLiteDecoderStream:h}}},645:function(T,I){I.read=function(n,c,i,o,l){var h,a,B=8*l-o-1,E=(1<>1,C=-7,e=i?l-1:0,f=i?-1:1,g=n[c+e];for(e+=f,h=g&(1<<-C)-1,g>>=-C,C+=B;C>0;h=256*h+n[c+e],e+=f,C-=8);for(a=h&(1<<-C)-1,h>>=-C,C+=o;C>0;a=256*a+n[c+e],e+=f,C-=8);if(0===h)h=1-u;else{if(h===E)return a?NaN:1/0*(g?-1:1);a+=Math.pow(2,o),h-=u}return(g?-1:1)*a*Math.pow(2,h-o)},I.write=function(n,c,i,o,l,h){var a,B,E,u=8*h-l-1,C=(1<>1,f=23===l?Math.pow(2,-24)-Math.pow(2,-77):0,g=o?0:h-1,w=o?1:-1,Q=c<0||0===c&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(B=isNaN(c)?1:0,a=C):(a=Math.floor(Math.log(c)/Math.LN2),c*(E=Math.pow(2,-a))<1&&(a--,E*=2),(c+=a+e>=1?f/E:f*Math.pow(2,1-e))*E>=2&&(a++,E/=2),a+e>=C?(B=0,a=C):a+e>=1?(B=(c*E-1)*Math.pow(2,l),a+=e):(B=c*Math.pow(2,e-1)*Math.pow(2,l),a=0));l>=8;n[i+g]=255&B,g+=w,B/=256,l-=8);for(a=a<0;n[i+g]=255&a,g+=w,a/=256,u-=8);n[i+g-w]|=128*Q}},5717:function(T){T.exports="function"==typeof Object.create?function(n,c){c&&(n.super_=c,n.prototype=Object.create(c.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:function(n,c){if(c){n.super_=c;var i=function(){};i.prototype=c.prototype,n.prototype=new i,n.prototype.constructor=n}}},2584:function(T,I,n){"use strict";var c=n(6410)(),o=n(1924)("Object.prototype.toString"),l=function(E){return!(c&&E&&"object"==typeof E&&Symbol.toStringTag in E)&&"[object Arguments]"===o(E)},h=function(E){return!!l(E)||null!==E&&"object"==typeof E&&"number"==typeof E.length&&E.length>=0&&"[object Array]"!==o(E)&&"[object Function]"===o(E.callee)},a=function(){return l(arguments)}();l.isLegacyArguments=h,T.exports=a?l:h},8923:function(T,I,n){"use strict";var c=Date.prototype.getDay,o=Object.prototype.toString,h=n(6410)();T.exports=function(B){return"object"==typeof B&&null!==B&&(h?function(B){try{return c.call(B),!0}catch(E){return!1}}(B):"[object Date]"===o.call(B))}},8662:function(T,I,n){"use strict";var B,c=Object.prototype.toString,i=Function.prototype.toString,o=/^\s*(?:function)?\*/,l=n(6410)(),h=Object.getPrototypeOf;T.exports=function(u){if("function"!=typeof u)return!1;if(o.test(i.call(u)))return!0;if(!l)return"[object GeneratorFunction]"===c.call(u);if(!h)return!1;if(void 0===B){var e=function(){if(!l)return!1;try{return Function("return function*() {}")()}catch(E){}}();B=!!e&&h(e)}return h(u)===B}},8611:function(T){"use strict";T.exports=function(n){return n!=n}},360:function(T,I,n){"use strict";var c=n(5559),i=n(4289),o=n(8611),l=n(9415),h=n(6743),a=c(l(),Number);i(a,{getPolyfill:l,implementation:o,shim:h}),T.exports=a},9415:function(T,I,n){"use strict";var c=n(8611);T.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:c}},6743:function(T,I,n){"use strict";var c=n(4289),i=n(9415);T.exports=function(){var l=i();return c(Number,{isNaN:l},{isNaN:function(){return Number.isNaN!==l}}),l}},8420:function(T,I,n){"use strict";var o,l,h,a,c=n(1924),i=n(6410)();if(i){o=c("Object.prototype.hasOwnProperty"),l=c("RegExp.prototype.exec"),h={};var B=function(){throw h};a={toString:B,valueOf:B},"symbol"==typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=B)}var E=c("Object.prototype.toString"),u=Object.getOwnPropertyDescriptor;T.exports=i?function(f){if(!f||"object"!=typeof f)return!1;var g=u(f,"lastIndex");if(!g||!o(g,"value"))return!1;try{l(f,a)}catch(Q){return Q===h}}:function(f){return!(!f||"object"!=typeof f&&"function"!=typeof f)&&"[object RegExp]"===E(f)}},5692:function(T,I,n){"use strict";var c=n(9804),i=n(3083),o=n(1924),l=o("Object.prototype.toString"),h=n(6410)(),a="undefined"==typeof globalThis?n.g:globalThis,B=i(),E=o("Array.prototype.indexOf",!0)||function(Q,d){for(var Y=0;Y-1}return!!e&&function(Q){var d=!1;return c(C,function(Y,y){if(!d)try{d=Y.call(Q)===y}catch(p){}}),d}(Q)}},4244:function(T){"use strict";var I=function(n){return n!=n};T.exports=function(c,i){return 0===c&&0===i?1/c==1/i:!!(c===i||I(c)&&I(i))}},609:function(T,I,n){"use strict";var c=n(4289),i=n(5559),o=n(4244),l=n(5624),h=n(2281),a=i(l(),Object);c(a,{getPolyfill:l,implementation:o,shim:h}),T.exports=a},5624:function(T,I,n){"use strict";var c=n(4244);T.exports=function(){return"function"==typeof Object.is?Object.is:c}},2281:function(T,I,n){"use strict";var c=n(5624),i=n(4289);T.exports=function(){var l=c();return i(Object,{is:l},{is:function(){return Object.is!==l}}),l}},8987:function(T,I,n){"use strict";var c;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,l=n(1414),h=Object.prototype.propertyIsEnumerable,a=!h.call({toString:null},"toString"),B=h.call(function(){},"prototype"),E=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(g){var w=g.constructor;return w&&w.prototype===g},C={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},e=function(){if("undefined"==typeof window)return!1;for(var g in window)try{if(!C["$"+g]&&i.call(window,g)&&null!==window[g]&&"object"==typeof window[g])try{u(window[g])}catch(w){return!0}}catch(w){return!0}return!1}();c=function(w){var Q=null!==w&&"object"==typeof w,d="[object Function]"===o.call(w),Y=l(w),y=Q&&"[object String]"===o.call(w),p=[];if(!Q&&!d&&!Y)throw new TypeError("Object.keys called on a non-object");var m=B&&d;if(y&&w.length>0&&!i.call(w,0))for(var D=0;D0)for(var U=0;U=0&&"[object Function]"===I.call(c.callee)),o}},4155:function(T){var n,c,I=T.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function l(w){if(n===setTimeout)return setTimeout(w,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(w,0);try{return n(w,0)}catch(Q){try{return n.call(null,w,0)}catch(d){return n.call(this,w,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(w){n=i}try{c="function"==typeof clearTimeout?clearTimeout:o}catch(w){c=o}}();var E,a=[],B=!1,u=-1;function C(){!B||!E||(B=!1,E.length?a=E.concat(a):u=-1,a.length&&e())}function e(){if(!B){var w=l(C);B=!0;for(var Q=a.length;Q;){for(E=a,a=[];++u1)for(var d=1;d=0;--vA){var FA=this.tryEntries[vA],_=FA.completion;if("root"===FA.tryLoc)return BA("end");if(FA.tryLoc<=this.prev){var dA=i.call(FA,"catchLoc"),uA=i.call(FA,"finallyLoc");if(dA&&uA){if(this.prev=0;--BA){var vA=this.tryEntries[BA];if(vA.tryLoc<=this.prev&&i.call(vA,"finallyLoc")&&this.prev=0;--gA){var BA=this.tryEntries[gA];if(BA.finallyLoc===cA)return this.complete(BA.completion,BA.afterLoc),aA(BA),Q}},catch:function(cA){for(var gA=this.tryEntries.length-1;gA>=0;--gA){var BA=this.tryEntries[gA];if(BA.tryLoc===cA){var vA=BA.completion;if("throw"===vA.type){var FA=vA.arg;aA(BA)}return FA}}throw new Error("illegal catch attempt")},delegateYield:function(cA,gA,BA){return this.delegate={iterator:lA(cA),resultName:gA,nextLoc:BA},"next"===this.method&&(this.arg=o),Q}},n}(T.exports);try{regeneratorRuntime=I}catch(n){"object"==typeof globalThis?globalThis.regeneratorRuntime=I:Function("r","regeneratorRuntime = r")(I)}},3697:function(T){"use strict";var I=Object,n=TypeError;T.exports=function(){if(null!=this&&this!==I(this))throw new n("RegExp.prototype.flags getter called on non-object");var i="";return this.global&&(i+="g"),this.ignoreCase&&(i+="i"),this.multiline&&(i+="m"),this.dotAll&&(i+="s"),this.unicode&&(i+="u"),this.sticky&&(i+="y"),i}},2847:function(T,I,n){"use strict";var c=n(4289),i=n(5559),o=n(3697),l=n(1721),h=n(2753),a=i(o);c(a,{getPolyfill:l,implementation:o,shim:h}),T.exports=a},1721:function(T,I,n){"use strict";var c=n(3697),i=n(4289).supportsDescriptors,o=Object.getOwnPropertyDescriptor,l=TypeError;T.exports=function(){if(!i)throw new l("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");if("gim"===/a/gim.flags){var a=o(RegExp.prototype,"flags");if(a&&"function"==typeof a.get&&"boolean"==typeof/a/.dotAll)return a.get}return c}},2753:function(T,I,n){"use strict";var c=n(4289).supportsDescriptors,i=n(1721),o=Object.getOwnPropertyDescriptor,l=Object.defineProperty,h=TypeError,a=Object.getPrototypeOf,B=/a/;T.exports=function(){if(!c||!a)throw new h("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var u=i(),C=a(B),e=o(C,"flags");return(!e||e.get!==u)&&l(C,"flags",{configurable:!0,enumerable:!1,get:u}),u}},6099:function(T,I,n){var c=n(8823).Buffer;!function(i){i.parser=function(q,O){return new l(q,O)},i.SAXParser=l,i.SAXStream=e,i.createStream=function C(q,O){return new e(q,O)},i.MAX_BUFFER_LENGTH=65536;var E,o=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function l(q,O){if(!(this instanceof l))return new l(q,O);var $=this;(function a(q){for(var O=0,$=o.length;O<$;O++)q[o[O]]=""})($),$.q=$.c="",$.bufferCheckPosition=i.MAX_BUFFER_LENGTH,$.opt=O||{},$.opt.lowercase=$.opt.lowercase||$.opt.lowercasetags,$.looseCase=$.opt.lowercase?"toLowerCase":"toUpperCase",$.tags=[],$.closed=$.closedRoot=$.sawRoot=!1,$.tag=$.error=null,$.strict=!!q,$.noscript=!(!q&&!$.opt.noscript),$.state=L.BEGIN,$.strictEntities=$.opt.strictEntities,$.ENTITIES=Object.create($.strictEntities?i.XML_ENTITIES:i.ENTITIES),$.attribList=[],$.opt.xmlns&&($.ns=Object.create(d)),$.trackPosition=!1!==$.opt.position,$.trackPosition&&($.position=$.line=$.column=0),aA($,"onready")}i.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(q){function O(){}return O.prototype=q,new O}),Object.keys||(Object.keys=function(q){var O=[];for(var $ in q)q.hasOwnProperty($)&&O.push($);return O}),l.prototype={end:function(){gA(this)},write:function XA(q){var O=this;if(this.error)throw this.error;if(O.closed)return cA(O,"Cannot write after close. Assign an onready handler.");if(null===q)return gA(O);"object"==typeof q&&(q=q.toString());for(var $=0,V="";V=bA(q,$++),O.c=V,V;)switch(O.trackPosition&&(O.position++,"\n"===V?(O.line++,O.column=0):O.column++),O.state){case L.BEGIN:if(O.state=L.BEGIN_WHITESPACE,"\ufeff"===V)continue;NA(O,V);continue;case L.BEGIN_WHITESPACE:NA(O,V);continue;case L.TEXT:if(O.sawRoot&&!O.closedRoot){for(var hA=$-1;V&&"<"!==V&&"&"!==V;)(V=bA(q,$++))&&O.trackPosition&&(O.position++,"\n"===V?(O.line++,O.column=0):O.column++);O.textNode+=q.substring(hA,$-1)}"<"!==V||O.sawRoot&&O.closedRoot&&!O.strict?(!D(V)&&(!O.sawRoot||O.closedRoot)&&BA(O,"Text data outside of root node."),"&"===V?O.state=L.TEXT_ENTITY:O.textNode+=V):(O.state=L.OPEN_WAKA,O.startTagPosition=O.position);continue;case L.SCRIPT:"<"===V?O.state=L.SCRIPT_ENDING:O.script+=V;continue;case L.SCRIPT_ENDING:"/"===V?O.state=L.CLOSE_TAG:(O.script+="<"+V,O.state=L.SCRIPT);continue;case L.OPEN_WAKA:"!"===V?(O.state=L.SGML_DECL,O.sgmlDecl=""):D(V)||(F(Y,V)?(O.state=L.OPEN_TAG,O.tagName=V):"/"===V?(O.state=L.CLOSE_TAG,O.tagName=""):"?"===V?(O.state=L.PROC_INST,O.procInstName=O.procInstBody=""):(BA(O,"Unencoded <"),O.startTagPosition+1"===V?(AA(O,"onsgmldeclaration",O.sgmlDecl),O.sgmlDecl="",O.state=L.TEXT):(U(V)&&(O.state=L.SGML_DECL_QUOTED),O.sgmlDecl+=V);continue;case L.SGML_DECL_QUOTED:V===O.q&&(O.state=L.SGML_DECL,O.q=""),O.sgmlDecl+=V;continue;case L.DOCTYPE:">"===V?(O.state=L.TEXT,AA(O,"ondoctype",O.doctype),O.doctype=!0):(O.doctype+=V,"["===V?O.state=L.DOCTYPE_DTD:U(V)&&(O.state=L.DOCTYPE_QUOTED,O.q=V));continue;case L.DOCTYPE_QUOTED:O.doctype+=V,V===O.q&&(O.q="",O.state=L.DOCTYPE);continue;case L.DOCTYPE_DTD:O.doctype+=V,"]"===V?O.state=L.DOCTYPE:U(V)&&(O.state=L.DOCTYPE_DTD_QUOTED,O.q=V);continue;case L.DOCTYPE_DTD_QUOTED:O.doctype+=V,V===O.q&&(O.state=L.DOCTYPE_DTD,O.q="");continue;case L.COMMENT:"-"===V?O.state=L.COMMENT_ENDING:O.comment+=V;continue;case L.COMMENT_ENDING:"-"===V?(O.state=L.COMMENT_ENDED,O.comment=MA(O.opt,O.comment),O.comment&&AA(O,"oncomment",O.comment),O.comment=""):(O.comment+="-"+V,O.state=L.COMMENT);continue;case L.COMMENT_ENDED:">"!==V?(BA(O,"Malformed comment"),O.comment+="--"+V,O.state=L.COMMENT):O.state=L.TEXT;continue;case L.CDATA:"]"===V?O.state=L.CDATA_ENDING:O.cdata+=V;continue;case L.CDATA_ENDING:"]"===V?O.state=L.CDATA_ENDING_2:(O.cdata+="]"+V,O.state=L.CDATA);continue;case L.CDATA_ENDING_2:">"===V?(O.cdata&&AA(O,"oncdata",O.cdata),AA(O,"onclosecdata"),O.cdata="",O.state=L.TEXT):"]"===V?O.cdata+="]":(O.cdata+="]]"+V,O.state=L.CDATA);continue;case L.PROC_INST:"?"===V?O.state=L.PROC_INST_ENDING:D(V)?O.state=L.PROC_INST_BODY:O.procInstName+=V;continue;case L.PROC_INST_BODY:if(!O.procInstBody&&D(V))continue;"?"===V?O.state=L.PROC_INST_ENDING:O.procInstBody+=V;continue;case L.PROC_INST_ENDING:">"===V?(AA(O,"onprocessinginstruction",{name:O.procInstName,body:O.procInstBody}),O.procInstName=O.procInstBody="",O.state=L.TEXT):(O.procInstBody+="?"+V,O.state=L.PROC_INST_BODY);continue;case L.OPEN_TAG:F(y,V)?O.tagName+=V:(vA(O),">"===V?dA(O):"/"===V?O.state=L.OPEN_TAG_SLASH:(D(V)||BA(O,"Invalid character in tag name"),O.state=L.ATTRIB));continue;case L.OPEN_TAG_SLASH:">"===V?(dA(O,!0),uA(O)):(BA(O,"Forward-slash in opening tag not followed by >"),O.state=L.ATTRIB);continue;case L.ATTRIB:if(D(V))continue;">"===V?dA(O):"/"===V?O.state=L.OPEN_TAG_SLASH:F(Y,V)?(O.attribName=V,O.attribValue="",O.state=L.ATTRIB_NAME):BA(O,"Invalid attribute name");continue;case L.ATTRIB_NAME:"="===V?O.state=L.ATTRIB_VALUE:">"===V?(BA(O,"Attribute without value"),O.attribValue=O.attribName,_(O),dA(O)):D(V)?O.state=L.ATTRIB_NAME_SAW_WHITE:F(y,V)?O.attribName+=V:BA(O,"Invalid attribute name");continue;case L.ATTRIB_NAME_SAW_WHITE:if("="===V)O.state=L.ATTRIB_VALUE;else{if(D(V))continue;BA(O,"Attribute without value"),O.tag.attributes[O.attribName]="",O.attribValue="",AA(O,"onattribute",{name:O.attribName,value:""}),O.attribName="",">"===V?dA(O):F(Y,V)?(O.attribName=V,O.state=L.ATTRIB_NAME):(BA(O,"Invalid attribute name"),O.state=L.ATTRIB)}continue;case L.ATTRIB_VALUE:if(D(V))continue;U(V)?(O.q=V,O.state=L.ATTRIB_VALUE_QUOTED):(BA(O,"Unquoted attribute value"),O.state=L.ATTRIB_VALUE_UNQUOTED,O.attribValue=V);continue;case L.ATTRIB_VALUE_QUOTED:if(V!==O.q){"&"===V?O.state=L.ATTRIB_VALUE_ENTITY_Q:O.attribValue+=V;continue}_(O),O.q="",O.state=L.ATTRIB_VALUE_CLOSED;continue;case L.ATTRIB_VALUE_CLOSED:D(V)?O.state=L.ATTRIB:">"===V?dA(O):"/"===V?O.state=L.OPEN_TAG_SLASH:F(Y,V)?(BA(O,"No whitespace between attributes"),O.attribName=V,O.attribValue="",O.state=L.ATTRIB_NAME):BA(O,"Invalid attribute name");continue;case L.ATTRIB_VALUE_UNQUOTED:if(!N(V)){"&"===V?O.state=L.ATTRIB_VALUE_ENTITY_U:O.attribValue+=V;continue}_(O),">"===V?dA(O):O.state=L.ATTRIB;continue;case L.CLOSE_TAG:if(O.tagName)">"===V?uA(O):F(y,V)?O.tagName+=V:O.script?(O.script+=""===V?uA(O):BA(O,"Invalid characters in closing tag");continue;case L.TEXT_ENTITY:case L.ATTRIB_VALUE_ENTITY_Q:case L.ATTRIB_VALUE_ENTITY_U:var nA,EA;switch(O.state){case L.TEXT_ENTITY:nA=L.TEXT,EA="textNode";break;case L.ATTRIB_VALUE_ENTITY_Q:nA=L.ATTRIB_VALUE_QUOTED,EA="attribValue";break;case L.ATTRIB_VALUE_ENTITY_U:nA=L.ATTRIB_VALUE_UNQUOTED,EA="attribValue"}";"===V?(O[EA]+=CA(O),O.entity="",O.state=nA):F(O.entity.length?m:p,V)?O.entity+=V:(BA(O,"Invalid character in entity name"),O[EA]+="&"+O.entity+V,O.entity="",O.state=nA);continue;default:throw new Error(O,"Unknown state: "+O.state)}return O.position>=O.bufferCheckPosition&&function h(q){for(var O=Math.max(i.MAX_BUFFER_LENGTH,10),$=0,V=0,hA=o.length;VO)switch(o[V]){case"textNode":lA(q);break;case"cdata":AA(q,"oncdata",q.cdata),q.cdata="";break;case"script":AA(q,"onscript",q.script),q.script="";break;default:cA(q,"Max buffer length exceeded: "+o[V])}$=Math.max($,mA)}q.bufferCheckPosition=i.MAX_BUFFER_LENGTH-$+q.position}(O),O},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){!function B(q){lA(q),""!==q.cdata&&(AA(q,"oncdata",q.cdata),q.cdata=""),""!==q.script&&(AA(q,"onscript",q.script),q.script="")}(this)}};try{E=n(2830).Stream}catch(q){E=function(){}}var u=i.EVENTS.filter(function(q){return"error"!==q&&"end"!==q});function e(q,O){if(!(this instanceof e))return new e(q,O);E.apply(this),this._parser=new l(q,O),this.writable=!0,this.readable=!0;var $=this;this._parser.onend=function(){$.emit("end")},this._parser.onerror=function(V){$.emit("error",V),$._parser.error=null},this._decoder=null,u.forEach(function(V){Object.defineProperty($,"on"+V,{get:function(){return $._parser["on"+V]},set:function(hA){if(!hA)return $.removeAllListeners(V),$._parser["on"+V]=hA,hA;$.on(V,hA)},enumerable:!0,configurable:!1})})}(e.prototype=Object.create(E.prototype,{constructor:{value:e}})).write=function(q){if("function"==typeof c&&"function"==typeof c.isBuffer&&c.isBuffer(q)){if(!this._decoder){var O=n(2553).s;this._decoder=new O("utf8")}q=this._decoder.write(q)}return this._parser.write(q.toString()),this.emit("data",q),!0},e.prototype.end=function(q){return q&&q.length&&this.write(q),this._parser.end(),!0},e.prototype.on=function(q,O){var $=this;return!$._parser["on"+q]&&-1!==u.indexOf(q)&&($._parser["on"+q]=function(){var V=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);V.splice(0,0,q),$.emit.apply($,V)}),E.prototype.on.call($,q,O)};var w="http://www.w3.org/XML/1998/namespace",Q="http://www.w3.org/2000/xmlns/",d={xml:w,xmlns:Q},Y=/[:_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]/,y=/[:_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-]/,p=/[#:_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]/,m=/[#:_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 D(q){return" "===q||"\n"===q||"\r"===q||"\t"===q}function U(q){return'"'===q||"'"===q}function N(q){return">"===q||D(q)}function F(q,O){return q.test(O)}function z(q,O){return!F(q,O)}var q,O,$,L=0;for(var W in i.STATE={BEGIN:L++,BEGIN_WHITESPACE:L++,TEXT:L++,TEXT_ENTITY:L++,OPEN_WAKA:L++,SGML_DECL:L++,SGML_DECL_QUOTED:L++,DOCTYPE:L++,DOCTYPE_QUOTED:L++,DOCTYPE_DTD:L++,DOCTYPE_DTD_QUOTED:L++,COMMENT_STARTING:L++,COMMENT:L++,COMMENT_ENDING:L++,COMMENT_ENDED:L++,CDATA:L++,CDATA_ENDING:L++,CDATA_ENDING_2:L++,PROC_INST:L++,PROC_INST_BODY:L++,PROC_INST_ENDING:L++,OPEN_TAG:L++,OPEN_TAG_SLASH:L++,ATTRIB:L++,ATTRIB_NAME:L++,ATTRIB_NAME_SAW_WHITE:L++,ATTRIB_VALUE:L++,ATTRIB_VALUE_QUOTED:L++,ATTRIB_VALUE_CLOSED:L++,ATTRIB_VALUE_UNQUOTED:L++,ATTRIB_VALUE_ENTITY_Q:L++,ATTRIB_VALUE_ENTITY_U:L++,CLOSE_TAG:L++,CLOSE_TAG_SAW_WHITE:L++,SCRIPT:L++,SCRIPT_ENDING:L++},i.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},i.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(i.ENTITIES).forEach(function(q){var O=i.ENTITIES[q],$="number"==typeof O?String.fromCharCode(O):O;i.ENTITIES[q]=$}),i.STATE)i.STATE[i.STATE[W]]=W;function aA(q,O,$){q[O]&&q[O]($)}function AA(q,O,$){q.textNode&&lA(q),aA(q,O,$)}function lA(q){q.textNode=MA(q.opt,q.textNode),q.textNode&&aA(q,"ontext",q.textNode),q.textNode=""}function MA(q,O){return q.trim&&(O=O.trim()),q.normalize&&(O=O.replace(/\s+/g," ")),O}function cA(q,O){return lA(q),q.trackPosition&&(O+="\nLine: "+q.line+"\nColumn: "+q.column+"\nChar: "+q.c),O=new Error(O),q.error=O,aA(q,"onerror",O),q}function gA(q){return q.sawRoot&&!q.closedRoot&&BA(q,"Unclosed root tag"),q.state!==L.BEGIN&&q.state!==L.BEGIN_WHITESPACE&&q.state!==L.TEXT&&cA(q,"Unexpected end"),lA(q),q.c="",q.closed=!0,aA(q,"onend"),l.call(q,q.strict,q.opt),q}function BA(q,O){if("object"!=typeof q||!(q instanceof l))throw new Error("bad call to strictFail");q.strict&&cA(q,O)}function vA(q){q.strict||(q.tagName=q.tagName[q.looseCase]());var O=q.tags[q.tags.length-1]||q,$=q.tag={name:q.tagName,attributes:{}};q.opt.xmlns&&($.ns=O.ns),q.attribList.length=0,AA(q,"onopentagstart",$)}function FA(q,O){var V=q.indexOf(":")<0?["",q]:q.split(":"),hA=V[0],mA=V[1];return O&&"xmlns"===q&&(hA="xmlns",mA=""),{prefix:hA,local:mA}}function _(q){if(q.strict||(q.attribName=q.attribName[q.looseCase]()),-1!==q.attribList.indexOf(q.attribName)||q.tag.attributes.hasOwnProperty(q.attribName))q.attribName=q.attribValue="";else{if(q.opt.xmlns){var O=FA(q.attribName,!0),V=O.local;if("xmlns"===O.prefix)if("xml"===V&&q.attribValue!==w)BA(q,"xml: prefix must be bound to "+w+"\nActual: "+q.attribValue);else if("xmlns"===V&&q.attribValue!==Q)BA(q,"xmlns: prefix must be bound to "+Q+"\nActual: "+q.attribValue);else{var hA=q.tag,mA=q.tags[q.tags.length-1]||q;hA.ns===mA.ns&&(hA.ns=Object.create(mA.ns)),hA.ns[V]=q.attribValue}q.attribList.push([q.attribName,q.attribValue])}else q.tag.attributes[q.attribName]=q.attribValue,AA(q,"onattribute",{name:q.attribName,value:q.attribValue});q.attribName=q.attribValue=""}}function dA(q,O){if(q.opt.xmlns){var $=q.tag,V=FA(q.tagName);$.prefix=V.prefix,$.local=V.local,$.uri=$.ns[V.prefix]||"",$.prefix&&!$.uri&&(BA(q,"Unbound namespace prefix: "+JSON.stringify(q.tagName)),$.uri=V.prefix),$.ns&&(q.tags[q.tags.length-1]||q).ns!==$.ns&&Object.keys($.ns).forEach(function(ut){AA(q,"onopennamespace",{prefix:ut,uri:$.ns[ut]})});for(var mA=0,nA=q.attribList.length;mA",q.tagName="",void(q.state=L.SCRIPT);AA(q,"onscript",q.script),q.script=""}var O=q.tags.length,$=q.tagName;q.strict||($=$[q.looseCase]());for(var V=$;O--&&q.tags[O].name!==V;)BA(q,"Unexpected close tag");if(O<0)return BA(q,"Unmatched closing tag: "+q.tagName),q.textNode+="",void(q.state=L.TEXT);q.tagName=$;for(var mA=q.tags.length;mA-- >O;){var nA=q.tag=q.tags.pop();q.tagName=q.tag.name,AA(q,"onclosetag",q.tagName);var EA={};for(var GA in nA.ns)EA[GA]=nA.ns[GA];q.opt.xmlns&&nA.ns!==(q.tags[q.tags.length-1]||q).ns&&Object.keys(nA.ns).forEach(function(ot){AA(q,"onclosenamespace",{prefix:ot,uri:nA.ns[ot]})})}0===O&&(q.closedRoot=!0),q.tagName=q.attribValue=q.attribName="",q.attribList.length=0,q.state=L.TEXT}function CA(q){var V,O=q.entity,$=O.toLowerCase(),hA="";return q.ENTITIES[O]?q.ENTITIES[O]:q.ENTITIES[$]?q.ENTITIES[$]:("#"===(O=$).charAt(0)&&("x"===O.charAt(1)?(O=O.slice(2),hA=(V=parseInt(O,16)).toString(16)):(O=O.slice(1),hA=(V=parseInt(O,10)).toString(10))),O=O.replace(/^0+/,""),isNaN(V)||hA.toLowerCase()!==O?(BA(q,"Invalid character entity"),"&"+q.entity+";"):String.fromCodePoint(V))}function NA(q,O){"<"===O?(q.state=L.OPEN_WAKA,q.startTagPosition=q.position):D(O)||(BA(q,"Non-whitespace before first tag."),q.textNode=O,q.state=L.TEXT)}function bA(q,O){var $="";return O1114111||O(ot)!==ot)throw RangeError("Invalid code point: "+ot);ot<=65535?hA.push(ot):hA.push(55296+((ot-=65536)>>10),ot%1024+56320),(EA+1===GA||hA.length>V)&&(et+=q.apply(null,hA),hA.length=0)}return et},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:$,configurable:!0,writable:!0}):String.fromCodePoint=$)}(I)},2830:function(T,I,n){T.exports=o;var c=n(7187).EventEmitter;function o(){c.call(this)}n(5717)(o,c),o.Readable=n(6577),o.Writable=n(323),o.Duplex=n(8656),o.Transform=n(4473),o.PassThrough=n(2366),o.finished=n(1086),o.pipeline=n(6472),o.Stream=o,o.prototype.pipe=function(l,h){var a=this;function B(w){l.writable&&!1===l.write(w)&&a.pause&&a.pause()}function E(){a.readable&&a.resume&&a.resume()}a.on("data",B),l.on("drain",E),!l._isStdio&&(!h||!1!==h.end)&&(a.on("end",C),a.on("close",e));var u=!1;function C(){u||(u=!0,l.end())}function e(){u||(u=!0,"function"==typeof l.destroy&&l.destroy())}function f(w){if(g(),0===c.listenerCount(this,"error"))throw w}function g(){a.removeListener("data",B),l.removeListener("drain",E),a.removeListener("end",C),a.removeListener("close",e),a.removeListener("error",f),l.removeListener("error",f),a.removeListener("end",g),a.removeListener("close",g),l.removeListener("close",g)}return a.on("error",f),l.on("error",f),a.on("end",g),a.on("close",g),l.on("close",g),l.emit("pipe",a),l}},8106:function(T){"use strict";var n={};function c(a,B,E){E||(E=Error);var C=function(e){function f(g,w,Q){return e.call(this,function u(e,f,g){return"string"==typeof B?B:B(e,f,g)}(g,w,Q))||this}return function I(a,B){a.prototype=Object.create(B.prototype),a.prototype.constructor=a,a.__proto__=B}(f,e),f}(E);C.prototype.name=E.name,C.prototype.code=a,n[a]=C}function i(a,B){if(Array.isArray(a)){var E=a.length;return a=a.map(function(u){return String(u)}),E>2?"one of ".concat(B," ").concat(a.slice(0,E-1).join(", "),", or ")+a[E-1]:2===E?"one of ".concat(B," ").concat(a[0]," or ").concat(a[1]):"of ".concat(B," ").concat(a[0])}return"of ".concat(B," ").concat(String(a))}c("ERR_INVALID_OPT_VALUE",function(a,B){return'The value "'+B+'" is invalid for option "'+a+'"'},TypeError),c("ERR_INVALID_ARG_TYPE",function(a,B,E){var u,C;if("string"==typeof B&&function o(a,B,E){return a.substr(!E||E<0?0:+E,B.length)===B}(B,"not ")?(u="must not be",B=B.replace(/^not /,"")):u="must be",function l(a,B,E){return(void 0===E||E>a.length)&&(E=a.length),a.substring(E-B.length,E)===B}(a," argument"))C="The ".concat(a," ").concat(u," ").concat(i(B,"type"));else{var e=function h(a,B,E){return"number"!=typeof E&&(E=0),!(E+B.length>a.length)&&-1!==a.indexOf(B,E)}(a,".")?"property":"argument";C='The "'.concat(a,'" ').concat(e," ").concat(u," ").concat(i(B,"type"))}return C+". Received type ".concat(typeof E)},TypeError),c("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),c("ERR_METHOD_NOT_IMPLEMENTED",function(a){return"The "+a+" method is not implemented"}),c("ERR_STREAM_PREMATURE_CLOSE","Premature close"),c("ERR_STREAM_DESTROYED",function(a){return"Cannot call "+a+" after a stream was destroyed"}),c("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),c("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),c("ERR_STREAM_WRITE_AFTER_END","write after end"),c("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),c("ERR_UNKNOWN_ENCODING",function(a){return"Unknown encoding: "+a},TypeError),c("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),T.exports.q=n},8656:function(T,I,n){"use strict";var c=n(4155),i=Object.keys||function(e){var f=[];for(var g in e)f.push(g);return f};T.exports=E;var o=n(6577),l=n(323);n(5717)(E,o);for(var h=i(l.prototype),a=0;a0)if("string"!=typeof EA&&!TA.objectMode&&Object.getPrototypeOf(EA)!==a.prototype&&(EA=function E(nA){return a.from(nA)}(EA)),et)TA.endEmitted?F(nA,new m):lA(nA,TA,EA,!0);else if(TA.ended)F(nA,new y);else{if(TA.destroyed)return!1;TA.reading=!1,TA.decoder&&!GA?(EA=TA.decoder.write(EA),TA.objectMode||0!==EA.length?lA(nA,TA,EA,!1):dA(nA,TA)):lA(nA,TA,EA,!1)}else et||(TA.reading=!1,dA(nA,TA));return!TA.ended&&(TA.lengthEA.highWaterMark&&(EA.highWaterMark=function gA(nA){return nA>=cA?nA=cA:(nA--,nA|=nA>>>1,nA|=nA>>>2,nA|=nA>>>4,nA|=nA>>>8,nA|=nA>>>16,nA++),nA}(nA)),nA<=EA.length?nA:EA.ended?EA.length:(EA.needReadable=!0,0))}function FA(nA){var EA=nA._readableState;e("emitReadable",EA.needReadable,EA.emittedReadable),EA.needReadable=!1,EA.emittedReadable||(e("emitReadable",EA.flowing),EA.emittedReadable=!0,c.nextTick(_,nA))}function _(nA){var EA=nA._readableState;e("emitReadable_",EA.destroyed,EA.length,EA.ended),!EA.destroyed&&(EA.length||EA.ended)&&(nA.emit("readable"),EA.emittedReadable=!1),EA.needReadable=!EA.flowing&&!EA.ended&&EA.length<=EA.highWaterMark,O(nA)}function dA(nA,EA){EA.readingMore||(EA.readingMore=!0,c.nextTick(uA,nA,EA))}function uA(nA,EA){for(;!EA.reading&&!EA.ended&&(EA.length0,EA.resumeScheduled&&!EA.paused?EA.flowing=!0:nA.listenerCount("data")>0&&nA.resume()}function bA(nA){e("readable nexttick read 0"),nA.read(0)}function q(nA,EA){e("resume",EA.reading),EA.reading||nA.read(0),EA.resumeScheduled=!1,nA.emit("resume"),O(nA),EA.flowing&&!EA.reading&&nA.read(0)}function O(nA){var EA=nA._readableState;for(e("flow",EA.flowing);EA.flowing&&null!==nA.read(););}function $(nA,EA){return 0===EA.length?null:(EA.objectMode?GA=EA.buffer.shift():!nA||nA>=EA.length?(GA=EA.decoder?EA.buffer.join(""):1===EA.buffer.length?EA.buffer.first():EA.buffer.concat(EA.length),EA.buffer.clear()):GA=EA.buffer.consume(nA,EA.decoder),GA);var GA}function V(nA){var EA=nA._readableState;e("endReadable",EA.endEmitted),EA.endEmitted||(EA.ended=!0,c.nextTick(hA,EA,nA))}function hA(nA,EA){if(e("endReadableNT",nA.endEmitted,nA.length),!nA.endEmitted&&0===nA.length&&(nA.endEmitted=!0,EA.readable=!1,EA.emit("end"),nA.autoDestroy)){var GA=EA._writableState;(!GA||GA.autoDestroy&&GA.finished)&&EA.destroy()}}function mA(nA,EA){for(var GA=0,et=nA.length;GA=EA.highWaterMark:EA.length>0)||EA.ended))return e("read: emitReadable",EA.length,EA.ended),0===EA.length&&EA.ended?V(this):FA(this),null;if(0===(nA=BA(nA,EA))&&EA.ended)return 0===EA.length&&V(this),null;var ot,et=EA.needReadable;return e("need readable",et),(0===EA.length||EA.length-nA0?$(nA,EA):null)?(EA.needReadable=EA.length<=EA.highWaterMark,nA=0):(EA.length-=nA,EA.awaitDrain=0),0===EA.length&&(EA.ended||(EA.needReadable=!0),GA!==nA&&EA.ended&&V(this)),null!==ot&&this.emit("data",ot),ot},aA.prototype._read=function(nA){F(this,new p("_read()"))},aA.prototype.pipe=function(nA,EA){var GA=this,et=this._readableState;switch(et.pipesCount){case 0:et.pipes=nA;break;case 1:et.pipes=[et.pipes,nA];break;default:et.pipes.push(nA)}et.pipesCount+=1,e("pipe count=%d opts=%j",et.pipesCount,EA);var TA=EA&&!1===EA.end||nA===c.stdout||nA===c.stderr?ft:mt;function it(OA,Yt){e("onunpipe"),OA===GA&&Yt&&!1===Yt.hasUnpiped&&(Yt.hasUnpiped=!0,function JA(){e("cleanup"),nA.removeListener("close",yA),nA.removeListener("finish",Mt),nA.removeListener("drain",It),nA.removeListener("error",rt),nA.removeListener("unpipe",it),GA.removeListener("end",mt),GA.removeListener("end",ft),GA.removeListener("data",VA),ut=!0,et.awaitDrain&&(!nA._writableState||nA._writableState.needDrain)&&It()}())}function mt(){e("onend"),nA.end()}et.endEmitted?c.nextTick(TA):GA.once("end",TA),nA.on("unpipe",it);var It=function CA(nA){return function(){var GA=nA._readableState;e("pipeOnDrain",GA.awaitDrain),GA.awaitDrain&&GA.awaitDrain--,0===GA.awaitDrain&&l(nA,"data")&&(GA.flowing=!0,O(nA))}}(GA);nA.on("drain",It);var ut=!1;function VA(OA){e("ondata");var Yt=nA.write(OA);e("dest.write",Yt),!1===Yt&&((1===et.pipesCount&&et.pipes===nA||et.pipesCount>1&&-1!==mA(et.pipes,nA))&&!ut&&(e("false write response, pause",et.awaitDrain),et.awaitDrain++),GA.pause())}function rt(OA){e("onerror",OA),ft(),nA.removeListener("error",rt),0===l(nA,"error")&&F(nA,OA)}function yA(){nA.removeListener("finish",Mt),ft()}function Mt(){e("onfinish"),nA.removeListener("close",yA),ft()}function ft(){e("unpipe"),GA.unpipe(nA)}return GA.on("data",VA),function L(nA,EA,GA){if("function"==typeof nA.prependListener)return nA.prependListener(EA,GA);nA._events&&nA._events[EA]?Array.isArray(nA._events[EA])?nA._events[EA].unshift(GA):nA._events[EA]=[GA,nA._events[EA]]:nA.on(EA,GA)}(nA,"error",rt),nA.once("close",yA),nA.once("finish",Mt),nA.emit("pipe",GA),et.flowing||(e("pipe resume"),GA.resume()),nA},aA.prototype.unpipe=function(nA){var EA=this._readableState,GA={hasUnpiped:!1};if(0===EA.pipesCount)return this;if(1===EA.pipesCount)return nA&&nA!==EA.pipes||(nA||(nA=EA.pipes),EA.pipes=null,EA.pipesCount=0,EA.flowing=!1,nA&&nA.emit("unpipe",this,GA)),this;if(!nA){var et=EA.pipes,ot=EA.pipesCount;EA.pipes=null,EA.pipesCount=0,EA.flowing=!1;for(var TA=0;TA0,!1!==et.flowing&&this.resume()):"readable"===nA&&!et.endEmitted&&!et.readableListening&&(et.readableListening=et.needReadable=!0,et.flowing=!1,et.emittedReadable=!1,e("on readable",et.length,et.reading),et.length?FA(this):et.reading||c.nextTick(bA,this)),GA},aA.prototype.removeListener=function(nA,EA){var GA=h.prototype.removeListener.call(this,nA,EA);return"readable"===nA&&c.nextTick(NA,this),GA},aA.prototype.removeAllListeners=function(nA){var EA=h.prototype.removeAllListeners.apply(this,arguments);return("readable"===nA||void 0===nA)&&c.nextTick(NA,this),EA},aA.prototype.resume=function(){var nA=this._readableState;return nA.flowing||(e("resume"),nA.flowing=!nA.readableListening,function XA(nA,EA){EA.resumeScheduled||(EA.resumeScheduled=!0,c.nextTick(q,nA,EA))}(this,nA)),nA.paused=!1,this},aA.prototype.pause=function(){return e("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(e("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},aA.prototype.wrap=function(nA){var EA=this,GA=this._readableState,et=!1;for(var ot in nA.on("end",function(){if(e("wrapped end"),GA.decoder&&!GA.ended){var it=GA.decoder.end();it&&it.length&&EA.push(it)}EA.push(null)}),nA.on("data",function(it){e("wrapped data"),GA.decoder&&(it=GA.decoder.write(it)),GA.objectMode&&null==it||!(GA.objectMode||it&&it.length)||EA.push(it)||(et=!0,nA.pause())}),nA)void 0===this[ot]&&"function"==typeof nA[ot]&&(this[ot]=function(mt){return function(){return nA[mt].apply(nA,arguments)}}(ot));for(var TA=0;TA-1))throw new U($);return this._writableState.defaultEncoding=$,this},Object.defineProperty(W.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(W.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),W.prototype._write=function(O,$,V){V(new d("_write()"))},W.prototype._writev=null,W.prototype.end=function(O,$,V){var hA=this._writableState;return"function"==typeof O?(V=O,O=null,$=null):"function"==typeof $&&(V=$,$=null),null!=O&&this.write(O,$),hA.corked&&(hA.corked=1,this.uncork()),hA.ending||function XA(O,$,V){$.ending=!0,bA(O,$),V&&($.finished?c.nextTick(V):O.once("finish",V)),$.ended=!0,O.writable=!1}(this,hA,V),this},Object.defineProperty(W.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(W.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function($){!this._writableState||(this._writableState.destroyed=$)}}),W.prototype.destroy=e.destroy,W.prototype._undestroy=e.undestroy,W.prototype._destroy=function(O,$){$(O)}},828:function(T,I,n){"use strict";var i,c=n(4155);function o(p,m,D){return m in p?Object.defineProperty(p,m,{value:D,enumerable:!0,configurable:!0,writable:!0}):p[m]=D,p}var l=n(1086),h=Symbol("lastResolve"),a=Symbol("lastReject"),B=Symbol("error"),E=Symbol("ended"),u=Symbol("lastPromise"),C=Symbol("handlePromise"),e=Symbol("stream");function f(p,m){return{value:p,done:m}}function g(p){var m=p[h];if(null!==m){var D=p[e].read();null!==D&&(p[u]=null,p[h]=null,p[a]=null,m(f(D,!1)))}}function w(p){c.nextTick(g,p)}var d=Object.getPrototypeOf(function(){}),Y=Object.setPrototypeOf((o(i={get stream(){return this[e]},next:function(){var m=this,D=this[B];if(null!==D)return Promise.reject(D);if(this[E])return Promise.resolve(f(void 0,!0));if(this[e].destroyed)return new Promise(function(z,L){c.nextTick(function(){m[B]?L(m[B]):z(f(void 0,!0))})});var N,U=this[u];if(U)N=new Promise(function Q(p,m){return function(D,U){p.then(function(){m[E]?D(f(void 0,!0)):m[C](D,U)},U)}}(U,this));else{var F=this[e].read();if(null!==F)return Promise.resolve(f(F,!1));N=new Promise(this[C])}return this[u]=N,N}},Symbol.asyncIterator,function(){return this}),o(i,"return",function(){var m=this;return new Promise(function(D,U){m[e].destroy(null,function(N){N?U(N):D(f(void 0,!0))})})}),i),d);T.exports=function(m){var D,U=Object.create(Y,(o(D={},e,{value:m,writable:!0}),o(D,h,{value:null,writable:!0}),o(D,a,{value:null,writable:!0}),o(D,B,{value:null,writable:!0}),o(D,E,{value:m._readableState.endEmitted,writable:!0}),o(D,C,{value:function(F,z){var L=U[e].read();L?(U[u]=null,U[h]=null,U[a]=null,F(f(L,!1))):(U[h]=F,U[a]=z)},writable:!0}),D));return U[u]=null,l(m,function(N){if(N&&"ERR_STREAM_PREMATURE_CLOSE"!==N.code){var F=U[a];return null!==F&&(U[u]=null,U[h]=null,U[a]=null,F(N)),void(U[B]=N)}var z=U[h];null!==z&&(U[u]=null,U[h]=null,U[a]=null,z(f(void 0,!0))),U[E]=!0}),m.on("readable",w.bind(null,U)),U}},1029:function(T,I,n){"use strict";var c=n(4155);function o(E,u){a(E,u),l(E)}function l(E){E._writableState&&!E._writableState.emitClose||E._readableState&&!E._readableState.emitClose||E.emit("close")}function a(E,u){E.emit("error",u)}T.exports={destroy:function i(E,u){var C=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(u?u(E):E&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,c.nextTick(a,this,E)):c.nextTick(a,this,E)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(E||null,function(g){!u&&g?C._writableState?C._writableState.errorEmitted?c.nextTick(l,C):(C._writableState.errorEmitted=!0,c.nextTick(o,C,g)):c.nextTick(o,C,g):u?(c.nextTick(l,C),u(g)):c.nextTick(l,C)}),this)},undestroy:function h(){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(E,u){var C=E._readableState,e=E._writableState;C&&C.autoDestroy||e&&e.autoDestroy?E.destroy(u):E.emit("error",u)}}},1086:function(T,I,n){"use strict";var c=n(8106).q.ERR_STREAM_PREMATURE_CLOSE;function o(){}T.exports=function h(a,B,E){if("function"==typeof B)return h(a,null,B);B||(B={}),E=function i(a){var B=!1;return function(){if(!B){B=!0;for(var E=arguments.length,u=new Array(E),C=0;C0,function(N){Y||(Y=N),N&&y.forEach(u),!D&&(y.forEach(u),d(Y))})});return w.reduce(C)}},94:function(T,I,n){"use strict";var c=n(8106).q.ERR_INVALID_OPT_VALUE;T.exports={getHighWaterMark:function o(l,h,a,B){var E=function i(l,h,a){return null!=l.highWaterMark?l.highWaterMark:h?l[a]:null}(h,B,a);if(null!=E){if(!isFinite(E)||Math.floor(E)!==E||E<0)throw new c(B?a:"highWaterMark",E);return Math.floor(E)}return l.objectMode?16:16384}}},3194:function(T,I,n){T.exports=n(7187).EventEmitter},4896:function(T,I,n){var c,o;void 0!==(o="function"==typeof(c=function(){"use strict";function h(e,f,g){var w=new XMLHttpRequest;w.open("GET",e),w.responseType="blob",w.onload=function(){C(w.response,f,g)},w.onerror=function(){console.error("could not download file")},w.send()}function a(e){var f=new XMLHttpRequest;f.open("HEAD",e,!1);try{f.send()}catch(g){}return 200<=f.status&&299>=f.status}function B(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(g){var f=document.createEvent("MouseEvents");f.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(f)}}var E="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,u=E.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),C=E.saveAs||("object"!=typeof window||window!==E?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!u?function(e,f,g){var w=E.URL||E.webkitURL,Q=document.createElement("a");Q.download=f=f||e.name||"download",Q.rel="noopener","string"==typeof e?(Q.href=e,Q.origin===location.origin?B(Q):a(Q.href)?h(e,f,g):B(Q,Q.target="_blank")):(Q.href=w.createObjectURL(e),setTimeout(function(){w.revokeObjectURL(Q.href)},4e4),setTimeout(function(){B(Q)},0))}:"msSaveOrOpenBlob"in navigator?function(e,f,g){if(f=f||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function l(e,f){return void 0===f?f={autoBom:!1}:"object"!=typeof f&&(console.warn("Deprecated: Expected third argument to be a object"),f={autoBom:!f}),f.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,g),f);else if(a(e))h(e,f,g);else{var w=document.createElement("a");w.href=e,w.target="_blank",setTimeout(function(){B(w)})}}:function(e,f,g,w){if((w=w||open("","_blank"))&&(w.document.title=w.document.body.innerText="downloading..."),"string"==typeof e)return h(e,f,g);var Q="application/octet-stream"===e.type,d=/constructor/i.test(E.HTMLElement)||E.safari,Y=/CriOS\/[\d]+/.test(navigator.userAgent);if((Y||Q&&d||u)&&"undefined"!=typeof FileReader){var y=new FileReader;y.onloadend=function(){var D=y.result;D=Y?D:D.replace(/^data:[^;]*;/,"data:attachment/file;"),w?w.location.href=D:location=D,w=null},y.readAsDataURL(e)}else{var p=E.URL||E.webkitURL,m=p.createObjectURL(e);w?w.location=m:location.href=m,w=null,setTimeout(function(){p.revokeObjectURL(m)},4e4)}});E.saveAs=C.saveAs=C,T.exports=C})?c.apply(I,[]):c)&&(T.exports=o)},2553:function(T,I,n){"use strict";var c=n(1750).Buffer,i=c.isEncoding||function(y){switch((y=""+y)&&y.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 h(y){var p;switch(this.encoding=function l(y){var p=function o(y){if(!y)return"utf8";for(var p;;)switch(y){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 y;default:if(p)return;y=(""+y).toLowerCase(),p=!0}}(y);if("string"!=typeof p&&(c.isEncoding===i||!i(y)))throw new Error("Unknown encoding: "+y);return p||y}(y),this.encoding){case"utf16le":this.text=f,this.end=g,p=4;break;case"utf8":this.fillLast=u,p=4;break;case"base64":this.text=w,this.end=Q,p=3;break;default:return this.write=d,void(this.end=Y)}this.lastNeed=0,this.lastTotal=0,this.lastChar=c.allocUnsafe(p)}function a(y){return y<=127?0:y>>5==6?2:y>>4==14?3:y>>3==30?4:y>>6==2?-1:-2}function u(y){var p=this.lastTotal-this.lastNeed,m=function E(y,p,m){if(128!=(192&p[0]))return y.lastNeed=0,"\ufffd";if(y.lastNeed>1&&p.length>1){if(128!=(192&p[1]))return y.lastNeed=1,"\ufffd";if(y.lastNeed>2&&p.length>2&&128!=(192&p[2]))return y.lastNeed=2,"\ufffd"}}(this,y);return void 0!==m?m:this.lastNeed<=y.length?(y.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(y.copy(this.lastChar,p,0,y.length),void(this.lastNeed-=y.length))}function f(y,p){if((y.length-p)%2==0){var m=y.toString("utf16le",p);if(m){var D=m.charCodeAt(m.length-1);if(D>=55296&&D<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1],m.slice(0,-1)}return m}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=y[y.length-1],y.toString("utf16le",p,y.length-1)}function g(y){var p=y&&y.length?this.write(y):"";return this.lastNeed?p+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):p}function w(y,p){var m=(y.length-p)%3;return 0===m?y.toString("base64",p):(this.lastNeed=3-m,this.lastTotal=3,1===m?this.lastChar[0]=y[y.length-1]:(this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1]),y.toString("base64",p,y.length-m))}function Q(y){var p=y&&y.length?this.write(y):"";return this.lastNeed?p+this.lastChar.toString("base64",0,3-this.lastNeed):p}function d(y){return y.toString(this.encoding)}function Y(y){return y&&y.length?this.write(y):""}I.s=h,h.prototype.write=function(y){if(0===y.length)return"";var p,m;if(this.lastNeed){if(void 0===(p=this.fillLast(y)))return"";m=this.lastNeed,this.lastNeed=0}else m=0;return m=0?(U>0&&(y.lastNeed=U-1),U):--D=0?(U>0&&(y.lastNeed=U-2),U):--D=0?(U>0&&(2===U?U=0:y.lastNeed=U-3),U):0}(this,y,p);if(!this.lastNeed)return y.toString("utf8",p);this.lastTotal=m;var D=y.length-(m-this.lastNeed);return y.copy(this.lastChar,0,D),y.toString("utf8",p,D)},h.prototype.fillLast=function(y){if(this.lastNeed<=y.length)return y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,y.length),this.lastNeed-=y.length}},311:function(T){function c(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function i(N,F){this.source=N,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=F,this.destLen=0,this.ltree=new c,this.dtree=new c}var o=new c,l=new c,h=new Uint8Array(30),a=new Uint16Array(30),B=new Uint8Array(30),E=new Uint16Array(30),u=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),C=new c,e=new Uint8Array(320);function f(N,F,z,L){var W,aA;for(W=0;W>>=1,F}function Y(N,F,z){if(!F)return z;for(;N.bitcount<24;)N.tag|=N.source[N.sourceIndex++]<>>16-F;return N.tag>>>=F,N.bitcount-=F,L+z}function y(N,F){for(;N.bitcount<24;)N.tag|=N.source[N.sourceIndex++]<>>=1,++W,z+=F.table[W],L-=F.table[W]}while(L>=0);return N.tag=aA,N.bitcount-=W,F.trans[z+L]}function p(N,F,z){var L,W,aA,AA,lA,MA;for(L=Y(N,5,257),W=Y(N,5,1),aA=Y(N,4,4),AA=0;AA<19;++AA)e[AA]=0;for(AA=0;AA8;)N.sourceIndex--,N.bitcount-=8;if((F=256*(F=N.source[N.sourceIndex+1])+N.source[N.sourceIndex])!==(65535&~(256*N.source[N.sourceIndex+3]+N.source[N.sourceIndex+2])))return-3;for(N.sourceIndex+=4,L=F;L;--L)N.dest[N.destLen++]=N.source[N.sourceIndex++];return N.bitcount=0,0}(function g(N,F){var z;for(z=0;z<7;++z)N.table[z]=0;for(N.table[7]=24,N.table[8]=152,N.table[9]=112,z=0;z<24;++z)N.trans[z]=256+z;for(z=0;z<144;++z)N.trans[24+z]=z;for(z=0;z<8;++z)N.trans[168+z]=280+z;for(z=0;z<112;++z)N.trans[176+z]=144+z;for(z=0;z<5;++z)F.table[z]=0;for(F.table[5]=32,z=0;z<32;++z)F.trans[z]=z})(o,l),f(h,a,4,3),f(B,E,2,1),h[28]=0,a[28]=258,T.exports=function U(N,F){var L,aA,z=new i(N,F);do{switch(L=d(z),Y(z,2,0)){case 0:aA=D(z);break;case 1:aA=m(z,o,l);break;case 2:p(z,z.ltree,z.dtree),aA=m(z,z.ltree,z.dtree);break;default:aA=-3}if(0!==aA)throw new Error("Data error")}while(!L);return z.destLen=eA.length?{done:!0}:{done:!1,value:eA[M++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(eA,b){(null==b||b>eA.length)&&(b=eA.length);for(var K=0,M=new Array(b);K0?iA[0]:"value";if(tA.has(jA))return tA.get(jA);var lt=x.apply(this,iA);return tA.set(jA,lt),lt}return Object.defineProperty(this,b,{value:oA}),oA}}}}D.registerFormat=function(eA){U.push(eA)},D.openSync=function(eA,b){var K=m.readFileSync(eA);return D.create(K,b)},D.open=function(eA,b,K){"function"==typeof b&&(K=b,b=null),m.readFile(eA,function(M,x){if(M)return K(M);try{var P=D.create(x,b)}catch(tA){return K(tA)}return K(null,P)})},D.create=function(eA,b){for(var K=0;K>1},searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16,endCode:new e.LazyArray(e.uint16,"segCount"),reservedPad:new e.Reserved(e.uint16),startCode:new e.LazyArray(e.uint16,"segCount"),idDelta:new e.LazyArray(e.int16,"segCount"),idRangeOffset:new e.LazyArray(e.uint16,"segCount"),glyphIndexArray:new e.LazyArray(e.uint16,function(eA){return(eA.length-eA._currentOffset)/2})},6:{length:e.uint16,language:e.uint16,firstCode:e.uint16,entryCount:e.uint16,glyphIndices:new e.LazyArray(e.uint16,"entryCount")},8:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint16,is32:new e.LazyArray(e.uint8,8192),nGroups:e.uint32,groups:new e.LazyArray(W,"nGroups")},10:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint32,firstCode:e.uint32,entryCount:e.uint32,glyphIndices:new e.LazyArray(e.uint16,"numChars")},12:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint32,nGroups:e.uint32,groups:new e.LazyArray(W,"nGroups")},13:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint32,nGroups:e.uint32,groups:new e.LazyArray(W,"nGroups")},14:{length:e.uint32,numRecords:e.uint32,varSelectors:new e.LazyArray(cA,"numRecords")}}),BA=new e.Struct({platformID:e.uint16,encodingID:e.uint16,table:new e.Pointer(e.uint32,gA,{type:"parent",lazy:!0})}),vA=new e.Struct({version:e.uint16,numSubtables:e.uint16,tables:new e.Array(BA,"numSubtables")}),FA=new e.Struct({version:e.int32,revision:e.int32,checkSumAdjustment:e.uint32,magicNumber:e.uint32,flags:e.uint16,unitsPerEm:e.uint16,created:new e.Array(e.int32,2),modified:new e.Array(e.int32,2),xMin:e.int16,yMin:e.int16,xMax:e.int16,yMax:e.int16,macStyle:new e.Bitfield(e.uint16,["bold","italic","underline","outline","shadow","condensed","extended"]),lowestRecPPEM:e.uint16,fontDirectionHint:e.int16,indexToLocFormat:e.int16,glyphDataFormat:e.int16}),_=new e.Struct({version:e.int32,ascent:e.int16,descent:e.int16,lineGap:e.int16,advanceWidthMax:e.uint16,minLeftSideBearing:e.int16,minRightSideBearing:e.int16,xMaxExtent:e.int16,caretSlopeRise:e.int16,caretSlopeRun:e.int16,caretOffset:e.int16,reserved:new e.Reserved(e.int16,4),metricDataFormat:e.int16,numberOfMetrics:e.uint16}),dA=new e.Struct({advance:e.uint16,bearing:e.int16}),uA=new e.Struct({metrics:new e.LazyArray(dA,function(eA){return eA.parent.hhea.numberOfMetrics}),bearings:new e.LazyArray(e.int16,function(eA){return eA.parent.maxp.numGlyphs-eA.parent.hhea.numberOfMetrics})}),CA=new e.Struct({version:e.int32,numGlyphs:e.uint16,maxPoints:e.uint16,maxContours:e.uint16,maxComponentPoints:e.uint16,maxComponentContours:e.uint16,maxZones:e.uint16,maxTwilightPoints:e.uint16,maxStorage:e.uint16,maxFunctionDefs:e.uint16,maxInstructionDefs:e.uint16,maxStackElements:e.uint16,maxSizeOfInstructions:e.uint16,maxComponentElements:e.uint16,maxComponentDepth:e.uint16});function NA(eA,b,K){return void 0===K&&(K=0),1===eA&&XA[K]?XA[K]:bA[eA][b]}var bA=[["utf16be","utf16be","utf16be","utf16be","utf16be","utf16be"],["macroman","shift-jis","big5","euc-kr","iso-8859-6","iso-8859-8","macgreek","maccyrillic","symbol","Devanagari","Gurmukhi","Gujarati","Oriya","Bengali","Tamil","Telugu","Kannada","Malayalam","Sinhalese","Burmese","Khmer","macthai","Laotian","Georgian","Armenian","gb-2312-80","Tibetan","Mongolian","Geez","maccenteuro","Vietnamese","Sindhi"],["ascii"],["symbol","utf16be","shift-jis","gb18030","big5","wansung","johab",null,null,null,"utf16be"]],XA={15:"maciceland",17:"macturkish",18:"maccroatian",24:"maccenteuro",25:"maccenteuro",26:"maccenteuro",27:"maccenteuro",28:"maccenteuro",30:"maciceland",37:"macromania",38:"maccenteuro",39:"maccenteuro",40:"maccenteuro",143:"macinuit",146:"macgaelic"},q=[[],{0:"en",30:"fo",60:"ks",90:"rw",1:"fr",31:"fa",61:"ku",91:"rn",2:"de",32:"ru",62:"sd",92:"ny",3:"it",33:"zh",63:"bo",93:"mg",4:"nl",34:"nl-BE",64:"ne",94:"eo",5:"sv",35:"ga",65:"sa",128:"cy",6:"es",36:"sq",66:"mr",129:"eu",7:"da",37:"ro",67:"bn",130:"ca",8:"pt",38:"cz",68:"as",131:"la",9:"no",39:"sk",69:"gu",132:"qu",10:"he",40:"si",70:"pa",133:"gn",11:"ja",41:"yi",71:"or",134:"ay",12:"ar",42:"sr",72:"ml",135:"tt",13:"fi",43:"mk",73:"kn",136:"ug",14:"el",44:"bg",74:"ta",137:"dz",15:"is",45:"uk",75:"te",138:"jv",16:"mt",46:"be",76:"si",139:"su",17:"tr",47:"uz",77:"my",140:"gl",18:"hr",48:"kk",78:"km",141:"af",19:"zh-Hant",49:"az-Cyrl",79:"lo",142:"br",20:"ur",50:"az-Arab",80:"vi",143:"iu",21:"hi",51:"hy",81:"id",144:"gd",22:"th",52:"ka",82:"tl",145:"gv",23:"ko",53:"mo",83:"ms",146:"ga",24:"lt",54:"ky",84:"ms-Arab",147:"to",25:"pl",55:"tg",85:"am",148:"el-polyton",26:"hu",56:"tk",86:"ti",149:"kl",27:"es",57:"mn-CN",87:"om",150:"az",28:"lv",58:"mn",88:"so",151:"nn",29:"se",59:"ps",89:"sw"},[],{1078:"af",16393:"en-IN",1159:"rw",1074:"tn",1052:"sq",6153:"en-IE",1089:"sw",1115:"si",1156:"gsw",8201:"en-JM",1111:"kok",1051:"sk",1118:"am",17417:"en-MY",1042:"ko",1060:"sl",5121:"ar-DZ",5129:"en-NZ",1088:"ky",11274:"es-AR",15361:"ar-BH",13321:"en-PH",1108:"lo",16394:"es-BO",3073:"ar",18441:"en-SG",1062:"lv",13322:"es-CL",2049:"ar-IQ",7177:"en-ZA",1063:"lt",9226:"es-CO",11265:"ar-JO",11273:"en-TT",2094:"dsb",5130:"es-CR",13313:"ar-KW",2057:"en-GB",1134:"lb",7178:"es-DO",12289:"ar-LB",1033:"en",1071:"mk",12298:"es-EC",4097:"ar-LY",12297:"en-ZW",2110:"ms-BN",17418:"es-SV",6145:"ary",1061:"et",1086:"ms",4106:"es-GT",8193:"ar-OM",1080:"fo",1100:"ml",18442:"es-HN",16385:"ar-QA",1124:"fil",1082:"mt",2058:"es-MX",1025:"ar-SA",1035:"fi",1153:"mi",19466:"es-NI",10241:"ar-SY",2060:"fr-BE",1146:"arn",6154:"es-PA",7169:"aeb",3084:"fr-CA",1102:"mr",15370:"es-PY",14337:"ar-AE",1036:"fr",1148:"moh",10250:"es-PE",9217:"ar-YE",5132:"fr-LU",1104:"mn",20490:"es-PR",1067:"hy",6156:"fr-MC",2128:"mn-CN",3082:"es",1101:"as",4108:"fr-CH",1121:"ne",1034:"es",2092:"az-Cyrl",1122:"fy",1044:"nb",21514:"es-US",1068:"az",1110:"gl",2068:"nn",14346:"es-UY",1133:"ba",1079:"ka",1154:"oc",8202:"es-VE",1069:"eu",3079:"de-AT",1096:"or",2077:"sv-FI",1059:"be",1031:"de",1123:"ps",1053:"sv",2117:"bn",5127:"de-LI",1045:"pl",1114:"syr",1093:"bn-IN",4103:"de-LU",1046:"pt",1064:"tg",8218:"bs-Cyrl",2055:"de-CH",2070:"pt-PT",2143:"tzm",5146:"bs",1032:"el",1094:"pa",1097:"ta",1150:"br",1135:"kl",1131:"qu-BO",1092:"tt",1026:"bg",1095:"gu",2155:"qu-EC",1098:"te",1027:"ca",1128:"ha",3179:"qu",1054:"th",3076:"zh-HK",1037:"he",1048:"ro",1105:"bo",5124:"zh-MO",1081:"hi",1047:"rm",1055:"tr",2052:"zh",1038:"hu",1049:"ru",1090:"tk",4100:"zh-SG",1039:"is",9275:"smn",1152:"ug",1028:"zh-TW",1136:"ig",4155:"smj-NO",1058:"uk",1155:"co",1057:"id",5179:"smj",1070:"hsb",1050:"hr",1117:"iu",3131:"se-FI",1056:"ur",4122:"hr-BA",2141:"iu-Latn",1083:"se",2115:"uz-Cyrl",1029:"cs",2108:"ga",2107:"se-SE",1091:"uz",1030:"da",1076:"xh",8251:"sms",1066:"vi",1164:"prs",1077:"zu",6203:"sma-NO",1106:"cy",1125:"dv",1040:"it",7227:"sms",1160:"wo",2067:"nl-BE",2064:"it-CH",1103:"sa",1157:"sah",1043:"nl",1041:"ja",7194:"sr-Cyrl-BA",1144:"ii",3081:"en-AU",1099:"kn",3098:"sr",1130:"yo",10249:"en-BZ",1087:"kk",6170:"sr-Latn-BA",4105:"en-CA",1107:"km",2074:"sr-Latn",9225:"en-029",1158:"quc",1132:"nso"}],O=new e.Struct({platformID:e.uint16,encodingID:e.uint16,languageID:e.uint16,nameID:e.uint16,length:e.uint16,string:new e.Pointer(e.uint16,new e.String("length",function(eA){return NA(eA.platformID,eA.encodingID,eA.languageID)}),{type:"parent",relativeTo:function(b){return b.parent.stringOffset},allowNull:!1})}),$=new e.Struct({length:e.uint16,tag:new e.Pointer(e.uint16,new e.String("length","utf16be"),{type:"parent",relativeTo:function(b){return b.stringOffset}})}),V=new e.VersionedStruct(e.uint16,{0:{count:e.uint16,stringOffset:e.uint16,records:new e.Array(O,"count")},1:{count:e.uint16,stringOffset:e.uint16,records:new e.Array(O,"count"),langTagCount:e.uint16,langTags:new e.Array($,"langTagCount")}}),hA=["copyright","fontFamily","fontSubfamily","uniqueSubfamily","fullName","version","postscriptName","trademark","manufacturer","designer","description","vendorURL","designerURL","license","licenseURL",null,"preferredFamily","preferredSubfamily","compatibleFull","sampleText","postscriptCIDFontName","wwsFamilyName","wwsSubfamilyName"];V.process=function(eA){for(var M,b={},K=B(this.records);!(M=K()).done;){var x=M.value,P=q[x.platformID][x.languageID];null==P&&null!=this.langTags&&x.languageID>=32768&&(P=this.langTags[x.languageID-32768].tag),null==P&&(P=x.platformID+"-"+x.languageID);var tA=x.nameID>=256?"fontFeatures":hA[x.nameID]||x.nameID;null==b[tA]&&(b[tA]={});var oA=b[tA];x.nameID>=256&&(oA=oA[x.nameID]||(oA[x.nameID]={})),("string"==typeof x.string||"string"!=typeof oA[P])&&(oA[P]=x.string)}this.records=b},V.preEncode=function(){if(!Array.isArray(this.records)){this.version=0;var eA=[];for(var b in this.records){var K=this.records[b];"fontFeatures"!==b&&(eA.push({platformID:3,encodingID:1,languageID:1033,nameID:hA.indexOf(b),length:c.byteLength(K.en,"utf16le"),string:K.en}),"postscriptName"===b&&eA.push({platformID:1,encodingID:0,languageID:0,nameID:hA.indexOf(b),length:K.en.length,string:K.en}))}this.records=eA,this.count=eA.length,this.stringOffset=V.size(this,null,!1)}};var mA=new e.VersionedStruct(e.uint16,{header:{xAvgCharWidth:e.int16,usWeightClass:e.uint16,usWidthClass:e.uint16,fsType:new e.Bitfield(e.uint16,[null,"noEmbedding","viewOnly","editable",null,null,null,null,"noSubsetting","bitmapOnly"]),ySubscriptXSize:e.int16,ySubscriptYSize:e.int16,ySubscriptXOffset:e.int16,ySubscriptYOffset:e.int16,ySuperscriptXSize:e.int16,ySuperscriptYSize:e.int16,ySuperscriptXOffset:e.int16,ySuperscriptYOffset:e.int16,yStrikeoutSize:e.int16,yStrikeoutPosition:e.int16,sFamilyClass:e.int16,panose:new e.Array(e.uint8,10),ulCharRange:new e.Array(e.uint32,4),vendorID:new e.String(4),fsSelection:new e.Bitfield(e.uint16,["italic","underscore","negative","outlined","strikeout","bold","regular","useTypoMetrics","wws","oblique"]),usFirstCharIndex:e.uint16,usLastCharIndex:e.uint16},0:{},1:{typoAscender:e.int16,typoDescender:e.int16,typoLineGap:e.int16,winAscent:e.uint16,winDescent:e.uint16,codePageRange:new e.Array(e.uint32,2)},2:{typoAscender:e.int16,typoDescender:e.int16,typoLineGap:e.int16,winAscent:e.uint16,winDescent:e.uint16,codePageRange:new e.Array(e.uint32,2),xHeight:e.int16,capHeight:e.int16,defaultChar:e.uint16,breakChar:e.uint16,maxContent:e.uint16},5:{typoAscender:e.int16,typoDescender:e.int16,typoLineGap:e.int16,winAscent:e.uint16,winDescent:e.uint16,codePageRange:new e.Array(e.uint32,2),xHeight:e.int16,capHeight:e.int16,defaultChar:e.uint16,breakChar:e.uint16,maxContent:e.uint16,usLowerOpticalPointSize:e.uint16,usUpperOpticalPointSize:e.uint16}}),nA=mA.versions;nA[3]=nA[4]=nA[2];var EA=new e.VersionedStruct(e.fixed32,{header:{italicAngle:e.fixed32,underlinePosition:e.int16,underlineThickness:e.int16,isFixedPitch:e.uint32,minMemType42:e.uint32,maxMemType42:e.uint32,minMemType1:e.uint32,maxMemType1:e.uint32},1:{},2:{numberOfGlyphs:e.uint16,glyphNameIndex:new e.Array(e.uint16,"numberOfGlyphs"),names:new e.Array(new e.String(e.uint8))},2.5:{numberOfGlyphs:e.uint16,offsets:new e.Array(e.uint8,"numberOfGlyphs")},3:{},4:{map:new e.Array(e.uint32,function(eA){return eA.parent.maxp.numGlyphs})}}),GA=new e.Struct({controlValues:new e.Array(e.int16)}),et=new e.Struct({instructions:new e.Array(e.uint8)}),ot=new e.VersionedStruct("head.indexToLocFormat",{0:{offsets:new e.Array(e.uint16)},1:{offsets:new e.Array(e.uint32)}});ot.process=function(){if(0===this.version)for(var eA=0;eA>>=1};var TA=new e.Struct({controlValueProgram:new e.Array(e.uint8)}),it=new e.Array(new e.Buffer),mt=function(){function eA(K){this.type=K}var b=eA.prototype;return b.getCFFVersion=function(M){for(;M&&!M.hdrSize;)M=M.parent;return M?M.version:-1},b.decode=function(M,x){var tA=this.getCFFVersion(x)>=2?M.readUInt32BE():M.readUInt16BE();if(0===tA)return[];var sA,oA=M.readUInt8();if(1===oA)sA=e.uint8;else if(2===oA)sA=e.uint16;else if(3===oA)sA=e.uint24;else{if(4!==oA)throw new Error("Bad offset size in CFFIndex: ".concat(oA," ").concat(M.pos));sA=e.uint32}for(var iA=[],SA=M.pos+(tA+1)*oA-1,jA=sA.decode(M),lt=0;lt>4;if(15===tA)break;x+=ut[tA];var oA=15&P;if(15===oA)break;x+=ut[oA]}return parseFloat(x)}return null},eA.size=function(K){return K.forceLarge&&(K=32768),(0|K)!==K?1+Math.ceil(((""+K).length+1)/2):-107<=K&&K<=107?1:108<=K&&K<=1131||-1131<=K&&K<=-108?2:-32768<=K&&K<=32767?3:5},eA.encode=function(K,M){var x=Number(M);if(M.forceLarge)return K.writeUInt8(29),K.writeInt32BE(x);if((0|x)===x)return-107<=x&&x<=107?K.writeUInt8(x+139):108<=x&&x<=1131?(K.writeUInt8(247+((x-=108)>>8)),K.writeUInt8(255&x)):-1131<=x&&x<=-108?(K.writeUInt8(251+((x=-x-108)>>8)),K.writeUInt8(255&x)):-32768<=x&&x<=32767?(K.writeUInt8(28),K.writeInt16BE(x)):(K.writeUInt8(29),K.writeInt32BE(x));K.writeUInt8(30);for(var P=""+x,tA=0;tAP;)x.pop()},eA}(),null],[19,"Subrs",new yA(new mt,{type:"local"}),null]]),Yt=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],H=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],R=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"],PA=new e.Struct({reserved:new e.Reserved(e.uint16),reqFeatureIndex:e.uint16,featureCount:e.uint16,featureIndexes:new e.Array(e.uint16,"featureCount")}),rA=new e.Struct({tag:new e.String(4),langSys:new e.Pointer(e.uint16,PA,{type:"parent"})}),ct=new e.Struct({defaultLangSys:new e.Pointer(e.uint16,PA),count:e.uint16,langSysRecords:new e.Array(rA,"count")}),Ft=new e.Struct({tag:new e.String(4),script:new e.Pointer(e.uint16,ct,{type:"parent"})}),j=new e.Array(Ft,e.uint16),kA=new e.Struct({featureParams:e.uint16,lookupCount:e.uint16,lookupListIndexes:new e.Array(e.uint16,"lookupCount")}),At=new e.Struct({tag:new e.String(4),feature:new e.Pointer(e.uint16,kA,{type:"parent"})}),xA=new e.Array(At,e.uint16),ZA=new e.Struct({markAttachmentType:e.uint8,flags:new e.Bitfield(e.uint8,["rightToLeft","ignoreBaseGlyphs","ignoreLigatures","ignoreMarks","useMarkFilteringSet"])});function st(eA){var b=new e.Struct({lookupType:e.uint16,flags:ZA,subTableCount:e.uint16,subTables:new e.Array(new e.Pointer(e.uint16,eA),"subTableCount"),markFilteringSet:new e.Optional(e.uint16,function(K){return K.flags.flags.useMarkFilteringSet})});return new e.LazyArray(new e.Pointer(e.uint16,b),e.uint16)}var Lt=new e.Struct({start:e.uint16,end:e.uint16,startCoverageIndex:e.uint16}),vt=new e.VersionedStruct(e.uint16,{1:{glyphCount:e.uint16,glyphs:new e.Array(e.uint16,"glyphCount")},2:{rangeCount:e.uint16,rangeRecords:new e.Array(Lt,"rangeCount")}}),Rt=new e.Struct({start:e.uint16,end:e.uint16,class:e.uint16}),Kt=new e.VersionedStruct(e.uint16,{1:{startGlyph:e.uint16,glyphCount:e.uint16,classValueArray:new e.Array(e.uint16,"glyphCount")},2:{classRangeCount:e.uint16,classRangeRecord:new e.Array(Rt,"classRangeCount")}}),Le=new e.Struct({a:e.uint16,b:e.uint16,deltaFormat:e.uint16}),re=new e.Struct({sequenceIndex:e.uint16,lookupListIndex:e.uint16}),Ae=new e.Struct({glyphCount:e.uint16,lookupCount:e.uint16,input:new e.Array(e.uint16,function(eA){return eA.glyphCount-1}),lookupRecords:new e.Array(re,"lookupCount")}),ye=new e.Array(new e.Pointer(e.uint16,Ae),e.uint16),be=new e.Struct({glyphCount:e.uint16,lookupCount:e.uint16,classes:new e.Array(e.uint16,function(eA){return eA.glyphCount-1}),lookupRecords:new e.Array(re,"lookupCount")}),Re=new e.Array(new e.Pointer(e.uint16,be),e.uint16),yn=new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,vt),ruleSetCount:e.uint16,ruleSets:new e.Array(new e.Pointer(e.uint16,ye),"ruleSetCount")},2:{coverage:new e.Pointer(e.uint16,vt),classDef:new e.Pointer(e.uint16,Kt),classSetCnt:e.uint16,classSet:new e.Array(new e.Pointer(e.uint16,Re),"classSetCnt")},3:{glyphCount:e.uint16,lookupCount:e.uint16,coverages:new e.Array(new e.Pointer(e.uint16,vt),"glyphCount"),lookupRecords:new e.Array(re,"lookupCount")}}),xn=new e.Struct({backtrackGlyphCount:e.uint16,backtrack:new e.Array(e.uint16,"backtrackGlyphCount"),inputGlyphCount:e.uint16,input:new e.Array(e.uint16,function(eA){return eA.inputGlyphCount-1}),lookaheadGlyphCount:e.uint16,lookahead:new e.Array(e.uint16,"lookaheadGlyphCount"),lookupCount:e.uint16,lookupRecords:new e.Array(re,"lookupCount")}),ne=new e.Array(new e.Pointer(e.uint16,xn),e.uint16),tn=new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,vt),chainCount:e.uint16,chainRuleSets:new e.Array(new e.Pointer(e.uint16,ne),"chainCount")},2:{coverage:new e.Pointer(e.uint16,vt),backtrackClassDef:new e.Pointer(e.uint16,Kt),inputClassDef:new e.Pointer(e.uint16,Kt),lookaheadClassDef:new e.Pointer(e.uint16,Kt),chainCount:e.uint16,chainClassSet:new e.Array(new e.Pointer(e.uint16,ne),"chainCount")},3:{backtrackGlyphCount:e.uint16,backtrackCoverage:new e.Array(new e.Pointer(e.uint16,vt),"backtrackGlyphCount"),inputGlyphCount:e.uint16,inputCoverage:new e.Array(new e.Pointer(e.uint16,vt),"inputGlyphCount"),lookaheadGlyphCount:e.uint16,lookaheadCoverage:new e.Array(new e.Pointer(e.uint16,vt),"lookaheadGlyphCount"),lookupCount:e.uint16,lookupRecords:new e.Array(re,"lookupCount")}}),Te=new e.Fixed(16,"BE",14),en=new e.Struct({startCoord:Te,peakCoord:Te,endCoord:Te}),Xe=new e.Struct({axisCount:e.uint16,regionCount:e.uint16,variationRegions:new e.Array(new e.Array(en,"axisCount"),"regionCount")}),Ln=new e.Struct({shortDeltas:new e.Array(e.int16,function(eA){return eA.parent.shortDeltaCount}),regionDeltas:new e.Array(e.int8,function(eA){return eA.parent.regionIndexCount-eA.parent.shortDeltaCount}),deltas:function(b){return b.shortDeltas.concat(b.regionDeltas)}}),bn=new e.Struct({itemCount:e.uint16,shortDeltaCount:e.uint16,regionIndexCount:e.uint16,regionIndexes:new e.Array(e.uint16,"regionIndexCount"),deltaSets:new e.Array(Ln,"itemCount")}),Jt=new e.Struct({format:e.uint16,variationRegionList:new e.Pointer(e.uint32,Xe),variationDataCount:e.uint16,itemVariationData:new e.Array(new e.Pointer(e.uint32,bn),"variationDataCount")}),bt=new e.VersionedStruct(e.uint16,{1:(i={axisIndex:e.uint16},i.axisIndex=e.uint16,i.filterRangeMinValue=Te,i.filterRangeMaxValue=Te,i)}),Xt=new e.Struct({conditionCount:e.uint16,conditionTable:new e.Array(new e.Pointer(e.uint32,bt),"conditionCount")}),ae=new e.Struct({featureIndex:e.uint16,alternateFeatureTable:new e.Pointer(e.uint32,kA,{type:"parent"})}),Dn=new e.Struct({version:e.fixed32,substitutionCount:e.uint16,substitutions:new e.Array(ae,"substitutionCount")}),pn=new e.Struct({conditionSet:new e.Pointer(e.uint32,Xt,{type:"parent"}),featureTableSubstitution:new e.Pointer(e.uint32,Dn,{type:"parent"})}),Yn=new e.Struct({majorVersion:e.uint16,minorVersion:e.uint16,featureVariationRecordCount:e.uint32,featureVariationRecords:new e.Array(pn,"featureVariationRecordCount")}),jn=function(){function eA(K,M){this.predefinedOps=K,this.type=M}var b=eA.prototype;return b.decode=function(M,x,P){return this.predefinedOps[P[0]]?this.predefinedOps[P[0]]:this.type.decode(M,x,P)},b.size=function(M,x){return this.type.size(M,x)},b.encode=function(M,x,P){var tA=this.predefinedOps.indexOf(x);return-1!==tA?tA:this.type.encode(M,x,P)},eA}(),Br=function(eA){function b(){return eA.call(this,"UInt8")||this}return h(b,eA),b.prototype.decode=function(x){return 127&e.uint8.decode(x)},b}(e.Number),Tn=new e.Struct({first:e.uint16,nLeft:e.uint8}),WA=new e.Struct({first:e.uint16,nLeft:e.uint16}),tt=new jn([H,["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"]],new yA(new e.VersionedStruct(new Br,{0:{nCodes:e.uint8,codes:new e.Array(e.uint8,"nCodes")},1:{nRanges:e.uint8,ranges:new e.Array(Tn,"nRanges")}}),{lazy:!0})),UA=function(eA){function b(){return eA.apply(this,arguments)||this}return h(b,eA),b.prototype.decode=function(x,P){for(var tA=f.resolveLength(this.length,x,P),oA=0,sA=[];oA=2?null:M=2||this.isCIDFont)return null;var x=this.topDict.charset;if(Array.isArray(x))return x[M];if(0===M)return".notdef";switch(M-=1,x.version){case 0:return this.string(x.glyphs[M]);case 1:case 2:for(var P=0;P>1;if(M=x[oA+1].first))return x[oA].fd;P=oA+1}}default:throw new Error("Unknown FDSelect version: ".concat(this.topDict.FDSelect.version))}},b.privateDictForGlyph=function(M){if(this.topDict.FDSelect){var x=this.fdForGlyph(M);return this.topDict.FDArray[x]?this.topDict.FDArray[x].Private:null}return this.version<2?this.topDict.Private:this.topDict.FDArray[0].Private},l(eA,[{key:"postscriptName",get:function(){return this.version<2?this.nameIndex[0]:null}},{key:"fullName",get:function(){return this.string(this.topDict.FullName)}},{key:"familyName",get:function(){return this.string(this.topDict.FamilyName)}}]),eA}(),wt=new e.Struct({glyphIndex:e.uint16,vertOriginY:e.int16}),Pt=new e.Struct({majorVersion:e.uint16,minorVersion:e.uint16,defaultVertOriginY:e.int16,numVertOriginYMetrics:e.uint16,metrics:new e.Array(wt,"numVertOriginYMetrics")}),jt=new e.Struct({height:e.uint8,width:e.uint8,horiBearingX:e.int8,horiBearingY:e.int8,horiAdvance:e.uint8,vertBearingX:e.int8,vertBearingY:e.int8,vertAdvance:e.uint8}),Ht=new e.Struct({height:e.uint8,width:e.uint8,bearingX:e.int8,bearingY:e.int8,advance:e.uint8}),le=new e.Struct({glyph:e.uint16,xOffset:e.int8,yOffset:e.int8}),Wt=function(){},Be=function(){},De=(new e.VersionedStruct("version",{1:{metrics:Ht,data:Wt},2:{metrics:Ht,data:Be},5:{data:Be},6:{metrics:jt,data:Wt},7:{metrics:jt,data:Be},8:{metrics:Ht,pad:new e.Reserved(e.uint8),numComponents:e.uint16,components:new e.Array(le,"numComponents")},9:{metrics:jt,pad:new e.Reserved(e.uint8),numComponents:e.uint16,components:new e.Array(le,"numComponents")},17:{metrics:Ht,dataLen:e.uint32,data:new e.Buffer("dataLen")},18:{metrics:jt,dataLen:e.uint32,data:new e.Buffer("dataLen")},19:{dataLen:e.uint32,data:new e.Buffer("dataLen")}}),new e.Struct({ascender:e.int8,descender:e.int8,widthMax:e.uint8,caretSlopeNumerator:e.int8,caretSlopeDenominator:e.int8,caretOffset:e.int8,minOriginSB:e.int8,minAdvanceSB:e.int8,maxBeforeBL:e.int8,minAfterBL:e.int8,pad:new e.Reserved(e.int8,2)})),Ge=new e.Struct({glyphCode:e.uint16,offset:e.uint16}),Ne=new e.VersionedStruct(e.uint16,{header:{imageFormat:e.uint16,imageDataOffset:e.uint32},1:{offsetArray:new e.Array(e.uint32,function(eA){return eA.parent.lastGlyphIndex-eA.parent.firstGlyphIndex+1})},2:{imageSize:e.uint32,bigMetrics:jt},3:{offsetArray:new e.Array(e.uint16,function(eA){return eA.parent.lastGlyphIndex-eA.parent.firstGlyphIndex+1})},4:{numGlyphs:e.uint32,glyphArray:new e.Array(Ge,function(eA){return eA.numGlyphs+1})},5:{imageSize:e.uint32,bigMetrics:jt,numGlyphs:e.uint32,glyphCodeArray:new e.Array(e.uint16,"numGlyphs")}}),xe=new e.Struct({firstGlyphIndex:e.uint16,lastGlyphIndex:e.uint16,subtable:new e.Pointer(e.uint32,Ne)}),Se=new e.Struct({indexSubTableArray:new e.Pointer(e.uint32,new e.Array(xe,1),{type:"parent"}),indexTablesSize:e.uint32,numberOfIndexSubTables:e.uint32,colorRef:e.uint32,hori:De,vert:De,startGlyphIndex:e.uint16,endGlyphIndex:e.uint16,ppemX:e.uint8,ppemY:e.uint8,bitDepth:e.uint8,flags:new e.Bitfield(e.uint8,["horizontal","vertical"])}),_e=new e.Struct({version:e.uint32,numSizes:e.uint32,sizes:new e.Array(Se,"numSizes")}),Fn=new e.Struct({ppem:e.uint16,resolution:e.uint16,imageOffsets:new e.Array(new e.Pointer(e.uint32,"void"),function(eA){return eA.parent.parent.maxp.numGlyphs+1})}),rn=new e.Struct({version:e.uint16,flags:new e.Bitfield(e.uint16,["renderOutlines"]),numImgTables:e.uint32,imageTables:new e.Array(new e.Pointer(e.uint32,Fn),"numImgTables")}),Cn=new e.Struct({gid:e.uint16,paletteIndex:e.uint16}),In=new e.Struct({gid:e.uint16,firstLayerIndex:e.uint16,numLayers:e.uint16}),an=new e.Struct({version:e.uint16,numBaseGlyphRecords:e.uint16,baseGlyphRecord:new e.Pointer(e.uint32,new e.Array(In,"numBaseGlyphRecords")),layerRecords:new e.Pointer(e.uint32,new e.Array(Cn,"numLayerRecords"),{lazy:!0}),numLayerRecords:e.uint16}),fn=new e.Struct({blue:e.uint8,green:e.uint8,red:e.uint8,alpha:e.uint8}),cn=new e.VersionedStruct(e.uint16,{header:{numPaletteEntries:e.uint16,numPalettes:e.uint16,numColorRecords:e.uint16,colorRecords:new e.Pointer(e.uint32,new e.Array(fn,"numColorRecords")),colorRecordIndices:new e.Array(e.uint16,"numPalettes")},0:{},1:{offsetPaletteTypeArray:new e.Pointer(e.uint32,new e.Array(e.uint32,"numPalettes")),offsetPaletteLabelArray:new e.Pointer(e.uint32,new e.Array(e.uint16,"numPalettes")),offsetPaletteEntryLabelArray:new e.Pointer(e.uint32,new e.Array(e.uint16,"numPaletteEntries"))}}),Xn=new e.VersionedStruct(e.uint16,{1:{coordinate:e.int16},2:{coordinate:e.int16,referenceGlyph:e.uint16,baseCoordPoint:e.uint16},3:{coordinate:e.int16,deviceTable:new e.Pointer(e.uint16,Le)}}),Fr=new e.Struct({defaultIndex:e.uint16,baseCoordCount:e.uint16,baseCoords:new e.Array(new e.Pointer(e.uint16,Xn),"baseCoordCount")}),Yr=new e.Struct({tag:new e.String(4),minCoord:new e.Pointer(e.uint16,Xn,{type:"parent"}),maxCoord:new e.Pointer(e.uint16,Xn,{type:"parent"})}),nr=new e.Struct({minCoord:new e.Pointer(e.uint16,Xn),maxCoord:new e.Pointer(e.uint16,Xn),featMinMaxCount:e.uint16,featMinMaxRecords:new e.Array(Yr,"featMinMaxCount")}),hn=new e.Struct({tag:new e.String(4),minMax:new e.Pointer(e.uint16,nr,{type:"parent"})}),qn=new e.Struct({baseValues:new e.Pointer(e.uint16,Fr),defaultMinMax:new e.Pointer(e.uint16,nr),baseLangSysCount:e.uint16,baseLangSysRecords:new e.Array(hn,"baseLangSysCount")}),IA=new e.Struct({tag:new e.String(4),script:new e.Pointer(e.uint16,qn,{type:"parent"})}),J=new e.Array(IA,e.uint16),S=new e.Array(new e.String(4),e.uint16),X=new e.Struct({baseTagList:new e.Pointer(e.uint16,S),baseScriptList:new e.Pointer(e.uint16,J)}),Z=new e.VersionedStruct(e.uint32,{header:{horizAxis:new e.Pointer(e.uint16,X),vertAxis:new e.Pointer(e.uint16,X)},65536:{},65537:{itemVariationStore:new e.Pointer(e.uint32,Jt)}}),fA=new e.Array(e.uint16,e.uint16),pA=new e.Struct({coverage:new e.Pointer(e.uint16,vt),glyphCount:e.uint16,attachPoints:new e.Array(new e.Pointer(e.uint16,fA),"glyphCount")}),_A=new e.VersionedStruct(e.uint16,{1:{coordinate:e.int16},2:{caretValuePoint:e.uint16},3:{coordinate:e.int16,deviceTable:new e.Pointer(e.uint16,Le)}}),nt=new e.Array(new e.Pointer(e.uint16,_A),e.uint16),Bt=new e.Struct({coverage:new e.Pointer(e.uint16,vt),ligGlyphCount:e.uint16,ligGlyphs:new e.Array(new e.Pointer(e.uint16,nt),"ligGlyphCount")}),Qt=new e.Struct({markSetTableFormat:e.uint16,markSetCount:e.uint16,coverage:new e.Array(new e.Pointer(e.uint32,vt),"markSetCount")}),Dt=new e.VersionedStruct(e.uint32,{header:{glyphClassDef:new e.Pointer(e.uint16,Kt),attachList:new e.Pointer(e.uint16,pA),ligCaretList:new e.Pointer(e.uint16,Bt),markAttachClassDef:new e.Pointer(e.uint16,Kt)},65536:{},65538:{markGlyphSetsDef:new e.Pointer(e.uint16,Qt)},65539:{markGlyphSetsDef:new e.Pointer(e.uint16,Qt),itemVariationStore:new e.Pointer(e.uint32,Jt)}}),xt=new e.Bitfield(e.uint16,["xPlacement","yPlacement","xAdvance","yAdvance","xPlaDevice","yPlaDevice","xAdvDevice","yAdvDevice"]),Tt={xPlacement:e.int16,yPlacement:e.int16,xAdvance:e.int16,yAdvance:e.int16,xPlaDevice:new e.Pointer(e.uint16,Le,{type:"global",relativeTo:function(b){return b.rel}}),yPlaDevice:new e.Pointer(e.uint16,Le,{type:"global",relativeTo:function(b){return b.rel}}),xAdvDevice:new e.Pointer(e.uint16,Le,{type:"global",relativeTo:function(b){return b.rel}}),yAdvDevice:new e.Pointer(e.uint16,Le,{type:"global",relativeTo:function(b){return b.rel}})},Ot=function(){function eA(K){void 0===K&&(K="valueFormat"),this.key=K}var b=eA.prototype;return b.buildStruct=function(M){for(var x=M;!x[this.key]&&x.parent;)x=x.parent;if(x[this.key]){var P={rel:function(){return x._startOffset}},tA=x[this.key];for(var oA in tA)tA[oA]&&(P[oA]=Tt[oA]);return new e.Struct(P)}},b.size=function(M,x){return this.buildStruct(x).size(M,x)},b.decode=function(M,x){var P=this.buildStruct(x).decode(M,x);return delete P.rel,P},eA}(),Zt=new e.Struct({secondGlyph:e.uint16,value1:new Ot("valueFormat1"),value2:new Ot("valueFormat2")}),ue=new e.Array(Zt,e.uint16),he=new e.Struct({value1:new Ot("valueFormat1"),value2:new Ot("valueFormat2")}),Ie=new e.VersionedStruct(e.uint16,{1:{xCoordinate:e.int16,yCoordinate:e.int16},2:{xCoordinate:e.int16,yCoordinate:e.int16,anchorPoint:e.uint16},3:{xCoordinate:e.int16,yCoordinate:e.int16,xDeviceTable:new e.Pointer(e.uint16,Le),yDeviceTable:new e.Pointer(e.uint16,Le)}}),nn=new e.Struct({entryAnchor:new e.Pointer(e.uint16,Ie,{type:"parent"}),exitAnchor:new e.Pointer(e.uint16,Ie,{type:"parent"})}),Me=new e.Struct({class:e.uint16,markAnchor:new e.Pointer(e.uint16,Ie,{type:"parent"})}),je=new e.Array(Me,e.uint16),Qn=new e.Array(new e.Pointer(e.uint16,Ie),function(eA){return eA.parent.classCount}),Ze=new e.Array(Qn,e.uint16),dn=new e.Array(new e.Pointer(e.uint16,Ie),function(eA){return eA.parent.parent.classCount}),Zn=new e.Array(dn,e.uint16),_n=new e.Array(new e.Pointer(e.uint16,Zn),e.uint16),Nn=new e.VersionedStruct("lookupType",{1:new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,vt),valueFormat:xt,value:new Ot},2:{coverage:new e.Pointer(e.uint16,vt),valueFormat:xt,valueCount:e.uint16,values:new e.LazyArray(new Ot,"valueCount")}}),2:new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,vt),valueFormat1:xt,valueFormat2:xt,pairSetCount:e.uint16,pairSets:new e.LazyArray(new e.Pointer(e.uint16,ue),"pairSetCount")},2:{coverage:new e.Pointer(e.uint16,vt),valueFormat1:xt,valueFormat2:xt,classDef1:new e.Pointer(e.uint16,Kt),classDef2:new e.Pointer(e.uint16,Kt),class1Count:e.uint16,class2Count:e.uint16,classRecords:new e.LazyArray(new e.LazyArray(he,"class2Count"),"class1Count")}}),3:{format:e.uint16,coverage:new e.Pointer(e.uint16,vt),entryExitCount:e.uint16,entryExitRecords:new e.Array(nn,"entryExitCount")},4:{format:e.uint16,markCoverage:new e.Pointer(e.uint16,vt),baseCoverage:new e.Pointer(e.uint16,vt),classCount:e.uint16,markArray:new e.Pointer(e.uint16,je),baseArray:new e.Pointer(e.uint16,Ze)},5:{format:e.uint16,markCoverage:new e.Pointer(e.uint16,vt),ligatureCoverage:new e.Pointer(e.uint16,vt),classCount:e.uint16,markArray:new e.Pointer(e.uint16,je),ligatureArray:new e.Pointer(e.uint16,_n)},6:{format:e.uint16,mark1Coverage:new e.Pointer(e.uint16,vt),mark2Coverage:new e.Pointer(e.uint16,vt),classCount:e.uint16,mark1Array:new e.Pointer(e.uint16,je),mark2Array:new e.Pointer(e.uint16,Ze)},7:yn,8:tn,9:{posFormat:e.uint16,lookupType:e.uint16,extension:new e.Pointer(e.uint32,Nn)}});Nn.versions[9].extension.type=Nn;var Rr=new e.VersionedStruct(e.uint32,{header:{scriptList:new e.Pointer(e.uint16,j),featureList:new e.Pointer(e.uint16,xA),lookupList:new e.Pointer(e.uint16,new st(Nn))},65536:{},65537:{featureVariations:new e.Pointer(e.uint32,Yn)}}),Hn=new e.Array(e.uint16,e.uint16),rr=Hn,Qr=new e.Struct({glyph:e.uint16,compCount:e.uint16,components:new e.Array(e.uint16,function(eA){return eA.compCount-1})}),$n=new e.Array(new e.Pointer(e.uint16,Qr),e.uint16),ur=new e.VersionedStruct("lookupType",{1:new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,vt),deltaGlyphID:e.int16},2:{coverage:new e.Pointer(e.uint16,vt),glyphCount:e.uint16,substitute:new e.LazyArray(e.uint16,"glyphCount")}}),2:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,vt),count:e.uint16,sequences:new e.LazyArray(new e.Pointer(e.uint16,Hn),"count")},3:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,vt),count:e.uint16,alternateSet:new e.LazyArray(new e.Pointer(e.uint16,rr),"count")},4:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,vt),count:e.uint16,ligatureSets:new e.LazyArray(new e.Pointer(e.uint16,$n),"count")},5:yn,6:tn,7:{substFormat:e.uint16,lookupType:e.uint16,extension:new e.Pointer(e.uint32,ur)},8:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,vt),backtrackCoverage:new e.Array(new e.Pointer(e.uint16,vt),"backtrackGlyphCount"),lookaheadGlyphCount:e.uint16,lookaheadCoverage:new e.Array(new e.Pointer(e.uint16,vt),"lookaheadGlyphCount"),glyphCount:e.uint16,substitutes:new e.Array(e.uint16,"glyphCount")}});ur.versions[7].extension.type=ur;var zr=new e.VersionedStruct(e.uint32,{header:{scriptList:new e.Pointer(e.uint16,j),featureList:new e.Pointer(e.uint16,xA),lookupList:new e.Pointer(e.uint16,new st(ur))},65536:{},65537:{featureVariations:new e.Pointer(e.uint32,Yn)}}),Kn=new e.Array(e.uint16,e.uint16),Lr=new e.Struct({shrinkageEnableGSUB:new e.Pointer(e.uint16,Kn),shrinkageDisableGSUB:new e.Pointer(e.uint16,Kn),shrinkageEnableGPOS:new e.Pointer(e.uint16,Kn),shrinkageDisableGPOS:new e.Pointer(e.uint16,Kn),shrinkageJstfMax:new e.Pointer(e.uint16,new st(Nn)),extensionEnableGSUB:new e.Pointer(e.uint16,Kn),extensionDisableGSUB:new e.Pointer(e.uint16,Kn),extensionEnableGPOS:new e.Pointer(e.uint16,Kn),extensionDisableGPOS:new e.Pointer(e.uint16,Kn),extensionJstfMax:new e.Pointer(e.uint16,new st(Nn))}),dr=new e.Array(new e.Pointer(e.uint16,Lr),e.uint16),br=new e.Struct({tag:new e.String(4),jstfLangSys:new e.Pointer(e.uint16,dr)}),Gr=new e.Struct({extenderGlyphs:new e.Pointer(e.uint16,new e.Array(e.uint16,e.uint16)),defaultLangSys:new e.Pointer(e.uint16,dr),langSysCount:e.uint16,langSysRecords:new e.Array(br,"langSysCount")}),si=new e.Struct({tag:new e.String(4),script:new e.Pointer(e.uint16,Gr,{type:"parent"})}),Hr=new e.Struct({version:e.uint32,scriptCount:e.uint16,scriptList:new e.Array(si,"scriptCount")}),Jr=new e.Struct({entry:new(function(){function eA(K){this._size=K}var b=eA.prototype;return b.decode=function(M,x){switch(this.size(0,x)){case 1:return M.readUInt8();case 2:return M.readUInt16BE();case 3:return M.readUInt24BE();case 4:return M.readUInt32BE()}},b.size=function(M,x){return f.resolveLength(this._size,null,x)},eA}())(function(eA){return 1+((48&eA.parent.entryFormat)>>4)}),outerIndex:function(b){return b.entry>>1+(15&b.parent.entryFormat)},innerIndex:function(b){return b.entry&(1<<1+(15&b.parent.entryFormat))-1}}),Vn=new e.Struct({entryFormat:e.uint16,mapCount:e.uint16,mapData:new e.Array(Jr,"mapCount")}),Li=new e.Struct({majorVersion:e.uint16,minorVersion:e.uint16,itemVariationStore:new e.Pointer(e.uint32,Jt),advanceWidthMapping:new e.Pointer(e.uint32,Vn),LSBMapping:new e.Pointer(e.uint32,Vn),RSBMapping:new e.Pointer(e.uint32,Vn)}),bi=new e.Struct({format:e.uint32,length:e.uint32,offset:e.uint32}),aa=new e.Struct({reserved:new e.Reserved(e.uint16,2),cbSignature:e.uint32,signature:new e.Buffer("cbSignature")}),oo=new e.Struct({ulVersion:e.uint32,usNumSigs:e.uint16,usFlag:e.uint16,signatures:new e.Array(bi,"usNumSigs"),signatureBlocks:new e.Array(aa,"usNumSigs")}),so=new e.Struct({rangeMaxPPEM:e.uint16,rangeGaspBehavior:new e.Bitfield(e.uint16,["grayscale","gridfit","symmetricSmoothing","symmetricGridfit"])}),lo=new e.Struct({version:e.uint16,numRanges:e.uint16,gaspRanges:new e.Array(so,"numRanges")}),co=new e.Struct({pixelSize:e.uint8,maximumWidth:e.uint8,widths:new e.Array(e.uint8,function(eA){return eA.parent.parent.maxp.numGlyphs})}),go=new e.Struct({version:e.uint16,numRecords:e.int16,sizeDeviceRecord:e.int32,records:new e.Array(co,"numRecords")}),Bo=new e.Struct({left:e.uint16,right:e.uint16,value:e.int16}),oa=new e.Struct({firstGlyph:e.uint16,nGlyphs:e.uint16,offsets:new e.Array(e.uint16,"nGlyphs"),max:function(b){return b.offsets.length&&Math.max.apply(Math,b.offsets)}}),uo=new e.Struct({off:function(b){return b._startOffset-b.parent.parent._startOffset},len:function(b){return b.parent.rowWidth/2*((b.parent.leftTable.max-b.off)/b.parent.rowWidth+1)},values:new e.LazyArray(e.int16,"len")}),sa=new e.VersionedStruct("format",{0:{nPairs:e.uint16,searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16,pairs:new e.Array(Bo,"nPairs")},2:{rowWidth:e.uint16,leftTable:new e.Pointer(e.uint16,oa,{type:"parent"}),rightTable:new e.Pointer(e.uint16,oa,{type:"parent"}),array:new e.Pointer(e.uint16,uo,{type:"parent"})},3:{glyphCount:e.uint16,kernValueCount:e.uint8,leftClassCount:e.uint8,rightClassCount:e.uint8,flags:e.uint8,kernValue:new e.Array(e.int16,"kernValueCount"),leftClass:new e.Array(e.uint8,"glyphCount"),rightClass:new e.Array(e.uint8,"glyphCount"),kernIndex:new e.Array(e.uint8,function(eA){return eA.leftClassCount*eA.rightClassCount})}}),la=new e.VersionedStruct("version",{0:{subVersion:e.uint16,length:e.uint16,format:e.uint8,coverage:new e.Bitfield(e.uint8,["horizontal","minimum","crossStream","override"]),subtable:sa,padding:new e.Reserved(e.uint8,function(eA){return eA.length-eA._currentOffset})},1:{length:e.uint32,coverage:new e.Bitfield(e.uint8,[null,null,null,null,null,"variation","crossStream","vertical"]),format:e.uint8,tupleIndex:e.uint16,subtable:sa,padding:new e.Reserved(e.uint8,function(eA){return eA.length-eA._currentOffset})}}),ca=new e.VersionedStruct(e.uint16,{0:{nTables:e.uint16,tables:new e.Array(la,"nTables")},1:{reserved:new e.Reserved(e.uint16),nTables:e.uint32,tables:new e.Array(la,"nTables")}}),fo=new e.Struct({version:e.uint16,numGlyphs:e.uint16,yPels:new e.Array(e.uint8,"numGlyphs")}),ho=new e.Struct({version:e.uint16,fontNumber:e.uint32,pitch:e.uint16,xHeight:e.uint16,style:e.uint16,typeFamily:e.uint16,capHeight:e.uint16,symbolSet:e.uint16,typeface:new e.String(16),characterComplement:new e.String(8),fileName:new e.String(6),strokeWeight:new e.String(1),widthType:new e.String(1),serifStyle:e.uint8,reserved:new e.Reserved(e.uint8)}),Eo=new e.Struct({bCharSet:e.uint8,xRatio:e.uint8,yStartRatio:e.uint8,yEndRatio:e.uint8}),wo=new e.Struct({yPelHeight:e.uint16,yMax:e.int16,yMin:e.int16}),Co=new e.Struct({recs:e.uint16,startsz:e.uint8,endsz:e.uint8,entries:new e.Array(wo,"recs")}),Qo=new e.Struct({version:e.uint16,numRecs:e.uint16,numRatios:e.uint16,ratioRanges:new e.Array(Eo,"numRatios"),offsets:new e.Array(e.uint16,"numRatios"),groups:new e.Array(Co,"numRecs")}),Mo=new e.Struct({version:e.uint16,ascent:e.int16,descent:e.int16,lineGap:e.int16,advanceHeightMax:e.int16,minTopSideBearing:e.int16,minBottomSideBearing:e.int16,yMaxExtent:e.int16,caretSlopeRise:e.int16,caretSlopeRun:e.int16,caretOffset:e.int16,reserved:new e.Reserved(e.int16,4),metricDataFormat:e.int16,numberOfMetrics:e.uint16}),po=new e.Struct({advance:e.uint16,bearing:e.int16}),Io=new e.Struct({metrics:new e.LazyArray(po,function(eA){return eA.parent.vhea.numberOfMetrics}),bearings:new e.LazyArray(e.int16,function(eA){return eA.parent.maxp.numGlyphs-eA.parent.vhea.numberOfMetrics})}),ga=new e.Fixed(16,"BE",14),mo=new e.Struct({fromCoord:ga,toCoord:ga}),Do=new e.Struct({pairCount:e.uint16,correspondence:new e.Array(mo,"pairCount")}),vo=new e.Struct({version:e.fixed32,axisCount:e.uint32,segment:new e.Array(Do,"axisCount")}),yo=function(){function eA(K,M,x){this.type=K,this.stream=M,this.parent=x,this.base=this.stream.pos,this._items=[]}var b=eA.prototype;return b.getItem=function(M){if(null==this._items[M]){var x=this.stream.pos;this.stream.pos=this.base+this.type.size(null,this.parent)*M,this._items[M]=this.type.decode(this.stream,this.parent),this.stream.pos=x}return this._items[M]},b.inspect=function(){return"[UnboundedArray ".concat(this.type.constructor.name,"]")},eA}(),Ar=function(eA){function b(M){return eA.call(this,M,0)||this}return h(b,eA),b.prototype.decode=function(x,P){return new yo(this.type,x,P)},b}(e.Array),fr=function(b){void 0===b&&(b=e.uint16),b=new(function(){function oA(iA){this.type=iA}var sA=oA.prototype;return sA.decode=function(SA,jA){return this.type.decode(SA,jA=jA.parent.parent)},sA.size=function(SA,jA){return this.type.size(SA,jA=jA.parent.parent)},sA.encode=function(SA,jA,lt){return this.type.encode(SA,jA,lt=lt.parent.parent)},oA}())(b);var M=new e.Struct({unitSize:e.uint16,nUnits:e.uint16,searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16}),x=new e.Struct({lastGlyph:e.uint16,firstGlyph:e.uint16,value:b}),P=new e.Struct({lastGlyph:e.uint16,firstGlyph:e.uint16,values:new e.Pointer(e.uint16,new e.Array(b,function(oA){return oA.lastGlyph-oA.firstGlyph+1}),{type:"parent"})}),tA=new e.Struct({glyph:e.uint16,value:b});return new e.VersionedStruct(e.uint16,{0:{values:new Ar(b)},2:{binarySearchHeader:M,segments:new e.Array(x,function(oA){return oA.binarySearchHeader.nUnits})},4:{binarySearchHeader:M,segments:new e.Array(P,function(oA){return oA.binarySearchHeader.nUnits})},6:{binarySearchHeader:M,segments:new e.Array(tA,function(oA){return oA.binarySearchHeader.nUnits})},8:{firstGlyph:e.uint16,count:e.uint16,values:new e.Array(b,"count")}})};function li(eA,b){void 0===eA&&(eA={}),void 0===b&&(b=e.uint16);var K=Object.assign({newState:e.uint16,flags:e.uint16},eA),M=new e.Struct(K),x=new Ar(new e.Array(e.uint16,function(tA){return tA.nClasses}));return new e.Struct({nClasses:e.uint32,classTable:new e.Pointer(e.uint32,new fr(b)),stateArray:new e.Pointer(e.uint32,x),entryTable:new e.Pointer(e.uint32,new Ar(M))})}var Ba=new e.VersionedStruct("format",{0:{deltas:new e.Array(e.int16,32)},1:{deltas:new e.Array(e.int16,32),mappingData:new fr(e.uint16)},2:{standardGlyph:e.uint16,controlPoints:new e.Array(e.uint16,32)},3:{standardGlyph:e.uint16,controlPoints:new e.Array(e.uint16,32),mappingData:new fr(e.uint16)}}),Fo=new e.Struct({version:e.fixed32,format:e.uint16,defaultBaseline:e.uint16,subtable:Ba}),ua=new e.Struct({setting:e.uint16,nameIndex:e.int16,name:function(b){return b.parent.parent.parent.name.records.fontFeatures[b.nameIndex]}}),Tr=new e.Struct({feature:e.uint16,nSettings:e.uint16,settingTable:new e.Pointer(e.uint32,new e.Array(ua,"nSettings"),{type:"parent"}),featureFlags:new e.Bitfield(e.uint8,[null,null,null,null,null,null,"hasDefault","exclusive"]),defaultSetting:e.uint8,nameIndex:e.int16,name:function(b){return b.parent.parent.name.records.fontFeatures[b.nameIndex]}}),ar=new e.Struct({version:e.fixed32,featureNameCount:e.uint16,reserved1:new e.Reserved(e.uint16),reserved2:new e.Reserved(e.uint32),featureNames:new e.Array(Tr,"featureNameCount")}),Mr=new e.Struct({axisTag:new e.String(4),minValue:e.fixed32,defaultValue:e.fixed32,maxValue:e.fixed32,flags:e.uint16,nameID:e.uint16,name:function(b){return b.parent.parent.name.records.fontFeatures[b.nameID]}}),Yo=new e.Struct({nameID:e.uint16,name:function(b){return b.parent.parent.name.records.fontFeatures[b.nameID]},flags:e.uint16,coord:new e.Array(e.fixed32,function(eA){return eA.parent.axisCount}),postscriptNameID:new e.Optional(e.uint16,function(eA){return eA.parent.instanceSize-eA._currentOffset>0})}),To=new e.Struct({version:e.fixed32,offsetToData:e.uint16,countSizePairs:e.uint16,axisCount:e.uint16,axisSize:e.uint16,instanceCount:e.uint16,instanceSize:e.uint16,axis:new e.Array(Mr,"axisCount"),instance:new e.Array(Yo,"instanceCount")}),No=new e.Fixed(16,"BE",14),So=function(){function eA(){}return eA.decode=function(K,M){return M.flags?K.readUInt32BE():2*K.readUInt16BE()},eA}(),Uo=new e.Struct({version:e.uint16,reserved:new e.Reserved(e.uint16),axisCount:e.uint16,globalCoordCount:e.uint16,globalCoords:new e.Pointer(e.uint32,new e.Array(new e.Array(No,"axisCount"),"globalCoordCount")),glyphCount:e.uint16,flags:e.uint16,offsetToData:e.uint32,offsets:new e.Array(new e.Pointer(So,"void",{relativeTo:function(b){return b.offsetToData},allowNull:!1}),function(eA){return eA.glyphCount+1})}),Po=new e.Struct({length:e.uint16,coverage:e.uint16,subFeatureFlags:e.uint32,stateTable:new function xo(eA,b){void 0===eA&&(eA={}),void 0===b&&(b=e.uint16);var K=new e.Struct({version:function(){return 8},firstGlyph:e.uint16,values:new e.Array(e.uint8,e.uint16)}),M=Object.assign({newStateOffset:e.uint16,newState:function(sA){return(sA.newStateOffset-(sA.parent.stateArray.base-sA.parent._startOffset))/sA.parent.nClasses},flags:e.uint16},eA),x=new e.Struct(M),P=new Ar(new e.Array(e.uint8,function(oA){return oA.nClasses}));return new e.Struct({nClasses:e.uint16,classTable:new e.Pointer(e.uint16,K),stateArray:new e.Pointer(e.uint16,P),entryTable:new e.Pointer(e.uint16,new Ar(x))})}}),Ro=new e.Struct({justClass:e.uint32,beforeGrowLimit:e.fixed32,beforeShrinkLimit:e.fixed32,afterGrowLimit:e.fixed32,afterShrinkLimit:e.fixed32,growFlags:e.uint16,shrinkFlags:e.uint16}),zo=new e.Array(Ro,e.uint32),Lo=new e.VersionedStruct("actionType",{0:{lowerLimit:e.fixed32,upperLimit:e.fixed32,order:e.uint16,glyphs:new e.Array(e.uint16,e.uint16)},1:{addGlyph:e.uint16},2:{substThreshold:e.fixed32,addGlyph:e.uint16,substGlyph:e.uint16},3:{},4:{variationAxis:e.uint32,minimumLimit:e.fixed32,noStretchValue:e.fixed32,maximumLimit:e.fixed32},5:{flags:e.uint16,glyph:e.uint16}}),bo=new e.Struct({actionClass:e.uint16,actionType:e.uint16,actionLength:e.uint32,actionData:Lo,padding:new e.Reserved(e.uint8,function(eA){return eA.actionLength-eA._currentOffset})}),Go=new e.Array(bo,e.uint32),Ho=new e.Struct({lookupTable:new fr(new e.Pointer(e.uint16,Go))}),fa=new e.Struct({classTable:new e.Pointer(e.uint16,Po,{type:"parent"}),wdcOffset:e.uint16,postCompensationTable:new e.Pointer(e.uint16,Ho,{type:"parent"}),widthDeltaClusters:new fr(new e.Pointer(e.uint16,zo,{type:"parent",relativeTo:function(b){return b.wdcOffset}}))}),Jo=new e.Struct({version:e.uint32,format:e.uint16,horizontal:new e.Pointer(e.uint16,fa),vertical:new e.Pointer(e.uint16,fa)}),Oo={action:e.uint16},ha={markIndex:e.uint16,currentIndex:e.uint16},ko={currentInsertIndex:e.uint16,markedInsertIndex:e.uint16},jo=new e.Struct({items:new Ar(new e.Pointer(e.uint32,new fr))}),Zo=new e.VersionedStruct("type",{0:{stateTable:new li},1:{stateTable:new li(ha),substitutionTable:new e.Pointer(e.uint32,jo)},2:{stateTable:new li(Oo),ligatureActions:new e.Pointer(e.uint32,new Ar(e.uint32)),components:new e.Pointer(e.uint32,new Ar(e.uint16)),ligatureList:new e.Pointer(e.uint32,new Ar(e.uint16))},4:{lookupTable:new fr},5:{stateTable:new li(ko),insertionActions:new e.Pointer(e.uint32,new Ar(e.uint16))}}),Ko=new e.Struct({length:e.uint32,coverage:e.uint24,type:e.uint8,subFeatureFlags:e.uint32,table:Zo,padding:new e.Reserved(e.uint8,function(eA){return eA.length-eA._currentOffset})}),Vo=new e.Struct({featureType:e.uint16,featureSetting:e.uint16,enableFlags:e.uint32,disableFlags:e.uint32}),Wo=new e.Struct({defaultFlags:e.uint32,chainLength:e.uint32,nFeatureEntries:e.uint32,nSubtables:e.uint32,features:new e.Array(Vo,"nFeatureEntries"),subtables:new e.Array(Ko,"nSubtables")}),Xo=new e.Struct({version:e.uint16,unused:new e.Reserved(e.uint16),nChains:e.uint32,chains:new e.Array(Wo,"nChains")}),qo=new e.Struct({left:e.int16,top:e.int16,right:e.int16,bottom:e.int16}),_o=new e.Struct({version:e.fixed32,format:e.uint16,lookupTable:new fr(qo)}),oe={};oe.cmap=vA,oe.head=FA,oe.hhea=_,oe.hmtx=uA,oe.maxp=CA,oe.name=V,oe["OS/2"]=mA,oe.post=EA,oe.fpgm=et,oe.loca=ot,oe.prep=TA,oe["cvt "]=GA,oe.glyf=it,oe["CFF "]=te,oe.CFF2=te,oe.VORG=Pt,oe.EBLC=_e,oe.CBLC=oe.EBLC,oe.sbix=rn,oe.COLR=an,oe.CPAL=cn,oe.BASE=Z,oe.GDEF=Dt,oe.GPOS=Rr,oe.GSUB=zr,oe.JSTF=Hr,oe.HVAR=Li,oe.DSIG=oo,oe.gasp=lo,oe.hdmx=go,oe.kern=ca,oe.LTSH=fo,oe.PCLT=ho,oe.VDMX=Qo,oe.vhea=Mo,oe.vmtx=Io,oe.avar=vo,oe.bsln=Fo,oe.feat=ar,oe.fvar=To,oe.gvar=Uo,oe.just=Jo,oe.morx=Xo,oe.opbd=_o;var or,$o=new e.Struct({tag:new e.String(4),checkSum:e.uint32,offset:new e.Pointer(e.uint32,"void",{type:"global"}),length:e.uint32}),ci=new e.Struct({tag:new e.String(4),numTables:e.uint16,searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16,tables:new e.Array($o,"numTables")});function gi(eA,b){for(var K=0,M=eA.length-1;K<=M;){var x=K+M>>1,P=b(eA[x]);if(P<0)M=x-1;else{if(!(P>0))return x;K=x+1}}return-1}function Nr(eA,b){for(var K=[];eA>1;if(MsA.endCode.get(jA))){var lt=sA.idRangeOffset.get(jA),qA=void 0;if(0===lt)qA=M+sA.idDelta.get(jA);else{var gt=lt/2+(M-sA.startCode.get(jA))-(sA.segCount-jA);0!==(qA=sA.glyphIndexArray.get(gt)||0)&&(qA+=sA.idDelta.get(jA))}return 65535&qA}iA=jA+1}}return 0;case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return sA.glyphIndices.get(M-sA.firstCode)||0;case 12:case 13:for(var pt=0,yt=sA.nGroups-1;pt<=yt;){var Gt=pt+yt>>1,$t=sA.groups.get(Gt);if(M<$t.startCharCode)yt=Gt-1;else{if(!(M>$t.endCharCode))return 12===sA.version?$t.glyphID+(M-$t.startCharCode):$t.glyphID;pt=Gt+1}}return 0;case 14:throw new Error("TODO: cmap format 14");default:throw new Error("Unknown cmap format ".concat(sA.version))}},b.getVariationSelector=function(M,x){if(!this.uvs)return 0;var P=this.uvs.varSelectors.toArray(),tA=gi(P,function(sA){return x-sA.varSelector}),oA=P[tA];return-1!==tA&&oA.defaultUVS&&(tA=gi(oA.defaultUVS,function(sA){return MsA.startUnicodeValue+sA.additionalCount?1:0})),-1!==tA&&oA.nonDefaultUVS&&-1!==(tA=gi(oA.nonDefaultUVS,function(sA){return M-sA.unicodeValue}))?oA.nonDefaultUVS[tA].glyphID:0},b.getCharacterSet=function(){var M=this.cmap;switch(M.version){case 0:return Nr(0,M.codeMap.length);case 4:for(var x=[],P=M.endCode.toArray(),tA=0;tA=qt.glyphID&&M<=qt.glyphID+(qt.endCharCode-qt.startCharCode)&&yt.push(qt.startCharCode+(M-qt.glyphID))}return yt;case 13:for(var Ee,ie=[],ge=B(x.groups.toArray());!(Ee=ge()).done;){var we=Ee.value;M===we.glyphID&&ie.push.apply(ie,Nr(we.startCharCode,we.endCharCode+1))}return ie;default:throw new Error("Unknown cmap format ".concat(x.version))}},eA}()).prototype,"getCharacterSet",[z],Object.getOwnPropertyDescriptor(or.prototype,"getCharacterSet"),or.prototype),F(or.prototype,"codePointsForGlyph",[z],Object.getOwnPropertyDescriptor(or.prototype,"codePointsForGlyph"),or.prototype),or),ts=function(){function eA(K){this.kern=K.kern}var b=eA.prototype;return b.process=function(M,x){for(var P=0;P=0&&(iA=SA.pairs[jA].value);break;case 2:var qA=0;x>=SA.rightTable.firstGlyph&&x=SA.leftTable.firstGlyph&&M=SA.glyphCount||x>=SA.glyphCount)return 0;iA=SA.kernValue[SA.kernIndex[SA.leftClass[M]*SA.rightClassCount+SA.rightClass[x]]];break;default:throw new Error("Unsupported kerning sub-table format ".concat(sA.format))}sA.coverage.override?P=iA:P+=iA}}return P},eA}(),es=function(){function eA(K){this.font=K}var b=eA.prototype;return b.positionGlyphs=function(M,x){for(var P=0,tA=0,oA=0;oA1&&(sA.minX+=(oA.codePoints.length-1)*sA.width/oA.codePoints.length);for(var iA=-x[P].xAdvance,SA=0,jA=this.font.unitsPerEm/16,lt=P+1;lt<=tA;lt++){var qA=M[lt],gt=qA.cbox,pt=x[lt],yt=this.getCombiningClass(qA.codePoints[0]);if("Not_Reordered"!==yt){switch(pt.xOffset=pt.yOffset=0,yt){case"Double_Above":case"Double_Below":pt.xOffset+=sA.minX-gt.width/2-gt.minX;break;case"Attached_Below_Left":case"Below_Left":case"Above_Left":pt.xOffset+=sA.minX-gt.minX;break;case"Attached_Above_Right":case"Below_Right":case"Above_Right":pt.xOffset+=sA.maxX-gt.width-gt.minX;break;default:pt.xOffset+=sA.minX+(sA.width-gt.width)/2-gt.minX}switch(yt){case"Double_Below":case"Below_Left":case"Below":case"Below_Right":case"Attached_Below_Left":case"Attached_Below":("Attached_Below_Left"===yt||"Attached_Below"===yt)&&(sA.minY+=jA),pt.yOffset=-sA.minY-gt.maxY,sA.minY+=gt.height;break;case"Double_Above":case"Above_Left":case"Above":case"Above_Right":case"Attached_Above":case"Attached_Above_Right":("Attached_Above"===yt||"Attached_Above_Right"===yt)&&(sA.maxY+=jA),pt.yOffset=sA.maxY-gt.minY,sA.maxY+=gt.height}pt.xAdvance=pt.yAdvance=0,pt.xOffset+=iA,pt.yOffset+=SA}else iA-=pt.xAdvance,SA-=pt.yAdvance}},b.getCombiningClass=function(M){var x=w.getCombiningClass(M);if(3584==(-256&M))if("Not_Reordered"===x)switch(M){case 3633:case 3636:case 3637:case 3638:case 3639:case 3655:case 3660:case 3645:case 3662:return"Above_Right";case 3761:case 3764:case 3765:case 3766:case 3767:case 3771:case 3788:case 3789:return"Above";case 3772:return"Below"}else if(3642===M)return"Below_Right";switch(x){case"CCC10":case"CCC11":case"CCC12":case"CCC13":case"CCC14":case"CCC15":case"CCC16":case"CCC17":case"CCC18":case"CCC20":case"CCC22":case"CCC29":case"CCC32":case"CCC118":case"CCC129":case"CCC132":return"Below";case"CCC23":return"Attached_Above";case"CCC24":case"CCC107":return"Above_Right";case"CCC25":case"CCC19":return"Above_Left";case"CCC26":case"CCC27":case"CCC28":case"CCC30":case"CCC31":case"CCC33":case"CCC34":case"CCC35":case"CCC36":case"CCC122":case"CCC130":return"Above";case"CCC21":break;case"CCC103":return"Below_Right"}return x},eA}(),Sr=function(){function eA(K,M,x,P){void 0===K&&(K=1/0),void 0===M&&(M=1/0),void 0===x&&(x=-1/0),void 0===P&&(P=-1/0),this.minX=K,this.minY=M,this.maxX=x,this.maxY=P}var b=eA.prototype;return b.addPoint=function(M,x){Math.abs(M)!==1/0&&(Mthis.maxX&&(this.maxX=M)),Math.abs(x)!==1/0&&(xthis.maxY&&(this.maxY=x))},b.copy=function(){return new eA(this.minX,this.minY,this.maxX,this.maxY)},l(eA,[{key:"width",get:function(){return this.maxX-this.minX}},{key:"height",get:function(){return this.maxY-this.minY}}]),eA}(),Ur={Caucasian_Albanian:"aghb",Arabic:"arab",Imperial_Aramaic:"armi",Armenian:"armn",Avestan:"avst",Balinese:"bali",Bamum:"bamu",Bassa_Vah:"bass",Batak:"batk",Bengali:["bng2","beng"],Bopomofo:"bopo",Brahmi:"brah",Braille:"brai",Buginese:"bugi",Buhid:"buhd",Chakma:"cakm",Canadian_Aboriginal:"cans",Carian:"cari",Cham:"cham",Cherokee:"cher",Coptic:"copt",Cypriot:"cprt",Cyrillic:"cyrl",Devanagari:["dev2","deva"],Deseret:"dsrt",Duployan:"dupl",Egyptian_Hieroglyphs:"egyp",Elbasan:"elba",Ethiopic:"ethi",Georgian:"geor",Glagolitic:"glag",Gothic:"goth",Grantha:"gran",Greek:"grek",Gujarati:["gjr2","gujr"],Gurmukhi:["gur2","guru"],Hangul:"hang",Han:"hani",Hanunoo:"hano",Hebrew:"hebr",Hiragana:"hira",Pahawh_Hmong:"hmng",Katakana_Or_Hiragana:"hrkt",Old_Italic:"ital",Javanese:"java",Kayah_Li:"kali",Katakana:"kana",Kharoshthi:"khar",Khmer:"khmr",Khojki:"khoj",Kannada:["knd2","knda"],Kaithi:"kthi",Tai_Tham:"lana",Lao:"lao ",Latin:"latn",Lepcha:"lepc",Limbu:"limb",Linear_A:"lina",Linear_B:"linb",Lisu:"lisu",Lycian:"lyci",Lydian:"lydi",Mahajani:"mahj",Mandaic:"mand",Manichaean:"mani",Mende_Kikakui:"mend",Meroitic_Cursive:"merc",Meroitic_Hieroglyphs:"mero",Malayalam:["mlm2","mlym"],Modi:"modi",Mongolian:"mong",Mro:"mroo",Meetei_Mayek:"mtei",Myanmar:["mym2","mymr"],Old_North_Arabian:"narb",Nabataean:"nbat",Nko:"nko ",Ogham:"ogam",Ol_Chiki:"olck",Old_Turkic:"orkh",Oriya:["ory2","orya"],Osmanya:"osma",Palmyrene:"palm",Pau_Cin_Hau:"pauc",Old_Permic:"perm",Phags_Pa:"phag",Inscriptional_Pahlavi:"phli",Psalter_Pahlavi:"phlp",Phoenician:"phnx",Miao:"plrd",Inscriptional_Parthian:"prti",Rejang:"rjng",Runic:"runr",Samaritan:"samr",Old_South_Arabian:"sarb",Saurashtra:"saur",Shavian:"shaw",Sharada:"shrd",Siddham:"sidd",Khudawadi:"sind",Sinhala:"sinh",Sora_Sompeng:"sora",Sundanese:"sund",Syloti_Nagri:"sylo",Syriac:"syrc",Tagbanwa:"tagb",Takri:"takr",Tai_Le:"tale",New_Tai_Lue:"talu",Tamil:["tml2","taml"],Tai_Viet:"tavt",Telugu:["tel2","telu"],Tifinagh:"tfng",Tagalog:"tglg",Thaana:"thaa",Thai:"thai",Tibetan:"tibt",Tirhuta:"tirh",Ugaritic:"ugar",Vai:"vai ",Warang_Citi:"wara",Old_Persian:"xpeo",Cuneiform:"xsux",Yi:"yi ",Inherited:"zinh",Common:"zyyy",Unknown:"zzzz"},Gi={};for(var Hi in Ur){var Ji=Ur[Hi];if(Array.isArray(Ji))for(var Ea,ns=B(Ji);!(Ea=ns()).done;)Gi[Ea.value]=Hi;else Gi[Ji]=Hi}var ss={arab:!0,hebr:!0,syrc:!0,thaa:!0,cprt:!0,khar:!0,phnx:!0,"nko ":!0,lydi:!0,avst:!0,armi:!0,phli:!0,prti:!0,sarb:!0,orkh:!0,samr:!0,mand:!0,merc:!0,mero:!0,mani:!0,mend:!0,nbat:!0,narb:!0,palm:!0,phlp:!0};function wa(eA){return ss[eA]?"rtl":"ltr"}for(var ls=function(){function eA(b,K,M,x,P){if(this.glyphs=b,this.positions=null,this.script=M,this.language=x||null,this.direction=P||wa(M),this.features={},Array.isArray(K))for(var oA,tA=B(K);!(oA=tA()).done;)this.features[oA.value]=!0;else"object"==typeof K&&(this.features=K)}return l(eA,[{key:"advanceWidth",get:function(){for(var x,K=0,M=B(this.positions);!(x=M()).done;)K+=x.value.xAdvance;return K}},{key:"advanceHeight",get:function(){for(var x,K=0,M=B(this.positions);!(x=M()).done;)K+=x.value.yAdvance;return K}},{key:"bbox",get:function(){for(var K=new Sr,M=0,x=0,P=0;P>1]).firstGlyph)return null;if(MoA.lastGlyph))return 2===this.table.version?oA.value:oA.values[M-oA.firstGlyph];x=tA+1}}return null;case 6:for(var sA=0,iA=this.table.binarySearchHeader.nUnits-1;sA<=iA;){var tA,oA;if(65535===(oA=this.table.segments[tA=sA+iA>>1]).glyph)return null;if(MoA.glyph))return oA.value;sA=tA+1}}return null;case 8:return this.table.values[M-this.table.firstGlyph];default:throw new Error("Unknown lookup table format: ".concat(this.table.version))}},b.glyphsForValue=function(M){var x=[];switch(this.table.version){case 2:case 4:for(var tA,P=B(this.table.segments);!(tA=P()).done;){var oA=tA.value;if(2===this.table.version&&oA.value===M)x.push.apply(x,Nr(oA.firstGlyph,oA.lastGlyph+1));else for(var sA=0;sA=-1;){var iA=null,SA=1,jA=!0;oA===M.length||-1===oA?SA=0:65535===(iA=M[oA]).id?SA=2:null==(SA=this.lookupTable.lookup(iA.id))&&(SA=1);var lt=this.stateTable.stateArray.getItem(tA),gt=this.stateTable.entryTable.getItem(lt[SA]);0!==SA&&2!==SA&&(P(iA,gt,oA),jA=!(16384>.flags)),tA=gt.newState,jA&&(oA+=sA)}return M},b.traverse=function(M,x,P){if(void 0===x&&(x=0),void 0===P&&(P=new Set),!P.has(x)){P.add(x);for(var tA=this.stateTable,oA=tA.nClasses,iA=tA.entryTable,SA=tA.stateArray.getItem(x),jA=4;jA=0;)65535===M[yt].id&&M.splice(yt,1),yt--;return M},b.processSubtable=function(M,x){if(this.subtable=M,this.glyphs=x,4!==this.subtable.type){this.ligatureStack=[],this.markedGlyph=null,this.firstGlyph=null,this.lastGlyph=null,this.markedIndex=null;var P=this.getStateMachine(M),tA=this.getProcessor();return P.process(this.glyphs,!!(4194304&this.subtable.coverage),tA)}this.processNoncontextualSubstitutions(this.subtable,this.glyphs)},b.getStateMachine=function(M){return new fs(M.table.stateTable)},b.getProcessor=function(){switch(this.subtable.type){case 0:return this.processIndicRearragement;case 1:return this.processContextualSubstitution;case 2:return this.processLigature;case 4:return this.processNoncontextualSubstitutions;case 5:return this.processGlyphInsertion;default:throw new Error("Invalid morx subtable type: ".concat(this.subtable.type))}},b.processIndicRearragement=function(M,x,P){32768&x.flags&&(this.firstGlyph=P),8192&x.flags&&(this.lastGlyph=P),function ys(eA,b,K,M){switch(b){case 0:return eA;case 1:return Sn(eA,[K,1],[M,0]);case 2:return Sn(eA,[K,0],[M,1]);case 3:return Sn(eA,[K,1],[M,1]);case 4:return Sn(eA,[K,2],[M,0]);case 5:return Sn(eA,[K,2],[M,0],!0,!1);case 6:return Sn(eA,[K,0],[M,2]);case 7:return Sn(eA,[K,0],[M,2],!1,!0);case 8:return Sn(eA,[K,1],[M,2]);case 9:return Sn(eA,[K,1],[M,2],!1,!0);case 10:return Sn(eA,[K,2],[M,1]);case 11:return Sn(eA,[K,2],[M,1],!0,!1);case 12:return Sn(eA,[K,2],[M,2]);case 13:return Sn(eA,[K,2],[M,2],!0,!1);case 14:return Sn(eA,[K,2],[M,2],!1,!0);case 15:return Sn(eA,[K,2],[M,2],!0,!0);default:throw new Error("Unknown verb: ".concat(b))}}(this.glyphs,15&x.flags,this.firstGlyph,this.lastGlyph)},b.processContextualSubstitution=function(M,x,P){var tA=this.subtable.table.substitutionTable.items;if(65535!==x.markIndex){var oA=tA.getItem(x.markIndex);(iA=new hi(oA).lookup((M=this.glyphs[this.markedGlyph]).id))&&(this.glyphs[this.markedGlyph]=this.font.getGlyph(iA,M.codePoints))}if(65535!==x.currentIndex){var iA,SA=tA.getItem(x.currentIndex);(iA=new hi(SA).lookup((M=this.glyphs[P]).id))&&(this.glyphs[P]=this.font.getGlyph(iA,M.codePoints))}32768&x.flags&&(this.markedGlyph=P)},b.processLigature=function(M,x,P){if(32768&x.flags&&this.ligatureStack.push(P),8192&x.flags){for(var tA,oA=this.subtable.table.ligatureActions,sA=this.subtable.table.components,iA=this.subtable.table.ligatureList,SA=x.action,jA=!1,lt=0,qA=[],gt=[];!jA;){var pt,yt=this.ligatureStack.pop();(pt=qA).unshift.apply(pt,this.glyphs[yt].codePoints);var Gt=oA.getItem(SA++);jA=!!(2147483648&Gt);var $t=!!(1073741824&Gt),qt=(1073741823&Gt)<<2>>2;if(lt+=sA.getItem(qt+=this.glyphs[yt].id),jA||$t){var ge=iA.getItem(lt);this.glyphs[yt]=this.font.getGlyph(ge,qA),gt.push(yt),lt=0,qA=[]}else this.glyphs[yt]=this.font.getGlyph(65535)}(tA=this.ligatureStack).push.apply(tA,gt)}},b.processNoncontextualSubstitutions=function(M,x,P){var tA=new hi(M.table.lookupTable);for(P=0;P>>5,!!(1024&x.flags)),65535!==x.currentInsertIndex&&this._insertGlyphs(P,x.currentInsertIndex,(992&x.flags)>>>5,!!(2048&x.flags))},b.getSupportedFeatures=function(){for(var P,M=[],x=B(this.morx.chains);!(P=x()).done;)for(var sA,oA=B(P.value.features);!(sA=oA()).done;){var iA=sA.value;M.push([iA.featureType,iA.featureSetting])}return M},b.generateInputs=function(M){return this.inputCache||this.generateInputCache(),this.inputCache[M]||[]},b.generateInputCache=function(){this.inputCache={};for(var x,M=B(this.morx.chains);!(x=M()).done;)for(var sA,P=x.value,tA=P.defaultFlags,oA=B(P.subtables);!(sA=oA()).done;){var iA=sA.value;iA.subFeatureFlags&tA&&this.generateInputsForSubtable(iA)}},b.generateInputsForSubtable=function(M){var x=this;if(2===M.type){if(4194304&M.coverage)throw new Error("Reverse subtable, not supported.");this.subtable=M,this.ligatureStack=[];var tA=this.getStateMachine(M),oA=this.getProcessor(),sA=[],iA=[];this.glyphs=[],tA.traverse({enter:function(jA,lt){var qA=x.glyphs;iA.push({glyphs:qA.slice(),ligatureStack:x.ligatureStack.slice()});var gt=x.font.getGlyph(jA);sA.push(gt),qA.push(sA[sA.length-1]),oA(qA[qA.length-1],lt,qA.length-1);for(var pt=0,yt=0,Gt=0;Gt0&&M.applyFeatures(sA,x,P)}},eA}(),Ys=["rvrn"],Ts=["ccmp","locl","rlig","mark","mkmk"],Ns=["frac","numr","dnom"],Ss=["calt","clig","liga","rclt","curs","kern"],Us={ltr:["ltra","ltrm"],rtl:["rtla","rtlm"]},hr=function(){function eA(){}return eA.plan=function(K,M,x){this.planPreprocessing(K),this.planFeatures(K),this.planPostprocessing(K,x),K.assignGlobalFeatures(M),this.assignFeatures(K,M)},eA.planPreprocessing=function(K){K.add({global:[].concat(Ys,Us[K.direction]),local:Ns})},eA.planFeatures=function(K){},eA.planPostprocessing=function(K,M){K.add([].concat(Ts,Ss)),K.setFeatureOverrides(M)},eA.assignFeatures=function(K,M){for(var x=0;x0&&w.isDigit(M[tA-1].codePoints[0]);)M[tA-1].features.numr=!0,M[tA-1].features.frac=!0,tA--;for(;oAthis.index||this.index>=this.glyphs.length?null:this.glyphs[this.index]},b.next=function(){return this.move(1)},b.prev=function(){return this.move(-1)},b.peek=function(M){void 0===M&&(M=1);var x=this.index,P=this.increment(M);return this.index=x,P},b.peekIndex=function(M){void 0===M&&(M=1);var x=this.index;this.increment(M);var P=this.index;return this.index=x,P},b.increment=function(M){void 0===M&&(M=1);var x=M<0?-1:1;for(M=Math.abs(M);M--;)this.move(x);return this.glyphs[this.index]},l(eA,[{key:"cur",get:function(){return this.glyphs[this.index]||null}}]),eA}(),Kr=["DFLT","dflt","latn"],Qi=function(){function eA(K,M){this.font=K,this.table=M,this.script=null,this.scriptTag=null,this.language=null,this.languageTag=null,this.features={},this.lookups={},this.variationsIndex=K._variationProcessor?this.findVariationsIndex(K._variationProcessor.normalizedCoords):-1,this.selectScript(),this.glyphs=[],this.positions=[],this.ligatureID=1,this.currentFeature=null}var b=eA.prototype;return b.findScript=function(M){if(null==this.table.scriptList)return null;Array.isArray(M)||(M=[M]);for(var P,x=B(M);!(P=x()).done;)for(var sA,tA=P.value,oA=B(this.table.scriptList);!(sA=oA()).done;){var iA=sA.value;if(iA.tag===tA)return iA}return null},b.selectScript=function(M,x,P){var oA,tA=!1;if(!this.script||M!==this.scriptTag){if((oA=this.findScript(M))||(oA=this.findScript(Kr)),!oA)return this.scriptTag;this.scriptTag=oA.tag,this.script=oA.script,this.language=null,this.languageTag=null,tA=!0}if((!P||P!==this.direction)&&(this.direction=P||wa(M)),x&&x.length<4&&(x+=" ".repeat(4-x.length)),!x||x!==this.languageTag){this.language=null;for(var iA,sA=B(this.script.langSysRecords);!(iA=sA()).done;){var SA=iA.value;if(SA.tag===x){this.language=SA.langSys,this.languageTag=SA.tag;break}}this.language||(this.language=this.script.defaultLangSys,this.languageTag=null),tA=!0}if(tA&&(this.features={},this.language))for(var lt,jA=B(this.language.featureIndexes);!(lt=jA()).done;){var qA=lt.value,gt=this.table.featureList[qA],pt=this.substituteFeatureForVariations(qA);this.features[gt.tag]=pt||gt.feature}return this.scriptTag},b.lookupsForFeatures=function(M,x){void 0===M&&(M=[]);for(var oA,P=[],tA=B(M);!(oA=tA()).done;){var sA=oA.value,iA=this.features[sA];if(iA)for(var jA,SA=B(iA.lookupListIndexes);!(jA=SA()).done;){var lt=jA.value;x&&-1!==x.indexOf(lt)||P.push({feature:sA,index:lt,lookup:this.table.lookupList.get(lt)})}}return P.sort(function(qA,gt){return qA.index-gt.index}),P},b.substituteFeatureForVariations=function(M){if(-1===this.variationsIndex)return null;for(var oA,tA=B(this.table.featureVariations.featureVariationRecords[this.variationsIndex].featureTableSubstitution.substitutions);!(oA=tA()).done;){var sA=oA.value;if(sA.featureIndex===M)return sA.alternateFeatureTable}return null},b.findVariationsIndex=function(M){var x=this.table.featureVariations;if(!x)return-1;for(var P=x.featureVariationRecords,tA=0;tA=0})},b.getClassID=function(M,x){switch(x.version){case 1:var P=M-x.startGlyph;if(P>=0&&P0&&this.codePoints.every(w.isMark),this.isBase=!this.isMark,this.isLigature=this.codePoints.length>1,this.markAttachmentType=0}}]),eA}(),va=function(eA){function b(){return eA.apply(this,arguments)||this}return h(b,eA),b.planFeatures=function(M){M.add(["ljmo","vjmo","tjmo"],!1)},b.assignFeatures=function(M,x){for(var P=0,tA=0;tAmr){var lt=Wr(K,tA,M.features);lt.features.tjmo=!0,jA.push(lt)}return eA.splice.apply(eA,[b,1].concat(jA)),b+jA.length-1}function e0(eA,b,K){var sA,iA,SA,jA,M=eA[b],P=Di(eA[b].codePoints[0]),tA=eA[b-1].codePoints[0],oA=Di(tA);if(4===oA&&3===P)sA=tA,jA=M;else{2===P?(iA=eA[b-1],SA=M):(iA=eA[b-2],SA=eA[b-1],jA=M);var lt=iA.codePoints[0],qA=SA.codePoints[0];(function(b){return 4352<=b&&b<=4370})(lt)&&function(b){return 4449<=b&&b<=4469}(qA)&&(sA=Pr+28*(21*(lt-4352)+(qA-4449)))}var gt=jA&&jA.codePoints[0]||mr;if(null!=sA&&(gt===mr||function(b){return 1<=b&&b<=4546}(gt))){var pt=sA+(gt-mr);if(K.hasGlyphForCodePoint(pt)){var yt=2===oA?3:2;return eA.splice(b-yt+1,yt,Wr(K,pt,M.features)),b-yt+1}}return iA&&(iA.features.ljmo=!0),SA&&(SA.features.vjmo=!0),jA&&(jA.features.tjmo=!0),4===oA?(Na(eA,b-1,K),b+1):b}function r0(eA,b,K){var M=eA[b];if(0!==K.glyphForCodePoint(eA[b].codePoints[0]).advanceWidth){var tA=function n0(eA){switch(Di(eA)){case 4:case 5:return 1;case 2:return 2;case 3:return 3}}(eA[b-1].codePoints[0]);return eA.splice(b,1),eA.splice(b-tA,0,M)}}function i0(eA,b,K){var M=eA[b],x=eA[b].codePoints[0];if(K.hasGlyphForCodePoint(9676)){var P=Wr(K,9676,M.features),tA=0===K.glyphForCodePoint(x).advanceWidth?b:b+1;eA.splice(tA,0,P),b++}return b}var yi={categories:["O","IND","S","GB","B","FM","CGJ","VMAbv","VMPst","VAbv","VPst","CMBlw","VPre","VBlw","H","VMBlw","CMAbv","MBlw","CS","R","SUB","MPst","MPre","FAbv","FPst","FBlw","null","SMAbv","SMBlw","VMPre","ZWNJ","ZWJ","WJ","M","VS","N","HN","MAbv"],decompositions:{2507:[2503,2494],2508:[2503,2519],2888:[2887,2902],2891:[2887,2878],2892:[2887,2903],3018:[3014,3006],3019:[3015,3006],3020:[3014,3031],3144:[3142,3158],3264:[3263,3285],3271:[3270,3285],3272:[3270,3286],3274:[3270,3266],3275:[3270,3266,3285],3402:[3398,3390],3403:[3399,3390],3404:[3398,3415],3546:[3545,3530],3548:[3545,3535],3549:[3545,3535,3530],3550:[3545,3551],3635:[3661,3634],3763:[3789,3762],3955:[3953,3954],3957:[3953,3956],3958:[4018,3968],3959:[4018,3953,3968],3960:[4019,3968],3961:[4019,3953,3968],3969:[3953,3968],6971:[6970,6965],6973:[6972,6965],6976:[6974,6965],6977:[6975,6965],6979:[6978,6965],69934:[69937,69927],69935:[69938,69927],70475:[70471,70462],70476:[70471,70487],70843:[70841,70842],70844:[70841,70832],70846:[70841,70845],71098:[71096,71087],71099:[71097,71087]},stateTable:[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,3,4,4,5,0,6,7,8,9,10,11,12,13,14,15,16,0,17,18,11,19,20,21,22,0,0,0,23,0,0,2,0,0,24,0,25],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,26,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,28,0,0,0,0,0,27,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,39,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,39,0,0,47],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,0,0,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,9,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,10,11,12,13,14,0,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,9,0,0,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,10,11,12,13,14,15,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,0,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,4,4,5,0,6,7,8,9,10,11,12,13,14,15,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,48,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,49,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,16,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,0,51,0],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,16,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,28,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,28,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,0,0,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,33,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,0,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,33,0,0,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,41,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,39,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,0,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,52,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,53,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,40,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,40,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,0,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,48,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,51,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,0,0],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,0,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,52,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,0,51,0]],accepting:[!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!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],tags:[[],["broken_cluster"],["independent_cluster"],["symbol_cluster"],["standard_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["numeral_cluster"],["broken_cluster"],["independent_cluster"],["symbol_cluster"],["symbol_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["virama_terminated_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["broken_cluster"],["broken_cluster"],["numeral_cluster"],["number_joiner_terminated_cluster"],["standard_cluster"],["standard_cluster"],["numeral_cluster"]]},pe_X=1,pe_N=8,pe_H=16,pe_ZWNJ=32,pe_ZWJ=64,pe_M=128,pe_RS=8192,pe_Repha=32768,pe_Ra=65536,pe_CM=1<<17,ee={Start:1,Ra_To_Become_Reph:2,Pre_M:4,Pre_C:8,Base_C:16,After_Main:32,Above_C:64,Before_Sub:128,Below_C:256,After_Sub:512,Before_Post:1024,Post_C:2048,After_Post:4096,Final_C:8192,SMVD:16384,End:32768},h0=2|pe_Ra|pe_CM|4|2048|4096,Sa=pe_ZWJ|pe_ZWNJ,Xr=pe_H|16384,Ua={Default:{hasOldSpec:!1,virama:0,basePos:"Last",rephPos:ee.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Devanagari:{hasOldSpec:!0,virama:2381,basePos:"Last",rephPos:ee.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Bengali:{hasOldSpec:!0,virama:2509,basePos:"Last",rephPos:ee.After_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gurmukhi:{hasOldSpec:!0,virama:2637,basePos:"Last",rephPos:ee.Before_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gujarati:{hasOldSpec:!0,virama:2765,basePos:"Last",rephPos:ee.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Oriya:{hasOldSpec:!0,virama:2893,basePos:"Last",rephPos:ee.After_Main,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Tamil:{hasOldSpec:!0,virama:3021,basePos:"Last",rephPos:ee.After_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Telugu:{hasOldSpec:!0,virama:3149,basePos:"Last",rephPos:ee.After_Post,rephMode:"Explicit",blwfMode:"Post_Only"},Kannada:{hasOldSpec:!0,virama:3277,basePos:"Last",rephPos:ee.After_Post,rephMode:"Implicit",blwfMode:"Post_Only"},Malayalam:{hasOldSpec:!0,virama:3405,basePos:"Last",rephPos:ee.After_Main,rephMode:"Log_Repha",blwfMode:"Pre_And_Post"},Khmer:{hasOldSpec:!1,virama:6098,basePos:"First",rephPos:ee.Ra_To_Become_Reph,rephMode:"Vis_Repha",blwfMode:"Pre_And_Post"}},E0={6078:[6081,6078],6079:[6081,6079],6080:[6081,6080],6084:[6081,6084],6085:[6081,6085]},w0=yi.decompositions,Pa=new Q(c("AAARAAAAAABg2AAAAWYPmfDtnXuMXFUdx+/uzs7M7szudAtECGJRIMRQbUAithQWkGAKiVhNpFVRRAmIQVCDkDYICGotIA9BTCz8IeUviv7BQ2PBtBIRLBBQIWAUsKg1BKxRAqIgfs/cc+aeOXPej3tnZX7JJ/dxzj3nd36/8753Z5fUsuxgsAwcAU4Gp4BPgM+Cd4P3RjieDs4GXwLrHJ5bDy4DG8A14LvgZrAZbAF3gns0z18ALgY/B78C94NHwBPgabAE/AX8DbwM5sF/QX0yD5vFcU/wVnAgWAoOAyvAceBE8CGwBpwGzgJfAF8BXwXfAFeC68EmsBlsAXeCreA+8CB4DDwF/gh2gd3gFfAGmKxn2QzYC+wHDgRLweFgJTgWrKrnuq/GcQ04jV6fheN54EJwEbgcXAG+Q8O/j+Mt4DZwB9haz8t9Hz3a8iCN/xiOvwRP0evH6fE68AzOH+Ke2eWYhw3PcGnuxvkr4A3QaGRZB7wFLAEHg2XgiEZ/fHKcp/ceBh/A+cngFPCpRm6vM3E8l8a5gN67GMdvgqsbeX2ap9yI601gM7gN3AG20mfuo8cdOP6GpvdUg9oKxz839GV90RDO2/glxN1B790NXsN1rZll7WYRdw+c70uvTwIHNAfTO0RyL5TDmnnbc3lmRQI9UnM0dD5eovfz4FpJ/BNpXNYWV+N6Lfg0hY97JK1vn+Pur9DoQur2F7m436bHDUK8C5t5/8vruo4+97WmXG+GLmzEiBF+PDwEOowYMWLEiBEjRoxYeBw5BDqIPEfXut9yWN+vVNxfrnnmWqR/PdgENoMt4E5wD9gOHgCPgifBs2BXM99b2o3jP8F/wMRUlrXAHNgHvH0q3895J46HguXgWHAGLctmLv9VuL96qnp7jxgxYsSbCbJvuRZ97/tqxT59VVRtixEjRsThBG7OSt5zzoPT0M+cBc4T5noXOs79TqLHeZrHUeCSqeJ96gacXy2kecNU8V6Hh7yXuQlhtw7B/PO1RTkr52Aj8JNFZjYg3gOKuC/g/v6Ls2wNuAY8urg//PcIb+6RZXuDNeCS6SzbBrJWlh0DLiFHco8ed9IjzzvaWfa9sZzTcf6D9mCcnbg3PlNcH4fzS8F2MDaLdQG4dLZIJxbbaZqv4ri8k58f3+mPs66T6/TTzqDeI0aMGDGiHP5dcR8ce/xxYcWi6vOfr725uRzcjnngXVOD61Hync+9uL+Nmyfej/NHpvL56A5Jeuz7uyfo+pqcPz2Vf1NH0ttJ03pekt8SmuY/EPYy9zzbN319ym/9TL6ZIt9MHCXRdxJtoAkWTRdz472n87D9cTwYLJvuz++I6WIePo/zE8AHp4v8WLyP0nufnM6/+zoDx8+DL08P6r9+urheRtO+jD6/cdrsx3mqu8w+xH4PScKIXa5D2jeCm8Et4DbwI/BjcC/4BXgI/Bb8DuwEu8Bu8Ap4A9RaRZptnO8J9gUHgEPAoWA5OLY1qMO90GEV7q+mYWtxPBWcIYnL4p+DsPNbxfVFOP86uAr8DNc34HgTDb8Vx9sVaRFI/LtagzYjnCqpb908EX87eBA8Bh4Hf2jle/9/wvGFVv787rrZZy8h7qtgDOuFOmiBuXYRvg/O9wMHgXeB97SLspk4sq0OI/q9v13+ek+sh3zYSRp9jrYorw9ll1/GRzR+KotYZSHf8laVP2lvpA/8OGdPMk59hqtXZ+L8nHbxvWwqO65ryu+fT3VZz+l4dET7L0R072ljsMyzTpaJqQxsbL8M9WajY789DO85XMp/Dcp3Qztdn+9qf/a97ZWK8PXc3G+TpC/nv8Mncy7ZvICF302P5O+aNiOtLdTXd+D4Q7DVwfcvWvx9zTEJ/o5iG3R8YAjGNFseha5PGuZKz7b7xxXbOrXMcu5eJSo//rXdH/73Enz6L1q/X+fyIu8wZGtNBmkjkzNZNgP2AvuBg2bysKUzduXn/66JtNeN4PCZvO0/x7Ujdn4VnYOvRJzjZ/I+9sQZeftX2Tc1RPcPz/Tf4/si0g+t5Mq+kfZjZL34Mc5ul3PPnE7TOxvHK2qDaZ+L++db2HyYqMo/qVnb/P8uH8/rmnFxR0k6DCu/rjj/RxT7KGUSWgbd+LMQuEgYB1zsk2qtvJD8v5AhdfdttbEunSxbcJD9Zf7chqp1Hlbe7FK1/aPVTfp7FgtC1yGGiSncFK/DhZvi+epZta0WWjlsfDZMyPRdSPrryqSSKnXx1bkq/Ye9TlRpk7Lrjq1UrfdC9X+MtKqwP6+3a/4pJFUZF0pZZpv91MYjMBaRRXbxpho5zQmUY3F+Pt4o7rvQrBXPdm00TaE24uMadaM2meLSI7iu071t3er3b6ZLi8JEde3qw+6zGv+ycF5kaRBh/m1T/7Yl/mMyTuMwadP4xL9ifjJpNwbvDZRJ8G8vnqV/Wf12aa/kyOdl69+BspTsXzGueE6E+JfZnvmXIfNPW+FfXkjb1YmqPNpnLP3b61fHCj/X5tzGANf2y3yqvC7Jv7btV4TVbdammI9l/g0dS5lNxLrk2j9r8xjjxhBQnygg0lgg/bOrfyct+udJi/Yrk0lFnxC7f+5kRbsNmcexfrubt0X/rGvLqrGSnYv3ZPHEe8r7lvMvUfi2LOu/2dg8LrRtQt2yfcv8r5IU70VkIs6nbebUXf0M/o7Znl39Sdoz+X1oEb5N8ffF67qhPfPP6eoUbxf+GRf/6sRnvaSdmw+Bf1VxmbD+2sa//DU7t/Gv2PfKpKdrBP92Ojk+IvqX16ks/2qxbL8EZnc2HqsgYuqPuzZV+I3RbujbDm+T0PmWCVO/5jqftp1zy+wSA6s0JWtp2z5e1oZV+yMsjB3ZXolsv0Ulrv01v3/iKrF94Qtbt9siCnmeb6fjjf59KnLk1xaEbvtvFnFirGvEOqmycQrbm/IMsXd3P28uh4nM3swXRER717OiX8kc7K2qqyn2p3maFGU/aruP5VCv+PraoTYU8yUmmbDwcYo6pusnM486xdoga4dkPCb1pK7Sfc6ebvkd4qeAtQcd/N63bB3lU3dlUnUf38VyvqCqK7JxlNSd7lydrDlm+/uqHiRvl30Nrp/n9zpkZRjoJ3V1diyP05rIYXHYs+w+D5+WMS8b5gZtKcuX0KT5d/WwtB97VnyvY6rjMukI56HI0rFJPwt8PjT/1OXzSbcMeEmdh294qvKK4rNu7j4n3LNZg8TKXwafv025U+XvKjHsT8Q7/7LGaJt9lAh7Asz3uv0XEX6t0duDoWN/93wmh92XpUHmCKb9GALbG+rZP3AfNbQPKKv/jpF/bP0JXfuW1QYk7dhljcyvk5mw+933Hpo1g26PQ2ZP6zVmTJt47P25jncD9vPwGS+q9QS/V6RaY8j8K8LmvUr9HfYCpH5OWL9lZY+Sv6pesHCJHbtrf9k6etZvf0G1L0ja4cAe1UT/s3zdCe3/Q5/n372wMc97/E1Qh0Tbmfwh3m/V9On72tNnrCF1sJkVe1EyXMdBa7+lHMsk44zMF6St9e2djNnbm8ybpHkq+gbbemMaH0UZmD8obKGrk7r+nt+3bE7o83YZp/vqOKdv6PzJNN6mTJsI/51XR7i2ZrGA5B6zFwnjzxmqPjaGfW3tZNrz1eljq29mOOqeCfF/irRt87PNw0uXSVAvrmOMNT569MptsYaV0sic/wbY13e8hPrb9K2ySUJ0j6G/Lu0U4qpTrR23jMp6m5hU+YTaWCeh9aIsm/rqUHV4bFv42kgnZdfH1PUj1D7DVH9d8khRN1zFRl/+/TW//qxL1uH83+mk3H+SvRtS2TDU90nX2TpM6/1xzZpZtoYdK763dqlz0f6uNeFehcs+H/nbGP77MpX06n/ofpzP+tVmTUvRtVuX/cjS67OE5kRBrxyJ+w/dPo7r+9cO1160e3gqu0S2uW7PjN/L6ns/UfMf10Lai87frJ+3KndAfc8yTf1M3T4s6qm4/yh7/2GSkG8UMw//DvRLgbYZSEOxr0LCWvRdjfh9XGzfqN4NivfZd7rsmFp08zmbssrKJEuTfVMZopdpbuwSrhNv3/N2s+0PDG3KNB6RMrFvJHv6B85HXObAoWsd3zm3i+6uZYytv+5+pohbpo6+tpZJFfmGlrcMf4c8b1Pe2OUIsaXJrinCTfaxtZOt+NYnU3hIfQlN20Z/1+dt7JaqLsbIzycNWZmrlNg2Dc2/LJ1T+T6WrrYSml4Ku7ik7yIx2opJD51vU9UfVRmrqL8u/olZj0PyCLV5irxcdKoi/6rKb8qTrHsnhW9jyZH/nSpeWDzxd9769uQ016lgUuf2pAfKPhu2FpfZL2Yb9snLNl/fNIepXaUsj4vNXCXUZ75px8ojNP8UPvAta2g6fb+F1ckZuneshv1vGXXDeyRRrN/bBPS1Jul+l+7zW86R7Wv63WXyDpt/RxraRjvC+TC3O61/Sqj/prag8x372yQivn+XwudrI2X2E2KdtJEov52e0L+uv4FO3p/rvssgsL8F4d/z9PzlWS94m8fqS3361Fi+6qaVYHwi9Yz4iH2fobIj+45cpz/TUaarr/4+z+vaWtVtyAX2d1LG8W9C3f+F1mnf36/k4w3YPrLv+XBVXCJs3cr+n4MKJuLv/fN9GhNdXVP5pJMN9vFi3rpv3/r8Ywg3SYp66zNOsO8QGcxPpnmRS/1mvmJjju3v7absI2xspQrvs1dNbjOj/wP7h1RlZyKGy8occ408UL8En4v6xfC/K3z52XzJd62T8vuZGGsxo/6O46ntmNqqFb/jps2/hHV4rPKH0svT4pstU7t2tZ9u/ZdqbJL1MwP6O86Fyt4jYaIrGz9mjEt8lFL4PtVE6votG2P6fpdf/GZRse7s3bf4BtSl/DIbKMctx++Z+8o6K6z9FPOwKsRmXiaNl7C+6NYRpjlbqG1j72f49qsuY4brd/amb4ZVc8TQ+sSH985LrEe8iPWJnfPrJRbWbb+dwn4x6o+r/aS2S7w3qWt//LnYz2ntE0vH1uDcyKatx1rH+EiMPEN1SZG/iz6+9o01Rob6O7Q+xLZ1jHobK61U+pWVvo2EpuWqzzD6Poa+pvhli0wn8Zq/72Mzm2d90o5VN1x9ZKuzbTgvqWwUIin8FSpl1CXXvFRxU0iozVPYJDRtF3uFphn6XAyJUUdD7SjTJ8v6n9fVbVObkKWp001lc9VRlqdOf5v0ZM+bymdbfp1NfG0bq27Y5JMyfxeJkU6o/inKH8O2Zfgidb6h/g3VJ7QcVbWL0Pxt6rlrPqa4KfQ25a2zl4/E8GdM/4fK/wA=","base64")),C0=new d({stateTable:[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,14,15,16,17],[0,0,0,18,19,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,28,29,30,31,32,33,0,34,0,0,35,36,0,0,37,0],[0,0,0,38,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,39,0,0,0,40,41,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,12,43,0,0,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,0,43,0,0,0,0],[0,0,0,45,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,50,0,0,51,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,52,0,0,0,0,0,0,0,0],[0,0,0,53,54,55,56,57,58,0,59,0,0,60,61,0,0,62,0],[0,0,0,4,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,63,64,0,0,40,41,0,9,0,10,0,0,0,42,0,63,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,0,2,16,0],[0,0,0,18,65,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,0,0],[0,0,0,69,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,73,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,75,0,0,0,76,77,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,25,79,0,0,0,0],[0,0,0,18,19,20,74,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,81,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,86,0,0,87,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,88,0,0,0,0,0,0,0,0],[0,0,0,18,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,89,90,0,0,76,77,0,23,0,24,0,0,0,78,0,89,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,0,0],[0,0,0,94,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,96,0,0,0,97,98,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,35,100,0,0,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,102,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,107,0,0,108,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,109,0,0,0,0,0,0,0,0],[0,0,0,28,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,110,111,0,0,97,98,0,33,0,34,0,0,0,99,0,110,0,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,0,0],[0,0,0,0,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,0,0,115,116,117,118,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,42,0,0,0,0],[0,39,0,122,0,123,123,8,9,0,10,0,0,0,42,0,39,0,0],[0,124,64,0,0,0,0,0,0,0,0,0,0,0,0,0,124,0,0],[0,39,0,0,0,121,125,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,126,126,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,47,47,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,128,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,129,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,50,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,134,0,0,0,0,0,0,0,0],[0,0,0,135,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,136,0,0,0,137,138,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,60,140,0,0,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,0,140,0,0,0,0],[0,0,0,142,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,147,0,0,148,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,149,0,0,0,0,0,0,0,0],[0,0,0,53,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,150,151,0,0,137,138,0,58,0,59,0,0,0,139,0,150,0,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,0,0],[0,0,0,155,116,156,157,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,75,3,4,5,159,160,8,161,0,162,0,11,12,163,0,75,16,0],[0,0,0,0,0,40,164,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,0,165,0,0,0,0],[0,124,64,0,0,40,164,0,9,0,10,0,0,0,42,0,124,0,0],[0,0,0,0,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,71,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,167,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,168,0,0,0,0,0,0,0,0],[0,0,0,0,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,0,79,0,0,0,0],[0,0,0,169,170,171,172,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,75,0,176,0,177,177,22,23,0,24,0,0,0,78,0,75,0,0],[0,178,90,0,0,0,0,0,0,0,0,0,0,0,0,0,178,0,0],[0,75,0,0,0,175,179,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,180,180,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,83,83,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,182,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,183,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,86,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,188,0,0,0,0,0,0,0,0],[0,0,0,189,170,190,191,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,76,193,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,0,194,0,0,0,0],[0,178,90,0,0,76,193,0,23,0,24,0,0,0,78,0,178,0,0],[0,0,0,0,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,195,196,197,198,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,96,0,202,0,203,203,32,33,0,34,0,0,0,99,0,96,0,0],[0,204,111,0,0,0,0,0,0,0,0,0,0,0,0,0,204,0,0],[0,96,0,0,0,201,205,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,206,206,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,104,104,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,208,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,209,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,107,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,214,0,0,0,0,0,0,0,0],[0,0,0,215,196,216,217,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,97,219,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,0,220,0,0,0,0],[0,204,111,0,0,97,219,0,33,0,34,0,0,0,99,0,204,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,223,0,0,0,40,224,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,119,225,0,0,0,0],[0,0,0,115,116,117,222,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,115,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,226,64,0,0,40,224,0,9,0,10,0,0,0,42,0,226,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,39,0,0,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,44,44,8,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,227,0,228,229,0,9,0,10,0,0,230,0,0,0,0,0],[0,39,0,122,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,231,231,49,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,232,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,131,131,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,234,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,235,236,237,238,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,0,0,240,241,242,243,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,136,0,247,0,248,248,57,58,0,59,0,0,0,139,0,136,0,0],[0,249,151,0,0,0,0,0,0,0,0,0,0,0,0,0,249,0,0],[0,136,0,0,0,246,250,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,251,251,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,144,144,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,253,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,254,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,147,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,259,0,0,0,0,0,0,0,0],[0,0,0,260,241,261,262,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,137,264,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,0,265,0,0,0,0],[0,249,151,0,0,137,264,0,58,0,59,0,0,0,139,0,249,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,158,225,0,0,0,0],[0,0,0,155,116,156,222,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,155,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,43,266,266,8,161,0,24,0,0,12,267,0,0,0,0],[0,75,0,176,43,268,268,269,161,0,24,0,0,0,267,0,75,0,0],[0,0,0,0,0,270,0,0,271,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,272,0,0,0,0,0,0,0,0],[0,273,274,0,0,40,41,0,9,0,10,0,0,0,42,0,273,0,0],[0,0,0,40,0,123,123,8,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,121,275,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,276,0,0,0,0,0,0,0,0],[0,0,0,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,279,0,0,0,76,280,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,173,281,0,0,0,0],[0,0,0,169,170,171,278,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,169,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,282,90,0,0,76,280,0,23,0,24,0,0,0,78,0,282,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,75,0,0,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,80,80,22,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,283,0,284,285,0,23,0,24,0,0,286,0,0,0,0,0],[0,75,0,176,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,0,0,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,287,287,85,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,288,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,185,185,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,290,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,291,292,293,294,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,192,281,0,0,0,0],[0,0,0,189,170,190,278,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,189,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,76,0,177,177,22,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,175,296,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,299,0,0,0,97,300,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,199,301,0,0,0,0],[0,0,0,195,196,197,298,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,195,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,302,111,0,0,97,300,0,33,0,34,0,0,0,99,0,302,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,96,0,0,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,101,101,32,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,303,0,304,305,0,33,0,34,0,0,306,0,0,0,0,0],[0,96,0,202,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,307,307,106,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,308,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,211,211,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,310,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,311,312,313,314,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,218,301,0,0,0,0],[0,0,0,215,196,216,298,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,215,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,97,0,203,203,32,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,201,316,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,0,225,0,0,0,0],[0,0,0,317,318,319,320,8,9,0,10,0,0,321,322,0,0,16,0],[0,223,0,323,0,123,123,8,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,0,0,121,324,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,325,318,326,327,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,64,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,230,0,0,0,0,0],[0,0,0,227,0,228,121,0,9,0,10,0,0,230,0,0,0,0,0],[0,0,0,227,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,49,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,46,0,0],[0,0,0,0,0,329,329,133,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,330,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,236,237,238,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,237,237,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,332,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,333,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,337,0,0,0,137,338,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,244,339,0,0,0,0],[0,0,0,240,241,242,336,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,240,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,340,151,0,0,137,338,0,58,0,59,0,0,0,139,0,340,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,136,0,0,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,141,141,57,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,341,0,342,343,0,58,0,59,0,0,344,0,0,0,0,0],[0,136,0,247,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,0,0,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,345,345,146,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,346,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,256,256,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,348,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,349,350,351,352,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,263,339,0,0,0,0],[0,0,0,260,241,261,336,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,260,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,137,0,248,248,57,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,246,354,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,126,126,8,23,0,0,0,0,0,0,0,0,0,0],[0,355,90,0,0,121,125,0,9,0,10,0,0,0,42,0,355,0,0],[0,0,0,0,0,356,356,269,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,357,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,270,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,363,0,0,0,0,0,0,0,0],[0,0,0,364,116,365,366,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,40,0,121,121,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,0,281,0,0,0,0],[0,0,0,369,370,371,372,22,23,0,24,0,0,373,374,0,0,27,0],[0,279,0,375,0,177,177,22,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,0,0,175,376,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,377,370,378,379,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,90,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,286,0,0,0,0,0],[0,0,0,283,0,284,175,0,23,0,24,0,0,286,0,0,0,0,0],[0,0,0,283,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,85,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,82,0,0],[0,0,0,0,0,381,381,187,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,382,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,292,293,294,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,293,293,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,384,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,385,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,76,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,0,301,0,0,0,0],[0,0,0,387,388,389,390,32,33,0,34,0,0,391,392,0,0,37,0],[0,299,0,393,0,203,203,32,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,0,0,201,394,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,395,388,396,397,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,111,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,306,0,0,0,0,0],[0,0,0,303,0,304,201,0,33,0,34,0,0,306,0,0,0,0,0],[0,0,0,303,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,106,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,0,0],[0,0,0,0,0,399,399,213,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,400,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,312,313,314,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,313,313,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,402,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,403,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,97,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,407,0,0,0,40,408,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,321,409,0,0,0,0],[0,0,0,317,318,319,406,8,9,0,10,0,0,321,322,0,0,16,0],[0,0,0,317,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,410,64,0,0,40,408,0,9,0,10,0,0,0,42,0,410,0,0],[0,223,0,0,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,323,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,328,409,0,0,0,0],[0,0,0,325,318,326,406,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,325,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,0,0,0,133,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,130,0,0],[0,0,0,0,0,411,411,239,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,412,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,413,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,0,339,0,0,0,0],[0,0,0,414,415,416,417,57,58,0,59,0,0,418,419,0,0,62,0],[0,337,0,420,0,248,248,57,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,0,0,246,421,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,422,415,423,424,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,151,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,344,0,0,0,0,0],[0,0,0,341,0,342,246,0,58,0,59,0,0,344,0,0,0,0,0],[0,0,0,341,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,146,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,0,0],[0,0,0,0,0,426,426,258,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,427,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,350,351,352,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,351,351,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,429,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,430,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,137,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,432,116,433,434,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,0,0,180,180,269,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,359,359,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,437,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,438,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,443,274,0,0,0,0,0,0,0,0,0,0,0,0,0,443,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,367,225,0,0,0,0],[0,0,0,364,116,365,445,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,364,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,448,0,0,0,76,449,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,373,450,0,0,0,0],[0,0,0,369,370,371,447,22,23,0,24,0,0,373,374,0,0,27,0],[0,0,0,369,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,451,90,0,0,76,449,0,23,0,24,0,0,0,78,0,451,0,0],[0,279,0,0,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,375,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,380,450,0,0,0,0],[0,0,0,377,370,378,447,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,377,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,0,0,0,187,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,184,0,0],[0,0,0,0,0,452,452,295,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,453,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,454,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,457,0,0,0,97,458,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,391,459,0,0,0,0],[0,0,0,387,388,389,456,32,33,0,34,0,0,391,392,0,0,37,0],[0,0,0,387,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,460,111,0,0,97,458,0,33,0,34,0,0,0,99,0,460,0,0],[0,299,0,0,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,393,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,398,459,0,0,0,0],[0,0,0,395,388,396,456,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,395,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,0,0,0,213,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,210,0,0],[0,0,0,0,0,461,461,315,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,462,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,463,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,0,409,0,0,0,0],[0,0,0,464,465,466,467,8,9,0,10,0,0,468,469,0,0,16,0],[0,407,0,470,0,123,123,8,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,0,0,121,471,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,472,465,473,474,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,0,0,0,0,239,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,236,0,0],[0,0,0,0,0,0,476,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,479,0,0,0,137,480,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,418,481,0,0,0,0],[0,0,0,414,415,416,478,57,58,0,59,0,0,418,419,0,0,62,0],[0,0,0,414,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,482,151,0,0,137,480,0,58,0,59,0,0,0,139,0,482,0,0],[0,337,0,0,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,420,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,425,481,0,0,0,0],[0,0,0,422,415,423,478,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,422,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,0,0,0,258,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,0,0],[0,0,0,0,0,483,483,353,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,484,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,485,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,435,225,0,0,0,0],[0,0,0,432,116,433,445,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,432,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,486,486,361,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,487,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,440,440,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,489,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,490,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,495,0,496,497,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,0,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,0,225,0,0,0,0],[0,0,0,0,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,0,450,0,0,0,0],[0,0,0,499,500,501,502,22,23,0,24,0,0,503,504,0,0,27,0],[0,448,0,505,0,177,177,22,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,0,0,175,506,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,507,500,508,509,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,0,0,0,0,295,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,292,0,0],[0,0,0,0,0,0,511,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,0,459,0,0,0,0],[0,0,0,512,513,514,515,32,33,0,34,0,0,516,517,0,0,37,0],[0,457,0,518,0,203,203,32,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,0,0,201,519,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,520,513,521,522,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,0,0,0,0,315,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,312,0,0],[0,0,0,0,0,0,524,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,527,0,0,0,40,528,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,468,529,0,0,0,0],[0,0,0,464,465,466,526,8,9,0,10,0,0,468,469,0,0,16,0],[0,0,0,464,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,530,64,0,0,40,528,0,9,0,10,0,0,0,42,0,530,0,0],[0,407,0,0,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,470,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,475,529,0,0,0,0],[0,0,0,472,465,473,526,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,472,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,40,0,0],[0,0,0,0,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,0,481,0,0,0,0],[0,0,0,531,532,533,534,57,58,0,59,0,0,535,536,0,0,62,0],[0,479,0,537,0,248,248,57,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,0,0,246,538,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,539,532,540,541,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,0,0,0,0,353,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,350,0,0],[0,0,0,0,0,0,543,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,361,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,358,0,0],[0,0,0,0,0,544,544,442,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,545,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,492,492,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,547,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,548,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,274,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,498,0,0,0,0,0],[0,0,0,495,0,496,368,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,495,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,553,0,0,0,76,554,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,503,555,0,0,0,0],[0,0,0,499,500,501,552,22,23,0,24,0,0,503,504,0,0,27,0],[0,0,0,499,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,556,90,0,0,76,554,0,23,0,24,0,0,0,78,0,556,0,0],[0,448,0,0,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,505,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,510,555,0,0,0,0],[0,0,0,507,500,508,552,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,507,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,76,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,559,0,0,0,97,560,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,516,561,0,0,0,0],[0,0,0,512,513,514,558,32,33,0,34,0,0,516,517,0,0,37,0],[0,0,0,512,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,562,111,0,0,97,560,0,33,0,34,0,0,0,99,0,562,0,0],[0,457,0,0,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,518,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,523,561,0,0,0,0],[0,0,0,520,513,521,558,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,520,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0],[0,0,0,0,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,0,529,0,0,0,0],[0,0,0,563,66,564,565,8,9,0,10,0,0,566,68,0,0,16,0],[0,527,0,567,0,123,123,8,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,0,0,121,568,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,569,66,570,571,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,575,0,0,0,137,576,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,535,577,0,0,0,0],[0,0,0,531,532,533,574,57,58,0,59,0,0,535,536,0,0,62,0],[0,0,0,531,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,578,151,0,0,137,576,0,58,0,59,0,0,0,139,0,578,0,0],[0,479,0,0,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,537,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,542,577,0,0,0,0],[0,0,0,539,532,540,574,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,539,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,137,0,0],[0,0,0,0,0,0,0,442,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,439,0,0],[0,0,0,0,0,579,579,494,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,580,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,581,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,0,555,0,0,0,0],[0,0,0,582,91,583,584,22,23,0,24,0,0,585,93,0,0,27,0],[0,553,0,586,0,177,177,22,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,0,0,175,587,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,588,91,589,590,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,0,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,0,561,0,0,0,0],[0,0,0,592,112,593,594,32,33,0,34,0,0,595,114,0,0,37,0],[0,559,0,596,0,203,203,32,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,0,0,201,597,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,598,112,599,600,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,566,165,0,0,0,0],[0,0,0,563,66,564,67,8,9,0,10,0,0,566,68,0,0,16,0],[0,0,0,563,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,527,0,0,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,567,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,572,165,0,0,0,0],[0,0,0,569,66,570,67,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,569,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,0,577,0,0,0,0],[0,0,0,603,152,604,605,57,58,0,59,0,0,606,154,0,0,62,0],[0,575,0,607,0,248,248,57,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,0,0,246,608,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,609,152,610,611,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,0,0,0,0,494,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,491,0,0],[0,0,0,0,0,0,613,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,585,194,0,0,0,0],[0,0,0,582,91,583,92,22,23,0,24,0,0,585,93,0,0,27,0],[0,0,0,582,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,553,0,0,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,586,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,591,194,0,0,0,0],[0,0,0,588,91,589,92,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,588,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,595,220,0,0,0,0],[0,0,0,592,112,593,113,32,33,0,34,0,0,595,114,0,0,37,0],[0,0,0,592,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,559,0,0,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,596,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,601,220,0,0,0,0],[0,0,0,598,112,599,113,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,598,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,606,265,0,0,0,0],[0,0,0,603,152,604,153,57,58,0,59,0,0,606,154,0,0,62,0],[0,0,0,603,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,575,0,0,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,607,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,612,265,0,0,0,0],[0,0,0,609,152,610,153,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,609,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,549,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0]],accepting:[!1,!0,!0,!0,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!1,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!1,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!1,!1,!0,!1,!0,!0,!1,!0,!0,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!1,!0,!1,!0,!0,!0,!0,!1,!1,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!1,!0,!0,!0,!0,!1,!1,!1,!0,!1,!0,!0,!0,!0,!1,!1,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!1,!0,!0,!0,!0,!1,!1,!1,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!1,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!1,!0,!0,!1,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!0,!0,!0,!1,!1,!1,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!0],tags:[[],["broken_cluster"],["consonant_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["consonant_syllable"],["broken_cluster"],["symbol_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["broken_cluster"],["broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],[],["broken_cluster"],["symbol_cluster"],[],["symbol_cluster"],["symbol_cluster"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["symbol_cluster"],["symbol_cluster"],["symbol_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],["symbol_cluster"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],[],["broken_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],[],["consonant_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],[],["vowel_syllable"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],[],[],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],["standalone_cluster"],[],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],[],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],[],[],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],[],[],[],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],["consonant_syllable"],["vowel_syllable"],["standalone_cluster"]]}),En=function(eA){function b(){return eA.apply(this,arguments)||this}return h(b,eA),b.planFeatures=function(M){M.addStage(Q0),M.addStage(["locl","ccmp"]),M.addStage(M0),M.addStage("nukt"),M.addStage("akhn"),M.addStage("rphf",!1),M.addStage("rkrf"),M.addStage("pref",!1),M.addStage("blwf",!1),M.addStage("abvf",!1),M.addStage("half",!1),M.addStage("pstf",!1),M.addStage("vatu"),M.addStage("cjct"),M.addStage("cfar",!1),M.addStage(p0),M.addStage({local:["init"],global:["pres","abvs","blws","psts","haln","dist","abvm","blwm","calt","clig"]}),M.unicodeScript=function is(eA){return Gi[eA]}(M.script),M.indicConfig=Ua[M.unicodeScript]||Ua.Default,M.isOldSpec=M.indicConfig.hasOldSpec&&"2"!==M.script[M.script.length-1]},b.assignFeatures=function(M,x){for(var P=function(sA){var iA=x[sA].codePoints[0],SA=E0[iA]||w0[iA];if(SA){var jA=SA.map(function(lt){var qA=M.font.glyphForCodePoint(lt);return new sr(M.font,qA.id,[lt],x[sA].features)});x.splice.apply(x,[sA,1].concat(jA))}},tA=x.length-1;tA>=0;tA--)P(tA)},b}(hr);function xi(eA){return Pa.get(eA.codePoints[0])>>8}function Ra(eA){return 1<<(255&Pa.get(eA.codePoints[0]))}N(En,"zeroMarkWidths","NONE");var Fi=function(b,K,M,x){this.category=b,this.position=K,this.syllableType=M,this.syllable=x};function Q0(eA,b){for(var P,K=0,M=0,x=B(C0.match(b.map(xi)));!(P=x()).done;){var tA=P.value,oA=tA[0],sA=tA[1],iA=tA[2];if(oA>M){++K;for(var SA=M;SAGt);break;case"First":for(var we=(yt=iA)+1;weVe&&!(Dr(b[Oe])||ln&&b[Oe].shaperInfo.category===pe_H);Oe--);if(b[Oe].shaperInfo.category!==pe_H&&Oe>Ve){var fe=b[Ve];b.splice.apply(b,[Ve,0].concat(b.splice(Ve+1,Oe-Ve))),b[Oe]=fe}break}for(var qe=ee.Start,Ue=iA;UeiA;$e--)if(b[$e-1].shaperInfo.position!==ee.Pre_M){Fe.position=b[$e-1].shaperInfo.position;break}}else Fe.position!==ee.SMVD&&(qe=Fe.position)}for(var Rn=yt,gn=yt+1;gniA&&!Dr(b[zn]))}}}}function p0(eA,b,K){for(var M=K.indicConfig,x=eA._layoutEngine.engine.GSUBProcessor.features,P=0,tA=Yi(b,0);P=ee.Base_C){if(oA&&sA+1ee.Base_C&&sA--;break}if(sA===tA&&PP&&!(b[jA].shaperInfo.category&(pe_M|Xr));)jA--;lr(b[jA])&&b[jA].shaperInfo.position!==ee.Pre_M?jA+1P;lt--)if(b[lt-1].shaperInfo.position===ee.Pre_M){var qA=lt-1;qAP&&b[pt].shaperInfo.position===ee.SMVD;)pt--;if(lr(b[pt]))for(var $t=sA+1;$tP&&!(b[ge-1].shaperInfo.category&(pe_M|Xr));)ge--;if(ge>P&&b[ge-1].shaperInfo.category===pe_M)for(var Ee=ie,we=sA+1;weP&&lr(b[ge-1])&&ge=eA.length)return b;for(var K=eA[b].shaperInfo.syllable;++b=0;tA--)P(tA)},b}(hr);function La(eA){return m0.get(eA.codePoints[0])}N(de,"zeroMarkWidths","BEFORE_GPOS");var v0=function(b,K,M){this.category=b,this.syllableType=K,this.syllable=M};function y0(eA,b){for(var x,K=0,M=B(D0.match(b.map(La)));!(x=M()).done;){var P=x.value,tA=P[0],oA=P[1],sA=P[2];++K;for(var iA=tA;iA<=oA;iA++)b[iA].shaperInfo=new v0(I0[La(b[iA])],sA[0],K);for(var SA="R"===b[tA].shaperInfo.category?1:Math.min(3,oA-tA),jA=tA;jA1)for(P=M+1;P=eA.length)return b;for(var K=eA[b].shaperInfo.syllable;++b=0;Gn--)this.glyphs.splice(ge[Gn],1);return this.glyphs[this.glyphIterator.index]=se,!0}}return!1;case 5:return this.applyContext(P);case 6:return this.applyChainingContext(P);case 7:return this.applyLookup(P.lookupType,P.extension);default:throw new Error("GSUB lookupType ".concat(x," is not supported"))}},b}(Qi),U0=function(eA){function b(){return eA.apply(this,arguments)||this}h(b,eA);var K=b.prototype;return K.applyPositionValue=function(x,P){var tA=this.positions[this.glyphIterator.peekIndex(x)];null!=P.xAdvance&&(tA.xAdvance+=P.xAdvance),null!=P.yAdvance&&(tA.yAdvance+=P.yAdvance),null!=P.xPlacement&&(tA.xOffset+=P.xPlacement),null!=P.yPlacement&&(tA.yOffset+=P.yPlacement);var oA=this.font._variationProcessor,sA=this.font.GDEF&&this.font.GDEF.itemVariationStore;oA&&sA&&(P.xPlaDevice&&(tA.xOffset+=oA.getDelta(sA,P.xPlaDevice.a,P.xPlaDevice.b)),P.yPlaDevice&&(tA.yOffset+=oA.getDelta(sA,P.yPlaDevice.a,P.yPlaDevice.b)),P.xAdvDevice&&(tA.xAdvance+=oA.getDelta(sA,P.xAdvDevice.a,P.xAdvDevice.b)),P.yAdvDevice&&(tA.yAdvance+=oA.getDelta(sA,P.yAdvDevice.a,P.yAdvDevice.b)))},K.applyLookup=function(x,P){switch(x){case 1:var tA=this.coverageIndex(P.coverage);if(-1===tA)return!1;switch(P.version){case 1:this.applyPositionValue(0,P.value);break;case 2:this.applyPositionValue(0,P.values.get(tA))}return!0;case 2:var oA=this.glyphIterator.peek();if(!oA)return!1;var sA=this.coverageIndex(P.coverage);if(-1===sA)return!1;switch(P.version){case 1:for(var jA,SA=B(P.pairSets.get(sA));!(jA=SA()).done;){var lt=jA.value;if(lt.secondGlyph===oA.id)return this.applyPositionValue(0,lt.value1),this.applyPositionValue(1,lt.value2),!0}return!1;case 2:var qA=this.getClassID(this.glyphIterator.cur.id,P.classDef1),gt=this.getClassID(oA.id,P.classDef2);if(-1===qA||-1===gt)return!1;var pt=P.classRecords.get(qA).get(gt);return this.applyPositionValue(0,pt.value1),this.applyPositionValue(1,pt.value2),!0}case 3:var yt=this.glyphIterator.peekIndex(),Gt=this.glyphs[yt];if(!Gt)return!1;var $t=P.entryExitRecords[this.coverageIndex(P.coverage)];if(!$t||!$t.exitAnchor)return!1;var qt=P.entryExitRecords[this.coverageIndex(P.coverage,Gt.id)];if(!qt||!qt.entryAnchor)return!1;var ie=this.getAnchor(qt.entryAnchor),ge=this.getAnchor($t.exitAnchor),Ee=this.positions[this.glyphIterator.index],we=this.positions[yt];switch(this.direction){case"ltr":Ee.xAdvance=ge.x+Ee.xOffset;var He=ie.x+we.xOffset;we.xAdvance-=He,we.xOffset-=He;break;case"rtl":Ee.xAdvance-=He=ge.x+Ee.xOffset,Ee.xOffset-=He,we.xAdvance=ie.x+we.xOffset}return this.glyphIterator.flags.rightToLeft?(this.glyphIterator.cur.cursiveAttachment=yt,Ee.yOffset=ie.y-ge.y):(Gt.cursiveAttachment=this.glyphIterator.index,Ee.yOffset=ge.y-ie.y),!0;case 4:var sn=this.coverageIndex(P.markCoverage);if(-1===sn)return!1;for(var Je=this.glyphIterator.index;--Je>=0&&(this.glyphs[Je].isMark||this.glyphs[Je].ligatureComponent>0););if(Je<0)return!1;var se=this.coverageIndex(P.baseCoverage,this.glyphs[Je].id);if(-1===se)return!1;var ln=P.markArray[sn];return this.applyAnchor(ln,P.baseArray[se][ln.class],Je),!0;case 5:var Oe=this.coverageIndex(P.markCoverage);if(-1===Oe)return!1;for(var fe=this.glyphIterator.index;--fe>=0&&this.glyphs[fe].isMark;);if(fe<0)return!1;var qe=this.coverageIndex(P.ligatureCoverage,this.glyphs[fe].id);if(-1===qe)return!1;var Ue=P.ligatureArray[qe],Fe=this.glyphIterator.cur,$e=this.glyphs[fe],Rn=$e.ligatureID&&$e.ligatureID===Fe.ligatureID&&Fe.ligatureComponent>0?Math.min(Fe.ligatureComponent,$e.codePoints.length)-1:$e.codePoints.length-1,gn=P.markArray[Oe];return this.applyAnchor(gn,Ue[Rn][gn.class],fe),!0;case 6:var Gn=this.coverageIndex(P.mark1Coverage);if(-1===Gn)return!1;var Jn=this.glyphIterator.peekIndex(-1),vn=this.glyphs[Jn];if(!vn||!vn.isMark)return!1;var Mn=this.glyphIterator.cur,On=!1;if(Mn.ligatureID===vn.ligatureID?Mn.ligatureID?Mn.ligatureComponent===vn.ligatureComponent&&(On=!0):On=!0:(Mn.ligatureID&&!Mn.ligatureComponent||vn.ligatureID&&!vn.ligatureComponent)&&(On=!0),!On)return!1;var kn=this.coverageIndex(P.mark2Coverage,vn.id);if(-1===kn)return!1;var me=P.mark1Array[Gn];return this.applyAnchor(me,P.mark2Array[kn][me.class],Jn),!0;case 7:return this.applyContext(P);case 8:return this.applyChainingContext(P);case 9:return this.applyLookup(P.lookupType,P.extension);default:throw new Error("Unsupported GPOS table: ".concat(x))}},K.applyAnchor=function(x,P,tA){var oA=this.getAnchor(P),sA=this.getAnchor(x.markAnchor),SA=this.positions[this.glyphIterator.index];SA.xOffset=oA.x-sA.x,SA.yOffset=oA.y-sA.y,this.glyphIterator.cur.markAttachment=tA},K.getAnchor=function(x){var P=x.xCoordinate,tA=x.yCoordinate,oA=this.font._variationProcessor,sA=this.font.GDEF&&this.font.GDEF.itemVariationStore;return oA&&sA&&(x.xDeviceTable&&(P+=oA.getDelta(sA,x.xDeviceTable.a,x.xDeviceTable.b)),x.yDeviceTable&&(tA+=oA.getDelta(sA,x.yDeviceTable.a,x.yDeviceTable.b))),{x:P,y:tA}},K.applyFeatures=function(x,P,tA){eA.prototype.applyFeatures.call(this,x,P,tA);for(var oA=0;oA>16;if(0===x)switch(M>>8){case 0:return 173===M;case 3:return 847===M;case 6:return 1564===M;case 23:return 6068<=M&&M<=6069;case 24:return 6155<=M&&M<=6158;case 32:return 8203<=M&&M<=8207||8234<=M&&M<=8238||8288<=M&&M<=8303;case 254:return 65024<=M&&M<=65039||65279===M;case 255:return 65520<=M&&M<=65528;default:return!1}else switch(x){case 1:return 113824<=M&&M<=113827||119155<=M&&M<=119162;case 14:return 917504<=M&&M<=921599;default:return!1}},b.getAvailableFeatures=function(M,x){var P=[];return this.engine&&P.push.apply(P,this.engine.getAvailableFeatures(M,x)),this.font.kern&&-1===P.indexOf("kern")&&P.push("kern"),P},b.stringsForGlyph=function(M){for(var oA,x=new Set,tA=B(this.font._cmapProcessor.codePointsForGlyph(M));!(oA=tA()).done;)x.add(String.fromCodePoint(oA.value));if(this.engine&&this.engine.stringsForGlyph)for(var SA,iA=B(this.engine.stringsForGlyph(M));!(SA=iA()).done;)x.add(SA.value);return Array.from(x)},eA}(),z0={moveTo:"M",lineTo:"L",quadraticCurveTo:"Q",bezierCurveTo:"C",closePath:"Z"},Ni=function(){function eA(){this.commands=[],this._bbox=null,this._cbox=null}var b=eA.prototype;return b.toFunction=function(){var M=this;return function(x){M.commands.forEach(function(P){return x[P.command].apply(x,P.args)})}},b.toSVG=function(){return this.commands.map(function(x){var P=x.args.map(function(tA){return Math.round(100*tA)/100});return"".concat(z0[x.command]).concat(P.join(" "))}).join("")},b.mapPoints=function(M){for(var tA,x=new eA,P=B(this.commands);!(tA=P()).done;){for(var oA=tA.value,sA=[],iA=0;iA0&&this.codePoints.every(w.isMark),this.isLigature=this.codePoints.length>1}var b=eA.prototype;return b._getPath=function(){return new Ni},b._getCBox=function(){return this.path.cbox},b._getBBox=function(){return this.path.bbox},b._getTableMetrics=function(M){if(this.id0)sA=Math.abs(SA.typoAscender-SA.typoDescender),iA=SA.typoAscender-M.maxY;else{var jA=this._font.hhea;sA=Math.abs(jA.ascent-jA.descent),iA=jA.ascent-M.maxY}return this._font._variationProcessor&&this._font.HVAR&&(P+=this._font._variationProcessor.getAdvanceAdjustment(this.id,this._font.HVAR)),this._metrics={advanceWidth:P,advanceHeight:sA,leftBearing:tA,topBearing:iA}},b.getScaledPath=function(M){return this.path.scale(1/this._font.unitsPerEm*M)},b._getName=function(){var M=this._font.post;if(!M)return null;switch(M.version){case 1:return qr[this.id];case 2:var x=M.glyphNameIndex[this.id];return x0?this._decodeSimple(sA,tA):sA.numberOfContours<0&&this._decodeComposite(sA,tA,oA),sA},K._decodeSimple=function(x,P){x.points=[];var tA=new e.Array(e.uint16,x.numberOfContours).decode(P);x.instructions=new e.Array(e.uint8,e.uint16).decode(P);for(var oA=[],sA=tA[tA.length-1]+1;oA.length=0,0,0);x.points.push(qA)}var gt=0;for(lt=0;lt>1,iA.length=0}function ln(Oe,fe){Gt&&sA.closePath(),sA.moveTo(Oe,fe),Gt=!0}return function Oe(){for(;P.pos1&&Je(),gt+=iA.shift(),ln(qA,gt);break;case 5:for(;iA.length>=2;)qA+=iA.shift(),gt+=iA.shift(),sA.lineTo(qA,gt);break;case 6:case 7:for(var qe=6===fe;iA.length>=1;)qe?qA+=iA.shift():gt+=iA.shift(),sA.lineTo(qA,gt),qe=!qe;break;case 8:for(;iA.length>0;){var me=qA+iA.shift(),Pe=gt+iA.shift(),Ye=me+iA.shift(),We=Pe+iA.shift();qA=Ye+iA.shift(),gt=We+iA.shift(),sA.bezierCurveTo(me,Pe,Ye,We,qA,gt)}break;case 10:var Ue=iA.pop()+Ee,Fe=ge[Ue];if(Fe){yt[Ue]=!0;var $e=P.pos,Rn=oA;P.pos=Fe.offset,oA=Fe.offset+Fe.length,Oe(),P.pos=$e,oA=Rn}break;case 11:if(x.version>=2)break;return;case 14:if(x.version>=2)break;iA.length>0&&Je(),Gt&&(sA.closePath(),Gt=!1);break;case 15:if(x.version<2)throw new Error("vsindex operator not supported in CFF v1");He=iA.pop();break;case 16:if(x.version<2)throw new Error("blend operator not supported in CFF v1");if(!sn)throw new Error("blend operator in non-variation font");for(var gn=sn.getBlendVector(we,He),mn=iA.pop(),Gn=mn*gn.length,Jn=iA.length-Gn,vn=Jn-mn,Mn=0;Mn>3;break;case 21:iA.length>2&&Je(),qA+=iA.shift(),gt+=iA.shift(),ln(qA,gt);break;case 22:iA.length>1&&Je(),ln(qA+=iA.shift(),gt);break;case 24:for(;iA.length>=8;)me=qA+iA.shift(),Pe=gt+iA.shift(),Ye=me+iA.shift(),We=Pe+iA.shift(),qA=Ye+iA.shift(),gt=We+iA.shift(),sA.bezierCurveTo(me,Pe,Ye,We,qA,gt);qA+=iA.shift(),gt+=iA.shift(),sA.lineTo(qA,gt);break;case 25:for(;iA.length>=8;)qA+=iA.shift(),gt+=iA.shift(),sA.lineTo(qA,gt);me=qA+iA.shift(),Pe=gt+iA.shift(),Ye=me+iA.shift(),We=Pe+iA.shift(),qA=Ye+iA.shift(),gt=We+iA.shift(),sA.bezierCurveTo(me,Pe,Ye,We,qA,gt);break;case 26:for(iA.length%2&&(qA+=iA.shift());iA.length>=4;)me=qA,Pe=gt+iA.shift(),Ye=me+iA.shift(),We=Pe+iA.shift(),qA=Ye,gt=We+iA.shift(),sA.bezierCurveTo(me,Pe,Ye,We,qA,gt);break;case 27:for(iA.length%2&&(gt+=iA.shift());iA.length>=4;)me=qA+iA.shift(),Pe=gt,Ye=me+iA.shift(),We=Pe+iA.shift(),qA=Ye+iA.shift(),sA.bezierCurveTo(me,Pe,Ye,We,qA,gt=We);break;case 28:iA.push(P.readInt16BE());break;case 29:Ue=iA.pop()+qt,(Fe=$t[Ue])&&(pt[Ue]=!0,$e=P.pos,Rn=oA,P.pos=Fe.offset,oA=Fe.offset+Fe.length,Oe(),P.pos=$e,oA=Rn);break;case 30:case 31:for(qe=31===fe;iA.length>=4;)qe?(me=qA+iA.shift(),Pe=gt,Ye=me+iA.shift(),We=Pe+iA.shift(),gt=We+iA.shift(),qA=Ye+(1===iA.length?iA.shift():0)):(me=qA,Pe=gt+iA.shift(),Ye=me+iA.shift(),We=Pe+iA.shift(),qA=Ye+iA.shift(),gt=We+(1===iA.length?iA.shift():0)),sA.bezierCurveTo(me,Pe,Ye,We,qA,gt),qe=!qe;break;case 12:switch(fe=P.readUInt8()){case 3:var ke=iA.pop(),Bn=iA.pop();iA.push(ke&&Bn?1:0);break;case 4:ke=iA.pop(),Bn=iA.pop(),iA.push(ke||Bn?1:0);break;case 5:ke=iA.pop(),iA.push(ke?0:1);break;case 9:ke=iA.pop(),iA.push(Math.abs(ke));break;case 10:ke=iA.pop(),Bn=iA.pop(),iA.push(ke+Bn);break;case 11:ke=iA.pop(),Bn=iA.pop(),iA.push(ke-Bn);break;case 12:ke=iA.pop(),Bn=iA.pop(),iA.push(ke/Bn);break;case 14:ke=iA.pop(),iA.push(-ke);break;case 15:ke=iA.pop(),Bn=iA.pop(),iA.push(ke===Bn?1:0);break;case 18:iA.pop();break;case 20:var $i=iA.pop(),zn=iA.pop();SA[zn]=$i;break;case 21:zn=iA.pop(),iA.push(SA[zn]||0);break;case 22:var Aa=iA.pop(),ta=iA.pop(),Ll=iA.pop(),bl=iA.pop();iA.push(Ll<=bl?Aa:ta);break;case 23:iA.push(Math.random());break;case 24:ke=iA.pop(),Bn=iA.pop(),iA.push(ke*Bn);break;case 26:ke=iA.pop(),iA.push(Math.sqrt(ke));break;case 27:ke=iA.pop(),iA.push(ke,ke);break;case 28:ke=iA.pop(),Bn=iA.pop(),iA.push(Bn,ke);break;case 29:(zn=iA.pop())<0?zn=0:zn>iA.length-1&&(zn=iA.length-1),iA.push(iA[zn]);break;case 30:var Pi=iA.pop(),_r=iA.pop();if(_r>=0)for(;_r>0;){for(var ea=iA[Pi-1],Ri=Pi-2;Ri>=0;Ri--)iA[Ri+1]=iA[Ri];iA[0]=ea,_r--}else for(;_r<0;){ea=iA[0];for(var zi=0;zi<=Pi;zi++)iA[zi]=iA[zi+1];iA[Pi-1]=ea,_r++}break;case 34:me=qA+iA.shift(),Pe=gt,Ye=me+iA.shift(),We=Pe+iA.shift();var $r=Ye+iA.shift(),Ai=We,ti=$r+iA.shift(),ei=Ai,ni=ti+iA.shift(),ri=ei,ii=ni+iA.shift(),ai=ri;qA=ii,gt=ai,sA.bezierCurveTo(me,Pe,Ye,We,$r,Ai),sA.bezierCurveTo(ti,ei,ni,ri,ii,ai);break;case 35:for(var Cr=[],na=0;na<=5;na++)qA+=iA.shift(),gt+=iA.shift(),Cr.push(qA,gt);sA.bezierCurveTo.apply(sA,Cr.slice(0,6)),sA.bezierCurveTo.apply(sA,Cr.slice(6)),iA.shift();break;case 36:me=qA+iA.shift(),Pe=gt+iA.shift(),Ye=me+iA.shift(),ei=Ai=We=Pe+iA.shift(),ni=(ti=($r=Ye+iA.shift())+iA.shift())+iA.shift(),ri=ei+iA.shift(),ii=ni+iA.shift(),qA=ii,gt=ai=ri,sA.bezierCurveTo(me,Pe,Ye,We,$r,Ai),sA.bezierCurveTo(ti,ei,ni,ri,ii,ai);break;case 37:var no=qA,ro=gt;Cr=[];for(var io=0;io<=4;io++)qA+=iA.shift(),gt+=iA.shift(),Cr.push(qA,gt);Math.abs(qA-no)>Math.abs(gt-ro)?(qA+=iA.shift(),gt=ro):(qA=no,gt+=iA.shift()),Cr.push(qA,gt),sA.bezierCurveTo.apply(sA,Cr.slice(0,6)),sA.bezierCurveTo.apply(sA,Cr.slice(6));break;default:throw new Error("Unknown op: 12 ".concat(fe))}break;default:throw new Error("Unknown op: ".concat(fe))}else if(fe<247)iA.push(fe-139);else if(fe<251){var ra=P.readUInt8();iA.push(256*(fe-247)+ra+108)}else fe<255?(ra=P.readUInt8(),iA.push(256*-(fe-251)-ra-108)):iA.push(P.readInt32BE()/65536)}}(),Gt&&sA.closePath(),sA},b}(Si),$0=new e.Struct({originX:e.uint16,originY:e.uint16,type:new e.String(4),data:new e.Buffer(function(eA){return eA.parent.buflen-eA._currentOffset})}),Al=function(eA){function b(){return eA.apply(this,arguments)||this}h(b,eA);var K=b.prototype;return K.getImageForSize=function(x){for(var P=0;P=x)break}var oA=tA.imageOffsets,sA=oA[this.id],iA=oA[this.id+1];return sA===iA?null:(this._font.stream.pos=sA,$0.decode(this._font.stream,{buflen:iA-sA}))},K.render=function(x,P){var tA=this.getImageForSize(P);null!=tA&&x.image(tA.data,{height:P,x:tA.originX,y:P/this._font.unitsPerEm*(this.bbox.minY-tA.originY)}),this._font.sbix.flags.renderOutlines&&eA.prototype.render.call(this,x,P)},b}(Ui),ja=function(b,K){this.glyph=b,this.color=K},tl=function(eA){function b(){return eA.apply(this,arguments)||this}h(b,eA);var K=b.prototype;return K._getBBox=function(){for(var x=new Sr,P=0;P>1;if(this.id<(iA=P.baseGlyphRecord[sA]).gid)oA=sA-1;else{if(!(this.id>iA.gid)){var SA=iA;break}tA=sA+1}}if(null==SA){var jA=this._font._getBaseGlyph(this.id);return[new ja(jA,lt={red:0,green:0,blue:0,alpha:255})]}for(var qA=[],gt=SA.firstLayerIndex;gt=1&&x[P]=P.glyphCount)){var tA=P.offsets[M];if(tA!==P.offsets[M+1]){var oA=this.font.stream;if(oA.pos=tA,!(oA.pos>=oA.length)){var sA=oA.readUInt16BE(),iA=tA+oA.readUInt16BE();if(32768&sA){var SA=oA.pos;oA.pos=iA;var jA=this.decodePoints();iA=oA.pos,oA.pos=SA}var lt=x.map(function(gn){return gn.copy()});sA&=4095;for(var qA=0;qA=P.globalCoordCount)throw new Error("Invalid gvar table");yt=P.globalCoords[4095&pt]}if(16384&pt){for(var $t=[],qt=0;qtMath.max(0,x[SA]))return 0;iA=(iA*oA[SA]+Number.EPSILON)/(x[SA]+Number.EPSILON)}else{if(oA[SA]tA[SA])return 0;iA=oA[SA]sA)){var SA=tA,jA=tA;for(tA++;tA<=sA;)P[tA]&&(this.deltaInterpolate(jA+1,tA-1,jA,tA,x,M),jA=tA),tA++;jA===SA?this.deltaShift(oA,sA,jA,x,M):(this.deltaInterpolate(jA+1,sA,jA,SA,x,M),SA>0&&this.deltaInterpolate(oA,SA-1,jA,SA,x,M)),tA=sA+1}}},b.deltaInterpolate=function(M,x,P,tA,oA,sA){if(!(M>x))for(var iA=["x","y"],SA=0;SAoA[tA][jA]){var lt=P;P=tA,tA=lt}var qA=oA[P][jA],gt=oA[tA][jA],pt=sA[P][jA],yt=sA[tA][jA];if(qA!==gt||pt===yt)for(var Gt=qA===gt?0:(yt-pt)/(gt-qA),$t=M;$t<=x;$t++){var qt=oA[$t][jA];qt<=qA?qt+=pt-qA:qt>=gt?qt+=yt-gt:qt=pt+(qt-qA)*Gt,sA[$t][jA]=qt}}},b.deltaShift=function(M,x,P,tA,oA){var sA=oA[P].x-tA[P].x,iA=oA[P].y-tA[P].y;if(0!==sA||0!==iA)for(var SA=M;SA<=x;SA++)SA!==P&&(oA[SA].x+=sA,oA[SA].y+=iA)},b.getAdvanceAdjustment=function(M,x){var P,tA;if(x.advanceWidthMapping){var oA=M;oA>=x.advanceWidthMapping.mapCount&&(oA=x.advanceWidthMapping.mapCount-1);var iA=x.advanceWidthMapping.mapData[oA];P=iA.outerIndex,tA=iA.innerIndex}else P=0,tA=M;return this.getDelta(x.itemVariationStore,P,tA)},b.getDelta=function(M,x,P){if(x>=M.itemVariationData.length)return 0;var tA=M.itemVariationData[x];if(P>=tA.deltaSets.length)return 0;for(var oA=tA.deltaSets[P],sA=this.getBlendVector(M,x),iA=0,SA=0;SAqA.peakCoord||qA.peakCoord>qA.endCoord||qA.startCoord<0&&qA.endCoord>0&&0!==qA.peakCoord||0===qA.peakCoord?1:tA[lt]qA.endCoord?0:tA[lt]===qA.peakCoord?1:tA[lt]=0&&K<=255?1:2},eA.encode=function(K,M){M>=0&&M<=255?K.writeUInt8(M):K.writeInt16BE(M)},eA}(),_a=new e.Struct({numberOfContours:e.int16,xMin:e.int16,yMin:e.int16,xMax:e.int16,yMax:e.int16,endPtsOfContours:new e.Array(e.uint16,"numberOfContours"),instructions:new e.Array(e.uint8,e.uint16),flags:new e.Array(e.uint8,0),xPoints:new e.Array(qa,0),yPoints:new e.Array(qa,0)}),wl=function(){function eA(){}var b=eA.prototype;return b.encodeSimple=function(M,x){void 0===x&&(x=[]);for(var P=[],tA=[],oA=[],sA=[],iA=0,SA=0,jA=0,lt=0,qA=0,gt=0;gt0&&(sA.push(iA),iA=0),sA.push(qt),lt=qt),SA=Gt,jA=$t,qA++}"closePath"===pt.command&&P.push(qA-1)}M.commands.length>1&&"closePath"!==M.commands[M.commands.length-1].command&&P.push(qA-1);var we=M.bbox,He={numberOfContours:P.length,xMin:we.minX,yMin:we.minY,xMax:we.maxX,yMax:we.maxY,endPtsOfContours:P,instructions:x,flags:sA,xPoints:tA,yPoints:oA},sn=_a.size(He),Je=4-sn%4,se=new e.EncodeStream(sn+Je);return _a.encode(se,He),0!==Je&&se.fill(0,Je),se.buffer},b._encodePoint=function(M,x,P,tA,oA,sA){var iA=M-x;return M===x?tA|=sA:(-255<=iA&&iA<=255&&(tA|=oA,iA<0?iA=-iA:tA|=sA),P.push(iA)),tA},eA}(),Cl=function(eA){function b(M){var x;return(x=eA.call(this,M)||this).glyphEncoder=new wl,x}h(b,eA);var K=b.prototype;return K._addGlyph=function(x){var P=this.font.getGlyph(x),tA=P._decode(),oA=this.font.loca.offsets[x],sA=this.font.loca.offsets[x+1],iA=this.font._getTableStream("glyf");iA.pos+=oA;var SA=iA.readBuffer(sA-oA);if(tA&&tA.numberOfContours<0){SA=c.from(SA);for(var lt,jA=B(tA.components);!(lt=jA()).done;){var qA=lt.value;x=this.includeGlyph(qA.glyphID),SA.writeUInt16BE(x,qA.pos)}}else tA&&this.font._variationProcessor&&(SA=this.glyphEncoder.encodeSimple(P.path,tA.instructions));return this.glyf.push(SA),this.loca.offsets.push(this.offset),this.hmtx.metrics.push({advance:P.advanceWidth,bearing:P._getMetrics().leftBearing}),this.offset+=SA.length,this.glyf.length-1},K.encode=function(x){this.glyf=[],this.offset=0,this.loca={offsets:[],version:this.font.loca.version},this.hmtx={metrics:[],bearings:[]};for(var P=0;P255?2:1,ranges:[{first:1,nLeft:this.charstrings.length-2}]},tA=Object.assign({},this.cff.topDict);tA.Private=null,tA.charset=P,tA.Encoding=null,tA.CharStrings=this.charstrings;for(var oA=0,sA=["version","Notice","Copyright","FullName","FamilyName","Weight","PostScript","BaseFontName","FontName"];oA0&&Object.defineProperty(this,x,{get:this._getTable.bind(this,P)})}}eA.probe=function(M){var x=M.toString("ascii",0,4);return"true"===x||"OTTO"===x||x===String.fromCharCode(0,1,0,0)};var b=eA.prototype;return b.setDefaultLanguage=function(M){void 0===M&&(M=null),this.defaultLanguage=M},b._getTable=function(M){if(!(M.tag in this._tables))try{this._tables[M.tag]=this._decodeTable(M)}catch(x){D.logErrors&&(console.error("Error decoding table ".concat(M.tag)),console.error(x.stack))}return this._tables[M.tag]},b._getTableStream=function(M){var x=this.directory.tables[M];return x?(this.stream.pos=x.offset,this.stream):null},b._decodeDirectory=function(){return this.directory=ci.decode(this.stream,{_startOffset:0})},b._decodeTable=function(M){var x=this.stream.pos,P=this._getTableStream(M.tag),tA=oe[M.tag].decode(P,this,M.length);return this.stream.pos=x,tA},b.getName=function(M,x){void 0===x&&(x=this.defaultLanguage||D.defaultLanguage);var P=this.name&&this.name.records[M];return P&&(P[x]||P[this.defaultLanguage]||P[D.defaultLanguage]||P.en||P[Object.keys(P)[0]])||null},b.hasGlyphForCodePoint=function(M){return!!this._cmapProcessor.lookup(M)},b.glyphForCodePoint=function(M){return this.getGlyph(this._cmapProcessor.lookup(M),[M])},b.glyphsForString=function(M){for(var x=[],P=M.length,tA=0,oA=-1,sA=-1;tA<=P;){var iA=0,SA=0;if(tA>>6&3},transformed:function(b){return"glyf"===b.tag||"loca"===b.tag?0===b.transformVersion:0!==b.transformVersion},transformLength:new e.Optional(Ao,function(eA){return eA.transformed})}),Xi=new e.Struct({tag:new e.String(4),flavor:e.uint32,length:e.uint32,numTables:e.uint16,reserved:new e.Reserved(e.uint16),totalSfntSize:e.uint32,totalCompressedSize:e.uint32,majorVersion:e.uint16,minorVersion:e.uint16,metaOffset:e.uint32,metaLength:e.uint32,metaOrigLength:e.uint32,privOffset:e.uint32,privLength:e.uint32,tables:new e.Array(ml,"numTables")});Xi.process=function(){for(var eA={},b=0;b0){for(var iA=[],SA=0,jA=0;jA>7);if((iA&=127)<10)oA=0,sA=er(iA,((14&iA)<<7)+b.readUInt8());else if(iA<20)oA=er(iA,((iA-10&14)<<7)+b.readUInt8()),sA=0;else if(iA<84)oA=er(iA,1+(48&(jA=iA-20))+((lt=b.readUInt8())>>4)),sA=er(iA>>1,1+((12&jA)<<2)+(15<));else if(iA<120){var jA;oA=er(iA,1+((jA=iA-84)/12<<8)+b.readUInt8()),sA=er(iA>>1,1+(jA%12>>2<<8)+b.readUInt8())}else if(iA<124){var lt=b.readUInt8(),qA=b.readUInt8();oA=er(iA,(lt<<4)+(qA>>4)),sA=er(iA>>1,((15&qA)<<8)+b.readUInt8())}else oA=er(iA,b.readUInt16BE()),sA=er(iA>>1,b.readUInt16BE());P.push(new gr(SA,!1,x+=oA,M+=sA))}return P}var Yl=new e.VersionedStruct(e.uint32,{65536:{numFonts:e.uint32,offsets:new e.Array(e.uint32,"numFonts")},131072:{numFonts:e.uint32,offsets:new e.Array(e.uint32,"numFonts"),dsigTag:e.uint32,dsigLength:e.uint32,dsigOffset:e.uint32}}),Tl=function(){function eA(K){if(this.stream=K,"ttcf"!==K.readString(4))throw new Error("Not a TrueType collection");this.header=Yl.decode(K)}return eA.probe=function(M){return"ttcf"===M.toString("ascii",0,4)},eA.prototype.getFont=function(M){for(var P,x=B(this.header.offsets);!(P=x()).done;){var tA=P.value,oA=new e.DecodeStream(this.stream.buffer);oA.pos=tA;var sA=new vr(oA);if(sA.postscriptName===M)return sA}return null},l(eA,[{key:"fonts",get:function(){for(var P,M=[],x=B(this.header.offsets);!(P=x()).done;){var tA=P.value,oA=new e.DecodeStream(this.stream.buffer);oA.pos=tA,M.push(new vr(oA))}return M}}]),eA}(),Nl=new e.String(e.uint8),Sl=(new e.Struct({len:e.uint32,buf:new e.Buffer("len")}),new e.Struct({id:e.uint16,nameOffset:e.int16,attr:e.uint8,dataOffset:e.uint24,handle:e.uint32})),Ul=new e.Struct({name:new e.String(4),maxTypeIndex:e.uint16,refList:new e.Pointer(e.uint16,new e.Array(Sl,function(eA){return eA.maxTypeIndex+1}),{type:"parent"})}),Pl=new e.Struct({length:e.uint16,types:new e.Array(Ul,function(eA){return eA.length+1})}),Rl=new e.Struct({reserved:new e.Reserved(e.uint8,24),typeList:new e.Pointer(e.uint16,Pl),nameListOffset:new e.Pointer(e.uint16,"void")}),eo=new e.Struct({dataOffset:e.uint32,map:new e.Pointer(e.uint32,Rl),dataLength:e.uint32,mapLength:e.uint32}),zl=function(){function eA(K){this.stream=K,this.header=eo.decode(this.stream);for(var x,M=B(this.header.map.typeList.types);!(x=M()).done;){for(var oA,P=x.value,tA=B(P.refList);!(oA=tA()).done;){var sA=oA.value;sA.nameOffset>=0?(this.stream.pos=sA.nameOffset+this.header.map.nameListOffset,sA.name=Nl.decode(this.stream)):sA.name=null}"sfnt"===P.name&&(this.sfnt=P)}}return eA.probe=function(M){var x=new e.DecodeStream(M);try{var P=eo.decode(x)}catch(iA){return!1}for(var oA,tA=B(P.map.typeList.types);!(oA=tA()).done;)if("sfnt"===oA.value.name)return!0;return!1},eA.prototype.getFont=function(M){if(!this.sfnt)return null;for(var P,x=B(this.sfnt.refList);!(P=x()).done;){var sA=new e.DecodeStream(this.stream.buffer.slice(this.header.dataOffset+P.value.dataOffset+4)),iA=new vr(sA);if(iA.postscriptName===M)return iA}return null},l(eA,[{key:"fonts",get:function(){for(var P,M=[],x=B(this.sfnt.refList);!(P=x()).done;){var sA=new e.DecodeStream(this.stream.buffer.slice(this.header.dataOffset+P.value.dataOffset+4));M.push(new vr(sA))}return M}}]),eA}();D.registerFormat(vr),D.registerFormat(Ml),D.registerFormat(Dl),D.registerFormat(Tl),D.registerFormat(zl),T.exports=D},7337:function(T,I,n){"use strict";var c=n(4781),i=n(9742),o=n(2055),l=o.BK,h=o.CR,a=o.LF,B=o.NL,E=o.SG,u=o.WJ,C=o.SP,e=o.ZWJ,f=o.BA,g=o.HY,w=o.NS,Q=o.AI,d=o.AL,Y=o.CJ,y=o.HL,p=o.RI,m=o.SA,D=o.XX,U=n(8383),N=U.DI_BRK,F=U.IN_BRK,z=U.CI_BRK,L=U.CP_BRK,aA=U.pairTable,lA=new c(i.toByteArray("AAgOAAAAAACA3QAAAe0OEvHtnXuMXUUdx+d2d2/33r237V3YSoFC11r6IGgbRFBEfFF5KCVCMYKFaKn8AYqmwUeqECFabUGQipUiNCkgSRElUkKwJRWtwSpJrZpCI4E2NQqiBsFGwWL8Tu6Md3Z23o9zbund5JM5c+b1m9/85nnOuXtTHyFrwXpwL9gBngTPgj+Dv4H9Ae4B0N9PSAMcDqaB0X57urmIs8AQ72SEnQ4+ABaBxWAJWAquENJ9BtdfANeCleBGcCv4NvgeuBv8AGwCm8FWlpbzOPw7wC7wFNgDngMvgpfAq2DCACF10ACHgaPAzIF2+PFwT2Th1P8OuO8FZ4MPggvAxWAp+A6VHe5ysILFvx7u6oF2+Wvg3g7uYvlT+TbC/TH4CdgCtoGtfW3/E2An8++Gu5eleR7uP8B+8BoLf4LFH6i23Vp1rB5a1Q7TGMeCUYYY18RcxF0gxT8H5b3dIw8X3iPkdxauPwQWgyVgWbVT30/h+mrwZan8r8L/FcEWVsJ/E1grpKXcwdLdI9y/H9cPgUerbbun0PadCHcbjQd+D55mafcx9y9wXwKvCLJUJiLdRH09ef4xupqE/KeCY8Bx4M3gbeBdYCE4G3wYXASWgGXgSibTcuaugHs9WA3WgNvBBha2Ee4D4GFNPTYL9x/D9XaJXwnXvwW7wDPgTzQd2A9eAwODhDTBCJgOZoETwEngtEFmF3DPAouY/0K4Swb9dbaMpbkS7nKP9CsCyrpOSrNK8K9kNnYL7q0DGwbb/XnjoDv3gQfBZvBz8GvwO/AHdr3Pkv4F4fplj3J79OgRBx8HypajR48ePXr06NGjx8HFv7pABhX/HRx7HqKjr9Y+y6PXg7X2WRoPm1Kzpz8CcWaweLPhHt/fPq95C65PZnmfDnchOLfWPo/7OLgQ15ewdJ+E++na2PMhyudw72bDGc01CP8aWAm+Dr4BVoHV4IZeWC+sF9YL64UlD1sD1oE7au0z0zK5p1YuZde/R49uJnYdez/62EPgkVr4c7pHkfYXivTbcW8n2A32gOekOH+F/5/gAOivE9IArXpbrmlwR+vljz9bJrV552RCvgQ2GXgRzJ9CyGVTxofdLd17Gv6jW4RcAG5ote/9FO4B8NZhQs4DN4O9kOFY6OFSsB48C/qGCFkAyERCzh9q+0WuA2sqHX4m+Smv4t6RjXYelItwvQ7sBtOahHwU3NYcn+5Q4pFmRz89evTocajxStM898/FfLSgrg8/sT5+zcLDTkXY+6S0C+E/l907SXO+Rt/Lujrxe1kmztPU70JDvSmXILwJWS9TxLuC3VtuycPGCoV+VfD41yvKW6W4d1O9/S5YtZ+Qtbi+k/m/D/eHYBPzb4G7DfyS+enZ42/qnXPFp+pjZdgD/yX0XcV6+93DF+H+G5AhtcxPIs/BoY5cg0g7RRGXx/8Ewo8Y6vhp/Bnwz2F5zId7CgunZ6Dv1uTF0585pNY7P9NdhPCPDI1Ncyn8l4OrwHKwguVB12WrNPnpoPW5BWluA3eCuxRl3cfyfFCom43NBjkeQ9h2Tzlzs7PL5CmD3UwHew26+KMm7AVHu8hJaL1fTtj29L3E/wi6oPvWvkY7bAjucKOYtpymKWdGo/3e5KxGR8YTGvmfZ4XW46RGmnMIG6excs6Ae46nPuh7pGXbvm/fOB91vLhRXvkmlkKuK8BnFTb8xYL6TyqugbzXJZCZ9tlVrO9+C+53G5134A8G1htsjdbvXoT/KEBPmwq04dS2v6UxNnxbAXV5gul4Z6J+tMtBZtv4+Qzy2Ndof+fwPHP/zsbg/QFz02tIM4B9ZRO0mp379NxxBpgD5gv3T8H16eAMcCZYxMIWw/2YEG8pri9n/qvgfr45fm67VtjPzmbpVrJ7NzL3VrjvF/Jdh+sN3M/cB+A+LOV/bVNdX13b0G9KtmrSHCo8jvqfGjFu7WiWP37E8s2+yv8ZwVbYRgvMAm9kvMkhjStzAZbIBGIR+ngAy2NSZ9f0Hv2bIIShCckU5k5sb+OdGGQ0BKqSPzeE1WFCgWXK5dO2rDD/COn9zTvEUfXJ4zT3c9DP2oH2+ZoAtc9RBr/mY0SLdGyap+Nxh6W0In2Sn5C8/W00c/7dXn63we1DtAHud9WZbFNimmFL2iIoqt8eDPQHptERIkNoO8prFVvblm13OaG6oGM+n7P4/RrRz2HdTktotxHFdZW5tvm72UWEtm9dQF6n++hU1FmVFL++L2Nsdt3/1IVrWaacda4Se91t+pHDVXF5HFd9pG7X14NNyePr6wkfPTRI+H6qDPvLqRM5DR2beZ8W95Divq0IWXXyy/d18Yq09ZhyY/fyPjafY37yta8ybD9l3W15+crXYhQ5rsj2Wkb7iDadon1c+tKI4p5NR6HjPl/vqvLm92uK8lTjWNntkwJTu9hkiJmHVf3S1V5UOii6PWL1nVqOkP5QI/b2L2o+Kqr/h9i0bHNl9HudnKn0btKBbZzItQ7n47Drmutg6P+ubZK7/5va0PU8XZS56DP4Isci07gUo3/fscdlfMyp6xR6dy0vt/275K1bJ8qkHI99bdK3v4vt4Gtzs7sEWa5aZH4NDz3yfWG368bXLlQ6GZYQ7/UL1y3mryroZ+nkZwK28SD1vlt+7sNd+lcR3Ji1RKq1WcvhftFzousYxftH7Ngu2pZubcGfD8eMizp5Y/uha/m69NNK5siSOapkcq2lTOOGvE4y9aPclFl20eXTvwoZO374ymob90Jx3Zfk2h/I849q7VNE+WXsj+ZFlJ96Xcd1PyD4ue2J69/Q9V+u9uPrQC7/sHRftjE+n+eQP2Ztl5Kc+0TX/WND8vP2iF23xO7lfO3XtKfLhUm/PE6Ze78RD/3Fknr8i907yWsoUx+M3S+0SNjcHyu7qg6+aYvqF671TLXfTzU+2uaTnOOzbFc+7yHoZE59npIL175kay/ZxlKMH6a+NSJdl90XKXytpbMpTr/kP5zJfqxQDzneYWTstxh9pPPdYJ/CL8alTBag+fFvHFXtQMutWxBloOUMMHS6GWSyVYS4pvgmexXtVjc/TFWk9ZnnZLt3+caI10/8Xkb+hsYlfeh+QOyPNQN1S7hv2nqivEVSj/Ex+1lu73Ib1olbu4jpfN4ddbWbHN+/mcpWfUem+g7RhK4833SuepHbN0d5PjKF1kUll3xPFc5d+btTW9uqdCHXwaQ7kw252ENIW9vKTdEfTLox+VPYT6r8XXUWq7tYuXyZnEAG+ic+pwyVdRLDp8wcOp0kEZNXzLyqw3f+yEkjMI1sFznk8ulDKcoKlcFVlz75qPyu9+U8YuvnqnfXNDn6t6neNr3xfHj4JEU500ma8SSkjjodptBlTLurbI7rTxUnhcxF6d9W76KRbd6G3DdVNj2qia/qD3KY2O90elLJocpHJc90Q7kqVLqaLlGUjYj+Pg00jD8Xk+Wnf5UAN8c8HGrvXKYi+4irnsoo09ctU29Fll2UraSyaxnTOar8DFw+w60St+cRNlzfm9E9y9CNUTZM5/7iOTWR6imOgaKf/pn6hJw/f8dDdS6u0tNhDN1ZOlGUoauTrqyQNvCd21Mjy8N/T7AixBkQrm3tRKS0tngDwrWYzobuLFwXV3WfP5uR9TGTXdvc3BRVjq18l3rbwmaS8c9QByR4m3Sb/lPVX2V/M4naDkV79GFmJDad2NaLOdpBpxsbvs+/YubgVPO5bn3h+75BahnEOU/EVb+yTL7vQeTQp04GH/twfTYaCv9ehe8XXdZ0Ic+IY94Hcik/9h0Zk35c7MdWXo737HM/y6dllPENj9zeuvq7vMMYam88fZnfU7nOHznf6/AdP+W8ffXv2q6uelDlE1N/Wx+Prb/MG8ARBVJ0eb7rz5Tf6sl5l/G9nizDnJLJudZoaNqU/hbsCPH73dhu+03aWPiZhW9/yLHf8IGvT1OtzwZJ56yG/7YvX5sSdn+yof6x5av2ebxcV1dOZ9pDVgSXys/36uLzG1s5Nvj7pKo9axm2zsueylxeT1lWlQ4rkuuzx5f3+VXPPGIhgbLnKp/rtiJdcz2lOtMpAtMZV27E/kRttyaF83dFbf3NdYwXx6sZpH0uVkZ/VslmOrspa24V1+O56u3TdmXpQdaJy36wLPm4LZVR7jyp/CLOmULtzeWZoqstuLS9rhzTmqwIe3LVia0f2OSP3c/71Ec8V0itv6JtONbOXdb3Oc5YdcTaQVFzRWg7+z6HydnHy+qPoWO+j1yq8anofifWl7ri97chNiq/z6KyM37t8333sJR/SF/3bUvd+z+8nV3KNPWfIvt3mfNZijFAZT8xfXSekLfOtl3rHCuPzxrEdT7U9UvRjn3HKV5/XTuo2i3n+E3L5L+3yN+TkH+z07ZGDlkviuXLcX3aL7b+8m+duhCzJonp/yF9wabPItZhJmJ/N8pVfvn31Fok7PeiYsalFON4bPnyuOO7Ru2G+S52fqB5DAt55bJtXf2LtJdQParCVevHlqcufduvKJuQ5yxxvA/Zw6W0l5D3+nz7a4wdieXxd+FS2SjPN7Z9XXDRp62/dMv4GTM22uwx1/iTe7zTUSfjf1Mqld36EHv2xvPoprMnGfGvIiDHk+/x+EQTP7fMOjl928f0/855OTnaJ5XeQsevVHNojO5147ePXLH681mDqOBhqef/Ivp+7PMF1Vxs02kMITLK30zp/k+FbX1RdP/w1b2OMt9hiR1bKLHfZ+XWT+4+ahqzVM8iUug81r5tfTf3+JB6DPFpk1zllLUu9523cpPLdlR6zTVP+bShGFd1lh/Td33rVdT44WqTtjqktOtc87osc8x5hM9vyLrK49v+Pvmp7De0/vyvLJvk1C3+1OOyLyG/aSSud1L/TlLq/BoZ5M2xNj66IFRlT9fcT4GqDYosQ3df/G0zlR5U4UVzjAJZPpW8NlLI5lOejzwq+eS4rnWZbsjTx7ZUrq4sXdrQPmAa82Pb0HVuyZl3rrrZ7Nal/ULzdy0zBUXrMaQcU18v6ncmxd9eM/1fkdQ24Tvu+paZ2q5S6z13+anlTyVfrv4aWz/desfFfn3WEj727rNGKHJdlqsM1VompjzT+shXv7F75dj3J3K3qY7QM7DcZ2L/Aw==")),MA=function(FA){switch(FA){case Q:case m:case E:case D:return d;case Y:return w;default:return FA}},cA=function(FA){switch(FA){case a:case B:return l;case C:return u;default:return FA}},gA=function(FA,_){void 0===_&&(_=!1),this.position=FA,this.required=_};T.exports=function(){function vA(_){this.string=_,this.pos=0,this.lastPos=0,this.curClass=null,this.nextClass=null,this.LB8a=!1,this.LB21a=!1,this.LB30a=0}var FA=vA.prototype;return FA.nextCodePoint=function(){var dA=this.string.charCodeAt(this.pos++),uA=this.string.charCodeAt(this.pos);return 55296<=dA&&dA<=56319&&56320<=uA&&uA<=57343?(this.pos++,1024*(dA-55296)+(uA-56320)+65536):dA},FA.nextCharClass=function(){return MA(lA.get(this.nextCodePoint()))},FA.getSimpleBreak=function(){switch(this.nextClass){case C:return!1;case l:case a:case B:return this.curClass=l,!1;case h:return this.curClass=h,!1}return null},FA.getPairTableBreak=function(dA){var uA=!1;switch(aA[this.curClass][this.nextClass]){case N:uA=!0;break;case F:uA=dA===C;break;case z:if(!(uA=dA===C))return!1;break;case L:if(dA!==C)return uA}return this.LB8a&&(uA=!1),!this.LB21a||this.curClass!==g&&this.curClass!==f?this.LB21a=this.curClass===y:(uA=!1,this.LB21a=!1),this.curClass===p?(this.LB30a++,2==this.LB30a&&this.nextClass===p&&(uA=!0,this.LB30a=0)):this.LB30a=0,this.curClass=this.nextClass,uA},FA.nextBreak=function(){if(null==this.curClass){var dA=this.nextCharClass();this.curClass=cA(dA),this.nextClass=dA,this.LB8a=dA===e,this.LB30a=0}for(;this.pos=XA)return $;switch($){case"%s":return String(bA[NA++]);case"%d":return Number(bA[NA++]);case"%j":try{return JSON.stringify(bA[NA++])}catch(V){return"[Circular]"}default:return $}}),O=bA[NA];NA=3&&(NA.depth=arguments[2]),arguments.length>=4&&(NA.colors=arguments[3]),y(CA)?NA.showHidden=CA:CA&&I._extend(NA,CA),F(NA.showHidden)&&(NA.showHidden=!1),F(NA.depth)&&(NA.depth=2),F(NA.colors)&&(NA.colors=!1),F(NA.customInspect)&&(NA.customInspect=!0),NA.colors&&(NA.stylize=E),e(NA,uA,NA.depth)}function E(uA,CA){var NA=B.styles[CA];return NA?"\x1b["+B.colors[NA][0]+"m"+uA+"\x1b["+B.colors[NA][1]+"m":uA}function u(uA,CA){return uA}function e(uA,CA,NA){if(uA.customInspect&&CA&&AA(CA.inspect)&&CA.inspect!==I.inspect&&(!CA.constructor||CA.constructor.prototype!==CA)){var bA=CA.inspect(NA,uA);return U(bA)||(bA=e(uA,bA,NA)),bA}var XA=function f(uA,CA){if(F(CA))return uA.stylize("undefined","undefined");if(U(CA)){var NA="'"+JSON.stringify(CA).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return uA.stylize(NA,"string")}return D(CA)?uA.stylize(""+CA,"number"):y(CA)?uA.stylize(""+CA,"boolean"):p(CA)?uA.stylize("null","null"):void 0}(uA,CA);if(XA)return XA;var q=Object.keys(CA),O=function C(uA){var CA={};return uA.forEach(function(NA,bA){CA[NA]=!0}),CA}(q);if(uA.showHidden&&(q=Object.getOwnPropertyNames(CA)),aA(CA)&&(q.indexOf("message")>=0||q.indexOf("description")>=0))return g(CA);if(0===q.length){if(AA(CA))return uA.stylize("[Function"+(CA.name?": "+CA.name:"")+"]","special");if(z(CA))return uA.stylize(RegExp.prototype.toString.call(CA),"regexp");if(W(CA))return uA.stylize(Date.prototype.toString.call(CA),"date");if(aA(CA))return g(CA)}var EA,V="",hA=!1,mA=["{","}"];return Y(CA)&&(hA=!0,mA=["[","]"]),AA(CA)&&(V=" [Function"+(CA.name?": "+CA.name:"")+"]"),z(CA)&&(V=" "+RegExp.prototype.toString.call(CA)),W(CA)&&(V=" "+Date.prototype.toUTCString.call(CA)),aA(CA)&&(V=" "+g(CA)),0!==q.length||hA&&0!=CA.length?NA<0?z(CA)?uA.stylize(RegExp.prototype.toString.call(CA),"regexp"):uA.stylize("[Object]","special"):(uA.seen.push(CA),EA=hA?function w(uA,CA,NA,bA,XA){for(var q=[],O=0,$=CA.length;O<$;++O)vA(CA,String(O))?q.push(Q(uA,CA,NA,bA,String(O),!0)):q.push("");return XA.forEach(function(V){V.match(/^\d+$/)||q.push(Q(uA,CA,NA,bA,V,!0))}),q}(uA,CA,NA,O,q):q.map(function(GA){return Q(uA,CA,NA,O,GA,hA)}),uA.seen.pop(),function d(uA,CA,NA){return uA.reduce(function(q,O){return O.indexOf("\n"),q+O.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?NA[0]+(""===CA?"":CA+"\n ")+" "+uA.join(",\n ")+" "+NA[1]:NA[0]+CA+" "+uA.join(", ")+" "+NA[1]}(EA,V,mA)):mA[0]+V+mA[1]}function g(uA){return"["+Error.prototype.toString.call(uA)+"]"}function Q(uA,CA,NA,bA,XA,q){var O,$,V;if((V=Object.getOwnPropertyDescriptor(CA,XA)||{value:CA[XA]}).get?$=uA.stylize(V.set?"[Getter/Setter]":"[Getter]","special"):V.set&&($=uA.stylize("[Setter]","special")),vA(bA,XA)||(O="["+XA+"]"),$||(uA.seen.indexOf(V.value)<0?($=p(NA)?e(uA,V.value,null):e(uA,V.value,NA-1)).indexOf("\n")>-1&&($=q?$.split("\n").map(function(hA){return" "+hA}).join("\n").substr(2):"\n"+$.split("\n").map(function(hA){return" "+hA}).join("\n")):$=uA.stylize("[Circular]","special")),F(O)){if(q&&XA.match(/^\d+$/))return $;(O=JSON.stringify(""+XA)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(O=O.substr(1,O.length-2),O=uA.stylize(O,"name")):(O=O.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),O=uA.stylize(O,"string"))}return O+": "+$}function Y(uA){return Array.isArray(uA)}function y(uA){return"boolean"==typeof uA}function p(uA){return null===uA}function D(uA){return"number"==typeof uA}function U(uA){return"string"==typeof uA}function F(uA){return void 0===uA}function z(uA){return L(uA)&&"[object RegExp]"===MA(uA)}function L(uA){return"object"==typeof uA&&null!==uA}function W(uA){return L(uA)&&"[object Date]"===MA(uA)}function aA(uA){return L(uA)&&("[object Error]"===MA(uA)||uA instanceof Error)}function AA(uA){return"function"==typeof uA}function MA(uA){return Object.prototype.toString.call(uA)}function cA(uA){return uA<10?"0"+uA.toString(10):uA.toString(10)}I.debuglog=function(uA){if(uA=uA.toUpperCase(),!l[uA])if(h.test(uA)){var CA=c.pid;l[uA]=function(){var NA=I.format.apply(I,arguments);console.error("%s %d: %s",uA,CA,NA)}}else l[uA]=function(){};return l[uA]},I.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"},I.types=n(5955),I.isArray=Y,I.isBoolean=y,I.isNull=p,I.isNullOrUndefined=function m(uA){return null==uA},I.isNumber=D,I.isString=U,I.isSymbol=function N(uA){return"symbol"==typeof uA},I.isUndefined=F,I.isRegExp=z,I.types.isRegExp=z,I.isObject=L,I.isDate=W,I.types.isDate=W,I.isError=aA,I.types.isNativeError=aA,I.isFunction=AA,I.isPrimitive=function lA(uA){return null===uA||"boolean"==typeof uA||"number"==typeof uA||"string"==typeof uA||"symbol"==typeof uA||void 0===uA},I.isBuffer=n(384);var gA=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function BA(){var uA=new Date,CA=[cA(uA.getHours()),cA(uA.getMinutes()),cA(uA.getSeconds())].join(":");return[uA.getDate(),gA[uA.getMonth()],CA].join(" ")}function vA(uA,CA){return Object.prototype.hasOwnProperty.call(uA,CA)}I.log=function(){console.log("%s - %s",BA(),I.format.apply(I,arguments))},I.inherits=n(5717),I._extend=function(uA,CA){if(!CA||!L(CA))return uA;for(var NA=Object.keys(CA),bA=NA.length;bA--;)uA[NA[bA]]=CA[NA[bA]];return uA};var FA="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function _(uA,CA){if(!uA){var NA=new Error("Promise was rejected with a falsy value");NA.reason=uA,uA=NA}return CA(uA)}I.promisify=function(CA){if("function"!=typeof CA)throw new TypeError('The "original" argument must be of type Function');if(FA&&CA[FA]){var NA;if("function"!=typeof(NA=CA[FA]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(NA,FA,{value:NA,enumerable:!1,writable:!1,configurable:!0}),NA}function NA(){for(var bA,XA,q=new Promise(function(V,hA){bA=V,XA=hA}),O=[],$=0;$1?D.attr[m[1]]:D.val},i.prototype.toString=function(p){return this.toStringWithIndent("",p)},i.prototype.toStringWithIndent=function(p,m){var D=p+"<"+this.name,U=m&&m.compressed?"":"\n";for(var F in this.attr)Object.prototype.hasOwnProperty.call(this.attr,F)&&(D+=" "+F+'="'+Y(this.attr[F])+'"');if(1===this.children.length&&"element"!==this.children[0].type)D+=">"+this.children[0].toString(m)+"";else if(this.children.length){D+=">"+U;for(var z=p+(m&&m.compressed?"":" "),L=0,W=this.children.length;L"}else m&&m.html?-1!==["area","base","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"].indexOf(this.name)?D+="/>":D+=">":D+="/>";return D},o.prototype.toString=function(p){return y(Y(this.text),p)},o.prototype.toStringWithIndent=function(p,m){return p+this.toString(m)},l.prototype.toString=function(p){return""},l.prototype.toStringWithIndent=function(p,m){return p+this.toString(m)},h.prototype.toString=function(p){return"\x3c!--"+y(Y(this.comment),p)+"--\x3e"},h.prototype.toStringWithIndent=function(p,m){return p+this.toString(m)},i.prototype.type="element",o.prototype.type="text",l.prototype.type="cdata",h.prototype.type="comment",function d(p,m){for(var D in m)m.hasOwnProperty(D)&&(p[D]=m[D])}(a.prototype,i.prototype),a.prototype._opentag=function(p){void 0===this.children?i.call(this,p):i.prototype._opentag.apply(this,arguments)},a.prototype._doctype=function(p){this.doctype+=p};var B=null;function u(){B[0]&&B[0]._opentag.apply(B[0],arguments)}function C(){B[0]&&B[0]._closetag.apply(B[0],arguments)}function e(){B[0]&&B[0]._text.apply(B[0],arguments)}function f(){B[0]&&B[0]._cdata.apply(B[0],arguments)}function g(){B[0]&&B[0]._comment.apply(B[0],arguments)}function w(){B[0]&&B[0]._doctype.apply(B[0],arguments)}function Q(){B[0]&&B[0]._error.apply(B[0],arguments)}function Y(p){return p.toString().replace(/&/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")}function y(p,m){var D=p;return m&&m.trimmed&&p.length>25&&(D=D.substring(0,25).trim()+"\u2026"),m&&m.preserveWhitespace||(D=D.trim()),D}T.exports&&!n.g.xmldocAssumeBrowser?T.exports.XmlDocument=a:this.XmlDocument=a}()},6255:function(T,I,n){"use strict";"undefined"!=typeof window&&!window.Promise&&n(3867),n(4667);function i(o){this.fs=o,this.resolving={}}i.prototype.resolve=function(o){if(!this.resolving[o]){var l=this;this.resolving[o]=new Promise(function(h,a){0===o.toLowerCase().indexOf("https://")||0===o.toLowerCase().indexOf("http://")?function(o){return new Promise(function(l,h){var a=new XMLHttpRequest;a.open("GET",o,!0),a.responseType="arraybuffer",a.onreadystatechange=function(){4===a.readyState&&(a.status>=200&&a.status<300||setTimeout(function(){h(new TypeError('Failed to fetch (url: "'+o+'")'))},0))},a.onload=function(){a.status>=200&&a.status<300&&l(a.response)},a.onerror=function(){setTimeout(function(){h(new TypeError('Network request failed (url: "'+o+'")'))},0)},a.ontimeout=function(){setTimeout(function(){h(new TypeError('Network request failed (url: "'+o+'")'))},0)},a.send()})}(o).then(function(B){l.fs.writeFileSync(o,B),h()},function(B){a(B)}):h()})}return this.resolving[o]},i.prototype.resolved=function(){var o=this;return new Promise(function(l,h){Promise.all(Object.values(o.resolving)).then(function(){l()},function(a){h(a)})})},T.exports=i},4275:function(T,I,n){"use strict";var c=n(8823).Buffer,i=n(6225).isFunction,o=n(6225).isUndefined,a=(n(6225),n(4896).saveAs),B={Roboto:{normal:"Roboto-Regular.ttf",bold:"Roboto-Medium.ttf",italics:"Roboto-Italic.ttf",bolditalics:"Roboto-MediumItalic.ttf"}};function E(C,e,f,g){this.docDefinition=C,this.tableLayouts=e||null,this.fonts=f||B,this.vfs=g}E.prototype._createDoc=function(C,e){C=C||{},this.tableLayouts&&(C.tableLayouts=this.tableLayouts);var g=new(n(8617))(this.fonts);if(n(3857).bindFS(this.vfs),!i(e))return g.createPdfKitDocument(this.docDefinition,C);var d=new(n(6255))(n(3857));for(var Y in this.fonts)this.fonts.hasOwnProperty(Y)&&(this.fonts[Y].normal&&d.resolve(this.fonts[Y].normal),this.fonts[Y].bold&&d.resolve(this.fonts[Y].bold),this.fonts[Y].italics&&d.resolve(this.fonts[Y].italics),this.fonts[Y].bolditalics&&d.resolve(this.fonts[Y].bolditalics));if(this.docDefinition.images)for(var y in this.docDefinition.images)this.docDefinition.images.hasOwnProperty(y)&&d.resolve(this.docDefinition.images[y]);var p=this;d.resolved().then(function(){var m=g.createPdfKitDocument(p.docDefinition,C);e(m)},function(m){throw m})},E.prototype._flushDoc=function(C,e){var g,f=[];C.on("readable",function(){for(var w;null!==(w=C.read(9007199254740991));)f.push(w)}),C.on("end",function(){g=c.concat(f),e(g,C._pdfMakePages)}),C.end()},E.prototype._getPages=function(C,e){if(!e)throw"_getPages is an async method and needs a callback argument";var f=this;this._createDoc(C,function(g){f._flushDoc(g,function(w,Q){e(Q)})})},E.prototype._bufferToBlob=function(C){var e;try{e=new Blob([C],{type:"application/pdf"})}catch(g){if("InvalidStateError"===g.name){var f=new Uint8Array(C);e=new Blob([f.buffer],{type:"application/pdf"})}}if(!e)throw"Could not generate blob";return e},E.prototype._openWindow=function(){var C=window.open("","_blank");if(null===C)throw"Open PDF in new window blocked by browser";return C},E.prototype._openPdf=function(C,e){e||(e=this._openWindow());try{this.getBlob(function(f){var w=(window.URL||window.webkitURL).createObjectURL(f);e.location.href=w},C)}catch(f){throw e.close(),f}},E.prototype.open=function(C,e){(C=C||{}).autoPrint=!1,this._openPdf(C,e=e||null)},E.prototype.print=function(C,e){(C=C||{}).autoPrint=!0,this._openPdf(C,e=e||null)},E.prototype.download=function(C,e,f){i(C)&&(o(e)||(f=e),e=C,C=null),C=C||"file.pdf",this.getBlob(function(g){a(g,C),i(e)&&e()},f)},E.prototype.getBase64=function(C,e){if(!C)throw"getBase64 is an async method and needs a callback argument";this.getBuffer(function(f){C(f.toString("base64"))},e)},E.prototype.getDataUrl=function(C,e){if(!C)throw"getDataUrl is an async method and needs a callback argument";this.getBuffer(function(f){C("data:application/pdf;base64,"+f.toString("base64"))},e)},E.prototype.getBlob=function(C,e){if(!C)throw"getBlob is an async method and needs a callback argument";var f=this;this.getBuffer(function(g){var w=f._bufferToBlob(g);C(w)},e)},E.prototype.getBuffer=function(C,e){if(!C)throw"getBuffer is an async method and needs a callback argument";var f=this;this._createDoc(e,function(g){f._flushDoc(g,function(w){C(w)})})},E.prototype.getStream=function(C,e){if(!i(e))return this._createDoc(C);this._createDoc(C,function(g){e(g)})},T.exports={createPdf:function(C,e,f,g){if(!function u(){try{var C=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(C,e),42===C.foo()}catch(f){return!1}}())throw"Your browser does not provide the level of support needed";return new E(C,e||n.g.pdfMake.tableLayouts,f||n.g.pdfMake.fonts,g||n.g.pdfMake.vfs)}}},3857:function(T,I,n){"use strict";var i=n(8823).Buffer;function o(){this.fileSystem={},this.dataSystem={}}function l(h){return 0===h.indexOf("/")&&(h=h.substring("/".length)),0===h.indexOf("/")&&(h=h.substring(1)),h}o.prototype.existsSync=function(h){return h=l(h),void 0!==this.fileSystem[h]||void 0!==this.dataSystem[h]},o.prototype.readFileSync=function(h,a){h=l(h);var B=this.dataSystem[h];if("string"==typeof B&&"utf8"===a)return B;if(B)return new i(B,"string"==typeof B?"base64":void 0);var E=this.fileSystem[h];if(E)return E;throw"File '"+h+"' not found in virtual file system"},o.prototype.writeFileSync=function(h,a){this.fileSystem[l(h)]=a},o.prototype.bindFS=function(h){this.dataSystem=h||{}},T.exports=new o},4498:function(T,I,n){"use strict";var c=n(6225).isString;function o(a){return"auto"===a.width}function l(a){return null==a.width||"*"===a.width||"star"===a.width}T.exports={buildColumnWidths:function i(a,B){var E=[],u=0,C=0,e=[],f=0,g=0,w=[],Q=B;a.forEach(function(D){o(D)?(E.push(D),u+=D._minWidth,C+=D._maxWidth):l(D)?(e.push(D),f=Math.max(f,D._minWidth),g=Math.max(g,D._maxWidth)):w.push(D)}),w.forEach(function(D){c(D.width)&&/\d+%/.test(D.width)&&(D.width=parseFloat(D.width)*Q/100),D._calcWidth=D.width=B)E.forEach(function(D){D._calcWidth=D._minWidth}),e.forEach(function(D){D._calcWidth=f});else{if(Y0){var m=B/e.length;e.forEach(function(D){D._calcWidth=m})}}},measureMinMax:function h(a){for(var B={min:0,max:0},E={min:0,max:0},u=0,C=0,e=a.length;C=0;z--){var W=w.styleStack.styleDictionary[N[z]];for(var aA in W)W.hasOwnProperty(aA)&&(F[aA]=W[aA])}return F}function p(N){return h(N)?N=[N,N,N,N]:B(N)&&2===N.length&&(N=[N[0],N[1],N[0],N[1]]),N}var m=[void 0,void 0,void 0,void 0];if(g.style){var U=y(B(g.style)?g.style:[g.style]);U&&(m=Y(U,m)),U.margin&&(m=p(U.margin))}return m=Y(g,m),g.margin&&(m=p(g.margin)),void 0===m[0]&&void 0===m[1]&&void 0===m[2]&&void 0===m[3]?null:m}(),g.columns)return Q(w.measureColumns(g));if(g.stack)return Q(w.measureVerticalContainer(g));if(g.ul)return Q(w.measureUnorderedList(g));if(g.ol)return Q(w.measureOrderedList(g));if(g.table)return Q(w.measureTable(g));if(void 0!==g.text)return Q(w.measureLeaf(g));if(g.toc)return Q(w.measureToc(g));if(g.image)return Q(w.measureImage(g));if(g.svg)return Q(w.measureSVG(g));if(g.canvas)return Q(w.measureCanvas(g));if(g.qr)return Q(w.measureQr(g));throw"Unrecognized document structure: "+JSON.stringify(g,E)});function Q(Y){var y=Y._margin;return y&&(Y._minWidth+=y[0]+y[2],Y._maxWidth+=y[0]+y[2]),Y}},f.prototype.convertIfBase64Image=function(g){if(/^data:image\/(jpeg|jpg|png);base64,/.test(g.image)){var w="$$pdfmake$$"+this.autoImageIndex++;this.images[w]=g.image,g.image=w}},f.prototype.measureImageWithDimensions=function(g,w){if(g.fit){var Q=w.width/w.height>g.fit[0]/g.fit[1]?g.fit[0]/w.width:g.fit[1]/w.height;g._width=g._minWidth=g._maxWidth=w.width*Q,g._height=w.height*Q}else g._width=g._minWidth=g._maxWidth=g.width||w.width,g._height=g.height||w.height*g._width/w.width,h(g.maxWidth)&&g.maxWidthg._width&&(g._width=g._minWidth=g._maxWidth=g.minWidth,g._height=g._width*w.height/w.width),h(g.minHeight)&&g.minHeight>g._height&&(g._height=g.minHeight,g._width=g._minWidth=g._maxWidth=g._height*w.width/w.height);g._alignment=this.styleStack.getProperty("alignment")},f.prototype.measureImage=function(g){this.images&&this.convertIfBase64Image(g);var w=this.imageMeasure.measureImage(g.image);return this.measureImageWithDimensions(g,w),g},f.prototype.measureSVG=function(g){var w=this.svgMeasure.measureSVG(g.svg);return this.measureImageWithDimensions(g,w),g.font=this.styleStack.getProperty("font"),g.svg=this.svgMeasure.writeDimensions(g.svg,{width:g._width,height:g._height}),g},f.prototype.measureLeaf=function(g){g._textRef&&g._textRef._textNodeRef.text&&(g.text=g._textRef._textNodeRef.text);var w=this.styleStack.clone();w.push(g);var Q=this.textTools.buildInlines(g.text,w);return g._inlines=Q.items,g._minWidth=Q.minWidth,g._maxWidth=Q.maxWidth,g},f.prototype.measureToc=function(g){if(g.toc.title&&(g.toc.title=this.measureNode(g.toc.title)),g.toc._items.length>0){for(var w=[],Q=g.toc.textStyle||{},d=g.toc.numberStyle||Q,Y=g.toc.textMargin||[0,0,0,0],y=0,p=g.toc._items.length;y=26?F((z/26>>0)-1):"")+"abcdefghijklmnopqrstuvwxyz"[z%26>>0]}(N-1)}function y(N){if(N<1||N>4999)return N.toString();var W,F=N,z={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},L="";for(W in z)for(;F>=z[W];)L+=W,F-=z[W];return L}var m;switch(Q){case"none":m=null;break;case"upper-alpha":m=Y(g).toUpperCase();break;case"lower-alpha":m=Y(g);break;case"upper-roman":m=y(g);break;case"lower-roman":m=y(g).toLowerCase();break;default:m=function p(N){return N.toString()}(g)}if(null===m)return{};d&&(B(d)?(d[0]&&(m=d[0]+m),d[1]&&(m+=d[1]),m+=" "):m+=d+" ");var D={text:m},U=w.getProperty("markerColor");return U&&(D.color=U),{_inlines:this.textTools.buildInlines(D,w).items}},f.prototype.measureUnorderedList=function(g){var w=this.styleStack.clone(),Q=g.ul;g.type=g.type||"disc",g._gapSize=this.gapSizeForList(),g._minWidth=0,g._maxWidth=0;for(var d=0,Y=Q.length;d0?w.length-1:0;return g._minWidth=Y.min+g._gap*y,g._maxWidth=Y.max+g._gap*y,g},f.prototype.measureTable=function(g){(function lA(MA){if(MA.table.widths||(MA.table.widths="auto"),l(MA.table.widths))for(MA.table.widths=[MA.table.widths];MA.table.widths.length1?(aA(m,Q,D.colSpan),w.push({col:Q,span:D.colSpan,minWidth:D._minWidth,maxWidth:D._maxWidth})):(p._minWidth=Math.max(p._minWidth,D._minWidth),p._maxWidth=Math.max(p._maxWidth,D._maxWidth))),D.rowSpan&&D.rowSpan>1&&AA(g.table,d,Q,D.rowSpan)}}!function L(){for(var MA,cA,gA=0,BA=w.length;gA0)for(MA=_/vA.span,cA=0;cA0)for(MA=dA/vA.span,cA=0;cAE.page?B:E.page>B.page?E:B.y>E.y?B:E).page,x:u.x,y:u.y,availableHeight:u.availableHeight,availableWidth:u.availableWidth}}(this,B.bottomMost)},o.prototype.markEnding=function(B){this.page=B._columnEndingContext.page,this.x=B._columnEndingContext.x,this.y=B._columnEndingContext.y,this.availableWidth=B._columnEndingContext.availableWidth,this.availableHeight=B._columnEndingContext.availableHeight,this.lastColumnWidth=B._columnEndingContext.lastColumnWidth},o.prototype.saveContextInEndingCell=function(B){B._columnEndingContext={page:this.page,x:this.x,y:this.y,availableHeight:this.availableHeight,availableWidth:this.availableWidth,lastColumnWidth:this.lastColumnWidth}},o.prototype.completeColumnGroup=function(B){var E=this.snapshots.pop();this.calculateBottomMost(E),this.endingCell=null,this.x=E.x;var u=E.bottomMost.y;B&&(E.page===E.bottomMost.page?E.y+B>u&&(u=E.y+B):u+=B),this.y=u,this.page=E.bottomMost.page,this.availableWidth=E.availableWidth,this.availableHeight=E.bottomMost.availableHeight,B&&(this.availableHeight-=u-E.bottomMost.y),this.lastColumnWidth=E.lastColumnWidth},o.prototype.addMargin=function(B,E){this.x+=B,this.availableWidth-=B+(E||0)},o.prototype.moveDown=function(B){return this.y+=B,this.availableHeight-=B,this.availableHeight>0},o.prototype.initializePage=function(){this.y=this.pageMargins.top,this.availableHeight=this.getCurrentPage().pageSize.height-this.pageMargins.top-this.pageMargins.bottom,this.pageSnapshot().availableWidth=this.getCurrentPage().pageSize.width-this.pageMargins.left-this.pageMargins.right},o.prototype.pageSnapshot=function(){return this.snapshots[0]?this.snapshots[0]:this},o.prototype.moveTo=function(B,E){null!=B&&(this.x=B,this.availableWidth=this.getCurrentPage().pageSize.width-this.x-this.pageMargins.right),null!=E&&(this.y=E,this.availableHeight=this.getCurrentPage().pageSize.height-this.y-this.pageMargins.bottom)},o.prototype.moveToRelative=function(B,E){null!=B&&(this.x=this.x+B),null!=E&&(this.y=this.y+E)},o.prototype.beginDetachedBlock=function(){this.snapshots.push({x:this.x,y:this.y,availableHeight:this.availableHeight,availableWidth:this.availableWidth,page:this.page,endingCell:this.endingCell,lastColumnWidth:this.lastColumnWidth})},o.prototype.endDetachedBlock=function(){var B=this.snapshots.pop();this.x=B.x,this.y=B.y,this.availableWidth=B.availableWidth,this.availableHeight=B.availableHeight,this.page=B.page,this.endingCell=B.endingCell,this.lastColumnWidth=B.lastColumnWidth};var h=function(B,E){return(E=function l(B,E){return void 0===B?E:i(B)&&"landscape"===B.toLowerCase()?"landscape":"portrait"}(E,B.pageSize.orientation))!==B.pageSize.orientation?{orientation:E,width:B.pageSize.height,height:B.pageSize.width}:{orientation:B.pageSize.orientation,width:B.pageSize.width,height:B.pageSize.height}};o.prototype.moveToNextPage=function(B){var E=this.page+1,u=this.page,C=this.y,e=E>=this.pages.length;if(e){var f=this.availableWidth,g=this.getCurrentPage().pageSize.orientation,w=h(this.getCurrentPage(),B);this.addPage(w),g===w.orientation&&(this.availableWidth=f)}else this.page=E,this.initializePage();return{newPageCreated:e,prevPage:u,prevY:C,y:this.y}},o.prototype.addPage=function(B){var E={items:[],pageSize:B};return this.pages.push(E),this.backgroundLength.push(0),this.page=this.pages.length-1,this.initializePage(),this.tracker.emit("pageAdded"),E},o.prototype.getCurrentPage=function(){return this.page<0||this.page>=this.pages.length?null:this.pages[this.page]},o.prototype.getCurrentPosition=function(){var B=this.getCurrentPage().pageSize,E=B.height-this.pageMargins.top-this.pageMargins.bottom,u=B.width-this.pageMargins.left-this.pageMargins.right;return{pageNumber:this.page+1,pageOrientation:B.orientation,pageInnerHeight:E,pageInnerWidth:u,left:this.x,top:this.y,verticalRatio:(this.y-this.pageMargins.top)/E,horizontalRatio:(this.x-this.pageMargins.left)/u}},T.exports=o},1196:function(T,I,n){"use strict";var c=n(4775),i=n(6225).isNumber,o=n(6225).pack,l=n(6225).offsetVector,h=n(3858);function a(u,C){this.context=u,this.contextStack=[],this.tracker=C}function B(u,C,e){null==e||e<0||e>u.items.length?u.items.push(C):u.items.splice(e,0,C)}a.prototype.addLine=function(u,C,e){var f=u.getHeight(),g=this.context,w=g.getCurrentPage(),Q=this.getCurrentPositionOnPage();return!(g.availableHeight0&&u.inlines[0].alignment,g=0;switch(f){case"right":g=C-e;break;case"center":g=(C-e)/2}if(g&&(u.x=(u.x||0)+g),"justify"===f&&!u.newLineForced&&!u.lastLineInParagraph&&u.inlines.length>1)for(var w=(C-e)/(u.inlines.length-1),Q=1,d=u.inlines.length;Q0)&&(void 0===u._x&&(u._x=u.x||0),u.x=f.x+u._x,u.y=f.y,this.alignImage(u),B(g,{type:e||"image",item:u},C),f.moveDown(u._height),w)},a.prototype.addSVG=function(u,C){return this.addImage(u,C,"svg")},a.prototype.addQr=function(u,C){var e=this.context,f=e.getCurrentPage(),g=this.getCurrentPositionOnPage();if(!f||void 0===u.absolutePosition&&e.availableHeightg.availableHeight||(u.items.forEach(function(Q){switch(Q.type){case"line":var d=function E(u){var C=new c(u.maxWidth);for(var e in u)u.hasOwnProperty(e)&&(C[e]=u[e]);return C}(Q.item);d._node&&(d._node.positions[0].pageNumber=g.page+1),d.x=(d.x||0)+(C?u.xOffset||0:g.x),d.y=(d.y||0)+(e?u.yOffset||0:g.y),w.items.push({type:"line",item:d});break;case"vector":var Y=o(Q.item);l(Y,C?u.xOffset||0:g.x,e?u.yOffset||0:g.y),w.items.push({type:"vector",item:Y});break;case"image":case"svg":var y=o(Q.item);y.x=(y.x||0)+(C?u.xOffset||0:g.x),y.y=(y.y||0)+(e?u.yOffset||0:g.y),w.items.push({type:Q.type,item:y})}}),f||g.moveDown(u.height),0))},a.prototype.pushContext=function(u,C){void 0===u&&(C=this.context.getCurrentPage().height-this.context.pageMargins.top-this.context.pageMargins.bottom,u=this.context.availableWidth),i(u)&&(u=new h({width:u,height:C},{left:0,right:0,top:0,bottom:0})),this.contextStack.push(this.context),this.context=u},a.prototype.popContext=function(){this.context=this.contextStack.pop()},a.prototype.getCurrentPositionOnPage=function(){return(this.contextStack[0]||this.context).getCurrentPosition()},T.exports=a},2249:function(T,I,n){"use strict";var c=n(6225).isArray;function o(l,h){for(var a in this.fonts={},this.pdfKitDoc=h,this.fontCache={},l)if(l.hasOwnProperty(a)){var B=l[a];this.fonts[a]={normal:B.normal,bold:B.bold,italics:B.italics,bolditalics:B.bolditalics}}}o.prototype.getFontType=function(l,h){return function i(l,h){var a="normal";return l&&h?a="bolditalics":l?a="bold":h&&(a="italics"),a}(l,h)},o.prototype.getFontFile=function(l,h,a){var B=this.getFontType(h,a);return this.fonts[l]&&this.fonts[l][B]?this.fonts[l][B]:null},o.prototype.provideFont=function(l,h,a){var B=this.getFontType(h,a);if(null===this.getFontFile(l,h,a))throw new Error("Font '"+l+"' in style '"+B+"' is not defined in the font section of the document definition.");if(this.fontCache[l]=this.fontCache[l]||{},!this.fontCache[l][B]){var E=this.fonts[l][B];c(E)||(E=[E]),this.fontCache[l][B]=this.pdfKitDoc.font.apply(this.pdfKitDoc,E)._font}return this.fontCache[l][B]},T.exports=o},6225:function(T){"use strict";function i(g){return Array.isArray(g)}T.exports={isString:function I(g){return"string"==typeof g||g instanceof String},isNumber:function n(g){return"number"==typeof g||g instanceof Number},isBoolean:function c(g){return"boolean"==typeof g},isArray:i,isFunction:function o(g){return"function"==typeof g},isObject:function l(g){return null!==g&&"object"==typeof g},isNull:function h(g){return null===g},isUndefined:function a(g){return void 0===g},pack:function B(){for(var g={},w=0,Q=arguments.length;w0})).forEach(function(V){var hA={};["id","text","ul","ol","table","image","qr","canvas","svg","columns","headlineLevel","style","pageBreak","pageOrientation","width","height"].forEach(function(mA){void 0!==V[mA]&&(hA[mA]=V[mA])}),hA.startPosition=V.positions[0],hA.pageNumbers=Array.from(new Set(V.positions.map(function(mA){return mA.pageNumber}))),hA.pages=dA.length,hA.stack=C(V.stack),V.nodeInfo=hA});for(var uA=0;uA<_.length;uA++){var CA=_[uA];if("before"!==CA.pageBreak&&!CA.pageBreakCalculated){CA.pageBreakCalculated=!0;var NA=CA.nodeInfo.pageNumbers[0],bA=[],XA=[],q=[];if(gA.length>1)for(var O=uA+1,$=_.length;O<$;O++)_[O].nodeInfo.pageNumbers.indexOf(NA)>-1&&bA.push(_[O].nodeInfo),gA.length>2&&_[O].nodeInfo.pageNumbers.indexOf(NA+1)>-1&&XA.push(_[O].nodeInfo);if(gA.length>3)for(O=0;O-1&&q.push(_[O].nodeInfo);if(gA(CA.nodeInfo,bA,XA,q))return CA.pageBreak="before",!0}}return!1}this.docPreprocessor=new i,this.docMeasure=new o(z,L,W,this.imageMeasure,this.svgMeasure,this.tableLayouts,MA);for(var FA=this.tryLayoutDocument(F,z,L,W,aA,AA,lA,MA,cA);BA(FA.linearNodeList,FA.pages);)FA.linearNodeList.forEach(function(dA){dA.resetXY()}),FA=this.tryLayoutDocument(F,z,L,W,aA,AA,lA,MA,cA);return FA.pages},U.prototype.tryLayoutDocument=function(F,z,L,W,aA,AA,lA,MA,cA,gA){this.linearNodeList=[],F=this.docPreprocessor.preprocessDocument(F),F=this.docMeasure.measureDocument(F),this.writer=new h(new l(this.pageSize,this.pageMargins),this.tracker);var BA=this;return this.writer.context().tracker.startTracking("pageAdded",function(){BA.addBackground(aA)}),this.addBackground(aA),this.processNode(F),this.addHeadersAndFooters(AA,lA),null!=cA&&this.addWatermark(cA,z,W),{pages:this.writer.context().pages,linearNodeList:this.linearNodeList}},U.prototype.addBackground=function(F){var z=Y(F)?F:function(){return F},L=this.writer.context(),W=L.getCurrentPage().pageSize,aA=z(L.page+1,W);aA&&(this.writer.beginUnbreakableBlock(W.width,W.height),aA=this.docPreprocessor.preprocessDocument(aA),this.processNode(this.docMeasure.measureDocument(aA)),this.writer.commitUnbreakableBlock(0,0),L.backgroundLength[L.page]+=aA.positions.length)},U.prototype.addStaticRepeatable=function(F,z){this.addDynamicRepeatable(function(){return JSON.parse(JSON.stringify(F))},z)},U.prototype.addDynamicRepeatable=function(F,z){for(var W=0,aA=this.writer.context().pages.length;W1;)_.push({fontSize:NA}),(dA=FA.sizeOfRotatedText(BA.text,BA.angle,_)).width>gA.width?NA=(uA+(CA=NA))/2:dA.widthgA.height?(uA+(CA=NA))/2:((uA=NA)+CA)/2),_.pop();return NA}(this.pageSize,F,z));var W={text:F.text,font:z.provideFont(F.font,F.bold,F.italics),fontSize:F.fontSize,color:F.color,opacity:F.opacity,angle:F.angle};W._size=function MA(gA,BA){var vA=new y(BA),FA=new p(null,{font:gA.font,bold:gA.bold,italics:gA.italics});return FA.push({fontSize:gA.fontSize}),{size:vA.sizeOfString(gA.text,FA),rotatedSize:vA.sizeOfRotatedText(gA.text,gA.angle,FA)}}(F,z);for(var aA=this.writer.context().pages,AA=0,lA=aA.length;AA0;cA--)MA.push(lA);return MA}(F._gap);W&&(L-=(W.length-1)*F._gap),a.buildColumnWidths(z,L);var aA=this.processRow(z,z,W);D(F.positions,aA.positions)},U.prototype.processRow=function(F,z,L,W,aA,AA){var lA=this,MA=[],cA=[];return this.tracker.auto("pageChanged",function gA(FA){for(var _,dA=0,uA=MA.length;dA1)for(var NA=1;NAFA?L[FA]:0}function vA(FA,_){if(FA.rowSpan&&FA.rowSpan>1){var dA=aA+FA.rowSpan-1;if(dA>=W.length)throw"Row span for column "+_+" (with indexes starting from 0) exceeded row count";return W[dA][_]}return null}},U.prototype.processList=function(F,z){var AA,L=this,W=F?z.ol:z.ul,aA=z._gapSize;this.writer.context().addMargin(aA.width),this.tracker.auto("lineAdded",function lA(MA){if(AA){var cA=AA;if(AA=null,cA.canvas){var gA=cA.canvas[0];w(gA,-cA._minWidth,0),L.writer.addVector(gA)}else if(cA._inlines){var BA=new E(L.pageSize.width);BA.addInline(cA._inlines[0]),BA.x=-cA._minWidth,BA.y=MA.getAscenderHeight()-BA.getAscenderHeight(),L.writer.addLine(BA,!0)}}},function(){W.forEach(function(MA){AA=MA.listMarker,L.processNode(MA),D(z.positions,MA.positions)})}),this.writer.context().addMargin(-aA.width)},U.prototype.processTable=function(F){var z=new B(F);z.beginTable(this.writer);for(var L=F.table.heights,W=0,aA=F.table.body.length;W0&&(L.hasEnoughSpaceForInline(F._inlines[0],F._inlines.slice(1))||aA);){var AA=!1,lA=F._inlines.shift();if(aA=!1,!lA.noWrap&&lA.text.length>1&&lA.width>L.getAvailableWidth()){var MA=lA.width/lA.text.length,cA=Math.floor(L.getAvailableWidth()/MA);if(cA<1&&(cA=1),cA0){var u=B.pages[0];if(u.xOffset=h,u.yOffset=a,E>1)if(void 0!==h||void 0!==a)u.height=B.getCurrentPage().pageSize.height-B.pageMargins.top-B.pageMargins.bottom;else{u.height=this.writer.context.getCurrentPage().pageSize.height-this.writer.context.pageMargins.top-this.writer.context.pageMargins.bottom;for(var C=0,e=this.repeatables.length;CXA.item.y2?XA.item.y1:XA.item.y2:0}(XA)}var NA=N(dA||40),bA=NA.top;return _.forEach(function(XA){XA.items.forEach(function(q){var O=CA(q);O>bA&&(bA=O)})}),bA+=NA.bottom}function U(_,dA){_&&"auto"===_.height&&(_.height=1/0);var CA=function z(_){if(C(_)){var dA=l[_.toUpperCase()];if(!dA)throw"Page size "+_+" not recognized";return{width:dA[0],height:dA[1]}}return _}(_||"A4");return function uA(NA){return!!C(NA)&&("portrait"===(NA=NA.toLowerCase())&&CA.width>CA.height||"landscape"===NA&&CA.widthCA.height?"landscape":"portrait",CA}function N(_){if(e(_))_={left:_,right:_,top:_,bottom:_};else if(g(_))if(2===_.length)_={left:_[0],top:_[1],right:_[0],bottom:_[1]};else{if(4!==_.length)throw"Invalid pageMargins definition";_={left:_[0],top:_[1],right:_[2],bottom:_[3]}}return _}function L(_,dA){_.pageSize.orientation!==(dA.options.size[0]>dA.options.size[1]?"landscape":"portrait")&&(dA.options.size=[dA.options.size[1],dA.options.size[0]])}function aA(_,dA){var uA=_;return dA.sup&&(uA-=.75*dA.fontSize),dA.sub&&(uA+=.35*dA.fontSize),uA}function AA(_,dA,uA,CA,NA){function bA(ot,TA){var it,mt,It=new E(null);if(w(ot.positions))throw"Page reference id not found";var ut=ot.positions[0].pageNumber.toString();switch(TA.text=ut,it=It.widthOfString(TA.text,TA.font,TA.fontSize,TA.characterSpacing,TA.fontFeatures),mt=TA.width-it,TA.width=it,TA.alignment){case"right":TA.x+=mt;break;case"center":TA.x+=mt/2}}_._pageNodeRef&&bA(_._pageNodeRef,_.inlines[0]),dA=dA||0,uA=uA||0;var XA=_.getHeight(),O=XA-_.getAscenderHeight();B.drawBackground(_,dA,uA,CA,NA);for(var $=0,V=_.inlines.length;$1){var XA=_.points[0],q=_.points[_.points.length-1];(_.closePath||XA.x===q.x&&XA.y===q.y)&&uA.closePath()}break;case"path":uA.path(_.d)}if(_.linearGradient&&CA){var O=1/(_.linearGradient.length-1);for(NA=0;NA<_.linearGradient.length;NA++)CA.stop(NA*O,_.linearGradient[NA]);_.color=CA}Q(_.color)&&(_.color=d(_.color,dA));var $=e(_.fillOpacity)?_.fillOpacity:1,V=e(_.strokeOpacity)?_.strokeOpacity:1;_.color&&_.lineColor?(uA.fillColor(_.color,$),uA.strokeColor(_.lineColor,V),uA.fillAndStroke()):_.color?(uA.fillColor(_.color,$),uA.fill()):(uA.strokeColor(_.lineColor||"black",V),uA.stroke())}function cA(_,dA,uA,CA){var NA=e(_.opacity)?_.opacity:1;if(CA.opacity(NA),_.cover){var bA=_.cover.align||"center",XA=_.cover.valign||"center",q=_.cover.width?_.cover.width:_.width,O=_.cover.height?_.cover.height:_.height;CA.save(),CA.rect(_.x,_.y,q,O).clip(),CA.image(_.image,_.x,_.y,{cover:[q,O],align:bA,valign:XA}),CA.restore()}else CA.image(_.image,_.x,_.y,{width:_._width,height:_._height});_.link&&CA.link(_.x,_.y,_._width,_._height,_.link),_.linkToPage&&(CA.ref({Type:"Action",S:"GoTo",D:[_.linkToPage,0,0]}).end(),CA.annotate(_.x,_.y,_._width,_._height,{Subtype:"Link",Dest:[_.linkToPage-1,"XYZ",null,null,null]})),_.linkToDestination&&CA.goTo(_.x,_.y,_._width,_._height,_.linkToDestination)}function gA(_,dA,uA,CA,NA){var bA=Object.assign({width:_._width,height:_._height,assumePt:!0},_.options);bA.fontCallback=function(XA,q,O){var $=XA.split(",").map(function(nA){return nA.trim().replace(/('|")/g,"")}),V=function(_,dA,uA){for(var CA=0;CA-1&&(bA=bA.slice(0,XA)),uA.height===1/0){var q=D(bA,_.pageMargins);this.pdfKitDoc.options.size=[uA.width,q]}var O=function FA(_,dA){var uA={};return Object.keys(_).forEach(function(CA){var NA=_[CA];uA[CA]=dA.pattern(NA.boundingBox,NA.xStep,NA.yStep,NA.pattern,NA.colored)}),uA}(_.patterns||{},this.pdfKitDoc);if(function W(_,dA,uA,CA,NA){uA._pdfMakePages=_,uA.addPage();var bA=0;NA&&_.forEach(function(mA){bA+=mA.items.length});var XA=0;NA=NA||function(){};for(var q=0;q<_.length;q++){q>0&&(L(_[q],uA),uA.addPage(uA.options));for(var O=_[q],$=0,V=O.items.length;$=128?285:0);var d=[[]];for(w=0;w<30;++w){for(var Y=d[w],y=[],p=0;p<=w;++p)y.push(g[(p6},W=function(q,O){var $=-8&function(q){var O=I[q],$=16*q*q+128*q+64;return F(q)&&($-=36),O[2].length&&($-=25*O[2].length*O[2].length-10*O[2].length-55),$}(q),V=I[q];return $-8*V[0][O]*V[1][O]},aA=function(q,O){switch(O){case 1:return q<10?10:q<27?12:14;case 2:return q<10?9:q<27?11:13;case 4:return q<10?8:16;case 8:return q<10?8:q<27?10:12}},AA=function(q,O,$){var V=W(q,$)-4-aA(q,O);switch(O){case 1:return 3*(V/10|0)+(V%10<4?0:V%10<7?1:2);case 2:return 2*(V/11|0)+(V%11<6?0:1);case 4:return V/8|0;case 8:return V/13|0}},cA=function(q,O){for(var $=q.slice(0),V=q.length,hA=O.length,mA=0;mA=0)for(var EA=0;EA=0;--mA)hA>>V+mA&1&&(hA^=$<>nA&1;return q},uA=function(q){for(var mA=function(JA){for(var VA=0,rt=0;rt=5&&(VA+=JA[rt]-5+3);for(rt=5;rt=4*yA||JA[rt+1]>=4*yA)&&(VA+=40)}return VA},nA=q.length,EA=0,GA=0,et=0;et=nA){for(hA.push(mA|TA>>(it-=nA));it>=8;)hA.push(TA>>(it-=8)&255);mA=0,nA=8}it>0&&(mA|=(TA&(1<>3);nA=function(q,O,$){for(var V=[],hA=q.length/O|0,mA=0,nA=O-q.length%O,EA=0;EA>Mt&1,hA[It+yA][ut+Mt]=1};for(nA(0,0,9,9,[127,65,93,93,93,65,383,0,64]),nA($-8,0,8,9,[256,127,65,93,93,93,65,127]),nA(0,$-8,9,8,[254,130,186,186,186,130,254,0,0]),mA=9;mA<$-8;++mA)V[6][mA]=V[mA][6]=1&~mA,hA[6][mA]=hA[mA][6]=1;var EA=O[2],GA=EA.length;for(mA=0;mA>mt++&1,hA[mA][$-11+TA]=hA[$-11+TA][mA]=1}return{matrix:V,reserved:hA}}(O),GA=EA.matrix,et=EA.reserved;if(function(q,O,$){for(var V=q.length,hA=0,mA=-1,nA=V-1;nA>=0;nA-=2){6==nA&&--nA;for(var EA=mA<0?V-1:0,GA=0;GAnA-2;--et)O[EA][et]||(q[EA][et]=$[hA>>3]>>(7&~hA)&1,++hA);EA+=mA}mA=-mA}}(GA,et,nA),hA<0){_(GA,et,0),dA(GA,0,V,0);var ot=0,TA=uA(GA);for(_(GA,et,0),hA=1;hA<8;++hA){_(GA,et,hA),dA(GA,0,V,hA);var it=uA(GA);TA>it&&(TA=it,ot=hA),_(GA,et,hA)}hA=ot}return _(GA,et,hA),dA(GA,0,V,hA),GA};function NA(q,O){var $={numeric:1,alphanumeric:2,octet:4},hA=(O=O||{}).version||-1,mA={L:1,M:0,Q:3,H:2}[(O.eccLevel||"L").toUpperCase()],nA=O.mode?$[O.mode.toLowerCase()]:-1,EA="mask"in O?O.mask:-1;if(nA<0)nA="string"==typeof q?q.match(h)?1:q.match(B)?2:4:4;else if(1!=nA&&2!=nA&&4!=nA)throw"invalid or unsupported mode";if(null===(q=function(q,O){switch(q){case 1:return O.match(h)?O:null;case 2:return O.match(a)?O.toUpperCase():null;case 4:if("string"==typeof O){for(var $=[],V=0;V>6,128|63&hA):hA<65536?$.push(224|hA>>12,128|hA>>6&63,128|63&hA):$.push(240|hA>>18,128|hA>>12&63,128|hA>>6&63,128|63&hA)}return $}return O}}(nA,q)))throw"invalid data format";if(mA<0||mA>3)throw"invalid ECC level";if(hA<0){for(hA=1;hA<=40&&!(q.length<=AA(hA,nA,mA));++hA);if(hA>40)throw"too large data for the Qr format"}else if(hA<1||hA>40)throw"invalid Qr version! should be between 1 and 40";if(-1!=EA&&(EA<0||EA>8))throw"invalid mask";return CA(q,hA,nA,mA,EA)}T.exports={measure:function XA(q){var O=function bA(q,O){var $=[],V=O.background||"#fff",hA=O.foreground||"#000",mA=NA(q,O),nA=mA.length,EA=Math.floor(O.fit?O.fit/nA:5),GA=nA*EA;$.push({type:"rect",x:0,y:0,w:GA,h:GA,lineWidth:0,color:V});for(var et=0;et0;)this.styleOverrides.pop()},h.prototype.autopush=function(a){if(c(a))return 0;var B=[];a.style&&(B=i(a.style)?a.style:[a.style]);for(var E=0,u=B.length;E0&&this.pop(E),u},h.prototype.getProperty=function(a){if(this.styleOverrides)for(var B=this.styleOverrides.length-1;B>=0;B--){var E=this.styleOverrides[B];if(c(E)){var u=this.styleDictionary[E];if(u&&!o(u[a])&&!l(u[a]))return u[a]}else if(!o(E[a])&&!l(E[a]))return E[a]}return this.defaultStyle&&this.defaultStyle[a]},T.exports=h},7601:function(T,I,n){"use strict";var c=n(6513);function i(h){var a=parseFloat(h);if("number"==typeof a&&!isNaN(a))return a}function o(h){var a;try{a=new c.XmlDocument(h)}catch(B){throw new Error("SVGMeasure: "+B)}if("svg"!==a.name)throw new Error("SVGMeasure: expected document");return a}function l(){}l.prototype.measureSVG=function(h){var a=o(h),B=i(a.attr.width),E=i(a.attr.height);if((null==B||null==E)&&"string"==typeof a.attr.viewBox){var u=a.attr.viewBox.split(/[,\s]+/);if(4!==u.length)throw new Error("Unexpected svg viewbox format, should have 4 entries but found: '"+a.attr.viewBox+"'");null==B&&(B=i(u[2])),null==E&&(E=i(u[3]))}return{width:B,height:E}},l.prototype.writeDimensions=function(h,a){var B=o(h);return B.attr.width=""+a.width,B.attr.height=""+a.height,B.toString()},T.exports=l},9342:function(T,I,n){"use strict";var c=n(4498),i=n(6225).isFunction,o=n(6225).isNumber;function l(h){this.tableNode=h}l.prototype.beginTable=function(h){var a,B,E=this;this.offsets=(a=this.tableNode)._offsets,this.layout=a._layout,B=h.context().availableWidth-this.offsets.total,c.buildColumnWidths(a.table.widths,B),this.tableWidth=a._offsets.total+function u(){var f=0;return a.table.widths.forEach(function(g){f+=g._calcWidth}),f}(),this.rowSpanData=function C(){var f=[],g=0,w=0;f.push({left:0,rowSpan:0});for(var Q=0,d=E.tableNode.table.body[0].length;Q0&&D(g+p,Q,0,d.border[0]),void 0!==d.border[2]&&D(g+p,Q+y-1,2,d.border[2]);for(var m=0;m0&&D(g,Q+m,1,d.border[1]),void 0!==d.border[3]&&D(g+Y-1,Q+m,3,d.border[3])}}function D(U,N,F,z){var L=f[U][N];L.border=L.border||{},L.border[F]=z}}(this.tableNode.table.body),this.drawHorizontalLine(0,h)},l.prototype.onRowBreak=function(h,a){var B=this;return function(){var E=B.rowPaddingTop+(B.headerRows?0:B.topLineWidth);a.context().availableHeight-=B.reservedAtBottom,a.context().moveDown(E)}},l.prototype.beginRow=function(h,a){this.topLineWidth=this.layout.hLineWidth(h,this.tableNode),this.rowPaddingTop=this.layout.paddingTop(h,this.tableNode),this.bottomLineWidth=this.layout.hLineWidth(h+1,this.tableNode),this.rowPaddingBottom=this.layout.paddingBottom(h,this.tableNode),this.rowCallback=this.onRowBreak(h,a),a.tracker.startTracking("pageChanged",this.rowCallback),this.dontBreakRows&&a.beginUnbreakableBlock(),this.rowTopY=a.context().y,this.reservedAtBottom=this.bottomLineWidth+this.rowPaddingBottom,a.context().availableHeight-=this.reservedAtBottom,a.context().moveDown(this.rowPaddingTop)},l.prototype.drawHorizontalLine=function(h,a,B){var E=this.layout.hLineWidth(h,this.tableNode);if(E){var C,u=this.layout.hLineStyle(h,this.tableNode);u&&u.dash&&(C=u.dash);for(var w,Q,d,e=E/2,f=null,g=this.tableNode.table.body,Y=0,y=this.rowSpanData.length;Y0&&(N=(w=g[h-1][Y]).border?w.border[3]:this.layout.defaultBorder)&&w.borderColor&&(D=w.borderColor[3]),hz;)f.width+=this.rowSpanData[Y+z++].width||0;Y+=z-1}else if(w&&w.colSpan&&N){for(;w.colSpan>z;)f.width+=this.rowSpanData[Y+z++].width||0;Y+=z-1}else if(Q&&Q.colSpan&&U){for(;Q.colSpan>z;)f.width+=this.rowSpanData[Y+z++].width||0;Y+=z-1}else f.width+=this.rowSpanData[Y].width||0}var L=(B||0)+e;m&&f&&f.width&&(a.addVector({type:"line",x1:f.left,x2:f.left+f.width,y1:L,y2:L,lineWidth:E,dash:C,lineColor:D},!1,B),f=null,D=null,w=null,Q=null,d=null)}a.context().moveDown(E)}},l.prototype.drawVerticalLine=function(h,a,B,E,u,C,e){var f=this.layout.vLineWidth(E,this.tableNode);if(0!==f){var w,g=this.layout.vLineStyle(E,this.tableNode);g&&g.dash&&(w=g.dash);var d,Y,y,Q=this.tableNode.table.body;if(E>0&&(d=Q[C][e])&&d.borderColor&&(d.border?d.border[2]:this.layout.defaultBorder)&&(y=d.borderColor[2]),null==y&&E0&&$--}return O.push({x:C.rowSpanData[C.rowSpanData.length-1].left,index:C.rowSpanData.length-1}),O}(),w=[],Q=B&&B.length>0,d=this.tableNode.table.body;if(w.push({y0:this.rowTopY,page:Q?B[0].prevPage:e}),Q)for(u=0,E=B.length;u0&&!this.headerRows,N=U?0:this.topLineWidth,F=w[p].y0,z=w[p].y1;for(D&&(z+=this.rowPaddingBottom),a.context().page!=w[p].page&&(a.context().page=w[p].page,this.reservedAtBottom=0),u=0,E=g.length;u0&&!L&&(L=(AA=d[h][aA-1]).border?AA.border[2]:this.layout.defaultBorder),aA+11)for(var XA=1;XA1)for(XA=1;XA0&&this.rowSpanData[u].rowSpan--}this.drawHorizontalLine(h+1,a),this.headerRows&&h===this.headerRows-1&&(this.headerRepeatable=a.currentBlockToRepeatable()),this.dontBreakRows&&a.tracker.auto("pageChanged",function(){!C.headerRows&&!1!==C.layout.hLineWhenBroken&&C.drawHorizontalLine(h,a)},function(){a.commitUnbreakableBlock()}),this.headerRepeatable&&(h===this.rowsWithoutPageBreak-1||h===this.tableNode.table.body.length-1)&&(a.commitUnbreakableBlock(),a.pushToRepeatables(this.headerRepeatable),this.cleanUpRepeatables=!0,this.headerRepeatable=null)},T.exports=l},3497:function(T,I,n){"use strict";var c=n(6225).isArray,i=n(6225).isPattern,o=n(6225).getPattern;function h(E,u,C,e){var w=E.inlines[0],Q=function f(){for(var BA=0,vA=0,FA=E.inlines.length;vABA?vA:BA;return E.inlines[BA]}(),d=function g(){for(var BA=0,vA=0,FA=E.inlines.length;vA=0&&i.splice(o,1)}},I.prototype.emit=function(n){var c=Array.prototype.slice.call(arguments,1),i=this.events[n];!i||i.forEach(function(o){o.apply(this,c)})},I.prototype.auto=function(n,c,i){this.startTracking(n,c),i(),this.stopTracking(n,c)},T.exports=I},2480:function(){},5832:function(){},9862:function(){},964:function(){},3083:function(T,I,n){"use strict";var c=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?n.g:globalThis;T.exports=function(){for(var l=[],h=0;h{var xr=function(St){"use strict";var Pn,Et=Object.prototype,_t=Et.hasOwnProperty,A="function"==typeof Symbol?Symbol:{},Ct=A.iterator||"@@iterator",T=A.asyncIterator||"@@asyncIterator",I=A.toStringTag||"@@toStringTag";function n(F,z,L){return Object.defineProperty(F,z,{value:L,enumerable:!0,configurable:!0,writable:!0}),F[z]}try{n({},"")}catch(F){n=function(z,L,W){return z[L]=W}}function c(F,z,L,W){var AA=Object.create((z&&z.prototype instanceof E?z:E).prototype),lA=new D(W||[]);return AA._invoke=function Y(F,z,L){var W=o;return function(AA,lA){if(W===h)throw new Error("Generator is already running");if(W===a){if("throw"===AA)throw lA;return N()}for(L.method=AA,L.arg=lA;;){var MA=L.delegate;if(MA){var cA=y(MA,L);if(cA){if(cA===B)continue;return cA}}if("next"===L.method)L.sent=L._sent=L.arg;else if("throw"===L.method){if(W===o)throw W=a,L.arg;L.dispatchException(L.arg)}else"return"===L.method&&L.abrupt("return",L.arg);W=h;var gA=i(F,z,L);if("normal"===gA.type){if(W=L.done?a:l,gA.arg===B)continue;return{value:gA.arg,done:L.done}}"throw"===gA.type&&(W=a,L.method="throw",L.arg=gA.arg)}}}(F,L,lA),AA}function i(F,z,L){try{return{type:"normal",arg:F.call(z,L)}}catch(W){return{type:"throw",arg:W}}}St.wrap=c;var o="suspendedStart",l="suspendedYield",h="executing",a="completed",B={};function E(){}function u(){}function C(){}var e={};n(e,Ct,function(){return this});var f=Object.getPrototypeOf,g=f&&f(f(U([])));g&&g!==Et&&_t.call(g,Ct)&&(e=g);var w=C.prototype=E.prototype=Object.create(e);function Q(F){["next","throw","return"].forEach(function(z){n(F,z,function(L){return this._invoke(z,L)})})}function d(F,z){function L(AA,lA,MA,cA){var gA=i(F[AA],F,lA);if("throw"!==gA.type){var BA=gA.arg,vA=BA.value;return vA&&"object"==typeof vA&&_t.call(vA,"__await")?z.resolve(vA.__await).then(function(FA){L("next",FA,MA,cA)},function(FA){L("throw",FA,MA,cA)}):z.resolve(vA).then(function(FA){BA.value=FA,MA(BA)},function(FA){return L("throw",FA,MA,cA)})}cA(gA.arg)}var W;this._invoke=function aA(AA,lA){function MA(){return new z(function(cA,gA){L(AA,lA,cA,gA)})}return W=W?W.then(MA,MA):MA()}}function y(F,z){var L=F.iterator[z.method];if(L===Pn){if(z.delegate=null,"throw"===z.method){if(F.iterator.return&&(z.method="return",z.arg=Pn,y(F,z),"throw"===z.method))return B;z.method="throw",z.arg=new TypeError("The iterator does not provide a 'throw' method")}return B}var W=i(L,F.iterator,z.arg);if("throw"===W.type)return z.method="throw",z.arg=W.arg,z.delegate=null,B;var aA=W.arg;return aA?aA.done?(z[F.resultName]=aA.value,z.next=F.nextLoc,"return"!==z.method&&(z.method="next",z.arg=Pn),z.delegate=null,B):aA:(z.method="throw",z.arg=new TypeError("iterator result is not an object"),z.delegate=null,B)}function p(F){var z={tryLoc:F[0]};1 in F&&(z.catchLoc=F[1]),2 in F&&(z.finallyLoc=F[2],z.afterLoc=F[3]),this.tryEntries.push(z)}function m(F){var z=F.completion||{};z.type="normal",delete z.arg,F.completion=z}function D(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(p,this),this.reset(!0)}function U(F){if(F){var z=F[Ct];if(z)return z.call(F);if("function"==typeof F.next)return F;if(!isNaN(F.length)){var L=-1,W=function aA(){for(;++L=0;--W){var aA=this.tryEntries[W],AA=aA.completion;if("root"===aA.tryLoc)return L("end");if(aA.tryLoc<=this.prev){var lA=_t.call(aA,"catchLoc"),MA=_t.call(aA,"finallyLoc");if(lA&&MA){if(this.prev=0;--L){var W=this.tryEntries[L];if(W.tryLoc<=this.prev&&_t.call(W,"finallyLoc")&&this.prev=0;--z){var L=this.tryEntries[z];if(L.finallyLoc===F)return this.complete(L.completion,L.afterLoc),m(L),B}},catch:function(F){for(var z=this.tryEntries.length-1;z>=0;--z){var L=this.tryEntries[z];if(L.tryLoc===F){var W=L.completion;if("throw"===W.type){var aA=W.arg;m(L)}return aA}}throw new Error("illegal catch attempt")},delegateYield:function(F,z,L){return this.delegate={iterator:U(F),resultName:z,nextLoc:L},"next"===this.method&&(this.arg=Pn),B}},St}(oi.exports);try{regeneratorRuntime=xr}catch(St){"object"==typeof globalThis?globalThis.regeneratorRuntime=xr:Function("r","regeneratorRuntime = r")(xr)}},7757:(oi,xr,St)=>{oi.exports=St(4979)}}]); \ No newline at end of file diff --git a/frontend/564.d41ab2b8bdd42ac9.js b/frontend/564.d41ab2b8bdd42ac9.js deleted file mode 100644 index c0a7d658..00000000 --- a/frontend/564.d41ab2b8bdd42ac9.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[564],{9564:(oi,xr,St)=>{"use strict";St.r(xr),St.d(xr,{CLNModule:()=>nf});var ht=St(9808),_t=St(1402),Pn=St(8878),A=St(5e3),Ct=St(7093),T=St(5899);function I(r,v){1&r&&A._UZ(0,"mat-progress-bar",3)}let n=(()=>{class r{constructor(t){this.router=t,this.loading=!1,this.router.events.subscribe(s=>{switch(!0){case s instanceof _t.OD:this.loading=!0;break;case s instanceof _t.m2:case s instanceof _t.gk:case s instanceof _t.Q3:this.loading=!1}})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-root"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["color","primary","mode","indeterminate",4,"ngIf"],["outlet","outlet"],["color","primary","mode","indeterminate"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,I,1,0,"mat-progress-bar",1),A._UZ(2,"router-outlet",null,2),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",s.loading))},directives:[Ct.xw,Ct.yH,Ct.Wh,ht.O5,_t.lC,T.pW],styles:[""],data:{animation:[Pn.g]}}),r})();var l=St(7579),i=St(2722),o=St(1365),c=St(534),h=St(801),a=St(7731),B=St(9828),E=St(5043),u=St(5620),C=St(6642),e=St(62),f=St(9444),g=St(3954),w=St(9224),Q=St(2181),d=St(3322),Y=St(7423),y=St(5245);const p=function(r){return{backgroundColor:r}};function m(r,v){if(1&r&&A._UZ(0,"span",6),2&r){const t=A.oxw();A.Q6J("ngStyle",A.VKq(1,p,"#"+(null==t.information?null:t.information.color)))}}function D(r,v){if(1&r&&(A.TgZ(0,"div"),A.TgZ(1,"h4",1),A._uU(2,"Color"),A.qZA(),A.TgZ(3,"div",2),A._UZ(4,"span",7),A._uU(5),A.ALo(6,"uppercase"),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(4),A.Q6J("ngStyle",A.VKq(4,p,"#"+(null==t.information?null:t.information.color))),A.xp6(1),A.hij(" ",A.lcZ(6,2,null==t.information?null:t.information.color)," ")}}function U(r,v){if(1&r&&(A.TgZ(0,"span",2),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(t)}}let N=(()=>{class r{constructor(t){this.commonService=t,this.chains=[""]}ngOnChanges(){this.information&&this.information.chains&&this.information.chains.length>0&&(this.chains=[""],this.information.chains.forEach(t=>{this.chains.push(this.commonService.titleCase(t.chain)+" "+this.commonService.titleCase(t.network))}))}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},features:[A.TTD],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(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div"),A.TgZ(2,"h4",1),A._uU(3,"Alias"),A.qZA(),A.TgZ(4,"div",2),A._uU(5),A.YNc(6,m,1,3,"span",3),A.qZA(),A.qZA(),A.YNc(7,D,7,6,"div",4),A.TgZ(8,"div"),A.TgZ(9,"h4",1),A._uU(10,"Implementation"),A.qZA(),A.TgZ(11,"div",2),A._uU(12),A.qZA(),A.qZA(),A.TgZ(13,"div"),A.TgZ(14,"h4",1),A._uU(15,"Chain"),A.qZA(),A.YNc(16,U,2,1,"span",5),A.qZA(),A.qZA()),2&t&&(A.xp6(5),A.hij(" ",null==s.information?null:s.information.alias," "),A.xp6(1),A.Q6J("ngIf",!s.showColorFieldSeparately),A.xp6(1),A.Q6J("ngIf",s.showColorFieldSeparately),A.xp6(5),A.Oqu(null!=s.information&&s.information.lnImplementation||null!=s.information&&s.information.version?(null==s.information?null:s.information.lnImplementation)+" "+(null==s.information?null:s.information.version):""),A.xp6(4),A.Q6J("ngForOf",s.chains))},directives:[Ct.xw,Ct.yH,Ct.Wh,ht.O5,ht.sg,ht.PC,d.Zl],pipes:[ht.gd],styles:[""]}),r})();function F(r,v){if(1&r&&(A.TgZ(0,"div",2),A.TgZ(1,"div"),A.TgZ(2,"h4",3),A._uU(3,"Lightning"),A.qZA(),A.TgZ(4,"div",4),A._uU(5),A.ALo(6,"number"),A.qZA(),A._UZ(7,"mat-progress-bar",5),A.qZA(),A.TgZ(8,"div"),A.TgZ(9,"h4",3),A._uU(10,"On-chain"),A.qZA(),A.TgZ(11,"div",4),A._uU(12),A.ALo(13,"number"),A.qZA(),A._UZ(14,"mat-progress-bar",5),A.qZA(),A.TgZ(15,"div"),A.TgZ(16,"h4",3),A._uU(17,"Total"),A.qZA(),A.TgZ(18,"div",4),A._uU(19),A.ALo(20,"number"),A.qZA(),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(5),A.hij("",A.lcZ(6,5,t.balances.lightning)," Sats"),A.xp6(2),A.s9C("value",t.balances.lightning/t.balances.total*100),A.xp6(5),A.hij("",A.lcZ(13,7,t.balances.onchain)," Sats"),A.xp6(2),A.s9C("value",t.balances.onchain/t.balances.total*100),A.xp6(5),A.hij("",A.lcZ(20,9,t.balances.total)," Sats")}}function z(r,v){if(1&r&&(A.TgZ(0,"div",6),A.TgZ(1,"p"),A._uU(2),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let L=(()=>{class r{constructor(){this.balances={onchain:0,lightning:0,total:0}}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-balances-info"]],inputs:{balances:"balances",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["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(t,s){if(1&t&&(A.YNc(0,F,21,11,"div",0),A.YNc(1,z,3,1,"ng-template",null,1,A.W1O)),2&t){const G=A.MAs(2);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",G)}},directives:[ht.O5,Ct.xw,Ct.yH,Ct.Wh,T.pW],pipes:[ht.JJ],styles:[""]}),r})();var W=St(7322),aA=St(7238),AA=St(4834),cA=St(644);const MA=function(){return["../connections/channels/open"]},lA=function(r){return{filter:r}};function gA(r,v){if(1&r&&(A.TgZ(0,"div",19),A.TgZ(1,"a",20),A._uU(2),A.ALo(3,"slice"),A.qZA(),A.TgZ(4,"div",6),A.TgZ(5,"mat-hint",21),A.TgZ(6,"strong",8),A._uU(7,"Local:"),A.qZA(),A._uU(8),A.ALo(9,"number"),A.qZA(),A.TgZ(10,"mat-hint",22),A._UZ(11,"fa-icon",23),A._uU(12),A.ALo(13,"number"),A.qZA(),A.TgZ(14,"mat-hint",24),A.TgZ(15,"strong",8),A._uU(16,"Remote:"),A.qZA(),A._uU(17),A.ALo(18,"number"),A.qZA(),A.qZA(),A._UZ(19,"mat-progress-bar",25),A.qZA()),2&r){const t=v.$implicit,s=A.oxw(3);A.xp6(1),A.s9C("matTooltip",t.alias||t.id),A.s9C("matTooltipDisabled",(t.alias||t.id).length<26),A.Q6J("routerLink",A.DdM(23,MA))("state",A.VKq(24,lA,t.id)),A.xp6(1),A.AsE(" ",A.Dn7(3,11,t.alias||t.id,0,24),"",(t.alias||t.id).length>25?"...":""," "),A.xp6(6),A.hij("",A.xi3(9,15,t.msatoshi_to_us/1e3||0,"1.0-0")," Sats"),A.xp6(3),A.Q6J("icon",s.faBalanceScale),A.xp6(1),A.hij(" (",A.lcZ(13,18,t.balancedness||0),") "),A.xp6(5),A.hij("",A.xi3(18,20,t.msatoshi_to_them/1e3||0,"1.0-0")," Sats"),A.xp6(2),A.s9C("value",t.msatoshi_to_us&&t.msatoshi_to_us>0?+t.msatoshi_to_us/(+t.msatoshi_to_us+ +t.msatoshi_to_them)*100:0)}}function BA(r,v){if(1&r&&(A.TgZ(0,"div",17),A.YNc(1,gA,20,26,"div",18),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngForOf",t.activeChannels)}}function DA(r,v){if(1&r&&(A.TgZ(0,"div",3),A.TgZ(1,"div",4),A.TgZ(2,"span",5),A._uU(3,"Total Capacity"),A.qZA(),A.TgZ(4,"div",6),A.TgZ(5,"mat-hint",7),A.TgZ(6,"strong",8),A._uU(7,"Local:"),A.qZA(),A._uU(8),A.ALo(9,"number"),A.qZA(),A.TgZ(10,"mat-hint",9),A._UZ(11,"fa-icon",10),A._uU(12),A.ALo(13,"number"),A.qZA(),A.TgZ(14,"mat-hint",11),A.TgZ(15,"strong",8),A._uU(16,"Remote:"),A.qZA(),A._uU(17),A.ALo(18,"number"),A.qZA(),A.qZA(),A._UZ(19,"mat-progress-bar",12),A.qZA(),A.TgZ(20,"div",13),A._UZ(21,"mat-divider",14),A.qZA(),A.TgZ(22,"div",15),A.YNc(23,BA,2,1,"div",16),A.qZA(),A.qZA()),2&r){const t=A.oxw(),s=A.MAs(2);A.xp6(8),A.hij("",A.xi3(9,7,(null==t.channelBalances?null:t.channelBalances.localBalance)||0,"1.0-0")," Sats"),A.xp6(3),A.Q6J("icon",t.faBalanceScale),A.xp6(1),A.hij(" (",A.lcZ(13,10,(null==t.channelBalances?null:t.channelBalances.balancedness)||0),") "),A.xp6(5),A.hij("",A.xi3(18,12,(null==t.channelBalances?null:t.channelBalances.remoteBalance)||0,"1.0-0")," Sats"),A.xp6(2),A.s9C("value",null!=t.channelBalances&&t.channelBalances.localBalance&&(null==t.channelBalances?null:t.channelBalances.localBalance)>0?+(null==t.channelBalances?null:t.channelBalances.localBalance)/(+(null==t.channelBalances?null:t.channelBalances.localBalance)+ +(null==t.channelBalances?null:t.channelBalances.remoteBalance))*100:0),A.xp6(4),A.Q6J("ngIf",t.activeChannels&&t.activeChannels.length>0)("ngIfElse",s)}}function FA(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",26),A._uU(1," No channels available. "),A.TgZ(2,"button",27),A.NdJ("click",function(){return A.CHM(t),A.oxw().goToChannels()}),A._uU(3,"Open Channel"),A.qZA(),A.qZA()}}function _(r,v){if(1&r&&(A.TgZ(0,"div",28),A.TgZ(1,"p"),A._uU(2),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let dA=(()=>{class r{constructor(t){this.router=t,this.faBalanceScale=h.DL8,this.faDumbbell=h.FlN,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/cln/connections")}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-capacity-info"]],inputs:{channelBalances:"channelBalances",activeChannels:"activeChannels",sortBy:"sortBy",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","9","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,"routerLink","state","matTooltip","matTooltipDisabled"],["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(t,s){if(1&t&&(A.YNc(0,DA,24,15,"div",0),A.YNc(1,FA,4,0,"ng-template",null,1,A.W1O),A.YNc(3,_,3,1,"ng-template",null,2,A.W1O)),2&t){const G=A.MAs(4);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",G)}},directives:[ht.O5,Ct.xw,Ct.Wh,Ct.yH,W.bx,f.BN,aA.gM,T.pW,AA.d,cA.$V,ht.sg,_t.yS,Y.lW],pipes:[ht.JJ,ht.OU],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}),r})();function uA(r,v){if(1&r&&(A.TgZ(0,"div",2),A.TgZ(1,"div",3),A.TgZ(2,"div"),A.TgZ(3,"h4",4),A._uU(4,"Total"),A.qZA(),A.TgZ(5,"div",5),A._uU(6),A.ALo(7,"number"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(8,"div",3),A.TgZ(9,"div"),A.TgZ(10,"h4",4),A._uU(11,"Transactions"),A.qZA(),A.TgZ(12,"div",5),A._uU(13),A.ALo(14,"number"),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(6),A.hij("",A.lcZ(7,2,(null==t.fees?null:t.fees.feeCollected)/1e3)," Sats"),A.xp6(7),A.Oqu(A.lcZ(14,4,null==t.fees?null:t.fees.totalTxCount))}}function CA(r,v){if(1&r&&(A.TgZ(0,"div",6),A.TgZ(1,"p"),A._uU(2),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let NA=(()=>{class r{constructor(){this.totalFees=[{name:"Total",value:0}]}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-fee-info"]],inputs:{fees:"fees",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["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(t,s){if(1&t&&(A.YNc(0,uA,15,6,"div",0),A.YNc(1,CA,3,1,"ng-template",null,1,A.W1O)),2&t){const G=A.MAs(2);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",G)}},directives:[ht.O5,Ct.xw,Ct.yH,Ct.Wh],pipes:[ht.JJ],styles:[""]}),r})();function bA(r,v){if(1&r&&(A.TgZ(0,"div",2),A.TgZ(1,"div",3),A.TgZ(2,"div"),A.TgZ(3,"h4",4),A._uU(4,"Active"),A.qZA(),A.TgZ(5,"div",5),A._UZ(6,"span",6),A._uU(7),A.ALo(8,"number"),A.qZA(),A.qZA(),A.TgZ(9,"div"),A.TgZ(10,"h4",4),A._uU(11,"Pending"),A.qZA(),A.TgZ(12,"div",5),A._UZ(13,"span",7),A._uU(14),A.ALo(15,"number"),A.qZA(),A.qZA(),A.TgZ(16,"div"),A.TgZ(17,"h4",4),A._uU(18,"Inactive"),A.qZA(),A.TgZ(19,"div",5),A._UZ(20,"span",8),A._uU(21),A.ALo(22,"number"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(23,"div",3),A.TgZ(24,"div"),A.TgZ(25,"h4",4),A._uU(26,"Capacity"),A.qZA(),A.TgZ(27,"div",5),A._uU(28),A.ALo(29,"number"),A.qZA(),A.qZA(),A.TgZ(30,"div"),A.TgZ(31,"h4",4),A._uU(32,"Capacity"),A.qZA(),A.TgZ(33,"div",5),A._uU(34),A.ALo(35,"number"),A.qZA(),A.qZA(),A.TgZ(36,"div"),A.TgZ(37,"h4",4),A._uU(38,"Capacity"),A.qZA(),A.TgZ(39,"div",5),A._uU(40),A.ALo(41,"number"),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(7),A.Oqu(A.lcZ(8,6,(null==t.channelsStatus||null==t.channelsStatus.active?null:t.channelsStatus.active.channels)||0)),A.xp6(7),A.Oqu(A.lcZ(15,8,(null==t.channelsStatus||null==t.channelsStatus.pending?null:t.channelsStatus.pending.channels)||0)),A.xp6(7),A.Oqu(A.lcZ(22,10,(null==t.channelsStatus||null==t.channelsStatus.inactive?null:t.channelsStatus.inactive.channels)||0)),A.xp6(7),A.hij("",A.lcZ(29,12,(null==t.channelsStatus||null==t.channelsStatus.active?null:t.channelsStatus.active.capacity)||0)," Sats"),A.xp6(6),A.hij("",A.lcZ(35,14,(null==t.channelsStatus||null==t.channelsStatus.pending?null:t.channelsStatus.pending.capacity)||0)," Sats"),A.xp6(6),A.hij("",A.lcZ(41,16,(null==t.channelsStatus||null==t.channelsStatus.inactive?null:t.channelsStatus.inactive.capacity)||0)," Sats")}}function XA(r,v){if(1&r&&(A.TgZ(0,"div",9),A.TgZ(1,"p"),A._uU(2),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let q=(()=>{class r{constructor(){this.channelsStatus={active:{},pending:{},inactive:{}}}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-status-info"]],inputs:{channelsStatus:"channelsStatus",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["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(t,s){if(1&t&&(A.YNc(0,bA,42,18,"div",0),A.YNc(1,XA,3,1,"ng-template",null,1,A.W1O)),2&t){const G=A.MAs(2);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",G)}},directives:[ht.O5,Ct.xw,Ct.yH,Ct.Wh],pipes:[ht.JJ],styles:[""]}),r})();function O(r,v){if(1&r&&(A.TgZ(0,"mat-hint",19),A.TgZ(1,"strong",20),A._uU(2,"Capacity: "),A.qZA(),A._uU(3),A.ALo(4,"number"),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(3),A.hij("",A.xi3(4,1,t.msatoshi_to_them/1e3||0,"1.0-0")," Sats")}}function $(r,v){if(1&r&&(A.TgZ(0,"mat-hint",19),A.TgZ(1,"strong",20),A._uU(2,"Capacity: "),A.qZA(),A._uU(3),A.ALo(4,"number"),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(3),A.hij("",A.xi3(4,1,t.msatoshi_to_us/1e3||0,"1.0-0")," Sats")}}function V(r,v){if(1&r&&A._UZ(0,"mat-progress-bar",21),2&r){const t=A.oxw().$implicit,s=A.oxw(3);A.s9C("value",s.totalLiquidity>0?(+t.msatoshi_to_them/1e3||0)/s.totalLiquidity*100:0)}}function hA(r,v){if(1&r&&A._UZ(0,"mat-progress-bar",21),2&r){const t=A.oxw().$implicit,s=A.oxw(3);A.s9C("value",s.totalLiquidity>0?(+t.msatoshi_to_us/1e3||0)/s.totalLiquidity*100:0)}}const mA=function(){return["../connections/channels/open"]},nA=function(r){return{filter:r}};function EA(r,v){if(1&r&&(A.TgZ(0,"div",14),A.TgZ(1,"a",15),A._uU(2),A.ALo(3,"slice"),A.qZA(),A.TgZ(4,"div",16),A.YNc(5,O,5,4,"mat-hint",17),A.YNc(6,$,5,4,"mat-hint",17),A.qZA(),A.YNc(7,V,1,1,"mat-progress-bar",18),A.YNc(8,hA,1,1,"mat-progress-bar",18),A.qZA()),2&r){const t=v.$implicit,s=A.oxw(3);A.xp6(1),A.s9C("matTooltip",t.alias||t.id),A.s9C("matTooltipDisabled",(t.alias||t.id).length<26),A.Q6J("routerLink",A.DdM(14,mA))("state",A.VKq(15,nA,t.id)),A.xp6(1),A.AsE(" ",A.Dn7(3,10,t.alias||t.id,0,24),"",(t.alias||t.id).length>25?"...":""," "),A.xp6(3),A.Q6J("ngIf","In"===s.direction),A.xp6(1),A.Q6J("ngIf","Out"===s.direction),A.xp6(1),A.Q6J("ngIf","In"===s.direction),A.xp6(1),A.Q6J("ngIf","Out"===s.direction)}}function GA(r,v){if(1&r&&(A.TgZ(0,"div",12),A.YNc(1,EA,9,17,"div",13),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngForOf",t.activeChannels)}}const et=function(r,v,t){return{"mb-4":r,"mb-2":v,"mb-1":t}};function ot(r,v){if(1&r&&(A.TgZ(0,"div",3),A.TgZ(1,"div",4),A.TgZ(2,"span",5),A._uU(3,"Total Capacity"),A.qZA(),A.TgZ(4,"mat-hint",6),A._uU(5),A.ALo(6,"number"),A.qZA(),A._UZ(7,"mat-progress-bar",7),A.qZA(),A.TgZ(8,"div",8),A._UZ(9,"mat-divider",9),A.qZA(),A.TgZ(10,"div",10),A.YNc(11,GA,2,1,"div",11),A.qZA(),A.qZA()),2&r){const t=A.oxw(),s=A.MAs(2);A.Q6J("ngClass",A.kEZ(7,et,t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM,t.screenSize===t.screenSizeEnum.MD,t.screenSize===t.screenSizeEnum.LG||t.screenSize===t.screenSizeEnum.XL)),A.xp6(5),A.hij("",A.xi3(6,4,t.totalLiquidity,"1.0-0")," Sats"),A.xp6(6),A.Q6J("ngIf",t.activeChannels&&t.activeChannels.length>0)("ngIfElse",s)}}function TA(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"button",24),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).goToChannels()}),A._uU(1,"Open Channel"),A.qZA()}}function it(r,v){if(1&r&&(A.TgZ(0,"div",22),A._uU(1," No channels available. "),A.YNc(2,TA,2,0,"button",23),A.qZA()),2&r){const t=A.oxw();A.xp6(2),A.Q6J("ngIf","Out"===t.direction)}}function mt(r,v){if(1&r&&(A.TgZ(0,"div",25),A.TgZ(1,"p"),A._uU(2),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let It=(()=>{class r{constructor(t,s){this.router=t,this.commonService=s,this.screenSize="",this.screenSizeEnum=a.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}goToChannels(){this.router.navigateByUrl("/cln/connections")}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(_t.F0),A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",activeChannels:"activeChannels",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",3,"ngClass",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",3,"ngClass"],["fxLayout","column","fxFlex","9","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,"routerLink","state","matTooltip","matTooltipDisabled"],["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 center",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(t,s){if(1&t&&(A.YNc(0,ot,12,11,"div",0),A.YNc(1,it,3,1,"ng-template",null,1,A.W1O),A.YNc(3,mt,3,1,"ng-template",null,2,A.W1O)),2&t){const G=A.MAs(4);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",G)}},directives:[ht.O5,Ct.xw,Ct.Wh,Ct.yH,ht.mk,d.oO,W.bx,T.pW,AA.d,cA.$V,ht.sg,_t.yS,aA.gM,Y.lW],pipes:[ht.JJ,ht.OU],styles:[""]}),r})();var ut=St(3251),JA=St(9300),VA=St(6087),rt=St(4847),yA=St(2075),Mt=St(8966),Et=St(429),OA=St(3075),Yt=St(7531),H=St(3390),k=St(6534),R=St(4107),QA=St(2368),wA=St(508);function PA(r,v){if(1&r&&(A.TgZ(0,"mat-option",27),A._uU(1),A.ALo(2,"titlecase"),A.qZA()),2&r){const t=v.$implicit;A.Q6J("value",t),A.xp6(1),A.Oqu(A.lcZ(2,2,t))}}function rA(r,v){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.invoiceError)}}function lt(r,v){if(1&r&&(A.TgZ(0,"div",28),A._UZ(1,"fa-icon",29),A.YNc(2,rA,2,1,"span",30),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.invoiceError)}}let Ft=(()=>{class r{constructor(t,s,G,vA,ft,Ce){this.dialogRef=t,this.data=s,this.store=G,this.decimalPipe=vA,this.commonService=ft,this.actions=Ce,this.faExclamationTriangle=h.eHv,this.selNode={},this.description="",this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=a.IV,this.timeUnitEnum=a.Qk,this.timeUnits=a.LO,this.selTimeUnit=a.Qk.SECS,this.invoiceError="",this.unSubs=[new l.x,new l.x,new l.x,new l.x,new l.x]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(B.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(B.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.actions.pipe((0,i.R)(this.unSubs[2]),(0,JA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&"SaveNewInvoice"===t.payload.action&&(t.payload.status===a.Bn.ERROR&&(this.invoiceError=t.payload.message),t.payload.status===a.Bn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(t){this.invoiceError="",this.invoiceValue||(this.invoiceValue=0);let s=this.expiry?this.expiry:3600;this.selTimeUnit!==a.Qk.SECS&&(s=this.commonService.convertTime(this.expiry,this.selTimeUnit,a.Qk.SECS)),this.store.dispatch((0,Et.Rd)({payload:{label:"ulbl"+Math.random().toString(36).slice(2)+Date.now(),amount:1e3*this.invoiceValue,description:this.description,expiry:s,private:this.private}}))}resetData(){this.description="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=a.Qk.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[3])).subscribe({next:t=>{this.invoiceValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,a.Xz.OTHER)+" "+t.unit},error:t=>{this.invoiceValueHint="Conversion Error: "+t}}))}onTimeUnitChange(t){this.expiry&&this.selTimeUnit!==t.value&&(this.expiry=this.commonService.convertTime(this.expiry,this.selTimeUnit,t.value)),this.selTimeUnit=t.value}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(u.yh),A.Y36(ht.JJ),A.Y36(e.v),A.Y36(C.eX))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-create-invoices"]],decls:39,vars:16,consts:[["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","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"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","autoFocus","","placeholder","Description","tabindex","2","name","description",3,"ngModel","ngModelChange"],["fxLayout","row","fxLayoutAlign","space-between start","fxFlex","100"],["fxFlex","40"],["matInput","","placeholder","Amount","type","number","tabindex","3","name","invoiceValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxFlex","30"],["matInput","","name","expiry","placeholder","Expiry","type","number","tabindex","4",3,"ngModel","step","min","ngModelChange"],["fxFlex","26"],["tabindex","5","name","timeUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","50","fxLayoutAlign","start center",1,"mt-2"],["tabindex","6","color","primary","name","private",3,"ngModel","ngModelChange"],["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","tabindex","7","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","8",3,"click"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"]],template:function(t,s){if(1&t){const G=A.EpF();A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-card-header",2),A.TgZ(3,"div",3),A.TgZ(4,"span",4),A._uU(5,"Create Invoice"),A.qZA(),A.qZA(),A.TgZ(6,"button",5),A._uU(7,"X"),A.qZA(),A.qZA(),A.TgZ(8,"mat-card-content",6),A.TgZ(9,"form",7,8),A.TgZ(11,"mat-form-field",9),A.TgZ(12,"input",10),A.NdJ("ngModelChange",function(ft){return s.description=ft}),A.qZA(),A.qZA(),A.TgZ(13,"div",11),A.TgZ(14,"mat-form-field",12),A.TgZ(15,"input",13),A.NdJ("ngModelChange",function(ft){return s.invoiceValue=ft})("keyup",function(){return s.onInvoiceValueChange()}),A.qZA(),A.TgZ(16,"span",14),A._uU(17," Sats "),A.qZA(),A.TgZ(18,"mat-hint"),A._uU(19),A.qZA(),A.qZA(),A.TgZ(20,"mat-form-field",15),A.TgZ(21,"input",16),A.NdJ("ngModelChange",function(ft){return s.expiry=ft}),A.qZA(),A.TgZ(22,"span",14),A._uU(23),A.ALo(24,"titlecase"),A.qZA(),A.qZA(),A.TgZ(25,"mat-form-field",17),A.TgZ(26,"mat-select",18),A.NdJ("selectionChange",function(ft){return s.onTimeUnitChange(ft)}),A.YNc(27,PA,3,4,"mat-option",19),A.qZA(),A.qZA(),A.qZA(),A.TgZ(28,"div",20),A.TgZ(29,"mat-slide-toggle",21),A.NdJ("ngModelChange",function(ft){return s.private=ft}),A._uU(30,"Private Routing Hints"),A.qZA(),A.TgZ(31,"mat-icon",22),A._uU(32,"info_outline"),A.qZA(),A.qZA(),A.YNc(33,lt,3,2,"div",23),A.TgZ(34,"div",24),A.TgZ(35,"button",25),A.NdJ("click",function(){return s.resetData()}),A._uU(36,"Clear Field"),A.qZA(),A.TgZ(37,"button",26),A.NdJ("click",function(){A.CHM(G);const ft=A.MAs(10);return s.onAddInvoice(ft)}),A._uU(38,"Create Invoice"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()}2&t&&(A.xp6(6),A.Q6J("mat-dialog-close",!1),A.xp6(6),A.Q6J("ngModel",s.description),A.xp6(3),A.Q6J("ngModel",s.invoiceValue)("step",100)("min",1),A.xp6(4),A.Oqu(s.invoiceValueHint),A.xp6(2),A.Q6J("ngModel",s.expiry)("step",s.selTimeUnit===s.timeUnitEnum.SECS?300:s.selTimeUnit===s.timeUnitEnum.MINS?10:s.selTimeUnit===s.timeUnitEnum.HOURS?2:1)("min",1),A.xp6(2),A.hij(" ",A.lcZ(24,14,s.selTimeUnit)," "),A.xp6(3),A.Q6J("value",s.selTimeUnit),A.xp6(1),A.Q6J("ngForOf",s.timeUnits),A.xp6(2),A.Q6J("ngModel",s.private),A.xp6(4),A.Q6J("ngIf",""!==s.invoiceError))},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Y.lW,Mt.ZT,w.dn,OA._Y,OA.JL,OA.F,W.KE,Yt.Nt,OA.Fj,H.h,OA.JJ,OA.On,OA.wV,OA.qQ,k.q,W.R9,W.bx,R.gD,ht.sg,QA.Rr,y.Hw,aA.gM,ht.O5,wA.ey,f.BN],pipes:[ht.rS],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();var j=St(5566),kA=St(7861),At=St(3093);function xA(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"form",4,5),A.TgZ(2,"mat-form-field",6),A.TgZ(3,"input",7),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().description=G}),A.qZA(),A.qZA(),A.TgZ(4,"mat-form-field",8),A.TgZ(5,"input",9),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().invoiceValue=G})("keyup",function(){return A.CHM(t),A.oxw().onInvoiceValueChange()}),A.qZA(),A.TgZ(6,"span",10),A._uU(7," Sats "),A.qZA(),A.TgZ(8,"mat-hint"),A._uU(9),A.qZA(),A.qZA(),A.TgZ(10,"div",11),A.TgZ(11,"button",12),A.NdJ("click",function(){return A.CHM(t),A.oxw().resetData()}),A._uU(12,"Clear Field"),A.qZA(),A.TgZ(13,"button",13),A.NdJ("click",function(){A.CHM(t);const G=A.MAs(1);return A.oxw().onAddInvoice(G)}),A._uU(14,"Create Invoice"),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.description),A.xp6(2),A.Q6J("ngModel",t.invoiceValue)("step",100)("min",1),A.xp6(4),A.Oqu(t.invoiceValueHint)}}function ZA(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",14),A.TgZ(1,"button",15),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDeleteExpiredInvoices()}),A._uU(2,"Delete Expired"),A.qZA(),A.TgZ(3,"button",16),A.NdJ("click",function(){return A.CHM(t),A.oxw().openCreateInvoiceModal()}),A._uU(4,"Create Invoice"),A.qZA(),A.qZA()}}function st(r,v){1&r&&A._UZ(0,"mat-progress-bar",46)}function Lt(r,v){1&r&&(A.TgZ(0,"th",47),A._uU(1," Expiry Date "),A.qZA())}const vt=function(r){return{"mr-0":r}};function Rt(r,v){if(1&r&&A._UZ(0,"span",52),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,vt,t.screenSize===t.screenSizeEnum.XS))}}function Kt(r,v){if(1&r&&A._UZ(0,"span",53),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,vt,t.screenSize===t.screenSizeEnum.XS))}}function Le(r,v){if(1&r&&A._UZ(0,"span",54),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,vt,t.screenSize===t.screenSizeEnum.XS))}}function re(r,v){if(1&r&&(A.TgZ(0,"td",48),A.YNc(1,Rt,1,3,"span",49),A.YNc(2,Kt,1,3,"span",50),A.YNc(3,Le,1,3,"span",51),A._uU(4),A.ALo(5,"date"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Q6J("ngIf","paid"===(null==t?null:t.status)),A.xp6(1),A.Q6J("ngIf","unpaid"===(null==t?null:t.status)),A.xp6(1),A.Q6J("ngIf","expired"===(null==t?null:t.status)),A.xp6(1),A.hij(" ",A.xi3(5,4,1e3*(null==t?null:t.expires_at),"dd/MMM/y HH:mm")," ")}}function Ae(r,v){1&r&&(A.TgZ(0,"th",47),A._uU(1," Date Settled "),A.qZA())}function ye(r,v){if(1&r&&(A.TgZ(0,"td",48),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.paid_at),"dd/MMM/y HH:mm")||"-")}}function be(r,v){1&r&&(A.TgZ(0,"th",47),A._uU(1," Type "),A.qZA())}function Re(r,v){if(1&r&&(A.TgZ(0,"td",48),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(null!=t&&t.bolt12?"Bolt12":null!=t&&t.bolt11&&!t.label.includes("keysend-")?"Bolt11":"Keysend")}}function yn(r,v){1&r&&(A.TgZ(0,"th",47),A._uU(1," Description "),A.qZA())}const xn=function(r){return{"max-width":r}};function ne(r,v){if(1&r&&(A.TgZ(0,"td",48),A.TgZ(1,"div",55),A.TgZ(2,"span",56),A._uU(3),A.qZA(),A.qZA(),A.qZA()),2&r){const t=v.$implicit,s=A.oxw(2);A.xp6(1),A.Q6J("ngStyle",A.VKq(2,xn,s.screenSize===s.screenSizeEnum.XS?"10rem":"32rem")),A.xp6(2),A.Oqu(null==t?null:t.description)}}function tn(r,v){1&r&&(A.TgZ(0,"th",57),A._uU(1," Amount (Sats) "),A.qZA())}function Te(r,v){if(1&r&&(A.TgZ(0,"td",48),A.TgZ(1,"span",58),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.hij(" ",A.xi3(3,1,(null==t?null:t.msatoshi)/1e3,(null==t?null:t.msatoshi)<1e3?"1.0-4":"1.0-0"),"")}}function en(r,v){1&r&&(A.TgZ(0,"th",57),A._uU(1," Amount Settled (Sats) "),A.qZA())}function Xe(r,v){if(1&r&&(A.TgZ(0,"td",48),A.TgZ(1,"span",58),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.hij(" ",A.xi3(3,1,(null==t?null:t.msatoshi_received)/1e3,(null==t?null:t.msatoshi_received)<1e3?"1.0-4":"1.0-0"),"")}}function Ln(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"th",59),A.TgZ(1,"div",60),A.TgZ(2,"mat-select",61),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",62),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}const bn=function(r){return{"px-3":r}};function Jt(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",63),A.TgZ(1,"div",64),A.TgZ(2,"mat-select",65),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",62),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw(2).onInvoiceClick(vA)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",62),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw(2).onRefreshInvoice(vA)}),A._uU(7,"Refresh"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,bn,t.screenSize!==t.screenSizeEnum.XS))}}function bt(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No invoice available."),A.qZA())}function Xt(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting invoices..."),A.qZA())}function ae(r,v){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function Dn(r,v){if(1&r&&(A.TgZ(0,"td",66),A.YNc(1,bt,2,0,"p",67),A.YNc(2,Xt,2,0,"p",67),A.YNc(3,ae,2,1,"p",67),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.invoices&&t.invoices.data)||(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.invoices&&t.invoices.data)||(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.invoices&&t.invoices.data)||(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const pn=function(r){return{"display-none":r}};function Yn(r,v){if(1&r&&A._UZ(0,"tr",68),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,pn,(null==t.invoices?null:t.invoices.data)&&(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)>0))}}function jn(r,v){1&r&&A._UZ(0,"tr",69)}function Br(r,v){1&r&&A._UZ(0,"tr",70)}const Tn=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},WA=function(){return["no_invoice"]};function YA(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",17),A.TgZ(1,"div",18),A.TgZ(2,"div",19),A._UZ(3,"fa-icon",20),A.TgZ(4,"span",21),A._uU(5,"Invoices History"),A.qZA(),A.qZA(),A.TgZ(6,"mat-form-field",22),A.TgZ(7,"input",23),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyFilter()})("ngModelChange",function(G){return A.CHM(t),A.oxw().selFilter=G}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(8,"div",24),A.YNc(9,st,1,0,"mat-progress-bar",25),A.TgZ(10,"table",26,27),A.ynx(12,28),A.YNc(13,Lt,2,0,"th",29),A.YNc(14,re,6,7,"td",30),A.BQk(),A.ynx(15,31),A.YNc(16,Ae,2,0,"th",29),A.YNc(17,ye,3,4,"td",30),A.BQk(),A.ynx(18,32),A.YNc(19,be,2,0,"th",29),A.YNc(20,Re,2,1,"td",30),A.BQk(),A.ynx(21,33),A.YNc(22,yn,2,0,"th",29),A.YNc(23,ne,4,4,"td",30),A.BQk(),A.ynx(24,34),A.YNc(25,tn,2,0,"th",35),A.YNc(26,Te,4,4,"td",30),A.BQk(),A.ynx(27,36),A.YNc(28,en,2,0,"th",35),A.YNc(29,Xe,4,4,"td",30),A.BQk(),A.ynx(30,37),A.YNc(31,Ln,6,0,"th",38),A.YNc(32,Jt,8,3,"td",39),A.BQk(),A.ynx(33,40),A.YNc(34,Dn,4,3,"td",41),A.BQk(),A.YNc(35,Yn,1,3,"tr",42),A.YNc(36,jn,1,0,"tr",43),A.YNc(37,Br,1,0,"tr",44),A.qZA(),A.qZA(),A._UZ(38,"mat-paginator",45),A.qZA()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("icon",t.faHistory),A.xp6(4),A.Q6J("ngModel",t.selFilter),A.xp6(2),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.invoices)("ngClass",A.VKq(12,Tn,""!==t.errorMessage)),A.xp6(25),A.Q6J("matFooterRowDef",A.DdM(14,WA)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns),A.xp6(1),A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let tt=(()=>{class r{constructor(t,s,G,vA,ft,Ce,un){this.logger=t,this.store=s,this.decimalPipe=G,this.commonService=vA,this.rtlEffects=ft,this.datePipe=Ce,this.actions=un,this.calledFrom="transactions",this.faHistory=h.qO$,this.selNode={},this.newlyAddedInvoiceMemo="",this.newlyAddedInvoiceValue=0,this.description="",this.invoiceValue=null,this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoiceJSONArr=[],this.information={},this.flgSticky=!1,this.private=!1,this.expiryStep=100,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new l.x,new l.x,new l.x,new l.x,new l.x,new l.x,new l.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["expires_at","msatoshi","actions"]):this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["expires_at","description","msatoshi","actions"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["expires_at","type","description","msatoshi","msatoshi_received","actions"]):(this.flgSticky=!0,this.displayedColumns=["expires_at","paid_at","type","description","msatoshi","msatoshi_received","actions"])}ngOnInit(){this.store.select(B.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(B.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(B.gc).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.invoiceJSONArr=t.listInvoices.invoices||[],this.invoiceJSONArr&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&this.loadInvoicesTable(this.invoiceJSONArr),this.logger.info(t)}),this.actions.pipe((0,i.R)(this.unSubs[3]),(0,JA.h)(t=>t.type===a.AB.SET_LOOKUP_CLN||t.type===a.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{t.type===a.AB.SET_LOOKUP_CLN&&this.invoiceJSONArr&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&t.payload&&(this.updateInvoicesData(JSON.parse(JSON.stringify(t.payload))),this.loadInvoicesTable(this.invoiceJSONArr))})}ngAfterViewInit(){this.invoiceJSONArr&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&this.loadInvoicesTable(this.invoiceJSONArr)}openCreateInvoiceModal(){this.store.dispatch((0,kA.qR)({payload:{data:{pageSize:this.pageSize,component:Ft}}}))}onAddInvoice(t){this.invoiceValue||(this.invoiceValue=0);const s=this.expiry?this.expiry:3600;this.newlyAddedInvoiceMemo="ulbl"+Math.random().toString(36).slice(2)+Date.now(),this.newlyAddedInvoiceValue=this.invoiceValue,this.store.dispatch((0,Et.Rd)({payload:{label:this.newlyAddedInvoiceMemo,amount:1e3*this.invoiceValue,description:this.description,expiry:s,private:this.private}})),this.resetData()}onDeleteExpiredInvoices(){this.store.dispatch((0,kA.c1)({payload:{data:{type:"CONFIRM",titleMessage:"Delete Expired Invoices",noBtnText:"Cancel",yesBtnText:"Delete Invoices"}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[4])).subscribe(t=>{t&&this.store.dispatch((0,Et.g6)({payload:null}))})}onInvoiceClick(t){this.store.dispatch((0,kA.qR)({payload:{data:{invoice:{msatoshi:t.msatoshi,label:t.label,expires_at:t.expires_at,paid_at:t.paid_at,bolt11:t.bolt11,payment_hash:t.payment_hash,description:t.description,status:t.status,msatoshi_received:t.msatoshi_received},newlyAdded:!1,component:j.y}}}))}resetData(){this.description="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint=""}applyFilter(){this.invoices.filter=this.selFilter.trim().toLowerCase()}onInvoiceValueChange(){this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[5])).subscribe({next:t=>{this.invoiceValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,a.Xz.OTHER)+" "+t.unit},error:t=>{this.invoiceValueHint="Conversion Error: "+t}}))}onRefreshInvoice(t){this.store.dispatch((0,Et.n7)({payload:t.label}))}updateInvoicesData(t){this.invoiceJSONArr=this.invoiceJSONArr.map(s=>s.label===t.label?t:s)}loadInvoicesTable(t){this.invoices=new yA.by(t?[...t]:[]),this.invoices.sortingDataAccessor=(s,G)=>s[G]&&isNaN(s[G])?s[G].toLocaleLowerCase():s[G]?+s[G]:null,this.invoices.sort=this.sort,this.invoices.filterPredicate=(s,G)=>((s.paid_at?this.datePipe.transform(new Date(1e3*s.paid_at),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(s.expires_at?this.datePipe.transform(new Date(1e3*s.expires_at),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(s.bolt12?"bolt12":s.bolt11?"bolt11":"keysend")+JSON.stringify(s).toLowerCase()).includes(G),this.invoices.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(ht.JJ),A.Y36(e.v),A.Y36(At.V),A.Y36(ht.uU),A.Y36(C.eX))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-lightning-invoices-table"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(VA.NW,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.sort=G.first),A.iGM(G=A.CRH())&&(s.paginator=G.first)}},inputs:{calledFrom:"calledFrom"},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Invoices")}])],decls:4,vars:3,consts:[["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"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","space-between stretch"],["matInput","","placeholder","Description","tabindex","2","name","description",3,"ngModel","ngModelChange"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","name","invoiceValue","type","number","tabindex","3",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["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"],["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","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","expires_at"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","paid_at"],["matColumnDef","type"],["matColumnDef","description"],["matColumnDef","msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi_received"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["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"],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["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(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,xA,15,5,"form",1),A.YNc(2,ZA,5,0,"div",2),A.YNc(3,YA,39,15,"div",3),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf","home"===s.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===s.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===s.calledFrom))},directives:[Ct.xw,Ct.yH,Ct.Wh,ht.O5,OA._Y,OA.JL,OA.F,W.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,OA.wV,OA.qQ,k.q,W.R9,W.bx,Y.lW,f.BN,cA.$V,yA.BZ,rt.YE,ht.mk,d.oO,yA.w1,yA.fO,yA.Dz,yA.mD,yA.Ke,yA.as,yA.nj,VA.NW,T.pW,yA.ge,rt.nU,yA.ev,aA.gM,ht.PC,d.Zl,R.gD,R.$L,wA.ey,yA.yh,yA.Q2,yA.XQ,yA.Gk],pipes:[ht.uU,ht.JJ],styles:[".mat-column-description[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-description[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();var UA=St(5698),RA=St(8104),zA=St(9814),HA=St(7446);const $A=["sendPaymentForm"],LA=["paymentAmt"],at=["offerAmt"],KA=["paymentReq"],dt=["offerReq"];function Nt(r,v){if(1&r&&(A.TgZ(0,"mat-radio-button",22),A._uU(1,"Offer"),A.qZA()),2&r){const t=A.oxw(2);A.s9C("value",t.paymentTypes.OFFER)}}function Ut(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-radio-group",18),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().paymentType=G})("change",function(){return A.CHM(t),A.oxw().onPaymentTypeChange()}),A.TgZ(1,"mat-radio-button",19),A._uU(2,"Invoice"),A.qZA(),A.TgZ(3,"mat-radio-button",20),A._uU(4,"Keysend"),A.qZA(),A.YNc(5,Nt,2,1,"mat-radio-button",21),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("ngModel",t.paymentType),A.xp6(1),A.s9C("value",t.paymentTypes.INVOICE),A.xp6(2),A.s9C("value",t.paymentTypes.KEYSEND),A.xp6(2),A.Q6J("ngIf",t.selNode.enableOffers)}}function kt(r,v){1&r&&A.GkF(0)}function Vt(r,v){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.paymentError)}}function te(r,v){if(1&r&&(A.TgZ(0,"div",23),A._UZ(1,"fa-icon",24),A.YNc(2,Vt,2,1,"span",25),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.paymentError)}}function wt(r,v){if(1&r&&(A.TgZ(0,"mat-hint"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.paymentDecodedHint)}}function Pt(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Payment request is required."),A.qZA())}function jt(r,v){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.paymentDecodedHint)}}function Ht(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Payment amount is required."),A.qZA())}function ce(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1),A.TgZ(1,"input",29,30),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw(2).paymentAmount=G})("change",function(G){return A.CHM(t),A.oxw(2).onAmountChange(G)}),A.qZA(),A.TgZ(3,"mat-hint"),A._uU(4,"It is a zero amount invoice, enter amount to be paid."),A.qZA(),A.YNc(5,Ht,2,0,"mat-error",25),A.qZA()}if(2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngModel",t.paymentAmount),A.xp6(4),A.Q6J("ngIf",!t.paymentAmount)}}function Wt(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1),A.TgZ(1,"textarea",26,27),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().onPaymentRequestEntry(G)})("matTextareaAutosize",function(){return!0}),A.qZA(),A.YNc(3,wt,2,1,"mat-hint",25),A.YNc(4,Pt,2,0,"mat-error",25),A.YNc(5,jt,2,1,"mat-error",25),A.qZA(),A.YNc(6,ce,6,2,"mat-form-field",28)}if(2&r){const t=A.MAs(2),s=A.oxw();A.xp6(1),A.Q6J("ngModel",s.paymentRequest),A.xp6(2),A.Q6J("ngIf",s.paymentRequest&&""!==s.paymentDecodedHint),A.xp6(1),A.Q6J("ngIf",!s.paymentRequest),A.xp6(1),A.Q6J("ngIf",null==t.errors?null:t.errors.decodeError),A.xp6(1),A.Q6J("ngIf",s.zeroAmtInvoice)}}function Be(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Pubkey is required."),A.qZA())}function le(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Keysend amount is required."),A.qZA())}function De(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1),A.TgZ(1,"input",31),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().pubkey=G}),A.qZA(),A.YNc(2,Be,2,0,"mat-error",25),A.qZA(),A.TgZ(3,"mat-form-field",1),A.TgZ(4,"input",32,33),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().keysendAmount=G}),A.qZA(),A.YNc(6,le,2,0,"mat-error",25),A.qZA()}if(2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngModel",t.pubkey),A.xp6(1),A.Q6J("ngIf",!t.pubkey),A.xp6(2),A.Q6J("ngModel",t.keysendAmount),A.xp6(2),A.Q6J("ngIf",!t.keysendAmount)}}function Ge(r,v){if(1&r&&(A.TgZ(0,"mat-hint"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.offerDecodedHint)}}function Ne(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Offer request is required."),A.qZA())}function xe(r,v){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.offerDecodedHint)}}function Se(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Offer amount is required."),A.qZA())}function _e(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1),A.TgZ(1,"input",40,41),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw(2).offerAmount=G})("change",function(G){return A.CHM(t),A.oxw(2).onAmountChange(G)}),A.qZA(),A.TgZ(3,"mat-hint"),A._uU(4,"It is a zero amount offer, enter amount to be paid."),A.qZA(),A.YNc(5,Se,2,0,"mat-error",25),A.qZA()}if(2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngModel",t.offerAmount),A.xp6(4),A.Q6J("ngIf",!t.offerAmount)}}function Fn(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",42),A.TgZ(1,"input",43),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw(2).offerTitle=G}),A.qZA(),A.qZA()}if(2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngModel",t.offerTitle)}}function rn(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1),A.TgZ(1,"textarea",34,35),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().onPaymentRequestEntry(G)})("matTextareaAutosize",function(){return!0}),A.qZA(),A.YNc(3,Ge,2,1,"mat-hint",25),A.YNc(4,Ne,2,0,"mat-error",25),A.YNc(5,xe,2,1,"mat-error",25),A.qZA(),A.YNc(6,_e,6,2,"mat-form-field",28),A.TgZ(7,"div",36),A.TgZ(8,"mat-checkbox",37),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().flgSaveToDB=G}),A._uU(9,"Bookmark Offer"),A.qZA(),A.TgZ(10,"mat-icon",38),A._uU(11,"info_outline"),A.qZA(),A.qZA(),A.YNc(12,Fn,2,1,"mat-form-field",39)}if(2&r){const t=A.MAs(2),s=A.oxw();A.xp6(1),A.Q6J("ngModel",s.offerRequest),A.xp6(2),A.Q6J("ngIf",s.offerRequest&&""!==s.offerDecodedHint),A.xp6(1),A.Q6J("ngIf",!s.offerRequest),A.xp6(1),A.Q6J("ngIf",null==t.errors?null:t.errors.decodeError),A.xp6(1),A.Q6J("ngIf",s.zeroAmtOffer),A.xp6(2),A.Q6J("ngModel",s.flgSaveToDB),A.xp6(4),A.Q6J("ngIf",s.flgSaveToDB||""!==s.offerTitle)}}let Cn=(()=>{class r{constructor(t,s,G,vA,ft,Ce,un,Qe){this.dialogRef=t,this.data=s,this.store=G,this.logger=vA,this.commonService=ft,this.decimalPipe=Ce,this.actions=un,this.dataService=Qe,this.faExclamationTriangle=h.eHv,this.paymentTypes=a.IX,this.paymentType=a.IX.INVOICE,this.selNode={},this.offerDecoded={},this.offerRequest="",this.offerDecodedHint="",this.offerDescription="",this.offerVendor="",this.offerTitle="",this.zeroAmtOffer=!1,this.offerInvoice=null,this.offerAmount=null,this.flgSaveToDB=!1,this.paymentDecoded={},this.paymentRequest="",this.paymentDecodedHint="",this.zeroAmtInvoice=!1,this.paymentAmount=null,this.pubkey="",this.keysendAmount=null,this.selActiveChannel={},this.activeChannels={},this.feeLimit=null,this.selFeeLimitType=a.Vc[0],this.feeLimitTypes=a.Vc,this.paymentError="",this.isCompatibleVersion=!1,this.unSubs=[new l.x,new l.x,new l.x,new l.x,new l.x,new l.x,new l.x,new l.x,new l.x,new l.x,new l.x]}set payReq(t){t&&(this.paymentReq=t)}set offrReq(t){t&&(this.offerReq=t)}ngOnInit(){if(this.data&&this.data.paymentType)switch(this.paymentType=this.data.paymentType,this.paymentType){case a.IX.INVOICE:this.paymentRequest=this.data.invoiceBolt11;break;case a.IX.KEYSEND:this.pubkey=this.data.pubkeyKeysend;break;case a.IX.OFFER:this.onPaymentRequestEntry(this.data.bolt12),this.offerTitle=this.data.offerTitle,this.flgSaveToDB=!1}this.store.select(B.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(B.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.isCompatibleVersion=this.commonService.isVersionCompatible(t.version,"0.9.0")&&this.commonService.isVersionCompatible(t.api_version,"0.4.0")}),this.store.select(B.ZW).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.activeChannels=t.activeChannels,this.logger.info(t)}),this.actions.pipe((0,i.R)(this.unSubs[3]),(0,JA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN||t.type===a.AB.SEND_PAYMENT_STATUS_CLN||t.type===a.AB.SET_OFFER_INVOICE_CLN)).subscribe(t=>{t.type===a.AB.SEND_PAYMENT_STATUS_CLN&&this.dialogRef.close(),t.type===a.AB.SET_OFFER_INVOICE_CLN&&(this.offerInvoice=t.payload,this.sendPayment()),t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&t.payload.status===a.Bn.ERROR&&("SendPayment"===t.payload.action&&(delete this.paymentDecoded.msatoshi,this.paymentError=t.payload.message),"DecodePayment"===t.payload.action&&(this.paymentType===a.IX.INVOICE&&(this.paymentDecodedHint="ERROR: "+t.payload.message,this.paymentReq.control.setErrors({decodeError:!0})),this.paymentType===a.IX.OFFER&&(this.offerDecodedHint="ERROR: "+t.payload.message,this.offerReq.control.setErrors({decodeError:!0}))),"FetchOfferInvoice"===t.payload.action&&this.paymentType===a.IX.OFFER&&(this.paymentError=t.payload.message))})}onSendPayment(){switch(this.paymentType){case a.IX.KEYSEND:if(!this.pubkey||""===this.pubkey.trim()||!this.keysendAmount||this.keysendAmount<=0)return!0;this.keysendPayment();break;case a.IX.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.R)(this.unSubs[4])).subscribe(t=>{"bolt12 offer"===t.type&&t.offer_id?(this.paymentDecodedHint="ERROR: Select Offer option to pay the bolt12 offer invoice.",this.paymentReq.control.setErrors({decodeError:!0})):(this.paymentDecoded=t,this.setPaymentDecodedDetails())}));break;case a.IX.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.R)(this.unSubs[5])).subscribe(t=>{"bolt11 invoice"===t.type&&t.payment_hash?(this.offerDecodedHint="ERROR: Select Invoice option to pay the bolt11 invoice.",this.offerReq.control.setErrors({decodeError:!0})):(this.offerDecoded=t,this.setOfferDecodedDetails())}))}}keysendPayment(){this.store.dispatch((0,Et.oV)({payload:{uiMessage:a.m6.SEND_KEYSEND,paymentType:a.IX.KEYSEND,pubkey:this.pubkey,amount:1e3*this.keysendAmount,fromDialog:!0}}))}sendPayment(){this.paymentError="",this.paymentType===a.IX.INVOICE?this.store.dispatch((0,Et.oV)(this.zeroAmtInvoice?{payload:{uiMessage:a.m6.SEND_PAYMENT,paymentType:a.IX.INVOICE,invoice:this.paymentRequest,amount:1e3*this.paymentAmount,fromDialog:!0}}:{payload:{uiMessage:a.m6.SEND_PAYMENT,paymentType:a.IX.INVOICE,invoice:this.paymentRequest,fromDialog:!0}})):this.paymentType===a.IX.OFFER&&this.store.dispatch(this.offerInvoice?(0,Et.oV)({payload:{uiMessage:a.m6.SEND_PAYMENT,paymentType:a.IX.OFFER,invoice:this.offerInvoice.invoice,saveToDB:this.flgSaveToDB,bolt12:this.offerRequest,amount:1e3*this.offerAmount,zeroAmtOffer:this.zeroAmtOffer,title:this.offerTitle,vendor:this.offerVendor,description:this.offerDescription,fromDialog:!0}}):(0,Et.eM)(this.zeroAmtOffer?{payload:{offer:this.offerRequest,msatoshi:1e3*this.offerAmount}}:{payload:{offer:this.offerRequest}}))}onPaymentRequestEntry(t){this.paymentType===a.IX.INVOICE?(this.paymentRequest=t,this.resetInvoiceDetails()):this.paymentType===a.IX.OFFER&&(this.offerRequest=t,this.resetOfferDetails()),t.length>100&&this.dataService.decodePayment(t,!0).pipe((0,i.R)(this.unSubs[6])).subscribe(s=>{this.paymentType===a.IX.INVOICE?"bolt12 offer"===s.type&&s.offer_id?(this.paymentDecodedHint="ERROR: Select Offer option to pay the bolt12 offer invoice.",this.paymentReq.control.setErrors({decodeError:!0})):(this.paymentDecoded=s,this.setPaymentDecodedDetails()):this.paymentType===a.IX.OFFER&&("bolt11 invoice"===s.type&&s.payment_hash?(this.offerDecodedHint="ERROR: Select Invoice option to pay the bolt11 invoice.",this.offerReq.control.setErrors({decodeError:!0})):(this.offerDecoded=s,this.setOfferDecodedDetails()))})}resetOfferDetails(){this.offerInvoice=null,this.offerAmount=null,this.offerDecodedHint="",this.zeroAmtOffer=!1,this.paymentError="",this.offerReq&&this.offerReq.control.setErrors(null)}resetInvoiceDetails(){this.paymentAmount=null,this.paymentDecodedHint="",this.zeroAmtInvoice=!1,this.paymentError="",this.paymentReq&&this.paymentReq.control.setErrors(null)}onAmountChange(t){this.paymentType===a.IX.INVOICE&&(delete this.paymentDecoded.msatoshi,this.paymentDecoded.msatoshi=+t.target.value),this.paymentType===a.IX.OFFER&&(delete this.offerDecoded.amount,delete this.offerDecoded.amount_msat,this.offerDecoded.amount=1e3*+t.target.value,this.offerDecoded.amount_msat=t.target.value+"msat")}onPaymentTypeChange(){this.paymentError="",this.paymentDecodedHint="",this.offerDecodedHint="",this.offerInvoice=null}setOfferDecodedDetails(){this.offerDecoded.offer_id&&!this.offerDecoded.amount_msat?(this.offerDecoded.amount_msat="0msat",this.offerDecoded.amount=0,this.zeroAmtOffer=!0,this.offerDescription=this.offerDecoded.description,this.offerVendor=this.offerDecoded.vendor?this.offerDecoded.vendor:this.offerDecoded.issuer?this.offerDecoded.issuer:"",this.offerDecodedHint="Zero Amount Offer | Description: "+this.offerDecoded.description):(this.zeroAmtOffer=!1,this.offerDecoded.amount=+(this.offerDecoded.amount||this.offerDecoded.amount_msat.slice(0,-4)),this.offerAmount=this.offerDecoded.amount?this.offerDecoded.amount/1e3:0,this.offerDescription=this.offerDecoded.description,this.offerVendor=this.offerDecoded.vendor?this.offerDecoded.vendor:this.offerDecoded.issuer?this.offerDecoded.issuer:"",this.selNode.fiatConversion?this.commonService.convertCurrency(this.offerAmount,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[7])).subscribe({next:t=>{this.offerDecodedHint="Sending: "+this.decimalPipe.transform(this.offerAmount)+" Sats ("+t.symbol+this.decimalPipe.transform(t.OTHER?t.OTHER:0,a.Xz.OTHER)+") | Description: "+this.offerDecoded.description},error:t=>{this.offerDecodedHint="Sending: "+this.decimalPipe.transform(this.offerAmount)+" Sats | Description: "+this.offerDecoded.description+". Unable to convert currency."}}):this.offerDecodedHint="Sending: "+this.decimalPipe.transform(this.offerAmount)+" Sats | Description: "+this.offerDecoded.description)}setPaymentDecodedDetails(){this.paymentDecoded.created_at&&!this.paymentDecoded.msatoshi?(this.paymentDecoded.msatoshi=0,this.zeroAmtInvoice=!0,this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description):(this.zeroAmtInvoice=!1,this.selNode.fiatConversion?this.commonService.convertCurrency(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[8])).subscribe({next:t=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats ("+t.symbol+this.decimalPipe.transform(t.OTHER?t.OTHER:0,a.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:t=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description)}resetData(){switch(this.paymentType){case a.IX.KEYSEND:this.pubkey="",this.keysendAmount=null;break;case a.IX.INVOICE:this.paymentRequest="",this.paymentDecoded={},this.selActiveChannel=null,this.feeLimit=null,this.selFeeLimitType=a.Vc[0],this.resetInvoiceDetails();break;case a.IX.OFFER:this.offerRequest="",this.offerDecoded={},this.flgSaveToDB=!1,this.resetOfferDetails()}this.paymentError=""}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(u.yh),A.Y36(E.mQ),A.Y36(e.v),A.Y36(ht.JJ),A.Y36(C.eX),A.Y36(RA.D))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-lightning-send-payments"]],viewQuery:function(t,s){if(1&t&&(A.Gf($A,5),A.Gf(LA,5),A.Gf(at,5),A.Gf(KA,5),A.Gf(dt,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.form=G.first),A.iGM(G=A.CRH())&&(s.paymentAmt=G.first),A.iGM(G=A.CRH())&&(s.offerAmt=G.first),A.iGM(G=A.CRH())&&(s.payReq=G.first),A.iGM(G=A.CRH())&&(s.offrReq=G.first)}},decls:25,vars:4,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","12","fxFlex","10","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["class","my-1","color","primary","name","paymentType","fxFlex","100","fxLayoutAlign","start start",3,"ngModel","ngModelChange","change",4,"ngIf"],["fxLayoutAlign","space-between stretch","fxLayout","column",3,"submit","reset"],["sendPaymentForm","ngForm"],[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"],["invoiceBlock",""],["keysendBlock",""],["offerBlock",""],["color","primary","name","paymentType","fxFlex","100","fxLayoutAlign","start start",1,"my-1",3,"ngModel","ngModelChange","change"],["fxFlex","20","tabindex","1",3,"value"],["fxFlex","20","tabindex","2",3,"value"],["fxFlex","20","tabindex","3",3,"value",4,"ngIf"],["fxFlex","20","tabindex","3",3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"],["autoFocus","","matInput","","placeholder","Payment Request","rows","4","name","paymentRequest","tabindex","4","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],["fxFlex","100",4,"ngIf"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","5","required","",3,"ngModel","ngModelChange","change"],["paymentAmt","ngModel"],["autoFocus","","matInput","","placeholder","Pubkey","name","pubkey","tabindex","4","required","",3,"ngModel","ngModelChange"],["matInput","","placeholder","Amount (Sats)","name","keysendAmount","tabindex","5","required","",3,"ngModel","ngModelChange"],["keysendAmt","ngModel"],["autoFocus","","matInput","","placeholder","Offer Request","rows","4","name","offerRequest","tabindex","4","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["offerReq","ngModel"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["fxFlex","none","tabindex","6","color","primary",3,"ngModel","ngModelChange"],["matTooltip","Save offer in database for future payments","matTooltipPosition","below","fxFlex","none",1,"info-icon"],["fxFlex","100","class","mt-1",4,"ngIf"],["matInput","","placeholder","Amount (Sats)","name","amountoffer","tabindex","5","required","",3,"ngModel","ngModelChange","change"],["offerAmt","ngModel"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Title to Save","tabindex","7",3,"ngModel","ngModelChange"]],template:function(t,s){if(1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-card-header",2),A.TgZ(3,"div",3),A.TgZ(4,"span",4),A._uU(5,"Send Payment"),A.qZA(),A.qZA(),A.TgZ(6,"button",5),A._uU(7,"X"),A.qZA(),A.qZA(),A.TgZ(8,"mat-card-content",6),A.YNc(9,Ut,6,4,"mat-radio-group",7),A.TgZ(10,"form",8,9),A.NdJ("submit",function(){return s.onSendPayment()})("reset",function(){return s.resetData()}),A.YNc(12,kt,1,0,"ng-container",10),A.YNc(13,te,3,2,"div",11),A.TgZ(14,"div",12),A.TgZ(15,"button",13),A._uU(16,"Clear Fields"),A.qZA(),A.TgZ(17,"button",14),A._uU(18,"Send Payment"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.YNc(19,Wt,7,5,"ng-template",null,15,A.W1O),A.YNc(21,De,7,4,"ng-template",null,16,A.W1O),A.YNc(23,rn,13,7,"ng-template",null,17,A.W1O)),2&t){const G=A.MAs(20),vA=A.MAs(22),ft=A.MAs(24);A.xp6(6),A.Q6J("mat-dialog-close",!1),A.xp6(3),A.Q6J("ngIf",s.isCompatibleVersion),A.xp6(3),A.Q6J("ngTemplateOutlet",s.paymentType===s.paymentTypes.KEYSEND?vA:s.paymentType===s.paymentTypes.OFFER?ft:G),A.xp6(1),A.Q6J("ngIf",""!==s.paymentError)}},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Y.lW,Mt.ZT,w.dn,ht.O5,OA._Y,OA.JL,OA.F,ht.tP,zA.VQ,OA.JJ,OA.On,zA.U0,f.BN,W.KE,Yt.Nt,OA.Fj,H.h,OA.Q7,W.bx,W.TO,HA.oG,y.Hw,aA.gM],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),r})();var In=St(4947);const an=["sendPaymentForm"];function fn(r,v){if(1&r&&(A.TgZ(0,"mat-hint"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.paymentDecodedHint)}}function ln(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Payment request is required."),A.qZA())}function Xn(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"form",4,5),A.TgZ(2,"mat-form-field",6),A.TgZ(3,"textarea",7,8),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().onPaymentRequestEntry(G)})("matTextareaAutosize",function(){return!0}),A.qZA(),A.YNc(5,fn,2,1,"mat-hint",9),A.YNc(6,ln,2,0,"mat-error",9),A.qZA(),A.TgZ(7,"div",10),A.TgZ(8,"button",11),A.NdJ("click",function(){return A.CHM(t),A.oxw().resetData()}),A._uU(9,"Clear Field"),A.qZA(),A.TgZ(10,"button",12),A.NdJ("click",function(){return A.CHM(t),A.oxw().onSendPayment()}),A._uU(11,"Send Payment"),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.paymentRequest),A.xp6(2),A.Q6J("ngIf",t.paymentRequest&&""!==t.paymentDecodedHint),A.xp6(1),A.Q6J("ngIf",!t.paymentRequest)}}function Fr(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",13),A.TgZ(1,"button",12),A.NdJ("click",function(){return A.CHM(t),A.oxw().openSendPaymentModal()}),A._uU(2,"Send Payment"),A.qZA(),A.qZA()}}function Yr(r,v){1&r&&A._UZ(0,"mat-progress-bar",50)}function nr(r,v){1&r&&(A.TgZ(0,"th",51),A._uU(1,"Created At"),A.qZA())}const hn=function(r){return{"mr-0":r}};function qn(r,v){if(1&r&&A._UZ(0,"span",55),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,hn,t.screenSize===t.screenSizeEnum.XS))}}function IA(r,v){if(1&r&&A._UZ(0,"span",56),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,hn,t.screenSize===t.screenSizeEnum.XS))}}function J(r,v){if(1&r&&(A.TgZ(0,"td",52),A.YNc(1,qn,1,3,"span",53),A.YNc(2,IA,1,3,"span",54),A._uU(3),A.ALo(4,"date"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Q6J("ngIf","complete"===t.status),A.xp6(1),A.Q6J("ngIf","complete"!==t.status),A.xp6(1),A.hij(" ",A.xi3(4,3,1e3*(null==t?null:t.created_at),"dd/MMM/y HH:mm")," ")}}function S(r,v){1&r&&(A.TgZ(0,"th",51),A._uU(1," Type "),A.qZA())}function X(r,v){if(1&r&&(A.TgZ(0,"td",52),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(null!=t&&t.bolt12?"Bolt12":null!=t&&t.bolt11?"Bolt11":"Keysend")}}function Z(r,v){1&r&&(A.TgZ(0,"th",51),A._uU(1,"Payment Hash"),A.qZA())}const fA=function(r){return{"max-width":r}};function pA(r,v){if(1&r&&(A.TgZ(0,"td",52),A.TgZ(1,"span",57),A.TgZ(2,"span",58),A._uU(3),A.qZA(),A.qZA(),A.qZA()),2&r){const t=v.$implicit,s=A.oxw(2);A.xp6(1),A.Q6J("ngStyle",A.VKq(2,fA,s.screenSize===s.screenSizeEnum.XS?"10rem":"30rem")),A.xp6(2),A.Oqu(null==t?null:t.payment_hash)}}function _A(r,v){1&r&&(A.TgZ(0,"th",59),A._uU(1,"Sats Sent"),A.qZA())}function nt(r,v){if(1&r&&(A.TgZ(0,"td",52),A.TgZ(1,"span",60),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.msatoshi_sent)/1e3,(null==t?null:t.msatoshi_sent)<1e3?"1.0-4":"1.0-0"))}}function Bt(r,v){1&r&&(A.TgZ(0,"th",59),A._uU(1,"Sats Received"),A.qZA())}function Qt(r,v){if(1&r&&(A.TgZ(0,"td",52),A.TgZ(1,"span",60),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.msatoshi)/1e3,(null==t?null:t.msatoshi)<1e3?"1.0-4":"1.0-0"))}}function Dt(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"th",61),A.TgZ(1,"div",62),A.TgZ(2,"mat-select",63),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",64),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function xt(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",65),A.TgZ(1,"button",66),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw(2).onPaymentClick(vA)}),A._uU(2,"View Info"),A.qZA(),A.qZA()}}function Tt(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No payment available."),A.qZA())}function Ot(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting payments..."),A.qZA())}function Zt(r,v){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function ue(r,v){if(1&r&&(A.TgZ(0,"td",67),A.YNc(1,Tt,2,0,"p",9),A.YNc(2,Ot,2,0,"p",9),A.YNc(3,Zt,2,1,"p",9),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.payments&&t.payments.data)||(null==t.payments||null==t.payments.data?null:t.payments.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.payments&&t.payments.data)||(null==t.payments||null==t.payments.data?null:t.payments.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.payments&&t.payments.data)||(null==t.payments||null==t.payments.data?null:t.payments.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}function he(r,v){if(1&r&&A._UZ(0,"span",71),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,hn,t.screenSize===t.screenSizeEnum.XS))}}function Ie(r,v){if(1&r&&A._UZ(0,"span",72),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,hn,t.screenSize===t.screenSizeEnum.XS))}}function nn(r,v){if(1&r&&A._UZ(0,"span",71),2&r){const t=A.oxw(5);A.Q6J("ngClass",A.VKq(1,hn,t.screenSize===t.screenSizeEnum.XS))}}function Me(r,v){if(1&r&&A._UZ(0,"span",72),2&r){const t=A.oxw(5);A.Q6J("ngClass",A.VKq(1,hn,t.screenSize===t.screenSizeEnum.XS))}}function je(r,v){if(1&r&&(A.TgZ(0,"span",74),A.YNc(1,nn,1,3,"span",69),A.YNc(2,Me,1,3,"span",70),A._uU(3),A.ALo(4,"date"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Q6J("ngIf","complete"===t.status),A.xp6(1),A.Q6J("ngIf","complete"!==t.status),A.xp6(1),A.hij(" ",A.xi3(4,3,1e3*t.created_at,"dd/MMM/y HH:mm")," ")}}function Qn(r,v){if(1&r&&(A.ynx(0),A.YNc(1,je,5,6,"span",73),A.BQk()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function Ze(r,v){if(1&r&&(A.TgZ(0,"td",52),A.TgZ(1,"span",68),A.YNc(2,he,1,3,"span",69),A.YNc(3,Ie,1,3,"span",70),A._uU(4),A.qZA(),A.YNc(5,Qn,2,1,"ng-container",9),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Q6J("ngIf","complete"===t.status),A.xp6(1),A.Q6J("ngIf","complete"!==t.status),A.xp6(1),A.hij(" Total Attempts: ",null==t?null:t.total_parts," "),A.xp6(1),A.Q6J("ngIf",t.is_expanded)}}function dn(r,v){if(1&r&&(A.TgZ(0,"span",68),A._uU(1),A.qZA()),2&r){const t=A.oxw(2).$implicit;A.xp6(1),A.Oqu(null!=t&&t.bolt12?"Bolt12":null!=t&&t.bolt11?"Bolt11":"Keysend")}}function Zn(r,v){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,dn,2,1,"span",75),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function _n(r,v){if(1&r&&(A.TgZ(0,"td",52),A.TgZ(1,"span",68),A._uU(2),A.qZA(),A.YNc(3,Zn,2,1,"span",9),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(null!=t&&t.bolt12?"Bolt12":null!=t&&t.bolt11?"Bolt11":"Keysend"),A.xp6(1),A.Q6J("ngIf",t.is_expanded)}}function Nn(r,v){if(1&r&&(A.TgZ(0,"span",68),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" Part ID ",t.partid?t.partid:0," ")}}function Rr(r,v){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,Nn,2,1,"span",75),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function Hn(r,v){if(1&r&&(A.TgZ(0,"td",52),A.TgZ(1,"span",76),A.TgZ(2,"span",58),A._uU(3),A.qZA(),A.qZA(),A.YNc(4,Rr,2,1,"span",9),A.qZA()),2&r){const t=v.$implicit,s=A.oxw(2);A.xp6(1),A.Q6J("ngStyle",A.VKq(3,fA,s.screenSize===s.screenSizeEnum.XS?"10rem":"30rem")),A.xp6(2),A.Oqu(null==t?null:t.payment_hash),A.xp6(1),A.Q6J("ngIf",t.is_expanded)}}function rr(r,v){if(1&r&&(A.TgZ(0,"span",77),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,t.msatoshi_sent/1e3,t.msatoshi_sent<1e3?"1.0-4":"1.0-0")," ")}}function Qr(r,v){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,rr,3,4,"span",78),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function $n(r,v){if(1&r&&(A.TgZ(0,"td",52),A.TgZ(1,"span",77),A._uU(2),A.ALo(3,"number"),A.qZA(),A.YNc(4,Qr,2,1,"span",9),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.xi3(3,2,(null==t?null:t.msatoshi_sent)/1e3,(null==t?null:t.msatoshi_sent)<1e3?"1.0-4":"1.0-0")),A.xp6(2),A.Q6J("ngIf",t.is_expanded)}}function ur(r,v){if(1&r&&(A.TgZ(0,"span",77),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,t.msatoshi/1e3,t.msatoshi<1e3?"1.0-4":"1.0-0")," ")}}function zr(r,v){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,ur,3,4,"span",78),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function Kn(r,v){if(1&r&&(A.TgZ(0,"td",52),A.TgZ(1,"span",77),A._uU(2),A.ALo(3,"number"),A.qZA(),A.YNc(4,zr,2,1,"span",9),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.xi3(3,2,(null==t?null:t.msatoshi)/1e3,(null==t?null:t.msatoshi)<1e3?"1.0-4":"1.0-0")),A.xp6(2),A.Q6J("ngIf",t.is_expanded)}}function Lr(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",60),A.TgZ(1,"button",82),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw(4).onPaymentClick(vA)}),A._uU(2),A.qZA(),A.qZA()}if(2&r){const t=v.$implicit;A.xp6(2),A.hij("View ",t.partid?t.partid:0,"")}}function dr(r,v){if(1&r&&(A.TgZ(0,"div"),A.YNc(1,Lr,3,1,"div",81),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function br(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",79),A.TgZ(1,"span",60),A.TgZ(2,"button",80),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return vA.is_expanded=!vA.is_expanded}),A._uU(3),A.qZA(),A.qZA(),A.YNc(4,dr,2,1,"div",9),A.qZA()}if(2&r){const t=v.$implicit;A.xp6(3),A.Oqu(t.is_expanded?"Hide":"Show"),A.xp6(1),A.Q6J("ngIf",t.is_expanded)}}function Gr(r,v){1&r&&A._UZ(0,"tr",83)}const si=function(r){return{"display-none":r}};function Hr(r,v){if(1&r&&A._UZ(0,"tr",84),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,si,(null==t.payments?null:t.payments.data)&&(null==t.payments||null==t.payments.data?null:t.payments.data.length)>0))}}function ir(r,v){1&r&&A._UZ(0,"tr",85)}function Jr(r,v){1&r&&A._UZ(0,"tr",83)}const Vn=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},Li=function(){return["no_payment"]};function bi(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",14),A.TgZ(1,"div",15),A.TgZ(2,"div",16),A._UZ(3,"fa-icon",17),A.TgZ(4,"span",18),A._uU(5,"Payments History"),A.qZA(),A.qZA(),A.TgZ(6,"mat-form-field",19),A.TgZ(7,"input",20),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyFilter()})("ngModelChange",function(G){return A.CHM(t),A.oxw().selFilter=G}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(8,"div",21),A.TgZ(9,"div",22),A.YNc(10,Yr,1,0,"mat-progress-bar",23),A.TgZ(11,"table",24,25),A.ynx(13,26),A.YNc(14,nr,2,0,"th",27),A.YNc(15,J,5,6,"td",28),A.BQk(),A.ynx(16,29),A.YNc(17,S,2,0,"th",27),A.YNc(18,X,2,1,"td",28),A.BQk(),A.ynx(19,30),A.YNc(20,Z,2,0,"th",27),A.YNc(21,pA,4,4,"td",28),A.BQk(),A.ynx(22,31),A.YNc(23,_A,2,0,"th",32),A.YNc(24,nt,4,4,"td",28),A.BQk(),A.ynx(25,33),A.YNc(26,Bt,2,0,"th",32),A.YNc(27,Qt,4,4,"td",28),A.BQk(),A.ynx(28,34),A.YNc(29,Dt,6,0,"th",35),A.YNc(30,xt,3,0,"td",36),A.BQk(),A.ynx(31,37),A.YNc(32,ue,4,3,"td",38),A.BQk(),A.ynx(33,39),A.YNc(34,Ze,6,4,"td",28),A.BQk(),A.ynx(35,40),A.YNc(36,_n,4,2,"td",28),A.BQk(),A.ynx(37,41),A.YNc(38,Hn,5,5,"td",28),A.BQk(),A.ynx(39,42),A.YNc(40,$n,5,5,"td",28),A.BQk(),A.ynx(41,43),A.YNc(42,Kn,5,5,"td",28),A.BQk(),A.ynx(43,44),A.YNc(44,br,5,2,"td",45),A.BQk(),A.YNc(45,Gr,1,0,"tr",46),A.YNc(46,Hr,1,3,"tr",47),A.YNc(47,ir,1,0,"tr",48),A.YNc(48,Jr,1,0,"tr",46),A.qZA(),A.qZA(),A.qZA(),A._UZ(49,"mat-paginator",49),A.qZA()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("icon",t.faHistory),A.xp6(4),A.Q6J("ngModel",t.selFilter),A.xp6(3),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.payments)("ngClass",A.VKq(15,Vn,""!==t.errorMessage)),A.xp6(34),A.Q6J("matRowDefColumns",t.mppColumns)("matRowDefWhen",t.is_group),A.xp6(1),A.Q6J("matFooterRowDef",A.DdM(17,Li)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)("matRowDefWhen",!t.is_group),A.xp6(1),A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let aa=(()=>{class r{constructor(t,s,G,vA,ft,Ce,un,Qe,An){this.logger=t,this.commonService=s,this.store=G,this.rtlEffects=vA,this.clnEffects=ft,this.decimalPipe=Ce,this.titleCasePipe=un,this.datePipe=Qe,this.dataService=An,this.calledFrom="transactions",this.faHistory=h.qO$,this.newlyAddedPayment="",this.selNode={},this.information={},this.paymentJSONArr=[],this.displayedColumns=[],this.mppColumns=[],this.paymentDecoded={},this.paymentRequest="",this.paymentDecodedHint="",this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new l.x,new l.x,new l.x,new l.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["created_at","actions"],this.mppColumns=["groupTotal","groupAction"]):this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["created_at","msatoshi","actions"],this.mppColumns=["groupTotal","groupAmtRecv","groupAction"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["created_at","type","msatoshi_sent","msatoshi","actions"],this.mppColumns=["groupTotal","groupType","groupAmtSent","groupAmtRecv","groupAction"]):(this.flgSticky=!0,this.displayedColumns=["created_at","type","payment_hash","msatoshi_sent","msatoshi","actions"],this.mppColumns=["groupTotal","groupType","groupHash","groupAmtSent","groupAmtRecv","groupAction"])}ngOnInit(){this.store.select(B.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(B.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(B.PP).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.paymentJSONArr=t.payments||[],this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr),this.logger.info(t)})}ngAfterViewInit(){this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr)}is_group(t,s){return s.is_group}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.created_at?this.sendPayment():this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.paymentDecoded=t,this.paymentDecoded.created_at?(this.paymentDecoded.msatoshi||(this.paymentDecoded.msatoshi=0),this.sendPayment()):this.resetData()})}sendPayment(){this.newlyAddedPayment=this.paymentDecoded.payment_hash,this.paymentDecoded.msatoshi&&0!==this.paymentDecoded.msatoshi?(this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.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:a.Gi.DATE_TIME},{key:"num_satoshis",value:this.paymentDecoded.msatoshi/1e3,title:"Amount (Sats)",width:50,type:a.Gi.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:a.Gi.NUMBER},{key:"min_finaltv_expiry",value:this.paymentDecoded.min_final_cltv_expiry,title:"CLTV Expiry",width:50}]]}}})),this.rtlEffects.closeConfirm.pipe((0,UA.q)(1)).subscribe(s=>{s&&(this.store.dispatch((0,Et.oV)({payload:{uiMessage:a.m6.SEND_PAYMENT,paymentType:a.IX.INVOICE,invoice:this.paymentRequest,fromDialog:!1}})),this.resetData())})):(this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.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:a.Gi.DATE_TIME},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:a.Gi.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:a.Gi.NUMBER.toLowerCase(),inputValue:"",width:30}]}}})),this.rtlEffects.closeConfirm.pipe((0,UA.q)(1)).subscribe(G=>{G&&(this.paymentDecoded.msatoshi=G[0].inputValue,this.store.dispatch((0,Et.oV)({payload:{uiMessage:a.m6.SEND_PAYMENT,paymentType:a.IX.INVOICE,invoice:this.paymentRequest,amount:1e3*G[0].inputValue,fromDialog:!1}})),this.resetData())}))}onPaymentRequestEntry(t){this.paymentRequest=t,this.paymentDecodedHint="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,i.R)(this.unSubs[1])).subscribe(s=>{this.paymentDecoded=s,this.paymentDecoded.msatoshi?this.selNode.fiatConversion?this.commonService.convertCurrency(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[3])).subscribe({next:G=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats ("+G.symbol+this.decimalPipe.transform(G.OTHER?G.OTHER:0,a.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:G=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description:this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description})}openSendPaymentModal(){this.store.dispatch((0,kA.qR)({payload:{data:{component:Cn}}}))}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}onPaymentClick(t){const s=[[{key:"payment_preimage",value:t.payment_preimage,title:"Payment Preimage",width:100,type:a.Gi.STRING}],[{key:"id",value:t.id,title:"ID",width:20,type:a.Gi.STRING},{key:"destination",value:t.destination,title:"Destination",width:80,type:a.Gi.STRING}],[{key:"created_at",value:t.created_at,title:"Creation Date",width:50,type:a.Gi.DATE_TIME},{key:"status",value:this.titleCasePipe.transform(t.status),title:"Status",width:50,type:a.Gi.STRING}],[{key:"msatoshi",value:t.msatoshi,title:"Amount (mSats)",width:50,type:a.Gi.NUMBER},{key:"msatoshi_sent",value:t.msatoshi_sent,title:"Amount Sent (mSats)",width:50,type:a.Gi.NUMBER}]];t.bolt11&&""!==t.bolt11&&s.unshift([{key:"bolt11",value:t.bolt11,title:"Bolt 11",width:100,type:a.Gi.STRING}]),t.bolt12&&""!==t.bolt12&&s.unshift([{key:"bolt12",value:t.bolt12,title:"Bolt 12",width:100,type:a.Gi.STRING}]),t.memo&&""!==t.memo&&s.splice(2,0,[{key:"memo",value:t.memo,title:"Memo",width:100,type:a.Gi.STRING}]),t.hasOwnProperty("partid")?s.unshift([{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:80,type:a.Gi.STRING},{key:"partid",value:t.partid,title:"Part ID",width:20,type:a.Gi.STRING}]):s.unshift([{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:a.Gi.STRING}]),this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Payment Information",message:s}}}))}applyFilter(){this.payments.filter=this.selFilter.trim().toLowerCase()}loadPaymentsTable(t){this.payments=new yA.by(t?[...t]:[]),this.payments.data=this.paymentJSONArr,this.payments.sort=this.sort,this.payments.sortingDataAccessor=(s,G)=>s[G]&&isNaN(s[G])?s[G].toLocaleLowerCase():s[G]?+s[G]:null,this.payments.filterPredicate=(s,G)=>((s.created_at?this.datePipe.transform(new Date(1e3*s.created_at),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(s.bolt12?"bolt12":s.bolt11?"bolt11":"keysend")+JSON.stringify(s).toLowerCase()).includes(G),this.payments.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const s=JSON.parse(JSON.stringify(this.payments.data)).reduce((G,vA)=>vA.mpps?G.concat(vA.mpps):(delete vA.is_group,delete vA.is_expanded,delete vA.total_parts,G.concat(vA)),[]);this.commonService.downloadFile(s,"Payments")}}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh),A.Y36(At.V),A.Y36(In.J),A.Y36(ht.JJ),A.Y36(ht.rS),A.Y36(ht.uU),A.Y36(RA.D))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-lightning-payments"]],viewQuery:function(t,s){if(1&t&&(A.Gf(an,5),A.Gf(rt.YE,5),A.Gf(VA.NW,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.form=G.first),A.iGM(G=A.CRH())&&(s.sort=G.first),A.iGM(G=A.CRH())&&(s.paginator=G.first)}},inputs:{calledFrom:"calledFrom"},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Payments")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","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"],["sendPaymentForm","ngForm"],["fxFlex","100"],["matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","1","required","",3,"perfectScrollbar","ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[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"],["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","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","created_at"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","payment_hash"],["matColumnDef","msatoshi_sent"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","groupTotal"],["matColumnDef","groupType"],["matColumnDef","groupHash"],["matColumnDef","groupAmtSent"],["matColumnDef","groupAmtRecv"],["matColumnDef","groupAction"],["mat-cell","","class","px-3",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot green","matTooltip","Completed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Failed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Completed","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Failed","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["fxLayout","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"mpp-row-span"],["class","dot green mt-0","matTooltip","Completed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow mt-0","matTooltip","Incomplete/Failed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Completed","matTooltipPosition","right",1,"dot","green","mt-0",3,"ngClass"],["matTooltip","Incomplete/Failed","matTooltipPosition","right",1,"dot","yellow","mt-0",3,"ngClass"],["fxLayoutAlign","start center","class","mpp-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"mpp-row-span","pl-3"],["fxLayoutAlign","start center","class","mpp-row-span",4,"ngFor","ngForOf"],["fxLayout","row",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"],["mat-cell","",1,"px-3"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-mpp-expand",3,"click"],["fxLayoutAlign","end center",4,"ngFor","ngForOf"],["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(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,Xn,12,3,"form",1),A.YNc(2,Fr,3,0,"div",2),A.YNc(3,bi,50,18,"div",3),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf","home"===s.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===s.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===s.calledFrom))},directives:[Ct.xw,Ct.yH,Ct.Wh,ht.O5,OA._Y,OA.JL,OA.F,W.KE,Yt.Nt,OA.Fj,OA.Q7,cA.$V,OA.JJ,OA.On,Y.lW,W.bx,W.TO,f.BN,yA.BZ,rt.YE,ht.mk,d.oO,yA.w1,yA.fO,yA.Dz,yA.mD,yA.nj,yA.Ke,yA.as,VA.NW,T.pW,yA.ge,rt.nU,yA.ev,aA.gM,ht.PC,d.Zl,R.gD,R.$L,wA.ey,yA.yh,ht.sg,yA.Gk,yA.Q2,yA.XQ],pipes:[ht.uU,ht.JJ],styles:[".mat-column-payment_hash[_ngcontent-%COMP%]{flex:0 0 25%;width:25%}.mat-column-payment_hash[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%], .mat-column-groupAction[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-mpp-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-mpp-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}.mpp-row-span[_ngcontent-%COMP%]{min-height:4.2rem;place-content:center flex-start;align-items:center}.mat-column-groupTotal[_ngcontent-%COMP%]{min-width:17rem}"]}),r})();function oo(r,v){if(1&r&&(A.TgZ(0,"button",26),A.TgZ(1,"mat-icon"),A._uU(2,"more_vert"),A.qZA(),A.qZA()),2&r){A.oxw();const t=A.MAs(11);A.Q6J("matMenuTriggerFor",t)}}function so(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"button",27),A.NdJ("click",function(){const vA=A.CHM(t).index,ft=A.oxw().$implicit;return A.oxw(2).onNavigateTo(ft.links[vA])}),A._uU(1),A.qZA()}if(2&r){const t=v.$implicit;A.xp6(1),A.Oqu(t)}}function co(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"button",27),A.NdJ("click",function(){return A.CHM(t),A.oxw(3).onsortChannelsBy()}),A._uU(1),A.qZA()}if(2&r){const t=A.oxw(3);A.xp6(1),A.hij("Sort By ","Balance Score"===t.sortField?"Capacity":"Balance Score","")}}function lo(r,v){1&r&&A._UZ(0,"mat-progress-bar",28)}function go(r,v){if(1&r&&A._UZ(0,"rtl-cln-node-info",29),2&r){const t=A.oxw(3);A.Q6J("information",t.information)("showColorFieldSeparately",!1)}}function Bo(r,v){if(1&r&&A._UZ(0,"rtl-cln-balances-info",30),2&r){const t=A.oxw(3);A.Q6J("balances",t.balances)("errorMessage",t.errorMessages[2]+" "+t.errorMessages[3])}}function oa(r,v){if(1&r&&A._UZ(0,"rtl-cln-channel-capacity-info",31),2&r){const t=A.oxw(3);A.Q6J("sortBy",t.sortField)("channelBalances",t.channelBalances)("activeChannels",t.activeChannelsCapacity)("errorMessage",t.errorMessages[4]+" "+t.errorMessages[3])}}function uo(r,v){if(1&r&&A._UZ(0,"rtl-cln-fee-info",32),2&r){const t=A.oxw(3);A.Q6J("fees",t.fees)("errorMessage",t.errorMessages[1]+" "+t.errorMessages[4]+" "+t.errorMessages[5])}}function sa(r,v){if(1&r&&A._UZ(0,"rtl-cln-channel-status-info",33),2&r){const t=A.oxw(3);A.Q6J("channelsStatus",t.channelsStatus)("errorMessage",t.errorMessages[0]+" "+t.errorMessages[3]+" "+t.errorMessages[4])}}function ca(r,v){1&r&&(A.TgZ(0,"h3"),A._uU(1,"Error! Unable to find information!"),A.qZA())}const la=function(r){return{"dashboard-card-content":!0,"error-border":r}};function fo(r,v){if(1&r&&(A.TgZ(0,"mat-grid-tile",8),A.TgZ(1,"mat-card",9),A.TgZ(2,"mat-card-header"),A.TgZ(3,"mat-card-title",10),A.TgZ(4,"div"),A._UZ(5,"fa-icon",11),A.TgZ(6,"span"),A._uU(7),A.qZA(),A.qZA(),A.TgZ(8,"div"),A.YNc(9,oo,3,1,"button",12),A.TgZ(10,"mat-menu",13,14),A.YNc(12,so,2,1,"button",15),A.YNc(13,co,2,1,"button",16),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.TgZ(14,"mat-card-content",17),A.YNc(15,lo,1,0,"mat-progress-bar",18),A.TgZ(16,"div",19),A.YNc(17,go,1,2,"rtl-cln-node-info",20),A.YNc(18,Bo,1,2,"rtl-cln-balances-info",21),A.YNc(19,oa,1,4,"rtl-cln-channel-capacity-info",22),A.YNc(20,uo,1,2,"rtl-cln-fee-info",23),A.YNc(21,sa,1,2,"rtl-cln-channel-status-info",24),A.YNc(22,ca,2,0,"h3",25),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&r){const t=v.$implicit,s=A.oxw(2);A.Q6J("colspan",t.cols)("rowspan",t.rows),A.xp6(5),A.Q6J("icon",t.icon),A.xp6(2),A.Oqu(t.title),A.xp6(2),A.Q6J("ngIf",t.links[0]),A.xp6(3),A.Q6J("ngForOf",t.goToOptions),A.xp6(1),A.Q6J("ngIf","capacity"===t.id),A.xp6(1),A.s9C("fxFlex","capacity"===t.id?90:70),A.Q6J("ngClass",A.VKq(16,la,"node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||"balance"===t.id&&(s.apiCallStatusBalance.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR)||"capacity"===t.id&&(s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.ERROR)||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR))),A.xp6(1),A.Q6J("ngIf","node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||"balance"===t.id&&(s.apiCallStatusBalance.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.INITIATED)||"capacity"===t.id&&(s.apiCallStatusChannels.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.INITIATED)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusChannels.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.INITIATED)||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusChannels.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.INITIATED)),A.xp6(1),A.Q6J("ngSwitch",t.id),A.xp6(1),A.Q6J("ngSwitchCase","node"),A.xp6(1),A.Q6J("ngSwitchCase","balance"),A.xp6(1),A.Q6J("ngSwitchCase","capacity"),A.xp6(1),A.Q6J("ngSwitchCase","fee"),A.xp6(1),A.Q6J("ngSwitchCase","status")}}function ho(r,v){if(1&r&&(A.TgZ(0,"div",2),A.TgZ(1,"div",3),A._UZ(2,"fa-icon",4),A.TgZ(3,"span",5),A._uU(4),A.qZA(),A.qZA(),A.TgZ(5,"mat-grid-list",6),A.YNc(6,fo,23,18,"mat-grid-tile",7),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(2),A.Q6J("icon",t.apiCallStatusNodeInfo.status===t.apiCallStatusEnum.ERROR?t.faFrown:t.faSmile),A.xp6(2),A.Oqu(t.apiCallStatusNodeInfo.status===t.apiCallStatusEnum.COMPLETED?"Welcome "+t.information.alias+"! Your node is up and running.":t.apiCallStatusNodeInfo.status===t.apiCallStatusEnum.INITIATED?"Wait! Getting your node information...":"Error! Please check the server connection."),A.xp6(1),A.Q6J("rowHeight",t.operatorCardHeight),A.xp6(1),A.Q6J("ngForOf",t.operatorCards)}}function Eo(r,v){if(1&r&&(A.TgZ(0,"button",26),A.TgZ(1,"mat-icon"),A._uU(2,"more_vert"),A.qZA(),A.qZA()),2&r){A.oxw();const t=A.MAs(9);A.Q6J("matMenuTriggerFor",t)}}function wo(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"button",27),A.NdJ("click",function(){const vA=A.CHM(t).index,ft=A.oxw(2).$implicit;return A.oxw(2).onNavigateTo(ft.links[vA])}),A._uU(1),A.qZA()}if(2&r){const t=v.$implicit;A.xp6(1),A.Oqu(t)}}function Co(r,v){if(1&r&&(A.TgZ(0,"mat-card-header"),A.TgZ(1,"mat-card-title",10),A.TgZ(2,"div"),A._UZ(3,"fa-icon",11),A.TgZ(4,"span"),A._uU(5),A.qZA(),A.qZA(),A.TgZ(6,"div"),A.YNc(7,Eo,3,1,"button",12),A.TgZ(8,"mat-menu",13,42),A.YNc(10,wo,2,1,"button",15),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(3),A.Q6J("icon",t.icon),A.xp6(2),A.Oqu(t.title),A.xp6(2),A.Q6J("ngIf",t.links[0]),A.xp6(3),A.Q6J("ngForOf",t.goToOptions)}}function Qo(r,v){1&r&&A._UZ(0,"mat-progress-bar",28)}function Mo(r,v){if(1&r&&A._UZ(0,"rtl-cln-node-info",43),2&r){const t=A.oxw(3);A.Q6J("information",t.information)}}function po(r,v){if(1&r&&A._UZ(0,"rtl-cln-balances-info",30),2&r){const t=A.oxw(3);A.Q6J("balances",t.balances)("errorMessage",t.errorMessages[2]+" "+t.errorMessages[3])}}function Io(r,v){if(1&r&&A._UZ(0,"rtl-cln-channel-liquidity-info",44),2&r){const t=A.oxw(3);A.Q6J("direction","In")("totalLiquidity",t.totalInboundLiquidity)("activeChannels",t.allInboundChannels)("errorMessage",t.errorMessages[4])}}function ga(r,v){if(1&r&&A._UZ(0,"rtl-cln-channel-liquidity-info",44),2&r){const t=A.oxw(3);A.Q6J("direction","Out")("totalLiquidity",t.totalOutboundLiquidity)("activeChannels",t.allOutboundChannels)("errorMessage",t.errorMessages[4])}}function mo(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"button",27),A.NdJ("click",function(){const vA=A.CHM(t).index,ft=A.oxw(3).$implicit;return A.oxw(2).onNavigateTo(ft.links[vA])}),A._uU(1),A.qZA()}if(2&r){const t=v.$implicit;A.xp6(1),A.Oqu(t)}}function Do(r,v){if(1&r&&(A.TgZ(0,"button",26),A.TgZ(1,"mat-icon"),A._uU(2,"more_vert"),A.qZA(),A.qZA(),A.TgZ(3,"mat-menu",13,53),A.YNc(5,mo,2,1,"button",15),A.qZA()),2&r){const t=A.MAs(4),s=A.oxw(2).$implicit;A.Q6J("matMenuTriggerFor",t),A.xp6(5),A.Q6J("ngForOf",s.goToOptions)}}function vo(r,v){1&r&&(A.TgZ(0,"span",45),A.TgZ(1,"mat-tab-group",46),A.TgZ(2,"mat-tab",47),A._UZ(3,"rtl-cln-lightning-invoices-table",48),A.qZA(),A.TgZ(4,"mat-tab",49),A._UZ(5,"rtl-cln-lightning-payments",50),A.qZA(),A.TgZ(6,"mat-tab",51),A.YNc(7,Do,6,2,"ng-template",52),A.qZA(),A.qZA(),A.qZA()),2&r&&(A.xp6(3),A.Q6J("calledFrom","home"),A.xp6(2),A.Q6J("calledFrom","home"),A.xp6(1),A.Q6J("disabled",!0))}function yo(r,v){1&r&&(A.TgZ(0,"h3"),A._uU(1,"Error! Unable to find information!"),A.qZA())}const Ar=function(r){return{"p-0":r}};function fr(r,v){if(1&r&&(A.TgZ(0,"mat-grid-tile",8),A.TgZ(1,"mat-card",36),A.YNc(2,Co,11,4,"mat-card-header",37),A.TgZ(3,"mat-card-content",38),A.YNc(4,Qo,1,0,"mat-progress-bar",18),A.TgZ(5,"div",19),A.YNc(6,Mo,1,1,"rtl-cln-node-info",39),A.YNc(7,po,1,2,"rtl-cln-balances-info",21),A.YNc(8,Io,1,4,"rtl-cln-channel-liquidity-info",40),A.YNc(9,ga,1,4,"rtl-cln-channel-liquidity-info",40),A.YNc(10,vo,8,3,"span",41),A.YNc(11,yo,2,0,"h3",25),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&r){const t=v.$implicit,s=A.oxw(2);A.Q6J("colspan",t.cols)("rowspan",t.rows),A.xp6(1),A.Q6J("ngClass",A.VKq(13,Ar,"transactions"===t.id)),A.xp6(1),A.Q6J("ngIf","transactions"!==t.id),A.xp6(1),A.s9C("fxFlex","transactions"===t.id?100:"balance"===t.id?70:90),A.Q6J("ngClass",A.VKq(15,la,"node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||"balance"===t.id&&(s.apiCallStatusBalance.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR)||("inboundLiq"===t.id||"outboundLiq"===t.id)&&s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR)),A.xp6(1),A.Q6J("ngIf","node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||"balance"===t.id&&(s.apiCallStatusBalance.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.INITIATED)||("inboundLiq"===t.id||"outboundLiq"===t.id)&&s.apiCallStatusChannels.status===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngSwitch",t.id),A.xp6(1),A.Q6J("ngSwitchCase","node"),A.xp6(1),A.Q6J("ngSwitchCase","balance"),A.xp6(1),A.Q6J("ngSwitchCase","inboundLiq"),A.xp6(1),A.Q6J("ngSwitchCase","outboundLiq"),A.xp6(1),A.Q6J("ngSwitchCase","transactions")}}function ci(r,v){if(1&r&&(A.TgZ(0,"div",34),A._UZ(1,"fa-icon",4),A.TgZ(2,"span",5),A._uU(3),A.qZA(),A.qZA(),A.TgZ(4,"mat-grid-list",35),A.YNc(5,fr,12,17,"mat-grid-tile",7),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faSmile),A.xp6(2),A.hij("Welcome ",t.information.alias,"! Your node is up and running."),A.xp6(1),A.Q6J("rowHeight",t.merchantCardHeight),A.xp6(1),A.Q6J("ngForOf",t.merchantCards)}}let xo=(()=>{class r{constructor(t,s,G,vA,ft){this.logger=t,this.store=s,this.actions=G,this.commonService=vA,this.router=ft,this.faSmile=c.I3,this.faFrown=c.Kf,this.faAngleDoubleDown=h.Sbq,this.faAngleDoubleUp=h.Vfw,this.faChartPie=h.OS1,this.faBolt=h.BDt,this.faServer=h.xf3,this.faNetworkWired=h.kXW,this.userPersonaEnum=a.ol,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.selNode={},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="330px",this.merchantCardHeight="65px",this.sortField="Balance Score",this.errorMessages=["","","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusFees=null,this.apiCallStatusBalance=null,this.apiCallStatusLRBal=null,this.apiCallStatusChannels=null,this.apiCallStatusFHistory=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new l.x,new l.x,new l.x,new l.x,new l.x,new l.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.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===a.cu.SM||this.screenSize===a.cu.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(B.Hz).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessages[0]="",this.errorMessages[5]="",this.apiCallStatusNodeInfo=t.apisCallStatus[0],this.apiCallStatusFHistory=t.apisCallStatus[1],this.apiCallStatusNodeInfo.status===a.Bn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message),this.apiCallStatusFHistory.status===a.Bn.ERROR&&(this.errorMessages[5]="object"==typeof this.apiCallStatusFHistory.message?JSON.stringify(this.apiCallStatusFHistory.message):this.apiCallStatusFHistory.message),this.selNode=t.nodeSettings,this.information=t.information}),this.store.select(B.JG).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.errorMessages[1]="",this.apiCallStatusFees=t.apiCallStatus,this.apiCallStatusFees.status===a.Bn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message),this.fees=t.fees,this.logger.info(t)}),this.store.select(B.ZW).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.errorMessages[4]="",this.apiCallStatusChannels=t.apiCallStatus,this.apiCallStatusChannels.status===a.Bn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message),this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.activeChannels=t.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(s=>s.msatoshi_to_them>0),"msatoshi_to_them")))||[],this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.activeChannels.filter(s=>s.msatoshi_to_us>0),"msatoshi_to_us")))||[],this.activeChannels.forEach(s=>{this.totalInboundLiquidity=this.totalInboundLiquidity+Math.ceil(s.msatoshi_to_them/1e3),this.totalOutboundLiquidity=this.totalOutboundLiquidity+Math.floor(s.msatoshi_to_us/1e3)}),this.channelsStatus.active.channels=t.activeChannels.length||0,this.channelsStatus.pending.channels=t.pendingChannels.length||0,this.channelsStatus.inactive.channels=t.inactiveChannels.length||0,this.logger.info(t)}),this.store.select(B.Rn).pipe((0,i.R)(this.unSubs[3]),(0,o.M)(this.store.select(B.Wj))).subscribe(([t,s])=>{this.errorMessages[2]="",this.apiCallStatusBalance=t.apiCallStatus,this.apiCallStatusBalance.status===a.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusBalance.message?JSON.stringify(this.apiCallStatusBalance.message):this.apiCallStatusBalance.message),this.errorMessages[3]="",this.apiCallStatusLRBal=s.apiCallStatus,this.apiCallStatusLRBal.status===a.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusLRBal.message?JSON.stringify(this.apiCallStatusLRBal.message):this.apiCallStatusLRBal.message),this.totalBalance=t.balance,this.balances.onchain=t.balance.totalBalance,this.balances.lightning=s.localRemoteBalance.localBalance,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances);const G=s.localRemoteBalance.localBalance?+s.localRemoteBalance.localBalance:0,vA=s.localRemoteBalance.remoteBalance?+s.localRemoteBalance.remoteBalance:0;this.channelBalances={localBalance:G,remoteBalance:vA,balancedness:+(1-Math.abs((G-vA)/(G+vA))).toFixed(3)},this.channelsStatus.active.capacity=s.localRemoteBalance.localBalance||0,this.channelsStatus.pending.capacity=s.localRemoteBalance.pendingBalance||0,this.channelsStatus.inactive.capacity=s.localRemoteBalance.inactiveBalance||0,this.logger.info(t),this.logger.info(s)})}onNavigateTo(t){this.router.navigateByUrl("/cln/"+t)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.activeChannelsCapacity=this.activeChannels.sort((t,s)=>{const G=+t.msatoshi_to_us+ +t.msatoshi_to_them,vA=+s.msatoshi_to_them+ +s.msatoshi_to_them;return G>vA?-1:G{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(C.eX),A.Y36(e.v),A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-home"]],decls:3,vars:2,consts:[["fxLayout","column",4,"ngIf","ngIfElse"],["merchantDashboard",""],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","mb-0"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","10",3,"rowHeight"],[3,"colspan","rowspan",4,"ngFor","ngForOf"],[3,"colspan","rowspan"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card","mt-4"],["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"],["menuOperator","matMenu"],["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-0"],["cols","6",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card","mt-4",3,"ngClass"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",3,"fxFlex","ngClass"],["fxFlex","100",3,"information",4,"ngSwitchCase"],["fxFlex","100",3,"direction","totalLiquidity","activeChannels","errorMessage",4,"ngSwitchCase"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start",4,"ngSwitchCase"],["menuMerchant","matMenu"],["fxFlex","100",3,"information"],["fxFlex","100",3,"direction","totalLiquidity","activeChannels","errorMessage"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","column",1,"w-100","dashboard-tabs-group"],["label","Receive"],[1,"h-100",3,"calledFrom"],["label","Pay"],[3,"calledFrom"],[3,"disabled"],["mat-tab-label",""],["menuTransactions","matMenu"]],template:function(t,s){if(1&t&&(A.YNc(0,ho,7,4,"div",0),A.YNc(1,ci,6,4,"ng-template",null,1,A.W1O)),2&t){const G=A.MAs(2);A.Q6J("ngIf",(null==s.selNode?null:s.selNode.userPersona)===s.userPersonaEnum.OPERATOR)("ngIfElse",G)}},directives:[ht.O5,Ct.xw,Ct.Wh,f.BN,g.Il,ht.sg,g.DX,w.a8,Ct.yH,w.dk,w.n5,Q.VK,w.dn,ht.mk,d.oO,ht.RF,ht.n9,ht.ED,Y.lW,Q.p6,y.Hw,Q.OP,T.pW,N,L,dA,NA,q,It,ut.SP,ut.uX,tt,aa,ut.uD],styles:[""]}),r})();var Ba=St(9841),Fo=St(8012),ua=St(8377),Tr=St(7261),ar=St(1125),Mr=St(5615);const Yo=["form"],To=["formSweepAll"],No=["stepper"];function So(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Bitcoin address is required."),A.qZA())}function Uo(r,v){1&r&&(A.TgZ(0,"mat-hint"),A._uU(1,"Amount replaced by UTXO balance"),A.qZA())}function Po(r,v){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.amountError)}}function Ro(r,v){if(1&r&&(A.TgZ(0,"mat-option",38),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.Q6J("value",t),A.xp6(1),A.Oqu(t)}}function zo(r,v){if(1&r&&(A.TgZ(0,"mat-option",38),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function Lo(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function bo(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",39),A.TgZ(1,"input",40,41),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw(2).customFeeRate=G}),A.qZA(),A.YNc(3,Lo,2,0,"mat-error",14),A.qZA()}if(2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngModel",t.customFeeRate)("step",.1)("min",0)("required","customperkb"===t.selFeeRate&&!t.flgMinConf),A.xp6(2),A.Q6J("ngIf","customperkb"===t.selFeeRate&&!t.flgMinConf&&!t.customFeeRate)}}function Go(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function Ho(r,v){if(1&r&&(A.TgZ(0,"mat-option",38),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=v.$implicit;A.Q6J("value",t),A.xp6(1),A.hij("",A.lcZ(2,2,t.value)," Sats")}}function fa(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",23),A.TgZ(1,"mat-expansion-panel",42),A.NdJ("closed",function(){return A.CHM(t),A.oxw(2).onAdvancedPanelToggle(!0)})("opened",function(){return A.CHM(t),A.oxw(2).onAdvancedPanelToggle(!1)}),A.TgZ(2,"mat-expansion-panel-header"),A.TgZ(3,"mat-panel-title"),A.TgZ(4,"span"),A._uU(5),A.qZA(),A.qZA(),A.qZA(),A.TgZ(6,"div",22),A.TgZ(7,"div",43),A.TgZ(8,"mat-form-field",44),A.TgZ(9,"mat-select",45),A.NdJ("selectionChange",function(G){return A.CHM(t),A.oxw(2).onUTXOSelectionChange(G)})("valueChange",function(G){return A.CHM(t),A.oxw(2).selUTXOs=G}),A.TgZ(10,"mat-select-trigger"),A._uU(11),A.ALo(12,"number"),A.qZA(),A.YNc(13,Ho,3,4,"mat-option",21),A.qZA(),A.qZA(),A.TgZ(14,"div",46),A.TgZ(15,"mat-slide-toggle",47),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw(2).flgUseAllBalance=G})("change",function(){return A.CHM(t),A.oxw(2).onUTXOAllBalanceChange()}),A._uU(16," Use selected UTXOs balance "),A.qZA(),A.TgZ(17,"mat-icon",48),A._uU(18,"info_outline"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=A.oxw(2);A.xp6(5),A.Oqu(t.advancedTitle),A.xp6(4),A.Q6J("value",t.selUTXOs),A.xp6(2),A.AsE("",A.lcZ(12,7,t.totalSelectedUTXOAmount)," Sats (",t.selUTXOs.length>1?t.selUTXOs.length+" UTXOs":"1 UTXO",")"),A.xp6(2),A.Q6J("ngForOf",t.utxos),A.xp6(2),A.Q6J("ngModel",t.flgUseAllBalance)("disabled",t.selUTXOs.length<1)}}function Jo(r,v){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.sendFundError)}}function Oo(r,v){if(1&r&&(A.TgZ(0,"div",49),A._UZ(1,"fa-icon",50),A.YNc(2,Jo,2,1,"span",14),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.sendFundError)}}const ha=function(r,v){return{"mr-6":r,"mr-2":v}};function ko(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"form",9,10),A.NdJ("submit",function(){return A.CHM(t),A.oxw().onSendFunds()})("reset",function(){return A.CHM(t),A.oxw().resetData()}),A.TgZ(2,"mat-form-field",11),A.TgZ(3,"input",12,13),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().transaction.address=G}),A.qZA(),A.YNc(5,So,2,0,"mat-error",14),A.qZA(),A.TgZ(6,"mat-form-field",15),A.TgZ(7,"input",16,17),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().transaction.satoshis=G}),A.qZA(),A.YNc(9,Uo,2,0,"mat-hint",14),A.TgZ(10,"span",18),A._uU(11),A.qZA(),A.YNc(12,Po,2,1,"mat-error",14),A.qZA(),A.TgZ(13,"mat-form-field",19),A.TgZ(14,"mat-select",20),A.NdJ("selectionChange",function(G){return A.CHM(t),A.oxw().onAmountUnitChange(G)}),A.YNc(15,Ro,2,2,"mat-option",21),A.qZA(),A.qZA(),A.TgZ(16,"div",22),A.TgZ(17,"div",23),A.TgZ(18,"div",24),A.TgZ(19,"mat-form-field",25),A.TgZ(20,"mat-select",26),A.NdJ("valueChange",function(G){return A.CHM(t),A.oxw().selFeeRate=G})("selectionChange",function(){return A.CHM(t),A.oxw().customFeeRate=null}),A.YNc(21,zo,2,2,"mat-option",21),A.qZA(),A.qZA(),A.YNc(22,bo,4,5,"mat-form-field",27),A.qZA(),A.TgZ(23,"div",28),A.TgZ(24,"mat-checkbox",29),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().flgMinConf=G})("change",function(){A.CHM(t);const G=A.oxw();return G.flgMinConf?G.selFeeRate=null:G.minConfValue=null}),A.qZA(),A.TgZ(25,"mat-form-field",30),A.TgZ(26,"input",31,32),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().minConfValue=G}),A.qZA(),A.YNc(28,Go,2,0,"mat-error",14),A.qZA(),A.qZA(),A.qZA(),A.YNc(29,fa,19,9,"div",33),A._UZ(30,"div",22),A.YNc(31,Oo,3,2,"div",34),A.TgZ(32,"div",35),A.TgZ(33,"button",36),A._uU(34,"Clear Fields"),A.qZA(),A.TgZ(35,"button",37),A._uU(36,"Send Funds"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.transaction.address),A.xp6(2),A.Q6J("ngIf",!t.transaction.address),A.xp6(2),A.Q6J("ngModel",t.transaction.satoshis)("type",t.flgUseAllBalance?"text":"number")("step",100)("min",0)("disabled",t.flgUseAllBalance),A.xp6(2),A.Q6J("ngIf",t.flgUseAllBalance),A.xp6(2),A.hij(" ",t.selAmountUnit," "),A.xp6(1),A.Q6J("ngIf",!t.transaction.satoshis),A.xp6(2),A.Q6J("value",t.selAmountUnit)("disabled",t.flgUseAllBalance),A.xp6(1),A.Q6J("ngForOf",t.amountUnits),A.xp6(4),A.Q6J("fxFlex","customperkb"!==t.selFeeRate||t.flgMinConf?"100":"48"),A.xp6(1),A.Q6J("value",t.selFeeRate)("disabled",t.flgMinConf),A.xp6(1),A.Q6J("ngForOf",t.feeRateTypes),A.xp6(1),A.Q6J("ngIf","customperkb"===t.selFeeRate&&!t.flgMinConf),A.xp6(2),A.Q6J("ngModel",t.flgMinConf)("ngClass",A.WLB(28,ha,t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM,t.screenSize===t.screenSizeEnum.MD||t.screenSize===t.screenSizeEnum.LG||t.screenSize===t.screenSizeEnum.XL)),A.xp6(2),A.Q6J("ngModel",t.minConfValue)("step",1)("min",0)("required",t.flgMinConf)("disabled",!t.flgMinConf),A.xp6(2),A.Q6J("ngIf",t.flgMinConf&&!t.minConfValue),A.xp6(1),A.Q6J("ngIf",t.isCompatibleVersion),A.xp6(2),A.Q6J("ngIf",""!==t.sendFundError)}}function jo(r,v){if(1&r&&A._uU(0),2&r){const t=A.oxw(3);A.Oqu(t.passwordFormLabel)}}function Zo(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Password is required."),A.qZA())}function Ko(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-step",55),A.TgZ(1,"form",73),A.YNc(2,jo,1,1,"ng-template",67),A.TgZ(3,"div",0),A.TgZ(4,"mat-form-field",1),A._UZ(5,"input",74),A.YNc(6,Zo,2,0,"mat-error",14),A.qZA(),A.qZA(),A.TgZ(7,"div",75),A.TgZ(8,"button",76),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onAuthenticate()}),A._uU(9,"Confirm"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=A.oxw(2);A.Q6J("stepControl",t.passwordFormGroup)("editable",t.flgEditable),A.xp6(1),A.Q6J("formGroup",t.passwordFormGroup),A.xp6(5),A.Q6J("ngIf",null==t.passwordFormGroup.controls.password.errors?null:t.passwordFormGroup.controls.password.errors.required)}}function Vo(r,v){if(1&r&&A._uU(0),2&r){const t=A.oxw(2);A.Oqu(t.sendFundFormLabel)}}function Wo(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Bitcoin address is required."),A.qZA())}function Xo(r,v){if(1&r&&(A.TgZ(0,"mat-option",38),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function qo(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function _o(r,v){if(1&r&&(A.TgZ(0,"mat-form-field",39),A._UZ(1,"input",77),A.YNc(2,qo,2,0,"mat-error",14),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("step",.1)("min",0),A.xp6(1),A.Q6J("ngIf","customperkb"===t.sendFundFormGroup.controls.selFeeRate.value&&!t.sendFundFormGroup.controls.flgMinConf.value&&!t.sendFundFormGroup.controls.customFeeRate.value)}}function oe(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function $o(r,v){if(1&r&&A._uU(0),2&r){const t=A.oxw(2);A.Oqu(t.confirmFormLabel)}}function li(r,v){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.sendFundError)}}function gi(r,v){if(1&r&&(A.TgZ(0,"div",49),A._UZ(1,"fa-icon",50),A.YNc(2,li,2,1,"span",14),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.sendFundError)}}function Nr(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",51),A.TgZ(1,"mat-vertical-stepper",52,53),A.NdJ("selectionChange",function(G){return A.CHM(t),A.oxw().stepSelectionChanged(G)}),A.YNc(3,Ko,10,4,"mat-step",54),A.TgZ(4,"mat-step",55),A.TgZ(5,"form",56),A.YNc(6,Vo,1,1,"ng-template",57),A.TgZ(7,"div",22),A.TgZ(8,"mat-form-field",1),A._UZ(9,"input",58),A.YNc(10,Wo,2,0,"mat-error",14),A.qZA(),A.TgZ(11,"div",59),A.TgZ(12,"div",24),A.TgZ(13,"mat-form-field",25),A.TgZ(14,"mat-select",60),A.YNc(15,Xo,2,2,"mat-option",21),A.qZA(),A.qZA(),A.YNc(16,_o,3,3,"mat-form-field",27),A.qZA(),A.TgZ(17,"div",28),A._UZ(18,"mat-checkbox",61),A.TgZ(19,"mat-form-field",30),A._UZ(20,"input",62),A.YNc(21,oe,2,0,"mat-error",14),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.TgZ(22,"div",63),A.TgZ(23,"button",64),A._uU(24,"Next"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.TgZ(25,"mat-step",65),A.TgZ(26,"form",66),A.YNc(27,$o,1,1,"ng-template",67),A.TgZ(28,"div",51),A.TgZ(29,"div",68),A._UZ(30,"fa-icon",69),A.TgZ(31,"span"),A._uU(32,"You are about to sweep all funds from RTL. Are you sure?"),A.qZA(),A.qZA(),A.YNc(33,gi,3,2,"div",34),A.TgZ(34,"div",63),A.TgZ(35,"button",70),A.NdJ("click",function(){return A.CHM(t),A.oxw().onSendFunds()}),A._uU(36,"Sweep All Funds"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.TgZ(37,"div",71),A.TgZ(38,"button",72),A._uU(39),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=A.oxw();A.xp6(1),A.Q6J("linear",!0),A.xp6(2),A.Q6J("ngIf",!t.appConfig.sso.rtlSSO),A.xp6(1),A.Q6J("stepControl",t.sendFundFormGroup)("editable",t.flgEditable),A.xp6(1),A.Q6J("formGroup",t.sendFundFormGroup),A.xp6(5),A.Q6J("ngIf",null==t.sendFundFormGroup.controls.transactionAddress.errors?null:t.sendFundFormGroup.controls.transactionAddress.errors.required),A.xp6(3),A.Q6J("fxFlex","customperkb"!==t.sendFundFormGroup.controls.selFeeRate.value||t.sendFundFormGroup.controls.flgMinConf.value?"100":"48"),A.xp6(2),A.Q6J("ngForOf",t.feeRateTypes),A.xp6(1),A.Q6J("ngIf","customperkb"===t.sendFundFormGroup.controls.selFeeRate.value&&!t.sendFundFormGroup.controls.flgMinConf.value),A.xp6(2),A.Q6J("ngClass",A.WLB(20,ha,t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM,t.screenSize===t.screenSizeEnum.MD||t.screenSize===t.screenSizeEnum.LG||t.screenSize===t.screenSizeEnum.XL)),A.xp6(2),A.Q6J("step",1)("min",0)("required",t.sendFundFormGroup.controls.flgMinConf.value),A.xp6(1),A.Q6J("ngIf",t.sendFundFormGroup.controls.flgMinConf.value&&!t.sendFundFormGroup.controls.minConfValue.value),A.xp6(4),A.Q6J("stepControl",t.confirmFormGroup),A.xp6(1),A.Q6J("formGroup",t.confirmFormGroup),A.xp6(4),A.Q6J("icon",t.faExclamationTriangle),A.xp6(3),A.Q6J("ngIf",""!==t.sendFundError),A.xp6(5),A.Q6J("mat-dialog-close",!1),A.xp6(1),A.Oqu(t.flgValidated?"Close":"Cancel")}}let or=(()=>{class r{constructor(t,s,G,vA,ft,Ce,un,Qe,An,ia){this.dialogRef=t,this.data=s,this.logger=G,this.store=vA,this.commonService=ft,this.decimalPipe=Ce,this.actions=un,this.formBuilder=Qe,this.rtlEffects=An,this.snackBar=ia,this.faExclamationTriangle=h.eHv,this.sweepAll=!1,this.selNode={},this.addressTypes=[],this.utxos=[],this.selUTXOs=[],this.flgUseAllBalance=!1,this.totalSelectedUTXOAmount=null,this.selectedAddress=a._t[1],this.blockchainBalance={},this.information={},this.isCompatibleVersion=!1,this.newAddress="",this.transaction={},this.feeRateTypes=a.vn,this.selFeeRate="",this.customFeeRate=null,this.flgMinConf=!1,this.minConfValue=null,this.sendFundError="",this.fiatConversion=!1,this.amountUnits=a.uA,this.selAmountUnit=a.uA[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=a.Xz,this.advancedTitle="Advanced Options",this.flgValidated=!1,this.flgEditable=!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=a.cu,this.unSubs=[new l.x,new l.x,new l.x,new l.x,new l.x,new l.x,new l.x,new l.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.sweepAll=this.data.sweepAll,this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[OA.kI.required]],password:["",[OA.kI.required]]}),this.sendFundFormGroup=this.formBuilder.group({transactionAddress:["",OA.kI.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.R)(this.unSubs[0])).subscribe(t=>{t?(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([OA.kI.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.R)(this.unSubs[1])).subscribe(t=>{this.sendFundFormGroup.controls.customFeeRate.setValue(null),this.sendFundFormGroup.controls.customFeeRate.reset(),this.sendFundFormGroup.controls.customFeeRate.setValidators("customperkb"!==t||this.sendFundFormGroup.controls.flgMinConf.value?null:[OA.kI.required])}),(0,Ba.a)([this.store.select(ua.dT),this.store.select(ua.Yj)]).pipe((0,i.R)(this.unSubs[1])).subscribe(([t,s])=>{this.fiatConversion=t.settings.fiatConversion,this.amountUnits=t.settings.currencyUnits,this.appConfig=s}),this.store.select(B.ey).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.information=t,this.isCompatibleVersion=this.commonService.isVersionCompatible(this.information.version,"0.9.0")&&this.commonService.isVersionCompatible(this.information.api_version,"0.4.0")}),this.store.select(B.T4).pipe((0,i.R)(this.unSubs[3])).subscribe(t=>{this.utxos=this.commonService.sortAscByKey(t.utxos.filter(s=>"confirmed"===s.status),"value"),this.logger.info(t)}),this.actions.pipe((0,i.R)(this.unSubs[4]),(0,JA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN||t.type===a.AB.SET_CHANNEL_TRANSACTION_RES_CLN)).subscribe(t=>{t.type===a.AB.SET_CHANNEL_TRANSACTION_RES_CLN&&(this.store.dispatch((0,kA.jW)({payload:"Fund Sent Successfully!"})),this.dialogRef.close()),t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&t.payload.status===a.Bn.ERROR&&"SetChannelTransaction"===t.payload.action&&(this.sendFundError=t.payload.message)})}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,kA.QO)({payload:Fo(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,UA.q)(1)).subscribe(t=>{"ERROR"!==t?(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.satoshis="all"),this.selUTXOs.length&&this.selUTXOs.length>0&&(this.transaction.utxos=[],this.selUTXOs.forEach(t=>this.transaction.utxos.push(t.txid+":"+t.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.satoshis="all",this.transaction.address=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,Et.Wi)({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.transaction.address||""===this.transaction.address||!this.transaction.satoshis||+this.transaction.satoshis<=0||this.flgMinConf&&(!this.transaction.minconf||this.transaction.minconf<=0)||"customperkb"===this.selFeeRate&&!this.flgMinConf&&!this.customFeeRate)return!0;this.transaction.satoshis&&"all"!==this.transaction.satoshis&&this.selAmountUnit!==a.NT.SATS?this.commonService.convertCurrency(+this.transaction.satoshis,this.selAmountUnit===this.amountUnits[2]?a.NT.OTHER:this.selAmountUnit,a.NT.SATS,this.amountUnits[2],this.fiatConversion).pipe((0,i.R)(this.unSubs[5])).subscribe({next:t=>{this.transaction.satoshis=t[a.NT.SATS],this.selAmountUnit=a.NT.SATS,this.store.dispatch((0,Et.Wi)({payload:this.transaction}))},error:t=>{this.transaction.satoshis=null,this.selAmountUnit=a.NT.SATS,this.amountError="Conversion Error: "+t}}):this.store.dispatch((0,Et.Wi)({payload:this.transaction}))}}resetData(){this.sendFundError="",this.transaction={},this.flgMinConf=!1,this.totalSelectedUTXOAmount=null,this.selUTXOs=[],this.flgUseAllBalance=!1,this.selAmountUnit=a.uA[0]}stepSelectionChanged(t){switch(this.sendFundError="",t.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(s=>s.feeRateId===this.sendFundFormGroup.controls.selFeeRate.value).feeRateType:"")}t.selectedIndex0?(this.totalSelectedUTXOAmount=this.selUTXOs.reduce((G,vA)=>(s.value=G.value+vA.value,s)).value,this.flgUseAllBalance&&this.onUTXOAllBalanceChange()):(this.totalSelectedUTXOAmount=null,this.transaction.satoshis=null,this.flgUseAllBalance=!1)}onUTXOAllBalanceChange(){this.flgUseAllBalance?(this.transaction.satoshis=this.totalSelectedUTXOAmount,this.selAmountUnit=a.uA[0]):this.transaction.satoshis=null}onAmountUnitChange(t){const s=this,G=this.selAmountUnit===this.amountUnits[2]?a.NT.OTHER:this.selAmountUnit;let vA=t.value===this.amountUnits[2]?a.NT.OTHER:t.value;this.transaction.satoshis&&this.selAmountUnit!==t.value&&this.commonService.convertCurrency(+this.transaction.satoshis,G,vA,this.amountUnits[2],this.fiatConversion).pipe((0,i.R)(this.unSubs[6])).subscribe({next:ft=>{this.selAmountUnit=t.value,s.transaction.satoshis=s.decimalPipe.transform(ft[vA],s.currencyUnitFormats[vA]).replace(/,/g,"")},error:ft=>{s.transaction.satoshis=null,this.amountError="Conversion Error: "+ft,this.selAmountUnit=G,vA=G}})}onAdvancedPanelToggle(t){this.advancedTitle=t&&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(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(E.mQ),A.Y36(u.yh),A.Y36(e.v),A.Y36(ht.JJ),A.Y36(C.eX),A.Y36(OA.qu),A.Y36(At.V),A.Y36(Tr.ux))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-on-chain-send-modal"]],viewQuery:function(t,s){if(1&t&&(A.Gf(Yo,7),A.Gf(To,5),A.Gf(No,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.form=G.first),A.iGM(G=A.CRH())&&(s.formSweepAll=G.first),A.iGM(G=A.CRH())&&(s.stepper=G.first)}},decls:12,vars:4,consts:[["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","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","class","overflow-x-hidden",3,"submit","reset",4,"ngIf","ngIfElse"],["sweepAllBlock",""],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"overflow-x-hidden",3,"submit","reset"],["form","ngForm"],["fxFlex","55"],["matInput","","autoFocus","","placeholder","Bitcoin Address","tabindex","1","name","address","required","",3,"ngModel","ngModelChange"],["address","ngModel"],[4,"ngIf"],["fxFlex","30"],["matInput","","placeholder","Amount","name","amount","tabindex","2","required","",3,"ngModel","type","step","min","disabled","ngModelChange"],["amount","ngModel"],["matSuffix",""],["fxFlex","10","fxLayoutAlign","start end"],["tabindex","3","required","","name","amountUnit",3,"value","disabled","selectionChange"],[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 end"],["fxLayoutAlign","start center",3,"fxFlex"],["tabindex","4","placeholder","Fee Rate",3,"value","disabled","valueChange","selectionChange"],["fxFlex","48","fxLayoutAlign","end center",4,"ngIf"],["fxFlex","48","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","2","tabindex","5","color","primary","name","flgMinConf","fxLayoutAlign","stretch start",3,"ngModel","ngClass","ngModelChange","change"],["fxFlex","98"],["matInput","","placeholder","Min Confirmation Blocks","type","number","name","blocks","tabindex","8",3,"ngModel","step","min","required","disabled","ngModelChange"],["blocks","ngModel"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-sm","space-between center","fxLayout.gt-sm","row wrap",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"],[3,"value"],["fxFlex","48","fxLayoutAlign","end center"],["matInput","","placeholder","Fee Rate (Sats/vByte)","type","number","name","custFeeRate","tabindex","4",3,"ngModel","step","min","required","ngModelChange"],["custFeeRate","ngModel"],["fxLayout","column","fxFlex","100","expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","35","fxLayoutAlign","start end"],["tabindex","8","placeholder","Coin Selection","multiple","",3,"value","selectionChange","valueChange"],["fxFlex","60","fxLayout","row","fxLayoutAlign","start center"],["tabindex","9","color","primary","name","flgUseAllBalance",3,"ngModel","disabled","ngModelChange","change"],["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",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl","editable"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["matInput","","formControlName","transactionAddress","placeholder","Bitcoin Address","tabindex","4","name","address","required",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign.gt-sm","space-between center"],["tabindex","4","placeholder","Fee Rate","formControlName","selFeeRate"],["fxFlex","2","tabindex","5","color","primary","formControlName","flgMinConf","fxLayoutAlign","stretch start",3,"ngClass"],["matInput","","formControlName","minConfValue","placeholder","Min Confirmation Blocks","type","number","name","blocks","tabindex","8",3,"step","min","required"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","8","type","default","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","tabindex","9","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["autoFocus","","matInput","","placeholder","Password","type","password","tabindex","1","formControlName","password","required",""],["fxLayout","row",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","default",3,"click"],["matInput","","formControlName","customFeeRate","placeholder","Fee Rate (Sats/vByte)","type","number","name","custFeeRate","tabindex","4",3,"step","min"]],template:function(t,s){if(1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-card-header",2),A.TgZ(3,"div",3),A.TgZ(4,"span",4),A._uU(5),A.qZA(),A.qZA(),A.TgZ(6,"button",5),A._uU(7,"X"),A.qZA(),A.qZA(),A.TgZ(8,"mat-card-content",6),A.YNc(9,ko,37,31,"form",7),A.qZA(),A.qZA(),A.qZA(),A.YNc(10,Nr,40,23,"ng-template",null,8,A.W1O)),2&t){const G=A.MAs(11);A.xp6(5),A.Oqu(s.sweepAll?"Sweep All Funds":"Send Funds"),A.xp6(1),A.Q6J("mat-dialog-close",!1),A.xp6(3),A.Q6J("ngIf",!s.sweepAll)("ngIfElse",G)}},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Y.lW,Mt.ZT,w.dn,ht.O5,OA._Y,OA.JL,OA.F,W.KE,Yt.Nt,OA.Fj,H.h,OA.Q7,OA.JJ,OA.On,k.q,W.R9,R.gD,ht.sg,HA.oG,ht.mk,d.oO,OA.wV,OA.qQ,W.TO,W.bx,wA.ey,ar.ib,ar.yz,ar.yK,R.$L,QA.Rr,y.Hw,aA.gM,f.BN,Mr.Vq,Mr.C0,OA.sg,Mr.VY,OA.u,Mr.Ic],pipes:[ht.JJ],styles:[""]}),r})();var Or=St(1203);function As(r,v){1&r&&A._UZ(0,"mat-progress-bar",27)}function ts(r,v){1&r&&(A.TgZ(0,"th",28),A._uU(1," Transaction ID "),A.qZA())}function es(r,v){1&r&&(A.TgZ(0,"span",36),A.TgZ(1,"mat-icon",37),A._uU(2,"warning"),A.qZA(),A.qZA())}function Sr(r,v){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,es,3,0,"span",35),A.qZA()),2&r){const t=A.oxw().$implicit;A.oxw();const s=A.MAs(32);A.xp6(1),A.Q6J("ngIf",t.value<1e3)("ngIfElse",s)}}function Ur(r,v){1&r&&A._UZ(0,"span",38)}function Gi(r,v){if(1&r&&(A._UZ(0,"span",39),A.ALo(1,"titlecase")),2&r){const t=A.oxw().$implicit;A.s9C("matTooltip",A.lcZ(1,1,t.status))}}const Hi=function(r){return{"max-width":r}};function Ji(r,v){if(1&r&&(A.TgZ(0,"td",29),A.TgZ(1,"span",30),A.YNc(2,Sr,2,2,"span",31),A.YNc(3,Ur,1,0,"span",32),A.YNc(4,Gi,2,3,"span",33),A.TgZ(5,"span",34),A._uU(6),A.qZA(),A.qZA(),A.qZA()),2&r){const t=v.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(5,Hi,s.screenSize===s.screenSizeEnum.XS?"10rem":"50rem")),A.xp6(1),A.Q6J("ngIf",s.numDustUTXOs>0&&!s.isDustUTXO),A.xp6(1),A.Q6J("ngIf","confirmed"===t.status),A.xp6(1),A.Q6J("ngIf","confirmed"!==t.status),A.xp6(2),A.Oqu(t.txid)}}function ns(r,v){1&r&&(A.TgZ(0,"th",40),A._uU(1," Output "),A.qZA())}function Ea(r,v){if(1&r&&(A.TgZ(0,"td",29),A.TgZ(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.output)," ")}}function rs(r,v){1&r&&(A.TgZ(0,"th",40),A._uU(1," Value (Sats) "),A.qZA())}function is(r,v){if(1&r&&(A.TgZ(0,"span",41),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.Oqu(A.lcZ(2,1,t.value))}}function as(r,v){if(1&r&&(A.TgZ(0,"span",44),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.hij("(",A.lcZ(2,1,-1*t.value),")")}}function os(r,v){if(1&r&&(A.TgZ(0,"td",29),A.YNc(1,is,3,3,"span",42),A.YNc(2,as,3,3,"span",43),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Q6J("ngIf",t.value>0||0===t.value),A.xp6(1),A.Q6J("ngIf",t.value<0)}}function ss(r,v){1&r&&(A.TgZ(0,"th",40),A._uU(1," Blockheight "),A.qZA())}function wa(r,v){if(1&r&&(A.TgZ(0,"td",29),A.TgZ(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.blockheight)," ")}}function cs(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"th",45),A.TgZ(1,"div",46),A.TgZ(2,"mat-select",47),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",48),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function ls(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",49),A.TgZ(1,"button",50),A.NdJ("click",function(G){const ft=A.CHM(t).$implicit;return A.oxw().onUTXOClick(ft,G)}),A._uU(2,"View Info"),A.qZA(),A.qZA()}}function pr(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No utxos available."),A.qZA())}function zt(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting utxos..."),A.qZA())}function Bi(r,v){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function ui(r,v){if(1&r&&(A.TgZ(0,"td",51),A.YNc(1,pr,2,0,"p",31),A.YNc(2,zt,2,0,"p",31),A.YNc(3,Bi,2,1,"p",31),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(!(null!=t.listUTXOs&&t.listUTXOs.data)||(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.listUTXOs&&t.listUTXOs.data)||(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.listUTXOs&&t.listUTXOs.data)||(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const Ir=function(r){return{"display-none":r}};function Ca(r,v){if(1&r&&A._UZ(0,"tr",52),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,Ir,(null==t.listUTXOs?null:t.listUTXOs.data)&&(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)>0))}}function fi(r,v){1&r&&A._UZ(0,"tr",53)}function gs(r,v){1&r&&A._UZ(0,"tr",54)}function Qa(r,v){1&r&&A._UZ(0,"mat-icon",37)}const Bs=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},kr=function(){return["no_utxo"]};let hi=(()=>{class r{constructor(t,s,G){this.logger=t,this.commonService=s,this.store=G,this.numDustUTXOs=0,this.isDustUTXO=!1,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new l.x,new l.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["txid","value","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["txid","output","value","blockheight","actions"]):(this.flgSticky=!0,this.displayedColumns=["txid","output","value","blockheight","actions"])}ngOnInit(){this.store.select(B.T4).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.logger.info(t)})}ngAfterViewInit(){this.utxos&&this.utxos.length>0&&this.sort&&this.paginator&&this.loadUTXOsTable(this.utxos)}ngOnChanges(){this.utxos&&this.utxos.length>0&&this.loadUTXOsTable(this.utxos)}applyFilter(){this.listUTXOs.filter=this.selFilter.trim().toLowerCase()}onUTXOClick(t,s){const G=[[{key:"txid",value:t.txid,title:"Transaction ID",width:100}],[{key:"output",value:t.output,title:"Output",width:50,type:a.Gi.NUMBER},{key:"value",value:t.value,title:"Value (Sats)",width:50,type:a.Gi.NUMBER}],[{key:"status",value:this.commonService.titleCase(t.status),title:"Status",width:50,type:a.Gi.STRING},{key:"blockheight",value:t.blockheight,title:"Blockheight",width:50,type:a.Gi.NUMBER}],[{key:"address",value:t.address,title:"Address",width:100}]];this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"UTXO Information",message:G}}}))}loadUTXOsTable(t){this.listUTXOs=new yA.by([...t]),this.listUTXOs.sortingDataAccessor=(s,G)=>s[G]&&isNaN(s[G])?s[G].toLocaleLowerCase():s[G]?+s[G]:null,this.listUTXOs.sort=this.sort,this.listUTXOs.filterPredicate=(s,G)=>JSON.stringify(s).toLowerCase().includes(G),this.listUTXOs.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listUTXOs)}onDownloadCSV(){this.listUTXOs.data&&this.listUTXOs.data.length>0&&this.commonService.downloadFile(this.listUTXOs.data,"UTXOs")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-on-chain-utxos"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(VA.NW,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.sort=G.first),A.iGM(G=A.CRH())&&(s.paginator=G.first)}},inputs:{numDustUTXOs:"numDustUTXOs",isDustUTXO:"isDustUTXO",utxos:"utxos"},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("UTXOs")}]),A.TTD],decls:33,vars:14,consts:[["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","txid"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","output"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","value"],["matColumnDef","blockheight"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","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","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["emptySpace",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayout","row",1,"ellipsis-parent",3,"ngStyle"],[4,"ngIf"],["class","dot green","matTooltip","Confirmed","matTooltipPosition","right",4,"ngIf"],["class","dot yellow","matTooltipPosition","right",3,"matTooltip",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Risk of dust attack","matTooltipPosition","right",4,"ngIf","ngIfElse"],["matTooltip","Risk of dust attack","matTooltipPosition","right"],["fxLayoutAlign","start center","color","warn",1,"mr-1"],["matTooltip","Confirmed","matTooltipPosition","right",1,"dot","green"],["matTooltipPosition","right",1,"dot","yellow",3,"matTooltip"],["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","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A._UZ(2,"div",2),A.TgZ(3,"mat-form-field",3),A.TgZ(4,"input",4),A.NdJ("keyup",function(){return s.applyFilter()})("ngModelChange",function(vA){return s.selFilter=vA}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(5,"div",5),A.TgZ(6,"div",6),A.YNc(7,As,1,0,"mat-progress-bar",7),A.TgZ(8,"table",8,9),A.ynx(10,10),A.YNc(11,ts,2,0,"th",11),A.YNc(12,Ji,7,7,"td",12),A.BQk(),A.ynx(13,13),A.YNc(14,ns,2,0,"th",14),A.YNc(15,Ea,4,3,"td",12),A.BQk(),A.ynx(16,15),A.YNc(17,rs,2,0,"th",14),A.YNc(18,os,3,2,"td",12),A.BQk(),A.ynx(19,16),A.YNc(20,ss,2,0,"th",14),A.YNc(21,wa,4,3,"td",12),A.BQk(),A.ynx(22,17),A.YNc(23,cs,6,0,"th",18),A.YNc(24,ls,3,0,"td",19),A.BQk(),A.ynx(25,20),A.YNc(26,ui,4,3,"td",21),A.BQk(),A.YNc(27,Ca,1,3,"tr",22),A.YNc(28,fi,1,0,"tr",23),A.YNc(29,gs,1,0,"tr",24),A.qZA(),A._UZ(30,"mat-paginator",25),A.qZA(),A.qZA(),A.qZA(),A.YNc(31,Qa,1,0,"ng-template",null,26,A.W1O)),2&t&&(A.xp6(4),A.Q6J("ngModel",s.selFilter),A.xp6(3),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",s.listUTXOs)("ngClass",A.VKq(11,Bs,""!==s.errorMessage)),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(13,kr)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[Ct.xw,Ct.Wh,Ct.yH,W.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,cA.$V,ht.O5,yA.BZ,rt.YE,ht.mk,d.oO,yA.w1,yA.fO,yA.Dz,yA.mD,yA.Ke,yA.as,yA.nj,VA.NW,T.pW,yA.ge,rt.nU,yA.ev,ht.PC,d.Zl,aA.gM,y.Hw,R.gD,R.$L,wA.ey,Y.lW,yA.yh,yA.Q2,yA.XQ,yA.Gk],pipes:[ht.rS,ht.JJ],styles:[".mat-column-txid[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-txid[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();var Oi=St(7544);function da(r,v){if(1&r&&(A.TgZ(0,"span",5),A._uU(1,"UTXOs"),A.qZA()),2&r){const t=A.oxw();A.s9C("matBadge",t.numUtxos)}}function Ma(r,v){if(1&r&&(A.TgZ(0,"span",5),A._uU(1,"Dust UTXOs"),A.qZA()),2&r){const t=A.oxw();A.s9C("matBadge",t.numDustUtxos)}}let pa=(()=>{class r{constructor(t,s){this.logger=t,this.store=s,this.selectedTableIndex=0,this.selectedTableIndexChange=new A.vpe,this.utxos=[],this.numUtxos=0,this.dustUtxos=[],this.numDustUtxos=0,this.unSubs=[new l.x,new l.x]}ngOnInit(){this.store.select(B.T4).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{t.utxos&&t.utxos.length>0&&(this.utxos=t.utxos,this.numUtxos=this.utxos.length,this.dustUtxos=t.utxos.filter(s=>+s.value<1e3),this.numDustUtxos=this.dustUtxos.length),t.utxos&&t.utxos.length>0&&(this.utxos=t.utxos,this.numUtxos=this.utxos.length),this.logger.info(t)})}onSelectedIndexChanged(t){this.selectedTableIndexChange.emit(t)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-utxo-tables"]],inputs:{selectedTableIndex:"selectedTableIndex"},outputs:{selectedTableIndexChange:"selectedTableIndexChange"},decls:8,vars:7,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"bordered-box"],[3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["xLayout","row","fxFlex","100",3,"utxos","numDustUTXOs","isDustUTXO"],["fxLayout","row","fxFlex","100",3,"utxos","numDustUTXOs","isDustUTXO"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"mat-tab-group",1),A.NdJ("selectedIndexChange",function(vA){return s.onSelectedIndexChanged(vA)}),A.TgZ(2,"mat-tab"),A.YNc(3,da,2,1,"ng-template",2),A._UZ(4,"rtl-cln-on-chain-utxos",3),A.qZA(),A.TgZ(5,"mat-tab"),A.YNc(6,Ma,2,1,"ng-template",2),A._UZ(7,"rtl-cln-on-chain-utxos",4),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(1),A.Q6J("selectedIndex",s.selectedTableIndex),A.xp6(3),A.Q6J("utxos",s.utxos)("numDustUTXOs",s.numDustUtxos)("isDustUTXO",!1),A.xp6(3),A.Q6J("utxos",s.dustUtxos)("numDustUTXOs",s.numDustUtxos)("isDustUTXO",!0))},directives:[Ct.xw,Ct.yH,Ct.Wh,ut.SP,ut.uX,ut.uD,hi,Oi.k],styles:[""]}),r})();const us=function(r,v){return[r,v]};function fs(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",12),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().activeLink=null==vA?null:vA.link}),A._uU(1),A.qZA()}if(2&r){const t=v.$implicit,s=A.oxw();A.Q6J("active",s.activeLink===(null==t?null:t.link))("routerLink",A.WLB(3,us,null==t?null:t.link,null==s.selectedTable?null:s.selectedTable.name)),A.xp6(1),A.Oqu(null==t?null:t.name)}}let jr=(()=>{class r{constructor(t,s,G){this.store=t,this.router=s,this.activatedRoute=G,this.selNode={},this.faExchangeAlt=h.Ssp,this.faChartPie=h.OS1,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 l.x,new l.x,new l.x,new l.x]}ngOnInit(){const t=this.links.find(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.selectedTable=this.tables.find(s=>s.name===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(s=>s instanceof _t.Av)).subscribe({next:s=>{const G=this.links.find(vA=>s.urlAfterRedirects.includes(vA.link));this.activeLink=G?G.link:this.links[0].link,this.selectedTable=this.tables.find(vA=>vA.name===s.urlAfterRedirects.substring(s.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(B.lw).pipe((0,i.R)(this.unSubs[1])).subscribe(s=>{this.selNode=s}),this.store.select(B.Rn).pipe((0,i.R)(this.unSubs[2])).subscribe(s=>{this.balances=[{title:"Total Balance",dataValue:s.balance.totalBalance||0},{title:"Confirmed",dataValue:s.balance.confBalance},{title:"Unconfirmed",dataValue:s.balance.unconfBalance}]})}openSendFundsModal(t){this.store.dispatch((0,kA.qR)({payload:{data:{sweepAll:t,component:or}}}))}onSelectedTableIndexChanged(t){this.selectedTable=this.tables.find(s=>s.id===t),this.router.navigate(["./",this.activeLink,this.selectedTable.name],{relativeTo:this.activatedRoute})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(u.yh),A.Y36(_t.F0),A.Y36(_t.gz))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-on-chain"]],decls:21,vars:5,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-tab-nav-bar",""],["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,"selectedTableIndex","selectedTableIndexChange"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"On-chain Balance"),A.qZA(),A.qZA(),A.TgZ(4,"div",3),A.TgZ(5,"mat-card"),A.TgZ(6,"mat-card-content",4),A._UZ(7,"rtl-currency-unit-converter",5),A.qZA(),A.qZA(),A.qZA(),A.TgZ(8,"div",0),A._UZ(9,"fa-icon",1),A.TgZ(10,"span",2),A._uU(11,"On-chain Transactions"),A.qZA(),A.qZA(),A.TgZ(12,"div",6),A.TgZ(13,"mat-card"),A.TgZ(14,"mat-card-content",4),A.TgZ(15,"nav",7),A.YNc(16,fs,2,6,"div",8),A.qZA(),A.TgZ(17,"div",9),A._UZ(18,"router-outlet"),A.qZA(),A.TgZ(19,"div",10),A.TgZ(20,"rtl-cln-utxo-tables",11),A.NdJ("selectedTableIndexChange",function(vA){return s.onSelectedTableIndexChanged(vA)}),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(1),A.Q6J("icon",s.faChartPie),A.xp6(6),A.Q6J("values",s.balances),A.xp6(2),A.Q6J("icon",s.faExchangeAlt),A.xp6(7),A.Q6J("ngForOf",s.links),A.xp6(4),A.Q6J("selectedTableIndex",null==s.selectedTable?null:s.selectedTable.id))},directives:[Ct.xw,Ct.Wh,f.BN,w.a8,w.dn,Or.D,ut.BU,ht.sg,Ct.yH,_t.lC,pa,ut.Nj,_t.rH],styles:[""]}),r})();function hs(r,v){if(1&r&&(A.TgZ(0,"span",10),A._uU(1,"Channels"),A.qZA()),2&r){const t=A.oxw();A.s9C("matBadge",t.activeChannels)}}function Es(r,v){if(1&r&&(A.TgZ(0,"span",10),A._uU(1,"Peers"),A.qZA()),2&r){const t=A.oxw();A.s9C("matBadge",t.activePeers)}}let ws=(()=>{class r{constructor(t,s,G){this.store=t,this.logger=s,this.router=G,this.activePeers=0,this.activeChannels=0,this.faUsers=h.FVb,this.faChartPie=h.OS1,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 l.x,new l.x,new l.x,new l.x]}ngOnInit(){this.activeLink=this.links.findIndex(t=>t.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(t=>t instanceof _t.Av)).subscribe({next:t=>{this.activeLink=this.links.findIndex(s=>s.link===t.urlAfterRedirects.substring(t.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(B.ZW).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.activeChannels=t.activeChannels.length||0}),this.store.select(B.Wi).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.activePeers=t.peers&&t.peers.length?t.peers.length:0,this.logger.info(t)}),this.store.select(B.Rn).pipe((0,i.R)(this.unSubs[3])).subscribe(t=>{this.balances=[{title:"Total Balance",dataValue:t.balance.totalBalance||0},{title:"Confirmed",dataValue:t.balance.confBalance},{title:"Unconfirmed",dataValue:t.balance.unconfBalance}]})}onSelectedTabChange(t){this.router.navigateByUrl("/cln/connections/"+this.links[t.index].link)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(u.yh),A.Y36(E.mQ),A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-connections"]],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"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["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(t,s){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"On-chain Balance"),A.qZA(),A.qZA(),A.TgZ(4,"div",3),A.TgZ(5,"mat-card"),A.TgZ(6,"mat-card-content",4),A._UZ(7,"rtl-currency-unit-converter",5),A.qZA(),A.qZA(),A.qZA(),A.TgZ(8,"div",0),A._UZ(9,"fa-icon",1),A.TgZ(10,"span",2),A._uU(11,"Connections"),A.qZA(),A.qZA(),A.TgZ(12,"div",6),A.TgZ(13,"mat-card"),A.TgZ(14,"mat-card-content",4),A.TgZ(15,"mat-tab-group",7),A.NdJ("selectedIndexChange",function(vA){return s.activeLink=vA})("selectedTabChange",function(vA){return s.onSelectedTabChange(vA)}),A.TgZ(16,"mat-tab"),A.YNc(17,hs,2,1,"ng-template",8),A.qZA(),A.TgZ(18,"mat-tab"),A.YNc(19,Es,2,1,"ng-template",8),A.qZA(),A.qZA(),A.TgZ(20,"div",9),A._UZ(21,"router-outlet"),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(1),A.Q6J("icon",s.faChartPie),A.xp6(6),A.Q6J("values",s.balances),A.xp6(2),A.Q6J("icon",s.faUsers),A.xp6(6),A.Q6J("selectedIndex",s.activeLink))},directives:[Ct.xw,Ct.Wh,f.BN,w.a8,w.dn,Or.D,ut.SP,ut.uX,ut.uD,Ct.yH,_t.lC,Oi.k],styles:[""]}),r})();function Ia(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",11),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().activeLink=vA.link}),A._uU(1),A.qZA()}if(2&r){const t=v.$implicit,s=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",s.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let Cs=(()=>{class r{constructor(t,s,G){this.logger=t,this.store=s,this.router=G,this.faExchangeAlt=h.Ssp,this.faChartPie=h.OS1,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.selNode={},this.links=[{link:"payments",name:"Payments"},{link:"invoices",name:"Invoices"}],this.activeLink=this.links[0].link,this.unSubs=[new l.x,new l.x,new l.x,new l.x]}ngOnInit(){const t=this.links.find(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(s=>s instanceof _t.Av)).subscribe({next:s=>{const G=this.links.find(vA=>s.urlAfterRedirects.includes(vA.link));this.activeLink=G?G.link:this.links[0].link,this.routerUrl=s.urlAfterRedirects}}),this.store.select(B.lw).pipe((0,i.R)(this.unSubs[1])).subscribe(s=>{if(this.selNode=s,this.selNode.enableOffers){this.store.dispatch((0,Et.yl)()),this.store.dispatch((0,Et.uT)()),this.links.push({link:"offers",name:"Offers"}),this.links.push({link:"offrBookmarks",name:"Paid Offer Bookmarks"});const G=this.links.find(vA=>this.router.url.includes(vA.link));this.activeLink=G?G.link:this.links[0].link}}),this.store.select(B.Wj).pipe((0,i.R)(this.unSubs[2]),(0,o.M)(this.store.select(B.lw))).subscribe(([s,G])=>{this.currencyUnits=G.currencyUnits,this.balances=G.userPersona===a.ol.OPERATOR?[{title:"Local Capacity",dataValue:s.localRemoteBalance.localBalance,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:s.localRemoteBalance.remoteBalance,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:s.localRemoteBalance.localBalance,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:s.localRemoteBalance.remoteBalance,tooltip:"Amount you can receive"}],this.logger.info(s)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-transactions"]],decls:19,vars:4,consts:[["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",""],["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"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Lightning Balance"),A.qZA(),A.qZA(),A.TgZ(4,"div",3),A.TgZ(5,"mat-card"),A.TgZ(6,"mat-card-content",4),A._UZ(7,"rtl-currency-unit-converter",5),A.qZA(),A.qZA(),A.qZA(),A.TgZ(8,"div",6),A._UZ(9,"fa-icon",1),A.TgZ(10,"span",2),A._uU(11,"Lightning Transactions"),A.qZA(),A.qZA(),A.TgZ(12,"div",7),A.TgZ(13,"mat-card"),A.TgZ(14,"mat-card-content",4),A.TgZ(15,"nav",8),A.YNc(16,Ia,2,3,"div",9),A.qZA(),A.TgZ(17,"div",10),A._UZ(18,"router-outlet"),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(1),A.Q6J("icon",s.faChartPie),A.xp6(6),A.Q6J("values",s.balances),A.xp6(2),A.Q6J("icon",s.faExchangeAlt),A.xp6(7),A.Q6J("ngForOf",s.links))},directives:[Ct.xw,Ct.Wh,f.BN,w.a8,w.dn,Or.D,ut.BU,ht.sg,Ct.yH,_t.lC,ut.Nj,_t.rH],styles:[""]}),r})();function Qs(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",11),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().activeLink=vA.link}),A._uU(1),A.qZA()}if(2&r){const t=v.$implicit,s=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",s.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let ds=(()=>{class r{constructor(t){this.router=t,this.faMapSigns=h.SuH,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 l.x,new l.x,new l.x]}ngOnInit(){const t=this.links.find(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(s=>s instanceof _t.Av)).subscribe({next:s=>{const G=this.links.find(vA=>s.urlAfterRedirects.includes(vA.link));this.activeLink=G?G.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-routing"]],decls:13,vars:2,consts:[["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","","fxFlex","100"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A._UZ(2,"fa-icon",2),A.TgZ(3,"span",3),A._uU(4,"Routing"),A.qZA(),A.qZA(),A.TgZ(5,"div",4),A.TgZ(6,"mat-card",5),A.TgZ(7,"mat-card-content",6),A.TgZ(8,"div",7),A.TgZ(9,"nav",8),A.YNc(10,Qs,2,3,"div",9),A.qZA(),A.qZA(),A.TgZ(11,"div",10),A._UZ(12,"router-outlet"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(2),A.Q6J("icon",s.faMapSigns),A.xp6(8),A.Q6J("ngForOf",s.links))},directives:[Ct.xw,Ct.Wh,f.BN,Ct.yH,w.a8,w.dn,ut.BU,ht.sg,_t.lC,ut.Nj,_t.rH],styles:[""]}),r})();var Zr=St(6895);function Ms(r,v){if(1&r&&(A.TgZ(0,"span",6),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(t)}}function ma(r,v){1&r&&(A.TgZ(0,"th",27),A._uU(1,"Type"),A.qZA())}function ps(r,v){if(1&r&&(A.TgZ(0,"td",28),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.type," ")}}function Is(r,v){1&r&&(A.TgZ(0,"th",27),A._uU(1,"Address"),A.qZA())}function ms(r,v){if(1&r&&(A.TgZ(0,"td",28),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.address," ")}}function Ds(r,v){1&r&&(A.TgZ(0,"th",27),A._uU(1,"Port"),A.qZA())}function vs(r,v){if(1&r&&(A.TgZ(0,"td",28),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.port," ")}}function Sn(r,v){1&r&&(A.TgZ(0,"th",29),A.TgZ(1,"span",30),A._uU(2,"Actions"),A.qZA(),A.qZA())}function ys(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",31),A.TgZ(1,"span",30),A.TgZ(2,"button",32),A.NdJ("copied",function(G){return A.CHM(t),A.oxw(2).onCopyNodeURI(G)}),A._uU(3,"Copy Node URI"),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=v.$implicit,s=A.oxw(2);A.xp6(2),A.Q6J("payload",(null==s.lookupResult?null:s.lookupResult.nodeid)+"@"+t.address+":"+t.port)}}function xs(r,v){1&r&&A._UZ(0,"tr",33)}function Fs(r,v){1&r&&A._UZ(0,"tr",34)}const Ys=function(r){return{"background-color":r}};function Ts(r,v){if(1&r&&(A.TgZ(0,"div",1),A._UZ(1,"mat-divider",2),A.TgZ(2,"div",3),A.TgZ(3,"div",4),A.TgZ(4,"h4",5),A._uU(5,"Alias"),A.qZA(),A.TgZ(6,"span",6),A._uU(7),A.TgZ(8,"span",7),A._uU(9),A.qZA(),A.qZA(),A.qZA(),A.TgZ(10,"div",8),A.TgZ(11,"h4",5),A._uU(12,"Pub Key"),A.qZA(),A.TgZ(13,"span",9),A._uU(14),A.qZA(),A.qZA(),A.qZA(),A._UZ(15,"mat-divider",10),A.TgZ(16,"div",3),A.TgZ(17,"div",4),A.TgZ(18,"h4",5),A._uU(19,"Last Update"),A.qZA(),A.TgZ(20,"span",6),A._uU(21),A.ALo(22,"date"),A.qZA(),A.qZA(),A.TgZ(23,"div",8),A.TgZ(24,"h4",5),A._uU(25,"Features"),A.qZA(),A.YNc(26,Ms,2,1,"span",11),A.qZA(),A.qZA(),A._UZ(27,"mat-divider",10),A.TgZ(28,"div",12),A.TgZ(29,"h4",13),A._uU(30,"Addresses"),A.qZA(),A.TgZ(31,"div",14),A.TgZ(32,"table",15,16),A.ynx(34,17),A.YNc(35,ma,2,0,"th",18),A.YNc(36,ps,2,1,"td",19),A.BQk(),A.ynx(37,20),A.YNc(38,Is,2,0,"th",18),A.YNc(39,ms,2,1,"td",19),A.BQk(),A.ynx(40,21),A.YNc(41,Ds,2,0,"th",18),A.YNc(42,vs,2,1,"td",19),A.BQk(),A.ynx(43,22),A.YNc(44,Sn,3,0,"th",23),A.YNc(45,ys,4,1,"td",24),A.BQk(),A.YNc(46,xs,1,0,"tr",25),A.YNc(47,Fs,1,0,"tr",26),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(null==t.lookupResult?null:t.lookupResult.alias),A.xp6(1),A.Q6J("ngStyle",A.VKq(15,Ys,"#"+(null==t.lookupResult?null:t.lookupResult.color))),A.xp6(1),A.Oqu(null!=t.lookupResult&&t.lookupResult.color?"#"+(null==t.lookupResult?null:t.lookupResult.color):""),A.xp6(5),A.Oqu(null==t.lookupResult?null:t.lookupResult.nodeid),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(A.xi3(22,12,1e3*(null==t.lookupResult?null:t.lookupResult.last_timestamp),"dd/MMM/y HH:mm")),A.xp6(5),A.Q6J("ngForOf",t.featureDescriptions),A.xp6(1),A.Q6J("inset",!0),A.xp6(5),A.Q6J("dataSource",t.addresses),A.xp6(14),A.Q6J("matHeaderRowDef",t.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}let Ns=(()=>{class r{constructor(t,s){this.logger=t,this.snackBar=s,this.featureDescriptions=[],this.displayedColumns=["type","address","port","actions"]}ngOnInit(){if(this.addresses=new yA.by(this.lookupResult&&this.lookupResult.addresses?[...this.lookupResult.addresses]:[]),this.addresses.data=this.lookupResult.addresses||[],this.addresses.sort=this.sort,this.addresses.sortingDataAccessor=(t,s)=>t[s]&&isNaN(t[s])?t[s].toLocaleLowerCase():t[s]?+t[s]:null,this.lookupResult.features&&""!==this.lookupResult.features.trim()){const t=parseInt(this.lookupResult.features,16);a.Df.forEach(s=>{t&(1<{class r{constructor(t){this.store=t,this.lookupResult=[],this.node1_match=!1,this.node2_match=!1,this.unSubs=[new l.x,new l.x,new l.x,new l.x]}ngOnInit(){this.store.select(B.ey).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.lookupResult.length>0&&this.lookupResult[0].source===t.id&&(this.node1_match=!0),this.lookupResult.length>1&&this.lookupResult[1].source===t.id&&(this.node2_match=!0)})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-lookup"]],inputs:{lookupResult:"lookupResult"},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 start",1,"mt-1","bordered-box","padding-gap-large"],["fxLayout","column"],["class","page-title font-bold-500",4,"ngIf"],[3,"inset"],["fxLayout","column","fxFlex","20",1,"my-1"],[1,"font-bold-500"],[1,"foreground-secondary-text"],["fxLayout","column","fxFlex","10",1,"my-1"],[1,"page-title","font-bold-500"]],template:function(t,s){1&t&&A.YNc(0,Da,204,91,"div",0),2&t&&A.Q6J("ngIf",s.lookupResult)},directives:[ht.O5,Ct.xw,AA.d,Ct.Wh,Ct.yH],pipes:[ht.JJ,ht.uU],styles:[".mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%], .mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{height:38px!important}"]}),r})();const Ke=["form"];function Er(r,v){if(1&r&&(A.TgZ(0,"mat-radio-button",17),A._uU(1),A.qZA()),2&r){const t=v.$implicit,s=A.oxw();A.Q6J("value",t.id)("checked",s.selectedFieldId===t.id),A.xp6(1),A.hij(" ",t.name," ")}}function ji(r,v){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.hij("",null==t.lookupFields[t.selectedFieldId]?null:t.lookupFields[t.selectedFieldId].placeholder," is required.")}}function Rs(r,v){if(1&r&&(A.TgZ(0,"div"),A._UZ(1,"rtl-cln-node-lookup",26),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Q6J("lookupResult",t.nodeLookupValue)}}function Ei(r,v){if(1&r&&(A.TgZ(0,"span",24),A.YNc(1,Rs,2,1,"div",25),A.qZA()),2&r){const t=A.oxw(2),s=A.MAs(19);A.xp6(1),A.Q6J("ngIf",""!==t.nodeLookupValue.nodeid)("ngIfElse",s)}}function wi(r,v){if(1&r&&(A.TgZ(0,"div"),A._UZ(1,"rtl-cln-channel-lookup",26),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Q6J("lookupResult",t.channelLookupValue)}}function Ci(r,v){if(1&r&&(A.TgZ(0,"span",24),A.YNc(1,wi,2,1,"div",25),A.qZA()),2&r){const t=A.oxw(2),s=A.MAs(19);A.xp6(1),A.Q6J("ngIf",t.channelLookupValue.length>0)("ngIfElse",s)}}function ve(r,v){1&r&&(A.TgZ(0,"span",24),A.TgZ(1,"h3"),A._uU(2,"Error! Unable to find details!"),A.qZA(),A.qZA())}function zs(r,v){if(1&r&&(A.TgZ(0,"div",18),A.TgZ(1,"div",19),A.TgZ(2,"span",20),A._uU(3),A.qZA(),A.qZA(),A.TgZ(4,"div",21),A.YNc(5,Ei,2,2,"span",22),A.YNc(6,Ci,2,2,"span",22),A.YNc(7,ve,3,0,"span",23),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(3),A.hij("",t.lookupFields[t.selectedFieldId].name," Details"),A.xp6(1),A.Q6J("ngSwitch",t.selectedFieldId),A.xp6(1),A.Q6J("ngSwitchCase",0),A.xp6(1),A.Q6J("ngSwitchCase",1)}}function wr(r,v){1&r&&(A.TgZ(0,"h3"),A._uU(1,"Error! Unable to find details!"),A.qZA())}const Ls=function(r){return{"mt-1":!0,"mt-2":r}};let bs=(()=>{class r{constructor(t,s,G,vA){this.logger=t,this.commonService=s,this.store=G,this.actions=vA,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=h.wn1,this.screenSize="",this.screenSizeEnum=a.cu,this.unSubs=[new l.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(t=>t.type===a.AB.SET_LOOKUP_CLN||t.type===a.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{if(t.type===a.AB.SET_LOOKUP_CLN){switch(this.flgLoading[0]=!0,this.selectedFieldId){case 0:this.nodeLookupValue="object"!=typeof t.payload[0]?{nodeid:""}:JSON.parse(JSON.stringify(t.payload[0]));break;case 1:this.channelLookupValue="object"!=typeof t.payload[0]?[]:JSON.parse(JSON.stringify(t.payload))}this.flgSetLookupValue=!0,this.logger.info(this.nodeLookupValue),this.logger.info(this.channelLookupValue)}t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&t.payload.status===a.Bn.ERROR&&"Lookup"===t.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,Et.Sf)({payload:this.lookupKey.trim()}));break;case 1:this.store.dispatch((0,Et.$A)({payload:{uiMessage:a.m6.SEARCHING_CHANNEL,shortChannelID:this.lookupKey.trim(),showError:!1}}))}}onSelectChange(t){this.resetData(),this.selectedFieldId=t.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(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh),A.Y36(C.eX))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-lookups"]],viewQuery:function(t,s){if(1&t&&A.Gf(Ke,7),2&t){let G;A.iGM(G=A.CRH())&&(s.form=G.first)}},decls:20,vars:9,consts:[["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"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModel","ngModelChange","change"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"placeholder","ngModel","change","ngModelChange"],["key",""],[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"],["errorBlock",""],[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"],["fxFlex","100",4,"ngSwitchDefault"],["fxFlex","100"],[4,"ngIf","ngIfElse"],[3,"lookupResult"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-card-content",2),A.TgZ(3,"form",3,4),A.TgZ(5,"div",5),A.TgZ(6,"mat-radio-group",6),A.NdJ("ngModelChange",function(vA){return s.selectedFieldId=vA})("change",function(vA){return s.onSelectChange(vA)}),A.YNc(7,Er,2,3,"mat-radio-button",7),A.qZA(),A.qZA(),A.TgZ(8,"mat-form-field",8),A.TgZ(9,"input",9,10),A.NdJ("change",function(){return s.clearLookupValue()})("ngModelChange",function(vA){return s.lookupKey=vA}),A.qZA(),A.YNc(11,ji,2,1,"mat-error",11),A.qZA(),A.TgZ(12,"div",12),A.TgZ(13,"button",13),A.NdJ("click",function(){return s.resetData()}),A._uU(14,"Clear"),A.qZA(),A.TgZ(15,"button",14),A.NdJ("click",function(){return s.onLookup()}),A._uU(16,"Lookup"),A.qZA(),A.qZA(),A.qZA(),A.YNc(17,zs,8,4,"div",15),A.qZA(),A.qZA(),A.qZA(),A.YNc(18,wr,2,0,"ng-template",null,16,A.W1O)),2&t&&(A.xp6(6),A.Q6J("ngModel",s.selectedFieldId),A.xp6(1),A.Q6J("ngForOf",s.lookupFields),A.xp6(1),A.Q6J("ngClass",A.VKq(7,Ls,s.screenSize===s.screenSizeEnum.XS||s.screenSize===s.screenSizeEnum.SM)),A.xp6(1),A.Q6J("placeholder",(null==s.lookupFields[s.selectedFieldId]?null:s.lookupFields[s.selectedFieldId].placeholder)||"Lookup Key")("ngModel",s.lookupKey),A.xp6(2),A.Q6J("ngIf",!s.lookupKey),A.xp6(6),A.Q6J("ngIf",s.flgSetLookupValue))},directives:[Ct.xw,Ct.yH,Ct.Wh,w.dn,OA._Y,OA.JL,OA.F,zA.VQ,OA.JJ,OA.On,ht.sg,W.KE,ht.mk,d.oO,Yt.Nt,OA.Fj,OA.Q7,ht.O5,Y.lW,zA.U0,W.TO,ht.RF,ht.n9,ht.ED,Ns,ki],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}.pl-3[_ngcontent-%COMP%]{padding-left:3rem}"]}),r})();var Kr=(()=>{return(r=Kr||(Kr={})).KB="KB",r.KW="KW",Kr;var r})();function Qi(r,v){if(1&r&&(A.TgZ(0,"div",2),A.TgZ(1,"div",3),A.TgZ(2,"div"),A.TgZ(3,"h4",4),A._uU(4," Opening "),A.TgZ(5,"mat-icon",5),A._uU(6,"info_outline"),A.qZA(),A.qZA(),A.TgZ(7,"div",6),A._uU(8),A.ALo(9,"number"),A.qZA(),A.qZA(),A.TgZ(10,"div"),A.TgZ(11,"h4",4),A._uU(12," Mutual Close "),A.TgZ(13,"mat-icon",7),A._uU(14,"info_outline"),A.qZA(),A.qZA(),A.TgZ(15,"div",6),A._uU(16),A.ALo(17,"number"),A.qZA(),A.qZA(),A.TgZ(18,"div"),A.TgZ(19,"h4",4),A._uU(20," Unilateral Close "),A.TgZ(21,"mat-icon",8),A._uU(22,"info_outline"),A.qZA(),A.qZA(),A.TgZ(23,"div",6),A._uU(24),A.ALo(25,"number"),A.qZA(),A.qZA(),A.TgZ(26,"div"),A.TgZ(27,"h4",4),A._uU(28," Delayed To Us "),A.TgZ(29,"mat-icon",9),A._uU(30,"info_outline"),A.qZA(),A.qZA(),A.TgZ(31,"div",6),A._uU(32),A.ALo(33,"number"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(34,"div",3),A.TgZ(35,"div"),A.TgZ(36,"h4",4),A._uU(37," Minimum Acceptable "),A.TgZ(38,"mat-icon",10),A._uU(39,"info_outline"),A.qZA(),A.qZA(),A.TgZ(40,"div",6),A._uU(41),A.ALo(42,"number"),A.qZA(),A.qZA(),A.TgZ(43,"div"),A.TgZ(44,"h4",4),A._uU(45," Maximum Acceptable "),A.TgZ(46,"mat-icon",11),A._uU(47,"info_outline"),A.qZA(),A.qZA(),A.TgZ(48,"div",6),A._uU(49),A.ALo(50,"number"),A.qZA(),A.qZA(),A.TgZ(51,"div"),A.TgZ(52,"h4",4),A._uU(53," HTLC Resolution "),A.TgZ(54,"mat-icon",12),A._uU(55,"info_outline"),A.qZA(),A.qZA(),A.TgZ(56,"div",6),A._uU(57),A.ALo(58,"number"),A.qZA(),A.qZA(),A.TgZ(59,"div"),A.TgZ(60,"h4",4),A._uU(61," Penalty "),A.TgZ(62,"mat-icon",13),A._uU(63,"info_outline"),A.qZA(),A.qZA(),A.TgZ(64,"div",6),A._uU(65),A.ALo(66,"number"),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(8),A.Oqu(A.lcZ(9,8,null==t.perkbw?null:t.perkbw.opening)),A.xp6(8),A.Oqu(A.lcZ(17,10,null==t.perkbw?null:t.perkbw.mutual_close)),A.xp6(8),A.Oqu(A.lcZ(25,12,null==t.perkbw?null:t.perkbw.unilateral_close)),A.xp6(8),A.Oqu(A.lcZ(33,14,null==t.perkbw?null:t.perkbw.delayed_to_us)),A.xp6(9),A.Oqu(A.lcZ(42,16,null==t.perkbw?null:t.perkbw.min_acceptable)),A.xp6(8),A.Oqu(A.lcZ(50,18,null==t.perkbw?null:t.perkbw.max_acceptable)),A.xp6(8),A.Oqu(A.lcZ(58,20,null==t.perkbw?null:t.perkbw.htlc_resolution)),A.xp6(8),A.Oqu(A.lcZ(66,22,null==t.perkbw?null:t.perkbw.penalty))}}function sr(r,v){if(1&r&&(A.TgZ(0,"div",14),A.TgZ(1,"p"),A._uU(2),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let va=(()=>{class r{constructor(){this.perkbw={}}ngAfterContentChecked(){this.feeRateStyle===Kr.KB?this.perkbw=this.feeRates.perkb:this.feeRateStyle===Kr.KW&&(this.perkbw=this.feeRates.perkw)}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-fee-rates"]],inputs:{feeRateStyle:"feeRateStyle",feeRates:"feeRates",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","stretch","class","h-100",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","stretch",1,"h-100"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start center",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"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,s){if(1&t&&(A.YNc(0,Qi,67,24,"div",0),A.YNc(1,sr,3,1,"ng-template",null,1,A.W1O)),2&t){const G=A.MAs(2);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",G)}},directives:[ht.O5,Ct.xw,Ct.yH,Ct.Wh,y.Hw,aA.gM],pipes:[ht.JJ],styles:[".fee-rate-list[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{height:44px}"]}),r})();function Pr(r,v){if(1&r&&(A.TgZ(0,"div",2),A.TgZ(1,"div",3),A.TgZ(2,"div"),A.TgZ(3,"h4",4),A._uU(4," Opening Channel "),A.TgZ(5,"mat-icon",5),A._uU(6,"info_outline"),A.qZA(),A.qZA(),A.TgZ(7,"div",6),A._uU(8),A.ALo(9,"number"),A.qZA(),A.qZA(),A.TgZ(10,"div"),A.TgZ(11,"h4",4),A._uU(12," Mutual Close "),A.TgZ(13,"mat-icon",7),A._uU(14,"info_outline"),A.qZA(),A.qZA(),A.TgZ(15,"div",6),A._uU(16),A.ALo(17,"number"),A.qZA(),A.qZA(),A.TgZ(18,"div"),A.TgZ(19,"h4",4),A._uU(20," Unilateral Close "),A.TgZ(21,"mat-icon",8),A._uU(22,"info_outline"),A.qZA(),A.qZA(),A.TgZ(23,"div",6),A._uU(24),A.ALo(25,"number"),A.qZA(),A.qZA(),A.TgZ(26,"div",9),A._UZ(27,"h4",4),A._UZ(28,"div",6),A.qZA(),A.qZA(),A.TgZ(29,"div",3),A.TgZ(30,"div"),A.TgZ(31,"h4",4),A._uU(32," HTLC Timeout "),A.TgZ(33,"mat-icon",10),A._uU(34,"info_outline"),A.qZA(),A.qZA(),A.TgZ(35,"div",6),A._uU(36),A.ALo(37,"number"),A.qZA(),A.qZA(),A.TgZ(38,"div"),A.TgZ(39,"h4",4),A._uU(40," HTLC Success "),A.TgZ(41,"mat-icon",11),A._uU(42,"info_outline"),A.qZA(),A.qZA(),A.TgZ(43,"div",6),A._uU(44),A.ALo(45,"number"),A.qZA(),A.qZA(),A.TgZ(46,"div",9),A._UZ(47,"h4",4),A._UZ(48,"div",6),A.qZA(),A.TgZ(49,"div",9),A._UZ(50,"h4",4),A._UZ(51,"div",6),A.qZA(),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(8),A.Oqu(A.lcZ(9,5,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.opening_channel_satoshis)),A.xp6(8),A.Oqu(A.lcZ(17,7,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.mutual_close_satoshis)),A.xp6(8),A.Oqu(A.lcZ(25,9,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.unilateral_close_satoshis)),A.xp6(12),A.Oqu(A.lcZ(37,11,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.htlc_timeout_satoshis)),A.xp6(8),A.Oqu(A.lcZ(45,13,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.htlc_success_satoshis))}}function ya(r,v){if(1&r&&(A.TgZ(0,"div",12),A.TgZ(1,"p"),A._uU(2),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let Gs=(()=>{class r{constructor(){}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-onchain-fee-estimates"]],inputs:{feeRates:"feeRates",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","stretch","class","h-100",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","stretch",1,"h-100"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start center",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(t,s){if(1&t&&(A.YNc(0,Pr,52,15,"div",0),A.YNc(1,ya,3,1,"ng-template",null,1,A.W1O)),2&t){const G=A.MAs(2);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",G)}},directives:[ht.O5,Ct.xw,Ct.yH,Ct.Wh,y.Hw,aA.gM],pipes:[ht.JJ],styles:[".fee-rate-list[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{height:44px}"]}),r})();function di(r,v){1&r&&A._UZ(0,"mat-progress-bar",19)}function Mi(r,v){if(1&r&&A._UZ(0,"rtl-cln-node-info",20),2&r){const t=A.oxw(3);A.Q6J("information",t.information)("showColorFieldSeparately",!1)}}function mr(r,v){if(1&r&&A._UZ(0,"rtl-cln-channel-status-info",21),2&r){const t=A.oxw(3);A.Q6J("channelsStatus",t.channelsStatus)("errorMessage",t.errorMessages[0]+" "+t.errorMessages[2])}}function Hs(r,v){if(1&r&&A._UZ(0,"rtl-cln-fee-info",22),2&r){const t=A.oxw(3);A.Q6J("fees",t.fees)("errorMessage",t.errorMessages[1]+" "+t.errorMessages[3]+" "+t.errorMessages[4])}}function pi(r,v){if(1&r&&A._UZ(0,"rtl-cln-fee-rates",23),2&r){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKB)("feeRateStyle","KB")("errorMessage",t.errorMessages[5])}}function Vr(r,v){if(1&r&&A._UZ(0,"rtl-cln-fee-rates",23),2&r){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKW)("feeRateStyle","KW")("errorMessage",t.errorMessages[6])}}function Js(r,v){if(1&r&&A._UZ(0,"rtl-cln-onchain-fee-estimates",24),2&r){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKW)("errorMessage",t.errorMessages[5])}}const xa=function(r){return{"dashboard-card-content":!0,"error-border":r}};function Os(r,v){if(1&r&&(A.TgZ(0,"mat-grid-tile",4),A.TgZ(1,"div",5),A.TgZ(2,"div",6),A.TgZ(3,"div",7),A._UZ(4,"fa-icon",8),A.TgZ(5,"span"),A._uU(6),A.qZA(),A.qZA(),A.qZA(),A.TgZ(7,"div",9),A.TgZ(8,"mat-card",10),A.TgZ(9,"mat-card-content",11),A.YNc(10,di,1,0,"mat-progress-bar",12),A.TgZ(11,"div",13),A.YNc(12,Mi,1,2,"rtl-cln-node-info",14),A.YNc(13,mr,1,2,"rtl-cln-channel-status-info",15),A.YNc(14,Hs,1,2,"rtl-cln-fee-info",16),A.YNc(15,pi,1,3,"rtl-cln-fee-rates",17),A.YNc(16,Vr,1,3,"rtl-cln-fee-rates",17),A.YNc(17,Js,1,2,"rtl-cln-onchain-fee-estimates",18),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&r){const t=v.$implicit,s=A.oxw(2);A.Q6J("colspan",t.cols)("rowspan",t.rows),A.xp6(4),A.Q6J("icon",t.icon),A.xp6(2),A.Oqu(t.title),A.xp6(3),A.Q6J("ngClass",A.VKq(13,xa,"node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.ERROR)||"feeRatesKB"===t.id&&s.apiCallStatusPerKB.status===s.apiCallStatusEnum.ERROR||"feeRatesKW"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.ERROR||"onChainFeeEstimates"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.ERROR)),A.xp6(1),A.Q6J("ngIf","node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.INITIATED)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusChannels.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.INITIATED)||"feeRatesKB"===t.id&&s.apiCallStatusPerKB.status===s.apiCallStatusEnum.INITIATED||"feeRatesKW"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.INITIATED||"onChainFeeEstimates"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngSwitch",t.id),A.xp6(1),A.Q6J("ngSwitchCase","node"),A.xp6(1),A.Q6J("ngSwitchCase","status"),A.xp6(1),A.Q6J("ngSwitchCase","fee"),A.xp6(1),A.Q6J("ngSwitchCase","feeRatesKB"),A.xp6(1),A.Q6J("ngSwitchCase","feeRatesKW"),A.xp6(1),A.Q6J("ngSwitchCase","onChainFeeEstimates")}}function Fa(r,v){if(1&r&&(A.TgZ(0,"mat-grid-list",2),A.YNc(1,Os,18,15,"mat-grid-tile",3),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngForOf",t.nodeCardsOperator)}}function ks(r,v){1&r&&A._UZ(0,"mat-progress-bar",19)}function js(r,v){if(1&r&&A._UZ(0,"rtl-cln-node-info",20),2&r){const t=A.oxw(3);A.Q6J("information",t.information)("showColorFieldSeparately",!1)}}function Zs(r,v){if(1&r&&A._UZ(0,"rtl-cln-channel-status-info",21),2&r){const t=A.oxw(3);A.Q6J("channelsStatus",t.channelsStatus)("errorMessage",t.errorMessages[0]+" "+t.errorMessages[2])}}function Ks(r,v){if(1&r&&A._UZ(0,"rtl-cln-fee-info",22),2&r){const t=A.oxw(3);A.Q6J("fees",t.fees)("errorMessage",t.errorMessages[1]+" "+t.errorMessages[3]+" "+t.errorMessages[4])}}function Vs(r,v){if(1&r&&A._UZ(0,"rtl-cln-fee-rates",23),2&r){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKB)("feeRateStyle","KB")("errorMessage",t.errorMessages[5])}}function Ws(r,v){if(1&r&&A._UZ(0,"rtl-cln-fee-rates",23),2&r){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKW)("feeRateStyle","KW")("errorMessage",t.errorMessages[5])}}function Xs(r,v){if(1&r&&A._UZ(0,"rtl-cln-onchain-fee-estimates",24),2&r){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKW)("errorMessage",t.errorMessages[5])}}function qs(r,v){if(1&r&&(A.TgZ(0,"mat-grid-tile",4),A.TgZ(1,"div",5),A.TgZ(2,"div",6),A.TgZ(3,"div",25),A._UZ(4,"fa-icon",8),A.TgZ(5,"span"),A._uU(6),A.qZA(),A.qZA(),A.qZA(),A.TgZ(7,"div",9),A.TgZ(8,"mat-card",10),A.TgZ(9,"mat-card-content",11),A.YNc(10,ks,1,0,"mat-progress-bar",12),A.TgZ(11,"div",13),A.YNc(12,js,1,2,"rtl-cln-node-info",14),A.YNc(13,Zs,1,2,"rtl-cln-channel-status-info",15),A.YNc(14,Ks,1,2,"rtl-cln-fee-info",16),A.YNc(15,Vs,1,3,"rtl-cln-fee-rates",17),A.YNc(16,Ws,1,3,"rtl-cln-fee-rates",17),A.YNc(17,Xs,1,2,"rtl-cln-onchain-fee-estimates",18),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&r){const t=v.$implicit,s=A.oxw(2);A.Q6J("colspan",t.cols)("rowspan",t.rows),A.xp6(4),A.Q6J("icon",t.icon),A.xp6(2),A.Oqu(t.title),A.xp6(3),A.Q6J("ngClass",A.VKq(13,xa,"node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.ERROR)||"feeRatesKB"===t.id&&s.apiCallStatusPerKB.status===s.apiCallStatusEnum.ERROR||"feeRatesKW"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.ERROR||"onChainFeeEstimates"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.ERROR)),A.xp6(1),A.Q6J("ngIf","node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.INITIATED)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusChannels.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.INITIATED)||"feeRatesKB"===t.id&&s.apiCallStatusPerKB.status===s.apiCallStatusEnum.INITIATED||"feeRatesKW"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.INITIATED||"onChainFeeEstimates"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngSwitch",t.id),A.xp6(1),A.Q6J("ngSwitchCase","node"),A.xp6(1),A.Q6J("ngSwitchCase","status"),A.xp6(1),A.Q6J("ngSwitchCase","fee"),A.xp6(1),A.Q6J("ngSwitchCase","feeRatesKB"),A.xp6(1),A.Q6J("ngSwitchCase","feeRatesKW"),A.xp6(1),A.Q6J("ngSwitchCase","onChainFeeEstimates")}}function _s(r,v){if(1&r&&(A.TgZ(0,"mat-grid-list",2),A.YNc(1,qs,18,15,"mat-grid-tile",3),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngForOf",t.nodeCardsMerchant)}}let $s=(()=>{class r{constructor(t,s,G){this.logger=t,this.commonService=s,this.store=G,this.faBolt=h.BDt,this.faServer=h.xf3,this.faNetworkWired=h.kXW,this.faLink=h.nNP,this.selNode={},this.information={},this.channelsStatus={active:{},pending:{},inactive:{}},this.feeRatesPerKB={},this.feeRatesPerKW={},this.nodeCardsOperator=[],this.nodeCardsMerchant=[],this.screenSize="",this.screenSizeEnum=a.cu,this.userPersonaEnum=a.ol,this.errorMessages=["","","","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusLRBal=null,this.apiCallStatusChannels=null,this.apiCallStatusFees=null,this.apiCallStatusFHistory=null,this.apiCallStatusPerKB=null,this.apiCallStatusPerKW=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new l.x,new l.x,new l.x,new l.x,new l.x,new l.x,new l.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.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:4},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:4,rows:4},{id:"onChainFeeEstimates",icon:this.faLink,title:"Onchain Fee Estimates (Sats)",cols:4,rows:4}],this.nodeCardsOperator=[{id:"feeRatesKB",icon:this.faServer,title:"Fee Rate Per KB",cols:4,rows:4},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:4,rows:4},{id:"onChainFeeEstimates",icon:this.faLink,title:"Onchain Fee Estimates (Sats)",cols:4,rows:4}]):(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:4},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:2,rows:4},{id:"onChainFeeEstimates",icon:this.faLink,title:"Onchain Fee Estimates (Sats)",cols:2,rows:4}],this.nodeCardsOperator=[{id:"feeRatesKB",icon:this.faServer,title:"Fee Rate Per KB",cols:2,rows:4},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:2,rows:4},{id:"onChainFeeEstimates",icon:this.faLink,title:"Onchain Fee Estimates (Sats)",cols:2,rows:4}])}ngOnInit(){this.store.select(B.Hz).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=t.apisCallStatus[0],this.apiCallStatusNodeInfo.status===a.Bn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message),this.selNode=t.nodeSettings,this.information=t.information,this.logger.info(t)}),this.store.select(B.ZW).pipe((0,i.R)(this.unSubs[1]),(0,o.M)(this.store.select(B.Wj))).subscribe(([t,s])=>{this.errorMessages[2]="",this.errorMessages[3]="",this.apiCallStatusLRBal=t.apiCallStatus,this.apiCallStatusChannels=s.apiCallStatus,this.apiCallStatusLRBal.status===a.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusLRBal.message?JSON.stringify(this.apiCallStatusLRBal.message):this.apiCallStatusLRBal.message),this.apiCallStatusChannels.status===a.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message),this.channelsStatus.active.channels=t.activeChannels.length||0,this.channelsStatus.pending.channels=t.pendingChannels.length||0,this.channelsStatus.inactive.channels=t.inactiveChannels.length||0,this.channelsStatus.active.capacity=s.localRemoteBalance.localBalance||0,this.channelsStatus.pending.capacity=s.localRemoteBalance.pendingBalance||0,this.channelsStatus.inactive.capacity=s.localRemoteBalance.inactiveBalance||0}),this.store.select(B.JG).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.errorMessages[1]="",this.apiCallStatusFees=t.apiCallStatus,this.apiCallStatusFees.status===a.Bn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message),this.fees=t.fees}),this.store.select(B.Bo).pipe((0,i.R)(this.unSubs[3])).subscribe(t=>{this.errorMessages[4]="",this.apiCallStatusFHistory=t.apiCallStatus,this.apiCallStatusFHistory.status===a.Bn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusFHistory.message?JSON.stringify(this.apiCallStatusFHistory.message):this.apiCallStatusFHistory.message),t.forwardingHistory&&t.forwardingHistory.length&&(this.fees.totalTxCount=t.forwardingHistory.length)}),this.store.select(B.zm).pipe((0,i.R)(this.unSubs[4])).subscribe(t=>{this.errorMessages[5]="",this.apiCallStatusPerKB=t.apiCallStatus,this.apiCallStatusPerKB.status===a.Bn.ERROR&&(this.errorMessages[5]="object"==typeof this.apiCallStatusPerKB.message?JSON.stringify(this.apiCallStatusPerKB.message):this.apiCallStatusPerKB.message),this.feeRatesPerKB=t.feeRatesPerKB}),this.store.select(B.hx).pipe((0,i.R)(this.unSubs[5])).subscribe(t=>{this.errorMessages[6]="",this.apiCallStatusPerKW=t.apiCallStatus,this.apiCallStatusPerKW.status===a.Bn.ERROR&&(this.errorMessages[6]="object"==typeof this.apiCallStatusPerKW.message?JSON.stringify(this.apiCallStatusPerKW.message):this.apiCallStatusPerKW.message),this.feeRatesPerKW=t.feeRatesPerKW})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-network-info"]],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",3,"feeRates","feeRateStyle","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"],[1,"h-100",3,"feeRates","feeRateStyle","errorMessage"],[1,"h-100",3,"feeRates","errorMessage"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","pl-15px"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,Fa,2,1,"mat-grid-list",1),A.YNc(2,_s,2,1,"mat-grid-list",1),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",s.selNode.userPersona===s.userPersonaEnum.OPERATOR),A.xp6(1),A.Q6J("ngIf",s.selNode.userPersona===s.userPersonaEnum.MERCHANT))},directives:[Ct.xw,Ct.Wh,ht.O5,g.Il,ht.sg,g.DX,Ct.yH,f.BN,w.a8,w.dn,ht.mk,d.oO,ht.RF,ht.n9,T.pW,N,q,NA,va,Gs],styles:[""]}),r})();function A0(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",8),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().activeLink=vA.link}),A._uU(1),A.qZA()}if(2&r){const t=v.$implicit,s=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",s.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let Ii=(()=>{class r{constructor(t){this.router=t,this.faUserCheck=h.hkK,this.links=[{link:"sign",name:"Sign"},{link:"verify",name:"Verify"}],this.activeLink=this.links[0].link,this.unSubs=[new l.x,new l.x]}ngOnInit(){const t=this.links.find(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(s=>s instanceof _t.Av)).subscribe({next:s=>{const G=this.links.find(vA=>s.urlAfterRedirects.includes(vA.link));this.activeLink=G?G.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-sign-verify-message"]],decls:11,vars:2,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-tab-nav-bar",""],["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"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Sign/Verify Message"),A.qZA(),A.qZA(),A.TgZ(4,"div",3),A.TgZ(5,"mat-card"),A.TgZ(6,"mat-card-content",4),A.TgZ(7,"nav",5),A.YNc(8,A0,2,3,"div",6),A.qZA(),A.TgZ(9,"div",7),A._UZ(10,"router-outlet"),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(1),A.Q6J("icon",s.faUserCheck),A.xp6(7),A.Q6J("ngForOf",s.links))},directives:[Ct.xw,Ct.Wh,f.BN,w.a8,w.dn,ut.BU,ht.sg,Ct.yH,_t.lC,ut.Nj,_t.rH],styles:[""]}),r})();var Zi=St(9122);function mi(r,v){if(1&r&&(A.TgZ(0,"mat-option",7),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.Q6J("value",t),A.xp6(1),A.hij(" ",t.addressTp," ")}}let Ya=(()=>{class r{constructor(t,s){this.store=t,this.clnEffects=s,this.addressTypes=a._t,this.selectedAddressType=a._t[0],this.newAddress=""}onGenerateAddress(){this.store.dispatch((0,Et._E)({payload:this.selectedAddressType})),this.clnEffects.setNewAddressCL.pipe((0,UA.q)(1)).subscribe(t=>{this.newAddress=t,setTimeout(()=>{this.store.dispatch((0,kA.qR)({payload:{data:{address:this.newAddress,addressType:this.selectedAddressType.addressTp,component:Zi.n}}}))},0)})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(u.yh),A.Y36(In.J))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-on-chain-receive"]],decls:8,vars:2,consts:[["fxLayout","column",1,"padding-gap-x"],["fxLayout","row","fxLayoutAlign","space-between end","fxLayoutAlign.gt-sm","start end"],["fxFlex","48","fxFlex.gt-md","25","fxLayoutAlign","start end",1,"mr-2"],["placeholder","Address Type","name","address_type","tabindex","1",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mt-2"],["mat-flat-button","","color","primary","tabindex","2",1,"top-minus-15px",3,"click"],[3,"value"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-form-field",2),A.TgZ(3,"mat-select",3),A.NdJ("ngModelChange",function(vA){return s.selectedAddressType=vA}),A.YNc(4,mi,2,2,"mat-option",4),A.qZA(),A.qZA(),A.TgZ(5,"div",5),A.TgZ(6,"button",6),A.NdJ("click",function(){return s.onGenerateAddress()}),A._uU(7,"Generate Address"),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(3),A.Q6J("ngModel",s.selectedAddressType),A.xp6(1),A.Q6J("ngForOf",s.addressTypes))},directives:[Ct.xw,Ct.Wh,W.KE,Ct.yH,R.gD,OA.JJ,OA.On,ht.sg,Y.lW,wA.ey],styles:[""]}),r})(),Ta=(()=>{class r{constructor(t,s){this.store=t,this.activatedRoute=s,this.sweepAll=!1,this.unSubs=[new l.x,new l.x]}ngOnInit(){this.activatedRoute.data.pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.sweepAll=t.sweepAll})}openSendFundsModal(){this.store.dispatch((0,kA.qR)({payload:{data:{sweepAll:this.sweepAll,component:or}}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(u.yh),A.Y36(_t.gz))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-on-chain-send"]],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(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"button",2),A.NdJ("click",function(){return s.openSendFundsModal()}),A._uU(3),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(3),A.Oqu(s.sweepAll?"Sweep All":"Send Funds"))},directives:[Ct.xw,Ct.yH,Ct.Wh,Y.lW],styles:[""]}),r})();var Di=St(8675),Un=St(4004),tr=St(9843),vi=St(1079);const Ki=["form"];function Vi(r,v){if(1&r&&(A.TgZ(0,"mat-option",42),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.Q6J("value",t),A.xp6(1),A.Oqu(t.alias?t.alias:t.id?t.id:"")}}function t0(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Peer alias is required."),A.qZA())}function Wr(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Peer not found in the list."),A.qZA())}function Na(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1),A.TgZ(1,"input",39),A.NdJ("change",function(){return A.CHM(t),A.oxw().onSelectedPeerChanged()}),A.qZA(),A.TgZ(2,"mat-autocomplete",40,41),A.NdJ("optionSelected",function(){return A.CHM(t),A.oxw().onSelectedPeerChanged()}),A.YNc(4,Vi,2,2,"mat-option",26),A.ALo(5,"async"),A.qZA(),A.YNc(6,t0,2,0,"mat-error",17),A.YNc(7,Wr,2,0,"mat-error",17),A.qZA()}if(2&r){const t=A.MAs(3),s=A.oxw();A.xp6(1),A.Q6J("formControl",s.selectedPeer)("matAutocomplete",t),A.xp6(1),A.Q6J("displayWith",s.displayFn),A.xp6(2),A.Q6J("ngForOf",A.lcZ(5,6,s.filteredPeers)),A.xp6(2),A.Q6J("ngIf",null==s.selectedPeer.errors?null:s.selectedPeer.errors.required),A.xp6(1),A.Q6J("ngIf",null==s.selectedPeer.errors?null:s.selectedPeer.errors.notfound)}}function e0(r,v){1&r&&A.GkF(0)}function n0(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount is required."),A.qZA())}function r0(r,v){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.hij("Amount must be less than or equal to ",t.totalBalance,".")}}function i0(r,v){if(1&r&&(A.TgZ(0,"mat-option",42),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function a0(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function o0(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",43),A.TgZ(1,"input",44,45),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().customFeeRate=G}),A.qZA(),A.YNc(3,a0,2,0,"mat-error",17),A.qZA()}if(2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngModel",t.customFeeRate)("step",.1)("min",0)("required","customperkb"===t.selFeeRate&&!t.flgMinConf),A.xp6(2),A.Q6J("ngIf","customperkb"===t.selFeeRate&&!t.flgMinConf&&!t.customFeeRate)}}function s0(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function c0(r,v){if(1&r&&(A.TgZ(0,"mat-option",42),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=v.$implicit;A.Q6J("value",t),A.xp6(1),A.hij("",A.lcZ(2,2,t.value)," Sats")}}function l0(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",22),A.TgZ(1,"mat-form-field",46),A.TgZ(2,"mat-select",47),A.NdJ("selectionChange",function(G){return A.CHM(t),A.oxw().onUTXOSelectionChange(G)})("valueChange",function(G){return A.CHM(t),A.oxw().selUTXOs=G}),A.TgZ(3,"mat-select-trigger"),A._uU(4),A.ALo(5,"number"),A.qZA(),A.YNc(6,c0,3,4,"mat-option",26),A.qZA(),A.qZA(),A.TgZ(7,"div",28),A.TgZ(8,"mat-slide-toggle",48),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().flgUseAllBalance=G})("change",function(){return A.CHM(t),A.oxw().onUTXOAllBalanceChange()}),A._uU(9," Use selected UTXOs balance "),A.qZA(),A.TgZ(10,"mat-icon",49),A._uU(11,"info_outline"),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=A.oxw();A.xp6(2),A.Q6J("value",t.selUTXOs),A.xp6(2),A.AsE("",A.lcZ(5,6,t.totalSelectedUTXOAmount)," Sats (",t.selUTXOs.length>1?t.selUTXOs.length+" UTXOs":"1 UTXO",")"),A.xp6(2),A.Q6J("ngForOf",t.utxos),A.xp6(2),A.Q6J("ngModel",t.flgUseAllBalance)("disabled",t.selUTXOs.length<1)}}function g0(r,v){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.channelConnectionError)}}function B0(r,v){if(1&r&&(A.TgZ(0,"div",50),A._UZ(1,"fa-icon",51),A.YNc(2,g0,2,1,"span",17),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.channelConnectionError)}}function u0(r,v){if(1&r&&(A.TgZ(0,"mat-expansion-panel",53),A.TgZ(1,"mat-expansion-panel-header"),A.TgZ(2,"mat-panel-title"),A.TgZ(3,"span"),A._uU(4,"Peer: \xa0"),A.qZA(),A.TgZ(5,"strong",54),A._uU(6),A.qZA(),A.qZA(),A.qZA(),A.TgZ(7,"div",9),A.TgZ(8,"div",0),A.TgZ(9,"div",1),A.TgZ(10,"h4",55),A._uU(11,"Pubkey"),A.qZA(),A.TgZ(12,"span",56),A._uU(13),A.qZA(),A.qZA(),A.qZA(),A._UZ(14,"mat-divider",57),A.TgZ(15,"div",0),A.TgZ(16,"div",58),A.TgZ(17,"h4",55),A._uU(18,"Address"),A.qZA(),A.TgZ(19,"span",59),A._uU(20),A.qZA(),A.qZA(),A.TgZ(21,"div",58),A.TgZ(22,"h4",55),A._uU(23,"Connected"),A.qZA(),A.TgZ(24,"span",59),A._uU(25),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&r){const t=A.oxw(2);A.xp6(6),A.Oqu((null==t.peer?null:t.peer.alias)||(null==t.peer?null:t.peer.id)),A.xp6(7),A.Oqu(t.peer.id),A.xp6(7),A.Oqu(null==t.peer?null:t.peer.netaddr),A.xp6(5),A.Oqu(t.peer.connected?"True":"False")}}function f0(r,v){if(1&r&&A.YNc(0,u0,26,4,"mat-expansion-panel",52),2&r){const t=A.oxw();A.Q6J("ngIf",t.peer)}}const yi=function(r,v){return{"mr-6":r,"mr-2":v}};let pe=(()=>{class r{constructor(t,s,G,vA,ft,Ce){this.dialogRef=t,this.data=s,this.store=G,this.actions=vA,this.decimalPipe=ft,this.commonService=Ce,this.selectedPeer=new OA.NI,this.faExclamationTriangle=h.eHv,this.isCompatibleVersion=!1,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=a.vn,this.selFeeRate="",this.customFeeRate=null,this.flgMinConf=!1,this.minConfValue=null,this.screenSize="",this.screenSizeEnum=a.cu,this.unSubs=[new l.x,new l.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.isCompatibleVersion=this.data.message.isCompatibleVersion,this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.utxos=this.data.message.utxos,this.alertTitle=this.data.alertTitle,this.peer=this.data.message.peer||null,this.peers=this.data.message.peers||[],this.actions.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(G=>G.type===a.AB.UPDATE_API_CALL_STATUS_CLN||G.type===a.AB.FETCH_CHANNELS_CLN)).subscribe(G=>{G.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&G.payload.status===a.Bn.ERROR&&"SaveNewChannel"===G.payload.action&&(this.channelConnectionError=G.payload.message),G.type===a.AB.FETCH_CHANNELS_CLN&&this.dialogRef.close()});let t="",s="";this.sortedPeers=this.peers.sort((G,vA)=>(t=G.alias?G.alias.toLowerCase():G.id?G.id.toLowerCase():"",s=vA.alias?vA.alias.toLowerCase():G.id.toLowerCase(),ts?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe((0,i.R)(this.unSubs[1]),(0,Di.O)(""),(0,Un.U)(G=>"string"==typeof G?G:G.alias?G.alias:G.id),(0,Un.U)(G=>G?this.filterPeers(G):this.sortedPeers.slice()))}filterPeers(t){return this.sortedPeers.filter(s=>0===s.alias.toLowerCase().indexOf(t?t.toLowerCase():""))}displayFn(t){return t&&t.alias?t.alias:t&&t.id?t.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 t=this.peers.filter(s=>s.alias.length===this.selectedPeer.value.length&&0===s.alias.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""));1===t.length&&t[0].id&&(this.selectedPubkey=t[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=!1,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.form.resetForm()}onAdvancedPanelToggle(t){t&&(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(s=>s.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"}onUTXOSelectionChange(t){const s={value:0};this.selUTXOs.length&&this.selUTXOs.length>0?(this.totalSelectedUTXOAmount=this.selUTXOs.reduce((G,vA)=>(s.value=G.value+vA.value,s)).value,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)return!0;const t={peerId:this.peer&&this.peer.id?this.peer.id:this.selectedPubkey,satoshis:this.flgUseAllBalance?"all":this.fundingAmount.toString(),announce:!this.isPrivate,minconf:this.flgMinConf?this.minConfValue:null};t.feeRate="customperkb"===this.selFeeRate&&!this.flgMinConf&&this.customFeeRate?1e3*this.customFeeRate+"perkb":this.selFeeRate,this.selUTXOs.length&&this.selUTXOs.length>0&&(t.utxos=[],this.selUTXOs.forEach(s=>t.utxos.push(s.txid+":"+s.output))),this.store.dispatch((0,Et.YX)({payload:t}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(u.yh),A.Y36(C.eX),A.Y36(ht.JJ),A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-open-channel"]],viewQuery:function(t,s){if(1&t&&A.Gf(Ki,7),2&t){let G;A.iGM(G=A.CRH())&&(s.form=G.first)}},decls:56,vars:34,consts:[["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","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column",3,"submit","reset"],["form","ngForm"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","70","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","1","required","","name","amount",3,"ngModel","step","min","max","disabled","ngModelChange"],["amount","ngModel"],["matSuffix",""],[4,"ngIf"],["fxFlex","25","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","isPrivate",3,"ngModel","ngModelChange"],["expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["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","54","fxLayoutAlign","space-between end"],["fxLayoutAlign","start center",3,"fxFlex"],["tabindex","4","placeholder","Fee Rate",3,"value","disabled","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48","fxLayoutAlign","end center",4,"ngIf"],["fxFlex","42","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","2","tabindex","5","color","primary","name","flgMinConf","fxLayoutAlign","stretch start",3,"ngModel","ngClass","ngModelChange","change"],["fxFlex","98"],["matInput","","placeholder","Min Confirmation Blocks","type","number","name","blocks","tabindex","8",3,"ngModel","step","min","required","disabled","ngModelChange"],["blocks","ngModel"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-sm","space-between center","fxLayout.gt-sm","row wrap",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","7","type","reset",1,"mr-1"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","9"],["peerDetailsExpansionBlock",""],["type","text","placeholder","Peer Alias","aria-label","Peers","matInput","","tabindex","1","required","",3,"formControl","matAutocomplete","change"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value"],["fxFlex","48","fxLayoutAlign","end center"],["matInput","","placeholder","Fee Rate (Sats/vByte)","type","number","name","custFeeRate","tabindex","4",3,"ngModel","step","min","required","ngModelChange"],["custFeeRate","ngModel"],["fxFlex","54","fxLayoutAlign","start end"],["tabindex","6","placeholder","Coin Selection","multiple","",3,"value","selectionChange","valueChange"],["tabindex","7","color","primary","name","flgUseAllBalance",3,"ngModel","disabled","ngModelChange","change"],["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",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["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(t,s){if(1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-card-header",2),A.TgZ(3,"div",3),A.TgZ(4,"span",4),A._uU(5),A.qZA(),A.qZA(),A.TgZ(6,"button",5),A.NdJ("click",function(){return s.onClose()}),A._uU(7,"X"),A.qZA(),A.qZA(),A.TgZ(8,"mat-card-content",6),A.TgZ(9,"form",7,8),A.NdJ("submit",function(){return s.onOpenChannel()})("reset",function(){return s.resetData()}),A.TgZ(11,"div",9),A.YNc(12,Na,8,8,"mat-form-field",10),A.qZA(),A.YNc(13,e0,1,0,"ng-container",11),A.TgZ(14,"div",9),A.TgZ(15,"div",12),A.TgZ(16,"mat-form-field",13),A.TgZ(17,"input",14,15),A.NdJ("ngModelChange",function(vA){return s.fundingAmount=vA}),A.qZA(),A.TgZ(19,"mat-hint"),A._uU(20),A.ALo(21,"number"),A.qZA(),A.TgZ(22,"span",16),A._uU(23," Sats "),A.qZA(),A.YNc(24,n0,2,0,"mat-error",17),A.YNc(25,r0,2,1,"mat-error",17),A.qZA(),A.TgZ(26,"div",18),A.TgZ(27,"mat-slide-toggle",19),A.NdJ("ngModelChange",function(vA){return s.isPrivate=vA}),A._uU(28,"Private Channel"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(29,"mat-expansion-panel",20),A.NdJ("closed",function(){return s.onAdvancedPanelToggle(!0)})("opened",function(){return s.onAdvancedPanelToggle(!1)}),A.TgZ(30,"mat-expansion-panel-header"),A.TgZ(31,"mat-panel-title"),A.TgZ(32,"span"),A._uU(33),A.qZA(),A.qZA(),A.qZA(),A.TgZ(34,"div",21),A.TgZ(35,"div",22),A.TgZ(36,"div",23),A.TgZ(37,"mat-form-field",24),A.TgZ(38,"mat-select",25),A.NdJ("valueChange",function(vA){return s.selFeeRate=vA})("selectionChange",function(){return s.customFeeRate=null}),A.YNc(39,i0,2,2,"mat-option",26),A.qZA(),A.qZA(),A.YNc(40,o0,4,5,"mat-form-field",27),A.qZA(),A.TgZ(41,"div",28),A.TgZ(42,"mat-checkbox",29),A.NdJ("ngModelChange",function(vA){return s.flgMinConf=vA})("change",function(){return s.flgMinConf?s.selFeeRate=null:s.minConfValue=null}),A.qZA(),A.TgZ(43,"mat-form-field",30),A.TgZ(44,"input",31,32),A.NdJ("ngModelChange",function(vA){return s.minConfValue=vA}),A.qZA(),A.YNc(46,s0,2,0,"mat-error",17),A.qZA(),A.qZA(),A.qZA(),A.YNc(47,l0,12,8,"div",33),A.qZA(),A.qZA(),A.qZA(),A.YNc(48,B0,3,2,"div",34),A.TgZ(49,"div",35),A.TgZ(50,"button",36),A._uU(51,"Clear Fields"),A.qZA(),A.TgZ(52,"button",37),A._uU(53,"Open Channel"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.YNc(54,f0,1,1,"ng-template",null,38,A.W1O)),2&t){const G=A.MAs(18),vA=A.MAs(55);A.xp6(5),A.Oqu(s.alertTitle),A.xp6(7),A.Q6J("ngIf",!s.peer&&s.peers&&s.peers.length>0),A.xp6(1),A.Q6J("ngTemplateOutlet",vA),A.xp6(4),A.Q6J("ngModel",s.fundingAmount)("step",1e3)("min",1)("max",s.totalBalance)("disabled",s.flgUseAllBalance),A.xp6(3),A.AsE("Remaining Bal: ",A.lcZ(21,29,s.totalBalance-(s.fundingAmount?s.fundingAmount:0)),"",s.flgUseAllBalance?". Amount replaced by UTXO balance":"",""),A.xp6(4),A.Q6J("ngIf",(null==G.errors?null:G.errors.required)||!s.fundingAmount),A.xp6(1),A.Q6J("ngIf",null==G.errors?null:G.errors.max),A.xp6(2),A.Q6J("ngModel",s.isPrivate),A.xp6(6),A.Oqu(s.advancedTitle),A.xp6(4),A.Q6J("fxFlex","customperkb"!==s.selFeeRate||s.flgMinConf?"100":"48"),A.xp6(1),A.Q6J("value",s.selFeeRate)("disabled",s.flgMinConf),A.xp6(1),A.Q6J("ngForOf",s.feeRateTypes),A.xp6(1),A.Q6J("ngIf","customperkb"===s.selFeeRate&&!s.flgMinConf),A.xp6(2),A.Q6J("ngModel",s.flgMinConf)("ngClass",A.WLB(31,yi,s.screenSize===s.screenSizeEnum.XS||s.screenSize===s.screenSizeEnum.SM,s.screenSize===s.screenSizeEnum.MD||s.screenSize===s.screenSizeEnum.LG||s.screenSize===s.screenSizeEnum.XL)),A.xp6(2),A.Q6J("ngModel",s.minConfValue)("step",1)("min",0)("required",s.flgMinConf)("disabled",!s.flgMinConf),A.xp6(2),A.Q6J("ngIf",s.flgMinConf&&!s.minConfValue),A.xp6(1),A.Q6J("ngIf",s.isCompatibleVersion),A.xp6(1),A.Q6J("ngIf",""!==s.channelConnectionError)}},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Y.lW,w.dn,OA._Y,OA.JL,OA.F,ht.O5,ht.tP,W.KE,Yt.Nt,OA.wV,OA.qQ,OA.Fd,OA.Fj,k.q,tr.F,OA.Q7,OA.JJ,OA.On,W.bx,W.R9,QA.Rr,ar.ib,ar.yz,ar.yK,R.gD,ht.sg,HA.oG,ht.mk,d.oO,H.h,vi.ZL,OA.oH,vi.XC,wA.ey,W.TO,R.$L,y.Hw,aA.gM,f.BN,AA.d],pipes:[ht.JJ,ht.Ov],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),r})();function ee(r,v){if(1&r&&(A.TgZ(0,"span",7),A._uU(1,"Open"),A.qZA()),2&r){const t=A.oxw();A.s9C("matBadge",t.openChannels)}}function h0(r,v){if(1&r&&(A.TgZ(0,"span",7),A._uU(1,"Pending/Inactive"),A.qZA()),2&r){const t=A.oxw();A.s9C("matBadge",t.pendingChannels)}}let Sa=(()=>{class r{constructor(t,s,G,vA){this.logger=t,this.store=s,this.commonService=G,this.router=vA,this.openChannels=0,this.pendingChannels=0,this.selNode={},this.information={},this.peers=[],this.utxos=[],this.totalBalance=0,this.links=[{link:"open",name:"Open"},{link:"pending",name:"Pending/Inactive"}],this.activeLink=0,this.unSubs=[new l.x,new l.x,new l.x,new l.x,new l.x,new l.x]}ngOnInit(){this.activeLink=this.links.findIndex(t=>t.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(t=>t instanceof _t.Av)).subscribe({next:t=>{this.activeLink=this.links.findIndex(s=>s.link===t.urlAfterRedirects.substring(t.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(B.OL).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.selNode=t.nodeSettings,this.information=t.information,this.totalBalance=t.balance.totalBalance,this.logger.info(t)}),this.store.select(B.Wi).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.peers=t.peers}),this.store.select(B.T4).pipe((0,i.R)(this.unSubs[3])).subscribe(t=>{this.utxos=this.commonService.sortAscByKey(t.utxos.filter(s=>"confirmed"===s.status),"value")}),this.store.select(B.ZW).pipe((0,i.R)(this.unSubs[4])).subscribe(t=>{this.openChannels=t.activeChannels.length||0,this.pendingChannels=t.pendingChannels.length+t.inactiveChannels.length||0,this.logger.info(t)})}onOpenChannel(){const t={peers:this.peers,information:this.information,balance:this.totalBalance,utxos:this.utxos,isCompatibleVersion:this.commonService.isVersionCompatible(this.information.version,"0.9.0")&&this.commonService.isVersionCompatible(this.information.api_version,"0.4.0")};this.store.dispatch((0,kA.qR)({payload:{data:{alertTitle:"Open Channel",message:t,component:pe}}}))}onSelectedTabChange(t){this.router.navigateByUrl("/cln/connections/channels/"+this.links[t.index].link)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(e.v),A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channels-tables"]],decls:12,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,"my-2","bordered-box"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["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(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"button",2),A.NdJ("click",function(){return s.onOpenChannel()}),A._uU(3,"Open Channel"),A.qZA(),A.qZA(),A.TgZ(4,"div",3),A.TgZ(5,"mat-tab-group",4),A.NdJ("selectedIndexChange",function(vA){return s.activeLink=vA})("selectedTabChange",function(vA){return s.onSelectedTabChange(vA)}),A.TgZ(6,"mat-tab"),A.YNc(7,ee,2,1,"ng-template",5),A.qZA(),A.TgZ(8,"mat-tab"),A.YNc(9,h0,2,1,"ng-template",5),A.qZA(),A.qZA(),A.TgZ(10,"div",6),A._UZ(11,"router-outlet"),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(5),A.Q6J("selectedIndex",s.activeLink))},directives:[Ct.xw,Ct.yH,Ct.Wh,Y.lW,ut.SP,ut.uX,ut.uD,_t.lC,Oi.k],styles:[""]}),r})();function Xr(r,v){if(1&r&&(A.TgZ(0,"div"),A.TgZ(1,"div",9),A.TgZ(2,"div",1),A.TgZ(3,"h4",11),A._uU(4,"Funding Transaction Id"),A.qZA(),A.TgZ(5,"span",12),A._uU(6),A.qZA(),A.qZA(),A.qZA(),A._UZ(7,"mat-divider",13),A.qZA()),2&r){const t=A.oxw();A.xp6(6),A.Oqu(t.channel.funding_txid),A.xp6(1),A.Q6J("inset",!0)}}function Ua(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Show Advanced"),A.qZA())}function E0(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Hide Advanced"),A.qZA())}function w0(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"button",23),A.NdJ("copied",function(G){return A.CHM(t),A.oxw().onCopyChanID(G)}),A._uU(1,"Copy Short Channel ID"),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("payload",t.channel.short_channel_id)}}function Pa(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"button",24),A.NdJ("click",function(){return A.CHM(t),A.oxw().onClose()}),A._uU(1,"OK"),A.qZA()}}const C0=function(r){return{"xs-scroll-y":r}},En=function(r,v){return{"mt-2":r,"mt-1":v}};let xi=(()=>{class r{constructor(t,s,G,vA,ft){this.dialogRef=t,this.data=s,this.logger=G,this.commonService=vA,this.snackBar=ft,this.faReceipt=h.dLy,this.showAdvanced=!1,this.showCopy=!0,this.showCopyField=null,this.screenSize="",this.screenSizeEnum=a.cu}ngOnInit(){this.channel=this.data.channel,this.showCopy=this.data.showCopy,this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyChanID(t){this.snackBar.open("Short channel ID "+t+" copied."),this.logger.info("Copied Text: "+t)}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(E.mQ),A.Y36(e.v),A.Y36(Tr.ux))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-information"]],decls:94,vars:40,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-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","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"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["fxFlex","25"],[1,"overflow-wrap","foreground-secondary-text"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["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"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(t,s){if(1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-card-header",2),A.TgZ(3,"div",3),A._UZ(4,"fa-icon",4),A.TgZ(5,"span",5),A._uU(6,"Channel Information"),A.qZA(),A.qZA(),A.TgZ(7,"button",6),A.NdJ("click",function(){return s.onClose()}),A._uU(8,"X"),A.qZA(),A.qZA(),A.TgZ(9,"mat-card-content",7),A.TgZ(10,"div",8),A.TgZ(11,"div",9),A.TgZ(12,"div",10),A.TgZ(13,"h4",11),A._uU(14,"Short Channel ID"),A.qZA(),A.TgZ(15,"span",12),A._uU(16),A.qZA(),A.qZA(),A.TgZ(17,"div",10),A.TgZ(18,"h4",11),A._uU(19,"Peer Alias"),A.qZA(),A.TgZ(20,"span",12),A._uU(21),A.qZA(),A.qZA(),A.qZA(),A._UZ(22,"mat-divider",13),A.TgZ(23,"div",9),A.TgZ(24,"div",1),A.TgZ(25,"h4",11),A._uU(26,"Channel ID"),A.qZA(),A.TgZ(27,"span",12),A._uU(28),A.qZA(),A.qZA(),A.qZA(),A._UZ(29,"mat-divider",13),A.TgZ(30,"div",9),A.TgZ(31,"div",1),A.TgZ(32,"h4",11),A._uU(33,"Peer Public Key"),A.qZA(),A.TgZ(34,"span",12),A._uU(35),A.qZA(),A.qZA(),A.qZA(),A._UZ(36,"mat-divider",13),A.TgZ(37,"div",9),A.TgZ(38,"div",14),A.TgZ(39,"h4",11),A._uU(40,"mSatoshi to Us"),A.qZA(),A.TgZ(41,"span",15),A._uU(42),A.ALo(43,"number"),A.qZA(),A.qZA(),A.TgZ(44,"div",14),A.TgZ(45,"h4",11),A._uU(46,"Spendable (mSats)"),A.qZA(),A.TgZ(47,"span",15),A._uU(48),A.ALo(49,"number"),A.qZA(),A.qZA(),A.TgZ(50,"div",14),A.TgZ(51,"h4",11),A._uU(52,"Total (mSats)"),A.qZA(),A.TgZ(53,"span",15),A._uU(54),A.ALo(55,"number"),A.qZA(),A.qZA(),A.TgZ(56,"div",14),A.TgZ(57,"h4",11),A._uU(58,"State"),A.qZA(),A.TgZ(59,"span",15),A._uU(60),A.qZA(),A.qZA(),A.qZA(),A._UZ(61,"mat-divider",13),A.TgZ(62,"div",9),A.TgZ(63,"div",14),A.TgZ(64,"h4",11),A._uU(65,"Our Reserve (Sats)"),A.qZA(),A.TgZ(66,"span",15),A._uU(67),A.ALo(68,"number"),A.qZA(),A.qZA(),A.TgZ(69,"div",14),A.TgZ(70,"h4",11),A._uU(71,"Their Reserve (Sats)"),A.qZA(),A.TgZ(72,"span",15),A._uU(73),A.ALo(74,"number"),A.qZA(),A.qZA(),A.TgZ(75,"div",14),A.TgZ(76,"h4",11),A._uU(77,"Connected"),A.qZA(),A.TgZ(78,"span",15),A._uU(79),A.qZA(),A.qZA(),A.TgZ(80,"div",14),A.TgZ(81,"h4",11),A._uU(82,"Private"),A.qZA(),A.TgZ(83,"span",15),A._uU(84),A.qZA(),A.qZA(),A.qZA(),A._UZ(85,"mat-divider",13),A.YNc(86,Xr,8,2,"div",16),A.TgZ(87,"div",17),A.TgZ(88,"button",18),A.NdJ("click",function(){return s.onShowAdvanced()}),A.YNc(89,Ua,2,0,"p",19),A.YNc(90,E0,2,0,"ng-template",null,20,A.W1O),A.qZA(),A.YNc(92,w0,2,1,"button",21),A.YNc(93,Pa,2,0,"button",22),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t){const G=A.MAs(91);A.xp6(4),A.Q6J("icon",s.faReceipt),A.xp6(5),A.Q6J("ngClass",A.VKq(35,C0,s.screenSize===s.screenSizeEnum.XS)),A.xp6(7),A.Oqu(s.channel.short_channel_id),A.xp6(5),A.Oqu(s.channel.alias),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(s.channel.channel_id),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(s.channel.id),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(A.lcZ(43,25,s.channel.msatoshi_to_us)),A.xp6(6),A.Oqu(A.lcZ(49,27,s.channel.spendable_msatoshi)),A.xp6(6),A.Oqu(A.lcZ(55,29,s.channel.msatoshi_total)),A.xp6(6),A.Oqu(s.channel.state),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(A.lcZ(68,31,s.channel.our_channel_reserve_satoshis)),A.xp6(6),A.Oqu(A.lcZ(74,33,s.channel.their_channel_reserve_satoshis)),A.xp6(6),A.Oqu(s.channel.connected?"Yes":"No"),A.xp6(5),A.Oqu(s.channel.private?"Yes":"No"),A.xp6(1),A.Q6J("inset",!0),A.xp6(1),A.Q6J("ngIf",s.showAdvanced),A.xp6(1),A.Q6J("ngClass",A.WLB(37,En,!s.showAdvanced,s.showAdvanced)),A.xp6(2),A.Q6J("ngIf",!s.showAdvanced)("ngIfElse",G),A.xp6(3),A.Q6J("ngIf",s.showCopy),A.xp6(1),A.Q6J("ngIf",!s.showCopy)}},directives:[Ct.xw,Ct.Wh,Ct.yH,w.dk,f.BN,Y.lW,w.dn,ht.mk,d.oO,AA.d,ht.O5,H.h,Zr.y],pipes:[ht.JJ],styles:[""]}),r})();function Ra(r,v){1&r&&A._UZ(0,"mat-progress-bar",33)}function Fi(r,v){1&r&&(A.TgZ(0,"th",34),A._uU(1," Short Channel ID "),A.qZA())}function Q0(r,v){if(1&r&&(A.TgZ(0,"span",40),A._UZ(1,"fa-icon",41),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("icon",t.faEyeSlash)}}function Dr(r,v){if(1&r&&(A.TgZ(0,"span",42),A._UZ(1,"fa-icon",41),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("icon",t.faEye)}}const Wn=function(r){return{"max-width":r}};function cr(r,v){if(1&r&&(A.TgZ(0,"td",35),A.TgZ(1,"div",36),A.YNc(2,Q0,2,1,"span",37),A.YNc(3,Dr,2,1,"span",38),A.TgZ(4,"span",39),A._uU(5),A.qZA(),A.qZA(),A.qZA()),2&r){const t=v.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(4,Wn,s.screenSize===s.screenSizeEnum.XS?"12rem":"22rem")),A.xp6(1),A.Q6J("ngIf",t.private),A.xp6(1),A.Q6J("ngIf",!t.private),A.xp6(2),A.Oqu(null==t?null:t.short_channel_id)}}function lr(r,v){1&r&&(A.TgZ(0,"th",34),A._uU(1," Alias "),A.qZA())}function d0(r,v){if(1&r&&(A.TgZ(0,"td",35),A.TgZ(1,"div",36),A.TgZ(2,"span",39),A._uU(3),A.qZA(),A.qZA(),A.qZA()),2&r){const t=v.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(2,Wn,s.screenSize===s.screenSizeEnum.XS?"12rem":"22rem")),A.xp6(2),A.Oqu(null==t?null:t.alias)}}function M0(r,v){1&r&&(A.TgZ(0,"th",34),A._uU(1," Connected "),A.qZA())}function p0(r,v){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.connected?"Connected":"Disconnected"," ")}}function Yi(r,v){1&r&&(A.TgZ(0,"th",34),A._uU(1," Private "),A.qZA())}function I0(r,v){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.private?"Private":"Public"," ")}}function za(r,v){1&r&&(A.TgZ(0,"th",34),A._uU(1," State "),A.qZA())}function m0(r,v){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.state,"")}}function D0(r,v){1&r&&(A.TgZ(0,"th",43),A._uU(1," Local Balance (Sats) "),A.qZA())}function de(r,v){if(1&r&&(A.TgZ(0,"td",35),A.TgZ(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.hij(" ",A.xi3(3,1,(null==t?null:t.msatoshi_to_us)/1e3,(null==t?null:t.msatoshi_to_us)<1e3?"1.0-4":"1.0-0")," ")}}function La(r,v){1&r&&(A.TgZ(0,"th",43),A._uU(1," Remote Balance (Sats) "),A.qZA())}function v0(r,v){if(1&r&&(A.TgZ(0,"td",35),A.TgZ(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.hij(" ",A.xi3(3,1,(null==t?null:t.msatoshi_to_them)/1e3,(null==t?null:t.msatoshi_to_them)<1e3?"1.0-4":"1.0-0")," ")}}function y0(r,v){1&r&&(A.TgZ(0,"th",43),A._uU(1," Total mSatoshis "),A.qZA())}function ba(r,v){if(1&r&&(A.TgZ(0,"td",35),A.TgZ(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.msatoshi_total)," ")}}function x0(r,v){1&r&&(A.TgZ(0,"th",43),A._uU(1," Spendable Satoshi "),A.qZA())}function F0(r,v){if(1&r&&(A.TgZ(0,"td",35),A.TgZ(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.spendable_msatoshi)," ")}}function Y0(r,v){1&r&&(A.TgZ(0,"th",45),A._uU(1,"Balance Score "),A.qZA())}function Ga(r,v){if(1&r&&(A.TgZ(0,"td",46),A.TgZ(1,"div",47),A.TgZ(2,"mat-hint",48),A._uU(3),A.ALo(4,"number"),A.qZA(),A.qZA(),A._UZ(5,"mat-progress-bar",49),A.qZA()),2&r){const t=v.$implicit;A.xp6(3),A.Oqu(A.lcZ(4,2,t.balancedness||0)),A.xp6(2),A.s9C("value",t.msatoshi_to_us&&t.msatoshi_to_us>0?+t.msatoshi_to_us/(+t.msatoshi_to_us+ +t.msatoshi_to_them)*100:0)}}function Ti(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"th",50),A.TgZ(1,"div",51),A.TgZ(2,"mat-select",52),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",53),A.NdJ("click",function(){return A.CHM(t),A.oxw().onChannelUpdate("all")}),A._uU(5,"Update Fee Policy"),A.qZA(),A.TgZ(6,"mat-option",53),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(7,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function Ha(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",54),A.TgZ(1,"div",55),A.TgZ(2,"mat-select",56),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",53),A.NdJ("click",function(G){const ft=A.CHM(t).$implicit;return A.oxw().onChannelClick(ft,G)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",53),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().onViewRemotePolicy(vA)}),A._uU(7,"View Remote Fee"),A.qZA(),A.TgZ(8,"mat-option",53),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().onChannelUpdate(vA)}),A._uU(9,"Update Fee Policy"),A.qZA(),A.TgZ(10,"mat-option",53),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().onChannelClose(vA)}),A._uU(11,"Close Channel"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function T0(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No peers connected. Add a peer in order to open a channel."),A.qZA())}function N0(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No channel available."),A.qZA())}function S0(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting channels..."),A.qZA())}function U0(r,v){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function P0(r,v){if(1&r&&(A.TgZ(0,"td",57),A.YNc(1,T0,2,0,"p",58),A.YNc(2,N0,2,0,"p",58),A.YNc(3,S0,2,0,"p",58),A.YNc(4,U0,2,1,"p",58),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",t.numPeers<1&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",t.numPeers>0&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const R0=function(r){return{"display-none":r}};function z0(r,v){if(1&r&&A._UZ(0,"tr",59),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,R0,t.numPeers>0&&(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function Ni(r,v){1&r&&A._UZ(0,"tr",60)}function L0(r,v){1&r&&A._UZ(0,"tr",61)}const Wi=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},Ja=function(){return["no_peer"]};let b0=(()=>{class r{constructor(t,s,G,vA,ft,Ce){var un,Qe,An,ia;this.logger=t,this.store=s,this.rtlEffects=G,this.clnEffects=vA,this.commonService=ft,this.router=Ce,this.faEye=h.Mdf,this.faEyeSlash=h.Aq,this.totalBalance=0,this.displayedColumns=[],this.channelsData=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=a.vn,this.selFilter="",this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new l.x,new l.x,new l.x,new l.x,new l.x,new l.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","msatoshi_to_us","msatoshi_to_them","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["short_channel_id","alias","msatoshi_to_us","msatoshi_to_them","actions"]):(this.flgSticky=!0,this.displayedColumns=["short_channel_id","alias","msatoshi_to_us","msatoshi_to_them","balancedness","actions"]),this.selFilter=(null===(Qe=null===(un=this.router.getCurrentNavigation().extras)||void 0===un?void 0:un.state)||void 0===Qe?void 0:Qe.filter)?null===(ia=null===(An=this.router.getCurrentNavigation().extras)||void 0===An?void 0:An.state)||void 0===ia?void 0:ia.filter:""}ngOnInit(){this.store.select(B.jK).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.information=t.information,this.numPeers=t.numPeers,this.totalBalance=t.balance.totalBalance,this.logger.info(t)}),this.store.select(B.ZW).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.channelsData=t.activeChannels,this.channelsData.length>0&&this.loadChannelsTable(this.channelsData),this.logger.info(t)})}ngAfterViewInit(){this.channelsData.length>0&&this.loadChannelsTable(this.channelsData)}onViewRemotePolicy(t){this.store.dispatch((0,Et.$A)({payload:{uiMessage:a.m6.GET_REMOTE_POLICY,shortChannelID:t.short_channel_id,showError:!0}})),this.clnEffects.setLookupCL.pipe((0,UA.q)(1)).subscribe(s=>{if(0===s.length)return!1;let G={};G=s[0].source!==this.information.id?s[0]:s[1];const vA=[[{key:"base_fee_millisatoshi",value:G.base_fee_millisatoshi,title:"Base Fees (mSats)",width:34,type:a.Gi.NUMBER},{key:"fee_per_millionth",value:G.fee_per_millionth,title:"Fee/Millionth",width:33,type:a.Gi.NUMBER},{key:"delay",value:G.delay,title:"Delay",width:33,type:a.Gi.NUMBER}]],ft="Remote policy for Channel: "+(t.alias||t.short_channel_id?t.alias&&t.short_channel_id?t.alias+" ("+t.short_channel_id+")":t.alias?t.alias:t.short_channel_id:t.channel_id);setTimeout(()=>{this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Remote Channel Policy",titleMessage:ft,message:vA}}}))},0)})}onChannelUpdate(t){"all"!==t&&"ONCHAIN"===t.state||("all"===t?(this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.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:"number",inputValue:1e3,width:48},{placeholder:"Fee Rate (mili mSats)",inputType:"number",inputValue:1,min:1,width:48,hintFunction:this.percentHintFunction}]}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[1])).subscribe(G=>{G&&this.store.dispatch((0,Et.pW)({payload:{baseFeeMsat:G[0].inputValue,feeRate:G[1].inputValue,channelId:"all"}}))})):(this.myChanPolicy={fee_base_msat:0,fee_rate_milli_msat:0},this.store.dispatch((0,Et.$A)({payload:{uiMessage:a.m6.GET_CHAN_POLICY,shortChannelID:t.short_channel_id,showError:!1}})),this.clnEffects.setLookupCL.pipe((0,UA.q)(1)).subscribe(s=>{this.myChanPolicy=s.length>0&&s[0].source===this.information.id?{fee_base_msat:s[0].base_fee_millisatoshi,fee_rate_milli_msat:s[0].fee_per_millionth}:s.length>1&&s[1].source===this.information.id?{fee_base_msat:s[1].base_fee_millisatoshi,fee_rate_milli_msat:s[1].fee_per_millionth}:{fee_base_msat:0,fee_rate_milli_msat:0},this.logger.info(this.myChanPolicy);const G="Update fee policy for Channel: "+(t.alias||t.short_channel_id?t.alias&&t.short_channel_id?t.alias+" ("+t.short_channel_id+")":t.alias?t.alias:t.short_channel_id:t.channel_id),vA=[];setTimeout(()=>{this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update",message:vA,titleMessage:G,flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSats)",inputType:"number",inputValue:""===this.myChanPolicy.fee_base_msat?0:this.myChanPolicy.fee_base_msat,width:48},{placeholder:"Fee Rate (mili mSats)",inputType:"number",inputValue:this.myChanPolicy.fee_rate_milli_msat,min:1,width:48,hintFunction:this.percentHintFunction}]}}}))},0)}),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[2])).subscribe(s=>{s&&this.store.dispatch((0,Et.pW)({payload:{baseFeeMsat:s[0].inputValue,feeRate:s[1].inputValue,channelId:t.channel_id}}))})),this.applyFilter())}percentHintFunction(t){return(t/1e4).toString()+"%"}onChannelClose(t){this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Close Channel",titleMessage:"Closing channel: "+(t.alias||t.short_channel_id?t.alias&&t.short_channel_id?t.alias+" ("+t.short_channel_id+")":t.alias?t.alias:t.short_channel_id:t.channel_id),noBtnText:"Cancel",yesBtnText:"Close Channel"}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[3])).subscribe(s=>{s&&this.store.dispatch((0,Et.BL)({payload:{id:t.id,channelId:t.channel_id,force:!1}}))})}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}onChannelClick(t,s){this.store.dispatch((0,kA.qR)({payload:{data:{channel:t,showCopy:!0,component:xi}}}))}loadChannelsTable(t){t.sort((s,G)=>s.active===G.active?0:G.active?1:-1),this.channels=new yA.by([...t]),this.channels.filterPredicate=(s,G)=>((s.connected?"connected":"disconnected")+(s.channel_id?s.channel_id.toLowerCase():"")+(s.short_channel_id?s.short_channel_id.toLowerCase():"")+(s.id?s.id.toLowerCase():"")+(s.alias?s.alias.toLowerCase():"")+(s.private?"private":"public")+(s.state?s.state.toLowerCase():"")+(s.funding_txid?s.funding_txid.toLowerCase():"")+(s.msatoshi_to_us?s.msatoshi_to_us:"")+(s.msatoshi_total?s.msatoshi_total:"")+(s.their_channel_reserve_satoshis?s.their_channel_reserve_satoshis:"")+(s.our_channel_reserve_satoshis?s.our_channel_reserve_satoshis:"")+(s.spendable_msatoshi?s.spendable_msatoshi:"")).includes(G),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(s,G)=>s[G]&&isNaN(s[G])?s[G].toLocaleLowerCase():s[G]?+s[G]:null,this.channels.paginator=this.paginator,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(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(At.V),A.Y36(In.J),A.Y36(e.v),A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-open-table"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(VA.NW,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.sort=G.first),A.iGM(G=A.CRH())&&(s.paginator=G.first)}},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Channels")}])],decls:48,vars:14,consts:[["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","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["mode","indeterminate",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100",3,"perfectScrollbar"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","short_channel_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","connected"],["matColumnDef","private"],["matColumnDef","state"],["matColumnDef","msatoshi_to_us"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi_to_them"],["matColumnDef","msatoshi_total"],["matColumnDef","spendable_msatoshi"],["matColumnDef","balancedness"],["mat-header-cell","","mat-sort-header","","class","pl-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pl-1",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["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"],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-3"],["mat-cell","",1,"pl-3"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-1"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["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(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A._UZ(2,"div",2),A.TgZ(3,"mat-form-field",3),A.TgZ(4,"input",4),A.NdJ("keyup",function(){return s.applyFilter()})("ngModelChange",function(vA){return s.selFilter=vA}),A.qZA(),A.qZA(),A.qZA(),A.YNc(5,Ra,1,0,"mat-progress-bar",5),A.TgZ(6,"div",6),A.TgZ(7,"table",7,8),A.ynx(9,9),A.YNc(10,Fi,2,0,"th",10),A.YNc(11,cr,6,6,"td",11),A.BQk(),A.ynx(12,12),A.YNc(13,lr,2,0,"th",10),A.YNc(14,d0,4,4,"td",11),A.BQk(),A.ynx(15,13),A.YNc(16,M0,2,0,"th",10),A.YNc(17,p0,2,1,"td",11),A.BQk(),A.ynx(18,14),A.YNc(19,Yi,2,0,"th",10),A.YNc(20,I0,2,1,"td",11),A.BQk(),A.ynx(21,15),A.YNc(22,za,2,0,"th",10),A.YNc(23,m0,2,1,"td",11),A.BQk(),A.ynx(24,16),A.YNc(25,D0,2,0,"th",17),A.YNc(26,de,4,4,"td",11),A.BQk(),A.ynx(27,18),A.YNc(28,La,2,0,"th",17),A.YNc(29,v0,4,4,"td",11),A.BQk(),A.ynx(30,19),A.YNc(31,y0,2,0,"th",17),A.YNc(32,ba,4,3,"td",11),A.BQk(),A.ynx(33,20),A.YNc(34,x0,2,0,"th",17),A.YNc(35,F0,4,3,"td",11),A.BQk(),A.ynx(36,21),A.YNc(37,Y0,2,0,"th",22),A.YNc(38,Ga,6,4,"td",23),A.BQk(),A.ynx(39,24),A.YNc(40,Ti,8,0,"th",25),A.YNc(41,Ha,12,0,"td",26),A.BQk(),A.ynx(42,27),A.YNc(43,P0,5,4,"td",28),A.BQk(),A.YNc(44,z0,1,3,"tr",29),A.YNc(45,Ni,1,0,"tr",30),A.YNc(46,L0,1,0,"tr",31),A.qZA(),A.qZA(),A._UZ(47,"mat-paginator",32),A.qZA()),2&t&&(A.xp6(4),A.Q6J("ngModel",s.selFilter),A.xp6(1),A.Q6J("ngIf",s.apiCallStatus.status===s.apiCallStatusEnum.INITIATED),A.xp6(2),A.Q6J("dataSource",s.channels)("ngClass",A.VKq(11,Wi,""!==s.errorMessage)),A.xp6(37),A.Q6J("matFooterRowDef",A.DdM(13,Ja)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[Ct.xw,Ct.Wh,Ct.yH,W.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,ht.O5,cA.$V,yA.BZ,rt.YE,ht.mk,d.oO,yA.w1,yA.fO,yA.Dz,yA.mD,yA.Ke,yA.as,yA.nj,VA.NW,T.pW,yA.ge,rt.nU,yA.ev,ht.PC,d.Zl,aA.gM,f.BN,W.bx,R.gD,R.$L,wA.ey,yA.yh,yA.Q2,yA.XQ,yA.Gk],pipes:[ht.JJ],styles:[".mat-column-short_channel_id[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-short_channel_id[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-alias[_ngcontent-%COMP%]{flex:0 0 20%;width:20%}.mat-column-alias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:3rem;flex:0 0 22%;width:22%}.mat-column-state[_ngcontent-%COMP%], .mat-column-msatoshi_to_us[_ngcontent-%COMP%], .mat-column-msatoshi_to_them[_ngcontent-%COMP%]{flex:1 1 15%;width:15%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media only screen and (max-width: 37.5em){.mat-column-state[_ngcontent-%COMP%], .mat-column-msatoshi_to_us[_ngcontent-%COMP%], .mat-column-msatoshi_to_them[_ngcontent-%COMP%]{white-space:unset}}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 100%}@media only screen and (max-width: 37.5em){.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 80%}}"]}),r})();const qr=["outputIdx"];function wn(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Output Index required."),A.qZA())}function Si(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Invalid index value."),A.qZA())}function Oa(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fees is required."),A.qZA())}function G0(r,v){if(1&r&&(A.TgZ(0,"div",27),A._UZ(1,"fa-icon",13),A.TgZ(2,"span"),A._uU(3),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(2),A.Oqu(t.bumpFeeError)}}let H0=(()=>{class r{constructor(t,s,G,vA,ft,Ce){this.actions=t,this.dialogRef=s,this.data=G,this.store=vA,this.logger=ft,this.snackBar=Ce,this.newAddress="",this.fees=null,this.outputIndex=null,this.faCopy=h.kZ_,this.faInfoCircle=h.sqG,this.faExclamationTriangle=h.eHv,this.bumpFeeError="",this.unSubs=[new l.x,new l.x]}set payReq(t){t&&(this.outputIdx=t)}ngOnInit(){this.bumpFeeChannel=this.data.channel}onBumpFee(){if(!this.outputIndex&&0!==this.outputIndex||!this.fees)return!0;this.bumpFeeError="",this.store.dispatch((0,Et._E)({payload:a._t[0]})),this.actions.pipe((0,JA.h)(t=>t.type===a.AB.SET_NEW_ADDRESS_CLN),(0,UA.q)(1)).subscribe(t=>{this.store.dispatch((0,Et.Wi)({payload:{address:t.payload,satoshis:"all",feeRate:this.fees,utxos:[this.bumpFeeChannel.funding_txid+":"+this.outputIndex.toString()]}}))}),this.actions.pipe((0,JA.h)(t=>t.type===a.AB.SET_CHANNEL_TRANSACTION_RES_CLN),(0,UA.q)(1)).subscribe(t=>{this.store.dispatch((0,kA.jW)({payload:"Successfully bumped the fee. Use the block explorer to verify transaction."})),this.dialogRef.close()}),this.actions.pipe((0,JA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN),(0,i.R)(this.unSubs[0])).subscribe(t=>{t.payload.status===a.Bn.ERROR&&("SetChannelTransaction"===t.payload.action||"GenerateNewAddress"===t.payload.action)&&(this.logger.error(t.payload.message),this.bumpFeeError=t.payload.message)})}onCopyID(t){this.snackBar.open("Transaction ID copied.")}resetData(){this.bumpFeeError="",this.fees=null,this.outputIndex=null,this.outputIdx.control.setErrors(null)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(C.eX),A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(u.yh),A.Y36(E.mQ),A.Y36(Tr.ux))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-bump-fee"]],viewQuery:function(t,s){if(1&t&&A.Gf(qr,5),2&t){let G;A.iGM(G=A.CRH())&&(s.payReq=G.first)}},decls:47,vars:15,consts:[["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","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"],["matSuffix","","rtlClipboard","","matTooltip","Copy transaction ID",1,"ml-1",3,"icon","payload","copied"],["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"],[1,"pl-1"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","49"],["autoFocus","","matInput","","placeholder","Output Index","type","number","tabindex","1","required","","name","outputIdx",3,"ngModel","step","min","ngModelChange"],["outputIdx","ngModel"],[4,"ngIf"],["matInput","","placeholder","Fees (Sats/vByte)","type","number","name","fees","required","","tabindex","4",3,"ngModel","step","min","ngModelChange"],["fee","ngModel"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","tabindex","5","default","",1,"mr-1",3,"click"],["mat-button","","color","primary","type","submit","tabindex","6",3,"click"],["fxFlex","100",1,"alert","alert-danger","mt-1"]],template:function(t,s){if(1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-card-header",2),A.TgZ(3,"div",3),A.TgZ(4,"span",4),A._uU(5,"Bump Fee"),A.qZA(),A.qZA(),A.TgZ(6,"button",5),A.NdJ("click",function(){return s.onClose()}),A._uU(7,"X"),A.qZA(),A.qZA(),A.TgZ(8,"mat-card-content",6),A.TgZ(9,"form",7),A.TgZ(10,"div",8),A.TgZ(11,"p",9),A._uU(12),A.TgZ(13,"fa-icon",10),A.NdJ("copied",function(vA){return s.onCopyID(vA)}),A.qZA(),A.qZA(),A.TgZ(14,"div",11),A.TgZ(15,"div",12),A._UZ(16,"fa-icon",13),A.TgZ(17,"span",14),A._uU(18,"Bumping fee on pending open channels is an advanced feature, attempt it only if you are familiar with the functionality of Bitcoin transactions. "),A.TgZ(19,"div"),A._uU(20,"Before attempting fee bump ensure the following:"),A.qZA(),A.TgZ(21,"div",15),A._uU(22,"1: Use a Bitcoin block explorer to ensure that channel opening transaction is not confirmed."),A.qZA(),A.TgZ(23,"div",15),A._uU(24,"2: The channel opening transaction must have a sizable change output, which can be spent further. The fee cannot be bumped without the change output."),A.qZA(),A.TgZ(25,"div",15),A._uU(26,"3: Find the index value of the change output via a block explorer."),A.qZA(),A.TgZ(27,"div",15),A._uU(28,"4: Enter the index value of the change output in the form below and the desired fee rate."),A.qZA(),A.TgZ(29,"div",15),A._uU(30,"5: Upon successful fee bump, use your block explorer to track the child transaction in the mempool, which should be linked with the change output transaction."),A.qZA(),A.qZA(),A.qZA(),A.TgZ(31,"div",16),A.TgZ(32,"mat-form-field",17),A.TgZ(33,"input",18,19),A.NdJ("ngModelChange",function(vA){return s.outputIndex=vA}),A.qZA(),A.YNc(35,wn,2,0,"mat-error",20),A.YNc(36,Si,2,0,"mat-error",20),A.qZA(),A.TgZ(37,"mat-form-field",17),A.TgZ(38,"input",21,22),A.NdJ("ngModelChange",function(vA){return s.fees=vA}),A.qZA(),A.YNc(40,Oa,2,0,"mat-error",20),A.qZA(),A.qZA(),A.YNc(41,G0,4,2,"div",23),A.qZA(),A.qZA(),A.TgZ(42,"div",24),A.TgZ(43,"button",25),A.NdJ("click",function(){return s.resetData()}),A._uU(44,"Clear"),A.qZA(),A.TgZ(45,"button",26),A.NdJ("click",function(){return s.onBumpFee()}),A._uU(46),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t){const G=A.MAs(34);A.xp6(12),A.hij("Bump fee for transaction id: ",null==s.bumpFeeChannel?null:s.bumpFeeChannel.funding_txid," "),A.xp6(1),A.Q6J("icon",s.faCopy)("payload",null==s.bumpFeeChannel?null:s.bumpFeeChannel.funding_txid),A.xp6(3),A.Q6J("icon",s.faInfoCircle),A.xp6(17),A.Q6J("ngModel",s.outputIndex)("step",1)("min",0),A.xp6(2),A.Q6J("ngIf",null==G.errors?null:G.errors.required),A.xp6(1),A.Q6J("ngIf",null==G.errors?null:G.errors.pendingChannelOutputIndex),A.xp6(2),A.Q6J("ngModel",s.fees)("step",1)("min",0),A.xp6(2),A.Q6J("ngIf",!s.fees),A.xp6(1),A.Q6J("ngIf",""!==s.bumpFeeError),A.xp6(5),A.Oqu(""!==s.bumpFeeError?"Retry Bump Fee":"Bump Fee")}},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Y.lW,w.dn,OA._Y,OA.JL,OA.F,f.BN,W.R9,Zr.y,aA.gM,W.KE,Yt.Nt,OA.wV,OA.qQ,OA.Fj,k.q,H.h,OA.Q7,OA.JJ,OA.On,ht.O5,W.TO],styles:[""]}),r})();function J0(r,v){1&r&&A._UZ(0,"mat-progress-bar",30)}function O0(r,v){1&r&&(A.TgZ(0,"th",31),A._uU(1," Short Channel ID "),A.qZA())}function k0(r,v){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.short_channel_id,"")}}function j0(r,v){1&r&&(A.TgZ(0,"th",31),A._uU(1," Alias "),A.qZA())}function Z0(r,v){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(null==t?null:t.alias)}}function K0(r,v){1&r&&(A.TgZ(0,"th",31),A._uU(1," Connected "),A.qZA())}function ka(r,v){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.connected?"Connected":"Disconnected"," ")}}function V0(r,v){1&r&&(A.TgZ(0,"th",31),A._uU(1," Private "),A.qZA())}function W0(r,v){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.private?"Private":"Public"," ")}}function X0(r,v){1&r&&(A.TgZ(0,"th",31),A._uU(1," State "),A.qZA())}const gr=function(r){return{"max-width":r}};function q0(r,v){if(1&r&&(A.TgZ(0,"td",33),A._uU(1),A.qZA()),2&r){const t=v.$implicit,s=A.oxw();A.Q6J("ngStyle",A.VKq(2,gr,s.screenSize===s.screenSizeEnum.XS?"10rem":"")),A.xp6(1),A.hij(" ",s.CLNChannelPendingState[null==t?null:t.state]," ")}}function Ui(r,v){1&r&&(A.TgZ(0,"th",34),A._uU(1," mSatoshi To Us "),A.qZA())}function _0(r,v){if(1&r&&(A.TgZ(0,"td",32),A.TgZ(1,"span",35),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.msatoshi_to_us)," ")}}function $0(r,v){1&r&&(A.TgZ(0,"th",34),A._uU(1," Total (Sats) "),A.qZA())}function Ac(r,v){if(1&r&&(A.TgZ(0,"td",32),A.TgZ(1,"span",35),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,(null==t?null:t.msatoshi_total)/1e3)," ")}}function ja(r,v){1&r&&(A.TgZ(0,"th",34),A._uU(1," Spendable Satoshi "),A.qZA())}function tc(r,v){if(1&r&&(A.TgZ(0,"td",32),A.TgZ(1,"span",35),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.spendable_msatoshi)," ")}}function ec(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"th",36),A.TgZ(1,"div",37),A.TgZ(2,"mat-select",38),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",39),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function nc(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",39),A.NdJ("click",function(){A.CHM(t);const G=A.oxw().$implicit;return A.oxw().onChannelClose(G)}),A._uU(1,"Close Channel"),A.qZA()}}function rc(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",39),A.NdJ("click",function(){A.CHM(t);const G=A.oxw().$implicit;return A.oxw().onBumpFee(G)}),A._uU(1,"Bump Fee"),A.qZA()}}function Za(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",40),A.TgZ(1,"div",37),A.TgZ(2,"mat-select",41),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",39),A.NdJ("click",function(G){const ft=A.CHM(t).$implicit;return A.oxw().onChannelClick(ft,G)}),A._uU(5,"View Info"),A.qZA(),A.YNc(6,nc,2,0,"mat-option",42),A.YNc(7,rc,2,0,"mat-option",42),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=v.$implicit,s=A.oxw();A.xp6(6),A.Q6J("ngIf",s.isCompatibleVersion&&("CHANNELD_SHUTTING_DOWN"===t.state||"CLOSINGD_SIGEXCHANGE"===t.state||!t.connected&&"CHANNELD_NORMAL"===t.state)),A.xp6(1),A.Q6J("ngIf","CHANNELD_AWAITING_LOCKIN"===t.state)}}function ic(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No peers connected. Add a peer in order to open a channel."),A.qZA())}function Ka(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No pending/inactive channel available."),A.qZA())}function Va(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting pending/inactive channels..."),A.qZA())}function Wa(r,v){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function ac(r,v){if(1&r&&(A.TgZ(0,"td",43),A.YNc(1,ic,2,0,"p",44),A.YNc(2,Ka,2,0,"p",44),A.YNc(3,Va,2,0,"p",44),A.YNc(4,Wa,2,1,"p",44),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",t.numPeers<1&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",t.numPeers>0&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const oc=function(r){return{"display-none":r}};function sc(r,v){if(1&r&&A._UZ(0,"tr",45),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,oc,t.numPeers>0&&(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function cc(r,v){1&r&&A._UZ(0,"tr",46)}function lc(r,v){1&r&&A._UZ(0,"tr",47)}const Xa=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},gc=function(){return["no_peer"]};let Bc=(()=>{class r{constructor(t,s,G,vA){this.logger=t,this.store=s,this.rtlEffects=G,this.commonService=vA,this.isCompatibleVersion=!1,this.totalBalance=0,this.displayedColumns=[],this.channelsData=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=a.vn,this.selFilter="",this.flgSticky=!1,this.CLNChannelPendingState=a.Zs,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new l.x,new l.x,new l.x,new l.x,new l.x,new l.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","state","actions"]):this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","connected","state","actions"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","connected","state","msatoshi_total","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","connected","state","msatoshi_total","actions"])}ngOnInit(){this.store.select(B.jK).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.information=t.information,this.information.api_version&&(this.isCompatibleVersion=this.commonService.isVersionCompatible(this.information.api_version,"0.4.2")),this.numPeers=t.numPeers,this.totalBalance=t.balance.totalBalance,this.logger.info(t)}),this.store.select(B.ZW).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.channelsData=[...t.pendingChannels,...t.inactiveChannels],this.channelsData=this.channelsData.sort((s,G)=>this.CLNChannelPendingState[s.state]>=this.CLNChannelPendingState[G.state]?1:-1),this.channelsData&&this.channelsData.length>0&&this.loadChannelsTable(this.channelsData),this.logger.info(t)})}ngAfterViewInit(){this.channelsData&&this.channelsData.length>0&&this.loadChannelsTable(this.channelsData)}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}onBumpFee(t){this.store.dispatch((0,kA.qR)({payload:{data:{channel:t,component:H0}}}))}onChannelClick(t,s){this.store.dispatch((0,kA.qR)({payload:{data:{channel:t,showCopy:!0,component:xi}}}))}onChannelClose(t){this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Force Close Channel",titleMessage:"Force closing channel: "+(t.alias||t.short_channel_id?t.alias&&t.short_channel_id?t.alias+" ("+t.short_channel_id+")":t.alias?t.alias:t.short_channel_id:t.channel_id),noBtnText:"Cancel",yesBtnText:"Force Close"}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[2])).subscribe(s=>{s&&this.store.dispatch((0,Et.BL)({payload:{id:t.id,channelId:t.channel_id,force:!0}}))})}loadChannelsTable(t){t.sort((s,G)=>s.active===G.active?0:G.active?1:-1),this.channels=new yA.by([...t]),this.channels.filterPredicate=(s,G)=>((s.connected?"connected":"disconnected")+(s.channel_id?s.channel_id.toLowerCase():"")+(s.short_channel_id?s.short_channel_id.toLowerCase():"")+(s.id?s.id.toLowerCase():"")+(s.alias?s.alias.toLowerCase():"")+(s.private?"private":"public")+(s.state&&this.CLNChannelPendingState[s.state]?this.CLNChannelPendingState[s.state].toLowerCase():"")+(s.funding_txid?s.funding_txid.toLowerCase():"")+(s.msatoshi_to_us?s.msatoshi_to_us:"")+(s.msatoshi_total?s.msatoshi_total:"")+(s.their_channel_reserve_satoshis?s.their_channel_reserve_satoshis:"")+(s.our_channel_reserve_satoshis?s.our_channel_reserve_satoshis:"")+(s.spendable_msatoshi?s.spendable_msatoshi:"")).includes(G),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(s,G)=>"state"===G?this.CLNChannelPendingState[s.state]:s[G]&&isNaN(s[G])?s[G].toLocaleLowerCase():s[G]?+s[G]:null,this.channels.paginator=this.paginator,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(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(At.V),A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-pending-table"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(VA.NW,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.sort=G.first),A.iGM(G=A.CRH())&&(s.paginator=G.first)}},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Channels")}])],decls:42,vars:14,consts:[["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","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["mode","indeterminate",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100",3,"perfectScrollbar"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","short_channel_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","connected"],["matColumnDef","private"],["matColumnDef","state"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","msatoshi_to_us"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi_total"],["matColumnDef","spendable_msatoshi"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pr-3",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pr-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pr-3"],["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(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A._UZ(2,"div",2),A.TgZ(3,"mat-form-field",3),A.TgZ(4,"input",4),A.NdJ("keyup",function(){return s.applyFilter()})("ngModelChange",function(vA){return s.selFilter=vA}),A.qZA(),A.qZA(),A.qZA(),A.YNc(5,J0,1,0,"mat-progress-bar",5),A.TgZ(6,"div",6),A.TgZ(7,"table",7,8),A.ynx(9,9),A.YNc(10,O0,2,0,"th",10),A.YNc(11,k0,2,1,"td",11),A.BQk(),A.ynx(12,12),A.YNc(13,j0,2,0,"th",10),A.YNc(14,Z0,2,1,"td",11),A.BQk(),A.ynx(15,13),A.YNc(16,K0,2,0,"th",10),A.YNc(17,ka,2,1,"td",11),A.BQk(),A.ynx(18,14),A.YNc(19,V0,2,0,"th",10),A.YNc(20,W0,2,1,"td",11),A.BQk(),A.ynx(21,15),A.YNc(22,X0,2,0,"th",10),A.YNc(23,q0,2,4,"td",16),A.BQk(),A.ynx(24,17),A.YNc(25,Ui,2,0,"th",18),A.YNc(26,_0,4,3,"td",11),A.BQk(),A.ynx(27,19),A.YNc(28,$0,2,0,"th",18),A.YNc(29,Ac,4,3,"td",11),A.BQk(),A.ynx(30,20),A.YNc(31,ja,2,0,"th",18),A.YNc(32,tc,4,3,"td",11),A.BQk(),A.ynx(33,21),A.YNc(34,ec,6,0,"th",22),A.YNc(35,Za,8,2,"td",23),A.BQk(),A.ynx(36,24),A.YNc(37,ac,5,4,"td",25),A.BQk(),A.YNc(38,sc,1,3,"tr",26),A.YNc(39,cc,1,0,"tr",27),A.YNc(40,lc,1,0,"tr",28),A.qZA(),A.qZA(),A._UZ(41,"mat-paginator",29),A.qZA()),2&t&&(A.xp6(4),A.Q6J("ngModel",s.selFilter),A.xp6(1),A.Q6J("ngIf",s.apiCallStatus.status===s.apiCallStatusEnum.INITIATED),A.xp6(2),A.Q6J("dataSource",s.channels)("ngClass",A.VKq(11,Xa,""!==s.errorMessage)),A.xp6(31),A.Q6J("matFooterRowDef",A.DdM(13,gc)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[Ct.xw,Ct.Wh,Ct.yH,W.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,ht.O5,cA.$V,yA.BZ,rt.YE,ht.mk,d.oO,yA.w1,yA.fO,yA.Dz,yA.mD,yA.Ke,yA.as,yA.nj,VA.NW,T.pW,yA.ge,rt.nU,yA.ev,ht.PC,d.Zl,R.gD,R.$L,wA.ey,yA.yh,yA.Q2,yA.XQ,yA.Gk],pipes:[ht.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-state[_ngcontent-%COMP%]{flex:1 1 15%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),r})();const uc=["peersForm"],fc=["stepper"];function hc(r,v){if(1&r&&A._uU(0),2&r){const t=A.oxw();A.Oqu(t.peerFormLabel)}}function Ec(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Address is required."),A.qZA())}function qa(r,v){if(1&r&&(A.TgZ(0,"div",40),A._UZ(1,"fa-icon",41),A.TgZ(2,"span"),A._uU(3),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(2),A.Oqu(t.peerConnectionError)}}function _a(r,v){if(1&r&&A._uU(0),2&r){const t=A.oxw();A.Oqu(t.channelFormLabel)}}function wc(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount is required."),A.qZA())}function Cc(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount must be a positive number."),A.qZA())}function Qc(r,v){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.hij("Amount must be less than or equal to ",t.totalBalance,".")}}function on(r,v){if(1&r&&(A.TgZ(0,"mat-option",42),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function vr(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function dc(r,v){if(1&r&&(A.TgZ(0,"mat-form-field",43),A._UZ(1,"input",44),A.YNc(2,vr,2,0,"mat-error",14),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("step",.1)("min",0),A.xp6(1),A.Q6J("ngIf","customperkb"===t.channelFormGroup.controls.selFeeRate.value&&!t.channelFormGroup.controls.flgMinConf.value&&!t.channelFormGroup.controls.customFeeRate.value)}}function $a(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function Mc(r,v){if(1&r&&(A.TgZ(0,"div",40),A._UZ(1,"fa-icon",41),A.TgZ(2,"span"),A._uU(3),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(2),A.Oqu(t.channelConnectionError)}}const pc=function(r,v){return{"mr-6":r,"mr-2":v}};let Ao=(()=>{class r{constructor(t,s,G,vA,ft,Ce,un){this.dialogRef=t,this.data=s,this.store=G,this.formBuilder=vA,this.actions=ft,this.logger=Ce,this.commonService=un,this.faExclamationTriangle=h.eHv,this.peerAddress="",this.totalBalance=0,this.feeRateTypes=a.vn,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=a.cu,this.unSubs=[new l.x,new l.x,new l.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){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.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[OA.kI.required]],peerAddress:[this.peerAddress,[OA.kI.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[OA.kI.required,OA.kI.min(1),OA.kI.max(this.totalBalance)]],isPrivate:[!1],selFeeRate:[null],customFeeRate:[null],flgMinConf:[!1],minConfValue:[{value:null,disabled:!0}],hiddenAmount:["",[OA.kI.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.channelFormGroup.controls.flgMinConf.valueChanges.pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{t?(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([OA.kI.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.R)(this.unSubs[1])).subscribe(t=>{this.channelFormGroup.controls.customFeeRate.setValue(null),this.channelFormGroup.controls.customFeeRate.reset(),this.channelFormGroup.controls.customFeeRate.setValidators("customperkb"!==t||this.channelFormGroup.controls.flgMinConf.value?null:[OA.kI.required])}),this.actions.pipe((0,i.R)(this.unSubs[2]),(0,JA.h)(t=>t.type===a.AB.NEWLY_ADDED_PEER_CLN||t.type===a.AB.FETCH_CHANNELS_CLN||t.type===a.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{t.type===a.AB.NEWLY_ADDED_PEER_CLN&&(this.logger.info(t.payload),this.flgEditable=!1,this.newlyAddedPeer=t.payload.peer,this.peerFormGroup.controls.hiddenAddress.setValue(this.peerFormGroup.controls.peerAddress.value),this.stepper.next()),t.type===a.AB.FETCH_CHANNELS_CLN&&this.dialogRef.close(),t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&t.payload.status===a.Bn.ERROR&&("SaveNewPeer"===t.payload.action?this.peerConnectionError=t.payload.message:"SaveNewChannel"===t.payload.action&&(this.channelConnectionError=t.payload.message))})}onConnectPeer(){if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="",this.store.dispatch((0,Et.El)({payload:{id:this.peerFormGroup.controls.peerAddress.value}}))}onOpenChannel(){if(!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0||this.channelFormGroup.controls.flgMinConf.value&&!this.channelFormGroup.controls.minConfValue.value)return!0;this.channelConnectionError="",this.store.dispatch((0,Et.YX)({payload:{peerId:this.newlyAddedPeer.id,satoshis: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(t){switch(t.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)"}t.selectedIndex{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(u.yh),A.Y36(OA.qu),A.Y36(C.eX),A.Y36(E.mQ),A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-connect-peer"]],viewQuery:function(t,s){if(1&t&&(A.Gf(uc,5),A.Gf(fc,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.form=G.first),A.iGM(G=A.CRH())&&(s.stepper=G.first)}},decls:57,vars:30,consts:[["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","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["autoFocus","","matInput","","placeholder","Lightning Address (pubkey OR pubkey@ip:port)","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","ngSubmit"],["matStepLabel","","disabled","true"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign.gt-sm","space-between center"],["fxFlex","60","fxLayoutAlign","start end"],["matInput","","autoFocus","","formControlName","fundingAmount","placeholder","Amount","type","number","tabindex","1","required","",3,"step"],["matSuffix",""],["fxFlex","35","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","60","fxLayoutAlign","space-between end"],["fxLayoutAlign","start center",3,"fxFlex"],["tabindex","4","placeholder","Fee Rate","formControlName","selFeeRate"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48","fxLayoutAlign","end center",4,"ngIf"],["fxFlex","35","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","2","tabindex","5","color","primary","formControlName","flgMinConf","fxLayoutAlign","stretch start",3,"ngClass"],["fxFlex","98"],["matInput","","formControlName","minConfValue","placeholder","Min Confirmation Blocks","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"],[3,"value"],["fxFlex","48","fxLayoutAlign","end center"],["matInput","","formControlName","customFeeRate","placeholder","Fee Rate (Sats/vByte)","type","number","name","custFeeRate","tabindex","4",3,"step","min"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-card-header",2),A.TgZ(3,"div",3),A.TgZ(4,"span",4),A._uU(5,"Connect to a new peer"),A.qZA(),A.qZA(),A.TgZ(6,"button",5),A.NdJ("click",function(){return s.onClose()}),A._uU(7,"X"),A.qZA(),A.qZA(),A.TgZ(8,"mat-card-content",6),A.TgZ(9,"div",7),A.TgZ(10,"mat-vertical-stepper",8,9),A.NdJ("selectionChange",function(vA){return s.stepSelectionChanged(vA)}),A.TgZ(12,"mat-step",10),A.TgZ(13,"form",11),A.YNc(14,hc,1,1,"ng-template",12),A.TgZ(15,"mat-form-field",1),A._UZ(16,"input",13),A.YNc(17,Ec,2,0,"mat-error",14),A.qZA(),A.YNc(18,qa,4,2,"div",15),A.TgZ(19,"div",16),A.TgZ(20,"button",17),A.NdJ("click",function(){return s.onConnectPeer()}),A._uU(21),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.TgZ(22,"mat-step",10),A.TgZ(23,"form",18),A.NdJ("ngSubmit",function(){return s.onOpenChannel()}),A.YNc(24,_a,1,1,"ng-template",19),A.TgZ(25,"div",20),A.TgZ(26,"div",21),A.TgZ(27,"mat-form-field",22),A._UZ(28,"input",23),A.TgZ(29,"mat-hint"),A._uU(30),A.qZA(),A.TgZ(31,"span",24),A._uU(32," Sats "),A.qZA(),A.YNc(33,wc,2,0,"mat-error",14),A.YNc(34,Cc,2,0,"mat-error",14),A.YNc(35,Qc,2,1,"mat-error",14),A.qZA(),A.TgZ(36,"div",25),A.TgZ(37,"mat-slide-toggle",26),A._uU(38,"Private Channel"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(39,"div",27),A.TgZ(40,"div",28),A.TgZ(41,"mat-form-field",29),A.TgZ(42,"mat-select",30),A.YNc(43,on,2,2,"mat-option",31),A.qZA(),A.qZA(),A.YNc(44,dc,3,3,"mat-form-field",32),A.qZA(),A.TgZ(45,"div",33),A._UZ(46,"mat-checkbox",34),A.TgZ(47,"mat-form-field",35),A._UZ(48,"input",36),A.YNc(49,$a,2,0,"mat-error",14),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.YNc(50,Mc,4,2,"div",15),A.TgZ(51,"div",16),A.TgZ(52,"button",37),A._uU(53),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.TgZ(54,"div",38),A.TgZ(55,"button",39),A._uU(56),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(10),A.Q6J("linear",!0),A.xp6(2),A.Q6J("stepControl",s.peerFormGroup)("editable",s.flgEditable),A.xp6(1),A.Q6J("formGroup",s.peerFormGroup),A.xp6(4),A.Q6J("ngIf",null==s.peerFormGroup.controls.peerAddress.errors?null:s.peerFormGroup.controls.peerAddress.errors.required),A.xp6(1),A.Q6J("ngIf",""!==s.peerConnectionError),A.xp6(3),A.Oqu(""!==s.peerConnectionError?"Retry":"Add Peer"),A.xp6(1),A.Q6J("stepControl",s.channelFormGroup)("editable",s.flgEditable),A.xp6(1),A.Q6J("formGroup",s.channelFormGroup),A.xp6(5),A.Q6J("step",1e3),A.xp6(2),A.hij("Remaining Bal: ",s.totalBalance-(s.channelFormGroup.controls.fundingAmount.value?s.channelFormGroup.controls.fundingAmount.value:0),""),A.xp6(3),A.Q6J("ngIf",null==s.channelFormGroup.controls.fundingAmount.errors?null:s.channelFormGroup.controls.fundingAmount.errors.required),A.xp6(1),A.Q6J("ngIf",null==s.channelFormGroup.controls.fundingAmount.errors?null:s.channelFormGroup.controls.fundingAmount.errors.min),A.xp6(1),A.Q6J("ngIf",null==s.channelFormGroup.controls.fundingAmount.errors?null:s.channelFormGroup.controls.fundingAmount.errors.max),A.xp6(6),A.Q6J("fxFlex","customperkb"!==s.channelFormGroup.controls.selFeeRate.value||s.channelFormGroup.controls.flgMinConf.value?"100":"48"),A.xp6(2),A.Q6J("ngForOf",s.feeRateTypes),A.xp6(1),A.Q6J("ngIf","customperkb"===s.channelFormGroup.controls.selFeeRate.value&&!s.channelFormGroup.controls.flgMinConf.value),A.xp6(2),A.Q6J("ngClass",A.WLB(27,pc,s.screenSize===s.screenSizeEnum.XS||s.screenSize===s.screenSizeEnum.SM,s.screenSize===s.screenSizeEnum.MD||s.screenSize===s.screenSizeEnum.LG||s.screenSize===s.screenSizeEnum.XL)),A.xp6(2),A.Q6J("step",1)("min",0)("required",s.channelFormGroup.controls.flgMinConf.value),A.xp6(1),A.Q6J("ngIf",s.channelFormGroup.controls.flgMinConf.value&&!s.channelFormGroup.controls.minConfValue.value),A.xp6(1),A.Q6J("ngIf",""!==s.channelConnectionError),A.xp6(3),A.Oqu(""!==s.channelConnectionError?"Retry":"Open Channel"),A.xp6(2),A.Q6J("mat-dialog-close",!1),A.xp6(1),A.Oqu(null!=s.newlyAddedPeer&&s.newlyAddedPeer.id?"Do It Later":"Close"))},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Y.lW,w.dn,Mr.Vq,Mr.C0,OA._Y,OA.JL,OA.sg,Mr.VY,W.KE,Yt.Nt,OA.Fj,H.h,OA.JJ,OA.u,OA.Q7,ht.O5,OA.wV,W.bx,W.R9,QA.Rr,R.gD,ht.sg,HA.oG,ht.mk,d.oO,OA.qQ,k.q,Mt.ZT,W.TO,f.BN,wA.ey],styles:[""]}),r})();function Ic(r,v){1&r&&A._UZ(0,"mat-progress-bar",32)}function mc(r,v){1&r&&(A.TgZ(0,"th",33),A._uU(1," Alias "),A.qZA())}const Xi=function(r){return{"mr-0":r}};function Dc(r,v){if(1&r&&A._UZ(0,"span",37),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Xi,t.screenSize===t.screenSizeEnum.XS))}}function yr(r,v){if(1&r&&A._UZ(0,"span",38),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Xi,t.screenSize===t.screenSizeEnum.XS))}}const qi=function(r){return{"max-width":r}};function vc(r,v){if(1&r&&(A.TgZ(0,"td",34),A.YNc(1,Dc,1,3,"span",35),A.YNc(2,yr,1,3,"span",36),A._uU(3),A.qZA()),2&r){const t=v.$implicit,s=A.oxw();A.Q6J("ngStyle",A.VKq(4,qi,s.screenSize===s.screenSizeEnum.XS?"10rem":"40rem")),A.xp6(1),A.Q6J("ngIf",null==t?null:t.connected),A.xp6(1),A.Q6J("ngIf",!(null!=t&&t.connected)),A.xp6(1),A.hij(" ",null==t?null:t.alias," ")}}function yc(r,v){1&r&&(A.TgZ(0,"th",39),A._uU(1," ID "),A.qZA())}function xc(r,v){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=v.$implicit,s=A.oxw();A.Q6J("ngStyle",A.VKq(2,qi,s.screenSize===s.screenSizeEnum.XS?"10rem":"40rem")),A.xp6(1),A.hij(" ",null==t?null:t.id," ")}}function to(r,v){1&r&&(A.TgZ(0,"th",33),A._uU(1," Network Address "),A.qZA())}function _i(r,v){1&r&&(A.TgZ(0,"span"),A._uU(1,","),A._UZ(2,"br"),A.qZA())}function er(r,v){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.YNc(2,_i,3,0,"span",42),A.qZA()),2&r){const t=v.$implicit,s=v.last;A.xp6(1),A.Oqu(t),A.xp6(1),A.Q6J("ngIf",!s)}}function Fc(r,v){if(1&r&&(A.TgZ(0,"td",34),A.YNc(1,er,3,2,"span",41),A.qZA()),2&r){const t=v.$implicit,s=A.oxw();A.Q6J("ngStyle",A.VKq(2,qi,s.screenSize===s.screenSizeEnum.XS?"10rem":"20rem")),A.xp6(1),A.Q6J("ngForOf",null==t?null:t.netaddr)}}function Yc(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"th",43),A.TgZ(1,"div",44),A.TgZ(2,"mat-select",45),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",46),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function Tc(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",46),A.NdJ("click",function(){A.CHM(t);const G=A.oxw().$implicit;return A.oxw().onPeerDetach(G)}),A._uU(1,"Disconnect"),A.qZA()}}function Nc(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",46),A.NdJ("click",function(){A.CHM(t);const G=A.oxw().$implicit;return A.oxw().onConnectPeer(G)}),A._uU(1,"Reconnect"),A.qZA()}}function Gc(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",47),A.TgZ(1,"div",48),A.TgZ(2,"mat-select",45),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",46),A.NdJ("click",function(G){const ft=A.CHM(t).$implicit;return A.oxw().onPeerClick(ft,G)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",46),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().onOpenChannel(vA)}),A._uU(7,"Open Channel"),A.qZA(),A.YNc(8,Tc,2,0,"mat-option",49),A.YNc(9,Nc,2,0,"mat-option",49),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=v.$implicit;A.xp6(8),A.Q6J("ngIf",t.connected),A.xp6(1),A.Q6J("ngIf",!t.connected)}}function Sc(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No connected peer."),A.qZA())}function Uc(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting peers..."),A.qZA())}function Pc(r,v){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function Rc(r,v){if(1&r&&(A.TgZ(0,"td",50),A.YNc(1,Sc,2,0,"p",42),A.YNc(2,Uc,2,0,"p",42),A.YNc(3,Pc,2,1,"p",42),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(!(null!=t.peers&&t.peers.data)||(null==t.peers||null==t.peers.data?null:t.peers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.peers&&t.peers.data)||(null==t.peers||null==t.peers.data?null:t.peers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.peers&&t.peers.data)||(null==t.peers||null==t.peers.data?null:t.peers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const eo=function(r){return{"display-none":r}};function zc(r,v){if(1&r&&A._UZ(0,"tr",51),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,eo,(null==t.peers?null:t.peers.data)&&(null==t.peers||null==t.peers.data?null:t.peers.data.length)>0))}}function eA(r,v){1&r&&A._UZ(0,"tr",52)}function b(r,v){1&r&&A._UZ(0,"tr",53)}const K=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},M=function(){return["no_peer"]};let x=(()=>{class r{constructor(t,s,G,vA,ft){this.logger=t,this.store=s,this.rtlEffects=G,this.actions=vA,this.commonService=ft,this.faUsers=h.FVb,this.newlyAddedPeer="",this.displayedColumns=[],this.peerAddress="",this.peersData=[],this.information={},this.availableBalance=0,this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new l.x,new l.x,new l.x,new l.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","id","netaddr","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","id","netaddr","actions"])}ngOnInit(){this.store.select(B.Ao).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.information=t.information,this.availableBalance=t.balance.totalBalance||0}),this.store.select(B.Wi).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.peersData=t.peers||[],this.peersData.length>0&&this.loadPeersTable(this.peersData),this.logger.info(t)}),this.actions.pipe((0,i.R)(this.unSubs[2]),(0,JA.h)(t=>t.type===a.AB.SET_PEERS_CLN)).subscribe(t=>{this.peerAddress=null})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(t,s){this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Peer Information",showQRName:"Public Key",showQRField:t.id,message:[[{key:"id",value:t.id,title:"Public Key",width:100}],[{key:"netaddr",value:t.netaddr,title:"Address",width:100}],[{key:"alias",value:t.alias,title:"Alias",width:50},{key:"connected",value:t.connected?"True":"False",title:"Connected",width:50}]]}}}))}onConnectPeer(t){this.store.dispatch((0,kA.qR)({payload:{data:{message:{peer:t.id?t:null,information:this.information,balance:this.availableBalance},component:Ao}}}))}onOpenChannel(t){this.store.dispatch((0,kA.qR)({payload:{data:{alertTitle:"Open Channel",message:{peer:t,information:this.information,balance:this.availableBalance},newlyAdded:!1,component:pe}}}))}onPeerDetach(t){this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(t.alias?t.alias:t.id),noBtnText:"Cancel",yesBtnText:"Disconnect"}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[3])).subscribe(G=>{G&&this.store.dispatch((0,Et.z)({payload:{id:t.id,force:!1}}))})}applyFilter(){this.peers.filter=this.selFilter.trim().toLowerCase()}loadPeersTable(t){this.peers=new yA.by([...t]),this.peers.sortingDataAccessor=(s,G)=>{if("netaddr"===G){if(s.netaddr&&s.netaddr[0]){const vA=s.netaddr[0].toString().split(".");return vA[0]?+vA[0]:s.netaddr[0]}return""}return s[G]&&isNaN(s[G])?s[G].toLocaleLowerCase():s[G]?+s[G]:null},this.peers.sort=this.sort,this.peers.filterPredicate=(s,G)=>JSON.stringify(s).toLowerCase().includes(G),this.peers.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){this.peers.data&&this.peers.data.length>0&&this.commonService.downloadFile(this.peers.data,"Peers")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(At.V),A.Y36(C.eX),A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-peers"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(VA.NW,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.sort=G.first),A.iGM(G=A.CRH())&&(s.paginator=G.first)}},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Peers")}])],decls:36,vars:15,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["peersForm","ngForm"],["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","30","fxFlex.gt-xs","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["fxLayout","row","fxLayoutAlign","start start"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","class","px-3","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","px-3",3,"ngStyle",4,"matCellDef"],["matColumnDef","netaddr"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["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,"px-3"],["mat-cell","",1,"px-3",3,"ngStyle"],[4,"ngFor","ngForOf"],[4,"ngIf"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["fxFlex","100","fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"form",1,2),A.TgZ(3,"button",3),A.NdJ("click",function(){return s.onConnectPeer({})}),A._uU(4,"Add Peer"),A.qZA(),A.qZA(),A.TgZ(5,"div",4),A.TgZ(6,"div",5),A.TgZ(7,"div",6),A._UZ(8,"fa-icon",7),A.TgZ(9,"span",8),A._uU(10,"Connected Peers"),A.qZA(),A.qZA(),A.TgZ(11,"mat-form-field",9),A.TgZ(12,"div",10),A.TgZ(13,"input",11),A.NdJ("keyup",function(){return s.applyFilter()})("ngModelChange",function(vA){return s.selFilter=vA}),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.TgZ(14,"div",12),A.YNc(15,Ic,1,0,"mat-progress-bar",13),A.TgZ(16,"table",14,15),A.ynx(18,16),A.YNc(19,mc,2,0,"th",17),A.YNc(20,vc,4,6,"td",18),A.BQk(),A.ynx(21,19),A.YNc(22,yc,2,0,"th",20),A.YNc(23,xc,2,4,"td",21),A.BQk(),A.ynx(24,22),A.YNc(25,to,2,0,"th",17),A.YNc(26,Fc,2,4,"td",18),A.BQk(),A.ynx(27,23),A.YNc(28,Yc,6,0,"th",24),A.YNc(29,Gc,10,2,"td",25),A.BQk(),A.ynx(30,26),A.YNc(31,Rc,4,3,"td",27),A.BQk(),A.YNc(32,zc,1,3,"tr",28),A.YNc(33,eA,1,0,"tr",29),A.YNc(34,b,1,0,"tr",30),A.qZA(),A.qZA(),A._UZ(35,"mat-paginator",31),A.qZA(),A.qZA()),2&t&&(A.xp6(8),A.Q6J("icon",s.faUsers),A.xp6(5),A.Q6J("ngModel",s.selFilter),A.xp6(2),A.Q6J("ngIf",s.apiCallStatus.status===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",s.peers)("ngClass",A.VKq(12,K,""!==s.errorMessage)),A.xp6(16),A.Q6J("matFooterRowDef",A.DdM(14,M)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[Ct.xw,Ct.yH,Ct.Wh,OA._Y,OA.JL,OA.F,Y.lW,f.BN,W.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,cA.$V,ht.O5,yA.BZ,rt.YE,ht.mk,d.oO,yA.w1,yA.fO,yA.Dz,yA.mD,yA.Ke,yA.as,yA.nj,VA.NW,T.pW,yA.ge,rt.nU,yA.ev,ht.PC,d.Zl,aA.gM,ht.sg,R.gD,R.$L,wA.ey,yA.yh,yA.Q2,yA.XQ,yA.Gk],styles:[".mat-column-alias[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-id[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:2rem}.mat-column-netaddr[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();const P=["queryRoutesForm"];function tA(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Destination pubkey is required."),A.qZA())}function oA(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount is required."),A.qZA())}function sA(r,v){1&r&&A._UZ(0,"mat-progress-bar",38)}function iA(r,v){1&r&&(A.TgZ(0,"th",39),A._uU(1," ID "),A.qZA())}function SA(r,v){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.id," ")}}function jA(r,v){1&r&&(A.TgZ(0,"th",39),A._uU(1," Alias "),A.qZA())}function ct(r,v){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.alias," ")}}function qA(r,v){1&r&&(A.TgZ(0,"th",39),A._uU(1," Channel "),A.qZA())}function gt(r,v){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.channel," ")}}function pt(r,v){1&r&&(A.TgZ(0,"th",39),A._uU(1," Direction "),A.qZA())}function yt(r,v){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.direction," ")}}function Gt(r,v){1&r&&(A.TgZ(0,"th",41),A._uU(1," Delay "),A.qZA())}function $t(r,v){if(1&r&&(A.TgZ(0,"td",40),A.TgZ(1,"span",42),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.delay)," ")}}function qt(r,v){1&r&&(A.TgZ(0,"th",41),A._uU(1," Amount (Sats) "),A.qZA())}function ie(r,v){if(1&r&&(A.TgZ(0,"td",40),A.TgZ(1,"span",42),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,(null==t?null:t.msatoshi)/1e3)," ")}}function ge(r,v){1&r&&(A.TgZ(0,"th",43),A._uU(1," Amount mSat "),A.qZA())}function Ee(r,v){if(1&r&&(A.TgZ(0,"td",44),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.amount_msat," ")}}function we(r,v){1&r&&(A.TgZ(0,"th",45),A.TgZ(1,"span",42),A._uU(2,"Actions"),A.qZA(),A.qZA())}function He(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",44),A.TgZ(1,"button",46),A.NdJ("click",function(G){const ft=A.CHM(t).$implicit;return A.oxw().onHopClick(ft,G)}),A._uU(2,"View Info"),A.qZA(),A.qZA()}}function sn(r,v){1&r&&A._UZ(0,"tr",47)}function Je(r,v){1&r&&A._UZ(0,"tr",48)}const se=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}};let cn=(()=>{class r{constructor(t,s,G){this.store=t,this.clnEffects=s,this.commonService=G,this.destinationPubkey="",this.amount=null,this.flgSticky=!1,this.displayedColumns=[],this.flgLoading=[!1],this.faRoute=h.FpQ,this.faExclamationTriangle=h.eHv,this.screenSize="",this.screenSizeEnum=a.cu,this.unSubs=[new l.x,new l.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","msatoshi","actions"]):this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","direction","msatoshi","actions"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","direction","delay","msatoshi","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","channel","direction","delay","msatoshi","actions"])}ngOnInit(){this.clnEffects.setQueryRoutesCL.pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.qrHops=new yA.by([]),this.qrHops.data=[],t.routes&&t.routes.length&&t.routes.length>0?(this.flgLoading[0]=!1,this.qrHops=new yA.by([...t.routes]),this.qrHops.data=t.routes):this.flgLoading[0]="error",this.qrHops.sort=this.sort,this.qrHops.sortingDataAccessor=(s,G)=>s[G]&&isNaN(s[G])?s[G].toLocaleLowerCase():s[G]?+s[G]:null})}onQueryRoutes(){if(!this.destinationPubkey||!this.amount)return!0;this.flgLoading[0]=!0,this.store.dispatch((0,Et.WO)({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(t,s){this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Route Information",message:[[{key:"id",value:t.id,title:"ID",width:100,type:a.Gi.STRING}],[{key:"channel",value:t.channel,title:"Channel",width:50,type:a.Gi.STRING},{key:"alias",value:t.alias,title:"Peer Alias",width:50,type:a.Gi.STRING}],[{key:"msatoshi",value:t.msatoshi,title:"mSatoshi",width:50,type:a.Gi.NUMBER},{key:"amount_msat",value:t.amount_msat,title:"Amount mSat",width:50,type:a.Gi.STRING}],[{key:"direction",value:t.direction,title:"Direction",width:50,type:a.Gi.STRING},{key:"delay",value:t.delay,title:"Delay",width:50,type:a.Gi.NUMBER}]]}}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(u.yh),A.Y36(In.J),A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-query-routes"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(P,7)),2&t){let G;A.iGM(G=A.CRH())&&(s.sort=G.first),A.iGM(G=A.CRH())&&(s.form=G.first)}},decls:54,vars:16,consts:[["fxLayout","column","fxFlex","100",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",3,"ngSubmit"],["queryRoutesForm","ngForm"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","69","fxLayoutAlign","start end"],["matInput","","placeholder","Destination Pubkey","name","destinationPubkey","tabindex","1","required","",3,"ngModel","ngModelChange"],["destPubkey","ngModel"],[4,"ngIf"],["fxFlex","29","fxLayoutAlign","start end"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","type","number","required","",3,"ngModel","step","min","ngModelChange"],["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,"dataSource","ngClass"],["table",""],["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","amount_msat"],["mat-header-cell","","class","pl-4","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-4 pr-3",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-4"],["mat-cell","",1,"pl-4"],["mat-header-cell","",1,"pl-4","pr-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(t,s){if(1&t){const G=A.EpF();A.TgZ(0,"div",0),A.TgZ(1,"form",1,2),A.NdJ("ngSubmit",function(){return A.CHM(G),A.MAs(2).form.valid&&s.onQueryRoutes()}),A.TgZ(3,"div",3),A._UZ(4,"fa-icon",4),A.TgZ(5,"span"),A._uU(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),A.qZA(),A.qZA(),A.TgZ(7,"mat-form-field",5),A.TgZ(8,"input",6,7),A.NdJ("ngModelChange",function(ft){return s.destinationPubkey=ft}),A.qZA(),A.YNc(10,tA,2,0,"mat-error",8),A.qZA(),A.TgZ(11,"mat-form-field",9),A.TgZ(12,"input",10),A.NdJ("ngModelChange",function(ft){return s.amount=ft}),A.qZA(),A.YNc(13,oA,2,0,"mat-error",8),A.qZA(),A.TgZ(14,"div",11),A.TgZ(15,"button",12),A.NdJ("click",function(){return s.resetData()}),A._uU(16,"Clear"),A.qZA(),A.TgZ(17,"button",13),A._uU(18,"Query Route"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(19,"div",14),A.TgZ(20,"div",15),A._UZ(21,"fa-icon",16),A.TgZ(22,"span",17),A._uU(23,"Transaction Route"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(24,"div",18),A.YNc(25,sA,1,0,"mat-progress-bar",19),A.TgZ(26,"table",20,21),A.ynx(28,22),A.YNc(29,iA,2,0,"th",23),A.YNc(30,SA,2,1,"td",24),A.BQk(),A.ynx(31,25),A.YNc(32,jA,2,0,"th",23),A.YNc(33,ct,2,1,"td",24),A.BQk(),A.ynx(34,26),A.YNc(35,qA,2,0,"th",23),A.YNc(36,gt,2,1,"td",24),A.BQk(),A.ynx(37,27),A.YNc(38,pt,2,0,"th",23),A.YNc(39,yt,2,1,"td",24),A.BQk(),A.ynx(40,28),A.YNc(41,Gt,2,0,"th",29),A.YNc(42,$t,4,3,"td",24),A.BQk(),A.ynx(43,30),A.YNc(44,qt,2,0,"th",29),A.YNc(45,ie,4,3,"td",24),A.BQk(),A.ynx(46,31),A.YNc(47,ge,2,0,"th",32),A.YNc(48,Ee,2,1,"td",33),A.BQk(),A.ynx(49,34),A.YNc(50,we,3,0,"th",35),A.YNc(51,He,3,0,"td",33),A.BQk(),A.YNc(52,sn,1,0,"tr",36),A.YNc(53,Je,1,0,"tr",37),A.qZA(),A.qZA(),A.qZA()}2&t&&(A.xp6(4),A.Q6J("icon",s.faExclamationTriangle),A.xp6(4),A.Q6J("ngModel",s.destinationPubkey),A.xp6(2),A.Q6J("ngIf",!s.destinationPubkey),A.xp6(2),A.Q6J("ngModel",s.amount)("step",1e3)("min",0),A.xp6(1),A.Q6J("ngIf",!s.amount),A.xp6(8),A.Q6J("icon",s.faRoute),A.xp6(4),A.Q6J("ngIf",!0===s.flgLoading[0]),A.xp6(1),A.Q6J("dataSource",s.qrHops)("ngClass",A.VKq(14,se,"error"===s.flgLoading[0])),A.xp6(26),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns))},directives:[Ct.xw,Ct.yH,OA._Y,OA.JL,OA.F,Ct.Wh,f.BN,W.KE,Yt.Nt,OA.Fj,OA.Q7,OA.JJ,OA.On,ht.O5,OA.wV,OA.qQ,k.q,Y.lW,cA.$V,yA.BZ,rt.YE,ht.mk,d.oO,yA.w1,yA.fO,yA.Dz,yA.as,yA.nj,W.TO,T.pW,yA.ge,rt.nU,yA.ev,yA.XQ,yA.Gk],pipes:[ht.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{flex:0 0 5%;width:5%}.mat-column-pubkey_alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),r})();function Ve(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Message is required."),A.qZA())}let Oe=(()=>{class r{constructor(t,s,G){this.dataService=t,this.snackBar=s,this.logger=G,this.message="",this.signedMessage="",this.signature="",this.unSubs=[new l.x,new l.x]}onSign(){if(!this.message||""===this.message)return!0;this.dataService.signMessage(this.message).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.signedMessage=this.message,this.signature=t.zbase})}onMessageChange(){this.signedMessage!==this.message&&(this.signature="")}onCopyField(t){this.snackBar.open("Signature copied."),this.logger.info("Copied Text: "+t)}resetData(){this.message="",this.signature="",this.signedMessage=""}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(RA.D),A.Y36(Tr.ux),A.Y36(E.mQ))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-sign"]],decls:20,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to sign","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[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,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","4","rtlClipboard","","type","button",3,"payload","copied"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"form",1,2),A.TgZ(3,"mat-form-field",3),A.TgZ(4,"textarea",4),A.NdJ("ngModelChange",function(vA){return s.message=vA})("keyup",function(){return s.onMessageChange()}),A.qZA(),A.YNc(5,Ve,2,0,"mat-error",5),A.qZA(),A.TgZ(6,"div",6),A.TgZ(7,"button",7),A.NdJ("click",function(){return s.resetData()}),A._uU(8,"Clear Field"),A.qZA(),A.TgZ(9,"button",8),A.NdJ("click",function(){return s.onSign()}),A._uU(10,"Sign"),A.qZA(),A.qZA(),A._UZ(11,"mat-divider",9),A.TgZ(12,"div",10),A.TgZ(13,"p"),A._uU(14,"Generated Signature"),A.qZA(),A.qZA(),A.TgZ(15,"div",11),A._uU(16),A.qZA(),A.TgZ(17,"div",12),A.TgZ(18,"button",13),A.NdJ("copied",function(vA){return s.onCopyField(vA)}),A._uU(19,"Copy Signature"),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(4),A.Q6J("ngModel",s.message),A.xp6(1),A.Q6J("ngIf",!s.message),A.xp6(6),A.Q6J("inset",!0),A.xp6(5),A.Oqu(s.signature),A.xp6(2),A.Q6J("payload",s.signature))},directives:[Ct.xw,Ct.yH,Ct.Wh,OA._Y,OA.JL,OA.F,W.KE,Yt.Nt,OA.Fj,H.h,OA.Q7,OA.JJ,OA.On,ht.O5,Y.lW,AA.d,Zr.y,W.TO],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),r})();function fe(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Message is required."),A.qZA())}function qe(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Signature is required."),A.qZA())}function Ue(r,v){1&r&&(A.TgZ(0,"p",13),A.TgZ(1,"mat-icon",14),A._uU(2,"close"),A.qZA(),A._uU(3,"Verification failed, please double check message and signature"),A.qZA())}function Fe(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Pubkey Used"),A.qZA())}function $e(r,v){if(1&r&&(A.TgZ(0,"div",20),A.TgZ(1,"p"),A._uU(2),A.qZA(),A.qZA()),2&r){const t=A.oxw(2);A.xp6(2),A.Oqu(null==t.verifyRes?null:t.verifyRes.pubkey)}}function Rn(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",21),A.TgZ(1,"button",22),A.NdJ("copied",function(G){return A.CHM(t),A.oxw(2).onCopyField(G)}),A._uU(2,"Copy Pubkey"),A.qZA(),A.qZA()}if(2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("payload",null==t.verifyRes?null:t.verifyRes.pubkey)}}function gn(r,v){if(1&r&&(A.TgZ(0,"div",15),A._UZ(1,"mat-divider",16),A.TgZ(2,"div",17),A.YNc(3,Fe,2,0,"p",5),A.qZA(),A.YNc(4,$e,3,1,"div",18),A.YNc(5,Rn,3,1,"div",19),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("inset",!0),A.xp6(2),A.Q6J("ngIf",t.verifyRes.verified),A.xp6(1),A.Q6J("ngIf",t.verifyRes.verified),A.xp6(1),A.Q6J("ngIf",t.verifyRes.verified)}}let mn=(()=>{class r{constructor(t,s,G){this.dataService=t,this.snackBar=s,this.logger=G,this.message="",this.verifiedMessage="",this.signature="",this.verifiedSignature="",this.showVerifyStatus=!1,this.verifyRes={pubkey:"",verified:null},this.unSubs=[new l.x,new l.x]}onVerify(){if(!this.message||""===this.message||!this.signature||""===this.signature)return!0;this.dataService.verifyMessage(this.message,this.signature).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.verifyRes=t,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(t){this.snackBar.open("Pubkey copied."),this.logger.info("Copied Text: "+t)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(RA.D),A.Y36(Tr.ux),A.Y36(E.mQ))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-verify"]],decls:17,vars:6,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to verify","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["matInput","","placeholder","Signature provided","name","signature","tabindex","2","required","",3,"ngModel","ngModelChange","keyup"],["sign","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 h-4 padding-gap",4,"ngIf"],["fxLayout","row","class","mt-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","5","rtlClipboard","","type","button",3,"payload","copied"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"form",1,2),A.TgZ(3,"mat-form-field",3),A.TgZ(4,"textarea",4),A.NdJ("ngModelChange",function(vA){return s.message=vA})("keyup",function(){return s.onChange()}),A.qZA(),A.YNc(5,fe,2,0,"mat-error",5),A.qZA(),A.TgZ(6,"mat-form-field",3),A.TgZ(7,"input",6,7),A.NdJ("ngModelChange",function(vA){return s.signature=vA})("keyup",function(){return s.onChange()}),A.qZA(),A.YNc(9,qe,2,0,"mat-error",5),A.qZA(),A.YNc(10,Ue,4,0,"p",8),A.TgZ(11,"div",9),A.TgZ(12,"button",10),A.NdJ("click",function(){return s.resetData()}),A._uU(13,"Clear Fields"),A.qZA(),A.TgZ(14,"button",11),A.NdJ("click",function(){return s.onVerify()}),A._uU(15,"Verify"),A.qZA(),A.qZA(),A.YNc(16,gn,6,4,"div",12),A.qZA(),A.qZA()),2&t&&(A.xp6(4),A.Q6J("ngModel",s.message),A.xp6(1),A.Q6J("ngIf",!s.message),A.xp6(2),A.Q6J("ngModel",s.signature),A.xp6(2),A.Q6J("ngIf",!s.signature),A.xp6(1),A.Q6J("ngIf",s.showVerifyStatus&&!s.verifyRes.verified),A.xp6(6),A.Q6J("ngIf",s.showVerifyStatus&&s.verifyRes.verified))},directives:[Ct.xw,Ct.yH,Ct.Wh,OA._Y,OA.JL,OA.F,W.KE,Yt.Nt,OA.Fj,H.h,OA.Q7,OA.JJ,OA.On,ht.O5,Y.lW,W.TO,y.Hw,AA.d,Zr.y],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),r})();function Gn(r,v){if(1&r&&(A.TgZ(0,"div",5),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Oqu(t.errorMessage)}}function Jn(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",6),A._UZ(1,"div",7),A.TgZ(2,"mat-form-field",8),A.TgZ(3,"input",9),A.NdJ("ngModelChange",function(G){return A.CHM(t),A.oxw().filterValue=G})("input",function(){return A.CHM(t),A.oxw().applyFilter()})("keyup",function(){return A.CHM(t),A.oxw().applyFilter()}),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.filterValue)}}function vn(r,v){1&r&&A._UZ(0,"mat-progress-bar",33)}function Mn(r,v){1&r&&(A.TgZ(0,"th",34),A._uU(1,"Status"),A.qZA())}function On(r,v){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(null==t?null:t.status)}}function kn(r,v){1&r&&(A.TgZ(0,"th",34),A._uU(1,"Received Time"),A.qZA())}function me(r,v){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.received_time),"dd/MMM/y HH:mm"))}}function Pe(r,v){1&r&&(A.TgZ(0,"th",34),A._uU(1,"Resolved Time"),A.qZA())}function Ye(r,v){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.resolved_time),"dd/MMM/y HH:mm"))}}function We(r,v){1&r&&(A.TgZ(0,"th",34),A._uU(1,"In Channel"),A.qZA())}function ke(r,v){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(null==t?null:t.in_channel_alias)}}function Bn(r,v){1&r&&(A.TgZ(0,"th",34),A._uU(1,"Out Channel"),A.qZA())}function $i(r,v){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(null==t?null:t.out_channel_alias)}}function zn(r,v){1&r&&(A.TgZ(0,"th",36),A._uU(1,"Amount In (Sats)"),A.qZA())}function Aa(r,v){if(1&r&&(A.TgZ(0,"td",35),A.TgZ(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.in_msatoshi)/1e3,(null==t?null:t.in_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function ta(r,v){1&r&&(A.TgZ(0,"th",36),A._uU(1,"Amount Out (Sats)"),A.qZA())}function Lc(r,v){if(1&r&&(A.TgZ(0,"td",35),A.TgZ(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.out_msatoshi)/1e3,(null==t?null:t.out_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function bc(r,v){1&r&&(A.TgZ(0,"th",36),A._uU(1,"Fee (mSat)"),A.qZA())}function Pi(r,v){if(1&r&&(A.TgZ(0,"td",35),A.TgZ(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.lcZ(3,1,null==t?null:t.fee))}}function _r(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"th",38),A.TgZ(1,"div",39),A.TgZ(2,"mat-select",40),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",41),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function ea(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",42),A.TgZ(1,"button",43),A.NdJ("click",function(G){const ft=A.CHM(t).$implicit;return A.oxw(2).onForwardingEventClick(ft,G)}),A._uU(2,"View Info"),A.qZA(),A.qZA()}}function Ri(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No forwarding history available."),A.qZA())}function zi(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting forwarding history..."),A.qZA())}function $r(r,v){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function Ai(r,v){if(1&r&&(A.TgZ(0,"td",44),A.YNc(1,Ri,2,0,"p",45),A.YNc(2,zi,2,0,"p",45),A.YNc(3,$r,2,1,"p",45),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const ti=function(r){return{"display-none":r}};function ei(r,v){if(1&r&&A._UZ(0,"tr",46),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,ti,(null==t.forwardingHistoryEvents?null:t.forwardingHistoryEvents.data)&&(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)>0))}}function ni(r,v){1&r&&A._UZ(0,"tr",47)}function ri(r,v){1&r&&A._UZ(0,"tr",48)}const ii=function(){return["no_event"]};function ai(r,v){if(1&r&&(A.TgZ(0,"div",10),A.YNc(1,vn,1,0,"mat-progress-bar",11),A.TgZ(2,"table",12,13),A.ynx(4,14),A.YNc(5,Mn,2,0,"th",15),A.YNc(6,On,2,1,"td",16),A.BQk(),A.ynx(7,17),A.YNc(8,kn,2,0,"th",15),A.YNc(9,me,3,4,"td",16),A.BQk(),A.ynx(10,18),A.YNc(11,Pe,2,0,"th",15),A.YNc(12,Ye,3,4,"td",16),A.BQk(),A.ynx(13,19),A.YNc(14,We,2,0,"th",15),A.YNc(15,ke,2,1,"td",16),A.BQk(),A.ynx(16,20),A.YNc(17,Bn,2,0,"th",15),A.YNc(18,$i,2,1,"td",16),A.BQk(),A.ynx(19,21),A.YNc(20,zn,2,0,"th",22),A.YNc(21,Aa,4,4,"td",16),A.BQk(),A.ynx(22,23),A.YNc(23,ta,2,0,"th",22),A.YNc(24,Lc,4,4,"td",16),A.BQk(),A.ynx(25,24),A.YNc(26,bc,2,0,"th",22),A.YNc(27,Pi,4,3,"td",16),A.BQk(),A.ynx(28,25),A.YNc(29,_r,6,0,"th",26),A.YNc(30,ea,3,0,"td",27),A.BQk(),A.ynx(31,28),A.YNc(32,Ai,4,3,"td",29),A.BQk(),A.YNc(33,ei,1,3,"tr",30),A.YNc(34,ni,1,0,"tr",31),A.YNc(35,ri,1,0,"tr",32),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.forwardingHistoryEvents),A.xp6(31),A.Q6J("matFooterRowDef",A.DdM(6,ii)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}function Cr(r,v){if(1&r&&A._UZ(0,"mat-paginator",49),2&r){const t=A.oxw();A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let na=(()=>{class r{constructor(t,s,G,vA){this.logger=t,this.commonService=s,this.store=G,this.datePipe=vA,this.eventsData=[],this.filterValue="",this.successfulEvents=[],this.displayedColumns=[],this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new l.x,new l.x,new l.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["in_msatoshi","out_msatoshi","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["received_time","in_msatoshi","out_msatoshi","fee","actions"]):(this.flgSticky=!0,this.displayedColumns=["received_time","resolved_time","in_channel","out_channel","in_msatoshi","out_msatoshi","fee","actions"])}ngOnInit(){this.store.select(B.Bo).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.eventsData.length<=0&&(this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.successfulEvents=t.forwardingHistory||[],this.successfulEvents.length>0&&this.sort&&this.paginator&&this.loadForwardingEventsTable(this.successfulEvents),this.logger.info(t))})}ngAfterViewInit(){this.successfulEvents.length>0&&this.loadForwardingEventsTable(this.successfulEvents)}ngOnChanges(t){t.eventsData&&(this.apiCallStatus={status:a.Bn.COMPLETED,action:"FetchForwardingHistory"},this.eventsData=t.eventsData.currentValue,this.successfulEvents=this.eventsData,t.eventsData.firstChange||this.loadForwardingEventsTable(this.successfulEvents)),t.filterValue&&!t.filterValue.firstChange&&this.applyFilter()}onForwardingEventClick(t,s){this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Event Information",message:[[{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:a.Gi.STRING}],[{key:"status",value:"Settled",title:"Status",width:50,type:a.Gi.STRING},{key:"fee",value:t.fee,title:"Fee (mSats)",width:50,type:a.Gi.NUMBER}],[{key:"received_time",value:t.received_time,title:"Received Time",width:50,type:a.Gi.DATE_TIME},{key:"resolved_time",value:t.resolved_time,title:"Resolved Time",width:50,type:a.Gi.DATE_TIME}],[{key:"in_channel",value:t.in_channel_alias,title:"Inbound Channel",width:50,type:a.Gi.STRING},{key:"out_channel",value:t.out_channel_alias,title:"Outbound Channel",width:50,type:a.Gi.STRING}],[{key:"in_msatoshi",value:t.in_msatoshi,title:"In (mSats)",width:50,type:a.Gi.NUMBER},{key:"out_msatoshi",value:t.out_msatoshi,title:"Out (mSats)",width:50,type:a.Gi.NUMBER}]]}}}))}loadForwardingEventsTable(t){this.forwardingHistoryEvents=new yA.by([...t]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(s,G)=>s[G]&&isNaN(s[G])?s[G].toLocaleLowerCase():s[G]?+s[G]:null,this.forwardingHistoryEvents.paginator=this.paginator,this.forwardingHistoryEvents.filterPredicate=(s,G)=>((s.received_time?this.datePipe.transform(new Date(1e3*s.received_time),"dd/MMM/YYYY HH:mm").toLowerCase()+" ":"")+(s.resolved_time?this.datePipe.transform(new Date(1e3*s.resolved_time),"dd/MMM/YYYY HH:mm").toLowerCase()+" ":"")+(s.in_channel?s.in_channel.toLowerCase()+" ":"")+(s.out_channel?s.out_channel.toLowerCase()+" ":"")+(s.in_channel_alias?s.in_channel_alias.toLowerCase()+" ":"")+(s.out_channel_alias?s.out_channel_alias.toLowerCase()+" ":"")+(s.in_msatoshi?s.in_msatoshi/1e3+" ":"")+(s.out_msatoshi?s.out_msatoshi/1e3+" ":"")+(s.fee?s.fee+" ":"")).includes(G),this.logger.info(this.forwardingHistoryEvents)}onDownloadCSV(){this.forwardingHistoryEvents&&this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")}applyFilter(){this.forwardingHistoryEvents&&(this.forwardingHistoryEvents.filter=this.filterValue.trim().toLowerCase())}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh),A.Y36(ht.uU))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-forwarding-history"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(VA.NW,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.sort=G.first),A.iGM(G=A.CRH())&&(s.paginator=G.first)}},inputs:{eventsData:"eventsData",filterValue:"filterValue"},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Events")}]),A.TTD],decls:5,vars:4,consts:[["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","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","keyup"],["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,"dataSource"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","received_time"],["matColumnDef","resolved_time"],["matColumnDef","in_channel"],["matColumnDef","out_channel"],["matColumnDef","in_msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","out_msatoshi"],["matColumnDef","fee"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","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","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",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(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,Gn,2,1,"div",1),A.YNc(2,Jn,4,1,"div",2),A.YNc(3,ai,36,7,"div",3),A.YNc(4,Cr,1,3,"mat-paginator",4),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage))},directives:[Ct.xw,Ct.Wh,ht.O5,Ct.yH,W.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,cA.$V,yA.BZ,rt.YE,yA.w1,yA.fO,yA.Dz,yA.mD,yA.Ke,yA.as,yA.nj,T.pW,yA.ge,rt.nU,yA.ev,R.gD,R.$L,wA.ey,Y.lW,yA.yh,yA.Q2,ht.mk,d.oO,yA.XQ,yA.Gk,VA.NW],pipes:[ht.uU,ht.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();function no(r,v){if(1&r&&(A.TgZ(0,"div",5),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Oqu(t.errorMessage)}}function ro(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",6),A._UZ(1,"div",7),A.TgZ(2,"mat-form-field",8),A.TgZ(3,"input",9),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyFilter()})("ngModelChange",function(G){return A.CHM(t),A.oxw().selFilter=G}),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.selFilter)}}function io(r,v){1&r&&A._UZ(0,"mat-progress-bar",32)}function ra(r,v){1&r&&(A.TgZ(0,"th",33),A._uU(1,"Received Time"),A.qZA())}function Vc(r,v){if(1&r&&(A.TgZ(0,"td",34),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.received_time),"dd/MMM/y HH:mm"))}}function Wc(r,v){1&r&&(A.TgZ(0,"th",33),A._uU(1,"Resolved Time"),A.qZA())}function Xc(r,v){if(1&r&&(A.TgZ(0,"td",34),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.resolved_time),"dd/MMM/y HH:mm"))}}function qc(r,v){1&r&&(A.TgZ(0,"th",33),A._uU(1,"In Channel"),A.qZA())}function _c(r,v){if(1&r&&(A.TgZ(0,"td",34),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(null==t?null:t.in_channel_alias)}}function $c(r,v){1&r&&(A.TgZ(0,"th",33),A._uU(1,"Out Channel"),A.qZA())}function Al(r,v){if(1&r&&(A.TgZ(0,"td",34),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(null==t?null:t.out_channel_alias)}}function tl(r,v){1&r&&(A.TgZ(0,"th",35),A._uU(1,"Amount In (Sats)"),A.qZA())}function el(r,v){if(1&r&&(A.TgZ(0,"td",34),A.TgZ(1,"span",36),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.in_msatoshi)/1e3,(null==t?null:t.in_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function nl(r,v){1&r&&(A.TgZ(0,"th",35),A._uU(1,"Amount Out (Sats)"),A.qZA())}function rl(r,v){if(1&r&&(A.TgZ(0,"td",34),A.TgZ(1,"span",36),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.out_msatoshi)/1e3,(null==t?null:t.out_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function il(r,v){1&r&&(A.TgZ(0,"th",35),A._uU(1,"Fee (mSats)"),A.qZA())}function al(r,v){if(1&r&&(A.TgZ(0,"td",34),A.TgZ(1,"span",36),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,null==t?null:t.fee,"1.0-0"))}}function ol(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"th",37),A.TgZ(1,"div",38),A.TgZ(2,"mat-select",39),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",40),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function sl(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",41),A.TgZ(1,"button",42),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw(2).onFailedEventClick(vA)}),A._uU(2,"View Info"),A.qZA(),A.qZA()}}function cl(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No failed transaction available."),A.qZA())}function ll(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting failed transactions..."),A.qZA())}function gl(r,v){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function Bl(r,v){if(1&r&&(A.TgZ(0,"td",43),A.YNc(1,cl,2,0,"p",44),A.YNc(2,ll,2,0,"p",44),A.YNc(3,gl,2,1,"p",44),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedForwardingEvents&&t.failedForwardingEvents.data)||(null==t.failedForwardingEvents||null==t.failedForwardingEvents.data?null:t.failedForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedForwardingEvents&&t.failedForwardingEvents.data)||(null==t.failedForwardingEvents||null==t.failedForwardingEvents.data?null:t.failedForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedForwardingEvents&&t.failedForwardingEvents.data)||(null==t.failedForwardingEvents||null==t.failedForwardingEvents.data?null:t.failedForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const ul=function(r){return{"display-none":r}};function fl(r,v){if(1&r&&A._UZ(0,"tr",45),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,ul,(null==t.failedForwardingEvents?null:t.failedForwardingEvents.data)&&(null==t.failedForwardingEvents||null==t.failedForwardingEvents.data?null:t.failedForwardingEvents.data.length)>0))}}function hl(r,v){1&r&&A._UZ(0,"tr",46)}function El(r,v){1&r&&A._UZ(0,"tr",47)}const wl=function(){return["no_event"]};function Cl(r,v){if(1&r&&(A.TgZ(0,"div",10),A.YNc(1,io,1,0,"mat-progress-bar",11),A.TgZ(2,"table",12,13),A.ynx(4,14),A.YNc(5,ra,2,0,"th",15),A.YNc(6,Vc,3,4,"td",16),A.BQk(),A.ynx(7,17),A.YNc(8,Wc,2,0,"th",15),A.YNc(9,Xc,3,4,"td",16),A.BQk(),A.ynx(10,18),A.YNc(11,qc,2,0,"th",15),A.YNc(12,_c,2,1,"td",16),A.BQk(),A.ynx(13,19),A.YNc(14,$c,2,0,"th",15),A.YNc(15,Al,2,1,"td",16),A.BQk(),A.ynx(16,20),A.YNc(17,tl,2,0,"th",21),A.YNc(18,el,4,4,"td",16),A.BQk(),A.ynx(19,22),A.YNc(20,nl,2,0,"th",21),A.YNc(21,rl,4,4,"td",16),A.BQk(),A.ynx(22,23),A.YNc(23,il,2,0,"th",21),A.YNc(24,al,4,4,"td",16),A.BQk(),A.ynx(25,24),A.YNc(26,ol,6,0,"th",25),A.YNc(27,sl,3,0,"td",26),A.BQk(),A.ynx(28,27),A.YNc(29,Bl,4,3,"td",28),A.BQk(),A.YNc(30,fl,1,3,"tr",29),A.YNc(31,hl,1,0,"tr",30),A.YNc(32,El,1,0,"tr",31),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.failedForwardingEvents),A.xp6(28),A.Q6J("matFooterRowDef",A.DdM(6,wl)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}function Ql(r,v){if(1&r&&A._UZ(0,"mat-paginator",48),2&r){const t=A.oxw();A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let dl=(()=>{class r{constructor(t,s,G,vA,ft){this.logger=t,this.commonService=s,this.store=G,this.datePipe=vA,this.router=ft,this.errorMessage="",this.displayedColumns=[],this.flgSticky=!1,this.selFilter="",this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new l.x,new l.x,new l.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["received_time","in_channel","in_msatoshi","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["received_time","in_channel","out_channel","in_msatoshi","out_msatoshi","actions"]):(this.flgSticky=!0,this.displayedColumns=["received_time","resolved_time","in_channel","out_channel","in_msatoshi","out_msatoshi","fee","actions"])}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.store.dispatch((0,Et.Ip)()),this.store.select(B.xQ).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.failedEvents=t.failedForwardingHistory||[],this.failedEvents.length>0&&this.sort&&this.paginator&&this.loadFailedEventsTable(this.failedEvents),this.logger.info(t)})}ngAfterViewInit(){this.failedEvents.length>0&&this.loadFailedEventsTable(this.failedEvents)}onFailedEventClick(t){const s=[[{key:"received_time",value:t.received_time,title:"Received Time",width:50,type:a.Gi.DATE_TIME},{key:"resolved_time",value:t.resolved_time,title:"Resolved Time",width:50,type:a.Gi.DATE_TIME}],[{key:"in_channel_alias",value:t.in_channel_alias,title:"Inbound Channel",width:50,type:a.Gi.STRING},{key:"out_channel_alias",value:t.out_channel_alias,title:"Outbound Channel",width:50,type:a.Gi.STRING}],[{key:"in_msatoshi",value:t.in_msatoshi,title:"Amount In (mSats)",width:33,type:a.Gi.NUMBER},{key:"out_msatoshi",value:t.out_msatoshi,title:"Amount Out (mSats)",width:33,type:a.Gi.NUMBER},{key:"fee",value:t.fee,title:"Fee (mSats)",width:34,type:a.Gi.NUMBER}]];t.payment_hash&&s.unshift([{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:a.Gi.STRING}]),this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Failed Event Information",message:s}}}))}loadFailedEventsTable(t){this.failedForwardingEvents=new yA.by([...t]),this.failedForwardingEvents.sort=this.sort,this.failedForwardingEvents.sortingDataAccessor=(s,G)=>s[G]&&isNaN(s[G])?s[G].toLocaleLowerCase():s[G]?+s[G]:null,this.failedForwardingEvents.paginator=this.paginator,this.failedForwardingEvents.filterPredicate=(s,G)=>((s.received_time?this.datePipe.transform(new Date(1e3*s.received_time),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(s.resolved_time?this.datePipe.transform(new Date(1e3*s.resolved_time),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(s.payment_hash?s.payment_hash.toLowerCase():"")+(s.in_channel?s.in_channel.toLowerCase():"")+(s.out_channel?s.out_channel.toLowerCase():"")+(s.in_channel_alias?s.in_channel_alias.toLowerCase():"")+(s.out_channel_alias?s.out_channel_alias.toLowerCase():"")+(s.in_msatoshi?s.in_msatoshi/1e3:"")+(s.out_msatoshi?s.out_msatoshi/1e3:"")+(s.fee?s.fee:"")).includes(G),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")}applyFilter(){this.failedForwardingEvents.filter=this.selFilter.trim().toLowerCase()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh),A.Y36(ht.uU),A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-failed-history"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(VA.NW,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.sort=G.first),A.iGM(G=A.CRH())&&(s.paginator=G.first)}},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Failed Events")}])],decls:5,vars:4,consts:[["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","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["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,"dataSource"],["table",""],["matColumnDef","received_time"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","resolved_time"],["matColumnDef","in_channel"],["matColumnDef","out_channel"],["matColumnDef","in_msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","out_msatoshi"],["matColumnDef","fee"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","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","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",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(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,no,2,1,"div",1),A.YNc(2,ro,4,1,"div",2),A.YNc(3,Cl,33,7,"div",3),A.YNc(4,Ql,1,3,"mat-paginator",4),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage))},directives:[Ct.xw,Ct.Wh,ht.O5,Ct.yH,W.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,cA.$V,yA.BZ,rt.YE,yA.w1,yA.fO,yA.Dz,yA.mD,yA.Ke,yA.as,yA.nj,T.pW,yA.ge,rt.nU,yA.ev,R.gD,R.$L,wA.ey,Y.lW,yA.yh,yA.Q2,ht.mk,d.oO,yA.XQ,yA.Gk,VA.NW],pipes:[ht.uU,ht.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();const Ml=["tableIn"],pl=["tableOut"],Il=["paginatorIn"],ml=["paginatorOut"];function Dl(r,v){if(1&r&&(A.TgZ(0,"div",3),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Oqu(t.errorMessage)}}function vl(r,v){1&r&&A._UZ(0,"mat-progress-bar",36)}function yl(r,v){1&r&&(A.TgZ(0,"th",37),A._uU(1,"Channel ID"),A.qZA())}const ao=function(r){return{"max-width":r}};function xl(r,v){if(1&r&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&r){const t=v.$implicit,s=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,ao,s.screenSize===s.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.channel_id)}}function Fl(r,v){1&r&&(A.TgZ(0,"th",37),A._uU(1,"Peer Alias"),A.qZA())}function Yl(r,v){if(1&r&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&r){const t=v.$implicit,s=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,ao,s.screenSize===s.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.alias)}}function Tl(r,v){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Events"),A.qZA())}function Nl(r,v){if(1&r&&(A.TgZ(0,"td",40),A.TgZ(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.lcZ(3,1,t.events))}}function Sl(r,v){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Amount (Sats)"),A.qZA())}function Ul(r,v){if(1&r&&(A.TgZ(0,"td",40),A.TgZ(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.total_amount)/1e3,(null==t?null:t.total_amount)<1e3?"1.0-4":"1.0-0"))}}function Pl(r,v){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Fee (Sats)"),A.qZA())}function Rl(r,v){if(1&r&&(A.TgZ(0,"td",40),A.TgZ(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.total_fee)/1e3,(null==t?null:t.total_fee)<1e3?"1.0-4":"1.0-0"))}}function zl(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No incoming routing peer available."),A.qZA())}function Ll(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting incoming routing peers..."),A.qZA())}function bl(r,v){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function Gl(r,v){if(1&r&&(A.TgZ(0,"td",42),A.YNc(1,zl,2,0,"p",43),A.YNc(2,Ll,2,0,"p",43),A.YNc(3,bl,2,1,"p",43),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersIncoming&&t.RoutingPeersIncoming.data)||(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersIncoming&&t.RoutingPeersIncoming.data)||(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersIncoming&&t.RoutingPeersIncoming.data)||(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const Hc=function(r){return{"display-none":r}};function Hl(r,v){if(1&r&&A._UZ(0,"tr",44),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Hc,(null==t.RoutingPeersIncoming?null:t.RoutingPeersIncoming.data)&&(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)>0))}}function Jl(r,v){1&r&&A._UZ(0,"tr",45)}function Ol(r,v){1&r&&A._UZ(0,"tr",46)}function kl(r,v){1&r&&A._UZ(0,"mat-progress-bar",36)}function jl(r,v){1&r&&(A.TgZ(0,"th",37),A._uU(1,"Channel ID"),A.qZA())}function Zl(r,v){if(1&r&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&r){const t=v.$implicit,s=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,ao,s.screenSize===s.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.channel_id)}}function Kl(r,v){1&r&&(A.TgZ(0,"th",37),A._uU(1,"Peer Alias"),A.qZA())}function Vl(r,v){if(1&r&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&r){const t=v.$implicit,s=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,ao,s.screenSize===s.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.alias)}}function Wl(r,v){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Events"),A.qZA())}function Xl(r,v){if(1&r&&(A.TgZ(0,"td",40),A.TgZ(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.lcZ(3,1,t.events))}}function ql(r,v){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Amount (Sats)"),A.qZA())}function _l(r,v){if(1&r&&(A.TgZ(0,"td",40),A.TgZ(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.total_amount)/1e3,(null==t?null:t.total_amount)<1e3?"1.0-4":"1.0-0"))}}function $l(r,v){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Fee (Sats)"),A.qZA())}function Ag(r,v){if(1&r&&(A.TgZ(0,"td",40),A.TgZ(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.total_fee)/1e3,(null==t?null:t.total_fee)<1e3?"1.0-4":"1.0-0"))}}function tg(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No outgoing routing peer available."),A.qZA())}function eg(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting outgoing routing peers..."),A.qZA())}function ng(r,v){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function rg(r,v){if(1&r&&(A.TgZ(0,"td",42),A.YNc(1,tg,2,0,"p",43),A.YNc(2,eg,2,0,"p",43),A.YNc(3,ng,2,1,"p",43),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersOutgoing&&t.RoutingPeersOutgoing.data)||(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersOutgoing&&t.RoutingPeersOutgoing.data)||(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersOutgoing&&t.RoutingPeersOutgoing.data)||(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}function ig(r,v){if(1&r&&A._UZ(0,"tr",44),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Hc,(null==t.RoutingPeersOutgoing?null:t.RoutingPeersOutgoing.data)&&(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)>0))}}function ag(r,v){1&r&&A._UZ(0,"tr",45)}function og(r,v){1&r&&A._UZ(0,"tr",46)}const sg=function(r,v){return{"mt-2":r,"mt-1":v}},cg=function(){return["no_incoming_event"]},lg=function(r){return{"mt-2":r}},gg=function(){return["no_outgoing_event"]};function Bg(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",4),A.TgZ(1,"div",5),A.TgZ(2,"div",6),A.TgZ(3,"div",7),A._uU(4,"Incoming"),A.qZA(),A.TgZ(5,"mat-form-field",8),A.TgZ(6,"input",9),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyIncomingFilter()})("ngModelChange",function(G){return A.CHM(t),A.oxw().filterIn=G}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(7,"div",10),A.YNc(8,vl,1,0,"mat-progress-bar",11),A.TgZ(9,"table",12,13),A.ynx(11,14),A.YNc(12,yl,2,0,"th",15),A.YNc(13,xl,2,4,"td",16),A.BQk(),A.ynx(14,17),A.YNc(15,Fl,2,0,"th",15),A.YNc(16,Yl,2,4,"td",16),A.BQk(),A.ynx(17,18),A.YNc(18,Tl,2,0,"th",19),A.YNc(19,Nl,4,3,"td",20),A.BQk(),A.ynx(20,21),A.YNc(21,Sl,2,0,"th",19),A.YNc(22,Ul,4,4,"td",20),A.BQk(),A.ynx(23,22),A.YNc(24,Pl,2,0,"th",19),A.YNc(25,Rl,4,4,"td",20),A.BQk(),A.ynx(26,23),A.YNc(27,Gl,4,3,"td",24),A.BQk(),A.YNc(28,Hl,1,3,"tr",25),A.YNc(29,Jl,1,0,"tr",26),A.YNc(30,Ol,1,0,"tr",27),A.qZA(),A.qZA(),A._UZ(31,"mat-paginator",28,29),A.qZA(),A.TgZ(33,"div",30),A.TgZ(34,"div",6),A.TgZ(35,"div",7),A._uU(36,"Outgoing"),A.qZA(),A.TgZ(37,"mat-form-field",8),A.TgZ(38,"input",9),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyOutgoingFilter()})("ngModelChange",function(G){return A.CHM(t),A.oxw().filterOut=G}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(39,"div",31),A.YNc(40,kl,1,0,"mat-progress-bar",11),A.TgZ(41,"table",32,33),A.ynx(43,14),A.YNc(44,jl,2,0,"th",15),A.YNc(45,Zl,2,4,"td",16),A.BQk(),A.ynx(46,17),A.YNc(47,Kl,2,0,"th",15),A.YNc(48,Vl,2,4,"td",16),A.BQk(),A.ynx(49,18),A.YNc(50,Wl,2,0,"th",19),A.YNc(51,Xl,4,3,"td",20),A.BQk(),A.ynx(52,21),A.YNc(53,ql,2,0,"th",19),A.YNc(54,_l,4,4,"td",20),A.BQk(),A.ynx(55,22),A.YNc(56,$l,2,0,"th",19),A.YNc(57,Ag,4,4,"td",20),A.BQk(),A.ynx(58,34),A.YNc(59,rg,4,3,"td",24),A.BQk(),A.YNc(60,ig,1,3,"tr",25),A.YNc(61,ag,1,0,"tr",26),A.YNc(62,og,1,0,"tr",27),A.qZA(),A._UZ(63,"mat-paginator",28,35),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=A.oxw();A.xp6(2),A.Q6J("ngClass",A.WLB(22,sg,t.screenSize===t.screenSizeEnum.XS,t.screenSize===t.screenSizeEnum.SM)),A.xp6(4),A.Q6J("ngModel",t.filterIn),A.xp6(2),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.RoutingPeersIncoming),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(25,cg)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns),A.xp6(1),A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS),A.xp6(3),A.Q6J("ngClass",A.VKq(26,lg,t.screenSize!==t.screenSizeEnum.LG)),A.xp6(4),A.Q6J("ngModel",t.filterOut),A.xp6(2),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.RoutingPeersOutgoing),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(28,gg)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns),A.xp6(1),A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let ug=(()=>{class r{constructor(t,s,G){this.logger=t,this.commonService=s,this.store=G,this.eventsData=[],this.filterValue="",this.successfulEvents=[],this.displayedColumns=[],this.RoutingPeersIncoming=[],this.RoutingPeersOutgoing=[],this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.filterIn="",this.filterOut="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new l.x,new l.x,new l.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","total_fee"]):this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","events","total_fee"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","events","total_amount","total_fee"]):(this.flgSticky=!0,this.displayedColumns=["channel_id","alias","events","total_amount","total_fee"])}ngOnInit(){this.store.select(B.Bo).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.eventsData.length<=0&&(this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.successfulEvents=t.forwardingHistory||[],this.successfulEvents.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.successfulEvents),this.logger.info(t))})}ngAfterViewInit(){this.successfulEvents.length>0&&this.loadRoutingPeersTable(this.successfulEvents)}ngOnChanges(t){t.eventsData&&(this.apiCallStatus={status:a.Bn.COMPLETED,action:"FetchForwardingHistory"},this.eventsData=t.eventsData.currentValue,this.successfulEvents=this.eventsData,t.eventsData.firstChange||this.loadRoutingPeersTable(this.successfulEvents))}loadRoutingPeersTable(t){if(t.length>0){const s=this.groupRoutingPeers(t);this.RoutingPeersIncoming=new yA.by(s[0]),this.RoutingPeersIncoming.sort=this.sortIn,this.RoutingPeersIncoming.filterPredicate=(G,vA)=>JSON.stringify(G).toLowerCase().includes(vA),this.RoutingPeersIncoming.paginator=this.paginatorIn,this.logger.info(this.RoutingPeersIncoming),this.RoutingPeersOutgoing=new yA.by(s[1]),this.RoutingPeersOutgoing.sort=this.sortOut,this.RoutingPeersOutgoing.filterPredicate=(G,vA)=>JSON.stringify(G).toLowerCase().includes(vA),this.RoutingPeersOutgoing.paginator=this.paginatorOut,this.logger.info(this.RoutingPeersOutgoing)}else this.RoutingPeersIncoming=new yA.by([]),this.RoutingPeersOutgoing=new yA.by([]);this.applyIncomingFilter(),this.applyOutgoingFilter(),this.logger.info(this.RoutingPeersIncoming),this.logger.info(this.RoutingPeersOutgoing)}groupRoutingPeers(t){const s=[],G=[];return t.forEach(vA=>{const ft=s.find(un=>un.channel_id===vA.in_channel),Ce=G.find(un=>un.channel_id===vA.out_channel);ft?(ft.events++,ft.total_amount=+ft.total_amount+ +vA.in_msatoshi,ft.total_fee=vA.in_msatoshi-vA.out_msatoshi+ +ft.total_fee):s.push({channel_id:vA.in_channel,alias:vA.in_channel_alias,events:1,total_amount:vA.in_msatoshi,total_fee:vA.in_msatoshi-vA.out_msatoshi}),Ce?(Ce.events++,Ce.total_amount=+Ce.total_amount+ +vA.out_msatoshi,Ce.total_fee=vA.in_msatoshi-vA.out_msatoshi+ +Ce.total_fee):G.push({channel_id:vA.out_channel,alias:vA.out_channel_alias,events:1,total_amount:vA.out_msatoshi,total_fee:vA.in_msatoshi-vA.out_msatoshi})}),[this.commonService.sortDescByKey(s,"total_fee"),this.commonService.sortDescByKey(G,"total_fee")]}applyIncomingFilter(){this.RoutingPeersIncoming.filter=this.filterIn.toLowerCase()}applyOutgoingFilter(){this.RoutingPeersOutgoing.filter=this.filterOut.toLowerCase()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-routing-peers"]],viewQuery:function(t,s){if(1&t&&(A.Gf(Ml,5,rt.YE),A.Gf(pl,5,rt.YE),A.Gf(Il,5),A.Gf(ml,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.sortIn=G.first),A.iGM(G=A.CRH())&&(s.sortOut=G.first),A.iGM(G=A.CRH())&&(s.paginatorIn=G.first),A.iGM(G=A.CRH())&&(s.paginatorOut=G.first)}},inputs:{eventsData:"eventsData",filterValue:"filterValue"},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Peers")}]),A.TTD],decls:3,vars:2,consts:[["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",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"],["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","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["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,"dataSource"],["tableIn",""],["matColumnDef","channel_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","events"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["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","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["paginatorIn",""],["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,"dataSource"],["tableOut",""],["matColumnDef","no_outgoing_event"],["paginatorOut",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,Dl,2,1,"div",1),A.YNc(2,Bg,65,29,"div",2),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage))},directives:[Ct.xw,Ct.Wh,ht.O5,Ct.yH,ht.mk,d.oO,W.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,cA.$V,yA.BZ,rt.YE,yA.w1,yA.fO,yA.Dz,yA.mD,yA.Ke,yA.as,yA.nj,VA.NW,T.pW,yA.ge,rt.nU,yA.ev,ht.PC,d.Zl,yA.yh,yA.Q2,yA.XQ,yA.Gk],pipes:[ht.JJ],styles:[".mat-column-channelId[_ngcontent-%COMP%], .mat-column-alias[_ngcontent-%COMP%]{flex:1 1 10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),r})();function fg(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",7),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().activeLink=vA.link}),A._uU(1),A.qZA()}if(2&r){const t=v.$implicit,s=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",s.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let hg=(()=>{class r{constructor(t){this.router=t,this.faChartBar=h.koM,this.links=[{link:"routingreport",name:"Routing"},{link:"transactions",name:"Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new l.x,new l.x,new l.x,new l.x]}ngOnInit(){const t=this.links.find(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(s=>s instanceof _t.Av)).subscribe({next:s=>{const G=this.links.find(vA=>s.urlAfterRedirects.includes(vA.link));this.activeLink=G?G.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-reports"]],decls:10,vars:2,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-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Reports"),A.qZA(),A.qZA(),A.TgZ(4,"div",3),A.TgZ(5,"mat-card"),A.TgZ(6,"mat-card-content",4),A.TgZ(7,"nav",5),A.YNc(8,fg,2,3,"div",6),A.qZA(),A._UZ(9,"router-outlet"),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(1),A.Q6J("icon",s.faChartBar),A.xp6(7),A.Q6J("ngForOf",s.links))},directives:[Ct.xw,Ct.Wh,f.BN,w.a8,w.dn,ut.BU,ht.sg,_t.lC,ut.Nj,_t.rH],styles:[""]}),r})();var Jc=St(7772),Oc=St(7671),kc=St(6046);function Eg(r,v){1&r&&(A.TgZ(0,"div",14),A._UZ(1,"mat-progress-bar",15),A.TgZ(2,"p"),A._uU(3,"Getting Forwarding History..."),A.qZA(),A.qZA())}function wg(r,v){if(1&r&&(A.TgZ(0,"div",16),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Oqu(t.errorMessage)}}function Cg(r,v){if(1&r&&(A.TgZ(0,"div",17),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=A.oxw();A.Q6J("@fadeIn",t.totalFeeMsat),A.xp6(1),A.AsE("",A.xi3(2,3,t.totalFeeMsat/1e3||0,"1.0-2")," Sats/",A.lcZ(3,6,t.filteredEventsBySelectedPeriod.length||0)," Events")}}function Qg(r,v){1&r&&(A.TgZ(0,"div",14),A._uU(1,"No routing report for the selected period"),A.qZA())}function dg(r,v){if(1&r&&(A.TgZ(0,"span"),A.TgZ(1,"span",20),A._uU(2),A.ALo(3,"number"),A.qZA(),A.TgZ(4,"span",20),A._uU(5),A.ALo(6,"number"),A.qZA(),A.qZA()),2&r){const t=v.model,s=A.oxw(2);A.xp6(2),A.hij("Events: ",A.lcZ(3,2,(s.selReportBy===s.reportBy.EVENTS?t.value:t.extra.totalEvents)||0),""),A.xp6(3),A.hij("Fee: ",A.xi3(6,4,(s.selReportBy===s.reportBy.EVENTS?t.extra.totalFees:t.value)||0,"1.0-2"),"")}}function Mg(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"ngx-charts-bar-vertical",18),A.NdJ("select",function(G){return A.CHM(t),A.oxw().onChartBarSelected(G)})("mouseup",function(G){return A.CHM(t),A.oxw().onChartMouseUp(G)}),A.YNc(1,dg,7,7,"ng-template",null,19,A.W1O),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("view",t.view)("results",t.routingReportData)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",t.showYAxisLabel)("xAxisLabel",t.xAxisLabel)("yAxisLabel",t.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)}}function pg(r,v){if(1&r&&A._UZ(0,"rtl-cln-forwarding-history",21),2&r){const t=A.oxw();A.Q6J("eventsData",t.filteredEventsBySelectedPeriod)("filterValue",t.eventFilterValue)}}let Ig=(()=>{class r{constructor(t,s,G){this.logger=t,this.commonService=s,this.store=G,this.reportPeriod=a.op[0],this.secondsInADay=86400,this.events=[],this.filteredEventsBySelectedPeriod=[],this.eventFilterValue="",this.reportBy=a.Xr,this.selReportBy=a.Xr.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=a.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new l.x,new l.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===a.cu.XS||this.screenSize===a.cu.SM),this.store.select(B.Bo).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.events=t.forwardingHistory||[],this.filterForwardingEvents(this.startDate,this.endDate),this.logger.info(t)}),this.commonService.containerSizeUpdated.pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{switch(this.screenSize){case a.cu.MD:this.screenPaddingX=t.width/10;break;case a.cu.LG:this.screenPaddingX=t.width/16;break;default:this.screenPaddingX=t.width/20}this.view=[t.width-this.screenPaddingX,t.height/2.2],this.logger.info("Container Size: "+JSON.stringify(t)),this.logger.info("View: "+JSON.stringify(this.view))})}filterForwardingEvents(t,s){const G=Math.round(t.getTime()/1e3),vA=Math.round(s.getTime()/1e3);this.filteredEventsBySelectedPeriod=[],this.routingReportData=[],this.totalFeeMsat=null,this.events&&this.events.length>0&&(this.events.forEach(ft=>{ft.received_time>=G&&ft.received_time0&&"ngx-charts"===t.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(t){this.eventFilterValue=this.reportPeriod===a.op[1]?t.name+"/"+this.startDate.getFullYear():t.name.toString().padStart(2,"0")+"/"+a.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}prepareFeeReport(t){const s=Math.round(t.getTime()/1e3),G=[];if(this.totalFeeMsat=0,this.reportPeriod===a.op[1]){for(let vA=0;vA<12;vA++)G.push({name:a.gg[vA].name,value:0,extra:{totalEvents:0}});this.filteredEventsBySelectedPeriod.map(vA=>{const ft=new Date(1e3*+vA.received_time).getMonth();return G[ft].value=G[ft].value+ +vA.fee/1e3,G[ft].extra.totalEvents=G[ft].extra.totalEvents+1,this.totalFeeMsat=(this.totalFeeMsat?this.totalFeeMsat:0)+ +vA.fee,this.filteredEventsBySelectedPeriod})}else{for(let vA=0;vA{const ft=Math.floor((+vA.received_time-s)/this.secondsInADay);return G[ft].value=G[ft].value+ +vA.fee/1e3,G[ft].extra.totalEvents=G[ft].extra.totalEvents+1,this.totalFeeMsat=(this.totalFeeMsat?this.totalFeeMsat:0)+ +vA.fee,this.filteredEventsBySelectedPeriod})}return G}prepareEventsReport(t){const s=Math.round(t.getTime()/1e3),G=[];if(this.totalFeeMsat=0,this.reportPeriod===a.op[1]){for(let vA=0;vA<12;vA++)G.push({name:a.gg[vA].name,value:0,extra:{totalFees:0}});this.filteredEventsBySelectedPeriod.map(vA=>{const ft=new Date(1e3*+vA.received_time).getMonth();return G[ft].value=G[ft].value+1,G[ft].extra.totalFees=G[ft].extra.totalFees+ +vA.fee/1e3,this.totalFeeMsat=(this.totalFeeMsat?this.totalFeeMsat:0)+ +vA.fee,this.filteredEventsBySelectedPeriod})}else{for(let vA=0;vA{const ft=Math.floor((+vA.received_time-s)/this.secondsInADay);return G[ft].value=G[ft].value+1,G[ft].extra.totalFees=G[ft].extra.totalFees+ +vA.fee/1e3,this.totalFeeMsat=(this.totalFeeMsat?this.totalFeeMsat:0)+ +vA.fee,this.filteredEventsBySelectedPeriod})}return G}onSelectionChange(t){const s=t.selDate.getMonth(),G=t.selDate.getFullYear();this.reportPeriod=t.selScrollRange,this.reportPeriod===a.op[1]?(this.startDate=new Date(G,0,1,0,0,0),this.endDate=new Date(G,11,31,23,59,59)):(this.startDate=new Date(G,s,1,0,0,0),this.endDate=new Date(G,s,this.getMonthDays(s,G),23,59,59)),this.filterForwardingEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(t,s){return 1===t&&s%4==0?a.gg[t].days+1:a.gg[t].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(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-routing-report"]],hostBindings:function(t,s){1&t&&A.NdJ("mouseup",function(vA){return s.onChartMouseUp(vA)})},decls:19,vars:9,consts:[["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 start",1,"my-1",3,"ngModel","ngModelChange","change"],[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"],[3,"eventsData","filterValue",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,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"eventsData","filterValue"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"rtl-horizontal-scroller",1),A.NdJ("stepChanged",function(vA){return s.onSelectionChange(vA)}),A.qZA(),A.TgZ(2,"div",2),A.TgZ(3,"mat-radio-group",3),A.NdJ("ngModelChange",function(vA){return s.selReportBy=vA})("change",function(){return s.onSelReportByChange()}),A.TgZ(4,"span",4),A._uU(5,"Report By: "),A.qZA(),A.TgZ(6,"mat-radio-button",5),A._uU(7,"Fees"),A.qZA(),A.TgZ(8,"mat-radio-button",6),A._uU(9,"Events"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(10,"div",7),A.YNc(11,Eg,4,0,"div",8),A.YNc(12,wg,2,1,"div",9),A.YNc(13,Cg,4,8,"div",10),A.YNc(14,Qg,2,0,"div",8),A.TgZ(15,"div",11),A.YNc(16,Mg,3,11,"ngx-charts-bar-vertical",12),A.qZA(),A.TgZ(17,"div",11),A.YNc(18,pg,1,2,"rtl-cln-forwarding-history",13),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(3),A.Q6J("ngModel",s.selReportBy),A.xp6(3),A.s9C("value",s.reportBy.FEES),A.xp6(2),A.s9C("value",s.reportBy.EVENTS),A.xp6(3),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.ERROR),A.xp6(1),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.COMPLETED&&s.routingReportData.length>0&&s.filteredEventsBySelectedPeriod.length>0),A.xp6(1),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.COMPLETED&&(s.routingReportData.length<=0||s.filteredEventsBySelectedPeriod.length<=0)),A.xp6(2),A.Q6J("ngIf",s.routingReportData.length>0&&s.filteredEventsBySelectedPeriod.length>0),A.xp6(2),A.Q6J("ngIf",s.filteredEventsBySelectedPeriod&&s.filteredEventsBySelectedPeriod.length>0))},directives:[Ct.xw,Ct.Wh,Ct.yH,Oc.D,zA.VQ,OA.JJ,OA.On,zA.U0,ht.O5,T.pW,kc.K$,na],pipes:[ht.JJ],styles:[""],data:{animation:[Jc.J]}}),r})();var mg=St(165);function Dg(r,v){if(1&r&&(A.TgZ(0,"div",10),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.AsE(" Paid ",A.xi3(2,2,t.transactionsReportSummary.amountPaidSelectedPeriod/1e3||0,"1.0-2")," Sats/",A.lcZ(3,5,t.transactionsReportSummary.paymentsSelectedPeriod)," Payments ")}}function vg(r,v){if(1&r&&(A.TgZ(0,"div",10),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.AsE(" Received ",A.xi3(2,2,t.transactionsReportSummary.amountReceivedSelectedPeriod/1e3||0,"1.0-2")," Sats/",A.lcZ(3,5,t.transactionsReportSummary.invoicesSelectedPeriod)," Invoices ")}}function yg(r,v){if(1&r&&(A.TgZ(0,"div",8),A.YNc(1,Dg,4,7,"div",9),A.YNc(2,vg,4,7,"div",9),A.qZA()),2&r){const t=A.oxw();A.Q6J("@fadeIn",t.transactionsReportSummary),A.xp6(1),A.Q6J("ngIf",t.transactionsReportSummary.paymentsSelectedPeriod),A.xp6(1),A.Q6J("ngIf",t.transactionsReportSummary.invoicesSelectedPeriod)}}function xg(r,v){1&r&&(A.TgZ(0,"div",11),A._uU(1,"No transactions report for the selected period"),A.qZA())}function Fg(r,v){if(1&r&&(A.TgZ(0,"span",14),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=v.model;A.xp6(1),A.HOy("",t.name,": ",A.xi3(2,4,t.value||0,"1.0-2"),"/# ","Paid"===t.name?"Payments":"Invoices",": ",A.lcZ(3,7,(null==t.extra?null:t.extra.total)||0),"")}}function Yg(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"ngx-charts-bar-vertical-2d",12),A.NdJ("select",function(G){return A.CHM(t),A.oxw().onChartBarSelected(G)})("mouseup",function(G){return A.CHM(t),A.oxw().onChartMouseUp(G)}),A.YNc(1,Fg,4,9,"ng-template",null,13,A.W1O),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("view",t.view)("results",t.transactionsReportData)("noBarWhenZero",!1)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",t.showYAxisLabel)("xAxisLabel",t.xAxisLabel)("yAxisLabel",t.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)("groupPadding",t.reportPeriod===t.scrollRanges[0]?2:4)}}function Tg(r,v){if(1&r&&A._UZ(0,"rtl-transactions-report-table",15),2&r){const t=A.oxw();A.Q6J("dataList",t.transactionsNonZeroReportData)("dataRange",t.reportPeriod)("filterValue",t.transactionFilterValue)}}let Ng=(()=>{class r{constructor(t,s,G){this.logger=t,this.commonService=s,this.store=G,this.scrollRanges=a.op,this.reportPeriod=a.op[0],this.secondsInADay=86400,this.payments=[],this.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=a.cu,this.unSubs=[new l.x,new l.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===a.cu.XS||this.screenSize===a.cu.SM),this.store.select(B.PP).pipe((0,i.R)(this.unSubs[0]),(0,o.M)(this.store.select(B.gc))).subscribe(([t,s])=>{this.payments=t.payments,this.invoices=s.listInvoices.invoices,this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData()}),this.commonService.containerSizeUpdated.pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{switch(this.screenSize){case a.cu.MD:this.screenPaddingX=t.width/10;break;case a.cu.LG:this.screenPaddingX=t.width/16;break;default:this.screenPaddingX=t.width/20}this.view=[t.width-this.screenPaddingX,t.height/2.2],this.logger.info("Container Size: "+JSON.stringify(t)),this.logger.info("View: "+JSON.stringify(this.view))})}onChartMouseUp(t){"svg"===t.srcElement.tagName&&t.srcElement.classList.length>0&&"ngx-charts"===t.srcElement.classList[0]&&(this.transactionFilterValue="")}onChartBarSelected(t){this.transactionFilterValue=this.reportPeriod===a.op[1]?t.series+"/"+this.startDate.getFullYear():t.series.toString().padStart(2,"0")+"/"+a.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(t,s){const G=Math.round(t.getTime()/1e3),vA=Math.round(s.getTime()/1e3),ft=[];this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};const Ce=this.payments.filter(Qe=>"complete"===Qe.status&&Qe.created_at>=G&&Qe.created_at"paid"===Qe.status&&Qe.paid_at>=G&&Qe.paid_at{const An=new Date(1e3*Qe.created_at).getMonth();return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+Qe.msatoshi_sent,ft[An].series[0].value=ft[An].series[0].value+Qe.msatoshi_sent/1e3,ft[An].series[0].extra.total=ft[An].series[0].extra.total+1,this.transactionsReportSummary}),un.map(Qe=>{const An=new Date(1e3*+Qe.paid_at).getMonth();return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+Qe.msatoshi_received,ft[An].series[1].value=ft[An].series[1].value+Qe.msatoshi_received/1e3,ft[An].series[1].extra.total=ft[An].series[1].extra.total+1,this.transactionsReportSummary})}else{for(let Qe=0;Qe{const An=Math.floor((+Qe.created_at-G)/this.secondsInADay);return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+Qe.msatoshi_sent,ft[An].series[0].value=ft[An].series[0].value+Qe.msatoshi_sent/1e3,ft[An].series[0].extra.total=ft[An].series[0].extra.total+1,this.transactionsReportSummary}),un.map(Qe=>{const An=Math.floor((+Qe.paid_at-G)/this.secondsInADay);return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+Qe.msatoshi_received,ft[An].series[1].value=ft[An].series[1].value+Qe.msatoshi_received/1e3,ft[An].series[1].extra.total=ft[An].series[1].extra.total+1,this.transactionsReportSummary})}return ft}prepareTableData(){return this.transactionsReportData.reduce((t,s)=>s.series[0].extra.total>0||s.series[1].extra.total>0?t.concat({date:s.date,amount_paid:s.series[0].value,num_payments:s.series[0].extra.total,amount_received:s.series[1].value,num_invoices:s.series[1].extra.total}):t,[])}onSelectionChange(t){const s=t.selDate.getMonth(),G=t.selDate.getFullYear();this.reportPeriod=t.selScrollRange,this.reportPeriod===a.op[1]?(this.startDate=new Date(G,0,1,0,0,0),this.endDate=new Date(G,11,31,23,59,59)):(this.startDate=new Date(G,s,1,0,0,0),this.endDate=new Date(G,s,this.getMonthDays(s,G),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(t,s){return 1===t&&s%4==0?a.gg[t].days+1:a.gg[t].days}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-transactions-report"]],hostBindings:function(t,s){1&t&&A.NdJ("mouseup",function(vA){return s.onChartMouseUp(vA)})},decls:9,vars:4,consts:[["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,"dataList","dataRange","filterValue",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,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"dataList","dataRange","filterValue"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"rtl-horizontal-scroller",1),A.NdJ("stepChanged",function(vA){return s.onSelectionChange(vA)}),A.qZA(),A.TgZ(2,"div",2),A.YNc(3,yg,3,3,"div",3),A.YNc(4,xg,2,0,"div",4),A.TgZ(5,"div",5),A.YNc(6,Yg,3,13,"ngx-charts-bar-vertical-2d",6),A.qZA(),A.TgZ(7,"div",5),A.YNc(8,Tg,1,3,"rtl-transactions-report-table",7),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(3),A.Q6J("ngIf",s.transactionsNonZeroReportData.length>0),A.xp6(1),A.Q6J("ngIf",s.transactionsNonZeroReportData.length<=0),A.xp6(2),A.Q6J("ngIf",s.transactionsNonZeroReportData.length>0),A.xp6(2),A.Q6J("ngIf",s.transactionsNonZeroReportData.length>0))},directives:[Ct.xw,Ct.Wh,Ct.yH,Oc.D,ht.O5,kc.H5,mg.g],pipes:[ht.JJ],styles:[""],data:{animation:[Jc.J]}}),r})();var ze=St(1643),Sg=St(9442);function Ug(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",8),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().activeLink=vA.link}),A._uU(1),A.qZA()}if(2&r){const t=v.$implicit,s=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",s.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let Pg=(()=>{class r{constructor(t){this.router=t,this.faSearch=h.wn1,this.links=[{link:"lookups",name:"Lookup"},{link:"queryroutes",name:"Query Routes"}],this.activeLink=this.links[0].link,this.unSubs=[new l.x,new l.x,new l.x,new l.x]}ngOnInit(){const t=this.links.find(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(s=>s instanceof _t.Av)).subscribe({next:s=>{const G=this.links.find(vA=>s.urlAfterRedirects.includes(vA.link));this.activeLink=G?G.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-graph"]],decls:11,vars:2,consts:[["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",""],["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"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Graph Lookups"),A.qZA(),A.qZA(),A.TgZ(4,"div",3),A.TgZ(5,"mat-card"),A.TgZ(6,"mat-card-content",4),A.TgZ(7,"nav",5),A.YNc(8,Ug,2,3,"div",6),A.qZA(),A.TgZ(9,"div",7),A._UZ(10,"router-outlet"),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(1),A.Q6J("icon",s.faSearch),A.xp6(7),A.Q6J("ngForOf",s.links))},directives:[Ct.xw,Ct.Wh,f.BN,w.a8,w.dn,ut.BU,ht.sg,Ct.yH,_t.lC,ut.Nj,_t.rH],styles:[""]}),r})();var Rg=St(4641),zg=St(8493);function Lg(r,v){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.offerError)}}function bg(r,v){if(1&r&&(A.TgZ(0,"div",21),A._UZ(1,"fa-icon",22),A.YNc(2,Lg,2,1,"span",23),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.offerError)}}let Gg=(()=>{class r{constructor(t,s,G,vA,ft,Ce){this.dialogRef=t,this.data=s,this.store=G,this.decimalPipe=vA,this.commonService=ft,this.actions=Ce,this.faExclamationTriangle=h.eHv,this.selNode={},this.description="",this.vendor="",this.offerValueHint="",this.information={},this.pageSize=a.IV,this.offerError="",this.unSubs=[new l.x,new l.x,new l.x,new l.x,new l.x]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(B.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(B.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.information=t,this.vendor=this.information.alias}),this.actions.pipe((0,i.R)(this.unSubs[2]),(0,JA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&"SaveNewOffer"===t.payload.action&&(t.payload.status===a.Bn.ERROR&&(this.offerError=t.payload.message),t.payload.status===a.Bn.COMPLETED&&this.dialogRef.close())})}onAddOffer(){this.offerError="",this.store.dispatch((0,Et.dh)({payload:{amount:this.offerValue?this.offerValue+"sats":"any",description:this.description,vendor:this.vendor}}))}resetData(){this.description="",this.vendor=this.information.alias,this.offerValue=null,this.offerValueHint="",this.offerError=""}onOfferValueChange(){this.selNode.fiatConversion&&this.offerValue>99&&(this.offerValueHint="",this.commonService.convertCurrency(this.offerValue,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[3])).subscribe({next:t=>{this.offerValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,a.Xz.OTHER)+" "+t.unit},error:t=>{this.offerValueHint="Conversion Error: "+t}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(u.yh),A.Y36(ht.JJ),A.Y36(e.v),A.Y36(C.eX))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-create-offer"]],decls:28,vars:8,consts:[["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","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"],["addOfferForm","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","autoFocus","","placeholder","Description","tabindex","1","name","description",3,"ngModel","ngModelChange"],["fxLayout","row","fxLayoutAlign","space-between start","fxFlex","100"],["fxFlex","40"],["matInput","","placeholder","Amount","type","number","tabindex","2","name","offerValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxFlex","58","fxLayoutAlign","start end"],["matInput","","placeholder","Vendor","tabindex","3","name","vendor",3,"ngModel","ngModelChange"],["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(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-card-header",2),A.TgZ(3,"div",3),A.TgZ(4,"span",4),A._uU(5,"Create Offer"),A.qZA(),A.qZA(),A.TgZ(6,"button",5),A._uU(7,"X"),A.qZA(),A.qZA(),A.TgZ(8,"mat-card-content",6),A.TgZ(9,"form",7,8),A.TgZ(11,"mat-form-field",9),A.TgZ(12,"input",10),A.NdJ("ngModelChange",function(vA){return s.description=vA}),A.qZA(),A.qZA(),A.TgZ(13,"div",11),A.TgZ(14,"mat-form-field",12),A.TgZ(15,"input",13),A.NdJ("ngModelChange",function(vA){return s.offerValue=vA})("keyup",function(){return s.onOfferValueChange()}),A.qZA(),A.TgZ(16,"span",14),A._uU(17," Sats "),A.qZA(),A.TgZ(18,"mat-hint"),A._uU(19),A.qZA(),A.qZA(),A.TgZ(20,"mat-form-field",15),A.TgZ(21,"input",16),A.NdJ("ngModelChange",function(vA){return s.vendor=vA}),A.qZA(),A.qZA(),A.qZA(),A.YNc(22,bg,3,2,"div",17),A.TgZ(23,"div",18),A.TgZ(24,"button",19),A.NdJ("click",function(){return s.resetData()}),A._uU(25,"Clear Field"),A.qZA(),A.TgZ(26,"button",20),A.NdJ("click",function(){return s.onAddOffer()}),A._uU(27,"Create Offer"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(6),A.Q6J("mat-dialog-close",!1),A.xp6(6),A.Q6J("ngModel",s.description),A.xp6(3),A.Q6J("ngModel",s.offerValue)("step",100)("min",1),A.xp6(4),A.Oqu(s.offerValueHint),A.xp6(2),A.Q6J("ngModel",s.vendor),A.xp6(1),A.Q6J("ngIf",""!==s.offerError))},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Y.lW,Mt.ZT,w.dn,OA._Y,OA.JL,OA.F,W.KE,Yt.Nt,OA.Fj,H.h,OA.JJ,OA.On,OA.wV,OA.qQ,k.q,W.R9,W.bx,ht.O5,f.BN],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();var jc=St(1462);function Hg(r,v){1&r&&A._UZ(0,"mat-progress-bar",28)}function Jg(r,v){1&r&&(A.TgZ(0,"th",29),A._uU(1," Offer ID "),A.qZA())}const Zc=function(r){return{"mr-0":r}};function Og(r,v){if(1&r&&A._UZ(0,"span",35),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Zc,t.screenSize===t.screenSizeEnum.XS))}}function kg(r,v){if(1&r&&A._UZ(0,"span",36),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Zc,t.screenSize===t.screenSizeEnum.XS))}}const jg=function(r){return{"max-width":r}};function Zg(r,v){if(1&r&&(A.TgZ(0,"td",30),A.TgZ(1,"div",31),A.TgZ(2,"span",32),A.YNc(3,Og,1,3,"span",33),A.YNc(4,kg,1,3,"span",34),A._uU(5),A.qZA(),A.qZA(),A.qZA()),2&r){const t=v.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(4,jg,s.screenSize===s.screenSizeEnum.XS?"25rem":"45rem")),A.xp6(2),A.Q6J("ngIf",t.active),A.xp6(1),A.Q6J("ngIf",!t.active),A.xp6(1),A.hij(" ",t.offer_id," ")}}function Kg(r,v){1&r&&(A.TgZ(0,"th",29),A._uU(1," Single Use "),A.qZA())}function Vg(r,v){if(1&r&&(A.TgZ(0,"td",30),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(t.single_use?"Yes":"No")}}function Wg(r,v){1&r&&(A.TgZ(0,"th",29),A._uU(1," Used "),A.qZA())}function Xg(r,v){if(1&r&&(A.TgZ(0,"td",30),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",t.used?"Yes":"No"," ")}}function qg(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"th",37),A.TgZ(1,"div",38),A.TgZ(2,"mat-select",39),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",40),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function _g(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",40),A.NdJ("click",function(){A.CHM(t);const G=A.oxw().$implicit;return A.oxw().onDisableOffer(G)}),A._uU(1,"Disable Offer"),A.qZA()}}function $g(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",40),A.NdJ("click",function(){A.CHM(t);const G=A.oxw().$implicit;return A.oxw().onPrintOffer(G)}),A._uU(1,"Export QR code"),A.qZA()}}const AB=function(r){return{"px-3":r}};function tB(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",41),A.TgZ(1,"div",42),A.TgZ(2,"mat-select",43),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",40),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().onOfferClick(vA)}),A._uU(5,"View Info"),A.qZA(),A.YNc(6,_g,2,0,"mat-option",44),A.YNc(7,$g,2,0,"mat-option",44),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=v.$implicit,s=A.oxw();A.Q6J("ngClass",A.VKq(3,AB,s.screenSize!==s.screenSizeEnum.XS)),A.xp6(6),A.Q6J("ngIf",t.active),A.xp6(1),A.Q6J("ngIf",t.active)}}function eB(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No offer available."),A.qZA())}function nB(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting offers..."),A.qZA())}function rB(r,v){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function iB(r,v){if(1&r&&(A.TgZ(0,"td",45),A.YNc(1,eB,2,0,"p",46),A.YNc(2,nB,2,0,"p",46),A.YNc(3,rB,2,1,"p",46),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(!(null!=t.offers&&t.offers.data)||(null==t.offers||null==t.offers.data?null:t.offers.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.offers&&t.offers.data)||(null==t.offers||null==t.offers.data?null:t.offers.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.offers&&t.offers.data)||(null==t.offers||null==t.offers.data?null:t.offers.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const aB=function(r){return{"display-none":r}};function oB(r,v){if(1&r&&A._UZ(0,"tr",47),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,aB,(null==t.offers?null:t.offers.data)&&(null==t.offers||null==t.offers.data?null:t.offers.data.length)>0))}}function sB(r,v){1&r&&A._UZ(0,"tr",48)}function cB(r,v){1&r&&A._UZ(0,"tr",49)}const lB=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},gB=function(){return["no_offer"]};let BB=(()=>{class r{constructor(t,s,G,vA,ft,Ce,un){this.logger=t,this.store=s,this.commonService=G,this.rtlEffects=vA,this.dataService=ft,this.decimalPipe=Ce,this.datePipe=un,this.faHistory=h.qO$,this.selNode={},this.newlyAddedOfferMemo="",this.newlyAddedOfferValue=0,this.description="",this.offerValue=null,this.offerValueHint="",this.displayedColumns=[],this.offerPaymentReq="",this.offerJSONArr=[],this.information={},this.flgSticky=!1,this.private=!1,this.expiryStep=100,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new l.x,new l.x,new l.x,new l.x,new l.x,new l.x,new l.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["offer_id","single_use","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["offer_id","single_use","used","actions"]):(this.flgSticky=!0,this.displayedColumns=["offer_id","single_use","used","actions"])}ngOnInit(){this.store.select(B.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(B.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(B.Y_).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.offerJSONArr=t.offers||[],this.offerJSONArr&&this.offerJSONArr.length>0&&this.sort&&this.paginator&&this.loadOffersTable(this.offerJSONArr),this.logger.info(t)})}ngAfterViewInit(){this.offerJSONArr&&this.offerJSONArr.length>0&&this.sort&&this.paginator&&this.loadOffersTable(this.offerJSONArr)}openCreateOfferModal(){this.store.dispatch((0,kA.qR)({payload:{data:{pageSize:this.pageSize,component:Gg}}}))}onOfferClick(t){this.store.dispatch((0,kA.qR)({payload:{data:{offer:{used:t.used,single_use:t.single_use,active:t.active,offer_id:t.offer_id,bolt12:t.bolt12,bolt12_unsigned:t.bolt12_unsigned},newlyAdded:!1,component:jc.k}}}))}onDisableOffer(t){this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Disable Offer",titleMessage:"Disabling Offer: "+(t.offer_id||t.bolt12),noBtnText:"Cancel",yesBtnText:"Disable"}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[3])).subscribe(s=>{s&&this.store.dispatch((0,Et.i9)({payload:{offer_id:t.offer_id}}))})}onPrintOffer(t){this.dataService.decodePayment(t.bolt12,!1).pipe((0,UA.q)(1)).subscribe(s=>{s.offer_id&&!s.amount_msat?(s.amount_msat="0msat",s.amount=0):s.amount=+(s.amount||s.amount_msat.slice(0,-4));const G={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:s.vendor||s.issuer||"",alignment:"center",fontSize:25,color:"#272727",margin:[0,20,0,0]},content:[{svg:'',width:249,height:40,alignment:"center"},{text:s.description?s.description.substring(0,160):"",alignment:"center",fontSize:16,color:"#5C5C5C"},{qr:t.bolt12,eccLevel:"M",fit:"227",alignment:"center",absolutePosition:{x:7,y:205}},{text:(null==s?void 0:s.amount_msat)&&0!==(null==s?void 0:s.amount)?this.decimalPipe.transform(s.amount/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"}};Rg.createPdf(G,null,null,zg.I.vfs).download("Offer-"+(s&&s.description?s.description:t.bolt12))})}applyFilter(){this.offers.filter=this.selFilter.trim().toLowerCase()}loadOffersTable(t){this.offers=new yA.by(t?[...t]:[]),this.offers.sortingDataAccessor=(s,G)=>s[G]&&isNaN(s[G])?s[G].toLocaleLowerCase():s[G]?+s[G]:null,this.offers.sort=this.sort,this.offers.filterPredicate=(s,G)=>(("active"===G||"inactive"===G||"used"===G||"unused"===G||"single"===G||"multiple"===G)&&(G=" "+G),((s.active?" active":" inactive")+(s.used?" used":" unused")+(s.single_use?" single":" multiple")+JSON.stringify(s).toLowerCase()).includes(G)),this.offers.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){this.offers.data&&this.offers.data.length>0&&this.commonService.downloadFile(this.offers.data,"Offers")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(e.v),A.Y36(At.V),A.Y36(RA.D),A.Y36(ht.JJ),A.Y36(ht.uU))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-offers-table"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(VA.NW,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.sort=G.first),A.iGM(G=A.CRH())&&(s.paginator=G.first)}},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Offers")}])],decls:34,vars:15,consts:[["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","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","offer_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","single_use"],["matColumnDef","used"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_offer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["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"],["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","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["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(t,s){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"button",2),A.NdJ("click",function(){return s.openCreateOfferModal()}),A._uU(3,"Create Offer"),A.qZA(),A.qZA(),A.TgZ(4,"div",3),A.TgZ(5,"div",4),A.TgZ(6,"div",5),A._UZ(7,"fa-icon",6),A.TgZ(8,"span",7),A._uU(9,"Offers History"),A.qZA(),A.qZA(),A.TgZ(10,"mat-form-field",8),A.TgZ(11,"input",9),A.NdJ("keyup",function(){return s.applyFilter()})("ngModelChange",function(vA){return s.selFilter=vA}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(12,"div",10),A.YNc(13,Hg,1,0,"mat-progress-bar",11),A.TgZ(14,"table",12,13),A.ynx(16,14),A.YNc(17,Jg,2,0,"th",15),A.YNc(18,Zg,6,6,"td",16),A.BQk(),A.ynx(19,17),A.YNc(20,Kg,2,0,"th",15),A.YNc(21,Vg,2,1,"td",16),A.BQk(),A.ynx(22,18),A.YNc(23,Wg,2,0,"th",15),A.YNc(24,Xg,2,1,"td",16),A.BQk(),A.ynx(25,19),A.YNc(26,qg,6,0,"th",20),A.YNc(27,tB,8,5,"td",21),A.BQk(),A.ynx(28,22),A.YNc(29,iB,4,3,"td",23),A.BQk(),A.YNc(30,oB,1,3,"tr",24),A.YNc(31,sB,1,0,"tr",25),A.YNc(32,cB,1,0,"tr",26),A.qZA(),A.qZA(),A._UZ(33,"mat-paginator",27),A.qZA(),A.qZA()),2&t&&(A.xp6(7),A.Q6J("icon",s.faHistory),A.xp6(4),A.Q6J("ngModel",s.selFilter),A.xp6(2),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",s.offers)("ngClass",A.VKq(12,lB,""!==s.errorMessage)),A.xp6(16),A.Q6J("matFooterRowDef",A.DdM(14,gB)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[Ct.xw,Ct.yH,Ct.Wh,Y.lW,f.BN,W.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,cA.$V,ht.O5,yA.BZ,rt.YE,ht.mk,d.oO,yA.w1,yA.fO,yA.Dz,yA.mD,yA.Ke,yA.as,yA.nj,VA.NW,T.pW,yA.ge,rt.nU,yA.ev,ht.PC,d.Zl,aA.gM,R.gD,R.$L,wA.ey,yA.yh,yA.Q2,yA.XQ,yA.Gk],styles:[".mat-column-offer_id[_ngcontent-%COMP%]{flex:0 0 65%;width:65%}.mat-column-offer_id[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();function uB(r,v){1&r&&A._UZ(0,"mat-progress-bar",30)}function fB(r,v){1&r&&(A.TgZ(0,"th",31),A._uU(1," Updated At "),A.qZA())}function hB(r,v){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,t.lastUpdatedAt,"dd/MMM/y HH:mm"))}}function EB(r,v){1&r&&(A.TgZ(0,"th",31),A._uU(1," Title "),A.qZA())}const Kc=function(r){return{"max-width":r}};function wB(r,v){if(1&r&&(A.TgZ(0,"td",32),A.TgZ(1,"div",33),A.TgZ(2,"span",34),A._uU(3),A.qZA(),A.qZA(),A.qZA()),2&r){const t=v.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(2,Kc,s.screenSize===s.screenSizeEnum.XS?"20rem":"35rem")),A.xp6(2),A.Oqu(t.title)}}function CB(r,v){1&r&&(A.TgZ(0,"th",35),A._uU(1," Amount (Sats) "),A.qZA())}function QB(r,v){if(1&r&&(A.TgZ(0,"td",36),A.TgZ(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(0===t.amountmSat?"Open":A.lcZ(3,1,t.amountmSat/1e3))}}function dB(r,v){1&r&&(A.TgZ(0,"th",31),A._uU(1," Description "),A.qZA())}function MB(r,v){if(1&r&&(A.TgZ(0,"td",32),A.TgZ(1,"div",33),A.TgZ(2,"span",34),A._uU(3),A.qZA(),A.qZA(),A.qZA()),2&r){const t=v.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(2,Kc,s.screenSize===s.screenSizeEnum.XS?"20rem":"35rem")),A.xp6(2),A.Oqu(t.description)}}function pB(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"th",38),A.TgZ(1,"div",39),A.TgZ(2,"mat-select",40),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",41),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}const IB=function(r){return{"px-3":r}};function mB(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",42),A.TgZ(1,"div",43),A.TgZ(2,"mat-select",44),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",41),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().onOfferBookmarkClick(vA)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",41),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().onRePayOffer(vA)}),A._uU(7,"Pay Again"),A.qZA(),A.TgZ(8,"mat-option",41),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().onDeleteBookmark(vA)}),A._uU(9,"Delete Bookmark"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,IB,t.screenSize!==t.screenSizeEnum.XS))}}function DB(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No offer bookmarked."),A.qZA())}function vB(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting offer bookmarks..."),A.qZA())}function yB(r,v){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function xB(r,v){if(1&r&&(A.TgZ(0,"td",45),A.YNc(1,DB,2,0,"p",46),A.YNc(2,vB,2,0,"p",46),A.YNc(3,yB,2,1,"p",46),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(!(null!=t.offersBookmarks&&t.offersBookmarks.data)||(null==t.offersBookmarks||null==t.offersBookmarks.data?null:t.offersBookmarks.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.offersBookmarks&&t.offersBookmarks.data)||(null==t.offersBookmarks||null==t.offersBookmarks.data?null:t.offersBookmarks.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.offersBookmarks&&t.offersBookmarks.data)||(null==t.offersBookmarks||null==t.offersBookmarks.data?null:t.offersBookmarks.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const FB=function(r){return{"display-none":r}};function YB(r,v){if(1&r&&A._UZ(0,"tr",47),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,FB,(null==t.offersBookmarks?null:t.offersBookmarks.data)&&(null==t.offersBookmarks||null==t.offersBookmarks.data?null:t.offersBookmarks.data.length)>0))}}function TB(r,v){1&r&&A._UZ(0,"tr",48)}function NB(r,v){1&r&&A._UZ(0,"tr",49)}const SB=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},UB=function(){return["no_offer"]};let PB=(()=>{class r{constructor(t,s,G,vA){this.logger=t,this.store=s,this.commonService=G,this.rtlEffects=vA,this.faHistory=h.qO$,this.displayedColumns=[],this.offersBookmarksJSONArr=[],this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.selFilter="",this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new l.x,new l.x,new l.x,new l.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS||this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["lastUpdatedAt","title","amountmSat","actions"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["lastUpdatedAt","title","amountmSat","description","actions"]):(this.flgSticky=!0,this.displayedColumns=["lastUpdatedAt","title","amountmSat","description","actions"])}ngOnInit(){this.store.select(B.EQ).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.offersBookmarksJSONArr=t.offersBookmarks||[],this.offersBookmarksJSONArr&&this.offersBookmarksJSONArr.length>0&&this.sort&&this.paginator&&this.loadOffersTable(this.offersBookmarksJSONArr),this.logger.info(t)})}ngAfterViewInit(){this.offersBookmarksJSONArr&&this.offersBookmarksJSONArr.length>0&&this.sort&&this.paginator&&this.loadOffersTable(this.offersBookmarksJSONArr)}onOfferBookmarkClick(t){this.store.dispatch((0,kA.qR)({payload:{data:{offer:{bolt12:t.bolt12},newlyAdded:!1,component:jc.k}}}))}onDeleteBookmark(t){this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Delete Bookmark",titleMessage:"Deleting Bookmark: "+(t.title||t.description),noBtnText:"Cancel",yesBtnText:"Delete"}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[1])).subscribe(s=>{s&&this.store.dispatch((0,Et._9)({payload:{bolt12:t.bolt12}}))})}onRePayOffer(t){this.store.dispatch((0,kA.qR)({payload:{data:{paymentType:a.IX.OFFER,bolt12:t.bolt12,offerTitle:t.title,component:Cn}}}))}applyFilter(){this.offersBookmarks.filter=this.selFilter.trim().toLowerCase()}loadOffersTable(t){this.offersBookmarks=new yA.by(t?[...t]:[]),this.offersBookmarks.sortingDataAccessor=(s,G)=>s[G]&&isNaN(s[G])?s[G].toLocaleLowerCase():s[G]?+s[G]:null,this.offersBookmarks.sort=this.sort,this.offersBookmarks.filterPredicate=(s,G)=>JSON.stringify(s).toLowerCase().includes(G),this.offersBookmarks.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){this.offersBookmarks.data&&this.offersBookmarks.data.length>0&&this.commonService.downloadFile(this.offersBookmarks.data,"OfferBookmarks")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(e.v),A.Y36(At.V))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-offer-bookmarks-table"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(VA.NW,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.sort=G.first),A.iGM(G=A.CRH())&&(s.paginator=G.first)}},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Offer Bookmarks")}])],decls:35,vars:15,consts:[["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","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","lastUpdatedAt"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","title"],["matColumnDef","amountmSat"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","pr-2",4,"matHeaderCellDef"],["mat-cell","","class","pr-2",4,"matCellDef"],["matColumnDef","description"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_offer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["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","","mat-sort-header","","arrowPosition","before",1,"pr-2"],["mat-cell","",1,"pr-2"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["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(t,s){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"div",1),A.TgZ(2,"div",2),A.TgZ(3,"div",3),A.TgZ(4,"div",4),A._UZ(5,"fa-icon",5),A.TgZ(6,"span",6),A._uU(7,"Offer Bookmarks"),A.qZA(),A.qZA(),A.TgZ(8,"mat-form-field",7),A.TgZ(9,"input",8),A.NdJ("keyup",function(){return s.applyFilter()})("ngModelChange",function(vA){return s.selFilter=vA}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(10,"div",9),A.YNc(11,uB,1,0,"mat-progress-bar",10),A.TgZ(12,"table",11,12),A.ynx(14,13),A.YNc(15,fB,2,0,"th",14),A.YNc(16,hB,3,4,"td",15),A.BQk(),A.ynx(17,16),A.YNc(18,EB,2,0,"th",14),A.YNc(19,wB,4,4,"td",15),A.BQk(),A.ynx(20,17),A.YNc(21,CB,2,0,"th",18),A.YNc(22,QB,4,3,"td",19),A.BQk(),A.ynx(23,20),A.YNc(24,dB,2,0,"th",14),A.YNc(25,MB,4,4,"td",15),A.BQk(),A.ynx(26,21),A.YNc(27,pB,6,0,"th",22),A.YNc(28,mB,10,3,"td",23),A.BQk(),A.ynx(29,24),A.YNc(30,xB,4,3,"td",25),A.BQk(),A.YNc(31,YB,1,3,"tr",26),A.YNc(32,TB,1,0,"tr",27),A.YNc(33,NB,1,0,"tr",28),A.qZA(),A.qZA(),A._UZ(34,"mat-paginator",29),A.qZA(),A.qZA()),2&t&&(A.xp6(5),A.Q6J("icon",s.faHistory),A.xp6(4),A.Q6J("ngModel",s.selFilter),A.xp6(2),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",s.offersBookmarks)("ngClass",A.VKq(12,SB,""!==s.errorMessage)),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(14,UB)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[Ct.xw,Ct.yH,Ct.Wh,f.BN,W.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,cA.$V,ht.O5,yA.BZ,rt.YE,ht.mk,d.oO,yA.w1,yA.fO,yA.Dz,yA.mD,yA.Ke,yA.as,yA.nj,VA.NW,T.pW,yA.ge,rt.nU,yA.ev,ht.PC,d.Zl,R.gD,R.$L,wA.ey,yA.yh,yA.Q2,yA.XQ,yA.Gk],pipes:[ht.uU,ht.JJ],styles:[".mat-column-title[_ngcontent-%COMP%], .mat-column-description[_ngcontent-%COMP%]{flex:0 0 30%;width:30%}.mat-column-title[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%], .mat-column-description[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();function RB(r,v){if(1&r&&(A.TgZ(0,"div",5),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Oqu(t.errorMessage)}}function zB(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"div",6),A._UZ(1,"div",7),A.TgZ(2,"mat-form-field",8),A.TgZ(3,"input",9),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyFilter()})("ngModelChange",function(G){return A.CHM(t),A.oxw().selFilter=G}),A.qZA(),A.qZA(),A.qZA()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.selFilter)}}function LB(r,v){1&r&&A._UZ(0,"mat-progress-bar",31)}function bB(r,v){1&r&&(A.TgZ(0,"th",32),A._uU(1,"Received Time"),A.qZA())}function GB(r,v){if(1&r&&(A.TgZ(0,"td",33),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.received_time),"dd/MMM/y HH:mm"))}}function HB(r,v){1&r&&(A.TgZ(0,"th",32),A._uU(1,"In Channel"),A.qZA())}function JB(r,v){if(1&r&&(A.TgZ(0,"td",33),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.Oqu(null==t?null:t.in_channel_alias)}}function OB(r,v){1&r&&(A.TgZ(0,"th",34),A._uU(1,"Amount In (Sats)"),A.qZA())}function kB(r,v){if(1&r&&(A.TgZ(0,"td",33),A.TgZ(1,"span",35),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.in_msatoshi)/1e3,(null==t?null:t.in_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function jB(r,v){1&r&&(A.TgZ(0,"th",36),A._uU(1,"Fail Reason"),A.qZA())}function ZB(r,v){if(1&r&&(A.TgZ(0,"td",37),A._uU(1),A.qZA()),2&r){const t=v.$implicit,s=A.oxw(2);A.xp6(1),A.Oqu(s.CLNFailReason[null==t?null:t.failreason])}}function KB(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"th",38),A.TgZ(1,"div",39),A.TgZ(2,"mat-select",40),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",41),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function VB(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",42),A.TgZ(1,"button",43),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw(2).onFailedLocalEventClick(vA)}),A._uU(2,"View Info"),A.qZA(),A.qZA()}}function WB(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No failed transaction available."),A.qZA())}function XB(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting failed transactions..."),A.qZA())}function qB(r,v){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function _B(r,v){if(1&r&&(A.TgZ(0,"td",44),A.YNc(1,WB,2,0,"p",45),A.YNc(2,XB,2,0,"p",45),A.YNc(3,qB,2,1,"p",45),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedLocalForwardingEvents&&t.failedLocalForwardingEvents.data)||(null==t.failedLocalForwardingEvents||null==t.failedLocalForwardingEvents.data?null:t.failedLocalForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedLocalForwardingEvents&&t.failedLocalForwardingEvents.data)||(null==t.failedLocalForwardingEvents||null==t.failedLocalForwardingEvents.data?null:t.failedLocalForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedLocalForwardingEvents&&t.failedLocalForwardingEvents.data)||(null==t.failedLocalForwardingEvents||null==t.failedLocalForwardingEvents.data?null:t.failedLocalForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const $B=function(r){return{"display-none":r}};function Au(r,v){if(1&r&&A._UZ(0,"tr",46),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,$B,(null==t.failedLocalForwardingEvents?null:t.failedLocalForwardingEvents.data)&&(null==t.failedLocalForwardingEvents||null==t.failedLocalForwardingEvents.data?null:t.failedLocalForwardingEvents.data.length)>0))}}function tu(r,v){1&r&&A._UZ(0,"tr",47)}function eu(r,v){1&r&&A._UZ(0,"tr",48)}const nu=function(){return["no_event"]};function ru(r,v){if(1&r&&(A.TgZ(0,"div",10),A.YNc(1,LB,1,0,"mat-progress-bar",11),A.TgZ(2,"table",12,13),A.ynx(4,14),A.YNc(5,bB,2,0,"th",15),A.YNc(6,GB,3,4,"td",16),A.BQk(),A.ynx(7,17),A.YNc(8,HB,2,0,"th",15),A.YNc(9,JB,2,1,"td",16),A.BQk(),A.ynx(10,18),A.YNc(11,OB,2,0,"th",19),A.YNc(12,kB,4,4,"td",16),A.BQk(),A.ynx(13,20),A.YNc(14,jB,2,0,"th",21),A.YNc(15,ZB,2,1,"td",22),A.BQk(),A.ynx(16,23),A.YNc(17,KB,6,0,"th",24),A.YNc(18,VB,3,0,"td",25),A.BQk(),A.ynx(19,26),A.YNc(20,_B,4,3,"td",27),A.BQk(),A.YNc(21,Au,1,3,"tr",28),A.YNc(22,tu,1,0,"tr",29),A.YNc(23,eu,1,0,"tr",30),A.qZA(),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.failedLocalForwardingEvents),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(6,nu)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}function iu(r,v){if(1&r&&A._UZ(0,"mat-paginator",49),2&r){const t=A.oxw();A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let au=(()=>{class r{constructor(t,s,G,vA,ft){this.logger=t,this.commonService=s,this.store=G,this.datePipe=vA,this.router=ft,this.CLNFailReason=a.p7,this.errorMessage="",this.displayedColumns=[],this.flgSticky=!1,this.selFilter="",this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new l.x,new l.x,new l.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS||this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["received_time","in_channel","in_msatoshi","actions"]):(this.flgSticky=!0,this.displayedColumns=["received_time","in_channel","in_msatoshi","failreason","actions"])}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.store.dispatch((0,Et.KE)()),this.store.select(B.lK).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.failedLocalEvents=t.localFailedForwardingHistory||[],this.failedLocalEvents.length>0&&this.sort&&this.paginator&&this.loadLocalfailedLocalEventsTable(this.failedLocalEvents),this.logger.info(t)})}ngAfterViewInit(){this.failedLocalEvents.length>0&&this.loadLocalfailedLocalEventsTable(this.failedLocalEvents)}onFailedLocalEventClick(t){this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Local Failed Event Information",message:[[{key:"received_time",value:t.received_time,title:"Received Time",width:50,type:a.Gi.DATE_TIME},{key:"in_channel_alias",value:t.in_channel_alias,title:"Inbound Channel",width:50,type:a.Gi.STRING}],[{key:"in_msatoshi",value:t.in_msatoshi,title:"Amount In (mSats)",width:100,type:a.Gi.NUMBER}],[{key:"failreason",value:this.CLNFailReason[t.failreason],title:"Reason for Failure",width:100,type:a.Gi.STRING}]]}}}))}loadLocalfailedLocalEventsTable(t){this.failedLocalForwardingEvents=new yA.by([...t]),this.failedLocalForwardingEvents.filterPredicate=(s,G)=>((s.received_time?this.datePipe.transform(new Date(1e3*s.received_time),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(s.in_channel_alias?s.in_channel_alias.toLowerCase():"")+(s.failreason&&this.CLNFailReason[s.failreason]?this.CLNFailReason[s.failreason].toLowerCase():"")+(s.in_msatoshi?s.in_msatoshi/1e3:"")).includes(G),this.failedLocalForwardingEvents.sort=this.sort,this.failedLocalForwardingEvents.sortingDataAccessor=(s,G)=>"failreason"===G?this.CLNFailReason[s.failreason]:s[G]&&isNaN(s[G])?s[G].toLocaleLowerCase():s[G]?+s[G]:null,this.failedLocalForwardingEvents.paginator=this.paginator,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")}applyFilter(){this.failedLocalForwardingEvents.filter=this.selFilter.trim().toLowerCase()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh),A.Y36(ht.uU),A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-local-failed-history"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(VA.NW,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.sort=G.first),A.iGM(G=A.CRH())&&(s.paginator=G.first)}},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Local Failed Events")}])],decls:5,vars:4,consts:[["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","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["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,"dataSource"],["table",""],["matColumnDef","received_time"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","in_channel"],["matColumnDef","in_msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","failreason"],["mat-header-cell","","mat-sort-header","","class","pl-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","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","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-3"],["mat-cell","",1,"pl-3"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",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(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,RB,2,1,"div",1),A.YNc(2,zB,4,1,"div",2),A.YNc(3,ru,24,7,"div",3),A.YNc(4,iu,1,3,"mat-paginator",4),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage))},directives:[Ct.xw,Ct.Wh,ht.O5,Ct.yH,W.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,cA.$V,yA.BZ,rt.YE,yA.w1,yA.fO,yA.Dz,yA.mD,yA.Ke,yA.as,yA.nj,T.pW,yA.ge,rt.nU,yA.ev,R.gD,R.$L,wA.ey,Y.lW,yA.yh,yA.Q2,ht.mk,d.oO,yA.XQ,yA.Gk,VA.NW],pipes:[ht.uU,ht.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();const ou=["form"];function su(r,v){1&r&&A.GkF(0)}function cu(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Requested amount is required."),A.qZA())}function lu(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee rate is required."),A.qZA())}function gu(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Local amount is required."),A.qZA())}function Bu(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Local amount must be greater than or equal to 20000."),A.qZA())}function uu(r,v){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.hij("Local amount must be less than or equal to ",t.totalBalance,".")}}function fu(r,v){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.channelConnectionError)}}function hu(r,v){if(1&r&&(A.TgZ(0,"div",26),A._UZ(1,"fa-icon",27),A.YNc(2,fu,2,1,"span",15),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.channelConnectionError)}}function Eu(r,v){1&r&&(A.TgZ(0,"th",47),A._uU(1,"Type"),A.qZA())}function wu(r,v){if(1&r&&(A.TgZ(0,"td",48),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.type," ")}}function Cu(r,v){1&r&&(A.TgZ(0,"th",47),A._uU(1,"Address"),A.qZA())}function Qu(r,v){if(1&r&&(A.TgZ(0,"td",48),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.address," ")}}function du(r,v){1&r&&(A.TgZ(0,"th",47),A._uU(1,"Port"),A.qZA())}function Mu(r,v){if(1&r&&(A.TgZ(0,"td",48),A._uU(1),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.port," ")}}function pu(r,v){1&r&&A._UZ(0,"tr",49)}function Iu(r,v){1&r&&A._UZ(0,"tr",50)}function mu(r,v){if(1&r&&(A.TgZ(0,"mat-expansion-panel",29),A.TgZ(1,"mat-expansion-panel-header"),A.TgZ(2,"mat-panel-title"),A.TgZ(3,"span"),A._uU(4,"Node: \xa0"),A.qZA(),A.TgZ(5,"strong",30),A._uU(6),A.qZA(),A.qZA(),A.qZA(),A.TgZ(7,"div",7),A.TgZ(8,"div",0),A.TgZ(9,"div",1),A.TgZ(10,"h4",31),A._uU(11,"Pubkey"),A.qZA(),A.TgZ(12,"span",32),A._uU(13),A.qZA(),A.qZA(),A.qZA(),A._UZ(14,"mat-divider",33),A.TgZ(15,"div",0),A.TgZ(16,"div",1),A.TgZ(17,"h4",31),A._uU(18,"Last Timestamp"),A.qZA(),A.TgZ(19,"span",34),A._uU(20),A.ALo(21,"date"),A.qZA(),A.qZA(),A.qZA(),A._UZ(22,"mat-divider",33),A.TgZ(23,"div",35),A.TgZ(24,"h4",36),A._uU(25,"Addresses"),A.qZA(),A.TgZ(26,"div",37),A.TgZ(27,"table",38,39),A.ynx(29,40),A.YNc(30,Eu,2,0,"th",41),A.YNc(31,wu,2,1,"td",42),A.BQk(),A.ynx(32,43),A.YNc(33,Cu,2,0,"th",41),A.YNc(34,Qu,2,1,"td",42),A.BQk(),A.ynx(35,44),A.YNc(36,du,2,0,"th",41),A.YNc(37,Mu,2,1,"td",42),A.BQk(),A.YNc(38,pu,1,0,"tr",45),A.YNc(39,Iu,1,0,"tr",46),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&r){const t=A.oxw(2);A.xp6(6),A.Oqu((null==t.node?null:t.node.alias)||(null==t.node?null:t.node.nodeid)),A.xp6(7),A.Oqu(t.node.nodeid),A.xp6(7),A.Oqu(A.xi3(21,6,1e3*t.node.last_timestamp,"dd/MMM/y HH:mm")),A.xp6(7),A.Q6J("dataSource",t.node.addresses),A.xp6(11),A.Q6J("matHeaderRowDef",t.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}function Du(r,v){if(1&r&&A.YNc(0,mu,40,9,"mat-expansion-panel",28),2&r){const t=A.oxw();A.Q6J("ngIf",t.node)}}let vu=(()=>{class r{constructor(t,s,G,vA){this.dialogRef=t,this.data=s,this.actions=G,this.store=vA,this.faExclamationTriangle=h.eHv,this.totalBalance=0,this.requestedAmount=0,this.feeRate=0,this.localAmount=0,this.channelConnectionError="",this.displayedColumns=["type","address","port"],this.unSubs=[new l.x,new l.x]}ngOnInit(){this.alertTitle=this.data.alertTitle,this.totalBalance=this.data.message.balance,this.node=this.data.message.node,this.requestedAmount=this.data.message.requestedAmount,this.feeRate=this.data.message.feeRate,this.localAmount=this.data.message.localAmount,this.actions.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN||t.type===a.AB.FETCH_CHANNELS_CLN)).subscribe(t=>{t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&t.payload.status===a.Bn.ERROR&&"SaveNewChannel"===t.payload.action&&(this.channelConnectionError=t.payload.message),t.type===a.AB.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.channelOpeningFee=+this.node.option_will_fund.lease_fee_base_msat/1e3+this.requestedAmount*+this.node.option_will_fund.lease_fee_basis/1e4+ +this.node.option_will_fund.funding_weight/4*this.feeRate}onOpenChannel(){if(!(this.node&&this.node.option_will_fund&&this.requestedAmount&&this.feeRate&&this.localAmount))return!0;const t={peerId:this.node.nodeid,satoshis:this.localAmount.toString(),feeRate:this.feeRate+"perkb",requestAmount:this.requestedAmount.toString(),compactLease:this.node.option_will_fund.compact_lease};this.store.dispatch((0,Et.YX)({payload:t}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(C.eX),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-open-liquidity-channel"]],viewQuery:function(t,s){if(1&t&&A.Gf(ou,7),2&t){let G;A.iGM(G=A.CRH())&&(s.form=G.first)}},decls:48,vars:24,consts:[["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","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["form","ngForm"],[4,"ngTemplateOutlet"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-sm","space-between center","fxLayout.gt-sm","row wrap"],["fxFlex","30","fxLayoutAlign","start end"],["autoFocus","","matInput","","placeholder","Requested Amount","type","number","tabindex","1","required","","name","ramount",3,"ngModel","step","min","ngModelChange","keyup"],["ramount","ngModel"],["matSuffix",""],[4,"ngIf"],["matInput","","placeholder","Fee Rate","type","number","tabindex","2","required","","name","feerate",3,"ngModel","step","min","ngModelChange","keyup"],["feeRt","ngModel"],["matInput","","placeholder","Local Amount","type","number","tabindex","3","required","","name","lamount",3,"ngModel","step","min","max","ngModelChange"],["lamount","ngModel"],["fxFlex","100",1,"alert","alert-info","mt-2"],["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"],["nodeDetailsExpansionBlock",""],["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"],["table",""],["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(t,s){if(1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-card-header",2),A.TgZ(3,"div",3),A.TgZ(4,"span",4),A._uU(5),A.qZA(),A.qZA(),A.TgZ(6,"button",5),A.NdJ("click",function(){return s.onClose()}),A._uU(7,"X"),A.qZA(),A.qZA(),A.TgZ(8,"mat-card-content",6),A.TgZ(9,"form",7,8),A.YNc(11,su,1,0,"ng-container",9),A.TgZ(12,"div",10),A.TgZ(13,"mat-form-field",11),A.TgZ(14,"input",12,13),A.NdJ("ngModelChange",function(vA){return s.requestedAmount=vA})("keyup",function(){return s.calculateFee()}),A.qZA(),A.TgZ(16,"span",14),A._uU(17," Sats "),A.qZA(),A.YNc(18,cu,2,0,"mat-error",15),A.qZA(),A.TgZ(19,"mat-form-field",11),A.TgZ(20,"input",16,17),A.NdJ("ngModelChange",function(vA){return s.feeRate=vA})("keyup",function(){return s.calculateFee()}),A.qZA(),A.TgZ(22,"span",14),A._uU(23," Sats/vByte "),A.qZA(),A.YNc(24,lu,2,0,"mat-error",15),A.qZA(),A.TgZ(25,"mat-form-field",11),A.TgZ(26,"input",18,19),A.NdJ("ngModelChange",function(vA){return s.localAmount=vA}),A.qZA(),A.TgZ(28,"mat-hint"),A._uU(29),A.ALo(30,"number"),A.qZA(),A.TgZ(31,"span",14),A._uU(32," Sats "),A.qZA(),A.YNc(33,gu,2,0,"mat-error",15),A.YNc(34,Bu,2,0,"mat-error",15),A.YNc(35,uu,2,1,"mat-error",15),A.qZA(),A.qZA(),A.TgZ(36,"div",20),A.TgZ(37,"span"),A._uU(38),A.ALo(39,"number"),A.qZA(),A.qZA(),A.YNc(40,hu,3,2,"div",21),A.TgZ(41,"div",22),A.TgZ(42,"button",23),A.NdJ("click",function(){return s.resetData()}),A._uU(43,"Clear"),A.qZA(),A.TgZ(44,"button",24),A.NdJ("click",function(){return s.onOpenChannel()}),A._uU(45,"Execute"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.YNc(46,Du,1,1,"ng-template",null,25,A.W1O)),2&t){const G=A.MAs(15),vA=A.MAs(21),ft=A.MAs(27),Ce=A.MAs(47);A.xp6(5),A.Oqu(s.alertTitle),A.xp6(6),A.Q6J("ngTemplateOutlet",Ce),A.xp6(3),A.Q6J("ngModel",s.requestedAmount)("step",1e4)("min",0),A.xp6(4),A.Q6J("ngIf",null==G.errors?null:G.errors.required),A.xp6(2),A.Q6J("ngModel",s.feeRate)("step",10)("min",0),A.xp6(4),A.Q6J("ngIf",null==vA.errors?null:vA.errors.required),A.xp6(2),A.Q6J("ngModel",s.localAmount)("step",1e4)("min",2e4)("max",s.totalBalance),A.xp6(3),A.hij("Remaining Bal: ",A.lcZ(30,20,s.totalBalance-(s.localAmount?s.localAmount:0)),""),A.xp6(4),A.Q6J("ngIf",null==ft.errors?null:ft.errors.required),A.xp6(1),A.Q6J("ngIf",null==ft.errors?null:ft.errors.min),A.xp6(1),A.Q6J("ngIf",null==ft.errors?null:ft.errors.max),A.xp6(3),A.hij("Total cost to lease ",A.lcZ(39,22,s.node.channelOpeningFee)," (Sats)"),A.xp6(2),A.Q6J("ngIf",""!==s.channelConnectionError)}},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Y.lW,w.dn,OA._Y,OA.JL,OA.F,ht.tP,W.KE,Yt.Nt,OA.wV,OA.qQ,OA.Fj,k.q,H.h,OA.Q7,OA.JJ,OA.On,W.R9,ht.O5,OA.Fd,tr.F,W.bx,W.TO,f.BN,ar.ib,ar.yz,ar.yK,AA.d,yA.BZ,rt.YE,yA.w1,yA.fO,yA.Dz,yA.as,yA.nj,yA.ge,rt.nU,yA.ev,yA.XQ,yA.Gk],pipes:[ht.JJ,ht.uU],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),r})();function yu(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Channel amount is required."),A.qZA())}function xu(r,v){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Channel opening fee rate is required."),A.qZA())}function Fu(r,v){1&r&&A._UZ(0,"mat-progress-bar",40)}function Yu(r,v){1&r&&(A.TgZ(0,"th",41),A._uU(1," Alias "),A.qZA())}const Tu=function(r){return{"max-width":r}};function Nu(r,v){if(1&r&&(A.TgZ(0,"td",42),A._uU(1),A.qZA()),2&r){const t=v.$implicit,s=A.oxw();A.Q6J("ngStyle",A.VKq(2,Tu,s.screenSize===s.screenSizeEnum.XS?"10rem":"40rem")),A.xp6(1),A.hij(" ",null==t?null:t.alias," ")}}function Su(r,v){1&r&&(A.TgZ(0,"th",43),A._uU(1," Capacity/Channels "),A.qZA())}function Uu(r,v){if(1&r&&(A.TgZ(0,"td",44),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.AsE(" ",A.xi3(2,2,(null==t?null:t.nodeCapacity)/1e8,"1.0-2")," BTC / ",A.xi3(3,5,null==t?null:t.channelCount,"1.0-0")," ")}}function Pu(r,v){1&r&&(A.TgZ(0,"th",43),A._uU(1," Lease Fee "),A.qZA())}function Ru(r,v){if(1&r&&(A.TgZ(0,"td",44),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.AsE(" ",A.xi3(2,2,(null==t||null==t.option_will_fund?null:t.option_will_fund.lease_fee_base_msat)/1e3,"1.0-0")," Sats + ",A.xi3(3,5,(null==t||null==t.option_will_fund?null:t.option_will_fund.lease_fee_basis)/100,"1.2-2"),"% ")}}function zu(r,v){1&r&&(A.TgZ(0,"th",43),A._uU(1," Routing Fee "),A.qZA())}function Lu(r,v){if(1&r&&(A.TgZ(0,"td",44),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=v.$implicit;A.xp6(1),A.AsE(" ",A.xi3(2,2,(null==t||null==t.option_will_fund?null:t.option_will_fund.channel_fee_max_base_msat)/1e3,"1.0-0")," Sats + ",A.xi3(3,5,1e3*(null==t||null==t.option_will_fund?null:t.option_will_fund.channel_fee_max_proportional_thousandths),"1.0-0")," ppm ")}}function bu(r,v){1&r&&(A.TgZ(0,"th",45),A._uU(1," Channel Opening Fee "),A.qZA())}function Gu(r,v){if(1&r&&(A.TgZ(0,"td",44),A.TgZ(1,"span",46),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&r){const t=v.$implicit;A.xp6(2),A.hij(" ",A.xi3(3,1,t.channelOpeningFee,"1.0-0")," Sats ")}}function Hu(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"th",47),A.TgZ(1,"div",48),A.TgZ(2,"mat-select",49),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",50),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function Ju(r,v){if(1&r){const t=A.EpF();A.TgZ(0,"td",51),A.TgZ(1,"div",52),A.TgZ(2,"mat-select",49),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",50),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().onViewLeaseInfo(vA)}),A._uU(5,"View Lease Info"),A.qZA(),A.TgZ(6,"mat-option",50),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().onOpenChannel(vA)}),A._uU(7,"Open Channel"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function Ou(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"No node with liquidity."),A.qZA())}function ku(r,v){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting nodes with liquidity..."),A.qZA())}function ju(r,v){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function Zu(r,v){if(1&r&&(A.TgZ(0,"td",53),A.YNc(1,Ou,2,0,"p",15),A.YNc(2,ku,2,0,"p",15),A.YNc(3,ju,2,1,"p",15),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(!(null!=t.liquidityNodes&&t.liquidityNodes.data)||(null==t.liquidityNodes||null==t.liquidityNodes.data?null:t.liquidityNodes.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.liquidityNodes&&t.liquidityNodes.data)||(null==t.liquidityNodes||null==t.liquidityNodes.data?null:t.liquidityNodes.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.liquidityNodes&&t.liquidityNodes.data)||(null==t.liquidityNodes||null==t.liquidityNodes.data?null:t.liquidityNodes.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Ku=function(r){return{"display-none":r}};function Vu(r,v){if(1&r&&A._UZ(0,"tr",54),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,Ku,(null==t.liquidityNodes?null:t.liquidityNodes.data)&&(null==t.liquidityNodes||null==t.liquidityNodes.data?null:t.liquidityNodes.data.length)>0))}}function Wu(r,v){1&r&&A._UZ(0,"tr",55)}function Xu(r,v){1&r&&A._UZ(0,"tr",56)}const qu=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},_u=function(){return["no_lqNode"]},tf=_t.Bz.forChild([{path:"",component:n,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:xo,canActivate:[ze.eQ]},{path:"onchain",component:jr,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"receive/utxos"},{path:"receive/:selTab",component:Ya,canActivate:[ze.eQ]},{path:"send/:selTab",component:Ta,data:{sweepAll:!1},canActivate:[ze.eQ]},{path:"sweep/:selTab",component:Ta,data:{sweepAll:!0},canActivate:[ze.eQ]}]},{path:"connections",component:ws,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:Sa,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:b0,canActivate:[ze.eQ]},{path:"pending",component:Bc,canActivate:[ze.eQ]}]},{path:"peers",component:x,data:{sweepAll:!1},canActivate:[ze.eQ]}]},{path:"liquidityads",component:(()=>{class r{constructor(t,s,G,vA,ft){this.logger=t,this.store=s,this.dataService=G,this.commonService=vA,this.rtlEffects=ft,this.askTooltipMsg="",this.nodesTooltipMsg="",this.displayedColumns=[],this.faBullhorn=h.Acd,this.faExclamationTriangle=h.eHv,this.totalBalance=0,this.channelAmount=1e5,this.channelOpeningFeeRate=10,this.nodeCapacity=5e5,this.channelCount=5,this.liquidityNodesData=[],this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.apiCallStatus={status:a.Bn.INITIATED},this.apiCallStatusEnum=a.Bn,this.unSubs=[new l.x,new l.x,new l.x,new l.x],this.askTooltipMsg="Specify the liquidity requirements for your node: \n 1. Channel Amount - Amount in Sats you need for 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 are the nodes which 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(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","channelOpeningFee","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","leaseFee","routingFee","channelOpeningFee","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","leaseFee","routingFee","channelOpeningFee","actions"])}ngOnInit(){(0,Ba.a)([this.store.select(B.OL),this.dataService.listNetworkNodes("?liquidity_ads=yes")]).pipe((0,i.R)(this.unSubs[0])).subscribe({next:([t,s])=>{this.information=t.information,this.totalBalance=t.balance.totalBalance,this.logger.info(t),s&&!s.length&&(s=[]),this.logger.info("Received Liquidity Ads Enabled Nodes: "+JSON.stringify(s)),this.apiCallStatus.status=a.Bn.COMPLETED,this.liquidityNodesData=s.filter(G=>G.nodeid!==this.information.id),this.onCalculateOpeningFee(),this.loadLiqNodesTable(this.liquidityNodesData)},error:t=>{this.logger.error("Liquidity Ads Nodes Error: "+JSON.stringify(t)),this.apiCallStatus.status=a.Bn.ERROR,this.errorMessage=JSON.stringify(t)}})}onCalculateOpeningFee(){this.liquidityNodesData.forEach(t=>{t.option_will_fund&&(t.channelOpeningFee=+t.option_will_fund.lease_fee_base_msat/1e3+this.channelAmount*+t.option_will_fund.lease_fee_basis/1e4+ +t.option_will_fund.funding_weight/4*this.channelOpeningFeeRate)}),this.paginator&&this.paginator.firstPage()}loadLiqNodesTable(t){this.liquidityNodes=new yA.by([...t]),this.liquidityNodes.sortingDataAccessor=(s,G)=>s[G]&&isNaN(s[G])?s[G].toLocaleLowerCase():s[G]?+s[G]:null,this.liquidityNodes.sort=this.sort,this.liquidityNodes.paginator=this.paginator,this.sort&&this.sort.sort({id:"channelOpeningFee",start:"asc",disableClear:!0})}onOpenChannel(t){this.store.dispatch((0,kA.qR)({payload:{data:{alertTitle:"Open Channel",message:{node:t,balance:this.totalBalance,requestedAmount:this.channelAmount,feeRate:this.channelOpeningFeeRate,localAmount:2e4},component:vu}}}))}onViewLeaseInfo(t){const s=t.addresses.reduce((vA,ft)=>(ft.address.length>40&&(ft.address=ft.address.substring(0,39)+"..."),vA.concat(JSON.stringify(ft).replace("{","").replace("}","").replace(/:/g,": ").replace(/,/g,"        ").replace(/"/g,""))),[]);this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Lease Information",noBtnText:"Close",yesBtnText:"Open Channel",message:[[{key:"alias",value:t.alias,title:"Node Alias",width:50,type:a.Gi.STRING},{key:"last_timestamp",value:t.last_timestamp,title:"Last Timestamp",width:50,type:a.Gi.DATE_TIME}],[{key:"nodeid",value:t.nodeid,title:"Node ID",width:100,type:a.Gi.STRING}],[{key:"base_fee",value:t.option_will_fund.lease_fee_base_msat/1e3,title:"Lease Base Fee (Sats)",width:50,type:a.Gi.NUMBER},{key:"fee_basis",value:t.option_will_fund.lease_fee_basis,title:"Lease Base Basis (bps)",width:50,type:a.Gi.NUMBER}],[{key:"channel_max_base",value:t.option_will_fund.channel_fee_max_base_msat/1e3,title:"Max Channel Routing Base Fee (Sats)",width:50,type:a.Gi.NUMBER},{key:"channel_max_rate",value:1e3*t.option_will_fund.channel_fee_max_proportional_thousandths,title:"Max Channel Routing Fee Rate (ppm)",width:50,type:a.Gi.NUMBER}],[{key:"funding_rate",value:t.option_will_fund.funding_weight,title:"Funding Weight",width:100,type:a.Gi.NUMBER}],[{key:"address",value:s,title:"Address",width:100,type:a.Gi.ARRAY}]]}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[1])).subscribe(vA=>{vA&&this.onOpenChannel(t)})}onDownloadCSV(){this.liquidityNodes.data&&this.liquidityNodes.data.length>0&&this.commonService.downloadFile(this.liquidityNodes.data,"LiquidityNodes")}onFilterReset(){this.nodeCapacity=0,this.channelCount=0}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(RA.D),A.Y36(e.v),A.Y36(At.V))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-liquidity-ads-list"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(VA.NW,5)),2&t){let G;A.iGM(G=A.CRH())&&(s.sort=G.first),A.iGM(G=A.CRH())&&(s.paginator=G.first)}},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Liquidity Ads")}])],decls:54,vars:20,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"],[1,"padding-gap-large"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["formAsk","ngForm"],["fxFlex","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 start",1,"page-sub-title-container","mt-1"],["fxFlex","30"],["matTooltipPosition","above","matTooltipClass","pre-wrap",1,"info-icon","info-icon-primary",3,"matTooltip"],["fxFlex","34"],["autoFocus","","matInput","","placeholder","Channel Amount (Sats)","name","channelAmount","tabindex","1","type","number","step","10000","required","",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["matInput","","placeholder","Channel Opening Fee Rate (Sats/vByte)","name","channelOpeningFeeRate","type","number","step","10","tabindex","2","required","",3,"ngModel","ngModelChange","keyup"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container","mt-2",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","capacityChannels"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","leaseFee"],["matColumnDef","routingFee"],["matColumnDef","channelOpeningFee"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_lqNode"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Liquidity Ads"),A.qZA(),A.qZA(),A.TgZ(4,"div",3),A.TgZ(5,"mat-card"),A.TgZ(6,"mat-card-content",4),A.TgZ(7,"div",5),A.TgZ(8,"form",6,7),A.TgZ(10,"div",8),A._UZ(11,"fa-icon",9),A.TgZ(12,"span"),A._uU(13,"Ads should be suplemented with additional research of the nodes, before buying liquidity."),A.qZA(),A.qZA(),A.TgZ(14,"div",10),A.TgZ(15,"div",11),A.TgZ(16,"span",2),A._uU(17," Liquidity Ask "),A.TgZ(18,"mat-icon",12),A._uU(19,"info_outline"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(20,"mat-form-field",13),A.TgZ(21,"input",14),A.NdJ("ngModelChange",function(vA){return s.channelAmount=vA})("keyup",function(){return s.onCalculateOpeningFee()}),A.qZA(),A.YNc(22,yu,2,0,"mat-error",15),A.qZA(),A.TgZ(23,"mat-form-field",13),A.TgZ(24,"input",16),A.NdJ("ngModelChange",function(vA){return s.channelOpeningFeeRate=vA})("keyup",function(){return s.onCalculateOpeningFee()}),A.qZA(),A.YNc(25,xu,2,0,"mat-error",15),A.qZA(),A.qZA(),A.qZA(),A.TgZ(26,"div",17),A.YNc(27,Fu,1,0,"mat-progress-bar",18),A.TgZ(28,"table",19,20),A.ynx(30,21),A.YNc(31,Yu,2,0,"th",22),A.YNc(32,Nu,2,4,"td",23),A.BQk(),A.ynx(33,24),A.YNc(34,Su,2,0,"th",25),A.YNc(35,Uu,4,8,"td",26),A.BQk(),A.ynx(36,27),A.YNc(37,Pu,2,0,"th",25),A.YNc(38,Ru,4,8,"td",26),A.BQk(),A.ynx(39,28),A.YNc(40,zu,2,0,"th",25),A.YNc(41,Lu,4,8,"td",26),A.BQk(),A.ynx(42,29),A.YNc(43,bu,2,0,"th",30),A.YNc(44,Gu,4,4,"td",26),A.BQk(),A.ynx(45,31),A.YNc(46,Hu,6,0,"th",32),A.YNc(47,Ju,8,0,"td",33),A.BQk(),A.ynx(48,34),A.YNc(49,Zu,4,3,"td",35),A.BQk(),A.YNc(50,Vu,1,3,"tr",36),A.YNc(51,Wu,1,0,"tr",37),A.YNc(52,Xu,1,0,"tr",38),A.qZA(),A.qZA(),A._UZ(53,"mat-paginator",39),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(1),A.Q6J("icon",s.faBullhorn),A.xp6(10),A.Q6J("icon",s.faExclamationTriangle),A.xp6(7),A.Q6J("matTooltip",s.askTooltipMsg),A.xp6(3),A.Q6J("ngModel",s.channelAmount),A.xp6(1),A.Q6J("ngIf",!s.channelAmount),A.xp6(2),A.Q6J("ngModel",s.channelOpeningFeeRate),A.xp6(1),A.Q6J("ngIf",!s.channelOpeningFeeRate),A.xp6(2),A.Q6J("ngIf",s.apiCallStatus.status===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",s.liquidityNodes)("ngClass",A.VKq(17,qu,""!==s.errorMessage)),A.xp6(22),A.Q6J("matFooterRowDef",A.DdM(19,_u)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[Ct.xw,Ct.Wh,f.BN,w.a8,w.dn,Ct.yH,OA._Y,OA.JL,OA.F,y.Hw,aA.gM,W.KE,Yt.Nt,OA.wV,OA.Fj,H.h,OA.Q7,OA.JJ,OA.On,ht.O5,cA.$V,yA.BZ,rt.YE,ht.mk,d.oO,yA.w1,yA.fO,yA.Dz,yA.mD,yA.Ke,yA.as,yA.nj,VA.NW,W.TO,T.pW,yA.ge,rt.nU,yA.ev,ht.PC,d.Zl,R.gD,R.$L,wA.ey,yA.yh,yA.Q2,yA.XQ,yA.Gk],pipes:[ht.JJ],styles:[".mat-column-alias[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})(),canActivate:[ze.eQ]},{path:"transactions",component:Cs,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:aa,canActivate:[ze.eQ]},{path:"invoices",component:tt,canActivate:[ze.eQ]},{path:"offers",component:BB,canActivate:[ze.eQ]},{path:"offrBookmarks",component:PB,canActivate:[ze.eQ]}]},{path:"messages",component:Ii,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"sign"},{path:"sign",component:Oe,canActivate:[ze.eQ]},{path:"verify",component:mn,canActivate:[ze.eQ]}]},{path:"routing",component:ds,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:na,canActivate:[ze.eQ]},{path:"failedtransactions",component:dl,canActivate:[ze.eQ]},{path:"localfail",component:au,canActivate:[ze.eQ]},{path:"routingpeers",component:ug,canActivate:[ze.eQ]}]},{path:"reports",component:hg,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"routingreport"},{path:"routingreport",component:Ig,canActivate:[ze.eQ]},{path:"transactions",component:Ng,canActivate:[ze.eQ]}]},{path:"graph",component:Pg,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"lookups"},{path:"lookups",component:bs,canActivate:[ze.eQ]},{path:"queryroutes",component:cn,canActivate:[ze.eQ]}]},{path:"rates",component:$s,canActivate:[ze.eQ]},{path:"**",component:Sg.w},{path:"network",redirectTo:"rates"},{path:"wallet",redirectTo:"home"},{path:"backup",redirectTo:"home"}]}]);var ef=St(8750);let nf=(()=>{class r{}return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=A.oAB({type:r,bootstrap:[n]}),r.\u0275inj=A.cJS({providers:[ze.eQ],imports:[[ht.ez,ef.m,tf]]}),r})()},4641:function(oi,xr,St){var ht=St(7757);"undefined"!=typeof self&&self,oi.exports=function(){var _t={9282:function(T,I,n){"use strict";var l=n(4155);function i($){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(hA){return typeof hA}:function(hA){return hA&&"function"==typeof Symbol&&hA.constructor===Symbol&&hA!==Symbol.prototype?"symbol":typeof hA})($)}var m,D,h=n(2136).codes,a=h.ERR_AMBIGUOUS_ARGUMENT,B=h.ERR_INVALID_ARG_TYPE,E=h.ERR_INVALID_ARG_VALUE,u=h.ERR_INVALID_RETURN_VALUE,C=h.ERR_MISSING_ARGS,e=n(5961),g=n(9539).inspect,w=n(9539).types,Q=w.isPromise,d=w.isRegExp,Y=Object.assign?Object.assign:n(8091).assign,y=Object.is?Object.is:n(609);function z(){var $=n(9158);m=$.isDeepEqual,D=$.isDeepStrictEqual}var AA=!1,cA=T.exports=DA,MA={};function lA($){throw $.message instanceof Error?$.message:new e($)}function BA($,V,hA,mA){if(!hA){var nA=!1;if(0===V)nA=!0,mA="No value argument passed to `assert.ok()`";else if(mA instanceof Error)throw mA;var EA=new e({actual:hA,expected:!0,message:mA,operator:"==",stackStartFn:$});throw EA.generatedMessage=nA,EA}}function DA(){for(var $=arguments.length,V=new Array($),hA=0;hA<$;hA++)V[hA]=arguments[hA];BA.apply(void 0,[DA,V.length].concat(V))}cA.fail=function gA($,V,hA,mA,nA){var GA,EA=arguments.length;if(0===EA?GA="Failed":1===EA?(hA=$,$=void 0):(!1===AA&&(AA=!0,(l.emitWarning?l.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===EA&&(mA="!=")),hA instanceof Error)throw hA;var ot={actual:$,expected:V,operator:void 0===mA?"fail":mA,stackStartFn:nA||gA};void 0!==hA&&(ot.message=hA);var TA=new e(ot);throw GA&&(TA.message=GA,TA.generatedMessage=!0),TA},cA.AssertionError=e,cA.ok=DA,cA.equal=function $(V,hA,mA){if(arguments.length<2)throw new C("actual","expected");V!=hA&&lA({actual:V,expected:hA,message:mA,operator:"==",stackStartFn:$})},cA.notEqual=function $(V,hA,mA){if(arguments.length<2)throw new C("actual","expected");V==hA&&lA({actual:V,expected:hA,message:mA,operator:"!=",stackStartFn:$})},cA.deepEqual=function $(V,hA,mA){if(arguments.length<2)throw new C("actual","expected");void 0===m&&z(),m(V,hA)||lA({actual:V,expected:hA,message:mA,operator:"deepEqual",stackStartFn:$})},cA.notDeepEqual=function $(V,hA,mA){if(arguments.length<2)throw new C("actual","expected");void 0===m&&z(),m(V,hA)&&lA({actual:V,expected:hA,message:mA,operator:"notDeepEqual",stackStartFn:$})},cA.deepStrictEqual=function $(V,hA,mA){if(arguments.length<2)throw new C("actual","expected");void 0===m&&z(),D(V,hA)||lA({actual:V,expected:hA,message:mA,operator:"deepStrictEqual",stackStartFn:$})},cA.notDeepStrictEqual=function FA($,V,hA){if(arguments.length<2)throw new C("actual","expected");void 0===m&&z(),D($,V)&&lA({actual:$,expected:V,message:hA,operator:"notDeepStrictEqual",stackStartFn:FA})},cA.strictEqual=function $(V,hA,mA){if(arguments.length<2)throw new C("actual","expected");y(V,hA)||lA({actual:V,expected:hA,message:mA,operator:"strictEqual",stackStartFn:$})},cA.notStrictEqual=function $(V,hA,mA){if(arguments.length<2)throw new C("actual","expected");y(V,hA)&&lA({actual:V,expected:hA,message:mA,operator:"notStrictEqual",stackStartFn:$})};var _=function $(V,hA,mA){var nA=this;(function o($,V){if(!($ instanceof V))throw new TypeError("Cannot call a class as a function")})(this,$),hA.forEach(function(EA){EA in V&&(nA[EA]=void 0!==mA&&"string"==typeof mA[EA]&&d(V[EA])&&V[EA].test(mA[EA])?mA[EA]:V[EA])})};function dA($,V,hA,mA,nA,EA){if(!(hA in $)||!D($[hA],V[hA])){if(!mA){var GA=new _($,nA),et=new _(V,nA,$),ot=new e({actual:GA,expected:et,operator:"deepStrictEqual",stackStartFn:EA});throw ot.actual=$,ot.expected=V,ot.operator=EA.name,ot}lA({actual:$,expected:V,message:mA,operator:EA.name,stackStartFn:EA})}}function uA($,V,hA,mA){if("function"!=typeof V){if(d(V))return V.test($);if(2===arguments.length)throw new B("expected",["Function","RegExp"],V);if("object"!==i($)||null===$){var nA=new e({actual:$,expected:V,message:hA,operator:"deepStrictEqual",stackStartFn:mA});throw nA.operator=mA.name,nA}var EA=Object.keys(V);if(V instanceof Error)EA.push("name","message");else if(0===EA.length)throw new E("error",V,"may not be an empty object");return void 0===m&&z(),EA.forEach(function(GA){"string"==typeof $[GA]&&d(V[GA])&&V[GA].test($[GA])||dA($,V,GA,hA,EA,mA)}),!0}return void 0!==V.prototype&&$ instanceof V||!Error.isPrototypeOf(V)&&!0===V.call({},$)}function CA($){if("function"!=typeof $)throw new B("fn","Function",$);try{$()}catch(V){return V}return MA}function NA($){return Q($)||null!==$&&"object"===i($)&&"function"==typeof $.then&&"function"==typeof $.catch}function bA($){return Promise.resolve().then(function(){var V;if("function"==typeof $){if(!NA(V=$()))throw new u("instance of Promise","promiseFn",V)}else{if(!NA($))throw new B("promiseFn",["Function","Promise"],$);V=$}return Promise.resolve().then(function(){return V}).then(function(){return MA}).catch(function(hA){return hA})})}function XA($,V,hA,mA){if("string"==typeof hA){if(4===arguments.length)throw new B("error",["Object","Error","Function","RegExp"],hA);if("object"===i(V)&&null!==V){if(V.message===hA)throw new a("error/message",'The error message "'.concat(V.message,'" is identical to the message.'))}else if(V===hA)throw new a("error/message",'The error "'.concat(V,'" is identical to the message.'));mA=hA,hA=void 0}else if(null!=hA&&"object"!==i(hA)&&"function"!=typeof hA)throw new B("error",["Object","Error","Function","RegExp"],hA);if(V===MA){var nA="";hA&&hA.name&&(nA+=" (".concat(hA.name,")")),nA+=mA?": ".concat(mA):".",lA({actual:void 0,expected:hA,operator:$.name,message:"Missing expected ".concat("rejects"===$.name?"rejection":"exception").concat(nA),stackStartFn:$})}if(hA&&!uA(V,hA,mA,$))throw V}function q($,V,hA,mA){if(V!==MA){if("string"==typeof hA&&(mA=hA,hA=void 0),!hA||uA(V,hA)){var nA=mA?": ".concat(mA):".";lA({actual:V,expected:hA,operator:$.name,message:"Got unwanted ".concat("doesNotReject"===$.name?"rejection":"exception").concat(nA,"\n")+'Actual message: "'.concat(V&&V.message,'"'),stackStartFn:$})}throw V}}function O(){for(var $=arguments.length,V=new Array($),hA=0;hA<$;hA++)V[hA]=arguments[hA];BA.apply(void 0,[O,V.length].concat(V))}cA.throws=function $(V){for(var hA=arguments.length,mA=new Array(hA>1?hA-1:0),nA=1;nA1?hA-1:0),nA=1;nA1?hA-1:0),nA=1;nA1?hA-1:0),nA=1;nAgA.length)&&(DA=gA.length),gA.substring(DA-BA.length,DA)===BA}var N="",F="",z="",L="",W={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 AA(gA){var BA=Object.keys(gA),DA=Object.create(Object.getPrototypeOf(gA));return BA.forEach(function(FA){DA[FA]=gA[FA]}),Object.defineProperty(DA,"message",{value:gA.message}),DA}function cA(gA){return y(gA,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function MA(gA,BA,DA){var FA="",_="",dA=0,uA="",CA=!1,NA=cA(gA),bA=NA.split("\n"),XA=cA(BA).split("\n"),q=0,O="";if("strictEqual"===DA&&"object"===d(gA)&&"object"===d(BA)&&null!==gA&&null!==BA&&(DA="strictEqualObject"),1===bA.length&&1===XA.length&&bA[0]!==XA[0]){var $=bA[0].length+XA[0].length;if($<=10){if(!("object"===d(gA)&&null!==gA||"object"===d(BA)&&null!==BA||0===gA&&0===BA))return"".concat(W[DA],"\n\n")+"".concat(bA[0]," !== ").concat(XA[0],"\n")}else if("strictEqualObject"!==DA&&$<(l.stderr&&l.stderr.isTTY?l.stderr.columns:80)){for(;bA[0][q]===XA[0][q];)q++;q>2&&(O="\n ".concat(function U(gA,BA){if(BA=Math.floor(BA),0==gA.length||0==BA)return"";var DA=gA.length*BA;for(BA=Math.floor(Math.log(BA)/Math.log(2));BA;)gA+=gA,BA--;return gA+gA.substring(0,DA-gA.length)}(" ",q),"^"),q=0)}}for(var hA=bA[bA.length-1],mA=XA[XA.length-1];hA===mA&&(q++<2?uA="\n ".concat(hA).concat(uA):FA=hA,bA.pop(),XA.pop(),0!==bA.length&&0!==XA.length);)hA=bA[bA.length-1],mA=XA[XA.length-1];var nA=Math.max(bA.length,XA.length);if(0===nA){var EA=NA.split("\n");if(EA.length>30)for(EA[26]="".concat(N,"...").concat(L);EA.length>27;)EA.pop();return"".concat(W.notIdentical,"\n\n").concat(EA.join("\n"),"\n")}q>3&&(uA="\n".concat(N,"...").concat(L).concat(uA),CA=!0),""!==FA&&(uA="\n ".concat(FA).concat(uA),FA="");var GA=0,et=W[DA]+"\n".concat(F,"+ actual").concat(L," ").concat(z,"- expected").concat(L),ot=" ".concat(N,"...").concat(L," Lines skipped");for(q=0;q1&&q>2&&(TA>4?(_+="\n".concat(N,"...").concat(L),CA=!0):TA>3&&(_+="\n ".concat(XA[q-2]),GA++),_+="\n ".concat(XA[q-1]),GA++),dA=q,FA+="\n".concat(z,"-").concat(L," ").concat(XA[q]),GA++;else if(XA.length1&&q>2&&(TA>4?(_+="\n".concat(N,"...").concat(L),CA=!0):TA>3&&(_+="\n ".concat(bA[q-2]),GA++),_+="\n ".concat(bA[q-1]),GA++),dA=q,_+="\n".concat(F,"+").concat(L," ").concat(bA[q]),GA++;else{var it=XA[q],mt=bA[q],It=mt!==it&&(!D(mt,",")||mt.slice(0,-1)!==it);It&&D(it,",")&&it.slice(0,-1)===mt&&(It=!1,mt+=","),It?(TA>1&&q>2&&(TA>4?(_+="\n".concat(N,"...").concat(L),CA=!0):TA>3&&(_+="\n ".concat(bA[q-2]),GA++),_+="\n ".concat(bA[q-1]),GA++),dA=q,_+="\n".concat(F,"+").concat(L," ").concat(mt),FA+="\n".concat(z,"-").concat(L," ").concat(it),GA+=2):(_+=FA,FA="",(1===TA||0===q)&&(_+="\n ".concat(mt),GA++))}if(GA>20&&q30)for(q[26]="".concat(N,"...").concat(L);q.length>27;)q.pop();FA=B(this,1===q.length?Q(BA).call(this,"".concat(XA," ").concat(q[0])):Q(BA).call(this,"".concat(XA,"\n\n").concat(q.join("\n"),"\n")))}else{var O=cA(CA),$="",V=W[dA];"notDeepEqual"===dA||"notEqual"===dA?(O="".concat(W[dA],"\n\n").concat(O)).length>1024&&(O="".concat(O.slice(0,1021),"...")):($="".concat(cA(NA)),O.length>512&&(O="".concat(O.slice(0,509),"...")),$.length>512&&($="".concat($.slice(0,509),"...")),"deepEqual"===dA||"equal"===dA?O="".concat(V,"\n\n").concat(O,"\n\nshould equal\n\n"):$=" ".concat(dA," ").concat($)),FA=B(this,Q(BA).call(this,"".concat(O).concat($)))}return Error.stackTraceLimit=bA,FA.generatedMessage=!_,Object.defineProperty(E(FA),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),FA.code="ERR_ASSERTION",FA.actual=CA,FA.expected=NA,FA.operator=dA,Error.captureStackTrace&&Error.captureStackTrace(E(FA),uA),FA.name="AssertionError",B(FA)}return function u(gA,BA){if("function"!=typeof BA&&null!==BA)throw new TypeError("Super expression must either be null or a function");gA.prototype=Object.create(BA&&BA.prototype,{constructor:{value:gA,writable:!0,configurable:!0}}),BA&&w(gA,BA)}(BA,gA),function a(gA,BA,DA){return BA&&h(gA.prototype,BA),DA&&h(gA,DA),gA}(BA,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:y.custom,value:function(FA,_){return y(this,function i(gA){for(var BA=1;BA2?"one of ".concat(Y," ").concat(d.slice(0,y-1).join(", "),", or ")+d[y-1]:2===y?"one of ".concat(Y," ").concat(d[0]," or ").concat(d[1]):"of ".concat(Y," ").concat(d[0])}return"of ".concat(Y," ").concat(String(d))}e("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),e("ERR_INVALID_ARG_TYPE",function(d,Y,y){var p,m;if(void 0===u&&(u=n(9282)),u("string"==typeof d,"'name' must be a string"),"string"==typeof Y&&function g(d,Y,y){return d.substr(!y||y<0?0:+y,Y.length)===Y}(Y,"not ")?(p="must not be",Y=Y.replace(/^not /,"")):p="must be",function w(d,Y,y){return(void 0===y||y>d.length)&&(y=d.length),d.substring(y-Y.length,y)===Y}(d," argument"))m="The ".concat(d," ").concat(p," ").concat(f(Y,"type"));else{var D=function Q(d,Y,y){return"number"!=typeof y&&(y=0),!(y+Y.length>d.length)&&-1!==d.indexOf(Y,y)}(d,".")?"property":"argument";m='The "'.concat(d,'" ').concat(D," ").concat(p," ").concat(f(Y,"type"))}return m+". Received type ".concat(l(y))},TypeError),e("ERR_INVALID_ARG_VALUE",function(d,Y){var y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===C&&(C=n(9539));var p=C.inspect(Y);return p.length>128&&(p="".concat(p.slice(0,128),"...")),"The argument '".concat(d,"' ").concat(y,". Received ").concat(p)},TypeError,RangeError),e("ERR_INVALID_RETURN_VALUE",function(d,Y,y){var p;return p=y&&y.constructor&&y.constructor.name?"instance of ".concat(y.constructor.name):"type ".concat(l(y)),"Expected ".concat(d,' to be returned from the "').concat(Y,'"')+" function but got ".concat(p,".")},TypeError),e("ERR_MISSING_ARGS",function(){for(var d=arguments.length,Y=new Array(d),y=0;y0,"At least one arg needs to be specified");var p="The ",m=Y.length;switch(Y=Y.map(function(D){return'"'.concat(D,'"')}),m){case 1:p+="".concat(Y[0]," argument");break;case 2:p+="".concat(Y[0]," and ").concat(Y[1]," arguments");break;default:p+=Y.slice(0,m-1).join(", "),p+=", and ".concat(Y[m-1]," arguments")}return"".concat(p," must be specified")},TypeError),T.exports.codes=E},9158:function(T,I,n){"use strict";function l(JA,VA){return function c(JA){if(Array.isArray(JA))return JA}(JA)||function o(JA,VA){var rt=[],yA=!0,Mt=!1,Et=void 0;try{for(var Yt,OA=JA[Symbol.iterator]();!(yA=(Yt=OA.next()).done)&&(rt.push(Yt.value),!VA||rt.length!==VA);yA=!0);}catch(H){Mt=!0,Et=H}finally{try{!yA&&null!=OA.return&&OA.return()}finally{if(Mt)throw Et}}return rt}(JA,VA)||function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function h(JA){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(rt){return typeof rt}:function(rt){return rt&&"function"==typeof Symbol&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt})(JA)}var a=void 0!==/a/g.flags,B=function(VA){var rt=[];return VA.forEach(function(yA){return rt.push(yA)}),rt},E=function(VA){var rt=[];return VA.forEach(function(yA,Mt){return rt.push([Mt,yA])}),rt},u=Object.is?Object.is:n(609),C=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},e=Number.isNaN?Number.isNaN:n(360);function f(JA){return JA.call.bind(JA)}var g=f(Object.prototype.hasOwnProperty),w=f(Object.prototype.propertyIsEnumerable),Q=f(Object.prototype.toString),d=n(9539).types,Y=d.isAnyArrayBuffer,y=d.isArrayBufferView,p=d.isDate,m=d.isMap,D=d.isRegExp,U=d.isSet,N=d.isNativeError,F=d.isBoxedPrimitive,z=d.isNumberObject,L=d.isStringObject,W=d.isBooleanObject,aA=d.isBigIntObject,AA=d.isSymbolObject,cA=d.isFloat32Array,MA=d.isFloat64Array;function lA(JA){if(0===JA.length||JA.length>10)return!0;for(var VA=0;VA57)return!0}return 10===JA.length&&JA>=Math.pow(2,32)}function gA(JA){return Object.keys(JA).filter(lA).concat(C(JA).filter(Object.prototype.propertyIsEnumerable.bind(JA)))}function BA(JA,VA){if(JA===VA)return 0;for(var rt=JA.length,yA=VA.length,Mt=0,Et=Math.min(rt,yA);Mt=E.length?{done:!0}:{done:!1,value:E[e++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(E,u){(null==u||u>E.length)&&(u=E.length);for(var C=0,e=new Array(u);Cthis.buffer.length)return this.flush()},f.flush=function(){if(this.bufferOffset>0)return this.push(l.from(this.buffer.slice(0,this.bufferOffset))),this.bufferOffset=0},f.writeBuffer=function(w){return this.flush(),this.push(w),this.pos+=w.length},f.writeString=function(w,Q){switch(void 0===Q&&(Q="ascii"),Q){case"utf16le":case"ucs2":case"utf8":case"ascii":return this.writeBuffer(l.from(w,Q));case"utf16be":for(var d=l.from(w,"utf16le"),Y=0,y=d.length-1;Y>>16&255,this.buffer[this.bufferOffset++]=w>>>8&255,this.buffer[this.bufferOffset++]=255&w,this.pos+=3},f.writeUInt24LE=function(w){return this.ensure(3),this.buffer[this.bufferOffset++]=255&w,this.buffer[this.bufferOffset++]=w>>>8&255,this.buffer[this.bufferOffset++]=w>>>16&255,this.pos+=3},f.writeInt24BE=function(w){return this.writeUInt24BE(w>=0?w:w+16777215+1)},f.writeInt24LE=function(w){return this.writeUInt24LE(w>=0?w:w+16777215+1)},f.fill=function(w,Q){if(Q=this.length)){if(null==this.items[w]){var Q=this.stream.pos;this.stream.pos=this.base+this.type.size(null,this.ctx)*w,this.items[w]=this.type.decode(this.stream,this.ctx),this.stream.pos=Q}return this.items[w]}},f.toArray=function(){for(var w=[],Q=0,d=this.length;Q>1),(f=a.call(this,"Int"+u,C)||this)._point=1<u)throw new RangeError('The value "'+H+'" is invalid for option "size"');var k=new Uint8Array(H);return Object.setPrototypeOf(k,f.prototype),k}function f(H,k,R){if("number"==typeof H){if("string"==typeof k)throw new TypeError('The "string" argument must be of type string. Received type number');return d(H)}return g(H,k,R)}function g(H,k,R){if("string"==typeof H)return function Y(H,k){if(("string"!=typeof k||""===k)&&(k="utf8"),!f.isEncoding(k))throw new TypeError("Unknown encoding: "+k);var R=0|F(H,k),QA=e(R),wA=QA.write(H,k);return wA!==R&&(QA=QA.slice(0,wA)),QA}(H,k);if(ArrayBuffer.isView(H))return function p(H){if(yA(H,Uint8Array)){var k=new Uint8Array(H);return m(k.buffer,k.byteOffset,k.byteLength)}return y(H)}(H);if(null==H)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof H);if(yA(H,ArrayBuffer)||H&&yA(H.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(yA(H,SharedArrayBuffer)||H&&yA(H.buffer,SharedArrayBuffer)))return m(H,k,R);if("number"==typeof H)throw new TypeError('The "value" argument must not be of type number. Received type number');var QA=H.valueOf&&H.valueOf();if(null!=QA&&QA!==H)return f.from(QA,k,R);var wA=function D(H){if(f.isBuffer(H)){var k=0|U(H.length),R=e(k);return 0===R.length||H.copy(R,0,0,k),R}return void 0!==H.length?"number"!=typeof H.length||Mt(H.length)?e(0):y(H):"Buffer"===H.type&&Array.isArray(H.data)?y(H.data):void 0}(H);if(wA)return wA;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof H[Symbol.toPrimitive])return f.from(H[Symbol.toPrimitive]("string"),k,R);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof H)}function w(H){if("number"!=typeof H)throw new TypeError('"size" argument must be of type number');if(H<0)throw new RangeError('The value "'+H+'" is invalid for option "size"')}function d(H){return w(H),e(H<0?0:0|U(H))}function y(H){for(var k=H.length<0?0:0|U(H.length),R=e(k),QA=0;QA=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return 0|H}function F(H,k){if(f.isBuffer(H))return H.length;if(ArrayBuffer.isView(H)||yA(H,ArrayBuffer))return H.byteLength;if("string"!=typeof H)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof H);var R=H.length,QA=arguments.length>2&&!0===arguments[2];if(!QA&&0===R)return 0;for(var wA=!1;;)switch(k){case"ascii":case"latin1":case"binary":return R;case"utf8":case"utf-8":return It(H).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*R;case"hex":return R>>>1;case"base64":return VA(H).length;default:if(wA)return QA?-1:It(H).length;k=(""+k).toLowerCase(),wA=!0}}function z(H,k,R){var QA=!1;if((void 0===k||k<0)&&(k=0),k>this.length||((void 0===R||R>this.length)&&(R=this.length),R<=0)||(R>>>=0)<=(k>>>=0))return"";for(H||(H="utf8");;)switch(H){case"hex":return CA(this,k,R);case"utf8":case"utf-8":return DA(this,k,R);case"ascii":return dA(this,k,R);case"latin1":case"binary":return uA(this,k,R);case"base64":return BA(this,k,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return NA(this,k,R);default:if(QA)throw new TypeError("Unknown encoding: "+H);H=(H+"").toLowerCase(),QA=!0}}function L(H,k,R){var QA=H[k];H[k]=H[R],H[R]=QA}function W(H,k,R,QA,wA){if(0===H.length)return-1;if("string"==typeof R?(QA=R,R=0):R>2147483647?R=2147483647:R<-2147483648&&(R=-2147483648),Mt(R=+R)&&(R=wA?0:H.length-1),R<0&&(R=H.length+R),R>=H.length){if(wA)return-1;R=H.length-1}else if(R<0){if(!wA)return-1;R=0}if("string"==typeof k&&(k=f.from(k,QA)),f.isBuffer(k))return 0===k.length?-1:aA(H,k,R,QA,wA);if("number"==typeof k)return k&=255,"function"==typeof Uint8Array.prototype.indexOf?wA?Uint8Array.prototype.indexOf.call(H,k,R):Uint8Array.prototype.lastIndexOf.call(H,k,R):aA(H,[k],R,QA,wA);throw new TypeError("val must be string, number or Buffer")}function aA(H,k,R,QA,wA){var j,PA=1,rA=H.length,lt=k.length;if(void 0!==QA&&("ucs2"===(QA=String(QA).toLowerCase())||"ucs-2"===QA||"utf16le"===QA||"utf-16le"===QA)){if(H.length<2||k.length<2)return-1;PA=2,rA/=2,lt/=2,R/=2}function Ft(ZA,st){return 1===PA?ZA[st]:ZA.readUInt16BE(st*PA)}if(wA){var kA=-1;for(j=R;jrA&&(R=rA-lt),j=R;j>=0;j--){for(var At=!0,xA=0;xAwA&&(QA=wA):QA=wA;var rA,PA=k.length;for(QA>PA/2&&(QA=PA/2),rA=0;rA>8,PA.push(R%256),PA.push(QA);return PA}(k,H.length-R),H,R,QA)}function BA(H,k,R){return a.fromByteArray(0===k&&R===H.length?H:H.slice(k,R))}function DA(H,k,R){R=Math.min(H.length,R);for(var QA=[],wA=k;wA239?4:PA>223?3:PA>191?2:1;if(wA+lt<=R){var Ft=void 0,j=void 0,kA=void 0,At=void 0;switch(lt){case 1:PA<128&&(rA=PA);break;case 2:128==(192&(Ft=H[wA+1]))&&(At=(31&PA)<<6|63&Ft)>127&&(rA=At);break;case 3:j=H[wA+2],128==(192&(Ft=H[wA+1]))&&128==(192&j)&&(At=(15&PA)<<12|(63&Ft)<<6|63&j)>2047&&(At<55296||At>57343)&&(rA=At);break;case 4:j=H[wA+2],kA=H[wA+3],128==(192&(Ft=H[wA+1]))&&128==(192&j)&&128==(192&kA)&&(At=(15&PA)<<18|(63&Ft)<<12|(63&j)<<6|63&kA)>65535&&At<1114112&&(rA=At)}}null===rA?(rA=65533,lt=1):rA>65535&&(QA.push((rA-=65536)>>>10&1023|55296),rA=56320|1023&rA),QA.push(rA),wA+=lt}return function _(H){var k=H.length;if(k<=4096)return String.fromCharCode.apply(String,H);for(var R="",QA=0;QAwA.length?(f.isBuffer(rA)||(rA=f.from(rA)),rA.copy(wA,PA)):Uint8Array.prototype.set.call(wA,rA,PA);else{if(!f.isBuffer(rA))throw new TypeError('"list" argument must be an Array of Buffers');rA.copy(wA,PA)}PA+=rA.length}return wA},f.byteLength=F,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var k=this.length;if(k%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var R=0;RR&&(k+=" ... "),""},E&&(f.prototype[E]=f.prototype.inspect),f.prototype.compare=function(k,R,QA,wA,PA){if(yA(k,Uint8Array)&&(k=f.from(k,k.offset,k.byteLength)),!f.isBuffer(k))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof k);if(void 0===R&&(R=0),void 0===QA&&(QA=k?k.length:0),void 0===wA&&(wA=0),void 0===PA&&(PA=this.length),R<0||QA>k.length||wA<0||PA>this.length)throw new RangeError("out of range index");if(wA>=PA&&R>=QA)return 0;if(wA>=PA)return-1;if(R>=QA)return 1;if(this===k)return 0;for(var rA=(PA>>>=0)-(wA>>>=0),lt=(QA>>>=0)-(R>>>=0),Ft=Math.min(rA,lt),j=this.slice(wA,PA),kA=k.slice(R,QA),At=0;At>>=0,isFinite(QA)?(QA>>>=0,void 0===wA&&(wA="utf8")):(wA=QA,QA=void 0)}var PA=this.length-R;if((void 0===QA||QA>PA)&&(QA=PA),k.length>0&&(QA<0||R<0)||R>this.length)throw new RangeError("Attempt to write outside buffer bounds");wA||(wA="utf8");for(var rA=!1;;)switch(wA){case"hex":return AA(this,k,R,QA);case"utf8":case"utf-8":return cA(this,k,R,QA);case"ascii":case"latin1":case"binary":return MA(this,k,R,QA);case"base64":return lA(this,k,R,QA);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gA(this,k,R,QA);default:if(rA)throw new TypeError("Unknown encoding: "+wA);wA=(""+wA).toLowerCase(),rA=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function dA(H,k,R){var QA="";R=Math.min(H.length,R);for(var wA=k;wAQA)&&(R=QA);for(var wA="",PA=k;PAR)throw new RangeError("Trying to access beyond buffer length")}function XA(H,k,R,QA,wA,PA){if(!f.isBuffer(H))throw new TypeError('"buffer" argument must be a Buffer instance');if(k>wA||kH.length)throw new RangeError("Index out of range")}function q(H,k,R,QA,wA){et(k,QA,wA,H,R,7);var PA=Number(k&BigInt(4294967295));H[R++]=PA,H[R++]=PA>>=8,H[R++]=PA>>=8,H[R++]=PA>>=8;var rA=Number(k>>BigInt(32)&BigInt(4294967295));return H[R++]=rA,H[R++]=rA>>=8,H[R++]=rA>>=8,H[R++]=rA>>=8,R}function O(H,k,R,QA,wA){et(k,QA,wA,H,R,7);var PA=Number(k&BigInt(4294967295));H[R+7]=PA,H[R+6]=PA>>=8,H[R+5]=PA>>=8,H[R+4]=PA>>=8;var rA=Number(k>>BigInt(32)&BigInt(4294967295));return H[R+3]=rA,H[R+2]=rA>>=8,H[R+1]=rA>>=8,H[R]=rA>>=8,R+8}function $(H,k,R,QA,wA,PA){if(R+QA>H.length)throw new RangeError("Index out of range");if(R<0)throw new RangeError("Index out of range")}function V(H,k,R,QA,wA){return k=+k,R>>>=0,wA||$(H,0,R,4),B.write(H,k,R,QA,23,4),R+4}function hA(H,k,R,QA,wA){return k=+k,R>>>=0,wA||$(H,0,R,8),B.write(H,k,R,QA,52,8),R+8}f.prototype.slice=function(k,R){var QA=this.length;(k=~~k)<0?(k+=QA)<0&&(k=0):k>QA&&(k=QA),(R=void 0===R?QA:~~R)<0?(R+=QA)<0&&(R=0):R>QA&&(R=QA),R>>=0,R>>>=0,QA||bA(k,R,this.length);for(var wA=this[k],PA=1,rA=0;++rA>>=0,R>>>=0,QA||bA(k,R,this.length);for(var wA=this[k+--R],PA=1;R>0&&(PA*=256);)wA+=this[k+--R]*PA;return wA},f.prototype.readUint8=f.prototype.readUInt8=function(k,R){return k>>>=0,R||bA(k,1,this.length),this[k]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(k,R){return k>>>=0,R||bA(k,2,this.length),this[k]|this[k+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(k,R){return k>>>=0,R||bA(k,2,this.length),this[k]<<8|this[k+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(k,R){return k>>>=0,R||bA(k,4,this.length),(this[k]|this[k+1]<<8|this[k+2]<<16)+16777216*this[k+3]},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(k,R){return k>>>=0,R||bA(k,4,this.length),16777216*this[k]+(this[k+1]<<16|this[k+2]<<8|this[k+3])},f.prototype.readBigUInt64LE=OA(function(k){ot(k>>>=0,"offset");var R=this[k],QA=this[k+7];(void 0===R||void 0===QA)&&TA(k,this.length-8);var wA=R+this[++k]*Math.pow(2,8)+this[++k]*Math.pow(2,16)+this[++k]*Math.pow(2,24),PA=this[++k]+this[++k]*Math.pow(2,8)+this[++k]*Math.pow(2,16)+QA*Math.pow(2,24);return BigInt(wA)+(BigInt(PA)<>>=0,"offset");var R=this[k],QA=this[k+7];(void 0===R||void 0===QA)&&TA(k,this.length-8);var wA=R*Math.pow(2,24)+this[++k]*Math.pow(2,16)+this[++k]*Math.pow(2,8)+this[++k],PA=this[++k]*Math.pow(2,24)+this[++k]*Math.pow(2,16)+this[++k]*Math.pow(2,8)+QA;return(BigInt(wA)<>>=0,R>>>=0,QA||bA(k,R,this.length);for(var wA=this[k],PA=1,rA=0;++rA=(PA*=128)&&(wA-=Math.pow(2,8*R)),wA},f.prototype.readIntBE=function(k,R,QA){k>>>=0,R>>>=0,QA||bA(k,R,this.length);for(var wA=R,PA=1,rA=this[k+--wA];wA>0&&(PA*=256);)rA+=this[k+--wA]*PA;return rA>=(PA*=128)&&(rA-=Math.pow(2,8*R)),rA},f.prototype.readInt8=function(k,R){return k>>>=0,R||bA(k,1,this.length),128&this[k]?-1*(255-this[k]+1):this[k]},f.prototype.readInt16LE=function(k,R){k>>>=0,R||bA(k,2,this.length);var QA=this[k]|this[k+1]<<8;return 32768&QA?4294901760|QA:QA},f.prototype.readInt16BE=function(k,R){k>>>=0,R||bA(k,2,this.length);var QA=this[k+1]|this[k]<<8;return 32768&QA?4294901760|QA:QA},f.prototype.readInt32LE=function(k,R){return k>>>=0,R||bA(k,4,this.length),this[k]|this[k+1]<<8|this[k+2]<<16|this[k+3]<<24},f.prototype.readInt32BE=function(k,R){return k>>>=0,R||bA(k,4,this.length),this[k]<<24|this[k+1]<<16|this[k+2]<<8|this[k+3]},f.prototype.readBigInt64LE=OA(function(k){ot(k>>>=0,"offset");var R=this[k],QA=this[k+7];(void 0===R||void 0===QA)&&TA(k,this.length-8);var wA=this[k+4]+this[k+5]*Math.pow(2,8)+this[k+6]*Math.pow(2,16)+(QA<<24);return(BigInt(wA)<>>=0,"offset");var R=this[k],QA=this[k+7];(void 0===R||void 0===QA)&&TA(k,this.length-8);var wA=(R<<24)+this[++k]*Math.pow(2,16)+this[++k]*Math.pow(2,8)+this[++k];return(BigInt(wA)<>>=0,R||bA(k,4,this.length),B.read(this,k,!0,23,4)},f.prototype.readFloatBE=function(k,R){return k>>>=0,R||bA(k,4,this.length),B.read(this,k,!1,23,4)},f.prototype.readDoubleLE=function(k,R){return k>>>=0,R||bA(k,8,this.length),B.read(this,k,!0,52,8)},f.prototype.readDoubleBE=function(k,R){return k>>>=0,R||bA(k,8,this.length),B.read(this,k,!1,52,8)},f.prototype.writeUintLE=f.prototype.writeUIntLE=function(k,R,QA,wA){k=+k,R>>>=0,QA>>>=0,wA||XA(this,k,R,QA,Math.pow(2,8*QA)-1,0);var rA=1,lt=0;for(this[R]=255&k;++lt>>=0,QA>>>=0,wA||XA(this,k,R,QA,Math.pow(2,8*QA)-1,0);var rA=QA-1,lt=1;for(this[R+rA]=255&k;--rA>=0&&(lt*=256);)this[R+rA]=k/lt&255;return R+QA},f.prototype.writeUint8=f.prototype.writeUInt8=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,1,255,0),this[R]=255&k,R+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,2,65535,0),this[R]=255&k,this[R+1]=k>>>8,R+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,2,65535,0),this[R]=k>>>8,this[R+1]=255&k,R+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,4,4294967295,0),this[R+3]=k>>>24,this[R+2]=k>>>16,this[R+1]=k>>>8,this[R]=255&k,R+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,4,4294967295,0),this[R]=k>>>24,this[R+1]=k>>>16,this[R+2]=k>>>8,this[R+3]=255&k,R+4},f.prototype.writeBigUInt64LE=OA(function(k,R){return void 0===R&&(R=0),q(this,k,R,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeBigUInt64BE=OA(function(k,R){return void 0===R&&(R=0),O(this,k,R,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeIntLE=function(k,R,QA,wA){if(k=+k,R>>>=0,!wA){var PA=Math.pow(2,8*QA-1);XA(this,k,R,QA,PA-1,-PA)}var rA=0,lt=1,Ft=0;for(this[R]=255&k;++rA>0)-Ft&255;return R+QA},f.prototype.writeIntBE=function(k,R,QA,wA){if(k=+k,R>>>=0,!wA){var PA=Math.pow(2,8*QA-1);XA(this,k,R,QA,PA-1,-PA)}var rA=QA-1,lt=1,Ft=0;for(this[R+rA]=255&k;--rA>=0&&(lt*=256);)k<0&&0===Ft&&0!==this[R+rA+1]&&(Ft=1),this[R+rA]=(k/lt>>0)-Ft&255;return R+QA},f.prototype.writeInt8=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,1,127,-128),k<0&&(k=255+k+1),this[R]=255&k,R+1},f.prototype.writeInt16LE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,2,32767,-32768),this[R]=255&k,this[R+1]=k>>>8,R+2},f.prototype.writeInt16BE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,2,32767,-32768),this[R]=k>>>8,this[R+1]=255&k,R+2},f.prototype.writeInt32LE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,4,2147483647,-2147483648),this[R]=255&k,this[R+1]=k>>>8,this[R+2]=k>>>16,this[R+3]=k>>>24,R+4},f.prototype.writeInt32BE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,4,2147483647,-2147483648),k<0&&(k=4294967295+k+1),this[R]=k>>>24,this[R+1]=k>>>16,this[R+2]=k>>>8,this[R+3]=255&k,R+4},f.prototype.writeBigInt64LE=OA(function(k,R){return void 0===R&&(R=0),q(this,k,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeBigInt64BE=OA(function(k,R){return void 0===R&&(R=0),O(this,k,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeFloatLE=function(k,R,QA){return V(this,k,R,!0,QA)},f.prototype.writeFloatBE=function(k,R,QA){return V(this,k,R,!1,QA)},f.prototype.writeDoubleLE=function(k,R,QA){return hA(this,k,R,!0,QA)},f.prototype.writeDoubleBE=function(k,R,QA){return hA(this,k,R,!1,QA)},f.prototype.copy=function(k,R,QA,wA){if(!f.isBuffer(k))throw new TypeError("argument should be a Buffer");if(QA||(QA=0),!wA&&0!==wA&&(wA=this.length),R>=k.length&&(R=k.length),R||(R=0),wA>0&&wA=this.length)throw new RangeError("Index out of range");if(wA<0)throw new RangeError("sourceEnd out of bounds");wA>this.length&&(wA=this.length),k.length-R>>=0,QA=void 0===QA?this.length:QA>>>0,k||(k=0),"number"==typeof k)for(rA=R;rA=QA+4;R-=3)k="_"+H.slice(R-3,R)+k;return""+H.slice(0,R)+k}function et(H,k,R,QA,wA,PA){if(H>R||H3?0===k||k===BigInt(0)?">= 0"+rA+" and < 2"+rA+" ** "+8*(PA+1)+rA:">= -(2"+rA+" ** "+(8*(PA+1)-1)+rA+") and < 2 ** "+(8*(PA+1)-1)+rA:">= "+k+rA+" and <= "+R+rA,new mA.ERR_OUT_OF_RANGE("value",lt,H)}!function GA(H,k,R){ot(k,"offset"),(void 0===H[k]||void 0===H[k+R])&&TA(k,H.length-(R+1))}(QA,wA,PA)}function ot(H,k){if("number"!=typeof H)throw new mA.ERR_INVALID_ARG_TYPE(k,"number",H)}function TA(H,k,R){throw Math.floor(H)!==H?(ot(H,R),new mA.ERR_OUT_OF_RANGE(R||"offset","an integer",H)):k<0?new mA.ERR_BUFFER_OUT_OF_BOUNDS:new mA.ERR_OUT_OF_RANGE(R||"offset",">= "+(R?1:0)+" and <= "+k,H)}nA("ERR_BUFFER_OUT_OF_BOUNDS",function(H){return H?H+" is outside of buffer bounds":"Attempt to access memory outside buffer bounds"},RangeError),nA("ERR_INVALID_ARG_TYPE",function(H,k){return'The "'+H+'" argument must be of type number. Received type '+typeof k},TypeError),nA("ERR_OUT_OF_RANGE",function(H,k,R){var QA='The value of "'+H+'" is out of range.',wA=R;return Number.isInteger(R)&&Math.abs(R)>Math.pow(2,32)?wA=EA(String(R)):"bigint"==typeof R&&(wA=String(R),(R>Math.pow(BigInt(2),BigInt(32))||R<-Math.pow(BigInt(2),BigInt(32)))&&(wA=EA(wA)),wA+="n"),QA+" It must be "+k+". Received "+wA},RangeError);var it=/[^+/0-9A-Za-z-_]/g;function It(H,k){k=k||1/0;for(var R,QA=H.length,wA=null,PA=[],rA=0;rA55295&&R<57344){if(!wA){if(R>56319){(k-=3)>-1&&PA.push(239,191,189);continue}if(rA+1===QA){(k-=3)>-1&&PA.push(239,191,189);continue}wA=R;continue}if(R<56320){(k-=3)>-1&&PA.push(239,191,189),wA=R;continue}R=65536+(wA-55296<<10|R-56320)}else wA&&(k-=3)>-1&&PA.push(239,191,189);if(wA=null,R<128){if((k-=1)<0)break;PA.push(R)}else if(R<2048){if((k-=2)<0)break;PA.push(R>>6|192,63&R|128)}else if(R<65536){if((k-=3)<0)break;PA.push(R>>12|224,R>>6&63|128,63&R|128)}else{if(!(R<1114112))throw new Error("Invalid code point");if((k-=4)<0)break;PA.push(R>>18|240,R>>12&63|128,R>>6&63|128,63&R|128)}}return PA}function VA(H){return a.toByteArray(function mt(H){if((H=(H=H.split("=")[0]).trim().replace(it,"")).length<2)return"";for(;H.length%4!=0;)H+="=";return H}(H))}function rt(H,k,R,QA){var wA;for(wA=0;wA=k.length||wA>=H.length);++wA)k[wA+R]=H[wA];return wA}function yA(H,k){return H instanceof k||null!=H&&null!=H.constructor&&null!=H.constructor.name&&H.constructor.name===k.name}function Mt(H){return H!=H}var Et=function(){for(var H="0123456789abcdef",k=new Array(256),R=0;R<16;++R)for(var QA=16*R,wA=0;wA<16;++wA)k[QA+wA]=H[R]+H[wA];return k}();function OA(H){return"undefined"==typeof BigInt?Yt:H}function Yt(){throw new Error("BigInt not supported")}},477:function(T,I,n){"use strict";n(7803),n(1539),T.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},2094:function(T,I,n){"use strict";var cA,MA,lA,l=n(477),i=n(9781),o=n(7854),c=n(614),h=n(111),a=n(2597),B=n(648),E=n(6330),u=n(8880),C=n(1320),e=n(3070).f,f=n(7976),g=n(9518),w=n(7674),Q=n(5112),d=n(9711),Y=o.Int8Array,y=Y&&Y.prototype,p=o.Uint8ClampedArray,m=p&&p.prototype,D=Y&&g(Y),U=y&&g(y),N=Object.prototype,F=o.TypeError,z=Q("toStringTag"),L=d("TYPED_ARRAY_TAG"),W=d("TYPED_ARRAY_CONSTRUCTOR"),aA=l&&!!w&&"Opera"!==B(o.opera),AA=!1,gA={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},BA={BigInt64Array:8,BigUint64Array:8},FA=function(bA){if(!h(bA))return!1;var XA=B(bA);return a(gA,XA)||a(BA,XA)};for(cA in gA)(lA=(MA=o[cA])&&MA.prototype)?u(lA,W,MA):aA=!1;for(cA in BA)(lA=(MA=o[cA])&&MA.prototype)&&u(lA,W,MA);if((!aA||!c(D)||D===Function.prototype)&&(D=function(){throw F("Incorrect invocation")},aA))for(cA in gA)o[cA]&&w(o[cA],D);if((!aA||!U||U===N)&&(U=D.prototype,aA))for(cA in gA)o[cA]&&w(o[cA].prototype,U);if(aA&&g(m)!==U&&w(m,U),i&&!a(U,z))for(cA in AA=!0,e(U,z,{get:function(){return h(this)?this[L]:void 0}}),gA)o[cA]&&u(o[cA],L,cA);T.exports={NATIVE_ARRAY_BUFFER_VIEWS:aA,TYPED_ARRAY_CONSTRUCTOR:W,TYPED_ARRAY_TAG:AA&&L,aTypedArray:function(bA){if(FA(bA))return bA;throw F("Target is not a typed array")},aTypedArrayConstructor:function(bA){if(c(bA)&&(!w||f(D,bA)))return bA;throw F(E(bA)+" is not a typed array constructor")},exportTypedArrayMethod:function(bA,XA,q){if(i){if(q)for(var O in gA){var $=o[O];if($&&a($.prototype,bA))try{delete $.prototype[bA]}catch(V){}}(!U[bA]||q)&&C(U,bA,q?XA:aA&&y[bA]||XA)}},exportTypedArrayStaticMethod:function(bA,XA,q){var O,$;if(i){if(w){if(q)for(O in gA)if(($=o[O])&&a($,bA))try{delete $[bA]}catch(V){}if(D[bA]&&!q)return;try{return C(D,bA,q?XA:aA&&D[bA]||XA)}catch(V){}}for(O in gA)($=o[O])&&(!$[bA]||q)&&C($,bA,XA)}},isView:function(bA){if(!h(bA))return!1;var XA=B(bA);return"DataView"===XA||a(gA,XA)||a(BA,XA)},isTypedArray:FA,TypedArray:D,TypedArrayPrototype:U}},2091:function(T,I,n){"use strict";n(8309);var l=n(7854),i=n(1702),o=n(9781),c=n(477),h=n(6530),a=n(8880),B=n(2248),E=n(7293),u=n(5787),C=n(9303),e=n(7466),f=n(7067),g=n(1179),w=n(9518),Q=n(7674),d=n(8006).f,Y=n(3070).f,y=n(1285),p=n(206),m=n(8003),D=n(9909),U=h.PROPER,N=h.CONFIGURABLE,F=D.get,z=D.set,L="ArrayBuffer",W="DataView",aA="prototype",cA="Wrong index",MA=l[L],lA=MA,gA=lA&&lA[aA],BA=l[W],DA=BA&&BA[aA],FA=Object.prototype,_=l.Array,dA=l.RangeError,uA=i(y),CA=i([].reverse),NA=g.pack,bA=g.unpack,XA=function(ut){return[255&ut]},q=function(ut){return[255&ut,ut>>8&255]},O=function(ut){return[255&ut,ut>>8&255,ut>>16&255,ut>>24&255]},$=function(ut){return ut[3]<<24|ut[2]<<16|ut[1]<<8|ut[0]},V=function(ut){return NA(ut,23,4)},hA=function(ut){return NA(ut,52,8)},mA=function(ut,JA){Y(ut[aA],JA,{get:function(){return F(this)[JA]}})},nA=function(ut,JA,VA,rt){var yA=f(VA),Mt=F(ut);if(yA+JA>Mt.byteLength)throw dA(cA);var Et=F(Mt.buffer).bytes,OA=yA+Mt.byteOffset,Yt=p(Et,OA,OA+JA);return rt?Yt:CA(Yt)},EA=function(ut,JA,VA,rt,yA,Mt){var Et=f(VA),OA=F(ut);if(Et+JA>OA.byteLength)throw dA(cA);for(var Yt=F(OA.buffer).bytes,H=Et+OA.byteOffset,k=rt(+yA),R=0;Rot;)(TA=et[ot++])in lA||a(lA,TA,MA[TA]);gA.constructor=lA}Q&&w(DA)!==FA&&Q(DA,FA);var it=new BA(new lA(2)),mt=i(DA.setInt8);it.setInt8(0,2147483648),it.setInt8(1,2147483649),(it.getInt8(0)||!it.getInt8(1))&&B(DA,{setInt8:function(ut,JA){mt(this,ut,JA<<24>>24)},setUint8:function(ut,JA){mt(this,ut,JA<<24>>24)}},{unsafe:!0})}else gA=(lA=function(ut){u(this,gA);var JA=f(ut);z(this,{bytes:uA(_(JA),0),byteLength:JA}),o||(this.byteLength=JA)})[aA],DA=(BA=function(ut,JA,VA){u(this,DA),u(ut,gA);var rt=F(ut).byteLength,yA=C(JA);if(yA<0||yA>rt)throw dA("Wrong offset");if(yA+(VA=void 0===VA?rt-yA:e(VA))>rt)throw dA("Wrong length");z(this,{buffer:ut,byteLength:VA,byteOffset:yA}),o||(this.buffer=ut,this.byteLength=VA,this.byteOffset=yA)})[aA],o&&(mA(lA,"byteLength"),mA(BA,"buffer"),mA(BA,"byteLength"),mA(BA,"byteOffset")),B(DA,{getInt8:function(ut){return nA(this,1,ut)[0]<<24>>24},getUint8:function(ut){return nA(this,1,ut)[0]},getInt16:function(ut){var JA=nA(this,2,ut,arguments.length>1?arguments[1]:void 0);return(JA[1]<<8|JA[0])<<16>>16},getUint16:function(ut){var JA=nA(this,2,ut,arguments.length>1?arguments[1]:void 0);return JA[1]<<8|JA[0]},getInt32:function(ut){return $(nA(this,4,ut,arguments.length>1?arguments[1]:void 0))},getUint32:function(ut){return $(nA(this,4,ut,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(ut){return bA(nA(this,4,ut,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(ut){return bA(nA(this,8,ut,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(ut,JA){EA(this,1,ut,XA,JA)},setUint8:function(ut,JA){EA(this,1,ut,XA,JA)},setInt16:function(ut,JA){EA(this,2,ut,q,JA,arguments.length>2?arguments[2]:void 0)},setUint16:function(ut,JA){EA(this,2,ut,q,JA,arguments.length>2?arguments[2]:void 0)},setInt32:function(ut,JA){EA(this,4,ut,O,JA,arguments.length>2?arguments[2]:void 0)},setUint32:function(ut,JA){EA(this,4,ut,O,JA,arguments.length>2?arguments[2]:void 0)},setFloat32:function(ut,JA){EA(this,4,ut,V,JA,arguments.length>2?arguments[2]:void 0)},setFloat64:function(ut,JA){EA(this,8,ut,hA,JA,arguments.length>2?arguments[2]:void 0)}});m(lA,L),m(BA,W),T.exports={ArrayBuffer:lA,DataView:BA}},7803:function(T,I,n){"use strict";var l=n(2109),i=n(7854),o=n(2091),c=n(6340),h="ArrayBuffer",a=o[h];l({global:!0,forced:i[h]!==a},{ArrayBuffer:a}),c(h)},194:function(T,I,n){"use strict";T.exports=function(l){return function(){var i=l,c=i.lib.BlockCipher,h=i.algo,a=[],B=[],E=[],u=[],C=[],e=[],f=[],g=[],w=[],Q=[];!function(){for(var y=[],p=0;p<256;p++)y[p]=p<128?p<<1:p<<1^283;var m=0,D=0;for(p=0;p<256;p++){var U=D^D<<1^D<<2^D<<3^D<<4;a[m]=U=U>>>8^255&U^99,B[U]=m;var L,N=y[m],F=y[N],z=y[F];E[m]=(L=257*y[U]^16843008*U)<<24|L>>>8,u[m]=L<<16|L>>>16,C[m]=L<<8|L>>>24,e[m]=L,f[U]=(L=16843009*z^65537*F^257*N^16843008*m)<<24|L>>>8,g[U]=L<<16|L>>>16,w[U]=L<<8|L>>>24,Q[U]=L,m?(m=N^y[y[y[z^N]]],D^=y[y[D]]):m=D=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],Y=h.AES=c.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var m=this._keyPriorReset=this._key,D=m.words,U=m.sigBytes/4,F=4*((this._nRounds=U+6)+1),z=this._keySchedule=[],L=0;L6&&L%U==4&&(p=a[p>>>24]<<24|a[p>>>16&255]<<16|a[p>>>8&255]<<8|a[255&p]):(p=a[(p=p<<8|p>>>24)>>>24]<<24|a[p>>>16&255]<<16|a[p>>>8&255]<<8|a[255&p],p^=d[L/U|0]<<24),z[L]=z[L-U]^p);for(var W=this._invKeySchedule=[],aA=0;aA>>24]]^g[a[p>>>16&255]]^w[a[p>>>8&255]]^Q[a[255&p]]}}},encryptBlock:function(p,m){this._doCryptBlock(p,m,this._keySchedule,E,u,C,e,a)},decryptBlock:function(p,m){var D=p[m+1];p[m+1]=p[m+3],p[m+3]=D,this._doCryptBlock(p,m,this._invKeySchedule,f,g,w,Q,B),D=p[m+1],p[m+1]=p[m+3],p[m+3]=D},_doCryptBlock:function(p,m,D,U,N,F,z,L){for(var W=this._nRounds,aA=p[m]^D[0],AA=p[m+1]^D[1],cA=p[m+2]^D[2],MA=p[m+3]^D[3],lA=4,gA=1;gA>>24]^N[AA>>>16&255]^F[cA>>>8&255]^z[255&MA]^D[lA++],DA=U[AA>>>24]^N[cA>>>16&255]^F[MA>>>8&255]^z[255&aA]^D[lA++],FA=U[cA>>>24]^N[MA>>>16&255]^F[aA>>>8&255]^z[255&AA]^D[lA++],_=U[MA>>>24]^N[aA>>>16&255]^F[AA>>>8&255]^z[255&cA]^D[lA++];aA=BA,AA=DA,cA=FA,MA=_}BA=(L[aA>>>24]<<24|L[AA>>>16&255]<<16|L[cA>>>8&255]<<8|L[255&MA])^D[lA++],DA=(L[AA>>>24]<<24|L[cA>>>16&255]<<16|L[MA>>>8&255]<<8|L[255&aA])^D[lA++],FA=(L[cA>>>24]<<24|L[MA>>>16&255]<<16|L[aA>>>8&255]<<8|L[255&AA])^D[lA++],_=(L[MA>>>24]<<24|L[aA>>>16&255]<<16|L[AA>>>8&255]<<8|L[255&cA])^D[lA++],p[m]=BA,p[m+1]=DA,p[m+2]=FA,p[m+3]=_},keySize:8});i.AES=c._createHelper(Y)}(),l.AES}(n(757),n(7508),n(3440),n(3839),n(1582))},1582:function(T,I,n){"use strict";n(7042),n(2222),n(1539),n(9714),n(561),T.exports=function(l){var o,c,h,a,B,C,f,g,Q,d,Y,p,D,N,F,L,W;l.lib.Cipher||(a=(c=(o=l).lib).WordArray,C=o.enc.Base64,f=o.algo.EvpKDF,g=c.Cipher=(B=c.BufferedBlockAlgorithm).extend({cfg:(h=c.Base).extend(),createEncryptor:function(AA,cA){return this.create(this._ENC_XFORM_MODE,AA,cA)},createDecryptor:function(AA,cA){return this.create(this._DEC_XFORM_MODE,AA,cA)},init:function(AA,cA,MA){this.cfg=this.cfg.extend(MA),this._xformMode=AA,this._key=cA,this.reset()},reset:function(){B.reset.call(this),this._doReset()},process:function(AA){return this._append(AA),this._process()},finalize:function(AA){return AA&&this._append(AA),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function aA(AA){return"string"==typeof AA?W:F}return function(AA){return{encrypt:function(MA,lA,gA){return aA(lA).encrypt(AA,MA,lA,gA)},decrypt:function(MA,lA,gA){return aA(lA).decrypt(AA,MA,lA,gA)}}}}()}),c.StreamCipher=g.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),Q=o.mode={},d=c.BlockCipherMode=h.extend({createEncryptor:function(AA,cA){return this.Encryptor.create(AA,cA)},createDecryptor:function(AA,cA){return this.Decryptor.create(AA,cA)},init:function(AA,cA){this._cipher=AA,this._iv=cA}}),Y=Q.CBC=function(){var aA=d.extend();function AA(cA,MA,lA){var gA,BA=this._iv;BA?(gA=BA,this._iv=undefined):gA=this._prevBlock;for(var DA=0;DA>>2]}},c.BlockCipher=g.extend({cfg:g.cfg.extend({mode:Y,padding:p}),reset:function(){var AA;g.reset.call(this);var cA=this.cfg,MA=cA.iv,lA=cA.mode;this._xformMode==this._ENC_XFORM_MODE?AA=lA.createEncryptor:(AA=lA.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==AA?this._mode.init(this,MA&&MA.words):(this._mode=AA.call(lA,this,MA&&MA.words),this._mode.__creator=AA)},_doProcessBlock:function(AA,cA){this._mode.processBlock(AA,cA)},_doFinalize:function(){var AA,cA=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(cA.pad(this._data,this.blockSize),AA=this._process(!0)):(AA=this._process(!0),cA.unpad(AA)),AA},blockSize:4}),D=c.CipherParams=h.extend({init:function(AA){this.mixIn(AA)},toString:function(AA){return(AA||this.formatter).stringify(this)}}),N=(o.format={}).OpenSSL={stringify:function(AA){var MA=AA.ciphertext,lA=AA.salt;return(lA?a.create([1398893684,1701076831]).concat(lA).concat(MA):MA).toString(C)},parse:function(AA){var cA,MA=C.parse(AA),lA=MA.words;return 1398893684==lA[0]&&1701076831==lA[1]&&(cA=a.create(lA.slice(2,4)),lA.splice(0,4),MA.sigBytes-=16),D.create({ciphertext:MA,salt:cA})}},F=c.SerializableCipher=h.extend({cfg:h.extend({format:N}),encrypt:function(AA,cA,MA,lA){lA=this.cfg.extend(lA);var gA=AA.createEncryptor(MA,lA),BA=gA.finalize(cA),DA=gA.cfg;return D.create({ciphertext:BA,key:MA,iv:DA.iv,algorithm:AA,mode:DA.mode,padding:DA.padding,blockSize:AA.blockSize,formatter:lA.format})},decrypt:function(AA,cA,MA,lA){return lA=this.cfg.extend(lA),cA=this._parse(cA,lA.format),AA.createDecryptor(MA,lA).finalize(cA.ciphertext)},_parse:function(AA,cA){return"string"==typeof AA?cA.parse(AA,this):AA}}),L=(o.kdf={}).OpenSSL={execute:function(AA,cA,MA,lA){lA||(lA=a.random(8));var gA=f.create({keySize:cA+MA}).compute(AA,lA),BA=a.create(gA.words.slice(cA),4*MA);return gA.sigBytes=4*cA,D.create({key:gA,iv:BA,salt:lA})}},W=c.PasswordBasedCipher=F.extend({cfg:F.cfg.extend({kdf:L}),encrypt:function(AA,cA,MA,lA){var gA=(lA=this.cfg.extend(lA)).kdf.execute(MA,AA.keySize,AA.ivSize);lA.iv=gA.iv;var BA=F.encrypt.call(this,AA,cA,gA.key,lA);return BA.mixIn(gA),BA},decrypt:function(AA,cA,MA,lA){lA=this.cfg.extend(lA),cA=this._parse(cA,lA.format);var gA=lA.kdf.execute(MA,AA.keySize,AA.ivSize,cA.salt);return lA.iv=gA.iv,F.decrypt.call(this,AA,cA,gA.key,lA)}}))}(n(757),n(3839))},757:function(T,I,n){"use strict";var i;n(5743),n(6992),n(1539),n(9135),n(2990),n(8927),n(3105),n(5035),n(4345),n(7174),n(2846),n(4731),n(7209),n(6319),n(8867),n(7789),n(3739),n(9368),n(4483),n(2056),n(3462),n(678),n(7462),n(3824),n(5021),n(2974),n(5016),n(9714),n(7042),n(9600),n(2222),n(561),i=function(){var l=l||function(i,o){var c;if("undefined"!=typeof window&&window.crypto&&(c=window.crypto),"undefined"!=typeof self&&self.crypto&&(c=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(c=globalThis.crypto),!c&&"undefined"!=typeof window&&window.msCrypto&&(c=window.msCrypto),!c&&void 0!==n.g&&n.g.crypto&&(c=n.g.crypto),!c)try{c=n(2480)}catch(y){}var h=function(){if(c){if("function"==typeof c.getRandomValues)try{return c.getRandomValues(new Uint32Array(1))[0]}catch(p){}if("function"==typeof c.randomBytes)try{return c.randomBytes(4).readInt32LE()}catch(p){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function y(){}return function(p){var m;return y.prototype=p,m=new y,y.prototype=null,m}}(),B={},E=B.lib={},u=E.Base={extend:function(p){var m=a(this);return p&&m.mixIn(p),(!m.hasOwnProperty("init")||this.init===m.init)&&(m.init=function(){m.$super.init.apply(this,arguments)}),m.init.prototype=m,m.$super=this,m},create:function(){var p=this.extend();return p.init.apply(p,arguments),p},init:function(){},mixIn:function(p){for(var m in p)p.hasOwnProperty(m)&&(this[m]=p[m]);p.hasOwnProperty("toString")&&(this.toString=p.toString)},clone:function(){return this.init.prototype.extend(this)}},C=E.WordArray=u.extend({init:function(p,m){p=this.words=p||[],this.sigBytes=null!=m?m:4*p.length},toString:function(p){return(p||f).stringify(this)},concat:function(p){var m=this.words,D=p.words,U=this.sigBytes,N=p.sigBytes;if(this.clamp(),U%4)for(var F=0;F>>2]|=(D[F>>>2]>>>24-F%4*8&255)<<24-(U+F)%4*8;else for(var L=0;L>>2]=D[L>>>2];return this.sigBytes+=N,this},clamp:function(){var p=this.words,m=this.sigBytes;p[m>>>2]&=4294967295<<32-m%4*8,p.length=i.ceil(m/4)},clone:function(){var p=u.clone.call(this);return p.words=this.words.slice(0),p},random:function(p){for(var m=[],D=0;D>>2]>>>24-N%4*8&255;U.push((F>>>4).toString(16)),U.push((15&F).toString(16))}return U.join("")},parse:function(p){for(var m=p.length,D=[],U=0;U>>3]|=parseInt(p.substr(U,2),16)<<24-U%8*4;return new C.init(D,m/2)}},g=e.Latin1={stringify:function(p){for(var m=p.words,D=p.sigBytes,U=[],N=0;N>>2]>>>24-N%4*8&255));return U.join("")},parse:function(p){for(var m=p.length,D=[],U=0;U>>2]|=(255&p.charCodeAt(U))<<24-U%4*8;return new C.init(D,m)}},w=e.Utf8={stringify:function(p){try{return decodeURIComponent(escape(g.stringify(p)))}catch(m){throw new Error("Malformed UTF-8 data")}},parse:function(p){return g.parse(unescape(encodeURIComponent(p)))}},Q=E.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new C.init,this._nDataBytes=0},_append:function(p){"string"==typeof p&&(p=w.parse(p)),this._data.concat(p),this._nDataBytes+=p.sigBytes},_process:function(p){var m,D=this._data,U=D.words,N=D.sigBytes,F=this.blockSize,L=N/(4*F),W=(L=p?i.ceil(L):i.max((0|L)-this._minBufferSize,0))*F,aA=i.min(4*W,N);if(W){for(var AA=0;AA>>2]>>>24-w%4*8&255)<<16|(C[w+1>>>2]>>>24-(w+1)%4*8&255)<<8|C[w+2>>>2]>>>24-(w+2)%4*8&255,p=0;p<4&&w+.75*p>>6*(3-p)&63));var m=f.charAt(64);if(m)for(;g.length%4;)g.push(m);return g.join("")},parse:function(u){var C=u.length,e=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var g=0;g>>6-g%4*2;e[f>>>2]|=(w|Q)<<24-f%4*8,f++}return c.create(e,f)}(u,C,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},l.enc.Base64;var c}(n(757))},7590:function(T,I,n){"use strict";n(9600),T.exports=function(l){return c=l.lib.WordArray,l.enc.Base64url={stringify:function(u,C){void 0===C&&(C=!0);var e=u.words,f=u.sigBytes,g=C?this._safe_map:this._map;u.clamp();for(var w=[],Q=0;Q>>2]>>>24-Q%4*8&255)<<16|(e[Q+1>>>2]>>>24-(Q+1)%4*8&255)<<8|e[Q+2>>>2]>>>24-(Q+2)%4*8&255,m=0;m<4&&Q+.75*m>>6*(3-m)&63));var D=g.charAt(64);if(D)for(;w.length%4;)w.push(D);return w.join("")},parse:function(u,C){void 0===C&&(C=!0);var e=u.length,f=C?this._safe_map:this._map,g=this._reverseMap;if(!g){g=this._reverseMap=[];for(var w=0;w>>6-g%4*2;e[f>>>2]|=(w|Q)<<24-f%4*8,f++}return c.create(e,f)}(u,e,g)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},l.enc.Base64url;var c}(n(757))},4978:function(T,I,n){"use strict";n(9600),T.exports=function(l){return function(){var c=l.lib.WordArray,h=l.enc;function B(E){return E<<8&4278255360|E>>>8&16711935}h.Utf16=h.Utf16BE={stringify:function(u){for(var C=u.words,e=u.sigBytes,f=[],g=0;g>>2]>>>16-g%4*8&65535));return f.join("")},parse:function(u){for(var C=u.length,e=[],f=0;f>>1]|=u.charCodeAt(f)<<16-f%2*16;return c.create(e,2*C)}},h.Utf16LE={stringify:function(u){for(var C=u.words,e=u.sigBytes,f=[],g=0;g>>2]>>>16-g%4*8&65535);f.push(String.fromCharCode(w))}return f.join("")},parse:function(u){for(var C=u.length,e=[],f=0;f>>1]|=B(u.charCodeAt(f)<<16-f%2*16);return c.create(e,2*C)}}}(),l.enc.Utf16}(n(757))},3839:function(T,I,n){"use strict";n(2222),T.exports=function(l){return h=(o=(i=l).lib).WordArray,E=(a=i.algo).EvpKDF=(c=o.Base).extend({cfg:c.extend({keySize:4,hasher:a.MD5,iterations:1}),init:function(C){this.cfg=this.cfg.extend(C)},compute:function(C,e){for(var f,g=this.cfg,w=g.hasher.create(),Q=h.create(),d=Q.words,Y=g.keySize,y=g.iterations;d.lengthg&&(e=C.finalize(e)),e.clamp();for(var w=this._oKey=e.clone(),Q=this._iKey=e.clone(),d=w.words,Y=Q.words,y=0;y>>2]|=B[C]<<24-C%4*8;h.call(this,u,E)}else h.apply(this,arguments)};a.prototype=c}}(),l.lib.WordArray},T.exports=i(n(757))},3440:function(T,I,n){"use strict";T.exports=function(l){return function(i){var o=l,c=o.lib,h=c.WordArray,a=c.Hasher,B=o.algo,E=[];!function(){for(var w=0;w<64;w++)E[w]=4294967296*i.abs(i.sin(w+1))|0}();var u=B.MD5=a.extend({_doReset:function(){this._hash=new h.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(Q,d){for(var Y=0;Y<16;Y++){var y=d+Y,p=Q[y];Q[y]=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8)}var m=this._hash.words,D=Q[d+0],U=Q[d+1],N=Q[d+2],F=Q[d+3],z=Q[d+4],L=Q[d+5],W=Q[d+6],aA=Q[d+7],AA=Q[d+8],cA=Q[d+9],MA=Q[d+10],lA=Q[d+11],gA=Q[d+12],BA=Q[d+13],DA=Q[d+14],FA=Q[d+15],_=m[0],dA=m[1],uA=m[2],CA=m[3];_=C(_,dA,uA,CA,D,7,E[0]),CA=C(CA,_,dA,uA,U,12,E[1]),uA=C(uA,CA,_,dA,N,17,E[2]),dA=C(dA,uA,CA,_,F,22,E[3]),_=C(_,dA,uA,CA,z,7,E[4]),CA=C(CA,_,dA,uA,L,12,E[5]),uA=C(uA,CA,_,dA,W,17,E[6]),dA=C(dA,uA,CA,_,aA,22,E[7]),_=C(_,dA,uA,CA,AA,7,E[8]),CA=C(CA,_,dA,uA,cA,12,E[9]),uA=C(uA,CA,_,dA,MA,17,E[10]),dA=C(dA,uA,CA,_,lA,22,E[11]),_=C(_,dA,uA,CA,gA,7,E[12]),CA=C(CA,_,dA,uA,BA,12,E[13]),uA=C(uA,CA,_,dA,DA,17,E[14]),_=e(_,dA=C(dA,uA,CA,_,FA,22,E[15]),uA,CA,U,5,E[16]),CA=e(CA,_,dA,uA,W,9,E[17]),uA=e(uA,CA,_,dA,lA,14,E[18]),dA=e(dA,uA,CA,_,D,20,E[19]),_=e(_,dA,uA,CA,L,5,E[20]),CA=e(CA,_,dA,uA,MA,9,E[21]),uA=e(uA,CA,_,dA,FA,14,E[22]),dA=e(dA,uA,CA,_,z,20,E[23]),_=e(_,dA,uA,CA,cA,5,E[24]),CA=e(CA,_,dA,uA,DA,9,E[25]),uA=e(uA,CA,_,dA,F,14,E[26]),dA=e(dA,uA,CA,_,AA,20,E[27]),_=e(_,dA,uA,CA,BA,5,E[28]),CA=e(CA,_,dA,uA,N,9,E[29]),uA=e(uA,CA,_,dA,aA,14,E[30]),_=f(_,dA=e(dA,uA,CA,_,gA,20,E[31]),uA,CA,L,4,E[32]),CA=f(CA,_,dA,uA,AA,11,E[33]),uA=f(uA,CA,_,dA,lA,16,E[34]),dA=f(dA,uA,CA,_,DA,23,E[35]),_=f(_,dA,uA,CA,U,4,E[36]),CA=f(CA,_,dA,uA,z,11,E[37]),uA=f(uA,CA,_,dA,aA,16,E[38]),dA=f(dA,uA,CA,_,MA,23,E[39]),_=f(_,dA,uA,CA,BA,4,E[40]),CA=f(CA,_,dA,uA,D,11,E[41]),uA=f(uA,CA,_,dA,F,16,E[42]),dA=f(dA,uA,CA,_,W,23,E[43]),_=f(_,dA,uA,CA,cA,4,E[44]),CA=f(CA,_,dA,uA,gA,11,E[45]),uA=f(uA,CA,_,dA,FA,16,E[46]),_=g(_,dA=f(dA,uA,CA,_,N,23,E[47]),uA,CA,D,6,E[48]),CA=g(CA,_,dA,uA,aA,10,E[49]),uA=g(uA,CA,_,dA,DA,15,E[50]),dA=g(dA,uA,CA,_,L,21,E[51]),_=g(_,dA,uA,CA,gA,6,E[52]),CA=g(CA,_,dA,uA,F,10,E[53]),uA=g(uA,CA,_,dA,MA,15,E[54]),dA=g(dA,uA,CA,_,U,21,E[55]),_=g(_,dA,uA,CA,AA,6,E[56]),CA=g(CA,_,dA,uA,FA,10,E[57]),uA=g(uA,CA,_,dA,W,15,E[58]),dA=g(dA,uA,CA,_,BA,21,E[59]),_=g(_,dA,uA,CA,z,6,E[60]),CA=g(CA,_,dA,uA,lA,10,E[61]),uA=g(uA,CA,_,dA,N,15,E[62]),dA=g(dA,uA,CA,_,cA,21,E[63]),m[0]=m[0]+_|0,m[1]=m[1]+dA|0,m[2]=m[2]+uA|0,m[3]=m[3]+CA|0},_doFinalize:function(){var Q=this._data,d=Q.words,Y=8*this._nDataBytes,y=8*Q.sigBytes;d[y>>>5]|=128<<24-y%32;var p=i.floor(Y/4294967296),m=Y;d[15+(y+64>>>9<<4)]=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),d[14+(y+64>>>9<<4)]=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),Q.sigBytes=4*(d.length+1),this._process();for(var D=this._hash,U=D.words,N=0;N<4;N++){var F=U[N];U[N]=16711935&(F<<8|F>>>24)|4278255360&(F<<24|F>>>8)}return D},clone:function(){var Q=a.clone.call(this);return Q._hash=this._hash.clone(),Q}});function C(w,Q,d,Y,y,p,m){var D=w+(Q&d|~Q&Y)+y+m;return(D<>>32-p)+Q}function e(w,Q,d,Y,y,p,m){var D=w+(Q&Y|d&~Y)+y+m;return(D<>>32-p)+Q}function f(w,Q,d,Y,y,p,m){var D=w+(Q^d^Y)+y+m;return(D<>>32-p)+Q}function g(w,Q,d,Y,y,p,m){var D=w+(d^(Q|~Y))+y+m;return(D<>>32-p)+Q}o.MD5=a._createHelper(u),o.HmacMD5=a._createHmacHelper(u)}(Math),l.MD5}(n(757))},702:function(T,I,n){"use strict";n(7042),T.exports=function(l){return l.mode.CFB=function(){var i=l.lib.BlockCipherMode.extend();function o(c,h,a,B){var E,u=this._iv;u?(E=u.slice(0),this._iv=void 0):E=this._prevBlock,B.encryptBlock(E,0);for(var C=0;C>24&255)){var B=a>>16&255,E=a>>8&255,u=255&a;255===B?(B=0,255===E?(E=0,255===u?u=0:++u):++E):++B,a=0,a+=B<<16,a+=E<<8,a+=u}else a+=16777216;return a}var h=i.Encryptor=i.extend({processBlock:function(B,E){var u=this._cipher,C=u.blockSize,e=this._iv,f=this._counter;e&&(f=this._counter=e.slice(0),this._iv=void 0),function c(a){return 0===(a[0]=o(a[0]))&&(a[1]=o(a[1])),a}(f);var g=f.slice(0);u.encryptBlock(g,0);for(var w=0;w>>2]|=B<<24-E%4*8,o.sigBytes+=B},unpad:function(o){o.sigBytes-=255&o.words[o.sigBytes-1>>>2]}},l.pad.Ansix923}(n(757),n(1582))},4431:function(T,I,n){"use strict";n(2222),T.exports=function(l){return l.pad.Iso10126={pad:function(o,c){var h=4*c,a=h-o.sigBytes%h;o.concat(l.lib.WordArray.random(a-1)).concat(l.lib.WordArray.create([a<<24],1))},unpad:function(o){o.sigBytes-=255&o.words[o.sigBytes-1>>>2]}},l.pad.Iso10126}(n(757),n(1582))},8800:function(T,I,n){"use strict";n(2222),T.exports=function(l){return l.pad.Iso97971={pad:function(o,c){o.concat(l.lib.WordArray.create([2147483648],1)),l.pad.ZeroPadding.pad(o,c)},unpad:function(o){l.pad.ZeroPadding.unpad(o),o.sigBytes--}},l.pad.Iso97971}(n(757),n(1582))},649:function(T,I,n){"use strict";T.exports=function(l){return l.pad.NoPadding={pad:function(){},unpad:function(){}},l.pad.NoPadding}(n(757),n(1582))},3992:function(T,I,n){"use strict";T.exports=function(l){return l.pad.ZeroPadding={pad:function(o,c){var h=4*c;o.clamp(),o.sigBytes+=h-(o.sigBytes%h||h)},unpad:function(o){var c=o.words,h=o.sigBytes-1;for(h=o.sigBytes-1;h>=0;h--)if(c[h>>>2]>>>24-h%4*8&255){o.sigBytes=h+1;break}}},l.pad.ZeroPadding}(n(757),n(1582))},3486:function(T,I,n){"use strict";n(2222),T.exports=function(l){return h=(o=(i=l).lib).WordArray,E=(a=i.algo).HMAC,u=a.PBKDF2=(c=o.Base).extend({cfg:c.extend({keySize:4,hasher:a.SHA1,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,f){for(var g=this.cfg,w=E.create(g.hasher,e),Q=h.create(),d=h.create([1]),Y=Q.words,y=d.words,p=g.keySize,m=g.iterations;Y.length>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],Q=this._C=[f[2]<<16|f[2]>>>16,4294901760&f[0]|65535&f[1],f[3]<<16|f[3]>>>16,4294901760&f[1]|65535&f[2],f[0]<<16|f[0]>>>16,4294901760&f[2]|65535&f[3],f[1]<<16|f[1]>>>16,4294901760&f[3]|65535&f[0]];this._b=0;for(var d=0;d<4;d++)C.call(this);for(d=0;d<8;d++)Q[d]^=w[d+4&7];if(g){var Y=g.words,y=Y[0],p=Y[1],m=16711935&(y<<8|y>>>24)|4278255360&(y<<24|y>>>8),D=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),U=m>>>16|4294901760&D,N=D<<16|65535&m;for(Q[0]^=m,Q[1]^=U,Q[2]^=D,Q[3]^=N,Q[4]^=m,Q[5]^=U,Q[6]^=D,Q[7]^=N,d=0;d<4;d++)C.call(this)}},_doProcessBlock:function(f,g){var w=this._X;C.call(this),a[0]=w[0]^w[5]>>>16^w[3]<<16,a[1]=w[2]^w[7]>>>16^w[5]<<16,a[2]=w[4]^w[1]>>>16^w[7]<<16,a[3]=w[6]^w[3]>>>16^w[1]<<16;for(var Q=0;Q<4;Q++)a[Q]=16711935&(a[Q]<<8|a[Q]>>>24)|4278255360&(a[Q]<<24|a[Q]>>>8),f[g+Q]^=a[Q]},blockSize:4,ivSize:2});function C(){for(var e=this._X,f=this._C,g=0;g<8;g++)B[g]=f[g];for(f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0>>0?1:0)|0,this._b=f[7]>>>0>>0?1:0,g=0;g<8;g++){var w=e[g]+f[g],Q=65535&w,d=w>>>16;E[g]=((Q*Q>>>17)+Q*d>>>15)+d*d^((4294901760&w)*w|0)+((65535&w)*w|0)}e[0]=E[0]+(E[7]<<16|E[7]>>>16)+(E[6]<<16|E[6]>>>16)|0,e[1]=E[1]+(E[0]<<8|E[0]>>>24)+E[7]|0,e[2]=E[2]+(E[1]<<16|E[1]>>>16)+(E[0]<<16|E[0]>>>16)|0,e[3]=E[3]+(E[2]<<8|E[2]>>>24)+E[1]|0,e[4]=E[4]+(E[3]<<16|E[3]>>>16)+(E[2]<<16|E[2]>>>16)|0,e[5]=E[5]+(E[4]<<8|E[4]>>>24)+E[3]|0,e[6]=E[6]+(E[5]<<16|E[5]>>>16)+(E[4]<<16|E[4]>>>16)|0,e[7]=E[7]+(E[6]<<8|E[6]>>>24)+E[5]|0}i.RabbitLegacy=c._createHelper(u)}(),l.RabbitLegacy}(n(757),n(7508),n(3440),n(3839),n(1582))},5323:function(T,I,n){"use strict";T.exports=function(l){return function(){var i=l,c=i.lib.StreamCipher,a=[],B=[],E=[],u=i.algo.Rabbit=c.extend({_doReset:function(){for(var f=this._key.words,g=this.cfg.iv,w=0;w<4;w++)f[w]=16711935&(f[w]<<8|f[w]>>>24)|4278255360&(f[w]<<24|f[w]>>>8);var Q=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],d=this._C=[f[2]<<16|f[2]>>>16,4294901760&f[0]|65535&f[1],f[3]<<16|f[3]>>>16,4294901760&f[1]|65535&f[2],f[0]<<16|f[0]>>>16,4294901760&f[2]|65535&f[3],f[1]<<16|f[1]>>>16,4294901760&f[3]|65535&f[0]];for(this._b=0,w=0;w<4;w++)C.call(this);for(w=0;w<8;w++)d[w]^=Q[w+4&7];if(g){var Y=g.words,y=Y[0],p=Y[1],m=16711935&(y<<8|y>>>24)|4278255360&(y<<24|y>>>8),D=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),U=m>>>16|4294901760&D,N=D<<16|65535&m;for(d[0]^=m,d[1]^=U,d[2]^=D,d[3]^=N,d[4]^=m,d[5]^=U,d[6]^=D,d[7]^=N,w=0;w<4;w++)C.call(this)}},_doProcessBlock:function(f,g){var w=this._X;C.call(this),a[0]=w[0]^w[5]>>>16^w[3]<<16,a[1]=w[2]^w[7]>>>16^w[5]<<16,a[2]=w[4]^w[1]>>>16^w[7]<<16,a[3]=w[6]^w[3]>>>16^w[1]<<16;for(var Q=0;Q<4;Q++)a[Q]=16711935&(a[Q]<<8|a[Q]>>>24)|4278255360&(a[Q]<<24|a[Q]>>>8),f[g+Q]^=a[Q]},blockSize:4,ivSize:2});function C(){for(var e=this._X,f=this._C,g=0;g<8;g++)B[g]=f[g];for(f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0>>0?1:0)|0,this._b=f[7]>>>0>>0?1:0,g=0;g<8;g++){var w=e[g]+f[g],Q=65535&w,d=w>>>16;E[g]=((Q*Q>>>17)+Q*d>>>15)+d*d^((4294901760&w)*w|0)+((65535&w)*w|0)}e[0]=E[0]+(E[7]<<16|E[7]>>>16)+(E[6]<<16|E[6]>>>16)|0,e[1]=E[1]+(E[0]<<8|E[0]>>>24)+E[7]|0,e[2]=E[2]+(E[1]<<16|E[1]>>>16)+(E[0]<<16|E[0]>>>16)|0,e[3]=E[3]+(E[2]<<8|E[2]>>>24)+E[1]|0,e[4]=E[4]+(E[3]<<16|E[3]>>>16)+(E[2]<<16|E[2]>>>16)|0,e[5]=E[5]+(E[4]<<8|E[4]>>>24)+E[3]|0,e[6]=E[6]+(E[5]<<16|E[5]>>>16)+(E[4]<<16|E[4]>>>16)|0,e[7]=E[7]+(E[6]<<8|E[6]>>>24)+E[5]|0}i.Rabbit=c._createHelper(u)}(),l.Rabbit}(n(757),n(7508),n(3440),n(3839),n(1582))},4640:function(T,I,n){"use strict";n(1539),n(8674),T.exports=function(l){return function(){var i=l,c=i.lib.StreamCipher,h=i.algo,a=h.RC4=c.extend({_doReset:function(){for(var C=this._key,e=C.words,f=C.sigBytes,g=this._S=[],w=0;w<256;w++)g[w]=w;w=0;for(var Q=0;w<256;w++){var d=w%f,y=g[w];g[w]=g[Q=(Q+g[w]+(e[d>>>2]>>>24-d%4*8&255))%256],g[Q]=y}this._i=this._j=0},_doProcessBlock:function(C,e){C[e]^=B.call(this)},keySize:8,ivSize:0});function B(){for(var u=this._S,C=this._i,e=this._j,f=0,g=0;g<4;g++){var w=u[C=(C+1)%256];u[C]=u[e=(e+u[C])%256],u[e]=w,f|=u[(u[C]+u[e])%256]<<24-8*g}return this._i=C,this._j=e,f}i.RC4=c._createHelper(a);var E=h.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var C=this.cfg.drop;C>0;C--)B.call(this)}});i.RC4Drop=c._createHelper(E)}(),l.RC4}(n(757),n(7508),n(3440),n(3839),n(1582))},8714:function(T,I,n){"use strict";T.exports=function(l){return function(i){var o=l,c=o.lib,h=c.WordArray,a=c.Hasher,B=o.algo,E=h.create([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]),u=h.create([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]),C=h.create([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]),e=h.create([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]),f=h.create([0,1518500249,1859775393,2400959708,2840853838]),g=h.create([1352829926,1548603684,1836072691,2053994217,0]),w=B.RIPEMD160=a.extend({_doReset:function(){this._hash=h.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(U,N){for(var F=0;F<16;F++){var z=N+F,L=U[z];U[z]=16711935&(L<<8|L>>>24)|4278255360&(L<<24|L>>>8)}var BA,DA,FA,_,dA,uA,CA,NA,bA,XA,q,W=this._hash.words,aA=f.words,AA=g.words,cA=E.words,MA=u.words,lA=C.words,gA=e.words;for(uA=BA=W[0],CA=DA=W[1],NA=FA=W[2],bA=_=W[3],XA=dA=W[4],F=0;F<80;F+=1)q=BA+U[N+cA[F]]|0,q+=F<16?Q(DA,FA,_)+aA[0]:F<32?d(DA,FA,_)+aA[1]:F<48?Y(DA,FA,_)+aA[2]:F<64?y(DA,FA,_)+aA[3]:p(DA,FA,_)+aA[4],q=(q=m(q|=0,lA[F]))+dA|0,BA=dA,dA=_,_=m(FA,10),FA=DA,DA=q,q=uA+U[N+MA[F]]|0,q+=F<16?p(CA,NA,bA)+AA[0]:F<32?y(CA,NA,bA)+AA[1]:F<48?Y(CA,NA,bA)+AA[2]:F<64?d(CA,NA,bA)+AA[3]:Q(CA,NA,bA)+AA[4],q=(q=m(q|=0,gA[F]))+XA|0,uA=XA,XA=bA,bA=m(NA,10),NA=CA,CA=q;q=W[1]+FA+bA|0,W[1]=W[2]+_+XA|0,W[2]=W[3]+dA+uA|0,W[3]=W[4]+BA+CA|0,W[4]=W[0]+DA+NA|0,W[0]=q},_doFinalize:function(){var U=this._data,N=U.words,F=8*this._nDataBytes,z=8*U.sigBytes;N[z>>>5]|=128<<24-z%32,N[14+(z+64>>>9<<4)]=16711935&(F<<8|F>>>24)|4278255360&(F<<24|F>>>8),U.sigBytes=4*(N.length+1),this._process();for(var L=this._hash,W=L.words,aA=0;aA<5;aA++){var AA=W[aA];W[aA]=16711935&(AA<<8|AA>>>24)|4278255360&(AA<<24|AA>>>8)}return L},clone:function(){var U=a.clone.call(this);return U._hash=this._hash.clone(),U}});function Q(D,U,N){return D^U^N}function d(D,U,N){return D&U|~D&N}function Y(D,U,N){return(D|~U)^N}function y(D,U,N){return D&N|U&~N}function p(D,U,N){return D^(U|~N)}function m(D,U){return D<>>32-U}o.RIPEMD160=a._createHelper(w),o.HmacRIPEMD160=a._createHmacHelper(w)}(Math),l.RIPEMD160}(n(757))},9865:function(T,I,n){"use strict";T.exports=function(l){return c=(o=(i=l).lib).WordArray,B=[],E=i.algo.SHA1=(h=o.Hasher).extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(C,e){for(var f=this._hash.words,g=f[0],w=f[1],Q=f[2],d=f[3],Y=f[4],y=0;y<80;y++){if(y<16)B[y]=0|C[e+y];else{var p=B[y-3]^B[y-8]^B[y-14]^B[y-16];B[y]=p<<1|p>>>31}var m=(g<<5|g>>>27)+Y+B[y];m+=y<20?1518500249+(w&Q|~w&d):y<40?1859775393+(w^Q^d):y<60?(w&Q|w&d|Q&d)-1894007588:(w^Q^d)-899497514,Y=d,d=Q,Q=w<<30|w>>>2,w=g,g=m}f[0]=f[0]+g|0,f[1]=f[1]+w|0,f[2]=f[2]+Q|0,f[3]=f[3]+d|0,f[4]=f[4]+Y|0},_doFinalize:function(){var C=this._data,e=C.words,f=8*this._nDataBytes,g=8*C.sigBytes;return e[g>>>5]|=128<<24-g%32,e[14+(g+64>>>9<<4)]=Math.floor(f/4294967296),e[15+(g+64>>>9<<4)]=f,C.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var C=h.clone.call(this);return C._hash=this._hash.clone(),C}}),i.SHA1=h._createHelper(E),i.HmacSHA1=h._createHmacHelper(E),l.SHA1;var i,o,c,h,B,E}(n(757))},6876:function(T,I,n){"use strict";T.exports=function(l){return c=(i=l).lib.WordArray,B=(h=i.algo).SHA224=(a=h.SHA256).extend({_doReset:function(){this._hash=new c.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var u=a._doFinalize.call(this);return u.sigBytes-=4,u}}),i.SHA224=a._createHelper(B),i.HmacSHA224=a._createHmacHelper(B),l.SHA224;var i,c,h,a,B}(n(757),n(8921))},8921:function(T,I,n){"use strict";n(7042),T.exports=function(l){return function(i){var o=l,c=o.lib,h=c.WordArray,a=c.Hasher,B=o.algo,E=[],u=[];!function(){function f(d){for(var Y=i.sqrt(d),y=2;y<=Y;y++)if(!(d%y))return!1;return!0}function g(d){return 4294967296*(d-(0|d))|0}for(var w=2,Q=0;Q<64;)f(w)&&(Q<8&&(E[Q]=g(i.pow(w,.5))),u[Q]=g(i.pow(w,.3333333333333333)),Q++),w++}();var C=[],e=B.SHA256=a.extend({_doReset:function(){this._hash=new h.init(E.slice(0))},_doProcessBlock:function(g,w){for(var Q=this._hash.words,d=Q[0],Y=Q[1],y=Q[2],p=Q[3],m=Q[4],D=Q[5],U=Q[6],N=Q[7],F=0;F<64;F++){if(F<16)C[F]=0|g[w+F];else{var z=C[F-15],W=C[F-2];C[F]=((z<<25|z>>>7)^(z<<14|z>>>18)^z>>>3)+C[F-7]+((W<<15|W>>>17)^(W<<13|W>>>19)^W>>>10)+C[F-16]}var cA=d&Y^d&y^Y&y,gA=N+((m<<26|m>>>6)^(m<<21|m>>>11)^(m<<7|m>>>25))+(m&D^~m&U)+u[F]+C[F];N=U,U=D,D=m,m=p+gA|0,p=y,y=Y,Y=d,d=gA+(((d<<30|d>>>2)^(d<<19|d>>>13)^(d<<10|d>>>22))+cA)|0}Q[0]=Q[0]+d|0,Q[1]=Q[1]+Y|0,Q[2]=Q[2]+y|0,Q[3]=Q[3]+p|0,Q[4]=Q[4]+m|0,Q[5]=Q[5]+D|0,Q[6]=Q[6]+U|0,Q[7]=Q[7]+N|0},_doFinalize:function(){var g=this._data,w=g.words,Q=8*this._nDataBytes,d=8*g.sigBytes;return w[d>>>5]|=128<<24-d%32,w[14+(d+64>>>9<<4)]=i.floor(Q/4294967296),w[15+(d+64>>>9<<4)]=Q,g.sigBytes=4*w.length,this._process(),this._hash},clone:function(){var g=a.clone.call(this);return g._hash=this._hash.clone(),g}});o.SHA256=a._createHelper(e),o.HmacSHA256=a._createHmacHelper(e)}(Math),l.SHA256}(n(757))},8342:function(T,I,n){"use strict";n(7042),T.exports=function(l){return function(i){var o=l,c=o.lib,h=c.WordArray,a=c.Hasher,E=o.x64.Word,u=o.algo,C=[],e=[],f=[];!function(){for(var Q=1,d=0,Y=0;Y<24;Y++){C[Q+5*d]=(Y+1)*(Y+2)/2%64;var p=(2*Q+3*d)%5;Q=d%5,d=p}for(Q=0;Q<5;Q++)for(d=0;d<5;d++)e[Q+5*d]=d+(2*Q+3*d)%5*5;for(var m=1,D=0;D<24;D++){for(var U=0,N=0,F=0;F<7;F++){if(1&m){var z=(1<>>24)|4278255360&(D<<24|D>>>8),(N=y[m]).high^=U=16711935&(U<<8|U>>>24)|4278255360&(U<<24|U>>>8),N.low^=D}for(var F=0;F<24;F++){for(var z=0;z<5;z++){for(var L=0,W=0,aA=0;aA<5;aA++)L^=(N=y[z+5*aA]).high,W^=N.low;var AA=g[z];AA.high=L,AA.low=W}for(z=0;z<5;z++){var cA=g[(z+4)%5],MA=g[(z+1)%5],lA=MA.high,gA=MA.low;for(L=cA.high^(lA<<1|gA>>>31),W=cA.low^(gA<<1|lA>>>31),aA=0;aA<5;aA++)(N=y[z+5*aA]).high^=L,N.low^=W}for(var BA=1;BA<25;BA++){var DA=(N=y[BA]).high,FA=N.low,_=C[BA];_<32?(L=DA<<_|FA>>>32-_,W=FA<<_|DA>>>32-_):(L=FA<<_-32|DA>>>64-_,W=DA<<_-32|FA>>>64-_);var dA=g[e[BA]];dA.high=L,dA.low=W}var uA=g[0],CA=y[0];for(uA.high=CA.high,uA.low=CA.low,z=0;z<5;z++)for(aA=0;aA<5;aA++){var NA=g[BA=z+5*aA],bA=g[(z+1)%5+5*aA],XA=g[(z+2)%5+5*aA];(N=y[BA]).high=NA.high^~bA.high&XA.high,N.low=NA.low^~bA.low&XA.low}var N,q=f[F];(N=y[0]).high^=q.high,N.low^=q.low}},_doFinalize:function(){var d=this._data,Y=d.words,p=8*d.sigBytes,m=32*this.blockSize;Y[p>>>5]|=1<<24-p%32,Y[(i.ceil((p+1)/m)*m>>>5)-1]|=128,d.sigBytes=4*Y.length,this._process();for(var D=this._state,U=this.cfg.outputLength/8,N=U/8,F=[],z=0;z>>24)|4278255360&(W<<24|W>>>8),F.push(aA=16711935&(aA<<8|aA>>>24)|4278255360&(aA<<24|aA>>>8)),F.push(W)}return new h.init(F,U)},clone:function(){for(var d=a.clone.call(this),Y=d._state=this._state.slice(0),y=0;y<25;y++)Y[y]=Y[y].clone();return d}});o.SHA3=a._createHelper(w),o.HmacSHA3=a._createHmacHelper(w)}(Math),l.SHA3}(n(757),n(2601))},8122:function(T,I,n){"use strict";T.exports=function(l){return c=(o=(i=l).x64).Word,h=o.WordArray,E=(a=i.algo).SHA384=(B=a.SHA512).extend({_doReset:function(){this._hash=new h.init([new c.init(3418070365,3238371032),new c.init(1654270250,914150663),new c.init(2438529370,812702999),new c.init(355462360,4144912697),new c.init(1731405415,4290775857),new c.init(2394180231,1750603025),new c.init(3675008525,1694076839),new c.init(1203062813,3204075428)])},_doFinalize:function(){var C=B._doFinalize.call(this);return C.sigBytes-=16,C}}),i.SHA384=B._createHelper(E),i.HmacSHA384=B._createHmacHelper(E),l.SHA384;var i,o,c,h,a,B,E}(n(757),n(2601),n(7991))},7991:function(T,I,n){"use strict";var i;i=function(l){return function(){var i=l,c=i.lib.Hasher,h=i.x64,a=h.Word,B=h.WordArray,E=i.algo;function u(){return a.create.apply(a,arguments)}var C=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],e=[];!function(){for(var g=0;g<80;g++)e[g]=u()}();var f=E.SHA512=c.extend({_doReset:function(){this._hash=new B.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(w,Q){for(var d=this._hash.words,Y=d[0],y=d[1],p=d[2],m=d[3],D=d[4],U=d[5],N=d[6],F=d[7],z=Y.high,L=Y.low,W=y.high,aA=y.low,AA=p.high,cA=p.low,MA=m.high,lA=m.low,gA=D.high,BA=D.low,DA=U.high,FA=U.low,_=N.high,dA=N.low,uA=F.high,CA=F.low,NA=z,bA=L,XA=W,q=aA,O=AA,$=cA,V=MA,hA=lA,mA=gA,nA=BA,EA=DA,GA=FA,et=_,ot=dA,TA=uA,it=CA,mt=0;mt<80;mt++){var It,ut,JA=e[mt];if(mt<16)ut=JA.high=0|w[Q+2*mt],It=JA.low=0|w[Q+2*mt+1];else{var VA=e[mt-15],rt=VA.high,yA=VA.low,Et=(yA>>>1|rt<<31)^(yA>>>8|rt<<24)^(yA>>>7|rt<<25),OA=e[mt-2],Yt=OA.high,H=OA.low,R=(H>>>19|Yt<<13)^(H<<3|Yt>>>29)^(H>>>6|Yt<<26),QA=e[mt-7],rA=e[mt-16],Ft=rA.low;JA.high=ut=(ut=(ut=((rt>>>1|yA<<31)^(rt>>>8|yA<<24)^rt>>>7)+QA.high+((It=Et+QA.low)>>>0>>0?1:0))+((Yt>>>19|H<<13)^(Yt<<3|H>>>29)^Yt>>>6)+((It+=R)>>>0>>0?1:0))+rA.high+((It+=Ft)>>>0>>0?1:0),JA.low=It}var re,j=mA&EA^~mA&et,kA=nA&GA^~nA&ot,At=NA&XA^NA&O^XA&O,st=(bA>>>28|NA<<4)^(bA<<30|NA>>>2)^(bA<<25|NA>>>7),Rt=C[mt],Le=Rt.low,Ae=TA+((mA>>>14|nA<<18)^(mA>>>18|nA<<14)^(mA<<23|nA>>>9))+((re=it+((nA>>>14|mA<<18)^(nA>>>18|mA<<14)^(nA<<23|mA>>>9)))>>>0>>0?1:0),ye=st+(bA&q^bA&$^q&$);TA=et,it=ot,et=EA,ot=GA,EA=mA,GA=nA,mA=V+(Ae=(Ae=(Ae=Ae+j+((re+=kA)>>>0>>0?1:0))+Rt.high+((re+=Le)>>>0>>0?1:0))+ut+((re+=It)>>>0>>0?1:0))+((nA=hA+re|0)>>>0>>0?1:0)|0,V=O,hA=$,O=XA,$=q,XA=NA,q=bA,NA=Ae+(((NA>>>28|bA<<4)^(NA<<30|bA>>>2)^(NA<<25|bA>>>7))+At+(ye>>>0>>0?1:0))+((bA=re+ye|0)>>>0>>0?1:0)|0}L=Y.low=L+bA,Y.high=z+NA+(L>>>0>>0?1:0),aA=y.low=aA+q,y.high=W+XA+(aA>>>0>>0?1:0),cA=p.low=cA+$,p.high=AA+O+(cA>>>0<$>>>0?1:0),lA=m.low=lA+hA,m.high=MA+V+(lA>>>0>>0?1:0),BA=D.low=BA+nA,D.high=gA+mA+(BA>>>0>>0?1:0),FA=U.low=FA+GA,U.high=DA+EA+(FA>>>0>>0?1:0),dA=N.low=dA+ot,N.high=_+et+(dA>>>0>>0?1:0),CA=F.low=CA+it,F.high=uA+TA+(CA>>>0>>0?1:0)},_doFinalize:function(){var w=this._data,Q=w.words,d=8*this._nDataBytes,Y=8*w.sigBytes;return Q[Y>>>5]|=128<<24-Y%32,Q[30+(Y+128>>>10<<5)]=Math.floor(d/4294967296),Q[31+(Y+128>>>10<<5)]=d,w.sigBytes=4*Q.length,this._process(),this._hash.toX32()},clone:function(){var w=c.clone.call(this);return w._hash=this._hash.clone(),w},blockSize:32});i.SHA512=c._createHelper(f),i.HmacSHA512=c._createHmacHelper(f)}(),l.SHA512},T.exports=i(n(757),n(2601))},8437:function(T,I,n){"use strict";n(7042),T.exports=function(l){return function(){var i=l,o=i.lib,c=o.WordArray,h=o.BlockCipher,a=i.algo,B=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],E=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],C=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],e=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=a.DES=h.extend({_doReset:function(){for(var y=this._key.words,p=[],m=0;m<56;m++){var D=B[m]-1;p[m]=y[D>>>5]>>>31-D%32&1}for(var U=this._subKeys=[],N=0;N<16;N++){var F=U[N]=[],z=u[N];for(m=0;m<24;m++)F[m/6|0]|=p[(E[m]-1+z)%28]<<31-m%6,F[4+(m/6|0)]|=p[28+(E[m+24]-1+z)%28]<<31-m%6;for(F[0]=F[0]<<1|F[0]>>>31,m=1;m<7;m++)F[m]=F[m]>>>4*(m-1)+3;F[7]=F[7]<<5|F[7]>>>27}var L=this._invSubKeys=[];for(m=0;m<16;m++)L[m]=U[15-m]},encryptBlock:function(Y,y){this._doCryptBlock(Y,y,this._subKeys)},decryptBlock:function(Y,y){this._doCryptBlock(Y,y,this._invSubKeys)},_doCryptBlock:function(Y,y,p){this._lBlock=Y[y],this._rBlock=Y[y+1],g.call(this,4,252645135),g.call(this,16,65535),w.call(this,2,858993459),w.call(this,8,16711935),g.call(this,1,1431655765);for(var m=0;m<16;m++){for(var D=p[m],U=this._lBlock,N=this._rBlock,F=0,z=0;z<8;z++)F|=C[z][((N^D[z])&e[z])>>>0];this._lBlock=N,this._rBlock=U^F}var L=this._lBlock;this._lBlock=this._rBlock,this._rBlock=L,g.call(this,1,1431655765),w.call(this,8,16711935),w.call(this,2,858993459),g.call(this,16,65535),g.call(this,4,252645135),Y[y]=this._lBlock,Y[y+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function g(d,Y){var y=(this._lBlock>>>d^this._rBlock)&Y;this._rBlock^=y,this._lBlock^=y<>>d^this._lBlock)&Y;this._lBlock^=y,this._rBlock^=y<192.");var p=y.slice(0,2),m=y.length<4?y.slice(0,2):y.slice(2,4),D=y.length<6?y.slice(0,2):y.slice(4,6);this._des1=f.createEncryptor(c.create(p)),this._des2=f.createEncryptor(c.create(m)),this._des3=f.createEncryptor(c.create(D))},encryptBlock:function(Y,y){this._des1.encryptBlock(Y,y),this._des2.decryptBlock(Y,y),this._des3.encryptBlock(Y,y)},decryptBlock:function(Y,y){this._des3.decryptBlock(Y,y),this._des2.encryptBlock(Y,y),this._des1.decryptBlock(Y,y)},keySize:6,ivSize:2,blockSize:2});i.TripleDES=h._createHelper(Q)}(),l.TripleDES}(n(757),n(7508),n(3440),n(3839),n(1582))},2601:function(T,I,n){"use strict";n(7042),T.exports=function(l){return h=(c=l.lib).Base,a=c.WordArray,(B=l.x64={}).Word=h.extend({init:function(e,f){this.high=e,this.low=f}}),B.WordArray=h.extend({init:function(e,f){e=this.words=e||[],this.sigBytes=null!=f?f:8*e.length},toX32:function(){for(var e=this.words,f=e.length,g=[],w=0;w=B.length?{done:!0}:{done:!1,value:B[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(B,E){(null==E||E>B.length)&&(E=B.length);for(var u=0,C=new Array(E);u=Q)){D.next=13;break}return D.next=13,[Q,d,f.tags[Y]];case 13:w=f.stateTable[1][p],Q=null;case 15:0!==w&&null==Q&&(Q=y),f.accepting[w]&&(d=y),0===w&&(w=1);case 18:y++,D.next=5;break;case 21:if(!(null!=Q&&null!=d&&d>=Q)){D.next=24;break}return D.next=24,[Q,d,f.tags[w]];case 24:case"end":return D.stop()}},g)}),e},E.apply=function(C,e){for(var g,f=l(this.match(C));!(g=f()).done;)for(var p,w=g.value,Q=w[0],d=w[1],y=l(w[2]);!(p=y()).done;){var m=p.value;"function"==typeof e[m]&&e[m](Q,d,C.slice(Q,d+1))}},B}()},8478:function(T,I,n){"use strict";var l=n(8823).Buffer;n(7042),n(6699);var i=n(3857),o=n(2635);T.exports=function(){function c(a){var B;for(this.data=a,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.text={};;){var E=this.readUInt32(),u="";for(B=0;B<4;B++)u+=String.fromCharCode(this.data[this.pos++]);switch(u){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"PLTE":this.palette=this.read(E);break;case"IDAT":for(B=0;B0)for(B=0;Bthis.data.length)throw new Error("Incomplete or corrupt PNG file")}}c.decode=function(B,E){return i.readFile(B,function(u,C){return new c(C).decode(function(f){return E(f)})})},c.load=function(B){return new c(i.readFileSync(B))};var h=c.prototype;return h.read=function(B){for(var E=new Array(B),u=0;u=2147483648)throw new RangeError('The value "'+B+'" is invalid for option "size"');var C=o(B);return E&&0!==E.length?"string"==typeof u?C.fill(E,u):C.fill(E):C.fill(0),C}),!c.kStringMaxLength)try{c.kStringMaxLength=l.binding("buffer").kStringMaxLength}catch(B){}c.constants||(c.constants={MAX_LENGTH:c.kMaxLength},c.kStringMaxLength&&(c.constants.MAX_STRING_LENGTH=c.kStringMaxLength)),T.exports=c},3361:function(T,I,n){"use strict";function l(g,w){var Q=Object.keys(g);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(g);w&&(d=d.filter(function(Y){return Object.getOwnPropertyDescriptor(g,Y).enumerable})),Q.push.apply(Q,d)}return Q}function o(g,w,Q){return w in g?Object.defineProperty(g,w,{value:Q,enumerable:!0,configurable:!0,writable:!0}):g[w]=Q,g}function h(g,w){for(var Q=0;Q0?this.tail.next=d:this.head=d,this.tail=d,++this.length}},{key:"unshift",value:function(Q){var d={data:Q,next:this.head};0===this.length&&(this.tail=d),this.head=d,++this.length}},{key:"shift",value:function(){if(0!==this.length){var Q=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,Q}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Q){if(0===this.length)return"";for(var d=this.head,Y=""+d.data;d=d.next;)Y+=Q+d.data;return Y}},{key:"concat",value:function(Q){if(0===this.length)return E.alloc(0);for(var d=E.allocUnsafe(Q>>>0),Y=this.head,y=0;Y;)f(Y.data,d,y),y+=Y.data.length,Y=Y.next;return d}},{key:"consume",value:function(Q,d){var Y;return Qp.length?p.length:Q;if(y+=m===p.length?p:p.slice(0,Q),0==(Q-=m)){m===p.length?(++Y,this.head=d.next?d.next:this.tail=null):(this.head=d,d.data=p.slice(m));break}++Y}return this.length-=Y,y}},{key:"_getBuffer",value:function(Q){var d=E.allocUnsafe(Q),Y=this.head,y=1;for(Y.data.copy(d),Q-=Y.data.length;Y=Y.next;){var p=Y.data,m=Q>p.length?p.length:Q;if(p.copy(d,d.length-Q,0,m),0==(Q-=m)){m===p.length?(++y,this.head=Y.next?Y.next:this.tail=null):(this.head=Y,Y.data=p.slice(m));break}++y}return this.length-=y,d}},{key:e,value:function(Q,d){return C(this,function i(g){for(var w=1;wIA.length)&&(J=IA.length);for(var S=0,X=new Array(J);S=IA.length?{done:!0}:{done:!1,value:IA[X++]}},e:function(Bt){throw Bt},f:Z}}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 _A,fA=!0,pA=!1;return{s:function(){S=IA[Symbol.iterator]()},n:function(){var Bt=S.next();return fA=Bt.done,Bt},e:function(Bt){pA=!0,_A=Bt},f:function(){try{!fA&&null!=S.return&&S.return()}finally{if(pA)throw _A}}}}var FA=function(){function IA(){f(this,IA)}return w(IA,[{key:"toString",value:function(){throw new Error("Must be implemented by subclasses")}}]),IA}(),_=function(){function IA(){var J=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f(this,IA),this._items={},this.limits="boolean"!=typeof J.limits||J.limits}return w(IA,[{key:"add",value:function(S,X){return this._items[S]=X}},{key:"get",value:function(S){return this._items[S]}},{key:"toString",value:function(){var S=this,X=Object.keys(this._items).sort(function(Qt,Dt){return S._compareKeys(Qt,Dt)}),Z=["<<"];if(this.limits&&X.length>1){var pA=X[X.length-1];Z.push(" /Limits ".concat(bA.convert([this._dataForKey(X[0]),this._dataForKey(pA)])))}Z.push(" /".concat(this._keysName()," ["));var nt,_A=DA(X);try{for(_A.s();!(nt=_A.n()).done;){var Bt=nt.value;Z.push(" ".concat(bA.convert(this._dataForKey(Bt))," ").concat(bA.convert(this._items[Bt])))}}catch(Qt){_A.e(Qt)}finally{_A.f()}return Z.push("]"),Z.push(">>"),Z.join("\n")}},{key:"_compareKeys",value:function(){throw new Error("Must be implemented by subclasses")}},{key:"_keysName",value:function(){throw new Error("Must be implemented by subclasses")}},{key:"_dataForKey",value:function(){throw new Error("Must be implemented by subclasses")}}]),IA}(),dA=function(J,S){return(Array(S+1).join("0")+J).slice(-S)},uA=/[\n\r\t\b\f()\\]/g,CA={"\n":"\\n","\r":"\\r","\t":"\\t","\b":"\\b","\f":"\\f","\\":"\\\\","(":"\\(",")":"\\)"},NA=function(J){var S=J.length;if(1&S)throw new Error("Buffer length must be even");for(var X=0,Z=S-1;X1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof S)return"/".concat(S);if(S instanceof String){for(var Z=S,fA=!1,pA=0,_A=Z.length;pA<_A;pA++)if(Z.charCodeAt(pA)>127){fA=!0;break}var nt;return nt=fA?NA(i.from("\ufeff".concat(Z),"utf16le")):i.from(Z.valueOf(),"ascii"),Z=(Z=X?X(nt).toString("binary"):nt.toString("binary")).replace(uA,function(Ot){return CA[Ot]}),"(".concat(Z,")")}if(i.isBuffer(S))return"<".concat(S.toString("hex"),">");if(S instanceof FA||S instanceof _)return S.toString();if(S instanceof Date){var Bt="D:".concat(dA(S.getUTCFullYear(),4))+dA(S.getUTCMonth()+1,2)+dA(S.getUTCDate(),2)+dA(S.getUTCHours(),2)+dA(S.getUTCMinutes(),2)+dA(S.getUTCSeconds(),2)+"Z";return X&&(Bt=(Bt=X(i.from(Bt,"ascii")).toString("binary")).replace(uA,function(Ot){return CA[Ot]})),"(".concat(Bt,")")}if(Array.isArray(S)){var Qt=S.map(function(Ot){return IA.convert(Ot,X)}).join(" ");return"[".concat(Qt,"]")}if("[object Object]"==={}.toString.call(S)){var Dt=["<<"];for(var xt in S){var Tt=S[xt];Dt.push("/".concat(xt," ").concat(IA.convert(Tt,X)))}return Dt.push(">>"),Dt.join("\n")}return"number"==typeof S?IA.number(S):"".concat(S)}},{key:"number",value:function(S){if(S>-1e21&&S<1e21)return Math.round(1e6*S)/1e6;throw new Error("unsupported number: ".concat(S))}}]),IA}(),XA=function(IA){y(S,IA);var J=F(S);function S(X,Z){var fA,pA=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f(this,S),(fA=J.call(this)).document=X,fA.id=Z,fA.data=pA,fA.gen=0,fA.compress=fA.document.compress&&!fA.data.Filter,fA.uncompressedLength=0,fA.buffer=[],fA}return w(S,[{key:"write",value:function(Z){if(i.isBuffer(Z)||(Z=i.from(Z+"\n","binary")),this.uncompressedLength+=Z.length,null==this.data.Length&&(this.data.Length=0),this.buffer.push(Z),this.data.Length+=Z.length,this.compress)return this.data.Filter="FlateDecode"}},{key:"end",value:function(Z){return Z&&this.write(Z),this.finalize()}},{key:"finalize",value:function(){this.offset=this.document._offset;var Z=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=c.default.deflateSync(this.buffer)),Z&&(this.buffer=Z(this.buffer)),this.data.Length=this.buffer.length),this.document._write("".concat(this.id," ").concat(this.gen," obj")),this.document._write(bA.convert(this.data,Z)),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)}},{key:"toString",value:function(){return"".concat(this.id," ").concat(this.gen," R")}}]),S}(FA),q={top:72,left:72,bottom:72,right:72},O={"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(){function IA(J){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f(this,IA),this.document=J,this.size=S.size||"letter",this.layout=S.layout||"portrait",this.margins="number"==typeof S.margin?{top:S.margin,left:S.margin,bottom:S.margin,right:S.margin}:S.margins||q;var X=Array.isArray(this.size)?this.size:O[this.size.toUpperCase()];this.width=X["portrait"===this.layout?0:1],this.height=X["portrait"===this.layout?1:0],this.content=this.document.ref(),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}),this.markings=[]}return w(IA,[{key:"maxY",value:function(){return this.height-this.margins.bottom}},{key:"write",value:function(S){return this.content.write(S)}},{key:"end",value:function(){return this.dictionary.end(),this.resources.end(),this.content.end()}},{key:"fonts",get:function(){var S=this.resources.data;return null!=S.Font?S.Font:S.Font={}}},{key:"xobjects",get:function(){var S=this.resources.data;return null!=S.XObject?S.XObject:S.XObject={}}},{key:"ext_gstates",get:function(){var S=this.resources.data;return null!=S.ExtGState?S.ExtGState:S.ExtGState={}}},{key:"patterns",get:function(){var S=this.resources.data;return null!=S.Pattern?S.Pattern:S.Pattern={}}},{key:"colorSpaces",get:function(){var S=this.resources.data;return S.ColorSpace||(S.ColorSpace={})}},{key:"annotations",get:function(){var S=this.dictionary.data;return null!=S.Annots?S.Annots:S.Annots=[]}},{key:"structParentTreeKey",get:function(){var S=this.dictionary.data;return null!=S.StructParents?S.StructParents:S.StructParents=this.document.createStructParentTreeNextKey()}}]),IA}(),V=function(IA){y(S,IA);var J=F(S);function S(){return f(this,S),J.apply(this,arguments)}return w(S,[{key:"_compareKeys",value:function(Z,fA){return Z.localeCompare(fA)}},{key:"_keysName",value:function(){return"Names"}},{key:"_dataForKey",value:function(Z){return new String(Z)}}]),S}(_);function hA(IA,J){if(IA=J[fA]&&IA<=J[fA+1])return!0;IA>J[fA+1]?S=Z+1:X=Z-1}return!1}var mA=[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],nA=function(J){return hA(J,mA)},EA=[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],et=[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],TA=[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],it=[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],mt=[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],It=function(J){return hA(J,et)||hA(J,mt)||hA(J,TA)||hA(J,it)},ut=[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],JA=function(J){return hA(J,ut)},VA=[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],rt=function(J){return hA(J,VA)},yA=function(J){return hA(J,et)},Mt=function(J){return hA(J,EA)},Et=function(J){return J.codePointAt(0)},OA=function(J){return J[0]},Yt=function(J){return J[J.length-1]};function H(IA){for(var J=[],S=IA.length,X=0;X=55296&&Z<=56319&&S>X+1){var fA=IA.charCodeAt(X+1);if(fA>=56320&&fA<=57343){J.push(1024*(Z-55296)+fA-56320+65536),X+=1;continue}}J.push(Z)}return J}function k(IA){var J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof IA)throw new TypeError("Expected string.");if(0===IA.length)return"";var S=H(IA).map(function(Dt){return yA(Dt)?32:Dt}).filter(function(Dt){return!Mt(Dt)}),X=String.fromCodePoint.apply(null,S).normalize("NFKC"),Z=H(X);if(Z.some(It))throw new Error("Prohibited character, see https://tools.ietf.org/html/rfc4013#section-2.3");if(!0!==J.allowUnassigned&&Z.some(nA))throw new Error("Unassigned code point, see https://tools.ietf.org/html/rfc4013#section-2.5");var _A=Z.some(JA),nt=Z.some(rt);if(_A&&nt)throw new Error("String must not contain RandALCat and LCat at the same time, see https://tools.ietf.org/html/rfc3454#section-6");var Bt=JA(Et(OA(X))),Qt=JA(Et(Yt(X)));if(_A&&(!Bt||!Qt))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 X}var R=function(){function IA(J){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(f(this,IA),!S.ownerPassword&&!S.userPassword)throw new Error("None of owner password and user password is defined.");this.document=J,this._setupEncryption(S)}return w(IA,null,[{key:"generateFileID",value:function(){var S=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},X="".concat(S.CreationDate.getTime(),"\n");for(var Z in S)!S.hasOwnProperty(Z)||(X+="".concat(Z,": ").concat(S[Z].valueOf(),"\n"));return Kt(h.default.MD5(X))}},{key:"generateRandomWordArray",value:function(S){return h.default.lib.WordArray.random(S)}},{key:"create",value:function(S){var X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return X.ownerPassword||X.userPassword?new IA(S,X):null}}]),w(IA,[{key:"_setupEncryption",value:function(S){switch(S.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}var X={Filter:"Standard"};switch(this.version){case 1:case 2:case 4:this._setupEncryptionV1V2V4(this.version,X,S);break;case 5:this._setupEncryptionV5(X,S)}this.dictionary=this.document.ref(X)}},{key:"_setupEncryptionV1V2V4",value:function(S,X,Z){var fA,pA;switch(S){case 1:fA=2,this.keyBits=40,pA=function QA(){var IA=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},J=-64;return IA.printing&&(J|=4),IA.modifying&&(J|=8),IA.copying&&(J|=16),IA.annotating&&(J|=32),J}(Z.permissions);break;case 2:fA=3,this.keyBits=128,pA=wA(Z.permissions);break;case 4:fA=4,this.keyBits=128,pA=wA(Z.permissions)}var Qt,_A=Lt(Z.userPassword),nt=Z.ownerPassword?Lt(Z.ownerPassword):_A,Bt=function lt(IA,J,S,X){for(var Z=X,fA=IA>=3?51:1,pA=0;pA=3?20:1;for(var Bt=0;Bt=3?51:1,nt=0;nt<_A;nt++)(pA=h.default.MD5(pA)).sigBytes=J/8;return pA}(fA,this.keyBits,this.document._id,_A,Bt,pA),Qt=2===fA?function PA(IA){return h.default.RC4.encrypt(Lt(),IA).ciphertext}(this.encryptionKey):function rA(IA,J){for(var S=J.clone(),X=h.default.MD5(Lt().concat(h.default.lib.WordArray.create(IA))),Z=0;Z<20;Z++){for(var fA=Math.ceil(S.sigBytes/4),pA=0;pA=2&&(X.Length=this.keyBits),4===S&&(X.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV2",Length:this.keyBits/8}},X.StmF="StdCF",X.StrF="StdCF"),X.R=fA,X.O=Kt(Bt),X.U=Kt(Qt),X.P=pA}},{key:"_setupEncryptionV5",value:function(S,X){this.keyBits=256;var Z=wA(X.permissions),fA=vt(X.userPassword),pA=X.ownerPassword?vt(X.ownerPassword):fA;this.encryptionKey=function ZA(IA){return IA(32)}(IA.generateRandomWordArray);var _A=function j(IA,J){var S=J(8),X=J(8);return h.default.SHA256(IA.clone().concat(S)).concat(S).concat(X)}(fA,IA.generateRandomWordArray),Bt=function kA(IA,J,S){var X=h.default.SHA256(IA.clone().concat(J)),Z={mode:h.default.mode.CBC,padding:h.default.pad.NoPadding,iv:h.default.lib.WordArray.create(null,16)};return h.default.AES.encrypt(S,X,Z).ciphertext}(fA,h.default.lib.WordArray.create(_A.words.slice(10,12),8),this.encryptionKey),Qt=function At(IA,J,S){var X=S(8),Z=S(8);return h.default.SHA256(IA.clone().concat(X).concat(J)).concat(X).concat(Z)}(pA,_A,IA.generateRandomWordArray),xt=function xA(IA,J,S,X){var Z=h.default.SHA256(IA.clone().concat(J).concat(S)),fA={mode:h.default.mode.CBC,padding:h.default.pad.NoPadding,iv:h.default.lib.WordArray.create(null,16)};return h.default.AES.encrypt(X,Z,fA).ciphertext}(pA,h.default.lib.WordArray.create(Qt.words.slice(10,12),8),_A,this.encryptionKey),Tt=function st(IA,J,S){var X=h.default.lib.WordArray.create([Rt(IA),4294967295,1415668834],12).concat(S(4));return h.default.AES.encrypt(X,J,{mode:h.default.mode.ECB,padding:h.default.pad.NoPadding}).ciphertext}(Z,this.encryptionKey,IA.generateRandomWordArray);S.V=5,S.Length=this.keyBits,S.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV3",Length:this.keyBits/8}},S.StmF="StdCF",S.StrF="StdCF",S.R=5,S.O=Kt(Qt),S.OE=Kt(xt),S.U=Kt(_A),S.UE=Kt(Bt),S.P=Z,S.Perms=Kt(Tt)}},{key:"getEncryptFn",value:function(S,X){var Z,pA;if(this.version<5&&(Z=this.encryptionKey.clone().concat(h.default.lib.WordArray.create([(255&S)<<24|(65280&S)<<8|S>>8&65280|255&X,(65280&X)<<16],5))),1===this.version||2===this.version){var fA=h.default.MD5(Z);return fA.sigBytes=Math.min(16,this.keyBits/8+5),function(Bt){return Kt(h.default.RC4.encrypt(h.default.lib.WordArray.create(Bt),fA).ciphertext)}}pA=4===this.version?h.default.MD5(Z.concat(h.default.lib.WordArray.create([1933667412],4))):this.encryptionKey;var _A=IA.generateRandomWordArray(16),nt={mode:h.default.mode.CBC,padding:h.default.pad.Pkcs7,iv:_A};return function(Bt){return Kt(_A.clone().concat(h.default.AES.encrypt(h.default.lib.WordArray.create(Bt),pA,nt).ciphertext))}}},{key:"end",value:function(){this.dictionary.end()}}]),IA}();function wA(){var IA=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},J=-3904;return"lowResolution"===IA.printing&&(J|=4),"highResolution"===IA.printing&&(J|=2052),IA.modifying&&(J|=8),IA.copying&&(J|=16),IA.annotating&&(J|=32),IA.fillingForms&&(J|=256),IA.contentAccessibility&&(J|=512),IA.documentAssembly&&(J|=1024),J}function Lt(){for(var IA=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",J=i.alloc(32),S=IA.length,X=0;X255)throw new Error("Password contains one or more invalid characters.");J[X]=Z,X++}for(;X<32;)J[X]=Le[X-S],X++;return h.default.lib.WordArray.create(J)}function vt(){var IA=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";IA=unescape(encodeURIComponent(k(IA)));for(var J=Math.min(127,IA.length),S=i.alloc(J),X=0;X>8&65280|IA>>24&255}function Kt(IA){for(var J=[],S=0;S>8*(3-S%4)&255);return i.from(J)}var Jt,bt,Xt,ae,Dn,pn,Le=[40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122],re=bA.number,Ae=function(){function IA(J){f(this,IA),this.doc=J,this.stops=[],this.embedded=!1,this.transform=[1,0,0,1,0,0]}return w(IA,[{key:"stop",value:function(S,X,Z){if(null==Z&&(Z=1),X=this.doc._normalizeColor(X),0===this.stops.length)if(3===X.length)this._colorSpace="DeviceRGB";else if(4===X.length)this._colorSpace="DeviceCMYK";else{if(1!==X.length)throw new Error("Unknown color space");this._colorSpace="DeviceGray"}else if("DeviceRGB"===this._colorSpace&&3!==X.length||"DeviceCMYK"===this._colorSpace&&4!==X.length||"DeviceGray"===this._colorSpace&&1!==X.length)throw new Error("All gradient stops must use the same color space");return Z=Math.max(0,Math.min(1,Z)),this.stops.push([S,X,Z]),this}},{key:"setTransform",value:function(S,X,Z,fA,pA,_A){return this.transform=[S,X,Z,fA,pA,_A],this}},{key:"embed",value:function(S){var X,Z=this.stops.length;if(0!==Z){this.embedded=!0,this.matrix=S;var fA=this.stops[Z-1];fA[0]<1&&this.stops.push([1,fA[1],fA[2]]);for(var pA=[],_A=[],nt=[],Bt=0;Bt>16,S>>8&255,255&S]}else bn[J]&&(J=bn[J]);return Array.isArray(J)?(3===J.length?J=J.map(function(X){return X/255}):4===J.length&&(J=J.map(function(X){return X/100})),J):null},_setColor:function(J,S){return J instanceof tn?(J.apply(S),!0):Array.isArray(J)&&J[0]instanceof Xe?(J[0].apply(S,J[1]),!0):this._setColorCore(J,S)},_setColorCore:function(J,S){if(!(J=this._normalizeColor(J)))return!1;var X=S?"SCN":"scn",Z=this._getColorSpace(J);return this._setColorSpace(Z,S),J=J.join(" "),this.addContent("".concat(J," ").concat(X)),!0},_setColorSpace:function(J,S){var X=S?"CS":"cs";return this.addContent("/".concat(J," ").concat(X))},_getColorSpace:function(J){return 4===J.length?"DeviceCMYK":"DeviceRGB"},fillColor:function(J,S){return this._setColor(J,!1)&&this.fillOpacity(S),this._fillColor=[J,S],this},strokeColor:function(J,S){return this._setColor(J,!0)&&this.strokeOpacity(S),this},opacity:function(J){return this._doOpacity(J,J),this},fillOpacity:function(J){return this._doOpacity(J,null),this},strokeOpacity:function(J){return this._doOpacity(null,J),this},_doOpacity:function(J,S){var X,Z;if(null!=J||null!=S){null!=J&&(J=Math.max(0,Math.min(1,J))),null!=S&&(S=Math.max(0,Math.min(1,S)));var fA="".concat(J,"_").concat(S);if(this._opacityRegistry[fA]){var pA=z(this._opacityRegistry[fA],2);X=pA[0],Z=pA[1]}else{X={Type:"ExtGState"},null!=J&&(X.ca=J),null!=S&&(X.CA=S),(X=this.ref(X)).end();var _A=++this._opacityCount;Z="Gs".concat(_A),this._opacityRegistry[fA]=[X,Z]}return this.page.ext_gstates[Z]=X,this.addContent("/".concat(Z," gs"))}},linearGradient:function(J,S,X,Z){return new Te(this,J,S,X,Z)},radialGradient:function(J,S,X,Z,fA,pA){return new en(this,J,S,X,Z,fA,pA)},pattern:function(J,S,X,Z){return new Xe(this,J,S,X,Z)}},bn={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]};Jt=bt=Xt=ae=Dn=pn=0;var Yn={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},Tn={M:function(J,S){return Xt=ae=null,Dn=Jt=S[0],pn=bt=S[1],J.moveTo(Jt,bt)},m:function(J,S){return Xt=ae=null,Dn=Jt+=S[0],pn=bt+=S[1],J.moveTo(Jt,bt)},C:function(J,S){return Jt=S[4],bt=S[5],Xt=S[2],ae=S[3],J.bezierCurveTo.apply(J,L(S))},c:function(J,S){return J.bezierCurveTo(S[0]+Jt,S[1]+bt,S[2]+Jt,S[3]+bt,S[4]+Jt,S[5]+bt),Xt=Jt+S[2],ae=bt+S[3],Jt+=S[4],bt+=S[5]},S:function(J,S){return null===Xt&&(Xt=Jt,ae=bt),J.bezierCurveTo(Jt-(Xt-Jt),bt-(ae-bt),S[0],S[1],S[2],S[3]),Xt=S[0],ae=S[1],Jt=S[2],bt=S[3]},s:function(J,S){return null===Xt&&(Xt=Jt,ae=bt),J.bezierCurveTo(Jt-(Xt-Jt),bt-(ae-bt),Jt+S[0],bt+S[1],Jt+S[2],bt+S[3]),Xt=Jt+S[0],ae=bt+S[1],Jt+=S[2],bt+=S[3]},Q:function(J,S){return Xt=S[0],ae=S[1],J.quadraticCurveTo(S[0],S[1],Jt=S[2],bt=S[3])},q:function(J,S){return J.quadraticCurveTo(S[0]+Jt,S[1]+bt,S[2]+Jt,S[3]+bt),Xt=Jt+S[0],ae=bt+S[1],Jt+=S[2],bt+=S[3]},T:function(J,S){return null===Xt?(Xt=Jt,ae=bt):(Xt=Jt-(Xt-Jt),ae=bt-(ae-bt)),J.quadraticCurveTo(Xt,ae,S[0],S[1]),Xt=Jt-(Xt-Jt),ae=bt-(ae-bt),Jt=S[0],bt=S[1]},t:function(J,S){return null===Xt?(Xt=Jt,ae=bt):(Xt=Jt-(Xt-Jt),ae=bt-(ae-bt)),J.quadraticCurveTo(Xt,ae,Jt+S[0],bt+S[1]),Jt+=S[0],bt+=S[1]},A:function(J,S){return WA(J,Jt,bt,S),Jt=S[5],bt=S[6]},a:function(J,S){return S[5]+=Jt,S[6]+=bt,WA(J,Jt,bt,S),Jt=S[5],bt=S[6]},L:function(J,S){return Xt=ae=null,J.lineTo(Jt=S[0],bt=S[1])},l:function(J,S){return Xt=ae=null,J.lineTo(Jt+=S[0],bt+=S[1])},H:function(J,S){return Xt=ae=null,J.lineTo(Jt=S[0],bt)},h:function(J,S){return Xt=ae=null,J.lineTo(Jt+=S[0],bt)},V:function(J,S){return Xt=ae=null,J.lineTo(Jt,bt=S[0])},v:function(J,S){return Xt=ae=null,J.lineTo(Jt,bt+=S[0])},Z:function(J){return J.closePath(),Jt=Dn,bt=pn},z:function(J){return J.closePath(),Jt=Dn,bt=pn}},WA=function(J,S,X,Z){var Zt,fA=z(Z,7),Ot=DA(YA(fA[5],fA[6],fA[0],fA[1],fA[3],fA[4],fA[2],S,X));try{for(Ot.s();!(Zt=Ot.n()).done;){var he=tt.apply(void 0,L(Zt.value));J.bezierCurveTo.apply(J,L(he))}}catch(Ie){Ot.e(Ie)}finally{Ot.f()}},YA=function(J,S,X,Z,fA,pA,_A,nt,Bt){var Qt=_A*(Math.PI/180),Dt=Math.sin(Qt),xt=Math.cos(Qt);X=Math.abs(X),Z=Math.abs(Z);var Tt=(Xt=xt*(nt-J)*.5+Dt*(Bt-S)*.5)*Xt/(X*X)+(ae=xt*(Bt-S)*.5-Dt*(nt-J)*.5)*ae/(Z*Z);Tt>1&&(X*=Tt=Math.sqrt(Tt),Z*=Tt);var Ot=xt/X,Zt=Dt/X,ue=-Dt/Z,he=xt/Z,Ie=Ot*nt+Zt*Bt,nn=ue*nt+he*Bt,Me=Ot*J+Zt*S,je=ue*J+he*S,Ze=1/((Me-Ie)*(Me-Ie)+(je-nn)*(je-nn))-.25;Ze<0&&(Ze=0);var dn=Math.sqrt(Ze);pA===fA&&(dn=-dn);var Zn=.5*(Ie+Me)-dn*(je-nn),_n=.5*(nn+je)+dn*(Me-Ie),Nn=Math.atan2(nn-_n,Ie-Zn),Hn=Math.atan2(je-_n,Me-Zn)-Nn;Hn<0&&1===pA?Hn+=2*Math.PI:Hn>0&&0===pA&&(Hn-=2*Math.PI);for(var rr=Math.ceil(Math.abs(Hn/(.5*Math.PI+.001))),Qr=[],$n=0;$n0&&(Z[Z.length]=+fA),X[X.length]={cmd:S,args:Z},Z=[],fA="",pA=!1),S=Qt;else if([" ",","].includes(Qt)||"-"===Qt&&fA.length>0&&"e"!==fA[fA.length-1]||"."===Qt&&pA){if(0===fA.length)continue;Z.length===_A?(X[X.length]={cmd:S,args:Z},Z=[+fA],"M"===S&&(S="L"),"m"===S&&(S="l")):Z[Z.length]=+fA,pA="."===Qt,fA=["-","."].includes(Qt)?Qt:""}else fA+=Qt,"."===Qt&&(pA=!0)}}catch(Dt){nt.e(Dt)}finally{nt.f()}return fA.length>0&&(Z.length===_A?(X[X.length]={cmd:S,args:Z},Z=[+fA],"M"===S&&(S="L"),"m"===S&&(S="l")):Z[Z.length]=+fA),X[X.length]={cmd:S,args:Z},X}(X);!function(J,S){Jt=bt=Xt=ae=Dn=pn=0;for(var X=0;X1&&void 0!==arguments[1]?arguments[1]:{},X=J;if(Array.isArray(J)||(J=[J,S.space||J]),!J.every(function(fA){return Number.isFinite(fA)&&fA>0}))throw new Error("dash(".concat(JSON.stringify(X),", ").concat(JSON.stringify(S),") invalid, lengths must be numeric and greater than zero"));return J=J.map(RA).join(" "),this.addContent("[".concat(J,"] ").concat(RA(S.phase||0)," d"))},undash:function(){return this.addContent("[] 0 d")},moveTo:function(J,S){return this.addContent("".concat(RA(J)," ").concat(RA(S)," m"))},lineTo:function(J,S){return this.addContent("".concat(RA(J)," ").concat(RA(S)," l"))},bezierCurveTo:function(J,S,X,Z,fA,pA){return this.addContent("".concat(RA(J)," ").concat(RA(S)," ").concat(RA(X)," ").concat(RA(Z)," ").concat(RA(fA)," ").concat(RA(pA)," c"))},quadraticCurveTo:function(J,S,X,Z){return this.addContent("".concat(RA(J)," ").concat(RA(S)," ").concat(RA(X)," ").concat(RA(Z)," v"))},rect:function(J,S,X,Z){return this.addContent("".concat(RA(J)," ").concat(RA(S)," ").concat(RA(X)," ").concat(RA(Z)," re"))},roundedRect:function(J,S,X,Z,fA){null==fA&&(fA=0);var pA=(fA=Math.min(fA,.5*X,.5*Z))*(1-zA);return this.moveTo(J+fA,S),this.lineTo(J+X-fA,S),this.bezierCurveTo(J+X-pA,S,J+X,S+pA,J+X,S+fA),this.lineTo(J+X,S+Z-fA),this.bezierCurveTo(J+X,S+Z-pA,J+X-pA,S+Z,J+X-fA,S+Z),this.lineTo(J+fA,S+Z),this.bezierCurveTo(J+pA,S+Z,J,S+Z-pA,J,S+Z-fA),this.lineTo(J,S+fA),this.bezierCurveTo(J,S+pA,J+pA,S,J+fA,S),this.closePath()},ellipse:function(J,S,X,Z){null==Z&&(Z=X);var fA=X*zA,pA=Z*zA,_A=(J-=X)+2*X,nt=(S-=Z)+2*Z,Bt=J+X,Qt=S+Z;return this.moveTo(J,Qt),this.bezierCurveTo(J,Qt-pA,Bt-fA,S,Bt,S),this.bezierCurveTo(Bt+fA,S,_A,Qt-pA,_A,Qt),this.bezierCurveTo(_A,Qt+pA,Bt+fA,nt,Bt,nt),this.bezierCurveTo(Bt-fA,nt,J,Qt+pA,J,Qt),this.closePath()},circle:function(J,S,X){return this.ellipse(J,S,X)},arc:function(J,S,X,Z,fA,pA){null==pA&&(pA=!1);var _A=2*Math.PI,nt=.5*Math.PI,Bt=fA-Z;Math.abs(Bt)>_A?Bt=_A:0!==Bt&&pA!==Bt<0&&(Bt=(pA?-1:1)*_A+Bt);var Dt=Math.ceil(Math.abs(Bt)/nt),xt=Bt/Dt,Tt=xt/nt*zA*X,Ot=Z,Zt=-Math.sin(Ot)*Tt,ue=Math.cos(Ot)*Tt,he=J+Math.cos(Ot)*X,Ie=S+Math.sin(Ot)*X;this.moveTo(he,Ie);for(var nn=0;nn1&&void 0!==arguments[1]?arguments[1]:{},Z=J*Math.PI/180,fA=Math.cos(Z),pA=Math.sin(Z),_A=X=0;if(null!=S.origin){var nt=z(S.origin,2),Qt=(_A=nt[0])*pA+(X=nt[1])*fA;_A-=_A*fA-X*pA,X-=Qt}return this.transform(fA,pA,-pA,fA,_A,X)},scale:function(J,S){var Z,X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};null==S&&(S=J),"object"==typeof S&&(X=S,S=J);var fA=Z=0;if(null!=X.origin){var pA=z(X.origin,2);fA=pA[0],Z=pA[1],fA-=J*fA,Z-=S*Z}return this.transform(J,0,0,S,fA,Z)}},$A={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},LA=".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+/),at=function(){function IA(J){f(this,IA),this.contents=J,this.attributes={},this.glyphWidths={},this.boundingBoxes={},this.kernPairs={},this.parse(),this.charWidths=new Array(256);for(var S=0;S<=255;S++)this.charWidths[S]=this.glyphWidths[LA[S]];this.bbox=this.attributes.FontBBox.split(/\s+/).map(function(X){return+X}),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)}return w(IA,null,[{key:"open",value:function(S){return new IA(e.readFileSync(S,"utf8"))}}]),w(IA,[{key:"parse",value:function(){var Z,S="",X=DA(this.contents.split("\n"));try{for(X.s();!(Z=X.n()).done;){var pA,_A,fA=Z.value;if(pA=fA.match(/^Start(\w+)/))S=pA[1];else if(pA=fA.match(/^End(\w+)/))S="";else switch(S){case"FontMetrics":var nt=(pA=fA.match(/(^\w+)\s+(.*)/))[1],Bt=pA[2];(_A=this.attributes[nt])?(Array.isArray(_A)||(_A=this.attributes[nt]=[_A]),_A.push(Bt)):this.attributes[nt]=Bt;break;case"CharMetrics":if(!/^CH?\s/.test(fA))continue;var Qt=fA.match(/\bN\s+(\.?\w+)\s*;/)[1];this.glyphWidths[Qt]=+fA.match(/\bWX\s+(\d+)\s*;/)[1];break;case"KernPairs":(pA=fA.match(/^KPX\s+(\.?\w+)\s+(\.?\w+)\s+(-?\d+)/))&&(this.kernPairs[pA[1]+"\0"+pA[2]]=parseInt(pA[3]))}}}catch(Dt){X.e(Dt)}finally{X.f()}}},{key:"encodeText",value:function(S){for(var X=[],Z=0,fA=S.length;Z>8,nt=0;this.font.post.isFixedPitch&&(nt|=1),1<=_A&&_A<=7&&(nt|=2),nt|=4,10===_A&&(nt|=8),this.font.head.macStyle.italic&&(nt|=64);var Qt=[1,2,3,4,5,6].map(function(Zt){return String.fromCharCode((Z.id.charCodeAt(Zt)||73)+17)}).join("")+"+"+this.font.postscriptName,Dt=this.font.bbox,xt=this.document.ref({Type:"FontDescriptor",FontName:Qt,Flags:nt,FontBBox:[Dt.minX*this.scale,Dt.minY*this.scale,Dt.maxX*this.scale,Dt.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});fA?xt.data.FontFile3=pA:xt.data.FontFile2=pA,xt.end();var Tt={Type:"Font",Subtype:"CIDFontType0",BaseFont:Qt,CIDSystemInfo:{Registry:new String("Adobe"),Ordering:new String("Identity"),Supplement:0},FontDescriptor:xt,W:[0,this.widths]};fA||(Tt.Subtype="CIDFontType2",Tt.CIDToGIDMap="Identity");var Ot=this.document.ref(Tt);return Ot.end(),this.dictionary.data={Type:"Font",Subtype:"Type0",BaseFont:Qt,Encoding:"Identity-H",DescendantFonts:[Ot],ToUnicode:this.toUnicodeCmap()},this.dictionary.end()}},{key:"toUnicodeCmap",value:function(){var _A,Z=this.document.ref(),fA=[],pA=DA(this.unicode);try{for(pA.s();!(_A=pA.n()).done;){var Dt,Bt=[],Qt=DA(_A.value);try{for(Qt.s();!(Dt=Qt.n()).done;){var xt=Dt.value;xt>65535&&(Bt.push(Ut((xt-=65536)>>>10&1023|55296)),xt=56320|1023&xt),Bt.push(Ut(xt))}}catch(Tt){Qt.e(Tt)}finally{Qt.f()}fA.push("<".concat(Bt.join(" "),">"))}}catch(Tt){pA.e(Tt)}finally{pA.f()}return Z.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\n1 beginbfrange\n<0000> <".concat(Ut(fA.length-1),"> [").concat(fA.join(" "),"]\nendbfrange\nendcmap\nCMapName currentdict /CMap defineresource pop\nend\nend")),Z}}]),S}(KA),Vt=function(){function IA(){f(this,IA)}return w(IA,null,[{key:"open",value:function(S,X,Z,fA){var pA;if("string"==typeof X){if(Nt.isStandardFont(X))return new Nt(S,X,fA);X=e.readFileSync(X)}if(i.isBuffer(X)?pA=a.default.create(X,Z):X instanceof Uint8Array?pA=a.default.create(i.from(X),Z):X instanceof ArrayBuffer&&(pA=a.default.create(i.from(new Uint8Array(X)),Z)),null==pA)throw new Error("Not a supported font format or standard PDF font.");return new kt(S,pA,fA)}}]),IA}(),te={initFonts:function(){var J=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Helvetica";this._fontFamilies={},this._fontCount=0,this._fontSize=12,this._font=null,this._registeredFonts={},J&&this.font(J)},font:function(J,S,X){var Z,fA;if("number"==typeof S&&(X=S,S=null),"string"==typeof J&&this._registeredFonts[J]){Z=J;var pA=this._registeredFonts[J];J=pA.src,S=pA.family}else"string"!=typeof(Z=S||J)&&(Z=null);if(null!=X&&this.fontSize(X),fA=this._fontFamilies[Z])return this._font=fA,this;var _A="F".concat(++this._fontCount);return this._font=Vt.open(this,J,S,_A),(fA=this._fontFamilies[this._font.name])?(this._font=fA,this):(Z&&(this._fontFamilies[Z]=this._font),this._font.name&&(this._fontFamilies[this._font.name]=this._font),this)},fontSize:function(J){return this._fontSize=J,this},currentLineHeight:function(J){return null==J&&(J=!1),this._font.lineHeight(this._fontSize,J)},registerFont:function(J,S,X){return this._registeredFonts[J]={src:S,family:X},this}},wt=function(IA){y(S,IA);var J=F(S);function S(X,Z){var fA;return f(this,S),(fA=J.call(this)).document=X,fA.indent=Z.indent||0,fA.characterSpacing=Z.characterSpacing||0,fA.wordSpacing=0===Z.wordSpacing,fA.columns=Z.columns||1,fA.columnGap=null!=Z.columnGap?Z.columnGap:18,fA.lineWidth=(Z.width-fA.columnGap*(fA.columns-1))/fA.columns,fA.spaceLeft=fA.lineWidth,fA.startX=fA.document.x,fA.startY=fA.document.y,fA.column=1,fA.ellipsis=Z.ellipsis,fA.continuedX=0,fA.features=Z.features,null!=Z.height?(fA.height=Z.height,fA.maxY=fA.startY+Z.height):fA.maxY=fA.document.page.maxY(),fA.on("firstLine",function(pA){var _A=fA.continuedX||fA.indent;return fA.document.x+=_A,fA.lineWidth-=_A,fA.once("line",function(){if(fA.document.x-=_A,fA.lineWidth+=_A,pA.continued&&!fA.continuedX&&(fA.continuedX=fA.indent),!pA.continued)return fA.continuedX=0})}),fA.on("lastLine",function(pA){var _A=pA.align;return"justify"===_A&&(pA.align="left"),fA.lastLine=!0,fA.once("line",function(){return fA.document.y+=pA.paragraphGap||0,pA.align=_A,fA.lastLine=!1})}),fA}return w(S,[{key:"wordWidth",value:function(Z){return this.document.widthOfString(Z,this)+this.characterSpacing+this.wordSpacing}},{key:"eachWord",value:function(Z,fA){for(var pA,_A=new E.default(Z),nt=null,Bt=Object.create(null);pA=_A.nextBreak();){var Qt,Dt=Z.slice((null!=nt?nt.position:void 0)||0,pA.position),xt=null!=Bt[Dt]?Bt[Dt]:Bt[Dt]=this.wordWidth(Dt);if(xt>this.lineWidth+this.continuedX)for(var Tt=nt,Ot={};Dt.length;){var Zt,ue;xt>this.spaceLeft?(Zt=Math.ceil(this.spaceLeft/(xt/Dt.length)),ue=(xt=this.wordWidth(Dt.slice(0,Zt)))<=this.spaceLeft&&Ztthis.spaceLeft&&Zt>0;he||ue;)he?he=(xt=this.wordWidth(Dt.slice(0,--Zt)))>this.spaceLeft&&Zt>0:(he=(xt=this.wordWidth(Dt.slice(0,++Zt)))>this.spaceLeft&&Zt>0,ue=xt<=this.spaceLeft&&Ztthis.maxY||_A>this.maxY)&&this.nextSection();var nt="",Bt=0,Qt=0,Dt=0,xt=this.document.y,Tt=function(){return fA.textWidth=Bt+pA.wordSpacing*(Qt-1),fA.wordCount=Qt,fA.lineWidth=pA.lineWidth,xt=pA.document.y,pA.emit("line",nt,fA,pA),Dt++};return this.emit("sectionStart",fA,this),this.eachWord(Z,function(Ot,Zt,ue,he){if((null==he||he.required)&&(pA.emit("firstLine",fA,pA),pA.spaceLeft=pA.lineWidth),Zt<=pA.spaceLeft&&(nt+=Ot,Bt+=Zt,Qt++),ue.required||Zt>pA.spaceLeft){var Ie=pA.document.currentLineHeight(!0);if(null!=pA.height&&pA.ellipsis&&pA.document.y+2*Ie>pA.maxY&&pA.column>=pA.columns){for(!0===pA.ellipsis&&(pA.ellipsis="\u2026"),nt=nt.replace(/\s+$/,""),Bt=pA.wordWidth(nt+pA.ellipsis);nt&&Bt>pA.lineWidth;)nt=nt.slice(0,-1).replace(/\s+$/,""),Bt=pA.wordWidth(nt+pA.ellipsis);Bt<=pA.lineWidth&&(nt+=pA.ellipsis),Bt=pA.wordWidth(nt)}return ue.required&&(Zt>pA.spaceLeft&&(Tt(),nt=Ot,Bt=Zt,Qt=1),pA.emit("lastLine",fA,pA)),Tt(),pA.document.y+Ie>pA.maxY&&!pA.nextSection()?(Qt=0,nt="",!1):ue.required?(pA.spaceLeft=pA.lineWidth,nt="",Bt=0,Qt=0):(pA.spaceLeft=pA.lineWidth-Zt,nt=Ot,Bt=Zt,Qt=1)}return pA.spaceLeft-=Zt}),Qt>0&&(this.emit("lastLine",fA,this),Tt()),this.emit("sectionEnd",fA,this),!0===fA.continued?(Dt>1&&(this.continuedX=0),this.continuedX+=fA.textWidth||0,this.document.y=xt):this.document.x=this.startX}},{key:"nextSection",value:function(Z){if(this.emit("sectionEnd",Z,this),++this.column>this.columns){if(null!=this.height)return!1;var fA;this.document.continueOnNewPage(),this.column=1,this.startY=this.document.page.margins.top,this.maxY=this.document.page.maxY(),this.document.x=this.startX,this.document._fillColor&&(fA=this.document).fillColor.apply(fA,L(this.document._fillColor)),this.emit("pageBreak",Z,this)}else this.document.x+=this.lineWidth+this.columnGap,this.document.y=this.startY,this.emit("columnBreak",Z,this);return this.emit("sectionStart",Z,this),!0}}]),S}(B.EventEmitter),Pt=bA.number,jt={initText:function(){return this._line=this._line.bind(this),this.x=0,this.y=0,this._lineGap=0},lineGap:function(J){return this._lineGap=J,this},moveDown:function(J){return null==J&&(J=1),this.y+=this.currentLineHeight(!0)*J+this._lineGap,this},moveUp:function(J){return null==J&&(J=1),this.y-=this.currentLineHeight(!0)*J+this._lineGap,this},_text:function(J,S,X,Z,fA){var pA=this;Z=this._initOptions(S,X,Z),J=null==J?"":"".concat(J),Z.wordSpacing&&(J=J.replace(/\s{2,}/g," "));var _A=function(){Z.structParent&&Z.structParent.add(pA.struct(Z.structType||"P",[pA.markStructureContent(Z.structType||"P")]))};if(Z.width){var nt=this._wrapper;nt||((nt=new wt(this,Z)).on("line",fA),nt.on("firstLine",_A)),this._wrapper=Z.continued?nt:null,this._textOptions=Z.continued?Z:null,nt.wrap(J,Z)}else{var Qt,Bt=DA(J.split("\n"));try{for(Bt.s();!(Qt=Bt.n()).done;){var Dt=Qt.value;_A(),fA(Dt,Z)}}catch(xt){Bt.e(xt)}finally{Bt.f()}}return this},text:function(J,S,X,Z){return this._text(J,S,X,Z,this._line)},widthOfString:function(J){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._font.widthOfString(J,this._fontSize,S.features)+(S.characterSpacing||0)*(J.length-1)},heightOfString:function(J,S){var X=this,Z=this.x,fA=this.y;(S=this._initOptions(S)).height=1/0;var pA=S.lineGap||this._lineGap||0;this._text(J,this.x,this.y,S,function(){return X.y+=X.currentLineHeight(!0)+pA});var _A=this.y-fA;return this.x=Z,this.y=fA,_A},list:function(J,S,X,Z,fA){var pA=this,_A=(Z=this._initOptions(S,X,Z)).listType||"bullet",nt=Math.round(this._font.ascender/1e3*this._fontSize),Bt=nt/2,Qt=Z.bulletRadius||nt/3,Dt=Z.textIndent||("bullet"===_A?5*Qt:2*nt),xt=Z.bulletIndent||("bullet"===_A?8*Qt:2*nt),Tt=1,Ot=[],Zt=[],ue=[];!function Me(je){for(var Qn=1,Ze=0;Ze0&&void 0!==arguments[0]?arguments[0]:{},S=arguments.length>1?arguments[1]:void 0,X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"==typeof J&&(X=J,J=null);var Z=Object.assign({},X);if(this._textOptions)for(var fA in this._textOptions)"continued"!==fA&&void 0===Z[fA]&&(Z[fA]=this._textOptions[fA]);return null!=J&&(this.x=J),null!=S&&(this.y=S),!1!==Z.lineBreak&&(null==Z.width&&(Z.width=this.page.width-this.x-this.page.margins.right),Z.width=Math.max(Z.width,0)),Z.columns||(Z.columns=0),null==Z.columnGap&&(Z.columnGap=18),Z},_line:function(J){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},X=arguments.length>2?arguments[2]:void 0;this._fragment(J,this.x,this.y,S);var Z=S.lineGap||this._lineGap||0;return X?this.y+=this.currentLineHeight(!0)+Z:this.x+=this.widthOfString(J)},_fragment:function(J,S,X,Z){var pA,_A,nt,Bt,Qt,Dt,fA=this;if(0!==(J="".concat(J).replace(/\n/g,"")).length){var Tt=Z.wordSpacing||0,Ot=Z.characterSpacing||0;if(Z.width)switch(Z.align||"left"){case"right":Qt=this.widthOfString(J.replace(/\s+$/,""),Z),S+=Z.lineWidth-Qt;break;case"center":S+=Z.lineWidth/2-Z.textWidth/2;break;case"justify":Dt=J.trim().split(/\s+/),Qt=this.widthOfString(J.replace(/\s+/g,""),Z);var Zt=this.widthOfString(" ")+Ot;Tt=Math.max(0,(Z.lineWidth-Qt)/Math.max(1,Dt.length-1)-Zt)}if("number"==typeof Z.baseline)pA=-Z.baseline;else{switch(Z.baseline){case"svg-middle":pA=.5*this._font.xHeight;break;case"middle":case"svg-central":pA=.5*(this._font.descender+this._font.ascender);break;case"bottom":case"ideographic":pA=this._font.descender;break;case"alphabetic":pA=0;break;case"mathematical":pA=.5*this._font.ascender;break;case"hanging":pA=.8*this._font.ascender;break;default:pA=this._font.ascender}pA=pA/1e3*this._fontSize}var je,ue=Z.textWidth+Tt*(Z.wordCount-1)+Ot*(J.length-1);if(null!=Z.link&&this.link(S,X,ue,this.currentLineHeight(),Z.link),null!=Z.goTo&&this.goTo(S,X,ue,this.currentLineHeight(),Z.goTo),null!=Z.destination&&this.addNamedDestination(Z.destination,"XYZ",S,X,null),Z.underline){this.save(),Z.stroke||this.strokeColor.apply(this,L(this._fillColor||[]));var he=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(he);var Ie=X+this.currentLineHeight()-he;this.moveTo(S,Ie),this.lineTo(S+ue,Ie),this.stroke(),this.restore()}if(Z.strike){this.save(),Z.stroke||this.strokeColor.apply(this,L(this._fillColor||[]));var nn=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(nn);var Me=X+this.currentLineHeight()/2;this.moveTo(S,Me),this.lineTo(S+ue,Me),this.stroke(),this.restore()}this.save(),Z.oblique&&(je="number"==typeof Z.oblique?-Math.tan(Z.oblique*Math.PI/180):-.25,this.transform(1,0,0,1,S,X),this.transform(1,0,je,1,-je*pA,0),this.transform(1,0,0,1,-S,-X)),this.transform(1,0,0,-1,0,this.page.height),X=this.page.height-X-pA,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 ".concat(Pt(S)," ").concat(Pt(X)," Tm")),this.addContent("/".concat(this._font.id," ").concat(Pt(this._fontSize)," Tf"));var Qn=Z.fill&&Z.stroke?2:Z.stroke?1:0;if(Qn&&this.addContent("".concat(Qn," Tr")),Ot&&this.addContent("".concat(Pt(Ot)," Tc")),Tt){Dt=J.trim().split(/\s+/),Tt+=this.widthOfString(" ")+Ot,Tt*=1e3/this._fontSize,_A=[],Bt=[];var dn,Ze=DA(Dt);try{for(Ze.s();!(dn=Ze.n()).done;){var Nn=z(this._font.encode(dn.value,Z.features),2),Hn=Nn[1];_A=_A.concat(Nn[0]),Bt=Bt.concat(Hn);var rr={},Qr=Bt[Bt.length-1];for(var $n in Qr)rr[$n]=Qr[$n];rr.xAdvance+=Tt,Bt[Bt.length-1]=rr}}catch(Jr){Ze.e(Jr)}finally{Ze.f()}}else{var Kn=z(this._font.encode(J,Z.features),2);_A=Kn[0],Bt=Kn[1]}var Lr=this._fontSize/1e3,dr=[],br=0,Gr=!1,si=function(Vn){if(br ").concat(Pt(-bi)))}return br=Vn},Hr=function(Vn){if(si(Vn),dr.length>0)return fA.addContent("[".concat(dr.join(" "),"] TJ")),dr.length=0};for(nt=0;nt3&&void 0!==arguments[3]?arguments[3]:{};"object"==typeof S&&(Z=S,S=null),S=null!=(Qt=null!=S?S:Z.x)?Qt:this.x,X=null!=(Dt=null!=X?X:Z.y)?Dt:this.y,"string"==typeof J&&(nt=this._imageRegistry[J]),nt||(nt=J.width&&J.height?J:this.openImage(J)),nt.obj||nt.embed(this),null==this.page.xobjects[nt.label]&&(this.page.xobjects[nt.label]=nt.obj);var xt=Z.width||nt.width,Tt=Z.height||nt.height;if(Z.width&&!Z.height){var Ot=xt/nt.width;xt=nt.width*Ot,Tt=nt.height*Ot}else if(Z.height&&!Z.width){var Zt=Tt/nt.height;xt=nt.width*Zt,Tt=nt.height*Zt}else if(Z.scale)xt=nt.width*Z.scale,Tt=nt.height*Z.scale;else if(Z.fit){var ue=z(Z.fit,2);(Bt=nt.width/nt.height)>(_A=ue[0])/(fA=ue[1])?(xt=_A,Tt=_A/Bt):(Tt=fA,xt=fA*Bt)}else if(Z.cover){var he=z(Z.cover,2);(Bt=nt.width/nt.height)>(_A=he[0])/(fA=he[1])?(Tt=fA,xt=fA*Bt):(xt=_A,Tt=_A/Bt)}return(Z.fit||Z.cover)&&("center"===Z.align?S=S+_A/2-xt/2:"right"===Z.align&&(S=S+_A-xt),"center"===Z.valign?X=X+fA/2-Tt/2:"bottom"===Z.valign&&(X=X+fA-Tt)),null!=Z.link&&this.link(S,X,xt,Tt,Z.link),null!=Z.goTo&&this.goTo(S,X,xt,Tt,Z.goTo),null!=Z.destination&&this.addNamedDestination(Z.destination,"XYZ",S,X,null),this.y===X&&(this.y+=Tt),this.save(),this.transform(xt,0,0,-Tt,S,X+Tt),this.addContent("/".concat(nt.label," Do")),this.restore(),this},openImage:function(J){var S;return"string"==typeof J&&(S=this._imageRegistry[J]),S||(S=le.open(J,"I".concat(++this._imageCount)),"string"==typeof J&&(this._imageRegistry[J]=S)),S}},Ge={annotate:function(J,S,X,Z,fA){for(var pA in fA.Type="Annot",fA.Rect=this._convertRect(J,S,X,Z),fA.Border=[0,0,0],"Link"===fA.Subtype&&void 0===fA.F&&(fA.F=4),"Link"!==fA.Subtype&&null==fA.C&&(fA.C=this._normalizeColor(fA.color||[0,0,0])),delete fA.color,"string"==typeof fA.Dest&&(fA.Dest=new String(fA.Dest)),fA){var _A=fA[pA];fA[pA[0].toUpperCase()+pA.slice(1)]=_A}var nt=this.ref(fA);return this.page.annotations.push(nt),nt.end(),this},note:function(J,S,X,Z,fA){var pA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return pA.Subtype="Text",pA.Contents=new String(fA),pA.Name="Comment",null==pA.color&&(pA.color=[243,223,92]),this.annotate(J,S,X,Z,pA)},goTo:function(J,S,X,Z,fA){var pA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return pA.Subtype="Link",pA.A=this.ref({S:"GoTo",D:new String(fA)}),pA.A.end(),this.annotate(J,S,X,Z,pA)},link:function(J,S,X,Z,fA){var pA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(pA.Subtype="Link","number"==typeof fA){var _A=this._root.data.Pages.data;if(!(fA>=0&&fA<_A.Kids.length))throw new Error("The document has no page ".concat(fA));pA.A=this.ref({S:"GoTo",D:[_A.Kids[fA],"XYZ",null,null,null]}),pA.A.end()}else pA.A=this.ref({S:"URI",URI:new String(fA)}),pA.A.end();return this.annotate(J,S,X,Z,pA)},_markup:function(J,S,X,Z){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},_A=z(this._convertRect(J,S,X,Z),4),nt=_A[0],Bt=_A[1],Qt=_A[2],Dt=_A[3];return fA.QuadPoints=[nt,Dt,Qt,Dt,nt,Bt,Qt,Bt],fA.Contents=new String,this.annotate(J,S,X,Z,fA)},highlight:function(J,S,X,Z){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Highlight",null==fA.color&&(fA.color=[241,238,148]),this._markup(J,S,X,Z,fA)},underline:function(J,S,X,Z){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Underline",this._markup(J,S,X,Z,fA)},strike:function(J,S,X,Z){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="StrikeOut",this._markup(J,S,X,Z,fA)},lineAnnotation:function(J,S,X,Z){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Line",fA.Contents=new String,fA.L=[J,this.page.height-S,X,this.page.height-Z],this.annotate(J,S,X,Z,fA)},rectAnnotation:function(J,S,X,Z){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Square",fA.Contents=new String,this.annotate(J,S,X,Z,fA)},ellipseAnnotation:function(J,S,X,Z){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Circle",fA.Contents=new String,this.annotate(J,S,X,Z,fA)},textAnnotation:function(J,S,X,Z,fA){var pA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return pA.Subtype="FreeText",pA.Contents=new String(fA),pA.DA=new String,this.annotate(J,S,X,Z,pA)},fileAnnotation:function(J,S,X,Z){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},pA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},_A=this.file(fA.src,Object.assign({hidden:!0},fA));return pA.Subtype="FileAttachment",pA.FS=_A,pA.Contents?pA.Contents=new String(pA.Contents):_A.data.Desc&&(pA.Contents=_A.data.Desc),this.annotate(J,S,X,Z,pA)},_convertRect:function(J,S,X,Z){var fA=S;S+=Z;var pA=J+X,_A=z(this._ctm,6),nt=_A[0],Bt=_A[1],Qt=_A[2],Dt=_A[3],xt=_A[4],Tt=_A[5];return[J=nt*J+Qt*S+xt,S=Bt*J+Dt*S+Tt,pA=nt*pA+Qt*fA+xt,fA=Bt*pA+Dt*fA+Tt]}},Ne=function(){function IA(J,S,X,Z){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{expanded:!1};f(this,IA),this.document=J,this.options=fA,this.outlineData={},null!==Z&&(this.outlineData.Dest=[Z.dictionary,"Fit"]),null!==S&&(this.outlineData.Parent=S),null!==X&&(this.outlineData.Title=new String(X)),this.dictionary=this.document.ref(this.outlineData),this.children=[]}return w(IA,[{key:"addItem",value:function(S){var Z=new IA(this.document,this.dictionary,S,this.document.page,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{expanded:!1});return this.children.push(Z),Z}},{key:"endOutline",value:function(){if(this.children.length>0){this.options.expanded&&(this.outlineData.Count=this.children.length);var X=this.children[this.children.length-1];this.outlineData.First=this.children[0].dictionary,this.outlineData.Last=X.dictionary;for(var Z=0,fA=this.children.length;Z0&&(pA.outlineData.Prev=this.children[Z-1].dictionary),Z0)return this._root.data.Outlines=this.outline.dictionary,this._root.data.PageMode="UseOutlines"}},Se=function(){function IA(J,S){f(this,IA),this.refs=[{pageRef:J,mcid:S}]}return w(IA,[{key:"push",value:function(S){var X=this;S.refs.forEach(function(Z){return X.refs.push(Z)})}}]),IA}(),_e=function(){function IA(J,S){var X=this,Z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},fA=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;f(this,IA),this.document=J,this._attached=!1,this._ended=!1,this._flushed=!1,this.dictionary=J.ref({S});var pA=this.dictionary.data;(Array.isArray(Z)||this._isValidChild(Z))&&(fA=Z,Z={}),void 0!==Z.title&&(pA.T=new String(Z.title)),void 0!==Z.lang&&(pA.Lang=new String(Z.lang)),void 0!==Z.alt&&(pA.Alt=new String(Z.alt)),void 0!==Z.expanded&&(pA.E=new String(Z.expanded)),void 0!==Z.actual&&(pA.ActualText=new String(Z.actual)),this._children=[],fA&&(Array.isArray(fA)||(fA=[fA]),fA.forEach(function(_A){return X.add(_A)}),this.end())}return w(IA,[{key:"add",value:function(S){if(this._ended)throw new Error("Cannot add child to already-ended structure element");if(!this._isValidChild(S))throw new Error("Invalid structure element child");return S instanceof IA&&(S.setParent(this.dictionary),this._attached&&S.setAttached()),S instanceof Se&&this._addContentToParentTree(S),"function"==typeof S&&this._attached&&(S=this._contentForClosure(S)),this._children.push(S),this}},{key:"_addContentToParentTree",value:function(S){var X=this;S.refs.forEach(function(Z){var fA=Z.pageRef,pA=Z.mcid;X.document.getStructParentTree().get(fA.data.StructParents)[pA]=X.dictionary})}},{key:"setParent",value:function(S){if(this.dictionary.data.P)throw new Error("Structure element added to more than one parent");this.dictionary.data.P=S,this._flush()}},{key:"setAttached",value:function(){var S=this;this._attached||(this._children.forEach(function(X,Z){X instanceof IA&&X.setAttached(),"function"==typeof X&&(S._children[Z]=S._contentForClosure(X))}),this._attached=!0,this._flush())}},{key:"end",value:function(){this._ended||(this._children.filter(function(S){return S instanceof IA}).forEach(function(S){return S.end()}),this._ended=!0,this._flush())}},{key:"_isValidChild",value:function(S){return S instanceof IA||S instanceof Se||"function"==typeof S}},{key:"_contentForClosure",value:function(S){var X=this.document.markStructureContent(this.dictionary.data.S);return S(),this.document.endMarkedContent(),this._addContentToParentTree(X),X}},{key:"_isFlushable",value:function(){return!(!this.dictionary.data.P||!this._ended)&&this._children.every(function(S){return"function"!=typeof S&&(!(S instanceof IA)||S._isFlushable())})}},{key:"_flush",value:function(){var S=this;this._flushed||!this._isFlushable()||(this.dictionary.data.K=[],this._children.forEach(function(X){return S._flushChild(X)}),this.dictionary.end(),this._children=[],this.dictionary.data.K=null,this._flushed=!0)}},{key:"_flushChild",value:function(S){var X=this;S instanceof IA&&this.dictionary.data.K.push(S.dictionary),S instanceof Se&&S.refs.forEach(function(Z){var fA=Z.pageRef,pA=Z.mcid;X.dictionary.data.Pg||(X.dictionary.data.Pg=fA),X.dictionary.data.K.push(X.dictionary.data.Pg===fA?pA:{Type:"MCR",Pg:fA,MCID:pA})})}}]),IA}(),Fn=function(IA){y(S,IA);var J=F(S);function S(){return f(this,S),J.apply(this,arguments)}return w(S,[{key:"_compareKeys",value:function(Z,fA){return parseInt(Z)-parseInt(fA)}},{key:"_keysName",value:function(){return"Nums"}},{key:"_dataForKey",value:function(Z){return parseInt(Z)}}]),S}(_),rn={initMarkings:function(J){this.structChildren=[],J.tagged&&(this.getMarkInfoDictionary().data.Marked=!0,this.getStructTreeRoot())},markContent:function(J){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("Artifact"===J||S&&S.mcid){var X=0;for(this.page.markings.forEach(function(fA){(X||fA.structContent||"Artifact"===fA.tag)&&X++});X--;)this.endMarkedContent()}if(!S)return this.page.markings.push({tag:J}),this.addContent("/".concat(J," BMC")),this;this.page.markings.push({tag:J,options:S});var Z={};return void 0!==S.mcid&&(Z.MCID=S.mcid),"Artifact"===J&&("string"==typeof S.type&&(Z.Type=S.type),Array.isArray(S.bbox)&&(Z.BBox=[S.bbox[0],this.page.height-S.bbox[3],S.bbox[2],this.page.height-S.bbox[1]]),Array.isArray(S.attached)&&S.attached.every(function(fA){return"string"==typeof fA})&&(Z.Attached=S.attached)),"Span"===J&&(S.lang&&(Z.Lang=new String(S.lang)),S.alt&&(Z.Alt=new String(S.alt)),S.expanded&&(Z.E=new String(S.expanded)),S.actual&&(Z.ActualText=new String(S.actual))),this.addContent("/".concat(J," ").concat(bA.convert(Z)," BDC")),this},markStructureContent:function(J){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},X=this.getStructParentTree().get(this.page.structParentTreeKey),Z=X.length;X.push(null),this.markContent(J,Y(Y({},S),{},{mcid:Z}));var fA=new Se(this.page.dictionary,Z);return this.page.markings.slice(-1)[0].structContent=fA,fA},endMarkedContent:function(){return this.page.markings.pop(),this.addContent("EMC"),this},struct:function(J){return new _e(this,J,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)},addStructure:function(J){var S=this.getStructTreeRoot();return J.setParent(S),J.setAttached(),this.structChildren.push(J),S.data.K||(S.data.K=[]),S.data.K.push(J.dictionary),this},initPageMarkings:function(J){var S=this;J.forEach(function(X){if(X.structContent){var Z=X.structContent,fA=S.markStructureContent(X.tag,X.options);Z.push(fA),S.page.markings.slice(-1)[0].structContent=Z}else S.markContent(X.tag,X.options)})},endPageMarkings:function(J){var S=J.markings;return S.forEach(function(){return J.write("EMC")}),J.markings=[],S},getMarkInfoDictionary:function(){return this._root.data.MarkInfo||(this._root.data.MarkInfo=this.ref({})),this._root.data.MarkInfo},getStructTreeRoot:function(){return this._root.data.StructTreeRoot||(this._root.data.StructTreeRoot=this.ref({Type:"StructTreeRoot",ParentTree:new Fn,ParentTreeNextKey:0})),this._root.data.StructTreeRoot},getStructParentTree:function(){return this.getStructTreeRoot().data.ParentTree},createStructParentTreeNextKey:function(){this.getMarkInfoDictionary();var J=this.getStructTreeRoot(),S=J.data.ParentTreeNextKey++;return J.data.ParentTree.add(S,[]),S},endMarkings:function(){var J=this._root.data.StructTreeRoot;J&&(J.end(),this.structChildren.forEach(function(S){return S.end()})),this._root.data.MarkInfo&&this._root.data.MarkInfo.end()}},Cn={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},In={left:0,center:1,right:2},an={value:"V",defaultValue:"DV"},fn={zip:"0",zipPlus4:"1",zip4:"1",phone:"2",ssn:"3"},ln_number={nDec:0,sepComma:!1,negStyle:"MinusBlack",currency:"",currencyPrepend:!0},ln_percent={nDec:0,sepComma:!1},Xn={initForm:function(){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();var J={Fields:[],NeedAppearances:!0,DA:new String("/".concat(this._font.id," 0 Tf 0 g")),DR:{Font:{}}};J.DR.Font[this._font.id]=this._font.ref();var S=this.ref(J);return this._root.data.AcroForm=S,this},endAcroForm:function(){var J=this;if(this._root.data.AcroForm){if(!Object.keys(this._acroform.fonts).length&&!this._acroform.defaultFont)throw new Error("No fonts specified for PDF form");var S=this._root.data.AcroForm.data.DR.Font;Object.keys(this._acroform.fonts).forEach(function(X){S[X]=J._acroform.fonts[X]}),this._root.data.AcroForm.data.Fields.forEach(function(X){J._endChild(X)}),this._root.data.AcroForm.end()}return this},_endChild:function(J){var S=this;return Array.isArray(J.data.Kids)&&(J.data.Kids.forEach(function(X){S._endChild(X)}),J.end()),this},formField:function(J){var X=this._fieldDict(J,null,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),Z=this.ref(X);return this._addToParent(Z),Z},formAnnotation:function(J,S,X,Z,fA,pA){var nt=this._fieldDict(J,S,arguments.length>6&&void 0!==arguments[6]?arguments[6]:{});return nt.Subtype="Widget",void 0===nt.F&&(nt.F=4),this.annotate(X,Z,fA,pA,nt),this._addToParent(this.page.annotations[this.page.annotations.length-1])},formText:function(J,S,X,Z,fA){return this.formAnnotation(J,"text",S,X,Z,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formPushButton:function(J,S,X,Z,fA){return this.formAnnotation(J,"pushButton",S,X,Z,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formCombo:function(J,S,X,Z,fA){return this.formAnnotation(J,"combo",S,X,Z,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formList:function(J,S,X,Z,fA){return this.formAnnotation(J,"list",S,X,Z,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formRadioButton:function(J,S,X,Z,fA){return this.formAnnotation(J,"radioButton",S,X,Z,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formCheckbox:function(J,S,X,Z,fA){return this.formAnnotation(J,"checkbox",S,X,Z,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},_addToParent:function(J){var S=J.data.Parent;return S?(S.data.Kids||(S.data.Kids=[]),S.data.Kids.push(J)):this._root.data.AcroForm.data.Fields.push(J),this},_fieldDict:function(J,S){var X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._acroform)throw new Error("Call document.initForms() method before adding form elements to document");var Z=Object.assign({},X);return null!==S&&(Z=this._resolveType(S,X)),Z=this._resolveFlags(Z),Z=this._resolveJustify(Z),Z=this._resolveFont(Z),Z=this._resolveStrings(Z),Z=this._resolveColors(Z),(Z=this._resolveFormat(Z)).T=new String(J),Z.parent&&(Z.Parent=Z.parent,delete Z.parent),Z},_resolveType:function(J,S){if("text"===J)S.FT="Tx";else if("pushButton"===J)S.FT="Btn",S.pushButton=!0;else if("radioButton"===J)S.FT="Btn",S.radioButton=!0;else if("checkbox"===J)S.FT="Btn";else if("combo"===J)S.FT="Ch",S.combo=!0;else{if("list"!==J)throw new Error("Invalid form annotation type '".concat(J,"'"));S.FT="Ch"}return S},_resolveFormat:function(J){var S=J.format;if(S&&S.type){var X,Z,fA="";if(void 0!==fn[S.type])X="AFSpecial_Keystroke",Z="AFSpecial_Format",fA=fn[S.type];else{var pA=S.type.charAt(0).toUpperCase()+S.type.slice(1);if(X="AF".concat(pA,"_Keystroke"),Z="AF".concat(pA,"_Format"),"date"===S.type)X+="Ex",fA=String(S.param);else if("time"===S.type)fA=String(S.param);else if("number"===S.type){var _A=Object.assign({},ln_number,S);fA=String([String(_A.nDec),_A.sepComma?"0":"1",'"'+_A.negStyle+'"',"null",'"'+_A.currency+'"',String(_A.currencyPrepend)].join(","))}else if("percent"===S.type){var nt=Object.assign({},ln_percent,S);fA=String([String(nt.nDec),nt.sepComma?"0":"1"].join(","))}}J.AA=J.AA?J.AA:{},J.AA.K={S:"JavaScript",JS:new String("".concat(X,"(").concat(fA,");"))},J.AA.F={S:"JavaScript",JS:new String("".concat(Z,"(").concat(fA,");"))}}return delete J.format,J},_resolveColors:function(J){var S=this._normalizeColor(J.backgroundColor);return S&&(J.MK||(J.MK={}),J.MK.BG=S),(S=this._normalizeColor(J.borderColor))&&(J.MK||(J.MK={}),J.MK.BC=S),delete J.backgroundColor,delete J.borderColor,J},_resolveFlags:function(J){var S=0;return Object.keys(J).forEach(function(X){Cn[X]&&(S|=Cn[X],delete J[X])}),0!==S&&(J.Ff=J.Ff?J.Ff:0,J.Ff|=S),J},_resolveJustify:function(J){var S=0;return void 0!==J.align&&("number"==typeof In[J.align]&&(S=In[J.align]),delete J.align),0!==S&&(J.Q=S),J},_resolveFont:function(J){if(null===this._acroform.fonts[this._font.id]&&(this._acroform.fonts[this._font.id]=this._font.ref()),this._acroform.defaultFont!==this._font.name){J.DR={Font:{}};var S=J.fontSize||0;J.DR.Font[this._font.id]=this._font.ref(),J.DA=new String("/".concat(this._font.id," ").concat(S," Tf 0 g"))}return J},_resolveStrings:function(J){var S=[];function X(Z){if(Array.isArray(Z))for(var fA=0;fA1&&void 0!==arguments[1]?arguments[1]:{};S.name=S.name||J;var Z,X={Type:"EmbeddedFile",Params:{}};if(!J)throw new Error("No src specified");if(i.isBuffer(J))Z=J;else if(J instanceof ArrayBuffer)Z=i.from(new Uint8Array(J));else{var fA;if(fA=/^data:(.*);base64,(.*)$/.exec(J))fA[1]&&(X.Subtype=fA[1].replace("/","#2F")),Z=i.from(fA[2],"base64");else{if(!(Z=e.readFileSync(J)))throw new Error("Could not read contents of file at filepath ".concat(J));var pA=e.statSync(J),nt=pA.ctime;X.Params.CreationDate=pA.birthtime,X.Params.ModDate=nt}}S.creationDate instanceof Date&&(X.Params.CreationDate=S.creationDate),S.modifiedDate instanceof Date&&(X.Params.ModDate=S.modifiedDate),S.type&&(X.Subtype=S.type.replace("/","#2F"));var Qt,Bt=h.default.MD5(h.default.lib.WordArray.create(new Uint8Array(Z)));X.Params.CheckSum=new String(Bt),X.Params.Size=Z.byteLength,this._fileRegistry||(this._fileRegistry={});var Dt=this._fileRegistry[S.name];Dt&&Yr(X,Dt)?Qt=Dt.ref:((Qt=this.ref(X)).end(Z),this._fileRegistry[S.name]=Y(Y({},X),{},{ref:Qt}));var xt={Type:"Filespec",F:new String(S.name),EF:{F:Qt},UF:new String(S.name)};S.description&&(xt.Desc=new String(S.description));var Tt=this.ref(xt);return Tt.end(),S.hidden||this.addNamedEmbeddedFile(S.name,Tt),Tt}};function Yr(IA,J){return IA.Subtype===J.Subtype&&IA.Params.CheckSum.toString()===J.Params.CheckSum.toString()&&IA.Params.Size===J.Params.Size&&IA.Params.CreationDate===J.Params.CreationDate&&IA.Params.ModDate===J.Params.ModDate}var nr=function(IA){y(S,IA);var J=F(S);function S(){var X,Z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};switch(f(this,S),(X=J.call(this,Z)).options=Z,Z.pdfVersion){case"1.4":X.version=1.4;break;case"1.5":X.version=1.5;break;case"1.6":X.version=1.6;break;case"1.7":case"1.7ext3":X.version=1.7;break;default:X.version=1.3}X.compress=null==X.options.compress||X.options.compress,X._pageBuffer=[],X._pageBufferStart=0,X._offsets=[],X._waiting=0,X._ended=!1,X._offset=0;var fA=X.ref({Type:"Pages",Count:0,Kids:[]}),pA=X.ref({Dests:new V});if(X._root=X.ref({Type:"Catalog",Pages:fA,Names:pA}),X.options.lang&&(X._root.data.Lang=new String(X.options.lang)),X.page=null,X.initColor(),X.initVector(),X.initFonts(Z.font),X.initText(),X.initImages(),X.initOutline(),X.initMarkings(Z),X.info={Producer:"PDFKit",Creator:"PDFKit",CreationDate:new Date},X.options.info)for(var _A in X.options.info)X.info[_A]=X.options.info[_A];return X.options.displayTitle&&(X._root.data.ViewerPreferences=X.ref({DisplayDocTitle:!0})),X._id=R.generateFileID(X.info),X._security=R.create(U(X),Z),X._write("%PDF-".concat(X.version)),X._write("%\xff\xff\xff\xff"),!1!==X.options.autoFirstPage&&X.addPage(),X}return w(S,[{key:"addPage",value:function(Z){null==Z&&(Z=this.options),this.options.bufferPages||this.flushPages(),this.page=new $(this,Z),this._pageBuffer.push(this.page);var fA=this._root.data.Pages.data;return fA.Kids.push(this.page.dictionary),fA.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}},{key:"continueOnNewPage",value:function(Z){var fA=this.endPageMarkings(this.page);return this.addPage(Z),this.initPageMarkings(fA),this}},{key:"bufferedPageRange",value:function(){return{start:this._pageBufferStart,count:this._pageBuffer.length}}},{key:"switchToPage",value:function(Z){var fA;if(!(fA=this._pageBuffer[Z-this._pageBufferStart]))throw new Error("switchToPage(".concat(Z,") out of bounds, current buffer covers pages ").concat(this._pageBufferStart," to ").concat(this._pageBufferStart+this._pageBuffer.length-1));return this.page=fA}},{key:"flushPages",value:function(){var Z=this._pageBuffer;this._pageBuffer=[],this._pageBufferStart+=Z.length;var pA,fA=DA(Z);try{for(fA.s();!(pA=fA.n()).done;){var _A=pA.value;this.endPageMarkings(_A),_A.end()}}catch(nt){fA.e(nt)}finally{fA.f()}}},{key:"addNamedDestination",value:function(Z){for(var fA=arguments.length,pA=new Array(fA>1?fA-1:0),_A=1;_A>z&AA]},getCombiningClass:function(mA){var nA=p.get(mA);return y.combiningClasses[nA>>L&cA]},getScript:function(mA){var nA=p.get(mA);return y.scripts[nA>>W&MA]},getEastAsianWidth:function(mA){var nA=p.get(mA);return y.eaw[nA>>10&lA]},getNumericValue:function(mA){var nA=p.get(mA),EA=1023&nA;if(0===EA)return null;if(EA<=50)return EA-1;if(EA<480)return((EA>>4)-12)/(1+(15&EA));if(EA<768){nA=(EA>>5)-14;for(var ot=2+(31&EA);ot>0;)nA*=10,ot--;return nA}nA=(EA>>2)-191;for(var TA=1+(3&EA);TA>0;)nA*=60,TA--;return nA},isAlphabetic:uA,isDigit:CA,isPunctuation:NA,isLowerCase:bA,isUpperCase:XA,isTitleCase:q,isWhiteSpace:O,isBaseForm:$,isMark:V});I.default=Q},4781:function(T,I,n){"use strict";n(7042),n(6992),n(1539),n(2472),n(2990),n(8927),n(3105),n(5035),n(4345),n(7174),n(2846),n(4731),n(7209),n(6319),n(8867),n(7789),n(3739),n(9368),n(4483),n(2056),n(3462),n(678),n(7462),n(3824),n(5021),n(2974),n(5016),n(9135);var l=n(311),o=n(1753).swap32LE;T.exports=function(){function D(N){var F="function"==typeof N.readUInt32BE&&"function"==typeof N.slice;if(F||N instanceof Uint8Array){var z;if(F)this.highStart=N.readUInt32LE(0),this.errorValue=N.readUInt32LE(4),z=N.readUInt32LE(8),N=N.slice(12);else{var L=new DataView(N.buffer);this.highStart=L.getUint32(0,!0),this.errorValue=L.getUint32(4,!0),z=L.getUint32(8,!0),N=N.subarray(12)}N=l(N,new Uint8Array(z)),N=l(N,new Uint8Array(z)),o(N),this.data=new Uint32Array(N.buffer)}else{var W=N;this.data=W.data,this.highStart=W.highStart,this.errorValue=W.errorValue}}return D.prototype.get=function(F){return F<0||F>1114111?this.errorValue:F<55296||F>56319&&F<=65535?this.data[(this.data[F>>5]<<2)+(31&F)]:F<=65535?this.data[(this.data[2048+(F-55296>>5)]<<2)+(31&F)]:F>11)]+(F>>5&63)]<<2)+(31&F)]:this.data[this.data.length-4]},D}()},1753:function(T,I,n){"use strict";n(6992),n(1539),n(2472),n(2990),n(8927),n(3105),n(5035),n(4345),n(7174),n(2846),n(4731),n(7209),n(6319),n(8867),n(7789),n(3739),n(9368),n(4483),n(2056),n(3462),n(678),n(7462),n(3824),n(5021),n(2974),n(5016),n(9135);var l=18===new Uint8Array(new Uint32Array([305419896]).buffer)[0],i=function(a,B,E){var u=a[B];a[B]=a[E],a[E]=u};T.exports={swap32LE:function(a){l&&function(a){for(var B=a.length,E=0;E/)){for(;at=$A();)KA.childNodes.push(at),at.parentNode=KA,KA.textContent+=3===at.nodeType||4===at.nodeType?at.nodeValue:at.textContent;return(LA=tt.match(/^<\/([\w:.-]+)\s*>/,!0))?(LA[1]===KA.nodeName||(ne('parseXml: tag not matching, opening "'+KA.nodeName+'" & closing "'+LA[1]+'"'),zA=!0),KA):(ne('parseXml: tag not matching, opening "'+KA.nodeName+'" & not closing'),zA=!0,KA)}if(tt.match(/^\/>/))return KA;ne('parseXml: tag could not be parsed "'+KA.nodeName+'"'),zA=!0}else{if(LA=tt.match(/^/))return new YA(null,8,LA,zA);if(LA=tt.match(/^<\?[\s\S]*?\?>/))return new YA(null,7,LA,zA);if(LA=tt.match(/^/))return new YA(null,10,LA,zA);if(LA=tt.match(/^/,!0))return new YA("#cdata-section",4,LA[1],zA);if(LA=tt.match(/^([^<]+)/,!0))return new YA("#text",3,AA(LA[1]),zA)}};RA=HA();)1!==RA.nodeType||UA?(1===RA.nodeType||3===RA.nodeType&&""!==RA.nodeValue.trim())&&ne("parseXml: data after document end has been discarded"):UA=RA;return tt.matchAll()&&ne("parseXml: parsing error"),UA}function AA(WA){return WA.replace(/&(?:#([0-9]+)|#[xX]([0-9A-Fa-f]+)|([0-9A-Za-z]+));/g,function(YA,tt,UA,RA){return tt?String.fromCharCode(parseInt(tt,10)):UA?String.fromCharCode(parseInt(UA,16)):RA&&C[RA]?String.fromCharCode(C[RA]):YA})}function cA(WA){var YA,tt;return WA=(WA||"").trim(),(YA=E[WA])?tt=[YA.slice(),1]:(YA=WA.match(/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)$/i))?(YA[1]=parseInt(YA[1]),YA[2]=parseInt(YA[2]),YA[3]=parseInt(YA[3]),YA[4]=parseFloat(YA[4]),YA[1]<256&&YA[2]<256&&YA[3]<256&&YA[4]<=1&&(tt=[YA.slice(1,4),YA[4]])):(YA=WA.match(/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)$/i))?(YA[1]=parseInt(YA[1]),YA[2]=parseInt(YA[2]),YA[3]=parseInt(YA[3]),YA[1]<256&&YA[2]<256&&YA[3]<256&&(tt=[YA.slice(1,4),1])):(YA=WA.match(/^rgb\(\s*([0-9.]+)%\s*,\s*([0-9.]+)%\s*,\s*([0-9.]+)%\s*\)$/i))?(YA[1]=2.55*parseFloat(YA[1]),YA[2]=2.55*parseFloat(YA[2]),YA[3]=2.55*parseFloat(YA[3]),YA[1]<256&&YA[2]<256&&YA[3]<256&&(tt=[YA.slice(1,4),1])):(YA=WA.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i))?tt=[[parseInt(YA[1],16),parseInt(YA[2],16),parseInt(YA[3],16)],1]:(YA=WA.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i))&&(tt=[[17*parseInt(YA[1],16),17*parseInt(YA[2],16),17*parseInt(YA[3],16)],1]),en?en(tt,WA):tt}function MA(WA,YA,tt){var UA=WA[0].slice(),RA=WA[1]*YA;if(tt){for(var zA=0;zA=0;YA--)WA=lA(bn[YA].savedMatrix,WA);return WA}function DA(){return(new VA).M(0,0).L(o.page.width,0).L(o.page.width,o.page.height).L(0,o.page.height).transform(FA(BA())).getBoundingBox()}function FA(WA){var YA=WA[0]*WA[3]-WA[1]*WA[2];return[WA[3]/YA,-WA[1]/YA,-WA[2]/YA,WA[0]/YA,(WA[2]*WA[5]-WA[3]*WA[4])/YA,(WA[1]*WA[4]-WA[0]*WA[5])/YA]}function _(WA){var YA=bA(WA[0]),tt=bA(WA[1]),UA=bA(WA[2]),RA=bA(WA[3]),zA=bA(WA[4]),HA=bA(WA[5]);if(NA(YA*RA-tt*UA,0))return[YA,tt,UA,RA,zA,HA]}function dA(WA){var YA=WA[2]||0,tt=WA[1]||0,UA=WA[0]||0;if(CA(YA,0)&&CA(tt,0))return[];if(CA(YA,0))return[-UA/tt];var RA=tt*tt-4*YA*UA;return NA(RA,0)&&RA>0?[(-tt+Math.sqrt(RA))/(2*YA),(-tt-Math.sqrt(RA))/(2*YA)]:CA(RA,0)?[-tt/(2*YA)]:[]}function uA(WA,YA){return(YA[0]||0)+(YA[1]||0)*WA+(YA[2]||0)*WA*WA+(YA[3]||0)*WA*WA*WA}function CA(WA,YA){return Math.abs(WA-YA)<1e-10}function NA(WA,YA){return Math.abs(WA-YA)>=1e-10}function bA(WA){return WA>-1e21&&WA<1e21?Math.round(1e6*WA)/1e6:0}function q(WA){for(var UA,YA=new It((WA||"").trim()),tt=[1,0,0,1,0,0];UA=YA.match(/^([A-Za-z]+)\s*[(]([^(]+)[)]/,!0);){for(var RA=UA[1],zA=[],HA=new It(UA[2].trim()),$A=void 0;$A=HA.matchNumber();)zA.push(Number($A)),HA.matchSeparator();if("matrix"===RA&&6===zA.length)tt=lA(tt,[zA[0],zA[1],zA[2],zA[3],zA[4],zA[5]]);else if("translate"===RA&&2===zA.length)tt=lA(tt,[1,0,0,1,zA[0],zA[1]]);else if("translate"===RA&&1===zA.length)tt=lA(tt,[1,0,0,1,zA[0],0]);else if("scale"===RA&&2===zA.length)tt=lA(tt,[zA[0],0,0,zA[1],0,0]);else if("scale"===RA&&1===zA.length)tt=lA(tt,[zA[0],0,0,zA[0],0,0]);else if("rotate"===RA&&3===zA.length){var LA=zA[0]*Math.PI/180;tt=lA(tt,[1,0,0,1,zA[1],zA[2]],[Math.cos(LA),Math.sin(LA),-Math.sin(LA),Math.cos(LA),0,0],[1,0,0,1,-zA[1],-zA[2]])}else if("rotate"===RA&&1===zA.length){var at=zA[0]*Math.PI/180;tt=lA(tt,[Math.cos(at),Math.sin(at),-Math.sin(at),Math.cos(at),0,0])}else if("skewX"===RA&&1===zA.length){var KA=zA[0]*Math.PI/180;tt=lA(tt,[1,0,Math.tan(KA),1,0,0])}else{if("skewY"!==RA||1!==zA.length)return;var dt=zA[0]*Math.PI/180;tt=lA(tt,[1,Math.tan(dt),0,1,0,0])}YA.matchSeparator()}if(!YA.matchAll())return tt}function O(WA,YA,tt,UA,RA,zA){var HA=(WA||"").trim().match(/^(none)$|^x(Min|Mid|Max)Y(Min|Mid|Max)(?:\s+(meet|slice))?$/)||[],$A=HA[1]||HA[4]||"meet",KA=YA/UA,dt=tt/RA,Nt={Min:0,Mid:.5,Max:1}[HA[2]||"Mid"]-(zA||0),Ut={Min:0,Mid:.5,Max:1}[HA[3]||"Mid"]-(zA||0);return"slice"===$A?dt=KA=Math.max(KA,dt):"meet"===$A&&(dt=KA=Math.min(KA,dt)),[KA,0,0,dt,Nt*(YA-UA*KA),Ut*(tt-RA*dt)]}function $(WA){var YA=Object.create(null);WA=(WA||"").trim().split(/;/);for(var tt=0;ttBe&&(Ht=Be,Be=ce,ce=Ht),Wt>le&&(Ht=le,le=Wt,Wt=Ht);for(var De=dA(Nt),Ge=0;Ge=0&&De[Ge]<=1){var Ne=uA(De[Ge],KA);NeBe&&(Be=Ne)}for(var xe=dA(Ut),Se=0;Se=0&&xe[Se]<=1){var _e=uA(xe[Se],dt);_ele&&(le=_e)}return[ce,Wt,Be,le]},this.getPointAtLength=function(Ht){if(CA(Ht,0))return this.startPoint;if(CA(Ht,this.totalLength))return this.endPoint;if(!(Ht<0||Ht>this.totalLength))for(var ce=1;ce<=at;ce++){var Wt=kt[ce-1],Be=kt[ce];if(Wt<=Ht&&Ht<=Be){var le=(ce-(Be-Ht)/(Be-Wt))/at,De=uA(le,KA),Ge=uA(le,dt),Ne=uA(le,Nt),xe=uA(le,Ut);return[De,Ge,Math.atan2(xe,Ne)]}}}},JA=function(YA,tt,UA,RA){this.totalLength=Math.sqrt((UA-YA)*(UA-YA)+(RA-tt)*(RA-tt)),this.startPoint=[YA,tt,Math.atan2(RA-tt,UA-YA)],this.endPoint=[UA,RA,Math.atan2(RA-tt,UA-YA)],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){var HA=zA/this.totalLength||0;return[this.startPoint[0]+HA*(this.endPoint[0]-this.startPoint[0]),this.startPoint[1]+HA*(this.endPoint[1]-this.startPoint[1]),this.startPoint[2]]}}},VA=function WA(){this.pathCommands=[],this.pathSegments=[],this.startPoint=null,this.endPoint=null,this.totalLength=0;var zA,HA,$A,YA=0,tt=0,UA=0,RA=0;this.move=function(LA,at){return YA=UA=LA,tt=RA=at,null},this.line=function(LA,at){var KA=new JA(UA,RA,LA,at);return UA=LA,RA=at,KA},this.curve=function(LA,at,KA,dt,Nt,Ut){var kt=new ut(UA,RA,LA,at,KA,dt,Nt,Ut);return UA=Nt,RA=Ut,kt},this.close=function(){var LA=new JA(UA,RA,YA,tt);return UA=YA,RA=tt,LA},this.addCommand=function(LA){this.pathCommands.push(LA);var at=this[LA[0]].apply(this,LA.slice(3));at&&(at.hasStart=LA[1],at.hasEnd=LA[2],this.startPoint=this.startPoint||at.startPoint,this.endPoint=at.endPoint,this.pathSegments.push(at),this.totalLength+=at.totalLength)},this.M=function(LA,at){return this.addCommand(["move",!0,!0,LA,at]),zA="M",this},this.m=function(LA,at){return this.M(UA+LA,RA+at)},this.Z=this.z=function(){return this.addCommand(["close",!0,!0]),zA="Z",this},this.L=function(LA,at){return this.addCommand(["line",!0,!0,LA,at]),zA="L",this},this.l=function(LA,at){return this.L(UA+LA,RA+at)},this.H=function(LA){return this.L(LA,RA)},this.h=function(LA){return this.L(UA+LA,RA)},this.V=function(LA){return this.L(UA,LA)},this.v=function(LA){return this.L(UA,RA+LA)},this.C=function(LA,at,KA,dt,Nt,Ut){return this.addCommand(["curve",!0,!0,LA,at,KA,dt,Nt,Ut]),zA="C",HA=KA,$A=dt,this},this.c=function(LA,at,KA,dt,Nt,Ut){return this.C(UA+LA,RA+at,UA+KA,RA+dt,UA+Nt,RA+Ut)},this.S=function(LA,at,KA,dt){return this.C(UA+("C"===zA?UA-HA:0),RA+("C"===zA?RA-$A:0),LA,at,KA,dt)},this.s=function(LA,at,KA,dt){return this.C(UA+("C"===zA?UA-HA:0),RA+("C"===zA?RA-$A:0),UA+LA,RA+at,UA+KA,RA+dt)},this.Q=function(LA,at,KA,dt){return this.addCommand(["curve",!0,!0,UA+.6666666666666666*(LA-UA),RA+2/3*(at-RA),KA+2/3*(LA-KA),dt+2/3*(at-dt),KA,dt]),zA="Q",HA=LA,$A=at,this},this.q=function(LA,at,KA,dt){return this.Q(UA+LA,RA+at,UA+KA,RA+dt)},this.T=function(LA,at){return this.Q(UA+("Q"===zA?UA-HA:0),RA+("Q"===zA?RA-$A:0),LA,at)},this.t=function(LA,at){return this.Q(UA+("Q"===zA?UA-HA:0),RA+("Q"===zA?RA-$A:0),UA+LA,RA+at)},this.A=function(LA,at,KA,dt,Nt,Ut,kt){if(CA(LA,0)||CA(at,0))this.addCommand(["line",!0,!0,Ut,kt]);else{KA*=Math.PI/180,LA=Math.abs(LA),at=Math.abs(at),dt=1*!!dt,Nt=1*!!Nt;var Vt=Math.cos(KA)*(UA-Ut)/2+Math.sin(KA)*(RA-kt)/2,te=Math.cos(KA)*(RA-kt)/2-Math.sin(KA)*(UA-Ut)/2,wt=Vt*Vt/(LA*LA)+te*te/(at*at);wt>1&&(LA*=Math.sqrt(wt),at*=Math.sqrt(wt));var Pt=Math.sqrt(Math.max(0,LA*LA*at*at-LA*LA*te*te-at*at*Vt*Vt)/(LA*LA*te*te+at*at*Vt*Vt)),jt=(dt===Nt?-1:1)*Pt*LA*te/at,Ht=(dt===Nt?1:-1)*Pt*at*Vt/LA,ce=Math.cos(KA)*jt-Math.sin(KA)*Ht+(UA+Ut)/2,Wt=Math.sin(KA)*jt+Math.cos(KA)*Ht+(RA+kt)/2,Be=Math.atan2((te-Ht)/at,(Vt-jt)/LA),le=Math.atan2((-te-Ht)/at,(-Vt-jt)/LA);0===Nt&&le-Be>0?le-=2*Math.PI:1===Nt&&le-Be<0&&(le+=2*Math.PI);for(var De=Math.ceil(Math.abs(le-Be)/(Math.PI/Ln)),Ge=0;GeLA[2]&&(LA[2]=dt[2]),dt[1]LA[3]&&(LA[3]=dt[3]);return LA[0]===1/0&&(LA[0]=0),LA[1]===1/0&&(LA[1]=0),LA[2]===-1/0&&(LA[2]=0),LA[3]===-1/0&&(LA[3]=0),LA},this.getPointAtLength=function(LA){if(LA>=0&&LA<=this.totalLength){for(var at,KA=0;KARA.selector.specificity||(YA[zA]=RA.css[zA],tt[zA]=RA.selector.specificity)}return YA}(YA),this.allowedChildren=[],this.attr=function(zA){if("function"==typeof YA.getAttribute)return YA.getAttribute(zA)},this.resolveUrl=function(zA){var HA=(zA||"").match(/^\s*(?:url\("(.*)#(.*)"\)|url\('(.*)#(.*)'\)|url\((.*)#(.*)\)|(.*)#(.*))\s*$/)||[],$A=HA[1]||HA[3]||HA[5]||HA[7],LA=HA[2]||HA[4]||HA[6]||HA[8];if(LA){if(!$A){var at=c.getElementById(LA);if(at)return-1===this.stack.indexOf(at)?at:void ne('SVGtoPDF: loop of circular references for id "'+LA+'"')}if(Xe){var KA=Jt[$A];if(!KA){(function XA(WA){return"object"==typeof WA&&null!==WA&&"number"==typeof WA.length})(KA=Xe($A))||(KA=[KA]);for(var dt=0;dt=0&&$A[3]>=0?$A:HA},this.getPercent=function(zA,HA){var $A=this.attr(zA),LA=new It(($A||"").trim()),dt=LA.matchNumber();return!dt||(LA.match("%")&&(dt*=.01),LA.matchAll())?HA:Math.max(0,Math.min(1,dt))},this.chooseValue=function(zA){for(var HA=0;HA=0&&(LA=KA);break;case"stroke-miterlimit":null!=(KA=parseFloat($A))&&KA>=1&&(LA=KA);break;case"word-spacing":case"letter-spacing":LA=this.computeLength($A,this.getViewport());break;case"stroke-dashoffset":if(null!=(LA=this.computeLength($A,this.getViewport()))&&LA<0)for(var te=this.get("stroke-dasharray"),wt=0;wt0?HA:this.ref?this.ref.getChildren():[]},this.getPaint=function(HA,$A,LA,at){var KA="userSpaceOnUse"!==this.attr("patternUnits"),dt="objectBoundingBox"===this.attr("patternContentUnits"),Nt=this.getLength("x",KA?1:this.getParentVWidth(),0),Ut=this.getLength("y",KA?1:this.getParentVHeight(),0),kt=this.getLength("width",KA?1:this.getParentVWidth(),0),Vt=this.getLength("height",KA?1:this.getParentVHeight(),0);dt&&!KA?(Nt=(Nt-HA[0])/(HA[2]-HA[0])||0,Ut=(Ut-HA[1])/(HA[3]-HA[1])||0,kt=kt/(HA[2]-HA[0])||0,Vt=Vt/(HA[3]-HA[1])||0):!dt&&KA&&(Nt=HA[0]+Nt*(HA[2]-HA[0]),Ut=HA[1]+Ut*(HA[3]-HA[1]),kt*=HA[2]-HA[0],Vt*=HA[3]-HA[1]);var te=this.getViewbox("viewBox",[0,0,kt,Vt]),Pt=lA(O((this.attr("preserveAspectRatio")||"").trim(),kt,Vt,te[2],te[3],0),[1,0,0,1,-te[0],-te[1]]),jt=q(this.attr("patternTransform"));if(dt&&(jt=lA([HA[2]-HA[0],0,0,HA[3]-HA[1],HA[0],HA[1]],jt)),(jt=_(jt=lA(jt,[1,0,0,1,Nt,Ut])))&&(Pt=_(Pt))&&(kt=bA(kt))&&(Vt=bA(Vt))){var Ht=w([0,0,kt,Vt]);return o.transform.apply(o,Pt),this.drawChildren(LA,at),Q(Ht),[y(Ht,kt,Vt,jt),$A]}return UA?[UA[0],UA[1]*$A]:void 0},this.getVWidth=function(){var HA="userSpaceOnUse"!==this.attr("patternUnits"),$A=this.getLength("width",HA?1:this.getParentVWidth(),0);return this.getViewbox("viewBox",[0,0,$A,0])[2]},this.getVHeight=function(){var HA="userSpaceOnUse"!==this.attr("patternUnits"),$A=this.getLength("height",HA?1:this.getParentVHeight(),0);return this.getViewbox("viewBox",[0,0,0,$A])[3]}},PA=function WA(YA,tt,UA){rt.call(this,YA,tt),this.allowedChildren=["stop"],this.ref=function(){var HA=this.getUrl("href")||this.getUrl("xlink:href");if(HA&&HA.nodeName===YA.nodeName)return new WA(HA,tt,UA)}.call(this);var RA=this.attr;this.attr=function(HA){var $A=RA.call(this,HA);return null!=$A||"href"===HA||"xlink:href"===HA?$A:this.ref?this.ref.attr(HA):null};var zA=this.getChildren;this.getChildren=function(){var HA=zA.call(this);return HA.length>0?HA:this.ref?this.ref.getChildren():[]},this.getPaint=function(HA,$A,LA,at){var KA=this.getChildren();if(0!==KA.length){if(1===KA.length){var dt=KA[0],Nt=dt.get("stop-color");return"none"===Nt?void 0:MA(Nt,dt.get("stop-opacity")*$A,at)}var te,wt,Pt,jt,Ht,ce,Ut="userSpaceOnUse"!==this.attr("gradientUnits"),kt=q(this.attr("gradientTransform")),Vt=this.attr("spreadMethod"),Wt=0,Be=0,le=1;if(Ut&&(kt=lA([HA[2]-HA[0],0,0,HA[3]-HA[1],HA[0],HA[1]],kt)),kt=_(kt)){if("linearGradient"===this.name)wt=this.getLength("x1",Ut?1:this.getVWidth(),0),Pt=this.getLength("x2",Ut?1:this.getVWidth(),Ut?1:this.getVWidth()),jt=this.getLength("y1",Ut?1:this.getVHeight(),0),Ht=this.getLength("y2",Ut?1:this.getVHeight(),0);else{Pt=this.getLength("cx",Ut?1:this.getVWidth(),Ut?.5:.5*this.getVWidth()),Ht=this.getLength("cy",Ut?1:this.getVHeight(),Ut?.5:.5*this.getVHeight()),ce=this.getLength("r",Ut?1:this.getViewport(),Ut?.5:.5*this.getViewport()),wt=this.getLength("fx",Ut?1:this.getVWidth(),Pt),jt=this.getLength("fy",Ut?1:this.getVHeight(),Ht),ce<0&&ne("SvgElemGradient: negative r value");var De=Math.sqrt(Math.pow(Pt-wt,2)+Math.pow(Ht-jt,2)),Ge=1;De>ce&&(wt=Pt+(wt-Pt)*(Ge=ce/De),jt=Ht+(jt-Ht)*Ge),ce=Math.max(ce,De*Ge*1.000001)}if("reflect"===Vt||"repeat"===Vt){var Ne=FA(kt),xe=gA([HA[0],HA[1]],Ne),Se=gA([HA[2],HA[1]],Ne),_e=gA([HA[2],HA[3]],Ne),Fn=gA([HA[0],HA[3]],Ne);"linearGradient"===this.name?(Wt=Math.max((xe[0]-Pt)*(Pt-wt)+(xe[1]-Ht)*(Ht-jt),(Se[0]-Pt)*(Pt-wt)+(Se[1]-Ht)*(Ht-jt),(_e[0]-Pt)*(Pt-wt)+(_e[1]-Ht)*(Ht-jt),(Fn[0]-Pt)*(Pt-wt)+(Fn[1]-Ht)*(Ht-jt))/(Math.pow(Pt-wt,2)+Math.pow(Ht-jt,2)),Be=Math.max((xe[0]-wt)*(wt-Pt)+(xe[1]-jt)*(jt-Ht),(Se[0]-wt)*(wt-Pt)+(Se[1]-jt)*(jt-Ht),(_e[0]-wt)*(wt-Pt)+(_e[1]-jt)*(jt-Ht),(Fn[0]-wt)*(wt-Pt)+(Fn[1]-jt)*(jt-Ht))/(Math.pow(Pt-wt,2)+Math.pow(Ht-jt,2))):Wt=Math.sqrt(Math.max(Math.pow(xe[0]-Pt,2)+Math.pow(xe[1]-Ht,2),Math.pow(Se[0]-Pt,2)+Math.pow(Se[1]-Ht,2),Math.pow(_e[0]-Pt,2)+Math.pow(_e[1]-Ht,2),Math.pow(Fn[0]-Pt,2)+Math.pow(Fn[1]-Ht,2)))/ce-1,Wt=Math.ceil(Wt+.5),le=(Be=Math.ceil(Be+.5))+1+Wt}te="linearGradient"===this.name?o.linearGradient(wt-Be*(Pt-wt),jt-Be*(Ht-jt),Pt+Wt*(Pt-wt),Ht+Wt*(Ht-jt)):o.radialGradient(wt,jt,0,Pt,Ht,ce+Wt*ce);for(var rn=0;rn0&&te.stop((rn+0)/le,ln[0],ln[1]),te.stop((rn+Cn)/(Wt+Be+1),ln[0],ln[1]),an===KA.length-1&&Cn<1&&te.stop((rn+1)/le,ln[0],ln[1])}return te.setTransform.apply(te,kt),[te,1]}return UA?[UA[0],UA[1]*$A]:void 0}}},rA=function(YA,tt){yA.call(this,YA,tt),this.dashScale=1,this.getBoundingShape=function(){return this.shape},this.getTransformation=function(){return this.get("transform")},this.drawInDocument=function(UA,RA){if("hidden"!==this.get("visibility")&&this.shape){if(o.save(),this.transform(),this.clip(),UA)this.shape.insertInDocument(),z(u.white),o.fill(this.get("clip-rule"));else{var HA;this.mask()&&(HA=w(DA()));var $A=this.shape.getSubPaths(),LA=this.getFill(UA,RA),at=this.getStroke(UA,RA),KA=this.get("stroke-width"),dt=this.get("stroke-linecap");if(LA||at){if(LA&&z(LA),at){for(var Nt=0;Nt<$A.length;Nt++)if(CA($A[Nt].totalLength,0)&&("square"===dt||"round"===dt)&&KA>0&&$A[Nt].startPoint&&$A[Nt].startPoint.length>1){var Ut=$A[Nt].startPoint[0],kt=$A[Nt].startPoint[1];z(at),"square"===dt?o.rect(Ut-.5*KA,kt-.5*KA,KA,KA):"round"===dt&&o.circle(Ut,kt,.5*KA),o.fill()}var Vt=this.get("stroke-dasharray"),te=this.get("stroke-dashoffset");if(NA(this.dashScale,1)){for(var wt=0;wt0&&$A[Pt].insertInDocument();LA&&at?o.fillAndStroke(this.get("fill-rule")):LA?o.fill(this.get("fill-rule")):at&&o.stroke()}var jt=this.get("marker-start"),Ht=this.get("marker-mid"),ce=this.get("marker-end");if("none"!==jt||"none"!==Ht||"none"!==ce){var Wt=this.shape.getMarkers();if("none"!==jt&&new st(jt,null).drawMarker(!1,RA,Wt[0],KA),"none"!==Ht)for(var le=1;le0&&HA>0?$A&&LA?($A=Math.min($A,.5*zA),LA=Math.min(LA,.5*HA),this.shape=(new VA).M(UA+$A,RA).L(UA+zA-$A,RA).A($A,LA,0,0,1,UA+zA,RA+LA).L(UA+zA,RA+HA-LA).A($A,LA,0,0,1,UA+zA-$A,RA+HA).L(UA+$A,RA+HA).A($A,LA,0,0,1,UA,RA+HA-LA).L(UA,RA+LA).A($A,LA,0,0,1,UA+$A,RA).Z()):this.shape=(new VA).M(UA,RA).L(UA+zA,RA).L(UA+zA,RA+HA).L(UA,RA+HA).Z():this.shape=new VA},Ft=function(YA,tt){rA.call(this,YA,tt);var UA=this.getLength("cx",this.getVWidth(),0),RA=this.getLength("cy",this.getVHeight(),0),zA=this.getLength("r",this.getViewport(),0);this.shape=zA>0?(new VA).M(UA+zA,RA).A(zA,zA,0,0,1,UA-zA,RA).A(zA,zA,0,0,1,UA+zA,RA).Z():new VA},j=function(YA,tt){rA.call(this,YA,tt);var UA=this.getLength("cx",this.getVWidth(),0),RA=this.getLength("cy",this.getVHeight(),0),zA=this.getLength("rx",this.getVWidth(),0),HA=this.getLength("ry",this.getVHeight(),0);this.shape=zA>0&&HA>0?(new VA).M(UA+zA,RA).A(zA,HA,0,0,1,UA-zA,RA).A(zA,HA,0,0,1,UA+zA,RA).Z():new VA},kA=function(YA,tt){rA.call(this,YA,tt);var UA=this.getLength("x1",this.getVWidth(),0),RA=this.getLength("y1",this.getVHeight(),0),zA=this.getLength("x2",this.getVWidth(),0),HA=this.getLength("y2",this.getVHeight(),0);this.shape=(new VA).M(UA,RA).L(zA,HA)},At=function(YA,tt){rA.call(this,YA,tt);var UA=this.getNumberList("points");this.shape=new VA;for(var RA=0;RA0?UA:void 0,this.dashScale=void 0!==this.pathLength?this.shape.totalLength/this.pathLength:1},st=function(YA,tt){Mt.call(this,YA,tt);var UA=this.getLength("markerWidth",this.getParentVWidth(),3),RA=this.getLength("markerHeight",this.getParentVHeight(),3),zA=this.getViewbox("viewBox",[0,0,UA,RA]);this.getVWidth=function(){return zA[2]},this.getVHeight=function(){return zA[3]},this.drawMarker=function(HA,$A,LA,at){o.save();var KA=this.attr("orient"),dt=this.attr("markerUnits"),Nt="auto"===KA?LA[2]:(parseFloat(KA)||0)*Math.PI/180,Ut="userSpaceOnUse"===dt?1:at;o.transform(Math.cos(Nt)*Ut,Math.sin(Nt)*Ut,-Math.sin(Nt)*Ut,Math.cos(Nt)*Ut,LA[0],LA[1]);var wt,kt=this.getLength("refX",this.getVWidth(),0),Vt=this.getLength("refY",this.getVHeight(),0),te=O(this.attr("preserveAspectRatio"),UA,RA,zA[2],zA[3],.5);"hidden"===this.get("overflow")&&o.rect(te[0]*(zA[0]+zA[2]/2-kt)-UA/2,te[3]*(zA[1]+zA[3]/2-Vt)-RA/2,UA,RA).clip(),o.transform.apply(o,te),o.translate(-kt,-Vt),this.get("opacity")<1&&!HA&&(wt=w(DA())),this.drawChildren(HA,$A),wt&&(Q(wt),o.fillOpacity(this.get("opacity")),d(wt)),o.restore()}},Lt=function(YA,tt){Mt.call(this,YA,tt),this.useMask=function(UA){var RA=w(DA());o.save(),"objectBoundingBox"===this.attr("clipPathUnits")&&o.transform(UA[2]-UA[0],0,0,UA[3]-UA[1],UA[0],UA[1]),this.clip(),this.drawChildren(!0,!1),o.restore(),Q(RA),Y(RA,!0)}},vt=function(YA,tt){Mt.call(this,YA,tt),this.useMask=function(UA){var zA,HA,$A,LA,RA=w(DA());o.save(),"userSpaceOnUse"===this.attr("maskUnits")?(zA=this.getLength("x",this.getVWidth(),-.1*(UA[2]-UA[0])+UA[0]),HA=this.getLength("y",this.getVHeight(),-.1*(UA[3]-UA[1])+UA[1]),$A=this.getLength("width",this.getVWidth(),1.2*(UA[2]-UA[0])),LA=this.getLength("height",this.getVHeight(),1.2*(UA[3]-UA[1]))):(zA=this.getLength("x",this.getVWidth(),-.1)*(UA[2]-UA[0])+UA[0],HA=this.getLength("y",this.getVHeight(),-.1)*(UA[3]-UA[1])+UA[1],$A=this.getLength("width",this.getVWidth(),1.2)*(UA[2]-UA[0]),LA=this.getLength("height",this.getVHeight(),1.2)*(UA[3]-UA[1])),o.rect(zA,HA,$A,LA).clip(),"objectBoundingBox"===this.attr("maskContentUnits")&&o.transform(UA[2]-UA[0],0,0,UA[3]-UA[1],UA[0],UA[1]),this.clip(),this.drawChildren(!1,!0),o.restore(),Q(RA),Y(RA,!0)}},Rt=function(YA,tt){yA.call(this,YA,tt),this.allowedChildren=["tspan","#text","#cdata-section","a"],this.isText=!0,this.getBoundingShape=function(){for(var UA=new VA,RA=0;RA Tj")}o.addContent("ET")}}}"line-through"===this.get("text-decoration")&&this.decorate(.05*this._font.size,.5*(GA(this._font.font,this._font.size)+et(this._font.font,this._font.size)),UA,RA)},this.decorate=function(UA,RA,zA,HA){var $A=this.getFill(zA,HA),LA=this.getStroke(zA,HA);$A&&z($A),LA&&(L(LA),o.lineWidth(this.get("stroke-width")).miterLimit(this.get("stroke-miterlimit")).lineJoin(this.get("stroke-linejoin")).lineCap(this.get("stroke-linecap")).dash(this.get("stroke-dasharray"),{phase:this.get("stroke-dashoffset")}));for(var at=0,KA=this._pos;at0?HA:this.pathObject.totalLength,this.pathScale=this.pathObject.totalLength/this.pathLength}else if((zA=this.getUrl("href")||this.getUrl("xlink:href"))&&"path"===zA.nodeName){var $A=new ZA(zA,this);this.pathObject=$A.shape.clone().transform($A.get("transform")),this.pathLength=this.chooseValue($A.pathLength,this.pathObject.totalLength),this.pathScale=this.pathObject.totalLength/this.pathLength}},Ae=function(YA,tt){Rt.call(this,YA,tt),this.allowedChildren=["textPath","tspan","#text","#cdata-section","a"],function(UA){var LA,at,RA="",zA=YA.textContent,HA=[],$A=[],KA=0,dt=0;function Nt(){if($A.length)for(var wt=$A[$A.length-1],Ht={startltr:0,middleltr:.5,endltr:1,startrtl:1,middlertl:.5,endrtl:0}[LA+at]*(wt.x+wt.width-$A[0].x)||0,ce=0;ce<$A.length;ce++)$A[ce].x-=Ht;$A=[]}function Vt(wt){var Pt=wt.pathObject,jt=wt.pathLength,Ht=wt.pathScale;if(Pt)for(var ce=wt.getLength("startOffset",jt,0),Wt=0;Wtjt||Be<0)wt._pos[Wt].hidden=!0;else{var le=Pt.getPointAtLength(Be*Ht);NA(Ht,1)&&(wt._pos[Wt].scale*=Ht,wt._pos[Wt].width*=Ht),wt._pos[Wt].x=le[0]-.5*wt._pos[Wt].width*Math.cos(le[2])-wt._pos[Wt].y*Math.sin(le[2]),wt._pos[Wt].y=le[1]-.5*wt._pos[Wt].width*Math.sin(le[2])+wt._pos[Wt].y*Math.cos(le[2]),wt._pos[Wt].rotate=le[2]+wt._pos[Wt].rotate,wt._pos[Wt].continuous=!1}}else for(var De=0;De0&&le<1/0)for(var De=0;De=2)for(var Ge=(Pt-(Be-Wt))/(wt.length-1),Ne=0;Ne0?d-4:d;for(D=0;D>16&255,y[p++]=w>>8&255,y[p++]=255&w;return 2===Y&&(w=l[g.charCodeAt(D)]<<2|l[g.charCodeAt(D+1)]>>4,y[p++]=255&w),1===Y&&(w=l[g.charCodeAt(D)]<<10|l[g.charCodeAt(D+1)]<<4|l[g.charCodeAt(D+2)]>>2,y[p++]=w>>8&255,y[p++]=255&w),y},I.fromByteArray=function f(g){for(var w,Q=g.length,d=Q%3,Y=[],y=16383,p=0,m=Q-d;pm?m:p+y));return 1===d?Y.push(n[(w=g[Q-1])>>2]+n[w<<4&63]+"=="):2===d&&Y.push(n[(w=(g[Q-2]<<8)+g[Q-1])>>10]+n[w>>4&63]+n[w<<2&63]+"="),Y.join("")};for(var n=[],l=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,h=o.length;c0)throw new Error("Invalid string. Length must be a multiple of 4");var Q=g.indexOf("=");return-1===Q&&(Q=w),[Q,Q===w?0:4-Q%4]}function C(g){return n[g>>18&63]+n[g>>12&63]+n[g>>6&63]+n[63&g]}function e(g,w,Q){for(var Y=[],y=w;y0},o.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 c=this.buf_ptr_,h=this.input_.read(this.buf_,c,I);if(h<0)throw new Error("Unexpected end of input");if(h=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},o.prototype.readBits=function(c){32-this.bit_pos_>>this.bit_pos_&i[c];return this.bit_pos_+=c,h},T.exports=o},7080:function(T,I){I.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]),I.lookupOffsets=new Uint16Array([1024,1536,1280,1536,0,256,768,512])},6450:function(T,I,n){var i=n(6154).g,o=n(6154).j,c=n(4181),h=n(5139),a=n(966).h,B=n(966).g,E=n(7080),u=n(8435),C=n(2973),m=1080,U=new Uint8Array([1,2,3,4,0,5,17,6,16,7,8,9,10,11,12,13,14,15]),F=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]),L=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 W($){var V;return 0===$.readBits(1)?16:(V=$.readBits(3))>0?17+V:(V=$.readBits(3))>0?8+V:17}function aA($){if($.readBits(1)){var V=$.readBits(3);return 0===V?1:$.readBits(V)+(1<1&&0===EA)throw new Error("Invalid size byte");V.meta_block_length|=EA<<8*nA}}else for(nA=0;nA4&&0===GA)throw new Error("Invalid size nibble");V.meta_block_length|=GA<<4*nA}return++V.meta_block_length,!V.input_end&&!V.is_metadata&&(V.is_uncompressed=$.readBits(1)),V}function MA($,V,hA){var nA;return hA.fillBitWindow(),(nA=$[V+=hA.val_>>>hA.bit_pos_&255].bits-8)>0&&(hA.bit_pos_+=8,V+=$[V].value,V+=hA.val_>>>hA.bit_pos_&(1<>=1,++TA;for(et=0;et0;++et){var Mt,rt=U[et],yA=0;mA.fillBitWindow(),mA.bit_pos_+=VA[yA+=mA.val_>>>mA.bit_pos_&15].bits,It[rt]=Mt=VA[yA].value,0!==Mt&&(ut-=32>>Mt,++JA)}if(1!==JA&&0!==ut)throw new Error("[ReadHuffmanCode] invalid num_codes or space");!function lA($,V,hA,mA){for(var nA=0,EA=8,GA=0,et=0,ot=32768,TA=[],it=0;it<32;it++)TA.push(new a(0,0));for(B(TA,0,5,$,18);nA0;){var It,mt=0;if(mA.readMoreInput(),mA.fillBitWindow(),mA.bit_pos_+=TA[mt+=mA.val_>>>mA.bit_pos_&31].bits,(It=255&TA[mt].value)<16)GA=0,hA[nA++]=It,0!==It&&(EA=It,ot-=32768>>It);else{var JA,VA,ut=It-14,rt=0;if(16===It&&(rt=EA),et!==rt&&(GA=0,et=rt),JA=GA,GA>0&&(GA-=2,GA<<=ut),nA+(VA=(GA+=mA.readBits(ut)+3)-JA)>V)throw new Error("[ReadHuffmanCodeLengths] symbol + repeat_delta > num_symbols");for(var yA=0;yA>>5]),this.htrees=new Uint32Array(V)}function uA($,V){var EA,GA,hA={num_htrees:null,context_map:null},nA=0;V.readMoreInput();var et=hA.num_htrees=aA(V)+1,ot=hA.context_map=new Uint8Array($);if(et<=1)return hA;for(V.readBits(1)&&(nA=V.readBits(4)+1),EA=[],GA=0;GA=$)throw new Error("[DecodeContextMap] i >= context_map_size");ot[GA]=0,++GA}else ot[GA]=TA-nA,++GA}return V.readBits(1)&&function _($,V){var mA,hA=new Uint8Array(256);for(mA=0;mA<256;++mA)hA[mA]=mA;for(mA=0;mA=$&&(it-=$),mA[hA]=it,nA[et+(1&EA[ot])]=it,++EA[ot]}function NA($,V,hA,mA,nA,EA){var TA,GA=nA+1,et=hA&nA,ot=EA.pos_&c.IBUF_MASK;if(V<8||EA.bit_pos_+(V<<3)0;)EA.readMoreInput(),mA[et++]=EA.readBits(8),et===GA&&($.write(mA,GA),et=0);else{if(EA.bit_end_pos_<32)throw new Error("[CopyUncompressedBlockToOutput] br.bit_end_pos_ < 32");for(;EA.bit_pos_<32;)mA[et]=EA.val_>>>EA.bit_pos_,EA.bit_pos_+=8,++et,--V;if(ot+(TA=EA.bit_end_pos_-EA.bit_pos_>>3)>c.IBUF_MASK){for(var it=c.IBUF_MASK+1-ot,mt=0;mt=GA)for($.write(mA,GA),et-=GA,mt=0;mt=GA;){if(EA.input_.read(mA,et,TA=GA-et)V.buffer.length){var ne=new Uint8Array(mA+H);ne.set(V.buffer),V.buffer=ne}if(nA=xn.input_end,k=xn.is_uncompressed,xn.is_metadata)for(bA(Et);H>0;--H)Et.readMoreInput(),Et.readBits(8);else if(0!==H){if(k){Et.bit_pos_=Et.bit_pos_+7&-8,NA(V,H,mA,it,TA,Et),mA+=H;continue}for(hA=0;hA<3;++hA)wA[hA]=aA(Et)+1,wA[hA]>=2&&(gA(wA[hA]+2,yA,hA*m,Et),gA(26,Mt,hA*m,Et),R[hA]=BA(Mt,hA*m,Et),rA[hA]=1);for(Et.readMoreInput(),j=(1<<(lt=Et.readBits(2)))-1,kA=(Ft=16+(Et.readBits(4)<0;){var en,Xe,Ln,bn,Jt,bt,Xt,ae,pn,Yn,jn,Br;for(Et.readMoreInput(),0===R[1]&&(CA(wA[1],yA,1,QA,PA,rA,Et),R[1]=BA(Mt,m,Et),yn=rt[1].htrees[QA[1]]),--R[1],(Xe=(en=MA(rt[1].codes,yn,Et))>>6)>=2?(Xe-=2,Xt=-1):Xt=0,bn=u.kCopyRangeLut[Xe]+(7&en),Jt=u.kInsertLengthPrefixCode[Ln=u.kInsertRangeLut[Xe]+(en>>3&7)].offset+Et.readBits(u.kInsertLengthPrefixCode[Ln].nbits),bt=u.kCopyLengthPrefixCode[bn].offset+Et.readBits(u.kCopyLengthPrefixCode[bn].nbits),JA=it[mA-1&TA],VA=it[mA-2&TA],pn=0;pn4?3:bt-2))]],Et))>=Ft&&(Br=(Xt-=Ft)&j,Xt=Ft+((Tn=(2+(1&(Xt>>=lt))<<(jn=1+(Xt>>1)))-4)+Et.readBits(jn)<(et=mA=h.minDictionaryWordLength&&bt<=h.maxDictionaryWordLength))throw new Error("Invalid backward reference. pos: "+mA+" distance: "+ae+" len: "+bt+" bytes left: "+H);var Tn=h.offsetsByLength[bt],WA=ae-et-1,YA=h.sizeBitsByLength[bt],RA=WA>>YA;if(Tn+=(WA&(1<=mt){V.write(it,ot);for(var HA=0;HA0&&(It[3&ut]=ae,++ut),bt>H)throw new Error("Invalid backward reference. pos: "+mA+" distance: "+ae+" len: "+bt+" bytes left: "+H);for(pn=0;pn>=1;return(h&B-1)+B}function o(h,a,B,E,u){do{h[a+(E-=B)]=new n(u.bits,u.value)}while(E>0)}function c(h,a,B){for(var E=1<0;--U[f])o(h,a+w,Q,p,new n(255&f,65535&D[g++])),w=i(w,f);for(Y=m-1,d=-1,f=B+1,Q=2;f<=l;++f,Q<<=1)for(;U[f]>0;--U[f])(w&Y)!==d&&(a+=p,m+=p=1<<(y=c(U,f,B)),h[C+(d=w&Y)]=new n(y+B&255,a-C-d&65535)),o(h,a+(w>>B),Q,p,new n(f-B&255,65535&D[g++])),w=i(w,f);return m}},8435:function(T,I){function n(l,i){this.offset=l,this.nbits=i}I.kBlockLengthPrefixCode=[new n(1,2),new n(5,2),new n(9,2),new n(13,2),new n(17,3),new n(25,3),new n(33,3),new n(41,3),new n(49,4),new n(65,4),new n(81,4),new n(97,4),new n(113,5),new n(145,5),new n(177,5),new n(209,5),new n(241,6),new n(305,6),new n(369,7),new n(497,8),new n(753,9),new n(1265,10),new n(2289,11),new n(4337,12),new n(8433,13),new n(16625,24)],I.kInsertLengthPrefixCode=[new n(0,0),new n(1,0),new n(2,0),new n(3,0),new n(4,0),new n(5,0),new n(6,1),new n(8,1),new n(10,2),new n(14,2),new n(18,3),new n(26,3),new n(34,4),new n(50,4),new n(66,5),new n(98,5),new n(130,6),new n(194,7),new n(322,8),new n(578,9),new n(1090,10),new n(2114,12),new n(6210,14),new n(22594,24)],I.kCopyLengthPrefixCode=[new n(2,0),new n(3,0),new n(4,0),new n(5,0),new n(6,0),new n(7,0),new n(8,0),new n(9,0),new n(10,1),new n(12,1),new n(14,2),new n(18,2),new n(22,3),new n(30,3),new n(38,4),new n(54,4),new n(70,5),new n(102,5),new n(134,6),new n(198,7),new n(326,8),new n(582,9),new n(1094,10),new n(2118,24)],I.kInsertRangeLut=[0,0,8,8,0,16,8,16,16],I.kCopyRangeLut=[0,8,0,8,16,0,16,8,16]},6154:function(T,I){function n(i){this.buffer=i,this.pos=0}function l(i){this.buffer=i,this.pos=0}n.prototype.read=function(i,o,c){this.pos+c>this.buffer.length&&(c=this.buffer.length-this.pos);for(var h=0;hthis.buffer.length)throw new Error("Output buffer is not large enough");return this.buffer.set(i.subarray(0,o),this.pos),this.pos+=o,o},I.j=l},2973:function(T,I,n){var l=n(5139),f=10,g=11;function N(L,W,aA){this.prefix=new Uint8Array(L.length),this.transform=W,this.suffix=new Uint8Array(aA.length);for(var AA=0;AA'),new N("",0,"\n"),new N("",3,""),new N("",0,"]"),new N("",0," for "),new N("",14,""),new N("",2,""),new N("",0," a "),new N("",0," that "),new N(" ",f,""),new N("",0,". "),new N(".",0,""),new N(" ",0,", "),new N("",15,""),new N("",0," with "),new N("",0,"'"),new N("",0," from "),new N("",0," by "),new N("",16,""),new N("",17,""),new N(" the ",0,""),new N("",4,""),new N("",0,". The "),new N("",g,""),new N("",0," on "),new N("",0," as "),new N("",0," is "),new N("",7,""),new N("",1,"ing "),new N("",0,"\n\t"),new N("",0,":"),new N(" ",0,". "),new N("",0,"ed "),new N("",20,""),new N("",18,""),new N("",6,""),new N("",0,"("),new N("",f,", "),new N("",8,""),new N("",0," at "),new N("",0,"ly "),new N(" the ",0," of "),new N("",5,""),new N("",9,""),new N(" ",f,", "),new N("",f,'"'),new N(".",0,"("),new N("",g," "),new N("",f,'">'),new N("",0,'="'),new N(" ",0,"."),new N(".com/",0,""),new N(" the ",0," of the "),new N("",f,"'"),new N("",0,". This "),new N("",0,","),new N(".",0," "),new N("",f,"("),new N("",f,"."),new N("",0," not "),new N(" ",0,'="'),new N("",0,"er "),new N(" ",g," "),new N("",0,"al "),new N(" ",g,""),new N("",0,"='"),new N("",g,'"'),new N("",f,". "),new N(" ",0,"("),new N("",0,"ful "),new N(" ",f,". "),new N("",0,"ive "),new N("",0,"less "),new N("",g,"'"),new N("",0,"est "),new N(" ",f,"."),new N("",g,'">'),new N(" ",0,"='"),new N("",f,","),new N("",0,"ize "),new N("",g,"."),new N("\xc2\xa0",0,""),new N(" ",0,","),new N("",f,'="'),new N("",g,'="'),new N("",0,"ous "),new N("",g,", "),new N("",f,"='"),new N(" ",f,","),new N(" ",g,'="'),new N(" ",g,", "),new N("",g,","),new N("",g,"("),new N("",g,". "),new N(" ",g,"."),new N("",g,"='"),new N(" ",g,". "),new N(" ",f,'="'),new N(" ",g,"='"),new N(" ",f,"='")];function z(L,W){return L[W]<192?(L[W]>=97&&L[W]<=122&&(L[W]^=32),1):L[W]<224?(L[W+1]^=32,2):(L[W+2]^=5,3)}I.kTransforms=F,I.kNumTransforms=F.length,I.transformDictionaryWord=function(L,W,aA,AA,cA){var _,MA=F[cA].prefix,lA=F[cA].suffix,gA=F[cA].transform,BA=gA<12?0:gA-11,DA=0,FA=W;BA>AA&&(BA=AA);for(var dA=0;dA0;){var uA=z(L,_);_+=uA,AA-=uA}for(var CA=0;CAI.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=f,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}e.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,o(this.init_done,"close before init"),o(this.mode<=I.UNZIP),this.mode===I.DEFLATE||this.mode===I.GZIP||this.mode===I.DEFLATERAW?h.deflateEnd(this.strm):(this.mode===I.INFLATE||this.mode===I.GUNZIP||this.mode===I.INFLATERAW||this.mode===I.UNZIP)&&a.inflateEnd(this.strm),this.mode=I.NONE,this.dictionary=null)},e.prototype.write=function(f,g,w,Q,d,Y,y){return this._write(!0,f,g,w,Q,d,Y,y)},e.prototype.writeSync=function(f,g,w,Q,d,Y,y){return this._write(!1,f,g,w,Q,d,Y,y)},e.prototype._write=function(f,g,w,Q,d,Y,y,p){if(o.equal(arguments.length,8),o(this.init_done,"write before init"),o(this.mode!==I.NONE,"already finalized"),o.equal(!1,this.write_in_progress,"write already in progress"),o.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,o.equal(!1,void 0===g,"must provide flush value"),this.write_in_progress=!0,g!==I.Z_NO_FLUSH&&g!==I.Z_PARTIAL_FLUSH&&g!==I.Z_SYNC_FLUSH&&g!==I.Z_FULL_FLUSH&&g!==I.Z_FINISH&&g!==I.Z_BLOCK)throw new Error("Invalid flush value");if(null==w&&(w=l.alloc(0),d=0,Q=0),this.strm.avail_in=d,this.strm.input=w,this.strm.next_in=Q,this.strm.avail_out=p,this.strm.output=Y,this.strm.next_out=y,this.flush=g,!f)return this._process(),this._checkError()?this._afterSync():void 0;var m=this;return i.nextTick(function(){m._process(),m._after()}),this},e.prototype._afterSync=function(){var f=this.strm.avail_out,g=this.strm.avail_in;return this.write_in_progress=!1,[g,f]},e.prototype._process=function(){var f=null;switch(this.mode){case I.DEFLATE:case I.GZIP:case I.DEFLATERAW:this.err=h.deflate(this.strm,this.flush);break;case I.UNZIP:switch(this.strm.avail_in>0&&(f=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===f)break;if(31!==this.strm.input[f]){this.mode=I.INFLATE;break}if(this.gzip_id_bytes_read=1,f++,1===this.strm.avail_in)break;case 1:if(null===f)break;139===this.strm.input[f]?(this.gzip_id_bytes_read=2,this.mode=I.GUNZIP):this.mode=I.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case I.INFLATE:case I.GUNZIP:case I.INFLATERAW:for(this.err=a.inflate(this.strm,this.flush),this.err===I.Z_NEED_DICT&&this.dictionary&&(this.err=a.inflateSetDictionary(this.strm,this.dictionary),this.err===I.Z_OK?this.err=a.inflate(this.strm,this.flush):this.err===I.Z_DATA_ERROR&&(this.err=I.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===I.GUNZIP&&this.err===I.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=a.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},e.prototype._checkError=function(){switch(this.err){case I.Z_OK:case I.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===I.Z_FINISH)return this._error("unexpected end of file"),!1;break;case I.Z_STREAM_END:break;case I.Z_NEED_DICT:return this._error(null==this.dictionary?"Missing dictionary":"Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},e.prototype._after=function(){if(this._checkError()){var f=this.strm.avail_out,g=this.strm.avail_in;this.write_in_progress=!1,this.callback(g,f),this.pending_close&&this.close()}},e.prototype._error=function(f){this.strm.msg&&(f=this.strm.msg),this.onerror(f,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},e.prototype.init=function(f,g,w,Q,d){o(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),o(f>=8&&f<=15,"invalid windowBits"),o(g>=-1&&g<=9,"invalid compression level"),o(w>=1&&w<=9,"invalid memlevel"),o(Q===I.Z_FILTERED||Q===I.Z_HUFFMAN_ONLY||Q===I.Z_RLE||Q===I.Z_FIXED||Q===I.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(g,f,w,Q,d),this._setDictionary()},e.prototype.params=function(){throw new Error("deflateParams Not supported")},e.prototype.reset=function(){this._reset(),this._setDictionary()},e.prototype._init=function(f,g,w,Q,d){switch(this.level=f,this.windowBits=g,this.memLevel=w,this.strategy=Q,this.flush=I.Z_NO_FLUSH,this.err=I.Z_OK,(this.mode===I.GZIP||this.mode===I.GUNZIP)&&(this.windowBits+=16),this.mode===I.UNZIP&&(this.windowBits+=32),(this.mode===I.DEFLATERAW||this.mode===I.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new c,this.mode){case I.DEFLATE:case I.GZIP:case I.DEFLATERAW:this.err=h.deflateInit2(this.strm,this.level,I.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case I.INFLATE:case I.GUNZIP:case I.INFLATERAW:case I.UNZIP:this.err=a.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==I.Z_OK&&this._error("Init error"),this.dictionary=d,this.write_in_progress=!1,this.init_done=!0},e.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=I.Z_OK,this.mode){case I.DEFLATE:case I.DEFLATERAW:this.err=h.deflateSetDictionary(this.strm,this.dictionary)}this.err!==I.Z_OK&&this._error("Failed to set dictionary")}},e.prototype._reset=function(){switch(this.err=I.Z_OK,this.mode){case I.DEFLATE:case I.DEFLATERAW:case I.GZIP:this.err=h.deflateReset(this.strm);break;case I.INFLATE:case I.INFLATERAW:case I.GUNZIP:this.err=a.inflateReset(this.strm)}this.err!==I.Z_OK&&this._error("Failed to reset stream")},I.Zlib=e},2635:function(T,I,n){"use strict";var l=n(4155),i=n(8823).Buffer,o=n(2830).Transform,c=n(4505),h=n(9539),a=n(9282).ok,B=n(8823).kMaxLength,E="Cannot create final Buffer. It would be larger than 0x"+B.toString(16)+" bytes";c.Z_MIN_WINDOWBITS=8,c.Z_MAX_WINDOWBITS=15,c.Z_DEFAULT_WINDOWBITS=15,c.Z_MIN_CHUNK=64,c.Z_MAX_CHUNK=1/0,c.Z_DEFAULT_CHUNK=16384,c.Z_MIN_MEMLEVEL=1,c.Z_MAX_MEMLEVEL=9,c.Z_DEFAULT_MEMLEVEL=8,c.Z_MIN_LEVEL=-1,c.Z_MAX_LEVEL=9,c.Z_DEFAULT_LEVEL=c.Z_DEFAULT_COMPRESSION;for(var u=Object.keys(c),C=0;C=B?dA=new RangeError(E):_=i.concat(lA,gA),lA=[],AA.close(),MA(dA,_)}AA.on("error",function DA(_){AA.removeListener("end",FA),AA.removeListener("readable",BA),MA(_)}),AA.on("end",FA),AA.end(cA),BA()}function Y(AA,cA){if("string"==typeof cA&&(cA=i.from(cA)),!i.isBuffer(cA))throw new TypeError("Not a string or buffer");return AA._processChunk(cA,AA._finishFlushFlag)}function y(AA){if(!(this instanceof y))return new y(AA);L.call(this,AA,c.DEFLATE)}function p(AA){if(!(this instanceof p))return new p(AA);L.call(this,AA,c.INFLATE)}function m(AA){if(!(this instanceof m))return new m(AA);L.call(this,AA,c.GZIP)}function D(AA){if(!(this instanceof D))return new D(AA);L.call(this,AA,c.GUNZIP)}function U(AA){if(!(this instanceof U))return new U(AA);L.call(this,AA,c.DEFLATERAW)}function N(AA){if(!(this instanceof N))return new N(AA);L.call(this,AA,c.INFLATERAW)}function F(AA){if(!(this instanceof F))return new F(AA);L.call(this,AA,c.UNZIP)}function z(AA){return AA===c.Z_NO_FLUSH||AA===c.Z_PARTIAL_FLUSH||AA===c.Z_SYNC_FLUSH||AA===c.Z_FULL_FLUSH||AA===c.Z_FINISH||AA===c.Z_BLOCK}function L(AA,cA){var MA=this;if(this._opts=AA=AA||{},this._chunkSize=AA.chunkSize||I.Z_DEFAULT_CHUNK,o.call(this,AA),AA.flush&&!z(AA.flush))throw new Error("Invalid flush flag: "+AA.flush);if(AA.finishFlush&&!z(AA.finishFlush))throw new Error("Invalid flush flag: "+AA.finishFlush);if(this._flushFlag=AA.flush||c.Z_NO_FLUSH,this._finishFlushFlag=void 0!==AA.finishFlush?AA.finishFlush:c.Z_FINISH,AA.chunkSize&&(AA.chunkSizeI.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+AA.chunkSize);if(AA.windowBits&&(AA.windowBitsI.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+AA.windowBits);if(AA.level&&(AA.levelI.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+AA.level);if(AA.memLevel&&(AA.memLevelI.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+AA.memLevel);if(AA.strategy&&AA.strategy!=I.Z_FILTERED&&AA.strategy!=I.Z_HUFFMAN_ONLY&&AA.strategy!=I.Z_RLE&&AA.strategy!=I.Z_FIXED&&AA.strategy!=I.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+AA.strategy);if(AA.dictionary&&!i.isBuffer(AA.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new c.Zlib(cA);var lA=this;this._hadError=!1,this._handle.onerror=function(DA,FA){W(lA),lA._hadError=!0;var _=new Error(DA);_.errno=FA,_.code=I.codes[FA],lA.emit("error",_)};var gA=I.Z_DEFAULT_COMPRESSION;"number"==typeof AA.level&&(gA=AA.level);var BA=I.Z_DEFAULT_STRATEGY;"number"==typeof AA.strategy&&(BA=AA.strategy),this._handle.init(AA.windowBits||I.Z_DEFAULT_WINDOWBITS,gA,AA.memLevel||I.Z_DEFAULT_MEMLEVEL,BA,AA.dictionary),this._buffer=i.allocUnsafe(this._chunkSize),this._offset=0,this._level=gA,this._strategy=BA,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!MA._handle},configurable:!0,enumerable:!0})}function W(AA,cA){cA&&l.nextTick(cA),AA._handle&&(AA._handle.close(),AA._handle=null)}function aA(AA){AA.emit("close")}Object.defineProperty(I,"codes",{enumerable:!0,value:Object.freeze(f),writable:!1}),I.Deflate=y,I.Inflate=p,I.Gzip=m,I.Gunzip=D,I.DeflateRaw=U,I.InflateRaw=N,I.Unzip=F,I.createDeflate=function(AA){return new y(AA)},I.createInflate=function(AA){return new p(AA)},I.createDeflateRaw=function(AA){return new U(AA)},I.createInflateRaw=function(AA){return new N(AA)},I.createGzip=function(AA){return new m(AA)},I.createGunzip=function(AA){return new D(AA)},I.createUnzip=function(AA){return new F(AA)},I.deflate=function(AA,cA,MA){return"function"==typeof cA&&(MA=cA,cA={}),d(new y(cA),AA,MA)},I.deflateSync=function(AA,cA){return Y(new y(cA),AA)},I.gzip=function(AA,cA,MA){return"function"==typeof cA&&(MA=cA,cA={}),d(new m(cA),AA,MA)},I.gzipSync=function(AA,cA){return Y(new m(cA),AA)},I.deflateRaw=function(AA,cA,MA){return"function"==typeof cA&&(MA=cA,cA={}),d(new U(cA),AA,MA)},I.deflateRawSync=function(AA,cA){return Y(new U(cA),AA)},I.unzip=function(AA,cA,MA){return"function"==typeof cA&&(MA=cA,cA={}),d(new F(cA),AA,MA)},I.unzipSync=function(AA,cA){return Y(new F(cA),AA)},I.inflate=function(AA,cA,MA){return"function"==typeof cA&&(MA=cA,cA={}),d(new p(cA),AA,MA)},I.inflateSync=function(AA,cA){return Y(new p(cA),AA)},I.gunzip=function(AA,cA,MA){return"function"==typeof cA&&(MA=cA,cA={}),d(new D(cA),AA,MA)},I.gunzipSync=function(AA,cA){return Y(new D(cA),AA)},I.inflateRaw=function(AA,cA,MA){return"function"==typeof cA&&(MA=cA,cA={}),d(new N(cA),AA,MA)},I.inflateRawSync=function(AA,cA){return Y(new N(cA),AA)},h.inherits(L,o),L.prototype.params=function(AA,cA,MA){if(AAI.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+AA);if(cA!=I.Z_FILTERED&&cA!=I.Z_HUFFMAN_ONLY&&cA!=I.Z_RLE&&cA!=I.Z_FIXED&&cA!=I.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+cA);if(this._level!==AA||this._strategy!==cA){var lA=this;this.flush(c.Z_SYNC_FLUSH,function(){a(lA._handle,"zlib binding closed"),lA._handle.params(AA,cA),lA._hadError||(lA._level=AA,lA._strategy=cA,MA&&MA())})}else l.nextTick(MA)},L.prototype.reset=function(){return a(this._handle,"zlib binding closed"),this._handle.reset()},L.prototype._flush=function(AA){this._transform(i.alloc(0),"",AA)},L.prototype.flush=function(AA,cA){var MA=this,lA=this._writableState;("function"==typeof AA||void 0===AA&&!cA)&&(cA=AA,AA=c.Z_FULL_FLUSH),lA.ended?cA&&l.nextTick(cA):lA.ending?cA&&this.once("end",cA):lA.needDrain?cA&&this.once("drain",function(){return MA.flush(AA,cA)}):(this._flushFlag=AA,this.write(i.alloc(0),"",cA))},L.prototype.close=function(AA){W(this,AA),l.nextTick(aA,this)},L.prototype._transform=function(AA,cA,MA){var lA,gA=this._writableState,DA=(gA.ending||gA.ended)&&(!AA||gA.length===AA.length);return null===AA||i.isBuffer(AA)?this._handle?(DA?lA=this._finishFlushFlag:(lA=this._flushFlag,AA.length>=gA.length&&(this._flushFlag=this._opts.flush||c.Z_NO_FLUSH)),void this._processChunk(AA,lA,MA)):MA(new Error("zlib binding closed")):MA(new Error("invalid input"))},L.prototype._processChunk=function(AA,cA,MA){var lA=AA&&AA.length,gA=this._chunkSize-this._offset,BA=0,DA=this,FA="function"==typeof MA;if(!FA){var uA,_=[],dA=0;this.on("error",function(q){uA=q}),a(this._handle,"zlib binding closed");do{var CA=this._handle.writeSync(cA,AA,BA,lA,this._buffer,this._offset,gA)}while(!this._hadError&&XA(CA[0],CA[1]));if(this._hadError)throw uA;if(dA>=B)throw W(this),new RangeError(E);var NA=i.concat(_,dA);return W(this),NA}a(this._handle,"zlib binding closed");var bA=this._handle.write(cA,AA,BA,lA,this._buffer,this._offset,gA);function XA(q,O){if(this&&(this.buffer=null,this.callback=null),!DA._hadError){var $=gA-O;if(a($>=0,"have should not go down"),$>0){var V=DA._buffer.slice(DA._offset,DA._offset+$);DA._offset+=$,FA?DA.push(V):(_.push(V),dA+=V.length)}if((0===O||DA._offset>=DA._chunkSize)&&(gA=DA._chunkSize,DA._offset=0,DA._buffer=i.allocUnsafe(DA._chunkSize)),0===O){if(BA+=lA-q,lA=q,!FA)return!0;var hA=DA._handle.write(cA,AA,BA,lA,DA._buffer,DA._offset,DA._chunkSize);return hA.callback=XA,void(hA.buffer=AA)}if(!FA)return!1;MA()}}bA.buffer=AA,bA.callback=XA},h.inherits(y,L),h.inherits(p,L),h.inherits(m,L),h.inherits(D,L),h.inherits(U,L),h.inherits(N,L),h.inherits(F,L)},6907:function(T,I){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function l(c,h){return Object.prototype.hasOwnProperty.call(c,h)}I.assign=function(c){for(var h=Array.prototype.slice.call(arguments,1);h.length;){var a=h.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(var B in a)l(a,B)&&(c[B]=a[B])}}return c},I.shrinkBuf=function(c,h){return c.length===h?c:c.subarray?c.subarray(0,h):(c.length=h,c)};var i={arraySet:function(c,h,a,B,E){if(h.subarray&&c.subarray)c.set(h.subarray(a,a+B),E);else for(var u=0;u>>16&65535|0,a=0;0!==i;){i-=a=i>2e3?2e3:i;do{h=h+(c=c+l[o++]|0)|0}while(--a);c%=65521,h%=65521}return c|h<<16|0}},7162:function(T){"use strict";T.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}},3415:function(T){"use strict";var n=function I(){for(var i,o=[],c=0;c<256;c++){i=c;for(var h=0;h<8;h++)i=1&i?3988292384^i>>>1:i>>>1;o[c]=i}return o}();T.exports=function l(i,o,c,h){var a=n,B=h+c;i^=-1;for(var E=h;E>>8^a[255&(i^o[E])];return-1^i}},2233:function(T,I,n){"use strict";var OA,l=n(6907),i=n(1339),o=n(7575),c=n(3415),h=n(9364),g=-2,DA=258,FA=262,q=666;function nA(j,kA){return j.msg=h[kA],kA}function EA(j){return(j<<1)-(j>4?9:0)}function GA(j){for(var kA=j.length;--kA>=0;)j[kA]=0}function et(j){var kA=j.state,At=kA.pending;At>j.avail_out&&(At=j.avail_out),0!==At&&(l.arraySet(j.output,kA.pending_buf,kA.pending_out,At,j.next_out),j.next_out+=At,kA.pending_out+=At,j.total_out+=At,j.avail_out-=At,kA.pending-=At,0===kA.pending&&(kA.pending_out=0))}function ot(j,kA){i._tr_flush_block(j,j.block_start>=0?j.block_start:-1,j.strstart-j.block_start,kA),j.block_start=j.strstart,et(j.strm)}function TA(j,kA){j.pending_buf[j.pending++]=kA}function it(j,kA){j.pending_buf[j.pending++]=kA>>>8&255,j.pending_buf[j.pending++]=255&kA}function mt(j,kA,At,xA){var ZA=j.avail_in;return ZA>xA&&(ZA=xA),0===ZA?0:(j.avail_in-=ZA,l.arraySet(kA,j.input,j.next_in,ZA,At),1===j.state.wrap?j.adler=o(j.adler,kA,ZA,At):2===j.state.wrap&&(j.adler=c(j.adler,kA,ZA,At)),j.next_in+=ZA,j.total_in+=ZA,ZA)}function It(j,kA){var ZA,st,At=j.max_chain_length,xA=j.strstart,Lt=j.prev_length,vt=j.nice_match,Rt=j.strstart>j.w_size-FA?j.strstart-(j.w_size-FA):0,Kt=j.window,Le=j.w_mask,re=j.prev,Ae=j.strstart+DA,ye=Kt[xA+Lt-1],be=Kt[xA+Lt];j.prev_length>=j.good_match&&(At>>=2),vt>j.lookahead&&(vt=j.lookahead);do{if(Kt[(ZA=kA)+Lt]===be&&Kt[ZA+Lt-1]===ye&&Kt[ZA]===Kt[xA]&&Kt[++ZA]===Kt[xA+1]){xA+=2,ZA++;do{}while(Kt[++xA]===Kt[++ZA]&&Kt[++xA]===Kt[++ZA]&&Kt[++xA]===Kt[++ZA]&&Kt[++xA]===Kt[++ZA]&&Kt[++xA]===Kt[++ZA]&&Kt[++xA]===Kt[++ZA]&&Kt[++xA]===Kt[++ZA]&&Kt[++xA]===Kt[++ZA]&&xALt){if(j.match_start=kA,Lt=st,st>=vt)break;ye=Kt[xA+Lt-1],be=Kt[xA+Lt]}}}while((kA=re[kA&Le])>Rt&&0!=--At);return Lt<=j.lookahead?Lt:j.lookahead}function ut(j){var At,xA,ZA,st,Lt,kA=j.w_size;do{if(st=j.window_size-j.lookahead-j.strstart,j.strstart>=kA+(kA-FA)){l.arraySet(j.window,j.window,kA,kA,0),j.match_start-=kA,j.strstart-=kA,j.block_start-=kA,At=xA=j.hash_size;do{ZA=j.head[--At],j.head[At]=ZA>=kA?ZA-kA:0}while(--xA);At=xA=kA;do{ZA=j.prev[--At],j.prev[At]=ZA>=kA?ZA-kA:0}while(--xA);st+=kA}if(0===j.strm.avail_in)break;if(xA=mt(j.strm,j.window,j.strstart+j.lookahead,st),j.lookahead+=xA,j.lookahead+j.insert>=3)for(j.ins_h=j.window[Lt=j.strstart-j.insert],j.ins_h=(j.ins_h<=3&&(j.ins_h=(j.ins_h<=3)if(xA=i._tr_tally(j,j.strstart-j.match_start,j.match_length-3),j.lookahead-=j.match_length,j.match_length<=j.max_lazy_match&&j.lookahead>=3){j.match_length--;do{j.strstart++,j.ins_h=(j.ins_h<=3&&(j.ins_h=(j.ins_h<4096)&&(j.match_length=2)),j.prev_length>=3&&j.match_length<=j.prev_length){ZA=j.strstart+j.lookahead-3,xA=i._tr_tally(j,j.strstart-1-j.prev_match,j.prev_length-3),j.lookahead-=j.prev_length-1,j.prev_length-=2;do{++j.strstart<=ZA&&(j.ins_h=(j.ins_h<15&&(Lt=2,xA-=16),ZA<1||ZA>9||8!==At||xA<8||xA>15||kA<0||kA>9||st<0||st>4)return nA(j,g);8===xA&&(xA=9);var vt=new H;return j.state=vt,vt.strm=j,vt.wrap=Lt,vt.gzhead=null,vt.w_bits=xA,vt.w_size=1<j.pending_buf_size-5&&(At=j.pending_buf_size-5);;){if(j.lookahead<=1){if(ut(j),0===j.lookahead&&0===kA)return 1;if(0===j.lookahead)break}j.strstart+=j.lookahead,j.lookahead=0;var xA=j.block_start+At;if((0===j.strstart||j.strstart>=xA)&&(j.lookahead=j.strstart-xA,j.strstart=xA,ot(j,!1),0===j.strm.avail_out)||j.strstart-j.block_start>=j.w_size-FA&&(ot(j,!1),0===j.strm.avail_out))return 1}return j.insert=0,4===kA?(ot(j,!0),0===j.strm.avail_out?3:4):(j.strstart>j.block_start&&ot(j,!1),1)}),new Et(4,4,8,4,VA),new Et(4,5,16,8,VA),new Et(4,6,32,32,VA),new Et(4,4,16,16,rt),new Et(8,16,32,32,rt),new Et(8,16,128,128,rt),new Et(8,32,128,256,rt),new Et(32,128,258,1024,rt),new Et(32,258,258,4096,rt)],I.deflateInit=function PA(j,kA){return wA(j,kA,8,15,8,0)},I.deflateInit2=wA,I.deflateReset=R,I.deflateResetKeep=k,I.deflateSetHeader=function QA(j,kA){return j&&j.state&&2===j.state.wrap?(j.state.gzhead=kA,0):g},I.deflate=function rA(j,kA){var At,xA,ZA,st;if(!j||!j.state||kA>5||kA<0)return j?nA(j,g):g;if(xA=j.state,!j.output||!j.input&&0!==j.avail_in||xA.status===q&&4!==kA)return nA(j,0===j.avail_out?-5:g);if(xA.strm=j,At=xA.last_flush,xA.last_flush=kA,42===xA.status)if(2===xA.wrap)j.adler=0,TA(xA,31),TA(xA,139),TA(xA,8),xA.gzhead?(TA(xA,(xA.gzhead.text?1:0)+(xA.gzhead.hcrc?2:0)+(xA.gzhead.extra?4:0)+(xA.gzhead.name?8:0)+(xA.gzhead.comment?16:0)),TA(xA,255&xA.gzhead.time),TA(xA,xA.gzhead.time>>8&255),TA(xA,xA.gzhead.time>>16&255),TA(xA,xA.gzhead.time>>24&255),TA(xA,9===xA.level?2:xA.strategy>=2||xA.level<2?4:0),TA(xA,255&xA.gzhead.os),xA.gzhead.extra&&xA.gzhead.extra.length&&(TA(xA,255&xA.gzhead.extra.length),TA(xA,xA.gzhead.extra.length>>8&255)),xA.gzhead.hcrc&&(j.adler=c(j.adler,xA.pending_buf,xA.pending,0)),xA.gzindex=0,xA.status=69):(TA(xA,0),TA(xA,0),TA(xA,0),TA(xA,0),TA(xA,0),TA(xA,9===xA.level?2:xA.strategy>=2||xA.level<2?4:0),TA(xA,3),xA.status=113);else{var Lt=8+(xA.w_bits-8<<4)<<8;Lt|=(xA.strategy>=2||xA.level<2?0:xA.level<6?1:6===xA.level?2:3)<<6,0!==xA.strstart&&(Lt|=32),Lt+=31-Lt%31,xA.status=113,it(xA,Lt),0!==xA.strstart&&(it(xA,j.adler>>>16),it(xA,65535&j.adler)),j.adler=1}if(69===xA.status)if(xA.gzhead.extra){for(ZA=xA.pending;xA.gzindex<(65535&xA.gzhead.extra.length)&&(xA.pending!==xA.pending_buf_size||(xA.gzhead.hcrc&&xA.pending>ZA&&(j.adler=c(j.adler,xA.pending_buf,xA.pending-ZA,ZA)),et(j),ZA=xA.pending,xA.pending!==xA.pending_buf_size));)TA(xA,255&xA.gzhead.extra[xA.gzindex]),xA.gzindex++;xA.gzhead.hcrc&&xA.pending>ZA&&(j.adler=c(j.adler,xA.pending_buf,xA.pending-ZA,ZA)),xA.gzindex===xA.gzhead.extra.length&&(xA.gzindex=0,xA.status=73)}else xA.status=73;if(73===xA.status)if(xA.gzhead.name){ZA=xA.pending;do{if(xA.pending===xA.pending_buf_size&&(xA.gzhead.hcrc&&xA.pending>ZA&&(j.adler=c(j.adler,xA.pending_buf,xA.pending-ZA,ZA)),et(j),ZA=xA.pending,xA.pending===xA.pending_buf_size)){st=1;break}st=xA.gzindexZA&&(j.adler=c(j.adler,xA.pending_buf,xA.pending-ZA,ZA)),0===st&&(xA.gzindex=0,xA.status=91)}else xA.status=91;if(91===xA.status)if(xA.gzhead.comment){ZA=xA.pending;do{if(xA.pending===xA.pending_buf_size&&(xA.gzhead.hcrc&&xA.pending>ZA&&(j.adler=c(j.adler,xA.pending_buf,xA.pending-ZA,ZA)),et(j),ZA=xA.pending,xA.pending===xA.pending_buf_size)){st=1;break}st=xA.gzindexZA&&(j.adler=c(j.adler,xA.pending_buf,xA.pending-ZA,ZA)),0===st&&(xA.status=103)}else xA.status=103;if(103===xA.status&&(xA.gzhead.hcrc?(xA.pending+2>xA.pending_buf_size&&et(j),xA.pending+2<=xA.pending_buf_size&&(TA(xA,255&j.adler),TA(xA,j.adler>>8&255),j.adler=0,xA.status=113)):xA.status=113),0!==xA.pending){if(et(j),0===j.avail_out)return xA.last_flush=-1,0}else if(0===j.avail_in&&EA(kA)<=EA(At)&&4!==kA)return nA(j,-5);if(xA.status===q&&0!==j.avail_in)return nA(j,-5);if(0!==j.avail_in||0!==xA.lookahead||0!==kA&&xA.status!==q){var Rt=2===xA.strategy?function Mt(j,kA){for(var At;;){if(0===j.lookahead&&(ut(j),0===j.lookahead)){if(0===kA)return 1;break}if(j.match_length=0,At=i._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++,At&&(ot(j,!1),0===j.strm.avail_out))return 1}return j.insert=0,4===kA?(ot(j,!0),0===j.strm.avail_out?3:4):j.last_lit&&(ot(j,!1),0===j.strm.avail_out)?1:2}(xA,kA):3===xA.strategy?function yA(j,kA){for(var At,xA,ZA,st,Lt=j.window;;){if(j.lookahead<=DA){if(ut(j),j.lookahead<=DA&&0===kA)return 1;if(0===j.lookahead)break}if(j.match_length=0,j.lookahead>=3&&j.strstart>0&&(xA=Lt[ZA=j.strstart-1])===Lt[++ZA]&&xA===Lt[++ZA]&&xA===Lt[++ZA]){st=j.strstart+DA;do{}while(xA===Lt[++ZA]&&xA===Lt[++ZA]&&xA===Lt[++ZA]&&xA===Lt[++ZA]&&xA===Lt[++ZA]&&xA===Lt[++ZA]&&xA===Lt[++ZA]&&xA===Lt[++ZA]&&ZAj.lookahead&&(j.match_length=j.lookahead)}if(j.match_length>=3?(At=i._tr_tally(j,1,j.match_length-3),j.lookahead-=j.match_length,j.strstart+=j.match_length,j.match_length=0):(At=i._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++),At&&(ot(j,!1),0===j.strm.avail_out))return 1}return j.insert=0,4===kA?(ot(j,!0),0===j.strm.avail_out?3:4):j.last_lit&&(ot(j,!1),0===j.strm.avail_out)?1:2}(xA,kA):OA[xA.level].func(xA,kA);if((3===Rt||4===Rt)&&(xA.status=q),1===Rt||3===Rt)return 0===j.avail_out&&(xA.last_flush=-1),0;if(2===Rt&&(1===kA?i._tr_align(xA):5!==kA&&(i._tr_stored_block(xA,0,0,!1),3===kA&&(GA(xA.head),0===xA.lookahead&&(xA.strstart=0,xA.block_start=0,xA.insert=0))),et(j),0===j.avail_out))return xA.last_flush=-1,0}return 4!==kA?0:xA.wrap<=0?1:(2===xA.wrap?(TA(xA,255&j.adler),TA(xA,j.adler>>8&255),TA(xA,j.adler>>16&255),TA(xA,j.adler>>24&255),TA(xA,255&j.total_in),TA(xA,j.total_in>>8&255),TA(xA,j.total_in>>16&255),TA(xA,j.total_in>>24&255)):(it(xA,j.adler>>>16),it(xA,65535&j.adler)),et(j),xA.wrap>0&&(xA.wrap=-xA.wrap),0!==xA.pending?0:1)},I.deflateEnd=function lt(j){var kA;return j&&j.state?42!==(kA=j.state.status)&&69!==kA&&73!==kA&&91!==kA&&103!==kA&&113!==kA&&kA!==q?nA(j,g):(j.state=null,113===kA?nA(j,-3):0):g},I.deflateSetDictionary=function Ft(j,kA){var xA,ZA,st,Lt,vt,Rt,Kt,Le,At=kA.length;if(!j||!j.state||2===(Lt=(xA=j.state).wrap)||1===Lt&&42!==xA.status||xA.lookahead)return g;for(1===Lt&&(j.adler=o(j.adler,kA,At,0)),xA.wrap=0,At>=xA.w_size&&(0===Lt&&(GA(xA.head),xA.strstart=0,xA.block_start=0,xA.insert=0),Le=new l.Buf8(xA.w_size),l.arraySet(Le,kA,At-xA.w_size,xA.w_size,0),kA=Le,At=xA.w_size),vt=j.avail_in,Rt=j.next_in,Kt=j.input,j.avail_in=At,j.next_in=0,j.input=kA,ut(xA);xA.lookahead>=3;){ZA=xA.strstart,st=xA.lookahead-2;do{xA.ins_h=(xA.ins_h<>>=U=D>>>24,d-=U,0==(U=D>>>16&255))aA[B++]=65535&D;else{if(!(16&U)){if(0==(64&U)){D=Y[(65535&D)+(Q&(1<>>=U,d-=U),d<15&&(Q+=W[h++]<>>=U=D>>>24,d-=U,!(16&(U=D>>>16&255))){if(0==(64&U)){D=y[(65535&D)+(Q&(1<C){i.msg="invalid distance too far back",c.mode=30;break A}if(Q>>>=U,d-=U,F>(U=B-E)){if((U=F-U)>f&&c.sane){i.msg="invalid distance too far back",c.mode=30;break A}if(z=0,L=w,0===g){if(z+=e-U,U2;)aA[B++]=L[z++],aA[B++]=L[z++],aA[B++]=L[z++],N-=3;N&&(aA[B++]=L[z++],N>1&&(aA[B++]=L[z++]))}else{z=B-F;do{aA[B++]=aA[z++],aA[B++]=aA[z++],aA[B++]=aA[z++],N-=3}while(N>2);N&&(aA[B++]=aA[z++],N>1&&(aA[B++]=aA[z++]))}break}}break}}while(h>3)<<3))-1,i.next_in=h-=N,i.next_out=B,i.avail_in=h>>24&255)+(wA>>>8&65280)+((65280&wA)<<8)+((255&wA)<<24)}function mt(){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 l.Buf16(320),this.work=new l.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function It(wA){var PA;return wA&&wA.state?(wA.total_in=wA.total_out=(PA=wA.state).total=0,wA.msg="",PA.wrap&&(wA.adler=1&PA.wrap),PA.mode=1,PA.last=0,PA.havedict=0,PA.dmax=32768,PA.head=null,PA.hold=0,PA.bits=0,PA.lencode=PA.lendyn=new l.Buf32(852),PA.distcode=PA.distdyn=new l.Buf32(592),PA.sane=1,PA.back=-1,0):Q}function ut(wA){var PA;return wA&&wA.state?((PA=wA.state).wsize=0,PA.whave=0,PA.wnext=0,It(wA)):Q}function JA(wA,PA){var rA,lt;return!wA||!wA.state||(lt=wA.state,PA<0?(rA=0,PA=-PA):(rA=1+(PA>>4),PA<48&&(PA&=15)),PA&&(PA<8||PA>15))?Q:(null!==lt.window&<.wbits!==PA&&(lt.window=null),lt.wrap=rA,lt.wbits=PA,ut(wA))}function VA(wA,PA){var rA,lt;return wA?(lt=new mt,wA.state=lt,lt.window=null,0!==(rA=JA(wA,PA))&&(wA.state=null),rA):Q}var Mt,Et,yA=!0;function OA(wA){if(yA){var PA;for(Mt=new l.Buf32(512),Et=new l.Buf32(32),PA=0;PA<144;)wA.lens[PA++]=8;for(;PA<256;)wA.lens[PA++]=9;for(;PA<280;)wA.lens[PA++]=7;for(;PA<288;)wA.lens[PA++]=8;for(h(1,wA.lens,0,288,Mt,0,wA.work,{bits:9}),PA=0;PA<32;)wA.lens[PA++]=5;h(2,wA.lens,0,32,Et,0,wA.work,{bits:5}),yA=!1}wA.lencode=Mt,wA.lenbits=9,wA.distcode=Et,wA.distbits=5}function Yt(wA,PA,rA,lt){var Ft,j=wA.state;return null===j.window&&(j.wsize=1<=j.wsize?(l.arraySet(j.window,PA,rA-j.wsize,j.wsize,0),j.wnext=0,j.whave=j.wsize):((Ft=j.wsize-j.wnext)>lt&&(Ft=lt),l.arraySet(j.window,PA,rA-lt,Ft,j.wnext),(lt-=Ft)?(l.arraySet(j.window,PA,rA-lt,lt,0),j.wnext=lt,j.whave=j.wsize):(j.wnext+=Ft,j.wnext===j.wsize&&(j.wnext=0),j.whave>>8&255,rA.check=o(rA.check,Te,2,0),ZA=0,st=0,rA.mode=2;break}if(rA.flags=0,rA.head&&(rA.head.done=!1),!(1&rA.wrap)||(((255&ZA)<<8)+(ZA>>8))%31){wA.msg="incorrect header check",rA.mode=30;break}if(8!=(15&ZA)){wA.msg="unknown compression method",rA.mode=30;break}if(st-=4,ne=8+(15&(ZA>>>=4)),0===rA.wbits)rA.wbits=ne;else if(ne>rA.wbits){wA.msg="invalid window size",rA.mode=30;break}rA.dmax=1<>8&1),512&rA.flags&&(Te[0]=255&ZA,Te[1]=ZA>>>8&255,rA.check=o(rA.check,Te,2,0)),ZA=0,st=0,rA.mode=3;case 3:for(;st<32;){if(0===At)break A;At--,ZA+=lt[j++]<>>8&255,Te[2]=ZA>>>16&255,Te[3]=ZA>>>24&255,rA.check=o(rA.check,Te,4,0)),ZA=0,st=0,rA.mode=4;case 4:for(;st<16;){if(0===At)break A;At--,ZA+=lt[j++]<>8),512&rA.flags&&(Te[0]=255&ZA,Te[1]=ZA>>>8&255,rA.check=o(rA.check,Te,2,0)),ZA=0,st=0,rA.mode=5;case 5:if(1024&rA.flags){for(;st<16;){if(0===At)break A;At--,ZA+=lt[j++]<>>8&255,rA.check=o(rA.check,Te,2,0)),ZA=0,st=0}else rA.head&&(rA.head.extra=null);rA.mode=6;case 6:if(1024&rA.flags&&((Rt=rA.length)>At&&(Rt=At),Rt&&(rA.head&&(ne=rA.head.extra_len-rA.length,rA.head.extra||(rA.head.extra=new Array(rA.head.extra_len)),l.arraySet(rA.head.extra,lt,j,Rt,ne)),512&rA.flags&&(rA.check=o(rA.check,lt,Rt,j)),At-=Rt,j+=Rt,rA.length-=Rt),rA.length))break A;rA.length=0,rA.mode=7;case 7:if(2048&rA.flags){if(0===At)break A;Rt=0;do{ne=lt[j+Rt++],rA.head&&ne&&rA.length<65536&&(rA.head.name+=String.fromCharCode(ne))}while(ne&&Rt>9&1,rA.head.done=!0),wA.adler=rA.check=0,rA.mode=12;break;case 10:for(;st<32;){if(0===At)break A;At--,ZA+=lt[j++]<>>=7&st,st-=7&st,rA.mode=27;break}for(;st<3;){if(0===At)break A;At--,ZA+=lt[j++]<>>=1)){case 0:rA.mode=14;break;case 1:if(OA(rA),rA.mode=20,6===PA){ZA>>>=2,st-=2;break A}break;case 2:rA.mode=17;break;case 3:wA.msg="invalid block type",rA.mode=30}ZA>>>=2,st-=2;break;case 14:for(ZA>>>=7&st,st-=7&st;st<32;){if(0===At)break A;At--,ZA+=lt[j++]<>>16^65535)){wA.msg="invalid stored block lengths",rA.mode=30;break}if(rA.length=65535&ZA,ZA=0,st=0,rA.mode=15,6===PA)break A;case 15:rA.mode=16;case 16:if(Rt=rA.length){if(Rt>At&&(Rt=At),Rt>xA&&(Rt=xA),0===Rt)break A;l.arraySet(Ft,lt,j,Rt,kA),At-=Rt,j+=Rt,xA-=Rt,kA+=Rt,rA.length-=Rt;break}rA.mode=12;break;case 17:for(;st<14;){if(0===At)break A;At--,ZA+=lt[j++]<>>=5)),st-=5,rA.ncode=4+(15&(ZA>>>=5)),ZA>>>=4,st-=4,rA.nlen>286||rA.ndist>30){wA.msg="too many length or distance symbols",rA.mode=30;break}rA.have=0,rA.mode=18;case 18:for(;rA.have>>=3,st-=3}for(;rA.have<19;)rA.lens[Ln[rA.have++]]=0;if(rA.lencode=rA.lendyn,rA.lenbits=7,tn=h(0,rA.lens,0,19,rA.lencode,0,rA.work,en={bits:rA.lenbits}),rA.lenbits=en.bits,tn){wA.msg="invalid code lengths set",rA.mode=30;break}rA.have=0,rA.mode=19;case 19:for(;rA.have>>16&255,be=65535&re,!((Ae=re>>>24)<=st);){if(0===At)break A;At--,ZA+=lt[j++]<>>=Ae,st-=Ae,rA.lens[rA.have++]=be;else{if(16===be){for(Xe=Ae+2;st>>=Ae,st-=Ae,0===rA.have){wA.msg="invalid bit length repeat",rA.mode=30;break}ne=rA.lens[rA.have-1],Rt=3+(3&ZA),ZA>>>=2,st-=2}else if(17===be){for(Xe=Ae+3;st>>=Ae)),ZA>>>=3,st-=3}else{for(Xe=Ae+7;st>>=Ae)),ZA>>>=7,st-=7}if(rA.have+Rt>rA.nlen+rA.ndist){wA.msg="invalid bit length repeat",rA.mode=30;break}for(;Rt--;)rA.lens[rA.have++]=ne}}if(30===rA.mode)break;if(0===rA.lens[256]){wA.msg="invalid code -- missing end-of-block",rA.mode=30;break}if(rA.lenbits=9,tn=h(1,rA.lens,0,rA.nlen,rA.lencode,0,rA.work,en={bits:rA.lenbits}),rA.lenbits=en.bits,tn){wA.msg="invalid literal/lengths set",rA.mode=30;break}if(rA.distbits=6,rA.distcode=rA.distdyn,tn=h(2,rA.lens,rA.nlen,rA.ndist,rA.distcode,0,rA.work,en={bits:rA.distbits}),rA.distbits=en.bits,tn){wA.msg="invalid distances set",rA.mode=30;break}if(rA.mode=20,6===PA)break A;case 20:rA.mode=21;case 21:if(At>=6&&xA>=258){wA.next_out=kA,wA.avail_out=xA,wA.next_in=j,wA.avail_in=At,rA.hold=ZA,rA.bits=st,c(wA,vt),kA=wA.next_out,Ft=wA.output,xA=wA.avail_out,j=wA.next_in,lt=wA.input,At=wA.avail_in,ZA=rA.hold,st=rA.bits,12===rA.mode&&(rA.back=-1);break}for(rA.back=0;ye=(re=rA.lencode[ZA&(1<>>16&255,be=65535&re,!((Ae=re>>>24)<=st);){if(0===At)break A;At--,ZA+=lt[j++]<>Re)])>>>16&255,be=65535&re,!(Re+(Ae=re>>>24)<=st);){if(0===At)break A;At--,ZA+=lt[j++]<>>=Re,st-=Re,rA.back+=Re}if(ZA>>>=Ae,st-=Ae,rA.back+=Ae,rA.length=be,0===ye){rA.mode=26;break}if(32&ye){rA.back=-1,rA.mode=12;break}if(64&ye){wA.msg="invalid literal/length code",rA.mode=30;break}rA.extra=15&ye,rA.mode=22;case 22:if(rA.extra){for(Xe=rA.extra;st>>=rA.extra,st-=rA.extra,rA.back+=rA.extra}rA.was=rA.length,rA.mode=23;case 23:for(;ye=(re=rA.distcode[ZA&(1<>>16&255,be=65535&re,!((Ae=re>>>24)<=st);){if(0===At)break A;At--,ZA+=lt[j++]<>Re)])>>>16&255,be=65535&re,!(Re+(Ae=re>>>24)<=st);){if(0===At)break A;At--,ZA+=lt[j++]<>>=Re,st-=Re,rA.back+=Re}if(ZA>>>=Ae,st-=Ae,rA.back+=Ae,64&ye){wA.msg="invalid distance code",rA.mode=30;break}rA.offset=be,rA.extra=15&ye,rA.mode=24;case 24:if(rA.extra){for(Xe=rA.extra;st>>=rA.extra,st-=rA.extra,rA.back+=rA.extra}if(rA.offset>rA.dmax){wA.msg="invalid distance too far back",rA.mode=30;break}rA.mode=25;case 25:if(0===xA)break A;if(rA.offset>(Rt=vt-xA)){if((Rt=rA.offset-Rt)>rA.whave&&rA.sane){wA.msg="invalid distance too far back",rA.mode=30;break}Kt=Rt>rA.wnext?rA.wsize-(Rt-=rA.wnext):rA.wnext-Rt,Rt>rA.length&&(Rt=rA.length),Le=rA.window}else Le=Ft,Kt=kA-rA.offset,Rt=rA.length;Rt>xA&&(Rt=xA),xA-=Rt,rA.length-=Rt;do{Ft[kA++]=Le[Kt++]}while(--Rt);0===rA.length&&(rA.mode=21);break;case 26:if(0===xA)break A;Ft[kA++]=rA.length,xA--,rA.mode=21;break;case 27:if(rA.wrap){for(;st<32;){if(0===At)break A;At--,ZA|=lt[j++]<=1&&0===CA[z];z--);if(L>z&&(L=z),0===z)return Y[y++]=20971520,Y[y++]=20971520,m.bits=1,0;for(F=1;F0&&(0===g||1!==z))return-1;for(NA[1]=0,U=1;U852||2===g&&cA>592)return 1;for(;;){q=U-aA,p[N]uA?(O=bA[XA+p[N]],$=_[dA+p[N]]):(O=96,$=0),lA=1<>aA)+(gA-=lA)]=q<<24|O<<16|$|0}while(0!==gA);for(lA=1<>=1;if(0!==lA?(MA&=lA-1,MA+=lA):MA=0,N++,0==--CA[U]){if(U===z)break;U=w[Q+p[N]]}if(U>L&&(MA&DA)!==BA){for(0===aA&&(aA=L),FA+=F,AA=1<<(W=U-aA);W+aA852||2===g&&cA>592)return 1;Y[BA=MA&DA]=L<<24|W<<16|FA-y|0}}return 0!==MA&&(Y[FA+MA]=4194304|U-aA<<24),m.bits=L,0}},9364:function(T){"use strict";T.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"}},1339:function(T,I,n){"use strict";var l=n(6907);function a(H){for(var k=H.length;--k>=0;)H[k]=0}var g=256,w=286,Q=30,y=15,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],L=[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],W=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],aA=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],cA=new Array(576);a(cA);var MA=new Array(60);a(MA);var lA=new Array(512);a(lA);var gA=new Array(256);a(gA);var BA=new Array(29);a(BA);var _,dA,uA,DA=new Array(Q);function FA(H,k,R,QA,wA){this.static_tree=H,this.extra_bits=k,this.extra_base=R,this.elems=QA,this.max_length=wA,this.has_stree=H&&H.length}function CA(H,k){this.dyn_tree=H,this.max_code=0,this.stat_desc=k}function NA(H){return H<256?lA[H]:lA[256+(H>>>7)]}function bA(H,k){H.pending_buf[H.pending++]=255&k,H.pending_buf[H.pending++]=k>>>8&255}function XA(H,k,R){H.bi_valid>16-R?(H.bi_buf|=k<>16-H.bi_valid,H.bi_valid+=R-16):(H.bi_buf|=k<>>=1,R<<=1}while(--k>0);return R>>>1}function hA(H,k,R){var PA,rA,QA=new Array(16),wA=0;for(PA=1;PA<=y;PA++)QA[PA]=wA=wA+R[PA-1]<<1;for(rA=0;rA<=k;rA++){var lt=H[2*rA+1];0!==lt&&(H[2*rA]=O(QA[lt]++,lt))}}function nA(H){var k;for(k=0;k8?bA(H,H.bi_buf):H.bi_valid>0&&(H.pending_buf[H.pending++]=H.bi_buf),H.bi_buf=0,H.bi_valid=0}function et(H,k,R,QA){var wA=2*k,PA=2*R;return H[wA]>1;rA>=1;rA--)ot(H,R,rA);j=PA;do{rA=H.heap[1],H.heap[1]=H.heap[H.heap_len--],ot(H,R,1),lt=H.heap[1],H.heap[--H.heap_max]=rA,H.heap[--H.heap_max]=lt,R[2*j]=R[2*rA]+R[2*lt],H.depth[j]=(H.depth[rA]>=H.depth[lt]?H.depth[rA]:H.depth[lt])+1,R[2*rA+1]=R[2*lt+1]=j,H.heap[1]=j++,ot(H,R,1)}while(H.heap_len>=2);H.heap[--H.heap_max]=H.heap[1],function V(H,k){var j,kA,At,xA,ZA,st,R=k.dyn_tree,QA=k.max_code,wA=k.stat_desc.static_tree,PA=k.stat_desc.has_stree,rA=k.stat_desc.extra_bits,lt=k.stat_desc.extra_base,Ft=k.stat_desc.max_length,Lt=0;for(xA=0;xA<=y;xA++)H.bl_count[xA]=0;for(R[2*H.heap[H.heap_max]+1]=0,j=H.heap_max+1;j<573;j++)(xA=R[2*R[2*(kA=H.heap[j])+1]+1]+1)>Ft&&(xA=Ft,Lt++),R[2*kA+1]=xA,!(kA>QA)&&(H.bl_count[xA]++,ZA=0,kA>=lt&&(ZA=rA[kA-lt]),H.opt_len+=(st=R[2*kA])*(xA+ZA),PA&&(H.static_len+=st*(wA[2*kA+1]+ZA)));if(0!==Lt){do{for(xA=Ft-1;0===H.bl_count[xA];)xA--;H.bl_count[xA]--,H.bl_count[xA+1]+=2,H.bl_count[Ft]--,Lt-=2}while(Lt>0);for(xA=Ft;0!==xA;xA--)for(kA=H.bl_count[xA];0!==kA;)!((At=H.heap[--j])>QA)&&(R[2*At+1]!==xA&&(H.opt_len+=(xA-R[2*At+1])*R[2*At],R[2*At+1]=xA),kA--)}}(H,k),hA(R,Ft,H.bl_count)}function mt(H,k,R){var QA,PA,wA=-1,rA=k[1],lt=0,Ft=7,j=4;for(0===rA&&(Ft=138,j=3),k[2*(R+1)+1]=65535,QA=0;QA<=R;QA++)PA=rA,rA=k[2*(QA+1)+1],!(++lt>=7;QA0?(2===H.strm.data_type&&(H.strm.data_type=function VA(H){var R,k=4093624447;for(R=0;R<=31;R++,k>>>=1)if(1&k&&0!==H.dyn_ltree[2*R])return 0;if(0!==H.dyn_ltree[18]||0!==H.dyn_ltree[20]||0!==H.dyn_ltree[26])return 1;for(R=32;R=3&&0===H.bl_tree[2*aA[k]+1];k--);return H.opt_len+=3*(k+1)+5+5+4,k}(H),(PA=H.static_len+3+7>>>3)<=(wA=H.opt_len+3+7>>>3)&&(wA=PA)):wA=PA=R+5,R+4<=wA&&-1!==k?Mt(H,k,R,QA):4===H.strategy||PA===wA?(XA(H,2+(QA?1:0),3),TA(H,cA,MA)):(XA(H,4+(QA?1:0),3),function JA(H,k,R,QA){var wA;for(XA(H,k-257,5),XA(H,R-1,5),XA(H,QA-4,4),wA=0;wA>>8&255,H.pending_buf[H.d_buf+2*H.last_lit+1]=255&k,H.pending_buf[H.l_buf+H.last_lit]=255&R,H.last_lit++,0===k?H.dyn_ltree[2*R]++:(H.matches++,k--,H.dyn_ltree[2*(gA[R]+g+1)]++,H.dyn_dtree[2*NA(k)]++),H.last_lit===H.lit_bufsize-1},I._tr_align=function Et(H){XA(H,2,3),q(H,256,cA),function $(H){16===H.bi_valid?(bA(H,H.bi_buf),H.bi_buf=0,H.bi_valid=0):H.bi_valid>=8&&(H.pending_buf[H.pending++]=255&H.bi_buf,H.bi_buf>>=8,H.bi_valid-=8)}(H)}},4860:function(T){"use strict";T.exports=function I(){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}},1924:function(T,I,n){"use strict";var l=n(210),i=n(5559),o=i(l("String.prototype.indexOf"));T.exports=function(h,a){var B=l(h,!!a);return"function"==typeof B&&o(h,".prototype.")>-1?i(B):B}},5559:function(T,I,n){"use strict";var l=n(8612),i=n(210),o=i("%Function.prototype.apply%"),c=i("%Function.prototype.call%"),h=i("%Reflect.apply%",!0)||l.call(c,o),a=i("%Object.getOwnPropertyDescriptor%",!0),B=i("%Object.defineProperty%",!0),E=i("%Math.max%");if(B)try{B({},"a",{value:1})}catch(C){B=null}T.exports=function(e){var f=h(l,c,arguments);return a&&B&&a(f,"length").configurable&&B(f,"length",{value:1+E(0,e.length-(arguments.length-1))}),f};var u=function(){return h(l,o,arguments)};B?B(T.exports,"apply",{value:u}):T.exports.apply=u},6313:function(T,I,n){var l=n(8823).Buffer,i=function(){"use strict";function o(u,C,e,f){"object"==typeof C&&(e=C.depth,f=C.prototype,C=C.circular);var w=[],Q=[],d=void 0!==l;return void 0===C&&(C=!0),void 0===e&&(e=1/0),function Y(y,p){if(null===y)return null;if(0==p)return y;var m,D;if("object"!=typeof y)return y;if(o.__isArray(y))m=[];else if(o.__isRegExp(y))m=new RegExp(y.source,E(y)),y.lastIndex&&(m.lastIndex=y.lastIndex);else if(o.__isDate(y))m=new Date(y.getTime());else{if(d&&l.isBuffer(y))return m=l.allocUnsafe?l.allocUnsafe(y.length):new l(y.length),y.copy(m),m;void 0===f?(D=Object.getPrototypeOf(y),m=Object.create(D)):(m=Object.create(f),D=f)}if(C){var U=w.indexOf(y);if(-1!=U)return Q[U];w.push(y),Q.push(m)}for(var N in y){var F;D&&(F=Object.getOwnPropertyDescriptor(D,N)),(!F||null!=F.set)&&(m[N]=Y(y[N],p-1))}return m}(u,e)}function c(u){return Object.prototype.toString.call(u)}function E(u){var C="";return u.global&&(C+="g"),u.ignoreCase&&(C+="i"),u.multiline&&(C+="m"),C}return o.clonePrototype=function(C){if(null===C)return null;var e=function(){};return e.prototype=C,new e},o.__objToStr=c,o.__isDate=function h(u){return"object"==typeof u&&"[object Date]"===c(u)},o.__isArray=function a(u){return"object"==typeof u&&"[object Array]"===c(u)},o.__isRegExp=function B(u){return"object"==typeof u&&"[object RegExp]"===c(u)},o.__getRegExpFlags=E,o}();T.exports&&(T.exports=i)},4667:function(T,I,n){n(2479);var l=n(857);T.exports=l.Object.values},7633:function(T,I,n){n(9170),n(6992),n(1539),n(8674),n(7922),n(4668),n(7727),n(8783);var l=n(857);T.exports=l.Promise},3867:function(T,I,n){var l=n(1150);n(8628),n(7314),n(7479),n(6290),T.exports=l},9662:function(T,I,n){var l=n(7854),i=n(614),o=n(6330),c=l.TypeError;T.exports=function(h){if(i(h))return h;throw c(o(h)+" is not a function")}},9483:function(T,I,n){var l=n(7854),i=n(4411),o=n(6330),c=l.TypeError;T.exports=function(h){if(i(h))return h;throw c(o(h)+" is not a constructor")}},6077:function(T,I,n){var l=n(7854),i=n(614),o=l.String,c=l.TypeError;T.exports=function(h){if("object"==typeof h||i(h))return h;throw c("Can't set "+o(h)+" as a prototype")}},1223:function(T,I,n){var l=n(5112),i=n(30),o=n(3070),c=l("unscopables"),h=Array.prototype;null==h[c]&&o.f(h,c,{configurable:!0,value:i(null)}),T.exports=function(a){h[c][a]=!0}},1530:function(T,I,n){"use strict";var l=n(8710).charAt;T.exports=function(i,o,c){return o+(c?l(i,o).length:1)}},5787:function(T,I,n){var l=n(7854),i=n(7976),o=l.TypeError;T.exports=function(c,h){if(i(h,c))return c;throw o("Incorrect invocation")}},9670:function(T,I,n){var l=n(7854),i=n(111),o=l.String,c=l.TypeError;T.exports=function(h){if(i(h))return h;throw c(o(h)+" is not an object")}},1048:function(T,I,n){"use strict";var l=n(7908),i=n(1400),o=n(6244),c=Math.min;T.exports=[].copyWithin||function(a,B){var E=l(this),u=o(E),C=i(a,u),e=i(B,u),f=arguments.length>2?arguments[2]:void 0,g=c((void 0===f?u:i(f,u))-e,u-C),w=1;for(e0;)e in E?E[C]=E[e]:delete E[C],C+=w,e+=w;return E}},1285:function(T,I,n){"use strict";var l=n(7908),i=n(1400),o=n(6244);T.exports=function(h){for(var a=l(this),B=o(a),E=arguments.length,u=i(E>1?arguments[1]:void 0,B),C=E>2?arguments[2]:void 0,e=void 0===C?B:i(C,B);e>u;)a[u++]=h;return a}},8533:function(T,I,n){"use strict";var l=n(2092).forEach,o=n(9341)("forEach");T.exports=o?[].forEach:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}},7745:function(T){T.exports=function(I,n){for(var l=0,i=n.length,o=new I(i);i>l;)o[l]=n[l++];return o}},8457:function(T,I,n){"use strict";var l=n(7854),i=n(9974),o=n(6916),c=n(7908),h=n(3411),a=n(7659),B=n(4411),E=n(6244),u=n(6135),C=n(8554),e=n(1246),f=l.Array;T.exports=function(w){var Q=c(w),d=B(this),Y=arguments.length,y=Y>1?arguments[1]:void 0,p=void 0!==y;p&&(y=i(y,Y>2?arguments[2]:void 0));var U,N,F,z,L,W,m=e(Q),D=0;if(!m||this==f&&a(m))for(U=E(Q),N=d?new this(U):f(U);U>D;D++)W=p?y(Q[D],D):Q[D],u(N,D,W);else for(L=(z=C(Q,m)).next,N=d?new this:[];!(F=o(L,z)).done;D++)W=p?h(z,y,[F.value,D],!0):F.value,u(N,D,W);return N.length=D,N}},1318:function(T,I,n){var l=n(5656),i=n(1400),o=n(6244),c=function(h){return function(a,B,E){var f,u=l(a),C=o(u),e=i(E,C);if(h&&B!=B){for(;C>e;)if((f=u[e++])!=f)return!0}else for(;C>e;e++)if((h||e in u)&&u[e]===B)return h||e||0;return!h&&-1}};T.exports={includes:c(!0),indexOf:c(!1)}},2092:function(T,I,n){var l=n(9974),i=n(1702),o=n(8361),c=n(7908),h=n(6244),a=n(5417),B=i([].push),E=function(u){var C=1==u,e=2==u,f=3==u,g=4==u,w=6==u,Q=7==u,d=5==u||w;return function(Y,y,p,m){for(var aA,AA,D=c(Y),U=o(D),N=l(y,p),F=h(U),z=0,L=m||a,W=C?L(Y,F):e||Q?L(Y,0):void 0;F>z;z++)if((d||z in U)&&(AA=N(aA=U[z],z,D),u))if(C)W[z]=AA;else if(AA)switch(u){case 3:return!0;case 5:return aA;case 6:return z;case 2:B(W,aA)}else switch(u){case 4:return!1;case 7:B(W,aA)}return w?-1:f||g?g:W}};T.exports={forEach:E(0),map:E(1),filter:E(2),some:E(3),every:E(4),find:E(5),findIndex:E(6),filterReject:E(7)}},6583:function(T,I,n){"use strict";var l=n(2104),i=n(5656),o=n(9303),c=n(6244),h=n(9341),a=Math.min,B=[].lastIndexOf,E=!!B&&1/[1].lastIndexOf(1,-0)<0,u=h("lastIndexOf");T.exports=E||!u?function(f){if(E)return l(B,this,arguments)||0;var g=i(this),w=c(g),Q=w-1;for(arguments.length>1&&(Q=a(Q,o(arguments[1]))),Q<0&&(Q=w+Q);Q>=0;Q--)if(Q in g&&g[Q]===f)return Q||0;return-1}:B},1194:function(T,I,n){var l=n(7293),i=n(5112),o=n(7392),c=i("species");T.exports=function(h){return o>=51||!l(function(){var a=[];return(a.constructor={})[c]=function(){return{foo:1}},1!==a[h](Boolean).foo})}},9341:function(T,I,n){"use strict";var l=n(7293);T.exports=function(i,o){var c=[][i];return!!c&&l(function(){c.call(null,o||function(){throw 1},1)})}},3671:function(T,I,n){var l=n(7854),i=n(9662),o=n(7908),c=n(8361),h=n(6244),a=l.TypeError,B=function(E){return function(u,C,e,f){i(C);var g=o(u),w=c(g),Q=h(g),d=E?Q-1:0,Y=E?-1:1;if(e<2)for(;;){if(d in w){f=w[d],d+=Y;break}if(d+=Y,E?d<0:Q<=d)throw a("Reduce of empty array with no initial value")}for(;E?d>=0:Q>d;d+=Y)d in w&&(f=C(f,w[d],d,g));return f}};T.exports={left:B(!1),right:B(!0)}},206:function(T,I,n){var l=n(1702);T.exports=l([].slice)},4362:function(T,I,n){var l=n(206),i=Math.floor,o=function(a,B){var E=a.length,u=i(E/2);return E<8?c(a,B):h(a,o(l(a,0,u),B),o(l(a,u),B),B)},c=function(a,B){for(var C,e,E=a.length,u=1;u0;)a[e]=a[--e];e!==u++&&(a[e]=C)}return a},h=function(a,B,E,u){for(var C=B.length,e=E.length,f=0,g=0;f1?arguments[1]:void 0);W=W?W.next:z.first;)for(L(W.value,W.key,this);W&&W.removed;)W=W.previous},has:function(F){return!!U(this,F)}}),o(p,d?{get:function(F){var z=U(this,F);return z&&z.value},set:function(F,z){return D(this,0===F?0:F,z)}}:{add:function(F){return D(this,F=0===F?0:F,F)}}),u&&l(p,"size",{get:function(){return m(this).size}}),y},setStrong:function(w,Q,d){var Y=Q+" Iterator",y=g(Q),p=g(Y);B(w,Q,function(m,D){f(this,{type:Y,target:m,state:y(m),kind:D,last:void 0})},function(){for(var m=p(this),D=m.kind,U=m.last;U&&U.removed;)U=U.previous;return m.target&&(m.last=U=U?U.next:m.state.first)?"keys"==D?{value:U.key,done:!1}:"values"==D?{value:U.value,done:!1}:{value:[U.key,U.value],done:!1}:(m.target=void 0,{value:void 0,done:!0})},d?"entries":"values",!d,!0),E(Q)}}},7710:function(T,I,n){"use strict";var l=n(2109),i=n(7854),o=n(1702),c=n(4705),h=n(1320),a=n(2423),B=n(408),E=n(5787),u=n(614),C=n(111),e=n(7293),f=n(7072),g=n(8003),w=n(9587);T.exports=function(Q,d,Y){var y=-1!==Q.indexOf("Map"),p=-1!==Q.indexOf("Weak"),m=y?"set":"add",D=i[Q],U=D&&D.prototype,N=D,F={},z=function(lA){var gA=o(U[lA]);h(U,lA,"add"==lA?function(DA){return gA(this,0===DA?0:DA),this}:"delete"==lA?function(BA){return!(p&&!C(BA))&&gA(this,0===BA?0:BA)}:"get"==lA?function(DA){return p&&!C(DA)?void 0:gA(this,0===DA?0:DA)}:"has"==lA?function(DA){return!(p&&!C(DA))&&gA(this,0===DA?0:DA)}:function(DA,FA){return gA(this,0===DA?0:DA,FA),this})};if(c(Q,!u(D)||!(p||U.forEach&&!e(function(){(new D).entries().next()}))))N=Y.getConstructor(d,Q,y,m),a.enable();else if(c(Q,!0)){var W=new N,aA=W[m](p?{}:-0,1)!=W,AA=e(function(){W.has(1)}),cA=f(function(lA){new D(lA)}),MA=!p&&e(function(){for(var lA=new D,gA=5;gA--;)lA[m](gA,gA);return!lA.has(-0)});cA||((N=d(function(lA,gA){E(lA,U);var BA=w(new D,lA,N);return null!=gA&&B(gA,BA[m],{that:BA,AS_ENTRIES:y}),BA})).prototype=U,U.constructor=N),(AA||MA)&&(z("delete"),z("has"),y&&z("get")),(MA||aA)&&z(m),p&&U.clear&&delete U.clear}return F[Q]=N,l({global:!0,forced:N!=D},F),g(N,Q),p||Y.setStrong(N,Q,y),N}},9920:function(T,I,n){var l=n(2597),i=n(3887),o=n(1236),c=n(3070);T.exports=function(h,a){for(var B=i(a),E=c.f,u=o.f,C=0;C"+C+""}},4994:function(T,I,n){"use strict";var l=n(3383).IteratorPrototype,i=n(30),o=n(9114),c=n(8003),h=n(7497),a=function(){return this};T.exports=function(B,E,u){var C=E+" Iterator";return B.prototype=i(l,{next:o(1,u)}),c(B,C,!1,!0),h[C]=a,B}},8880:function(T,I,n){var l=n(9781),i=n(3070),o=n(9114);T.exports=l?function(c,h,a){return i.f(c,h,o(1,a))}:function(c,h,a){return c[h]=a,c}},9114:function(T){T.exports=function(I,n){return{enumerable:!(1&I),configurable:!(2&I),writable:!(4&I),value:n}}},6135:function(T,I,n){"use strict";var l=n(4948),i=n(3070),o=n(9114);T.exports=function(c,h,a){var B=l(h);B in c?i.f(c,B,o(0,a)):c[B]=a}},8709:function(T,I,n){"use strict";var l=n(7854),i=n(9670),o=n(2140),c=l.TypeError;T.exports=function(h){if(i(this),"string"===h||"default"===h)h="string";else if("number"!==h)throw c("Incorrect hint");return o(this,h)}},654:function(T,I,n){"use strict";var l=n(2109),i=n(6916),o=n(1913),c=n(6530),h=n(614),a=n(4994),B=n(9518),E=n(7674),u=n(8003),C=n(8880),e=n(1320),f=n(5112),g=n(7497),w=n(3383),Q=c.PROPER,d=c.CONFIGURABLE,Y=w.IteratorPrototype,y=w.BUGGY_SAFARI_ITERATORS,p=f("iterator"),m="keys",D="values",U="entries",N=function(){return this};T.exports=function(F,z,L,W,aA,AA,cA){a(L,z,W);var dA,uA,CA,MA=function(NA){if(NA===aA&&FA)return FA;if(!y&&NA in BA)return BA[NA];switch(NA){case m:case D:case U:return function(){return new L(this,NA)}}return function(){return new L(this)}},lA=z+" Iterator",gA=!1,BA=F.prototype,DA=BA[p]||BA["@@iterator"]||aA&&BA[aA],FA=!y&&DA||MA(aA),_="Array"==z&&BA.entries||DA;if(_&&(dA=B(_.call(new F)))!==Object.prototype&&dA.next&&(!o&&B(dA)!==Y&&(E?E(dA,Y):h(dA[p])||e(dA,p,N)),u(dA,lA,!0,!0),o&&(g[lA]=N)),Q&&aA==D&&DA&&DA.name!==D&&(!o&&d?C(BA,"name",D):(gA=!0,FA=function(){return i(DA,this)})),aA)if(uA={values:MA(D),keys:AA?FA:MA(m),entries:MA(U)},cA)for(CA in uA)(y||gA||!(CA in BA))&&e(BA,CA,uA[CA]);else l({target:z,proto:!0,forced:y||gA},uA);return(!o||cA)&&BA[p]!==FA&&e(BA,p,FA,{name:aA}),g[z]=FA,uA}},7235:function(T,I,n){var l=n(857),i=n(2597),o=n(6061),c=n(3070).f;T.exports=function(h){var a=l.Symbol||(l.Symbol={});i(a,h)||c(a,h,{value:o.f(h)})}},9781:function(T,I,n){var l=n(7293);T.exports=!l(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},317:function(T,I,n){var l=n(7854),i=n(111),o=l.document,c=i(o)&&i(o.createElement);T.exports=function(h){return c?o.createElement(h):{}}},8324:function(T){T.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:function(T,I,n){var i=n(317)("span").classList,o=i&&i.constructor&&i.constructor.prototype;T.exports=o===Object.prototype?void 0:o},8886:function(T,I,n){var i=n(8113).match(/firefox\/(\d+)/i);T.exports=!!i&&+i[1]},7871:function(T){T.exports="object"==typeof window},256:function(T,I,n){var l=n(8113);T.exports=/MSIE|Trident/.test(l)},1528:function(T,I,n){var l=n(8113),i=n(7854);T.exports=/ipad|iphone|ipod/i.test(l)&&void 0!==i.Pebble},6833:function(T,I,n){var l=n(8113);T.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(l)},5268:function(T,I,n){var l=n(4326),i=n(7854);T.exports="process"==l(i.process)},1036:function(T,I,n){var l=n(8113);T.exports=/web0s(?!.*chrome)/i.test(l)},8113:function(T,I,n){var l=n(5005);T.exports=l("navigator","userAgent")||""},7392:function(T,I,n){var B,E,l=n(7854),i=n(8113),o=l.process,c=l.Deno,h=o&&o.versions||c&&c.version,a=h&&h.v8;a&&(E=(B=a.split("."))[0]>0&&B[0]<4?1:+(B[0]+B[1])),!E&&i&&(!(B=i.match(/Edge\/(\d+)/))||B[1]>=74)&&(B=i.match(/Chrome\/(\d+)/))&&(E=+B[1]),T.exports=E},8008:function(T,I,n){var i=n(8113).match(/AppleWebKit\/(\d+)\./);T.exports=!!i&&+i[1]},748:function(T){T.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(T,I,n){var l=n(7293),i=n(9114);T.exports=!l(function(){var o=Error("a");return!("stack"in o)||(Object.defineProperty(o,"stack",i(1,7)),7!==o.stack)})},2109:function(T,I,n){var l=n(7854),i=n(1236).f,o=n(8880),c=n(1320),h=n(3505),a=n(9920),B=n(4705);T.exports=function(E,u){var w,Q,d,Y,y,C=E.target,e=E.global,f=E.stat;if(w=e?l:f?l[C]||h(C,{}):(l[C]||{}).prototype)for(Q in u){if(Y=u[Q],d=E.noTargetGet?(y=i(w,Q))&&y.value:w[Q],!B(e?Q:C+(f?".":"#")+Q,E.forced)&&void 0!==d){if(typeof Y==typeof d)continue;a(Y,d)}(E.sham||d&&d.sham)&&o(Y,"sham",!0),c(w,Q,Y,E)}}},7293:function(T){T.exports=function(I){try{return!!I()}catch(n){return!0}}},7007:function(T,I,n){"use strict";n(4916);var l=n(1702),i=n(1320),o=n(2261),c=n(7293),h=n(5112),a=n(8880),B=h("species"),E=RegExp.prototype;T.exports=function(u,C,e,f){var g=h(u),w=!c(function(){var y={};return y[g]=function(){return 7},7!=""[u](y)}),Q=w&&!c(function(){var y=!1,p=/a/;return"split"===u&&((p={}).constructor={},p.constructor[B]=function(){return p},p.flags="",p[g]=/./[g]),p.exec=function(){return y=!0,null},p[g](""),!y});if(!w||!Q||e){var d=l(/./[g]),Y=C(g,""[u],function(y,p,m,D,U){var N=l(y),F=p.exec;return F===o||F===E.exec?w&&!U?{done:!0,value:d(p,m,D)}:{done:!0,value:N(m,p,D)}:{done:!1}});i(String.prototype,u,Y[0]),i(E,g,Y[1])}f&&a(E[g],"sham",!0)}},6677:function(T,I,n){var l=n(7293);T.exports=!l(function(){return Object.isExtensible(Object.preventExtensions({}))})},2104:function(T){var I=Function.prototype,n=I.apply,i=I.call;T.exports="object"==typeof Reflect&&Reflect.apply||(I.bind?i.bind(n):function(){return i.apply(n,arguments)})},9974:function(T,I,n){var l=n(1702),i=n(9662),o=l(l.bind);T.exports=function(c,h){return i(c),void 0===h?c:o?o(c,h):function(){return c.apply(h,arguments)}}},7065:function(T,I,n){"use strict";var l=n(7854),i=n(1702),o=n(9662),c=n(111),h=n(2597),a=n(206),B=l.Function,E=i([].concat),u=i([].join),C={},e=function(f,g,w){if(!h(C,g)){for(var Q=[],d=0;d]*>)/g,E=/\$([$&'`]|\d{1,2})/g;T.exports=function(u,C,e,f,g,w){var Q=e+u.length,d=f.length,Y=E;return void 0!==g&&(g=i(g),Y=B),h(w,Y,function(y,p){var m;switch(c(p,0)){case"$":return"$";case"&":return u;case"`":return a(C,0,e);case"'":return a(C,Q);case"<":m=g[a(p,1,-1)];break;default:var D=+p;if(0===D)return y;if(D>d){var U=o(D/10);return 0===U?y:U<=d?void 0===f[U-1]?c(p,1):f[U-1]+c(p,1):y}m=f[D-1]}return void 0===m?"":m})}},7854:function(T,I,n){var l=function(i){return i&&i.Math==Math&&i};T.exports=l("object"==typeof globalThis&&globalThis)||l("object"==typeof window&&window)||l("object"==typeof self&&self)||l("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(T,I,n){var l=n(1702),i=n(7908),o=l({}.hasOwnProperty);T.exports=Object.hasOwn||function(h,a){return o(i(h),a)}},3501:function(T){T.exports={}},842:function(T,I,n){var l=n(7854);T.exports=function(i,o){var c=l.console;c&&c.error&&(1==arguments.length?c.error(i):c.error(i,o))}},490:function(T,I,n){var l=n(5005);T.exports=l("document","documentElement")},4664:function(T,I,n){var l=n(9781),i=n(7293),o=n(317);T.exports=!l&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},1179:function(T,I,n){var i=n(7854).Array,o=Math.abs,c=Math.pow,h=Math.floor,a=Math.log,B=Math.LN2;T.exports={pack:function(C,e,f){var m,D,U,g=i(f),w=8*f-e-1,Q=(1<>1,Y=23===e?c(2,-24)-c(2,-77):0,y=C<0||0===C&&1/C<0?1:0,p=0;for((C=o(C))!=C||C===1/0?(D=C!=C?1:0,m=Q):(m=h(a(C)/B),C*(U=c(2,-m))<1&&(m--,U*=2),(C+=m+d>=1?Y/U:Y*c(2,1-d))*U>=2&&(m++,U/=2),m+d>=Q?(D=0,m=Q):m+d>=1?(D=(C*U-1)*c(2,e),m+=d):(D=C*c(2,d-1)*c(2,e),m=0));e>=8;g[p++]=255&D,D/=256,e-=8);for(m=m<0;g[p++]=255&m,m/=256,w-=8);return g[--p]|=128*y,g},unpack:function(C,e){var m,f=C.length,g=8*f-e-1,w=(1<>1,d=g-7,Y=f-1,y=C[Y--],p=127&y;for(y>>=7;d>0;p=256*p+C[Y],Y--,d-=8);for(m=p&(1<<-d)-1,p>>=-d,d+=e;d>0;m=256*m+C[Y],Y--,d-=8);if(0===p)p=1-Q;else{if(p===w)return m?NaN:y?-1/0:1/0;m+=c(2,e),p-=Q}return(y?-1:1)*m*c(2,p-e)}}},8361:function(T,I,n){var l=n(7854),i=n(1702),o=n(7293),c=n(4326),h=l.Object,a=i("".split);T.exports=o(function(){return!h("z").propertyIsEnumerable(0)})?function(B){return"String"==c(B)?a(B,""):h(B)}:h},9587:function(T,I,n){var l=n(614),i=n(111),o=n(7674);T.exports=function(c,h,a){var B,E;return o&&l(B=h.constructor)&&B!==a&&i(E=B.prototype)&&E!==a.prototype&&o(c,E),c}},2788:function(T,I,n){var l=n(1702),i=n(614),o=n(5465),c=l(Function.toString);i(o.inspectSource)||(o.inspectSource=function(h){return c(h)}),T.exports=o.inspectSource},8340:function(T,I,n){var l=n(111),i=n(8880);T.exports=function(o,c){l(c)&&"cause"in c&&i(o,"cause",c.cause)}},2423:function(T,I,n){var l=n(2109),i=n(1702),o=n(3501),c=n(111),h=n(2597),a=n(3070).f,B=n(8006),E=n(1156),u=n(9711),C=n(6677),e=!1,f=u("meta"),g=0,w=Object.isExtensible||function(){return!0},Q=function(D){a(D,f,{value:{objectID:"O"+g++,weakData:{}}})},m=T.exports={enable:function(){m.enable=function(){},e=!0;var D=B.f,U=i([].splice),N={};N[f]=1,D(N).length&&(B.f=function(F){for(var z=D(F),L=0,W=z.length;Lz;z++)if((W=MA(Q[z]))&&E(w,W))return W;return new g(!1)}N=u(Q,F)}for(aA=N.next;!(AA=o(aA,N)).done;){try{W=MA(AA.value)}catch(lA){e(N,"throw",lA)}if("object"==typeof W&&W&&E(w,W))return W}return new g(!1)}},9212:function(T,I,n){var l=n(6916),i=n(9670),o=n(8173);T.exports=function(c,h,a){var B,E;i(c);try{if(!(B=o(c,"return"))){if("throw"===h)throw a;return a}B=l(B,c)}catch(u){E=!0,B=u}if("throw"===h)throw a;if(E)throw B;return i(B),a}},3383:function(T,I,n){"use strict";var C,e,f,l=n(7293),i=n(614),o=n(30),c=n(9518),h=n(1320),a=n(5112),B=n(1913),E=a("iterator"),u=!1;[].keys&&("next"in(f=[].keys())?(e=c(c(f)))!==Object.prototype&&(C=e):u=!0),null==C||l(function(){var w={};return C[E].call(w)!==w})?C={}:B&&(C=o(C)),i(C[E])||h(C,E,function(){return this}),T.exports={IteratorPrototype:C,BUGGY_SAFARI_ITERATORS:u}},7497:function(T){T.exports={}},6244:function(T,I,n){var l=n(7466);T.exports=function(i){return l(i.length)}},5948:function(T,I,n){var Q,d,Y,y,p,m,D,U,l=n(7854),i=n(9974),o=n(1236).f,c=n(261).set,h=n(6833),a=n(1528),B=n(1036),E=n(5268),u=l.MutationObserver||l.WebKitMutationObserver,C=l.document,e=l.process,f=l.Promise,g=o(l,"queueMicrotask"),w=g&&g.value;w||(Q=function(){var N,F;for(E&&(N=e.domain)&&N.exit();d;){F=d.fn,d=d.next;try{F()}catch(z){throw d?y():Y=void 0,z}}Y=void 0,N&&N.enter()},h||E||B||!u||!C?!a&&f&&f.resolve?((D=f.resolve(void 0)).constructor=f,U=i(D.then,D),y=function(){U(Q)}):E?y=function(){e.nextTick(Q)}:(c=i(c,l),y=function(){c(Q)}):(p=!0,m=C.createTextNode(""),new u(Q).observe(m,{characterData:!0}),y=function(){m.data=p=!p})),T.exports=w||function(N){var F={fn:N,next:void 0};Y&&(Y.next=F),d||(d=F,y()),Y=F}},3366:function(T,I,n){var l=n(7854);T.exports=l.Promise},133:function(T,I,n){var l=n(7392),i=n(7293);T.exports=!!Object.getOwnPropertySymbols&&!i(function(){var o=Symbol();return!String(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&l&&l<41})},8536:function(T,I,n){var l=n(7854),i=n(614),o=n(2788),c=l.WeakMap;T.exports=i(c)&&/native code/.test(o(c))},8523:function(T,I,n){"use strict";var l=n(9662),i=function(o){var c,h;this.promise=new o(function(a,B){if(void 0!==c||void 0!==h)throw TypeError("Bad Promise constructor");c=a,h=B}),this.resolve=l(c),this.reject=l(h)};T.exports.f=function(o){return new i(o)}},6277:function(T,I,n){var l=n(1340);T.exports=function(i,o){return void 0===i?arguments.length<2?"":o:l(i)}},3929:function(T,I,n){var l=n(7854),i=n(7850),o=l.TypeError;T.exports=function(c){if(i(c))throw o("The method doesn't accept regular expressions");return c}},7023:function(T,I,n){var i=n(7854).isFinite;T.exports=Number.isFinite||function(c){return"number"==typeof c&&i(c)}},1574:function(T,I,n){"use strict";var l=n(9781),i=n(1702),o=n(6916),c=n(7293),h=n(1956),a=n(5181),B=n(5296),E=n(7908),u=n(8361),C=Object.assign,e=Object.defineProperty,f=i([].concat);T.exports=!C||c(function(){if(l&&1!==C({b:1},C(e({},"a",{enumerable:!0,get:function(){e(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var g={},w={},Q=Symbol(),d="abcdefghijklmnopqrst";return g[Q]=7,d.split("").forEach(function(Y){w[Y]=Y}),7!=C({},g)[Q]||h(C({},w)).join("")!=d})?function(w,Q){for(var d=E(w),Y=arguments.length,y=1,p=a.f,m=B.f;Y>y;)for(var z,D=u(arguments[y++]),U=p?f(h(D),p(D)):h(D),N=U.length,F=0;N>F;)z=U[F++],(!l||o(m,D,z))&&(d[z]=D[z]);return d}:C},30:function(T,I,n){var Y,l=n(9670),i=n(6048),o=n(748),c=n(3501),h=n(490),a=n(317),B=n(6200),C="prototype",e="script",f=B("IE_PROTO"),g=function(){},w=function(p){return"<"+e+">"+p+""},Q=function(p){p.write(w("")),p.close();var m=p.parentWindow.Object;return p=null,m},y=function(){try{Y=new ActiveXObject("htmlfile")}catch(m){}y="undefined"!=typeof document?document.domain&&Y?Q(Y):function(){var D,p=a("iframe");return p.style.display="none",h.appendChild(p),p.src=String("javascript:"),(D=p.contentWindow.document).open(),D.write(w("document.F=Object")),D.close(),D.F}():Q(Y);for(var p=o.length;p--;)delete y[C][o[p]];return y()};c[f]=!0,T.exports=Object.create||function(m,D){var U;return null!==m?(g[C]=l(m),U=new g,g[C]=null,U[f]=m):U=y(),void 0===D?U:i(U,D)}},6048:function(T,I,n){var l=n(9781),i=n(3070),o=n(9670),c=n(5656),h=n(1956);T.exports=l?Object.defineProperties:function(B,E){o(B);for(var g,u=c(E),C=h(E),e=C.length,f=0;e>f;)i.f(B,g=C[f++],u[g]);return B}},3070:function(T,I,n){var l=n(7854),i=n(9781),o=n(4664),c=n(9670),h=n(4948),a=l.TypeError,B=Object.defineProperty;I.f=i?B:function(u,C,e){if(c(u),C=h(C),c(e),o)try{return B(u,C,e)}catch(f){}if("get"in e||"set"in e)throw a("Accessors not supported");return"value"in e&&(u[C]=e.value),u}},1236:function(T,I,n){var l=n(9781),i=n(6916),o=n(5296),c=n(9114),h=n(5656),a=n(4948),B=n(2597),E=n(4664),u=Object.getOwnPropertyDescriptor;I.f=l?u:function(e,f){if(e=h(e),f=a(f),E)try{return u(e,f)}catch(g){}if(B(e,f))return c(!i(o.f,e,f),e[f])}},1156:function(T,I,n){var l=n(4326),i=n(5656),o=n(8006).f,c=n(206),h="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];T.exports.f=function(E){return h&&"Window"==l(E)?function(B){try{return o(B)}catch(E){return c(h)}}(E):o(i(E))}},8006:function(T,I,n){var l=n(6324),o=n(748).concat("length","prototype");I.f=Object.getOwnPropertyNames||function(h){return l(h,o)}},5181:function(T,I){I.f=Object.getOwnPropertySymbols},9518:function(T,I,n){var l=n(7854),i=n(2597),o=n(614),c=n(7908),h=n(6200),a=n(8544),B=h("IE_PROTO"),E=l.Object,u=E.prototype;T.exports=a?E.getPrototypeOf:function(C){var e=c(C);if(i(e,B))return e[B];var f=e.constructor;return o(f)&&e instanceof f?f.prototype:e instanceof E?u:null}},7976:function(T,I,n){var l=n(1702);T.exports=l({}.isPrototypeOf)},6324:function(T,I,n){var l=n(1702),i=n(2597),o=n(5656),c=n(1318).indexOf,h=n(3501),a=l([].push);T.exports=function(B,E){var f,u=o(B),C=0,e=[];for(f in u)!i(h,f)&&i(u,f)&&a(e,f);for(;E.length>C;)i(u,f=E[C++])&&(~c(e,f)||a(e,f));return e}},1956:function(T,I,n){var l=n(6324),i=n(748);T.exports=Object.keys||function(c){return l(c,i)}},5296:function(T,I){"use strict";var n={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,i=l&&!n.call({1:2},1);I.f=i?function(c){var h=l(this,c);return!!h&&h.enumerable}:n},7674:function(T,I,n){var l=n(1702),i=n(9670),o=n(6077);T.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var a,c=!1,h={};try{(a=l(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(h,[]),c=h instanceof Array}catch(B){}return function(E,u){return i(E),o(u),c?a(E,u):E.__proto__=u,E}}():void 0)},4699:function(T,I,n){var l=n(9781),i=n(1702),o=n(1956),c=n(5656),a=i(n(5296).f),B=i([].push),E=function(u){return function(C){for(var d,e=c(C),f=o(e),g=f.length,w=0,Q=[];g>w;)d=f[w++],(!l||a(e,d))&&B(Q,u?[d,e[d]]:e[d]);return Q}};T.exports={entries:E(!0),values:E(!1)}},288:function(T,I,n){"use strict";var l=n(1694),i=n(648);T.exports=l?{}.toString:function(){return"[object "+i(this)+"]"}},2140:function(T,I,n){var l=n(7854),i=n(6916),o=n(614),c=n(111),h=l.TypeError;T.exports=function(a,B){var E,u;if("string"===B&&o(E=a.toString)&&!c(u=i(E,a))||o(E=a.valueOf)&&!c(u=i(E,a))||"string"!==B&&o(E=a.toString)&&!c(u=i(E,a)))return u;throw h("Can't convert object to primitive value")}},3887:function(T,I,n){var l=n(5005),i=n(1702),o=n(8006),c=n(5181),h=n(9670),a=i([].concat);T.exports=l("Reflect","ownKeys")||function(E){var u=o.f(h(E)),C=c.f;return C?a(u,C(E)):u}},857:function(T,I,n){var l=n(7854);T.exports=l},2534:function(T){T.exports=function(I){try{return{error:!1,value:I()}}catch(n){return{error:!0,value:n}}}},9478:function(T,I,n){var l=n(9670),i=n(111),o=n(8523);T.exports=function(c,h){if(l(c),i(h)&&h.constructor===c)return h;var a=o.f(c);return(0,a.resolve)(h),a.promise}},2248:function(T,I,n){var l=n(1320);T.exports=function(i,o,c){for(var h in o)l(i,h,o[h],c);return i}},1320:function(T,I,n){var l=n(7854),i=n(614),o=n(2597),c=n(8880),h=n(3505),a=n(2788),B=n(9909),E=n(6530).CONFIGURABLE,u=B.get,C=B.enforce,e=String(String).split("String");(T.exports=function(f,g,w,Q){var m,d=!!Q&&!!Q.unsafe,Y=!!Q&&!!Q.enumerable,y=!!Q&&!!Q.noTargetGet,p=Q&&void 0!==Q.name?Q.name:g;i(w)&&("Symbol("===String(p).slice(0,7)&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(w,"name")||E&&w.name!==p)&&c(w,"name",p),(m=C(w)).source||(m.source=e.join("string"==typeof p?p:""))),f!==l?(d?!y&&f[g]&&(Y=!0):delete f[g],Y?f[g]=w:c(f,g,w)):Y?f[g]=w:h(g,w)})(Function.prototype,"toString",function(){return i(this)&&u(this).source||a(this)})},7651:function(T,I,n){var l=n(7854),i=n(6916),o=n(9670),c=n(614),h=n(4326),a=n(2261),B=l.TypeError;T.exports=function(E,u){var C=E.exec;if(c(C)){var e=i(C,E,u);return null!==e&&o(e),e}if("RegExp"===h(E))return i(a,E,u);throw B("RegExp#exec called on incompatible receiver")}},2261:function(T,I,n){"use strict";var U,N,l=n(6916),i=n(1702),o=n(1340),c=n(7066),h=n(2999),a=n(2309),B=n(30),E=n(9909).get,u=n(9441),C=n(7168),e=a("native-string-replace",String.prototype.replace),f=RegExp.prototype.exec,g=f,w=i("".charAt),Q=i("".indexOf),d=i("".replace),Y=i("".slice),y=(N=/b*/g,l(f,U=/a/,"a"),l(f,N,"a"),0!==U.lastIndex||0!==N.lastIndex),p=h.UNSUPPORTED_Y||h.BROKEN_CARET,m=void 0!==/()??/.exec("")[1];(y||m||p||u||C)&&(g=function(N){var aA,AA,cA,MA,lA,gA,BA,F=this,z=E(F),L=o(N),W=z.raw;if(W)return W.lastIndex=F.lastIndex,aA=l(g,W,L),F.lastIndex=W.lastIndex,aA;var DA=z.groups,FA=p&&F.sticky,_=l(c,F),dA=F.source,uA=0,CA=L;if(FA&&(_=d(_,"y",""),-1===Q(_,"g")&&(_+="g"),CA=Y(L,F.lastIndex),F.lastIndex>0&&(!F.multiline||F.multiline&&"\n"!==w(L,F.lastIndex-1))&&(dA="(?: "+dA+")",CA=" "+CA,uA++),AA=new RegExp("^(?:"+dA+")",_)),m&&(AA=new RegExp("^"+dA+"$(?!\\s)",_)),y&&(cA=F.lastIndex),MA=l(f,FA?AA:F,CA),FA?MA?(MA.input=Y(MA.input,uA),MA[0]=Y(MA[0],uA),MA.index=F.lastIndex,F.lastIndex+=MA[0].length):F.lastIndex=0:y&&MA&&(F.lastIndex=F.global?MA.index+MA[0].length:cA),m&&MA&&MA.length>1&&l(e,MA[0],AA,function(){for(lA=1;lAb)","g");return"b"!==c.exec("b").groups.a||"bc"!=="b".replace(c,"$c")})},4488:function(T,I,n){var i=n(7854).TypeError;T.exports=function(o){if(null==o)throw i("Can't call method on "+o);return o}},3505:function(T,I,n){var l=n(7854),i=Object.defineProperty;T.exports=function(o,c){try{i(l,o,{value:c,configurable:!0,writable:!0})}catch(h){l[o]=c}return c}},6340:function(T,I,n){"use strict";var l=n(5005),i=n(3070),o=n(5112),c=n(9781),h=o("species");T.exports=function(a){var B=l(a);c&&B&&!B[h]&&(0,i.f)(B,h,{configurable:!0,get:function(){return this}})}},8003:function(T,I,n){var l=n(3070).f,i=n(2597),c=n(5112)("toStringTag");T.exports=function(h,a,B){h&&!i(h=B?h:h.prototype,c)&&l(h,c,{configurable:!0,value:a})}},6200:function(T,I,n){var l=n(2309),i=n(9711),o=l("keys");T.exports=function(c){return o[c]||(o[c]=i(c))}},5465:function(T,I,n){var l=n(7854),i=n(3505),o="__core-js_shared__",c=l[o]||i(o,{});T.exports=c},2309:function(T,I,n){var l=n(1913),i=n(5465);(T.exports=function(o,c){return i[o]||(i[o]=void 0!==c?c:{})})("versions",[]).push({version:"3.19.0",mode:l?"pure":"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(T,I,n){var l=n(9670),i=n(9483),c=n(5112)("species");T.exports=function(h,a){var E,B=l(h).constructor;return void 0===B||null==(E=l(B)[c])?a:i(E)}},3429:function(T,I,n){var l=n(7293);T.exports=function(i){return l(function(){var o=""[i]('"');return o!==o.toLowerCase()||o.split('"').length>3})}},8710:function(T,I,n){var l=n(1702),i=n(9303),o=n(1340),c=n(4488),h=l("".charAt),a=l("".charCodeAt),B=l("".slice),E=function(u){return function(C,e){var Q,d,f=o(c(C)),g=i(e),w=f.length;return g<0||g>=w?u?"":void 0:(Q=a(f,g))<55296||Q>56319||g+1===w||(d=a(f,g+1))<56320||d>57343?u?h(f,g):Q:u?B(f,g,g+2):d-56320+(Q-55296<<10)+65536}};T.exports={codeAt:E(!1),charAt:E(!0)}},8415:function(T,I,n){"use strict";var l=n(7854),i=n(9303),o=n(1340),c=n(4488),h=l.RangeError;T.exports=function(B){var E=o(c(this)),u="",C=i(B);if(C<0||C==1/0)throw h("Wrong number of repetitions");for(;C>0;(C>>>=1)&&(E+=E))1&C&&(u+=E);return u}},6091:function(T,I,n){var l=n(6530).PROPER,i=n(7293),o=n(1361);T.exports=function(h){return i(function(){return!!o[h]()||"\u200b\x85\u180e"!=="\u200b\x85\u180e"[h]()||l&&o[h].name!==h})}},3111:function(T,I,n){var l=n(1702),i=n(4488),o=n(1340),c=n(1361),h=l("".replace),a="["+c+"]",B=RegExp("^"+a+a+"*"),E=RegExp(a+a+"*$"),u=function(C){return function(e){var f=o(i(e));return 1&C&&(f=h(f,B,"")),2&C&&(f=h(f,E,"")),f}};T.exports={start:u(1),end:u(2),trim:u(3)}},261:function(T,I,n){var U,N,F,z,l=n(7854),i=n(2104),o=n(9974),c=n(614),h=n(2597),a=n(7293),B=n(490),E=n(206),u=n(317),C=n(6833),e=n(5268),f=l.setImmediate,g=l.clearImmediate,w=l.process,Q=l.Dispatch,d=l.Function,Y=l.MessageChannel,y=l.String,p=0,m={},D="onreadystatechange";try{U=l.location}catch(cA){}var L=function(cA){if(h(m,cA)){var MA=m[cA];delete m[cA],MA()}},W=function(cA){return function(){L(cA)}},aA=function(cA){L(cA.data)},AA=function(cA){l.postMessage(y(cA),U.protocol+"//"+U.host)};(!f||!g)&&(f=function(MA){var lA=E(arguments,1);return m[++p]=function(){i(c(MA)?MA:d(MA),void 0,lA)},N(p),p},g=function(MA){delete m[MA]},e?N=function(cA){w.nextTick(W(cA))}:Q&&Q.now?N=function(cA){Q.now(W(cA))}:Y&&!C?(z=(F=new Y).port2,F.port1.onmessage=aA,N=o(z.postMessage,z)):l.addEventListener&&c(l.postMessage)&&!l.importScripts&&U&&"file:"!==U.protocol&&!a(AA)?(N=AA,l.addEventListener("message",aA,!1)):N=D in u("script")?function(cA){B.appendChild(u("script"))[D]=function(){B.removeChild(this),L(cA)}}:function(cA){setTimeout(W(cA),0)}),T.exports={set:f,clear:g}},863:function(T,I,n){var l=n(1702);T.exports=l(1..valueOf)},1400:function(T,I,n){var l=n(9303),i=Math.max,o=Math.min;T.exports=function(c,h){var a=l(c);return a<0?i(a+h,0):o(a,h)}},7067:function(T,I,n){var l=n(7854),i=n(9303),o=n(7466),c=l.RangeError;T.exports=function(h){if(void 0===h)return 0;var a=i(h),B=o(a);if(a!==B)throw c("Wrong length or index");return B}},5656:function(T,I,n){var l=n(8361),i=n(4488);T.exports=function(o){return l(i(o))}},9303:function(T){var I=Math.ceil,n=Math.floor;T.exports=function(l){var i=+l;return i!=i||0===i?0:(i>0?n:I)(i)}},7466:function(T,I,n){var l=n(9303),i=Math.min;T.exports=function(o){return o>0?i(l(o),9007199254740991):0}},7908:function(T,I,n){var l=n(7854),i=n(4488),o=l.Object;T.exports=function(c){return o(i(c))}},4590:function(T,I,n){var l=n(7854),i=n(3002),o=l.RangeError;T.exports=function(c,h){var a=i(c);if(a%h)throw o("Wrong offset");return a}},3002:function(T,I,n){var l=n(7854),i=n(9303),o=l.RangeError;T.exports=function(c){var h=i(c);if(h<0)throw o("The argument can't be less than 0");return h}},7593:function(T,I,n){var l=n(7854),i=n(6916),o=n(111),c=n(2190),h=n(8173),a=n(2140),B=n(5112),E=l.TypeError,u=B("toPrimitive");T.exports=function(C,e){if(!o(C)||c(C))return C;var g,f=h(C,u);if(f){if(void 0===e&&(e="default"),g=i(f,C,e),!o(g)||c(g))return g;throw E("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(C,e)}},4948:function(T,I,n){var l=n(7593),i=n(2190);T.exports=function(o){var c=l(o,"string");return i(c)?c:c+""}},1694:function(T,I,n){var o={};o[n(5112)("toStringTag")]="z",T.exports="[object z]"===String(o)},1340:function(T,I,n){var l=n(7854),i=n(648),o=l.String;T.exports=function(c){if("Symbol"===i(c))throw TypeError("Cannot convert a Symbol value to a string");return o(c)}},6330:function(T,I,n){var i=n(7854).String;T.exports=function(o){try{return i(o)}catch(c){return"Object"}}},9843:function(T,I,n){"use strict";var l=n(2109),i=n(7854),o=n(6916),c=n(9781),h=n(3832),a=n(2094),B=n(2091),E=n(5787),u=n(9114),C=n(8880),e=n(5988),f=n(7466),g=n(7067),w=n(4590),Q=n(4948),d=n(2597),Y=n(648),y=n(111),p=n(2190),m=n(30),D=n(7976),U=n(7674),N=n(8006).f,F=n(7321),z=n(2092).forEach,L=n(6340),W=n(3070),aA=n(1236),AA=n(9909),cA=n(9587),MA=AA.get,lA=AA.set,gA=W.f,BA=aA.f,DA=Math.round,FA=i.RangeError,_=B.ArrayBuffer,dA=_.prototype,uA=B.DataView,CA=a.NATIVE_ARRAY_BUFFER_VIEWS,NA=a.TYPED_ARRAY_CONSTRUCTOR,bA=a.TYPED_ARRAY_TAG,XA=a.TypedArray,q=a.TypedArrayPrototype,O=a.aTypedArrayConstructor,$=a.isTypedArray,V="BYTES_PER_ELEMENT",hA="Wrong length",mA=function(TA,it){O(TA);for(var mt=0,It=it.length,ut=new TA(It);It>mt;)ut[mt]=it[mt++];return ut},nA=function(TA,it){gA(TA,it,{get:function(){return MA(this)[it]}})},EA=function(TA){var it;return D(dA,TA)||"ArrayBuffer"==(it=Y(TA))||"SharedArrayBuffer"==it},GA=function(TA,it){return $(TA)&&!p(it)&&it in TA&&e(+it)&&it>=0},et=function(it,mt){return mt=Q(mt),GA(it,mt)?u(2,it[mt]):BA(it,mt)},ot=function(it,mt,It){return mt=Q(mt),!(GA(it,mt)&&y(It)&&d(It,"value"))||d(It,"get")||d(It,"set")||It.configurable||d(It,"writable")&&!It.writable||d(It,"enumerable")&&!It.enumerable?gA(it,mt,It):(it[mt]=It.value,it)};c?(CA||(aA.f=et,W.f=ot,nA(q,"buffer"),nA(q,"byteOffset"),nA(q,"byteLength"),nA(q,"length")),l({target:"Object",stat:!0,forced:!CA},{getOwnPropertyDescriptor:et,defineProperty:ot}),T.exports=function(TA,it,mt){var It=TA.match(/\d+$/)[0]/8,ut=TA+(mt?"Clamped":"")+"Array",JA="get"+TA,VA="set"+TA,rt=i[ut],yA=rt,Mt=yA&&yA.prototype,Et={},H=function(k,R){gA(k,R,{get:function(){return function(k,R){var QA=MA(k);return QA.view[JA](R*It+QA.byteOffset,!0)}(this,R)},set:function(QA){return function(k,R,QA){var wA=MA(k);mt&&(QA=(QA=DA(QA))<0?0:QA>255?255:255&QA),wA.view[VA](R*It+wA.byteOffset,QA,!0)}(this,R,QA)},enumerable:!0})};CA?h&&(yA=it(function(k,R,QA,wA){return E(k,Mt),cA(y(R)?EA(R)?void 0!==wA?new rt(R,w(QA,It),wA):void 0!==QA?new rt(R,w(QA,It)):new rt(R):$(R)?mA(yA,R):o(F,yA,R):new rt(g(R)),k,yA)}),U&&U(yA,XA),z(N(rt),function(k){k in yA||C(yA,k,rt[k])}),yA.prototype=Mt):(yA=it(function(k,R,QA,wA){E(k,Mt);var lt,Ft,j,PA=0,rA=0;if(y(R)){if(!EA(R))return $(R)?mA(yA,R):o(F,yA,R);lt=R,rA=w(QA,It);var kA=R.byteLength;if(void 0===wA){if(kA%It||(Ft=kA-rA)<0)throw FA(hA)}else if((Ft=f(wA)*It)+rA>kA)throw FA(hA);j=Ft/It}else j=g(R),lt=new _(Ft=j*It);for(lA(k,{buffer:lt,byteOffset:rA,byteLength:Ft,length:j,view:new uA(lt)});PA1?arguments[1]:void 0,d=void 0!==Q,Y=B(g);if(Y&&!E(Y))for(N=(U=a(g,Y)).next,g=[];!(D=i(N,U)).done;)g.push(D.value);for(d&&w>2&&(Q=l(Q,arguments[2])),p=h(g),m=new(u(f))(p),y=0;p>y;y++)m[y]=d?Q(g[y],y):g[y];return m}},6304:function(T,I,n){var l=n(2094),i=n(6707),o=l.TYPED_ARRAY_CONSTRUCTOR,c=l.aTypedArrayConstructor;T.exports=function(h){return c(i(h,h[o]))}},9711:function(T,I,n){var l=n(1702),i=0,o=Math.random(),c=l(1..toString);T.exports=function(h){return"Symbol("+(void 0===h?"":h)+")_"+c(++i+o,36)}},3307:function(T,I,n){var l=n(133);T.exports=l&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},6061:function(T,I,n){var l=n(5112);I.f=l},5112:function(T,I,n){var l=n(7854),i=n(2309),o=n(2597),c=n(9711),h=n(133),a=n(3307),B=i("wks"),E=l.Symbol,u=E&&E.for,C=a?E:E&&E.withoutSetter||c;T.exports=function(e){if(!o(B,e)||!h&&"string"!=typeof B[e]){var f="Symbol."+e;B[e]=h&&o(E,e)?E[e]:a&&u?u(f):C(f)}return B[e]}},1361:function(T){T.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},9170:function(T,I,n){"use strict";var l=n(2109),i=n(7854),o=n(7976),c=n(9518),h=n(7674),a=n(9920),B=n(30),E=n(8880),u=n(9114),C=n(7741),e=n(8340),f=n(408),g=n(6277),w=n(2914),Q=i.Error,d=[].push,Y=function(m,D){var U=o(y,this)?this:B(y),N=arguments.length>2?arguments[2]:void 0;h&&(U=h(new Q(void 0),c(U))),E(U,"message",g(D,"")),w&&E(U,"stack",C(U.stack,1)),e(U,N);var F=[];return f(m,d,{that:F}),E(U,"errors",F),U};h?h(Y,Q):a(Y,Q);var y=Y.prototype=B(Q.prototype,{constructor:u(1,Y),message:u(1,""),name:u(1,"AggregateError")});l({global:!0},{AggregateError:Y})},2222:function(T,I,n){"use strict";var l=n(2109),i=n(7854),o=n(7293),c=n(3157),h=n(111),a=n(7908),B=n(6244),E=n(6135),u=n(5417),C=n(1194),e=n(5112),f=n(7392),g=e("isConcatSpreadable"),w=9007199254740991,Q="Maximum allowed index exceeded",d=i.TypeError,Y=f>=51||!o(function(){var D=[];return D[g]=!1,D.concat()[0]!==D}),y=C("concat"),p=function(D){if(!h(D))return!1;var U=D[g];return void 0!==U?!!U:c(D)};l({target:"Array",proto:!0,forced:!Y||!y},{concat:function(U){var L,W,aA,AA,cA,N=a(this),F=u(N,0),z=0;for(L=-1,aA=arguments.length;Lw)throw d(Q);for(W=0;W=w)throw d(Q);E(F,z++,cA)}return F.length=z,F}})},545:function(T,I,n){var l=n(2109),i=n(1048),o=n(1223);l({target:"Array",proto:!0},{copyWithin:i}),o("copyWithin")},3290:function(T,I,n){var l=n(2109),i=n(1285),o=n(1223);l({target:"Array",proto:!0},{fill:i}),o("fill")},7327:function(T,I,n){"use strict";var l=n(2109),i=n(2092).filter;l({target:"Array",proto:!0,forced:!n(1194)("filter")},{filter:function(a){return i(this,a,arguments.length>1?arguments[1]:void 0)}})},1038:function(T,I,n){var l=n(2109),i=n(8457);l({target:"Array",stat:!0,forced:!n(7072)(function(h){Array.from(h)})},{from:i})},6699:function(T,I,n){"use strict";var l=n(2109),i=n(1318).includes,o=n(1223);l({target:"Array",proto:!0},{includes:function(h){return i(this,h,arguments.length>1?arguments[1]:void 0)}}),o("includes")},6992:function(T,I,n){"use strict";var l=n(5656),i=n(1223),o=n(7497),c=n(9909),h=n(654),a="Array Iterator",B=c.set,E=c.getterFor(a);T.exports=h(Array,"Array",function(u,C){B(this,{type:a,target:l(u),index:0,kind:C})},function(){var u=E(this),C=u.target,e=u.kind,f=u.index++;return!C||f>=C.length?(u.target=void 0,{value:void 0,done:!0}):"keys"==e?{value:f,done:!1}:"values"==e?{value:C[f],done:!1}:{value:[f,C[f]],done:!1}},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},9600:function(T,I,n){"use strict";var l=n(2109),i=n(1702),o=n(8361),c=n(5656),h=n(9341),a=i([].join),B=o!=Object,E=h("join",",");l({target:"Array",proto:!0,forced:B||!E},{join:function(C){return a(c(this),void 0===C?",":C)}})},1249:function(T,I,n){"use strict";var l=n(2109),i=n(2092).map;l({target:"Array",proto:!0,forced:!n(1194)("map")},{map:function(a){return i(this,a,arguments.length>1?arguments[1]:void 0)}})},7042:function(T,I,n){"use strict";var l=n(2109),i=n(7854),o=n(3157),c=n(4411),h=n(111),a=n(1400),B=n(6244),E=n(5656),u=n(6135),C=n(5112),e=n(1194),f=n(206),g=e("slice"),w=C("species"),Q=i.Array,d=Math.max;l({target:"Array",proto:!0,forced:!g},{slice:function(y,p){var F,z,L,m=E(this),D=B(m),U=a(y,D),N=a(void 0===p?D:p,D);if(o(m)&&((c(F=m.constructor)&&(F===Q||o(F.prototype))||h(F)&&null===(F=F[w]))&&(F=void 0),F===Q||void 0===F))return f(m,U,N);for(z=new(void 0===F?Q:F)(d(N-U,0)),L=0;U3)){if(e)return!0;if(g)return g<603;var F,z,L,W,N="";for(F=65;F<76;F++){switch(z=String.fromCharCode(F),F){case 66:case 69:case 70:case 72:L=3;break;case 68:case 71:L=4;break;default:L=2}for(W=0;W<47;W++)w.push({k:z+W,v:L})}for(w.sort(function(aA,AA){return AA.v-aA.v}),W=0;Wa(z)?1:-1}}(F)),aA=L.length,AA=0;AAw)throw e(Q);for(z=B(p,F),L=0;Lm-F+N;L--)delete p[L-1]}else if(N>F)for(L=m-F;L>D;L--)aA=L+N-1,(W=L+F-1)in p?p[aA]=p[W]:delete p[aA];for(L=0;L2)if(cA=d(cA),43===(MA=U(cA,0))||45===MA){if(88===(lA=U(cA,2))||120===lA)return NaN}else if(48===MA){switch(U(cA,1)){case 66:case 98:gA=2,BA=49;break;case 79:case 111:gA=8,BA=55;break;default:return+cA}for(FA=(DA=D(cA,2)).length,_=0;_BA)return NaN;return parseInt(DA,gA)}return+cA};if(c(Y,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var aA,z=function(cA){var MA=arguments.length<1?0:y(N(cA)),lA=this;return E(p,lA)&&e(function(){Q(lA)})?B(Object(MA),lA,z):MA},L=l?f(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),W=0;L.length>W;W++)a(y,aA=L[W])&&!a(z,aA)&&w(z,aA,g(y,aA));z.prototype=p,p.constructor=z,h(i,Y,z)}},3299:function(T,I,n){n(2109)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},5192:function(T,I,n){n(2109)({target:"Number",stat:!0},{isFinite:n(7023)})},3161:function(T,I,n){n(2109)({target:"Number",stat:!0},{isInteger:n(5988)})},6977:function(T,I,n){"use strict";var l=n(2109),i=n(7854),o=n(1702),c=n(9303),h=n(863),a=n(8415),B=n(7293),E=i.RangeError,u=i.String,C=Math.floor,e=o(a),f=o("".slice),g=o(1..toFixed),w=function(m,D,U){return 0===D?U:D%2==1?w(m,D-1,U*m):w(m*m,D/2,U)},d=function(m,D,U){for(var N=-1,F=U;++N<6;)m[N]=(F+=D*m[N])%1e7,F=C(F/1e7)},Y=function(m,D){for(var U=6,N=0;--U>=0;)m[U]=C((N+=m[U])/D),N=N%D*1e7},y=function(m){for(var D=6,U="";--D>=0;)if(""!==U||0===D||0!==m[D]){var N=u(m[D]);U=""===U?N:U+e("0",7-N.length)+N}return U};l({target:"Number",proto:!0,forced:B(function(){return"0.000"!==g(8e-5,3)||"1"!==g(.9,0)||"1.25"!==g(1.255,2)||"1000000000000000128"!==g(0xde0b6b3a7640080,0)})||!B(function(){g({})})},{toFixed:function(D){var W,aA,AA,cA,U=h(this),N=c(D),F=[0,0,0,0,0,0],z="",L="0";if(N<0||N>20)throw E("Incorrect fraction digits");if(U!=U)return"NaN";if(U<=-1e21||U>=1e21)return u(U);if(U<0&&(z="-",U=-U),U>1e-21)if(aA=(W=function(m){for(var D=0,U=m;U>=4096;)D+=12,U/=4096;for(;U>=2;)D+=1,U/=2;return D}(U*w(2,69,1))-69)<0?U*w(2,-W,1):U/w(2,W,1),aA*=4503599627370496,(W=52-W)>0){for(d(F,0,aA),AA=N;AA>=7;)d(F,1e7,0),AA-=7;for(d(F,w(10,AA,1),0),AA=W-1;AA>=23;)Y(F,8388608),AA-=23;Y(F,1<0?z+((cA=L.length)<=N?"0."+e("0",N-cA)+L:f(L,0,cA-N)+"."+f(L,cA-N)):z+L}})},9601:function(T,I,n){var l=n(2109),i=n(1574);l({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},3371:function(T,I,n){var l=n(2109),i=n(6677),o=n(7293),c=n(111),h=n(2423).onFreeze,a=Object.freeze;l({target:"Object",stat:!0,forced:o(function(){a(1)}),sham:!i},{freeze:function(u){return a&&c(u)?a(h(u)):u}})},5003:function(T,I,n){var l=n(2109),i=n(7293),o=n(5656),c=n(1236).f,h=n(9781),a=i(function(){c(1)});l({target:"Object",stat:!0,forced:!h||a,sham:!h},{getOwnPropertyDescriptor:function(u,C){return c(o(u),C)}})},9337:function(T,I,n){var l=n(2109),i=n(9781),o=n(3887),c=n(5656),h=n(1236),a=n(6135);l({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(E){for(var w,Q,u=c(E),C=h.f,e=o(u),f={},g=0;e.length>g;)void 0!==(Q=C(u,w=e[g++]))&&a(f,w,Q);return f}})},489:function(T,I,n){var l=n(2109),i=n(7293),o=n(7908),c=n(9518),h=n(8544);l({target:"Object",stat:!0,forced:i(function(){c(1)}),sham:!h},{getPrototypeOf:function(E){return c(o(E))}})},7941:function(T,I,n){var l=n(2109),i=n(7908),o=n(1956);l({target:"Object",stat:!0,forced:n(7293)(function(){o(1)})},{keys:function(B){return o(i(B))}})},1539:function(T,I,n){var l=n(1694),i=n(1320),o=n(288);l||i(Object.prototype,"toString",o,{unsafe:!0})},2479:function(T,I,n){var l=n(2109),i=n(4699).values;l({target:"Object",stat:!0},{values:function(c){return i(c)}})},7922:function(T,I,n){"use strict";var l=n(2109),i=n(6916),o=n(9662),c=n(8523),h=n(2534),a=n(408);l({target:"Promise",stat:!0},{allSettled:function(E){var u=this,C=c.f(u),e=C.resolve,f=C.reject,g=h(function(){var w=o(u.resolve),Q=[],d=0,Y=1;a(E,function(y){var p=d++,m=!1;Y++,i(w,u,y).then(function(D){m||(m=!0,Q[p]={status:"fulfilled",value:D},--Y||e(Q))},function(D){m||(m=!0,Q[p]={status:"rejected",reason:D},--Y||e(Q))})}),--Y||e(Q)});return g.error&&f(g.value),C.promise}})},4668:function(T,I,n){"use strict";var l=n(2109),i=n(9662),o=n(5005),c=n(6916),h=n(8523),a=n(2534),B=n(408),E="No one promise resolved";l({target:"Promise",stat:!0},{any:function(C){var e=this,f=o("AggregateError"),g=h.f(e),w=g.resolve,Q=g.reject,d=a(function(){var Y=i(e.resolve),y=[],p=0,m=1,D=!1;B(C,function(U){var N=p++,F=!1;m++,c(Y,e,U).then(function(z){F||D||(D=!0,w(z))},function(z){F||D||(F=!0,y[N]=z,--m||Q(new f(y,E)))})}),--m||Q(new f(y,E))});return d.error&&Q(d.value),g.promise}})},7727:function(T,I,n){"use strict";var l=n(2109),i=n(1913),o=n(3366),c=n(7293),h=n(5005),a=n(614),B=n(6707),E=n(9478),u=n(1320);if(l({target:"Promise",proto:!0,real:!0,forced:!!o&&c(function(){o.prototype.finally.call({then:function(){}},function(){})})},{finally:function(f){var g=B(this,h("Promise")),w=a(f);return this.then(w?function(Q){return E(g,f()).then(function(){return Q})}:f,w?function(Q){return E(g,f()).then(function(){throw Q})}:f)}}),!i&&a(o)){var e=h("Promise").prototype.finally;o.prototype.finally!==e&&u(o.prototype,"finally",e,{unsafe:!0})}},8674:function(T,I,n){"use strict";var TA,it,mt,It,l=n(2109),i=n(1913),o=n(7854),c=n(5005),h=n(6916),a=n(3366),B=n(1320),E=n(2248),u=n(7674),C=n(8003),e=n(6340),f=n(9662),g=n(614),w=n(111),Q=n(5787),d=n(2788),Y=n(408),y=n(7072),p=n(6707),m=n(261).set,D=n(5948),U=n(9478),N=n(842),F=n(8523),z=n(2534),L=n(9909),W=n(4705),aA=n(5112),AA=n(7871),cA=n(5268),MA=n(7392),lA=aA("species"),gA="Promise",BA=L.get,DA=L.set,FA=L.getterFor(gA),_=a&&a.prototype,dA=a,uA=_,CA=o.TypeError,NA=o.document,bA=o.process,XA=F.f,q=XA,O=!!(NA&&NA.createEvent&&o.dispatchEvent),$=g(o.PromiseRejectionEvent),V="unhandledrejection",ot=!1,ut=W(gA,function(){var R=d(dA),QA=R!==String(dA);if(!QA&&66===MA||i&&!uA.finally)return!0;if(MA>=51&&/native code/.test(R))return!1;var wA=new dA(function(lt){lt(1)}),PA=function(lt){lt(function(){},function(){})};return(wA.constructor={})[lA]=PA,!(ot=wA.then(function(){})instanceof PA)||!QA&&AA&&!$}),JA=ut||!y(function(R){dA.all(R).catch(function(){})}),VA=function(R){var QA;return!(!w(R)||!g(QA=R.then))&&QA},rt=function(R,QA){if(!R.notified){R.notified=!0;var wA=R.reactions;D(function(){for(var PA=R.value,rA=1==R.state,lt=0;wA.length>lt;){var ZA,st,Lt,Ft=wA[lt++],j=rA?Ft.ok:Ft.fail,kA=Ft.resolve,At=Ft.reject,xA=Ft.domain;try{j?(rA||(2===R.rejection&&OA(R),R.rejection=1),!0===j?ZA=PA:(xA&&xA.enter(),ZA=j(PA),xA&&(xA.exit(),Lt=!0)),ZA===Ft.promise?At(CA("Promise-chain cycle")):(st=VA(ZA))?h(st,ZA,kA,At):kA(ZA)):At(PA)}catch(vt){xA&&!Lt&&xA.exit(),At(vt)}}R.reactions=[],R.notified=!1,QA&&!R.rejection&&Mt(R)})}},yA=function(R,QA,wA){var PA,rA;O?((PA=NA.createEvent("Event")).promise=QA,PA.reason=wA,PA.initEvent(R,!1,!0),o.dispatchEvent(PA)):PA={promise:QA,reason:wA},!$&&(rA=o["on"+R])?rA(PA):R===V&&N("Unhandled promise rejection",wA)},Mt=function(R){h(m,o,function(){var rA,QA=R.facade,wA=R.value;if(Et(R)&&(rA=z(function(){cA?bA.emit("unhandledRejection",wA,QA):yA(V,QA,wA)}),R.rejection=cA||Et(R)?2:1,rA.error))throw rA.value})},Et=function(R){return 1!==R.rejection&&!R.parent},OA=function(R){h(m,o,function(){var QA=R.facade;cA?bA.emit("rejectionHandled",QA):yA("rejectionhandled",QA,R.value)})},Yt=function(R,QA,wA){return function(PA){R(QA,PA,wA)}},H=function(R,QA,wA){R.done||(R.done=!0,wA&&(R=wA),R.value=QA,R.state=2,rt(R,!0))},k=function(R,QA,wA){if(!R.done){R.done=!0,wA&&(R=wA);try{if(R.facade===QA)throw CA("Promise can't be resolved itself");var PA=VA(QA);PA?D(function(){var rA={done:!1};try{h(PA,QA,Yt(k,rA,R),Yt(H,rA,R))}catch(lt){H(rA,lt,R)}}):(R.value=QA,R.state=1,rt(R,!1))}catch(rA){H({done:!1},rA,R)}}};if(ut&&(dA=function(QA){Q(this,uA),f(QA),h(TA,this);var wA=BA(this);try{QA(Yt(k,wA),Yt(H,wA))}catch(PA){H(wA,PA)}},(TA=function(QA){DA(this,{type:gA,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=E(uA=dA.prototype,{then:function(QA,wA){var PA=FA(this),rA=PA.reactions,lt=XA(p(this,dA));return lt.ok=!g(QA)||QA,lt.fail=g(wA)&&wA,lt.domain=cA?bA.domain:void 0,PA.parent=!0,rA[rA.length]=lt,0!=PA.state&&rt(PA,!1),lt.promise},catch:function(R){return this.then(void 0,R)}}),it=function(){var R=new TA,QA=BA(R);this.promise=R,this.resolve=Yt(k,QA),this.reject=Yt(H,QA)},F.f=XA=function(R){return R===dA||R===mt?new it(R):q(R)},!i&&g(a)&&_!==Object.prototype)){It=_.then,ot||(B(_,"then",function(QA,wA){var PA=this;return new dA(function(rA,lt){h(It,PA,rA,lt)}).then(QA,wA)},{unsafe:!0}),B(_,"catch",uA.catch,{unsafe:!0}));try{delete _.constructor}catch(R){}u&&u(_,uA)}l({global:!0,wrap:!0,forced:ut},{Promise:dA}),C(dA,gA,!1,!0),e(gA),mt=c(gA),l({target:gA,stat:!0,forced:ut},{reject:function(QA){var wA=XA(this);return h(wA.reject,void 0,QA),wA.promise}}),l({target:gA,stat:!0,forced:i||ut},{resolve:function(QA){return U(i&&this===mt?dA:this,QA)}}),l({target:gA,stat:!0,forced:JA},{all:function(QA){var wA=this,PA=XA(wA),rA=PA.resolve,lt=PA.reject,Ft=z(function(){var j=f(wA.resolve),kA=[],At=0,xA=1;Y(QA,function(ZA){var st=At++,Lt=!1;xA++,h(j,wA,ZA).then(function(vt){Lt||(Lt=!0,kA[st]=vt,--xA||rA(kA))},lt)}),--xA||rA(kA)});return Ft.error&<(Ft.value),PA.promise},race:function(QA){var wA=this,PA=XA(wA),rA=PA.reject,lt=z(function(){var Ft=f(wA.resolve);Y(QA,function(j){h(Ft,wA,j).then(PA.resolve,rA)})});return lt.error&&rA(lt.value),PA.promise}})},2419:function(T,I,n){var l=n(2109),i=n(5005),o=n(2104),c=n(7065),h=n(9483),a=n(9670),B=n(111),E=n(30),u=n(7293),C=i("Reflect","construct"),e=Object.prototype,f=[].push,g=u(function(){function d(){}return!(C(function(){},[],d)instanceof d)}),w=!u(function(){C(function(){})}),Q=g||w;l({target:"Reflect",stat:!0,forced:Q,sham:Q},{construct:function(Y,y){h(Y),a(y);var p=arguments.length<3?Y:h(arguments[2]);if(w&&!g)return C(Y,y,p);if(Y==p){switch(y.length){case 0:return new Y;case 1:return new Y(y[0]);case 2:return new Y(y[0],y[1]);case 3:return new Y(y[0],y[1],y[2]);case 4:return new Y(y[0],y[1],y[2],y[3])}var m=[null];return o(f,m,y),new(o(c,Y,m))}var D=p.prototype,U=E(B(D)?D:e),N=o(Y,U,y);return B(N)?N:U}})},4916:function(T,I,n){"use strict";var l=n(2109),i=n(2261);l({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},2087:function(T,I,n){var l=n(9781),i=n(3070),o=n(7066),c=n(7293),h=RegExp.prototype;l&&c(function(){return"sy"!==Object.getOwnPropertyDescriptor(h,"flags").get.call({dotAll:!0,sticky:!0})})&&i.f(h,"flags",{configurable:!0,get:o})},9714:function(T,I,n){"use strict";var l=n(1702),i=n(6530).PROPER,o=n(1320),c=n(9670),h=n(7976),a=n(1340),B=n(7293),E=n(7066),u="toString",C=RegExp.prototype,e=C[u],f=l(E);(B(function(){return"/a/b"!=e.call({source:"a",flags:"b"})})||i&&e.name!=u)&&o(RegExp.prototype,u,function(){var d=c(this),Y=a(d.source),y=d.flags;return"/"+Y+"/"+a(void 0===y&&h(C,d)&&!("flags"in C)?f(d):y)},{unsafe:!0})},189:function(T,I,n){"use strict";n(7710)("Set",function(o){return function(){return o(this,arguments.length?arguments[0]:void 0)}},n(5631))},9841:function(T,I,n){"use strict";var l=n(2109),i=n(8710).codeAt;l({target:"String",proto:!0},{codePointAt:function(c){return i(this,c)}})},4953:function(T,I,n){var l=n(2109),i=n(7854),o=n(1702),c=n(1400),h=i.RangeError,a=String.fromCharCode,B=String.fromCodePoint,E=o([].join);l({target:"String",stat:!0,forced:!!B&&1!=B.length},{fromCodePoint:function(e){for(var Q,f=[],g=arguments.length,w=0;g>w;){if(Q=+arguments[w++],c(Q,1114111)!==Q)throw h(Q+" is not a valid code point");f[w]=Q<65536?a(Q):a(55296+((Q-=65536)>>10),Q%1024+56320)}return E(f,"")}})},2023:function(T,I,n){"use strict";var l=n(2109),i=n(1702),o=n(3929),c=n(4488),h=n(1340),a=n(4964),B=i("".indexOf);l({target:"String",proto:!0,forced:!a("includes")},{includes:function(u){return!!~B(h(c(this)),h(o(u)),arguments.length>1?arguments[1]:void 0)}})},8734:function(T,I,n){"use strict";var l=n(2109),i=n(4230);l({target:"String",proto:!0,forced:n(3429)("italics")},{italics:function(){return i(this,"i","","")}})},8783:function(T,I,n){"use strict";var l=n(8710).charAt,i=n(1340),o=n(9909),c=n(654),h="String Iterator",a=o.set,B=o.getterFor(h);c(String,"String",function(E){a(this,{type:h,string:i(E),index:0})},function(){var f,u=B(this),C=u.string,e=u.index;return e>=C.length?{value:void 0,done:!0}:(f=l(C,e),u.index+=f.length,{value:f,done:!1})})},9254:function(T,I,n){"use strict";var l=n(2109),i=n(4230);l({target:"String",proto:!0,forced:n(3429)("link")},{link:function(h){return i(this,"a","href",h)}})},6373:function(T,I,n){"use strict";var l=n(2109),i=n(7854),o=n(6916),c=n(1702),h=n(4994),a=n(4488),B=n(7466),E=n(1340),u=n(9670),C=n(4326),e=n(7976),f=n(7850),g=n(7066),w=n(8173),Q=n(1320),d=n(7293),Y=n(5112),y=n(6707),p=n(1530),m=n(7651),D=n(9909),U=n(1913),N=Y("matchAll"),F="RegExp String",z=F+" Iterator",L=D.set,W=D.getterFor(z),aA=RegExp.prototype,AA=i.TypeError,cA=c(g),MA=c("".indexOf),lA=c("".matchAll),gA=!!lA&&!d(function(){lA("a",/./)}),BA=h(function(_,dA,uA,CA){L(this,{type:z,regexp:_,string:dA,global:uA,unicode:CA,done:!1})},F,function(){var _=W(this);if(_.done)return{value:void 0,done:!0};var dA=_.regexp,uA=_.string,CA=m(dA,uA);return null===CA?{value:void 0,done:_.done=!0}:_.global?(""===E(CA[0])&&(dA.lastIndex=p(uA,B(dA.lastIndex),_.unicode)),{value:CA,done:!1}):(_.done=!0,{value:CA,done:!1})}),DA=function(FA){var uA,CA,NA,bA,XA,q,_=u(this),dA=E(FA);return uA=y(_,RegExp),void 0===(CA=_.flags)&&e(aA,_)&&!("flags"in aA)&&(CA=cA(_)),NA=void 0===CA?"":E(CA),bA=new uA(uA===RegExp?_.source:_,NA),XA=!!~MA(NA,"g"),q=!!~MA(NA,"u"),bA.lastIndex=B(_.lastIndex),new BA(bA,dA,XA,q)};l({target:"String",proto:!0,forced:gA},{matchAll:function(_){var uA,CA,NA,bA,dA=a(this);if(null!=_){if(f(_)&&(uA=E(a("flags"in aA?_.flags:cA(_))),!~MA(uA,"g")))throw AA("`.matchAll` does not allow non-global regexes");if(gA)return lA(dA,_);if(void 0===(NA=w(_,N))&&U&&"RegExp"==C(_)&&(NA=DA),NA)return o(NA,_,dA)}else if(gA)return lA(dA,_);return CA=E(dA),bA=new RegExp(_,"g"),U?o(DA,bA,CA):bA[N](CA)}}),U||N in aA||Q(aA,N,DA)},4723:function(T,I,n){"use strict";var l=n(6916),i=n(7007),o=n(9670),c=n(7466),h=n(1340),a=n(4488),B=n(8173),E=n(1530),u=n(7651);i("match",function(C,e,f){return[function(w){var Q=a(this),d=null==w?void 0:B(w,C);return d?l(d,w,Q):new RegExp(w)[C](h(Q))},function(g){var w=o(this),Q=h(g),d=f(e,w,Q);if(d.done)return d.value;if(!w.global)return u(w,Q);var Y=w.unicode;w.lastIndex=0;for(var m,y=[],p=0;null!==(m=u(w,Q));){var D=h(m[0]);y[p]=D,""===D&&(w.lastIndex=E(Q,c(w.lastIndex),Y)),p++}return 0===p?null:y}]})},2481:function(T,I,n){n(2109)({target:"String",proto:!0},{repeat:n(8415)})},5306:function(T,I,n){"use strict";var l=n(2104),i=n(6916),o=n(1702),c=n(7007),h=n(7293),a=n(9670),B=n(614),E=n(9303),u=n(7466),C=n(1340),e=n(4488),f=n(1530),g=n(8173),w=n(647),Q=n(7651),Y=n(5112)("replace"),y=Math.max,p=Math.min,m=o([].concat),D=o([].push),U=o("".indexOf),N=o("".slice),F=function(aA){return void 0===aA?aA:String(aA)},z="$0"==="a".replace(/./,"$0"),L=!!/./[Y]&&""===/./[Y]("a","$0");c("replace",function(aA,AA,cA){var MA=L?"$":"$0";return[function(gA,BA){var DA=e(this),FA=null==gA?void 0:g(gA,Y);return FA?i(FA,gA,DA,BA):i(AA,C(DA),gA,BA)},function(lA,gA){var BA=a(this),DA=C(lA);if("string"==typeof gA&&-1===U(gA,MA)&&-1===U(gA,"$<")){var FA=cA(AA,BA,DA,gA);if(FA.done)return FA.value}var _=B(gA);_||(gA=C(gA));var dA=BA.global;if(dA){var uA=BA.unicode;BA.lastIndex=0}for(var CA=[];;){var NA=Q(BA,DA);if(null===NA||(D(CA,NA),!dA))break;""===C(NA[0])&&(BA.lastIndex=f(DA,u(BA.lastIndex),uA))}for(var XA="",q=0,O=0;O=q&&(XA+=N(DA,q,V)+GA,q=V+$.length)}return XA+N(DA,q)}]},!!h(function(){var aA=/./;return aA.exec=function(){var AA=[];return AA.groups={a:"7"},AA},"7"!=="".replace(aA,"$")})||!z||L)},3123:function(T,I,n){"use strict";var l=n(2104),i=n(6916),o=n(1702),c=n(7007),h=n(7850),a=n(9670),B=n(4488),E=n(6707),u=n(1530),C=n(7466),e=n(1340),f=n(8173),g=n(206),w=n(7651),Q=n(2261),d=n(2999),Y=n(7293),y=d.UNSUPPORTED_Y,p=4294967295,m=Math.min,D=[].push,U=o(/./.exec),N=o(D),F=o("".slice),z=!Y(function(){var L=/(?:)/,W=L.exec;L.exec=function(){return W.apply(this,arguments)};var aA="ab".split(L);return 2!==aA.length||"a"!==aA[0]||"b"!==aA[1]});c("split",function(L,W,aA){var AA;return AA="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(cA,MA){var lA=e(B(this)),gA=void 0===MA?p:MA>>>0;if(0===gA)return[];if(void 0===cA)return[lA];if(!h(cA))return i(W,lA,cA,gA);for(var dA,uA,CA,BA=[],FA=0,_=new RegExp(cA.source,(cA.ignoreCase?"i":"")+(cA.multiline?"m":"")+(cA.unicode?"u":"")+(cA.sticky?"y":"")+"g");(dA=i(Q,_,lA))&&!((uA=_.lastIndex)>FA&&(N(BA,F(lA,FA,dA.index)),dA.length>1&&dA.index=gA));)_.lastIndex===dA.index&&_.lastIndex++;return FA===lA.length?(CA||!U(_,""))&&N(BA,""):N(BA,F(lA,FA)),BA.length>gA?g(BA,0,gA):BA}:"0".split(void 0,0).length?function(cA,MA){return void 0===cA&&0===MA?[]:i(W,this,cA,MA)}:W,[function(MA,lA){var gA=B(this),BA=null==MA?void 0:f(MA,L);return BA?i(BA,MA,gA,lA):i(AA,e(gA),MA,lA)},function(cA,MA){var lA=a(this),gA=e(cA),BA=aA(AA,lA,gA,MA,AA!==W);if(BA.done)return BA.value;var DA=E(lA,RegExp),FA=lA.unicode,dA=new DA(y?"^(?:"+lA.source+")":lA,(lA.ignoreCase?"i":"")+(lA.multiline?"m":"")+(lA.unicode?"u":"")+(y?"g":"y")),uA=void 0===MA?p:MA>>>0;if(0===uA)return[];if(0===gA.length)return null===w(dA,gA)?[gA]:[];for(var CA=0,NA=0,bA=[];NA2?arguments[2]:void 0)})},8927:function(T,I,n){"use strict";var l=n(2094),i=n(2092).every,o=l.aTypedArray;(0,l.exportTypedArrayMethod)("every",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},3105:function(T,I,n){"use strict";var l=n(2094),i=n(6916),o=n(1285),c=l.aTypedArray;(0,l.exportTypedArrayMethod)("fill",function(B){var E=arguments.length;return i(o,c(this),B,E>1?arguments[1]:void 0,E>2?arguments[2]:void 0)})},5035:function(T,I,n){"use strict";var l=n(2094),i=n(2092).filter,o=n(3074),c=l.aTypedArray;(0,l.exportTypedArrayMethod)("filter",function(B){var E=i(c(this),B,arguments.length>1?arguments[1]:void 0);return o(this,E)})},7174:function(T,I,n){"use strict";var l=n(2094),i=n(2092).findIndex,o=l.aTypedArray;(0,l.exportTypedArrayMethod)("findIndex",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},4345:function(T,I,n){"use strict";var l=n(2094),i=n(2092).find,o=l.aTypedArray;(0,l.exportTypedArrayMethod)("find",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},4197:function(T,I,n){n(9843)("Float32",function(i){return function(c,h,a){return i(this,c,h,a)}})},6495:function(T,I,n){n(9843)("Float64",function(i){return function(c,h,a){return i(this,c,h,a)}})},2846:function(T,I,n){"use strict";var l=n(2094),i=n(2092).forEach,o=l.aTypedArray;(0,l.exportTypedArrayMethod)("forEach",function(a){i(o(this),a,arguments.length>1?arguments[1]:void 0)})},8145:function(T,I,n){"use strict";var l=n(3832);(0,n(2094).exportTypedArrayStaticMethod)("from",n(7321),l)},4731:function(T,I,n){"use strict";var l=n(2094),i=n(1318).includes,o=l.aTypedArray;(0,l.exportTypedArrayMethod)("includes",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},7209:function(T,I,n){"use strict";var l=n(2094),i=n(1318).indexOf,o=l.aTypedArray;(0,l.exportTypedArrayMethod)("indexOf",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},5109:function(T,I,n){n(9843)("Int16",function(i){return function(c,h,a){return i(this,c,h,a)}})},5125:function(T,I,n){n(9843)("Int32",function(i){return function(c,h,a){return i(this,c,h,a)}})},7145:function(T,I,n){n(9843)("Int8",function(i){return function(c,h,a){return i(this,c,h,a)}})},6319:function(T,I,n){"use strict";var l=n(7854),i=n(1702),o=n(6530).PROPER,c=n(2094),h=n(6992),B=n(5112)("iterator"),E=l.Uint8Array,u=i(h.values),C=i(h.keys),e=i(h.entries),f=c.aTypedArray,g=c.exportTypedArrayMethod,w=E&&E.prototype[B],Q=!!w&&"values"===w.name,d=function(){return u(f(this))};g("entries",function(){return e(f(this))}),g("keys",function(){return C(f(this))}),g("values",d,o&&!Q),g(B,d,o&&!Q)},8867:function(T,I,n){"use strict";var l=n(2094),i=n(1702),o=l.aTypedArray,c=l.exportTypedArrayMethod,h=i([].join);c("join",function(B){return h(o(this),B)})},7789:function(T,I,n){"use strict";var l=n(2094),i=n(2104),o=n(6583),c=l.aTypedArray;(0,l.exportTypedArrayMethod)("lastIndexOf",function(B){var E=arguments.length;return i(o,c(this),E>1?[B,arguments[1]]:[B])})},3739:function(T,I,n){"use strict";var l=n(2094),i=n(2092).map,o=n(6304),c=l.aTypedArray;(0,l.exportTypedArrayMethod)("map",function(B){return i(c(this),B,arguments.length>1?arguments[1]:void 0,function(E,u){return new(o(E))(u)})})},4483:function(T,I,n){"use strict";var l=n(2094),i=n(3671).right,o=l.aTypedArray;(0,l.exportTypedArrayMethod)("reduceRight",function(a){var B=arguments.length;return i(o(this),a,B,B>1?arguments[1]:void 0)})},9368:function(T,I,n){"use strict";var l=n(2094),i=n(3671).left,o=l.aTypedArray;(0,l.exportTypedArrayMethod)("reduce",function(a){var B=arguments.length;return i(o(this),a,B,B>1?arguments[1]:void 0)})},2056:function(T,I,n){"use strict";var l=n(2094),i=l.aTypedArray,c=Math.floor;(0,l.exportTypedArrayMethod)("reverse",function(){for(var C,a=this,B=i(a).length,E=c(B/2),u=0;u1?arguments[1]:void 0,1),w=this.length,Q=h(f),d=o(Q),Y=0;if(d+g>w)throw B("Wrong length");for(;Yg;)Q[g]=e[g++];return Q},o(function(){new Int8Array(1).slice()}))},7462:function(T,I,n){"use strict";var l=n(2094),i=n(2092).some,o=l.aTypedArray;(0,l.exportTypedArrayMethod)("some",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},3824:function(T,I,n){"use strict";var l=n(7854),i=n(1702),o=n(7293),c=n(9662),h=n(4362),a=n(2094),B=n(8886),E=n(256),u=n(7392),C=n(8008),e=l.Array,f=a.aTypedArray,g=a.exportTypedArrayMethod,w=l.Uint16Array,Q=w&&i(w.prototype.sort),d=!(!Q||o(function(){Q(new w(2),null)})&&o(function(){Q(new w(2),{})})),Y=!!Q&&!o(function(){if(u)return u<74;if(B)return B<67;if(E)return!0;if(C)return C<602;var D,U,p=new w(516),m=e(516);for(D=0;D<516;D++)U=D%4,p[D]=515-D,m[D]=D-2*U+3;for(Q(p,function(N,F){return(N/4|0)-(F/4|0)}),D=0;D<516;D++)if(p[D]!==m[D])return!0});g("sort",function(m){return void 0!==m&&c(m),Y?Q(this,m):h(f(this),(p=m,function(m,D){return void 0!==p?+p(m,D)||0:D!=D?-1:m!=m?1:0===m&&0===D?1/m>0&&1/D<0?1:-1:m>D}));var p},!Y||d)},5021:function(T,I,n){"use strict";var l=n(2094),i=n(7466),o=n(1400),c=n(6304),h=l.aTypedArray;(0,l.exportTypedArrayMethod)("subarray",function(E,u){var C=h(this),e=C.length,f=o(E,e);return new(c(C))(C.buffer,C.byteOffset+f*C.BYTES_PER_ELEMENT,i((void 0===u?e:o(u,e))-f))})},2974:function(T,I,n){"use strict";var l=n(7854),i=n(2104),o=n(2094),c=n(7293),h=n(206),a=l.Int8Array,B=o.aTypedArray,E=o.exportTypedArrayMethod,u=[].toLocaleString,C=!!a&&c(function(){u.call(new a(1))});E("toLocaleString",function(){return i(u,C?h(B(this)):B(this),h(arguments))},c(function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()})||!c(function(){a.prototype.toLocaleString.call([1,2])}))},5016:function(T,I,n){"use strict";var l=n(2094).exportTypedArrayMethod,i=n(7293),o=n(7854),c=n(1702),h=o.Uint8Array,a=h&&h.prototype||{},B=[].toString,E=c([].join);i(function(){B.call({})})&&(B=function(){return E(this)}),l("toString",B,a.toString!=B)},8255:function(T,I,n){n(9843)("Uint16",function(i){return function(c,h,a){return i(this,c,h,a)}})},9135:function(T,I,n){n(9843)("Uint32",function(i){return function(c,h,a){return i(this,c,h,a)}})},2472:function(T,I,n){n(9843)("Uint8",function(i){return function(c,h,a){return i(this,c,h,a)}})},9743:function(T,I,n){n(9843)("Uint8",function(i){return function(c,h,a){return i(this,c,h,a)}},!0)},8628:function(T,I,n){n(9170)},5743:function(T,I,n){n(5837)},7314:function(T,I,n){n(7922)},6290:function(T,I,n){n(4668)},7479:function(T,I,n){"use strict";var l=n(2109),i=n(8523),o=n(2534);l({target:"Promise",stat:!0},{try:function(c){var h=i.f(this),a=o(c);return(a.error?h.reject:h.resolve)(a.value),h.promise}})},3728:function(T,I,n){n(6373)},4747:function(T,I,n){var l=n(7854),i=n(8324),o=n(8509),c=n(8533),h=n(8880),a=function(E){if(E&&E.forEach!==c)try{h(E,"forEach",c)}catch(u){E.forEach=c}};for(var B in i)i[B]&&a(l[B]&&l[B].prototype);a(o)},3948:function(T,I,n){var l=n(7854),i=n(8324),o=n(8509),c=n(6992),h=n(8880),a=n(5112),B=a("iterator"),E=a("toStringTag"),u=c.values,C=function(f,g){if(f){if(f[B]!==u)try{h(f,B,u)}catch(Q){f[B]=u}if(f[E]||h(f,E,g),i[g])for(var w in c)if(f[w]!==c[w])try{h(f,w,c[w])}catch(Q){f[w]=c[w]}}};for(var e in i)C(l[e]&&l[e].prototype,e);C(o,"DOMTokenList")},3753:function(T,I,n){"use strict";var l=n(2109),i=n(6916);l({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},1150:function(T,I,n){var l=n(7633);n(3948),T.exports=l},251:function(T,I,n){var l=n(2215),i=n(2584),o=n(609),c=n(8420),h=n(2847),a=n(8923),B=Date.prototype.getTime;function E(f,g,w){var Q=w||{};return!!(Q.strict?o(f,g):f===g)||(!f||!g||"object"!=typeof f&&"object"!=typeof g?Q.strict?o(f,g):f==g:function e(f,g,w){var Q,d;if(typeof f!=typeof g||u(f)||u(g)||f.prototype!==g.prototype||i(f)!==i(g))return!1;var Y=c(f),y=c(g);if(Y!==y)return!1;if(Y||y)return f.source===g.source&&h(f)===h(g);if(a(f)&&a(g))return B.call(f)===B.call(g);var p=C(f),m=C(g);if(p!==m)return!1;if(p||m){if(f.length!==g.length)return!1;for(Q=0;Q=0;Q--)if(D[Q]!=U[Q])return!1;for(Q=D.length-1;Q>=0;Q--)if(!E(f[d=D[Q]],g[d],w))return!1;return!0}(f,g,Q))}function u(f){return null==f}function C(f){return!(!f||"object"!=typeof f||"number"!=typeof f.length||"function"!=typeof f.copy||"function"!=typeof f.slice||f.length>0&&"number"!=typeof f[0])}T.exports=E},4289:function(T,I,n){"use strict";var l=n(2215),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,c=Array.prototype.concat,h=Object.defineProperty,E=h&&function(){var e={};try{for(var f in h(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(g){return!1}}(),u=function(e,f,g,w){f in e&&(!function(e){return"function"==typeof e&&"[object Function]"===o.call(e)}(w)||!w())||(E?h(e,f,{configurable:!0,enumerable:!1,value:g,writable:!0}):e[f]=g)},C=function(e,f){var g=arguments.length>2?arguments[2]:{},w=l(f);i&&(w=c.call(w,Object.getOwnPropertySymbols(f)));for(var Q=0;Q0&&z.length>N&&!z.warned){z.warned=!0;var L=new Error("Possible EventEmitter memory leak detected. "+z.length+" "+String(m)+" listeners added. Use emitter.setMaxListeners() to increase limit");L.name="MaxListenersExceededWarning",L.emitter=p,L.type=m,L.count=z.length,function i(p){console&&console.warn&&console.warn(p)}(L)}return p}function u(){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 C(p,m,D){var U={fired:!1,wrapFn:void 0,target:p,type:m,listener:D},N=u.bind(U);return N.listener=D,U.wrapFn=N,N}function e(p,m,D){var U=p._events;if(void 0===U)return[];var N=U[m];return void 0===N?[]:"function"==typeof N?D?[N.listener||N]:[N]:D?function Q(p){for(var m=new Array(p.length),D=0;D0&&(z=D[0]),z instanceof Error)throw z;var L=new Error("Unhandled error."+(z?" ("+z.message+")":""));throw L.context=z,L}var W=F[m];if(void 0===W)return!1;if("function"==typeof W)n(W,this,D);else{var aA=W.length,AA=g(W,aA);for(U=0;U=0;z--)if(U[z]===D||U[z].listener===D){L=U[z].listener,F=z;break}if(F<0)return this;0===F?U.shift():function w(p,m){for(;m+1=0;N--)this.removeListener(m,D[N]);return this},c.prototype.listeners=function(m){return e(this,m,!0)},c.prototype.rawListeners=function(m){return e(this,m,!1)},c.listenerCount=function(p,m){return"function"==typeof p.listenerCount?p.listenerCount(m):f.call(p,m)},c.prototype.listenerCount=f,c.prototype.eventNames=function(){return this._eventsCount>0?l(this._events):[]}},2536:function(T,I,n){var l=n(4275),i=n(7672);void 0===i.pdfMake&&(i.pdfMake=l),T.exports=l},7672:function(T,I,n){"use strict";T.exports=function(){if("object"==typeof globalThis)return globalThis;var l;try{l=this||new Function("return this")()}catch(i){if("object"==typeof window)return window;if("object"==typeof self)return self;if(void 0!==n.g)return n.g}return l}()},9804:function(T){var I=Object.prototype.hasOwnProperty,n=Object.prototype.toString;T.exports=function(i,o,c){if("[object Function]"!==n.call(o))throw new TypeError("iterator must be a function");var h=i.length;if(h===+h)for(var a=0;a1&&"boolean"!=typeof aA)throw new c('"allowMissing" argument must be a boolean');var AA=F(W),cA=AA.length>0?AA[0]:"",MA=z("%"+cA+"%",aA),lA=MA.name,gA=MA.value,BA=!1,DA=MA.alias;DA&&(cA=DA[0],p(AA,y([0,1],DA)));for(var FA=1,_=!0;FA=AA.length){var NA=a(gA,dA);gA=(_=!!NA)&&"get"in NA&&!("originalValue"in NA.get)?NA.get:gA[dA]}else _=Y(gA,dA),gA=gA[dA];_&&!BA&&(g[lA]=gA)}}return gA}},1405:function(T,I,n){"use strict";var l="undefined"!=typeof Symbol&&Symbol,i=n(5419);T.exports=function(){return"function"==typeof l&&"function"==typeof Symbol&&"symbol"==typeof l("foo")&&"symbol"==typeof Symbol("bar")&&i()}},5419:function(T){"use strict";T.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var n={},l=Symbol("test"),i=Object(l);if("string"==typeof l||"[object Symbol]"!==Object.prototype.toString.call(l)||"[object Symbol]"!==Object.prototype.toString.call(i))return!1;for(l in n[l]=42,n)return!1;if("function"==typeof Object.keys&&0!==Object.keys(n).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(n).length)return!1;var c=Object.getOwnPropertySymbols(n);if(1!==c.length||c[0]!==l||!Object.prototype.propertyIsEnumerable.call(n,l))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var h=Object.getOwnPropertyDescriptor(n,l);if(42!==h.value||!0!==h.enumerable)return!1}return!0}},6410:function(T,I,n){"use strict";var l=n(5419);T.exports=function(){return l()&&!!Symbol.toStringTag}},7642:function(T,I,n){"use strict";var l=n(8612);T.exports=l.call(Function.call,Object.prototype.hasOwnProperty)},688:function(T,I,n){"use strict";var l=n(7103).Buffer;I._dbcs=u;for(var i=-1,c=-10,h=-1e3,a=new Array(256),E=0;E<256;E++)a[E]=i;function u(g,w){if(this.encodingName=g.encodingName,!g)throw new Error("DBCS codec is called without the data.");if(!g.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var Q=g.table();this.decodeTables=[],this.decodeTables[0]=a.slice(0),this.decodeTableSeq=[];for(var d=0;dh)throw new Error("gb18030 decode tables conflict at byte 2");for(var U=this.decodeTables[h-m[D]],N=129;N<=254;N++){if(U[N]===i)U[N]=h-y;else{if(U[N]===h-y)continue;if(U[N]>h)throw new Error("gb18030 decode tables conflict at byte 3")}for(var F=this.decodeTables[h-U[N]],z=48;z<=57;z++)F[z]===i&&(F[z]=-2)}}}this.defaultCharUnicode=w.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var L={};if(g.encodeSkipVals)for(d=0;dw)return-1;for(var Q=0,d=g.length;Q>1);g[Y]<=w?Q=Y:d=Y}return Q}u.prototype.encoder=C,u.prototype.decoder=e,u.prototype._getDecodeTrieNode=function(g){for(var w=[];g>0;g>>>=8)w.push(255&g);0==w.length&&w.push(0);for(var Q=this.decodeTables[0],d=w.length-1;d>0;d--){var Y=Q[w[d]];if(Y==i)Q[w[d]]=h-this.decodeTables.length,this.decodeTables.push(Q=a.slice(0));else{if(!(Y<=h))throw new Error("Overwrite byte in "+this.encodingName+", addr: "+g.toString(16));Q=this.decodeTables[h-Y]}}return Q},u.prototype._addDecodeChunk=function(g){var w=parseInt(g[0],16),Q=this._getDecodeTrieNode(w);w&=255;for(var d=1;d255)throw new Error("Incorrect chunk in "+this.encodingName+" at addr "+g[0]+": too long"+w)},u.prototype._getEncodeBucket=function(g){var w=g>>8;return void 0===this.encodeTable[w]&&(this.encodeTable[w]=a.slice(0)),this.encodeTable[w]},u.prototype._setEncodeChar=function(g,w){var Q=this._getEncodeBucket(g),d=255&g;Q[d]<=c?this.encodeTableSeq[c-Q[d]][-1]=w:Q[d]==i&&(Q[d]=w)},u.prototype._setEncodeSequence=function(g,w){var y,Q=g[0],d=this._getEncodeBucket(Q),Y=255&Q;d[Y]<=c?y=this.encodeTableSeq[c-d[Y]]:(y={},d[Y]!==i&&(y[-1]=d[Y]),d[Y]=c-this.encodeTableSeq.length,this.encodeTableSeq.push(y));for(var p=1;p=0)this._setEncodeChar(m,D),Y=!0;else if(m<=h){var U=h-m;y[U]||(this._fillEncodeTable(U,D<<8>>>0,Q)?Y=!0:y[U]=!0)}else m<=c&&(this._setEncodeSequence(this.decodeTableSeq[c-m],D),Y=!0)}return Y},C.prototype.write=function(g){for(var w=l.alloc(g.length*(this.gb18030?4:3)),Q=this.leadSurrogate,d=this.seqObj,Y=-1,y=0,p=0;;){if(-1===Y){if(y==g.length)break;var m=g.charCodeAt(y++)}else m=Y,Y=-1;if(55296<=m&&m<57344)if(m<56320){if(-1===Q){Q=m;continue}Q=m,m=i}else-1!==Q?(m=65536+1024*(Q-55296)+(m-56320),Q=-1):m=i;else-1!==Q&&(Y=m,m=i,Q=-1);var D=i;if(void 0!==d&&m!=i){var U=d[m];if("object"==typeof U){d=U;continue}"number"==typeof U?D=U:null==U&&void 0!==(U=d[-1])&&(D=U,Y=m),d=void 0}else if(m>=0){var N=this.encodeTable[m>>8];if(void 0!==N&&(D=N[255&m]),D<=c){d=this.encodeTableSeq[c-D];continue}if(D==i&&this.gb18030){var F=f(this.gb18030.uChars,m);if(-1!=F){D=this.gb18030.gbChars[F]+(m-this.gb18030.uChars[F]),w[p++]=129+Math.floor(D/12600),D%=12600,w[p++]=48+Math.floor(D/1260),D%=1260,w[p++]=129+Math.floor(D/10),w[p++]=48+(D%=10);continue}}}D===i&&(D=this.defaultCharSingleByte),D<256?w[p++]=D:D<65536?(w[p++]=D>>8,w[p++]=255&D):D<16777216?(w[p++]=D>>16,w[p++]=D>>8&255,w[p++]=255&D):(w[p++]=D>>>24,w[p++]=D>>>16&255,w[p++]=D>>>8&255,w[p++]=255&D)}return this.seqObj=d,this.leadSurrogate=Q,w.slice(0,p)},C.prototype.end=function(){if(-1!==this.leadSurrogate||void 0!==this.seqObj){var g=l.alloc(10),w=0;if(this.seqObj){var Q=this.seqObj[-1];void 0!==Q&&(Q<256?g[w++]=Q:(g[w++]=Q>>8,g[w++]=255&Q)),this.seqObj=void 0}return-1!==this.leadSurrogate&&(g[w++]=this.defaultCharSingleByte,this.leadSurrogate=-1),g.slice(0,w)}},C.prototype.findIdx=f,e.prototype.write=function(g){for(var w=l.alloc(2*g.length),Q=this.nodeIdx,d=this.prevBytes,Y=this.prevBytes.length,y=-this.prevBytes.length,m=0,D=0;m=0?g[m]:d[m+Y];if(!((p=this.decodeTables[Q][U])>=0))if(p===i)p=this.defaultCharUnicode.charCodeAt(0),m=y;else if(-2===p){if(m>=3)var N=12600*(g[m-3]-129)+1260*(g[m-2]-48)+10*(g[m-1]-129)+(U-48);else N=12600*(d[m-3+Y]-129)+1260*((m-2>=0?g[m-2]:d[m-2+Y])-48)+10*((m-1>=0?g[m-1]:d[m-1+Y])-129)+(U-48);var F=f(this.gb18030.gbChars,N);p=this.gb18030.uChars[F]+N-this.gb18030.gbChars[F]}else{if(p<=h){Q=h-p;continue}if(!(p<=c))throw new Error("iconv-lite internal error: invalid decoding table value "+p+" at "+Q+"/"+U);for(var z=this.decodeTableSeq[c-p],L=0;L>8;p=z[z.length-1]}if(p>=65536){var W=55296|(p-=65536)>>10;w[D++]=255&W,w[D++]=W>>8,p=56320|1023&p}w[D++]=255&p,w[D++]=p>>8,Q=0,y=m+1}return this.nodeIdx=Q,this.prevBytes=y>=0?Array.prototype.slice.call(g,y):d.slice(y+Y).concat(Array.prototype.slice.call(g)),w.slice(0,D).toString("ucs2")},e.prototype.end=function(){for(var g="";this.prevBytes.length>0;){g+=this.defaultCharUnicode;var w=this.prevBytes.slice(1);this.prevBytes=[],this.nodeIdx=0,w.length>0&&(g+=this.write(w))}return this.prevBytes=[],this.nodeIdx=0,g}},5990:function(T,I,n){"use strict";T.exports={shiftjis:{type:"_dbcs",table:function(){return n(7014)},encodeAdd:{"\xa5":92,"\u203e":126},encodeSkipVals:[{from:60736,to:63808}]},csshiftjis:"shiftjis",mskanji:"shiftjis",sjis:"shiftjis",windows31j:"shiftjis",ms31j:"shiftjis",xsjis:"shiftjis",windows932:"shiftjis",ms932:"shiftjis",932:"shiftjis",cp932:"shiftjis",eucjp:{type:"_dbcs",table:function(){return n(5633)},encodeAdd:{"\xa5":92,"\u203e":126}},gb2312:"cp936",gb231280:"cp936",gb23121980:"cp936",csgb2312:"cp936",csiso58gb231280:"cp936",euccn:"cp936",windows936:"cp936",ms936:"cp936",936:"cp936",cp936:{type:"_dbcs",table:function(){return n(3336)}},gbk:{type:"_dbcs",table:function(){return n(3336).concat(n(4346))}},xgbk:"gbk",isoir58:"gbk",gb18030:{type:"_dbcs",table:function(){return n(3336).concat(n(4346))},gb18030:function(){return n(6258)},encodeSkipVals:[128],encodeAdd:{"\u20ac":41699}},chinese:"gb18030",windows949:"cp949",ms949:"cp949",949:"cp949",cp949:{type:"_dbcs",table:function(){return n(7348)}},cseuckr:"cp949",csksc56011987:"cp949",euckr:"cp949",isoir149:"cp949",korean:"cp949",ksc56011987:"cp949",ksc56011989:"cp949",ksc5601:"cp949",windows950:"cp950",ms950:"cp950",950:"cp950",cp950:{type:"_dbcs",table:function(){return n(4284)}},big5:"big5hkscs",big5hkscs:{type:"_dbcs",table:function(){return n(4284).concat(n(3480))},encodeSkipVals:[36457,36463,36478,36523,36532,36557,36560,36695,36713,36718,36811,36862,36973,36986,37060,37084,37105,37311,37551,37552,37553,37554,37585,37959,38090,38361,38652,39285,39798,39800,39803,39878,39902,39916,39926,40002,40019,40034,40040,40043,40055,40124,40125,40144,40279,40282,40388,40431,40443,40617,40687,40701,40800,40907,41079,41180,41183,36812,37576,38468,38637,41636,41637,41639,41638,41676,41678]},cnbig5:"big5hkscs",csbig5:"big5hkscs",xxbig5:"big5hkscs"}},6934:function(T,I,n){"use strict";for(var l=[n(1025),n(7688),n(1279),n(758),n(9068),n(3769),n(7018),n(688),n(5990)],i=0;i>>6),C[e++]=128+(63&g)):(C[e++]=224+(g>>>12),C[e++]=128+(g>>>6&63),C[e++]=128+(63&g))}return C.slice(0,e)},B.prototype.end=function(){},E.prototype.write=function(u){for(var C=this.acc,e=this.contBytes,f=this.accBytes,g="",w=0;w0&&(g+=this.defaultCharUnicode,e=0),Q<128?g+=String.fromCharCode(Q):Q<224?(C=31&Q,e=1,f=1):Q<240?(C=15&Q,e=2,f=1):g+=this.defaultCharUnicode):e>0?(C=C<<6|63&Q,f++,0==--e&&(g+=2===f&&C<128&&C>0||3===f&&C<2048?this.defaultCharUnicode:String.fromCharCode(C))):g+=this.defaultCharUnicode}return this.acc=C,this.contBytes=e,this.accBytes=f,g},E.prototype.end=function(){var u=0;return this.contBytes>0&&(u+=this.defaultCharUnicode),u}},9068:function(T,I,n){"use strict";var l=n(7103).Buffer;function i(h,a){if(!h)throw new Error("SBCS codec is called without the data.");if(!h.chars||128!==h.chars.length&&256!==h.chars.length)throw new Error("Encoding '"+h.type+"' has incorrect 'chars' (must be of len 128 or 256)");if(128===h.chars.length){for(var B="",E=0;E<128;E++)B+=String.fromCharCode(E);h.chars=B+h.chars}this.decodeBuf=l.from(h.chars,"ucs2");var u=l.alloc(65536,a.defaultCharSingleByte.charCodeAt(0));for(E=0;E?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\xb0\xb7\u2219\u221a\u2592\u2500\u2502\u253c\u2524\u252c\u251c\u2534\u2510\u250c\u2514\u2518\u03b2\u221e\u03c6\xb1\xbd\xbc\u2248\xab\xbb\ufef7\ufef8\ufffd\ufffd\ufefb\ufefc\ufffd\xa0\xad\ufe82\xa3\xa4\ufe84\ufffd\ufffd\ufe8e\ufe8f\ufe95\ufe99\u060c\ufe9d\ufea1\ufea5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\ufed1\u061b\ufeb1\ufeb5\ufeb9\u061f\xa2\ufe80\ufe81\ufe83\ufe85\ufeca\ufe8b\ufe8d\ufe91\ufe93\ufe97\ufe9b\ufe9f\ufea3\ufea7\ufea9\ufeab\ufead\ufeaf\ufeb3\ufeb7\ufebb\ufebf\ufec1\ufec5\ufecb\ufecf\xa6\xac\xf7\xd7\ufec9\u0640\ufed3\ufed7\ufedb\ufedf\ufee3\ufee7\ufeeb\ufeed\ufeef\ufef3\ufebd\ufecc\ufece\ufecd\ufee1\ufe7d\u0651\ufee5\ufee9\ufeec\ufef0\ufef2\ufed0\ufed5\ufef5\ufef6\ufedd\ufed9\ufef1\u25a0\ufffd"},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xc7\xfc\xe9\xe2\xe4\xe0\xe5\xe7\xea\xeb\xe8\xef\xee\xec\xc4\xc5\xc9\xe6\xc6\xf4\xf6\xf2\xfb\xf9\xff\xd6\xdc\xf8\xa3\xd8\u20a7\u0192\xe1\xed\xf3\xfa\xf1\xd1\xaa\xba\xbf\u2310\xac\xbd\xbc\xa1\xab\xa4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u03b1\xdf\u0393\u03c0\u03a3\u03c3\xb5\u03c4\u03a6\u0398\u03a9\u03b4\u221e\u03c6\u03b5\u2229\u2261\xb1\u2265\u2264\u2320\u2321\xf7\u2248\xb0\u2219\xb7\u221a\u207f\xb2\u25a0\xa0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\u0401\u0451\u0404\u0454\u0407\u0457\u040e\u045e\xb0\u2219\xb7\u221a\u2116\xa4\u25a0\xa0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0386\ufffd\xb7\xac\xa6\u2018\u2019\u0388\u2015\u0389\u038a\u03aa\u038c\ufffd\ufffd\u038e\u03ab\xa9\u038f\xb2\xb3\u03ac\xa3\u03ad\u03ae\u03af\u03ca\u0390\u03cc\u03cd\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xbd\u0398\u0399\xab\xbb\u2591\u2592\u2593\u2502\u2524\u039a\u039b\u039c\u039d\u2563\u2551\u2557\u255d\u039e\u039f\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u03a0\u03a1\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u03a3\u03a4\u03a5\u03a6\u03a7\u03a8\u03a9\u03b1\u03b2\u03b3\u2518\u250c\u2588\u2584\u03b4\u03b5\u2580\u03b6\u03b7\u03b8\u03b9\u03ba\u03bb\u03bc\u03bd\u03be\u03bf\u03c0\u03c1\u03c3\u03c2\u03c4\u0384\xad\xb1\u03c5\u03c6\u03c7\xa7\u03c8\u0385\xb0\xa8\u03c9\u03cb\u03b0\u03ce\u25a0\xa0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\u203e\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\u0160\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\u017d\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\u0161\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\u017e\xff"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\ufe88\xd7\xf7\uf8f6\uf8f5\uf8f4\uf8f7\ufe71\x88\u25a0\u2502\u2500\u2510\u250c\u2514\u2518\ufe79\ufe7b\ufe7d\ufe7f\ufe77\ufe8a\ufef0\ufef3\ufef2\ufece\ufecf\ufed0\ufef6\ufef8\ufefa\ufefc\xa0\uf8fa\uf8f9\uf8f8\xa4\uf8fb\ufe8b\ufe91\ufe97\ufe9b\ufe9f\ufea3\u060c\xad\ufea7\ufeb3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\ufeb7\u061b\ufebb\ufebf\ufeca\u061f\ufecb\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062a\u062b\u062c\u062d\u062e\u062f\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\ufec7\u0639\u063a\ufecc\ufe82\ufe84\ufe8e\ufed3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064a\u064b\u064c\u064d\u064e\u064f\u0650\u0651\u0652\ufed7\ufedb\ufedf\uf8fc\ufef5\ufef7\ufef9\ufefb\ufee3\ufee7\ufeec\ufee9\ufffd"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040a\u040b\u040c\xad\u040e\u040f\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\u2116\u0451\u0452\u0491\u0454\u0455\u0456\u0457\u0458\u0459\u045a\u045b\u045c\xa7\u045e\u045f"},ibm1124:"cp1124",csibm1124:"cp1124",cp1125:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\u0401\u0451\u0490\u0491\u0404\u0454\u0406\u0456\u0407\u0457\xb7\u221a\u2116\xa4\u25a0\xa0"},ibm1125:"cp1125",csibm1125:"cp1125",cp1129:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\u0153\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\u0178\xb5\xb6\xb7\u0152\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\u0102\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\u0300\xcd\xce\xcf\u0110\xd1\u0309\xd3\xd4\u01a0\xd6\xd7\xd8\xd9\xda\xdb\xdc\u01af\u0303\xdf\xe0\xe1\xe2\u0103\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\u0301\xed\xee\xef\u0111\xf1\u0323\xf3\xf4\u01a1\xf6\xf7\xf8\xf9\xfa\xfb\xfc\u01b0\u20ab\xff"},ibm1129:"cp1129",csibm1129:"cp1129",cp1133:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\u0e81\u0e82\u0e84\u0e87\u0e88\u0eaa\u0e8a\u0e8d\u0e94\u0e95\u0e96\u0e97\u0e99\u0e9a\u0e9b\u0e9c\u0e9d\u0e9e\u0e9f\u0ea1\u0ea2\u0ea3\u0ea5\u0ea7\u0eab\u0ead\u0eae\ufffd\ufffd\ufffd\u0eaf\u0eb0\u0eb2\u0eb3\u0eb4\u0eb5\u0eb6\u0eb7\u0eb8\u0eb9\u0ebc\u0eb1\u0ebb\u0ebd\ufffd\ufffd\ufffd\u0ec0\u0ec1\u0ec2\u0ec3\u0ec4\u0ec8\u0ec9\u0eca\u0ecb\u0ecc\u0ecd\u0ec6\ufffd\u0edc\u0edd\u20ad\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0ed0\u0ed1\u0ed2\u0ed3\u0ed4\u0ed5\u0ed6\u0ed7\u0ed8\u0ed9\ufffd\ufffd\xa2\xac\xa6\ufffd"},ibm1133:"cp1133",csibm1133:"cp1133",cp1161:{type:"_sbcs",chars:"\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0e48\u0e01\u0e02\u0e03\u0e04\u0e05\u0e06\u0e07\u0e08\u0e09\u0e0a\u0e0b\u0e0c\u0e0d\u0e0e\u0e0f\u0e10\u0e11\u0e12\u0e13\u0e14\u0e15\u0e16\u0e17\u0e18\u0e19\u0e1a\u0e1b\u0e1c\u0e1d\u0e1e\u0e1f\u0e20\u0e21\u0e22\u0e23\u0e24\u0e25\u0e26\u0e27\u0e28\u0e29\u0e2a\u0e2b\u0e2c\u0e2d\u0e2e\u0e2f\u0e30\u0e31\u0e32\u0e33\u0e34\u0e35\u0e36\u0e37\u0e38\u0e39\u0e3a\u0e49\u0e4a\u0e4b\u20ac\u0e3f\u0e40\u0e41\u0e42\u0e43\u0e44\u0e45\u0e46\u0e47\u0e48\u0e49\u0e4a\u0e4b\u0e4c\u0e4d\u0e4e\u0e4f\u0e50\u0e51\u0e52\u0e53\u0e54\u0e55\u0e56\u0e57\u0e58\u0e59\u0e5a\u0e5b\xa2\xac\xa6\xa0"},ibm1161:"cp1161",csibm1161:"cp1161",cp1162:{type:"_sbcs",chars:"\u20ac\x81\x82\x83\x84\u2026\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\u2018\u2019\u201c\u201d\u2022\u2013\u2014\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\u0e01\u0e02\u0e03\u0e04\u0e05\u0e06\u0e07\u0e08\u0e09\u0e0a\u0e0b\u0e0c\u0e0d\u0e0e\u0e0f\u0e10\u0e11\u0e12\u0e13\u0e14\u0e15\u0e16\u0e17\u0e18\u0e19\u0e1a\u0e1b\u0e1c\u0e1d\u0e1e\u0e1f\u0e20\u0e21\u0e22\u0e23\u0e24\u0e25\u0e26\u0e27\u0e28\u0e29\u0e2a\u0e2b\u0e2c\u0e2d\u0e2e\u0e2f\u0e30\u0e31\u0e32\u0e33\u0e34\u0e35\u0e36\u0e37\u0e38\u0e39\u0e3a\ufffd\ufffd\ufffd\ufffd\u0e3f\u0e40\u0e41\u0e42\u0e43\u0e44\u0e45\u0e46\u0e47\u0e48\u0e49\u0e4a\u0e4b\u0e4c\u0e4d\u0e4e\u0e4f\u0e50\u0e51\u0e52\u0e53\u0e54\u0e55\u0e56\u0e57\u0e58\u0e59\u0e5a\u0e5b\ufffd\ufffd\ufffd\ufffd"},ibm1162:"cp1162",csibm1162:"cp1162",cp1163:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\u20ac\xa5\xa6\xa7\u0153\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\u0178\xb5\xb6\xb7\u0152\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\u0102\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\u0300\xcd\xce\xcf\u0110\xd1\u0309\xd3\xd4\u01a0\xd6\xd7\xd8\xd9\xda\xdb\xdc\u01af\u0303\xdf\xe0\xe1\xe2\u0103\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\u0301\xed\xee\xef\u0111\xf1\u0323\xf3\xf4\u01a1\xf6\xf7\xf8\xf9\xfa\xfb\xfc\u01b0\u20ab\xff"},ibm1163:"cp1163",csibm1163:"cp1163",maccroatian:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\u0160\u2122\xb4\xa8\u2260\u017d\xd8\u221e\xb1\u2264\u2265\u2206\xb5\u2202\u2211\u220f\u0161\u222b\xaa\xba\u2126\u017e\xf8\xbf\xa1\xac\u221a\u0192\u2248\u0106\xab\u010c\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u0110\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\ufffd\xa9\u2044\xa4\u2039\u203a\xc6\xbb\u2013\xb7\u201a\u201e\u2030\xc2\u0107\xc1\u010d\xc8\xcd\xce\xcf\xcc\xd3\xd4\u0111\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u03c0\xcb\u02da\xb8\xca\xe6\u02c7"},maccyrillic:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u2020\xb0\xa2\xa3\xa7\u2022\xb6\u0406\xae\xa9\u2122\u0402\u0452\u2260\u0403\u0453\u221e\xb1\u2264\u2265\u0456\xb5\u2202\u0408\u0404\u0454\u0407\u0457\u0409\u0459\u040a\u045a\u0458\u0405\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\u040b\u045b\u040c\u045c\u0455\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u201e\u040e\u045e\u040f\u045f\u2116\u0401\u0451\u044f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\xa4"},macgreek:{type:"_sbcs",chars:"\xc4\xb9\xb2\xc9\xb3\xd6\xdc\u0385\xe0\xe2\xe4\u0384\xa8\xe7\xe9\xe8\xea\xeb\xa3\u2122\xee\xef\u2022\xbd\u2030\xf4\xf6\xa6\xad\xf9\xfb\xfc\u2020\u0393\u0394\u0398\u039b\u039e\u03a0\xdf\xae\xa9\u03a3\u03aa\xa7\u2260\xb0\u0387\u0391\xb1\u2264\u2265\xa5\u0392\u0395\u0396\u0397\u0399\u039a\u039c\u03a6\u03ab\u03a8\u03a9\u03ac\u039d\xac\u039f\u03a1\u2248\u03a4\xab\xbb\u2026\xa0\u03a5\u03a7\u0386\u0388\u0153\u2013\u2015\u201c\u201d\u2018\u2019\xf7\u0389\u038a\u038c\u038e\u03ad\u03ae\u03af\u03cc\u038f\u03cd\u03b1\u03b2\u03c8\u03b4\u03b5\u03c6\u03b3\u03b7\u03b9\u03be\u03ba\u03bb\u03bc\u03bd\u03bf\u03c0\u03ce\u03c1\u03c3\u03c4\u03b8\u03c9\u03c2\u03c7\u03c5\u03b6\u03ca\u03cb\u0390\u03b0\ufffd"},maciceland:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\xdd\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\xc6\xd8\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u2126\xe6\xf8\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u2044\xa4\xd0\xf0\xde\xfe\xfd\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\ufffd\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7"},macroman:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\xc6\xd8\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u2126\xe6\xf8\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u2044\xa4\u2039\u203a\ufb01\ufb02\u2021\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\ufffd\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7"},macromania:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\u0102\u015e\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u2126\u0103\u015f\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u2044\xa4\u2039\u203a\u0162\u0163\u2021\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\ufffd\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7"},macthai:{type:"_sbcs",chars:"\xab\xbb\u2026\uf88c\uf88f\uf892\uf895\uf898\uf88b\uf88e\uf891\uf894\uf897\u201c\u201d\uf899\ufffd\u2022\uf884\uf889\uf885\uf886\uf887\uf888\uf88a\uf88d\uf890\uf893\uf896\u2018\u2019\ufffd\xa0\u0e01\u0e02\u0e03\u0e04\u0e05\u0e06\u0e07\u0e08\u0e09\u0e0a\u0e0b\u0e0c\u0e0d\u0e0e\u0e0f\u0e10\u0e11\u0e12\u0e13\u0e14\u0e15\u0e16\u0e17\u0e18\u0e19\u0e1a\u0e1b\u0e1c\u0e1d\u0e1e\u0e1f\u0e20\u0e21\u0e22\u0e23\u0e24\u0e25\u0e26\u0e27\u0e28\u0e29\u0e2a\u0e2b\u0e2c\u0e2d\u0e2e\u0e2f\u0e30\u0e31\u0e32\u0e33\u0e34\u0e35\u0e36\u0e37\u0e38\u0e39\u0e3a\ufeff\u200b\u2013\u2014\u0e3f\u0e40\u0e41\u0e42\u0e43\u0e44\u0e45\u0e46\u0e47\u0e48\u0e49\u0e4a\u0e4b\u0e4c\u0e4d\u2122\u0e4f\u0e50\u0e51\u0e52\u0e53\u0e54\u0e55\u0e56\u0e57\u0e58\u0e59\xae\xa9\ufffd\ufffd\ufffd\ufffd"},macturkish:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\xc6\xd8\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u2126\xe6\xf8\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u011e\u011f\u0130\u0131\u015e\u015f\u2021\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\ufffd\xd2\xda\xdb\xd9\ufffd\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7"},macukraine:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u2020\xb0\u0490\xa3\xa7\u2022\xb6\u0406\xae\xa9\u2122\u0402\u0452\u2260\u0403\u0453\u221e\xb1\u2264\u2265\u0456\xb5\u0491\u0408\u0404\u0454\u0407\u0457\u0409\u0459\u040a\u045a\u0458\u0405\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\u040b\u045b\u040c\u045c\u0455\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u201e\u040e\u045e\u040f\u045f\u2116\u0401\u0451\u044f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\xa4"},koi8r:{type:"_sbcs",chars:"\u2500\u2502\u250c\u2510\u2514\u2518\u251c\u2524\u252c\u2534\u253c\u2580\u2584\u2588\u258c\u2590\u2591\u2592\u2593\u2320\u25a0\u2219\u221a\u2248\u2264\u2265\xa0\u2321\xb0\xb2\xb7\xf7\u2550\u2551\u2552\u0451\u2553\u2554\u2555\u2556\u2557\u2558\u2559\u255a\u255b\u255c\u255d\u255e\u255f\u2560\u2561\u0401\u2562\u2563\u2564\u2565\u2566\u2567\u2568\u2569\u256a\u256b\u256c\xa9\u044e\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u044f\u0440\u0441\u0442\u0443\u0436\u0432\u044c\u044b\u0437\u0448\u044d\u0449\u0447\u044a\u042e\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u042f\u0420\u0421\u0422\u0423\u0416\u0412\u042c\u042b\u0417\u0428\u042d\u0429\u0427\u042a"},koi8u:{type:"_sbcs",chars:"\u2500\u2502\u250c\u2510\u2514\u2518\u251c\u2524\u252c\u2534\u253c\u2580\u2584\u2588\u258c\u2590\u2591\u2592\u2593\u2320\u25a0\u2219\u221a\u2248\u2264\u2265\xa0\u2321\xb0\xb2\xb7\xf7\u2550\u2551\u2552\u0451\u0454\u2554\u0456\u0457\u2557\u2558\u2559\u255a\u255b\u0491\u255d\u255e\u255f\u2560\u2561\u0401\u0404\u2563\u0406\u0407\u2566\u2567\u2568\u2569\u256a\u0490\u256c\xa9\u044e\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u044f\u0440\u0441\u0442\u0443\u0436\u0432\u044c\u044b\u0437\u0448\u044d\u0449\u0447\u044a\u042e\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u042f\u0420\u0421\u0422\u0423\u0416\u0412\u042c\u042b\u0417\u0428\u042d\u0429\u0427\u042a"},koi8ru:{type:"_sbcs",chars:"\u2500\u2502\u250c\u2510\u2514\u2518\u251c\u2524\u252c\u2534\u253c\u2580\u2584\u2588\u258c\u2590\u2591\u2592\u2593\u2320\u25a0\u2219\u221a\u2248\u2264\u2265\xa0\u2321\xb0\xb2\xb7\xf7\u2550\u2551\u2552\u0451\u0454\u2554\u0456\u0457\u2557\u2558\u2559\u255a\u255b\u0491\u045e\u255e\u255f\u2560\u2561\u0401\u0404\u2563\u0406\u0407\u2566\u2567\u2568\u2569\u256a\u0490\u040e\xa9\u044e\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u044f\u0440\u0441\u0442\u0443\u0436\u0432\u044c\u044b\u0437\u0448\u044d\u0449\u0447\u044a\u042e\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u042f\u0420\u0421\u0422\u0423\u0416\u0412\u042c\u042b\u0417\u0428\u042d\u0429\u0427\u042a"},koi8t:{type:"_sbcs",chars:"\u049b\u0493\u201a\u0492\u201e\u2026\u2020\u2021\ufffd\u2030\u04b3\u2039\u04b2\u04b7\u04b6\ufffd\u049a\u2018\u2019\u201c\u201d\u2022\u2013\u2014\ufffd\u2122\ufffd\u203a\ufffd\ufffd\ufffd\ufffd\ufffd\u04ef\u04ee\u0451\xa4\u04e3\xa6\xa7\ufffd\ufffd\ufffd\xab\xac\xad\xae\ufffd\xb0\xb1\xb2\u0401\ufffd\u04e2\xb6\xb7\ufffd\u2116\ufffd\xbb\ufffd\ufffd\ufffd\xa9\u044e\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u044f\u0440\u0441\u0442\u0443\u0436\u0432\u044c\u044b\u0437\u0448\u044d\u0449\u0447\u044a\u042e\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u042f\u0420\u0421\u0422\u0423\u0416\u0412\u042c\u042b\u0417\u0428\u042d\u0429\u0427\u042a"},armscii8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\ufffd\u0587\u0589)(\xbb\xab\u2014.\u055d,-\u058a\u2026\u055c\u055b\u055e\u0531\u0561\u0532\u0562\u0533\u0563\u0534\u0564\u0535\u0565\u0536\u0566\u0537\u0567\u0538\u0568\u0539\u0569\u053a\u056a\u053b\u056b\u053c\u056c\u053d\u056d\u053e\u056e\u053f\u056f\u0540\u0570\u0541\u0571\u0542\u0572\u0543\u0573\u0544\u0574\u0545\u0575\u0546\u0576\u0547\u0577\u0548\u0578\u0549\u0579\u054a\u057a\u054b\u057b\u054c\u057c\u054d\u057d\u054e\u057e\u054f\u057f\u0550\u0580\u0551\u0581\u0552\u0582\u0553\u0583\u0554\u0584\u0555\u0585\u0556\u0586\u055a\ufffd"},rk1048:{type:"_sbcs",chars:"\u0402\u0403\u201a\u0453\u201e\u2026\u2020\u2021\u20ac\u2030\u0409\u2039\u040a\u049a\u04ba\u040f\u0452\u2018\u2019\u201c\u201d\u2022\u2013\u2014\ufffd\u2122\u0459\u203a\u045a\u049b\u04bb\u045f\xa0\u04b0\u04b1\u04d8\xa4\u04e8\xa6\xa7\u0401\xa9\u0492\xab\xac\xad\xae\u04ae\xb0\xb1\u0406\u0456\u04e9\xb5\xb6\xb7\u0451\u2116\u0493\xbb\u04d9\u04a2\u04a3\u04af\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f"},tcvn:{type:"_sbcs",chars:"\0\xda\u1ee4\x03\u1eea\u1eec\u1eee\x07\b\t\n\v\f\r\x0e\x0f\x10\u1ee8\u1ef0\u1ef2\u1ef6\u1ef8\xdd\u1ef4\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\xc0\u1ea2\xc3\xc1\u1ea0\u1eb6\u1eac\xc8\u1eba\u1ebc\xc9\u1eb8\u1ec6\xcc\u1ec8\u0128\xcd\u1eca\xd2\u1ece\xd5\xd3\u1ecc\u1ed8\u1edc\u1ede\u1ee0\u1eda\u1ee2\xd9\u1ee6\u0168\xa0\u0102\xc2\xca\xd4\u01a0\u01af\u0110\u0103\xe2\xea\xf4\u01a1\u01b0\u0111\u1eb0\u0300\u0309\u0303\u0301\u0323\xe0\u1ea3\xe3\xe1\u1ea1\u1eb2\u1eb1\u1eb3\u1eb5\u1eaf\u1eb4\u1eae\u1ea6\u1ea8\u1eaa\u1ea4\u1ec0\u1eb7\u1ea7\u1ea9\u1eab\u1ea5\u1ead\xe8\u1ec2\u1ebb\u1ebd\xe9\u1eb9\u1ec1\u1ec3\u1ec5\u1ebf\u1ec7\xec\u1ec9\u1ec4\u1ebe\u1ed2\u0129\xed\u1ecb\xf2\u1ed4\u1ecf\xf5\xf3\u1ecd\u1ed3\u1ed5\u1ed7\u1ed1\u1ed9\u1edd\u1edf\u1ee1\u1edb\u1ee3\xf9\u1ed6\u1ee7\u0169\xfa\u1ee5\u1eeb\u1eed\u1eef\u1ee9\u1ef1\u1ef3\u1ef7\u1ef9\xfd\u1ef5\u1ed0"},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201a\u0192\u201e\u2026\u2020\u2021\u02c6\u2030\u0160\u2039\u0152\x8d\x8e\x8f\x90\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u0161\u203a\u0153\x9d\x9e\u0178\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\u10d0\u10d1\u10d2\u10d3\u10d4\u10d5\u10d6\u10d7\u10d8\u10d9\u10da\u10db\u10dc\u10dd\u10de\u10df\u10e0\u10e1\u10e2\u10e3\u10e4\u10e5\u10e6\u10e7\u10e8\u10e9\u10ea\u10eb\u10ec\u10ed\u10ee\u10ef\u10f0\u10f1\u10f2\u10f3\u10f4\u10f5\u10f6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201a\u0192\u201e\u2026\u2020\u2021\u02c6\u2030\u0160\u2039\u0152\x8d\x8e\x8f\x90\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u0161\u203a\u0153\x9d\x9e\u0178\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\u10d0\u10d1\u10d2\u10d3\u10d4\u10d5\u10d6\u10f1\u10d7\u10d8\u10d9\u10da\u10db\u10dc\u10f2\u10dd\u10de\u10df\u10e0\u10e1\u10e2\u10f3\u10e3\u10e4\u10e5\u10e6\u10e7\u10e8\u10e9\u10ea\u10eb\u10ec\u10ed\u10ee\u10f4\u10ef\u10f0\u10f5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04ee\u0493\u201e\u2026\u04b6\u04ae\u04b2\u04af\u04a0\u04e2\u04a2\u049a\u04ba\u04b8\u0497\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u04b3\u04b7\u04a1\u04e3\u04a3\u049b\u04bb\u04b9\xa0\u040e\u045e\u0408\u04e8\u0498\u04b0\xa7\u0401\xa9\u04d8\xab\xac\u04ef\xae\u049c\xb0\u04b1\u0406\u0456\u0499\u04e9\xb6\xb7\u0451\u2116\u04d9\xbb\u0458\u04aa\u04ab\u049d\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f"},viscii:{type:"_sbcs",chars:"\0\x01\u1eb2\x03\x04\u1eb4\u1eaa\x07\b\t\n\v\f\r\x0e\x0f\x10\x11\x12\x13\u1ef6\x15\x16\x17\x18\u1ef8\x1a\x1b\x1c\x1d\u1ef4\x1f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\u1ea0\u1eae\u1eb0\u1eb6\u1ea4\u1ea6\u1ea8\u1eac\u1ebc\u1eb8\u1ebe\u1ec0\u1ec2\u1ec4\u1ec6\u1ed0\u1ed2\u1ed4\u1ed6\u1ed8\u1ee2\u1eda\u1edc\u1ede\u1eca\u1ece\u1ecc\u1ec8\u1ee6\u0168\u1ee4\u1ef2\xd5\u1eaf\u1eb1\u1eb7\u1ea5\u1ea7\u1ea9\u1ead\u1ebd\u1eb9\u1ebf\u1ec1\u1ec3\u1ec5\u1ec7\u1ed1\u1ed3\u1ed5\u1ed7\u1ee0\u01a0\u1ed9\u1edd\u1edf\u1ecb\u1ef0\u1ee8\u1eea\u1eec\u01a1\u1edb\u01af\xc0\xc1\xc2\xc3\u1ea2\u0102\u1eb3\u1eb5\xc8\xc9\xca\u1eba\xcc\xcd\u0128\u1ef3\u0110\u1ee9\xd2\xd3\xd4\u1ea1\u1ef7\u1eeb\u1eed\xd9\xda\u1ef9\u1ef5\xdd\u1ee1\u01b0\xe0\xe1\xe2\xe3\u1ea3\u0103\u1eef\u1eab\xe8\xe9\xea\u1ebb\xec\xed\u0129\u1ec9\u0111\u1ef1\xf2\xf3\xf4\xf5\u1ecf\u1ecd\u1ee5\xf9\xfa\u0169\u1ee7\xfd\u1ee3\u1eee"},iso646cn:{type:"_sbcs",chars:"\0\x01\x02\x03\x04\x05\x06\x07\b\t\n\v\f\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !\"#\xa5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}\u203e\x7f\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd"},iso646jp:{type:"_sbcs",chars:"\0\x01\x02\x03\x04\x05\x06\x07\b\t\n\v\f\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xa5]^_`abcdefghijklmnopqrstuvwxyz{|}\u203e\x7f\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd"},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xc0\xc2\xc8\xca\xcb\xce\xcf\xb4\u02cb\u02c6\xa8\u02dc\xd9\xdb\u20a4\xaf\xdd\xfd\xb0\xc7\xe7\xd1\xf1\xa1\xbf\xa4\xa3\xa5\xa7\u0192\xa2\xe2\xea\xf4\xfb\xe1\xe9\xf3\xfa\xe0\xe8\xf2\xf9\xe4\xeb\xf6\xfc\xc5\xee\xd8\xc6\xe5\xed\xf8\xe6\xc4\xec\xd6\xdc\xc9\xef\xdf\xd4\xc1\xc3\xe3\xd0\xf0\xcd\xcc\xd3\xd2\xd5\xf5\u0160\u0161\xda\u0178\xff\xde\xfe\xb7\xb5\xb6\xbe\u2014\xbc\xbd\xaa\xba\xab\u25a0\xbb\xb1\ufffd"},macintosh:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\xc6\xd8\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u2126\xe6\xf8\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u2044\xa4\u2039\u203a\ufb01\ufb02\u2021\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\ufffd\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7"},ascii:{type:"_sbcs",chars:"\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd"},tis620:{type:"_sbcs",chars:"\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0e01\u0e02\u0e03\u0e04\u0e05\u0e06\u0e07\u0e08\u0e09\u0e0a\u0e0b\u0e0c\u0e0d\u0e0e\u0e0f\u0e10\u0e11\u0e12\u0e13\u0e14\u0e15\u0e16\u0e17\u0e18\u0e19\u0e1a\u0e1b\u0e1c\u0e1d\u0e1e\u0e1f\u0e20\u0e21\u0e22\u0e23\u0e24\u0e25\u0e26\u0e27\u0e28\u0e29\u0e2a\u0e2b\u0e2c\u0e2d\u0e2e\u0e2f\u0e30\u0e31\u0e32\u0e33\u0e34\u0e35\u0e36\u0e37\u0e38\u0e39\u0e3a\ufffd\ufffd\ufffd\ufffd\u0e3f\u0e40\u0e41\u0e42\u0e43\u0e44\u0e45\u0e46\u0e47\u0e48\u0e49\u0e4a\u0e4b\u0e4c\u0e4d\u0e4e\u0e4f\u0e50\u0e51\u0e52\u0e53\u0e54\u0e55\u0e56\u0e57\u0e58\u0e59\u0e5a\u0e5b\ufffd\ufffd\ufffd\ufffd"}}},3769:function(T){"use strict";T.exports={10029:"maccenteuro",maccenteuro:{type:"_sbcs",chars:"\xc4\u0100\u0101\xc9\u0104\xd6\xdc\xe1\u0105\u010c\xe4\u010d\u0106\u0107\xe9\u0179\u017a\u010e\xed\u010f\u0112\u0113\u0116\xf3\u0117\xf4\xf6\xf5\xfa\u011a\u011b\xfc\u2020\xb0\u0118\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\u0119\xa8\u2260\u0123\u012e\u012f\u012a\u2264\u2265\u012b\u0136\u2202\u2211\u0142\u013b\u013c\u013d\u013e\u0139\u013a\u0145\u0146\u0143\xac\u221a\u0144\u0147\u2206\xab\xbb\u2026\xa0\u0148\u0150\xd5\u0151\u014c\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\u014d\u0154\u0155\u0158\u2039\u203a\u0159\u0156\u0157\u0160\u201a\u201e\u0161\u015a\u015b\xc1\u0164\u0165\xcd\u017d\u017e\u016a\xd3\xd4\u016b\u016e\xda\u016f\u0170\u0171\u0172\u0173\xdd\xfd\u0137\u017b\u0141\u017c\u0122\u02c7"},808:"cp808",ibm808:"cp808",cp808:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\u0401\u0451\u0404\u0454\u0407\u0457\u040e\u045e\xb0\u2219\xb7\u221a\u2116\u20ac\u25a0\xa0"},mik:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\u2514\u2534\u252c\u251c\u2500\u253c\u2563\u2551\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2510\u2591\u2592\u2593\u2502\u2524\u2116\xa7\u2557\u255d\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u03b1\xdf\u0393\u03c0\u03a3\u03c3\xb5\u03c4\u03a6\u0398\u03a9\u03b4\u221e\u03c6\u03b5\u2229\u2261\xb1\u2265\u2264\u2320\u2321\xf7\u2248\xb0\u2219\xb7\u221a\u207f\xb2\u25a0\xa0"},cp720:{type:"_sbcs",chars:"\x80\x81\xe9\xe2\x84\xe0\x86\xe7\xea\xeb\xe8\xef\xee\x8d\x8e\x8f\x90\u0651\u0652\xf4\xa4\u0640\xfb\xf9\u0621\u0622\u0623\u0624\xa3\u0625\u0626\u0627\u0628\u0629\u062a\u062b\u062c\u062d\u062e\u062f\u0630\u0631\u0632\u0633\u0634\u0635\xab\xbb\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u0636\u0637\u0638\u0639\u063a\u0641\xb5\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064a\u2261\u064b\u064c\u064d\u064e\u064f\u0650\u2248\xb0\u2219\xb7\u221a\u207f\xb2\u25a0\xa0"},ascii8bit:"ascii",usascii:"ascii",ansix34:"ascii",ansix341968:"ascii",ansix341986:"ascii",csascii:"ascii",cp367:"ascii",ibm367:"ascii",isoir6:"ascii",iso646us:"ascii",iso646irv:"ascii",us:"ascii",latin1:"iso88591",latin2:"iso88592",latin3:"iso88593",latin4:"iso88594",latin5:"iso88599",latin6:"iso885910",latin7:"iso885913",latin8:"iso885914",latin9:"iso885915",latin10:"iso885916",csisolatin1:"iso88591",csisolatin2:"iso88592",csisolatin3:"iso88593",csisolatin4:"iso88594",csisolatincyrillic:"iso88595",csisolatinarabic:"iso88596",csisolatingreek:"iso88597",csisolatinhebrew:"iso88598",csisolatin5:"iso88599",csisolatin6:"iso885910",l1:"iso88591",l2:"iso88592",l3:"iso88593",l4:"iso88594",l5:"iso88599",l6:"iso885910",l7:"iso885913",l8:"iso885914",l9:"iso885915",l10:"iso885916",isoir14:"iso646jp",isoir57:"iso646cn",isoir100:"iso88591",isoir101:"iso88592",isoir109:"iso88593",isoir110:"iso88594",isoir144:"iso88595",isoir127:"iso88596",isoir126:"iso88597",isoir138:"iso88598",isoir148:"iso88599",isoir157:"iso885910",isoir166:"tis620",isoir179:"iso885913",isoir199:"iso885914",isoir203:"iso885915",isoir226:"iso885916",cp819:"iso88591",ibm819:"iso88591",cyrillic:"iso88595",arabic:"iso88596",arabic8:"iso88596",ecma114:"iso88596",asmo708:"iso88596",greek:"iso88597",greek8:"iso88597",ecma118:"iso88597",elot928:"iso88597",hebrew:"iso88598",hebrew8:"iso88598",turkish:"iso88599",turkish8:"iso88599",thai:"iso885911",thai8:"iso885911",celtic:"iso885914",celtic8:"iso885914",isoceltic:"iso885914",tis6200:"tis620",tis62025291:"tis620",tis62025330:"tis620",1e4:"macroman",10006:"macgreek",10007:"maccyrillic",10079:"maciceland",10081:"macturkish",cspc8codepage437:"cp437",cspc775baltic:"cp775",cspc850multilingual:"cp850",cspcp852:"cp852",cspc862latinhebrew:"cp862",cpgr:"cp869",msee:"cp1250",mscyrl:"cp1251",msansi:"cp1252",msgreek:"cp1253",msturk:"cp1254",mshebr:"cp1255",msarab:"cp1256",winbaltrim:"cp1257",cp20866:"koi8r",20866:"koi8r",ibm878:"koi8r",cskoi8r:"koi8r",cp21866:"koi8u",21866:"koi8u",ibm1168:"koi8u",strk10482002:"rk1048",tcvn5712:"tcvn",tcvn57121:"tcvn",gb198880:"iso646cn",cn:"iso646cn",csiso14jisc6220ro:"iso646jp",jisc62201969ro:"iso646jp",jp:"iso646jp",cshproman8:"hproman8",r8:"hproman8",roman8:"hproman8",xroman8:"hproman8",ibm1051:"hproman8",mac:"macintosh",csmacintosh:"macintosh"}},1279:function(T,I,n){"use strict";var l=n(7103).Buffer;function i(){}function o(){}function c(){this.overflowByte=-1}function h(u,C){this.iconv=C}function a(u,C){void 0===(u=u||{}).addBOM&&(u.addBOM=!0),this.encoder=C.iconv.getEncoder("utf-16le",u)}function B(u,C){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=u||{},this.iconv=C.iconv}function E(u,C){var e=[],f=0,g=0,w=0;A:for(var Q=0;Q=100)break A}return w>g?"utf-16be":w1114111)&&(f=g),f>=65536){var w=55296|(f-=65536)>>10;C[e++]=255&w,C[e++]=w>>8,f=56320|1023&f}return C[e++]=255&f,C[e++]=f>>8,e}function a(C,e){this.iconv=e}function B(C,e){void 0===(C=C||{}).addBOM&&(C.addBOM=!0),this.encoder=e.iconv.getEncoder(C.defaultEncoding||"utf-32le",C)}function E(C,e){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=C||{},this.iconv=e.iconv}function u(C,e){var f=[],g=0,w=0,Q=0,d=0,Y=0;A:for(var y=0;y16)&&Q++,(0!==f[3]||f[2]>16)&&w++,0===f[0]&&0===f[1]&&(0!==f[2]||0!==f[3])&&Y++,(0!==f[0]||0!==f[1])&&0===f[2]&&0===f[3]&&d++,f.length=0,++g>=100)break A}return Y-Q>d-w?"utf-32be":Y-Q0){for(;e0&&(d=this.iconv.decode(l.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",d},I.utf7imap=f,f.prototype.encoder=g,f.prototype.decoder=w,f.prototype.bomAware=!0,g.prototype.write=function(d){for(var Y=this.inBase64,y=this.base64Accum,p=this.base64AccumIdx,m=l.alloc(5*d.length+10),D=0,U=0;U0&&(D+=m.write(y.slice(0,p).toString("base64").replace(/\//g,",").replace(/=+$/,""),D),p=0),m[D++]=C,Y=!1),Y||(m[D++]=N,N===e&&(m[D++]=C))):(Y||(m[D++]=e,Y=!0),Y&&(y[p++]=N>>8,y[p++]=255&N,p==y.length&&(D+=m.write(y.toString("base64").replace(/\//g,","),D),p=0)))}return this.inBase64=Y,this.base64AccumIdx=p,m.slice(0,D)},g.prototype.end=function(){var d=l.alloc(10),Y=0;return this.inBase64&&(this.base64AccumIdx>0&&(Y+=d.write(this.base64Accum.slice(0,this.base64AccumIdx).toString("base64").replace(/\//g,",").replace(/=+$/,""),Y),this.base64AccumIdx=0),d[Y++]=C,this.inBase64=!1),d.slice(0,Y)};var Q=B.slice();Q[",".charCodeAt(0)]=!0,w.prototype.write=function(d){for(var Y="",y=0,p=this.inBase64,m=this.base64Accum,D=0;D0&&(d=this.iconv.decode(l.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",d}},5395:function(T,I){"use strict";function l(o,c){this.encoder=o,this.addBOM=!0}function i(o,c){this.decoder=o,this.pass=!1,this.options=c||{}}I.PrependBOM=l,l.prototype.write=function(o){return this.addBOM&&(o="\ufeff"+o,this.addBOM=!1),this.encoder.write(o)},l.prototype.end=function(){return this.encoder.end()},I.StripBOM=i,i.prototype.write=function(o){var c=this.decoder.write(o);return this.pass||!c||("\ufeff"===c[0]&&(c=c.slice(1),"function"==typeof this.options.stripBOM&&this.options.stripBOM()),this.pass=!0),c},i.prototype.end=function(){return this.decoder.end()}},4914:function(T,I,n){"use strict";var c,l=n(7103).Buffer,i=n(5395),o=T.exports;o.encodings=null,o.defaultCharUnicode="\ufffd",o.defaultCharSingleByte="?",o.encode=function(a,B,E){a=""+(a||"");var u=o.getEncoder(B,E),C=u.write(a),e=u.end();return e&&e.length>0?l.concat([C,e]):C},o.decode=function(a,B,E){"string"==typeof a&&(o.skipDecodeWarning||(console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding"),o.skipDecodeWarning=!0),a=l.from(""+(a||""),"binary"));var u=o.getDecoder(B,E),C=u.write(a),e=u.end();return e?C+e:C},o.encodingExists=function(a){try{return o.getCodec(a),!0}catch(B){return!1}},o.toEncoding=o.encode,o.fromEncoding=o.decode,o._codecDataCache={},o.getCodec=function(a){o.encodings||(o.encodings=n(6934));for(var B=o._canonicalizeEncoding(a),E={};;){var u=o._codecDataCache[B];if(u)return u;var C=o.encodings[B];switch(typeof C){case"string":B=C;break;case"object":for(var e in C)E[e]=C[e];E.encodingName||(E.encodingName=B),B=C.type;break;case"function":return E.encodingName||(E.encodingName=B),u=new C(E,o),o._codecDataCache[E.encodingName]=u,u;default:throw new Error("Encoding not recognized: '"+a+"' (searched as: '"+B+"')")}}},o._canonicalizeEncoding=function(h){return(""+h).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g,"")},o.getEncoder=function(a,B){var E=o.getCodec(a),u=new E.encoder(B,E);return E.bomAware&&B&&B.addBOM&&(u=new i.PrependBOM(u,B)),u},o.getDecoder=function(a,B){var E=o.getCodec(a),u=new E.decoder(B,E);return E.bomAware&&!(B&&!1===B.stripBOM)&&(u=new i.StripBOM(u,B)),u},o.enableStreamingAPI=function(a){if(!o.supportsStreams){var B=n(8044)(a);o.IconvLiteEncoderStream=B.IconvLiteEncoderStream,o.IconvLiteDecoderStream=B.IconvLiteDecoderStream,o.encodeStream=function(u,C){return new o.IconvLiteEncoderStream(o.getEncoder(u,C),C)},o.decodeStream=function(u,C){return new o.IconvLiteDecoderStream(o.getDecoder(u,C),C)},o.supportsStreams=!0}};try{c=n(5832)}catch(h){}c&&c.Transform?o.enableStreamingAPI(c):o.encodeStream=o.decodeStream=function(){throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.")}},8044:function(T,I,n){"use strict";var l=n(7103).Buffer;T.exports=function(i){var o=i.Transform;function c(a,B){this.conv=a,(B=B||{}).decodeStrings=!1,o.call(this,B)}function h(a,B){this.conv=a,(B=B||{}).encoding=this.encoding="utf8",o.call(this,B)}return(c.prototype=Object.create(o.prototype,{constructor:{value:c}}))._transform=function(a,B,E){if("string"!=typeof a)return E(new Error("Iconv encoding stream needs strings as its input."));try{var u=this.conv.write(a);u&&u.length&&this.push(u),E()}catch(C){E(C)}},c.prototype._flush=function(a){try{var B=this.conv.end();B&&B.length&&this.push(B),a()}catch(E){a(E)}},c.prototype.collect=function(a){var B=[];return this.on("error",a),this.on("data",function(E){B.push(E)}),this.on("end",function(){a(null,l.concat(B))}),this},(h.prototype=Object.create(o.prototype,{constructor:{value:h}}))._transform=function(a,B,E){if(!(l.isBuffer(a)||a instanceof Uint8Array))return E(new Error("Iconv decoding stream needs buffers as its input."));try{var u=this.conv.write(a);u&&u.length&&this.push(u,this.encoding),E()}catch(C){E(C)}},h.prototype._flush=function(a){try{var B=this.conv.end();B&&B.length&&this.push(B,this.encoding),a()}catch(E){a(E)}},h.prototype.collect=function(a){var B="";return this.on("error",a),this.on("data",function(E){B+=E}),this.on("end",function(){a(null,B)}),this},{IconvLiteEncoderStream:c,IconvLiteDecoderStream:h}}},645:function(T,I){I.read=function(n,l,i,o,c){var h,a,B=8*c-o-1,E=(1<>1,C=-7,e=i?c-1:0,f=i?-1:1,g=n[l+e];for(e+=f,h=g&(1<<-C)-1,g>>=-C,C+=B;C>0;h=256*h+n[l+e],e+=f,C-=8);for(a=h&(1<<-C)-1,h>>=-C,C+=o;C>0;a=256*a+n[l+e],e+=f,C-=8);if(0===h)h=1-u;else{if(h===E)return a?NaN:1/0*(g?-1:1);a+=Math.pow(2,o),h-=u}return(g?-1:1)*a*Math.pow(2,h-o)},I.write=function(n,l,i,o,c,h){var a,B,E,u=8*h-c-1,C=(1<>1,f=23===c?Math.pow(2,-24)-Math.pow(2,-77):0,g=o?0:h-1,w=o?1:-1,Q=l<0||0===l&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(B=isNaN(l)?1:0,a=C):(a=Math.floor(Math.log(l)/Math.LN2),l*(E=Math.pow(2,-a))<1&&(a--,E*=2),(l+=a+e>=1?f/E:f*Math.pow(2,1-e))*E>=2&&(a++,E/=2),a+e>=C?(B=0,a=C):a+e>=1?(B=(l*E-1)*Math.pow(2,c),a+=e):(B=l*Math.pow(2,e-1)*Math.pow(2,c),a=0));c>=8;n[i+g]=255&B,g+=w,B/=256,c-=8);for(a=a<0;n[i+g]=255&a,g+=w,a/=256,u-=8);n[i+g-w]|=128*Q}},5717:function(T){T.exports="function"==typeof Object.create?function(n,l){l&&(n.super_=l,n.prototype=Object.create(l.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:function(n,l){if(l){n.super_=l;var i=function(){};i.prototype=l.prototype,n.prototype=new i,n.prototype.constructor=n}}},2584:function(T,I,n){"use strict";var l=n(6410)(),o=n(1924)("Object.prototype.toString"),c=function(E){return!(l&&E&&"object"==typeof E&&Symbol.toStringTag in E)&&"[object Arguments]"===o(E)},h=function(E){return!!c(E)||null!==E&&"object"==typeof E&&"number"==typeof E.length&&E.length>=0&&"[object Array]"!==o(E)&&"[object Function]"===o(E.callee)},a=function(){return c(arguments)}();c.isLegacyArguments=h,T.exports=a?c:h},8923:function(T,I,n){"use strict";var l=Date.prototype.getDay,o=Object.prototype.toString,h=n(6410)();T.exports=function(B){return"object"==typeof B&&null!==B&&(h?function(B){try{return l.call(B),!0}catch(E){return!1}}(B):"[object Date]"===o.call(B))}},8662:function(T,I,n){"use strict";var B,l=Object.prototype.toString,i=Function.prototype.toString,o=/^\s*(?:function)?\*/,c=n(6410)(),h=Object.getPrototypeOf;T.exports=function(u){if("function"!=typeof u)return!1;if(o.test(i.call(u)))return!0;if(!c)return"[object GeneratorFunction]"===l.call(u);if(!h)return!1;if(void 0===B){var e=function(){if(!c)return!1;try{return Function("return function*() {}")()}catch(E){}}();B=!!e&&h(e)}return h(u)===B}},8611:function(T){"use strict";T.exports=function(n){return n!=n}},360:function(T,I,n){"use strict";var l=n(5559),i=n(4289),o=n(8611),c=n(9415),h=n(6743),a=l(c(),Number);i(a,{getPolyfill:c,implementation:o,shim:h}),T.exports=a},9415:function(T,I,n){"use strict";var l=n(8611);T.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:l}},6743:function(T,I,n){"use strict";var l=n(4289),i=n(9415);T.exports=function(){var c=i();return l(Number,{isNaN:c},{isNaN:function(){return Number.isNaN!==c}}),c}},8420:function(T,I,n){"use strict";var o,c,h,a,l=n(1924),i=n(6410)();if(i){o=l("Object.prototype.hasOwnProperty"),c=l("RegExp.prototype.exec"),h={};var B=function(){throw h};a={toString:B,valueOf:B},"symbol"==typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=B)}var E=l("Object.prototype.toString"),u=Object.getOwnPropertyDescriptor;T.exports=i?function(f){if(!f||"object"!=typeof f)return!1;var g=u(f,"lastIndex");if(!g||!o(g,"value"))return!1;try{c(f,a)}catch(Q){return Q===h}}:function(f){return!(!f||"object"!=typeof f&&"function"!=typeof f)&&"[object RegExp]"===E(f)}},5692:function(T,I,n){"use strict";var l=n(9804),i=n(3083),o=n(1924),c=o("Object.prototype.toString"),h=n(6410)(),a="undefined"==typeof globalThis?n.g:globalThis,B=i(),E=o("Array.prototype.indexOf",!0)||function(Q,d){for(var Y=0;Y-1}return!!e&&function(Q){var d=!1;return l(C,function(Y,y){if(!d)try{d=Y.call(Q)===y}catch(p){}}),d}(Q)}},4244:function(T){"use strict";var I=function(n){return n!=n};T.exports=function(l,i){return 0===l&&0===i?1/l==1/i:!!(l===i||I(l)&&I(i))}},609:function(T,I,n){"use strict";var l=n(4289),i=n(5559),o=n(4244),c=n(5624),h=n(2281),a=i(c(),Object);l(a,{getPolyfill:c,implementation:o,shim:h}),T.exports=a},5624:function(T,I,n){"use strict";var l=n(4244);T.exports=function(){return"function"==typeof Object.is?Object.is:l}},2281:function(T,I,n){"use strict";var l=n(5624),i=n(4289);T.exports=function(){var c=l();return i(Object,{is:c},{is:function(){return Object.is!==c}}),c}},8987:function(T,I,n){"use strict";var l;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,c=n(1414),h=Object.prototype.propertyIsEnumerable,a=!h.call({toString:null},"toString"),B=h.call(function(){},"prototype"),E=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(g){var w=g.constructor;return w&&w.prototype===g},C={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},e=function(){if("undefined"==typeof window)return!1;for(var g in window)try{if(!C["$"+g]&&i.call(window,g)&&null!==window[g]&&"object"==typeof window[g])try{u(window[g])}catch(w){return!0}}catch(w){return!0}return!1}();l=function(w){var Q=null!==w&&"object"==typeof w,d="[object Function]"===o.call(w),Y=c(w),y=Q&&"[object String]"===o.call(w),p=[];if(!Q&&!d&&!Y)throw new TypeError("Object.keys called on a non-object");var m=B&&d;if(y&&w.length>0&&!i.call(w,0))for(var D=0;D0)for(var U=0;U=0&&"[object Function]"===I.call(l.callee)),o}},4155:function(T){var n,l,I=T.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function c(w){if(n===setTimeout)return setTimeout(w,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(w,0);try{return n(w,0)}catch(Q){try{return n.call(null,w,0)}catch(d){return n.call(this,w,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(w){n=i}try{l="function"==typeof clearTimeout?clearTimeout:o}catch(w){l=o}}();var E,a=[],B=!1,u=-1;function C(){!B||!E||(B=!1,E.length?a=E.concat(a):u=-1,a.length&&e())}function e(){if(!B){var w=c(C);B=!0;for(var Q=a.length;Q;){for(E=a,a=[];++u1)for(var d=1;d=0;--DA){var FA=this.tryEntries[DA],_=FA.completion;if("root"===FA.tryLoc)return BA("end");if(FA.tryLoc<=this.prev){var dA=i.call(FA,"catchLoc"),uA=i.call(FA,"finallyLoc");if(dA&&uA){if(this.prev=0;--BA){var DA=this.tryEntries[BA];if(DA.tryLoc<=this.prev&&i.call(DA,"finallyLoc")&&this.prev=0;--gA){var BA=this.tryEntries[gA];if(BA.finallyLoc===lA)return this.complete(BA.completion,BA.afterLoc),aA(BA),Q}},catch:function(lA){for(var gA=this.tryEntries.length-1;gA>=0;--gA){var BA=this.tryEntries[gA];if(BA.tryLoc===lA){var DA=BA.completion;if("throw"===DA.type){var FA=DA.arg;aA(BA)}return FA}}throw new Error("illegal catch attempt")},delegateYield:function(lA,gA,BA){return this.delegate={iterator:cA(lA),resultName:gA,nextLoc:BA},"next"===this.method&&(this.arg=o),Q}},n}(T.exports);try{regeneratorRuntime=I}catch(n){"object"==typeof globalThis?globalThis.regeneratorRuntime=I:Function("r","regeneratorRuntime = r")(I)}},3697:function(T){"use strict";var I=Object,n=TypeError;T.exports=function(){if(null!=this&&this!==I(this))throw new n("RegExp.prototype.flags getter called on non-object");var i="";return this.global&&(i+="g"),this.ignoreCase&&(i+="i"),this.multiline&&(i+="m"),this.dotAll&&(i+="s"),this.unicode&&(i+="u"),this.sticky&&(i+="y"),i}},2847:function(T,I,n){"use strict";var l=n(4289),i=n(5559),o=n(3697),c=n(1721),h=n(2753),a=i(o);l(a,{getPolyfill:c,implementation:o,shim:h}),T.exports=a},1721:function(T,I,n){"use strict";var l=n(3697),i=n(4289).supportsDescriptors,o=Object.getOwnPropertyDescriptor,c=TypeError;T.exports=function(){if(!i)throw new c("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");if("gim"===/a/gim.flags){var a=o(RegExp.prototype,"flags");if(a&&"function"==typeof a.get&&"boolean"==typeof/a/.dotAll)return a.get}return l}},2753:function(T,I,n){"use strict";var l=n(4289).supportsDescriptors,i=n(1721),o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,h=TypeError,a=Object.getPrototypeOf,B=/a/;T.exports=function(){if(!l||!a)throw new h("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var u=i(),C=a(B),e=o(C,"flags");return(!e||e.get!==u)&&c(C,"flags",{configurable:!0,enumerable:!1,get:u}),u}},6099:function(T,I,n){var l=n(8823).Buffer;!function(i){i.parser=function(q,O){return new c(q,O)},i.SAXParser=c,i.SAXStream=e,i.createStream=function C(q,O){return new e(q,O)},i.MAX_BUFFER_LENGTH=65536;var E,o=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function c(q,O){if(!(this instanceof c))return new c(q,O);var $=this;(function a(q){for(var O=0,$=o.length;O<$;O++)q[o[O]]=""})($),$.q=$.c="",$.bufferCheckPosition=i.MAX_BUFFER_LENGTH,$.opt=O||{},$.opt.lowercase=$.opt.lowercase||$.opt.lowercasetags,$.looseCase=$.opt.lowercase?"toLowerCase":"toUpperCase",$.tags=[],$.closed=$.closedRoot=$.sawRoot=!1,$.tag=$.error=null,$.strict=!!q,$.noscript=!(!q&&!$.opt.noscript),$.state=L.BEGIN,$.strictEntities=$.opt.strictEntities,$.ENTITIES=Object.create($.strictEntities?i.XML_ENTITIES:i.ENTITIES),$.attribList=[],$.opt.xmlns&&($.ns=Object.create(d)),$.trackPosition=!1!==$.opt.position,$.trackPosition&&($.position=$.line=$.column=0),aA($,"onready")}i.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(q){function O(){}return O.prototype=q,new O}),Object.keys||(Object.keys=function(q){var O=[];for(var $ in q)q.hasOwnProperty($)&&O.push($);return O}),c.prototype={end:function(){gA(this)},write:function XA(q){var O=this;if(this.error)throw this.error;if(O.closed)return lA(O,"Cannot write after close. Assign an onready handler.");if(null===q)return gA(O);"object"==typeof q&&(q=q.toString());for(var $=0,V="";V=bA(q,$++),O.c=V,V;)switch(O.trackPosition&&(O.position++,"\n"===V?(O.line++,O.column=0):O.column++),O.state){case L.BEGIN:if(O.state=L.BEGIN_WHITESPACE,"\ufeff"===V)continue;NA(O,V);continue;case L.BEGIN_WHITESPACE:NA(O,V);continue;case L.TEXT:if(O.sawRoot&&!O.closedRoot){for(var hA=$-1;V&&"<"!==V&&"&"!==V;)(V=bA(q,$++))&&O.trackPosition&&(O.position++,"\n"===V?(O.line++,O.column=0):O.column++);O.textNode+=q.substring(hA,$-1)}"<"!==V||O.sawRoot&&O.closedRoot&&!O.strict?(!D(V)&&(!O.sawRoot||O.closedRoot)&&BA(O,"Text data outside of root node."),"&"===V?O.state=L.TEXT_ENTITY:O.textNode+=V):(O.state=L.OPEN_WAKA,O.startTagPosition=O.position);continue;case L.SCRIPT:"<"===V?O.state=L.SCRIPT_ENDING:O.script+=V;continue;case L.SCRIPT_ENDING:"/"===V?O.state=L.CLOSE_TAG:(O.script+="<"+V,O.state=L.SCRIPT);continue;case L.OPEN_WAKA:"!"===V?(O.state=L.SGML_DECL,O.sgmlDecl=""):D(V)||(F(Y,V)?(O.state=L.OPEN_TAG,O.tagName=V):"/"===V?(O.state=L.CLOSE_TAG,O.tagName=""):"?"===V?(O.state=L.PROC_INST,O.procInstName=O.procInstBody=""):(BA(O,"Unencoded <"),O.startTagPosition+1"===V?(AA(O,"onsgmldeclaration",O.sgmlDecl),O.sgmlDecl="",O.state=L.TEXT):(U(V)&&(O.state=L.SGML_DECL_QUOTED),O.sgmlDecl+=V);continue;case L.SGML_DECL_QUOTED:V===O.q&&(O.state=L.SGML_DECL,O.q=""),O.sgmlDecl+=V;continue;case L.DOCTYPE:">"===V?(O.state=L.TEXT,AA(O,"ondoctype",O.doctype),O.doctype=!0):(O.doctype+=V,"["===V?O.state=L.DOCTYPE_DTD:U(V)&&(O.state=L.DOCTYPE_QUOTED,O.q=V));continue;case L.DOCTYPE_QUOTED:O.doctype+=V,V===O.q&&(O.q="",O.state=L.DOCTYPE);continue;case L.DOCTYPE_DTD:O.doctype+=V,"]"===V?O.state=L.DOCTYPE:U(V)&&(O.state=L.DOCTYPE_DTD_QUOTED,O.q=V);continue;case L.DOCTYPE_DTD_QUOTED:O.doctype+=V,V===O.q&&(O.state=L.DOCTYPE_DTD,O.q="");continue;case L.COMMENT:"-"===V?O.state=L.COMMENT_ENDING:O.comment+=V;continue;case L.COMMENT_ENDING:"-"===V?(O.state=L.COMMENT_ENDED,O.comment=MA(O.opt,O.comment),O.comment&&AA(O,"oncomment",O.comment),O.comment=""):(O.comment+="-"+V,O.state=L.COMMENT);continue;case L.COMMENT_ENDED:">"!==V?(BA(O,"Malformed comment"),O.comment+="--"+V,O.state=L.COMMENT):O.state=L.TEXT;continue;case L.CDATA:"]"===V?O.state=L.CDATA_ENDING:O.cdata+=V;continue;case L.CDATA_ENDING:"]"===V?O.state=L.CDATA_ENDING_2:(O.cdata+="]"+V,O.state=L.CDATA);continue;case L.CDATA_ENDING_2:">"===V?(O.cdata&&AA(O,"oncdata",O.cdata),AA(O,"onclosecdata"),O.cdata="",O.state=L.TEXT):"]"===V?O.cdata+="]":(O.cdata+="]]"+V,O.state=L.CDATA);continue;case L.PROC_INST:"?"===V?O.state=L.PROC_INST_ENDING:D(V)?O.state=L.PROC_INST_BODY:O.procInstName+=V;continue;case L.PROC_INST_BODY:if(!O.procInstBody&&D(V))continue;"?"===V?O.state=L.PROC_INST_ENDING:O.procInstBody+=V;continue;case L.PROC_INST_ENDING:">"===V?(AA(O,"onprocessinginstruction",{name:O.procInstName,body:O.procInstBody}),O.procInstName=O.procInstBody="",O.state=L.TEXT):(O.procInstBody+="?"+V,O.state=L.PROC_INST_BODY);continue;case L.OPEN_TAG:F(y,V)?O.tagName+=V:(DA(O),">"===V?dA(O):"/"===V?O.state=L.OPEN_TAG_SLASH:(D(V)||BA(O,"Invalid character in tag name"),O.state=L.ATTRIB));continue;case L.OPEN_TAG_SLASH:">"===V?(dA(O,!0),uA(O)):(BA(O,"Forward-slash in opening tag not followed by >"),O.state=L.ATTRIB);continue;case L.ATTRIB:if(D(V))continue;">"===V?dA(O):"/"===V?O.state=L.OPEN_TAG_SLASH:F(Y,V)?(O.attribName=V,O.attribValue="",O.state=L.ATTRIB_NAME):BA(O,"Invalid attribute name");continue;case L.ATTRIB_NAME:"="===V?O.state=L.ATTRIB_VALUE:">"===V?(BA(O,"Attribute without value"),O.attribValue=O.attribName,_(O),dA(O)):D(V)?O.state=L.ATTRIB_NAME_SAW_WHITE:F(y,V)?O.attribName+=V:BA(O,"Invalid attribute name");continue;case L.ATTRIB_NAME_SAW_WHITE:if("="===V)O.state=L.ATTRIB_VALUE;else{if(D(V))continue;BA(O,"Attribute without value"),O.tag.attributes[O.attribName]="",O.attribValue="",AA(O,"onattribute",{name:O.attribName,value:""}),O.attribName="",">"===V?dA(O):F(Y,V)?(O.attribName=V,O.state=L.ATTRIB_NAME):(BA(O,"Invalid attribute name"),O.state=L.ATTRIB)}continue;case L.ATTRIB_VALUE:if(D(V))continue;U(V)?(O.q=V,O.state=L.ATTRIB_VALUE_QUOTED):(BA(O,"Unquoted attribute value"),O.state=L.ATTRIB_VALUE_UNQUOTED,O.attribValue=V);continue;case L.ATTRIB_VALUE_QUOTED:if(V!==O.q){"&"===V?O.state=L.ATTRIB_VALUE_ENTITY_Q:O.attribValue+=V;continue}_(O),O.q="",O.state=L.ATTRIB_VALUE_CLOSED;continue;case L.ATTRIB_VALUE_CLOSED:D(V)?O.state=L.ATTRIB:">"===V?dA(O):"/"===V?O.state=L.OPEN_TAG_SLASH:F(Y,V)?(BA(O,"No whitespace between attributes"),O.attribName=V,O.attribValue="",O.state=L.ATTRIB_NAME):BA(O,"Invalid attribute name");continue;case L.ATTRIB_VALUE_UNQUOTED:if(!N(V)){"&"===V?O.state=L.ATTRIB_VALUE_ENTITY_U:O.attribValue+=V;continue}_(O),">"===V?dA(O):O.state=L.ATTRIB;continue;case L.CLOSE_TAG:if(O.tagName)">"===V?uA(O):F(y,V)?O.tagName+=V:O.script?(O.script+=""===V?uA(O):BA(O,"Invalid characters in closing tag");continue;case L.TEXT_ENTITY:case L.ATTRIB_VALUE_ENTITY_Q:case L.ATTRIB_VALUE_ENTITY_U:var nA,EA;switch(O.state){case L.TEXT_ENTITY:nA=L.TEXT,EA="textNode";break;case L.ATTRIB_VALUE_ENTITY_Q:nA=L.ATTRIB_VALUE_QUOTED,EA="attribValue";break;case L.ATTRIB_VALUE_ENTITY_U:nA=L.ATTRIB_VALUE_UNQUOTED,EA="attribValue"}";"===V?(O[EA]+=CA(O),O.entity="",O.state=nA):F(O.entity.length?m:p,V)?O.entity+=V:(BA(O,"Invalid character in entity name"),O[EA]+="&"+O.entity+V,O.entity="",O.state=nA);continue;default:throw new Error(O,"Unknown state: "+O.state)}return O.position>=O.bufferCheckPosition&&function h(q){for(var O=Math.max(i.MAX_BUFFER_LENGTH,10),$=0,V=0,hA=o.length;VO)switch(o[V]){case"textNode":cA(q);break;case"cdata":AA(q,"oncdata",q.cdata),q.cdata="";break;case"script":AA(q,"onscript",q.script),q.script="";break;default:lA(q,"Max buffer length exceeded: "+o[V])}$=Math.max($,mA)}q.bufferCheckPosition=i.MAX_BUFFER_LENGTH-$+q.position}(O),O},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){!function B(q){cA(q),""!==q.cdata&&(AA(q,"oncdata",q.cdata),q.cdata=""),""!==q.script&&(AA(q,"onscript",q.script),q.script="")}(this)}};try{E=n(2830).Stream}catch(q){E=function(){}}var u=i.EVENTS.filter(function(q){return"error"!==q&&"end"!==q});function e(q,O){if(!(this instanceof e))return new e(q,O);E.apply(this),this._parser=new c(q,O),this.writable=!0,this.readable=!0;var $=this;this._parser.onend=function(){$.emit("end")},this._parser.onerror=function(V){$.emit("error",V),$._parser.error=null},this._decoder=null,u.forEach(function(V){Object.defineProperty($,"on"+V,{get:function(){return $._parser["on"+V]},set:function(hA){if(!hA)return $.removeAllListeners(V),$._parser["on"+V]=hA,hA;$.on(V,hA)},enumerable:!0,configurable:!1})})}(e.prototype=Object.create(E.prototype,{constructor:{value:e}})).write=function(q){if("function"==typeof l&&"function"==typeof l.isBuffer&&l.isBuffer(q)){if(!this._decoder){var O=n(2553).s;this._decoder=new O("utf8")}q=this._decoder.write(q)}return this._parser.write(q.toString()),this.emit("data",q),!0},e.prototype.end=function(q){return q&&q.length&&this.write(q),this._parser.end(),!0},e.prototype.on=function(q,O){var $=this;return!$._parser["on"+q]&&-1!==u.indexOf(q)&&($._parser["on"+q]=function(){var V=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);V.splice(0,0,q),$.emit.apply($,V)}),E.prototype.on.call($,q,O)};var w="http://www.w3.org/XML/1998/namespace",Q="http://www.w3.org/2000/xmlns/",d={xml:w,xmlns:Q},Y=/[:_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]/,y=/[:_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-]/,p=/[#:_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]/,m=/[#:_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 D(q){return" "===q||"\n"===q||"\r"===q||"\t"===q}function U(q){return'"'===q||"'"===q}function N(q){return">"===q||D(q)}function F(q,O){return q.test(O)}function z(q,O){return!F(q,O)}var q,O,$,L=0;for(var W in i.STATE={BEGIN:L++,BEGIN_WHITESPACE:L++,TEXT:L++,TEXT_ENTITY:L++,OPEN_WAKA:L++,SGML_DECL:L++,SGML_DECL_QUOTED:L++,DOCTYPE:L++,DOCTYPE_QUOTED:L++,DOCTYPE_DTD:L++,DOCTYPE_DTD_QUOTED:L++,COMMENT_STARTING:L++,COMMENT:L++,COMMENT_ENDING:L++,COMMENT_ENDED:L++,CDATA:L++,CDATA_ENDING:L++,CDATA_ENDING_2:L++,PROC_INST:L++,PROC_INST_BODY:L++,PROC_INST_ENDING:L++,OPEN_TAG:L++,OPEN_TAG_SLASH:L++,ATTRIB:L++,ATTRIB_NAME:L++,ATTRIB_NAME_SAW_WHITE:L++,ATTRIB_VALUE:L++,ATTRIB_VALUE_QUOTED:L++,ATTRIB_VALUE_CLOSED:L++,ATTRIB_VALUE_UNQUOTED:L++,ATTRIB_VALUE_ENTITY_Q:L++,ATTRIB_VALUE_ENTITY_U:L++,CLOSE_TAG:L++,CLOSE_TAG_SAW_WHITE:L++,SCRIPT:L++,SCRIPT_ENDING:L++},i.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},i.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(i.ENTITIES).forEach(function(q){var O=i.ENTITIES[q],$="number"==typeof O?String.fromCharCode(O):O;i.ENTITIES[q]=$}),i.STATE)i.STATE[i.STATE[W]]=W;function aA(q,O,$){q[O]&&q[O]($)}function AA(q,O,$){q.textNode&&cA(q),aA(q,O,$)}function cA(q){q.textNode=MA(q.opt,q.textNode),q.textNode&&aA(q,"ontext",q.textNode),q.textNode=""}function MA(q,O){return q.trim&&(O=O.trim()),q.normalize&&(O=O.replace(/\s+/g," ")),O}function lA(q,O){return cA(q),q.trackPosition&&(O+="\nLine: "+q.line+"\nColumn: "+q.column+"\nChar: "+q.c),O=new Error(O),q.error=O,aA(q,"onerror",O),q}function gA(q){return q.sawRoot&&!q.closedRoot&&BA(q,"Unclosed root tag"),q.state!==L.BEGIN&&q.state!==L.BEGIN_WHITESPACE&&q.state!==L.TEXT&&lA(q,"Unexpected end"),cA(q),q.c="",q.closed=!0,aA(q,"onend"),c.call(q,q.strict,q.opt),q}function BA(q,O){if("object"!=typeof q||!(q instanceof c))throw new Error("bad call to strictFail");q.strict&&lA(q,O)}function DA(q){q.strict||(q.tagName=q.tagName[q.looseCase]());var O=q.tags[q.tags.length-1]||q,$=q.tag={name:q.tagName,attributes:{}};q.opt.xmlns&&($.ns=O.ns),q.attribList.length=0,AA(q,"onopentagstart",$)}function FA(q,O){var V=q.indexOf(":")<0?["",q]:q.split(":"),hA=V[0],mA=V[1];return O&&"xmlns"===q&&(hA="xmlns",mA=""),{prefix:hA,local:mA}}function _(q){if(q.strict||(q.attribName=q.attribName[q.looseCase]()),-1!==q.attribList.indexOf(q.attribName)||q.tag.attributes.hasOwnProperty(q.attribName))q.attribName=q.attribValue="";else{if(q.opt.xmlns){var O=FA(q.attribName,!0),V=O.local;if("xmlns"===O.prefix)if("xml"===V&&q.attribValue!==w)BA(q,"xml: prefix must be bound to "+w+"\nActual: "+q.attribValue);else if("xmlns"===V&&q.attribValue!==Q)BA(q,"xmlns: prefix must be bound to "+Q+"\nActual: "+q.attribValue);else{var hA=q.tag,mA=q.tags[q.tags.length-1]||q;hA.ns===mA.ns&&(hA.ns=Object.create(mA.ns)),hA.ns[V]=q.attribValue}q.attribList.push([q.attribName,q.attribValue])}else q.tag.attributes[q.attribName]=q.attribValue,AA(q,"onattribute",{name:q.attribName,value:q.attribValue});q.attribName=q.attribValue=""}}function dA(q,O){if(q.opt.xmlns){var $=q.tag,V=FA(q.tagName);$.prefix=V.prefix,$.local=V.local,$.uri=$.ns[V.prefix]||"",$.prefix&&!$.uri&&(BA(q,"Unbound namespace prefix: "+JSON.stringify(q.tagName)),$.uri=V.prefix),$.ns&&(q.tags[q.tags.length-1]||q).ns!==$.ns&&Object.keys($.ns).forEach(function(ut){AA(q,"onopennamespace",{prefix:ut,uri:$.ns[ut]})});for(var mA=0,nA=q.attribList.length;mA",q.tagName="",void(q.state=L.SCRIPT);AA(q,"onscript",q.script),q.script=""}var O=q.tags.length,$=q.tagName;q.strict||($=$[q.looseCase]());for(var V=$;O--&&q.tags[O].name!==V;)BA(q,"Unexpected close tag");if(O<0)return BA(q,"Unmatched closing tag: "+q.tagName),q.textNode+="",void(q.state=L.TEXT);q.tagName=$;for(var mA=q.tags.length;mA-- >O;){var nA=q.tag=q.tags.pop();q.tagName=q.tag.name,AA(q,"onclosetag",q.tagName);var EA={};for(var GA in nA.ns)EA[GA]=nA.ns[GA];q.opt.xmlns&&nA.ns!==(q.tags[q.tags.length-1]||q).ns&&Object.keys(nA.ns).forEach(function(ot){AA(q,"onclosenamespace",{prefix:ot,uri:nA.ns[ot]})})}0===O&&(q.closedRoot=!0),q.tagName=q.attribValue=q.attribName="",q.attribList.length=0,q.state=L.TEXT}function CA(q){var V,O=q.entity,$=O.toLowerCase(),hA="";return q.ENTITIES[O]?q.ENTITIES[O]:q.ENTITIES[$]?q.ENTITIES[$]:("#"===(O=$).charAt(0)&&("x"===O.charAt(1)?(O=O.slice(2),hA=(V=parseInt(O,16)).toString(16)):(O=O.slice(1),hA=(V=parseInt(O,10)).toString(10))),O=O.replace(/^0+/,""),isNaN(V)||hA.toLowerCase()!==O?(BA(q,"Invalid character entity"),"&"+q.entity+";"):String.fromCodePoint(V))}function NA(q,O){"<"===O?(q.state=L.OPEN_WAKA,q.startTagPosition=q.position):D(O)||(BA(q,"Non-whitespace before first tag."),q.textNode=O,q.state=L.TEXT)}function bA(q,O){var $="";return O1114111||O(ot)!==ot)throw RangeError("Invalid code point: "+ot);ot<=65535?hA.push(ot):hA.push(55296+((ot-=65536)>>10),ot%1024+56320),(EA+1===GA||hA.length>V)&&(et+=q.apply(null,hA),hA.length=0)}return et},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:$,configurable:!0,writable:!0}):String.fromCodePoint=$)}(I)},2830:function(T,I,n){T.exports=o;var l=n(7187).EventEmitter;function o(){l.call(this)}n(5717)(o,l),o.Readable=n(6577),o.Writable=n(323),o.Duplex=n(8656),o.Transform=n(4473),o.PassThrough=n(2366),o.finished=n(1086),o.pipeline=n(6472),o.Stream=o,o.prototype.pipe=function(c,h){var a=this;function B(w){c.writable&&!1===c.write(w)&&a.pause&&a.pause()}function E(){a.readable&&a.resume&&a.resume()}a.on("data",B),c.on("drain",E),!c._isStdio&&(!h||!1!==h.end)&&(a.on("end",C),a.on("close",e));var u=!1;function C(){u||(u=!0,c.end())}function e(){u||(u=!0,"function"==typeof c.destroy&&c.destroy())}function f(w){if(g(),0===l.listenerCount(this,"error"))throw w}function g(){a.removeListener("data",B),c.removeListener("drain",E),a.removeListener("end",C),a.removeListener("close",e),a.removeListener("error",f),c.removeListener("error",f),a.removeListener("end",g),a.removeListener("close",g),c.removeListener("close",g)}return a.on("error",f),c.on("error",f),a.on("end",g),a.on("close",g),c.on("close",g),c.emit("pipe",a),c}},8106:function(T){"use strict";var n={};function l(a,B,E){E||(E=Error);var C=function(e){function f(g,w,Q){return e.call(this,function u(e,f,g){return"string"==typeof B?B:B(e,f,g)}(g,w,Q))||this}return function I(a,B){a.prototype=Object.create(B.prototype),a.prototype.constructor=a,a.__proto__=B}(f,e),f}(E);C.prototype.name=E.name,C.prototype.code=a,n[a]=C}function i(a,B){if(Array.isArray(a)){var E=a.length;return a=a.map(function(u){return String(u)}),E>2?"one of ".concat(B," ").concat(a.slice(0,E-1).join(", "),", or ")+a[E-1]:2===E?"one of ".concat(B," ").concat(a[0]," or ").concat(a[1]):"of ".concat(B," ").concat(a[0])}return"of ".concat(B," ").concat(String(a))}l("ERR_INVALID_OPT_VALUE",function(a,B){return'The value "'+B+'" is invalid for option "'+a+'"'},TypeError),l("ERR_INVALID_ARG_TYPE",function(a,B,E){var u,C;if("string"==typeof B&&function o(a,B,E){return a.substr(!E||E<0?0:+E,B.length)===B}(B,"not ")?(u="must not be",B=B.replace(/^not /,"")):u="must be",function c(a,B,E){return(void 0===E||E>a.length)&&(E=a.length),a.substring(E-B.length,E)===B}(a," argument"))C="The ".concat(a," ").concat(u," ").concat(i(B,"type"));else{var e=function h(a,B,E){return"number"!=typeof E&&(E=0),!(E+B.length>a.length)&&-1!==a.indexOf(B,E)}(a,".")?"property":"argument";C='The "'.concat(a,'" ').concat(e," ").concat(u," ").concat(i(B,"type"))}return C+". Received type ".concat(typeof E)},TypeError),l("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),l("ERR_METHOD_NOT_IMPLEMENTED",function(a){return"The "+a+" method is not implemented"}),l("ERR_STREAM_PREMATURE_CLOSE","Premature close"),l("ERR_STREAM_DESTROYED",function(a){return"Cannot call "+a+" after a stream was destroyed"}),l("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),l("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),l("ERR_STREAM_WRITE_AFTER_END","write after end"),l("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),l("ERR_UNKNOWN_ENCODING",function(a){return"Unknown encoding: "+a},TypeError),l("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),T.exports.q=n},8656:function(T,I,n){"use strict";var l=n(4155),i=Object.keys||function(e){var f=[];for(var g in e)f.push(g);return f};T.exports=E;var o=n(6577),c=n(323);n(5717)(E,o);for(var h=i(c.prototype),a=0;a0)if("string"!=typeof EA&&!TA.objectMode&&Object.getPrototypeOf(EA)!==a.prototype&&(EA=function E(nA){return a.from(nA)}(EA)),et)TA.endEmitted?F(nA,new m):cA(nA,TA,EA,!0);else if(TA.ended)F(nA,new y);else{if(TA.destroyed)return!1;TA.reading=!1,TA.decoder&&!GA?(EA=TA.decoder.write(EA),TA.objectMode||0!==EA.length?cA(nA,TA,EA,!1):dA(nA,TA)):cA(nA,TA,EA,!1)}else et||(TA.reading=!1,dA(nA,TA));return!TA.ended&&(TA.lengthEA.highWaterMark&&(EA.highWaterMark=function gA(nA){return nA>=lA?nA=lA:(nA--,nA|=nA>>>1,nA|=nA>>>2,nA|=nA>>>4,nA|=nA>>>8,nA|=nA>>>16,nA++),nA}(nA)),nA<=EA.length?nA:EA.ended?EA.length:(EA.needReadable=!0,0))}function FA(nA){var EA=nA._readableState;e("emitReadable",EA.needReadable,EA.emittedReadable),EA.needReadable=!1,EA.emittedReadable||(e("emitReadable",EA.flowing),EA.emittedReadable=!0,l.nextTick(_,nA))}function _(nA){var EA=nA._readableState;e("emitReadable_",EA.destroyed,EA.length,EA.ended),!EA.destroyed&&(EA.length||EA.ended)&&(nA.emit("readable"),EA.emittedReadable=!1),EA.needReadable=!EA.flowing&&!EA.ended&&EA.length<=EA.highWaterMark,O(nA)}function dA(nA,EA){EA.readingMore||(EA.readingMore=!0,l.nextTick(uA,nA,EA))}function uA(nA,EA){for(;!EA.reading&&!EA.ended&&(EA.length0,EA.resumeScheduled&&!EA.paused?EA.flowing=!0:nA.listenerCount("data")>0&&nA.resume()}function bA(nA){e("readable nexttick read 0"),nA.read(0)}function q(nA,EA){e("resume",EA.reading),EA.reading||nA.read(0),EA.resumeScheduled=!1,nA.emit("resume"),O(nA),EA.flowing&&!EA.reading&&nA.read(0)}function O(nA){var EA=nA._readableState;for(e("flow",EA.flowing);EA.flowing&&null!==nA.read(););}function $(nA,EA){return 0===EA.length?null:(EA.objectMode?GA=EA.buffer.shift():!nA||nA>=EA.length?(GA=EA.decoder?EA.buffer.join(""):1===EA.buffer.length?EA.buffer.first():EA.buffer.concat(EA.length),EA.buffer.clear()):GA=EA.buffer.consume(nA,EA.decoder),GA);var GA}function V(nA){var EA=nA._readableState;e("endReadable",EA.endEmitted),EA.endEmitted||(EA.ended=!0,l.nextTick(hA,EA,nA))}function hA(nA,EA){if(e("endReadableNT",nA.endEmitted,nA.length),!nA.endEmitted&&0===nA.length&&(nA.endEmitted=!0,EA.readable=!1,EA.emit("end"),nA.autoDestroy)){var GA=EA._writableState;(!GA||GA.autoDestroy&&GA.finished)&&EA.destroy()}}function mA(nA,EA){for(var GA=0,et=nA.length;GA=EA.highWaterMark:EA.length>0)||EA.ended))return e("read: emitReadable",EA.length,EA.ended),0===EA.length&&EA.ended?V(this):FA(this),null;if(0===(nA=BA(nA,EA))&&EA.ended)return 0===EA.length&&V(this),null;var ot,et=EA.needReadable;return e("need readable",et),(0===EA.length||EA.length-nA0?$(nA,EA):null)?(EA.needReadable=EA.length<=EA.highWaterMark,nA=0):(EA.length-=nA,EA.awaitDrain=0),0===EA.length&&(EA.ended||(EA.needReadable=!0),GA!==nA&&EA.ended&&V(this)),null!==ot&&this.emit("data",ot),ot},aA.prototype._read=function(nA){F(this,new p("_read()"))},aA.prototype.pipe=function(nA,EA){var GA=this,et=this._readableState;switch(et.pipesCount){case 0:et.pipes=nA;break;case 1:et.pipes=[et.pipes,nA];break;default:et.pipes.push(nA)}et.pipesCount+=1,e("pipe count=%d opts=%j",et.pipesCount,EA);var TA=EA&&!1===EA.end||nA===l.stdout||nA===l.stderr?Et:mt;function it(OA,Yt){e("onunpipe"),OA===GA&&Yt&&!1===Yt.hasUnpiped&&(Yt.hasUnpiped=!0,function JA(){e("cleanup"),nA.removeListener("close",yA),nA.removeListener("finish",Mt),nA.removeListener("drain",It),nA.removeListener("error",rt),nA.removeListener("unpipe",it),GA.removeListener("end",mt),GA.removeListener("end",Et),GA.removeListener("data",VA),ut=!0,et.awaitDrain&&(!nA._writableState||nA._writableState.needDrain)&&It()}())}function mt(){e("onend"),nA.end()}et.endEmitted?l.nextTick(TA):GA.once("end",TA),nA.on("unpipe",it);var It=function CA(nA){return function(){var GA=nA._readableState;e("pipeOnDrain",GA.awaitDrain),GA.awaitDrain&&GA.awaitDrain--,0===GA.awaitDrain&&c(nA,"data")&&(GA.flowing=!0,O(nA))}}(GA);nA.on("drain",It);var ut=!1;function VA(OA){e("ondata");var Yt=nA.write(OA);e("dest.write",Yt),!1===Yt&&((1===et.pipesCount&&et.pipes===nA||et.pipesCount>1&&-1!==mA(et.pipes,nA))&&!ut&&(e("false write response, pause",et.awaitDrain),et.awaitDrain++),GA.pause())}function rt(OA){e("onerror",OA),Et(),nA.removeListener("error",rt),0===c(nA,"error")&&F(nA,OA)}function yA(){nA.removeListener("finish",Mt),Et()}function Mt(){e("onfinish"),nA.removeListener("close",yA),Et()}function Et(){e("unpipe"),GA.unpipe(nA)}return GA.on("data",VA),function L(nA,EA,GA){if("function"==typeof nA.prependListener)return nA.prependListener(EA,GA);nA._events&&nA._events[EA]?Array.isArray(nA._events[EA])?nA._events[EA].unshift(GA):nA._events[EA]=[GA,nA._events[EA]]:nA.on(EA,GA)}(nA,"error",rt),nA.once("close",yA),nA.once("finish",Mt),nA.emit("pipe",GA),et.flowing||(e("pipe resume"),GA.resume()),nA},aA.prototype.unpipe=function(nA){var EA=this._readableState,GA={hasUnpiped:!1};if(0===EA.pipesCount)return this;if(1===EA.pipesCount)return nA&&nA!==EA.pipes||(nA||(nA=EA.pipes),EA.pipes=null,EA.pipesCount=0,EA.flowing=!1,nA&&nA.emit("unpipe",this,GA)),this;if(!nA){var et=EA.pipes,ot=EA.pipesCount;EA.pipes=null,EA.pipesCount=0,EA.flowing=!1;for(var TA=0;TA0,!1!==et.flowing&&this.resume()):"readable"===nA&&!et.endEmitted&&!et.readableListening&&(et.readableListening=et.needReadable=!0,et.flowing=!1,et.emittedReadable=!1,e("on readable",et.length,et.reading),et.length?FA(this):et.reading||l.nextTick(bA,this)),GA},aA.prototype.removeListener=function(nA,EA){var GA=h.prototype.removeListener.call(this,nA,EA);return"readable"===nA&&l.nextTick(NA,this),GA},aA.prototype.removeAllListeners=function(nA){var EA=h.prototype.removeAllListeners.apply(this,arguments);return("readable"===nA||void 0===nA)&&l.nextTick(NA,this),EA},aA.prototype.resume=function(){var nA=this._readableState;return nA.flowing||(e("resume"),nA.flowing=!nA.readableListening,function XA(nA,EA){EA.resumeScheduled||(EA.resumeScheduled=!0,l.nextTick(q,nA,EA))}(this,nA)),nA.paused=!1,this},aA.prototype.pause=function(){return e("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(e("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},aA.prototype.wrap=function(nA){var EA=this,GA=this._readableState,et=!1;for(var ot in nA.on("end",function(){if(e("wrapped end"),GA.decoder&&!GA.ended){var it=GA.decoder.end();it&&it.length&&EA.push(it)}EA.push(null)}),nA.on("data",function(it){e("wrapped data"),GA.decoder&&(it=GA.decoder.write(it)),GA.objectMode&&null==it||!(GA.objectMode||it&&it.length)||EA.push(it)||(et=!0,nA.pause())}),nA)void 0===this[ot]&&"function"==typeof nA[ot]&&(this[ot]=function(mt){return function(){return nA[mt].apply(nA,arguments)}}(ot));for(var TA=0;TA-1))throw new U($);return this._writableState.defaultEncoding=$,this},Object.defineProperty(W.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(W.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),W.prototype._write=function(O,$,V){V(new d("_write()"))},W.prototype._writev=null,W.prototype.end=function(O,$,V){var hA=this._writableState;return"function"==typeof O?(V=O,O=null,$=null):"function"==typeof $&&(V=$,$=null),null!=O&&this.write(O,$),hA.corked&&(hA.corked=1,this.uncork()),hA.ending||function XA(O,$,V){$.ending=!0,bA(O,$),V&&($.finished?l.nextTick(V):O.once("finish",V)),$.ended=!0,O.writable=!1}(this,hA,V),this},Object.defineProperty(W.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(W.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function($){!this._writableState||(this._writableState.destroyed=$)}}),W.prototype.destroy=e.destroy,W.prototype._undestroy=e.undestroy,W.prototype._destroy=function(O,$){$(O)}},828:function(T,I,n){"use strict";var i,l=n(4155);function o(p,m,D){return m in p?Object.defineProperty(p,m,{value:D,enumerable:!0,configurable:!0,writable:!0}):p[m]=D,p}var c=n(1086),h=Symbol("lastResolve"),a=Symbol("lastReject"),B=Symbol("error"),E=Symbol("ended"),u=Symbol("lastPromise"),C=Symbol("handlePromise"),e=Symbol("stream");function f(p,m){return{value:p,done:m}}function g(p){var m=p[h];if(null!==m){var D=p[e].read();null!==D&&(p[u]=null,p[h]=null,p[a]=null,m(f(D,!1)))}}function w(p){l.nextTick(g,p)}var d=Object.getPrototypeOf(function(){}),Y=Object.setPrototypeOf((o(i={get stream(){return this[e]},next:function(){var m=this,D=this[B];if(null!==D)return Promise.reject(D);if(this[E])return Promise.resolve(f(void 0,!0));if(this[e].destroyed)return new Promise(function(z,L){l.nextTick(function(){m[B]?L(m[B]):z(f(void 0,!0))})});var N,U=this[u];if(U)N=new Promise(function Q(p,m){return function(D,U){p.then(function(){m[E]?D(f(void 0,!0)):m[C](D,U)},U)}}(U,this));else{var F=this[e].read();if(null!==F)return Promise.resolve(f(F,!1));N=new Promise(this[C])}return this[u]=N,N}},Symbol.asyncIterator,function(){return this}),o(i,"return",function(){var m=this;return new Promise(function(D,U){m[e].destroy(null,function(N){N?U(N):D(f(void 0,!0))})})}),i),d);T.exports=function(m){var D,U=Object.create(Y,(o(D={},e,{value:m,writable:!0}),o(D,h,{value:null,writable:!0}),o(D,a,{value:null,writable:!0}),o(D,B,{value:null,writable:!0}),o(D,E,{value:m._readableState.endEmitted,writable:!0}),o(D,C,{value:function(F,z){var L=U[e].read();L?(U[u]=null,U[h]=null,U[a]=null,F(f(L,!1))):(U[h]=F,U[a]=z)},writable:!0}),D));return U[u]=null,c(m,function(N){if(N&&"ERR_STREAM_PREMATURE_CLOSE"!==N.code){var F=U[a];return null!==F&&(U[u]=null,U[h]=null,U[a]=null,F(N)),void(U[B]=N)}var z=U[h];null!==z&&(U[u]=null,U[h]=null,U[a]=null,z(f(void 0,!0))),U[E]=!0}),m.on("readable",w.bind(null,U)),U}},1029:function(T,I,n){"use strict";var l=n(4155);function o(E,u){a(E,u),c(E)}function c(E){E._writableState&&!E._writableState.emitClose||E._readableState&&!E._readableState.emitClose||E.emit("close")}function a(E,u){E.emit("error",u)}T.exports={destroy:function i(E,u){var C=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(u?u(E):E&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,l.nextTick(a,this,E)):l.nextTick(a,this,E)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(E||null,function(g){!u&&g?C._writableState?C._writableState.errorEmitted?l.nextTick(c,C):(C._writableState.errorEmitted=!0,l.nextTick(o,C,g)):l.nextTick(o,C,g):u?(l.nextTick(c,C),u(g)):l.nextTick(c,C)}),this)},undestroy:function h(){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(E,u){var C=E._readableState,e=E._writableState;C&&C.autoDestroy||e&&e.autoDestroy?E.destroy(u):E.emit("error",u)}}},1086:function(T,I,n){"use strict";var l=n(8106).q.ERR_STREAM_PREMATURE_CLOSE;function o(){}T.exports=function h(a,B,E){if("function"==typeof B)return h(a,null,B);B||(B={}),E=function i(a){var B=!1;return function(){if(!B){B=!0;for(var E=arguments.length,u=new Array(E),C=0;C0,function(N){Y||(Y=N),N&&y.forEach(u),!D&&(y.forEach(u),d(Y))})});return w.reduce(C)}},94:function(T,I,n){"use strict";var l=n(8106).q.ERR_INVALID_OPT_VALUE;T.exports={getHighWaterMark:function o(c,h,a,B){var E=function i(c,h,a){return null!=c.highWaterMark?c.highWaterMark:h?c[a]:null}(h,B,a);if(null!=E){if(!isFinite(E)||Math.floor(E)!==E||E<0)throw new l(B?a:"highWaterMark",E);return Math.floor(E)}return c.objectMode?16:16384}}},3194:function(T,I,n){T.exports=n(7187).EventEmitter},4896:function(T,I,n){var l,o;void 0!==(o="function"==typeof(l=function(){"use strict";function h(e,f,g){var w=new XMLHttpRequest;w.open("GET",e),w.responseType="blob",w.onload=function(){C(w.response,f,g)},w.onerror=function(){console.error("could not download file")},w.send()}function a(e){var f=new XMLHttpRequest;f.open("HEAD",e,!1);try{f.send()}catch(g){}return 200<=f.status&&299>=f.status}function B(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(g){var f=document.createEvent("MouseEvents");f.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(f)}}var E="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,u=E.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),C=E.saveAs||("object"!=typeof window||window!==E?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!u?function(e,f,g){var w=E.URL||E.webkitURL,Q=document.createElement("a");Q.download=f=f||e.name||"download",Q.rel="noopener","string"==typeof e?(Q.href=e,Q.origin===location.origin?B(Q):a(Q.href)?h(e,f,g):B(Q,Q.target="_blank")):(Q.href=w.createObjectURL(e),setTimeout(function(){w.revokeObjectURL(Q.href)},4e4),setTimeout(function(){B(Q)},0))}:"msSaveOrOpenBlob"in navigator?function(e,f,g){if(f=f||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function c(e,f){return void 0===f?f={autoBom:!1}:"object"!=typeof f&&(console.warn("Deprecated: Expected third argument to be a object"),f={autoBom:!f}),f.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,g),f);else if(a(e))h(e,f,g);else{var w=document.createElement("a");w.href=e,w.target="_blank",setTimeout(function(){B(w)})}}:function(e,f,g,w){if((w=w||open("","_blank"))&&(w.document.title=w.document.body.innerText="downloading..."),"string"==typeof e)return h(e,f,g);var Q="application/octet-stream"===e.type,d=/constructor/i.test(E.HTMLElement)||E.safari,Y=/CriOS\/[\d]+/.test(navigator.userAgent);if((Y||Q&&d||u)&&"undefined"!=typeof FileReader){var y=new FileReader;y.onloadend=function(){var D=y.result;D=Y?D:D.replace(/^data:[^;]*;/,"data:attachment/file;"),w?w.location.href=D:location=D,w=null},y.readAsDataURL(e)}else{var p=E.URL||E.webkitURL,m=p.createObjectURL(e);w?w.location=m:location.href=m,w=null,setTimeout(function(){p.revokeObjectURL(m)},4e4)}});E.saveAs=C.saveAs=C,T.exports=C})?l.apply(I,[]):l)&&(T.exports=o)},2553:function(T,I,n){"use strict";var l=n(1750).Buffer,i=l.isEncoding||function(y){switch((y=""+y)&&y.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 h(y){var p;switch(this.encoding=function c(y){var p=function o(y){if(!y)return"utf8";for(var p;;)switch(y){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 y;default:if(p)return;y=(""+y).toLowerCase(),p=!0}}(y);if("string"!=typeof p&&(l.isEncoding===i||!i(y)))throw new Error("Unknown encoding: "+y);return p||y}(y),this.encoding){case"utf16le":this.text=f,this.end=g,p=4;break;case"utf8":this.fillLast=u,p=4;break;case"base64":this.text=w,this.end=Q,p=3;break;default:return this.write=d,void(this.end=Y)}this.lastNeed=0,this.lastTotal=0,this.lastChar=l.allocUnsafe(p)}function a(y){return y<=127?0:y>>5==6?2:y>>4==14?3:y>>3==30?4:y>>6==2?-1:-2}function u(y){var p=this.lastTotal-this.lastNeed,m=function E(y,p,m){if(128!=(192&p[0]))return y.lastNeed=0,"\ufffd";if(y.lastNeed>1&&p.length>1){if(128!=(192&p[1]))return y.lastNeed=1,"\ufffd";if(y.lastNeed>2&&p.length>2&&128!=(192&p[2]))return y.lastNeed=2,"\ufffd"}}(this,y);return void 0!==m?m:this.lastNeed<=y.length?(y.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(y.copy(this.lastChar,p,0,y.length),void(this.lastNeed-=y.length))}function f(y,p){if((y.length-p)%2==0){var m=y.toString("utf16le",p);if(m){var D=m.charCodeAt(m.length-1);if(D>=55296&&D<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1],m.slice(0,-1)}return m}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=y[y.length-1],y.toString("utf16le",p,y.length-1)}function g(y){var p=y&&y.length?this.write(y):"";return this.lastNeed?p+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):p}function w(y,p){var m=(y.length-p)%3;return 0===m?y.toString("base64",p):(this.lastNeed=3-m,this.lastTotal=3,1===m?this.lastChar[0]=y[y.length-1]:(this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1]),y.toString("base64",p,y.length-m))}function Q(y){var p=y&&y.length?this.write(y):"";return this.lastNeed?p+this.lastChar.toString("base64",0,3-this.lastNeed):p}function d(y){return y.toString(this.encoding)}function Y(y){return y&&y.length?this.write(y):""}I.s=h,h.prototype.write=function(y){if(0===y.length)return"";var p,m;if(this.lastNeed){if(void 0===(p=this.fillLast(y)))return"";m=this.lastNeed,this.lastNeed=0}else m=0;return m=0?(U>0&&(y.lastNeed=U-1),U):--D=0?(U>0&&(y.lastNeed=U-2),U):--D=0?(U>0&&(2===U?U=0:y.lastNeed=U-3),U):0}(this,y,p);if(!this.lastNeed)return y.toString("utf8",p);this.lastTotal=m;var D=y.length-(m-this.lastNeed);return y.copy(this.lastChar,0,D),y.toString("utf8",p,D)},h.prototype.fillLast=function(y){if(this.lastNeed<=y.length)return y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,y.length),this.lastNeed-=y.length}},311:function(T){function l(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function i(N,F){this.source=N,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=F,this.destLen=0,this.ltree=new l,this.dtree=new l}var o=new l,c=new l,h=new Uint8Array(30),a=new Uint16Array(30),B=new Uint8Array(30),E=new Uint16Array(30),u=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),C=new l,e=new Uint8Array(320);function f(N,F,z,L){var W,aA;for(W=0;W>>=1,F}function Y(N,F,z){if(!F)return z;for(;N.bitcount<24;)N.tag|=N.source[N.sourceIndex++]<>>16-F;return N.tag>>>=F,N.bitcount-=F,L+z}function y(N,F){for(;N.bitcount<24;)N.tag|=N.source[N.sourceIndex++]<>>=1,++W,z+=F.table[W],L-=F.table[W]}while(L>=0);return N.tag=aA,N.bitcount-=W,F.trans[z+L]}function p(N,F,z){var L,W,aA,AA,cA,MA;for(L=Y(N,5,257),W=Y(N,5,1),aA=Y(N,4,4),AA=0;AA<19;++AA)e[AA]=0;for(AA=0;AA8;)N.sourceIndex--,N.bitcount-=8;if((F=256*(F=N.source[N.sourceIndex+1])+N.source[N.sourceIndex])!==(65535&~(256*N.source[N.sourceIndex+3]+N.source[N.sourceIndex+2])))return-3;for(N.sourceIndex+=4,L=F;L;--L)N.dest[N.destLen++]=N.source[N.sourceIndex++];return N.bitcount=0,0}(function g(N,F){var z;for(z=0;z<7;++z)N.table[z]=0;for(N.table[7]=24,N.table[8]=152,N.table[9]=112,z=0;z<24;++z)N.trans[z]=256+z;for(z=0;z<144;++z)N.trans[24+z]=z;for(z=0;z<8;++z)N.trans[168+z]=280+z;for(z=0;z<112;++z)N.trans[176+z]=144+z;for(z=0;z<5;++z)F.table[z]=0;for(F.table[5]=32,z=0;z<32;++z)F.trans[z]=z})(o,c),f(h,a,4,3),f(B,E,2,1),h[28]=0,a[28]=258,T.exports=function U(N,F){var L,aA,z=new i(N,F);do{switch(L=d(z),Y(z,2,0)){case 0:aA=D(z);break;case 1:aA=m(z,o,c);break;case 2:p(z,z.ltree,z.dtree),aA=m(z,z.ltree,z.dtree);break;default:aA=-3}if(0!==aA)throw new Error("Data error")}while(!L);return z.destLen=eA.length?{done:!0}:{done:!1,value:eA[M++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(eA,b){(null==b||b>eA.length)&&(b=eA.length);for(var K=0,M=new Array(b);K0?iA[0]:"value";if(tA.has(jA))return tA.get(jA);var ct=x.apply(this,iA);return tA.set(jA,ct),ct}return Object.defineProperty(this,b,{value:oA}),oA}}}}D.registerFormat=function(eA){U.push(eA)},D.openSync=function(eA,b){var K=m.readFileSync(eA);return D.create(K,b)},D.open=function(eA,b,K){"function"==typeof b&&(K=b,b=null),m.readFile(eA,function(M,x){if(M)return K(M);try{var P=D.create(x,b)}catch(tA){return K(tA)}return K(null,P)})},D.create=function(eA,b){for(var K=0;K>1},searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16,endCode:new e.LazyArray(e.uint16,"segCount"),reservedPad:new e.Reserved(e.uint16),startCode:new e.LazyArray(e.uint16,"segCount"),idDelta:new e.LazyArray(e.int16,"segCount"),idRangeOffset:new e.LazyArray(e.uint16,"segCount"),glyphIndexArray:new e.LazyArray(e.uint16,function(eA){return(eA.length-eA._currentOffset)/2})},6:{length:e.uint16,language:e.uint16,firstCode:e.uint16,entryCount:e.uint16,glyphIndices:new e.LazyArray(e.uint16,"entryCount")},8:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint16,is32:new e.LazyArray(e.uint8,8192),nGroups:e.uint32,groups:new e.LazyArray(W,"nGroups")},10:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint32,firstCode:e.uint32,entryCount:e.uint32,glyphIndices:new e.LazyArray(e.uint16,"numChars")},12:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint32,nGroups:e.uint32,groups:new e.LazyArray(W,"nGroups")},13:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint32,nGroups:e.uint32,groups:new e.LazyArray(W,"nGroups")},14:{length:e.uint32,numRecords:e.uint32,varSelectors:new e.LazyArray(lA,"numRecords")}}),BA=new e.Struct({platformID:e.uint16,encodingID:e.uint16,table:new e.Pointer(e.uint32,gA,{type:"parent",lazy:!0})}),DA=new e.Struct({version:e.uint16,numSubtables:e.uint16,tables:new e.Array(BA,"numSubtables")}),FA=new e.Struct({version:e.int32,revision:e.int32,checkSumAdjustment:e.uint32,magicNumber:e.uint32,flags:e.uint16,unitsPerEm:e.uint16,created:new e.Array(e.int32,2),modified:new e.Array(e.int32,2),xMin:e.int16,yMin:e.int16,xMax:e.int16,yMax:e.int16,macStyle:new e.Bitfield(e.uint16,["bold","italic","underline","outline","shadow","condensed","extended"]),lowestRecPPEM:e.uint16,fontDirectionHint:e.int16,indexToLocFormat:e.int16,glyphDataFormat:e.int16}),_=new e.Struct({version:e.int32,ascent:e.int16,descent:e.int16,lineGap:e.int16,advanceWidthMax:e.uint16,minLeftSideBearing:e.int16,minRightSideBearing:e.int16,xMaxExtent:e.int16,caretSlopeRise:e.int16,caretSlopeRun:e.int16,caretOffset:e.int16,reserved:new e.Reserved(e.int16,4),metricDataFormat:e.int16,numberOfMetrics:e.uint16}),dA=new e.Struct({advance:e.uint16,bearing:e.int16}),uA=new e.Struct({metrics:new e.LazyArray(dA,function(eA){return eA.parent.hhea.numberOfMetrics}),bearings:new e.LazyArray(e.int16,function(eA){return eA.parent.maxp.numGlyphs-eA.parent.hhea.numberOfMetrics})}),CA=new e.Struct({version:e.int32,numGlyphs:e.uint16,maxPoints:e.uint16,maxContours:e.uint16,maxComponentPoints:e.uint16,maxComponentContours:e.uint16,maxZones:e.uint16,maxTwilightPoints:e.uint16,maxStorage:e.uint16,maxFunctionDefs:e.uint16,maxInstructionDefs:e.uint16,maxStackElements:e.uint16,maxSizeOfInstructions:e.uint16,maxComponentElements:e.uint16,maxComponentDepth:e.uint16});function NA(eA,b,K){return void 0===K&&(K=0),1===eA&&XA[K]?XA[K]:bA[eA][b]}var bA=[["utf16be","utf16be","utf16be","utf16be","utf16be","utf16be"],["macroman","shift-jis","big5","euc-kr","iso-8859-6","iso-8859-8","macgreek","maccyrillic","symbol","Devanagari","Gurmukhi","Gujarati","Oriya","Bengali","Tamil","Telugu","Kannada","Malayalam","Sinhalese","Burmese","Khmer","macthai","Laotian","Georgian","Armenian","gb-2312-80","Tibetan","Mongolian","Geez","maccenteuro","Vietnamese","Sindhi"],["ascii"],["symbol","utf16be","shift-jis","gb18030","big5","wansung","johab",null,null,null,"utf16be"]],XA={15:"maciceland",17:"macturkish",18:"maccroatian",24:"maccenteuro",25:"maccenteuro",26:"maccenteuro",27:"maccenteuro",28:"maccenteuro",30:"maciceland",37:"macromania",38:"maccenteuro",39:"maccenteuro",40:"maccenteuro",143:"macinuit",146:"macgaelic"},q=[[],{0:"en",30:"fo",60:"ks",90:"rw",1:"fr",31:"fa",61:"ku",91:"rn",2:"de",32:"ru",62:"sd",92:"ny",3:"it",33:"zh",63:"bo",93:"mg",4:"nl",34:"nl-BE",64:"ne",94:"eo",5:"sv",35:"ga",65:"sa",128:"cy",6:"es",36:"sq",66:"mr",129:"eu",7:"da",37:"ro",67:"bn",130:"ca",8:"pt",38:"cz",68:"as",131:"la",9:"no",39:"sk",69:"gu",132:"qu",10:"he",40:"si",70:"pa",133:"gn",11:"ja",41:"yi",71:"or",134:"ay",12:"ar",42:"sr",72:"ml",135:"tt",13:"fi",43:"mk",73:"kn",136:"ug",14:"el",44:"bg",74:"ta",137:"dz",15:"is",45:"uk",75:"te",138:"jv",16:"mt",46:"be",76:"si",139:"su",17:"tr",47:"uz",77:"my",140:"gl",18:"hr",48:"kk",78:"km",141:"af",19:"zh-Hant",49:"az-Cyrl",79:"lo",142:"br",20:"ur",50:"az-Arab",80:"vi",143:"iu",21:"hi",51:"hy",81:"id",144:"gd",22:"th",52:"ka",82:"tl",145:"gv",23:"ko",53:"mo",83:"ms",146:"ga",24:"lt",54:"ky",84:"ms-Arab",147:"to",25:"pl",55:"tg",85:"am",148:"el-polyton",26:"hu",56:"tk",86:"ti",149:"kl",27:"es",57:"mn-CN",87:"om",150:"az",28:"lv",58:"mn",88:"so",151:"nn",29:"se",59:"ps",89:"sw"},[],{1078:"af",16393:"en-IN",1159:"rw",1074:"tn",1052:"sq",6153:"en-IE",1089:"sw",1115:"si",1156:"gsw",8201:"en-JM",1111:"kok",1051:"sk",1118:"am",17417:"en-MY",1042:"ko",1060:"sl",5121:"ar-DZ",5129:"en-NZ",1088:"ky",11274:"es-AR",15361:"ar-BH",13321:"en-PH",1108:"lo",16394:"es-BO",3073:"ar",18441:"en-SG",1062:"lv",13322:"es-CL",2049:"ar-IQ",7177:"en-ZA",1063:"lt",9226:"es-CO",11265:"ar-JO",11273:"en-TT",2094:"dsb",5130:"es-CR",13313:"ar-KW",2057:"en-GB",1134:"lb",7178:"es-DO",12289:"ar-LB",1033:"en",1071:"mk",12298:"es-EC",4097:"ar-LY",12297:"en-ZW",2110:"ms-BN",17418:"es-SV",6145:"ary",1061:"et",1086:"ms",4106:"es-GT",8193:"ar-OM",1080:"fo",1100:"ml",18442:"es-HN",16385:"ar-QA",1124:"fil",1082:"mt",2058:"es-MX",1025:"ar-SA",1035:"fi",1153:"mi",19466:"es-NI",10241:"ar-SY",2060:"fr-BE",1146:"arn",6154:"es-PA",7169:"aeb",3084:"fr-CA",1102:"mr",15370:"es-PY",14337:"ar-AE",1036:"fr",1148:"moh",10250:"es-PE",9217:"ar-YE",5132:"fr-LU",1104:"mn",20490:"es-PR",1067:"hy",6156:"fr-MC",2128:"mn-CN",3082:"es",1101:"as",4108:"fr-CH",1121:"ne",1034:"es",2092:"az-Cyrl",1122:"fy",1044:"nb",21514:"es-US",1068:"az",1110:"gl",2068:"nn",14346:"es-UY",1133:"ba",1079:"ka",1154:"oc",8202:"es-VE",1069:"eu",3079:"de-AT",1096:"or",2077:"sv-FI",1059:"be",1031:"de",1123:"ps",1053:"sv",2117:"bn",5127:"de-LI",1045:"pl",1114:"syr",1093:"bn-IN",4103:"de-LU",1046:"pt",1064:"tg",8218:"bs-Cyrl",2055:"de-CH",2070:"pt-PT",2143:"tzm",5146:"bs",1032:"el",1094:"pa",1097:"ta",1150:"br",1135:"kl",1131:"qu-BO",1092:"tt",1026:"bg",1095:"gu",2155:"qu-EC",1098:"te",1027:"ca",1128:"ha",3179:"qu",1054:"th",3076:"zh-HK",1037:"he",1048:"ro",1105:"bo",5124:"zh-MO",1081:"hi",1047:"rm",1055:"tr",2052:"zh",1038:"hu",1049:"ru",1090:"tk",4100:"zh-SG",1039:"is",9275:"smn",1152:"ug",1028:"zh-TW",1136:"ig",4155:"smj-NO",1058:"uk",1155:"co",1057:"id",5179:"smj",1070:"hsb",1050:"hr",1117:"iu",3131:"se-FI",1056:"ur",4122:"hr-BA",2141:"iu-Latn",1083:"se",2115:"uz-Cyrl",1029:"cs",2108:"ga",2107:"se-SE",1091:"uz",1030:"da",1076:"xh",8251:"sms",1066:"vi",1164:"prs",1077:"zu",6203:"sma-NO",1106:"cy",1125:"dv",1040:"it",7227:"sms",1160:"wo",2067:"nl-BE",2064:"it-CH",1103:"sa",1157:"sah",1043:"nl",1041:"ja",7194:"sr-Cyrl-BA",1144:"ii",3081:"en-AU",1099:"kn",3098:"sr",1130:"yo",10249:"en-BZ",1087:"kk",6170:"sr-Latn-BA",4105:"en-CA",1107:"km",2074:"sr-Latn",9225:"en-029",1158:"quc",1132:"nso"}],O=new e.Struct({platformID:e.uint16,encodingID:e.uint16,languageID:e.uint16,nameID:e.uint16,length:e.uint16,string:new e.Pointer(e.uint16,new e.String("length",function(eA){return NA(eA.platformID,eA.encodingID,eA.languageID)}),{type:"parent",relativeTo:function(b){return b.parent.stringOffset},allowNull:!1})}),$=new e.Struct({length:e.uint16,tag:new e.Pointer(e.uint16,new e.String("length","utf16be"),{type:"parent",relativeTo:function(b){return b.stringOffset}})}),V=new e.VersionedStruct(e.uint16,{0:{count:e.uint16,stringOffset:e.uint16,records:new e.Array(O,"count")},1:{count:e.uint16,stringOffset:e.uint16,records:new e.Array(O,"count"),langTagCount:e.uint16,langTags:new e.Array($,"langTagCount")}}),hA=["copyright","fontFamily","fontSubfamily","uniqueSubfamily","fullName","version","postscriptName","trademark","manufacturer","designer","description","vendorURL","designerURL","license","licenseURL",null,"preferredFamily","preferredSubfamily","compatibleFull","sampleText","postscriptCIDFontName","wwsFamilyName","wwsSubfamilyName"];V.process=function(eA){for(var M,b={},K=B(this.records);!(M=K()).done;){var x=M.value,P=q[x.platformID][x.languageID];null==P&&null!=this.langTags&&x.languageID>=32768&&(P=this.langTags[x.languageID-32768].tag),null==P&&(P=x.platformID+"-"+x.languageID);var tA=x.nameID>=256?"fontFeatures":hA[x.nameID]||x.nameID;null==b[tA]&&(b[tA]={});var oA=b[tA];x.nameID>=256&&(oA=oA[x.nameID]||(oA[x.nameID]={})),("string"==typeof x.string||"string"!=typeof oA[P])&&(oA[P]=x.string)}this.records=b},V.preEncode=function(){if(!Array.isArray(this.records)){this.version=0;var eA=[];for(var b in this.records){var K=this.records[b];"fontFeatures"!==b&&(eA.push({platformID:3,encodingID:1,languageID:1033,nameID:hA.indexOf(b),length:l.byteLength(K.en,"utf16le"),string:K.en}),"postscriptName"===b&&eA.push({platformID:1,encodingID:0,languageID:0,nameID:hA.indexOf(b),length:K.en.length,string:K.en}))}this.records=eA,this.count=eA.length,this.stringOffset=V.size(this,null,!1)}};var mA=new e.VersionedStruct(e.uint16,{header:{xAvgCharWidth:e.int16,usWeightClass:e.uint16,usWidthClass:e.uint16,fsType:new e.Bitfield(e.uint16,[null,"noEmbedding","viewOnly","editable",null,null,null,null,"noSubsetting","bitmapOnly"]),ySubscriptXSize:e.int16,ySubscriptYSize:e.int16,ySubscriptXOffset:e.int16,ySubscriptYOffset:e.int16,ySuperscriptXSize:e.int16,ySuperscriptYSize:e.int16,ySuperscriptXOffset:e.int16,ySuperscriptYOffset:e.int16,yStrikeoutSize:e.int16,yStrikeoutPosition:e.int16,sFamilyClass:e.int16,panose:new e.Array(e.uint8,10),ulCharRange:new e.Array(e.uint32,4),vendorID:new e.String(4),fsSelection:new e.Bitfield(e.uint16,["italic","underscore","negative","outlined","strikeout","bold","regular","useTypoMetrics","wws","oblique"]),usFirstCharIndex:e.uint16,usLastCharIndex:e.uint16},0:{},1:{typoAscender:e.int16,typoDescender:e.int16,typoLineGap:e.int16,winAscent:e.uint16,winDescent:e.uint16,codePageRange:new e.Array(e.uint32,2)},2:{typoAscender:e.int16,typoDescender:e.int16,typoLineGap:e.int16,winAscent:e.uint16,winDescent:e.uint16,codePageRange:new e.Array(e.uint32,2),xHeight:e.int16,capHeight:e.int16,defaultChar:e.uint16,breakChar:e.uint16,maxContent:e.uint16},5:{typoAscender:e.int16,typoDescender:e.int16,typoLineGap:e.int16,winAscent:e.uint16,winDescent:e.uint16,codePageRange:new e.Array(e.uint32,2),xHeight:e.int16,capHeight:e.int16,defaultChar:e.uint16,breakChar:e.uint16,maxContent:e.uint16,usLowerOpticalPointSize:e.uint16,usUpperOpticalPointSize:e.uint16}}),nA=mA.versions;nA[3]=nA[4]=nA[2];var EA=new e.VersionedStruct(e.fixed32,{header:{italicAngle:e.fixed32,underlinePosition:e.int16,underlineThickness:e.int16,isFixedPitch:e.uint32,minMemType42:e.uint32,maxMemType42:e.uint32,minMemType1:e.uint32,maxMemType1:e.uint32},1:{},2:{numberOfGlyphs:e.uint16,glyphNameIndex:new e.Array(e.uint16,"numberOfGlyphs"),names:new e.Array(new e.String(e.uint8))},2.5:{numberOfGlyphs:e.uint16,offsets:new e.Array(e.uint8,"numberOfGlyphs")},3:{},4:{map:new e.Array(e.uint32,function(eA){return eA.parent.maxp.numGlyphs})}}),GA=new e.Struct({controlValues:new e.Array(e.int16)}),et=new e.Struct({instructions:new e.Array(e.uint8)}),ot=new e.VersionedStruct("head.indexToLocFormat",{0:{offsets:new e.Array(e.uint16)},1:{offsets:new e.Array(e.uint32)}});ot.process=function(){if(0===this.version)for(var eA=0;eA>>=1};var TA=new e.Struct({controlValueProgram:new e.Array(e.uint8)}),it=new e.Array(new e.Buffer),mt=function(){function eA(K){this.type=K}var b=eA.prototype;return b.getCFFVersion=function(M){for(;M&&!M.hdrSize;)M=M.parent;return M?M.version:-1},b.decode=function(M,x){var tA=this.getCFFVersion(x)>=2?M.readUInt32BE():M.readUInt16BE();if(0===tA)return[];var sA,oA=M.readUInt8();if(1===oA)sA=e.uint8;else if(2===oA)sA=e.uint16;else if(3===oA)sA=e.uint24;else{if(4!==oA)throw new Error("Bad offset size in CFFIndex: ".concat(oA," ").concat(M.pos));sA=e.uint32}for(var iA=[],SA=M.pos+(tA+1)*oA-1,jA=sA.decode(M),ct=0;ct>4;if(15===tA)break;x+=ut[tA];var oA=15&P;if(15===oA)break;x+=ut[oA]}return parseFloat(x)}return null},eA.size=function(K){return K.forceLarge&&(K=32768),(0|K)!==K?1+Math.ceil(((""+K).length+1)/2):-107<=K&&K<=107?1:108<=K&&K<=1131||-1131<=K&&K<=-108?2:-32768<=K&&K<=32767?3:5},eA.encode=function(K,M){var x=Number(M);if(M.forceLarge)return K.writeUInt8(29),K.writeInt32BE(x);if((0|x)===x)return-107<=x&&x<=107?K.writeUInt8(x+139):108<=x&&x<=1131?(K.writeUInt8(247+((x-=108)>>8)),K.writeUInt8(255&x)):-1131<=x&&x<=-108?(K.writeUInt8(251+((x=-x-108)>>8)),K.writeUInt8(255&x)):-32768<=x&&x<=32767?(K.writeUInt8(28),K.writeInt16BE(x)):(K.writeUInt8(29),K.writeInt32BE(x));K.writeUInt8(30);for(var P=""+x,tA=0;tAP;)x.pop()},eA}(),null],[19,"Subrs",new yA(new mt,{type:"local"}),null]]),Yt=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],H=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],R=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"],PA=new e.Struct({reserved:new e.Reserved(e.uint16),reqFeatureIndex:e.uint16,featureCount:e.uint16,featureIndexes:new e.Array(e.uint16,"featureCount")}),rA=new e.Struct({tag:new e.String(4),langSys:new e.Pointer(e.uint16,PA,{type:"parent"})}),lt=new e.Struct({defaultLangSys:new e.Pointer(e.uint16,PA),count:e.uint16,langSysRecords:new e.Array(rA,"count")}),Ft=new e.Struct({tag:new e.String(4),script:new e.Pointer(e.uint16,lt,{type:"parent"})}),j=new e.Array(Ft,e.uint16),kA=new e.Struct({featureParams:e.uint16,lookupCount:e.uint16,lookupListIndexes:new e.Array(e.uint16,"lookupCount")}),At=new e.Struct({tag:new e.String(4),feature:new e.Pointer(e.uint16,kA,{type:"parent"})}),xA=new e.Array(At,e.uint16),ZA=new e.Struct({markAttachmentType:e.uint8,flags:new e.Bitfield(e.uint8,["rightToLeft","ignoreBaseGlyphs","ignoreLigatures","ignoreMarks","useMarkFilteringSet"])});function st(eA){var b=new e.Struct({lookupType:e.uint16,flags:ZA,subTableCount:e.uint16,subTables:new e.Array(new e.Pointer(e.uint16,eA),"subTableCount"),markFilteringSet:new e.Optional(e.uint16,function(K){return K.flags.flags.useMarkFilteringSet})});return new e.LazyArray(new e.Pointer(e.uint16,b),e.uint16)}var Lt=new e.Struct({start:e.uint16,end:e.uint16,startCoverageIndex:e.uint16}),vt=new e.VersionedStruct(e.uint16,{1:{glyphCount:e.uint16,glyphs:new e.Array(e.uint16,"glyphCount")},2:{rangeCount:e.uint16,rangeRecords:new e.Array(Lt,"rangeCount")}}),Rt=new e.Struct({start:e.uint16,end:e.uint16,class:e.uint16}),Kt=new e.VersionedStruct(e.uint16,{1:{startGlyph:e.uint16,glyphCount:e.uint16,classValueArray:new e.Array(e.uint16,"glyphCount")},2:{classRangeCount:e.uint16,classRangeRecord:new e.Array(Rt,"classRangeCount")}}),Le=new e.Struct({a:e.uint16,b:e.uint16,deltaFormat:e.uint16}),re=new e.Struct({sequenceIndex:e.uint16,lookupListIndex:e.uint16}),Ae=new e.Struct({glyphCount:e.uint16,lookupCount:e.uint16,input:new e.Array(e.uint16,function(eA){return eA.glyphCount-1}),lookupRecords:new e.Array(re,"lookupCount")}),ye=new e.Array(new e.Pointer(e.uint16,Ae),e.uint16),be=new e.Struct({glyphCount:e.uint16,lookupCount:e.uint16,classes:new e.Array(e.uint16,function(eA){return eA.glyphCount-1}),lookupRecords:new e.Array(re,"lookupCount")}),Re=new e.Array(new e.Pointer(e.uint16,be),e.uint16),yn=new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,vt),ruleSetCount:e.uint16,ruleSets:new e.Array(new e.Pointer(e.uint16,ye),"ruleSetCount")},2:{coverage:new e.Pointer(e.uint16,vt),classDef:new e.Pointer(e.uint16,Kt),classSetCnt:e.uint16,classSet:new e.Array(new e.Pointer(e.uint16,Re),"classSetCnt")},3:{glyphCount:e.uint16,lookupCount:e.uint16,coverages:new e.Array(new e.Pointer(e.uint16,vt),"glyphCount"),lookupRecords:new e.Array(re,"lookupCount")}}),xn=new e.Struct({backtrackGlyphCount:e.uint16,backtrack:new e.Array(e.uint16,"backtrackGlyphCount"),inputGlyphCount:e.uint16,input:new e.Array(e.uint16,function(eA){return eA.inputGlyphCount-1}),lookaheadGlyphCount:e.uint16,lookahead:new e.Array(e.uint16,"lookaheadGlyphCount"),lookupCount:e.uint16,lookupRecords:new e.Array(re,"lookupCount")}),ne=new e.Array(new e.Pointer(e.uint16,xn),e.uint16),tn=new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,vt),chainCount:e.uint16,chainRuleSets:new e.Array(new e.Pointer(e.uint16,ne),"chainCount")},2:{coverage:new e.Pointer(e.uint16,vt),backtrackClassDef:new e.Pointer(e.uint16,Kt),inputClassDef:new e.Pointer(e.uint16,Kt),lookaheadClassDef:new e.Pointer(e.uint16,Kt),chainCount:e.uint16,chainClassSet:new e.Array(new e.Pointer(e.uint16,ne),"chainCount")},3:{backtrackGlyphCount:e.uint16,backtrackCoverage:new e.Array(new e.Pointer(e.uint16,vt),"backtrackGlyphCount"),inputGlyphCount:e.uint16,inputCoverage:new e.Array(new e.Pointer(e.uint16,vt),"inputGlyphCount"),lookaheadGlyphCount:e.uint16,lookaheadCoverage:new e.Array(new e.Pointer(e.uint16,vt),"lookaheadGlyphCount"),lookupCount:e.uint16,lookupRecords:new e.Array(re,"lookupCount")}}),Te=new e.Fixed(16,"BE",14),en=new e.Struct({startCoord:Te,peakCoord:Te,endCoord:Te}),Xe=new e.Struct({axisCount:e.uint16,regionCount:e.uint16,variationRegions:new e.Array(new e.Array(en,"axisCount"),"regionCount")}),Ln=new e.Struct({shortDeltas:new e.Array(e.int16,function(eA){return eA.parent.shortDeltaCount}),regionDeltas:new e.Array(e.int8,function(eA){return eA.parent.regionIndexCount-eA.parent.shortDeltaCount}),deltas:function(b){return b.shortDeltas.concat(b.regionDeltas)}}),bn=new e.Struct({itemCount:e.uint16,shortDeltaCount:e.uint16,regionIndexCount:e.uint16,regionIndexes:new e.Array(e.uint16,"regionIndexCount"),deltaSets:new e.Array(Ln,"itemCount")}),Jt=new e.Struct({format:e.uint16,variationRegionList:new e.Pointer(e.uint32,Xe),variationDataCount:e.uint16,itemVariationData:new e.Array(new e.Pointer(e.uint32,bn),"variationDataCount")}),bt=new e.VersionedStruct(e.uint16,{1:(i={axisIndex:e.uint16},i.axisIndex=e.uint16,i.filterRangeMinValue=Te,i.filterRangeMaxValue=Te,i)}),Xt=new e.Struct({conditionCount:e.uint16,conditionTable:new e.Array(new e.Pointer(e.uint32,bt),"conditionCount")}),ae=new e.Struct({featureIndex:e.uint16,alternateFeatureTable:new e.Pointer(e.uint32,kA,{type:"parent"})}),Dn=new e.Struct({version:e.fixed32,substitutionCount:e.uint16,substitutions:new e.Array(ae,"substitutionCount")}),pn=new e.Struct({conditionSet:new e.Pointer(e.uint32,Xt,{type:"parent"}),featureTableSubstitution:new e.Pointer(e.uint32,Dn,{type:"parent"})}),Yn=new e.Struct({majorVersion:e.uint16,minorVersion:e.uint16,featureVariationRecordCount:e.uint32,featureVariationRecords:new e.Array(pn,"featureVariationRecordCount")}),jn=function(){function eA(K,M){this.predefinedOps=K,this.type=M}var b=eA.prototype;return b.decode=function(M,x,P){return this.predefinedOps[P[0]]?this.predefinedOps[P[0]]:this.type.decode(M,x,P)},b.size=function(M,x){return this.type.size(M,x)},b.encode=function(M,x,P){var tA=this.predefinedOps.indexOf(x);return-1!==tA?tA:this.type.encode(M,x,P)},eA}(),Br=function(eA){function b(){return eA.call(this,"UInt8")||this}return h(b,eA),b.prototype.decode=function(x){return 127&e.uint8.decode(x)},b}(e.Number),Tn=new e.Struct({first:e.uint16,nLeft:e.uint8}),WA=new e.Struct({first:e.uint16,nLeft:e.uint16}),tt=new jn([H,["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"]],new yA(new e.VersionedStruct(new Br,{0:{nCodes:e.uint8,codes:new e.Array(e.uint8,"nCodes")},1:{nRanges:e.uint8,ranges:new e.Array(Tn,"nRanges")}}),{lazy:!0})),UA=function(eA){function b(){return eA.apply(this,arguments)||this}return h(b,eA),b.prototype.decode=function(x,P){for(var tA=f.resolveLength(this.length,x,P),oA=0,sA=[];oA=2?null:M=2||this.isCIDFont)return null;var x=this.topDict.charset;if(Array.isArray(x))return x[M];if(0===M)return".notdef";switch(M-=1,x.version){case 0:return this.string(x.glyphs[M]);case 1:case 2:for(var P=0;P>1;if(M=x[oA+1].first))return x[oA].fd;P=oA+1}}default:throw new Error("Unknown FDSelect version: ".concat(this.topDict.FDSelect.version))}},b.privateDictForGlyph=function(M){if(this.topDict.FDSelect){var x=this.fdForGlyph(M);return this.topDict.FDArray[x]?this.topDict.FDArray[x].Private:null}return this.version<2?this.topDict.Private:this.topDict.FDArray[0].Private},c(eA,[{key:"postscriptName",get:function(){return this.version<2?this.nameIndex[0]:null}},{key:"fullName",get:function(){return this.string(this.topDict.FullName)}},{key:"familyName",get:function(){return this.string(this.topDict.FamilyName)}}]),eA}(),wt=new e.Struct({glyphIndex:e.uint16,vertOriginY:e.int16}),Pt=new e.Struct({majorVersion:e.uint16,minorVersion:e.uint16,defaultVertOriginY:e.int16,numVertOriginYMetrics:e.uint16,metrics:new e.Array(wt,"numVertOriginYMetrics")}),jt=new e.Struct({height:e.uint8,width:e.uint8,horiBearingX:e.int8,horiBearingY:e.int8,horiAdvance:e.uint8,vertBearingX:e.int8,vertBearingY:e.int8,vertAdvance:e.uint8}),Ht=new e.Struct({height:e.uint8,width:e.uint8,bearingX:e.int8,bearingY:e.int8,advance:e.uint8}),ce=new e.Struct({glyph:e.uint16,xOffset:e.int8,yOffset:e.int8}),Wt=function(){},Be=function(){},De=(new e.VersionedStruct("version",{1:{metrics:Ht,data:Wt},2:{metrics:Ht,data:Be},5:{data:Be},6:{metrics:jt,data:Wt},7:{metrics:jt,data:Be},8:{metrics:Ht,pad:new e.Reserved(e.uint8),numComponents:e.uint16,components:new e.Array(ce,"numComponents")},9:{metrics:jt,pad:new e.Reserved(e.uint8),numComponents:e.uint16,components:new e.Array(ce,"numComponents")},17:{metrics:Ht,dataLen:e.uint32,data:new e.Buffer("dataLen")},18:{metrics:jt,dataLen:e.uint32,data:new e.Buffer("dataLen")},19:{dataLen:e.uint32,data:new e.Buffer("dataLen")}}),new e.Struct({ascender:e.int8,descender:e.int8,widthMax:e.uint8,caretSlopeNumerator:e.int8,caretSlopeDenominator:e.int8,caretOffset:e.int8,minOriginSB:e.int8,minAdvanceSB:e.int8,maxBeforeBL:e.int8,minAfterBL:e.int8,pad:new e.Reserved(e.int8,2)})),Ge=new e.Struct({glyphCode:e.uint16,offset:e.uint16}),Ne=new e.VersionedStruct(e.uint16,{header:{imageFormat:e.uint16,imageDataOffset:e.uint32},1:{offsetArray:new e.Array(e.uint32,function(eA){return eA.parent.lastGlyphIndex-eA.parent.firstGlyphIndex+1})},2:{imageSize:e.uint32,bigMetrics:jt},3:{offsetArray:new e.Array(e.uint16,function(eA){return eA.parent.lastGlyphIndex-eA.parent.firstGlyphIndex+1})},4:{numGlyphs:e.uint32,glyphArray:new e.Array(Ge,function(eA){return eA.numGlyphs+1})},5:{imageSize:e.uint32,bigMetrics:jt,numGlyphs:e.uint32,glyphCodeArray:new e.Array(e.uint16,"numGlyphs")}}),xe=new e.Struct({firstGlyphIndex:e.uint16,lastGlyphIndex:e.uint16,subtable:new e.Pointer(e.uint32,Ne)}),Se=new e.Struct({indexSubTableArray:new e.Pointer(e.uint32,new e.Array(xe,1),{type:"parent"}),indexTablesSize:e.uint32,numberOfIndexSubTables:e.uint32,colorRef:e.uint32,hori:De,vert:De,startGlyphIndex:e.uint16,endGlyphIndex:e.uint16,ppemX:e.uint8,ppemY:e.uint8,bitDepth:e.uint8,flags:new e.Bitfield(e.uint8,["horizontal","vertical"])}),_e=new e.Struct({version:e.uint32,numSizes:e.uint32,sizes:new e.Array(Se,"numSizes")}),Fn=new e.Struct({ppem:e.uint16,resolution:e.uint16,imageOffsets:new e.Array(new e.Pointer(e.uint32,"void"),function(eA){return eA.parent.parent.maxp.numGlyphs+1})}),rn=new e.Struct({version:e.uint16,flags:new e.Bitfield(e.uint16,["renderOutlines"]),numImgTables:e.uint32,imageTables:new e.Array(new e.Pointer(e.uint32,Fn),"numImgTables")}),Cn=new e.Struct({gid:e.uint16,paletteIndex:e.uint16}),In=new e.Struct({gid:e.uint16,firstLayerIndex:e.uint16,numLayers:e.uint16}),an=new e.Struct({version:e.uint16,numBaseGlyphRecords:e.uint16,baseGlyphRecord:new e.Pointer(e.uint32,new e.Array(In,"numBaseGlyphRecords")),layerRecords:new e.Pointer(e.uint32,new e.Array(Cn,"numLayerRecords"),{lazy:!0}),numLayerRecords:e.uint16}),fn=new e.Struct({blue:e.uint8,green:e.uint8,red:e.uint8,alpha:e.uint8}),ln=new e.VersionedStruct(e.uint16,{header:{numPaletteEntries:e.uint16,numPalettes:e.uint16,numColorRecords:e.uint16,colorRecords:new e.Pointer(e.uint32,new e.Array(fn,"numColorRecords")),colorRecordIndices:new e.Array(e.uint16,"numPalettes")},0:{},1:{offsetPaletteTypeArray:new e.Pointer(e.uint32,new e.Array(e.uint32,"numPalettes")),offsetPaletteLabelArray:new e.Pointer(e.uint32,new e.Array(e.uint16,"numPalettes")),offsetPaletteEntryLabelArray:new e.Pointer(e.uint32,new e.Array(e.uint16,"numPaletteEntries"))}}),Xn=new e.VersionedStruct(e.uint16,{1:{coordinate:e.int16},2:{coordinate:e.int16,referenceGlyph:e.uint16,baseCoordPoint:e.uint16},3:{coordinate:e.int16,deviceTable:new e.Pointer(e.uint16,Le)}}),Fr=new e.Struct({defaultIndex:e.uint16,baseCoordCount:e.uint16,baseCoords:new e.Array(new e.Pointer(e.uint16,Xn),"baseCoordCount")}),Yr=new e.Struct({tag:new e.String(4),minCoord:new e.Pointer(e.uint16,Xn,{type:"parent"}),maxCoord:new e.Pointer(e.uint16,Xn,{type:"parent"})}),nr=new e.Struct({minCoord:new e.Pointer(e.uint16,Xn),maxCoord:new e.Pointer(e.uint16,Xn),featMinMaxCount:e.uint16,featMinMaxRecords:new e.Array(Yr,"featMinMaxCount")}),hn=new e.Struct({tag:new e.String(4),minMax:new e.Pointer(e.uint16,nr,{type:"parent"})}),qn=new e.Struct({baseValues:new e.Pointer(e.uint16,Fr),defaultMinMax:new e.Pointer(e.uint16,nr),baseLangSysCount:e.uint16,baseLangSysRecords:new e.Array(hn,"baseLangSysCount")}),IA=new e.Struct({tag:new e.String(4),script:new e.Pointer(e.uint16,qn,{type:"parent"})}),J=new e.Array(IA,e.uint16),S=new e.Array(new e.String(4),e.uint16),X=new e.Struct({baseTagList:new e.Pointer(e.uint16,S),baseScriptList:new e.Pointer(e.uint16,J)}),Z=new e.VersionedStruct(e.uint32,{header:{horizAxis:new e.Pointer(e.uint16,X),vertAxis:new e.Pointer(e.uint16,X)},65536:{},65537:{itemVariationStore:new e.Pointer(e.uint32,Jt)}}),fA=new e.Array(e.uint16,e.uint16),pA=new e.Struct({coverage:new e.Pointer(e.uint16,vt),glyphCount:e.uint16,attachPoints:new e.Array(new e.Pointer(e.uint16,fA),"glyphCount")}),_A=new e.VersionedStruct(e.uint16,{1:{coordinate:e.int16},2:{caretValuePoint:e.uint16},3:{coordinate:e.int16,deviceTable:new e.Pointer(e.uint16,Le)}}),nt=new e.Array(new e.Pointer(e.uint16,_A),e.uint16),Bt=new e.Struct({coverage:new e.Pointer(e.uint16,vt),ligGlyphCount:e.uint16,ligGlyphs:new e.Array(new e.Pointer(e.uint16,nt),"ligGlyphCount")}),Qt=new e.Struct({markSetTableFormat:e.uint16,markSetCount:e.uint16,coverage:new e.Array(new e.Pointer(e.uint32,vt),"markSetCount")}),Dt=new e.VersionedStruct(e.uint32,{header:{glyphClassDef:new e.Pointer(e.uint16,Kt),attachList:new e.Pointer(e.uint16,pA),ligCaretList:new e.Pointer(e.uint16,Bt),markAttachClassDef:new e.Pointer(e.uint16,Kt)},65536:{},65538:{markGlyphSetsDef:new e.Pointer(e.uint16,Qt)},65539:{markGlyphSetsDef:new e.Pointer(e.uint16,Qt),itemVariationStore:new e.Pointer(e.uint32,Jt)}}),xt=new e.Bitfield(e.uint16,["xPlacement","yPlacement","xAdvance","yAdvance","xPlaDevice","yPlaDevice","xAdvDevice","yAdvDevice"]),Tt={xPlacement:e.int16,yPlacement:e.int16,xAdvance:e.int16,yAdvance:e.int16,xPlaDevice:new e.Pointer(e.uint16,Le,{type:"global",relativeTo:function(b){return b.rel}}),yPlaDevice:new e.Pointer(e.uint16,Le,{type:"global",relativeTo:function(b){return b.rel}}),xAdvDevice:new e.Pointer(e.uint16,Le,{type:"global",relativeTo:function(b){return b.rel}}),yAdvDevice:new e.Pointer(e.uint16,Le,{type:"global",relativeTo:function(b){return b.rel}})},Ot=function(){function eA(K){void 0===K&&(K="valueFormat"),this.key=K}var b=eA.prototype;return b.buildStruct=function(M){for(var x=M;!x[this.key]&&x.parent;)x=x.parent;if(x[this.key]){var P={rel:function(){return x._startOffset}},tA=x[this.key];for(var oA in tA)tA[oA]&&(P[oA]=Tt[oA]);return new e.Struct(P)}},b.size=function(M,x){return this.buildStruct(x).size(M,x)},b.decode=function(M,x){var P=this.buildStruct(x).decode(M,x);return delete P.rel,P},eA}(),Zt=new e.Struct({secondGlyph:e.uint16,value1:new Ot("valueFormat1"),value2:new Ot("valueFormat2")}),ue=new e.Array(Zt,e.uint16),he=new e.Struct({value1:new Ot("valueFormat1"),value2:new Ot("valueFormat2")}),Ie=new e.VersionedStruct(e.uint16,{1:{xCoordinate:e.int16,yCoordinate:e.int16},2:{xCoordinate:e.int16,yCoordinate:e.int16,anchorPoint:e.uint16},3:{xCoordinate:e.int16,yCoordinate:e.int16,xDeviceTable:new e.Pointer(e.uint16,Le),yDeviceTable:new e.Pointer(e.uint16,Le)}}),nn=new e.Struct({entryAnchor:new e.Pointer(e.uint16,Ie,{type:"parent"}),exitAnchor:new e.Pointer(e.uint16,Ie,{type:"parent"})}),Me=new e.Struct({class:e.uint16,markAnchor:new e.Pointer(e.uint16,Ie,{type:"parent"})}),je=new e.Array(Me,e.uint16),Qn=new e.Array(new e.Pointer(e.uint16,Ie),function(eA){return eA.parent.classCount}),Ze=new e.Array(Qn,e.uint16),dn=new e.Array(new e.Pointer(e.uint16,Ie),function(eA){return eA.parent.parent.classCount}),Zn=new e.Array(dn,e.uint16),_n=new e.Array(new e.Pointer(e.uint16,Zn),e.uint16),Nn=new e.VersionedStruct("lookupType",{1:new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,vt),valueFormat:xt,value:new Ot},2:{coverage:new e.Pointer(e.uint16,vt),valueFormat:xt,valueCount:e.uint16,values:new e.LazyArray(new Ot,"valueCount")}}),2:new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,vt),valueFormat1:xt,valueFormat2:xt,pairSetCount:e.uint16,pairSets:new e.LazyArray(new e.Pointer(e.uint16,ue),"pairSetCount")},2:{coverage:new e.Pointer(e.uint16,vt),valueFormat1:xt,valueFormat2:xt,classDef1:new e.Pointer(e.uint16,Kt),classDef2:new e.Pointer(e.uint16,Kt),class1Count:e.uint16,class2Count:e.uint16,classRecords:new e.LazyArray(new e.LazyArray(he,"class2Count"),"class1Count")}}),3:{format:e.uint16,coverage:new e.Pointer(e.uint16,vt),entryExitCount:e.uint16,entryExitRecords:new e.Array(nn,"entryExitCount")},4:{format:e.uint16,markCoverage:new e.Pointer(e.uint16,vt),baseCoverage:new e.Pointer(e.uint16,vt),classCount:e.uint16,markArray:new e.Pointer(e.uint16,je),baseArray:new e.Pointer(e.uint16,Ze)},5:{format:e.uint16,markCoverage:new e.Pointer(e.uint16,vt),ligatureCoverage:new e.Pointer(e.uint16,vt),classCount:e.uint16,markArray:new e.Pointer(e.uint16,je),ligatureArray:new e.Pointer(e.uint16,_n)},6:{format:e.uint16,mark1Coverage:new e.Pointer(e.uint16,vt),mark2Coverage:new e.Pointer(e.uint16,vt),classCount:e.uint16,mark1Array:new e.Pointer(e.uint16,je),mark2Array:new e.Pointer(e.uint16,Ze)},7:yn,8:tn,9:{posFormat:e.uint16,lookupType:e.uint16,extension:new e.Pointer(e.uint32,Nn)}});Nn.versions[9].extension.type=Nn;var Rr=new e.VersionedStruct(e.uint32,{header:{scriptList:new e.Pointer(e.uint16,j),featureList:new e.Pointer(e.uint16,xA),lookupList:new e.Pointer(e.uint16,new st(Nn))},65536:{},65537:{featureVariations:new e.Pointer(e.uint32,Yn)}}),Hn=new e.Array(e.uint16,e.uint16),rr=Hn,Qr=new e.Struct({glyph:e.uint16,compCount:e.uint16,components:new e.Array(e.uint16,function(eA){return eA.compCount-1})}),$n=new e.Array(new e.Pointer(e.uint16,Qr),e.uint16),ur=new e.VersionedStruct("lookupType",{1:new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,vt),deltaGlyphID:e.int16},2:{coverage:new e.Pointer(e.uint16,vt),glyphCount:e.uint16,substitute:new e.LazyArray(e.uint16,"glyphCount")}}),2:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,vt),count:e.uint16,sequences:new e.LazyArray(new e.Pointer(e.uint16,Hn),"count")},3:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,vt),count:e.uint16,alternateSet:new e.LazyArray(new e.Pointer(e.uint16,rr),"count")},4:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,vt),count:e.uint16,ligatureSets:new e.LazyArray(new e.Pointer(e.uint16,$n),"count")},5:yn,6:tn,7:{substFormat:e.uint16,lookupType:e.uint16,extension:new e.Pointer(e.uint32,ur)},8:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,vt),backtrackCoverage:new e.Array(new e.Pointer(e.uint16,vt),"backtrackGlyphCount"),lookaheadGlyphCount:e.uint16,lookaheadCoverage:new e.Array(new e.Pointer(e.uint16,vt),"lookaheadGlyphCount"),glyphCount:e.uint16,substitutes:new e.Array(e.uint16,"glyphCount")}});ur.versions[7].extension.type=ur;var zr=new e.VersionedStruct(e.uint32,{header:{scriptList:new e.Pointer(e.uint16,j),featureList:new e.Pointer(e.uint16,xA),lookupList:new e.Pointer(e.uint16,new st(ur))},65536:{},65537:{featureVariations:new e.Pointer(e.uint32,Yn)}}),Kn=new e.Array(e.uint16,e.uint16),Lr=new e.Struct({shrinkageEnableGSUB:new e.Pointer(e.uint16,Kn),shrinkageDisableGSUB:new e.Pointer(e.uint16,Kn),shrinkageEnableGPOS:new e.Pointer(e.uint16,Kn),shrinkageDisableGPOS:new e.Pointer(e.uint16,Kn),shrinkageJstfMax:new e.Pointer(e.uint16,new st(Nn)),extensionEnableGSUB:new e.Pointer(e.uint16,Kn),extensionDisableGSUB:new e.Pointer(e.uint16,Kn),extensionEnableGPOS:new e.Pointer(e.uint16,Kn),extensionDisableGPOS:new e.Pointer(e.uint16,Kn),extensionJstfMax:new e.Pointer(e.uint16,new st(Nn))}),dr=new e.Array(new e.Pointer(e.uint16,Lr),e.uint16),br=new e.Struct({tag:new e.String(4),jstfLangSys:new e.Pointer(e.uint16,dr)}),Gr=new e.Struct({extenderGlyphs:new e.Pointer(e.uint16,new e.Array(e.uint16,e.uint16)),defaultLangSys:new e.Pointer(e.uint16,dr),langSysCount:e.uint16,langSysRecords:new e.Array(br,"langSysCount")}),si=new e.Struct({tag:new e.String(4),script:new e.Pointer(e.uint16,Gr,{type:"parent"})}),Hr=new e.Struct({version:e.uint32,scriptCount:e.uint16,scriptList:new e.Array(si,"scriptCount")}),Jr=new e.Struct({entry:new(function(){function eA(K){this._size=K}var b=eA.prototype;return b.decode=function(M,x){switch(this.size(0,x)){case 1:return M.readUInt8();case 2:return M.readUInt16BE();case 3:return M.readUInt24BE();case 4:return M.readUInt32BE()}},b.size=function(M,x){return f.resolveLength(this._size,null,x)},eA}())(function(eA){return 1+((48&eA.parent.entryFormat)>>4)}),outerIndex:function(b){return b.entry>>1+(15&b.parent.entryFormat)},innerIndex:function(b){return b.entry&(1<<1+(15&b.parent.entryFormat))-1}}),Vn=new e.Struct({entryFormat:e.uint16,mapCount:e.uint16,mapData:new e.Array(Jr,"mapCount")}),Li=new e.Struct({majorVersion:e.uint16,minorVersion:e.uint16,itemVariationStore:new e.Pointer(e.uint32,Jt),advanceWidthMapping:new e.Pointer(e.uint32,Vn),LSBMapping:new e.Pointer(e.uint32,Vn),RSBMapping:new e.Pointer(e.uint32,Vn)}),bi=new e.Struct({format:e.uint32,length:e.uint32,offset:e.uint32}),aa=new e.Struct({reserved:new e.Reserved(e.uint16,2),cbSignature:e.uint32,signature:new e.Buffer("cbSignature")}),oo=new e.Struct({ulVersion:e.uint32,usNumSigs:e.uint16,usFlag:e.uint16,signatures:new e.Array(bi,"usNumSigs"),signatureBlocks:new e.Array(aa,"usNumSigs")}),so=new e.Struct({rangeMaxPPEM:e.uint16,rangeGaspBehavior:new e.Bitfield(e.uint16,["grayscale","gridfit","symmetricSmoothing","symmetricGridfit"])}),co=new e.Struct({version:e.uint16,numRanges:e.uint16,gaspRanges:new e.Array(so,"numRanges")}),lo=new e.Struct({pixelSize:e.uint8,maximumWidth:e.uint8,widths:new e.Array(e.uint8,function(eA){return eA.parent.parent.maxp.numGlyphs})}),go=new e.Struct({version:e.uint16,numRecords:e.int16,sizeDeviceRecord:e.int32,records:new e.Array(lo,"numRecords")}),Bo=new e.Struct({left:e.uint16,right:e.uint16,value:e.int16}),oa=new e.Struct({firstGlyph:e.uint16,nGlyphs:e.uint16,offsets:new e.Array(e.uint16,"nGlyphs"),max:function(b){return b.offsets.length&&Math.max.apply(Math,b.offsets)}}),uo=new e.Struct({off:function(b){return b._startOffset-b.parent.parent._startOffset},len:function(b){return b.parent.rowWidth/2*((b.parent.leftTable.max-b.off)/b.parent.rowWidth+1)},values:new e.LazyArray(e.int16,"len")}),sa=new e.VersionedStruct("format",{0:{nPairs:e.uint16,searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16,pairs:new e.Array(Bo,"nPairs")},2:{rowWidth:e.uint16,leftTable:new e.Pointer(e.uint16,oa,{type:"parent"}),rightTable:new e.Pointer(e.uint16,oa,{type:"parent"}),array:new e.Pointer(e.uint16,uo,{type:"parent"})},3:{glyphCount:e.uint16,kernValueCount:e.uint8,leftClassCount:e.uint8,rightClassCount:e.uint8,flags:e.uint8,kernValue:new e.Array(e.int16,"kernValueCount"),leftClass:new e.Array(e.uint8,"glyphCount"),rightClass:new e.Array(e.uint8,"glyphCount"),kernIndex:new e.Array(e.uint8,function(eA){return eA.leftClassCount*eA.rightClassCount})}}),ca=new e.VersionedStruct("version",{0:{subVersion:e.uint16,length:e.uint16,format:e.uint8,coverage:new e.Bitfield(e.uint8,["horizontal","minimum","crossStream","override"]),subtable:sa,padding:new e.Reserved(e.uint8,function(eA){return eA.length-eA._currentOffset})},1:{length:e.uint32,coverage:new e.Bitfield(e.uint8,[null,null,null,null,null,"variation","crossStream","vertical"]),format:e.uint8,tupleIndex:e.uint16,subtable:sa,padding:new e.Reserved(e.uint8,function(eA){return eA.length-eA._currentOffset})}}),la=new e.VersionedStruct(e.uint16,{0:{nTables:e.uint16,tables:new e.Array(ca,"nTables")},1:{reserved:new e.Reserved(e.uint16),nTables:e.uint32,tables:new e.Array(ca,"nTables")}}),fo=new e.Struct({version:e.uint16,numGlyphs:e.uint16,yPels:new e.Array(e.uint8,"numGlyphs")}),ho=new e.Struct({version:e.uint16,fontNumber:e.uint32,pitch:e.uint16,xHeight:e.uint16,style:e.uint16,typeFamily:e.uint16,capHeight:e.uint16,symbolSet:e.uint16,typeface:new e.String(16),characterComplement:new e.String(8),fileName:new e.String(6),strokeWeight:new e.String(1),widthType:new e.String(1),serifStyle:e.uint8,reserved:new e.Reserved(e.uint8)}),Eo=new e.Struct({bCharSet:e.uint8,xRatio:e.uint8,yStartRatio:e.uint8,yEndRatio:e.uint8}),wo=new e.Struct({yPelHeight:e.uint16,yMax:e.int16,yMin:e.int16}),Co=new e.Struct({recs:e.uint16,startsz:e.uint8,endsz:e.uint8,entries:new e.Array(wo,"recs")}),Qo=new e.Struct({version:e.uint16,numRecs:e.uint16,numRatios:e.uint16,ratioRanges:new e.Array(Eo,"numRatios"),offsets:new e.Array(e.uint16,"numRatios"),groups:new e.Array(Co,"numRecs")}),Mo=new e.Struct({version:e.uint16,ascent:e.int16,descent:e.int16,lineGap:e.int16,advanceHeightMax:e.int16,minTopSideBearing:e.int16,minBottomSideBearing:e.int16,yMaxExtent:e.int16,caretSlopeRise:e.int16,caretSlopeRun:e.int16,caretOffset:e.int16,reserved:new e.Reserved(e.int16,4),metricDataFormat:e.int16,numberOfMetrics:e.uint16}),po=new e.Struct({advance:e.uint16,bearing:e.int16}),Io=new e.Struct({metrics:new e.LazyArray(po,function(eA){return eA.parent.vhea.numberOfMetrics}),bearings:new e.LazyArray(e.int16,function(eA){return eA.parent.maxp.numGlyphs-eA.parent.vhea.numberOfMetrics})}),ga=new e.Fixed(16,"BE",14),mo=new e.Struct({fromCoord:ga,toCoord:ga}),Do=new e.Struct({pairCount:e.uint16,correspondence:new e.Array(mo,"pairCount")}),vo=new e.Struct({version:e.fixed32,axisCount:e.uint32,segment:new e.Array(Do,"axisCount")}),yo=function(){function eA(K,M,x){this.type=K,this.stream=M,this.parent=x,this.base=this.stream.pos,this._items=[]}var b=eA.prototype;return b.getItem=function(M){if(null==this._items[M]){var x=this.stream.pos;this.stream.pos=this.base+this.type.size(null,this.parent)*M,this._items[M]=this.type.decode(this.stream,this.parent),this.stream.pos=x}return this._items[M]},b.inspect=function(){return"[UnboundedArray ".concat(this.type.constructor.name,"]")},eA}(),Ar=function(eA){function b(M){return eA.call(this,M,0)||this}return h(b,eA),b.prototype.decode=function(x,P){return new yo(this.type,x,P)},b}(e.Array),fr=function(b){void 0===b&&(b=e.uint16),b=new(function(){function oA(iA){this.type=iA}var sA=oA.prototype;return sA.decode=function(SA,jA){return this.type.decode(SA,jA=jA.parent.parent)},sA.size=function(SA,jA){return this.type.size(SA,jA=jA.parent.parent)},sA.encode=function(SA,jA,ct){return this.type.encode(SA,jA,ct=ct.parent.parent)},oA}())(b);var M=new e.Struct({unitSize:e.uint16,nUnits:e.uint16,searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16}),x=new e.Struct({lastGlyph:e.uint16,firstGlyph:e.uint16,value:b}),P=new e.Struct({lastGlyph:e.uint16,firstGlyph:e.uint16,values:new e.Pointer(e.uint16,new e.Array(b,function(oA){return oA.lastGlyph-oA.firstGlyph+1}),{type:"parent"})}),tA=new e.Struct({glyph:e.uint16,value:b});return new e.VersionedStruct(e.uint16,{0:{values:new Ar(b)},2:{binarySearchHeader:M,segments:new e.Array(x,function(oA){return oA.binarySearchHeader.nUnits})},4:{binarySearchHeader:M,segments:new e.Array(P,function(oA){return oA.binarySearchHeader.nUnits})},6:{binarySearchHeader:M,segments:new e.Array(tA,function(oA){return oA.binarySearchHeader.nUnits})},8:{firstGlyph:e.uint16,count:e.uint16,values:new e.Array(b,"count")}})};function ci(eA,b){void 0===eA&&(eA={}),void 0===b&&(b=e.uint16);var K=Object.assign({newState:e.uint16,flags:e.uint16},eA),M=new e.Struct(K),x=new Ar(new e.Array(e.uint16,function(tA){return tA.nClasses}));return new e.Struct({nClasses:e.uint32,classTable:new e.Pointer(e.uint32,new fr(b)),stateArray:new e.Pointer(e.uint32,x),entryTable:new e.Pointer(e.uint32,new Ar(M))})}var Ba=new e.VersionedStruct("format",{0:{deltas:new e.Array(e.int16,32)},1:{deltas:new e.Array(e.int16,32),mappingData:new fr(e.uint16)},2:{standardGlyph:e.uint16,controlPoints:new e.Array(e.uint16,32)},3:{standardGlyph:e.uint16,controlPoints:new e.Array(e.uint16,32),mappingData:new fr(e.uint16)}}),Fo=new e.Struct({version:e.fixed32,format:e.uint16,defaultBaseline:e.uint16,subtable:Ba}),ua=new e.Struct({setting:e.uint16,nameIndex:e.int16,name:function(b){return b.parent.parent.parent.name.records.fontFeatures[b.nameIndex]}}),Tr=new e.Struct({feature:e.uint16,nSettings:e.uint16,settingTable:new e.Pointer(e.uint32,new e.Array(ua,"nSettings"),{type:"parent"}),featureFlags:new e.Bitfield(e.uint8,[null,null,null,null,null,null,"hasDefault","exclusive"]),defaultSetting:e.uint8,nameIndex:e.int16,name:function(b){return b.parent.parent.name.records.fontFeatures[b.nameIndex]}}),ar=new e.Struct({version:e.fixed32,featureNameCount:e.uint16,reserved1:new e.Reserved(e.uint16),reserved2:new e.Reserved(e.uint32),featureNames:new e.Array(Tr,"featureNameCount")}),Mr=new e.Struct({axisTag:new e.String(4),minValue:e.fixed32,defaultValue:e.fixed32,maxValue:e.fixed32,flags:e.uint16,nameID:e.uint16,name:function(b){return b.parent.parent.name.records.fontFeatures[b.nameID]}}),Yo=new e.Struct({nameID:e.uint16,name:function(b){return b.parent.parent.name.records.fontFeatures[b.nameID]},flags:e.uint16,coord:new e.Array(e.fixed32,function(eA){return eA.parent.axisCount}),postscriptNameID:new e.Optional(e.uint16,function(eA){return eA.parent.instanceSize-eA._currentOffset>0})}),To=new e.Struct({version:e.fixed32,offsetToData:e.uint16,countSizePairs:e.uint16,axisCount:e.uint16,axisSize:e.uint16,instanceCount:e.uint16,instanceSize:e.uint16,axis:new e.Array(Mr,"axisCount"),instance:new e.Array(Yo,"instanceCount")}),No=new e.Fixed(16,"BE",14),So=function(){function eA(){}return eA.decode=function(K,M){return M.flags?K.readUInt32BE():2*K.readUInt16BE()},eA}(),Uo=new e.Struct({version:e.uint16,reserved:new e.Reserved(e.uint16),axisCount:e.uint16,globalCoordCount:e.uint16,globalCoords:new e.Pointer(e.uint32,new e.Array(new e.Array(No,"axisCount"),"globalCoordCount")),glyphCount:e.uint16,flags:e.uint16,offsetToData:e.uint32,offsets:new e.Array(new e.Pointer(So,"void",{relativeTo:function(b){return b.offsetToData},allowNull:!1}),function(eA){return eA.glyphCount+1})}),Po=new e.Struct({length:e.uint16,coverage:e.uint16,subFeatureFlags:e.uint32,stateTable:new function xo(eA,b){void 0===eA&&(eA={}),void 0===b&&(b=e.uint16);var K=new e.Struct({version:function(){return 8},firstGlyph:e.uint16,values:new e.Array(e.uint8,e.uint16)}),M=Object.assign({newStateOffset:e.uint16,newState:function(sA){return(sA.newStateOffset-(sA.parent.stateArray.base-sA.parent._startOffset))/sA.parent.nClasses},flags:e.uint16},eA),x=new e.Struct(M),P=new Ar(new e.Array(e.uint8,function(oA){return oA.nClasses}));return new e.Struct({nClasses:e.uint16,classTable:new e.Pointer(e.uint16,K),stateArray:new e.Pointer(e.uint16,P),entryTable:new e.Pointer(e.uint16,new Ar(x))})}}),Ro=new e.Struct({justClass:e.uint32,beforeGrowLimit:e.fixed32,beforeShrinkLimit:e.fixed32,afterGrowLimit:e.fixed32,afterShrinkLimit:e.fixed32,growFlags:e.uint16,shrinkFlags:e.uint16}),zo=new e.Array(Ro,e.uint32),Lo=new e.VersionedStruct("actionType",{0:{lowerLimit:e.fixed32,upperLimit:e.fixed32,order:e.uint16,glyphs:new e.Array(e.uint16,e.uint16)},1:{addGlyph:e.uint16},2:{substThreshold:e.fixed32,addGlyph:e.uint16,substGlyph:e.uint16},3:{},4:{variationAxis:e.uint32,minimumLimit:e.fixed32,noStretchValue:e.fixed32,maximumLimit:e.fixed32},5:{flags:e.uint16,glyph:e.uint16}}),bo=new e.Struct({actionClass:e.uint16,actionType:e.uint16,actionLength:e.uint32,actionData:Lo,padding:new e.Reserved(e.uint8,function(eA){return eA.actionLength-eA._currentOffset})}),Go=new e.Array(bo,e.uint32),Ho=new e.Struct({lookupTable:new fr(new e.Pointer(e.uint16,Go))}),fa=new e.Struct({classTable:new e.Pointer(e.uint16,Po,{type:"parent"}),wdcOffset:e.uint16,postCompensationTable:new e.Pointer(e.uint16,Ho,{type:"parent"}),widthDeltaClusters:new fr(new e.Pointer(e.uint16,zo,{type:"parent",relativeTo:function(b){return b.wdcOffset}}))}),Jo=new e.Struct({version:e.uint32,format:e.uint16,horizontal:new e.Pointer(e.uint16,fa),vertical:new e.Pointer(e.uint16,fa)}),Oo={action:e.uint16},ha={markIndex:e.uint16,currentIndex:e.uint16},ko={currentInsertIndex:e.uint16,markedInsertIndex:e.uint16},jo=new e.Struct({items:new Ar(new e.Pointer(e.uint32,new fr))}),Zo=new e.VersionedStruct("type",{0:{stateTable:new ci},1:{stateTable:new ci(ha),substitutionTable:new e.Pointer(e.uint32,jo)},2:{stateTable:new ci(Oo),ligatureActions:new e.Pointer(e.uint32,new Ar(e.uint32)),components:new e.Pointer(e.uint32,new Ar(e.uint16)),ligatureList:new e.Pointer(e.uint32,new Ar(e.uint16))},4:{lookupTable:new fr},5:{stateTable:new ci(ko),insertionActions:new e.Pointer(e.uint32,new Ar(e.uint16))}}),Ko=new e.Struct({length:e.uint32,coverage:e.uint24,type:e.uint8,subFeatureFlags:e.uint32,table:Zo,padding:new e.Reserved(e.uint8,function(eA){return eA.length-eA._currentOffset})}),Vo=new e.Struct({featureType:e.uint16,featureSetting:e.uint16,enableFlags:e.uint32,disableFlags:e.uint32}),Wo=new e.Struct({defaultFlags:e.uint32,chainLength:e.uint32,nFeatureEntries:e.uint32,nSubtables:e.uint32,features:new e.Array(Vo,"nFeatureEntries"),subtables:new e.Array(Ko,"nSubtables")}),Xo=new e.Struct({version:e.uint16,unused:new e.Reserved(e.uint16),nChains:e.uint32,chains:new e.Array(Wo,"nChains")}),qo=new e.Struct({left:e.int16,top:e.int16,right:e.int16,bottom:e.int16}),_o=new e.Struct({version:e.fixed32,format:e.uint16,lookupTable:new fr(qo)}),oe={};oe.cmap=DA,oe.head=FA,oe.hhea=_,oe.hmtx=uA,oe.maxp=CA,oe.name=V,oe["OS/2"]=mA,oe.post=EA,oe.fpgm=et,oe.loca=ot,oe.prep=TA,oe["cvt "]=GA,oe.glyf=it,oe["CFF "]=te,oe.CFF2=te,oe.VORG=Pt,oe.EBLC=_e,oe.CBLC=oe.EBLC,oe.sbix=rn,oe.COLR=an,oe.CPAL=ln,oe.BASE=Z,oe.GDEF=Dt,oe.GPOS=Rr,oe.GSUB=zr,oe.JSTF=Hr,oe.HVAR=Li,oe.DSIG=oo,oe.gasp=co,oe.hdmx=go,oe.kern=la,oe.LTSH=fo,oe.PCLT=ho,oe.VDMX=Qo,oe.vhea=Mo,oe.vmtx=Io,oe.avar=vo,oe.bsln=Fo,oe.feat=ar,oe.fvar=To,oe.gvar=Uo,oe.just=Jo,oe.morx=Xo,oe.opbd=_o;var or,$o=new e.Struct({tag:new e.String(4),checkSum:e.uint32,offset:new e.Pointer(e.uint32,"void",{type:"global"}),length:e.uint32}),li=new e.Struct({tag:new e.String(4),numTables:e.uint16,searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16,tables:new e.Array($o,"numTables")});function gi(eA,b){for(var K=0,M=eA.length-1;K<=M;){var x=K+M>>1,P=b(eA[x]);if(P<0)M=x-1;else{if(!(P>0))return x;K=x+1}}return-1}function Nr(eA,b){for(var K=[];eA>1;if(MsA.endCode.get(jA))){var ct=sA.idRangeOffset.get(jA),qA=void 0;if(0===ct)qA=M+sA.idDelta.get(jA);else{var gt=ct/2+(M-sA.startCode.get(jA))-(sA.segCount-jA);0!==(qA=sA.glyphIndexArray.get(gt)||0)&&(qA+=sA.idDelta.get(jA))}return 65535&qA}iA=jA+1}}return 0;case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return sA.glyphIndices.get(M-sA.firstCode)||0;case 12:case 13:for(var pt=0,yt=sA.nGroups-1;pt<=yt;){var Gt=pt+yt>>1,$t=sA.groups.get(Gt);if(M<$t.startCharCode)yt=Gt-1;else{if(!(M>$t.endCharCode))return 12===sA.version?$t.glyphID+(M-$t.startCharCode):$t.glyphID;pt=Gt+1}}return 0;case 14:throw new Error("TODO: cmap format 14");default:throw new Error("Unknown cmap format ".concat(sA.version))}},b.getVariationSelector=function(M,x){if(!this.uvs)return 0;var P=this.uvs.varSelectors.toArray(),tA=gi(P,function(sA){return x-sA.varSelector}),oA=P[tA];return-1!==tA&&oA.defaultUVS&&(tA=gi(oA.defaultUVS,function(sA){return MsA.startUnicodeValue+sA.additionalCount?1:0})),-1!==tA&&oA.nonDefaultUVS&&-1!==(tA=gi(oA.nonDefaultUVS,function(sA){return M-sA.unicodeValue}))?oA.nonDefaultUVS[tA].glyphID:0},b.getCharacterSet=function(){var M=this.cmap;switch(M.version){case 0:return Nr(0,M.codeMap.length);case 4:for(var x=[],P=M.endCode.toArray(),tA=0;tA=qt.glyphID&&M<=qt.glyphID+(qt.endCharCode-qt.startCharCode)&&yt.push(qt.startCharCode+(M-qt.glyphID))}return yt;case 13:for(var Ee,ie=[],ge=B(x.groups.toArray());!(Ee=ge()).done;){var we=Ee.value;M===we.glyphID&&ie.push.apply(ie,Nr(we.startCharCode,we.endCharCode+1))}return ie;default:throw new Error("Unknown cmap format ".concat(x.version))}},eA}()).prototype,"getCharacterSet",[z],Object.getOwnPropertyDescriptor(or.prototype,"getCharacterSet"),or.prototype),F(or.prototype,"codePointsForGlyph",[z],Object.getOwnPropertyDescriptor(or.prototype,"codePointsForGlyph"),or.prototype),or),ts=function(){function eA(K){this.kern=K.kern}var b=eA.prototype;return b.process=function(M,x){for(var P=0;P=0&&(iA=SA.pairs[jA].value);break;case 2:var qA=0;x>=SA.rightTable.firstGlyph&&x=SA.leftTable.firstGlyph&&M=SA.glyphCount||x>=SA.glyphCount)return 0;iA=SA.kernValue[SA.kernIndex[SA.leftClass[M]*SA.rightClassCount+SA.rightClass[x]]];break;default:throw new Error("Unsupported kerning sub-table format ".concat(sA.format))}sA.coverage.override?P=iA:P+=iA}}return P},eA}(),es=function(){function eA(K){this.font=K}var b=eA.prototype;return b.positionGlyphs=function(M,x){for(var P=0,tA=0,oA=0;oA1&&(sA.minX+=(oA.codePoints.length-1)*sA.width/oA.codePoints.length);for(var iA=-x[P].xAdvance,SA=0,jA=this.font.unitsPerEm/16,ct=P+1;ct<=tA;ct++){var qA=M[ct],gt=qA.cbox,pt=x[ct],yt=this.getCombiningClass(qA.codePoints[0]);if("Not_Reordered"!==yt){switch(pt.xOffset=pt.yOffset=0,yt){case"Double_Above":case"Double_Below":pt.xOffset+=sA.minX-gt.width/2-gt.minX;break;case"Attached_Below_Left":case"Below_Left":case"Above_Left":pt.xOffset+=sA.minX-gt.minX;break;case"Attached_Above_Right":case"Below_Right":case"Above_Right":pt.xOffset+=sA.maxX-gt.width-gt.minX;break;default:pt.xOffset+=sA.minX+(sA.width-gt.width)/2-gt.minX}switch(yt){case"Double_Below":case"Below_Left":case"Below":case"Below_Right":case"Attached_Below_Left":case"Attached_Below":("Attached_Below_Left"===yt||"Attached_Below"===yt)&&(sA.minY+=jA),pt.yOffset=-sA.minY-gt.maxY,sA.minY+=gt.height;break;case"Double_Above":case"Above_Left":case"Above":case"Above_Right":case"Attached_Above":case"Attached_Above_Right":("Attached_Above"===yt||"Attached_Above_Right"===yt)&&(sA.maxY+=jA),pt.yOffset=sA.maxY-gt.minY,sA.maxY+=gt.height}pt.xAdvance=pt.yAdvance=0,pt.xOffset+=iA,pt.yOffset+=SA}else iA-=pt.xAdvance,SA-=pt.yAdvance}},b.getCombiningClass=function(M){var x=w.getCombiningClass(M);if(3584==(-256&M))if("Not_Reordered"===x)switch(M){case 3633:case 3636:case 3637:case 3638:case 3639:case 3655:case 3660:case 3645:case 3662:return"Above_Right";case 3761:case 3764:case 3765:case 3766:case 3767:case 3771:case 3788:case 3789:return"Above";case 3772:return"Below"}else if(3642===M)return"Below_Right";switch(x){case"CCC10":case"CCC11":case"CCC12":case"CCC13":case"CCC14":case"CCC15":case"CCC16":case"CCC17":case"CCC18":case"CCC20":case"CCC22":case"CCC29":case"CCC32":case"CCC118":case"CCC129":case"CCC132":return"Below";case"CCC23":return"Attached_Above";case"CCC24":case"CCC107":return"Above_Right";case"CCC25":case"CCC19":return"Above_Left";case"CCC26":case"CCC27":case"CCC28":case"CCC30":case"CCC31":case"CCC33":case"CCC34":case"CCC35":case"CCC36":case"CCC122":case"CCC130":return"Above";case"CCC21":break;case"CCC103":return"Below_Right"}return x},eA}(),Sr=function(){function eA(K,M,x,P){void 0===K&&(K=1/0),void 0===M&&(M=1/0),void 0===x&&(x=-1/0),void 0===P&&(P=-1/0),this.minX=K,this.minY=M,this.maxX=x,this.maxY=P}var b=eA.prototype;return b.addPoint=function(M,x){Math.abs(M)!==1/0&&(Mthis.maxX&&(this.maxX=M)),Math.abs(x)!==1/0&&(xthis.maxY&&(this.maxY=x))},b.copy=function(){return new eA(this.minX,this.minY,this.maxX,this.maxY)},c(eA,[{key:"width",get:function(){return this.maxX-this.minX}},{key:"height",get:function(){return this.maxY-this.minY}}]),eA}(),Ur={Caucasian_Albanian:"aghb",Arabic:"arab",Imperial_Aramaic:"armi",Armenian:"armn",Avestan:"avst",Balinese:"bali",Bamum:"bamu",Bassa_Vah:"bass",Batak:"batk",Bengali:["bng2","beng"],Bopomofo:"bopo",Brahmi:"brah",Braille:"brai",Buginese:"bugi",Buhid:"buhd",Chakma:"cakm",Canadian_Aboriginal:"cans",Carian:"cari",Cham:"cham",Cherokee:"cher",Coptic:"copt",Cypriot:"cprt",Cyrillic:"cyrl",Devanagari:["dev2","deva"],Deseret:"dsrt",Duployan:"dupl",Egyptian_Hieroglyphs:"egyp",Elbasan:"elba",Ethiopic:"ethi",Georgian:"geor",Glagolitic:"glag",Gothic:"goth",Grantha:"gran",Greek:"grek",Gujarati:["gjr2","gujr"],Gurmukhi:["gur2","guru"],Hangul:"hang",Han:"hani",Hanunoo:"hano",Hebrew:"hebr",Hiragana:"hira",Pahawh_Hmong:"hmng",Katakana_Or_Hiragana:"hrkt",Old_Italic:"ital",Javanese:"java",Kayah_Li:"kali",Katakana:"kana",Kharoshthi:"khar",Khmer:"khmr",Khojki:"khoj",Kannada:["knd2","knda"],Kaithi:"kthi",Tai_Tham:"lana",Lao:"lao ",Latin:"latn",Lepcha:"lepc",Limbu:"limb",Linear_A:"lina",Linear_B:"linb",Lisu:"lisu",Lycian:"lyci",Lydian:"lydi",Mahajani:"mahj",Mandaic:"mand",Manichaean:"mani",Mende_Kikakui:"mend",Meroitic_Cursive:"merc",Meroitic_Hieroglyphs:"mero",Malayalam:["mlm2","mlym"],Modi:"modi",Mongolian:"mong",Mro:"mroo",Meetei_Mayek:"mtei",Myanmar:["mym2","mymr"],Old_North_Arabian:"narb",Nabataean:"nbat",Nko:"nko ",Ogham:"ogam",Ol_Chiki:"olck",Old_Turkic:"orkh",Oriya:["ory2","orya"],Osmanya:"osma",Palmyrene:"palm",Pau_Cin_Hau:"pauc",Old_Permic:"perm",Phags_Pa:"phag",Inscriptional_Pahlavi:"phli",Psalter_Pahlavi:"phlp",Phoenician:"phnx",Miao:"plrd",Inscriptional_Parthian:"prti",Rejang:"rjng",Runic:"runr",Samaritan:"samr",Old_South_Arabian:"sarb",Saurashtra:"saur",Shavian:"shaw",Sharada:"shrd",Siddham:"sidd",Khudawadi:"sind",Sinhala:"sinh",Sora_Sompeng:"sora",Sundanese:"sund",Syloti_Nagri:"sylo",Syriac:"syrc",Tagbanwa:"tagb",Takri:"takr",Tai_Le:"tale",New_Tai_Lue:"talu",Tamil:["tml2","taml"],Tai_Viet:"tavt",Telugu:["tel2","telu"],Tifinagh:"tfng",Tagalog:"tglg",Thaana:"thaa",Thai:"thai",Tibetan:"tibt",Tirhuta:"tirh",Ugaritic:"ugar",Vai:"vai ",Warang_Citi:"wara",Old_Persian:"xpeo",Cuneiform:"xsux",Yi:"yi ",Inherited:"zinh",Common:"zyyy",Unknown:"zzzz"},Gi={};for(var Hi in Ur){var Ji=Ur[Hi];if(Array.isArray(Ji))for(var Ea,ns=B(Ji);!(Ea=ns()).done;)Gi[Ea.value]=Hi;else Gi[Ji]=Hi}var ss={arab:!0,hebr:!0,syrc:!0,thaa:!0,cprt:!0,khar:!0,phnx:!0,"nko ":!0,lydi:!0,avst:!0,armi:!0,phli:!0,prti:!0,sarb:!0,orkh:!0,samr:!0,mand:!0,merc:!0,mero:!0,mani:!0,mend:!0,nbat:!0,narb:!0,palm:!0,phlp:!0};function wa(eA){return ss[eA]?"rtl":"ltr"}for(var cs=function(){function eA(b,K,M,x,P){if(this.glyphs=b,this.positions=null,this.script=M,this.language=x||null,this.direction=P||wa(M),this.features={},Array.isArray(K))for(var oA,tA=B(K);!(oA=tA()).done;)this.features[oA.value]=!0;else"object"==typeof K&&(this.features=K)}return c(eA,[{key:"advanceWidth",get:function(){for(var x,K=0,M=B(this.positions);!(x=M()).done;)K+=x.value.xAdvance;return K}},{key:"advanceHeight",get:function(){for(var x,K=0,M=B(this.positions);!(x=M()).done;)K+=x.value.yAdvance;return K}},{key:"bbox",get:function(){for(var K=new Sr,M=0,x=0,P=0;P>1]).firstGlyph)return null;if(MoA.lastGlyph))return 2===this.table.version?oA.value:oA.values[M-oA.firstGlyph];x=tA+1}}return null;case 6:for(var sA=0,iA=this.table.binarySearchHeader.nUnits-1;sA<=iA;){var tA,oA;if(65535===(oA=this.table.segments[tA=sA+iA>>1]).glyph)return null;if(MoA.glyph))return oA.value;sA=tA+1}}return null;case 8:return this.table.values[M-this.table.firstGlyph];default:throw new Error("Unknown lookup table format: ".concat(this.table.version))}},b.glyphsForValue=function(M){var x=[];switch(this.table.version){case 2:case 4:for(var tA,P=B(this.table.segments);!(tA=P()).done;){var oA=tA.value;if(2===this.table.version&&oA.value===M)x.push.apply(x,Nr(oA.firstGlyph,oA.lastGlyph+1));else for(var sA=0;sA=-1;){var iA=null,SA=1,jA=!0;oA===M.length||-1===oA?SA=0:65535===(iA=M[oA]).id?SA=2:null==(SA=this.lookupTable.lookup(iA.id))&&(SA=1);var ct=this.stateTable.stateArray.getItem(tA),gt=this.stateTable.entryTable.getItem(ct[SA]);0!==SA&&2!==SA&&(P(iA,gt,oA),jA=!(16384>.flags)),tA=gt.newState,jA&&(oA+=sA)}return M},b.traverse=function(M,x,P){if(void 0===x&&(x=0),void 0===P&&(P=new Set),!P.has(x)){P.add(x);for(var tA=this.stateTable,oA=tA.nClasses,iA=tA.entryTable,SA=tA.stateArray.getItem(x),jA=4;jA=0;)65535===M[yt].id&&M.splice(yt,1),yt--;return M},b.processSubtable=function(M,x){if(this.subtable=M,this.glyphs=x,4!==this.subtable.type){this.ligatureStack=[],this.markedGlyph=null,this.firstGlyph=null,this.lastGlyph=null,this.markedIndex=null;var P=this.getStateMachine(M),tA=this.getProcessor();return P.process(this.glyphs,!!(4194304&this.subtable.coverage),tA)}this.processNoncontextualSubstitutions(this.subtable,this.glyphs)},b.getStateMachine=function(M){return new fs(M.table.stateTable)},b.getProcessor=function(){switch(this.subtable.type){case 0:return this.processIndicRearragement;case 1:return this.processContextualSubstitution;case 2:return this.processLigature;case 4:return this.processNoncontextualSubstitutions;case 5:return this.processGlyphInsertion;default:throw new Error("Invalid morx subtable type: ".concat(this.subtable.type))}},b.processIndicRearragement=function(M,x,P){32768&x.flags&&(this.firstGlyph=P),8192&x.flags&&(this.lastGlyph=P),function ys(eA,b,K,M){switch(b){case 0:return eA;case 1:return Sn(eA,[K,1],[M,0]);case 2:return Sn(eA,[K,0],[M,1]);case 3:return Sn(eA,[K,1],[M,1]);case 4:return Sn(eA,[K,2],[M,0]);case 5:return Sn(eA,[K,2],[M,0],!0,!1);case 6:return Sn(eA,[K,0],[M,2]);case 7:return Sn(eA,[K,0],[M,2],!1,!0);case 8:return Sn(eA,[K,1],[M,2]);case 9:return Sn(eA,[K,1],[M,2],!1,!0);case 10:return Sn(eA,[K,2],[M,1]);case 11:return Sn(eA,[K,2],[M,1],!0,!1);case 12:return Sn(eA,[K,2],[M,2]);case 13:return Sn(eA,[K,2],[M,2],!0,!1);case 14:return Sn(eA,[K,2],[M,2],!1,!0);case 15:return Sn(eA,[K,2],[M,2],!0,!0);default:throw new Error("Unknown verb: ".concat(b))}}(this.glyphs,15&x.flags,this.firstGlyph,this.lastGlyph)},b.processContextualSubstitution=function(M,x,P){var tA=this.subtable.table.substitutionTable.items;if(65535!==x.markIndex){var oA=tA.getItem(x.markIndex);(iA=new hi(oA).lookup((M=this.glyphs[this.markedGlyph]).id))&&(this.glyphs[this.markedGlyph]=this.font.getGlyph(iA,M.codePoints))}if(65535!==x.currentIndex){var iA,SA=tA.getItem(x.currentIndex);(iA=new hi(SA).lookup((M=this.glyphs[P]).id))&&(this.glyphs[P]=this.font.getGlyph(iA,M.codePoints))}32768&x.flags&&(this.markedGlyph=P)},b.processLigature=function(M,x,P){if(32768&x.flags&&this.ligatureStack.push(P),8192&x.flags){for(var tA,oA=this.subtable.table.ligatureActions,sA=this.subtable.table.components,iA=this.subtable.table.ligatureList,SA=x.action,jA=!1,ct=0,qA=[],gt=[];!jA;){var pt,yt=this.ligatureStack.pop();(pt=qA).unshift.apply(pt,this.glyphs[yt].codePoints);var Gt=oA.getItem(SA++);jA=!!(2147483648&Gt);var $t=!!(1073741824&Gt),qt=(1073741823&Gt)<<2>>2;if(ct+=sA.getItem(qt+=this.glyphs[yt].id),jA||$t){var ge=iA.getItem(ct);this.glyphs[yt]=this.font.getGlyph(ge,qA),gt.push(yt),ct=0,qA=[]}else this.glyphs[yt]=this.font.getGlyph(65535)}(tA=this.ligatureStack).push.apply(tA,gt)}},b.processNoncontextualSubstitutions=function(M,x,P){var tA=new hi(M.table.lookupTable);for(P=0;P>>5,!!(1024&x.flags)),65535!==x.currentInsertIndex&&this._insertGlyphs(P,x.currentInsertIndex,(992&x.flags)>>>5,!!(2048&x.flags))},b.getSupportedFeatures=function(){for(var P,M=[],x=B(this.morx.chains);!(P=x()).done;)for(var sA,oA=B(P.value.features);!(sA=oA()).done;){var iA=sA.value;M.push([iA.featureType,iA.featureSetting])}return M},b.generateInputs=function(M){return this.inputCache||this.generateInputCache(),this.inputCache[M]||[]},b.generateInputCache=function(){this.inputCache={};for(var x,M=B(this.morx.chains);!(x=M()).done;)for(var sA,P=x.value,tA=P.defaultFlags,oA=B(P.subtables);!(sA=oA()).done;){var iA=sA.value;iA.subFeatureFlags&tA&&this.generateInputsForSubtable(iA)}},b.generateInputsForSubtable=function(M){var x=this;if(2===M.type){if(4194304&M.coverage)throw new Error("Reverse subtable, not supported.");this.subtable=M,this.ligatureStack=[];var tA=this.getStateMachine(M),oA=this.getProcessor(),sA=[],iA=[];this.glyphs=[],tA.traverse({enter:function(jA,ct){var qA=x.glyphs;iA.push({glyphs:qA.slice(),ligatureStack:x.ligatureStack.slice()});var gt=x.font.getGlyph(jA);sA.push(gt),qA.push(sA[sA.length-1]),oA(qA[qA.length-1],ct,qA.length-1);for(var pt=0,yt=0,Gt=0;Gt0&&M.applyFeatures(sA,x,P)}},eA}(),Ys=["rvrn"],Ts=["ccmp","locl","rlig","mark","mkmk"],Ns=["frac","numr","dnom"],Ss=["calt","clig","liga","rclt","curs","kern"],Us={ltr:["ltra","ltrm"],rtl:["rtla","rtlm"]},hr=function(){function eA(){}return eA.plan=function(K,M,x){this.planPreprocessing(K),this.planFeatures(K),this.planPostprocessing(K,x),K.assignGlobalFeatures(M),this.assignFeatures(K,M)},eA.planPreprocessing=function(K){K.add({global:[].concat(Ys,Us[K.direction]),local:Ns})},eA.planFeatures=function(K){},eA.planPostprocessing=function(K,M){K.add([].concat(Ts,Ss)),K.setFeatureOverrides(M)},eA.assignFeatures=function(K,M){for(var x=0;x0&&w.isDigit(M[tA-1].codePoints[0]);)M[tA-1].features.numr=!0,M[tA-1].features.frac=!0,tA--;for(;oAthis.index||this.index>=this.glyphs.length?null:this.glyphs[this.index]},b.next=function(){return this.move(1)},b.prev=function(){return this.move(-1)},b.peek=function(M){void 0===M&&(M=1);var x=this.index,P=this.increment(M);return this.index=x,P},b.peekIndex=function(M){void 0===M&&(M=1);var x=this.index;this.increment(M);var P=this.index;return this.index=x,P},b.increment=function(M){void 0===M&&(M=1);var x=M<0?-1:1;for(M=Math.abs(M);M--;)this.move(x);return this.glyphs[this.index]},c(eA,[{key:"cur",get:function(){return this.glyphs[this.index]||null}}]),eA}(),Kr=["DFLT","dflt","latn"],Qi=function(){function eA(K,M){this.font=K,this.table=M,this.script=null,this.scriptTag=null,this.language=null,this.languageTag=null,this.features={},this.lookups={},this.variationsIndex=K._variationProcessor?this.findVariationsIndex(K._variationProcessor.normalizedCoords):-1,this.selectScript(),this.glyphs=[],this.positions=[],this.ligatureID=1,this.currentFeature=null}var b=eA.prototype;return b.findScript=function(M){if(null==this.table.scriptList)return null;Array.isArray(M)||(M=[M]);for(var P,x=B(M);!(P=x()).done;)for(var sA,tA=P.value,oA=B(this.table.scriptList);!(sA=oA()).done;){var iA=sA.value;if(iA.tag===tA)return iA}return null},b.selectScript=function(M,x,P){var oA,tA=!1;if(!this.script||M!==this.scriptTag){if((oA=this.findScript(M))||(oA=this.findScript(Kr)),!oA)return this.scriptTag;this.scriptTag=oA.tag,this.script=oA.script,this.language=null,this.languageTag=null,tA=!0}if((!P||P!==this.direction)&&(this.direction=P||wa(M)),x&&x.length<4&&(x+=" ".repeat(4-x.length)),!x||x!==this.languageTag){this.language=null;for(var iA,sA=B(this.script.langSysRecords);!(iA=sA()).done;){var SA=iA.value;if(SA.tag===x){this.language=SA.langSys,this.languageTag=SA.tag;break}}this.language||(this.language=this.script.defaultLangSys,this.languageTag=null),tA=!0}if(tA&&(this.features={},this.language))for(var ct,jA=B(this.language.featureIndexes);!(ct=jA()).done;){var qA=ct.value,gt=this.table.featureList[qA],pt=this.substituteFeatureForVariations(qA);this.features[gt.tag]=pt||gt.feature}return this.scriptTag},b.lookupsForFeatures=function(M,x){void 0===M&&(M=[]);for(var oA,P=[],tA=B(M);!(oA=tA()).done;){var sA=oA.value,iA=this.features[sA];if(iA)for(var jA,SA=B(iA.lookupListIndexes);!(jA=SA()).done;){var ct=jA.value;x&&-1!==x.indexOf(ct)||P.push({feature:sA,index:ct,lookup:this.table.lookupList.get(ct)})}}return P.sort(function(qA,gt){return qA.index-gt.index}),P},b.substituteFeatureForVariations=function(M){if(-1===this.variationsIndex)return null;for(var oA,tA=B(this.table.featureVariations.featureVariationRecords[this.variationsIndex].featureTableSubstitution.substitutions);!(oA=tA()).done;){var sA=oA.value;if(sA.featureIndex===M)return sA.alternateFeatureTable}return null},b.findVariationsIndex=function(M){var x=this.table.featureVariations;if(!x)return-1;for(var P=x.featureVariationRecords,tA=0;tA=0})},b.getClassID=function(M,x){switch(x.version){case 1:var P=M-x.startGlyph;if(P>=0&&P0&&this.codePoints.every(w.isMark),this.isBase=!this.isMark,this.isLigature=this.codePoints.length>1,this.markAttachmentType=0}}]),eA}(),va=function(eA){function b(){return eA.apply(this,arguments)||this}return h(b,eA),b.planFeatures=function(M){M.add(["ljmo","vjmo","tjmo"],!1)},b.assignFeatures=function(M,x){for(var P=0,tA=0;tAmr){var ct=Wr(K,tA,M.features);ct.features.tjmo=!0,jA.push(ct)}return eA.splice.apply(eA,[b,1].concat(jA)),b+jA.length-1}function e0(eA,b,K){var sA,iA,SA,jA,M=eA[b],P=Di(eA[b].codePoints[0]),tA=eA[b-1].codePoints[0],oA=Di(tA);if(4===oA&&3===P)sA=tA,jA=M;else{2===P?(iA=eA[b-1],SA=M):(iA=eA[b-2],SA=eA[b-1],jA=M);var ct=iA.codePoints[0],qA=SA.codePoints[0];(function(b){return 4352<=b&&b<=4370})(ct)&&function(b){return 4449<=b&&b<=4469}(qA)&&(sA=Pr+28*(21*(ct-4352)+(qA-4449)))}var gt=jA&&jA.codePoints[0]||mr;if(null!=sA&&(gt===mr||function(b){return 1<=b&&b<=4546}(gt))){var pt=sA+(gt-mr);if(K.hasGlyphForCodePoint(pt)){var yt=2===oA?3:2;return eA.splice(b-yt+1,yt,Wr(K,pt,M.features)),b-yt+1}}return iA&&(iA.features.ljmo=!0),SA&&(SA.features.vjmo=!0),jA&&(jA.features.tjmo=!0),4===oA?(Na(eA,b-1,K),b+1):b}function r0(eA,b,K){var M=eA[b];if(0!==K.glyphForCodePoint(eA[b].codePoints[0]).advanceWidth){var tA=function n0(eA){switch(Di(eA)){case 4:case 5:return 1;case 2:return 2;case 3:return 3}}(eA[b-1].codePoints[0]);return eA.splice(b,1),eA.splice(b-tA,0,M)}}function i0(eA,b,K){var M=eA[b],x=eA[b].codePoints[0];if(K.hasGlyphForCodePoint(9676)){var P=Wr(K,9676,M.features),tA=0===K.glyphForCodePoint(x).advanceWidth?b:b+1;eA.splice(tA,0,P),b++}return b}var yi={categories:["O","IND","S","GB","B","FM","CGJ","VMAbv","VMPst","VAbv","VPst","CMBlw","VPre","VBlw","H","VMBlw","CMAbv","MBlw","CS","R","SUB","MPst","MPre","FAbv","FPst","FBlw","null","SMAbv","SMBlw","VMPre","ZWNJ","ZWJ","WJ","M","VS","N","HN","MAbv"],decompositions:{2507:[2503,2494],2508:[2503,2519],2888:[2887,2902],2891:[2887,2878],2892:[2887,2903],3018:[3014,3006],3019:[3015,3006],3020:[3014,3031],3144:[3142,3158],3264:[3263,3285],3271:[3270,3285],3272:[3270,3286],3274:[3270,3266],3275:[3270,3266,3285],3402:[3398,3390],3403:[3399,3390],3404:[3398,3415],3546:[3545,3530],3548:[3545,3535],3549:[3545,3535,3530],3550:[3545,3551],3635:[3661,3634],3763:[3789,3762],3955:[3953,3954],3957:[3953,3956],3958:[4018,3968],3959:[4018,3953,3968],3960:[4019,3968],3961:[4019,3953,3968],3969:[3953,3968],6971:[6970,6965],6973:[6972,6965],6976:[6974,6965],6977:[6975,6965],6979:[6978,6965],69934:[69937,69927],69935:[69938,69927],70475:[70471,70462],70476:[70471,70487],70843:[70841,70842],70844:[70841,70832],70846:[70841,70845],71098:[71096,71087],71099:[71097,71087]},stateTable:[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,3,4,4,5,0,6,7,8,9,10,11,12,13,14,15,16,0,17,18,11,19,20,21,22,0,0,0,23,0,0,2,0,0,24,0,25],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,26,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,28,0,0,0,0,0,27,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,39,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,39,0,0,47],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,0,0,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,9,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,10,11,12,13,14,0,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,9,0,0,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,10,11,12,13,14,15,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,0,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,4,4,5,0,6,7,8,9,10,11,12,13,14,15,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,48,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,49,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,16,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,0,51,0],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,16,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,28,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,28,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,0,0,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,33,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,0,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,33,0,0,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,41,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,39,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,0,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,52,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,53,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,40,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,40,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,0,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,48,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,51,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,0,0],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,0,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,52,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,0,51,0]],accepting:[!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!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],tags:[[],["broken_cluster"],["independent_cluster"],["symbol_cluster"],["standard_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["numeral_cluster"],["broken_cluster"],["independent_cluster"],["symbol_cluster"],["symbol_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["virama_terminated_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["broken_cluster"],["broken_cluster"],["numeral_cluster"],["number_joiner_terminated_cluster"],["standard_cluster"],["standard_cluster"],["numeral_cluster"]]},pe_X=1,pe_N=8,pe_H=16,pe_ZWNJ=32,pe_ZWJ=64,pe_M=128,pe_RS=8192,pe_Repha=32768,pe_Ra=65536,pe_CM=1<<17,ee={Start:1,Ra_To_Become_Reph:2,Pre_M:4,Pre_C:8,Base_C:16,After_Main:32,Above_C:64,Before_Sub:128,Below_C:256,After_Sub:512,Before_Post:1024,Post_C:2048,After_Post:4096,Final_C:8192,SMVD:16384,End:32768},h0=2|pe_Ra|pe_CM|4|2048|4096,Sa=pe_ZWJ|pe_ZWNJ,Xr=pe_H|16384,Ua={Default:{hasOldSpec:!1,virama:0,basePos:"Last",rephPos:ee.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Devanagari:{hasOldSpec:!0,virama:2381,basePos:"Last",rephPos:ee.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Bengali:{hasOldSpec:!0,virama:2509,basePos:"Last",rephPos:ee.After_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gurmukhi:{hasOldSpec:!0,virama:2637,basePos:"Last",rephPos:ee.Before_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gujarati:{hasOldSpec:!0,virama:2765,basePos:"Last",rephPos:ee.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Oriya:{hasOldSpec:!0,virama:2893,basePos:"Last",rephPos:ee.After_Main,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Tamil:{hasOldSpec:!0,virama:3021,basePos:"Last",rephPos:ee.After_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Telugu:{hasOldSpec:!0,virama:3149,basePos:"Last",rephPos:ee.After_Post,rephMode:"Explicit",blwfMode:"Post_Only"},Kannada:{hasOldSpec:!0,virama:3277,basePos:"Last",rephPos:ee.After_Post,rephMode:"Implicit",blwfMode:"Post_Only"},Malayalam:{hasOldSpec:!0,virama:3405,basePos:"Last",rephPos:ee.After_Main,rephMode:"Log_Repha",blwfMode:"Pre_And_Post"},Khmer:{hasOldSpec:!1,virama:6098,basePos:"First",rephPos:ee.Ra_To_Become_Reph,rephMode:"Vis_Repha",blwfMode:"Pre_And_Post"}},E0={6078:[6081,6078],6079:[6081,6079],6080:[6081,6080],6084:[6081,6084],6085:[6081,6085]},w0=yi.decompositions,Pa=new Q(l("AAARAAAAAABg2AAAAWYPmfDtnXuMXFUdx+/uzs7M7szudAtECGJRIMRQbUAithQWkGAKiVhNpFVRRAmIQVCDkDYICGotIA9BTCz8IeUviv7BQ2PBtBIRLBBQIWAUsKg1BKxRAqIgfs/cc+aeOXPej3tnZX7JJ/dxzj3nd36/8753Z5fUsuxgsAwcAU4Gp4BPgM+Cd4P3RjieDs4GXwLrHJ5bDy4DG8A14LvgZrAZbAF3gns0z18ALgY/B78C94NHwBPgabAE/AX8DbwM5sF/QX0yD5vFcU/wVnAgWAoOAyvAceBE8CGwBpwGzgJfAF8BXwXfAFeC68EmsBlsAXeCreA+8CB4DDwF/gh2gd3gFfAGmKxn2QzYC+wHDgRLweFgJTgWrKrnuq/GcQ04jV6fheN54EJwEbgcXAG+Q8O/j+Mt4DZwB9haz8t9Hz3a8iCN/xiOvwRP0evH6fE68AzOH+Ke2eWYhw3PcGnuxvkr4A3QaGRZB7wFLAEHg2XgiEZ/fHKcp/ceBh/A+cngFPCpRm6vM3E8l8a5gN67GMdvgqsbeX2ap9yI601gM7gN3AG20mfuo8cdOP6GpvdUg9oKxz839GV90RDO2/glxN1B790NXsN1rZll7WYRdw+c70uvTwIHNAfTO0RyL5TDmnnbc3lmRQI9UnM0dD5eovfz4FpJ/BNpXNYWV+N6Lfg0hY97JK1vn+Pur9DoQur2F7m436bHDUK8C5t5/8vruo4+97WmXG+GLmzEiBF+PDwEOowYMWLEiBEjRoxYeBw5BDqIPEfXut9yWN+vVNxfrnnmWqR/PdgENoMt4E5wD9gOHgCPgifBs2BXM99b2o3jP8F/wMRUlrXAHNgHvH0q3895J46HguXgWHAGLctmLv9VuL96qnp7jxgxYsSbCbJvuRZ97/tqxT59VVRtixEjRsThBG7OSt5zzoPT0M+cBc4T5noXOs79TqLHeZrHUeCSqeJ96gacXy2kecNU8V6Hh7yXuQlhtw7B/PO1RTkr52Aj8JNFZjYg3gOKuC/g/v6Ls2wNuAY8urg//PcIb+6RZXuDNeCS6SzbBrJWlh0DLiFHco8ed9IjzzvaWfa9sZzTcf6D9mCcnbg3PlNcH4fzS8F2MDaLdQG4dLZIJxbbaZqv4ri8k58f3+mPs66T6/TTzqDeI0aMGDGiHP5dcR8ce/xxYcWi6vOfr725uRzcjnngXVOD61Hync+9uL+Nmyfej/NHpvL56A5Jeuz7uyfo+pqcPz2Vf1NH0ttJ03pekt8SmuY/EPYy9zzbN319ym/9TL6ZIt9MHCXRdxJtoAkWTRdz472n87D9cTwYLJvuz++I6WIePo/zE8AHp4v8WLyP0nufnM6/+zoDx8+DL08P6r9+urheRtO+jD6/cdrsx3mqu8w+xH4PScKIXa5D2jeCm8Et4DbwI/BjcC/4BXgI/Bb8DuwEu8Bu8Ap4A9RaRZptnO8J9gUHgEPAoWA5OLY1qMO90GEV7q+mYWtxPBWcIYnL4p+DsPNbxfVFOP86uAr8DNc34HgTDb8Vx9sVaRFI/LtagzYjnCqpb908EX87eBA8Bh4Hf2jle/9/wvGFVv787rrZZy8h7qtgDOuFOmiBuXYRvg/O9wMHgXeB97SLspk4sq0OI/q9v13+ek+sh3zYSRp9jrYorw9ll1/GRzR+KotYZSHf8laVP2lvpA/8OGdPMk59hqtXZ+L8nHbxvWwqO65ryu+fT3VZz+l4dET7L0R072ljsMyzTpaJqQxsbL8M9WajY789DO85XMp/Dcp3Qztdn+9qf/a97ZWK8PXc3G+TpC/nv8Mncy7ZvICF302P5O+aNiOtLdTXd+D4Q7DVwfcvWvx9zTEJ/o5iG3R8YAjGNFseha5PGuZKz7b7xxXbOrXMcu5eJSo//rXdH/73Enz6L1q/X+fyIu8wZGtNBmkjkzNZNgP2AvuBg2bysKUzduXn/66JtNeN4PCZvO0/x7Ujdn4VnYOvRJzjZ/I+9sQZeftX2Tc1RPcPz/Tf4/si0g+t5Mq+kfZjZL34Mc5ul3PPnE7TOxvHK2qDaZ+L++db2HyYqMo/qVnb/P8uH8/rmnFxR0k6DCu/rjj/RxT7KGUSWgbd+LMQuEgYB1zsk2qtvJD8v5AhdfdttbEunSxbcJD9Zf7chqp1Hlbe7FK1/aPVTfp7FgtC1yGGiSncFK/DhZvi+epZta0WWjlsfDZMyPRdSPrryqSSKnXx1bkq/Ye9TlRpk7Lrjq1UrfdC9X+MtKqwP6+3a/4pJFUZF0pZZpv91MYjMBaRRXbxpho5zQmUY3F+Pt4o7rvQrBXPdm00TaE24uMadaM2meLSI7iu071t3er3b6ZLi8JEde3qw+6zGv+ycF5kaRBh/m1T/7Yl/mMyTuMwadP4xL9ifjJpNwbvDZRJ8G8vnqV/Wf12aa/kyOdl69+BspTsXzGueE6E+JfZnvmXIfNPW+FfXkjb1YmqPNpnLP3b61fHCj/X5tzGANf2y3yqvC7Jv7btV4TVbdammI9l/g0dS5lNxLrk2j9r8xjjxhBQnygg0lgg/bOrfyct+udJi/Yrk0lFnxC7f+5kRbsNmcexfrubt0X/rGvLqrGSnYv3ZPHEe8r7lvMvUfi2LOu/2dg8LrRtQt2yfcv8r5IU70VkIs6nbebUXf0M/o7Znl39Sdoz+X1oEb5N8ffF67qhPfPP6eoUbxf+GRf/6sRnvaSdmw+Bf1VxmbD+2sa//DU7t/Gv2PfKpKdrBP92Ojk+IvqX16ks/2qxbL8EZnc2HqsgYuqPuzZV+I3RbujbDm+T0PmWCVO/5jqftp1zy+wSA6s0JWtp2z5e1oZV+yMsjB3ZXolsv0Ulrv01v3/iKrF94Qtbt9siCnmeb6fjjf59KnLk1xaEbvtvFnFirGvEOqmycQrbm/IMsXd3P28uh4nM3swXRER717OiX8kc7K2qqyn2p3maFGU/aruP5VCv+PraoTYU8yUmmbDwcYo6pusnM486xdoga4dkPCb1pK7Sfc6ebvkd4qeAtQcd/N63bB3lU3dlUnUf38VyvqCqK7JxlNSd7lydrDlm+/uqHiRvl30Nrp/n9zpkZRjoJ3V1diyP05rIYXHYs+w+D5+WMS8b5gZtKcuX0KT5d/WwtB97VnyvY6rjMukI56HI0rFJPwt8PjT/1OXzSbcMeEmdh294qvKK4rNu7j4n3LNZg8TKXwafv025U+XvKjHsT8Q7/7LGaJt9lAh7Asz3uv0XEX6t0duDoWN/93wmh92XpUHmCKb9GALbG+rZP3AfNbQPKKv/jpF/bP0JXfuW1QYk7dhljcyvk5mw+933Hpo1g26PQ2ZP6zVmTJt47P25jncD9vPwGS+q9QS/V6RaY8j8K8LmvUr9HfYCpH5OWL9lZY+Sv6pesHCJHbtrf9k6etZvf0G1L0ja4cAe1UT/s3zdCe3/Q5/n372wMc97/E1Qh0Tbmfwh3m/V9On72tNnrCF1sJkVe1EyXMdBa7+lHMsk44zMF6St9e2djNnbm8ybpHkq+gbbemMaH0UZmD8obKGrk7r+nt+3bE7o83YZp/vqOKdv6PzJNN6mTJsI/51XR7i2ZrGA5B6zFwnjzxmqPjaGfW3tZNrz1eljq29mOOqeCfF/irRt87PNw0uXSVAvrmOMNT569MptsYaV0sic/wbY13e8hPrb9K2ySUJ0j6G/Lu0U4qpTrR23jMp6m5hU+YTaWCeh9aIsm/rqUHV4bFv42kgnZdfH1PUj1D7DVH9d8khRN1zFRl/+/TW//qxL1uH83+mk3H+SvRtS2TDU90nX2TpM6/1xzZpZtoYdK763dqlz0f6uNeFehcs+H/nbGP77MpX06n/ofpzP+tVmTUvRtVuX/cjS67OE5kRBrxyJ+w/dPo7r+9cO1160e3gqu0S2uW7PjN/L6ns/UfMf10Lai87frJ+3KndAfc8yTf1M3T4s6qm4/yh7/2GSkG8UMw//DvRLgbYZSEOxr0LCWvRdjfh9XGzfqN4NivfZd7rsmFp08zmbssrKJEuTfVMZopdpbuwSrhNv3/N2s+0PDG3KNB6RMrFvJHv6B85HXObAoWsd3zm3i+6uZYytv+5+pohbpo6+tpZJFfmGlrcMf4c8b1Pe2OUIsaXJrinCTfaxtZOt+NYnU3hIfQlN20Z/1+dt7JaqLsbIzycNWZmrlNg2Dc2/LJ1T+T6WrrYSml4Ku7ik7yIx2opJD51vU9UfVRmrqL8u/olZj0PyCLV5irxcdKoi/6rKb8qTrHsnhW9jyZH/nSpeWDzxd9769uQ016lgUuf2pAfKPhu2FpfZL2Yb9snLNl/fNIepXaUsj4vNXCXUZ75px8ojNP8UPvAta2g6fb+F1ckZuneshv1vGXXDeyRRrN/bBPS1Jul+l+7zW86R7Wv63WXyDpt/RxraRjvC+TC3O61/Sqj/prag8x372yQivn+XwudrI2X2E2KdtJEov52e0L+uv4FO3p/rvssgsL8F4d/z9PzlWS94m8fqS3361Fi+6qaVYHwi9Yz4iH2fobIj+45cpz/TUaarr/4+z+vaWtVtyAX2d1LG8W9C3f+F1mnf36/k4w3YPrLv+XBVXCJs3cr+n4MKJuLv/fN9GhNdXVP5pJMN9vFi3rpv3/r8Ywg3SYp66zNOsO8QGcxPpnmRS/1mvmJjju3v7absI2xspQrvs1dNbjOj/wP7h1RlZyKGy8occ408UL8En4v6xfC/K3z52XzJd62T8vuZGGsxo/6O46ntmNqqFb/jps2/hHV4rPKH0svT4pstU7t2tZ9u/ZdqbJL1MwP6O86Fyt4jYaIrGz9mjEt8lFL4PtVE6votG2P6fpdf/GZRse7s3bf4BtSl/DIbKMctx++Z+8o6K6z9FPOwKsRmXiaNl7C+6NYRpjlbqG1j72f49qsuY4brd/amb4ZVc8TQ+sSH985LrEe8iPWJnfPrJRbWbb+dwn4x6o+r/aS2S7w3qWt//LnYz2ntE0vH1uDcyKatx1rH+EiMPEN1SZG/iz6+9o01Rob6O7Q+xLZ1jHobK61U+pWVvo2EpuWqzzD6Poa+pvhli0wn8Zq/72Mzm2d90o5VN1x9ZKuzbTgvqWwUIin8FSpl1CXXvFRxU0iozVPYJDRtF3uFphn6XAyJUUdD7SjTJ8v6n9fVbVObkKWp001lc9VRlqdOf5v0ZM+bymdbfp1NfG0bq27Y5JMyfxeJkU6o/inKH8O2Zfgidb6h/g3VJ7QcVbWL0Pxt6rlrPqa4KfQ25a2zl4/E8GdM/4fK/wA=","base64")),C0=new d({stateTable:[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,14,15,16,17],[0,0,0,18,19,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,28,29,30,31,32,33,0,34,0,0,35,36,0,0,37,0],[0,0,0,38,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,39,0,0,0,40,41,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,12,43,0,0,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,0,43,0,0,0,0],[0,0,0,45,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,50,0,0,51,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,52,0,0,0,0,0,0,0,0],[0,0,0,53,54,55,56,57,58,0,59,0,0,60,61,0,0,62,0],[0,0,0,4,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,63,64,0,0,40,41,0,9,0,10,0,0,0,42,0,63,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,0,2,16,0],[0,0,0,18,65,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,0,0],[0,0,0,69,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,73,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,75,0,0,0,76,77,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,25,79,0,0,0,0],[0,0,0,18,19,20,74,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,81,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,86,0,0,87,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,88,0,0,0,0,0,0,0,0],[0,0,0,18,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,89,90,0,0,76,77,0,23,0,24,0,0,0,78,0,89,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,0,0],[0,0,0,94,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,96,0,0,0,97,98,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,35,100,0,0,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,102,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,107,0,0,108,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,109,0,0,0,0,0,0,0,0],[0,0,0,28,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,110,111,0,0,97,98,0,33,0,34,0,0,0,99,0,110,0,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,0,0],[0,0,0,0,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,0,0,115,116,117,118,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,42,0,0,0,0],[0,39,0,122,0,123,123,8,9,0,10,0,0,0,42,0,39,0,0],[0,124,64,0,0,0,0,0,0,0,0,0,0,0,0,0,124,0,0],[0,39,0,0,0,121,125,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,126,126,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,47,47,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,128,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,129,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,50,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,134,0,0,0,0,0,0,0,0],[0,0,0,135,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,136,0,0,0,137,138,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,60,140,0,0,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,0,140,0,0,0,0],[0,0,0,142,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,147,0,0,148,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,149,0,0,0,0,0,0,0,0],[0,0,0,53,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,150,151,0,0,137,138,0,58,0,59,0,0,0,139,0,150,0,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,0,0],[0,0,0,155,116,156,157,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,75,3,4,5,159,160,8,161,0,162,0,11,12,163,0,75,16,0],[0,0,0,0,0,40,164,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,0,165,0,0,0,0],[0,124,64,0,0,40,164,0,9,0,10,0,0,0,42,0,124,0,0],[0,0,0,0,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,71,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,167,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,168,0,0,0,0,0,0,0,0],[0,0,0,0,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,0,79,0,0,0,0],[0,0,0,169,170,171,172,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,75,0,176,0,177,177,22,23,0,24,0,0,0,78,0,75,0,0],[0,178,90,0,0,0,0,0,0,0,0,0,0,0,0,0,178,0,0],[0,75,0,0,0,175,179,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,180,180,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,83,83,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,182,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,183,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,86,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,188,0,0,0,0,0,0,0,0],[0,0,0,189,170,190,191,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,76,193,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,0,194,0,0,0,0],[0,178,90,0,0,76,193,0,23,0,24,0,0,0,78,0,178,0,0],[0,0,0,0,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,195,196,197,198,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,96,0,202,0,203,203,32,33,0,34,0,0,0,99,0,96,0,0],[0,204,111,0,0,0,0,0,0,0,0,0,0,0,0,0,204,0,0],[0,96,0,0,0,201,205,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,206,206,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,104,104,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,208,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,209,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,107,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,214,0,0,0,0,0,0,0,0],[0,0,0,215,196,216,217,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,97,219,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,0,220,0,0,0,0],[0,204,111,0,0,97,219,0,33,0,34,0,0,0,99,0,204,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,223,0,0,0,40,224,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,119,225,0,0,0,0],[0,0,0,115,116,117,222,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,115,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,226,64,0,0,40,224,0,9,0,10,0,0,0,42,0,226,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,39,0,0,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,44,44,8,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,227,0,228,229,0,9,0,10,0,0,230,0,0,0,0,0],[0,39,0,122,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,231,231,49,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,232,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,131,131,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,234,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,235,236,237,238,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,0,0,240,241,242,243,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,136,0,247,0,248,248,57,58,0,59,0,0,0,139,0,136,0,0],[0,249,151,0,0,0,0,0,0,0,0,0,0,0,0,0,249,0,0],[0,136,0,0,0,246,250,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,251,251,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,144,144,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,253,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,254,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,147,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,259,0,0,0,0,0,0,0,0],[0,0,0,260,241,261,262,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,137,264,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,0,265,0,0,0,0],[0,249,151,0,0,137,264,0,58,0,59,0,0,0,139,0,249,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,158,225,0,0,0,0],[0,0,0,155,116,156,222,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,155,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,43,266,266,8,161,0,24,0,0,12,267,0,0,0,0],[0,75,0,176,43,268,268,269,161,0,24,0,0,0,267,0,75,0,0],[0,0,0,0,0,270,0,0,271,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,272,0,0,0,0,0,0,0,0],[0,273,274,0,0,40,41,0,9,0,10,0,0,0,42,0,273,0,0],[0,0,0,40,0,123,123,8,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,121,275,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,276,0,0,0,0,0,0,0,0],[0,0,0,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,279,0,0,0,76,280,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,173,281,0,0,0,0],[0,0,0,169,170,171,278,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,169,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,282,90,0,0,76,280,0,23,0,24,0,0,0,78,0,282,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,75,0,0,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,80,80,22,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,283,0,284,285,0,23,0,24,0,0,286,0,0,0,0,0],[0,75,0,176,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,0,0,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,287,287,85,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,288,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,185,185,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,290,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,291,292,293,294,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,192,281,0,0,0,0],[0,0,0,189,170,190,278,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,189,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,76,0,177,177,22,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,175,296,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,299,0,0,0,97,300,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,199,301,0,0,0,0],[0,0,0,195,196,197,298,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,195,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,302,111,0,0,97,300,0,33,0,34,0,0,0,99,0,302,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,96,0,0,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,101,101,32,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,303,0,304,305,0,33,0,34,0,0,306,0,0,0,0,0],[0,96,0,202,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,307,307,106,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,308,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,211,211,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,310,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,311,312,313,314,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,218,301,0,0,0,0],[0,0,0,215,196,216,298,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,215,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,97,0,203,203,32,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,201,316,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,0,225,0,0,0,0],[0,0,0,317,318,319,320,8,9,0,10,0,0,321,322,0,0,16,0],[0,223,0,323,0,123,123,8,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,0,0,121,324,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,325,318,326,327,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,64,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,230,0,0,0,0,0],[0,0,0,227,0,228,121,0,9,0,10,0,0,230,0,0,0,0,0],[0,0,0,227,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,49,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,46,0,0],[0,0,0,0,0,329,329,133,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,330,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,236,237,238,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,237,237,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,332,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,333,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,337,0,0,0,137,338,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,244,339,0,0,0,0],[0,0,0,240,241,242,336,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,240,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,340,151,0,0,137,338,0,58,0,59,0,0,0,139,0,340,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,136,0,0,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,141,141,57,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,341,0,342,343,0,58,0,59,0,0,344,0,0,0,0,0],[0,136,0,247,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,0,0,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,345,345,146,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,346,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,256,256,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,348,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,349,350,351,352,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,263,339,0,0,0,0],[0,0,0,260,241,261,336,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,260,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,137,0,248,248,57,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,246,354,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,126,126,8,23,0,0,0,0,0,0,0,0,0,0],[0,355,90,0,0,121,125,0,9,0,10,0,0,0,42,0,355,0,0],[0,0,0,0,0,356,356,269,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,357,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,270,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,363,0,0,0,0,0,0,0,0],[0,0,0,364,116,365,366,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,40,0,121,121,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,0,281,0,0,0,0],[0,0,0,369,370,371,372,22,23,0,24,0,0,373,374,0,0,27,0],[0,279,0,375,0,177,177,22,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,0,0,175,376,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,377,370,378,379,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,90,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,286,0,0,0,0,0],[0,0,0,283,0,284,175,0,23,0,24,0,0,286,0,0,0,0,0],[0,0,0,283,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,85,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,82,0,0],[0,0,0,0,0,381,381,187,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,382,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,292,293,294,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,293,293,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,384,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,385,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,76,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,0,301,0,0,0,0],[0,0,0,387,388,389,390,32,33,0,34,0,0,391,392,0,0,37,0],[0,299,0,393,0,203,203,32,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,0,0,201,394,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,395,388,396,397,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,111,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,306,0,0,0,0,0],[0,0,0,303,0,304,201,0,33,0,34,0,0,306,0,0,0,0,0],[0,0,0,303,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,106,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,0,0],[0,0,0,0,0,399,399,213,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,400,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,312,313,314,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,313,313,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,402,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,403,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,97,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,407,0,0,0,40,408,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,321,409,0,0,0,0],[0,0,0,317,318,319,406,8,9,0,10,0,0,321,322,0,0,16,0],[0,0,0,317,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,410,64,0,0,40,408,0,9,0,10,0,0,0,42,0,410,0,0],[0,223,0,0,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,323,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,328,409,0,0,0,0],[0,0,0,325,318,326,406,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,325,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,0,0,0,133,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,130,0,0],[0,0,0,0,0,411,411,239,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,412,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,413,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,0,339,0,0,0,0],[0,0,0,414,415,416,417,57,58,0,59,0,0,418,419,0,0,62,0],[0,337,0,420,0,248,248,57,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,0,0,246,421,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,422,415,423,424,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,151,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,344,0,0,0,0,0],[0,0,0,341,0,342,246,0,58,0,59,0,0,344,0,0,0,0,0],[0,0,0,341,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,146,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,0,0],[0,0,0,0,0,426,426,258,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,427,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,350,351,352,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,351,351,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,429,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,430,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,137,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,432,116,433,434,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,0,0,180,180,269,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,359,359,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,437,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,438,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,443,274,0,0,0,0,0,0,0,0,0,0,0,0,0,443,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,367,225,0,0,0,0],[0,0,0,364,116,365,445,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,364,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,448,0,0,0,76,449,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,373,450,0,0,0,0],[0,0,0,369,370,371,447,22,23,0,24,0,0,373,374,0,0,27,0],[0,0,0,369,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,451,90,0,0,76,449,0,23,0,24,0,0,0,78,0,451,0,0],[0,279,0,0,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,375,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,380,450,0,0,0,0],[0,0,0,377,370,378,447,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,377,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,0,0,0,187,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,184,0,0],[0,0,0,0,0,452,452,295,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,453,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,454,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,457,0,0,0,97,458,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,391,459,0,0,0,0],[0,0,0,387,388,389,456,32,33,0,34,0,0,391,392,0,0,37,0],[0,0,0,387,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,460,111,0,0,97,458,0,33,0,34,0,0,0,99,0,460,0,0],[0,299,0,0,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,393,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,398,459,0,0,0,0],[0,0,0,395,388,396,456,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,395,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,0,0,0,213,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,210,0,0],[0,0,0,0,0,461,461,315,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,462,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,463,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,0,409,0,0,0,0],[0,0,0,464,465,466,467,8,9,0,10,0,0,468,469,0,0,16,0],[0,407,0,470,0,123,123,8,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,0,0,121,471,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,472,465,473,474,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,0,0,0,0,239,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,236,0,0],[0,0,0,0,0,0,476,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,479,0,0,0,137,480,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,418,481,0,0,0,0],[0,0,0,414,415,416,478,57,58,0,59,0,0,418,419,0,0,62,0],[0,0,0,414,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,482,151,0,0,137,480,0,58,0,59,0,0,0,139,0,482,0,0],[0,337,0,0,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,420,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,425,481,0,0,0,0],[0,0,0,422,415,423,478,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,422,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,0,0,0,258,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,0,0],[0,0,0,0,0,483,483,353,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,484,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,485,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,435,225,0,0,0,0],[0,0,0,432,116,433,445,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,432,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,486,486,361,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,487,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,440,440,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,489,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,490,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,495,0,496,497,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,0,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,0,225,0,0,0,0],[0,0,0,0,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,0,450,0,0,0,0],[0,0,0,499,500,501,502,22,23,0,24,0,0,503,504,0,0,27,0],[0,448,0,505,0,177,177,22,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,0,0,175,506,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,507,500,508,509,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,0,0,0,0,295,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,292,0,0],[0,0,0,0,0,0,511,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,0,459,0,0,0,0],[0,0,0,512,513,514,515,32,33,0,34,0,0,516,517,0,0,37,0],[0,457,0,518,0,203,203,32,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,0,0,201,519,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,520,513,521,522,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,0,0,0,0,315,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,312,0,0],[0,0,0,0,0,0,524,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,527,0,0,0,40,528,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,468,529,0,0,0,0],[0,0,0,464,465,466,526,8,9,0,10,0,0,468,469,0,0,16,0],[0,0,0,464,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,530,64,0,0,40,528,0,9,0,10,0,0,0,42,0,530,0,0],[0,407,0,0,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,470,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,475,529,0,0,0,0],[0,0,0,472,465,473,526,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,472,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,40,0,0],[0,0,0,0,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,0,481,0,0,0,0],[0,0,0,531,532,533,534,57,58,0,59,0,0,535,536,0,0,62,0],[0,479,0,537,0,248,248,57,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,0,0,246,538,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,539,532,540,541,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,0,0,0,0,353,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,350,0,0],[0,0,0,0,0,0,543,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,361,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,358,0,0],[0,0,0,0,0,544,544,442,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,545,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,492,492,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,547,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,548,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,274,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,498,0,0,0,0,0],[0,0,0,495,0,496,368,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,495,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,553,0,0,0,76,554,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,503,555,0,0,0,0],[0,0,0,499,500,501,552,22,23,0,24,0,0,503,504,0,0,27,0],[0,0,0,499,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,556,90,0,0,76,554,0,23,0,24,0,0,0,78,0,556,0,0],[0,448,0,0,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,505,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,510,555,0,0,0,0],[0,0,0,507,500,508,552,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,507,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,76,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,559,0,0,0,97,560,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,516,561,0,0,0,0],[0,0,0,512,513,514,558,32,33,0,34,0,0,516,517,0,0,37,0],[0,0,0,512,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,562,111,0,0,97,560,0,33,0,34,0,0,0,99,0,562,0,0],[0,457,0,0,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,518,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,523,561,0,0,0,0],[0,0,0,520,513,521,558,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,520,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0],[0,0,0,0,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,0,529,0,0,0,0],[0,0,0,563,66,564,565,8,9,0,10,0,0,566,68,0,0,16,0],[0,527,0,567,0,123,123,8,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,0,0,121,568,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,569,66,570,571,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,575,0,0,0,137,576,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,535,577,0,0,0,0],[0,0,0,531,532,533,574,57,58,0,59,0,0,535,536,0,0,62,0],[0,0,0,531,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,578,151,0,0,137,576,0,58,0,59,0,0,0,139,0,578,0,0],[0,479,0,0,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,537,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,542,577,0,0,0,0],[0,0,0,539,532,540,574,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,539,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,137,0,0],[0,0,0,0,0,0,0,442,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,439,0,0],[0,0,0,0,0,579,579,494,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,580,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,581,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,0,555,0,0,0,0],[0,0,0,582,91,583,584,22,23,0,24,0,0,585,93,0,0,27,0],[0,553,0,586,0,177,177,22,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,0,0,175,587,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,588,91,589,590,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,0,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,0,561,0,0,0,0],[0,0,0,592,112,593,594,32,33,0,34,0,0,595,114,0,0,37,0],[0,559,0,596,0,203,203,32,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,0,0,201,597,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,598,112,599,600,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,566,165,0,0,0,0],[0,0,0,563,66,564,67,8,9,0,10,0,0,566,68,0,0,16,0],[0,0,0,563,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,527,0,0,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,567,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,572,165,0,0,0,0],[0,0,0,569,66,570,67,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,569,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,0,577,0,0,0,0],[0,0,0,603,152,604,605,57,58,0,59,0,0,606,154,0,0,62,0],[0,575,0,607,0,248,248,57,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,0,0,246,608,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,609,152,610,611,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,0,0,0,0,494,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,491,0,0],[0,0,0,0,0,0,613,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,585,194,0,0,0,0],[0,0,0,582,91,583,92,22,23,0,24,0,0,585,93,0,0,27,0],[0,0,0,582,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,553,0,0,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,586,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,591,194,0,0,0,0],[0,0,0,588,91,589,92,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,588,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,595,220,0,0,0,0],[0,0,0,592,112,593,113,32,33,0,34,0,0,595,114,0,0,37,0],[0,0,0,592,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,559,0,0,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,596,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,601,220,0,0,0,0],[0,0,0,598,112,599,113,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,598,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,606,265,0,0,0,0],[0,0,0,603,152,604,153,57,58,0,59,0,0,606,154,0,0,62,0],[0,0,0,603,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,575,0,0,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,607,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,612,265,0,0,0,0],[0,0,0,609,152,610,153,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,609,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,549,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0]],accepting:[!1,!0,!0,!0,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!1,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!1,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!1,!1,!0,!1,!0,!0,!1,!0,!0,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!1,!0,!1,!0,!0,!0,!0,!1,!1,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!1,!0,!0,!0,!0,!1,!1,!1,!0,!1,!0,!0,!0,!0,!1,!1,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!1,!0,!0,!0,!0,!1,!1,!1,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!1,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!1,!0,!0,!1,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!0,!0,!0,!1,!1,!1,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!0],tags:[[],["broken_cluster"],["consonant_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["consonant_syllable"],["broken_cluster"],["symbol_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["broken_cluster"],["broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],[],["broken_cluster"],["symbol_cluster"],[],["symbol_cluster"],["symbol_cluster"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["symbol_cluster"],["symbol_cluster"],["symbol_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],["symbol_cluster"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],[],["broken_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],[],["consonant_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],[],["vowel_syllable"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],[],[],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],["standalone_cluster"],[],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],[],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],[],[],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],[],[],[],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],["consonant_syllable"],["vowel_syllable"],["standalone_cluster"]]}),En=function(eA){function b(){return eA.apply(this,arguments)||this}return h(b,eA),b.planFeatures=function(M){M.addStage(Q0),M.addStage(["locl","ccmp"]),M.addStage(M0),M.addStage("nukt"),M.addStage("akhn"),M.addStage("rphf",!1),M.addStage("rkrf"),M.addStage("pref",!1),M.addStage("blwf",!1),M.addStage("abvf",!1),M.addStage("half",!1),M.addStage("pstf",!1),M.addStage("vatu"),M.addStage("cjct"),M.addStage("cfar",!1),M.addStage(p0),M.addStage({local:["init"],global:["pres","abvs","blws","psts","haln","dist","abvm","blwm","calt","clig"]}),M.unicodeScript=function is(eA){return Gi[eA]}(M.script),M.indicConfig=Ua[M.unicodeScript]||Ua.Default,M.isOldSpec=M.indicConfig.hasOldSpec&&"2"!==M.script[M.script.length-1]},b.assignFeatures=function(M,x){for(var P=function(sA){var iA=x[sA].codePoints[0],SA=E0[iA]||w0[iA];if(SA){var jA=SA.map(function(ct){var qA=M.font.glyphForCodePoint(ct);return new sr(M.font,qA.id,[ct],x[sA].features)});x.splice.apply(x,[sA,1].concat(jA))}},tA=x.length-1;tA>=0;tA--)P(tA)},b}(hr);function xi(eA){return Pa.get(eA.codePoints[0])>>8}function Ra(eA){return 1<<(255&Pa.get(eA.codePoints[0]))}N(En,"zeroMarkWidths","NONE");var Fi=function(b,K,M,x){this.category=b,this.position=K,this.syllableType=M,this.syllable=x};function Q0(eA,b){for(var P,K=0,M=0,x=B(C0.match(b.map(xi)));!(P=x()).done;){var tA=P.value,oA=tA[0],sA=tA[1],iA=tA[2];if(oA>M){++K;for(var SA=M;SAGt);break;case"First":for(var we=(yt=iA)+1;weVe&&!(Dr(b[Oe])||cn&&b[Oe].shaperInfo.category===pe_H);Oe--);if(b[Oe].shaperInfo.category!==pe_H&&Oe>Ve){var fe=b[Ve];b.splice.apply(b,[Ve,0].concat(b.splice(Ve+1,Oe-Ve))),b[Oe]=fe}break}for(var qe=ee.Start,Ue=iA;UeiA;$e--)if(b[$e-1].shaperInfo.position!==ee.Pre_M){Fe.position=b[$e-1].shaperInfo.position;break}}else Fe.position!==ee.SMVD&&(qe=Fe.position)}for(var Rn=yt,gn=yt+1;gniA&&!Dr(b[zn]))}}}}function p0(eA,b,K){for(var M=K.indicConfig,x=eA._layoutEngine.engine.GSUBProcessor.features,P=0,tA=Yi(b,0);P=ee.Base_C){if(oA&&sA+1ee.Base_C&&sA--;break}if(sA===tA&&PP&&!(b[jA].shaperInfo.category&(pe_M|Xr));)jA--;cr(b[jA])&&b[jA].shaperInfo.position!==ee.Pre_M?jA+1P;ct--)if(b[ct-1].shaperInfo.position===ee.Pre_M){var qA=ct-1;qAP&&b[pt].shaperInfo.position===ee.SMVD;)pt--;if(cr(b[pt]))for(var $t=sA+1;$tP&&!(b[ge-1].shaperInfo.category&(pe_M|Xr));)ge--;if(ge>P&&b[ge-1].shaperInfo.category===pe_M)for(var Ee=ie,we=sA+1;weP&&cr(b[ge-1])&&ge=eA.length)return b;for(var K=eA[b].shaperInfo.syllable;++b=0;tA--)P(tA)},b}(hr);function La(eA){return m0.get(eA.codePoints[0])}N(de,"zeroMarkWidths","BEFORE_GPOS");var v0=function(b,K,M){this.category=b,this.syllableType=K,this.syllable=M};function y0(eA,b){for(var x,K=0,M=B(D0.match(b.map(La)));!(x=M()).done;){var P=x.value,tA=P[0],oA=P[1],sA=P[2];++K;for(var iA=tA;iA<=oA;iA++)b[iA].shaperInfo=new v0(I0[La(b[iA])],sA[0],K);for(var SA="R"===b[tA].shaperInfo.category?1:Math.min(3,oA-tA),jA=tA;jA1)for(P=M+1;P=eA.length)return b;for(var K=eA[b].shaperInfo.syllable;++b=0;Gn--)this.glyphs.splice(ge[Gn],1);return this.glyphs[this.glyphIterator.index]=se,!0}}return!1;case 5:return this.applyContext(P);case 6:return this.applyChainingContext(P);case 7:return this.applyLookup(P.lookupType,P.extension);default:throw new Error("GSUB lookupType ".concat(x," is not supported"))}},b}(Qi),U0=function(eA){function b(){return eA.apply(this,arguments)||this}h(b,eA);var K=b.prototype;return K.applyPositionValue=function(x,P){var tA=this.positions[this.glyphIterator.peekIndex(x)];null!=P.xAdvance&&(tA.xAdvance+=P.xAdvance),null!=P.yAdvance&&(tA.yAdvance+=P.yAdvance),null!=P.xPlacement&&(tA.xOffset+=P.xPlacement),null!=P.yPlacement&&(tA.yOffset+=P.yPlacement);var oA=this.font._variationProcessor,sA=this.font.GDEF&&this.font.GDEF.itemVariationStore;oA&&sA&&(P.xPlaDevice&&(tA.xOffset+=oA.getDelta(sA,P.xPlaDevice.a,P.xPlaDevice.b)),P.yPlaDevice&&(tA.yOffset+=oA.getDelta(sA,P.yPlaDevice.a,P.yPlaDevice.b)),P.xAdvDevice&&(tA.xAdvance+=oA.getDelta(sA,P.xAdvDevice.a,P.xAdvDevice.b)),P.yAdvDevice&&(tA.yAdvance+=oA.getDelta(sA,P.yAdvDevice.a,P.yAdvDevice.b)))},K.applyLookup=function(x,P){switch(x){case 1:var tA=this.coverageIndex(P.coverage);if(-1===tA)return!1;switch(P.version){case 1:this.applyPositionValue(0,P.value);break;case 2:this.applyPositionValue(0,P.values.get(tA))}return!0;case 2:var oA=this.glyphIterator.peek();if(!oA)return!1;var sA=this.coverageIndex(P.coverage);if(-1===sA)return!1;switch(P.version){case 1:for(var jA,SA=B(P.pairSets.get(sA));!(jA=SA()).done;){var ct=jA.value;if(ct.secondGlyph===oA.id)return this.applyPositionValue(0,ct.value1),this.applyPositionValue(1,ct.value2),!0}return!1;case 2:var qA=this.getClassID(this.glyphIterator.cur.id,P.classDef1),gt=this.getClassID(oA.id,P.classDef2);if(-1===qA||-1===gt)return!1;var pt=P.classRecords.get(qA).get(gt);return this.applyPositionValue(0,pt.value1),this.applyPositionValue(1,pt.value2),!0}case 3:var yt=this.glyphIterator.peekIndex(),Gt=this.glyphs[yt];if(!Gt)return!1;var $t=P.entryExitRecords[this.coverageIndex(P.coverage)];if(!$t||!$t.exitAnchor)return!1;var qt=P.entryExitRecords[this.coverageIndex(P.coverage,Gt.id)];if(!qt||!qt.entryAnchor)return!1;var ie=this.getAnchor(qt.entryAnchor),ge=this.getAnchor($t.exitAnchor),Ee=this.positions[this.glyphIterator.index],we=this.positions[yt];switch(this.direction){case"ltr":Ee.xAdvance=ge.x+Ee.xOffset;var He=ie.x+we.xOffset;we.xAdvance-=He,we.xOffset-=He;break;case"rtl":Ee.xAdvance-=He=ge.x+Ee.xOffset,Ee.xOffset-=He,we.xAdvance=ie.x+we.xOffset}return this.glyphIterator.flags.rightToLeft?(this.glyphIterator.cur.cursiveAttachment=yt,Ee.yOffset=ie.y-ge.y):(Gt.cursiveAttachment=this.glyphIterator.index,Ee.yOffset=ge.y-ie.y),!0;case 4:var sn=this.coverageIndex(P.markCoverage);if(-1===sn)return!1;for(var Je=this.glyphIterator.index;--Je>=0&&(this.glyphs[Je].isMark||this.glyphs[Je].ligatureComponent>0););if(Je<0)return!1;var se=this.coverageIndex(P.baseCoverage,this.glyphs[Je].id);if(-1===se)return!1;var cn=P.markArray[sn];return this.applyAnchor(cn,P.baseArray[se][cn.class],Je),!0;case 5:var Oe=this.coverageIndex(P.markCoverage);if(-1===Oe)return!1;for(var fe=this.glyphIterator.index;--fe>=0&&this.glyphs[fe].isMark;);if(fe<0)return!1;var qe=this.coverageIndex(P.ligatureCoverage,this.glyphs[fe].id);if(-1===qe)return!1;var Ue=P.ligatureArray[qe],Fe=this.glyphIterator.cur,$e=this.glyphs[fe],Rn=$e.ligatureID&&$e.ligatureID===Fe.ligatureID&&Fe.ligatureComponent>0?Math.min(Fe.ligatureComponent,$e.codePoints.length)-1:$e.codePoints.length-1,gn=P.markArray[Oe];return this.applyAnchor(gn,Ue[Rn][gn.class],fe),!0;case 6:var Gn=this.coverageIndex(P.mark1Coverage);if(-1===Gn)return!1;var Jn=this.glyphIterator.peekIndex(-1),vn=this.glyphs[Jn];if(!vn||!vn.isMark)return!1;var Mn=this.glyphIterator.cur,On=!1;if(Mn.ligatureID===vn.ligatureID?Mn.ligatureID?Mn.ligatureComponent===vn.ligatureComponent&&(On=!0):On=!0:(Mn.ligatureID&&!Mn.ligatureComponent||vn.ligatureID&&!vn.ligatureComponent)&&(On=!0),!On)return!1;var kn=this.coverageIndex(P.mark2Coverage,vn.id);if(-1===kn)return!1;var me=P.mark1Array[Gn];return this.applyAnchor(me,P.mark2Array[kn][me.class],Jn),!0;case 7:return this.applyContext(P);case 8:return this.applyChainingContext(P);case 9:return this.applyLookup(P.lookupType,P.extension);default:throw new Error("Unsupported GPOS table: ".concat(x))}},K.applyAnchor=function(x,P,tA){var oA=this.getAnchor(P),sA=this.getAnchor(x.markAnchor),SA=this.positions[this.glyphIterator.index];SA.xOffset=oA.x-sA.x,SA.yOffset=oA.y-sA.y,this.glyphIterator.cur.markAttachment=tA},K.getAnchor=function(x){var P=x.xCoordinate,tA=x.yCoordinate,oA=this.font._variationProcessor,sA=this.font.GDEF&&this.font.GDEF.itemVariationStore;return oA&&sA&&(x.xDeviceTable&&(P+=oA.getDelta(sA,x.xDeviceTable.a,x.xDeviceTable.b)),x.yDeviceTable&&(tA+=oA.getDelta(sA,x.yDeviceTable.a,x.yDeviceTable.b))),{x:P,y:tA}},K.applyFeatures=function(x,P,tA){eA.prototype.applyFeatures.call(this,x,P,tA);for(var oA=0;oA>16;if(0===x)switch(M>>8){case 0:return 173===M;case 3:return 847===M;case 6:return 1564===M;case 23:return 6068<=M&&M<=6069;case 24:return 6155<=M&&M<=6158;case 32:return 8203<=M&&M<=8207||8234<=M&&M<=8238||8288<=M&&M<=8303;case 254:return 65024<=M&&M<=65039||65279===M;case 255:return 65520<=M&&M<=65528;default:return!1}else switch(x){case 1:return 113824<=M&&M<=113827||119155<=M&&M<=119162;case 14:return 917504<=M&&M<=921599;default:return!1}},b.getAvailableFeatures=function(M,x){var P=[];return this.engine&&P.push.apply(P,this.engine.getAvailableFeatures(M,x)),this.font.kern&&-1===P.indexOf("kern")&&P.push("kern"),P},b.stringsForGlyph=function(M){for(var oA,x=new Set,tA=B(this.font._cmapProcessor.codePointsForGlyph(M));!(oA=tA()).done;)x.add(String.fromCodePoint(oA.value));if(this.engine&&this.engine.stringsForGlyph)for(var SA,iA=B(this.engine.stringsForGlyph(M));!(SA=iA()).done;)x.add(SA.value);return Array.from(x)},eA}(),z0={moveTo:"M",lineTo:"L",quadraticCurveTo:"Q",bezierCurveTo:"C",closePath:"Z"},Ni=function(){function eA(){this.commands=[],this._bbox=null,this._cbox=null}var b=eA.prototype;return b.toFunction=function(){var M=this;return function(x){M.commands.forEach(function(P){return x[P.command].apply(x,P.args)})}},b.toSVG=function(){return this.commands.map(function(x){var P=x.args.map(function(tA){return Math.round(100*tA)/100});return"".concat(z0[x.command]).concat(P.join(" "))}).join("")},b.mapPoints=function(M){for(var tA,x=new eA,P=B(this.commands);!(tA=P()).done;){for(var oA=tA.value,sA=[],iA=0;iA0&&this.codePoints.every(w.isMark),this.isLigature=this.codePoints.length>1}var b=eA.prototype;return b._getPath=function(){return new Ni},b._getCBox=function(){return this.path.cbox},b._getBBox=function(){return this.path.bbox},b._getTableMetrics=function(M){if(this.id0)sA=Math.abs(SA.typoAscender-SA.typoDescender),iA=SA.typoAscender-M.maxY;else{var jA=this._font.hhea;sA=Math.abs(jA.ascent-jA.descent),iA=jA.ascent-M.maxY}return this._font._variationProcessor&&this._font.HVAR&&(P+=this._font._variationProcessor.getAdvanceAdjustment(this.id,this._font.HVAR)),this._metrics={advanceWidth:P,advanceHeight:sA,leftBearing:tA,topBearing:iA}},b.getScaledPath=function(M){return this.path.scale(1/this._font.unitsPerEm*M)},b._getName=function(){var M=this._font.post;if(!M)return null;switch(M.version){case 1:return qr[this.id];case 2:var x=M.glyphNameIndex[this.id];return x0?this._decodeSimple(sA,tA):sA.numberOfContours<0&&this._decodeComposite(sA,tA,oA),sA},K._decodeSimple=function(x,P){x.points=[];var tA=new e.Array(e.uint16,x.numberOfContours).decode(P);x.instructions=new e.Array(e.uint8,e.uint16).decode(P);for(var oA=[],sA=tA[tA.length-1]+1;oA.length=0,0,0);x.points.push(qA)}var gt=0;for(ct=0;ct>1,iA.length=0}function cn(Oe,fe){Gt&&sA.closePath(),sA.moveTo(Oe,fe),Gt=!0}return function Oe(){for(;P.pos1&&Je(),gt+=iA.shift(),cn(qA,gt);break;case 5:for(;iA.length>=2;)qA+=iA.shift(),gt+=iA.shift(),sA.lineTo(qA,gt);break;case 6:case 7:for(var qe=6===fe;iA.length>=1;)qe?qA+=iA.shift():gt+=iA.shift(),sA.lineTo(qA,gt),qe=!qe;break;case 8:for(;iA.length>0;){var me=qA+iA.shift(),Pe=gt+iA.shift(),Ye=me+iA.shift(),We=Pe+iA.shift();qA=Ye+iA.shift(),gt=We+iA.shift(),sA.bezierCurveTo(me,Pe,Ye,We,qA,gt)}break;case 10:var Ue=iA.pop()+Ee,Fe=ge[Ue];if(Fe){yt[Ue]=!0;var $e=P.pos,Rn=oA;P.pos=Fe.offset,oA=Fe.offset+Fe.length,Oe(),P.pos=$e,oA=Rn}break;case 11:if(x.version>=2)break;return;case 14:if(x.version>=2)break;iA.length>0&&Je(),Gt&&(sA.closePath(),Gt=!1);break;case 15:if(x.version<2)throw new Error("vsindex operator not supported in CFF v1");He=iA.pop();break;case 16:if(x.version<2)throw new Error("blend operator not supported in CFF v1");if(!sn)throw new Error("blend operator in non-variation font");for(var gn=sn.getBlendVector(we,He),mn=iA.pop(),Gn=mn*gn.length,Jn=iA.length-Gn,vn=Jn-mn,Mn=0;Mn>3;break;case 21:iA.length>2&&Je(),qA+=iA.shift(),gt+=iA.shift(),cn(qA,gt);break;case 22:iA.length>1&&Je(),cn(qA+=iA.shift(),gt);break;case 24:for(;iA.length>=8;)me=qA+iA.shift(),Pe=gt+iA.shift(),Ye=me+iA.shift(),We=Pe+iA.shift(),qA=Ye+iA.shift(),gt=We+iA.shift(),sA.bezierCurveTo(me,Pe,Ye,We,qA,gt);qA+=iA.shift(),gt+=iA.shift(),sA.lineTo(qA,gt);break;case 25:for(;iA.length>=8;)qA+=iA.shift(),gt+=iA.shift(),sA.lineTo(qA,gt);me=qA+iA.shift(),Pe=gt+iA.shift(),Ye=me+iA.shift(),We=Pe+iA.shift(),qA=Ye+iA.shift(),gt=We+iA.shift(),sA.bezierCurveTo(me,Pe,Ye,We,qA,gt);break;case 26:for(iA.length%2&&(qA+=iA.shift());iA.length>=4;)me=qA,Pe=gt+iA.shift(),Ye=me+iA.shift(),We=Pe+iA.shift(),qA=Ye,gt=We+iA.shift(),sA.bezierCurveTo(me,Pe,Ye,We,qA,gt);break;case 27:for(iA.length%2&&(gt+=iA.shift());iA.length>=4;)me=qA+iA.shift(),Pe=gt,Ye=me+iA.shift(),We=Pe+iA.shift(),qA=Ye+iA.shift(),sA.bezierCurveTo(me,Pe,Ye,We,qA,gt=We);break;case 28:iA.push(P.readInt16BE());break;case 29:Ue=iA.pop()+qt,(Fe=$t[Ue])&&(pt[Ue]=!0,$e=P.pos,Rn=oA,P.pos=Fe.offset,oA=Fe.offset+Fe.length,Oe(),P.pos=$e,oA=Rn);break;case 30:case 31:for(qe=31===fe;iA.length>=4;)qe?(me=qA+iA.shift(),Pe=gt,Ye=me+iA.shift(),We=Pe+iA.shift(),gt=We+iA.shift(),qA=Ye+(1===iA.length?iA.shift():0)):(me=qA,Pe=gt+iA.shift(),Ye=me+iA.shift(),We=Pe+iA.shift(),qA=Ye+iA.shift(),gt=We+(1===iA.length?iA.shift():0)),sA.bezierCurveTo(me,Pe,Ye,We,qA,gt),qe=!qe;break;case 12:switch(fe=P.readUInt8()){case 3:var ke=iA.pop(),Bn=iA.pop();iA.push(ke&&Bn?1:0);break;case 4:ke=iA.pop(),Bn=iA.pop(),iA.push(ke||Bn?1:0);break;case 5:ke=iA.pop(),iA.push(ke?0:1);break;case 9:ke=iA.pop(),iA.push(Math.abs(ke));break;case 10:ke=iA.pop(),Bn=iA.pop(),iA.push(ke+Bn);break;case 11:ke=iA.pop(),Bn=iA.pop(),iA.push(ke-Bn);break;case 12:ke=iA.pop(),Bn=iA.pop(),iA.push(ke/Bn);break;case 14:ke=iA.pop(),iA.push(-ke);break;case 15:ke=iA.pop(),Bn=iA.pop(),iA.push(ke===Bn?1:0);break;case 18:iA.pop();break;case 20:var $i=iA.pop(),zn=iA.pop();SA[zn]=$i;break;case 21:zn=iA.pop(),iA.push(SA[zn]||0);break;case 22:var Aa=iA.pop(),ta=iA.pop(),Lc=iA.pop(),bc=iA.pop();iA.push(Lc<=bc?Aa:ta);break;case 23:iA.push(Math.random());break;case 24:ke=iA.pop(),Bn=iA.pop(),iA.push(ke*Bn);break;case 26:ke=iA.pop(),iA.push(Math.sqrt(ke));break;case 27:ke=iA.pop(),iA.push(ke,ke);break;case 28:ke=iA.pop(),Bn=iA.pop(),iA.push(Bn,ke);break;case 29:(zn=iA.pop())<0?zn=0:zn>iA.length-1&&(zn=iA.length-1),iA.push(iA[zn]);break;case 30:var Pi=iA.pop(),_r=iA.pop();if(_r>=0)for(;_r>0;){for(var ea=iA[Pi-1],Ri=Pi-2;Ri>=0;Ri--)iA[Ri+1]=iA[Ri];iA[0]=ea,_r--}else for(;_r<0;){ea=iA[0];for(var zi=0;zi<=Pi;zi++)iA[zi]=iA[zi+1];iA[Pi-1]=ea,_r++}break;case 34:me=qA+iA.shift(),Pe=gt,Ye=me+iA.shift(),We=Pe+iA.shift();var $r=Ye+iA.shift(),Ai=We,ti=$r+iA.shift(),ei=Ai,ni=ti+iA.shift(),ri=ei,ii=ni+iA.shift(),ai=ri;qA=ii,gt=ai,sA.bezierCurveTo(me,Pe,Ye,We,$r,Ai),sA.bezierCurveTo(ti,ei,ni,ri,ii,ai);break;case 35:for(var Cr=[],na=0;na<=5;na++)qA+=iA.shift(),gt+=iA.shift(),Cr.push(qA,gt);sA.bezierCurveTo.apply(sA,Cr.slice(0,6)),sA.bezierCurveTo.apply(sA,Cr.slice(6)),iA.shift();break;case 36:me=qA+iA.shift(),Pe=gt+iA.shift(),Ye=me+iA.shift(),ei=Ai=We=Pe+iA.shift(),ni=(ti=($r=Ye+iA.shift())+iA.shift())+iA.shift(),ri=ei+iA.shift(),ii=ni+iA.shift(),qA=ii,gt=ai=ri,sA.bezierCurveTo(me,Pe,Ye,We,$r,Ai),sA.bezierCurveTo(ti,ei,ni,ri,ii,ai);break;case 37:var no=qA,ro=gt;Cr=[];for(var io=0;io<=4;io++)qA+=iA.shift(),gt+=iA.shift(),Cr.push(qA,gt);Math.abs(qA-no)>Math.abs(gt-ro)?(qA+=iA.shift(),gt=ro):(qA=no,gt+=iA.shift()),Cr.push(qA,gt),sA.bezierCurveTo.apply(sA,Cr.slice(0,6)),sA.bezierCurveTo.apply(sA,Cr.slice(6));break;default:throw new Error("Unknown op: 12 ".concat(fe))}break;default:throw new Error("Unknown op: ".concat(fe))}else if(fe<247)iA.push(fe-139);else if(fe<251){var ra=P.readUInt8();iA.push(256*(fe-247)+ra+108)}else fe<255?(ra=P.readUInt8(),iA.push(256*-(fe-251)-ra-108)):iA.push(P.readInt32BE()/65536)}}(),Gt&&sA.closePath(),sA},b}(Si),$0=new e.Struct({originX:e.uint16,originY:e.uint16,type:new e.String(4),data:new e.Buffer(function(eA){return eA.parent.buflen-eA._currentOffset})}),Ac=function(eA){function b(){return eA.apply(this,arguments)||this}h(b,eA);var K=b.prototype;return K.getImageForSize=function(x){for(var P=0;P=x)break}var oA=tA.imageOffsets,sA=oA[this.id],iA=oA[this.id+1];return sA===iA?null:(this._font.stream.pos=sA,$0.decode(this._font.stream,{buflen:iA-sA}))},K.render=function(x,P){var tA=this.getImageForSize(P);null!=tA&&x.image(tA.data,{height:P,x:tA.originX,y:P/this._font.unitsPerEm*(this.bbox.minY-tA.originY)}),this._font.sbix.flags.renderOutlines&&eA.prototype.render.call(this,x,P)},b}(Ui),ja=function(b,K){this.glyph=b,this.color=K},tc=function(eA){function b(){return eA.apply(this,arguments)||this}h(b,eA);var K=b.prototype;return K._getBBox=function(){for(var x=new Sr,P=0;P>1;if(this.id<(iA=P.baseGlyphRecord[sA]).gid)oA=sA-1;else{if(!(this.id>iA.gid)){var SA=iA;break}tA=sA+1}}if(null==SA){var jA=this._font._getBaseGlyph(this.id);return[new ja(jA,ct={red:0,green:0,blue:0,alpha:255})]}for(var qA=[],gt=SA.firstLayerIndex;gt=1&&x[P]=P.glyphCount)){var tA=P.offsets[M];if(tA!==P.offsets[M+1]){var oA=this.font.stream;if(oA.pos=tA,!(oA.pos>=oA.length)){var sA=oA.readUInt16BE(),iA=tA+oA.readUInt16BE();if(32768&sA){var SA=oA.pos;oA.pos=iA;var jA=this.decodePoints();iA=oA.pos,oA.pos=SA}var ct=x.map(function(gn){return gn.copy()});sA&=4095;for(var qA=0;qA=P.globalCoordCount)throw new Error("Invalid gvar table");yt=P.globalCoords[4095&pt]}if(16384&pt){for(var $t=[],qt=0;qtMath.max(0,x[SA]))return 0;iA=(iA*oA[SA]+Number.EPSILON)/(x[SA]+Number.EPSILON)}else{if(oA[SA]tA[SA])return 0;iA=oA[SA]sA)){var SA=tA,jA=tA;for(tA++;tA<=sA;)P[tA]&&(this.deltaInterpolate(jA+1,tA-1,jA,tA,x,M),jA=tA),tA++;jA===SA?this.deltaShift(oA,sA,jA,x,M):(this.deltaInterpolate(jA+1,sA,jA,SA,x,M),SA>0&&this.deltaInterpolate(oA,SA-1,jA,SA,x,M)),tA=sA+1}}},b.deltaInterpolate=function(M,x,P,tA,oA,sA){if(!(M>x))for(var iA=["x","y"],SA=0;SAoA[tA][jA]){var ct=P;P=tA,tA=ct}var qA=oA[P][jA],gt=oA[tA][jA],pt=sA[P][jA],yt=sA[tA][jA];if(qA!==gt||pt===yt)for(var Gt=qA===gt?0:(yt-pt)/(gt-qA),$t=M;$t<=x;$t++){var qt=oA[$t][jA];qt<=qA?qt+=pt-qA:qt>=gt?qt+=yt-gt:qt=pt+(qt-qA)*Gt,sA[$t][jA]=qt}}},b.deltaShift=function(M,x,P,tA,oA){var sA=oA[P].x-tA[P].x,iA=oA[P].y-tA[P].y;if(0!==sA||0!==iA)for(var SA=M;SA<=x;SA++)SA!==P&&(oA[SA].x+=sA,oA[SA].y+=iA)},b.getAdvanceAdjustment=function(M,x){var P,tA;if(x.advanceWidthMapping){var oA=M;oA>=x.advanceWidthMapping.mapCount&&(oA=x.advanceWidthMapping.mapCount-1);var iA=x.advanceWidthMapping.mapData[oA];P=iA.outerIndex,tA=iA.innerIndex}else P=0,tA=M;return this.getDelta(x.itemVariationStore,P,tA)},b.getDelta=function(M,x,P){if(x>=M.itemVariationData.length)return 0;var tA=M.itemVariationData[x];if(P>=tA.deltaSets.length)return 0;for(var oA=tA.deltaSets[P],sA=this.getBlendVector(M,x),iA=0,SA=0;SAqA.peakCoord||qA.peakCoord>qA.endCoord||qA.startCoord<0&&qA.endCoord>0&&0!==qA.peakCoord||0===qA.peakCoord?1:tA[ct]qA.endCoord?0:tA[ct]===qA.peakCoord?1:tA[ct]=0&&K<=255?1:2},eA.encode=function(K,M){M>=0&&M<=255?K.writeUInt8(M):K.writeInt16BE(M)},eA}(),_a=new e.Struct({numberOfContours:e.int16,xMin:e.int16,yMin:e.int16,xMax:e.int16,yMax:e.int16,endPtsOfContours:new e.Array(e.uint16,"numberOfContours"),instructions:new e.Array(e.uint8,e.uint16),flags:new e.Array(e.uint8,0),xPoints:new e.Array(qa,0),yPoints:new e.Array(qa,0)}),wc=function(){function eA(){}var b=eA.prototype;return b.encodeSimple=function(M,x){void 0===x&&(x=[]);for(var P=[],tA=[],oA=[],sA=[],iA=0,SA=0,jA=0,ct=0,qA=0,gt=0;gt0&&(sA.push(iA),iA=0),sA.push(qt),ct=qt),SA=Gt,jA=$t,qA++}"closePath"===pt.command&&P.push(qA-1)}M.commands.length>1&&"closePath"!==M.commands[M.commands.length-1].command&&P.push(qA-1);var we=M.bbox,He={numberOfContours:P.length,xMin:we.minX,yMin:we.minY,xMax:we.maxX,yMax:we.maxY,endPtsOfContours:P,instructions:x,flags:sA,xPoints:tA,yPoints:oA},sn=_a.size(He),Je=4-sn%4,se=new e.EncodeStream(sn+Je);return _a.encode(se,He),0!==Je&&se.fill(0,Je),se.buffer},b._encodePoint=function(M,x,P,tA,oA,sA){var iA=M-x;return M===x?tA|=sA:(-255<=iA&&iA<=255&&(tA|=oA,iA<0?iA=-iA:tA|=sA),P.push(iA)),tA},eA}(),Cc=function(eA){function b(M){var x;return(x=eA.call(this,M)||this).glyphEncoder=new wc,x}h(b,eA);var K=b.prototype;return K._addGlyph=function(x){var P=this.font.getGlyph(x),tA=P._decode(),oA=this.font.loca.offsets[x],sA=this.font.loca.offsets[x+1],iA=this.font._getTableStream("glyf");iA.pos+=oA;var SA=iA.readBuffer(sA-oA);if(tA&&tA.numberOfContours<0){SA=l.from(SA);for(var ct,jA=B(tA.components);!(ct=jA()).done;){var qA=ct.value;x=this.includeGlyph(qA.glyphID),SA.writeUInt16BE(x,qA.pos)}}else tA&&this.font._variationProcessor&&(SA=this.glyphEncoder.encodeSimple(P.path,tA.instructions));return this.glyf.push(SA),this.loca.offsets.push(this.offset),this.hmtx.metrics.push({advance:P.advanceWidth,bearing:P._getMetrics().leftBearing}),this.offset+=SA.length,this.glyf.length-1},K.encode=function(x){this.glyf=[],this.offset=0,this.loca={offsets:[],version:this.font.loca.version},this.hmtx={metrics:[],bearings:[]};for(var P=0;P255?2:1,ranges:[{first:1,nLeft:this.charstrings.length-2}]},tA=Object.assign({},this.cff.topDict);tA.Private=null,tA.charset=P,tA.Encoding=null,tA.CharStrings=this.charstrings;for(var oA=0,sA=["version","Notice","Copyright","FullName","FamilyName","Weight","PostScript","BaseFontName","FontName"];oA0&&Object.defineProperty(this,x,{get:this._getTable.bind(this,P)})}}eA.probe=function(M){var x=M.toString("ascii",0,4);return"true"===x||"OTTO"===x||x===String.fromCharCode(0,1,0,0)};var b=eA.prototype;return b.setDefaultLanguage=function(M){void 0===M&&(M=null),this.defaultLanguage=M},b._getTable=function(M){if(!(M.tag in this._tables))try{this._tables[M.tag]=this._decodeTable(M)}catch(x){D.logErrors&&(console.error("Error decoding table ".concat(M.tag)),console.error(x.stack))}return this._tables[M.tag]},b._getTableStream=function(M){var x=this.directory.tables[M];return x?(this.stream.pos=x.offset,this.stream):null},b._decodeDirectory=function(){return this.directory=li.decode(this.stream,{_startOffset:0})},b._decodeTable=function(M){var x=this.stream.pos,P=this._getTableStream(M.tag),tA=oe[M.tag].decode(P,this,M.length);return this.stream.pos=x,tA},b.getName=function(M,x){void 0===x&&(x=this.defaultLanguage||D.defaultLanguage);var P=this.name&&this.name.records[M];return P&&(P[x]||P[this.defaultLanguage]||P[D.defaultLanguage]||P.en||P[Object.keys(P)[0]])||null},b.hasGlyphForCodePoint=function(M){return!!this._cmapProcessor.lookup(M)},b.glyphForCodePoint=function(M){return this.getGlyph(this._cmapProcessor.lookup(M),[M])},b.glyphsForString=function(M){for(var x=[],P=M.length,tA=0,oA=-1,sA=-1;tA<=P;){var iA=0,SA=0;if(tA>>6&3},transformed:function(b){return"glyf"===b.tag||"loca"===b.tag?0===b.transformVersion:0!==b.transformVersion},transformLength:new e.Optional(Ao,function(eA){return eA.transformed})}),Xi=new e.Struct({tag:new e.String(4),flavor:e.uint32,length:e.uint32,numTables:e.uint16,reserved:new e.Reserved(e.uint16),totalSfntSize:e.uint32,totalCompressedSize:e.uint32,majorVersion:e.uint16,minorVersion:e.uint16,metaOffset:e.uint32,metaLength:e.uint32,metaOrigLength:e.uint32,privOffset:e.uint32,privLength:e.uint32,tables:new e.Array(mc,"numTables")});Xi.process=function(){for(var eA={},b=0;b0){for(var iA=[],SA=0,jA=0;jA>7);if((iA&=127)<10)oA=0,sA=er(iA,((14&iA)<<7)+b.readUInt8());else if(iA<20)oA=er(iA,((iA-10&14)<<7)+b.readUInt8()),sA=0;else if(iA<84)oA=er(iA,1+(48&(jA=iA-20))+((ct=b.readUInt8())>>4)),sA=er(iA>>1,1+((12&jA)<<2)+(15&ct));else if(iA<120){var jA;oA=er(iA,1+((jA=iA-84)/12<<8)+b.readUInt8()),sA=er(iA>>1,1+(jA%12>>2<<8)+b.readUInt8())}else if(iA<124){var ct=b.readUInt8(),qA=b.readUInt8();oA=er(iA,(ct<<4)+(qA>>4)),sA=er(iA>>1,((15&qA)<<8)+b.readUInt8())}else oA=er(iA,b.readUInt16BE()),sA=er(iA>>1,b.readUInt16BE());P.push(new gr(SA,!1,x+=oA,M+=sA))}return P}var Yc=new e.VersionedStruct(e.uint32,{65536:{numFonts:e.uint32,offsets:new e.Array(e.uint32,"numFonts")},131072:{numFonts:e.uint32,offsets:new e.Array(e.uint32,"numFonts"),dsigTag:e.uint32,dsigLength:e.uint32,dsigOffset:e.uint32}}),Tc=function(){function eA(K){if(this.stream=K,"ttcf"!==K.readString(4))throw new Error("Not a TrueType collection");this.header=Yc.decode(K)}return eA.probe=function(M){return"ttcf"===M.toString("ascii",0,4)},eA.prototype.getFont=function(M){for(var P,x=B(this.header.offsets);!(P=x()).done;){var tA=P.value,oA=new e.DecodeStream(this.stream.buffer);oA.pos=tA;var sA=new vr(oA);if(sA.postscriptName===M)return sA}return null},c(eA,[{key:"fonts",get:function(){for(var P,M=[],x=B(this.header.offsets);!(P=x()).done;){var tA=P.value,oA=new e.DecodeStream(this.stream.buffer);oA.pos=tA,M.push(new vr(oA))}return M}}]),eA}(),Nc=new e.String(e.uint8),Sc=(new e.Struct({len:e.uint32,buf:new e.Buffer("len")}),new e.Struct({id:e.uint16,nameOffset:e.int16,attr:e.uint8,dataOffset:e.uint24,handle:e.uint32})),Uc=new e.Struct({name:new e.String(4),maxTypeIndex:e.uint16,refList:new e.Pointer(e.uint16,new e.Array(Sc,function(eA){return eA.maxTypeIndex+1}),{type:"parent"})}),Pc=new e.Struct({length:e.uint16,types:new e.Array(Uc,function(eA){return eA.length+1})}),Rc=new e.Struct({reserved:new e.Reserved(e.uint8,24),typeList:new e.Pointer(e.uint16,Pc),nameListOffset:new e.Pointer(e.uint16,"void")}),eo=new e.Struct({dataOffset:e.uint32,map:new e.Pointer(e.uint32,Rc),dataLength:e.uint32,mapLength:e.uint32}),zc=function(){function eA(K){this.stream=K,this.header=eo.decode(this.stream);for(var x,M=B(this.header.map.typeList.types);!(x=M()).done;){for(var oA,P=x.value,tA=B(P.refList);!(oA=tA()).done;){var sA=oA.value;sA.nameOffset>=0?(this.stream.pos=sA.nameOffset+this.header.map.nameListOffset,sA.name=Nc.decode(this.stream)):sA.name=null}"sfnt"===P.name&&(this.sfnt=P)}}return eA.probe=function(M){var x=new e.DecodeStream(M);try{var P=eo.decode(x)}catch(iA){return!1}for(var oA,tA=B(P.map.typeList.types);!(oA=tA()).done;)if("sfnt"===oA.value.name)return!0;return!1},eA.prototype.getFont=function(M){if(!this.sfnt)return null;for(var P,x=B(this.sfnt.refList);!(P=x()).done;){var sA=new e.DecodeStream(this.stream.buffer.slice(this.header.dataOffset+P.value.dataOffset+4)),iA=new vr(sA);if(iA.postscriptName===M)return iA}return null},c(eA,[{key:"fonts",get:function(){for(var P,M=[],x=B(this.sfnt.refList);!(P=x()).done;){var sA=new e.DecodeStream(this.stream.buffer.slice(this.header.dataOffset+P.value.dataOffset+4));M.push(new vr(sA))}return M}}]),eA}();D.registerFormat(vr),D.registerFormat(Mc),D.registerFormat(Dc),D.registerFormat(Tc),D.registerFormat(zc),T.exports=D},7337:function(T,I,n){"use strict";var l=n(4781),i=n(9742),o=n(2055),c=o.BK,h=o.CR,a=o.LF,B=o.NL,E=o.SG,u=o.WJ,C=o.SP,e=o.ZWJ,f=o.BA,g=o.HY,w=o.NS,Q=o.AI,d=o.AL,Y=o.CJ,y=o.HL,p=o.RI,m=o.SA,D=o.XX,U=n(8383),N=U.DI_BRK,F=U.IN_BRK,z=U.CI_BRK,L=U.CP_BRK,aA=U.pairTable,cA=new l(i.toByteArray("AAgOAAAAAACA3QAAAe0OEvHtnXuMXUUdx+d2d2/33r237V3YSoFC11r6IGgbRFBEfFF5KCVCMYKFaKn8AYqmwUeqECFabUGQipUiNCkgSRElUkKwJRWtwSpJrZpCI4E2NQqiBsFGwWL8Tu6Md3Z23o9zbund5JM5c+b1m9/85nnOuXtTHyFrwXpwL9gBngTPgj+Dv4H9Ae4B0N9PSAMcDqaB0X57urmIs8AQ72SEnQ4+ABaBxWAJWAquENJ9BtdfANeCleBGcCv4NvgeuBv8AGwCm8FWlpbzOPw7wC7wFNgDngMvgpfAq2DCACF10ACHgaPAzIF2+PFwT2Th1P8OuO8FZ4MPggvAxWAp+A6VHe5ysILFvx7u6oF2+Wvg3g7uYvlT+TbC/TH4CdgCtoGtfW3/E2An8++Gu5eleR7uP8B+8BoLf4LFH6i23Vp1rB5a1Q7TGMeCUYYY18RcxF0gxT8H5b3dIw8X3iPkdxauPwQWgyVgWbVT30/h+mrwZan8r8L/FcEWVsJ/E1grpKXcwdLdI9y/H9cPgUerbbun0PadCHcbjQd+D55mafcx9y9wXwKvCLJUJiLdRH09ef4xupqE/KeCY8Bx4M3gbeBdYCE4G3wYXASWgGXgSibTcuaugHs9WA3WgNvBBha2Ee4D4GFNPTYL9x/D9XaJXwnXvwW7wDPgTzQd2A9eAwODhDTBCJgOZoETwEngtEFmF3DPAouY/0K4Swb9dbaMpbkS7nKP9CsCyrpOSrNK8K9kNnYL7q0DGwbb/XnjoDv3gQfBZvBz8GvwO/AHdr3Pkv4F4fplj3J79OgRBx8HypajR48ePXr06NGjx8HFv7pABhX/HRx7HqKjr9Y+y6PXg7X2WRoPm1Kzpz8CcWaweLPhHt/fPq95C65PZnmfDnchOLfWPo/7OLgQ15ewdJ+E++na2PMhyudw72bDGc01CP8aWAm+Dr4BVoHV4IZeWC+sF9YL64UlD1sD1oE7au0z0zK5p1YuZde/R49uJnYdez/62EPgkVr4c7pHkfYXivTbcW8n2A32gOekOH+F/5/gAOivE9IArXpbrmlwR+vljz9bJrV552RCvgQ2GXgRzJ9CyGVTxofdLd17Gv6jW4RcAG5ote/9FO4B8NZhQs4DN4O9kOFY6OFSsB48C/qGCFkAyERCzh9q+0WuA2sqHX4m+Smv4t6RjXYelItwvQ7sBtOahHwU3NYcn+5Q4pFmRz89evTocajxStM898/FfLSgrg8/sT5+zcLDTkXY+6S0C+E/l907SXO+Rt/Lujrxe1kmztPU70JDvSmXILwJWS9TxLuC3VtuycPGCoV+VfD41yvKW6W4d1O9/S5YtZ+Qtbi+k/m/D/eHYBPzb4G7DfyS+enZ42/qnXPFp+pjZdgD/yX0XcV6+93DF+H+G5AhtcxPIs/BoY5cg0g7RRGXx/8Ewo8Y6vhp/Bnwz2F5zId7CgunZ6Dv1uTF0585pNY7P9NdhPCPDI1Ncyn8l4OrwHKwguVB12WrNPnpoPW5BWluA3eCuxRl3cfyfFCom43NBjkeQ9h2Tzlzs7PL5CmD3UwHew26+KMm7AVHu8hJaL1fTtj29L3E/wi6oPvWvkY7bAjucKOYtpymKWdGo/3e5KxGR8YTGvmfZ4XW46RGmnMIG6excs6Ae46nPuh7pGXbvm/fOB91vLhRXvkmlkKuK8BnFTb8xYL6TyqugbzXJZCZ9tlVrO9+C+53G5134A8G1htsjdbvXoT/KEBPmwq04dS2v6UxNnxbAXV5gul4Z6J+tMtBZtv4+Qzy2Ndof+fwPHP/zsbg/QFz02tIM4B9ZRO0mp379NxxBpgD5gv3T8H16eAMcCZYxMIWw/2YEG8pri9n/qvgfr45fm67VtjPzmbpVrJ7NzL3VrjvF/Jdh+sN3M/cB+A+LOV/bVNdX13b0G9KtmrSHCo8jvqfGjFu7WiWP37E8s2+yv8ZwVbYRgvMAm9kvMkhjStzAZbIBGIR+ngAy2NSZ9f0Hv2bIIShCckU5k5sb+OdGGQ0BKqSPzeE1WFCgWXK5dO2rDD/COn9zTvEUfXJ4zT3c9DP2oH2+ZoAtc9RBr/mY0SLdGyap+Nxh6W0In2Sn5C8/W00c/7dXn63we1DtAHud9WZbFNimmFL2iIoqt8eDPQHptERIkNoO8prFVvblm13OaG6oGM+n7P4/RrRz2HdTktotxHFdZW5tvm72UWEtm9dQF6n++hU1FmVFL++L2Nsdt3/1IVrWaacda4Se91t+pHDVXF5HFd9pG7X14NNyePr6wkfPTRI+H6qDPvLqRM5DR2beZ8W95Divq0IWXXyy/d18Yq09ZhyY/fyPjafY37yta8ybD9l3W15+crXYhQ5rsj2Wkb7iDadon1c+tKI4p5NR6HjPl/vqvLm92uK8lTjWNntkwJTu9hkiJmHVf3S1V5UOii6PWL1nVqOkP5QI/b2L2o+Kqr/h9i0bHNl9HudnKn0btKBbZzItQ7n47Drmutg6P+ubZK7/5va0PU8XZS56DP4Isci07gUo3/fscdlfMyp6xR6dy0vt/275K1bJ8qkHI99bdK3v4vt4Gtzs7sEWa5aZH4NDz3yfWG368bXLlQ6GZYQ7/UL1y3mryroZ+nkZwK28SD1vlt+7sNd+lcR3Ji1RKq1WcvhftFzousYxftH7Ngu2pZubcGfD8eMizp5Y/uha/m69NNK5siSOapkcq2lTOOGvE4y9aPclFl20eXTvwoZO374ymob90Jx3Zfk2h/I849q7VNE+WXsj+ZFlJ96Xcd1PyD4ue2J69/Q9V+u9uPrQC7/sHRftjE+n+eQP2Ztl5Kc+0TX/WND8vP2iF23xO7lfO3XtKfLhUm/PE6Ze78RD/3Fknr8i907yWsoUx+M3S+0SNjcHyu7qg6+aYvqF671TLXfTzU+2uaTnOOzbFc+7yHoZE59npIL175kay/ZxlKMH6a+NSJdl90XKXytpbMpTr/kP5zJfqxQDzneYWTstxh9pPPdYJ/CL8alTBag+fFvHFXtQMutWxBloOUMMHS6GWSyVYS4pvgmexXtVjc/TFWk9ZnnZLt3+caI10/8Xkb+hsYlfeh+QOyPNQN1S7hv2nqivEVSj/Ex+1lu73Ib1olbu4jpfN4ddbWbHN+/mcpWfUem+g7RhK4833SuepHbN0d5PjKF1kUll3xPFc5d+btTW9uqdCHXwaQ7kw252ENIW9vKTdEfTLox+VPYT6r8XXUWq7tYuXyZnEAG+ic+pwyVdRLDp8wcOp0kEZNXzLyqw3f+yEkjMI1sFznk8ulDKcoKlcFVlz75qPyu9+U8YuvnqnfXNDn6t6neNr3xfHj4JEU500ma8SSkjjodptBlTLurbI7rTxUnhcxF6d9W76KRbd6G3DdVNj2qia/qD3KY2O90elLJocpHJc90Q7kqVLqaLlGUjYj+Pg00jD8Xk+Wnf5UAN8c8HGrvXKYi+4irnsoo09ctU29Fll2UraSyaxnTOar8DFw+w60St+cRNlzfm9E9y9CNUTZM5/7iOTWR6imOgaKf/pn6hJw/f8dDdS6u0tNhDN1ZOlGUoauTrqyQNvCd21Mjy8N/T7AixBkQrm3tRKS0tngDwrWYzobuLFwXV3WfP5uR9TGTXdvc3BRVjq18l3rbwmaS8c9QByR4m3Sb/lPVX2V/M4naDkV79GFmJDad2NaLOdpBpxsbvs+/YubgVPO5bn3h+75BahnEOU/EVb+yTL7vQeTQp04GH/twfTYaCv9ehe8XXdZ0Ic+IY94Hcik/9h0Zk35c7MdWXo737HM/y6dllPENj9zeuvq7vMMYam88fZnfU7nOHznf6/AdP+W8ffXv2q6uelDlE1N/Wx+Prb/MG8ARBVJ0eb7rz5Tf6sl5l/G9nizDnJLJudZoaNqU/hbsCPH73dhu+03aWPiZhW9/yLHf8IGvT1OtzwZJ56yG/7YvX5sSdn+yof6x5av2ebxcV1dOZ9pDVgSXys/36uLzG1s5Nvj7pKo9axm2zsueylxeT1lWlQ4rkuuzx5f3+VXPPGIhgbLnKp/rtiJdcz2lOtMpAtMZV27E/kRttyaF83dFbf3NdYwXx6sZpH0uVkZ/VslmOrspa24V1+O56u3TdmXpQdaJy36wLPm4LZVR7jyp/CLOmULtzeWZoqstuLS9rhzTmqwIe3LVia0f2OSP3c/71Ec8V0itv6JtONbOXdb3Oc5YdcTaQVFzRWg7+z6HydnHy+qPoWO+j1yq8anofifWl7ri97chNiq/z6KyM37t8333sJR/SF/3bUvd+z+8nV3KNPWfIvt3mfNZijFAZT8xfXSekLfOtl3rHCuPzxrEdT7U9UvRjn3HKV5/XTuo2i3n+E3L5L+3yN+TkH+z07ZGDlkviuXLcX3aL7b+8m+duhCzJonp/yF9wabPItZhJmJ/N8pVfvn31Fok7PeiYsalFON4bPnyuOO7Ru2G+S52fqB5DAt55bJtXf2LtJdQParCVevHlqcufduvKJuQ5yxxvA/Zw6W0l5D3+nz7a4wdieXxd+FS2SjPN7Z9XXDRp62/dMv4GTM22uwx1/iTe7zTUSfjf1Mqld36EHv2xvPoprMnGfGvIiDHk+/x+EQTP7fMOjl928f0/855OTnaJ5XeQsevVHNojO5147ePXLH681mDqOBhqef/Ivp+7PMF1Vxs02kMITLK30zp/k+FbX1RdP/w1b2OMt9hiR1bKLHfZ+XWT+4+ahqzVM8iUug81r5tfTf3+JB6DPFpk1zllLUu9523cpPLdlR6zTVP+bShGFd1lh/Td33rVdT44WqTtjqktOtc87osc8x5hM9vyLrK49v+Pvmp7De0/vyvLJvk1C3+1OOyLyG/aSSud1L/TlLq/BoZ5M2xNj66IFRlT9fcT4GqDYosQ3df/G0zlR5U4UVzjAJZPpW8NlLI5lOejzwq+eS4rnWZbsjTx7ZUrq4sXdrQPmAa82Pb0HVuyZl3rrrZ7Nal/ULzdy0zBUXrMaQcU18v6ncmxd9eM/1fkdQ24Tvu+paZ2q5S6z13+anlTyVfrv4aWz/desfFfn3WEj727rNGKHJdlqsM1VompjzT+shXv7F75dj3J3K3qY7QM7DcZ2L/Aw==")),MA=function(FA){switch(FA){case Q:case m:case E:case D:return d;case Y:return w;default:return FA}},lA=function(FA){switch(FA){case a:case B:return c;case C:return u;default:return FA}},gA=function(FA,_){void 0===_&&(_=!1),this.position=FA,this.required=_};T.exports=function(){function DA(_){this.string=_,this.pos=0,this.lastPos=0,this.curClass=null,this.nextClass=null,this.LB8a=!1,this.LB21a=!1,this.LB30a=0}var FA=DA.prototype;return FA.nextCodePoint=function(){var dA=this.string.charCodeAt(this.pos++),uA=this.string.charCodeAt(this.pos);return 55296<=dA&&dA<=56319&&56320<=uA&&uA<=57343?(this.pos++,1024*(dA-55296)+(uA-56320)+65536):dA},FA.nextCharClass=function(){return MA(cA.get(this.nextCodePoint()))},FA.getSimpleBreak=function(){switch(this.nextClass){case C:return!1;case c:case a:case B:return this.curClass=c,!1;case h:return this.curClass=h,!1}return null},FA.getPairTableBreak=function(dA){var uA=!1;switch(aA[this.curClass][this.nextClass]){case N:uA=!0;break;case F:uA=dA===C;break;case z:if(!(uA=dA===C))return!1;break;case L:if(dA!==C)return uA}return this.LB8a&&(uA=!1),!this.LB21a||this.curClass!==g&&this.curClass!==f?this.LB21a=this.curClass===y:(uA=!1,this.LB21a=!1),this.curClass===p?(this.LB30a++,2==this.LB30a&&this.nextClass===p&&(uA=!0,this.LB30a=0)):this.LB30a=0,this.curClass=this.nextClass,uA},FA.nextBreak=function(){if(null==this.curClass){var dA=this.nextCharClass();this.curClass=lA(dA),this.nextClass=dA,this.LB8a=dA===e,this.LB30a=0}for(;this.pos=XA)return $;switch($){case"%s":return String(bA[NA++]);case"%d":return Number(bA[NA++]);case"%j":try{return JSON.stringify(bA[NA++])}catch(V){return"[Circular]"}default:return $}}),O=bA[NA];NA=3&&(NA.depth=arguments[2]),arguments.length>=4&&(NA.colors=arguments[3]),y(CA)?NA.showHidden=CA:CA&&I._extend(NA,CA),F(NA.showHidden)&&(NA.showHidden=!1),F(NA.depth)&&(NA.depth=2),F(NA.colors)&&(NA.colors=!1),F(NA.customInspect)&&(NA.customInspect=!0),NA.colors&&(NA.stylize=E),e(NA,uA,NA.depth)}function E(uA,CA){var NA=B.styles[CA];return NA?"\x1b["+B.colors[NA][0]+"m"+uA+"\x1b["+B.colors[NA][1]+"m":uA}function u(uA,CA){return uA}function e(uA,CA,NA){if(uA.customInspect&&CA&&AA(CA.inspect)&&CA.inspect!==I.inspect&&(!CA.constructor||CA.constructor.prototype!==CA)){var bA=CA.inspect(NA,uA);return U(bA)||(bA=e(uA,bA,NA)),bA}var XA=function f(uA,CA){if(F(CA))return uA.stylize("undefined","undefined");if(U(CA)){var NA="'"+JSON.stringify(CA).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return uA.stylize(NA,"string")}return D(CA)?uA.stylize(""+CA,"number"):y(CA)?uA.stylize(""+CA,"boolean"):p(CA)?uA.stylize("null","null"):void 0}(uA,CA);if(XA)return XA;var q=Object.keys(CA),O=function C(uA){var CA={};return uA.forEach(function(NA,bA){CA[NA]=!0}),CA}(q);if(uA.showHidden&&(q=Object.getOwnPropertyNames(CA)),aA(CA)&&(q.indexOf("message")>=0||q.indexOf("description")>=0))return g(CA);if(0===q.length){if(AA(CA))return uA.stylize("[Function"+(CA.name?": "+CA.name:"")+"]","special");if(z(CA))return uA.stylize(RegExp.prototype.toString.call(CA),"regexp");if(W(CA))return uA.stylize(Date.prototype.toString.call(CA),"date");if(aA(CA))return g(CA)}var EA,V="",hA=!1,mA=["{","}"];return Y(CA)&&(hA=!0,mA=["[","]"]),AA(CA)&&(V=" [Function"+(CA.name?": "+CA.name:"")+"]"),z(CA)&&(V=" "+RegExp.prototype.toString.call(CA)),W(CA)&&(V=" "+Date.prototype.toUTCString.call(CA)),aA(CA)&&(V=" "+g(CA)),0!==q.length||hA&&0!=CA.length?NA<0?z(CA)?uA.stylize(RegExp.prototype.toString.call(CA),"regexp"):uA.stylize("[Object]","special"):(uA.seen.push(CA),EA=hA?function w(uA,CA,NA,bA,XA){for(var q=[],O=0,$=CA.length;O<$;++O)DA(CA,String(O))?q.push(Q(uA,CA,NA,bA,String(O),!0)):q.push("");return XA.forEach(function(V){V.match(/^\d+$/)||q.push(Q(uA,CA,NA,bA,V,!0))}),q}(uA,CA,NA,O,q):q.map(function(GA){return Q(uA,CA,NA,O,GA,hA)}),uA.seen.pop(),function d(uA,CA,NA){return uA.reduce(function(q,O){return O.indexOf("\n"),q+O.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?NA[0]+(""===CA?"":CA+"\n ")+" "+uA.join(",\n ")+" "+NA[1]:NA[0]+CA+" "+uA.join(", ")+" "+NA[1]}(EA,V,mA)):mA[0]+V+mA[1]}function g(uA){return"["+Error.prototype.toString.call(uA)+"]"}function Q(uA,CA,NA,bA,XA,q){var O,$,V;if((V=Object.getOwnPropertyDescriptor(CA,XA)||{value:CA[XA]}).get?$=uA.stylize(V.set?"[Getter/Setter]":"[Getter]","special"):V.set&&($=uA.stylize("[Setter]","special")),DA(bA,XA)||(O="["+XA+"]"),$||(uA.seen.indexOf(V.value)<0?($=p(NA)?e(uA,V.value,null):e(uA,V.value,NA-1)).indexOf("\n")>-1&&($=q?$.split("\n").map(function(hA){return" "+hA}).join("\n").substr(2):"\n"+$.split("\n").map(function(hA){return" "+hA}).join("\n")):$=uA.stylize("[Circular]","special")),F(O)){if(q&&XA.match(/^\d+$/))return $;(O=JSON.stringify(""+XA)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(O=O.substr(1,O.length-2),O=uA.stylize(O,"name")):(O=O.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),O=uA.stylize(O,"string"))}return O+": "+$}function Y(uA){return Array.isArray(uA)}function y(uA){return"boolean"==typeof uA}function p(uA){return null===uA}function D(uA){return"number"==typeof uA}function U(uA){return"string"==typeof uA}function F(uA){return void 0===uA}function z(uA){return L(uA)&&"[object RegExp]"===MA(uA)}function L(uA){return"object"==typeof uA&&null!==uA}function W(uA){return L(uA)&&"[object Date]"===MA(uA)}function aA(uA){return L(uA)&&("[object Error]"===MA(uA)||uA instanceof Error)}function AA(uA){return"function"==typeof uA}function MA(uA){return Object.prototype.toString.call(uA)}function lA(uA){return uA<10?"0"+uA.toString(10):uA.toString(10)}I.debuglog=function(uA){if(uA=uA.toUpperCase(),!c[uA])if(h.test(uA)){var CA=l.pid;c[uA]=function(){var NA=I.format.apply(I,arguments);console.error("%s %d: %s",uA,CA,NA)}}else c[uA]=function(){};return c[uA]},I.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"},I.types=n(5955),I.isArray=Y,I.isBoolean=y,I.isNull=p,I.isNullOrUndefined=function m(uA){return null==uA},I.isNumber=D,I.isString=U,I.isSymbol=function N(uA){return"symbol"==typeof uA},I.isUndefined=F,I.isRegExp=z,I.types.isRegExp=z,I.isObject=L,I.isDate=W,I.types.isDate=W,I.isError=aA,I.types.isNativeError=aA,I.isFunction=AA,I.isPrimitive=function cA(uA){return null===uA||"boolean"==typeof uA||"number"==typeof uA||"string"==typeof uA||"symbol"==typeof uA||void 0===uA},I.isBuffer=n(384);var gA=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function BA(){var uA=new Date,CA=[lA(uA.getHours()),lA(uA.getMinutes()),lA(uA.getSeconds())].join(":");return[uA.getDate(),gA[uA.getMonth()],CA].join(" ")}function DA(uA,CA){return Object.prototype.hasOwnProperty.call(uA,CA)}I.log=function(){console.log("%s - %s",BA(),I.format.apply(I,arguments))},I.inherits=n(5717),I._extend=function(uA,CA){if(!CA||!L(CA))return uA;for(var NA=Object.keys(CA),bA=NA.length;bA--;)uA[NA[bA]]=CA[NA[bA]];return uA};var FA="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function _(uA,CA){if(!uA){var NA=new Error("Promise was rejected with a falsy value");NA.reason=uA,uA=NA}return CA(uA)}I.promisify=function(CA){if("function"!=typeof CA)throw new TypeError('The "original" argument must be of type Function');if(FA&&CA[FA]){var NA;if("function"!=typeof(NA=CA[FA]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(NA,FA,{value:NA,enumerable:!1,writable:!1,configurable:!0}),NA}function NA(){for(var bA,XA,q=new Promise(function(V,hA){bA=V,XA=hA}),O=[],$=0;$1?D.attr[m[1]]:D.val},i.prototype.toString=function(p){return this.toStringWithIndent("",p)},i.prototype.toStringWithIndent=function(p,m){var D=p+"<"+this.name,U=m&&m.compressed?"":"\n";for(var F in this.attr)Object.prototype.hasOwnProperty.call(this.attr,F)&&(D+=" "+F+'="'+Y(this.attr[F])+'"');if(1===this.children.length&&"element"!==this.children[0].type)D+=">"+this.children[0].toString(m)+"";else if(this.children.length){D+=">"+U;for(var z=p+(m&&m.compressed?"":" "),L=0,W=this.children.length;L"}else m&&m.html?-1!==["area","base","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"].indexOf(this.name)?D+="/>":D+=">":D+="/>";return D},o.prototype.toString=function(p){return y(Y(this.text),p)},o.prototype.toStringWithIndent=function(p,m){return p+this.toString(m)},c.prototype.toString=function(p){return""+y(this.cdata,p)+""},c.prototype.toStringWithIndent=function(p,m){return p+this.toString(m)},h.prototype.toString=function(p){return"\x3c!--"+y(Y(this.comment),p)+"--\x3e"},h.prototype.toStringWithIndent=function(p,m){return p+this.toString(m)},i.prototype.type="element",o.prototype.type="text",c.prototype.type="cdata",h.prototype.type="comment",function d(p,m){for(var D in m)m.hasOwnProperty(D)&&(p[D]=m[D])}(a.prototype,i.prototype),a.prototype._opentag=function(p){void 0===this.children?i.call(this,p):i.prototype._opentag.apply(this,arguments)},a.prototype._doctype=function(p){this.doctype+=p};var B=null;function u(){B[0]&&B[0]._opentag.apply(B[0],arguments)}function C(){B[0]&&B[0]._closetag.apply(B[0],arguments)}function e(){B[0]&&B[0]._text.apply(B[0],arguments)}function f(){B[0]&&B[0]._cdata.apply(B[0],arguments)}function g(){B[0]&&B[0]._comment.apply(B[0],arguments)}function w(){B[0]&&B[0]._doctype.apply(B[0],arguments)}function Q(){B[0]&&B[0]._error.apply(B[0],arguments)}function Y(p){return p.toString().replace(/&/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")}function y(p,m){var D=p;return m&&m.trimmed&&p.length>25&&(D=D.substring(0,25).trim()+"\u2026"),m&&m.preserveWhitespace||(D=D.trim()),D}T.exports&&!n.g.xmldocAssumeBrowser?T.exports.XmlDocument=a:this.XmlDocument=a}()},6255:function(T,I,n){"use strict";"undefined"!=typeof window&&!window.Promise&&n(3867),n(4667);function i(o){this.fs=o,this.resolving={}}i.prototype.resolve=function(o){if(!this.resolving[o]){var c=this;this.resolving[o]=new Promise(function(h,a){0===o.toLowerCase().indexOf("https://")||0===o.toLowerCase().indexOf("http://")?function(o){return new Promise(function(c,h){var a=new XMLHttpRequest;a.open("GET",o,!0),a.responseType="arraybuffer",a.onreadystatechange=function(){4===a.readyState&&(a.status>=200&&a.status<300||setTimeout(function(){h(new TypeError('Failed to fetch (url: "'+o+'")'))},0))},a.onload=function(){a.status>=200&&a.status<300&&c(a.response)},a.onerror=function(){setTimeout(function(){h(new TypeError('Network request failed (url: "'+o+'")'))},0)},a.ontimeout=function(){setTimeout(function(){h(new TypeError('Network request failed (url: "'+o+'")'))},0)},a.send()})}(o).then(function(B){c.fs.writeFileSync(o,B),h()},function(B){a(B)}):h()})}return this.resolving[o]},i.prototype.resolved=function(){var o=this;return new Promise(function(c,h){Promise.all(Object.values(o.resolving)).then(function(){c()},function(a){h(a)})})},T.exports=i},4275:function(T,I,n){"use strict";var l=n(8823).Buffer,i=n(6225).isFunction,o=n(6225).isUndefined,a=(n(6225),n(4896).saveAs),B={Roboto:{normal:"Roboto-Regular.ttf",bold:"Roboto-Medium.ttf",italics:"Roboto-Italic.ttf",bolditalics:"Roboto-MediumItalic.ttf"}};function E(C,e,f,g){this.docDefinition=C,this.tableLayouts=e||null,this.fonts=f||B,this.vfs=g}E.prototype._createDoc=function(C,e){C=C||{},this.tableLayouts&&(C.tableLayouts=this.tableLayouts);var g=new(n(8617))(this.fonts);if(n(3857).bindFS(this.vfs),!i(e))return g.createPdfKitDocument(this.docDefinition,C);var d=new(n(6255))(n(3857));for(var Y in this.fonts)this.fonts.hasOwnProperty(Y)&&(this.fonts[Y].normal&&d.resolve(this.fonts[Y].normal),this.fonts[Y].bold&&d.resolve(this.fonts[Y].bold),this.fonts[Y].italics&&d.resolve(this.fonts[Y].italics),this.fonts[Y].bolditalics&&d.resolve(this.fonts[Y].bolditalics));if(this.docDefinition.images)for(var y in this.docDefinition.images)this.docDefinition.images.hasOwnProperty(y)&&d.resolve(this.docDefinition.images[y]);var p=this;d.resolved().then(function(){var m=g.createPdfKitDocument(p.docDefinition,C);e(m)},function(m){throw m})},E.prototype._flushDoc=function(C,e){var g,f=[];C.on("readable",function(){for(var w;null!==(w=C.read(9007199254740991));)f.push(w)}),C.on("end",function(){g=l.concat(f),e(g,C._pdfMakePages)}),C.end()},E.prototype._getPages=function(C,e){if(!e)throw"_getPages is an async method and needs a callback argument";var f=this;this._createDoc(C,function(g){f._flushDoc(g,function(w,Q){e(Q)})})},E.prototype._bufferToBlob=function(C){var e;try{e=new Blob([C],{type:"application/pdf"})}catch(g){if("InvalidStateError"===g.name){var f=new Uint8Array(C);e=new Blob([f.buffer],{type:"application/pdf"})}}if(!e)throw"Could not generate blob";return e},E.prototype._openWindow=function(){var C=window.open("","_blank");if(null===C)throw"Open PDF in new window blocked by browser";return C},E.prototype._openPdf=function(C,e){e||(e=this._openWindow());try{this.getBlob(function(f){var w=(window.URL||window.webkitURL).createObjectURL(f);e.location.href=w},C)}catch(f){throw e.close(),f}},E.prototype.open=function(C,e){(C=C||{}).autoPrint=!1,this._openPdf(C,e=e||null)},E.prototype.print=function(C,e){(C=C||{}).autoPrint=!0,this._openPdf(C,e=e||null)},E.prototype.download=function(C,e,f){i(C)&&(o(e)||(f=e),e=C,C=null),C=C||"file.pdf",this.getBlob(function(g){a(g,C),i(e)&&e()},f)},E.prototype.getBase64=function(C,e){if(!C)throw"getBase64 is an async method and needs a callback argument";this.getBuffer(function(f){C(f.toString("base64"))},e)},E.prototype.getDataUrl=function(C,e){if(!C)throw"getDataUrl is an async method and needs a callback argument";this.getBuffer(function(f){C("data:application/pdf;base64,"+f.toString("base64"))},e)},E.prototype.getBlob=function(C,e){if(!C)throw"getBlob is an async method and needs a callback argument";var f=this;this.getBuffer(function(g){var w=f._bufferToBlob(g);C(w)},e)},E.prototype.getBuffer=function(C,e){if(!C)throw"getBuffer is an async method and needs a callback argument";var f=this;this._createDoc(e,function(g){f._flushDoc(g,function(w){C(w)})})},E.prototype.getStream=function(C,e){if(!i(e))return this._createDoc(C);this._createDoc(C,function(g){e(g)})},T.exports={createPdf:function(C,e,f,g){if(!function u(){try{var C=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(C,e),42===C.foo()}catch(f){return!1}}())throw"Your browser does not provide the level of support needed";return new E(C,e||n.g.pdfMake.tableLayouts,f||n.g.pdfMake.fonts,g||n.g.pdfMake.vfs)}}},3857:function(T,I,n){"use strict";var i=n(8823).Buffer;function o(){this.fileSystem={},this.dataSystem={}}function c(h){return 0===h.indexOf("/")&&(h=h.substring("/".length)),0===h.indexOf("/")&&(h=h.substring(1)),h}o.prototype.existsSync=function(h){return h=c(h),void 0!==this.fileSystem[h]||void 0!==this.dataSystem[h]},o.prototype.readFileSync=function(h,a){h=c(h);var B=this.dataSystem[h];if("string"==typeof B&&"utf8"===a)return B;if(B)return new i(B,"string"==typeof B?"base64":void 0);var E=this.fileSystem[h];if(E)return E;throw"File '"+h+"' not found in virtual file system"},o.prototype.writeFileSync=function(h,a){this.fileSystem[c(h)]=a},o.prototype.bindFS=function(h){this.dataSystem=h||{}},T.exports=new o},4498:function(T,I,n){"use strict";var l=n(6225).isString;function o(a){return"auto"===a.width}function c(a){return null==a.width||"*"===a.width||"star"===a.width}T.exports={buildColumnWidths:function i(a,B){var E=[],u=0,C=0,e=[],f=0,g=0,w=[],Q=B;a.forEach(function(D){o(D)?(E.push(D),u+=D._minWidth,C+=D._maxWidth):c(D)?(e.push(D),f=Math.max(f,D._minWidth),g=Math.max(g,D._maxWidth)):w.push(D)}),w.forEach(function(D){l(D.width)&&/\d+%/.test(D.width)&&(D.width=parseFloat(D.width)*Q/100),D._calcWidth=D.width=B)E.forEach(function(D){D._calcWidth=D._minWidth}),e.forEach(function(D){D._calcWidth=f});else{if(Y0){var m=B/e.length;e.forEach(function(D){D._calcWidth=m})}}},measureMinMax:function h(a){for(var B={min:0,max:0},E={min:0,max:0},u=0,C=0,e=a.length;C=0;z--){var W=w.styleStack.styleDictionary[N[z]];for(var aA in W)W.hasOwnProperty(aA)&&(F[aA]=W[aA])}return F}function p(N){return h(N)?N=[N,N,N,N]:B(N)&&2===N.length&&(N=[N[0],N[1],N[0],N[1]]),N}var m=[void 0,void 0,void 0,void 0];if(g.style){var U=y(B(g.style)?g.style:[g.style]);U&&(m=Y(U,m)),U.margin&&(m=p(U.margin))}return m=Y(g,m),g.margin&&(m=p(g.margin)),void 0===m[0]&&void 0===m[1]&&void 0===m[2]&&void 0===m[3]?null:m}(),g.columns)return Q(w.measureColumns(g));if(g.stack)return Q(w.measureVerticalContainer(g));if(g.ul)return Q(w.measureUnorderedList(g));if(g.ol)return Q(w.measureOrderedList(g));if(g.table)return Q(w.measureTable(g));if(void 0!==g.text)return Q(w.measureLeaf(g));if(g.toc)return Q(w.measureToc(g));if(g.image)return Q(w.measureImage(g));if(g.svg)return Q(w.measureSVG(g));if(g.canvas)return Q(w.measureCanvas(g));if(g.qr)return Q(w.measureQr(g));throw"Unrecognized document structure: "+JSON.stringify(g,E)});function Q(Y){var y=Y._margin;return y&&(Y._minWidth+=y[0]+y[2],Y._maxWidth+=y[0]+y[2]),Y}},f.prototype.convertIfBase64Image=function(g){if(/^data:image\/(jpeg|jpg|png);base64,/.test(g.image)){var w="$$pdfmake$$"+this.autoImageIndex++;this.images[w]=g.image,g.image=w}},f.prototype.measureImageWithDimensions=function(g,w){if(g.fit){var Q=w.width/w.height>g.fit[0]/g.fit[1]?g.fit[0]/w.width:g.fit[1]/w.height;g._width=g._minWidth=g._maxWidth=w.width*Q,g._height=w.height*Q}else g._width=g._minWidth=g._maxWidth=g.width||w.width,g._height=g.height||w.height*g._width/w.width,h(g.maxWidth)&&g.maxWidthg._width&&(g._width=g._minWidth=g._maxWidth=g.minWidth,g._height=g._width*w.height/w.width),h(g.minHeight)&&g.minHeight>g._height&&(g._height=g.minHeight,g._width=g._minWidth=g._maxWidth=g._height*w.width/w.height);g._alignment=this.styleStack.getProperty("alignment")},f.prototype.measureImage=function(g){this.images&&this.convertIfBase64Image(g);var w=this.imageMeasure.measureImage(g.image);return this.measureImageWithDimensions(g,w),g},f.prototype.measureSVG=function(g){var w=this.svgMeasure.measureSVG(g.svg);return this.measureImageWithDimensions(g,w),g.font=this.styleStack.getProperty("font"),g.svg=this.svgMeasure.writeDimensions(g.svg,{width:g._width,height:g._height}),g},f.prototype.measureLeaf=function(g){g._textRef&&g._textRef._textNodeRef.text&&(g.text=g._textRef._textNodeRef.text);var w=this.styleStack.clone();w.push(g);var Q=this.textTools.buildInlines(g.text,w);return g._inlines=Q.items,g._minWidth=Q.minWidth,g._maxWidth=Q.maxWidth,g},f.prototype.measureToc=function(g){if(g.toc.title&&(g.toc.title=this.measureNode(g.toc.title)),g.toc._items.length>0){for(var w=[],Q=g.toc.textStyle||{},d=g.toc.numberStyle||Q,Y=g.toc.textMargin||[0,0,0,0],y=0,p=g.toc._items.length;y=26?F((z/26>>0)-1):"")+"abcdefghijklmnopqrstuvwxyz"[z%26>>0]}(N-1)}function y(N){if(N<1||N>4999)return N.toString();var W,F=N,z={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},L="";for(W in z)for(;F>=z[W];)L+=W,F-=z[W];return L}var m;switch(Q){case"none":m=null;break;case"upper-alpha":m=Y(g).toUpperCase();break;case"lower-alpha":m=Y(g);break;case"upper-roman":m=y(g);break;case"lower-roman":m=y(g).toLowerCase();break;default:m=function p(N){return N.toString()}(g)}if(null===m)return{};d&&(B(d)?(d[0]&&(m=d[0]+m),d[1]&&(m+=d[1]),m+=" "):m+=d+" ");var D={text:m},U=w.getProperty("markerColor");return U&&(D.color=U),{_inlines:this.textTools.buildInlines(D,w).items}},f.prototype.measureUnorderedList=function(g){var w=this.styleStack.clone(),Q=g.ul;g.type=g.type||"disc",g._gapSize=this.gapSizeForList(),g._minWidth=0,g._maxWidth=0;for(var d=0,Y=Q.length;d0?w.length-1:0;return g._minWidth=Y.min+g._gap*y,g._maxWidth=Y.max+g._gap*y,g},f.prototype.measureTable=function(g){(function cA(MA){if(MA.table.widths||(MA.table.widths="auto"),c(MA.table.widths))for(MA.table.widths=[MA.table.widths];MA.table.widths.length1?(aA(m,Q,D.colSpan),w.push({col:Q,span:D.colSpan,minWidth:D._minWidth,maxWidth:D._maxWidth})):(p._minWidth=Math.max(p._minWidth,D._minWidth),p._maxWidth=Math.max(p._maxWidth,D._maxWidth))),D.rowSpan&&D.rowSpan>1&&AA(g.table,d,Q,D.rowSpan)}}!function L(){for(var MA,lA,gA=0,BA=w.length;gA0)for(MA=_/DA.span,lA=0;lA0)for(MA=dA/DA.span,lA=0;lAE.page?B:E.page>B.page?E:B.y>E.y?B:E).page,x:u.x,y:u.y,availableHeight:u.availableHeight,availableWidth:u.availableWidth}}(this,B.bottomMost)},o.prototype.markEnding=function(B){this.page=B._columnEndingContext.page,this.x=B._columnEndingContext.x,this.y=B._columnEndingContext.y,this.availableWidth=B._columnEndingContext.availableWidth,this.availableHeight=B._columnEndingContext.availableHeight,this.lastColumnWidth=B._columnEndingContext.lastColumnWidth},o.prototype.saveContextInEndingCell=function(B){B._columnEndingContext={page:this.page,x:this.x,y:this.y,availableHeight:this.availableHeight,availableWidth:this.availableWidth,lastColumnWidth:this.lastColumnWidth}},o.prototype.completeColumnGroup=function(B){var E=this.snapshots.pop();this.calculateBottomMost(E),this.endingCell=null,this.x=E.x;var u=E.bottomMost.y;B&&(E.page===E.bottomMost.page?E.y+B>u&&(u=E.y+B):u+=B),this.y=u,this.page=E.bottomMost.page,this.availableWidth=E.availableWidth,this.availableHeight=E.bottomMost.availableHeight,B&&(this.availableHeight-=u-E.bottomMost.y),this.lastColumnWidth=E.lastColumnWidth},o.prototype.addMargin=function(B,E){this.x+=B,this.availableWidth-=B+(E||0)},o.prototype.moveDown=function(B){return this.y+=B,this.availableHeight-=B,this.availableHeight>0},o.prototype.initializePage=function(){this.y=this.pageMargins.top,this.availableHeight=this.getCurrentPage().pageSize.height-this.pageMargins.top-this.pageMargins.bottom,this.pageSnapshot().availableWidth=this.getCurrentPage().pageSize.width-this.pageMargins.left-this.pageMargins.right},o.prototype.pageSnapshot=function(){return this.snapshots[0]?this.snapshots[0]:this},o.prototype.moveTo=function(B,E){null!=B&&(this.x=B,this.availableWidth=this.getCurrentPage().pageSize.width-this.x-this.pageMargins.right),null!=E&&(this.y=E,this.availableHeight=this.getCurrentPage().pageSize.height-this.y-this.pageMargins.bottom)},o.prototype.moveToRelative=function(B,E){null!=B&&(this.x=this.x+B),null!=E&&(this.y=this.y+E)},o.prototype.beginDetachedBlock=function(){this.snapshots.push({x:this.x,y:this.y,availableHeight:this.availableHeight,availableWidth:this.availableWidth,page:this.page,endingCell:this.endingCell,lastColumnWidth:this.lastColumnWidth})},o.prototype.endDetachedBlock=function(){var B=this.snapshots.pop();this.x=B.x,this.y=B.y,this.availableWidth=B.availableWidth,this.availableHeight=B.availableHeight,this.page=B.page,this.endingCell=B.endingCell,this.lastColumnWidth=B.lastColumnWidth};var h=function(B,E){return(E=function c(B,E){return void 0===B?E:i(B)&&"landscape"===B.toLowerCase()?"landscape":"portrait"}(E,B.pageSize.orientation))!==B.pageSize.orientation?{orientation:E,width:B.pageSize.height,height:B.pageSize.width}:{orientation:B.pageSize.orientation,width:B.pageSize.width,height:B.pageSize.height}};o.prototype.moveToNextPage=function(B){var E=this.page+1,u=this.page,C=this.y,e=E>=this.pages.length;if(e){var f=this.availableWidth,g=this.getCurrentPage().pageSize.orientation,w=h(this.getCurrentPage(),B);this.addPage(w),g===w.orientation&&(this.availableWidth=f)}else this.page=E,this.initializePage();return{newPageCreated:e,prevPage:u,prevY:C,y:this.y}},o.prototype.addPage=function(B){var E={items:[],pageSize:B};return this.pages.push(E),this.backgroundLength.push(0),this.page=this.pages.length-1,this.initializePage(),this.tracker.emit("pageAdded"),E},o.prototype.getCurrentPage=function(){return this.page<0||this.page>=this.pages.length?null:this.pages[this.page]},o.prototype.getCurrentPosition=function(){var B=this.getCurrentPage().pageSize,E=B.height-this.pageMargins.top-this.pageMargins.bottom,u=B.width-this.pageMargins.left-this.pageMargins.right;return{pageNumber:this.page+1,pageOrientation:B.orientation,pageInnerHeight:E,pageInnerWidth:u,left:this.x,top:this.y,verticalRatio:(this.y-this.pageMargins.top)/E,horizontalRatio:(this.x-this.pageMargins.left)/u}},T.exports=o},1196:function(T,I,n){"use strict";var l=n(4775),i=n(6225).isNumber,o=n(6225).pack,c=n(6225).offsetVector,h=n(3858);function a(u,C){this.context=u,this.contextStack=[],this.tracker=C}function B(u,C,e){null==e||e<0||e>u.items.length?u.items.push(C):u.items.splice(e,0,C)}a.prototype.addLine=function(u,C,e){var f=u.getHeight(),g=this.context,w=g.getCurrentPage(),Q=this.getCurrentPositionOnPage();return!(g.availableHeight0&&u.inlines[0].alignment,g=0;switch(f){case"right":g=C-e;break;case"center":g=(C-e)/2}if(g&&(u.x=(u.x||0)+g),"justify"===f&&!u.newLineForced&&!u.lastLineInParagraph&&u.inlines.length>1)for(var w=(C-e)/(u.inlines.length-1),Q=1,d=u.inlines.length;Q0)&&(void 0===u._x&&(u._x=u.x||0),u.x=f.x+u._x,u.y=f.y,this.alignImage(u),B(g,{type:e||"image",item:u},C),f.moveDown(u._height),w)},a.prototype.addSVG=function(u,C){return this.addImage(u,C,"svg")},a.prototype.addQr=function(u,C){var e=this.context,f=e.getCurrentPage(),g=this.getCurrentPositionOnPage();if(!f||void 0===u.absolutePosition&&e.availableHeightg.availableHeight||(u.items.forEach(function(Q){switch(Q.type){case"line":var d=function E(u){var C=new l(u.maxWidth);for(var e in u)u.hasOwnProperty(e)&&(C[e]=u[e]);return C}(Q.item);d._node&&(d._node.positions[0].pageNumber=g.page+1),d.x=(d.x||0)+(C?u.xOffset||0:g.x),d.y=(d.y||0)+(e?u.yOffset||0:g.y),w.items.push({type:"line",item:d});break;case"vector":var Y=o(Q.item);c(Y,C?u.xOffset||0:g.x,e?u.yOffset||0:g.y),w.items.push({type:"vector",item:Y});break;case"image":case"svg":var y=o(Q.item);y.x=(y.x||0)+(C?u.xOffset||0:g.x),y.y=(y.y||0)+(e?u.yOffset||0:g.y),w.items.push({type:Q.type,item:y})}}),f||g.moveDown(u.height),0))},a.prototype.pushContext=function(u,C){void 0===u&&(C=this.context.getCurrentPage().height-this.context.pageMargins.top-this.context.pageMargins.bottom,u=this.context.availableWidth),i(u)&&(u=new h({width:u,height:C},{left:0,right:0,top:0,bottom:0})),this.contextStack.push(this.context),this.context=u},a.prototype.popContext=function(){this.context=this.contextStack.pop()},a.prototype.getCurrentPositionOnPage=function(){return(this.contextStack[0]||this.context).getCurrentPosition()},T.exports=a},2249:function(T,I,n){"use strict";var l=n(6225).isArray;function o(c,h){for(var a in this.fonts={},this.pdfKitDoc=h,this.fontCache={},c)if(c.hasOwnProperty(a)){var B=c[a];this.fonts[a]={normal:B.normal,bold:B.bold,italics:B.italics,bolditalics:B.bolditalics}}}o.prototype.getFontType=function(c,h){return function i(c,h){var a="normal";return c&&h?a="bolditalics":c?a="bold":h&&(a="italics"),a}(c,h)},o.prototype.getFontFile=function(c,h,a){var B=this.getFontType(h,a);return this.fonts[c]&&this.fonts[c][B]?this.fonts[c][B]:null},o.prototype.provideFont=function(c,h,a){var B=this.getFontType(h,a);if(null===this.getFontFile(c,h,a))throw new Error("Font '"+c+"' in style '"+B+"' is not defined in the font section of the document definition.");if(this.fontCache[c]=this.fontCache[c]||{},!this.fontCache[c][B]){var E=this.fonts[c][B];l(E)||(E=[E]),this.fontCache[c][B]=this.pdfKitDoc.font.apply(this.pdfKitDoc,E)._font}return this.fontCache[c][B]},T.exports=o},6225:function(T){"use strict";function i(g){return Array.isArray(g)}T.exports={isString:function I(g){return"string"==typeof g||g instanceof String},isNumber:function n(g){return"number"==typeof g||g instanceof Number},isBoolean:function l(g){return"boolean"==typeof g},isArray:i,isFunction:function o(g){return"function"==typeof g},isObject:function c(g){return null!==g&&"object"==typeof g},isNull:function h(g){return null===g},isUndefined:function a(g){return void 0===g},pack:function B(){for(var g={},w=0,Q=arguments.length;w0})).forEach(function(V){var hA={};["id","text","ul","ol","table","image","qr","canvas","svg","columns","headlineLevel","style","pageBreak","pageOrientation","width","height"].forEach(function(mA){void 0!==V[mA]&&(hA[mA]=V[mA])}),hA.startPosition=V.positions[0],hA.pageNumbers=Array.from(new Set(V.positions.map(function(mA){return mA.pageNumber}))),hA.pages=dA.length,hA.stack=C(V.stack),V.nodeInfo=hA});for(var uA=0;uA<_.length;uA++){var CA=_[uA];if("before"!==CA.pageBreak&&!CA.pageBreakCalculated){CA.pageBreakCalculated=!0;var NA=CA.nodeInfo.pageNumbers[0],bA=[],XA=[],q=[];if(gA.length>1)for(var O=uA+1,$=_.length;O<$;O++)_[O].nodeInfo.pageNumbers.indexOf(NA)>-1&&bA.push(_[O].nodeInfo),gA.length>2&&_[O].nodeInfo.pageNumbers.indexOf(NA+1)>-1&&XA.push(_[O].nodeInfo);if(gA.length>3)for(O=0;O-1&&q.push(_[O].nodeInfo);if(gA(CA.nodeInfo,bA,XA,q))return CA.pageBreak="before",!0}}return!1}this.docPreprocessor=new i,this.docMeasure=new o(z,L,W,this.imageMeasure,this.svgMeasure,this.tableLayouts,MA);for(var FA=this.tryLayoutDocument(F,z,L,W,aA,AA,cA,MA,lA);BA(FA.linearNodeList,FA.pages);)FA.linearNodeList.forEach(function(dA){dA.resetXY()}),FA=this.tryLayoutDocument(F,z,L,W,aA,AA,cA,MA,lA);return FA.pages},U.prototype.tryLayoutDocument=function(F,z,L,W,aA,AA,cA,MA,lA,gA){this.linearNodeList=[],F=this.docPreprocessor.preprocessDocument(F),F=this.docMeasure.measureDocument(F),this.writer=new h(new c(this.pageSize,this.pageMargins),this.tracker);var BA=this;return this.writer.context().tracker.startTracking("pageAdded",function(){BA.addBackground(aA)}),this.addBackground(aA),this.processNode(F),this.addHeadersAndFooters(AA,cA),null!=lA&&this.addWatermark(lA,z,W),{pages:this.writer.context().pages,linearNodeList:this.linearNodeList}},U.prototype.addBackground=function(F){var z=Y(F)?F:function(){return F},L=this.writer.context(),W=L.getCurrentPage().pageSize,aA=z(L.page+1,W);aA&&(this.writer.beginUnbreakableBlock(W.width,W.height),aA=this.docPreprocessor.preprocessDocument(aA),this.processNode(this.docMeasure.measureDocument(aA)),this.writer.commitUnbreakableBlock(0,0),L.backgroundLength[L.page]+=aA.positions.length)},U.prototype.addStaticRepeatable=function(F,z){this.addDynamicRepeatable(function(){return JSON.parse(JSON.stringify(F))},z)},U.prototype.addDynamicRepeatable=function(F,z){for(var W=0,aA=this.writer.context().pages.length;W1;)_.push({fontSize:NA}),(dA=FA.sizeOfRotatedText(BA.text,BA.angle,_)).width>gA.width?NA=(uA+(CA=NA))/2:dA.widthgA.height?(uA+(CA=NA))/2:((uA=NA)+CA)/2),_.pop();return NA}(this.pageSize,F,z));var W={text:F.text,font:z.provideFont(F.font,F.bold,F.italics),fontSize:F.fontSize,color:F.color,opacity:F.opacity,angle:F.angle};W._size=function MA(gA,BA){var DA=new y(BA),FA=new p(null,{font:gA.font,bold:gA.bold,italics:gA.italics});return FA.push({fontSize:gA.fontSize}),{size:DA.sizeOfString(gA.text,FA),rotatedSize:DA.sizeOfRotatedText(gA.text,gA.angle,FA)}}(F,z);for(var aA=this.writer.context().pages,AA=0,cA=aA.length;AA0;lA--)MA.push(cA);return MA}(F._gap);W&&(L-=(W.length-1)*F._gap),a.buildColumnWidths(z,L);var aA=this.processRow(z,z,W);D(F.positions,aA.positions)},U.prototype.processRow=function(F,z,L,W,aA,AA){var cA=this,MA=[],lA=[];return this.tracker.auto("pageChanged",function gA(FA){for(var _,dA=0,uA=MA.length;dA1)for(var NA=1;NAFA?L[FA]:0}function DA(FA,_){if(FA.rowSpan&&FA.rowSpan>1){var dA=aA+FA.rowSpan-1;if(dA>=W.length)throw"Row span for column "+_+" (with indexes starting from 0) exceeded row count";return W[dA][_]}return null}},U.prototype.processList=function(F,z){var AA,L=this,W=F?z.ol:z.ul,aA=z._gapSize;this.writer.context().addMargin(aA.width),this.tracker.auto("lineAdded",function cA(MA){if(AA){var lA=AA;if(AA=null,lA.canvas){var gA=lA.canvas[0];w(gA,-lA._minWidth,0),L.writer.addVector(gA)}else if(lA._inlines){var BA=new E(L.pageSize.width);BA.addInline(lA._inlines[0]),BA.x=-lA._minWidth,BA.y=MA.getAscenderHeight()-BA.getAscenderHeight(),L.writer.addLine(BA,!0)}}},function(){W.forEach(function(MA){AA=MA.listMarker,L.processNode(MA),D(z.positions,MA.positions)})}),this.writer.context().addMargin(-aA.width)},U.prototype.processTable=function(F){var z=new B(F);z.beginTable(this.writer);for(var L=F.table.heights,W=0,aA=F.table.body.length;W0&&(L.hasEnoughSpaceForInline(F._inlines[0],F._inlines.slice(1))||aA);){var AA=!1,cA=F._inlines.shift();if(aA=!1,!cA.noWrap&&cA.text.length>1&&cA.width>L.getAvailableWidth()){var MA=cA.width/cA.text.length,lA=Math.floor(L.getAvailableWidth()/MA);if(lA<1&&(lA=1),lA0){var u=B.pages[0];if(u.xOffset=h,u.yOffset=a,E>1)if(void 0!==h||void 0!==a)u.height=B.getCurrentPage().pageSize.height-B.pageMargins.top-B.pageMargins.bottom;else{u.height=this.writer.context.getCurrentPage().pageSize.height-this.writer.context.pageMargins.top-this.writer.context.pageMargins.bottom;for(var C=0,e=this.repeatables.length;CXA.item.y2?XA.item.y1:XA.item.y2:0}(XA)}var NA=N(dA||40),bA=NA.top;return _.forEach(function(XA){XA.items.forEach(function(q){var O=CA(q);O>bA&&(bA=O)})}),bA+=NA.bottom}function U(_,dA){_&&"auto"===_.height&&(_.height=1/0);var CA=function z(_){if(C(_)){var dA=c[_.toUpperCase()];if(!dA)throw"Page size "+_+" not recognized";return{width:dA[0],height:dA[1]}}return _}(_||"A4");return function uA(NA){return!!C(NA)&&("portrait"===(NA=NA.toLowerCase())&&CA.width>CA.height||"landscape"===NA&&CA.widthCA.height?"landscape":"portrait",CA}function N(_){if(e(_))_={left:_,right:_,top:_,bottom:_};else if(g(_))if(2===_.length)_={left:_[0],top:_[1],right:_[0],bottom:_[1]};else{if(4!==_.length)throw"Invalid pageMargins definition";_={left:_[0],top:_[1],right:_[2],bottom:_[3]}}return _}function L(_,dA){_.pageSize.orientation!==(dA.options.size[0]>dA.options.size[1]?"landscape":"portrait")&&(dA.options.size=[dA.options.size[1],dA.options.size[0]])}function aA(_,dA){var uA=_;return dA.sup&&(uA-=.75*dA.fontSize),dA.sub&&(uA+=.35*dA.fontSize),uA}function AA(_,dA,uA,CA,NA){function bA(ot,TA){var it,mt,It=new E(null);if(w(ot.positions))throw"Page reference id not found";var ut=ot.positions[0].pageNumber.toString();switch(TA.text=ut,it=It.widthOfString(TA.text,TA.font,TA.fontSize,TA.characterSpacing,TA.fontFeatures),mt=TA.width-it,TA.width=it,TA.alignment){case"right":TA.x+=mt;break;case"center":TA.x+=mt/2}}_._pageNodeRef&&bA(_._pageNodeRef,_.inlines[0]),dA=dA||0,uA=uA||0;var XA=_.getHeight(),O=XA-_.getAscenderHeight();B.drawBackground(_,dA,uA,CA,NA);for(var $=0,V=_.inlines.length;$1){var XA=_.points[0],q=_.points[_.points.length-1];(_.closePath||XA.x===q.x&&XA.y===q.y)&&uA.closePath()}break;case"path":uA.path(_.d)}if(_.linearGradient&&CA){var O=1/(_.linearGradient.length-1);for(NA=0;NA<_.linearGradient.length;NA++)CA.stop(NA*O,_.linearGradient[NA]);_.color=CA}Q(_.color)&&(_.color=d(_.color,dA));var $=e(_.fillOpacity)?_.fillOpacity:1,V=e(_.strokeOpacity)?_.strokeOpacity:1;_.color&&_.lineColor?(uA.fillColor(_.color,$),uA.strokeColor(_.lineColor,V),uA.fillAndStroke()):_.color?(uA.fillColor(_.color,$),uA.fill()):(uA.strokeColor(_.lineColor||"black",V),uA.stroke())}function lA(_,dA,uA,CA){var NA=e(_.opacity)?_.opacity:1;if(CA.opacity(NA),_.cover){var bA=_.cover.align||"center",XA=_.cover.valign||"center",q=_.cover.width?_.cover.width:_.width,O=_.cover.height?_.cover.height:_.height;CA.save(),CA.rect(_.x,_.y,q,O).clip(),CA.image(_.image,_.x,_.y,{cover:[q,O],align:bA,valign:XA}),CA.restore()}else CA.image(_.image,_.x,_.y,{width:_._width,height:_._height});_.link&&CA.link(_.x,_.y,_._width,_._height,_.link),_.linkToPage&&(CA.ref({Type:"Action",S:"GoTo",D:[_.linkToPage,0,0]}).end(),CA.annotate(_.x,_.y,_._width,_._height,{Subtype:"Link",Dest:[_.linkToPage-1,"XYZ",null,null,null]})),_.linkToDestination&&CA.goTo(_.x,_.y,_._width,_._height,_.linkToDestination)}function gA(_,dA,uA,CA,NA){var bA=Object.assign({width:_._width,height:_._height,assumePt:!0},_.options);bA.fontCallback=function(XA,q,O){var $=XA.split(",").map(function(nA){return nA.trim().replace(/('|")/g,"")}),V=function(_,dA,uA){for(var CA=0;CA-1&&(bA=bA.slice(0,XA)),uA.height===1/0){var q=D(bA,_.pageMargins);this.pdfKitDoc.options.size=[uA.width,q]}var O=function FA(_,dA){var uA={};return Object.keys(_).forEach(function(CA){var NA=_[CA];uA[CA]=dA.pattern(NA.boundingBox,NA.xStep,NA.yStep,NA.pattern,NA.colored)}),uA}(_.patterns||{},this.pdfKitDoc);if(function W(_,dA,uA,CA,NA){uA._pdfMakePages=_,uA.addPage();var bA=0;NA&&_.forEach(function(mA){bA+=mA.items.length});var XA=0;NA=NA||function(){};for(var q=0;q<_.length;q++){q>0&&(L(_[q],uA),uA.addPage(uA.options));for(var O=_[q],$=0,V=O.items.length;$=128?285:0);var d=[[]];for(w=0;w<30;++w){for(var Y=d[w],y=[],p=0;p<=w;++p)y.push(g[(p6},W=function(q,O){var $=-8&function(q){var O=I[q],$=16*q*q+128*q+64;return F(q)&&($-=36),O[2].length&&($-=25*O[2].length*O[2].length-10*O[2].length-55),$}(q),V=I[q];return $-8*V[0][O]*V[1][O]},aA=function(q,O){switch(O){case 1:return q<10?10:q<27?12:14;case 2:return q<10?9:q<27?11:13;case 4:return q<10?8:16;case 8:return q<10?8:q<27?10:12}},AA=function(q,O,$){var V=W(q,$)-4-aA(q,O);switch(O){case 1:return 3*(V/10|0)+(V%10<4?0:V%10<7?1:2);case 2:return 2*(V/11|0)+(V%11<6?0:1);case 4:return V/8|0;case 8:return V/13|0}},lA=function(q,O){for(var $=q.slice(0),V=q.length,hA=O.length,mA=0;mA=0)for(var EA=0;EA=0;--mA)hA>>V+mA&1&&(hA^=$<>nA&1;return q},uA=function(q){for(var mA=function(JA){for(var VA=0,rt=0;rt=5&&(VA+=JA[rt]-5+3);for(rt=5;rt=4*yA||JA[rt+1]>=4*yA)&&(VA+=40)}return VA},nA=q.length,EA=0,GA=0,et=0;et=nA){for(hA.push(mA|TA>>(it-=nA));it>=8;)hA.push(TA>>(it-=8)&255);mA=0,nA=8}it>0&&(mA|=(TA&(1<>3);nA=function(q,O,$){for(var V=[],hA=q.length/O|0,mA=0,nA=O-q.length%O,EA=0;EA>Mt&1,hA[It+yA][ut+Mt]=1};for(nA(0,0,9,9,[127,65,93,93,93,65,383,0,64]),nA($-8,0,8,9,[256,127,65,93,93,93,65,127]),nA(0,$-8,9,8,[254,130,186,186,186,130,254,0,0]),mA=9;mA<$-8;++mA)V[6][mA]=V[mA][6]=1&~mA,hA[6][mA]=hA[mA][6]=1;var EA=O[2],GA=EA.length;for(mA=0;mA>mt++&1,hA[mA][$-11+TA]=hA[$-11+TA][mA]=1}return{matrix:V,reserved:hA}}(O),GA=EA.matrix,et=EA.reserved;if(function(q,O,$){for(var V=q.length,hA=0,mA=-1,nA=V-1;nA>=0;nA-=2){6==nA&&--nA;for(var EA=mA<0?V-1:0,GA=0;GAnA-2;--et)O[EA][et]||(q[EA][et]=$[hA>>3]>>(7&~hA)&1,++hA);EA+=mA}mA=-mA}}(GA,et,nA),hA<0){_(GA,et,0),dA(GA,0,V,0);var ot=0,TA=uA(GA);for(_(GA,et,0),hA=1;hA<8;++hA){_(GA,et,hA),dA(GA,0,V,hA);var it=uA(GA);TA>it&&(TA=it,ot=hA),_(GA,et,hA)}hA=ot}return _(GA,et,hA),dA(GA,0,V,hA),GA};function NA(q,O){var $={numeric:1,alphanumeric:2,octet:4},hA=(O=O||{}).version||-1,mA={L:1,M:0,Q:3,H:2}[(O.eccLevel||"L").toUpperCase()],nA=O.mode?$[O.mode.toLowerCase()]:-1,EA="mask"in O?O.mask:-1;if(nA<0)nA="string"==typeof q?q.match(h)?1:q.match(B)?2:4:4;else if(1!=nA&&2!=nA&&4!=nA)throw"invalid or unsupported mode";if(null===(q=function(q,O){switch(q){case 1:return O.match(h)?O:null;case 2:return O.match(a)?O.toUpperCase():null;case 4:if("string"==typeof O){for(var $=[],V=0;V>6,128|63&hA):hA<65536?$.push(224|hA>>12,128|hA>>6&63,128|63&hA):$.push(240|hA>>18,128|hA>>12&63,128|hA>>6&63,128|63&hA)}return $}return O}}(nA,q)))throw"invalid data format";if(mA<0||mA>3)throw"invalid ECC level";if(hA<0){for(hA=1;hA<=40&&!(q.length<=AA(hA,nA,mA));++hA);if(hA>40)throw"too large data for the Qr format"}else if(hA<1||hA>40)throw"invalid Qr version! should be between 1 and 40";if(-1!=EA&&(EA<0||EA>8))throw"invalid mask";return CA(q,hA,nA,mA,EA)}T.exports={measure:function XA(q){var O=function bA(q,O){var $=[],V=O.background||"#fff",hA=O.foreground||"#000",mA=NA(q,O),nA=mA.length,EA=Math.floor(O.fit?O.fit/nA:5),GA=nA*EA;$.push({type:"rect",x:0,y:0,w:GA,h:GA,lineWidth:0,color:V});for(var et=0;et0;)this.styleOverrides.pop()},h.prototype.autopush=function(a){if(l(a))return 0;var B=[];a.style&&(B=i(a.style)?a.style:[a.style]);for(var E=0,u=B.length;E0&&this.pop(E),u},h.prototype.getProperty=function(a){if(this.styleOverrides)for(var B=this.styleOverrides.length-1;B>=0;B--){var E=this.styleOverrides[B];if(l(E)){var u=this.styleDictionary[E];if(u&&!o(u[a])&&!c(u[a]))return u[a]}else if(!o(E[a])&&!c(E[a]))return E[a]}return this.defaultStyle&&this.defaultStyle[a]},T.exports=h},7601:function(T,I,n){"use strict";var l=n(6513);function i(h){var a=parseFloat(h);if("number"==typeof a&&!isNaN(a))return a}function o(h){var a;try{a=new l.XmlDocument(h)}catch(B){throw new Error("SVGMeasure: "+B)}if("svg"!==a.name)throw new Error("SVGMeasure: expected document");return a}function c(){}c.prototype.measureSVG=function(h){var a=o(h),B=i(a.attr.width),E=i(a.attr.height);if((null==B||null==E)&&"string"==typeof a.attr.viewBox){var u=a.attr.viewBox.split(/[,\s]+/);if(4!==u.length)throw new Error("Unexpected svg viewbox format, should have 4 entries but found: '"+a.attr.viewBox+"'");null==B&&(B=i(u[2])),null==E&&(E=i(u[3]))}return{width:B,height:E}},c.prototype.writeDimensions=function(h,a){var B=o(h);return B.attr.width=""+a.width,B.attr.height=""+a.height,B.toString()},T.exports=c},9342:function(T,I,n){"use strict";var l=n(4498),i=n(6225).isFunction,o=n(6225).isNumber;function c(h){this.tableNode=h}c.prototype.beginTable=function(h){var a,B,E=this;this.offsets=(a=this.tableNode)._offsets,this.layout=a._layout,B=h.context().availableWidth-this.offsets.total,l.buildColumnWidths(a.table.widths,B),this.tableWidth=a._offsets.total+function u(){var f=0;return a.table.widths.forEach(function(g){f+=g._calcWidth}),f}(),this.rowSpanData=function C(){var f=[],g=0,w=0;f.push({left:0,rowSpan:0});for(var Q=0,d=E.tableNode.table.body[0].length;Q0&&D(g+p,Q,0,d.border[0]),void 0!==d.border[2]&&D(g+p,Q+y-1,2,d.border[2]);for(var m=0;m0&&D(g,Q+m,1,d.border[1]),void 0!==d.border[3]&&D(g+Y-1,Q+m,3,d.border[3])}}function D(U,N,F,z){var L=f[U][N];L.border=L.border||{},L.border[F]=z}}(this.tableNode.table.body),this.drawHorizontalLine(0,h)},c.prototype.onRowBreak=function(h,a){var B=this;return function(){var E=B.rowPaddingTop+(B.headerRows?0:B.topLineWidth);a.context().availableHeight-=B.reservedAtBottom,a.context().moveDown(E)}},c.prototype.beginRow=function(h,a){this.topLineWidth=this.layout.hLineWidth(h,this.tableNode),this.rowPaddingTop=this.layout.paddingTop(h,this.tableNode),this.bottomLineWidth=this.layout.hLineWidth(h+1,this.tableNode),this.rowPaddingBottom=this.layout.paddingBottom(h,this.tableNode),this.rowCallback=this.onRowBreak(h,a),a.tracker.startTracking("pageChanged",this.rowCallback),this.dontBreakRows&&a.beginUnbreakableBlock(),this.rowTopY=a.context().y,this.reservedAtBottom=this.bottomLineWidth+this.rowPaddingBottom,a.context().availableHeight-=this.reservedAtBottom,a.context().moveDown(this.rowPaddingTop)},c.prototype.drawHorizontalLine=function(h,a,B){var E=this.layout.hLineWidth(h,this.tableNode);if(E){var C,u=this.layout.hLineStyle(h,this.tableNode);u&&u.dash&&(C=u.dash);for(var w,Q,d,e=E/2,f=null,g=this.tableNode.table.body,Y=0,y=this.rowSpanData.length;Y0&&(N=(w=g[h-1][Y]).border?w.border[3]:this.layout.defaultBorder)&&w.borderColor&&(D=w.borderColor[3]),hz;)f.width+=this.rowSpanData[Y+z++].width||0;Y+=z-1}else if(w&&w.colSpan&&N){for(;w.colSpan>z;)f.width+=this.rowSpanData[Y+z++].width||0;Y+=z-1}else if(Q&&Q.colSpan&&U){for(;Q.colSpan>z;)f.width+=this.rowSpanData[Y+z++].width||0;Y+=z-1}else f.width+=this.rowSpanData[Y].width||0}var L=(B||0)+e;m&&f&&f.width&&(a.addVector({type:"line",x1:f.left,x2:f.left+f.width,y1:L,y2:L,lineWidth:E,dash:C,lineColor:D},!1,B),f=null,D=null,w=null,Q=null,d=null)}a.context().moveDown(E)}},c.prototype.drawVerticalLine=function(h,a,B,E,u,C,e){var f=this.layout.vLineWidth(E,this.tableNode);if(0!==f){var w,g=this.layout.vLineStyle(E,this.tableNode);g&&g.dash&&(w=g.dash);var d,Y,y,Q=this.tableNode.table.body;if(E>0&&(d=Q[C][e])&&d.borderColor&&(d.border?d.border[2]:this.layout.defaultBorder)&&(y=d.borderColor[2]),null==y&&E0&&$--}return O.push({x:C.rowSpanData[C.rowSpanData.length-1].left,index:C.rowSpanData.length-1}),O}(),w=[],Q=B&&B.length>0,d=this.tableNode.table.body;if(w.push({y0:this.rowTopY,page:Q?B[0].prevPage:e}),Q)for(u=0,E=B.length;u0&&!this.headerRows,N=U?0:this.topLineWidth,F=w[p].y0,z=w[p].y1;for(D&&(z+=this.rowPaddingBottom),a.context().page!=w[p].page&&(a.context().page=w[p].page,this.reservedAtBottom=0),u=0,E=g.length;u0&&!L&&(L=(AA=d[h][aA-1]).border?AA.border[2]:this.layout.defaultBorder),aA+11)for(var XA=1;XA1)for(XA=1;XA0&&this.rowSpanData[u].rowSpan--}this.drawHorizontalLine(h+1,a),this.headerRows&&h===this.headerRows-1&&(this.headerRepeatable=a.currentBlockToRepeatable()),this.dontBreakRows&&a.tracker.auto("pageChanged",function(){!C.headerRows&&!1!==C.layout.hLineWhenBroken&&C.drawHorizontalLine(h,a)},function(){a.commitUnbreakableBlock()}),this.headerRepeatable&&(h===this.rowsWithoutPageBreak-1||h===this.tableNode.table.body.length-1)&&(a.commitUnbreakableBlock(),a.pushToRepeatables(this.headerRepeatable),this.cleanUpRepeatables=!0,this.headerRepeatable=null)},T.exports=c},3497:function(T,I,n){"use strict";var l=n(6225).isArray,i=n(6225).isPattern,o=n(6225).getPattern;function h(E,u,C,e){var w=E.inlines[0],Q=function f(){for(var BA=0,DA=0,FA=E.inlines.length;DABA?DA:BA;return E.inlines[BA]}(),d=function g(){for(var BA=0,DA=0,FA=E.inlines.length;DA=0&&i.splice(o,1)}},I.prototype.emit=function(n){var l=Array.prototype.slice.call(arguments,1),i=this.events[n];!i||i.forEach(function(o){o.apply(this,l)})},I.prototype.auto=function(n,l,i){this.startTracking(n,l),i(),this.stopTracking(n,l)},T.exports=I},2480:function(){},5832:function(){},9862:function(){},964:function(){},3083:function(T,I,n){"use strict";var l=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?n.g:globalThis;T.exports=function(){for(var c=[],h=0;h{var xr=function(St){"use strict";var Pn,ht=Object.prototype,_t=ht.hasOwnProperty,A="function"==typeof Symbol?Symbol:{},Ct=A.iterator||"@@iterator",T=A.asyncIterator||"@@asyncIterator",I=A.toStringTag||"@@toStringTag";function n(F,z,L){return Object.defineProperty(F,z,{value:L,enumerable:!0,configurable:!0,writable:!0}),F[z]}try{n({},"")}catch(F){n=function(z,L,W){return z[L]=W}}function l(F,z,L,W){var AA=Object.create((z&&z.prototype instanceof E?z:E).prototype),cA=new D(W||[]);return AA._invoke=function Y(F,z,L){var W=o;return function(AA,cA){if(W===h)throw new Error("Generator is already running");if(W===a){if("throw"===AA)throw cA;return N()}for(L.method=AA,L.arg=cA;;){var MA=L.delegate;if(MA){var lA=y(MA,L);if(lA){if(lA===B)continue;return lA}}if("next"===L.method)L.sent=L._sent=L.arg;else if("throw"===L.method){if(W===o)throw W=a,L.arg;L.dispatchException(L.arg)}else"return"===L.method&&L.abrupt("return",L.arg);W=h;var gA=i(F,z,L);if("normal"===gA.type){if(W=L.done?a:c,gA.arg===B)continue;return{value:gA.arg,done:L.done}}"throw"===gA.type&&(W=a,L.method="throw",L.arg=gA.arg)}}}(F,L,cA),AA}function i(F,z,L){try{return{type:"normal",arg:F.call(z,L)}}catch(W){return{type:"throw",arg:W}}}St.wrap=l;var o="suspendedStart",c="suspendedYield",h="executing",a="completed",B={};function E(){}function u(){}function C(){}var e={};n(e,Ct,function(){return this});var f=Object.getPrototypeOf,g=f&&f(f(U([])));g&&g!==ht&&_t.call(g,Ct)&&(e=g);var w=C.prototype=E.prototype=Object.create(e);function Q(F){["next","throw","return"].forEach(function(z){n(F,z,function(L){return this._invoke(z,L)})})}function d(F,z){function L(AA,cA,MA,lA){var gA=i(F[AA],F,cA);if("throw"!==gA.type){var BA=gA.arg,DA=BA.value;return DA&&"object"==typeof DA&&_t.call(DA,"__await")?z.resolve(DA.__await).then(function(FA){L("next",FA,MA,lA)},function(FA){L("throw",FA,MA,lA)}):z.resolve(DA).then(function(FA){BA.value=FA,MA(BA)},function(FA){return L("throw",FA,MA,lA)})}lA(gA.arg)}var W;this._invoke=function aA(AA,cA){function MA(){return new z(function(lA,gA){L(AA,cA,lA,gA)})}return W=W?W.then(MA,MA):MA()}}function y(F,z){var L=F.iterator[z.method];if(L===Pn){if(z.delegate=null,"throw"===z.method){if(F.iterator.return&&(z.method="return",z.arg=Pn,y(F,z),"throw"===z.method))return B;z.method="throw",z.arg=new TypeError("The iterator does not provide a 'throw' method")}return B}var W=i(L,F.iterator,z.arg);if("throw"===W.type)return z.method="throw",z.arg=W.arg,z.delegate=null,B;var aA=W.arg;return aA?aA.done?(z[F.resultName]=aA.value,z.next=F.nextLoc,"return"!==z.method&&(z.method="next",z.arg=Pn),z.delegate=null,B):aA:(z.method="throw",z.arg=new TypeError("iterator result is not an object"),z.delegate=null,B)}function p(F){var z={tryLoc:F[0]};1 in F&&(z.catchLoc=F[1]),2 in F&&(z.finallyLoc=F[2],z.afterLoc=F[3]),this.tryEntries.push(z)}function m(F){var z=F.completion||{};z.type="normal",delete z.arg,F.completion=z}function D(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(p,this),this.reset(!0)}function U(F){if(F){var z=F[Ct];if(z)return z.call(F);if("function"==typeof F.next)return F;if(!isNaN(F.length)){var L=-1,W=function aA(){for(;++L=0;--W){var aA=this.tryEntries[W],AA=aA.completion;if("root"===aA.tryLoc)return L("end");if(aA.tryLoc<=this.prev){var cA=_t.call(aA,"catchLoc"),MA=_t.call(aA,"finallyLoc");if(cA&&MA){if(this.prev=0;--L){var W=this.tryEntries[L];if(W.tryLoc<=this.prev&&_t.call(W,"finallyLoc")&&this.prev=0;--z){var L=this.tryEntries[z];if(L.finallyLoc===F)return this.complete(L.completion,L.afterLoc),m(L),B}},catch:function(F){for(var z=this.tryEntries.length-1;z>=0;--z){var L=this.tryEntries[z];if(L.tryLoc===F){var W=L.completion;if("throw"===W.type){var aA=W.arg;m(L)}return aA}}throw new Error("illegal catch attempt")},delegateYield:function(F,z,L){return this.delegate={iterator:U(F),resultName:z,nextLoc:L},"next"===this.method&&(this.arg=Pn),B}},St}(oi.exports);try{regeneratorRuntime=xr}catch(St){"object"==typeof globalThis?globalThis.regeneratorRuntime=xr:Function("r","regeneratorRuntime = r")(xr)}},7757:(oi,xr,St)=>{oi.exports=St(4979)}}]); \ No newline at end of file diff --git a/frontend/636.b549737f890c9793.js b/frontend/636.b549737f890c9793.js new file mode 100644 index 00000000..dcb2127c --- /dev/null +++ b/frontend/636.b549737f890c9793.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[636],{1636:(bg,qe,h)=>{h.r(qe),h.d(qe,{LNDModule:()=>Tg});var p=h(9808),y=h(1402),tt=h(8878),e=h(5e3),_=h(7093),P=h(5899);function nt(n,i){1&n&&e._UZ(0,"mat-progress-bar",3)}let Se=(()=>{class n{constructor(t){this.router=t,this.loading=!1,this.router.events.subscribe(a=>{switch(!0){case a instanceof y.OD:this.loading=!0;break;case a instanceof y.m2:case a instanceof y.gk:case a instanceof y.Q3:this.loading=!1}})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-lnd-root"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["color","primary","mode","indeterminate",4,"ngIf"],["outlet","outlet"],["color","primary","mode","indeterminate"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,nt,1,0,"mat-progress-bar",1),e._UZ(2,"router-outlet",null,2),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",a.loading))},directives:[_.xw,_.yH,_.Wh,p.O5,y.lC,P.pW],styles:[""],data:{animation:[tt.g]}}),n})();var m=h(7579),d=h(2722),E=h(9300),Le=h(534),Z=h(801),l=h(7731),C=h(6529),F=h(5043),w=h(5620),G=h(6642),O=h(62),M=h(9444),ce=h(3954),T=h(9224),he=h(2181),q=h(3322),L=h(7423),K=h(5245);const ke=function(n){return{backgroundColor:n}};function at(n,i){if(1&n&&e._UZ(0,"span",6),2&n){const t=e.oxw();e.Q6J("ngStyle",e.VKq(1,ke,null==t.information?null:t.information.color))}}function it(n,i){if(1&n&&(e.TgZ(0,"div"),e.TgZ(1,"h4",1),e._uU(2,"Color"),e.qZA(),e.TgZ(3,"div",2),e._UZ(4,"span",7),e._uU(5),e.ALo(6,"uppercase"),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(4),e.Q6J("ngStyle",e.VKq(4,ke,null==t.information?null:t.information.color)),e.xp6(1),e.hij(" ",e.lcZ(6,2,null==t.information?null:t.information.color)," ")}}function ot(n,i){if(1&n&&(e.TgZ(0,"span",2),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}let Fe=(()=>{class n{constructor(t){this.commonService=t,this.chains=[""]}ngOnChanges(){this.information&&this.information.chains&&this.information.chains.length>0&&(this.chains=[""],this.information.chains.forEach(t=>{this.chains.push(this.commonService.titleCase(t.chain)+" "+this.commonService.titleCase(t.network))}))}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},features:[e.TTD],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(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div"),e.TgZ(2,"h4",1),e._uU(3,"Alias"),e.qZA(),e.TgZ(4,"div",2),e._uU(5),e.YNc(6,at,1,3,"span",3),e.qZA(),e.qZA(),e.YNc(7,it,7,6,"div",4),e.TgZ(8,"div"),e.TgZ(9,"h4",1),e._uU(10,"Implementation"),e.qZA(),e.TgZ(11,"div",2),e._uU(12),e.qZA(),e.qZA(),e.TgZ(13,"div"),e.TgZ(14,"h4",1),e._uU(15,"Chain"),e.qZA(),e.YNc(16,ot,2,1,"span",5),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.hij(" ",null==a.information?null:a.information.alias," "),e.xp6(1),e.Q6J("ngIf",!a.showColorFieldSeparately),e.xp6(1),e.Q6J("ngIf",a.showColorFieldSeparately),e.xp6(5),e.Oqu(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.xp6(4),e.Q6J("ngForOf",a.chains))},directives:[_.xw,_.yH,_.Wh,p.O5,p.sg,p.PC,q.Zl],pipes:[p.gd],styles:[""]}),n})();function st(n,i){if(1&n&&(e.TgZ(0,"div",2),e.TgZ(1,"div"),e.TgZ(2,"h4",3),e._uU(3,"Lightning"),e.qZA(),e.TgZ(4,"div",4),e._uU(5),e.ALo(6,"number"),e.qZA(),e._UZ(7,"mat-progress-bar",5),e.qZA(),e.TgZ(8,"div"),e.TgZ(9,"h4",3),e._uU(10,"On-chain"),e.qZA(),e.TgZ(11,"div",4),e._uU(12),e.ALo(13,"number"),e.qZA(),e._UZ(14,"mat-progress-bar",5),e.qZA(),e.TgZ(15,"div"),e.TgZ(16,"h4",3),e._uU(17,"Total"),e.qZA(),e.TgZ(18,"div",4),e._uU(19),e.ALo(20,"number"),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(5),e.hij("",e.lcZ(6,5,null==t.balances?null:t.balances.lightning)," Sats"),e.xp6(2),e.s9C("value",(null==t.balances?null:t.balances.lightning)/(null==t.balances?null:t.balances.total)*100),e.xp6(5),e.hij("",e.lcZ(13,7,null==t.balances?null:t.balances.onchain)," Sats"),e.xp6(2),e.s9C("value",(null==t.balances?null:t.balances.onchain)/(null==t.balances?null:t.balances.total)*100),e.xp6(5),e.hij("",e.lcZ(20,9,null==t.balances?null:t.balances.total)," Sats")}}function lt(n,i){if(1&n&&(e.TgZ(0,"div",6),e.TgZ(1,"p"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Oqu(t.errorMessage)}}let rt=(()=>{class n{constructor(){this.balances={onchain:0,lightning:0,total:0}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-balances-info"]],inputs:{balances:"balances",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["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(t,a){if(1&t&&(e.YNc(0,st,21,11,"div",0),e.YNc(1,lt,3,1,"ng-template",null,1,e.W1O)),2&t){const o=e.MAs(2);e.Q6J("ngIf"," "===a.errorMessage)("ngIfElse",o)}},directives:[p.O5,_.xw,_.yH,_.Wh,P.pW],pipes:[p.JJ],styles:[""]}),n})();var f=h(7322),X=h(7238),z=h(4834),Q=h(644);const ct=function(){return["../connections/channels/open"]},ut=function(n){return{filter:n}};function pt(n,i){if(1&n&&(e.TgZ(0,"div",19),e.TgZ(1,"a",20),e._uU(2),e.ALo(3,"slice"),e.qZA(),e.TgZ(4,"div",6),e.TgZ(5,"mat-hint",21),e.TgZ(6,"strong",8),e._uU(7,"Local:"),e.qZA(),e._uU(8),e.ALo(9,"number"),e.qZA(),e.TgZ(10,"mat-hint",22),e._UZ(11,"fa-icon",23),e._uU(12),e.ALo(13,"number"),e.qZA(),e.TgZ(14,"mat-hint",24),e.TgZ(15,"strong",8),e._uU(16,"Remote:"),e.qZA(),e._uU(17),e.ALo(18,"number"),e.qZA(),e.qZA(),e._UZ(19,"mat-progress-bar",25),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(3);e.xp6(1),e.s9C("matTooltip",t.remote_alias||t.remote_pubkey),e.s9C("matTooltipDisabled",(t.remote_alias||t.remote_pubkey).length<26),e.Q6J("routerLink",e.DdM(21,ct))("state",e.VKq(22,ut,t.chan_id)),e.xp6(1),e.AsE(" ",e.Dn7(3,11,t.remote_alias||t.remote_pubkey,0,24),"",(t.remote_alias||t.remote_pubkey).length>25?"...":""," "),e.xp6(6),e.hij("",e.lcZ(9,15,t.local_balance||0)," Sats"),e.xp6(3),e.Q6J("icon",a.faBalanceScale),e.xp6(1),e.hij(" (",e.lcZ(13,17,t.balancedness||0),") "),e.xp6(5),e.hij("",e.lcZ(18,19,t.remote_balance||0)," Sats"),e.xp6(2),e.s9C("value",t.local_balance&&t.local_balance>0?+t.local_balance/(+t.local_balance+ +t.remote_balance)*100:0)}}function mt(n,i){if(1&n&&(e.TgZ(0,"div",17),e.YNc(1,pt,20,24,"div",18),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.allChannels)}}function _t(n,i){if(1&n&&(e.TgZ(0,"div",3),e.TgZ(1,"div",4),e.TgZ(2,"span",5),e._uU(3,"Total Capacity"),e.qZA(),e.TgZ(4,"div",6),e.TgZ(5,"mat-hint",7),e.TgZ(6,"strong",8),e._uU(7,"Local:"),e.qZA(),e._uU(8),e.ALo(9,"number"),e.qZA(),e.TgZ(10,"mat-hint",9),e._UZ(11,"fa-icon",10),e._uU(12),e.ALo(13,"number"),e.qZA(),e.TgZ(14,"mat-hint",11),e.TgZ(15,"strong",8),e._uU(16,"Remote:"),e.qZA(),e._uU(17),e.ALo(18,"number"),e.qZA(),e.qZA(),e._UZ(19,"mat-progress-bar",12),e.qZA(),e.TgZ(20,"div",13),e._UZ(21,"mat-divider",14),e.qZA(),e.TgZ(22,"div",15),e.YNc(23,mt,2,1,"div",16),e.qZA(),e.qZA()),2&n){const t=e.oxw(),a=e.MAs(2);e.xp6(8),e.hij("",e.lcZ(9,7,(null==t.channelBalances?null:t.channelBalances.localBalance)||0)," Sats"),e.xp6(3),e.Q6J("icon",t.faBalanceScale),e.xp6(1),e.hij(" (",e.lcZ(13,9,(null==t.channelBalances?null:t.channelBalances.balancedness)||0),") "),e.xp6(5),e.hij("",e.lcZ(18,11,(null==t.channelBalances?null:t.channelBalances.remoteBalance)||0)," Sats"),e.xp6(2),e.s9C("value",null!=t.channelBalances&&t.channelBalances.localBalance&&(null==t.channelBalances?null:t.channelBalances.localBalance)>0?+(null==t.channelBalances?null:t.channelBalances.localBalance)/(+(null==t.channelBalances?null:t.channelBalances.localBalance)+ +(null==t.channelBalances?null:t.channelBalances.remoteBalance))*100:0),e.xp6(4),e.Q6J("ngIf",t.allChannels&&t.allChannels.length>0)("ngIfElse",a)}}function dt(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",26),e._uU(1," No channels available. "),e.TgZ(2,"button",27),e.NdJ("click",function(){return e.CHM(t),e.oxw().goToChannels()}),e._uU(3,"Open Channel"),e.qZA(),e.qZA()}}function ht(n,i){if(1&n&&(e.TgZ(0,"div",28),e.TgZ(1,"p"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Oqu(t.errorMessage)}}let gt=(()=>{class n{constructor(t){this.router=t,this.faBalanceScale=Z.DL8,this.faDumbbell=Z.FlN,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/lnd/connections")}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-capacity-info"]],inputs:{channelBalances:"channelBalances",allChannels:"allChannels",sortBy:"sortBy",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","9","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,"routerLink","state","matTooltip","matTooltipDisabled"],["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(t,a){if(1&t&&(e.YNc(0,_t,24,13,"div",0),e.YNc(1,dt,4,0,"ng-template",null,1,e.W1O),e.YNc(3,ht,3,1,"ng-template",null,2,e.W1O)),2&t){const o=e.MAs(4);e.Q6J("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",o)}},directives:[p.O5,_.xw,_.Wh,_.yH,f.bx,M.BN,X.gM,P.pW,z.d,Q.$V,p.sg,y.yS,L.lW],pipes:[p.JJ,p.OU],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}),n})();function ft(n,i){if(1&n&&(e.TgZ(0,"div",2),e.TgZ(1,"div",3),e.TgZ(2,"div"),e.TgZ(3,"h4",4),e._uU(4,"Daily"),e.qZA(),e.TgZ(5,"div",5),e._uU(6),e.ALo(7,"number"),e.qZA(),e.qZA(),e.TgZ(8,"div"),e.TgZ(9,"h4",4),e._uU(10,"Weekly"),e.qZA(),e.TgZ(11,"div",5),e._uU(12),e.ALo(13,"number"),e.qZA(),e.qZA(),e.TgZ(14,"div"),e.TgZ(15,"h4",4),e._uU(16,"Monthly"),e.qZA(),e.TgZ(17,"div",5),e._uU(18),e.ALo(19,"number"),e.qZA(),e.qZA(),e.TgZ(20,"div",6),e._UZ(21,"h4",7),e._UZ(22,"span",5),e.qZA(),e.qZA(),e.TgZ(23,"div",3),e.TgZ(24,"div"),e.TgZ(25,"h4",4),e._uU(26,"Transactions"),e.qZA(),e.TgZ(27,"div",5),e._uU(28),e.ALo(29,"number"),e.qZA(),e.qZA(),e.TgZ(30,"div"),e.TgZ(31,"h4",4),e._uU(32,"Transactions"),e.qZA(),e.TgZ(33,"div",5),e._uU(34),e.ALo(35,"number"),e.qZA(),e.qZA(),e.TgZ(36,"div"),e.TgZ(37,"h4",4),e._uU(38,"Transactions"),e.qZA(),e.TgZ(39,"div",5),e._uU(40),e.ALo(41,"number"),e.qZA(),e.qZA(),e.TgZ(42,"div",6),e._UZ(43,"h4",7),e._UZ(44,"span",5),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(6),e.hij("",e.lcZ(7,6,null==t.fees?null:t.fees.day_fee_sum)," Sats"),e.xp6(6),e.hij("",e.lcZ(13,8,null==t.fees?null:t.fees.week_fee_sum)," Sats"),e.xp6(6),e.hij("",e.lcZ(19,10,null==t.fees?null:t.fees.month_fee_sum)," Sats"),e.xp6(10),e.Oqu(e.lcZ(29,12,null==t.fees?null:t.fees.daily_tx_count)),e.xp6(6),e.Oqu(e.lcZ(35,14,null==t.fees?null:t.fees.weekly_tx_count)),e.xp6(6),e.Oqu(e.lcZ(41,16,null==t.fees?null:t.fees.monthly_tx_count))}}function Ct(n,i){if(1&n&&(e.TgZ(0,"div",8),e.TgZ(1,"p"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Oqu(t.errorMessage)}}let Ue=(()=>{class n{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},{name:"Daily ",value:this.fees.day_fee_sum}];const t=Math.ceil(Math.log(this.fees.month_fee_sum+1)/Math.LN10),a=Math.pow(10,t-1);this.maxFeeValue=Math.ceil(this.fees.month_fee_sum/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)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-fee-info"]],inputs:{fees:"fees",errorMessage:"errorMessage"},features:[e.TTD],decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["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(t,a){if(1&t&&(e.YNc(0,ft,45,18,"div",0),e.YNc(1,Ct,3,1,"ng-template",null,1,e.W1O)),2&t){const o=e.MAs(2);e.Q6J("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",o)}},directives:[p.O5,_.xw,_.yH,_.Wh],pipes:[p.JJ],styles:[""]}),n})();function xt(n,i){if(1&n&&(e.TgZ(0,"div",2),e.TgZ(1,"div",3),e.TgZ(2,"div"),e.TgZ(3,"h4",4),e._uU(4,"Active"),e.qZA(),e.TgZ(5,"div",5),e._UZ(6,"span",6),e._uU(7),e.ALo(8,"number"),e.qZA(),e.qZA(),e.TgZ(9,"div"),e.TgZ(10,"h4",4),e._uU(11,"Pending"),e.qZA(),e.TgZ(12,"div",5),e._UZ(13,"span",7),e._uU(14),e.ALo(15,"number"),e.qZA(),e.qZA(),e.TgZ(16,"div"),e.TgZ(17,"h4",4),e._uU(18,"Inactive"),e.qZA(),e.TgZ(19,"div",5),e._UZ(20,"span",8),e._uU(21),e.ALo(22,"number"),e.qZA(),e.qZA(),e.TgZ(23,"div"),e.TgZ(24,"h4",4),e._uU(25,"Closing"),e.qZA(),e.TgZ(26,"div",5),e._UZ(27,"span",9),e._uU(28),e.ALo(29,"number"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"div",3),e.TgZ(31,"div"),e.TgZ(32,"h4",4),e._uU(33,"Capacity"),e.qZA(),e.TgZ(34,"div",5),e._uU(35),e.ALo(36,"number"),e.qZA(),e.qZA(),e.TgZ(37,"div"),e.TgZ(38,"h4",4),e._uU(39,"Capacity"),e.qZA(),e.TgZ(40,"div",5),e._uU(41),e.ALo(42,"number"),e.qZA(),e.qZA(),e.TgZ(43,"div"),e.TgZ(44,"h4",4),e._uU(45,"Capacity"),e.qZA(),e.TgZ(46,"div",5),e._uU(47),e.ALo(48,"number"),e.qZA(),e.qZA(),e.TgZ(49,"div"),e.TgZ(50,"h4",4),e._uU(51,"Capacity"),e.qZA(),e.TgZ(52,"div",5),e._uU(53),e.ALo(54,"number"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(7),e.Oqu(e.lcZ(8,8,(null==t.channelsStatus||null==t.channelsStatus.active?null:t.channelsStatus.active.num_channels)||0)),e.xp6(7),e.Oqu(e.lcZ(15,10,(null==t.channelsStatus||null==t.channelsStatus.pending?null:t.channelsStatus.pending.num_channels)||0)),e.xp6(7),e.Oqu(e.lcZ(22,12,(null==t.channelsStatus||null==t.channelsStatus.inactive?null:t.channelsStatus.inactive.num_channels)||0)),e.xp6(7),e.Oqu(e.lcZ(29,14,(null==t.channelsStatus||null==t.channelsStatus.closing?null:t.channelsStatus.closing.num_channels)||0)),e.xp6(7),e.hij("",e.lcZ(36,16,(null==t.channelsStatus||null==t.channelsStatus.active?null:t.channelsStatus.active.capacity)||0)," Sats"),e.xp6(6),e.hij("",e.lcZ(42,18,(null==t.channelsStatus||null==t.channelsStatus.pending?null:t.channelsStatus.pending.capacity)||0)," Sats"),e.xp6(6),e.hij("",e.lcZ(48,20,(null==t.channelsStatus||null==t.channelsStatus.inactive?null:t.channelsStatus.inactive.capacity)||0)," Sats"),e.xp6(6),e.hij("",e.lcZ(54,22,(null==t.channelsStatus||null==t.channelsStatus.closing?null:t.channelsStatus.closing.capacity)||0)," Sats")}}function Zt(n,i){if(1&n&&(e.TgZ(0,"div",10),e.TgZ(1,"p"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Oqu(t.errorMessage)}}let Ne=(()=>{class n{constructor(){this.channelsStatus={}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-status-info"]],inputs:{channelsStatus:"channelsStatus",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["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(t,a){if(1&t&&(e.YNc(0,xt,55,24,"div",0),e.YNc(1,Zt,3,1,"ng-template",null,1,e.W1O)),2&t){const o=e.MAs(2);e.Q6J("ngIf"," "===a.errorMessage)("ngIfElse",o)}},directives:[p.O5,_.xw,_.yH,_.Wh],pipes:[p.JJ],styles:[""]}),n})();var Oe=h(8213),v=h(7861),Re=h(9107);function yt(n,i){if(1&n&&(e.TgZ(0,"mat-hint",19),e.TgZ(1,"strong",20),e._uU(2,"Capacity: "),e.qZA(),e._uU(3),e.ALo(4,"number"),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(3),e.hij("",e.lcZ(4,1,t.remote_balance||0)," Sats")}}function Tt(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",24),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2).$implicit;return e.oxw(3).onLoopOut(o)}),e._uU(1,"Loop Out"),e.qZA()}}function bt(n,i){if(1&n&&(e.TgZ(0,"div",21),e.TgZ(1,"mat-hint",22),e.TgZ(2,"strong",20),e._uU(3,"Capacity: "),e.qZA(),e._uU(4),e.ALo(5,"number"),e.qZA(),e.YNc(6,Tt,2,0,"button",23),e.qZA()),2&n){const t=e.oxw().$implicit,a=e.oxw(3);e.xp6(4),e.hij("",e.lcZ(5,2,t.local_balance||0)," Sats"),e.xp6(2),e.Q6J("ngIf",a.showLoop)}}function At(n,i){if(1&n&&e._UZ(0,"mat-progress-bar",25),2&n){const t=e.oxw().$implicit,a=e.oxw(3);e.s9C("value",a.totalLiquidity>0?(+t.remote_balance||0)/a.totalLiquidity*100:0)}}function vt(n,i){if(1&n&&e._UZ(0,"mat-progress-bar",25),2&n){const t=e.oxw().$implicit,a=e.oxw(3);e.s9C("value",a.totalLiquidity>0?(+t.local_balance||0)/a.totalLiquidity*100:0)}}const wt=function(){return["../connections/channels/open"]},qt=function(n){return{filter:n}};function St(n,i){if(1&n&&(e.TgZ(0,"div",13),e.TgZ(1,"a",14),e._uU(2),e.ALo(3,"slice"),e.qZA(),e.TgZ(4,"div",15),e.YNc(5,yt,5,3,"mat-hint",16),e.YNc(6,bt,7,4,"div",17),e.qZA(),e.YNc(7,At,1,1,"mat-progress-bar",18),e.YNc(8,vt,1,1,"mat-progress-bar",18),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(3);e.xp6(1),e.s9C("matTooltip",t.remote_alias||t.remote_pubkey),e.s9C("matTooltipDisabled",(t.remote_alias||t.remote_pubkey).length<26),e.Q6J("routerLink",e.DdM(14,wt))("state",e.VKq(15,qt,t.chan_id)),e.xp6(1),e.AsE(" ",e.Dn7(3,10,t.remote_alias||t.remote_pubkey,0,24),"",(t.remote_alias||t.remote_pubkey).length>25?"...":""," "),e.xp6(3),e.Q6J("ngIf","In"===a.direction),e.xp6(1),e.Q6J("ngIf","Out"===a.direction),e.xp6(1),e.Q6J("ngIf","In"===a.direction),e.xp6(1),e.Q6J("ngIf","Out"===a.direction)}}function Lt(n,i){if(1&n&&(e.TgZ(0,"div",11),e.YNc(1,St,9,17,"div",12),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.allChannels)}}const kt=function(n,i,t){return{"mb-4":n,"mb-2":i,"mb-1":t}};function Ft(n,i){if(1&n&&(e.TgZ(0,"div",3),e.TgZ(1,"div",4),e.TgZ(2,"span",5),e._uU(3,"Total Capacity"),e.qZA(),e.TgZ(4,"mat-hint",6),e._uU(5),e.ALo(6,"number"),e.qZA(),e._UZ(7,"mat-progress-bar",7),e.qZA(),e.TgZ(8,"div",8),e._UZ(9,"mat-divider",9),e.qZA(),e.YNc(10,Lt,2,1,"div",10),e.qZA()),2&n){const t=e.oxw(),a=e.MAs(2);e.Q6J("ngClass",e.kEZ(6,kt,t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM,t.screenSize===t.screenSizeEnum.MD,t.screenSize===t.screenSizeEnum.LG||t.screenSize===t.screenSizeEnum.XL)),e.xp6(5),e.hij("",e.lcZ(6,4,t.totalLiquidity)," Sats"),e.xp6(5),e.Q6J("ngIf",t.allChannels&&t.allChannels.length>0)("ngIfElse",a)}}function Ut(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",28),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).goToChannels()}),e._uU(1,"Open Channel"),e.qZA()}}function Nt(n,i){if(1&n&&(e.TgZ(0,"div",26),e._uU(1," No channels available. "),e.YNc(2,Ut,2,0,"button",27),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("ngIf","Out"===t.direction)}}function Ot(n,i){if(1&n&&(e.TgZ(0,"div",29),e.TgZ(1,"p"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Oqu(t.errorMessage)}}let Rt=(()=>{class n{constructor(t,a,o,s){this.router=t,this.loopService=a,this.commonService=o,this.store=s,this.targetConf=6,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new m.x,new m.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.showLoop=!(!t.swapServerUrl||""===t.swapServerUrl.trim())})}goToChannels(){this.router.navigateByUrl("/lnd/connections")}onLoopOut(t){this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,d.R)(this.unSubs[1])).subscribe(a=>{this.store.dispatch((0,v.qR)({payload:{minHeight:"56rem",data:{channel:t,minQuote:a[0],maxQuote:a[1],direction:l.$I.LOOP_OUT,component:Oe.a}}}))})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(y.F0),e.Y36(Re.W),e.Y36(O.v),e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",allChannels:"allChannels",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",3,"ngClass",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",3,"ngClass"],["fxLayout","column","fxFlex","9","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,"routerLink","state","matTooltip","matTooltipDisabled"],["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","85","fxLayoutAlign","start start",1,"font-size-90","color-primary"],["fxFlex","15","fxLayoutAlign","end start","class","button-link-dashboard","color","primary","mat-button","","aria-label","Loop Out",3,"click",4,"ngIf"],["fxFlex","15","fxLayoutAlign","end start","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(t,a){if(1&t&&(e.YNc(0,Ft,11,10,"div",0),e.YNc(1,Nt,3,1,"ng-template",null,1,e.W1O),e.YNc(3,Ot,3,1,"ng-template",null,2,e.W1O)),2&t){const o=e.MAs(4);e.Q6J("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",o)}},directives:[p.O5,_.xw,_.Wh,_.yH,p.mk,q.oO,f.bx,P.pW,z.d,Q.$V,p.sg,y.yS,X.gM,L.lW],pipes:[p.JJ,p.OU],styles:[""]}),n})();var D=h(3251),S=h(6087),A=h(4847),r=h(2075),J=h(8966),b=h(6523),c=h(3075),I=h(7531),W=h(3390),$=h(6534),R=h(4107),ue=h(2368),Y=h(508);function It(n,i){if(1&n&&(e.TgZ(0,"mat-option",25),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.Oqu(e.lcZ(2,2,t))}}function Mt(n,i){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.invoiceError)}}function Dt(n,i){if(1&n&&(e.TgZ(0,"div",26),e._UZ(1,"fa-icon",27),e.YNc(2,Mt,2,1,"span",28),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(1),e.Q6J("ngIf",""!==t.invoiceError)}}let Pt=(()=>{class n{constructor(t,a,o,s,u,g){this.dialogRef=t,this.data=a,this.store=o,this.decimalPipe=s,this.commonService=u,this.actions=g,this.faExclamationTriangle=Z.eHv,this.selNode={},this.memo="",this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=l.IV,this.timeUnitEnum=l.Qk,this.timeUnits=l.LO,this.selTimeUnit=l.Qk.SECS,this.invoiceError="",this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.actions.pipe((0,d.R)(this.unSubs[2]),(0,E.h)(t=>t.type===l.uR.UPDATE_API_CALL_STATUS_LND)).subscribe(t=>{t.type===l.uR.UPDATE_API_CALL_STATUS_LND&&"SaveNewInvoice"===t.payload.action&&(this.invoiceError=t.payload.message,t.payload.status===l.Bn.ERROR&&(this.invoiceError=t.payload.message),t.payload.status===l.Bn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(t){this.invoiceError="";let a=this.expiry?this.expiry:3600;this.selTimeUnit!==l.Qk.SECS&&(a=this.commonService.convertTime(this.expiry,this.selTimeUnit,l.Qk.SECS)),this.store.dispatch((0,b.Rd)({payload:{uiMessage:l.m6.ADD_INVOICE,memo:this.memo,invoiceValue:this.invoiceValue,private:this.private,expiry:a,pageSize:this.pageSize,openModal:!0}}))}resetData(){this.memo="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=l.Qk.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,d.R)(this.unSubs[3])).subscribe({next:t=>{this.invoiceValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,l.Xz.OTHER)+" "+t.unit},error:t=>{this.invoiceValueHint="Conversion Error: "+t}}))}onTimeUnitChange(t){this.expiry&&this.selTimeUnit!==t.value&&(this.expiry=this.commonService.convertTime(this.expiry,this.selTimeUnit,t.value)),this.selTimeUnit=t.value}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(w.yh),e.Y36(p.JJ),e.Y36(O.v),e.Y36(G.eX))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-create-invoices"]],decls:38,vars:16,consts:[["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","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"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","end start"],["matInput","","autoFocus","","placeholder","Memo","tabindex","1","name","memo",3,"ngModel","ngModelChange"],["fxFlex","50","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","2","name","invoiceValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxFlex","24","fxLayoutAlign","start end"],["matInput","","placeholder","Expiry","type","number","tabindex","3","name","expiry",3,"ngModel","step","min","ngModelChange"],["tabindex","4","name","timeUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["tabindex","4","color","primary","name","private",3,"ngModel","ngModelChange"],["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","tabindex","5","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","6",3,"click"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"]],template:function(t,a){if(1&t){const o=e.EpF();e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5,"Create Invoice"),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.TgZ(9,"form",7,8),e.TgZ(11,"mat-form-field",9),e.TgZ(12,"input",10),e.NdJ("ngModelChange",function(u){return a.memo=u}),e.qZA(),e.qZA(),e.TgZ(13,"mat-form-field",11),e.TgZ(14,"input",12),e.NdJ("ngModelChange",function(u){return a.invoiceValue=u})("keyup",function(){return a.onInvoiceValueChange()}),e.qZA(),e.TgZ(15,"span",13),e._uU(16," Sats "),e.qZA(),e.TgZ(17,"mat-hint"),e._uU(18),e.qZA(),e.qZA(),e.TgZ(19,"mat-form-field",14),e.TgZ(20,"input",15),e.NdJ("ngModelChange",function(u){return a.expiry=u}),e.qZA(),e.TgZ(21,"span",13),e._uU(22),e.ALo(23,"titlecase"),e.qZA(),e.qZA(),e.TgZ(24,"mat-form-field",14),e.TgZ(25,"mat-select",16),e.NdJ("selectionChange",function(u){return a.onTimeUnitChange(u)}),e.YNc(26,It,3,4,"mat-option",17),e.qZA(),e.qZA(),e.TgZ(27,"div",18),e.TgZ(28,"mat-slide-toggle",19),e.NdJ("ngModelChange",function(u){return a.private=u}),e._uU(29,"Private Routing Hints"),e.qZA(),e.TgZ(30,"mat-icon",20),e._uU(31,"info_outline"),e.qZA(),e.qZA(),e.YNc(32,Dt,3,2,"div",21),e.TgZ(33,"div",22),e.TgZ(34,"button",23),e.NdJ("click",function(){return a.resetData()}),e._uU(35,"Clear Field"),e.qZA(),e.TgZ(36,"button",24),e.NdJ("click",function(){e.CHM(o);const u=e.MAs(10);return a.onAddInvoice(u)}),e._uU(37,"Create Invoice"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}2&t&&(e.xp6(6),e.Q6J("mat-dialog-close",!1),e.xp6(6),e.Q6J("ngModel",a.memo),e.xp6(2),e.Q6J("ngModel",a.invoiceValue)("step",100)("min",1),e.xp6(4),e.Oqu(a.invoiceValueHint),e.xp6(2),e.Q6J("ngModel",a.expiry)("step",a.selTimeUnit===a.timeUnitEnum.SECS?300:a.selTimeUnit===a.timeUnitEnum.MINS?10:a.selTimeUnit===a.timeUnitEnum.HOURS?2:1)("min",1),e.xp6(2),e.hij(" ",e.lcZ(23,14,a.selTimeUnit)," "),e.xp6(3),e.Q6J("value",a.selTimeUnit),e.xp6(1),e.Q6J("ngForOf",a.timeUnits),e.xp6(2),e.Q6J("ngModel",a.private),e.xp6(4),e.Q6J("ngIf",""!==a.invoiceError))},directives:[_.xw,_.yH,T.dk,_.Wh,L.lW,J.ZT,T.dn,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,W.h,c.JJ,c.On,c.wV,c.qQ,$.q,f.R9,f.bx,R.gD,p.sg,ue.Rr,K.Hw,X.gM,p.O5,Y.ey,M.BN],pipes:[p.rS],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();var Jt=h(8627);function Et(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"form",4,5),e.TgZ(2,"mat-form-field",6),e.TgZ(3,"input",7),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().memo=o}),e.qZA(),e.qZA(),e.TgZ(4,"mat-form-field",8),e.TgZ(5,"input",9),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().invoiceValue=o})("keyup",function(){return e.CHM(t),e.oxw().onInvoiceValueChange()}),e.qZA(),e.TgZ(6,"span",10),e._uU(7," Sats "),e.qZA(),e.TgZ(8,"mat-hint"),e._uU(9),e.qZA(),e.qZA(),e.TgZ(10,"div",11),e.TgZ(11,"button",12),e.NdJ("click",function(){return e.CHM(t),e.oxw().resetData()}),e._uU(12,"Clear Field"),e.qZA(),e.TgZ(13,"button",13),e.NdJ("click",function(){e.CHM(t);const o=e.MAs(1);return e.oxw().onAddInvoice(o)}),e._uU(14,"Create Invoice"),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(3),e.Q6J("ngModel",t.memo),e.xp6(2),e.Q6J("ngModel",t.invoiceValue)("step",100)("min",1),e.xp6(4),e.Oqu(t.invoiceValueHint)}}function Qt(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",14),e.TgZ(1,"button",15),e.NdJ("click",function(){return e.CHM(t),e.oxw().openCreateInvoiceModal()}),e._uU(2,"Create Invoice"),e.qZA(),e.qZA()}}function Yt(n,i){1&n&&e._UZ(0,"mat-progress-bar",46)}function Ht(n,i){1&n&&(e.TgZ(0,"th",47),e._uU(1," Date Created "),e.qZA())}const pe=function(n){return{"mr-0":n}};function Bt(n,i){if(1&n&&e._UZ(0,"span",53),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,pe,t.screenSize===t.screenSizeEnum.XS))}}function Vt(n,i){if(1&n&&e._UZ(0,"span",54),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,pe,t.screenSize===t.screenSizeEnum.XS))}}function Gt(n,i){if(1&n&&e._UZ(0,"span",55),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,pe,t.screenSize===t.screenSizeEnum.XS))}}function zt(n,i){if(1&n&&e._UZ(0,"span",56),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,pe,t.screenSize===t.screenSizeEnum.XS))}}function Wt(n,i){if(1&n&&(e.TgZ(0,"td",48),e.YNc(1,Bt,1,3,"span",49),e.YNc(2,Vt,1,3,"span",50),e.YNc(3,Gt,1,3,"span",51),e.YNc(4,zt,1,3,"span",52),e._uU(5),e.ALo(6,"date"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Q6J("ngIf","OPEN"===(null==t?null:t.state)),e.xp6(1),e.Q6J("ngIf","SETTLED"===(null==t?null:t.state)),e.xp6(1),e.Q6J("ngIf","ACCEPTED"===(null==t?null:t.state)),e.xp6(1),e.Q6J("ngIf","CANCELED"===(null==t?null:t.state)),e.xp6(1),e.hij(" ",e.xi3(6,5,1e3*(null==t?null:t.creation_date),"dd/MMM/y HH:mm"),"")}}function Xt(n,i){1&n&&(e.TgZ(0,"th",57),e._uU(1," Date Settled "),e.qZA())}function $t(n,i){if(1&n&&(e.TgZ(0,"td",58),e._uU(1),e.ALo(2,"date"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(0!=+(null==t?null:t.settle_date)?e.xi3(2,1,1e3*+(null==t?null:t.settle_date),"dd/MMM/y HH:mm"):"-")}}function jt(n,i){1&n&&(e.TgZ(0,"th",47),e._uU(1," Memo "),e.qZA())}const Kt=function(n){return{"max-width":n}};function en(n,i){if(1&n&&(e.TgZ(0,"td",48),e.TgZ(1,"div",59),e.TgZ(2,"span",60),e._uU(3),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.xp6(1),e.Q6J("ngStyle",e.VKq(2,Kt,a.screenSize===a.screenSizeEnum.XS?"10rem":"22rem")),e.xp6(2),e.Oqu(null==t?null:t.memo)}}function tn(n,i){1&n&&(e.TgZ(0,"th",61),e._uU(1," Amount (Sats) "),e.qZA())}function nn(n,i){if(1&n&&(e.TgZ(0,"td",48),e.TgZ(1,"span",62),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.value)," ")}}function an(n,i){1&n&&(e.TgZ(0,"th",61),e._uU(1," Amount Settled (Sats) "),e.qZA())}function on(n,i){if(1&n&&(e.TgZ(0,"td",48),e.TgZ(1,"span",62),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.amt_paid_sat)," ")}}function sn(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",63),e.TgZ(1,"div",64),e.TgZ(2,"mat-select",65),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",66),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}const ln=function(n){return{"pl-3":n}};function rn(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",67),e.TgZ(1,"div",68),e.TgZ(2,"mat-select",69),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",66),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw(2).onInvoiceClick(s)}),e._uU(5,"View Info"),e.qZA(),e.TgZ(6,"mat-option",66),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw(2).onRefreshInvoice(s)}),e._uU(7,"Refresh"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("ngClass",e.VKq(1,ln,t.screenSize!==t.screenSizeEnum.XS))}}function cn(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No invoice available."),e.qZA())}function un(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting invoices..."),e.qZA())}function pn(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(t.errorMessage)}}function mn(n,i){if(1&n&&(e.TgZ(0,"td",70),e.YNc(1,cn,2,0,"p",71),e.YNc(2,un,2,0,"p",71),e.YNc(3,pn,2,1,"p",71),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",(!(null!=t.invoices&&t.invoices.data)||(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.invoices&&t.invoices.data)||(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.invoices&&t.invoices.data)||(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const _n=function(n){return{"display-none":n}};function dn(n,i){if(1&n&&e._UZ(0,"tr",72),2&n){const t=e.oxw(2);e.Q6J("ngClass",e.VKq(1,_n,(null==t.invoices?null:t.invoices.data)&&(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)>0))}}function hn(n,i){1&n&&e._UZ(0,"tr",73)}function gn(n,i){1&n&&e._UZ(0,"tr",74)}const fn=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Cn=function(){return["no_invoice"]};function xn(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",16),e.TgZ(1,"div",17),e.TgZ(2,"div",18),e._UZ(3,"fa-icon",19),e.TgZ(4,"span",20),e._uU(5,"Invoices History"),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",21),e.TgZ(7,"input",22),e.NdJ("keyup",function(){return e.CHM(t),e.oxw().applyFilter()})("ngModelChange",function(o){return e.CHM(t),e.oxw().selFilter=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",23),e.YNc(9,Yt,1,0,"mat-progress-bar",24),e.TgZ(10,"table",25,26),e.ynx(12,27),e.YNc(13,Ht,2,0,"th",28),e.YNc(14,Wt,7,8,"td",29),e.BQk(),e.ynx(15,30),e.YNc(16,Xt,2,0,"th",31),e.YNc(17,$t,3,4,"td",32),e.BQk(),e.ynx(18,33),e.YNc(19,jt,2,0,"th",28),e.YNc(20,en,4,4,"td",29),e.BQk(),e.ynx(21,34),e.YNc(22,tn,2,0,"th",35),e.YNc(23,nn,4,3,"td",29),e.BQk(),e.ynx(24,36),e.YNc(25,an,2,0,"th",35),e.YNc(26,on,4,3,"td",29),e.BQk(),e.ynx(27,37),e.YNc(28,sn,6,0,"th",38),e.YNc(29,rn,8,3,"td",39),e.BQk(),e.ynx(30,40),e.YNc(31,mn,4,3,"td",41),e.BQk(),e.YNc(32,dn,1,3,"tr",42),e.YNc(33,hn,1,0,"tr",43),e.YNc(34,gn,1,0,"tr",44),e.qZA(),e.TgZ(35,"mat-paginator",45),e.NdJ("page",function(o){return e.CHM(t),e.oxw().onPageChange(o)}),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(3),e.Q6J("icon",t.faHistory),e.xp6(4),e.Q6J("ngModel",t.selFilter),e.xp6(2),e.Q6J("ngIf",t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",t.invoices)("ngClass",e.VKq(13,fn,""!==t.errorMessage)),e.xp6(22),e.Q6J("matFooterRowDef",e.DdM(15,Cn)),e.xp6(1),e.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns),e.xp6(1),e.Q6J("length",t.totalInvoices)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let Ie=(()=>{class n{constructor(t,a,o,s,u,g){this.logger=t,this.store=a,this.decimalPipe=o,this.commonService=s,this.datePipe=u,this.actions=g,this.calledFrom="transactions",this.faHistory=Z.qO$,this.selNode={},this.newlyAddedInvoiceMemo=null,this.newlyAddedInvoiceValue=null,this.memo="",this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoicesData=[],this.information={},this.flgSticky=!1,this.selFilter="",this.private=!1,this.expiryStep=100,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.firstOffset=-1,this.lastOffset=-1,this.totalInvoices=0,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["creation_date","value","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["creation_date","settle_date","value","amt_paid_sat","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["creation_date","settle_date","memo","value","actions"]):(this.flgSticky=!0,this.displayedColumns=["creation_date","settle_date","memo","value","amt_paid_sat","actions"])}ngOnInit(){this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(C.Ef).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.totalInvoices=t.listInvoices.total_invoices,this.firstOffset=+t.listInvoices.first_index_offset,this.lastOffset=+t.listInvoices.last_index_offset,this.invoicesData=t.listInvoices.invoices||[],this.invoicesData.length>0&&this.sort&&this.paginator&&this.loadInvoicesTable(this.invoicesData),this.logger.info(t)}),this.actions.pipe((0,d.R)(this.unSubs[3]),(0,E.h)(t=>t.type===l.uR.SET_LOOKUP_LND||t.type===l.uR.UPDATE_API_CALL_STATUS_LND)).subscribe(t=>{t.type===l.uR.SET_LOOKUP_LND&&this.invoicesData.length>0&&this.sort&&this.paginator&&t.payload&&(this.updateInvoicesData(JSON.parse(JSON.stringify(t.payload))),this.loadInvoicesTable(this.invoicesData))})}ngAfterViewInit(){this.invoicesData.length>0&&this.loadInvoicesTable(this.invoicesData)}onAddInvoice(t){const a=this.expiry?this.expiry:3600;this.newlyAddedInvoiceMemo=this.memo,this.newlyAddedInvoiceValue=this.invoiceValue,this.store.dispatch((0,b.Rd)({payload:{uiMessage:l.m6.ADD_INVOICE,memo:this.memo,invoiceValue:this.invoiceValue,private:this.private,expiry:a,pageSize:this.pageSize,openModal:!0}})),this.resetData()}onInvoiceClick(t){this.store.dispatch((0,v.qR)({payload:{data:{invoice:t,newlyAdded:!1,component:Jt.v}}}))}onRefreshInvoice(t){this.store.dispatch((0,b.n7)({payload:{openSnackBar:!0,paymentHash:Buffer.from(t.r_hash.trim(),"hex").toString("base64").replace(/\+/g,"-").replace(/[/]/g,"_")}}))}updateInvoicesData(t){this.invoicesData=this.invoicesData.map(a=>a.r_hash===t.r_hash?t:a)}loadInvoicesTable(t){this.invoices=new r.by(t?[...t]:[]),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.filterPredicate=(a,o)=>((a.creation_date?this.datePipe.transform(new Date(1e3*a.creation_date),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(a.settle_date?this.datePipe.transform(new Date(1e3*a.settle_date),"dd/MMM/YYYY HH:mm").toLowerCase():"")+JSON.stringify(a).toLowerCase()).includes(o),this.applyFilter(),this.logger.info(this.invoices)}resetData(){this.memo="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint=""}applyFilter(){this.invoices.filter=this.selFilter.trim().toLowerCase()}onPageChange(t){let a=!0,o=this.lastOffset;this.pageSize=t.pageSize,0===t.pageIndex?(a=!0,o=0):t.pageIndext.previousPageIndex&&t.length>(t.pageIndex+1)*t.pageSize?(a=!0,o=this.firstOffset):t.length<=(t.pageIndex+1)*t.pageSize&&(a=!1,o=0),this.store.dispatch((0,b.WM)({payload:{num_max_invoices:t.pageSize,index_offset:o,reversed:a}}))}onInvoiceValueChange(){this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,d.R)(this.unSubs[4])).subscribe({next:t=>{this.invoiceValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,l.Xz.OTHER)+" "+t.unit},error:t=>{this.invoiceValueHint="Conversion Error: "+t}}))}onDownloadCSV(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")}openCreateInvoiceModal(){this.store.dispatch((0,v.qR)({payload:{data:{pageSize:this.pageSize,component:Pt}}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(p.JJ),e.Y36(O.v),e.Y36(p.uU),e.Y36(G.eX))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-lightning-invoices"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},inputs:{calledFrom:"calledFrom"},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Invoices")}])],decls:4,vars:3,consts:[["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"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","end start"],["matInput","","placeholder","Memo","tabindex","1","name","memo",3,"ngModel","ngModelChange"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","2","name","invValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["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"],["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","30","fxLayoutAlign","start end"],["matInput","","tabindex","6","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","creation_date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","settle_date"],["mat-header-cell","","mat-sort-header","","class","pl-4",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["matColumnDef","memo"],["matColumnDef","value"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_paid_sat"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["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","Cancelled","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","Cancelled","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header","",1,"pl-4"],["mat-cell","",1,"pl-4"],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["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(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,Et,15,5,"form",1),e.YNc(2,Qt,3,0,"div",2),e.YNc(3,xn,36,16,"div",3),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf","home"===a.calledFrom),e.xp6(1),e.Q6J("ngIf","transactions"===a.calledFrom),e.xp6(1),e.Q6J("ngIf","transactions"===a.calledFrom))},directives:[_.xw,_.yH,_.Wh,p.O5,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,c.JJ,c.On,c.wV,c.qQ,$.q,f.R9,f.bx,L.lW,M.BN,Q.$V,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,X.gM,p.PC,q.Zl,R.gD,R.$L,Y.ey,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.uU,p.JJ],styles:[".mat-column-memo[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-memo[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();var V=h(5698),j=h(8104),H=h(1125),ne=h(1079);const Zn=["paymentReq"];function yn(n,i){if(1&n&&(e.TgZ(0,"mat-hint"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.paymentDecodedHint)}}function Tn(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Payment request is required."),e.qZA())}function bn(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.paymentDecodedHint)}}function An(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Payment amount is required."),e.qZA())}function vn(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",1),e.TgZ(1,"input",29,30),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().paymentAmount=o})("change",function(o){return e.CHM(t),e.oxw().onAmountChange(o)}),e.qZA(),e.TgZ(3,"mat-hint"),e._uU(4,"It is a zero amount invoice, enter amount to be paid."),e.qZA(),e.YNc(5,An,2,0,"mat-error",11),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngModel",t.paymentAmount),e.xp6(4),e.Q6J("ngIf",!t.paymentAmount)}}function wn(n,i){if(1&n&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",null==t?null:t.name," ")}}function qn(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("",null==t.selFeeLimitType?null:t.selFeeLimitType.placeholder," is required.")}}function Sn(n,i){if(1&n&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.Oqu((null==t?null:t.remote_alias)||(null==t?null:t.chan_id))}}function Ln(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Channel not found in the list."),e.qZA())}function kn(n,i){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.paymentError)}}function Fn(n,i){if(1&n&&(e.TgZ(0,"div",32),e._UZ(1,"fa-icon",33),e.YNc(2,kn,2,1,"span",11),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(1),e.Q6J("ngIf",""!==t.paymentError)}}let Un=(()=>{class n{constructor(t,a,o,s,u,g,N){this.dialogRef=t,this.store=a,this.logger=o,this.commonService=s,this.decimalPipe=u,this.actions=g,this.dataService=N,this.faExclamationTriangle=Z.eHv,this.selNode={},this.paymentDecoded={},this.zeroAmtInvoice=!1,this.paymentAmount=null,this.paymentRequest="",this.paymentDecodedHint="",this.showAdvanced=!1,this.activeChannels=[],this.filteredMinAmtActvChannels=[],this.selectedChannelCtrl=new c.NI,this.feeLimit=null,this.selFeeLimitType=l.Vc[0],this.feeLimitTypes=l.Vc,this.advancedTitle="Advanced Options",this.paymentError="",this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(o=>{this.selNode=o}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[1])).subscribe(o=>{this.activeChannels=o.channels.filter(s=>s.active),this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.logger.info(o)}),this.actions.pipe((0,d.R)(this.unSubs[2]),(0,E.h)(o=>o.type===l.uR.UPDATE_API_CALL_STATUS_LND||o.type===l.uR.SEND_PAYMENT_STATUS_LND)).subscribe(o=>{o.type===l.uR.SEND_PAYMENT_STATUS_LND&&this.dialogRef.close(),o.type===l.uR.UPDATE_API_CALL_STATUS_LND&&o.payload.status===l.Bn.ERROR&&"SendPayment"===o.payload.action&&(delete this.paymentDecoded.num_satoshis,this.paymentError=o.payload.message)});let t="",a="";this.activeChannels=this.activeChannels.sort((o,s)=>(t=o.remote_alias?o.remote_alias.toLowerCase():o.chan_id?o.chan_id.toLowerCase():"",a=s.remote_alias?s.remote_alias.toLowerCase():s.chan_id?s.chan_id.toLowerCase():"",ta?1:0)),this.selectedChannelCtrl.valueChanges.pipe((0,d.R)(this.unSubs[3])).subscribe(o=>{"string"==typeof o&&(this.filteredMinAmtActvChannels=this.filterChannels())})}filterChannels(){return this.activeChannels.filter(t=>0===(t.remote_alias?t.remote_alias.toLowerCase():t.chan_id?t.chan_id.toLowerCase():"").indexOf(this.selectedChannelCtrl.value?this.selectedChannelCtrl.value.toLowerCase():"")&&t.local_balance>=+(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0))}displayFn(t){return t&&t.remote_alias?t.remote_alias:t&&t.chan_id?t.chan_id:""}onSelectedChannelChanged(){if(this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.length>0&&"string"==typeof this.selectedChannelCtrl.value){const t=this.activeChannels.filter(a=>{const o=a.remote_alias?a.remote_alias.toLowerCase():a.chan_id?a.chan_id.toLowerCase():"";return o.length===this.selectedChannelCtrl.value.length&&0===o.indexOf(this.selectedChannelCtrl.value?this.selectedChannelCtrl.value.toLowerCase():"")});t&&t.length>0?(this.selectedChannelCtrl.setValue(t[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;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,this.store.dispatch((0,b.oV)({payload:{uiMessage:l.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,outgoingChannel:this.selectedChannelCtrl.value,feeLimitType:this.selFeeLimitType.id,feeLimit:this.feeLimit,fromDialog:!0}}))):(this.zeroAmtInvoice=!0,this.paymentDecoded.num_satoshis=this.paymentAmount,this.store.dispatch((0,b.oV)({payload:{uiMessage:l.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,paymentAmount:this.paymentAmount,outgoingChannel:this.selectedChannelCtrl.value,feeLimitType:this.selFeeLimitType.id,feeLimit:this.feeLimit,fromDialog:!0}})))}onAmountChange(t){delete this.paymentDecoded.num_satoshis}onPaymentRequestEntry(t){this.paymentRequest=t,this.paymentAmount=null,this.paymentError="",this.paymentDecodedHint="",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,V.q)(1)).subscribe({next:a=>{this.paymentDecoded=a,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.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.num_satoshis,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,d.R)(this.unSubs[4])).subscribe({next:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats ("+o.symbol+" "+this.decimalPipe.transform(o.OTHER?o.OTHER:0,l.Xz.OTHER)+") | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")},error:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")):(this.zeroAmtInvoice=!0,this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.paymentDecodedHint="Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None"))},error:a=>{this.logger.error(a),this.paymentDecodedHint="ERROR: "+a.message,this.paymentReq.control.setErrors({decodeError:!0})}}))}onAdvancedPanelToggle(t,a){if(t&&!a){const o=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)+(""!==o?" | First Outgoing Channel: "+o:"")}else this.advancedTitle="Advanced Options"}resetData(){this.paymentDecoded={},this.paymentRequest="",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=l.Vc[0],this.advancedTitle="Advanced Options",this.zeroAmtInvoice=!1,this.paymentReq.control.setErrors(null),this.paymentError="",this.paymentDecodedHint=""}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(w.yh),e.Y36(F.mQ),e.Y36(O.v),e.Y36(p.JJ),e.Y36(G.eX),e.Y36(j.D))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-lightning-send-payments"]],viewQuery:function(t,a){if(1&t&&e.Gf(Zn,5),2&t){let o;e.iGM(o=e.CRH())&&(a.paymentReq=o.first)}},decls:43,vars:21,consts:[["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","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayoutAlign","space-between stretch","fxLayout","column"],["sendPaymentForm","ngForm"],["autoFocus","","matInput","","placeholder","Payment Request","name","paymentRequest","rows","4","tabindex","1","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[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"],["fxFlex","30","fxLayoutAlign","start end"],["tabindex","5","Placeholder","Fee Limits",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","26"],["matInput","","type","number","name","feeLmt","required","","tabindex","6",3,"ngModel","placeholder","step","min","disabled","ngModelChange"],["fLmt","ngModel"],["fxFlex","40","fxLayoutAlign","start end"],["type","text","placeholder","First Outgoing Channel","aria-label","First Outgoing Channel","matInput","","tabindex","7",3,"formControl","matAutocomplete"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],["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","","id","sendBtn","color","primary","tabindex","3",3,"click"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","required","",3,"ngModel","ngModelChange","change"],["paymentAmt","ngModel"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(t,a){if(1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5,"Send Payment"),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.TgZ(9,"form",7,8),e.TgZ(11,"mat-form-field",1),e.TgZ(12,"textarea",9,10),e.NdJ("ngModelChange",function(s){return a.onPaymentRequestEntry(s)})("matTextareaAutosize",function(){return!0}),e.qZA(),e.YNc(14,yn,2,1,"mat-hint",11),e.YNc(15,Tn,2,0,"mat-error",11),e.YNc(16,bn,2,1,"mat-error",11),e.qZA(),e.YNc(17,vn,6,2,"mat-form-field",12),e.TgZ(18,"mat-expansion-panel",13),e.NdJ("closed",function(){return a.onAdvancedPanelToggle(!0,!1)})("opened",function(){return a.onAdvancedPanelToggle(!1,!1)}),e.TgZ(19,"mat-expansion-panel-header"),e.TgZ(20,"mat-panel-title"),e.TgZ(21,"span"),e._uU(22),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"div",14),e.TgZ(24,"mat-form-field",15),e.TgZ(25,"mat-select",16),e.NdJ("valueChange",function(s){return a.selFeeLimitType=s}),e.YNc(26,wn,2,2,"mat-option",17),e.qZA(),e.qZA(),e.TgZ(27,"mat-form-field",18),e.TgZ(28,"input",19,20),e.NdJ("ngModelChange",function(s){return a.feeLimit=s}),e.qZA(),e.YNc(30,qn,2,1,"mat-error",11),e.qZA(),e.TgZ(31,"mat-form-field",21),e._UZ(32,"input",22),e.TgZ(33,"mat-autocomplete",23,24),e.NdJ("optionSelected",function(){return a.onSelectedChannelChanged()}),e.YNc(35,Sn,2,2,"mat-option",17),e.qZA(),e.YNc(36,Ln,2,0,"mat-error",11),e.qZA(),e.qZA(),e.qZA(),e.YNc(37,Fn,3,2,"div",25),e.TgZ(38,"div",26),e.TgZ(39,"button",27),e.NdJ("click",function(){return a.resetData()}),e._uU(40,"Clear Fields"),e.qZA(),e.TgZ(41,"button",28),e.NdJ("click",function(){return a.onSendPayment()}),e._uU(42,"Send Payment"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t){const o=e.MAs(13),s=e.MAs(34);e.xp6(6),e.Q6J("mat-dialog-close",!1),e.xp6(6),e.Q6J("ngModel",a.paymentRequest),e.xp6(2),e.Q6J("ngIf",a.paymentRequest&&""!==a.paymentDecodedHint),e.xp6(1),e.Q6J("ngIf",!a.paymentRequest),e.xp6(1),e.Q6J("ngIf",null==o.errors?null:o.errors.decodeError),e.xp6(1),e.Q6J("ngIf",a.zeroAmtInvoice),e.xp6(5),e.Oqu(a.advancedTitle),e.xp6(3),e.Q6J("value",a.selFeeLimitType),e.xp6(1),e.Q6J("ngForOf",a.feeLimitTypes),e.xp6(2),e.Q6J("ngModel",a.feeLimit)("placeholder",null==a.selFeeLimitType?null:a.selFeeLimitType.placeholder)("step",1)("min",0)("disabled",a.selFeeLimitType===a.feeLimitTypes[0]),e.xp6(2),e.Q6J("ngIf",a.selFeeLimitType!==a.feeLimitTypes[0]&&!a.feeLimit),e.xp6(2),e.Q6J("formControl",a.selectedChannelCtrl)("matAutocomplete",s),e.xp6(1),e.Q6J("displayWith",a.displayFn),e.xp6(2),e.Q6J("ngForOf",a.filteredMinAmtActvChannels),e.xp6(1),e.Q6J("ngIf",null==a.selectedChannelCtrl.errors?null:a.selectedChannelCtrl.errors.notfound),e.xp6(1),e.Q6J("ngIf",""!==a.paymentError)}},directives:[_.xw,_.yH,T.dk,_.Wh,L.lW,J.ZT,T.dn,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,W.h,c.Q7,c.JJ,c.On,p.O5,H.ib,H.yz,H.yK,R.gD,p.sg,c.wV,c.qQ,$.q,ne.ZL,c.oH,ne.XC,f.bx,f.TO,Y.ey,M.BN],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();var oe=h(3093),ee=h(711);const Nn=["sendPaymentForm"];function On(n,i){if(1&n&&(e.TgZ(0,"mat-hint"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.paymentDecodedHint)}}function Rn(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Payment request is required."),e.qZA())}function In(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"form",4,5),e.TgZ(2,"mat-form-field",6),e.TgZ(3,"textarea",7,8),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().onPaymentRequestEntry(o)})("matTextareaAutosize",function(){return!0}),e.qZA(),e.YNc(5,On,2,1,"mat-hint",9),e.YNc(6,Rn,2,0,"mat-error",9),e.qZA(),e.TgZ(7,"div",10),e.TgZ(8,"button",11),e.NdJ("click",function(){return e.CHM(t),e.oxw().resetData()}),e._uU(9,"Clear Field"),e.qZA(),e.TgZ(10,"button",12),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSendPayment()}),e._uU(11,"Send Payment"),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(3),e.Q6J("ngModel",t.paymentRequest),e.xp6(2),e.Q6J("ngIf",t.paymentRequest&&""!==t.paymentDecodedHint),e.xp6(1),e.Q6J("ngIf",!t.paymentRequest)}}function Mn(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",13),e.TgZ(1,"button",14),e.NdJ("click",function(){return e.CHM(t),e.oxw().openSendPaymentModal()}),e._uU(2,"Send Payment"),e.qZA(),e.qZA()}}function Dn(n,i){1&n&&e._UZ(0,"mat-progress-bar",52)}function Pn(n,i){1&n&&(e.TgZ(0,"th",53),e._uU(1,"Creation Date"),e.qZA())}const ae=function(n){return{"mr-0":n}};function Jn(n,i){if(1&n&&e._UZ(0,"span",57),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,ae,t.screenSize===t.screenSizeEnum.XS))}}function En(n,i){if(1&n&&e._UZ(0,"span",58),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,ae,t.screenSize===t.screenSizeEnum.XS))}}function Qn(n,i){if(1&n&&(e.TgZ(0,"td",54),e.YNc(1,Jn,1,3,"span",55),e.YNc(2,En,1,3,"span",56),e._uU(3),e.ALo(4,"date"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Q6J("ngIf","SUCCEEDED"===(null==t?null:t.status)),e.xp6(1),e.Q6J("ngIf","SUCCEEDED"!==(null==t?null:t.status)),e.xp6(1),e.hij(" ",e.xi3(4,3,1e3*(null==t?null:t.creation_date),"dd/MMM/y HH:mm")," ")}}function Yn(n,i){1&n&&(e.TgZ(0,"th",53),e._uU(1,"Payment Hash"),e.qZA())}const Me=function(n){return{"max-width":n}};function Hn(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",59),e.TgZ(2,"span",60),e._uU(3),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.xp6(1),e.Q6J("ngStyle",e.VKq(2,Me,a.screenSize===a.screenSizeEnum.XS?"10rem":"30rem")),e.xp6(2),e.Oqu(null==t?null:t.payment_hash)}}function Bn(n,i){1&n&&(e.TgZ(0,"th",61),e._uU(1,"Fee (Sats)"),e.qZA())}function Vn(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",62),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==t?null:t.fee))}}function Gn(n,i){1&n&&(e.TgZ(0,"th",61),e._uU(1,"Value (Sats)"),e.qZA())}function zn(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",62),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==t?null:t.value))}}function Wn(n,i){1&n&&(e.TgZ(0,"th",61),e._uU(1,"#Hops"),e.qZA())}function Xn(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",62),e._uU(2),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu((null==t||null==t.htlcs[0]||null==t.htlcs[0].route||null==t.htlcs[0].route.hops?null:t.htlcs[0].route.hops.length)||0)}}function $n(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",63),e.TgZ(1,"div",64),e.TgZ(2,"mat-select",65),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",66),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function jn(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",67),e.TgZ(1,"button",68),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw(2).onPaymentClick(s)}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function Kn(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No payment available."),e.qZA())}function ea(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting payments..."),e.qZA())}function ta(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(t.errorMessage)}}function na(n,i){if(1&n&&(e.TgZ(0,"td",69),e.YNc(1,Kn,2,0,"p",9),e.YNc(2,ea,2,0,"p",9),e.YNc(3,ta,2,1,"p",9),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",(!(null!=t.payments&&t.payments.data)||(null==t.payments||null==t.payments.data?null:t.payments.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.payments&&t.payments.data)||(null==t.payments||null==t.payments.data?null:t.payments.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.payments&&t.payments.data)||(null==t.payments||null==t.payments.data?null:t.payments.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}function aa(n,i){if(1&n&&e._UZ(0,"span",57),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,ae,t.screenSize===t.screenSizeEnum.XS))}}function ia(n,i){if(1&n&&e._UZ(0,"span",58),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,ae,t.screenSize===t.screenSizeEnum.XS))}}function oa(n,i){if(1&n&&e._UZ(0,"span",57),2&n){const t=e.oxw(5);e.Q6J("ngClass",e.VKq(1,ae,t.screenSize===t.screenSizeEnum.XS))}}function sa(n,i){if(1&n&&e._UZ(0,"span",58),2&n){const t=e.oxw(5);e.Q6J("ngClass",e.VKq(1,ae,t.screenSize===t.screenSizeEnum.XS))}}function la(n,i){if(1&n&&(e.TgZ(0,"span",72),e.YNc(1,oa,1,3,"span",55),e.YNc(2,sa,1,3,"span",56),e._uU(3),e.ALo(4,"date"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Q6J("ngIf","SUCCEEDED"===t.status),e.xp6(1),e.Q6J("ngIf","SUCCEEDED"!==t.status),e.xp6(1),e.hij(" ",e.xi3(4,3,1e3*t.attempt_time,"dd/MMM/y HH:mm")," ")}}function ra(n,i){if(1&n&&(e.ynx(0),e.YNc(1,la,5,6,"span",71),e.BQk()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.htlcs)}}function ca(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",70),e.YNc(2,aa,1,3,"span",55),e.YNc(3,ia,1,3,"span",56),e._uU(4),e.qZA(),e.YNc(5,ra,2,1,"ng-container",9),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Q6J("ngIf","SUCCEEDED"===(null==t?null:t.status)),e.xp6(1),e.Q6J("ngIf","SUCCEEDED"!==(null==t?null:t.status)),e.xp6(1),e.hij(" Total Attempts: ",null==t||null==t.htlcs?null:t.htlcs.length," "),e.xp6(1),e.Q6J("ngIf",null==t?null:t.is_expanded)}}function ua(n,i){if(1&n&&(e.TgZ(0,"span",70),e._uU(1),e.qZA()),2&n){const t=i.index;e.xp6(1),e.hij(" HTLC ",t+1," ")}}function pa(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,ua,2,1,"span",73),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.htlcs)}}function ma(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",59),e.TgZ(2,"span",60),e._uU(3),e.qZA(),e.qZA(),e.YNc(4,pa,2,1,"span",9),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.xp6(1),e.Q6J("ngStyle",e.VKq(3,Me,a.screenSize===a.screenSizeEnum.XS?"10rem":"30rem")),e.xp6(2),e.Oqu(null==t?null:t.payment_hash),e.xp6(1),e.Q6J("ngIf",null==t?null:t.is_expanded)}}function _a(n,i){if(1&n&&(e.TgZ(0,"span",74),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,null==t.route?null:t.route.total_fees,"1.0-0")," ")}}function da(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,_a,3,4,"span",75),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.htlcs)}}function ha(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",74),e._uU(2),e.ALo(3,"number"),e.qZA(),e.YNc(4,da,2,1,"span",9),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.xi3(3,2,null==t?null:t.fee,"1.0-0")),e.xp6(2),e.Q6J("ngIf",null==t?null:t.is_expanded)}}function ga(n,i){if(1&n&&(e.TgZ(0,"span",74),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,null==t.route?null:t.route.total_amt,"1.0-0")," ")}}function fa(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,ga,3,4,"span",75),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.htlcs)}}function Ca(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",74),e._uU(2),e.ALo(3,"number"),e.qZA(),e.YNc(4,fa,2,1,"span",9),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.xi3(3,2,null==t?null:t.value,"1.0-0")),e.xp6(2),e.Q6J("ngIf",null==t?null:t.is_expanded)}}function xa(n,i){if(1&n&&(e.TgZ(0,"span",74),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,(null==t.route||null==t.route.hops?null:t.route.hops.length)||0,"1.0-0")," ")}}function Za(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,xa,3,4,"span",75),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.htlcs)}}function ya(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",74),e._uU(2,"-"),e.qZA(),e.YNc(3,Za,2,1,"span",9),e.qZA()),2&n){const t=i.$implicit;e.xp6(3),e.Q6J("ngIf",null==t?null:t.is_expanded)}}function Ta(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",62),e.TgZ(1,"button",79),e.NdJ("click",function(){const s=e.CHM(t).$implicit,u=e.oxw(2).$implicit;return e.oxw(2).onHTLCClick(s,u)}),e._uU(2),e.qZA(),e.qZA()}if(2&n){const t=i.index;e.xp6(2),e.hij("View ",t+1,"")}}function ba(n,i){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,Ta,3,1,"div",78),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.htlcs)}}function Aa(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",76),e.TgZ(1,"span",62),e.TgZ(2,"button",77),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return s.is_expanded=!(null!=s&&s.is_expanded)}),e._uU(3),e.qZA(),e.qZA(),e.YNc(4,ba,2,1,"div",9),e.qZA()}if(2&n){const t=i.$implicit;e.xp6(3),e.Oqu(null!=t&&t.is_expanded?"Hide":"Show"),e.xp6(1),e.Q6J("ngIf",null==t?null:t.is_expanded)}}function va(n,i){1&n&&e._UZ(0,"tr",80)}const wa=function(n){return{"display-none":n}};function qa(n,i){if(1&n&&e._UZ(0,"tr",81),2&n){const t=e.oxw(2);e.Q6J("ngClass",e.VKq(1,wa,(null==t.payments?null:t.payments.data)&&(null==t.payments||null==t.payments.data?null:t.payments.data.length)>0))}}function Sa(n,i){1&n&&e._UZ(0,"tr",82)}function La(n,i){1&n&&e._UZ(0,"tr",80)}const ka=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Fa=function(){return["no_payment"]};function Ua(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",15),e.TgZ(1,"div",16),e.TgZ(2,"div",17),e._UZ(3,"fa-icon",18),e.TgZ(4,"span",19),e._uU(5,"Payments History"),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",20),e.TgZ(7,"input",21),e.NdJ("keyup",function(){return e.CHM(t),e.oxw().applyFilter()})("ngModelChange",function(o){return e.CHM(t),e.oxw().selFilter=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",22),e.TgZ(9,"div",23),e.YNc(10,Dn,1,0,"mat-progress-bar",24),e.TgZ(11,"table",25,26),e.ynx(13,27),e.YNc(14,Pn,2,0,"th",28),e.YNc(15,Qn,5,6,"td",29),e.BQk(),e.ynx(16,30),e.YNc(17,Yn,2,0,"th",28),e.YNc(18,Hn,4,4,"td",29),e.BQk(),e.ynx(19,31),e.YNc(20,Bn,2,0,"th",32),e.YNc(21,Vn,4,3,"td",29),e.BQk(),e.ynx(22,33),e.YNc(23,Gn,2,0,"th",32),e.YNc(24,zn,4,3,"td",29),e.BQk(),e.ynx(25,34),e.YNc(26,Wn,2,0,"th",32),e.YNc(27,Xn,3,1,"td",29),e.BQk(),e.ynx(28,35),e.YNc(29,$n,6,0,"th",36),e.YNc(30,jn,3,0,"td",37),e.BQk(),e.ynx(31,38),e.YNc(32,na,4,3,"td",39),e.BQk(),e.ynx(33,40),e.YNc(34,ca,6,4,"td",29),e.BQk(),e.ynx(35,41),e.YNc(36,ma,5,5,"td",29),e.BQk(),e.ynx(37,42),e.YNc(38,ha,5,5,"td",29),e.BQk(),e.ynx(39,43),e.YNc(40,Ca,5,5,"td",29),e.BQk(),e.ynx(41,44),e.YNc(42,ya,4,1,"td",29),e.BQk(),e.ynx(43,45),e.YNc(44,Aa,5,2,"td",46),e.BQk(),e.YNc(45,va,1,0,"tr",47),e.YNc(46,qa,1,3,"tr",48),e.YNc(47,Sa,1,0,"tr",49),e.YNc(48,La,1,0,"tr",50),e.qZA(),e.TgZ(49,"mat-paginator",51),e.NdJ("page",function(o){return e.CHM(t),e.oxw().onPageChange(o)}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(3),e.Q6J("icon",t.faHistory),e.xp6(4),e.Q6J("ngModel",t.selFilter),e.xp6(3),e.Q6J("ngIf",t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",t.payments)("ngClass",e.VKq(15,ka,""!==t.errorMessage)),e.xp6(34),e.Q6J("matRowDefColumns",t.htlcColumns)("matRowDefWhen",t.is_group),e.xp6(1),e.Q6J("matFooterRowDef",e.DdM(17,Fa)),e.xp6(1),e.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns),e.xp6(1),e.Q6J("length",t.totalPayments)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let De=(()=>{class n{constructor(t,a,o,s,u,g,N,x){this.logger=t,this.commonService=a,this.dataService=o,this.store=s,this.rtlEffects=u,this.lndEffects=g,this.decimalPipe=N,this.datePipe=x,this.calledFrom="transactions",this.faHistory=Z.qO$,this.newlyAddedPayment="",this.selNode={},this.information={},this.peers=[],this.totalPayments=100,this.paymentJSONArr=[],this.displayedColumns=[],this.htlcColumns=[],this.paymentDecoded={},this.paymentRequest="",this.paymentDecodedHint="",this.flgSticky=!1,this.firstOffset=-1,this.lastOffset=-1,this.selFilter="",this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["creation_date","fee","actions"],this.htlcColumns=["groupTotal","groupFee","groupAction"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["creation_date","fee","value","hops","actions"],this.htlcColumns=["groupTotal","groupFee","groupValue","groupHops","groupAction"]):(this.flgSticky=!0,this.displayedColumns=["creation_date","payment_hash","fee","value","hops","actions"],this.htlcColumns=["groupTotal","groupHash","groupFee","groupValue","groupHops","groupAction"])}ngOnInit(){this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(C.Wi).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.peers=t.peers}),this.store.select(C.PP).pipe((0,d.R)(this.unSubs[3])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.paymentJSONArr=t.listPayments.payments||[],this.totalPayments=this.paymentJSONArr.length,this.firstOffset=+t.listPayments.first_index_offset,this.lastOffset=+t.listPayments.last_index_offset,this.paymentJSONArr&&this.paymentJSONArr.length>0&&this.sort&&this.paginator&&this.loadPaymentsTable(this.paymentJSONArr.slice(0,this.pageSize)),this.logger.info(t)})}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,V.q)(1)).subscribe(t=>{this.paymentDecoded=t,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,v.c1)({payload:{data:{type:l.n_.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:l.Gi.DATE_TIME},{key:"num_satoshis",value:this.paymentDecoded.num_satoshis,title:"Amount (Sats)",width:50,type:l.Gi.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:l.Gi.NUMBER},{key:"cltv_expiry",value:this.paymentDecoded.cltv_expiry,title:"CLTV Expiry",width:50}]]}}})),this.rtlEffects.closeConfirm.pipe((0,V.q)(1)).subscribe(a=>{a&&(this.store.dispatch((0,b.oV)({payload:{uiMessage:l.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,fromDialog:!1}})),this.resetData())})):(this.store.dispatch((0,v.c1)({payload:{data:{type:l.n_.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:l.Gi.DATE_TIME},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:l.Gi.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:l.Gi.NUMBER.toLowerCase(),inputValue:"",width:30}]}}})),this.rtlEffects.closeConfirm.pipe((0,V.q)(1)).subscribe(o=>{o&&(this.paymentDecoded.num_satoshis=o[0].inputValue,this.store.dispatch((0,b.oV)({payload:{uiMessage:l.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,paymentAmount:o[0].inputValue,fromDialog:!1}})),this.resetData())}))}openSendPaymentModal(){this.store.dispatch((0,v.qR)({payload:{data:{component:Un}}}))}onPaymentRequestEntry(t){this.paymentRequest=t,this.paymentDecodedHint="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,V.q)(1)).subscribe(a=>{this.paymentDecoded=a,this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis?this.selNode.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.num_satoshis,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,d.R)(this.unSubs[5])).subscribe({next:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats ("+o.symbol+this.decimalPipe.transform(o.OTHER?o.OTHER:0,l.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats | Memo: "+this.paymentDecoded.description:this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description})}onPageChange(t){let a=!0,o=this.lastOffset;this.pageSize=t.pageSize,0===t.pageIndex?(a=!0,o=0):t.pageIndext.previousPageIndex&&t.length>(t.pageIndex+1)*t.pageSize?(a=!0,o=this.firstOffset):t.length<=(t.pageIndex+1)*t.pageSize&&(a=!1,o=0);const s=t.pageIndex*this.pageSize;this.loadPaymentsTable(this.paymentJSONArr.slice(s,s+this.pageSize))}is_group(t,a){return a.htlcs&&a.htlcs.length>1}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}getHopDetails(t){const a=this;return t.reduce((o,s)=>{const u=a.peers.find(g=>g.pub_key===s.pub_key);return u&&u.alias?o.push("
Channel: "+u.alias.padEnd(20)+"			Amount (Sats): "+a.decimalPipe.transform(s.amt_to_forward)+"
"):a.dataService.getAliasesFromPubkeys(s.pub_key,!1).pipe((0,d.R)(a.unSubs[6])).subscribe(g=>{o.push("
Channel: "+(g.node&&g.node.alias?g.node.alias.padEnd(20):s.pub_key.substring(0,17)+"...")+"			Amount (Sats): "+a.decimalPipe.transform(s.amt_to_forward)+"
")}),o},[])}onHTLCClick(t,a){a.payment_request&&""!==a.payment_request.trim()?this.dataService.decodePayment(a.payment_request,!1).pipe((0,V.q)(1)).subscribe({next:o=>{setTimeout(()=>{this.showHTLCView(t,a,o)},0)},error:o=>{this.showHTLCView(t,a,null)}}):this.showHTLCView(t,a,null)}showHTLCView(t,a,o){const s=[[{key:"payment_hash",value:a.payment_hash,title:"Payment Hash",width:100,type:l.Gi.STRING}],[{key:"preimage",value:t.preimage,title:"Preimage",width:100,type:l.Gi.STRING}],[{key:"payment_request",value:a.payment_request,title:"Payment Request",width:100,type:l.Gi.STRING}],[{key:"status",value:t.status,title:"Status",width:33,type:l.Gi.STRING},{key:"attempt_time_ns",value:+t.attempt_time_ns/1e9,title:"Attempt Time",width:33,type:l.Gi.DATE_TIME},{key:"resolve_time_ns",value:+t.resolve_time_ns/1e9,title:"Resolve Time",width:34,type:l.Gi.DATE_TIME}],[{key:"total_amt",value:t.route.total_amt,title:"Amount (Sats)",width:33,type:l.Gi.NUMBER},{key:"total_fees",value:t.route.total_fees,title:"Fee (Sats)",width:33,type:l.Gi.NUMBER},{key:"total_time_lock",value:t.route.total_time_lock,title:"Total Time Lock",width:34,type:l.Gi.NUMBER}],[{key:"hops",value:this.getHopDetails(t.route.hops),title:"Hops",width:100,type:l.Gi.ARRAY}]];o&&o.description&&""!==o.description&&s.splice(3,0,[{key:"description",value:o.description,title:"Description",width:100,type:l.Gi.STRING}]),this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"HTLC Information",message:s,scrollable:t.route&&t.route.hops&&t.route.hops.length>1}}}))}onPaymentClick(t){if(t.htlcs&&t.htlcs[0]&&t.htlcs[0].route&&t.htlcs[0].route.hops&&t.htlcs[0].route.hops.length>0){const a=t.htlcs[0].route.hops.reduce((o,s)=>""===o?s.pub_key:o+","+s.pub_key,"");this.dataService.getAliasesFromPubkeys(a,!0).pipe((0,d.R)(this.unSubs[7])).subscribe(o=>{this.showPaymentView(t,o.reduce((s,u)=>""===s?u:s+"\n"+u,""))})}else this.showPaymentView(t,"")}showPaymentView(t,a){const o=[[{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:l.Gi.STRING}],[{key:"payment_preimage",value:t.payment_preimage,title:"Payment Preimage",width:100,type:l.Gi.STRING}],[{key:"payment_request",value:t.payment_request,title:"Payment Request",width:100,type:l.Gi.STRING}],[{key:"status",value:t.status,title:"Status",width:50,type:l.Gi.STRING},{key:"creation_date",value:t.creation_date,title:"Creation Date",width:50,type:l.Gi.DATE_TIME}],[{key:"value_msat",value:t.value_msat,title:"Value (mSats)",width:50,type:l.Gi.NUMBER},{key:"fee_msat",value:t.fee_msat,title:"Fee (mSats)",width:50,type:l.Gi.NUMBER}],[{key:"path",value:a,title:"Path",width:100,type:l.Gi.STRING}]];t.payment_request&&""!==t.payment_request.trim()?this.dataService.decodePayment(t.payment_request,!1).pipe((0,V.q)(1)).subscribe(s=>{s&&s.description&&""!==s.description&&o.splice(3,0,[{key:"description",value:s.description,title:"Description",width:100,type:l.Gi.STRING}]),setTimeout(()=>{this.openPaymentAlert(o,t.htlcs&&t.htlcs[0]&&t.htlcs[0].route&&t.htlcs[0].route.hops&&t.htlcs[0].route.hops.length>1)},0)}):this.openPaymentAlert(o,!1)}openPaymentAlert(t,a){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Payment Information",message:t,scrollable:a}}}))}applyFilter(){this.payments.filter=this.selFilter.trim().toLowerCase()}loadPaymentsTable(t){this.payments=new r.by(t?[...t]:[]),this.payments.sortingDataAccessor=(a,o)=>"hops"===o?a.htlcs.length&&a.htlcs[0]&&a.htlcs[0].route&&a.htlcs[0].route.hops&&a.htlcs[0].route.hops.length?a.htlcs[0].route.hops.length:0:a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.payments.sort=this.sort,this.payments.filterPredicate=(a,o)=>((a.creation_date?this.datePipe.transform(new Date(1e3*a.creation_date),"dd/MMM/YYYY HH:mm").toLowerCase():"")+JSON.stringify(a).toLowerCase()).includes(o),this.applyFilter()}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const t=JSON.parse(JSON.stringify(this.payments.data)),a=t.reduce((o,s)=>(s.payment_request&&""!==s.payment_request.trim()&&(o=""===o?s.payment_request:o+","+s.payment_request),o),"");this.dataService.decodePayments(a).pipe((0,d.R)(this.unSubs[8])).subscribe(o=>{let s=0;o.forEach((g,N)=>{if(g){for(;t[N+s].payment_hash!==g.payment_hash;)s+=1;t[N+s].description=g.description}});const u=t.reduce((g,N)=>g.concat(N),[]);this.commonService.downloadFile(u,"Payments")})}}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(j.D),e.Y36(w.yh),e.Y36(oe.V),e.Y36(ee.l),e.Y36(p.JJ),e.Y36(p.uU))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-lightning-payments"]],viewQuery:function(t,a){if(1&t&&(e.Gf(Nn,5),e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.form=o.first),e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},inputs:{calledFrom:"calledFrom"},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Payments")}])],decls:4,vars:3,consts:[["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"],["sendPaymentForm","ngForm"],["fxFlex","100"],["matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","1","required","",3,"perfectScrollbar","ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[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"],["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","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["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,"dataSource","ngClass"],["table",""],["matColumnDef","creation_date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","payment_hash"],["matColumnDef","fee"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","value"],["matColumnDef","hops"],["matColumnDef","actions"],["mat-header-cell","","class","px-2",4,"matHeaderCellDef"],["mat-cell","","class","px-2","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","groupTotal"],["matColumnDef","groupHash"],["matColumnDef","groupFee"],["matColumnDef","groupValue"],["matColumnDef","groupHops"],["matColumnDef","groupAction"],["mat-cell","","class","px-2",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["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"],["fxLayout","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-2"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-2"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"htlc-row-span"],["fxLayoutAlign","start center","class","htlc-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"htlc-row-span","pl-3"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-cell","",1,"px-2"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["fxLayoutAlign","end center",4,"ngFor","ngForOf"],["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(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,In,12,3,"form",1),e.YNc(2,Mn,3,0,"div",2),e.YNc(3,Ua,50,18,"div",3),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf","home"===a.calledFrom),e.xp6(1),e.Q6J("ngIf","transactions"===a.calledFrom),e.xp6(1),e.Q6J("ngIf","transactions"===a.calledFrom))},directives:[_.xw,_.yH,_.Wh,p.O5,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,c.Q7,Q.$V,c.JJ,c.On,L.lW,f.bx,f.TO,M.BN,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.nj,r.Ke,r.as,S.NW,P.pW,r.ge,A.nU,r.ev,X.gM,p.PC,q.Zl,R.gD,R.$L,Y.ey,r.yh,p.sg,r.Gk,r.Q2,r.XQ],pipes:[p.uU,p.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:0 0 20%;width:20%}.mat-column-payment_hash[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-groupAction[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}.htlc-row-span[_ngcontent-%COMP%]{min-height:4.2rem;place-content:center flex-start;align-items:center}.mat-column-groupTotal[_ngcontent-%COMP%]{min-width:17rem}"]}),n})();function Na(n,i){if(1&n&&(e.TgZ(0,"button",26),e.TgZ(1,"mat-icon"),e._uU(2,"more_vert"),e.qZA(),e.qZA()),2&n){e.oxw();const t=e.MAs(11);e.Q6J("matMenuTriggerFor",t)}}function Oa(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",27),e.NdJ("click",function(){const s=e.CHM(t).index,u=e.oxw().$implicit;return e.oxw(2).onNavigateTo(u.links[s])}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function Ra(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",27),e.NdJ("click",function(){return e.CHM(t),e.oxw(3).onsortChannelsBy()}),e._uU(1),e.qZA()}if(2&n){const t=e.oxw(3);e.xp6(1),e.hij("Sort By ","Balance Score"===t.sortField?"Capacity":"Balance Score","")}}function Ia(n,i){1&n&&e._UZ(0,"mat-progress-bar",28)}function Ma(n,i){if(1&n&&e._UZ(0,"rtl-node-info",29),2&n){const t=e.oxw(3);e.Q6J("information",t.information)("showColorFieldSeparately",!1)}}function Da(n,i){if(1&n&&e._UZ(0,"rtl-balances-info",30),2&n){const t=e.oxw(3);e.Q6J("balances",t.balances)("errorMessage",t.errorMessages[3]+" "+t.errorMessages[2])}}function Pa(n,i){if(1&n&&e._UZ(0,"rtl-channel-capacity-info",31),2&n){const t=e.oxw(3);e.Q6J("sortBy",t.sortField)("channelBalances",t.channelBalances)("allChannels",t.allChannelsCapacity)("errorMessage",t.errorMessages[3])}}function Ja(n,i){if(1&n&&e._UZ(0,"rtl-fee-info",32),2&n){const t=e.oxw(3);e.Q6J("fees",t.fees)("errorMessage",t.errorMessages[1])}}function Ea(n,i){if(1&n&&e._UZ(0,"rtl-channel-status-info",33),2&n){const t=e.oxw(3);e.Q6J("channelsStatus",t.channelsStatus)("errorMessage",t.errorMessages[3]+" "+t.errorMessages[4])}}function Qa(n,i){1&n&&(e.TgZ(0,"h3"),e._uU(1,"Error! Unable to find information!"),e.qZA())}const Pe=function(n){return{"dashboard-card-content":!0,"error-border":n}};function Ya(n,i){if(1&n&&(e.TgZ(0,"mat-grid-tile",8),e.TgZ(1,"mat-card",9),e.TgZ(2,"mat-card-header"),e.TgZ(3,"mat-card-title",10),e.TgZ(4,"div"),e._UZ(5,"fa-icon",11),e.TgZ(6,"span"),e._uU(7),e.qZA(),e.qZA(),e.TgZ(8,"div"),e.YNc(9,Na,3,1,"button",12),e.TgZ(10,"mat-menu",13,14),e.YNc(12,Oa,2,1,"button",15),e.YNc(13,Ra,2,1,"button",16),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"mat-card-content",17),e.YNc(15,Ia,1,0,"mat-progress-bar",18),e.TgZ(16,"div",19),e.YNc(17,Ma,1,2,"rtl-node-info",20),e.YNc(18,Da,1,2,"rtl-balances-info",21),e.YNc(19,Pa,1,4,"rtl-channel-capacity-info",22),e.YNc(20,Ja,1,2,"rtl-fee-info",23),e.YNc(21,Ea,1,2,"rtl-channel-status-info",24),e.YNc(22,Qa,2,0,"h3",25),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("colspan",t.cols)("rowspan",t.rows),e.xp6(5),e.Q6J("icon",t.icon),e.xp6(2),e.Oqu(t.title),e.xp6(2),e.Q6J("ngIf",t.links[0]),e.xp6(3),e.Q6J("ngForOf",t.goToOptions),e.xp6(1),e.Q6J("ngIf","capacity"===t.id),e.xp6(1),e.s9C("fxFlex","node"===t.id||"balance"===t.id?70:"fee"===t.id||"status"===t.id?78:90),e.Q6J("ngClass",e.VKq(16,Pe,"node"===t.id&&a.apiCallStatusNodeInfo.status===a.apiCallStatusEnum.ERROR||"balance"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.ERROR||a.apiCallStatusBlockchainBalance.status===a.apiCallStatusEnum.ERROR)||"capacity"===t.id&&a.apiCallStatusChannels.status===a.apiCallStatusEnum.ERROR||"fee"===t.id&&a.apiCallStatusFees.status===a.apiCallStatusEnum.ERROR||"status"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.ERROR||a.apiCallStatusPendingChannels.status===a.apiCallStatusEnum.ERROR))),e.xp6(1),e.Q6J("ngIf","node"===t.id&&a.apiCallStatusNodeInfo.status===a.apiCallStatusEnum.INITIATED||"balance"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.INITIATED||a.apiCallStatusBlockchainBalance.status===a.apiCallStatusEnum.INITIATED)||"capacity"===t.id&&a.apiCallStatusChannels.status===a.apiCallStatusEnum.INITIATED||"fee"===t.id&&a.apiCallStatusFees.status===a.apiCallStatusEnum.INITIATED||"status"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.INITIATED||a.apiCallStatusPendingChannels.status===a.apiCallStatusEnum.INITIATED)),e.xp6(1),e.Q6J("ngSwitch",t.id),e.xp6(1),e.Q6J("ngSwitchCase","node"),e.xp6(1),e.Q6J("ngSwitchCase","balance"),e.xp6(1),e.Q6J("ngSwitchCase","capacity"),e.xp6(1),e.Q6J("ngSwitchCase","fee"),e.xp6(1),e.Q6J("ngSwitchCase","status")}}function Ha(n,i){if(1&n&&(e.TgZ(0,"div",2),e.TgZ(1,"div",3),e._UZ(2,"fa-icon",4),e.TgZ(3,"span",5),e._uU(4),e.qZA(),e.qZA(),e.TgZ(5,"mat-grid-list",6),e.YNc(6,Ya,23,18,"mat-grid-tile",7),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("icon",t.apiCallStatusNodeInfo.status===t.apiCallStatusEnum.ERROR?t.faFrown:t.faSmile),e.xp6(2),e.Oqu(t.apiCallStatusNodeInfo.status===t.apiCallStatusEnum.COMPLETED?"Welcome "+t.information.alias+"! Your node is up and running.":t.apiCallStatusNodeInfo.status===t.apiCallStatusEnum.INITIATED?"Wait! Getting your node information...":"Error! Please check the server connection."),e.xp6(1),e.Q6J("rowHeight",t.operatorCardHeight),e.xp6(1),e.Q6J("ngForOf",t.operatorCards)}}function Ba(n,i){if(1&n&&(e.TgZ(0,"button",26),e.TgZ(1,"mat-icon"),e._uU(2,"more_vert"),e.qZA(),e.qZA()),2&n){e.oxw();const t=e.MAs(9);e.Q6J("matMenuTriggerFor",t)}}function Va(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",27),e.NdJ("click",function(){const s=e.CHM(t).index,u=e.oxw(2).$implicit;return e.oxw(2).onNavigateTo(u.links[s])}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function Ga(n,i){if(1&n&&(e.TgZ(0,"mat-card-header"),e.TgZ(1,"mat-card-title",10),e.TgZ(2,"div"),e._UZ(3,"fa-icon",11),e.TgZ(4,"span"),e._uU(5),e.qZA(),e.qZA(),e.TgZ(6,"div"),e.YNc(7,Ba,3,1,"button",12),e.TgZ(8,"mat-menu",13,43),e.YNc(10,Va,2,1,"button",15),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(3),e.Q6J("icon",t.icon),e.xp6(2),e.Oqu(t.title),e.xp6(2),e.Q6J("ngIf",t.links[0]),e.xp6(3),e.Q6J("ngForOf",t.goToOptions)}}function za(n,i){1&n&&e._UZ(0,"mat-progress-bar",28)}function Wa(n,i){if(1&n&&e._UZ(0,"rtl-node-info",44),2&n){const t=e.oxw(3);e.Q6J("information",t.information)}}function Xa(n,i){if(1&n&&e._UZ(0,"rtl-balances-info",30),2&n){const t=e.oxw(3);e.Q6J("balances",t.balances)("errorMessage",t.errorMessages[3]+" "+t.errorMessages[2])}}function $a(n,i){if(1&n&&e._UZ(0,"rtl-channel-liquidity-info",45),2&n){const t=e.oxw(3);e.Q6J("direction","In")("totalLiquidity",t.totalInboundLiquidity)("allChannels",t.allInboundChannels)("errorMessage",t.errorMessages[3])}}function ja(n,i){if(1&n&&e._UZ(0,"rtl-channel-liquidity-info",45),2&n){const t=e.oxw(3);e.Q6J("direction","Out")("totalLiquidity",t.totalOutboundLiquidity)("allChannels",t.allOutboundChannels)("errorMessage",t.errorMessages[3])}}function Ka(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",27),e.NdJ("click",function(){const s=e.CHM(t).index,u=e.oxw(3).$implicit;return e.oxw(2).onNavigateTo(u.links[s])}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function ei(n,i){if(1&n&&(e.TgZ(0,"button",26),e.TgZ(1,"mat-icon"),e._uU(2,"more_vert"),e.qZA(),e.qZA(),e.TgZ(3,"mat-menu",13,53),e.YNc(5,Ka,2,1,"button",15),e.qZA()),2&n){const t=e.MAs(4),a=e.oxw(2).$implicit;e.Q6J("matMenuTriggerFor",t),e.xp6(5),e.Q6J("ngForOf",a.goToOptions)}}function ti(n,i){1&n&&(e.TgZ(0,"span",46),e.TgZ(1,"mat-tab-group",47),e.TgZ(2,"mat-tab",48),e._UZ(3,"rtl-lightning-invoices",49),e.qZA(),e.TgZ(4,"mat-tab",50),e._UZ(5,"rtl-lightning-payments",49),e.qZA(),e.TgZ(6,"mat-tab",51),e.YNc(7,ei,6,2,"ng-template",52),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.xp6(3),e.Q6J("calledFrom","home"),e.xp6(2),e.Q6J("calledFrom","home"),e.xp6(1),e.Q6J("disabled",!0))}function ni(n,i){1&n&&(e.TgZ(0,"h3"),e._uU(1,"Error! Unable to find information!"),e.qZA())}const ai=function(n){return{"p-0":n}};function ii(n,i){if(1&n&&(e.TgZ(0,"mat-grid-tile",8),e.TgZ(1,"mat-card",36),e.YNc(2,Ga,11,4,"mat-card-header",37),e.TgZ(3,"mat-card-content",38),e.YNc(4,za,1,0,"mat-progress-bar",18),e.TgZ(5,"div",39),e.YNc(6,Wa,1,1,"rtl-node-info",40),e.YNc(7,Xa,1,2,"rtl-balances-info",21),e.YNc(8,$a,1,4,"rtl-channel-liquidity-info",41),e.YNc(9,ja,1,4,"rtl-channel-liquidity-info",41),e.YNc(10,ti,8,3,"span",42),e.YNc(11,ni,2,0,"h3",25),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("colspan",t.cols)("rowspan",t.rows),e.xp6(1),e.Q6J("ngClass",e.VKq(13,ai,"transactions"===t.id)),e.xp6(1),e.Q6J("ngIf","transactions"!==t.id),e.xp6(1),e.s9C("fxFlex","transactions"===t.id?100:"balance"===t.id?70:90),e.Q6J("ngClass",e.VKq(15,Pe,"node"===t.id&&a.apiCallStatusNodeInfo.status===a.apiCallStatusEnum.ERROR||"balance"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.ERROR||a.apiCallStatusBlockchainBalance.status===a.apiCallStatusEnum.ERROR)||("inboundLiq"===t.id||"outboundLiq"===t.id)&&a.apiCallStatusChannels.status===a.apiCallStatusEnum.ERROR)),e.xp6(1),e.Q6J("ngIf","node"===t.id&&a.apiCallStatusNodeInfo.status===a.apiCallStatusEnum.INITIATED||"balance"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.INITIATED||a.apiCallStatusBlockchainBalance.status===a.apiCallStatusEnum.INITIATED)||("inboundLiq"===t.id||"outboundLiq"===t.id)&&a.apiCallStatusChannels.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngSwitch",t.id),e.xp6(1),e.Q6J("ngSwitchCase","node"),e.xp6(1),e.Q6J("ngSwitchCase","balance"),e.xp6(1),e.Q6J("ngSwitchCase","inboundLiq"),e.xp6(1),e.Q6J("ngSwitchCase","outboundLiq"),e.xp6(1),e.Q6J("ngSwitchCase","transactions")}}function oi(n,i){if(1&n&&(e.TgZ(0,"div",34),e._UZ(1,"fa-icon",4),e.TgZ(2,"span",5),e._uU(3),e.qZA(),e.qZA(),e.TgZ(4,"mat-grid-list",35),e.YNc(5,ii,12,17,"mat-grid-tile",7),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faSmile),e.xp6(2),e.hij("Welcome ",t.information.alias,"! Your node is up and running."),e.xp6(1),e.Q6J("rowHeight",t.merchantCardHeight),e.xp6(1),e.Q6J("ngForOf",t.merchantCards)}}let si=(()=>{class n{constructor(t,a,o,s,u){switch(this.logger=t,this.store=a,this.actions=o,this.commonService=s,this.router=u,this.faSmile=Le.I3,this.faFrown=Le.Kf,this.faAngleDoubleDown=Z.Sbq,this.faAngleDoubleUp=Z.Vfw,this.faChartPie=Z.OS1,this.faBolt=Z.BDt,this.faServer=Z.xf3,this.faNetworkWired=Z.kXW,this.flgChildInfoUpdated=!1,this.userPersonaEnum=l.ol,this.activeChannels=0,this.inactiveChannels=0,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.selNode={},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="330px",this.merchantCardHeight="65px",this.sortField="Balance Score",this.screenSizeEnum=l.cu,this.errorMessages=["","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusFees=null,this.apiCallStatusBlockchainBalance=null,this.apiCallStatusChannels=null,this.apiCallStatusPendingChannels=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize){case l.cu.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 l.cu.SM:case l.cu.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(C.bx).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=t.apiCallStatus,this.apiCallStatusNodeInfo.status===l.Bn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message),this.selNode=t.nodeSettings,this.information=t.information}),this.store.select(C.JG).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.errorMessages[1]="",this.apiCallStatusFees=t.apiCallStatus,this.apiCallStatusFees.status===l.Bn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message),this.fees=t.fees}),this.store.select(C.qU).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.errorMessages[2]="",this.apiCallStatusBlockchainBalance=t.apiCallStatus,this.apiCallStatusBlockchainBalance.status===l.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusBlockchainBalance.message?JSON.stringify(this.apiCallStatusBlockchainBalance.message):this.apiCallStatusBlockchainBalance.message),this.balances.onchain=+t.blockchainBalance.total_balance>=0?+t.blockchainBalance.total_balance:0,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances)}),this.store.select(C.ni).pipe((0,d.R)(this.unSubs[3])).subscribe(t=>{this.errorMessages[4]="",this.apiCallStatusPendingChannels=t.apiCallStatus,this.apiCallStatusPendingChannels.status===l.Bn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusPendingChannels.message?JSON.stringify(this.apiCallStatusPendingChannels.message):this.apiCallStatusPendingChannels.message),this.channelsStatus.pending={num_channels:t.pendingChannelsSummary.open.num_channels,capacity:t.pendingChannelsSummary.open.limbo_balance},this.channelsStatus.closing={num_channels:t.pendingChannelsSummary.closing.num_channels+t.pendingChannelsSummary.force_closing.num_channels+t.pendingChannelsSummary.waiting_close.num_channels,capacity:t.pendingChannelsSummary.total_limbo_balance}}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[4])).subscribe(t=>{this.errorMessages[3]="",this.apiCallStatusChannels=t.apiCallStatus,this.apiCallStatusChannels.status===l.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message);const a=t.lightningBalance&&t.lightningBalance.local?+t.lightningBalance.local:0,o=t.lightningBalance&&t.lightningBalance.remote?+t.lightningBalance.remote:0;this.channelBalances={localBalance:a,remoteBalance:o,balancedness:+(1-Math.abs((a-o)/(a+o))).toFixed(3)},this.balances.lightning=t.lightningBalance.local,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances),this.activeChannels=t.channelsSummary.active.num_channels,this.inactiveChannels=t.channelsSummary.inactive.num_channels,this.channelsStatus.active=t.channelsSummary.active,this.channelsStatus.inactive=t.channelsSummary.inactive,this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.allChannels=t.channels.filter(u=>!0===u.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(u=>u.remote_balance>0),"remote_balance"))),this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels.filter(u=>u.local_balance>0),"local_balance"))),this.allChannels.forEach(u=>{this.totalInboundLiquidity=this.totalInboundLiquidity+ +u.remote_balance,this.totalOutboundLiquidity=this.totalOutboundLiquidity+ +u.local_balance}),this.flgChildInfoUpdated=this.balances.lightning>=0&&this.balances.onchain>=0&&this.fees.month_fee_sum>=0,this.logger.info(t)}),this.actions.pipe((0,d.R)(this.unSubs[5]),(0,E.h)(t=>t.type===l.uR.FETCH_FEES_LND||t.type===l.uR.SET_FEES_LND)).subscribe(t=>{t.type===l.uR.FETCH_FEES_LND&&(this.flgChildInfoUpdated=!1),t.type===l.uR.SET_FEES_LND&&(this.flgChildInfoUpdated=!0)})}onNavigateTo(t){"inactive"===t?this.router.navigateByUrl("/lnd/connections",{state:{filter:t}}):this.router.navigateByUrl("/lnd/"+t)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.allChannelsCapacity=this.allChannels.sort((t,a)=>{const o=+t.local_balance+ +t.remote_balance,s=+a.local_balance+ +a.remote_balance;return o>s?-1:o{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(G.eX),e.Y36(O.v),e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-home"]],decls:3,vars:2,consts:[["fxLayout","column",4,"ngIf","ngIfElse"],["merchantDashboard",""],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","mb-0"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","10",3,"rowHeight"],[3,"colspan","rowspan",4,"ngFor","ngForOf"],[3,"colspan","rowspan"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card","mt-4"],["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"],["menuOperator","matMenu"],["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-0"],["cols","6",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card","mt-4",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",3,"direction","totalLiquidity","allChannels","errorMessage",4,"ngSwitchCase"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",3,"perfectScrollbar",4,"ngSwitchCase"],["menuMerchant","matMenu"],["fxFlex","100",3,"information"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","errorMessage"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",1,"w-100","dashboard-tabs-group"],["label","Receive"],[3,"calledFrom"],["label","Pay"],[3,"disabled"],["mat-tab-label",""],["menuTransactions","matMenu"]],template:function(t,a){if(1&t&&(e.YNc(0,Ha,7,4,"div",0),e.YNc(1,oi,6,4,"ng-template",null,1,e.W1O)),2&t){const o=e.MAs(2);e.Q6J("ngIf",(null==a.selNode?null:a.selNode.userPersona)===a.userPersonaEnum.OPERATOR)("ngIfElse",o)}},directives:[p.O5,_.xw,_.Wh,M.BN,ce.Il,p.sg,ce.DX,T.a8,_.yH,T.dk,T.n5,he.VK,T.dn,p.mk,q.oO,p.RF,p.n9,p.ED,L.lW,he.p6,K.Hw,he.OP,P.pW,Fe,rt,gt,Ue,Ne,Rt,Q.$V,D.SP,D.uX,Ie,De,D.uD],styles:[""]}),n})();var ge=h(1203),fe=h(7544);function li(n,i){if(1&n&&(e.TgZ(0,"span",10),e._uU(1,"Channels"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.activeChannels)}}function ri(n,i){if(1&n&&(e.TgZ(0,"span",10),e._uU(1,"Peers"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.activePeers)}}let ci=(()=>{class n{constructor(t,a,o){this.store=t,this.logger=a,this.router=o,this.selNode={},this.activePeers=0,this.activeChannels=0,this.faUsers=Z.FVb,this.faChartPie=Z.OS1,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 m.x,new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.activeLink=this.links.findIndex(t=>t.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(t=>t instanceof y.Av)).subscribe({next:t=>{this.activeLink=this.links.findIndex(a=>a.link===t.urlAfterRedirects.substring(t.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(C.$k).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.selNode=t}),this.store.select(C.Wi).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.activePeers=t.peers&&t.peers.length?t.peers.length:0,this.logger.info(t)}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[3])).subscribe(t=>{this.activeChannels=t.channelsSummary.active.num_channels,this.logger.info(t)}),this.store.select(C.qU).pipe((0,d.R)(this.unSubs[4])).subscribe(t=>{this.balances=[{title:"Total Balance",dataValue:t.blockchainBalance.total_balance||0},{title:"Confirmed",dataValue:t.blockchainBalance.confirmed_balance},{title:"Unconfirmed",dataValue:t.blockchainBalance.unconfirmed_balance}],this.logger.info(t)})}onSelectedTabChange(t){this.router.navigateByUrl("/lnd/connections/"+this.links[t.index].link)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh),e.Y36(F.mQ),e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-connections"]],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"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["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(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"On-chain Balance"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e._UZ(7,"rtl-currency-unit-converter",5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",0),e._UZ(9,"fa-icon",1),e.TgZ(10,"span",2),e._uU(11,"Connections"),e.qZA(),e.qZA(),e.TgZ(12,"div",6),e.TgZ(13,"mat-card"),e.TgZ(14,"mat-card-content",4),e.TgZ(15,"mat-tab-group",7),e.NdJ("selectedIndexChange",function(s){return a.activeLink=s})("selectedTabChange",function(s){return a.onSelectedTabChange(s)}),e.TgZ(16,"mat-tab"),e.YNc(17,li,2,1,"ng-template",8),e.qZA(),e.TgZ(18,"mat-tab"),e.YNc(19,ri,2,1,"ng-template",8),e.qZA(),e.qZA(),e.TgZ(20,"div",9),e._UZ(21,"router-outlet"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faChartPie),e.xp6(6),e.Q6J("values",a.balances),e.xp6(2),e.Q6J("icon",a.faUsers),e.xp6(6),e.Q6J("selectedIndex",a.activeLink))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,ge.D,D.SP,D.uX,D.uD,_.yH,y.lC,fe.k],styles:[""]}),n})();var Ce=h(8675),Je=h(4004),Ee=h(9843);const ui=["form"];function pi(n,i){if(1&n&&(e.TgZ(0,"mat-option",38),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.Oqu(t.alias?t.alias:t.pub_key?t.pub_key:"")}}function mi(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Peer alias is required."),e.qZA())}function _i(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Peer not found in the list."),e.qZA())}function di(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",34),e._UZ(1,"input",35),e.TgZ(2,"mat-autocomplete",36,37),e.NdJ("optionSelected",function(){return e.CHM(t),e.oxw().onSelectedPeerChanged()}),e.YNc(4,pi,2,2,"mat-option",24),e.ALo(5,"async"),e.qZA(),e.YNc(6,mi,2,0,"mat-error",17),e.YNc(7,_i,2,0,"mat-error",17),e.qZA()}if(2&n){const t=e.MAs(3),a=e.oxw();e.xp6(1),e.Q6J("formControl",a.selectedPeer)("matAutocomplete",t),e.xp6(1),e.Q6J("displayWith",a.displayFn),e.xp6(2),e.Q6J("ngForOf",e.lcZ(5,6,a.filteredPeers)),e.xp6(2),e.Q6J("ngIf",null==a.selectedPeer.errors?null:a.selectedPeer.errors.required),e.xp6(1),e.Q6J("ngIf",null==a.selectedPeer.errors?null:a.selectedPeer.errors.notfound)}}function hi(n,i){1&n&&e.GkF(0)}function gi(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount is required."),e.qZA())}function fi(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("Amount must be less than or equal to ",t.totalBalance,".")}}function Ci(n,i){if(1&n&&(e.TgZ(0,"mat-option",38),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t.id),e.xp6(1),e.hij(" ",t.name," ")}}function xi(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("","1"===t.selTransType?"Target Confirmation Blocks":"Fee"," is required.")}}function Zi(n,i){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.channelConnectionError)}}function yi(n,i){if(1&n&&(e.TgZ(0,"div",39),e._UZ(1,"fa-icon",40),e.YNc(2,Zi,2,1,"span",17),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(1),e.Q6J("ngIf",""!==t.channelConnectionError)}}function Ti(n,i){if(1&n&&(e.TgZ(0,"mat-expansion-panel",42),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e.TgZ(3,"span"),e._uU(4,"Peer: \xa0"),e.qZA(),e.TgZ(5,"strong",43),e._uU(6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",9),e.TgZ(8,"div",44),e.TgZ(9,"div",34),e.TgZ(10,"h4",45),e._uU(11,"Pubkey"),e.qZA(),e.TgZ(12,"span",46),e._uU(13),e.qZA(),e.qZA(),e.qZA(),e._UZ(14,"mat-divider",47),e.TgZ(15,"div",44),e.TgZ(16,"div",48),e.TgZ(17,"h4",45),e._uU(18,"Address"),e.qZA(),e.TgZ(19,"span",49),e._uU(20),e.qZA(),e.qZA(),e.TgZ(21,"div",48),e.TgZ(22,"h4",45),e._uU(23,"Inbound"),e.qZA(),e.TgZ(24,"span",49),e._uU(25),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw(2);e.xp6(6),e.Oqu((null==t.peer?null:t.peer.alias)||(null==t.peer?null:t.peer.address)),e.xp6(7),e.Oqu(t.peer.pub_key),e.xp6(7),e.Oqu(null==t.peer?null:t.peer.address),e.xp6(5),e.Oqu(null!=t.peer&&t.peer.inbound?"True":"False")}}function bi(n,i){if(1&n&&e.YNc(0,Ti,26,4,"mat-expansion-panel",41),2&n){const t=e.oxw();e.Q6J("ngIf",t.peer)}}let Qe=(()=>{class n{constructor(t,a,o,s){this.dialogRef=t,this.data=a,this.store=o,this.actions=s,this.selectedPeer=new c.NI,this.amount=new c.NI,this.faExclamationTriangle=Z.eHv,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.totalBalance=0,this.selectedPubkey="",this.isPrivate=!1,this.selTransType="0",this.spendUnconfirmed=!1,this.transTypeValue="",this.transTypes=l.Dr,this.unSubs=[new m.x,new m.x]}ngOnInit(){this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.alertTitle=this.data.alertTitle,this.peer=this.data.message.peer||null,this.peers=this.data.message.peers||[],this.actions.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(o=>o.type===l.uR.UPDATE_API_CALL_STATUS_LND||o.type===l.uR.FETCH_CHANNELS_LND)).subscribe(o=>{o.type===l.uR.UPDATE_API_CALL_STATUS_LND&&o.payload.status===l.Bn.ERROR&&"SaveNewChannel"===o.payload.action&&(this.channelConnectionError=o.payload.message),o.type===l.uR.FETCH_CHANNELS_LND&&this.dialogRef.close()});let t="",a="";this.sortedPeers=this.peers.sort((o,s)=>(t=o.alias?o.alias.toLowerCase():o.pub_key?o.pub_key.toLowerCase():"",a=s.alias?s.alias.toLowerCase():o.pub_key.toLowerCase(),ta?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe((0,d.R)(this.unSubs[1]),(0,Ce.O)(""),(0,Je.U)(o=>"string"==typeof o?o:o.alias?o.alias:o.pub_key),(0,Je.U)(o=>o?this.filterPeers(o):this.sortedPeers.slice()))}filterPeers(t){return this.sortedPeers.filter(a=>0===a.alias.toLowerCase().indexOf(t?t.toLowerCase():""))}displayFn(t){return t&&t.alias?t.alias:t&&t.pub_key?t.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 t=this.peers.filter(a=>a.alias.length===this.selectedPeer.value.length&&0===a.alias.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""));1===t.length&&t[0].pub_key&&(this.selectedPubkey=t[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=!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)return!0;this.store.dispatch((0,b.YX)({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}}))}onAdvancedPanelToggle(t){this.advancedTitle=t?"Advanced Options | "+("1"===this.selTransType?"Target Confirmation Blocks: ":"2"===this.selTransType?"Fee (Sats/vByte): ":"Default")+("1"===this.selTransType||"2"===this.selTransType?this.transTypeValue:"")+" | Spend Unconfirmed Output: "+(this.spendUnconfirmed?"Yes":"No"):"Advanced Options"}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(w.yh),e.Y36(G.eX))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-open-channel"]],viewQuery:function(t,a){if(1&t&&e.Gf(ui,7),2&t){let o;e.iGM(o=e.CRH())&&(a.form=o.first)}},decls:55,vars:25,consts:[["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"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column",3,"submit","reset"],["form","ngForm"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","60","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","1","required","","name","amnt",3,"ngModel","step","min","max","ngModelChange"],["amt","ngModel"],["matSuffix",""],[4,"ngIf"],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","isPrivate",3,"ngModel","ngModelChange"],["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","49"],["tabindex","3",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","tabindex","4","name","transTpValue",3,"ngModel","required","disabled","placeholder","step","min","ngModelChange"],["transTypeVal","ngModel"],["fxFlex","50","fxLayoutAlign","start center"],["tabindex","6","color","primary","name","spendUnconfirmed",3,"ngModel","ngModelChange"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","9"],["peerDetailsExpansionBlock",""],["fxFlex","100"],["type","text","placeholder","Peer Alias","aria-label","Peers","matInput","","tabindex","1","required","",3,"formControl","matAutocomplete"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["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(t,a){if(1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e.NdJ("click",function(){return a.onClose()}),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.TgZ(9,"form",7,8),e.NdJ("submit",function(){return a.onOpenChannel()})("reset",function(){return a.resetData()}),e.TgZ(11,"div",9),e.YNc(12,di,8,8,"mat-form-field",10),e.qZA(),e.YNc(13,hi,1,0,"ng-container",11),e.TgZ(14,"div",9),e.TgZ(15,"div",12),e.TgZ(16,"mat-form-field",13),e.TgZ(17,"input",14,15),e.NdJ("ngModelChange",function(s){return a.fundingAmount=s}),e.qZA(),e.TgZ(19,"mat-hint"),e._uU(20),e.ALo(21,"number"),e.qZA(),e.TgZ(22,"span",16),e._uU(23," Sats "),e.qZA(),e.YNc(24,gi,2,0,"mat-error",17),e.YNc(25,fi,2,1,"mat-error",17),e.qZA(),e.TgZ(26,"div",18),e.TgZ(27,"mat-slide-toggle",19),e.NdJ("ngModelChange",function(s){return a.isPrivate=s}),e._uU(28,"Private Channel"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"mat-expansion-panel",20),e.NdJ("closed",function(){return a.onAdvancedPanelToggle(!0)})("opened",function(){return a.onAdvancedPanelToggle(!1)}),e.TgZ(30,"mat-expansion-panel-header"),e.TgZ(31,"mat-panel-title"),e.TgZ(32,"span"),e._uU(33),e.qZA(),e.qZA(),e.qZA(),e.TgZ(34,"div",21),e.TgZ(35,"div",12),e.TgZ(36,"mat-form-field",22),e.TgZ(37,"mat-select",23),e.NdJ("valueChange",function(s){return a.selTransType=s}),e.YNc(38,Ci,2,2,"mat-option",24),e.qZA(),e.qZA(),e.TgZ(39,"mat-form-field",22),e.TgZ(40,"input",25,26),e.NdJ("ngModelChange",function(s){return a.transTypeValue=s}),e.qZA(),e.YNc(42,xi,2,1,"mat-error",17),e.qZA(),e.qZA(),e.TgZ(43,"div",12),e.TgZ(44,"div",27),e.TgZ(45,"mat-slide-toggle",28),e.NdJ("ngModelChange",function(s){return a.spendUnconfirmed=s}),e._uU(46,"Spend Unconfirmed Output"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(47,yi,3,2,"div",29),e.TgZ(48,"div",30),e.TgZ(49,"button",31),e._uU(50,"Clear Fields"),e.qZA(),e.TgZ(51,"button",32),e._uU(52,"Open Channel"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(53,bi,1,1,"ng-template",null,33,e.W1O)),2&t){const o=e.MAs(54);e.xp6(5),e.Oqu(a.alertTitle),e.xp6(7),e.Q6J("ngIf",!a.peer&&a.peers&&a.peers.length>0),e.xp6(1),e.Q6J("ngTemplateOutlet",o),e.xp6(4),e.Q6J("ngModel",a.fundingAmount)("step",1e3)("min",1)("max",a.totalBalance),e.xp6(3),e.hij("(Remaining Bal: ",e.lcZ(21,23,a.totalBalance-(a.fundingAmount?a.fundingAmount:0)),")"),e.xp6(4),e.Q6J("ngIf",null==a.amount.errors?null:a.amount.errors.required),e.xp6(1),e.Q6J("ngIf",null==a.amount.errors?null:a.amount.errors.max),e.xp6(2),e.Q6J("ngModel",a.isPrivate),e.xp6(6),e.Oqu(a.advancedTitle),e.xp6(4),e.Q6J("value",a.selTransType),e.xp6(1),e.Q6J("ngForOf",a.transTypes),e.xp6(2),e.Q6J("ngModel",a.transTypeValue)("required","0"!==a.selTransType)("disabled","0"===a.selTransType)("placeholder","0"===a.selTransType?"Default":"1"===a.selTransType?"Target Confirmation Blocks":"Fee (Sats/vByte)")("step",1)("min",0),e.xp6(2),e.Q6J("ngIf","0"!==a.selTransType&&!a.transTypeValue),e.xp6(3),e.Q6J("ngModel",a.spendUnconfirmed),e.xp6(2),e.Q6J("ngIf",""!==a.channelConnectionError)}},directives:[_.xw,_.Wh,_.yH,T.dk,L.lW,T.dn,c._Y,c.JL,c.F,p.O5,p.tP,f.KE,I.Nt,c.wV,c.qQ,c.Fd,c.Fj,$.q,Ee.F,c.Q7,c.JJ,c.On,f.bx,f.R9,ue.Rr,H.ib,H.yz,H.yK,R.gD,p.sg,W.h,ne.ZL,c.oH,ne.XC,Y.ey,f.TO,M.BN,z.d],pipes:[p.JJ,p.Ov],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),n})();var B=h(5615);const Ai=["peersForm"],vi=["stepper"];function wi(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw();e.Oqu(t.peerFormLabel)}}function qi(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Address is required."),e.qZA())}function Si(n,i){if(1&n&&(e.TgZ(0,"div",37),e._UZ(1,"fa-icon",38),e.TgZ(2,"span"),e._uU(3),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(2),e.Oqu(t.peerConnectionError)}}function Li(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw();e.Oqu(t.channelFormLabel)}}function ki(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount is required."),e.qZA())}function Fi(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount must be a positive number."),e.qZA())}function Ui(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("Amount must be less than or equal to ",t.totalBalance,".")}}function Ni(n,i){if(1&n&&(e.TgZ(0,"mat-option",39),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t.id),e.xp6(1),e.hij(" ",t.name," ")}}function Oi(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("","0"===t.channelFormGroup.controls.selTransType.value?"Default":"1"===t.channelFormGroup.controls.selTransType.value?"Target Confirmation Blocks":"Fee (Sats/vByte)"," is required.")}}function Ri(n,i){if(1&n&&(e.TgZ(0,"div",37),e._UZ(1,"fa-icon",38),e.TgZ(2,"span"),e._uU(3),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(2),e.Oqu(t.channelConnectionError)}}let Ii=(()=>{class n{constructor(t,a,o,s,u,g,N){this.dialogRef=t,this.data=a,this.store=o,this.lndEffects=s,this.formBuilder=u,this.actions=g,this.logger=N,this.faExclamationTriangle=Z.eHv,this.peerAddress="",this.totalBalance=0,this.transTypes=l.Dr,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.unSubs=[new m.x,new m.x]}ngOnInit(){this.totalBalance=this.data.message.balance,this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[c.kI.required]],peerAddress:["",[c.kI.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[c.kI.required,c.kI.min(1),c.kI.max(this.totalBalance)]],isPrivate:[!1],selTransType:[l.Dr[0].id],transTypeValue:[{value:"",disabled:!0}],spendUnconfirmed:[!1],hiddenAmount:["",[c.kI.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.channelFormGroup.controls.selTransType.valueChanges.pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{t===l.Dr[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([c.kI.required]))}),this.actions.pipe((0,d.R)(this.unSubs[1]),(0,E.h)(t=>t.type===l.uR.NEWLY_ADDED_PEER_LND||t.type===l.uR.FETCH_PENDING_CHANNELS_LND||t.type===l.uR.UPDATE_API_CALL_STATUS_LND)).subscribe(t=>{t.type===l.uR.NEWLY_ADDED_PEER_LND&&(this.logger.info(t.payload),this.flgEditable=!1,this.newlyAddedPeer=t.payload.peer,this.peerFormGroup.controls.hiddenAddress.setValue(this.peerFormGroup.controls.peerAddress.value),this.stepper.next()),t.type===l.uR.FETCH_PENDING_CHANNELS_LND&&this.dialogRef.close(),t.type===l.uR.UPDATE_API_CALL_STATUS_LND&&t.payload.status===l.Bn.ERROR&&("SaveNewPeer"===t.payload.action||"FetchGraphNode"===t.payload.action?this.peerConnectionError=t.payload.message:"SaveNewChannel"===t.payload.action&&(this.channelConnectionError=t.payload.message))})}onConnectPeer(){if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="";const t=this.peerFormGroup.controls.peerAddress.value.search("@");let a="",o="";t>-1?(a=this.peerFormGroup.controls.peerAddress.value.substring(0,t),o=this.peerFormGroup.controls.peerAddress.value.substring(t+1),this.connectPeerWithParams(a,o)):(this.store.dispatch((0,b.dV)({payload:{pubkey:this.peerFormGroup.controls.peerAddress.value}})),this.lndEffects.setGraphNode.pipe((0,V.q)(1)).subscribe(s=>{setTimeout(()=>{o=s.node.addresses&&s.node.addresses.length&&s.node.addresses.length>0&&s.node.addresses[0].addr?s.node.addresses[0].addr:"",this.connectPeerWithParams(this.peerFormGroup.controls.peerAddress.value,o)},0)}))}connectPeerWithParams(t,a){this.store.dispatch((0,b.El)({payload:{pubkey:t,host:a,perm:!1}}))}onOpenChannel(){if(!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)return!0;this.channelConnectionError="",this.store.dispatch((0,b.YX)({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}}))}onClose(){this.dialogRef.close(!1)}stepSelectionChanged(t){switch(t.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)"}t.selectedIndex{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(w.yh),e.Y36(ee.l),e.Y36(c.qu),e.Y36(G.eX),e.Y36(F.mQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-connect-peer"]],viewQuery:function(t,a){if(1&t&&(e.Gf(Ai,5),e.Gf(vi,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.form=o.first),e.iGM(o=e.CRH())&&(a.stepper=o.first)}},decls:56,vars:24,consts:[["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","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["autoFocus","","matInput","","placeholder","Lightning Address (pubkey OR pubkey@ip:port)","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"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","60","fxLayoutAlign","start end"],["matInput","","formControlName","fundingAmount","placeholder","Amount","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"],["fxFlex","30","fxLayoutAlign","start end"],["tabindex","3","formControlName","selTransType","placeholder","Transaction Type"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","30"],["matInput","","formControlName","transTypeValue","type","number","name","transTypeValue","tabindex","4",3,"placeholder","step","required"],["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"],[3,"value"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5,"Connect to a new peer"),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e.NdJ("click",function(){return a.onClose()}),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.TgZ(9,"div",7),e.TgZ(10,"mat-vertical-stepper",8,9),e.NdJ("selectionChange",function(s){return a.stepSelectionChanged(s)}),e.TgZ(12,"mat-step",10),e.TgZ(13,"form",11),e.YNc(14,wi,1,1,"ng-template",12),e.TgZ(15,"mat-form-field",1),e._UZ(16,"input",13),e.YNc(17,qi,2,0,"mat-error",14),e.qZA(),e.YNc(18,Si,4,2,"div",15),e.TgZ(19,"div",16),e.TgZ(20,"button",17),e.NdJ("click",function(){return a.onConnectPeer()}),e._uU(21),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"mat-step",10),e.TgZ(23,"form",18),e.YNc(24,Li,1,1,"ng-template",19),e.TgZ(25,"div",20),e.TgZ(26,"div",21),e.TgZ(27,"mat-form-field",22),e._UZ(28,"input",23),e.TgZ(29,"mat-hint"),e._uU(30),e.qZA(),e.TgZ(31,"span",24),e._uU(32," Sats "),e.qZA(),e.YNc(33,ki,2,0,"mat-error",14),e.YNc(34,Fi,2,0,"mat-error",14),e.YNc(35,Ui,2,1,"mat-error",14),e.qZA(),e.TgZ(36,"div",25),e.TgZ(37,"mat-slide-toggle",26),e._uU(38,"Private Channel"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(39,"div",27),e.TgZ(40,"mat-form-field",28),e.TgZ(41,"mat-select",29),e.YNc(42,Ni,2,2,"mat-option",30),e.qZA(),e.qZA(),e.TgZ(43,"mat-form-field",31),e._UZ(44,"input",32),e.YNc(45,Oi,2,1,"mat-error",14),e.qZA(),e.TgZ(46,"div",25),e.TgZ(47,"mat-slide-toggle",33),e._uU(48,"Spend Unconfirmed Output"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(49,Ri,4,2,"div",15),e.TgZ(50,"div",16),e.TgZ(51,"button",34),e.NdJ("click",function(){return a.onOpenChannel()}),e._uU(52),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(53,"div",35),e.TgZ(54,"button",36),e._uU(55),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(10),e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",a.peerFormGroup)("editable",a.flgEditable),e.xp6(1),e.Q6J("formGroup",a.peerFormGroup),e.xp6(4),e.Q6J("ngIf",null==a.peerFormGroup.controls.peerAddress.errors?null:a.peerFormGroup.controls.peerAddress.errors.required),e.xp6(1),e.Q6J("ngIf",""!==a.peerConnectionError),e.xp6(3),e.Oqu(""!==a.peerConnectionError?"Retry":"Add Peer"),e.xp6(1),e.Q6J("stepControl",a.channelFormGroup)("editable",a.flgEditable),e.xp6(1),e.Q6J("formGroup",a.channelFormGroup),e.xp6(5),e.Q6J("step",1e3),e.xp6(2),e.hij("Remaining Bal: ",a.totalBalance-(a.channelFormGroup.controls.fundingAmount.value?a.channelFormGroup.controls.fundingAmount.value:0),""),e.xp6(3),e.Q6J("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.required),e.xp6(1),e.Q6J("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.min),e.xp6(1),e.Q6J("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.max),e.xp6(7),e.Q6J("ngForOf",a.transTypes),e.xp6(2),e.Q6J("placeholder","0"===a.channelFormGroup.controls.selTransType.value?"Default":"1"===a.channelFormGroup.controls.selTransType.value?"Target Confirmation Blocks":"Fee (Sats/vByte)")("step",1)("required","0"!==a.channelFormGroup.controls.selTransType.value),e.xp6(1),e.Q6J("ngIf",null==a.channelFormGroup.controls.transTypeValue.errors?null:a.channelFormGroup.controls.transTypeValue.errors.required),e.xp6(4),e.Q6J("ngIf",""!==a.channelConnectionError),e.xp6(3),e.Oqu(""!==a.channelConnectionError?"Retry":"Open Channel"),e.xp6(2),e.Q6J("mat-dialog-close",!1),e.xp6(1),e.Oqu(null!=a.newlyAddedPeer&&a.newlyAddedPeer.pub_key?"Do It Later":"Close"))},directives:[_.xw,_.yH,T.dk,_.Wh,L.lW,T.dn,B.Vq,B.C0,c._Y,c.JL,c.sg,B.VY,f.KE,I.Nt,c.Fj,W.h,c.JJ,c.u,c.Q7,p.O5,c.wV,f.bx,f.R9,ue.Rr,R.gD,p.sg,J.ZT,f.TO,M.BN,Y.ey],styles:[""]}),n})();function Mi(n,i){1&n&&e._UZ(0,"mat-progress-bar",32)}function Di(n,i){1&n&&(e.TgZ(0,"th",33),e._uU(1," Alias "),e.qZA())}const Ye=function(n){return{"max-width":n}};function Pi(n,i){if(1&n&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,Ye,a.screenSize===a.screenSizeEnum.XS?"12rem":"25rem")),e.xp6(1),e.hij(" ",null==t?null:t.alias," ")}}function Ji(n,i){1&n&&(e.TgZ(0,"th",33),e._uU(1," Public Key "),e.qZA())}function Ei(n,i){if(1&n&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,Ye,a.screenSize===a.screenSizeEnum.XS?"5rem":"35rem")),e.xp6(1),e.hij(" ",null==t?null:t.pub_key," ")}}function Qi(n,i){1&n&&(e.TgZ(0,"th",35),e._uU(1," Sats Sent "),e.qZA())}function Yi(n,i){if(1&n&&(e.TgZ(0,"td",36),e.TgZ(1,"span",37),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.sat_sent)," ")}}function Hi(n,i){1&n&&(e.TgZ(0,"th",35),e._uU(1," Sats Received "),e.qZA())}function Bi(n,i){if(1&n&&(e.TgZ(0,"td",36),e.TgZ(1,"span",37),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.sat_recv)," ")}}function Vi(n,i){1&n&&(e.TgZ(0,"th",35),e._uU(1," Ping "),e.qZA())}function Gi(n,i){if(1&n&&(e.TgZ(0,"td",36),e.TgZ(1,"span",37),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.ping_time)," ")}}function zi(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",38),e.TgZ(1,"div",39),e.TgZ(2,"mat-select",40),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",41),e.NdJ("click",function(){return e.CHM(t),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Wi(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",42),e.TgZ(1,"div",39),e.TgZ(2,"mat-select",40),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",41),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw().onPeerClick(u,o)}),e._uU(5,"View Info"),e.qZA(),e.TgZ(6,"mat-option",41),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onOpenChannel(s)}),e._uU(7,"Open Channel"),e.qZA(),e.TgZ(8,"mat-option",41),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onPeerDetach(s)}),e._uU(9,"Disconnect"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Xi(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No connected peer."),e.qZA())}function $i(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting peers..."),e.qZA())}function ji(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function Ki(n,i){if(1&n&&(e.TgZ(0,"td",43),e.YNc(1,Xi,2,0,"p",44),e.YNc(2,$i,2,0,"p",44),e.YNc(3,ji,2,1,"p",44),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!(null!=t.peers&&t.peers.data)||(null==t.peers.data?null:t.peers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.peers&&t.peers.data)||(null==t.peers.data?null:t.peers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.peers&&t.peers.data)||(null==t.peers.data?null:t.peers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const eo=function(n){return{"display-none":n}};function to(n,i){if(1&n&&e._UZ(0,"tr",45),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,eo,(null==t.peers?null:t.peers.data)&&(null==t.peers||null==t.peers.data?null:t.peers.data.length)>0))}}function no(n,i){1&n&&e._UZ(0,"tr",46)}function ao(n,i){1&n&&e._UZ(0,"tr",47)}const io=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},oo=function(){return["no_peer"]};let so=(()=>{class n{constructor(t,a,o,s){this.logger=t,this.store=a,this.rtlEffects=o,this.commonService=s,this.availableBalance=0,this.faUsers=Z.FVb,this.displayedColumns=[],this.peersData=[],this.information={},this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","sat_sent","sat_recv","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","sat_sent","sat_recv","ping_time","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","pub_key","sat_sent","sat_recv","ping_time","actions"])}ngOnInit(){this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.information=t}),this.store.select(C.qU).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.availableBalance=t.blockchainBalance.total_balance||0}),this.store.select(C.Wi).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.peersData=t.peers,this.peersData.length>0&&this.loadPeersTable(this.peersData),this.logger.info(t)})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Peer Information",showQRName:"Public Key",showQRField:t.pub_key,message:[[{key:"pub_key",value:t.pub_key,title:"Public Key",width:100}],[{key:"address",value:t.address,title:"Address",width:100}],[{key:"alias",value:t.alias,title:"Alias",width:40},{key:"inbound",value:t.inbound?"True":"False",title:"Inbound",width:30},{key:"ping_time",value:t.ping_time,title:"Ping Time",width:30,type:l.Gi.NUMBER}],[{key:"sat_sent",value:t.sat_sent,title:"Satoshis Sent",width:50,type:l.Gi.NUMBER},{key:"sat_recv",value:t.sat_recv,title:"Satoshis Received",width:50,type:l.Gi.NUMBER}],[{key:"bytes_sent",value:t.bytes_sent,title:"Bytes Sent",width:50,type:l.Gi.NUMBER},{key:"bytes_recv",value:t.bytes_recv,title:"Bytes Received",width:50,type:l.Gi.NUMBER}]]}}}))}onConnectPeer(){this.store.dispatch((0,v.qR)({payload:{data:{message:{peer:null,information:this.information,balance:this.availableBalance},component:Ii}}}))}onOpenChannel(t){this.store.dispatch((0,v.qR)({payload:{data:{alertTitle:"Open Channel",message:{peer:t,information:this.information,balance:this.availableBalance},component:Qe}}}))}onPeerDetach(t){this.store.dispatch((0,v.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(t.alias?t.alias:t.pub_key),noBtnText:"Cancel",yesBtnText:"Disconnect"}}})),this.rtlEffects.closeConfirm.pipe((0,d.R)(this.unSubs[3])).subscribe(o=>{o&&this.store.dispatch((0,b.z)({payload:{pubkey:t.pub_key}}))})}applyFilter(){this.peers.filter=this.selFilter.trim().toLowerCase()}loadPeersTable(t){this.peers=new r.by(t?[...t]:[]),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.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.peers.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){this.peers.data&&this.peers.data.length>0&&this.commonService.downloadFile(this.peers.data,"Peers")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(oe.V),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-peers"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Peers")}])],decls:40,vars:15,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"],["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","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","pub_key"],["matColumnDef","sat_sent"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","sat_recv"],["matColumnDef","ping_time"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"button",2),e.NdJ("click",function(){return a.onConnectPeer()}),e._uU(3,"Add Peer"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e._UZ(7,"fa-icon",6),e.TgZ(8,"span",7),e._uU(9,"Connected Peers"),e.qZA(),e.qZA(),e.TgZ(10,"mat-form-field",8),e.TgZ(11,"input",9),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"div",10),e.YNc(13,Mi,1,0,"mat-progress-bar",11),e.TgZ(14,"table",12,13),e.ynx(16,14),e.YNc(17,Di,2,0,"th",15),e.YNc(18,Pi,2,4,"td",16),e.BQk(),e.ynx(19,17),e.YNc(20,Ji,2,0,"th",15),e.YNc(21,Ei,2,4,"td",16),e.BQk(),e.ynx(22,18),e.YNc(23,Qi,2,0,"th",19),e.YNc(24,Yi,4,3,"td",20),e.BQk(),e.ynx(25,21),e.YNc(26,Hi,2,0,"th",19),e.YNc(27,Bi,4,3,"td",20),e.BQk(),e.ynx(28,22),e.YNc(29,Vi,2,0,"th",19),e.YNc(30,Gi,4,3,"td",20),e.BQk(),e.ynx(31,23),e.YNc(32,zi,6,0,"th",24),e.YNc(33,Wi,10,0,"td",25),e.BQk(),e.ynx(34,26),e.YNc(35,Ki,4,3,"td",27),e.BQk(),e.YNc(36,to,1,3,"tr",28),e.YNc(37,no,1,0,"tr",29),e.YNc(38,ao,1,0,"tr",30),e.qZA(),e.qZA(),e._UZ(39,"mat-paginator",31),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("icon",a.faUsers),e.xp6(4),e.Q6J("ngModel",a.selFilter),e.xp6(2),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.peers)("ngClass",e.VKq(12,io,""!==a.errorMessage)),e.xp6(22),e.Q6J("matFooterRowDef",e.DdM(14,oo)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,_.yH,_.Wh,L.lW,M.BN,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,p.O5,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,R.gD,R.$L,Y.ey,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-pub_key[_ngcontent-%COMP%]{flex:1 1 35%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:2rem}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem;flex:1 1 10%}.mat-column-sat_sent[_ngcontent-%COMP%], .mat-column-sat_recv[_ngcontent-%COMP%], .mat-column-ping_time[_ngcontent-%COMP%]{flex:1 1 13%;width:13%}"]}),n})();function lo(n,i){if(1&n&&(e.TgZ(0,"span",7),e._uU(1,"Open"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.numOpenChannels)}}function ro(n,i){if(1&n&&(e.TgZ(0,"span",7),e._uU(1,"Pending"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.numPendingChannels)}}function co(n,i){if(1&n&&(e.TgZ(0,"span",7),e._uU(1,"Closed"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.numClosedChannels)}}function uo(n,i){if(1&n&&(e.TgZ(0,"span",7),e._uU(1,"Active HTLCs"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.numActiveHTLCs)}}let po=(()=>{class n{constructor(t,a,o){this.logger=t,this.store=a,this.router=o,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 m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.activeLink=this.links.findIndex(t=>t.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(t=>t instanceof y.Av)).subscribe({next:t=>{this.activeLink=this.links.findIndex(a=>a.link===t.urlAfterRedirects.substring(t.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.numOpenChannels=t.channels&&t.channels.length?t.channels.length:0,this.numActiveHTLCs=t.channels.reduce((a,o)=>a+(o.pending_htlcs&&o.pending_htlcs.length>0?o.pending_htlcs.length:0),0),this.logger.info(t)}),this.store.select(C.ni).pipe((0,d.R)(this.unSubs[3])).subscribe(t=>{this.numPendingChannels=t.pendingChannelsSummary.total_channels?t.pendingChannelsSummary.total_channels:0}),this.store.select(C.P2).pipe((0,d.R)(this.unSubs[4])).subscribe(t=>{this.numClosedChannels=t.closedChannels&&t.closedChannels.length?t.closedChannels.length:0}),this.store.select(C.qU).pipe((0,d.R)(this.unSubs[5])).subscribe(t=>{this.totalBalance=+t.blockchainBalance.total_balance}),this.store.select(C.Wi).pipe((0,d.R)(this.unSubs[6])).subscribe(t=>{this.peers=t.peers,this.peers.forEach(a=>{(!a.alias||""===a.alias)&&(a.alias=a.pub_key.substring(0,15)+"...")}),this.logger.info(t)})}onOpenChannel(){this.store.dispatch((0,v.qR)({payload:{data:{alertTitle:"Open Channel",message:{peers:this.peers,information:this.information,balance:this.totalBalance},component:Qe}}}))}onSelectedTabChange(t){this.router.navigateByUrl("/lnd/connections/channels/"+this.links[t.index].link)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channels-tables"]],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,"my-2","bordered-box"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["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(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"button",2),e.NdJ("click",function(){return a.onOpenChannel()}),e._uU(3,"Open Channel"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-tab-group",4),e.NdJ("selectedIndexChange",function(s){return a.activeLink=s})("selectedTabChange",function(s){return a.onSelectedTabChange(s)}),e.TgZ(6,"mat-tab"),e.YNc(7,lo,2,1,"ng-template",5),e.qZA(),e.TgZ(8,"mat-tab"),e.YNc(9,ro,2,1,"ng-template",5),e.qZA(),e.TgZ(10,"mat-tab"),e.YNc(11,co,2,1,"ng-template",5),e.qZA(),e.TgZ(12,"mat-tab"),e.YNc(13,uo,2,1,"ng-template",5),e.qZA(),e.qZA(),e.TgZ(14,"div",6),e._UZ(15,"router-outlet"),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("selectedIndex",a.activeLink))},directives:[_.xw,_.yH,_.Wh,L.lW,D.SP,D.uX,D.uD,y.lC,fe.k],styles:[""]}),n})();var te=h(7261),se=h(6895);function mo(n,i){if(1&n&&(e.TgZ(0,"div"),e.TgZ(1,"div",9),e.TgZ(2,"div",14),e.TgZ(3,"h4",11),e._uU(4,"Commit Fee"),e.qZA(),e.TgZ(5,"span",15),e._uU(6),e.ALo(7,"number"),e.qZA(),e.qZA(),e.TgZ(8,"div",14),e.TgZ(9,"h4",11),e._uU(10,"Commit Weight"),e.qZA(),e.TgZ(11,"span",15),e._uU(12),e.ALo(13,"number"),e.qZA(),e.qZA(),e.TgZ(14,"div",14),e.TgZ(15,"h4",11),e._uU(16,"Fee/KW"),e.qZA(),e.TgZ(17,"span",15),e._uU(18),e.ALo(19,"number"),e.qZA(),e.qZA(),e.TgZ(20,"div",14),e.TgZ(21,"h4",11),e._uU(22,"Static Remote Key"),e.qZA(),e.TgZ(23,"span",15),e._uU(24),e.qZA(),e.qZA(),e.qZA(),e._UZ(25,"mat-divider",13),e.TgZ(26,"div",9),e.TgZ(27,"div",14),e.TgZ(28,"h4",11),e._uU(29),e.qZA(),e.TgZ(30,"span",15),e._uU(31),e.ALo(32,"number"),e.qZA(),e.qZA(),e.TgZ(33,"div",14),e.TgZ(34,"h4",11),e._uU(35),e.qZA(),e.TgZ(36,"span",15),e._uU(37),e.ALo(38,"number"),e.qZA(),e.qZA(),e.TgZ(39,"div",14),e.TgZ(40,"h4",11),e._uU(41,"Unsettled Balance"),e.qZA(),e.TgZ(42,"span",15),e._uU(43),e.ALo(44,"number"),e.qZA(),e.qZA(),e.TgZ(45,"div",14),e.TgZ(46,"h4",11),e._uU(47,"CSV Delay"),e.qZA(),e.TgZ(48,"span",15),e._uU(49),e.ALo(50,"number"),e.qZA(),e.qZA(),e.qZA(),e._UZ(51,"mat-divider",13),e.TgZ(52,"div",9),e.TgZ(53,"div",14),e.TgZ(54,"h4",11),e._uU(55,"Local Reserve (Sats)"),e.qZA(),e.TgZ(56,"span",15),e._uU(57),e.ALo(58,"number"),e.qZA(),e.qZA(),e.TgZ(59,"div",14),e.TgZ(60,"h4",11),e._uU(61,"Remote Reserve (Sats)"),e.qZA(),e.TgZ(62,"span",15),e._uU(63),e.ALo(64,"number"),e.qZA(),e.qZA(),e.TgZ(65,"div",14),e.TgZ(66,"h4",11),e._uU(67,"Lifetime (Seconds)"),e.qZA(),e.TgZ(68,"span",15),e._uU(69),e.ALo(70,"number"),e.qZA(),e.qZA(),e.TgZ(71,"div",14),e.TgZ(72,"h4",11),e._uU(73,"Pending HTLCs"),e.qZA(),e.TgZ(74,"span",15),e._uU(75),e.ALo(76,"number"),e.qZA(),e.qZA(),e.qZA(),e._UZ(77,"mat-divider",13),e.qZA()),2&n){const t=e.oxw();e.xp6(6),e.Oqu(e.lcZ(7,17,t.channel.commit_fee)),e.xp6(6),e.Oqu(e.lcZ(13,19,t.channel.commit_weight)),e.xp6(6),e.Oqu(e.lcZ(19,21,t.channel.fee_per_kw)),e.xp6(6),e.Oqu(t.channel.static_remote_key?"Yes":"No"),e.xp6(1),e.Q6J("inset",!0),e.xp6(4),e.Oqu(t.screenSize===t.screenSizeEnum.XS?"Total Sats Sent":"Total Satoshis Sent"),e.xp6(2),e.Oqu(e.lcZ(32,23,t.channel.total_satoshis_sent)),e.xp6(4),e.Oqu(t.screenSize===t.screenSizeEnum.XS?"Total Sats Recv":"Total Satoshis Received"),e.xp6(2),e.Oqu(e.lcZ(38,25,t.channel.total_satoshis_received)),e.xp6(6),e.Oqu(e.lcZ(44,27,t.channel.unsettled_balance)),e.xp6(6),e.Oqu(e.lcZ(50,29,t.channel.csv_delay)),e.xp6(2),e.Q6J("inset",!0),e.xp6(6),e.Oqu(e.lcZ(58,31,t.channel.local_chan_reserve_sat)),e.xp6(6),e.Oqu(e.lcZ(64,33,t.channel.remote_chan_reserve_sat)),e.xp6(6),e.Oqu(e.lcZ(70,35,t.channel.lifetime)),e.xp6(6),e.Oqu(e.lcZ(76,37,null==t.channel||null==t.channel.pending_htlcs?null:t.channel.pending_htlcs.length)),e.xp6(2),e.Q6J("inset",!0)}}function _o(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Show Advanced"),e.qZA())}function ho(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Hide Advanced"),e.qZA())}function go(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",23),e.NdJ("copied",function(o){return e.CHM(t),e.oxw().onCopyChanID(o)}),e._uU(1,"Copy Channel ID"),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("payload",t.channel.chan_id)}}function fo(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",24),e.NdJ("click",function(){return e.CHM(t),e.oxw().onClose()}),e._uU(1,"OK"),e.qZA()}}const Co=function(n){return{"xs-scroll-y":n}};let xe=(()=>{class n{constructor(t,a,o,s,u){this.dialogRef=t,this.data=a,this.logger=o,this.commonService=s,this.snackBar=u,this.faReceipt=Z.dLy,this.showAdvanced=!1,this.showCopy=!0,this.showCopyField=null,this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.channel=this.data.channel,this.showCopy=this.data.showCopy,this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyChanID(t){this.snackBar.open("Channel ID "+t+" copied."),this.logger.info("Copied Text: "+t)}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(F.mQ),e.Y36(O.v),e.Y36(te.ux))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-information"]],decls:94,vars:36,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-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","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"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["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"],["hideAdvancedText",""],["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"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(t,a){if(1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span",5),e._uU(6,"Channel Information"),e.qZA(),e.qZA(),e.TgZ(7,"button",6),e.NdJ("click",function(){return a.onClose()}),e._uU(8,"X"),e.qZA(),e.qZA(),e.TgZ(9,"mat-card-content",7),e.TgZ(10,"div",8),e.TgZ(11,"div",9),e.TgZ(12,"div",10),e.TgZ(13,"h4",11),e._uU(14,"Channel ID"),e.qZA(),e.TgZ(15,"span",12),e._uU(16),e.qZA(),e.qZA(),e.TgZ(17,"div",10),e.TgZ(18,"h4",11),e._uU(19,"Peer Alias"),e.qZA(),e.TgZ(20,"span",12),e._uU(21),e.qZA(),e.qZA(),e.qZA(),e._UZ(22,"mat-divider",13),e.TgZ(23,"div",9),e.TgZ(24,"div",1),e.TgZ(25,"h4",11),e._uU(26,"Channel Point"),e.qZA(),e.TgZ(27,"span",12),e._uU(28),e.qZA(),e.qZA(),e.qZA(),e._UZ(29,"mat-divider",13),e.TgZ(30,"div",9),e.TgZ(31,"div",1),e.TgZ(32,"h4",11),e._uU(33,"Peer Public Key"),e.qZA(),e.TgZ(34,"span",12),e._uU(35),e.qZA(),e.qZA(),e.qZA(),e._UZ(36,"mat-divider",13),e.TgZ(37,"div",9),e.TgZ(38,"div",14),e.TgZ(39,"h4",11),e._uU(40,"Local Balance"),e.qZA(),e.TgZ(41,"span",15),e._uU(42),e.ALo(43,"number"),e.qZA(),e.qZA(),e.TgZ(44,"div",14),e.TgZ(45,"h4",11),e._uU(46,"Remote Balance"),e.qZA(),e.TgZ(47,"span",15),e._uU(48),e.ALo(49,"number"),e.qZA(),e.qZA(),e.TgZ(50,"div",14),e.TgZ(51,"h4",11),e._uU(52,"Capacity"),e.qZA(),e.TgZ(53,"span",15),e._uU(54),e.ALo(55,"number"),e.qZA(),e.qZA(),e.TgZ(56,"div",14),e.TgZ(57,"h4",11),e._uU(58,"Uptime (Seconds)"),e.qZA(),e.TgZ(59,"span",15),e._uU(60),e.ALo(61,"number"),e.qZA(),e.qZA(),e.qZA(),e._UZ(62,"mat-divider",13),e.TgZ(63,"div",9),e.TgZ(64,"div",14),e.TgZ(65,"h4",11),e._uU(66,"Active"),e.qZA(),e.TgZ(67,"span",15),e._uU(68),e.qZA(),e.qZA(),e.TgZ(69,"div",14),e.TgZ(70,"h4",11),e._uU(71,"Private"),e.qZA(),e.TgZ(72,"span",15),e._uU(73),e.qZA(),e.qZA(),e.TgZ(74,"div",14),e.TgZ(75,"h4",11),e._uU(76,"Initiator"),e.qZA(),e.TgZ(77,"span",15),e._uU(78),e.qZA(),e.qZA(),e.TgZ(79,"div",14),e.TgZ(80,"h4",11),e._uU(81,"Number of Updates"),e.qZA(),e.TgZ(82,"span",15),e._uU(83),e.ALo(84,"number"),e.qZA(),e.qZA(),e.qZA(),e._UZ(85,"mat-divider",13),e.YNc(86,mo,78,39,"div",16),e.TgZ(87,"div",17),e.TgZ(88,"button",18),e.NdJ("click",function(){return a.onShowAdvanced()}),e.YNc(89,_o,2,0,"p",19),e.YNc(90,ho,2,0,"ng-template",null,20,e.W1O),e.qZA(),e.YNc(92,go,2,1,"button",21),e.YNc(93,fo,2,0,"button",22),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t){const o=e.MAs(91);e.xp6(4),e.Q6J("icon",a.faReceipt),e.xp6(5),e.Q6J("ngClass",e.VKq(34,Co,a.screenSize===a.screenSizeEnum.XS)),e.xp6(7),e.Oqu(a.channel.chan_id),e.xp6(5),e.Oqu(a.channel.remote_alias),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(a.channel.channel_point),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(a.channel.remote_pubkey),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(e.lcZ(43,24,a.channel.local_balance)),e.xp6(6),e.Oqu(e.lcZ(49,26,a.channel.remote_balance)),e.xp6(6),e.Oqu(e.lcZ(55,28,a.channel.capacity)),e.xp6(6),e.Oqu(e.lcZ(61,30,a.channel.uptime)),e.xp6(2),e.Q6J("inset",!0),e.xp6(6),e.Oqu(a.channel.active?"Yes":"No"),e.xp6(5),e.Oqu(a.channel.private?"Yes":"No"),e.xp6(5),e.Oqu(a.channel.initiator?"Yes":"No"),e.xp6(5),e.Oqu(e.lcZ(84,32,a.channel.num_updates)),e.xp6(2),e.Q6J("inset",!0),e.xp6(1),e.Q6J("ngIf",a.showAdvanced),e.xp6(3),e.Q6J("ngIf",!a.showAdvanced)("ngIfElse",o),e.xp6(3),e.Q6J("ngIf",a.showCopy),e.xp6(1),e.Q6J("ngIf",!a.showCopy)}},directives:[_.xw,_.Wh,_.yH,T.dk,M.BN,L.lW,T.dn,p.mk,q.oO,z.d,p.O5,W.h,se.y],pipes:[p.JJ],styles:[""]}),n})();var Ze=h(9646),ye=h(7772),xo=h(113);function Zo(n,i){1&n&&e.GkF(0)}const le=function(n,i){return{"small-svg":n,"large-svg":i}};function yo(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(o){return e.CHM(t),e.oxw().onSwipe(o)}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",8),e._UZ(3,"path",9),e._UZ(4,"path",10),e._UZ(5,"path",11),e._UZ(6,"path",12),e._UZ(7,"path",13),e._UZ(8,"path",14),e._UZ(9,"path",15),e._UZ(10,"path",16),e._UZ(11,"path",17),e._UZ(12,"path",18),e._UZ(13,"path",19),e._UZ(14,"path",20),e._UZ(15,"path",21),e._UZ(16,"path",22),e._UZ(17,"path",23),e._UZ(18,"path",24),e._UZ(19,"path",25),e._UZ(20,"path",26),e._UZ(21,"path",27),e._UZ(22,"path",28),e._UZ(23,"path",29),e._UZ(24,"path",30),e._UZ(25,"path",31),e._UZ(26,"path",32),e._UZ(27,"path",33),e._UZ(28,"path",34),e._UZ(29,"path",35),e._UZ(30,"path",36),e._UZ(31,"path",37),e._UZ(32,"path",38),e._UZ(33,"path",39),e._UZ(34,"path",40),e._UZ(35,"path",41),e._UZ(36,"path",42),e._UZ(37,"path",43),e._UZ(38,"path",44),e._UZ(39,"path",45),e._UZ(40,"path",46),e.qZA(),e.kcU(),e.TgZ(41,"div",47),e.TgZ(42,"mat-card-title"),e._uU(43,"Circular rebalancing explained."),e.qZA(),e.qZA(),e.TgZ(44,"div",48),e.TgZ(45,"mat-card-subtitle",49),e._uU(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.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("@sliderAnimation",t.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,le,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function To(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(o){return e.CHM(t),e.oxw().onSwipe(o)}),e.O4$(),e.TgZ(1,"svg",50),e._UZ(2,"path",51),e._UZ(3,"path",52),e._UZ(4,"path",53),e._UZ(5,"path",54),e._UZ(6,"path",55),e._UZ(7,"path",56),e._UZ(8,"path",57),e._UZ(9,"path",58),e._UZ(10,"path",59),e._UZ(11,"path",60),e._UZ(12,"path",61),e._UZ(13,"path",62),e._UZ(14,"path",63),e._UZ(15,"path",64),e._UZ(16,"path",65),e._UZ(17,"path",66),e._UZ(18,"path",67),e._UZ(19,"path",68),e._UZ(20,"path",69),e._UZ(21,"path",70),e._UZ(22,"path",71),e._UZ(23,"path",72),e._UZ(24,"path",73),e._UZ(25,"path",74),e._UZ(26,"path",75),e._UZ(27,"path",76),e._UZ(28,"path",77),e._UZ(29,"path",78),e._UZ(30,"path",79),e._UZ(31,"path",80),e._UZ(32,"path",81),e._UZ(33,"path",51),e._UZ(34,"path",52),e._UZ(35,"path",53),e._UZ(36,"path",54),e._UZ(37,"path",55),e._UZ(38,"path",56),e._UZ(39,"path",57),e._UZ(40,"path",58),e._UZ(41,"path",59),e._UZ(42,"path",82),e._UZ(43,"path",83),e._UZ(44,"path",62),e._UZ(45,"path",84),e._UZ(46,"path",85),e._UZ(47,"path",86),e._UZ(48,"path",66),e._UZ(49,"path",67),e._UZ(50,"path",68),e._UZ(51,"path",69),e._UZ(52,"path",70),e._UZ(53,"path",71),e._UZ(54,"path",72),e._UZ(55,"path",73),e._UZ(56,"path",74),e._UZ(57,"path",75),e._UZ(58,"path",76),e._UZ(59,"path",77),e._UZ(60,"path",78),e._UZ(61,"path",79),e._UZ(62,"path",87),e._UZ(63,"path",81),e._UZ(64,"path",88),e.TgZ(65,"defs"),e.TgZ(66,"linearGradient",89),e._UZ(67,"stop",90),e._UZ(68,"stop",91),e._UZ(69,"stop",92),e.qZA(),e.TgZ(70,"linearGradient",93),e._UZ(71,"stop",90),e._UZ(72,"stop",91),e._UZ(73,"stop",92),e.qZA(),e.TgZ(74,"linearGradient",94),e._UZ(75,"stop",90),e._UZ(76,"stop",91),e._UZ(77,"stop",92),e.qZA(),e.TgZ(78,"linearGradient",95),e._UZ(79,"stop",90),e._UZ(80,"stop",91),e._UZ(81,"stop",92),e.qZA(),e.TgZ(82,"linearGradient",96),e._UZ(83,"stop",90),e._UZ(84,"stop",91),e._UZ(85,"stop",92),e.qZA(),e.TgZ(86,"linearGradient",97),e._UZ(87,"stop",90),e._UZ(88,"stop",91),e._UZ(89,"stop",92),e.qZA(),e.qZA(),e.qZA(),e.kcU(),e.TgZ(90,"div",47),e.TgZ(91,"mat-card-title"),e._uU(92,"Step 1: Unbalanced channel"),e.qZA(),e.qZA(),e.TgZ(93,"div",48),e.TgZ(94,"mat-card-subtitle",49),e._uU(95," It starts with an unbalanced channel, that needs to be rebalanced in order to continue to route payments. "),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("@sliderAnimation",t.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,le,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function bo(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(o){return e.CHM(t),e.oxw().onSwipe(o)}),e.O4$(),e.TgZ(1,"svg",98),e._UZ(2,"path",99),e._UZ(3,"path",100),e._UZ(4,"path",101),e._UZ(5,"path",102),e._UZ(6,"path",103),e._UZ(7,"path",104),e._UZ(8,"path",105),e._UZ(9,"path",106),e._UZ(10,"path",107),e._UZ(11,"path",108),e._UZ(12,"path",109),e._UZ(13,"path",110),e._UZ(14,"path",111),e._UZ(15,"path",112),e._UZ(16,"path",113),e._UZ(17,"path",51),e._UZ(18,"path",114),e._UZ(19,"path",115),e._UZ(20,"path",116),e._UZ(21,"path",117),e._UZ(22,"path",118),e._UZ(23,"path",119),e._UZ(24,"path",120),e._UZ(25,"path",121),e._UZ(26,"path",82),e._UZ(27,"path",83),e._UZ(28,"path",122),e._UZ(29,"path",123),e._UZ(30,"path",124),e._UZ(31,"path",125),e._UZ(32,"path",66),e._UZ(33,"path",126),e._UZ(34,"path",127),e._UZ(35,"path",128),e._UZ(36,"path",129),e._UZ(37,"path",130),e._UZ(38,"path",131),e._UZ(39,"path",73),e._UZ(40,"path",74),e._UZ(41,"path",132),e._UZ(42,"path",76),e._UZ(43,"path",77),e._UZ(44,"path",78),e._UZ(45,"path",79),e._UZ(46,"path",133),e._UZ(47,"path",134),e._UZ(48,"path",135),e.TgZ(49,"defs"),e.TgZ(50,"linearGradient",136),e._UZ(51,"stop",90),e._UZ(52,"stop",91),e._UZ(53,"stop",92),e.qZA(),e.TgZ(54,"linearGradient",137),e._UZ(55,"stop",90),e._UZ(56,"stop",91),e._UZ(57,"stop",92),e.qZA(),e.TgZ(58,"linearGradient",138),e._UZ(59,"stop",90),e._UZ(60,"stop",91),e._UZ(61,"stop",92),e.qZA(),e.qZA(),e.qZA(),e.kcU(),e.TgZ(62,"div",47),e.TgZ(63,"mat-card-title"),e._uU(64,"Step 2: Invoice/Payment"),e.qZA(),e.qZA(),e.TgZ(65,"div",48),e.TgZ(66,"mat-card-subtitle",49),e._uU(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.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("@sliderAnimation",t.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,le,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function Ao(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(o){return e.CHM(t),e.oxw().onSwipe(o)}),e.O4$(),e.TgZ(1,"svg",139),e._UZ(2,"path",140),e._UZ(3,"path",141),e._UZ(4,"path",142),e._UZ(5,"path",143),e._UZ(6,"path",144),e._UZ(7,"path",145),e._UZ(8,"path",146),e._UZ(9,"path",147),e._UZ(10,"path",148),e._UZ(11,"path",149),e._UZ(12,"path",150),e._UZ(13,"path",151),e._UZ(14,"path",152),e._UZ(15,"path",153),e._UZ(16,"path",154),e._UZ(17,"path",155),e._UZ(18,"path",156),e._UZ(19,"path",157),e._UZ(20,"path",158),e._UZ(21,"path",159),e._UZ(22,"path",160),e._UZ(23,"path",161),e._UZ(24,"path",162),e._UZ(25,"path",163),e._UZ(26,"path",162),e._UZ(27,"path",164),e._UZ(28,"path",165),e._UZ(29,"path",166),e._UZ(30,"path",167),e._UZ(31,"path",168),e._UZ(32,"path",169),e._UZ(33,"path",170),e._UZ(34,"path",171),e._UZ(35,"path",172),e._UZ(36,"path",173),e._UZ(37,"path",174),e._UZ(38,"path",175),e._UZ(39,"path",176),e._UZ(40,"path",177),e._UZ(41,"path",178),e.TgZ(42,"defs"),e.TgZ(43,"linearGradient",179),e._UZ(44,"stop",90),e._UZ(45,"stop",91),e._UZ(46,"stop",92),e.qZA(),e.qZA(),e.qZA(),e.kcU(),e.TgZ(47,"div",47),e.TgZ(48,"mat-card-title"),e._uU(49,"Step 3: Rebalance amount"),e.qZA(),e.qZA(),e.TgZ(50,"div",48),e.TgZ(51,"mat-card-subtitle",49),e._uU(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.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("@sliderAnimation",t.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,le,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function vo(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(o){return e.CHM(t),e.oxw().onSwipe(o)}),e.O4$(),e.TgZ(1,"svg",139),e._UZ(2,"path",180),e._UZ(3,"path",142),e._UZ(4,"path",181),e._UZ(5,"path",144),e._UZ(6,"path",145),e._UZ(7,"path",182),e._UZ(8,"path",147),e._UZ(9,"path",183),e._UZ(10,"path",184),e._UZ(11,"path",185),e._UZ(12,"path",186),e._UZ(13,"path",187),e._UZ(14,"path",188),e._UZ(15,"path",189),e._UZ(16,"path",190),e._UZ(17,"path",191),e._UZ(18,"path",157),e._UZ(19,"path",192),e._UZ(20,"path",193),e._UZ(21,"path",178),e._UZ(22,"path",159),e._UZ(23,"path",160),e._UZ(24,"path",194),e._UZ(25,"path",162),e._UZ(26,"path",163),e._UZ(27,"path",162),e._UZ(28,"path",164),e._UZ(29,"path",165),e._UZ(30,"path",166),e._UZ(31,"path",167),e._UZ(32,"path",195),e._UZ(33,"path",169),e._UZ(34,"path",196),e._UZ(35,"path",171),e._UZ(36,"path",172),e._UZ(37,"path",173),e._UZ(38,"path",174),e._UZ(39,"path",175),e._UZ(40,"path",197),e.TgZ(41,"defs"),e.TgZ(42,"linearGradient",198),e._UZ(43,"stop",90),e._UZ(44,"stop",91),e._UZ(45,"stop",92),e.qZA(),e.qZA(),e.qZA(),e.kcU(),e.TgZ(46,"div",47),e.TgZ(47,"mat-card-title"),e._uU(48,"Rebalance successful!"),e.qZA(),e.qZA(),e.TgZ(49,"div",48),e.TgZ(50,"mat-card-subtitle",49),e._uU(51," Your channel is successfully rebalanced and is able to continue to route payments. "),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("@sliderAnimation",t.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,le,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}let wo=(()=>{class n{constructor(t){this.commonService=t,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.vpe,this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(t){2===t.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===t.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-rebalance-infographics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["infoStepBlock1",""],["infoStepBlock2",""],["infoStepBlock3",""],["infoStepBlock4",""],["infoStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",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","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["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","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["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","fill","#444053"],["d","M127.4 137.844L128.262 144L129 137.6L127.4 137.844Z","fill","#D0D2D5"],["d","M100.2 134.349V138.226L101 141.6H101.571L102.258 137.976L102.6 133.6L100.2 134.349Z","fill","#3F3D56"],["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","fill","#D0D2D5"],["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","fill","#D0D2D5"],["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","#444053"],["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","fill","#444053"],["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","fill","#6C63FF"],["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","fill","#6C63FF"],["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","fill","#6C63FF"],["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","fill","#6C63FF"],["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","fill","#6C63FF"],["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","fill","#6C63FF"],["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","fill","#6C63FF"],["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","fill","#6C63FF"],["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","fill","#6C63FF"],["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","fill","#6C63FF"],["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","fill","#6C63FF"],["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","fill","#6C63FF"],["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","fill","#6C63FF"],["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","fill","#6C63FF"],["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","fill","#6C63FF"],["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","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["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","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["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","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["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","fill","#5E4EA5","stroke","white","stroke-width","1.6"],["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","fill","#5E4EA5","stroke","white","stroke-width","1.6"],["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","fill","#5E4EA5","stroke","white","stroke-width","1.6"],["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","fill","#5E4EA5","stroke","white","stroke-width","1.6"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["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","fill","#E6E6E6"],["d","M88.6575 67.1775H1.48926V98.4248H88.6575V67.1775Z","fill","white"],["d","M59.844 74.5891H8.64404V90.6009H59.844V74.5891Z","fill","#C4B7FF"],["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","fill","#6C63FF"],["d","M88.6575 34.7129H1.48926V65.9602H88.6575V34.7129Z","fill","white"],["d","M59.844 42.1244H8.64404V58.1363H59.844V42.1244Z","fill","#C4B7FF"],["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","fill","#6C63FF"],["d","M88.6575 2.24823H1.48926V33.4955H88.6575V2.24823Z","fill","white"],["d","M59.844 9.66199H8.64404V25.6739H59.844V9.66199Z","fill","#C4B7FF"],["d","M32.644 74.5891H8.64404V90.6009H32.644V74.5891Z","fill","#5E4EA5"],["d","M45.444 42.1244H8.64404V58.1363H45.444V42.1244Z","fill","#5E4EA5"],["d","M59.644 9.66199H8.64404V25.662H59.644V9.66199Z","fill","#5E4EA5"],["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","fill","#5E4EA5"],["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","fill","#4A4A4A"],["d","M192.266 42.8538H69.9434V111.856H192.266V42.8538Z","fill","#CBCBCB"],["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","fill","#F2F2F2"],["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","fill","#3F3D56"],["d","M170.967 80.0673H159.541V82.4548H170.967V80.0673Z","fill","#4A4A4A"],["d","M184.781 61.4783H145.727V62.5015H184.781V61.4783Z","fill","#4A4A4A"],["d","M184.781 64.7186H145.727V65.7418H184.781V64.7186Z","fill","#4A4A4A"],["d","M184.781 67.9589H145.727V68.9821H184.781V67.9589Z","fill","#4A4A4A"],["d","M184.781 71.1991H145.727V72.2224H184.781V71.1991Z","fill","#4A4A4A"],["d","M184.781 74.4394H145.727V75.4626H184.781V74.4394Z","fill","#4A4A4A"],["d","M184.781 44.2537H180.006V49.0288H184.781V44.2537Z","fill","#F2F2F2"],["d","M186.998 51.2458H181.2V45.4474H186.998V51.2458ZM181.452 50.9937H186.746V45.6996H181.452V50.9937Z","fill","#4A4A4A"],["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","fill","#4A4A4A"],["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","fill","#5B5B5B"],["d","M42 75H9V91H42V75Z","fill","#5E4EA5"],["d","M42 42H9V58H42V42Z","fill","#5E4EA5"],["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","fill","#4A4A4A"],["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","fill","#F1F1F1"],["d","M115.068 85.6077H349.8V86.5722H113L115.068 85.6077Z","fill","#4A4A4A"],["d","M236.776 84.376H226.024V91.544H236.776V84.376Z","fill","#D0CDE1"],["d","M218.856 87.96H233.192V79H218.856V87.96ZM232.569 87.5704H219.479V79.3896H232.569V87.5704Z","fill","#4A4A4A"],["d","M265 57.3624H357.392V120.307H265V57.3624Z","fill","#CBCBCB"],["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","fill","#4A4A4A"],["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","fill","#4A4A4A"],["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","fill","#4A4A4A"],["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","fill","#4A4A4A"],["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","fill","#4A4A4A"],["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","fill","#4A4A4A"],["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","fill","#4A4A4A"],["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","fill","#F2F2F2"],["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","fill","#4A4A4A"],["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","fill","#5B5B5B"],["d","M88.6576 67.1775H1.48938V98.4248H88.6576V67.1775Z","fill","white"],["d","M59.8442 74.589H8.64417V90.6009H59.8442V74.589Z","fill","#C4B7FF"],["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","fill","#6C63FF"],["d","M88.6576 34.7129H1.48938V65.9602H88.6576V34.7129Z","fill","white"],["d","M59.8442 42.1244H8.64417V58.1363H59.8442V42.1244Z","fill","#C4B7FF"],["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","fill","#6C63FF"],["d","M88.6576 2.24824H1.48938V33.4955H88.6576V2.24824Z","fill","white"],["d","M59.8442 9.66196H8.64417V25.6738H59.8442V9.66196Z","fill","#C4B7FF"],["d","M59.8442 9.66196H8.64417V25.6738H59.8442V9.66196Z","fill","#5E4EA5"],["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","fill","#4A4A4A"],["d","M192.265 42.8538H69.9432V111.856H192.265V42.8538Z","fill","#CBCBCB"],["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","fill","#F2F2F2"],["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","fill","#3F3D56"],["d","M170.967 80.0672H159.541V82.4548H170.967V80.0672Z","fill","#4A4A4A"],["d","M184.781 67.9588H145.727V68.9821H184.781V67.9588Z","fill","#4A4A4A"],["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","fill","#4A4A4A"],["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","fill","#5B5B5B"],["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","#C4B7FF","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7"],["d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46","stroke","#5E4EA5","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7"],["d","M122.399 37H32.25V137.616H122.399V37Z","fill","#E6E6E6"],["d","M120.908 104.178H33.7394V135.425H120.908V104.178Z","fill","white"],["d","M92.0943 111.589H40.8943V127.601H92.0943V111.589Z","fill","#C4B7FF"],["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","fill","#6C63FF"],["d","M120.908 71.7129H33.7394V102.96H120.908V71.7129Z","fill","white"],["d","M92.0943 79.1244H40.8943V95.1363H92.0943V79.1244Z","fill","#C4B7FF"],["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","fill","#6C63FF"],["d","M120.908 39.2482H33.7394V70.4955H120.908V39.2482Z","fill","white"],["d","M92.0943 46.662H40.8943V62.6738H92.0943V46.662Z","fill","#C4B7FF"],["d","M74.5 112H40.5V128H74.5V112Z","fill","#5E4EA5"],["d","M74.5 79H40.5V95H74.5V79Z","fill","#5E4EA5"],["d","M91.8943 46.662H40.8943V62.662H91.8943V46.662Z","fill","#5E4EA5"],["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","fill","#5E4EA5"],["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","fill","#5E4EA5"],["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","fill","#5E4EA5"],["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","fill","#5E4EA5"],["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","fill","#C4B7FF"],["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","fill","#C4B7FF"],["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","fill","#F2F2F2"],["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","fill","#5B5B5B"],["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","fill","#F2F2F2"],["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","fill","#CBCBCB"],["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","fill","#595959"],["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","fill","#F2F2F2"],["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","fill","#CBCBCB"],["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","fill","#595959"],["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","fill","#595959"],["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","fill","#CBCBCB"],["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","fill","#CBCBCB"],["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","fill","#CBCBCB"],["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","fill","#595959"],["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","fill","#5E4EA5"],["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","#5E4EA5","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7"],["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","fill","#6C63FF"],["d","M120.908 39.2482H33.7393V70.4955H120.908V39.2482Z","fill","white"],["d","M92.0943 46.662H40.8943V62.6739H92.0943V46.662Z","fill","#C4B7FF"],["d","M76 112H41V128H76V112Z","fill","#5E4EA5"],["d","M70 79H41V95H70V79Z","fill","#5E4EA5"],["d","M70 47H41V63H70V47Z","fill","#5E4EA5"],["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","fill","#5E4EA5"],["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","fill","#5E4EA5"],["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","fill","#5E4EA5"],["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","fill","#CBCBCB"],["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","fill","#595959"],["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(t,a){if(1&t&&(e.YNc(0,Zo,1,0,"ng-container",0),e.YNc(1,yo,47,5,"ng-template",null,1,e.W1O),e.YNc(3,To,96,5,"ng-template",null,2,e.W1O),e.YNc(5,bo,68,5,"ng-template",null,3,e.W1O),e.YNc(7,Ao,53,5,"ng-template",null,4,e.W1O),e.YNc(9,vo,52,5,"ng-template",null,5,e.W1O)),2&t){const o=e.MAs(2),s=e.MAs(4),u=e.MAs(6),g=e.MAs(8),N=e.MAs(10);e.Q6J("ngTemplateOutlet",1===a.stepNumber?o:2===a.stepNumber?s:3===a.stepNumber?u:4===a.stepNumber?g:N)}},directives:[p.tP,_.xw,_.yH,_.Wh,p.mk,q.oO,T.n5,T.$j],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:[xo.l]}}),n})();const qo=["stepper"];function So(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw(2);e.Oqu(t.inputFormLabel)}}function Lo(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount is required."),e.qZA())}function ko(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount must be a positive number."),e.qZA())}function Fo(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.hij("Amount must be less than or equal to ",null==t.selChannel?null:t.selChannel.local_balance,".")}}function Uo(n,i){if(1&n&&(e.TgZ(0,"mat-option",55),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.AsE("",t.remote_alias," - ",t.chan_id,"")}}function No(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Receive from Peer is required."),e.qZA())}function Oo(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Receive from Peer not found in the list."),e.qZA())}function Ro(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw(2);e.Oqu(t.feeFormLabel)}}function Io(n,i){if(1&n&&(e.TgZ(0,"mat-option",55),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t.name," ")}}function Mo(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.hij("",t.feeFormGroup.controls.selFeeLimitType.value?t.feeFormGroup.controls.selFeeLimitType.value.placeholder:t.feeLimitTypes[0].placeholder," is required.")}}function Do(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.hij("",t.feeFormGroup.controls.selFeeLimitType.value?t.feeFormGroup.controls.selFeeLimitType.value.placeholder:t.feeLimitTypes[0].placeholder," must be a positive number.")}}function Po(n,i){1&n&&e._uU(0,"Invoice/Payment")}function Jo(n,i){1&n&&(e.TgZ(0,"mat-icon",56),e._uU(1,"check"),e.qZA())}function Eo(n,i){1&n&&e._UZ(0,"mat-progress-bar",57)}function Qo(n,i){if(1&n&&(e.TgZ(0,"mat-icon",56),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(null!=t.paymentStatus&&t.paymentStatus.error?"close":"check")}}function Yo(n,i){1&n&&e._UZ(0,"div",14)}function Ho(n,i){1&n&&e._UZ(0,"mat-progress-bar",57)}function Bo(n,i){if(1&n&&(e.TgZ(0,"h4",58),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.paymentStatus&&t.paymentStatus.payment_hash?"Rebalance Successful.":"Rebalance Failed.")}}function Vo(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",59),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).onRestart()}),e._uU(1,"Start Again"),e.qZA()}}function Go(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",5),e.TgZ(1,"div",6),e.TgZ(2,"mat-card-header",7),e.TgZ(3,"div",8),e.TgZ(4,"span",9),e._uU(5),e.qZA(),e.qZA(),e.TgZ(6,"div",10),e.TgZ(7,"button",11),e.NdJ("click",function(){return e.CHM(t),e.oxw().showInfo()}),e._uU(8,"?"),e.qZA(),e.TgZ(9,"button",12),e.NdJ("click",function(){return e.CHM(t),e.oxw().onClose()}),e._uU(10,"X"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"mat-card-content",13),e.TgZ(12,"div",14),e.TgZ(13,"div",15),e.TgZ(14,"div",16),e._UZ(15,"fa-icon",17),e.TgZ(16,"span"),e._uU(17,"Circular Rebalance is a payment you make to *yourselves* 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.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",18),e.TgZ(19,"p",19),e.TgZ(20,"strong"),e._uU(21,"Channel Peer:\xa0"),e.qZA(),e._uU(22),e.ALo(23,"titlecase"),e.qZA(),e.TgZ(24,"p",19),e.TgZ(25,"strong"),e._uU(26,"Channel ID:\xa0"),e.qZA(),e._uU(27),e.qZA(),e.qZA(),e.TgZ(28,"mat-vertical-stepper",20,21),e.NdJ("selectionChange",function(o){return e.CHM(t),e.oxw().stepSelectionChanged(o)}),e.TgZ(30,"mat-step",22),e.TgZ(31,"form",23),e.YNc(32,So,1,1,"ng-template",24),e.TgZ(33,"div",25),e.TgZ(34,"mat-form-field",26),e._UZ(35,"input",27),e.TgZ(36,"mat-hint"),e._uU(37),e.qZA(),e.TgZ(38,"span",28),e._uU(39,"Sats"),e.qZA(),e.YNc(40,Lo,2,0,"mat-error",29),e.YNc(41,ko,2,0,"mat-error",29),e.YNc(42,Fo,2,1,"mat-error",29),e.qZA(),e.TgZ(43,"mat-form-field",30),e.TgZ(44,"input",31),e.NdJ("change",function(){return e.CHM(t),e.oxw().onSelectedPeerChanged()}),e.qZA(),e.TgZ(45,"mat-autocomplete",32,33),e.NdJ("optionSelected",function(){return e.CHM(t),e.oxw().onSelectedPeerChanged()}),e.YNc(47,Uo,2,3,"mat-option",34),e.ALo(48,"async"),e.qZA(),e.YNc(49,No,2,0,"mat-error",29),e.YNc(50,Oo,2,0,"mat-error",29),e.qZA(),e.qZA(),e.TgZ(51,"div",35),e.TgZ(52,"button",36),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSelectFee()}),e._uU(53,"Select Fee"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(54,"mat-step",22),e.TgZ(55,"form",23),e.YNc(56,Ro,1,1,"ng-template",37),e.TgZ(57,"div",25),e.TgZ(58,"div",25),e.TgZ(59,"mat-form-field",30),e.TgZ(60,"mat-select",38),e.YNc(61,Io,2,2,"mat-option",34),e.qZA(),e.qZA(),e.TgZ(62,"mat-form-field",26),e._UZ(63,"input",39),e.YNc(64,Mo,2,1,"mat-error",29),e.YNc(65,Do,2,1,"mat-error",29),e.qZA(),e.qZA(),e.qZA(),e.TgZ(66,"div",35),e.TgZ(67,"button",40),e.NdJ("click",function(){return e.CHM(t),e.oxw().onRebalance()}),e._uU(68,"Rebalance"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(69,"mat-step",41),e.TgZ(70,"form",23),e.YNc(71,Po,1,0,"ng-template",24),e.TgZ(72,"div",42),e.TgZ(73,"mat-expansion-panel",43),e.TgZ(74,"mat-expansion-panel-header"),e.TgZ(75,"mat-panel-title"),e.TgZ(76,"span",44),e._uU(77),e.YNc(78,Jo,2,0,"mat-icon",45),e.qZA(),e.qZA(),e.qZA(),e.TgZ(79,"div",14),e.TgZ(80,"span",46),e._uU(81),e.qZA(),e.qZA(),e.qZA(),e.YNc(82,Eo,1,0,"mat-progress-bar",47),e.TgZ(83,"mat-expansion-panel",48),e.TgZ(84,"mat-expansion-panel-header"),e.TgZ(85,"mat-panel-title"),e.TgZ(86,"span",44),e._uU(87),e.YNc(88,Qo,2,1,"mat-icon",45),e.qZA(),e.qZA(),e.qZA(),e.YNc(89,Yo,1,0,"div",49),e.qZA(),e.YNc(90,Ho,1,0,"mat-progress-bar",47),e.qZA(),e.YNc(91,Bo,2,1,"h4",50),e.TgZ(92,"div",51),e.YNc(93,Vo,2,0,"button",52),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(94,"div",53),e.TgZ(95,"button",54),e._uU(96,"Close"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.MAs(46),a=e.oxw(),o=e.MAs(2);e.Q6J("@opacityAnimation",void 0),e.xp6(3),e.Q6J("fxFlex",a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM?"83":"91"),e.xp6(2),e.Oqu(a.channel?"Channel "+a.loopDirectionCaption:a.loopDirectionCaption),e.xp6(1),e.Q6J("fxFlex",a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM?"17":"9"),e.xp6(9),e.Q6J("icon",a.faInfoCircle),e.xp6(7),e.Oqu(e.lcZ(23,45,a.selChannel.remote_alias)),e.xp6(5),e.Oqu(a.selChannel.chan_id),e.xp6(1),e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",a.inputFormGroup)("editable",a.flgEditable),e.xp6(1),e.Q6J("formGroup",a.inputFormGroup),e.xp6(4),e.Q6J("step",100),e.xp6(2),e.AsE("(Local Bal: ",null==a.selChannel?null:a.selChannel.local_balance,", Remaining: ",(null==a.selChannel?null:a.selChannel.local_balance)-(a.inputFormGroup.controls.rebalanceAmount.value?a.inputFormGroup.controls.rebalanceAmount.value:0),")"),e.xp6(3),e.Q6J("ngIf",null==a.inputFormGroup.controls.rebalanceAmount.errors?null:a.inputFormGroup.controls.rebalanceAmount.errors.required),e.xp6(1),e.Q6J("ngIf",null==a.inputFormGroup.controls.rebalanceAmount.errors?null:a.inputFormGroup.controls.rebalanceAmount.errors.min),e.xp6(1),e.Q6J("ngIf",null==a.inputFormGroup.controls.rebalanceAmount.errors?null:a.inputFormGroup.controls.rebalanceAmount.errors.max),e.xp6(2),e.Q6J("matAutocomplete",t),e.xp6(1),e.Q6J("displayWith",a.displayFn),e.xp6(2),e.Q6J("ngForOf",e.lcZ(48,47,a.filteredActiveChannels)),e.xp6(2),e.Q6J("ngIf",null==a.inputFormGroup.controls.selRebalancePeer.errors?null:a.inputFormGroup.controls.selRebalancePeer.errors.required),e.xp6(1),e.Q6J("ngIf",null==a.inputFormGroup.controls.selRebalancePeer.errors?null:a.inputFormGroup.controls.selRebalancePeer.errors.notfound),e.xp6(4),e.Q6J("stepControl",a.feeFormGroup)("editable",a.flgEditable),e.xp6(1),e.Q6J("formGroup",a.feeFormGroup),e.xp6(6),e.Q6J("ngForOf",a.feeLimitTypes),e.xp6(2),e.s9C("placeholder",a.feeFormGroup.controls.selFeeLimitType.value?a.feeFormGroup.controls.selFeeLimitType.value.placeholder:a.feeLimitTypes[0].placeholder),e.Q6J("step",1),e.xp6(1),e.Q6J("ngIf",null==a.feeFormGroup.controls.feeLimit.errors?null:a.feeFormGroup.controls.feeLimit.errors.required),e.xp6(1),e.Q6J("ngIf",null==a.feeFormGroup.controls.feeLimit.errors?null:a.feeFormGroup.controls.feeLimit.errors.min),e.xp6(4),e.Q6J("stepControl",a.statusFormGroup),e.xp6(1),e.Q6J("formGroup",a.statusFormGroup),e.xp6(7),e.Oqu(a.flgInvoiceGenerated?a.flgReusingInvoice?"Invoice re-used":"Invoice generated":"Generating invoice..."),e.xp6(1),e.Q6J("ngIf",a.flgInvoiceGenerated),e.xp6(3),e.Oqu(a.paymentRequest),e.xp6(1),e.Q6J("ngIf",!a.flgInvoiceGenerated),e.xp6(1),e.Q6J("expanded",(a.flgInvoiceGenerated||a.flgReusingInvoice)&&a.flgPaymentSent),e.xp6(4),e.Oqu(a.flgInvoiceGenerated||a.flgPaymentSent?a.flgPaymentSent?null!=a.paymentStatus&&a.paymentStatus.error?"Payment failed":"Payment successful":"Processing payment...":"Payment waiting for Invoice"),e.xp6(1),e.Q6J("ngIf",a.flgPaymentSent),e.xp6(1),e.Q6J("ngIf",!a.paymentStatus)("ngIfElse",o),e.xp6(1),e.Q6J("ngIf",a.flgInvoiceGenerated&&!a.flgPaymentSent),e.xp6(1),e.Q6J("ngIf",a.flgInvoiceGenerated&&a.flgPaymentSent),e.xp6(2),e.Q6J("ngIf",a.paymentStatus&&a.paymentStatus.error),e.xp6(2),e.Q6J("mat-dialog-close",!1)}}function zo(n,i){1&n&&e.GkF(0)}function Wo(n,i){if(1&n&&e.YNc(0,zo,1,0,"ng-container",60),2&n){const t=e.oxw(),a=e.MAs(4),o=e.MAs(6);e.Q6J("ngTemplateOutlet",t.paymentStatus.error?a:o)}}function Xo(n,i){if(1&n&&(e.TgZ(0,"div",14),e.TgZ(1,"span",46),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.hij("Error: ",t.paymentStatus.error,"")}}function $o(n,i){if(1&n&&(e.TgZ(0,"div",14),e.TgZ(1,"div",61),e.TgZ(2,"div",6),e.TgZ(3,"h4",62),e._uU(4,"Payment Hash"),e.qZA(),e.TgZ(5,"span",46),e._uU(6),e.qZA(),e.qZA(),e.qZA(),e._UZ(7,"mat-divider",63),e.TgZ(8,"div",61),e.TgZ(9,"div",64),e.TgZ(10,"h4",62),e._uU(11),e.qZA(),e.TgZ(12,"span",46),e._uU(13),e.qZA(),e.qZA(),e.TgZ(14,"div",64),e.TgZ(15,"h4",62),e._uU(16,"Number of Hops"),e.qZA(),e.TgZ(17,"span",46),e._uU(18),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(6),e.Oqu(t.paymentStatus.payment_hash),e.xp6(5),e.hij("Total Fees (",t.paymentStatus.payment_route.total_fees_msat?"mSats":"Sats",")"),e.xp6(2),e.Oqu(t.paymentStatus.payment_route.total_fees_msat?t.paymentStatus.payment_route.total_fees_msat:t.paymentStatus.payment_route.total_fees?t.paymentStatus.payment_route.total_fees:0),e.xp6(5),e.Oqu(t.paymentStatus&&t.paymentStatus.payment_route&&t.paymentStatus.payment_route.hops&&t.paymentStatus.payment_route.hops.length?t.paymentStatus.payment_route.hops.length:0)}}const jo=function(n,i){return{"dot-primary":n,"dot-primary-lighter":i}};function Ko(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"span",81),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw(2).onStepChanged(s)}),e._UZ(1,"p",82),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw(2);e.xp6(1),e.Q6J("ngClass",e.WLB(1,jo,a.stepNumber===t,a.stepNumber!==t))}}function es(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",83),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).onStepChanged(4)}),e._uU(1,"Back"),e.qZA()}}function ts(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",84),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.flgShowInfo=!1,o.stepNumber=1}),e._uU(1,"Close"),e.qZA()}}function ns(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",85),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.flgShowInfo=!1,o.stepNumber=1}),e._uU(1,"Close"),e.qZA()}}function as(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",86),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.onStepChanged(o.stepNumber-1)}),e._uU(1,"Back"),e.qZA()}}function is(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.onStepChanged(o.stepNumber+1)}),e._uU(1,"Next"),e.qZA()}}const os=function(){return[1,2,3,4,5]};function ss(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",65),e.TgZ(1,"div",66),e.TgZ(2,"mat-card-header",67),e.TgZ(3,"div",68),e._UZ(4,"span",9),e.qZA(),e.TgZ(5,"div",69),e.TgZ(6,"button",70),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return o.flgShowInfo=!1,o.stepNumber=1}),e._uU(7,"X"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",71),e.TgZ(9,"rtl-channel-rebalance-infographics",72),e.NdJ("stepNumberChange",function(o){return e.CHM(t),e.oxw().stepNumber=o}),e.qZA(),e.qZA(),e.TgZ(10,"div",73),e.YNc(11,Ko,2,4,"span",74),e.qZA(),e.TgZ(12,"div",75),e.YNc(13,es,2,0,"button",76),e.YNc(14,ts,2,0,"button",77),e.YNc(15,ns,2,0,"button",78),e.YNc(16,as,2,0,"button",79),e.YNc(17,is,2,0,"button",80),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("@opacityAnimation",void 0),e.xp6(9),e.Q6J("stepNumber",t.stepNumber)("animationDirection",t.animationDirection),e.xp6(2),e.Q6J("ngForOf",e.DdM(9,os)),e.xp6(2),e.Q6J("ngIf",5===t.stepNumber),e.xp6(1),e.Q6J("ngIf",5===t.stepNumber),e.xp6(1),e.Q6J("ngIf",t.stepNumber<5),e.xp6(1),e.Q6J("ngIf",t.stepNumber>1&&t.stepNumber<5),e.xp6(1),e.Q6J("ngIf",t.stepNumber<5)}}let ls=(()=>{class n{constructor(t,a,o,s,u,g,N,x){this.dialogRef=t,this.data=a,this.logger=o,this.store=s,this.actions=u,this.formBuilder=g,this.decimalPipe=N,this.commonService=x,this.faInfoCircle=Z.sqG,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=l.cu,this.animationDirection="forward",this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize();let t="",a="";this.selChannel=this.data.message.selChannel,this.activeChannels=this.data.message.channels.filter(o=>o.active&&o.chan_id!==this.selChannel.chan_id&&o.remote_balance>0),this.activeChannels=this.activeChannels.sort((o,s)=>(t=o.remote_alias?o.remote_alias.toLowerCase():o.chan_id?o.chan_id.toLowerCase():"",a=s.remote_alias?s.remote_alias.toLowerCase():o.chan_id.toLowerCase(),ta?1:0)),l.Vc.forEach((o,s)=>{s>0&&this.feeLimitTypes.push(o)}),this.inputFormGroup=this.formBuilder.group({hiddenAmount:["",[c.kI.required]],rebalanceAmount:["",[c.kI.required,c.kI.min(1),c.kI.max(this.selChannel.local_balance)]],selRebalancePeer:[null,c.kI.required]}),this.feeFormGroup=this.formBuilder.group({selFeeLimitType:[this.feeLimitTypes[0],c.kI.required],feeLimit:["",[c.kI.required,c.kI.min(0)]],hiddenFeeLimit:["",[c.kI.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.store.select(C.Ef).pipe((0,d.R)(this.unSubs[0])).subscribe(o=>{this.invoices=o.listInvoices,this.logger.info(o)}),this.actions.pipe((0,d.R)(this.unSubs[1]),(0,E.h)(o=>o.type===l.uR.SET_QUERY_ROUTES_LND||o.type===l.uR.SEND_PAYMENT_STATUS_LND||o.type===l.uR.NEWLY_SAVED_INVOICE_LND)).subscribe(o=>{o.type===l.uR.SET_QUERY_ROUTES_LND&&(this.queryRoute=o.payload),o.type===l.uR.SEND_PAYMENT_STATUS_LND&&(this.logger.info(o.payload),this.flgPaymentSent=!0,this.paymentStatus=o.payload,this.flgEditable=!0),o.type===l.uR.NEWLY_SAVED_INVOICE_LND&&(this.logger.info(o.payload),this.flgInvoiceGenerated=!0,this.sendPayment(o.payload.paymentRequest))}),this.inputFormGroup.get("rebalanceAmount").valueChanges.pipe((0,d.R)(this.unSubs[2]),(0,Ce.O)(0)).subscribe(o=>{this.inputFormGroup.controls.selRebalancePeer.setValue(""),this.inputFormGroup.controls.selRebalancePeer.setErrors(null),this.filteredActiveChannels=(0,Ze.of)(o?this.filterActiveChannels():this.activeChannels.slice())}),this.inputFormGroup.get("selRebalancePeer").valueChanges.pipe((0,d.R)(this.unSubs[3]),(0,Ce.O)("")).subscribe(o=>{"string"==typeof o&&(this.filteredActiveChannels=(0,Ze.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(t){switch(t.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"}t.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 t=this.findUnsettledInvoice();t?(this.flgReusingInvoice=!0,this.sendPayment(t.payment_request)):this.store.dispatch((0,b.Rd)({payload:{uiMessage:l.m6.NO_SPINNER,memo:"Local-Rebalance-"+this.inputFormGroup.controls.rebalanceAmount.value+"-Sats",invoiceValue:this.inputFormGroup.controls.rebalanceAmount.value,private:!1,expiry:3600,pageSize:l.IV,openModal:!1}}))}findUnsettledInvoice(){return this.invoices.invoices.find(t=>(0==+t.settle_date||!t.settle_date)&&t.memo==="Local-Rebalance-"+this.inputFormGroup.controls.rebalanceAmount.value+"-Sats"&&"CANCELED"!==t.state)}sendPayment(t){this.flgInvoiceGenerated=!0,this.paymentRequest=t,this.store.dispatch((0,b.oV)("percent"===this.feeFormGroup.controls.selFeeLimitType.value.id&&+this.feeFormGroup.controls.feeLimit.value%1!=0?{payload:{uiMessage:l.m6.NO_SPINNER,paymentReq:t,outgoingChannel:this.selChannel,feeLimitType:"fixed",feeLimit:Math.ceil(+this.feeFormGroup.controls.feeLimit.value*+this.inputFormGroup.controls.rebalanceAmount.value/100),allowSelfPayment:!0,lastHopPubkey:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey,fromDialog:!0}}:{payload:{uiMessage:l.m6.NO_SPINNER,paymentReq:t,outgoingChannel:this.selChannel,feeLimitType:this.feeFormGroup.controls.selFeeLimitType.value.id,feeLimit:this.feeFormGroup.controls.feeLimit.value,allowSelfPayment:!0,lastHopPubkey:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey,fromDialog:!0}}))}filterActiveChannels(){return this.activeChannels.filter(t=>t.remote_balance>=this.inputFormGroup.controls.rebalanceAmount.value&&t.chan_id!==this.selChannel.chan_id&&(0===t.remote_alias.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():"")||0===t.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 t=this.activeChannels.filter(a=>a.remote_alias.length===this.inputFormGroup.controls.selRebalancePeer.value.length&&0===a.remote_alias.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():""));t&&t.length>0?(this.inputFormGroup.controls.selRebalancePeer.setValue(t[0]),this.inputFormGroup.controls.selRebalancePeer.setErrors(null)):this.inputFormGroup.controls.selRebalancePeer.setErrors({notfound:!0})}}displayFn(t){return t&&t.remote_alias?t.remote_alias:t&&t.chan_id?t.chan_id:""}showInfo(){this.flgShowInfo=!0}onStepChanged(t){this.animationDirection=t{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(F.mQ),e.Y36(w.yh),e.Y36(G.eX),e.Y36(c.qu),e.Y36(p.JJ),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-rebalance"]],viewQuery:function(t,a){if(1&t&&e.Gf(qo,5),2&t){let o;e.iGM(o=e.CRH())&&(a.stepper=o.first)}},decls:8,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["paymentStatusBlock",""],["paymentFailedBlock",""],["paymentSuccessfulBlock",""],["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,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["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","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","selectionChange"],["stepper",""],[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"],["fxFlex","48"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","rebalanceAmount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxFlex","48","fxLayoutAlign","start end"],["type","text","placeholder","Receive from Peer","aria-label","Receive from Peer","matInput","","formControlName","selRebalancePeer","tabindex","2","required","",3,"matAutocomplete","change"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[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","Placeholder","Fee Limits","required",""],["matInput","","formControlName","feeLimit","type","number","tabindex","7","required","",3,"placeholder","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"],["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"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["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"],["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(t,a){1&t&&(e.YNc(0,Go,97,49,"div",0),e.YNc(1,Wo,1,1,"ng-template",null,1,e.W1O),e.YNc(3,Xo,3,1,"ng-template",null,2,e.W1O),e.YNc(5,$o,19,4,"ng-template",null,3,e.W1O),e.YNc(7,ss,18,10,"div",4)),2&t&&(e.Q6J("ngIf",!a.flgShowInfo),e.xp6(7),e.Q6J("ngIf",a.flgShowInfo))},directives:[p.O5,_.xw,_.yH,_.Wh,T.dk,L.lW,T.dn,M.BN,B.Vq,B.C0,c._Y,c.JL,c.sg,B.VY,f.KE,I.Nt,c.wV,c.Fj,W.h,c.JJ,c.u,c.Q7,f.bx,f.R9,ne.ZL,ne.XC,p.sg,R.gD,H.ib,H.yz,H.yK,J.ZT,f.TO,Y.ey,K.Hw,P.pW,p.tP,z.d,wo,p.mk,q.oO],pipes:[p.rS,p.Ov],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[ye._]}}),n})();function rs(n,i){if(1&n&&(e.TgZ(0,"div",16),e.TgZ(1,"p",17),e.TgZ(2,"mat-icon",18),e._uU(3,"close"),e.qZA(),e._uU(4),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(4),e.Oqu(t.errorMsg)}}function cs(n,i){if(1&n&&(e.TgZ(0,"div",27),e._UZ(1,"fa-icon",28),e.TgZ(2,"span"),e._uU(3,"Priority/Fee for force closing inactive channels cannot be modified."),e.qZA(),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("icon",t.faInfoCircle)}}function us(n,i){if(1&n&&(e.TgZ(0,"mat-option",29),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t.id),e.xp6(1),e.hij(" ",t.name," ")}}function ps(n,i){1&n&&(e.TgZ(0,"mat-form-field",30),e._UZ(1,"input",31),e.qZA())}function ms(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Number of blocks is required."),e.qZA())}function _s(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",32),e.TgZ(1,"input",33,34),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw(2).blocks=o}),e.qZA(),e.YNc(3,ms,2,0,"mat-error",35),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngModel",t.blocks)("step",1)("min",0),e.xp6(2),e.Q6J("ngIf",!t.blocks)}}function ds(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Fees is required."),e.qZA())}function hs(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",32),e.TgZ(1,"input",36,37),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw(2).fees=o}),e.qZA(),e.YNc(3,ds,2,0,"mat-error",35),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngModel",t.fees)("step",1)("min",0),e.xp6(2),e.Q6J("ngIf",!t.fees)}}function gs(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",19),e.YNc(1,cs,4,1,"div",20),e.TgZ(2,"div",21),e.TgZ(3,"mat-form-field",22),e.TgZ(4,"mat-select",23),e.NdJ("valueChange",function(o){return e.CHM(t),e.oxw().selTransType=o}),e.YNc(5,us,2,2,"mat-option",24),e.qZA(),e.qZA(),e.YNc(6,ps,2,0,"mat-form-field",25),e.YNc(7,_s,4,4,"mat-form-field",26),e.YNc(8,hs,4,4,"mat-form-field",26),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.channelToClose.active),e.xp6(3),e.Q6J("value",t.selTransType)("disabled",!t.channelToClose.active),e.xp6(1),e.Q6J("ngForOf",t.transTypes),e.xp6(1),e.Q6J("ngIf","0"===t.selTransType),e.xp6(1),e.Q6J("ngIf","1"===t.selTransType),e.xp6(1),e.Q6J("ngIf","2"===t.selTransType)}}function fs(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",38),e.NdJ("click",function(){return e.CHM(t),e.oxw().resetData()}),e._uU(1,"Clear"),e.qZA()}}function Cs(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",39),e.NdJ("click",function(){return e.CHM(t),e.oxw().onCloseChannel()}),e._uU(1),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.channelToClose.active?"Close Channel":"Force Close")}}function xs(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",40),e.NdJ("click",function(){return e.CHM(t),e.oxw().onClose()}),e._uU(1,"Ok"),e.qZA()}}let Zs=(()=>{class n{constructor(t,a,o,s,u){this.dialogRef=t,this.data=a,this.store=o,this.actions=s,this.logger=u,this.transTypes=l.Dr,this.selTransType="0",this.blocks=null,this.fees=null,this.faExclamationTriangle=Z.eHv,this.faInfoCircle=Z.sqG,this.flgPendingHtlcs=!1,this.errorMsg="Please wait for pending HTLCs to settle before attempting channel closure.",this.unSubs=[new m.x,new m.x]}ngOnInit(){this.channelToClose=this.data.channel,this.actions.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(t=>t.type===l.uR.UPDATE_API_CALL_STATUS_LND||t.type===l.uR.SET_CHANNELS_LND)).subscribe(t=>{if(t.type===l.uR.SET_CHANNELS_LND){const a=t.payload.find(o=>o.chan_id===this.data.channel.chan_id);a&&a.pending_htlcs&&a.pending_htlcs.length&&a.pending_htlcs.length>0&&(this.flgPendingHtlcs=!0)}t.type===l.uR.UPDATE_API_CALL_STATUS_LND&&t.payload.status===l.Bn.ERROR&&"FetchAllChannels"===t.payload.action&&this.logger.error("Fetching latest channel information failed!\n"+t.payload.message)})}onCloseChannel(){if("1"===this.selTransType&&(!this.blocks||0===this.blocks)||"2"===this.selTransType&&(!this.fees||0===this.fees))return!0;const t={channelPoint:this.channelToClose.channel_point,forcibly:!this.channelToClose.active};this.blocks&&(t.targetConf=this.blocks),this.fees&&(t.satPerByte=this.fees),this.store.dispatch((0,b.BL)({payload:t})),this.dialogRef.close(!1)}resetData(){this.selTransType="0",this.blocks=null,this.fees=null}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(w.yh),e.Y36(G.eX),e.Y36(F.mQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-close-channel"]],decls:19,vars:7,consts:[["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","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","tabindex","3","default","",3,"click",4,"ngIf"],["mat-button","","color","primary","type","submit","tabindex","4",3,"click",4,"ngIf"],["mat-button","","color","primary","type","submit","tabindex","5",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 center"],["fxFlex.gt-sm","48"],["tabindex","1",3,"value","disabled","valueChange"],[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"],[3,"value"],["fxFlex","48"],["matInput","","placeholder","Default","disabled",""],["fxFlex.gt-sm","48","fxLayoutAlign","start end"],["matInput","","placeholder","Number of Blocks","type","number","name","blocks","required","","tabindex","2",3,"ngModel","step","min","ngModelChange"],["blcks","ngModel"],[4,"ngIf"],["matInput","","placeholder","Fees (Sats/vByte)","type","number","name","ccfees","required","","tabindex","3",3,"ngModel","step","min","ngModelChange"],["clchfee","ngModel"],["mat-button","","color","primary","type","reset","tabindex","3","default","",1,"mr-1",3,"click"],["mat-button","","color","primary","type","submit","tabindex","4",3,"click"],["mat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e.NdJ("click",function(){return a.onClose()}),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.TgZ(9,"form",7),e.TgZ(10,"div",8),e.TgZ(11,"p",9),e._uU(12),e.qZA(),e.YNc(13,rs,5,1,"div",10),e.YNc(14,gs,9,7,"div",11),e.qZA(),e.TgZ(15,"div",12),e.YNc(16,fs,2,0,"button",13),e.YNc(17,Cs,2,1,"button",14),e.YNc(18,xs,2,0,"button",15),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Oqu(a.channelToClose.active?"Close Channel":"Force Close Channel"),e.xp6(7),e.hij("",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.xp6(1),e.Q6J("ngIf",a.flgPendingHtlcs),e.xp6(1),e.Q6J("ngIf",!a.flgPendingHtlcs),e.xp6(2),e.Q6J("ngIf",a.channelToClose.active&&!a.flgPendingHtlcs),e.xp6(1),e.Q6J("ngIf",!a.flgPendingHtlcs),e.xp6(1),e.Q6J("ngIf",a.flgPendingHtlcs))},directives:[_.xw,_.yH,T.dk,_.Wh,L.lW,T.dn,c._Y,c.JL,c.F,p.O5,K.Hw,f.KE,R.gD,p.sg,M.BN,Y.ey,I.Nt,c.wV,c.qQ,c.Fj,$.q,c.Q7,c.JJ,c.On,f.TO],styles:[""]}),n})();function ys(n,i){1&n&&e._UZ(0,"mat-progress-bar",30)}function Ts(n,i){1&n&&(e.TgZ(0,"th",31),e._uU(1," Peer "),e.qZA())}function bs(n,i){1&n&&e._UZ(0,"span",39)}function As(n,i){1&n&&e._UZ(0,"span",40)}function vs(n,i){if(1&n&&(e.TgZ(0,"span",41),e._UZ(1,"fa-icon",42),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("icon",t.faEyeSlash)}}function ws(n,i){if(1&n&&(e.TgZ(0,"span",43),e._UZ(1,"fa-icon",42),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("icon",t.faEye)}}const qs=function(n){return{"max-width":n}};function Ss(n,i){if(1&n&&(e.TgZ(0,"td",32),e.TgZ(1,"div",33),e.YNc(2,bs,1,0,"span",34),e.YNc(3,As,1,0,"span",35),e.YNc(4,vs,2,1,"span",36),e.YNc(5,ws,2,1,"span",37),e.TgZ(6,"span",38),e._uU(7),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(6,qs,a.screenSize===a.screenSizeEnum.XS?"10rem":a.screenSize===a.screenSizeEnum.MD?"15rem":"22rem")),e.xp6(1),e.Q6J("ngIf",t.active),e.xp6(1),e.Q6J("ngIf",!t.active),e.xp6(1),e.Q6J("ngIf",t.private),e.xp6(1),e.Q6J("ngIf",!t.private),e.xp6(2),e.Oqu(t.remote_alias||t.remote_pubkey)}}function Ls(n,i){if(1&n&&(e.TgZ(0,"th",44),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("Uptime (",t.timeUnit,")")}}function ks(n,i){if(1&n&&(e.TgZ(0,"td",32),e.TgZ(1,"span",45),e._uU(2),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij("",t.uptime_str," ")}}function Fs(n,i){1&n&&(e.TgZ(0,"th",44),e._uU(1,"Sats Sent "),e.qZA())}function Us(n,i){if(1&n&&(e.TgZ(0,"td",32),e.TgZ(1,"span",45),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij("",e.lcZ(3,1,t.total_satoshis_sent)," ")}}function Ns(n,i){1&n&&(e.TgZ(0,"th",44),e._uU(1,"Sats Received "),e.qZA())}function Os(n,i){if(1&n&&(e.TgZ(0,"td",32),e.TgZ(1,"span",45),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij("",e.lcZ(3,1,t.total_satoshis_received)," ")}}function Rs(n,i){1&n&&(e.TgZ(0,"th",44),e._uU(1,"Local Balance (Sats) "),e.qZA())}function Is(n,i){if(1&n&&(e.TgZ(0,"td",32),e.TgZ(1,"span",45),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij("",e.lcZ(3,1,t.local_balance)," ")}}function Ms(n,i){1&n&&(e.TgZ(0,"th",44),e._uU(1,"Remote Balance (Sats) "),e.qZA())}function Ds(n,i){if(1&n&&(e.TgZ(0,"td",32),e.TgZ(1,"span",45),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij("",e.lcZ(3,1,t.remote_balance)," ")}}function Ps(n,i){1&n&&(e.TgZ(0,"th",46),e._uU(1,"Balance Score "),e.qZA())}function Js(n,i){if(1&n&&(e.TgZ(0,"td",47),e.TgZ(1,"div",48),e.TgZ(2,"mat-hint",49),e._uU(3),e.ALo(4,"number"),e.qZA(),e.qZA(),e._UZ(5,"mat-progress-bar",50),e.qZA()),2&n){const t=i.$implicit;e.xp6(3),e.Oqu(e.lcZ(4,2,t.balancedness||0)),e.xp6(2),e.s9C("value",t.local_balance&&t.local_balance>0?+t.local_balance/(+t.local_balance+ +t.remote_balance)*100:0)}}function Es(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",51),e.TgZ(1,"div",52),e.TgZ(2,"mat-select",53),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",54),e.NdJ("click",function(){return e.CHM(t),e.oxw().onChannelUpdate("all")}),e._uU(5,"Update Fee Policy"),e.qZA(),e.TgZ(6,"mat-option",54),e.NdJ("click",function(){return e.CHM(t),e.oxw().onDownloadCSV()}),e._uU(7,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Qs(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-option",54),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit;return e.oxw().onCircularRebalance(o)}),e._uU(1,"Circular Rebalance"),e.qZA()}}function Ys(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-option",54),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit;return e.oxw().onLoopOut(o)}),e._uU(1,"Loop Out"),e.qZA()}}function Hs(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",55),e.TgZ(1,"div",52),e.TgZ(2,"mat-select",56),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",54),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw().onChannelClick(u,o)}),e._uU(5,"View Info"),e.qZA(),e.TgZ(6,"mat-option",54),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onViewRemotePolicy(s)}),e._uU(7,"View Remote Fee "),e.qZA(),e.TgZ(8,"mat-option",54),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onChannelUpdate(s)}),e._uU(9,"Update Fee Policy"),e.qZA(),e.YNc(10,Qs,2,0,"mat-option",57),e.YNc(11,Ys,2,0,"mat-option",57),e.TgZ(12,"mat-option",54),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onChannelClose(s)}),e._uU(13,"Close Channel"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(10),e.Q6J("ngIf",+t.versionsArr[0]>0||+t.versionsArr[1]>=9),e.xp6(1),e.Q6J("ngIf",t.selNode.swapServerUrl)}}function Bs(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No peers connected. Add a peer in order to open a channel."),e.qZA())}function Vs(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No channel available."),e.qZA())}function Gs(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting channels..."),e.qZA())}function zs(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function Ws(n,i){if(1&n&&(e.TgZ(0,"td",58),e.YNc(1,Bs,2,0,"p",59),e.YNc(2,Vs,2,0,"p",59),e.YNc(3,Gs,2,0,"p",59),e.YNc(4,zs,2,1,"p",59),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.numPeers<1&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",t.numPeers>0&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const Xs=function(n){return{"display-none":n}};function $s(n,i){if(1&n&&e._UZ(0,"tr",60),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Xs,t.numPeers>0&&(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function js(n,i){1&n&&e._UZ(0,"tr",61)}function Ks(n,i){1&n&&e._UZ(0,"tr",62)}const el=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},tl=function(){return["no_peer"]};let nl=(()=>{class n{constructor(t,a,o,s,u,g,N,x){var U,re,ve,we;this.logger=t,this.store=a,this.lndEffects=o,this.commonService=s,this.rtlEffects=u,this.decimalPipe=g,this.loopService=N,this.router=x,this.timeUnit="mins:secs",this.userPersonaEnum=l.ol,this.selNode={},this.totalBalance=0,this.displayedColumns=[],this.channelsData=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.selFilter="",this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.versionsArr=[],this.faEye=Z.Mdf,this.faEyeSlash=Z.Aq,this.targetConf=6,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["remote_alias","local_balance","remote_balance","actions"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["remote_alias","local_balance","remote_balance","balancedness","actions"]):(this.flgSticky=!0,this.displayedColumns=["remote_alias","uptime","total_satoshis_sent","total_satoshis_received","local_balance","remote_balance","balancedness","actions"]),this.selFilter=(null===(re=null===(U=this.router.getCurrentNavigation().extras)||void 0===U?void 0:U.state)||void 0===re?void 0:re.filter)?null===(we=null===(ve=this.router.getCurrentNavigation().extras)||void 0===ve?void 0:ve.state)||void 0===we?void 0:we.filter:""}ngOnInit(){this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.information=t,this.information&&this.information.version&&(this.versionsArr=this.information.version.split("."))}),this.store.select(C.Wi).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.numPeers=t.peers&&t.peers.length?t.peers.length:0}),this.store.select(C.qU).pipe((0,d.R)(this.unSubs[3])).subscribe(t=>{this.totalBalance=+t.blockchainBalance.total_balance}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[4])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.channelsData=this.calculateUptime(t.channels),this.channelsData.length>0&&this.loadChannelsTable(this.channelsData),this.logger.info(t)})}ngAfterViewInit(){this.channelsData.length>0&&this.loadChannelsTable(this.channelsData)}onViewRemotePolicy(t){this.store.dispatch((0,b.$A)({payload:{uiMessage:l.m6.GET_REMOTE_POLICY,channelID:t.chan_id.toString()+"/"+this.information.identity_pubkey}})),this.lndEffects.setLookup.pipe((0,V.q)(1)).subscribe(a=>{if(!a.fee_base_msat&&!a.fee_rate_milli_msat&&!a.time_lock_delta)return!1;const o=[[{key:"fee_base_msat",value:a.fee_base_msat,title:"Base Fees (mSats)",width:25,type:l.Gi.NUMBER},{key:"fee_rate_milli_msat",value:a.fee_rate_milli_msat,title:"Fee Rate (milli mSats)",width:25,type:l.Gi.NUMBER},{key:"fee_rate_milli_msat",value:a.fee_rate_milli_msat/1e4,title:"Fee Rate (%)",width:25,type:l.Gi.NUMBER,digitsInfo:"1.0-8"},{key:"time_lock_delta",value:a.time_lock_delta,title:"Time Lock Delta",width:25,type:l.Gi.NUMBER}]],s="Remote policy for Channel: "+(t.remote_alias||t.chan_id?t.remote_alias&&t.chan_id?t.remote_alias+" ("+t.chan_id+")":t.remote_alias?t.remote_alias:t.chan_id:t.channel_point);setTimeout(()=>{this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Remote Channel Policy",titleMessage:s,message:o}}}))},0)})}onCircularRebalance(t){this.store.dispatch((0,v.qR)({payload:{data:{message:{channels:this.channelsData,selChannel:t},component:ls}}}))}onChannelUpdate(t){"all"===t?(this.store.dispatch((0,v.c1)({payload:{data:{type:l.n_.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:l.Gi.NUMBER.toLowerCase(),inputValue:1e3,width:32},{placeholder:"Fee Rate (mili mSat)",inputType:l.Gi.NUMBER.toLowerCase(),inputValue:1,min:1,width:32,hintFunction:this.percentHintFunction},{placeholder:"Time Lock Delta",inputType:l.Gi.NUMBER.toLowerCase(),inputValue:40,width:32}]}}})),this.rtlEffects.closeConfirm.pipe((0,d.R)(this.unSubs[5])).subscribe(o=>{o&&this.store.dispatch((0,b.pW)({payload:{baseFeeMsat:o[0].inputValue,feeRate:o[1].inputValue,timeLockDelta:o[2].inputValue,chanPoint:"all"}}))})):(this.myChanPolicy={fee_base_msat:0,fee_rate_milli_msat:0,time_lock_delta:0},this.store.dispatch((0,b.$A)({payload:{uiMessage:l.m6.GET_CHAN_POLICY,channelID:t.chan_id.toString()}})),this.lndEffects.setLookup.pipe((0,V.q)(1)).subscribe(a=>{this.myChanPolicy=a.node1_pub===this.information.identity_pubkey?a.node1_policy:a.node2_pub===this.information.identity_pubkey?a.node2_policy:{fee_base_msat:0,fee_rate_milli_msat:0,time_lock_delta:0},this.logger.info(this.myChanPolicy);const o="Update fee policy for Channel: "+(t.remote_alias||t.chan_id?t.remote_alias&&t.chan_id?t.remote_alias+" ("+t.chan_id+")":t.remote_alias?t.remote_alias:t.chan_id:t.channel_point),s=[];setTimeout(()=>{this.store.dispatch((0,v.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Update Fee Policy",titleMessage:o,noBtnText:"Cancel",yesBtnText:"Update Channel",message:s,flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSat)",inputType:l.Gi.NUMBER.toLowerCase(),inputValue:""===this.myChanPolicy.fee_base_msat?0:this.myChanPolicy.fee_base_msat,width:32},{placeholder:"Fee Rate (mili mSat)",inputType:l.Gi.NUMBER.toLowerCase(),inputValue:this.myChanPolicy.fee_rate_milli_msat,min:1,width:32,hintFunction:this.percentHintFunction},{placeholder:"Time Lock Delta",inputType:l.Gi.NUMBER.toLowerCase(),inputValue:this.myChanPolicy.time_lock_delta,width:32}]}}}))},0)}),this.rtlEffects.closeConfirm.pipe((0,d.R)(this.unSubs[6])).subscribe(a=>{a&&this.store.dispatch((0,b.pW)({payload:{baseFeeMsat:a[0].inputValue,feeRate:a[1].inputValue,timeLockDelta:a[2].inputValue,chanPoint:t.channel_point}}))})),this.applyFilter()}onChannelClose(t){t.active&&this.store.dispatch((0,b.UR)()),this.store.dispatch((0,v.qR)({payload:{data:{channel:t,component:Zs}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}onChannelClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{channel:t,showCopy:!0,component:xe}}}))}loadChannelsTable(t){t.sort((a,o)=>a.active===o.active?0:o.active?1:-1),this.channels=new r.by([...t]),this.channels.filterPredicate=(a,o)=>((a.active?"active":"inactive")+(a.chan_id?a.chan_id.toLowerCase():"")+(a.remote_pubkey?a.remote_pubkey.toLowerCase():"")+(a.remote_alias?a.remote_alias.toLowerCase():"")+(a.capacity?a.capacity:"")+(a.local_balance?a.local_balance:"")+(a.remote_balance?a.remote_balance:"")+(a.total_satoshis_sent?a.total_satoshis_sent:"")+(a.total_satoshis_received?a.total_satoshis_received:"")+(a.commit_fee?a.commit_fee:"")+(a.private?"private":"public")).includes(o),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.channels.paginator=this.paginator,this.applyFilter(),this.logger.info(this.channels)}calculateUptime(t){let g=60,N=1,x=0;switch(t.forEach(U=>{U.uptime&&+U.uptime>x&&(x=+U.uptime)}),!0){case x<3600:this.timeUnit="Mins:Secs",g=60,N=1;break;case x>=3600&&x<86400:this.timeUnit="Hrs:Mins",g=3600,N=60;break;case x>=86400&&x<31536e3:this.timeUnit="Days:Hrs",g=86400,N=3600;break;case x>31536e3:this.timeUnit="Yrs:Days",g=31536e3,N=86400;break;default:this.timeUnit="Mins:Secs",g=60,N=1}return t.forEach(U=>{U.uptime_str=U.uptime?this.decimalPipe.transform(Math.floor(+U.uptime/g),"2.0-0")+":"+this.decimalPipe.transform(Math.round(+U.uptime%g/N),"2.0-0"):"---"}),t}onLoopOut(t){this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,d.R)(this.unSubs[7])).subscribe(a=>{this.store.dispatch((0,v.qR)({payload:{minHeight:"56rem",data:{channel:t,minQuote:a[0],maxQuote:a[1],direction:l.$I.LOOP_OUT,component:Oe.a}}}))})}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"Open-channels")}percentHintFunction(t){return(t/1e4).toString()+"%"}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(ee.l),e.Y36(O.v),e.Y36(oe.V),e.Y36(p.JJ),e.Y36(Re.W),e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-open-table"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Channels")}])],decls:39,vars:14,consts:[["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","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","remote_alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","uptime"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","total_satoshis_sent"],["matColumnDef","total_satoshis_received"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","balancedness"],["mat-header-cell","","mat-sort-header","","class","pl-2",4,"matHeaderCellDef"],["mat-cell","","class","pl-2",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pl-1",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["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"],["class","dot green","matTooltip","Active","matTooltipPosition","right",4,"ngIf"],["class","dot yellow","matTooltip","Inactive","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Active","matTooltipPosition","right",1,"dot","green"],["matTooltip","Inactive","matTooltipPosition","right",1,"dot","yellow"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-2"],["mat-cell","",1,"pl-2"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell","",1,"pl-1"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-1"],["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(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"div",2),e.TgZ(3,"mat-form-field",3),e.TgZ(4,"input",4),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",5),e.YNc(6,ys,1,0,"mat-progress-bar",6),e.TgZ(7,"table",7,8),e.ynx(9,9),e.YNc(10,Ts,2,0,"th",10),e.YNc(11,Ss,8,8,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,Ls,2,1,"th",13),e.YNc(14,ks,3,1,"td",11),e.BQk(),e.ynx(15,14),e.YNc(16,Fs,2,0,"th",13),e.YNc(17,Us,4,3,"td",11),e.BQk(),e.ynx(18,15),e.YNc(19,Ns,2,0,"th",13),e.YNc(20,Os,4,3,"td",11),e.BQk(),e.ynx(21,16),e.YNc(22,Rs,2,0,"th",13),e.YNc(23,Is,4,3,"td",11),e.BQk(),e.ynx(24,17),e.YNc(25,Ms,2,0,"th",13),e.YNc(26,Ds,4,3,"td",11),e.BQk(),e.ynx(27,18),e.YNc(28,Ps,2,0,"th",19),e.YNc(29,Js,6,4,"td",20),e.BQk(),e.ynx(30,21),e.YNc(31,Es,8,0,"th",22),e.YNc(32,Hs,14,2,"td",23),e.BQk(),e.ynx(33,24),e.YNc(34,Ws,5,4,"td",25),e.BQk(),e.YNc(35,$s,1,3,"tr",26),e.YNc(36,js,1,0,"tr",27),e.YNc(37,Ks,1,0,"tr",28),e.qZA(),e.qZA(),e._UZ(38,"mat-paginator",29),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngModel",a.selFilter),e.xp6(2),e.Q6J("ngIf",(null==a.apiCallStatus?null:a.apiCallStatus.status)===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.channels)("ngClass",e.VKq(11,el,""!==a.errorMessage)),e.xp6(28),e.Q6J("matFooterRowDef",e.DdM(13,tl)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,_.Wh,_.yH,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,p.O5,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,X.gM,M.BN,f.bx,R.gD,R.$L,Y.ey,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-remote_alias[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-remote_alias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-balancedness[_ngcontent-%COMP%]{flex:0 0 20%;width:20%}@media only screen and (max-width: 75em){.mat-column-balancedness[_ngcontent-%COMP%]{flex:0 0 35%;width:35%}}@media only screen and (max-width: 56.25em){.mat-column-balancedness[_ngcontent-%COMP%]{flex:0 0 25%;width:25%}}.mat-column-uptime[_ngcontent-%COMP%], .mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%]{flex:1 1 10%;width:10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media only screen and (max-width: 75em){.mat-column-uptime[_ngcontent-%COMP%], .mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%]{white-space:unset;flex:1 1 25%;width:25%}}@media only screen and (max-width: 56.25em){.mat-column-uptime[_ngcontent-%COMP%], .mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}}@media only screen and (max-width: 37.5em){.mat-column-uptime[_ngcontent-%COMP%], .mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%]{white-space:unset}}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 100%}@media only screen and (max-width: 56.25em){.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 90%}}@media only screen and (max-width: 37.5em){.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 80%}}"]}),n})();const al=["outputIdx"];function il(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Index for change output is required."),e.qZA())}function ol(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Invalid index value."),e.qZA())}function sl(n,i){if(1&n&&(e.TgZ(0,"mat-option",29),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t.id),e.xp6(1),e.hij(" ",t.name," ")}}function ll(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Number of blocks is required."),e.qZA())}function rl(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",17),e.TgZ(1,"input",30,31),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().blocks=o}),e.qZA(),e.YNc(3,ll,2,0,"mat-error",20),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngModel",t.blocks)("step",1)("min",0),e.xp6(2),e.Q6J("ngIf",!t.blocks)}}function cl(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Fees is required."),e.qZA())}function ul(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",17),e.TgZ(1,"input",32,33),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().fees=o}),e.qZA(),e.YNc(3,cl,2,0,"mat-error",20),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngModel",t.fees)("step",1)("min",0),e.xp6(2),e.Q6J("ngIf",!t.fees)}}function pl(n,i){if(1&n&&(e.TgZ(0,"div",34),e._UZ(1,"fa-icon",13),e.TgZ(2,"span"),e._uU(3),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(2),e.Oqu(t.bumpFeeError)}}let ml=(()=>{class n{constructor(t,a,o,s,u){this.dialogRef=t,this.data=a,this.logger=o,this.dataService=s,this.snackBar=u,this.transTypes=[...l.Dr],this.selTransType="2",this.blocks=null,this.fees=null,this.outputIndex=null,this.faCopy=Z.kZ_,this.faInfoCircle=Z.sqG,this.faExclamationTriangle=Z.eHv,this.bumpFeeError="",this.unSubs=[new m.x,new m.x]}set payReq(t){t&&(this.outputIdx=t)}ngOnInit(){this.transTypes=this.transTypes.splice(1),this.bumpFeeChannel=this.data.pendingChannel;const t=this.bumpFeeChannel.channel.channel_point.split(":")||[];this.bumpFeeChannel.channel.txid_str=t[0]||(this.bumpFeeChannel.channel&&this.bumpFeeChannel.channel.channel_point?this.bumpFeeChannel.channel.channel_point:""),this.bumpFeeChannel.channel.output_index=+t[1]||null}onBumpFee(){return this.outputIndex===this.bumpFeeChannel.channel.output_index?(this.outputIdx.control.setErrors({pendingChannelOutputIndex:!0}),!0):!this.outputIndex&&0!==this.outputIndex||!("1"!==this.selTransType||this.blocks&&0!==this.blocks)||!("2"!==this.selTransType||this.fees&&0!==this.fees)||void this.dataService.bumpFee(this.bumpFeeChannel.channel.txid_str,this.outputIndex,this.blocks,this.fees).pipe((0,d.R)(this.unSubs[0])).subscribe({next:t=>{this.dialogRef.close(!1)},error:t=>{this.logger.error(t),this.bumpFeeError=t.message?t.message:t}})}onCopyID(t){this.snackBar.open("Transaction ID copied.")}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(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(F.mQ),e.Y36(j.D),e.Y36(te.ux))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-bump-fee"]],viewQuery:function(t,a){if(1&t&&e.Gf(al,5),2&t){let o;e.iGM(o=e.CRH())&&(a.payReq=o.first)}},decls:48,vars:15,consts:[["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","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"],["matSuffix","","rtlClipboard","","matTooltip","Copy transaction ID",1,"ml-1",3,"icon","payload","copied"],["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"],[1,"pl-1"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex.gt-sm","32","fxLayoutAlign","start end"],["matInput","","placeholder","Index for Change Output","type","number","tabindex","1","required","","name","outputIdx",3,"ngModel","step","min","ngModelChange"],["outputIdx","ngModel"],[4,"ngIf"],["fxFlex.gt-sm","32"],["tabindex","2",3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["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","tabindex","5","default","",1,"mr-1",3,"click"],["mat-button","","color","primary","type","submit","tabindex","6",3,"click"],[3,"value"],["matInput","","placeholder","Number of Blocks","type","number","name","blocks","required","","tabindex","3",3,"ngModel","step","min","ngModelChange"],["blcks","ngModel"],["matInput","","placeholder","Fees (Sats/vByte)","type","number","name","fees","required","","tabindex","4",3,"ngModel","step","min","ngModelChange"],["fee","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"]],template:function(t,a){if(1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5,"Bump Fee"),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e.NdJ("click",function(){return a.onClose()}),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.TgZ(9,"form",7),e.TgZ(10,"div",8),e.TgZ(11,"p",9),e._uU(12),e.TgZ(13,"fa-icon",10),e.NdJ("copied",function(s){return a.onCopyID(s)}),e.qZA(),e.qZA(),e.TgZ(14,"div",11),e.TgZ(15,"div",12),e._UZ(16,"fa-icon",13),e.TgZ(17,"span",14),e._uU(18,"Bumping fee on pending open channels is an advanced feature, attempt it only if you are familiar with the functionality of Bitcoin transactions. "),e.TgZ(19,"div"),e._uU(20,"Before attempting fee bump ensure the following:"),e.qZA(),e.TgZ(21,"div",15),e._uU(22,"1: Use a Bitcoin block explorer to ensure that channel opening transaction is not confirmed."),e.qZA(),e.TgZ(23,"div",15),e._uU(24,"2: The channel opening transaction must have a sizable change output, which can be spent further. The fee cannot be bumped without the change output."),e.qZA(),e.TgZ(25,"div",15),e._uU(26,"3: Find the index value of the change output via a block explorer."),e.qZA(),e.TgZ(27,"div",15),e._uU(28,"4: Enter the index value of the change output in the form below and the desired fee rate."),e.qZA(),e.TgZ(29,"div",15),e._uU(30,"5: Upon successful fee bump, use your block explorer to track the child transaction in the mempool, which should be linked with the change output transaction."),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"div",16),e.TgZ(32,"mat-form-field",17),e.TgZ(33,"input",18,19),e.NdJ("ngModelChange",function(s){return a.outputIndex=s}),e.qZA(),e.YNc(35,il,2,0,"mat-error",20),e.YNc(36,ol,2,0,"mat-error",20),e.qZA(),e.TgZ(37,"mat-form-field",21),e.TgZ(38,"mat-select",22),e.NdJ("valueChange",function(s){return a.selTransType=s})("selectionChange",function(){return a.blocks=null,a.fees=null}),e.YNc(39,sl,2,2,"mat-option",23),e.qZA(),e.qZA(),e.YNc(40,rl,4,4,"mat-form-field",24),e.YNc(41,ul,4,4,"mat-form-field",24),e.qZA(),e.YNc(42,pl,4,2,"div",25),e.qZA(),e.qZA(),e.TgZ(43,"div",26),e.TgZ(44,"button",27),e.NdJ("click",function(){return a.resetData()}),e._uU(45,"Clear"),e.qZA(),e.TgZ(46,"button",28),e.NdJ("click",function(){return a.onBumpFee()}),e._uU(47),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t){const o=e.MAs(34);e.xp6(12),e.hij("Bump fee for channel point: ",null==a.bumpFeeChannel||null==a.bumpFeeChannel.channel?null:a.bumpFeeChannel.channel.channel_point," "),e.xp6(1),e.Q6J("icon",a.faCopy)("payload",null==a.bumpFeeChannel||null==a.bumpFeeChannel.channel?null:a.bumpFeeChannel.channel.txid_str),e.xp6(3),e.Q6J("icon",a.faInfoCircle),e.xp6(17),e.Q6J("ngModel",a.outputIndex)("step",1)("min",0),e.xp6(2),e.Q6J("ngIf",null==o.errors?null:o.errors.required),e.xp6(1),e.Q6J("ngIf",null==o.errors?null:o.errors.pendingChannelOutputIndex),e.xp6(2),e.Q6J("value",a.selTransType),e.xp6(1),e.Q6J("ngForOf",a.transTypes),e.xp6(1),e.Q6J("ngIf","1"===a.selTransType),e.xp6(1),e.Q6J("ngIf","2"===a.selTransType),e.xp6(1),e.Q6J("ngIf",""!==a.bumpFeeError),e.xp6(5),e.Oqu(""!==a.bumpFeeError?"Retry Bump Fee":"Bump Fee")}},directives:[_.xw,_.yH,T.dk,_.Wh,L.lW,T.dn,c._Y,c.JL,c.F,M.BN,f.R9,se.y,X.gM,f.KE,I.Nt,c.wV,c.qQ,c.Fj,$.q,c.Q7,c.JJ,c.On,p.O5,R.gD,p.sg,f.TO,Y.ey],styles:[""]}),n})();function _l(n,i){1&n&&e._UZ(0,"mat-progress-bar",36)}function dl(n,i){1&n&&e._UZ(0,"mat-progress-bar",36)}function hl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",37),e._uU(1," Peer "),e.qZA())}const me=function(n){return{"max-width":n}};function gl(n,i){if(1&n&&(e.TgZ(0,"mat-cell",38),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,me,a.screenSize===a.screenSizeEnum.XS?"10rem":"30rem")),e.xp6(1),e.Oqu(t.channel.remote_alias)}}function fl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1,"Commit Fee (Sats) "),e.qZA())}function Cl(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.commit_fee))}}function xl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1,"Commit Weight "),e.qZA())}function Zl(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.commit_weight))}}function yl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1,"Capacity (Sats)"),e.qZA())}function Tl(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.capacity))}}function bl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",41),e._uU(1,"Actions"),e.qZA())}function Al(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-cell",42),e.TgZ(1,"div",43),e.TgZ(2,"mat-select",44),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",45),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onOpenClick(s)}),e._uU(5,"View Info"),e.qZA(),e.TgZ(6,"mat-option",45),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onBumpFee(s)}),e._uU(7,"Bump Fee"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function vl(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No pending channel."),e.qZA())}function wl(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting pending channels..."),e.qZA())}function ql(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function Sl(n,i){if(1&n&&(e.TgZ(0,"td",46),e.YNc(1,vl,2,0,"p",47),e.YNc(2,wl,2,0,"p",47),e.YNc(3,ql,2,1,"p",47),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!t.pendingOpenChannels||!(null!=t.pendingOpenChannels&&t.pendingOpenChannels.data)||(null==t.pendingOpenChannels||null==t.pendingOpenChannels.data?null:t.pendingOpenChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!t.pendingOpenChannels||!(null!=t.pendingOpenChannels&&t.pendingOpenChannels.data)||(null==t.pendingOpenChannels||null==t.pendingOpenChannels.data?null:t.pendingOpenChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!t.pendingOpenChannels||!(null!=t.pendingOpenChannels&&t.pendingOpenChannels.data)||(null==t.pendingOpenChannels||null==t.pendingOpenChannels.data?null:t.pendingOpenChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Te=function(n){return{"display-none":n}};function Ll(n,i){if(1&n&&e._UZ(0,"tr",48),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Te,t.pendingOpenChannels&&(null==t.pendingOpenChannels?null:t.pendingOpenChannels.data)&&(null==t.pendingOpenChannels||null==t.pendingOpenChannels.data?null:t.pendingOpenChannels.data.length)>0))}}function kl(n,i){1&n&&e._UZ(0,"mat-header-row")}function Fl(n,i){1&n&&e._UZ(0,"mat-row",49)}function Ul(n,i){1&n&&e._UZ(0,"mat-progress-bar",36)}function Nl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",37),e._uU(1," Peer "),e.qZA())}function Ol(n,i){if(1&n&&(e.TgZ(0,"mat-cell",38),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,me,a.screenSize===a.screenSizeEnum.XS?"10rem":"30rem")),e.xp6(1),e.Oqu(t.channel.remote_alias)}}function Rl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1,"Recovered Balance (Sats) "),e.qZA())}function Il(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.recovered_balance))}}function Ml(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1,"Limbo Balance (Sats) "),e.qZA())}function Dl(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.limbo_balance))}}function Pl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1,"Capacity (Sats) "),e.qZA())}function Jl(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.capacity))}}function El(n,i){1&n&&(e.TgZ(0,"mat-header-cell",50),e._uU(1,"Actions"),e.qZA())}function Ql(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-cell",51),e.TgZ(1,"button",52),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onForceClosingClick(s)}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function Yl(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No pending channel."),e.qZA())}function Hl(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting pending channels..."),e.qZA())}function Bl(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function Vl(n,i){if(1&n&&(e.TgZ(0,"td",46),e.YNc(1,Yl,2,0,"p",47),e.YNc(2,Hl,2,0,"p",47),e.YNc(3,Bl,2,1,"p",47),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!t.pendingForceClosingChannels||!(null!=t.pendingForceClosingChannels&&t.pendingForceClosingChannels.data)||(null==t.pendingForceClosingChannels||null==t.pendingForceClosingChannels.data?null:t.pendingForceClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!t.pendingForceClosingChannels||!(null!=t.pendingForceClosingChannels&&t.pendingForceClosingChannels.data)||(null==t.pendingForceClosingChannels||null==t.pendingForceClosingChannels.data?null:t.pendingForceClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!t.pendingForceClosingChannels||!(null!=t.pendingForceClosingChannels&&t.pendingForceClosingChannels.data)||(null==t.pendingForceClosingChannels||null==t.pendingForceClosingChannels.data?null:t.pendingForceClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}function Gl(n,i){if(1&n&&e._UZ(0,"tr",48),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Te,t.pendingForceClosingChannels&&(null==t.pendingForceClosingChannels?null:t.pendingForceClosingChannels.data)&&(null==t.pendingForceClosingChannels||null==t.pendingForceClosingChannels.data?null:t.pendingForceClosingChannels.data.length)>0))}}function zl(n,i){1&n&&e._UZ(0,"mat-header-row")}function Wl(n,i){1&n&&e._UZ(0,"mat-row",49)}function Xl(n,i){1&n&&e._UZ(0,"mat-progress-bar",36)}function $l(n,i){1&n&&(e.TgZ(0,"mat-header-cell",53),e._uU(1," Peer "),e.qZA())}function jl(n,i){if(1&n&&(e.TgZ(0,"mat-cell",54),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,me,a.screenSize===a.screenSizeEnum.XS?"10rem":"30rem")),e.xp6(1),e.Oqu(t.channel.remote_alias)}}function Kl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1," Local Balance (Sats) "),e.qZA())}function er(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.local_balance))}}function tr(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1," Remote Balance (Sats) "),e.qZA())}function nr(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.remote_balance))}}function ar(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1," Capacity (Sats) "),e.qZA())}function ir(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.capacity))}}function or(n,i){1&n&&(e.TgZ(0,"mat-header-cell",50),e._uU(1,"Actions"),e.qZA())}function sr(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-cell",51),e.TgZ(1,"button",55),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onClosingClick(s)}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function lr(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No pending channel."),e.qZA())}function rr(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting pending channels..."),e.qZA())}function cr(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function ur(n,i){if(1&n&&(e.TgZ(0,"td",46),e.YNc(1,lr,2,0,"p",47),e.YNc(2,rr,2,0,"p",47),e.YNc(3,cr,2,1,"p",47),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!t.pendingClosingChannels||!(null!=t.pendingClosingChannels&&t.pendingClosingChannels.data)||(null==t.pendingClosingChannels||null==t.pendingClosingChannels.data?null:t.pendingClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!t.pendingClosingChannels||!(null!=t.pendingClosingChannels&&t.pendingClosingChannels.data)||(null==t.pendingClosingChannels||null==t.pendingClosingChannels.data?null:t.pendingClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!t.pendingClosingChannels||!(null!=t.pendingClosingChannels&&t.pendingClosingChannels.data)||(null==t.pendingClosingChannels||null==t.pendingClosingChannels.data?null:t.pendingClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}function pr(n,i){if(1&n&&e._UZ(0,"tr",48),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Te,t.pendingClosingChannels&&(null==t.pendingClosingChannels?null:t.pendingClosingChannels.data)&&(null==t.pendingClosingChannels||null==t.pendingClosingChannels.data?null:t.pendingClosingChannels.data.length)>0))}}function mr(n,i){1&n&&e._UZ(0,"mat-header-row")}function _r(n,i){1&n&&e._UZ(0,"mat-row",49)}function dr(n,i){1&n&&e._UZ(0,"mat-progress-bar",36)}function hr(n,i){1&n&&(e.TgZ(0,"mat-header-cell",53),e._uU(1," Peer "),e.qZA())}function gr(n,i){if(1&n&&(e.TgZ(0,"mat-cell",54),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,me,a.screenSize===a.screenSizeEnum.XS?"10rem":"30rem")),e.xp6(1),e.Oqu(t.channel.remote_alias)}}function fr(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1," Limbo Balance (Sats) "),e.qZA())}function Cr(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij("",e.lcZ(2,1,t.limbo_balance)," ")}}function xr(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1," Local Balance (Sats) "),e.qZA())}function Zr(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.local_balance))}}function yr(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1," Remote Balance (Sats) "),e.qZA())}function Tr(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.remote_balance))}}function br(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1," Capacity (Sats) "),e.qZA())}function Ar(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.capacity))}}function vr(n,i){1&n&&(e.TgZ(0,"mat-header-cell",50),e._uU(1,"Actions"),e.qZA())}function wr(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-cell",51),e.TgZ(1,"button",56),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onWaitClosingClick(s)}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function qr(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No pending channel."),e.qZA())}function Sr(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting pending channels..."),e.qZA())}function Lr(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function kr(n,i){if(1&n&&(e.TgZ(0,"td",46),e.YNc(1,qr,2,0,"p",47),e.YNc(2,Sr,2,0,"p",47),e.YNc(3,Lr,2,1,"p",47),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!t.pendingWaitClosingChannels||!(null!=t.pendingWaitClosingChannels&&t.pendingWaitClosingChannels.data)||(null==t.pendingWaitClosingChannels||null==t.pendingWaitClosingChannels.data?null:t.pendingWaitClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!t.pendingWaitClosingChannels||!(null!=t.pendingWaitClosingChannels&&t.pendingWaitClosingChannels.data)||(null==t.pendingWaitClosingChannels||null==t.pendingWaitClosingChannels.data?null:t.pendingWaitClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!t.pendingWaitClosingChannels||!(null!=t.pendingWaitClosingChannels&&t.pendingWaitClosingChannels.data)||(null==t.pendingWaitClosingChannels||null==t.pendingWaitClosingChannels.data?null:t.pendingWaitClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Fr=function(n){return{"py-0":!0,"display-none":n}};function Ur(n,i){if(1&n&&e._UZ(0,"tr",48),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Fr,t.pendingWaitClosingChannels&&(null==t.pendingWaitClosingChannels?null:t.pendingWaitClosingChannels.data)&&(null==t.pendingWaitClosingChannels||null==t.pendingWaitClosingChannels.data?null:t.pendingWaitClosingChannels.data.length)>0))}}function Nr(n,i){1&n&&e._UZ(0,"mat-header-row")}function Or(n,i){1&n&&e._UZ(0,"mat-row",49)}const _e=function(n){return{"error-border bordered-box":n,"bordered-box":!0}},Rr=function(){return["no_pending_open"]},Ir=function(){return["no_pending_force_closing"]},Mr=function(){return["no_pending_closing"]},Dr=function(){return["no_pending_wait_closing"]};let Pr=(()=>{class n{constructor(t,a,o){this.logger=t,this.store=a,this.commonService=o,this.selNode={},this.selectedFilter="",this.information={},this.pendingChannels={},this.displayedOpenColumns=["remote_alias","commit_fee","commit_weight","capacity","actions"],this.pendingOpenChannelsLength=0,this.displayedForceClosingColumns=["remote_alias","recovered_balance","limbo_balance","capacity","actions"],this.pendingForceClosingChannelsLength=0,this.displayedClosingColumns=["remote_alias","local_balance","remote_balance","capacity","actions"],this.pendingClosingChannelsLength=0,this.displayedWaitClosingColumns=["remote_alias","limbo_balance","local_balance","remote_balance","actions"],this.pendingWaitClosingChannelsLength=0,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.displayedOpenColumns=["remote_alias","actions"],this.displayedForceClosingColumns=["remote_alias","actions"],this.displayedClosingColumns=["remote_alias","actions"],this.displayedWaitClosingColumns=["remote_alias","actions"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.displayedOpenColumns=["remote_alias","commit_fee","actions"],this.displayedForceClosingColumns=["remote_alias","limbo_balance","actions"],this.displayedClosingColumns=["remote_alias","remote_balance","actions"],this.displayedWaitClosingColumns=["remote_alias","limbo_balance","actions"]):(this.displayedOpenColumns=["remote_alias","commit_fee","commit_weight","capacity","actions"],this.displayedForceClosingColumns=["remote_alias","recovered_balance","limbo_balance","capacity","actions"],this.displayedClosingColumns=["remote_alias","local_balance","remote_balance","capacity","actions"],this.displayedWaitClosingColumns=["remote_alias","limbo_balance","local_balance","remote_balance","actions"])}ngOnInit(){this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(C.ni).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.pendingChannels=t.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(t)})}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(t){const a=JSON.parse(JSON.stringify(t,["commit_weight","confirmation_height","fee_per_kw","commit_fee"],2)),o=JSON.parse(JSON.stringify(t.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),s={};Object.assign(s,a,o),this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Opening Channel Information",message:[[{key:"channel_point",value:s.channel_point,title:"Channel Point",width:100,type:l.Gi.STRING}],[{key:"remote_node_pub",value:s.remote_node_pub,title:"Peer Node Pubkey",width:100,type:l.Gi.STRING}],[{key:"remote_alias",value:s.remote_alias,title:"Peer Alias",width:100,type:l.Gi.STRING}],[{key:"capacity",value:s.capacity,title:"Capacity",width:25,type:l.Gi.NUMBER},{key:"confirmation_height",value:s.confirmation_height,title:"Confirmation Height",width:25,type:l.Gi.NUMBER},{key:"local_balance",value:s.local_balance,title:"Local Balance",width:25,type:l.Gi.NUMBER},{key:"remote_balance",value:s.remote_balance,title:"Remote Balance",width:25,type:l.Gi.NUMBER}],[{key:"fee_per_kw",value:s.fee_per_kw,title:"Fee/KW",width:25,type:l.Gi.NUMBER},{key:"commit_weight",value:s.commit_weight,title:"Commit Weight",width:25,type:l.Gi.NUMBER},{key:"commit_fee",value:s.commit_fee,title:"Commit Fee",width:50,type:l.Gi.NUMBER}]]}}}))}onBumpFee(t){this.store.dispatch((0,v.qR)({payload:{data:{pendingChannel:t,component:ml}}}))}onForceClosingClick(t){const a=JSON.parse(JSON.stringify(t,["closing_txid","limbo_balance","maturity_height","blocks_til_maturity","recovered_balance"],2)),o=JSON.parse(JSON.stringify(t.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),s={};Object.assign(s,a,o),this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Force Closing Channel Information",message:[[{key:"closing_txid",value:s.closing_txid,title:"Closing Transaction ID",width:100,type:l.Gi.STRING}],[{key:"channel_point",value:s.channel_point,title:"Channel Point",width:100,type:l.Gi.STRING}],[{key:"remote_alias",value:s.remote_alias,title:"Peer Alias",width:25,type:l.Gi.STRING},{key:"remote_node_pub",value:s.remote_node_pub,title:"Peer Node Pubkey",width:75,type:l.Gi.STRING}],[{key:"capacity",value:s.capacity,title:"Capacity",width:25,type:l.Gi.NUMBER},{key:"limbo_balance",value:s.limbo_balance,title:"Limbo Balance",width:25,type:l.Gi.NUMBER},{key:"local_balance",value:s.local_balance,title:"Local Balance",width:25,type:l.Gi.NUMBER},{key:"remote_balance",value:s.remote_balance,title:"Remote Balance",width:25,type:l.Gi.NUMBER}],[{key:"maturity_height",value:s.maturity_height,title:"Maturity Height",width:25,type:l.Gi.NUMBER},{key:"blocks_til_maturity",value:s.blocks_til_maturity,title:"Blocks Till Maturity",width:25,type:l.Gi.NUMBER},{key:"recovered_balance",value:s.recovered_balance,title:"Recovered Balance",width:50,type:l.Gi.NUMBER}]]}}}))}onClosingClick(t){const a=JSON.parse(JSON.stringify(t,["closing_txid"],2)),o=JSON.parse(JSON.stringify(t.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),s={};Object.assign(s,a,o),this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Closing Channel Information",message:[[{key:"closing_txid",value:s.closing_txid,title:"Closing Transaction ID",width:50,type:l.Gi.STRING}],[{key:"channel_point",value:s.channel_point,title:"Channel Point",width:100,type:l.Gi.STRING}],[{key:"remote_alias",value:s.remote_alias,title:"Peer Alias",width:25,type:l.Gi.STRING},{key:"remote_node_pub",value:s.remote_node_pub,title:"Peer Node Pubkey",width:75,type:l.Gi.STRING}],[{key:"capacity",value:s.capacity,title:"Capacity",width:25,type:l.Gi.NUMBER},{key:"local_balance",value:s.local_balance,title:"Local Balance",width:25,type:l.Gi.NUMBER},{key:"remote_balance",value:s.remote_balance,title:"Remote Balance",width:50,type:l.Gi.NUMBER}]]}}}))}onWaitClosingClick(t){const a=JSON.parse(JSON.stringify(t,["limbo_balance"],2)),o=JSON.parse(JSON.stringify(t.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),s=JSON.parse(JSON.stringify(t.commitments,["local_txid"],2)),u={};Object.assign(u,a,o,s),this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Wait Closing Channel Information",message:[[{key:"local_txid",value:u.local_txid,title:"Transaction ID",width:100,type:l.Gi.STRING}],[{key:"channel_point",value:u.channel_point,title:"Channel Point",width:100,type:l.Gi.STRING}],[{key:"remote_alias",value:u.remote_alias,title:"Peer Alias",width:25,type:l.Gi.STRING},{key:"remote_node_pub",value:u.remote_node_pub,title:"Peer Node Pubkey",width:75,type:l.Gi.STRING}],[{key:"capacity",value:u.capacity,title:"Capacity",width:25,type:l.Gi.NUMBER},{key:"limbo_balance",value:u.limbo_balance,title:"Limbo Balance",width:25,type:l.Gi.NUMBER},{key:"local_balance",value:u.local_balance,title:"Local Balance",width:25,type:l.Gi.NUMBER},{key:"remote_balance",value:u.remote_balance,title:"Remote Balance",width:25,type:l.Gi.NUMBER}]]}}}))}loadOpenChannelsTable(t){t.sort((a,o)=>a.active===o.active?0:o.active?-1:1),this.pendingOpenChannelsLength=t.length?t.length:0,this.pendingOpenChannels=new r.by([...t]),this.pendingOpenChannels.sort=this.sort,this.pendingOpenChannels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.pendingOpenChannels.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.logger.info(this.pendingOpenChannels)}loadForceClosingChannelsTable(t){t.sort((a,o)=>a.active===o.active?0:o.active?-1:1),this.pendingForceClosingChannelsLength=t.length?t.length:0,this.pendingForceClosingChannels=new r.by([...t]),this.pendingForceClosingChannels.sort=this.sort,this.pendingForceClosingChannels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.pendingForceClosingChannels.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.logger.info(this.pendingForceClosingChannels)}loadClosingChannelsTable(t){t.sort((a,o)=>a.active===o.active?0:o.active?-1:1),this.pendingClosingChannelsLength=t.length?t.length:0,this.pendingClosingChannels=new r.by([...t]),this.pendingClosingChannels.sort=this.sort,this.pendingClosingChannels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.pendingClosingChannels.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.logger.info(this.pendingClosingChannels)}loadWaitClosingChannelsTable(t){t.sort((a,o)=>a.active===o.active?0:o.active?-1:1),this.pendingWaitClosingChannelsLength=t.length?t.length:0,this.pendingWaitClosingChannels=new r.by([...t]),this.pendingWaitClosingChannels.sort=this.sort,this.pendingWaitClosingChannels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.pendingWaitClosingChannels.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.logger.info(this.pendingWaitClosingChannels)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-pending-table"]],viewQuery:function(t,a){if(1&t&&e.Gf(A.YE,5),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first)}},decls:121,vars:44,consts:[["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","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","remote_alias"],["mat-sort-header","",4,"matHeaderCellDef"],[3,"ngStyle",4,"matCellDef"],["matColumnDef","commit_fee"],["fxLayoutAlign","end center","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","commit_weight"],["matColumnDef","capacity"],["matColumnDef","actions"],["fxLayoutAlign","end center","class","pl-3 pr-4",4,"matHeaderCellDef"],["fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_pending_open"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","","fxLayoutAlign","start center",3,"ngClass",4,"matFooterRowDef"],[4,"matHeaderRowDef"],["fxLayoutAlign","stretch stretch",4,"matRowDef","matRowDefColumns"],["mat-table","","matSort","",3,"dataSource","ngClass"],["matColumnDef","recovered_balance"],["matColumnDef","limbo_balance"],["fxLayoutAlign","end center","class","pl-4 pr-3",4,"matHeaderCellDef"],["fxLayoutAlign","end center","class","pl-4",4,"matCellDef"],["matColumnDef","no_pending_force_closing"],["class","pl-2","mat-sort-header","",4,"matHeaderCellDef"],["class","pl-2",3,"ngStyle",4,"matCellDef"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","no_pending_closing"],["matColumnDef","no_pending_wait_closing"],["mode","indeterminate"],["mat-sort-header",""],[3,"ngStyle"],["fxLayoutAlign","end center","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",1,"pl-3","pr-4"],["fxLayoutAlign","end center",1,"px-3"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","","fxLayoutAlign","start center",3,"ngClass"],["fxLayoutAlign","stretch stretch"],["fxLayoutAlign","end center",1,"pl-4","pr-3"],["fxLayoutAlign","end center",1,"pl-4"],["mat-stroked-button","","color","primary","type","button","tabindex","2",3,"click"],["mat-sort-header","",1,"pl-2"],[1,"pl-2",3,"ngStyle"],["mat-stroked-button","","color","primary","type","button","tabindex","3",3,"click"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"span",1),e._uU(2),e.ALo(3,"number"),e.qZA(),e.TgZ(4,"mat-accordion",2),e.YNc(5,_l,1,0,"mat-progress-bar",3),e.TgZ(6,"mat-expansion-panel",4),e.TgZ(7,"mat-expansion-panel-header"),e.TgZ(8,"mat-panel-title"),e._uU(9),e.qZA(),e.qZA(),e.TgZ(10,"div",5),e.YNc(11,dl,1,0,"mat-progress-bar",3),e.TgZ(12,"table",6,7),e.ynx(14,8),e.YNc(15,hl,2,0,"mat-header-cell",9),e.YNc(16,gl,2,4,"mat-cell",10),e.BQk(),e.ynx(17,11),e.YNc(18,fl,2,0,"mat-header-cell",12),e.YNc(19,Cl,3,3,"mat-cell",13),e.BQk(),e.ynx(20,14),e.YNc(21,xl,2,0,"mat-header-cell",12),e.YNc(22,Zl,3,3,"mat-cell",13),e.BQk(),e.ynx(23,15),e.YNc(24,yl,2,0,"mat-header-cell",12),e.YNc(25,Tl,3,3,"mat-cell",13),e.BQk(),e.ynx(26,16),e.YNc(27,bl,2,0,"mat-header-cell",17),e.YNc(28,Al,8,0,"mat-cell",18),e.BQk(),e.ynx(29,19),e.YNc(30,Sl,4,3,"td",20),e.BQk(),e.YNc(31,Ll,1,3,"tr",21),e.YNc(32,kl,1,0,"mat-header-row",22),e.YNc(33,Fl,1,0,"mat-row",23),e.qZA(),e.qZA(),e.qZA(),e.YNc(34,Ul,1,0,"mat-progress-bar",3),e.TgZ(35,"mat-expansion-panel",4),e.TgZ(36,"mat-expansion-panel-header"),e.TgZ(37,"mat-panel-title"),e._uU(38),e.qZA(),e.qZA(),e.TgZ(39,"div",5),e.TgZ(40,"table",24,7),e.ynx(42,8),e.YNc(43,Nl,2,0,"mat-header-cell",9),e.YNc(44,Ol,2,4,"mat-cell",10),e.BQk(),e.ynx(45,25),e.YNc(46,Rl,2,0,"mat-header-cell",12),e.YNc(47,Il,3,3,"mat-cell",13),e.BQk(),e.ynx(48,26),e.YNc(49,Ml,2,0,"mat-header-cell",12),e.YNc(50,Dl,3,3,"mat-cell",13),e.BQk(),e.ynx(51,15),e.YNc(52,Pl,2,0,"mat-header-cell",12),e.YNc(53,Jl,3,3,"mat-cell",13),e.BQk(),e.ynx(54,16),e.YNc(55,El,2,0,"mat-header-cell",27),e.YNc(56,Ql,3,0,"mat-cell",28),e.BQk(),e.ynx(57,29),e.YNc(58,Vl,4,3,"td",20),e.BQk(),e.YNc(59,Gl,1,3,"tr",21),e.YNc(60,zl,1,0,"mat-header-row",22),e.YNc(61,Wl,1,0,"mat-row",23),e.qZA(),e.qZA(),e.qZA(),e.YNc(62,Xl,1,0,"mat-progress-bar",3),e.TgZ(63,"mat-expansion-panel",4),e.TgZ(64,"mat-expansion-panel-header"),e.TgZ(65,"mat-panel-title"),e._uU(66),e.qZA(),e.qZA(),e.TgZ(67,"div",5),e.TgZ(68,"table",24,7),e.ynx(70,8),e.YNc(71,$l,2,0,"mat-header-cell",30),e.YNc(72,jl,2,4,"mat-cell",31),e.BQk(),e.ynx(73,32),e.YNc(74,Kl,2,0,"mat-header-cell",12),e.YNc(75,er,3,3,"mat-cell",13),e.BQk(),e.ynx(76,33),e.YNc(77,tr,2,0,"mat-header-cell",12),e.YNc(78,nr,3,3,"mat-cell",13),e.BQk(),e.ynx(79,15),e.YNc(80,ar,2,0,"mat-header-cell",12),e.YNc(81,ir,3,3,"mat-cell",13),e.BQk(),e.ynx(82,16),e.YNc(83,or,2,0,"mat-header-cell",27),e.YNc(84,sr,3,0,"mat-cell",28),e.BQk(),e.ynx(85,34),e.YNc(86,ur,4,3,"td",20),e.BQk(),e.YNc(87,pr,1,3,"tr",21),e.YNc(88,mr,1,0,"mat-header-row",22),e.YNc(89,_r,1,0,"mat-row",23),e.qZA(),e.qZA(),e.qZA(),e.YNc(90,dr,1,0,"mat-progress-bar",3),e.TgZ(91,"mat-expansion-panel",4),e.TgZ(92,"mat-expansion-panel-header"),e.TgZ(93,"mat-panel-title"),e._uU(94),e.qZA(),e.qZA(),e.TgZ(95,"div",5),e.TgZ(96,"table",24,7),e.ynx(98,8),e.YNc(99,hr,2,0,"mat-header-cell",30),e.YNc(100,gr,2,4,"mat-cell",31),e.BQk(),e.ynx(101,26),e.YNc(102,fr,2,0,"mat-header-cell",12),e.YNc(103,Cr,3,3,"mat-cell",13),e.BQk(),e.ynx(104,32),e.YNc(105,xr,2,0,"mat-header-cell",12),e.YNc(106,Zr,3,3,"mat-cell",13),e.BQk(),e.ynx(107,33),e.YNc(108,yr,2,0,"mat-header-cell",12),e.YNc(109,Tr,3,3,"mat-cell",13),e.BQk(),e.ynx(110,15),e.YNc(111,br,2,0,"mat-header-cell",12),e.YNc(112,Ar,3,3,"mat-cell",13),e.BQk(),e.ynx(113,16),e.YNc(114,vr,2,0,"mat-header-cell",27),e.YNc(115,wr,3,0,"mat-cell",28),e.BQk(),e.ynx(116,35),e.YNc(117,kr,4,3,"td",20),e.BQk(),e.YNc(118,Ur,1,3,"tr",21),e.YNc(119,Nr,1,0,"mat-header-row",22),e.YNc(120,Or,1,0,"mat-row",23),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(2),e.hij("Total Limbo Balance: ",e.lcZ(3,30,a.pendingChannels.total_limbo_balance)," Sats"),e.xp6(3),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(4),e.hij("Pending Open (",a.pendingOpenChannelsLength,")"),e.xp6(2),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.pendingOpenChannels)("ngClass",e.VKq(32,_e,""!==a.errorMessage)),e.xp6(19),e.Q6J("matFooterRowDef",e.DdM(34,Rr)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedOpenColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedOpenColumns),e.xp6(1),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(4),e.hij("Pending Force Closing (",a.pendingForceClosingChannelsLength,")"),e.xp6(2),e.Q6J("dataSource",a.pendingForceClosingChannels)("ngClass",e.VKq(35,_e,""!==a.errorMessage)),e.xp6(19),e.Q6J("matFooterRowDef",e.DdM(37,Ir)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedForceClosingColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedForceClosingColumns),e.xp6(1),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(4),e.hij("Pending Closing (",a.pendingClosingChannelsLength,")"),e.xp6(2),e.Q6J("dataSource",a.pendingClosingChannels)("ngClass",e.VKq(38,_e,""!==a.errorMessage)),e.xp6(19),e.Q6J("matFooterRowDef",e.DdM(40,Mr)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedClosingColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedClosingColumns),e.xp6(1),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(4),e.hij("Waiting Close (",a.pendingWaitClosingChannelsLength,")"),e.xp6(2),e.Q6J("dataSource",a.pendingWaitClosingChannels)("ngClass",e.VKq(41,_e,""!==a.errorMessage)),e.xp6(22),e.Q6J("matFooterRowDef",e.DdM(43,Dr)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedWaitClosingColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedWaitClosingColumns))},directives:[_.xw,H.pp,p.O5,H.ib,H.yz,H.yK,_.Wh,_.yH,Q.$V,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,R.gD,R.$L,Y.ey,r.yh,r.Q2,r.XQ,r.Gk,L.lW],pipes:[p.JJ],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}tr.mat-footer-row[_ngcontent-%COMP%] td.mat-footer-cell[_ngcontent-%COMP%]{border-bottom:none}"]}),n})();function Jr(n,i){1&n&&e._UZ(0,"mat-progress-bar",27)}function Er(n,i){1&n&&(e.TgZ(0,"th",28),e._uU(1," Close Type "),e.qZA())}function Qr(n,i){if(1&n&&(e.TgZ(0,"td",29),e.TgZ(1,"div",30),e.TgZ(2,"mat-icon",31),e._uU(3,"info_outline"),e.qZA(),e._uU(4),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.xp6(2),e.Q6J("matTooltip",a.channelClosureType[t.close_type].tooltip),e.xp6(2),e.hij(" ",a.channelClosureType[t.close_type].name," ")}}function Yr(n,i){1&n&&(e.TgZ(0,"th",28),e._uU(1," Peer "),e.qZA())}const Hr=function(n){return{"max-width":n}};function Br(n,i){if(1&n&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,Hr,a.screenSize===a.screenSizeEnum.XS?"10rem":"20rem")),e.xp6(1),e.hij(" ",t.remote_alias," ")}}function Vr(n,i){1&n&&(e.TgZ(0,"th",33),e._uU(1," Capacity "),e.qZA())}function Gr(n,i){if(1&n&&(e.TgZ(0,"td",29),e.TgZ(1,"span",34),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,t.capacity)," ")}}function zr(n,i){1&n&&(e.TgZ(0,"th",33),e._uU(1," Close Height "),e.qZA())}function Wr(n,i){if(1&n&&(e.TgZ(0,"td",29),e.TgZ(1,"span",34),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,t.close_height)," ")}}function Xr(n,i){1&n&&(e.TgZ(0,"th",33),e._uU(1," Settled Balance "),e.qZA())}function $r(n,i){if(1&n&&(e.TgZ(0,"td",29),e.TgZ(1,"span",34),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,t.settled_balance)," ")}}function jr(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",35),e.TgZ(1,"div",36),e.TgZ(2,"mat-select",37),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",38),e.NdJ("click",function(){return e.CHM(t),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Kr(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",39),e.TgZ(1,"span",34),e.TgZ(2,"button",40),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw().onClosedChannelClick(u,o)}),e._uU(3,"View Info"),e.qZA(),e.qZA(),e.qZA()}}function ec(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No closed channel available."),e.qZA())}function tc(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting closed channels..."),e.qZA())}function nc(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function ac(n,i){if(1&n&&(e.TgZ(0,"td",41),e.YNc(1,ec,2,0,"p",42),e.YNc(2,tc,2,0,"p",42),e.YNc(3,nc,2,1,"p",42),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!(null!=t.closedChannels&&t.closedChannels.data)||(null==t.closedChannels||null==t.closedChannels.data?null:t.closedChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.closedChannels&&t.closedChannels.data)||(null==t.closedChannels||null==t.closedChannels.data?null:t.closedChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.closedChannels&&t.closedChannels.data)||(null==t.closedChannels||null==t.closedChannels.data?null:t.closedChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const ic=function(n){return{"display-none":n}};function oc(n,i){if(1&n&&e._UZ(0,"tr",43),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,ic,(null==t.closedChannels?null:t.closedChannels.data)&&(null==t.closedChannels||null==t.closedChannels.data?null:t.closedChannels.data.length)>0))}}function sc(n,i){1&n&&e._UZ(0,"tr",44)}function lc(n,i){1&n&&e._UZ(0,"tr",45)}const rc=function(n){return{"error-border":n,"overflow-auto":!0}},cc=function(){return["no_closed_channel"]};let uc=(()=>{class n{constructor(t,a,o){this.logger=t,this.store=a,this.commonService=o,this.channelClosureType=l.HW,this.faHistory=Z.qO$,this.displayedColumns=[],this.closedChannelsData=[],this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unsub=[new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["remote_alias","actions"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["close_type","remote_alias","settled_balance","actions"]):(this.flgSticky=!0,this.displayedColumns=["close_type","remote_alias","capacity","close_height","settled_balance","actions"])}ngOnInit(){this.store.select(C.P2).pipe((0,d.R)(this.unsub[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.closedChannelsData=t.closedChannels,this.closedChannelsData.length>0&&this.loadClosedChannelsTable(this.closedChannelsData),this.logger.info(t)})}ngAfterViewInit(){this.closedChannelsData.length>0&&this.loadClosedChannelsTable(this.closedChannelsData)}applyFilter(){this.closedChannels.filter=this.selFilter.trim().toLowerCase()}onClosedChannelClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Closed Channel Information",message:[[{key:"close_type",value:this.channelClosureType[t.close_type].name,title:"Close Type",width:30,type:l.Gi.STRING},{key:"settled_balance",value:t.settled_balance,title:"Settled Balance",width:30,type:l.Gi.NUMBER},{key:"time_locked_balance",value:t.time_locked_balance,title:"Time Locked Balance",width:40,type:l.Gi.NUMBER}],[{key:"chan_id",value:t.chan_id,title:"Channel ID",width:30},{key:"capacity",value:t.capacity,title:"Capacity",width:30,type:l.Gi.NUMBER},{key:"close_height",value:t.close_height,title:"Close Height",width:40,type:l.Gi.NUMBER}],[{key:"remote_alias",value:t.remote_alias,title:"Peer Alias",width:30},{key:"remote_pubkey",value:t.remote_pubkey,title:"Peer Public Key",width:70}],[{key:"channel_point",value:t.channel_point,title:"Channel Point",width:100}],[{key:"closing_tx_hash",value:t.closing_tx_hash,title:"Closing Transaction Hash",width:100,type:l.Gi.STRING}]]}}}))}loadClosedChannelsTable(t){this.closedChannels=new r.by([...t]),this.closedChannels.sort=this.sort,this.closedChannels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.closedChannels.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.closedChannels.paginator=this.paginator,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.unsub.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-closed-table"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Channels")}])],decls:33,vars:14,consts:[["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","close_type"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","remote_alias"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","capacity"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","close_height"],["matColumnDef","settled_balance"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1",4,"matCellDef"],["matColumnDef","no_closed_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayout","row","fxLayoutAlign","start center"],[1,"info-icon","info-icon-text",3,"matTooltip"],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"div",2),e.TgZ(3,"mat-form-field",3),e.TgZ(4,"input",4),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",5),e.YNc(6,Jr,1,0,"mat-progress-bar",6),e.TgZ(7,"table",7,8),e.ynx(9,9),e.YNc(10,Er,2,0,"th",10),e.YNc(11,Qr,5,2,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,Yr,2,0,"th",10),e.YNc(14,Br,2,4,"td",13),e.BQk(),e.ynx(15,14),e.YNc(16,Vr,2,0,"th",15),e.YNc(17,Gr,4,3,"td",11),e.BQk(),e.ynx(18,16),e.YNc(19,zr,2,0,"th",15),e.YNc(20,Wr,4,3,"td",11),e.BQk(),e.ynx(21,17),e.YNc(22,Xr,2,0,"th",15),e.YNc(23,$r,4,3,"td",11),e.BQk(),e.ynx(24,18),e.YNc(25,jr,6,0,"th",19),e.YNc(26,Kr,4,0,"td",20),e.BQk(),e.ynx(27,21),e.YNc(28,ac,4,3,"td",22),e.BQk(),e.YNc(29,oc,1,3,"tr",23),e.YNc(30,sc,1,0,"tr",24),e.YNc(31,lc,1,0,"tr",25),e.qZA(),e.qZA(),e._UZ(32,"mat-paginator",26),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngModel",a.selFilter),e.xp6(2),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.closedChannels)("ngClass",e.VKq(11,rc,""!==a.errorMessage)),e.xp6(22),e.Q6J("matFooterRowDef",e.DdM(13,cc)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,_.Wh,_.yH,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,p.O5,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,K.Hw,X.gM,p.PC,q.Zl,R.gD,R.$L,Y.ey,L.lW,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-close_type[_ngcontent-%COMP%]{flex:0 0 16%;min-width:5rem}.mat-column-remote_alias[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function pc(n,i){1&n&&e._UZ(0,"mat-progress-bar",27)}function mc(n,i){1&n&&(e.TgZ(0,"th",28),e._uU(1,"Amount (Sats)"),e.qZA())}function _c(n,i){if(1&n&&(e.TgZ(0,"span",33),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,null==t?null:t.amount)," ")}}function dc(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,_c,3,3,"span",32),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.pending_htlcs)}}function hc(n,i){if(1&n&&(e.TgZ(0,"td",29),e.TgZ(1,"span",30),e._uU(2),e.qZA(),e.YNc(3,dc,2,1,"span",31),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" Active HTLCs: ",null==t||null==t.pending_htlcs?null:t.pending_htlcs.length," "),e.xp6(1),e.Q6J("ngIf",t.is_expanded)}}function gc(n,i){1&n&&(e.TgZ(0,"th",28),e._uU(1,"Alias/Incoming"),e.qZA())}function fc(n,i){if(1&n&&(e.TgZ(0,"span",30),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",null!=t&&t.incoming?"Yes":"No"," ")}}function Cc(n,i){if(1&n&&(e.ynx(0),e.YNc(1,fc,2,1,"span",34),e.BQk()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.pending_htlcs)}}function xc(n,i){if(1&n&&(e.TgZ(0,"td",29),e.TgZ(1,"span",30),e._uU(2),e.qZA(),e.YNc(3,Cc,2,1,"ng-container",31),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(null==t?null:t.remote_alias),e.xp6(1),e.Q6J("ngIf",t.is_expanded)}}function Zc(n,i){1&n&&(e.TgZ(0,"th",35),e.TgZ(1,"span",36),e._uU(2,"Expiration Height"),e.qZA(),e.qZA())}function yc(n,i){if(1&n&&(e.TgZ(0,"span",36),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,null==t?null:t.expiration_height,"1.0-0")," ")}}function Tc(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,yc,3,4,"span",37),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.pending_htlcs)}}function bc(n,i){if(1&n&&(e.TgZ(0,"td",29),e.TgZ(1,"span",36),e._uU(2),e.qZA(),e.YNc(3,Tc,2,1,"span",31),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(" "),e.xp6(1),e.Q6J("ngIf",t.is_expanded)}}function Ac(n,i){1&n&&(e.TgZ(0,"th",38),e.TgZ(1,"span",36),e._uU(2,"Hash Lock"),e.qZA(),e.qZA())}function vc(n,i){if(1&n&&(e.TgZ(0,"span",36),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",null==t?null:t.hash_lock," ")}}function wc(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,vc,2,1,"span",37),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.pending_htlcs)}}function qc(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",36),e._uU(2),e.qZA(),e.YNc(3,wc,2,1,"span",31),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(" "),e.xp6(1),e.Q6J("ngIf",t.is_expanded)}}function Sc(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",40),e.TgZ(1,"div",41),e.TgZ(2,"mat-select",42),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",43),e.NdJ("click",function(){return e.CHM(t),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Lc(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",45),e.TgZ(1,"button",48),e.NdJ("click",function(){const s=e.CHM(t).$implicit,u=e.oxw(2).$implicit;return e.oxw().onHTLCClick(s,u)}),e._uU(2),e.qZA(),e.qZA()}if(2&n){const t=i.index;e.xp6(2),e.hij("View ",t+1,"")}}function kc(n,i){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,Lc,3,1,"div",47),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.pending_htlcs)}}function Fc(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",44),e.TgZ(1,"span",45),e.TgZ(2,"button",46),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return s.is_expanded=!s.is_expanded}),e._uU(3),e.qZA(),e.qZA(),e.YNc(4,kc,2,1,"div",31),e.qZA()}if(2&n){const t=i.$implicit;e.xp6(3),e.Oqu(t.is_expanded?"Hide":"Show"),e.xp6(1),e.Q6J("ngIf",t.is_expanded)}}function Uc(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No active htlc available."),e.qZA())}function Nc(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting active htlcs..."),e.qZA())}function Oc(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function Rc(n,i){if(1&n&&(e.TgZ(0,"td",49),e.YNc(1,Uc,2,0,"p",31),e.YNc(2,Nc,2,0,"p",31),e.YNc(3,Oc,2,1,"p",31),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Ic=function(n){return{"display-none":n}};function Mc(n,i){if(1&n&&e._UZ(0,"tr",50),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Ic,(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function Dc(n,i){1&n&&e._UZ(0,"tr",51)}function Pc(n,i){1&n&&e._UZ(0,"tr",52)}const Jc=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Ec=function(){return["no_channel"]};let Qc=(()=>{class n{constructor(t,a,o){this.logger=t,this.commonService=a,this.store=o,this.channelsJSONArr=[],this.displayedColumns=[],this.htlcColumns=[],this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["amount","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["amount","incoming","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["amount","incoming","expiration_height","actions"]):(this.flgSticky=!0,this.displayedColumns=["amount","incoming","expiration_height","hash_lock","actions"])}ngOnInit(){this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.channelsJSONArr=t.channels.filter(a=>a.pending_htlcs&&a.pending_htlcs.length>0)||[],this.loadHTLCsTable(this.channelsJSONArr),this.logger.info(t)})}ngAfterViewInit(){this.loadHTLCsTable(this.channelsJSONArr)}onHTLCClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"HTLC Information",message:[[{key:"remote_alias",value:a.remote_alias,title:"Alias",width:100,type:l.Gi.STRING}],[{key:"amount",value:t.amount,title:"Amount (Sats)",width:50,type:l.Gi.NUMBER},{key:"incoming",value:t.incoming?"Yes":"No",title:"Incoming",width:50,type:l.Gi.STRING}],[{key:"expiration_height",value:t.expiration_height,title:"Expiration Height",width:50,type:l.Gi.NUMBER},{key:"hash_lock",value:t.hash_lock,title:"Hash Lock",width:50,type:l.Gi.STRING}]]}}}))}onChannelClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{channel:t,showCopy:!0,component:xe}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}loadHTLCsTable(t){this.channels=new r.by(t?[...t]:[]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(a,o)=>{switch(o){case"amount":return this.commonService.sortByKey(a.pending_htlcs,o,"number",this.sort.direction),a.pending_htlcs&&a.pending_htlcs.length?a.pending_htlcs.length:null;case"incoming":return this.commonService.sortByKey(a.pending_htlcs,o,"boolean",this.sort.direction),a.remote_alias?a.remote_alias:a.remote_pubkey?a.remote_pubkey:null;case"expiration_height":case"hash_lock":return this.commonService.sortByKey(a.pending_htlcs,o,"number",this.sort.direction),a;default:return a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null}},this.channels.paginator=this.paginator,this.channels.filterPredicate=(a,o)=>((a.remote_alias?a.remote_alias.toLowerCase():"")+a.pending_htlcs.map(u=>JSON.stringify(u)+(u.incoming?"yes":"no"))).includes(o),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((o,s)=>o.concat(s.pending_htlcs?s.pending_htlcs:s),[])}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-active-htlcs-table"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("HTLCs")}])],decls:30,vars:14,consts:[["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","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","incoming"],["matColumnDef","expiration_height"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["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",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayoutAlign","start center",1,"htlc-row-span"],[4,"ngIf"],["fxLayoutAlign","start center","class","htlc-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"htlc-row-span","pl-3"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["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"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","",1,"px-2"],["fxLayoutAlign","end center"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["fxLayoutAlign","end center",4,"ngFor","ngForOf"],["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(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"div",2),e.TgZ(3,"mat-form-field",3),e.TgZ(4,"input",4),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",5),e.YNc(6,pc,1,0,"mat-progress-bar",6),e.TgZ(7,"table",7,8),e.ynx(9,9),e.YNc(10,mc,2,0,"th",10),e.YNc(11,hc,4,2,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,gc,2,0,"th",10),e.YNc(14,xc,4,2,"td",11),e.BQk(),e.ynx(15,13),e.YNc(16,Zc,3,0,"th",14),e.YNc(17,bc,4,2,"td",11),e.BQk(),e.ynx(18,15),e.YNc(19,Ac,3,0,"th",16),e.YNc(20,qc,4,2,"td",17),e.BQk(),e.ynx(21,18),e.YNc(22,Sc,6,0,"th",19),e.YNc(23,Fc,5,2,"td",20),e.BQk(),e.ynx(24,21),e.YNc(25,Rc,4,3,"td",22),e.BQk(),e.YNc(26,Mc,1,3,"tr",23),e.YNc(27,Dc,1,0,"tr",24),e.YNc(28,Pc,1,0,"tr",25),e.qZA(),e.qZA(),e._UZ(29,"mat-paginator",26),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngModel",a.selFilter),e.xp6(2),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.channels)("ngClass",e.VKq(11,Jc,""!==a.errorMessage)),e.xp6(19),e.Q6J("matFooterRowDef",e.DdM(13,Ec)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,_.Wh,_.yH,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,p.O5,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,p.sg,R.gD,R.$L,Y.ey,L.lW,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-amount[_ngcontent-%COMP%], .mat-column-expiration_height[_ngcontent-%COMP%]{flex:0 0 30%;width:30%}.mat-column-incoming[_ngcontent-%COMP%], .mat-column-hash_lock[_ngcontent-%COMP%]{flex:0 0 25%;width:25%;text-overflow:ellipsis}.htlc-row-span[_ngcontent-%COMP%]{min-height:4.2rem;place-content:center flex-start;align-items:center}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}"]}),n})();function Yc(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Wallet password is required."),e.qZA())}let Hc=(()=>{class n{constructor(t){this.store=t,this.walletPassword=""}ngOnInit(){this.walletPassword=""}onUnlockWallet(){if(!this.walletPassword)return!0;this.store.dispatch((0,b.xG)({payload:{pwd:window.btoa(this.walletPassword)}}))}resetData(){this.walletPassword=""}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-unlock-wallet"]],decls:12,vars:2,consts:[["fxLayout","column",1,"padding-gap","mb-2"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between"],["fxFlex","100","fxLayoutAlign","start"],["autoFocus","","matInput","","type","password","placeholder","Password","name","walletPassword","tabindex","1","required","",3,"ngModel","ngModelChange"],[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(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"form",1),e.TgZ(2,"mat-form-field",2),e.TgZ(3,"input",3),e.NdJ("ngModelChange",function(s){return a.walletPassword=s}),e.qZA(),e.TgZ(4,"mat-hint"),e._uU(5,"Enter Wallet Password"),e.qZA(),e.YNc(6,Yc,2,0,"mat-error",4),e.qZA(),e.TgZ(7,"div",5),e.TgZ(8,"button",6),e.NdJ("click",function(){return a.resetData()}),e._uU(9,"Clear Field"),e.qZA(),e.TgZ(10,"button",7),e.NdJ("click",function(){return a.onUnlockWallet()}),e._uU(11,"Unlock Wallet"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Q6J("ngModel",a.walletPassword),e.xp6(3),e.Q6J("ngIf",!a.walletPassword))},directives:[_.xw,c._Y,c.JL,c.F,_.Wh,f.KE,_.yH,I.Nt,c.Fj,W.h,c.Q7,c.JJ,c.On,f.bx,p.O5,L.lW,f.TO],styles:[""]}),n})();var Bc=h(1555);function Vc(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form",4),e.TgZ(2,"div",5),e._uU(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.qZA(),e.TgZ(4,"div",6),e.TgZ(5,"button",7),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return o.proceed=!1,o.warnRes=!0}),e._uU(6,"Do Not Proceed"),e.qZA(),e.TgZ(7,"button",8),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return o.proceed=!0,o.warnRes=!0}),e._uU(8,"Proceed"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Gc(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",9),e.TgZ(1,"div",10),e._uU(2,"Please re-configure & re-start RTL after securing your LND connction. You can close this window now."),e.qZA(),e.TgZ(3,"div",6),e.TgZ(4,"button",11),e.NdJ("click",function(){return e.CHM(t),e.oxw().warnRes=!1}),e._uU(5,"Go Back"),e.qZA(),e.qZA(),e.qZA()}}function zc(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}function Wc(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Password must be at least 8 characters in length."),e.qZA())}function Xc(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Confirm password is required."),e.qZA())}function $c(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Confirm password must be at least 8 characters in length."),e.qZA())}function jc(n,i){1&n&&(e.TgZ(0,"div",41),e.TgZ(1,"mat-icon",42),e._uU(2,"cancel"),e.qZA(),e._uU(3,"Passwords do not match. "),e.qZA())}function Kc(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Cipher seed is required."),e.qZA())}function e1(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Invalid Cipher. Enter comma separated 24 words cipher seed."),e.qZA())}function t1(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Passphrase is required."),e.qZA())}function n1(n,i){1&n&&(e.TgZ(0,"mat-icon"),e._uU(1,"vpn_key"),e.qZA())}function a1(n,i){1&n&&(e.TgZ(0,"mat-icon"),e._uU(1,"swap_calls"),e.qZA())}function i1(n,i){1&n&&(e.TgZ(0,"mat-icon"),e._uU(1,"fingerprint"),e.qZA())}function o1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-vertical-stepper",12,13),e.TgZ(2,"mat-step",14),e.TgZ(3,"form",15),e.TgZ(4,"mat-form-field",16),e._UZ(5,"input",17),e.TgZ(6,"mat-hint"),e._uU(7,"Enter Wallet Password"),e.qZA(),e.YNc(8,zc,2,0,"mat-error",1),e.YNc(9,Wc,2,0,"mat-error",1),e.qZA(),e.TgZ(10,"mat-form-field",16),e._UZ(11,"input",18),e.TgZ(12,"mat-hint"),e._uU(13,"Confirm Wallet Password"),e.qZA(),e.YNc(14,Xc,2,0,"mat-error",1),e.YNc(15,$c,2,0,"mat-error",1),e.qZA(),e.YNc(16,jc,4,0,"div",19),e.TgZ(17,"div",20),e.TgZ(18,"button",21),e._uU(19,"Next"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"mat-step",22),e.TgZ(21,"form",23),e.TgZ(22,"div",24),e.TgZ(23,"mat-slide-toggle",25),e._uU(24,"Existing Cipher"),e.qZA(),e.TgZ(25,"mat-form-field",26),e._UZ(26,"input",27),e.TgZ(27,"mat-hint"),e._uU(28,"Cipher Seed"),e.qZA(),e.YNc(29,Kc,2,0,"mat-error",1),e.YNc(30,e1,2,0,"mat-error",1),e.qZA(),e.qZA(),e.TgZ(31,"div",28),e.TgZ(32,"button",29),e._uU(33,"Back"),e.qZA(),e.TgZ(34,"button",30),e._uU(35,"Next"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"mat-step",31),e.TgZ(37,"form",23),e.TgZ(38,"div",24),e.TgZ(39,"mat-slide-toggle",32),e._uU(40,"Existing Passphrase"),e.qZA(),e.TgZ(41,"mat-form-field",33),e._UZ(42,"input",34),e.TgZ(43,"mat-hint"),e._uU(44,"Enter Passphrase"),e.qZA(),e.YNc(45,t1,2,0,"mat-error",1),e.qZA(),e.qZA(),e.TgZ(46,"div",28),e.TgZ(47,"button",35),e.NdJ("click",function(){return e.CHM(t),e.oxw().resetData()}),e._uU(48,"Clear"),e.qZA(),e.TgZ(49,"button",36),e._uU(50,"Back"),e.qZA(),e.TgZ(51,"button",37),e.NdJ("click",function(){return e.CHM(t),e.oxw().onInitWallet()}),e._uU(52,"Initialize Wallet"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(53,n1,2,0,"ng-template",38),e.YNc(54,a1,2,0,"ng-template",39),e.YNc(55,i1,2,0,"ng-template",40),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",t.passwordFormGroup),e.xp6(1),e.Q6J("formGroup",t.passwordFormGroup),e.xp6(5),e.Q6J("ngIf",null==t.passwordFormGroup.controls.initWalletPassword.errors?null:t.passwordFormGroup.controls.initWalletPassword.errors.required),e.xp6(1),e.Q6J("ngIf",null==t.passwordFormGroup.controls.initWalletPassword.errors?null:t.passwordFormGroup.controls.initWalletPassword.errors.minlength),e.xp6(5),e.Q6J("ngIf",null==t.passwordFormGroup.controls.initWalletConfirmPassword.errors?null:t.passwordFormGroup.controls.initWalletConfirmPassword.errors.required),e.xp6(1),e.Q6J("ngIf",null==t.passwordFormGroup.controls.initWalletConfirmPassword.errors?null:t.passwordFormGroup.controls.initWalletConfirmPassword.errors.minlength),e.xp6(1),e.Q6J("ngIf",(null==t.passwordFormGroup.errors?null:t.passwordFormGroup.errors.unmatchedPasswords)&&(t.passwordFormGroup.controls.initWalletPassword.touched||t.passwordFormGroup.controls.initWalletPassword.dirty)&&(t.passwordFormGroup.controls.initWalletConfirmPassword.touched||t.passwordFormGroup.controls.initWalletConfirmPassword.dirty)),e.xp6(4),e.Q6J("stepControl",t.cipherFormGroup),e.xp6(1),e.Q6J("formGroup",t.cipherFormGroup),e.xp6(2),e.Q6J("labelPosition","before"),e.xp6(6),e.Q6J("ngIf",null==t.cipherFormGroup.controls.cipherSeed.errors?null:t.cipherFormGroup.controls.cipherSeed.errors.required),e.xp6(1),e.Q6J("ngIf",!(null!=t.cipherFormGroup.controls.cipherSeed.errors&&t.cipherFormGroup.controls.cipherSeed.errors.required)&&(null==t.cipherFormGroup.controls.cipherSeed.errors?null:t.cipherFormGroup.controls.cipherSeed.errors.invalidCipher)),e.xp6(6),e.Q6J("stepControl",t.passphraseFormGroup),e.xp6(1),e.Q6J("formGroup",t.passphraseFormGroup),e.xp6(2),e.Q6J("labelPosition","before"),e.xp6(6),e.Q6J("ngIf",null==t.passphraseFormGroup.controls.passphrase.errors?null:t.passphraseFormGroup.controls.passphrase.errors.required)}}function s1(n,i){if(1&n&&(e.TgZ(0,"span",48),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function l1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form",4),e.TgZ(2,"div",43),e._uU(3,"YOU MUST WRITE DOWN THIS SEED TO BE ABLE TO RESTORE THE WALLET!"),e.qZA(),e.TgZ(4,"div",44),e.YNc(5,s1,2,1,"span",45),e.qZA(),e.TgZ(6,"div",46),e._uU(7,"Wallet initialization is done."),e.qZA(),e.TgZ(8,"div",46),e._uU(9,"The node will be usable only after LND has synced completely with the network."),e.qZA(),e.TgZ(10,"div",46),e._uU(11,"Click continue only after writing down the seed."),e.qZA(),e.TgZ(12,"div",6),e.TgZ(13,"button",47),e.NdJ("click",function(){return e.CHM(t),e.oxw().onGoToHome()}),e._uU(14,"Go To Home"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(5),e.Q6J("ngForOf",t.genSeedResponse)}}function r1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form",4),e.TgZ(2,"div",46),e._uU(3,"Something went wrong! Unable to initialize wallet!"),e.qZA(),e.TgZ(4,"div",6),e.TgZ(5,"button",49),e.NdJ("click",function(){return e.CHM(t),e.oxw().resetData()}),e._uU(6,"Restart"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function c1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form",4),e.TgZ(2,"div",46),e._uU(3,"Wallet recovery is done."),e.qZA(),e.TgZ(4,"div",46),e._uU(5,"The node will be usable only after LND has synced completely with the network."),e.qZA(),e.TgZ(6,"div",6),e.TgZ(7,"button",50),e.NdJ("click",function(){return e.CHM(t),e.oxw().onGoToHome()}),e._uU(8,"Go To Home"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function u1(n){const i=n.get("initWalletPassword"),t=n.get("initWalletConfirmPassword");return i&&t&&i.value!==t.value?{unmatchedPasswords:!0}:null}function p1(n){const i=n.value.toString().trim().split(",")||[];return i&&24!==i.length?{invalidCipher:!0}:null}let m1=(()=>{class n{constructor(t,a,o){this.store=t,this.formBuilder=a,this.lndEffects=o,this.insecureLND=!1,this.genSeedResponse=[],this.initWalletResponse="",this.proceed=!0,this.warnRes=!1,this.unsubs=[new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.passwordFormGroup=this.formBuilder.group({initWalletPassword:["",[c.kI.required,c.kI.minLength(8)]],initWalletConfirmPassword:["",[c.kI.required,c.kI.minLength(8)]]},{validators:u1}),this.cipherFormGroup=this.formBuilder.group({existingCipher:[!1],cipherSeed:[{value:"",disabled:!0},[p1]]}),this.passphraseFormGroup=this.formBuilder.group({enterPassphrase:[!1],passphrase:[{value:"",disabled:!0}]}),this.cipherFormGroup.controls.existingCipher.valueChanges.pipe((0,d.R)(this.unsubs[0])).subscribe(t=>{t?(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,d.R)(this.unsubs[1])).subscribe(t=>{t?(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,d.R)(this.unsubs[2])).subscribe(t=>{this.initWalletResponse=t}),this.lndEffects.genSeedResponse.pipe((0,d.R)(this.unsubs[3])).subscribe(t=>{this.genSeedResponse=t,this.store.dispatch((0,b.y2)(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 t=this.cipherFormGroup.controls.cipherSeed.value.toString().trim().split(",");this.store.dispatch((0,b.y2)(this.passphraseFormGroup.controls.enterPassphrase.value?{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:t,passphrase:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}}:{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:t}}))}else this.store.dispatch((0,b.fu)(this.passphraseFormGroup.controls.enterPassphrase.value?{payload:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}:{payload:""}))}onGoToHome(){setTimeout(()=>{this.store.dispatch((0,v.tw)()),this.store.dispatch((0,b.sQ)({payload:{loadPage:"HOME"}}))},1e3)}resetData(){this.genSeedResponse=[],this.initWalletResponse=""}ngOnDestroy(){this.unsubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh),e.Y36(c.qu),e.Y36(ee.l))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-initialize-wallet"]],viewQuery:function(t,a){if(1&t&&e.Gf(B.Vq,5),2&t){let o;e.iGM(o=e.CRH())&&(a.stepper=o.first)}},features:[e._Bn([{provide:Bc.gx,useValue:{displayDefaultIndicatorType:!1}}])],decls:7,vars:6,consts:[["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"],["stepper",""],["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"],["fxFlex","49","fxLayoutAlign","start"],["matInput","","type","password","placeholder","Password","name","initWalletPassword","formControlName","initWalletPassword","tabindex","5","required",""],["matInput","","type","password","placeholder","Confirm 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"],["fxFlex","20","tabindex","8","color","primary","formControlName","existingCipher","name","existingCipher",1,"chkbox-wallet",3,"labelPosition"],["fxFlex","75","fxLayoutAlign","start",1,"my-1"],["autofocus","","matInput","","type","input","placeholder","Comma separated array of 24 words cipher seed","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"],["fxFlex","20","tabindex","10","color","primary","formControlName","enterPassphrase","name","enterPassphrase",1,"chkbox-wallet",3,"labelPosition"],["fxFlex","75","fxLayoutAlign","start"],["matInput","","type","password","placeholder","Passphrase","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(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,Vc,9,0,"div",1),e.YNc(2,Gc,6,0,"div",2),e.YNc(3,o1,56,17,"mat-vertical-stepper",3),e.YNc(4,l1,15,1,"div",1),e.YNc(5,r1,7,0,"div",1),e.YNc(6,c1,9,0,"div",1),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",a.insecureLND&&!a.warnRes),e.xp6(1),e.Q6J("ngIf",a.warnRes&&!a.proceed),e.xp6(1),e.Q6J("ngIf",(!a.insecureLND||a.warnRes&&a.proceed)&&a.genSeedResponse.length<=0&&""===a.initWalletResponse),e.xp6(1),e.Q6J("ngIf",a.genSeedResponse.length>0&&""!==a.initWalletResponse),e.xp6(1),e.Q6J("ngIf",a.genSeedResponse.length>0&&""===a.initWalletResponse),e.xp6(1),e.Q6J("ngIf",a.genSeedResponse.length<=0&&""!==a.initWalletResponse))},directives:[_.xw,p.O5,c._Y,c.JL,c.F,_.Wh,_.yH,L.lW,B.Vq,B.C0,c.sg,f.KE,I.Nt,c.Fj,c.JJ,c.u,c.Q7,f.bx,B.Ic,ue.Rr,B.fd,B.z9,f.TO,K.Hw,p.sg],styles:[""]}),n})(),_1=(()=>{class n{constructor(){this.faWallet=Z.X5K}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-wallet"]],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"],["label","Unlock"],["label","Initialize"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Wallet"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e.TgZ(7,"mat-tab-group"),e.TgZ(8,"mat-tab",5),e._UZ(9,"rtl-unlock-wallet"),e.qZA(),e.TgZ(10,"mat-tab",6),e._UZ(11,"rtl-initialize-wallet"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faWallet))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,D.SP,D.uX,Hc,m1],styles:[""]}),n})();var d1=h(1365);function h1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",11),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().activeLink=s.link}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw();e.s9C("routerLink",t.link),e.Q6J("active",a.activeLink===t.link),e.xp6(1),e.Oqu(t.name)}}let g1=(()=>{class n{constructor(t,a,o){this.logger=t,this.store=a,this.router=o,this.faExchangeAlt=Z.Ssp,this.faChartPie=Z.OS1,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 m.x,new m.x,new m.x,new m.x]}ngOnInit(){const t=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(a=>a instanceof y.Av)).subscribe({next:a=>{const o=this.links.find(s=>a.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[1]),(0,d1.M)(this.store.select(C.$k))).subscribe(([a,o])=>{this.currencyUnits=o.currencyUnits,this.balances=o.userPersona===l.ol.OPERATOR?[{title:"Local Capacity",dataValue:a.lightningBalance.local,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:a.lightningBalance.remote,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:a.lightningBalance.local,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:a.lightningBalance.remote,tooltip:"Amount you can receive"}],this.logger.info(a)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-transactions"]],decls:19,vars:4,consts:[["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",""],["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"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Lightning Balance"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e._UZ(7,"rtl-currency-unit-converter",5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",6),e._UZ(9,"fa-icon",1),e.TgZ(10,"span",2),e._uU(11,"Lightning Transactions"),e.qZA(),e.qZA(),e.TgZ(12,"div",7),e.TgZ(13,"mat-card"),e.TgZ(14,"mat-card-content",4),e.TgZ(15,"nav",8),e.YNc(16,h1,2,3,"div",9),e.qZA(),e.TgZ(17,"div",10),e._UZ(18,"router-outlet"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faChartPie),e.xp6(6),e.Q6J("values",a.balances),e.xp6(2),e.Q6J("icon",a.faExchangeAlt),e.xp6(7),e.Q6J("ngForOf",a.links))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,ge.D,D.BU,p.sg,_.yH,y.lC,D.Nj,y.rH],styles:[""]}),n})();function f1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",8),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().activeLink=s.link}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw();e.s9C("routerLink",t.link),e.Q6J("active",a.activeLink===t.link),e.xp6(1),e.Oqu(t.name)}}let C1=(()=>{class n{constructor(t){this.router=t,this.faSearch=Z.wn1,this.links=[{link:"lookups",name:"Lookup"},{link:"queryroutes",name:"Query Routes"}],this.activeLink=this.links[0].link,this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){const t=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(a=>a instanceof y.Av)).subscribe({next:a=>{const o=this.links.find(s=>a.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-graph"]],decls:11,vars:2,consts:[["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",""],["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"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Graph Lookups"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e.TgZ(7,"nav",5),e.YNc(8,f1,2,3,"div",6),e.qZA(),e.TgZ(9,"div",7),e._UZ(10,"router-outlet"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faSearch),e.xp6(7),e.Q6J("ngForOf",a.links))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,D.BU,p.sg,_.yH,y.lC,D.Nj,y.rH],styles:[""]}),n})();function x1(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Destination pubkey is required."),e.qZA())}function Z1(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount is required."),e.qZA())}function y1(n,i){1&n&&e._UZ(0,"mat-progress-bar",37)}function T1(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1," Hop "),e.qZA())}function b1(n,i){if(1&n&&(e.TgZ(0,"td",39),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",null==t?null:t.hop_sequence," ")}}function A1(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1," Peer "),e.qZA())}const v1=function(n){return{"max-width":n}};function w1(n,i){if(1&n&&(e.TgZ(0,"td",40),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,v1,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.hij(" ",null==t?null:t.pubkey_alias," ")}}function q1(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1," Channel "),e.qZA())}function S1(n,i){if(1&n&&(e.TgZ(0,"td",39),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",null==t?null:t.chan_id," ")}}function L1(n,i){1&n&&(e.TgZ(0,"th",41),e._uU(1," Capacity (Sats) "),e.qZA())}function k1(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.chan_capacity),"")}}function F1(n,i){1&n&&(e.TgZ(0,"th",41),e._uU(1," Amount To Fwd (Sats) "),e.qZA())}function U1(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.amt_to_forward)," ")}}function N1(n,i){1&n&&(e.TgZ(0,"th",41),e._uU(1," Fee (mSats) "),e.qZA())}function O1(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.fee_msat)," ")}}function R1(n,i){1&n&&(e.TgZ(0,"th",43),e.TgZ(1,"span",42),e._uU(2,"Actions"),e.qZA(),e.qZA())}function I1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",44),e.TgZ(1,"button",45),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw().onHopClick(u,o)}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function M1(n,i){1&n&&e._UZ(0,"tr",46)}function D1(n,i){1&n&&e._UZ(0,"tr",47)}const P1=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}};let J1=(()=>{class n{constructor(t,a,o){this.store=t,this.lndEffects=a,this.commonService=o,this.destinationPubkey="",this.amount=null,this.flgSticky=!1,this.displayedColumns=[],this.flgLoading=[!1],this.faRoute=Z.FpQ,this.faExclamationTriangle=Z.eHv,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["pubkey_alias","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["hop_sequence","pubkey_alias","fee_msat","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["hop_sequence","pubkey_alias","chan_capacity","amt_to_forward_msat","fee_msat","actions"]):(this.flgSticky=!0,this.displayedColumns=["hop_sequence","pubkey_alias","chan_capacity","amt_to_forward_msat","fee_msat","actions"])}ngOnInit(){this.lndEffects.setQueryRoutes.pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.qrHops=new r.by([]),t.routes&&t.routes.length&&t.routes.length>0&&t.routes[0].hops?(this.flgLoading[0]=!1,this.qrHops=new r.by([...t.routes[0].hops]),this.qrHops.data=t.routes[0].hops):this.flgLoading[0]="error",this.qrHops.sort=this.sort,this.qrHops.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null})}onQueryRoutes(){if(!this.destinationPubkey||!this.amount)return!0;this.qrHops=new r.by([]),this.flgLoading[0]=!0,this.store.dispatch((0,b.WO)({payload:{destPubkey:this.destinationPubkey,amount:this.amount}}))}resetData(){this.destinationPubkey="",this.amount=null,this.flgLoading[0]=!1}onHopClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Route Information",message:[[{key:"hop_sequence",value:t.hop_sequence,title:"Sequence",width:33,type:l.Gi.NUMBER},{key:"amt_to_forward",value:t.amt_to_forward,title:"Amount To Forward (Sats)",width:33,type:l.Gi.NUMBER},{key:"fee_msat",value:t.fee_msat,title:"Fee (mSats)",width:34,type:l.Gi.NUMBER}],[{key:"chan_capacity",value:t.chan_capacity,title:"Channel Capacity (Sats)",width:50,type:l.Gi.NUMBER},{key:"expiry",value:t.expiry,title:"Expiry",width:50,type:l.Gi.NUMBER}],[{key:"pubkey_alias",value:t.pubkey_alias,title:"Peer Alias",width:50,type:l.Gi.STRING},{key:"chan_id",value:t.chan_id,title:"Channel ID",width:50,type:l.Gi.STRING}],[{key:"pub_key",value:t.pub_key,title:"Peer Pubkey",width:100,type:l.Gi.STRING}]]}}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh),e.Y36(ee.l),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-query-routes"]],viewQuery:function(t,a){if(1&t&&e.Gf(A.YE,5),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first)}},decls:51,vars:16,consts:[["fxLayout","column","fxFlex","100",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",3,"ngSubmit"],["queryRoutesForm","ngForm"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","69","fxLayoutAlign","start end"],["matInput","","placeholder","Destination Pubkey","name","destinationPubkey","tabindex","1","required","",3,"ngModel","ngModelChange"],["destPubkey","ngModel"],[4,"ngIf"],["fxFlex","29","fxLayoutAlign","start end"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","type","number","required","",3,"ngModel","step","min","ngModelChange"],["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,"dataSource","ngClass"],["table",""],["matColumnDef","hop_sequence"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","pubkey_alias"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","chan_id"],["matColumnDef","chan_capacity"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_to_forward_msat"],["matColumnDef","fee_msat"],["matColumnDef","actions"],["mat-header-cell","","class","pl-4 pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pl-4","pr-3"],["mat-cell","",1,"pl-4"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(t,a){if(1&t){const o=e.EpF();e.TgZ(0,"div",0),e.TgZ(1,"form",1,2),e.NdJ("ngSubmit",function(){return e.CHM(o),e.MAs(2).form.valid&&a.onQueryRoutes()}),e.TgZ(3,"div",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span"),e._uU(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),e.qZA(),e.qZA(),e.TgZ(7,"mat-form-field",5),e.TgZ(8,"input",6,7),e.NdJ("ngModelChange",function(u){return a.destinationPubkey=u}),e.qZA(),e.YNc(10,x1,2,0,"mat-error",8),e.qZA(),e.TgZ(11,"mat-form-field",9),e.TgZ(12,"input",10),e.NdJ("ngModelChange",function(u){return a.amount=u}),e.qZA(),e.YNc(13,Z1,2,0,"mat-error",8),e.qZA(),e.TgZ(14,"div",11),e.TgZ(15,"button",12),e.NdJ("click",function(){return a.resetData()}),e._uU(16,"Clear"),e.qZA(),e.TgZ(17,"button",13),e._uU(18,"Query Route"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",14),e.TgZ(20,"div",15),e._UZ(21,"fa-icon",16),e.TgZ(22,"span",17),e._uU(23,"Transaction Route"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(24,"div",18),e.YNc(25,y1,1,0,"mat-progress-bar",19),e.TgZ(26,"table",20,21),e.ynx(28,22),e.YNc(29,T1,2,0,"th",23),e.YNc(30,b1,2,1,"td",24),e.BQk(),e.ynx(31,25),e.YNc(32,A1,2,0,"th",23),e.YNc(33,w1,2,4,"td",26),e.BQk(),e.ynx(34,27),e.YNc(35,q1,2,0,"th",23),e.YNc(36,S1,2,1,"td",24),e.BQk(),e.ynx(37,28),e.YNc(38,L1,2,0,"th",29),e.YNc(39,k1,4,3,"td",24),e.BQk(),e.ynx(40,30),e.YNc(41,F1,2,0,"th",29),e.YNc(42,U1,4,3,"td",24),e.BQk(),e.ynx(43,31),e.YNc(44,N1,2,0,"th",29),e.YNc(45,O1,4,3,"td",24),e.BQk(),e.ynx(46,32),e.YNc(47,R1,3,0,"th",33),e.YNc(48,I1,3,0,"td",34),e.BQk(),e.YNc(49,M1,1,0,"tr",35),e.YNc(50,D1,1,0,"tr",36),e.qZA(),e.qZA(),e.qZA()}2&t&&(e.xp6(4),e.Q6J("icon",a.faExclamationTriangle),e.xp6(4),e.Q6J("ngModel",a.destinationPubkey),e.xp6(2),e.Q6J("ngIf",!a.destinationPubkey),e.xp6(2),e.Q6J("ngModel",a.amount)("step",1e3)("min",0),e.xp6(1),e.Q6J("ngIf",!a.amount),e.xp6(8),e.Q6J("icon",a.faRoute),e.xp6(4),e.Q6J("ngIf",!0===a.flgLoading[0]),e.xp6(1),e.Q6J("dataSource",a.qrHops)("ngClass",e.VKq(14,P1,"error"===a.flgLoading[0])),e.xp6(23),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns))},directives:[_.xw,_.yH,c._Y,c.JL,c.F,_.Wh,M.BN,f.KE,I.Nt,c.Fj,c.Q7,c.JJ,c.On,p.O5,c.wV,c.qQ,$.q,L.lW,Q.$V,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.as,r.nj,f.TO,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{flex:0 0 5%;width:5%}.mat-column-pubkey_alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();var ie=h(9814);function E1(n,i){if(1&n&&(e.TgZ(0,"span",9),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.xp6(1),e.AsE("",a.nodeFeaturesEnum[t.value.name]||t.value.name,": ",t.value.is_required?"Mandatory":"Optional","")}}function Q1(n,i){1&n&&(e.TgZ(0,"th",27),e._uU(1,"Network"),e.qZA())}function Y1(n,i){if(1&n&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",null==t?null:t.network," ")}}function H1(n,i){1&n&&(e.TgZ(0,"th",27),e._uU(1,"Address"),e.qZA())}function B1(n,i){if(1&n&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",null==t?null:t.addr," ")}}function V1(n,i){1&n&&(e.TgZ(0,"th",29),e.TgZ(1,"span",30),e._uU(2,"Actions"),e.qZA(),e.qZA())}function G1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",31),e.TgZ(1,"span",30),e.TgZ(2,"button",32),e.NdJ("copied",function(o){return e.CHM(t),e.oxw(2).onCopyNodeURI(o)}),e._uU(3,"Copy Node URI"),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw(2);e.xp6(2),e.Q6J("payload",a.lookupResult.node.pub_key+"@"+t.addr)}}function z1(n,i){1&n&&e._UZ(0,"tr",33)}function W1(n,i){1&n&&e._UZ(0,"tr",34)}const X1=function(n){return{"background-color":n}};function $1(n,i){if(1&n&&(e.TgZ(0,"div",1),e._UZ(1,"mat-divider",2),e.TgZ(2,"div",3),e.TgZ(3,"div",4),e.TgZ(4,"h4",5),e._uU(5,"Alias"),e.qZA(),e.TgZ(6,"span",6),e._uU(7),e.TgZ(8,"span",7),e._uU(9),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",8),e.TgZ(11,"h4",5),e._uU(12,"Pub Key"),e.qZA(),e.TgZ(13,"span",9),e._uU(14),e.qZA(),e.qZA(),e.qZA(),e._UZ(15,"mat-divider",10),e.TgZ(16,"div",3),e.TgZ(17,"div",4),e.TgZ(18,"h4",5),e._uU(19,"Last Update"),e.qZA(),e.TgZ(20,"span",6),e._uU(21),e.ALo(22,"date"),e.qZA(),e.qZA(),e.TgZ(23,"div",8),e.TgZ(24,"h4",5),e._uU(25,"Total Capacity (Sats)"),e.qZA(),e.TgZ(26,"span",6),e._uU(27),e.ALo(28,"number"),e.qZA(),e.qZA(),e.qZA(),e._UZ(29,"mat-divider",10),e.TgZ(30,"div",3),e.TgZ(31,"div",4),e.TgZ(32,"h4",5),e._uU(33,"Number of Channels"),e.qZA(),e.TgZ(34,"span",6),e._uU(35),e.ALo(36,"number"),e.qZA(),e.qZA(),e.TgZ(37,"div",11),e.TgZ(38,"h4",5),e._uU(39,"Features"),e.qZA(),e.YNc(40,E1,2,2,"span",12),e.ALo(41,"keyvalue"),e.qZA(),e.qZA(),e._UZ(42,"mat-divider",10),e.TgZ(43,"div",13),e.TgZ(44,"h4",14),e._uU(45,"Addresses"),e.qZA(),e.TgZ(46,"div",15),e.TgZ(47,"table",16,17),e.ynx(49,18),e.YNc(50,Q1,2,0,"th",19),e.YNc(51,Y1,2,1,"td",20),e.BQk(),e.ynx(52,21),e.YNc(53,H1,2,0,"th",19),e.YNc(54,B1,2,1,"td",20),e.BQk(),e.ynx(55,22),e.YNc(56,V1,3,0,"th",23),e.YNc(57,G1,4,1,"td",24),e.BQk(),e.YNc(58,z1,1,0,"tr",25),e.YNc(59,W1,1,0,"tr",26),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(t.lookupResult.node.alias),e.xp6(1),e.Q6J("ngStyle",e.VKq(24,X1,null==t.lookupResult.node?null:t.lookupResult.node.color)),e.xp6(1),e.Oqu(null==t.lookupResult.node?null:t.lookupResult.node.color),e.xp6(5),e.Oqu(t.lookupResult.node.pub_key),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(e.xi3(22,15,1e3*t.lookupResult.node.last_update,"dd/MMM/y HH:mm")),e.xp6(6),e.Oqu(e.lcZ(28,18,t.lookupResult.total_capacity)),e.xp6(2),e.Q6J("inset",!0),e.xp6(6),e.Oqu(e.lcZ(36,20,t.lookupResult.num_channels)),e.xp6(5),e.Q6J("ngForOf",e.lcZ(41,22,t.lookupResult.node.features)),e.xp6(2),e.Q6J("inset",!0),e.xp6(5),e.Q6J("dataSource",t.lookupResult.node.addresses),e.xp6(11),e.Q6J("matHeaderRowDef",t.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns)}}let j1=(()=>{class n{constructor(t,a){this.logger=t,this.snackBar=a,this.nodeFeaturesEnum=l.hZ,this.displayedColumns=["network","addr","actions"]}onCopyNodeURI(t){this.snackBar.open("Node URI copied."),this.logger.info("Copied Text: "+t)}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(te.ux))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-node-lookup"]],inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["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","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",3,"dataSource"],["table",""],["matColumnDef","network"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","addr"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"pl-1"],["fxLayoutAlign","end center"],["mat-cell","",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","1","rtlClipboard","",3,"payload","copied"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&e.YNc(0,$1,60,26,"div",0),2&t&&e.Q6J("ngIf",a.lookupResult)},directives:[p.O5,_.xw,z.d,_.yH,_.Wh,p.PC,q.Zl,p.sg,Q.$V,r.BZ,A.YE,r.w1,r.fO,r.Dz,r.as,r.nj,r.ge,A.nU,r.ev,L.lW,se.y,r.XQ,r.Gk],pipes:[p.uU,p.JJ,p.Nd],styles:[""]}),n})();function K1(n,i){1&n&&(e.TgZ(0,"h3",15),e._uU(1,"Node 1"),e.qZA())}function eu(n,i){1&n&&(e.TgZ(0,"h3",15),e._uU(1,"Node 1 (Your Node)"),e.qZA())}function tu(n,i){1&n&&(e.TgZ(0,"h3",15),e._uU(1,"Node 2"),e.qZA())}function nu(n,i){1&n&&(e.TgZ(0,"h3",15),e._uU(1,"Node 2 (Your Node)"),e.qZA())}function au(n,i){if(1&n&&(e.TgZ(0,"div",1),e._UZ(1,"mat-divider",2),e.TgZ(2,"div",3),e.TgZ(3,"div",4),e.TgZ(4,"h4",5),e._uU(5,"Channel Id"),e.qZA(),e.TgZ(6,"span",6),e._uU(7),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.TgZ(9,"h4",5),e._uU(10,"Channel Point"),e.qZA(),e.TgZ(11,"span",6),e._uU(12),e.qZA(),e.qZA(),e.qZA(),e._UZ(13,"mat-divider",8),e.TgZ(14,"div",3),e.TgZ(15,"div",4),e.TgZ(16,"h4",5),e._uU(17,"Last Update"),e.qZA(),e.TgZ(18,"span",6),e._uU(19),e.ALo(20,"date"),e.qZA(),e.qZA(),e.TgZ(21,"div",7),e.TgZ(22,"h4",5),e._uU(23,"Capacity (Sats)"),e.qZA(),e.TgZ(24,"span",6),e._uU(25),e.ALo(26,"number"),e.qZA(),e.qZA(),e.qZA(),e._UZ(27,"mat-divider",8),e.TgZ(28,"div",9),e.TgZ(29,"div",10),e.TgZ(30,"div",11),e.YNc(31,K1,2,0,"h3",12),e.YNc(32,eu,2,0,"h3",12),e.qZA(),e._UZ(33,"mat-divider",8),e.TgZ(34,"div",13),e.TgZ(35,"h4",5),e._uU(36,"Pubkey"),e.qZA(),e.TgZ(37,"span",6),e._uU(38),e.qZA(),e.qZA(),e._UZ(39,"mat-divider",8),e.TgZ(40,"div",14),e.TgZ(41,"h4",5),e._uU(42,"Time Lock Delta"),e.qZA(),e.TgZ(43,"span",6),e._uU(44),e.qZA(),e.qZA(),e._UZ(45,"mat-divider",8),e.TgZ(46,"div",14),e.TgZ(47,"h4",5),e._uU(48,"Min HTLC"),e.qZA(),e.TgZ(49,"span",6),e._uU(50),e.qZA(),e.qZA(),e._UZ(51,"mat-divider",8),e.TgZ(52,"div",14),e.TgZ(53,"h4",5),e._uU(54,"Fee Base Msat"),e.qZA(),e.TgZ(55,"span",6),e._uU(56),e.qZA(),e.qZA(),e._UZ(57,"mat-divider",8),e.TgZ(58,"div",14),e.TgZ(59,"h4",5),e._uU(60,"Fee Rate Milli Msat"),e.qZA(),e.TgZ(61,"span",6),e._uU(62),e.qZA(),e.qZA(),e._UZ(63,"mat-divider",8),e.TgZ(64,"div",14),e.TgZ(65,"h4",5),e._uU(66,"Disabled"),e.qZA(),e.TgZ(67,"span",6),e._uU(68),e.qZA(),e.qZA(),e.qZA(),e.TgZ(69,"div",10),e.TgZ(70,"div"),e.YNc(71,tu,2,0,"h3",12),e.YNc(72,nu,2,0,"h3",12),e.qZA(),e._UZ(73,"mat-divider",8),e.TgZ(74,"div",13),e.TgZ(75,"h4",5),e._uU(76,"Pubkey"),e.qZA(),e.TgZ(77,"span",6),e._uU(78),e.qZA(),e.qZA(),e._UZ(79,"mat-divider",8),e.TgZ(80,"div",14),e.TgZ(81,"h4",5),e._uU(82,"Time Lock Delta"),e.qZA(),e.TgZ(83,"span",6),e._uU(84),e.qZA(),e.qZA(),e._UZ(85,"mat-divider",8),e.TgZ(86,"div",14),e.TgZ(87,"h4",5),e._uU(88,"Min HTLC"),e.qZA(),e.TgZ(89,"span",6),e._uU(90),e.qZA(),e.qZA(),e._UZ(91,"mat-divider",8),e.TgZ(92,"div",14),e.TgZ(93,"h4",5),e._uU(94,"Fee Base Msat"),e.qZA(),e.TgZ(95,"span",6),e._uU(96),e.qZA(),e.qZA(),e._UZ(97,"mat-divider",8),e.TgZ(98,"div",14),e.TgZ(99,"h4",5),e._uU(100,"Fee Rate Milli Msat"),e.qZA(),e.TgZ(101,"span",6),e._uU(102),e.qZA(),e.qZA(),e._UZ(103,"mat-divider",8),e.TgZ(104,"div",14),e.TgZ(105,"h4",5),e._uU(106,"Disabled"),e.qZA(),e.TgZ(107,"span",6),e._uU(108),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(t.lookupResult.channel_id),e.xp6(5),e.Oqu(t.lookupResult.chan_point),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(e.xi3(20,35,1e3*t.lookupResult.last_update,"dd/MMM/y HH:mm")),e.xp6(6),e.Oqu(e.lcZ(26,38,t.lookupResult.capacity)),e.xp6(2),e.Q6J("inset",!0),e.xp6(4),e.Q6J("ngIf",!t.node1_match),e.xp6(1),e.Q6J("ngIf",t.node1_match),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(t.lookupResult.node1_pub),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node1_policy?null:t.lookupResult.node1_policy.time_lock_delta),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node1_policy?null:t.lookupResult.node1_policy.min_htlc),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node1_policy?null:t.lookupResult.node1_policy.fee_base_msat),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node1_policy?null:t.lookupResult.node1_policy.fee_rate_milli_msat),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null!=t.lookupResult.node1_policy&&t.lookupResult.node1_policy.disabled?"Yes":"No"),e.xp6(3),e.Q6J("ngIf",!t.node2_match),e.xp6(1),e.Q6J("ngIf",t.node2_match),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(t.lookupResult.node2_pub),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node2_policy?null:t.lookupResult.node2_policy.time_lock_delta),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node2_policy?null:t.lookupResult.node2_policy.min_htlc),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node2_policy?null:t.lookupResult.node2_policy.fee_base_msat),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node2_policy?null:t.lookupResult.node2_policy.fee_rate_milli_msat),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null!=t.lookupResult.node2_policy&&t.lookupResult.node2_policy.disabled?"Yes":"No")}}let iu=(()=>{class n{constructor(t){this.store=t,this.node1_match=!1,this.node2_match=!1,this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.lookupResult.node1_pub===t.identity_pubkey&&(this.node1_match=!0),this.lookupResult.node2_pub===t.identity_pubkey&&(this.node2_match=!0)})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-lookup"]],inputs:{lookupResult:"lookupResult"},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 start",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(t,a){1&t&&e.YNc(0,au,109,40,"div",0),2&t&&e.Q6J("ngIf",a.lookupResult)},directives:[p.O5,_.xw,z.d,_.yH,_.Wh],pipes:[p.uU,p.JJ],styles:[".mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%], .mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{height:38px!important}"]}),n})();function ou(n,i){if(1&n&&(e.TgZ(0,"mat-radio-button",17),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("value",t.id)("checked",a.selectedFieldId===t.id),e.xp6(1),e.hij(" ",t.name," ")}}function su(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("",null==t.lookupFields[t.selectedFieldId]?null:t.lookupFields[t.selectedFieldId].placeholder," is required.")}}function lu(n,i){1&n&&e._UZ(0,"mat-progress-bar",20)}const ru=function(n){return{"w-100 mt-2 p-2 error-border":n,"w-100 my-2 p-2":!0}};function cu(n,i){if(1&n&&(e.TgZ(0,"div",18),e.YNc(1,lu,1,0,"mat-progress-bar",19),e._uU(2),e.qZA()),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(3,ru,""!==t.errorMessage&&"Getting lookup details..."!==t.errorMessage)),e.xp6(1),e.Q6J("ngIf","Getting lookup details..."===t.errorMessage),e.xp6(1),e.hij(" ",t.errorMessage," ")}}function uu(n,i){if(1&n&&(e.TgZ(0,"span",27),e._UZ(1,"rtl-node-lookup",28),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("lookupResult",t.lookupValue)}}function pu(n,i){if(1&n&&(e.TgZ(0,"span",27),e._UZ(1,"rtl-channel-lookup",28),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("lookupResult",t.lookupValue)}}function mu(n,i){1&n&&(e.TgZ(0,"span",27),e.TgZ(1,"h3"),e._uU(2,"Error! Unable to find details!"),e.qZA(),e.qZA())}function _u(n,i){if(1&n&&(e.TgZ(0,"div",21),e.TgZ(1,"div",22),e.TgZ(2,"span",23),e._uU(3),e.qZA(),e.qZA(),e.TgZ(4,"div",24),e.YNc(5,uu,2,1,"span",25),e.YNc(6,pu,2,1,"span",25),e.YNc(7,mu,3,0,"span",26),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(3),e.hij("",t.lookupFields[t.selectedFieldId].name," Details"),e.xp6(1),e.Q6J("ngSwitch",t.selectedFieldId),e.xp6(1),e.Q6J("ngSwitchCase",0),e.xp6(1),e.Q6J("ngSwitchCase",1)}}const du=function(n){return{"mt-1":!0,"mt-2":n}};let He=(()=>{class n{constructor(t,a,o,s){this.logger=t,this.commonService=a,this.store=o,this.actions=s,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=Z.wn1,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(t=>t.type===l.uR.SET_LOOKUP_LND||t.type===l.uR.UPDATE_API_CALL_STATUS_LND)).subscribe(t=>{t.type===l.uR.SET_LOOKUP_LND&&(this.errorMessage=0===this.selectedFieldId&&t.payload.hasOwnProperty("node")||1===this.selectedFieldId&&t.payload.hasOwnProperty("channel_id")?"":this.errorMessage,this.lookupValue=JSON.parse(JSON.stringify(t.payload)),this.flgSetLookupValue=!(0!==this.selectedFieldId||!t.payload.hasOwnProperty("node"))||!(1!==this.selectedFieldId||!t.payload.hasOwnProperty("channel_id")),this.logger.info(this.lookupValue)),t.type===l.uR.UPDATE_API_CALL_STATUS_LND&&"Lookup"===t.payload.action&&(this.errorMessage="",t.payload.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof t.payload.message?JSON.stringify(t.payload.message):t.payload.message),t.payload.status===l.Bn.INITIATED&&(this.errorMessage=l.m6.GET_LOOKUP_DETAILS))})}onLookup(){if(!this.lookupKey)return!0;switch(this.flgSetLookupValue=!1,this.lookupValue={},this.selectedFieldId){case 0:this.store.dispatch((0,b.Sf)({payload:this.lookupKey.trim()}));break;case 1:this.store.dispatch((0,b.$A)({payload:{uiMessage:l.m6.SEARCHING_CHANNEL,channelID:this.lookupKey.trim()}}))}}onSelectChange(t){this.resetData(),this.selectedFieldId=t.value}resetData(){this.flgSetLookupValue=!1,this.selectedFieldId=0,this.lookupKey="",this.lookupValue={},this.errorMessage=""}clearLookupValue(){this.lookupValue={},this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh),e.Y36(G.eX))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-lookups"]],decls:19,vars:10,consts:[["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"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModel","ngModelChange","change"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"placeholder","ngModel","change","ngModelChange"],["key",""],[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"],["fxFlex","100",4,"ngSwitchDefault"],["fxFlex","100"],[3,"lookupResult"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-content",2),e.TgZ(3,"form",3,4),e.TgZ(5,"div",5),e.TgZ(6,"mat-radio-group",6),e.NdJ("ngModelChange",function(s){return a.selectedFieldId=s})("change",function(s){return a.onSelectChange(s)}),e.YNc(7,ou,2,3,"mat-radio-button",7),e.qZA(),e.qZA(),e.TgZ(8,"mat-form-field",8),e.TgZ(9,"input",9,10),e.NdJ("change",function(){return a.clearLookupValue()})("ngModelChange",function(s){return a.lookupKey=s}),e.qZA(),e.YNc(11,su,2,1,"mat-error",11),e.qZA(),e.TgZ(12,"div",12),e.TgZ(13,"button",13),e.NdJ("click",function(){return a.resetData()}),e._uU(14,"Clear"),e.qZA(),e.TgZ(15,"button",14),e.NdJ("click",function(){return a.onLookup()}),e._uU(16,"Lookup"),e.qZA(),e.qZA(),e.qZA(),e.YNc(17,cu,3,5,"div",15),e.YNc(18,_u,8,4,"div",16),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngModel",a.selectedFieldId),e.xp6(1),e.Q6J("ngForOf",a.lookupFields),e.xp6(1),e.Q6J("ngClass",e.VKq(8,du,a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM)),e.xp6(1),e.Q6J("placeholder",(null==a.lookupFields[a.selectedFieldId]?null:a.lookupFields[a.selectedFieldId].placeholder)||"Lookup Key")("ngModel",a.lookupKey),e.xp6(2),e.Q6J("ngIf",!a.lookupKey),e.xp6(6),e.Q6J("ngIf",""!==a.errorMessage),e.xp6(1),e.Q6J("ngIf",""===a.errorMessage&&a.lookupValue&&a.flgSetLookupValue))},directives:[_.xw,_.yH,_.Wh,T.dn,c._Y,c.JL,c.F,ie.VQ,c.JJ,c.On,p.sg,f.KE,p.mk,q.oO,I.Nt,c.Fj,c.Q7,p.O5,L.lW,ie.U0,f.TO,P.pW,p.RF,p.n9,p.ED,j1,iu],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}.pl-3[_ngcontent-%COMP%]{padding-left:3rem}"]}),n})();var be=h(6856);function hu(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Invalid date format."),e.qZA())}function gu(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Invalid date format."),e.qZA())}function fu(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",27),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().activeLink=s.link}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw();e.s9C("routerLink",t.link),e.Q6J("active",a.activeLink===t.link),e.xp6(1),e.Oqu(t.name)}}let Cu=(()=>{class n{constructor(t,a,o){this.logger=t,this.store=a,this.router=o,this.faMapSigns=Z.SuH,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 m.x,new m.x,new m.x]}ngOnInit(){this.onEventsFetch();const t=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(a=>a instanceof y.Av)).subscribe({next:a=>{const o=this.links.find(s=>a.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}onEventsFetch(){this.store.dispatch((0,b.QJ)({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,b.u0)({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,b.QJ)({payload:{forwarding_events:[]}})),this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-routing"]],decls:35,vars:15,consts:[["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"],["routingForm","ngForm"],["fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","49","fxLayoutAlign","start"],["matInput","","placeholder","Start Date","name","startDate","tabindex","1",3,"matDatepicker","max","ngModel","ngModelChange"],["strtDate","ngModel"],["matSuffix","",3,"for"],[3,"startAt"],["startDatepicker",""],[4,"ngIf"],["matInput","","placeholder","End Date","name","endDate","tabindex","2",3,"matDatepicker","min","max","ngModel","ngModelChange"],["enDate","ngModel"],["endDatepicker",""],["fxLayout","row",1,"mt-2"],["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","","fxFlex","100"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,a){if(1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span",3),e._uU(4,"Routing"),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"mat-card",5),e.TgZ(7,"mat-card-content",6),e.TgZ(8,"form",7,8),e.NdJ("ngSubmit",function(){return a.onEventsFetch()}),e.TgZ(10,"div",9),e.TgZ(11,"mat-form-field",10),e.TgZ(12,"input",11,12),e.NdJ("ngModelChange",function(s){return a.startDate=s}),e.qZA(),e._UZ(14,"mat-datepicker-toggle",13),e._UZ(15,"mat-datepicker",14,15),e.YNc(17,hu,2,0,"mat-error",16),e.qZA(),e.TgZ(18,"mat-form-field",10),e.TgZ(19,"input",17,18),e.NdJ("ngModelChange",function(s){return a.endDate=s}),e.qZA(),e._UZ(21,"mat-datepicker-toggle",13),e._UZ(22,"mat-datepicker",14,19),e.YNc(24,gu,2,0,"mat-error",16),e.qZA(),e.qZA(),e.TgZ(25,"div",20),e.TgZ(26,"button",21),e.NdJ("click",function(){return a.resetData()}),e._uU(27,"Clear"),e.qZA(),e.TgZ(28,"button",22),e._uU(29,"Fetch Events"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"div",23),e.TgZ(31,"nav",24),e.YNc(32,fu,2,3,"div",25),e.qZA(),e.qZA(),e.TgZ(33,"div",26),e._UZ(34,"router-outlet"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t){const o=e.MAs(13),s=e.MAs(16),u=e.MAs(20),g=e.MAs(23);e.xp6(2),e.Q6J("icon",a.faMapSigns),e.xp6(10),e.Q6J("matDatepicker",s)("max",a.today)("ngModel",a.startDate),e.xp6(2),e.Q6J("for",s),e.xp6(1),e.Q6J("startAt",a.startDate),e.xp6(2),e.Q6J("ngIf",o.errors),e.xp6(2),e.Q6J("matDatepicker",g)("min",a.startDate)("max",a.today)("ngModel",a.endDate),e.xp6(2),e.Q6J("for",g),e.xp6(1),e.Q6J("startAt",a.endDate),e.xp6(2),e.Q6J("ngIf",u.errors),e.xp6(8),e.Q6J("ngForOf",a.links)}},directives:[_.xw,_.Wh,M.BN,_.yH,T.a8,T.dn,c._Y,c.JL,c.F,f.KE,I.Nt,be.hl,Ee.F,c.Fj,c.JJ,c.On,be.nW,f.R9,be.Mq,p.O5,$.q,L.lW,D.BU,p.sg,y.lC,f.TO,D.Nj,y.rH],styles:[""]}),n})();function xu(n,i){if(1&n&&(e.TgZ(0,"div",5),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.errorMessage)}}function Zu(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",6),e._UZ(1,"div",7),e.TgZ(2,"mat-form-field",8),e.TgZ(3,"input",9),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().filterValue=o})("input",function(){return e.CHM(t),e.oxw().applyFilter()})("keyup",function(){return e.CHM(t),e.oxw().applyFilter()}),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(3),e.Q6J("ngModel",t.filterValue)}}function yu(n,i){1&n&&e._UZ(0,"mat-progress-bar",31)}function Tu(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1,"Timestamp"),e.qZA())}function bu(n,i){if(1&n&&(e.TgZ(0,"td",33),e._uU(1),e.ALo(2,"date"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,1e3*t.timestamp,"dd/MMM/y HH:mm"))}}function Au(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1,"Inbound Channel"),e.qZA())}function vu(n,i){if(1&n&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t.alias_in)}}function wu(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1,"Outbound Channel"),e.qZA())}function qu(n,i){if(1&n&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t.alias_out)}}function Su(n,i){1&n&&(e.TgZ(0,"th",34),e._uU(1,"Inbound Amount (Sats)"),e.qZA())}function Lu(n,i){if(1&n&&(e.TgZ(0,"td",33),e.TgZ(1,"span",35),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.amt_in))}}function ku(n,i){1&n&&(e.TgZ(0,"th",34),e._uU(1,"Outbound Amount (Sats)"),e.qZA())}function Fu(n,i){if(1&n&&(e.TgZ(0,"td",33),e.TgZ(1,"span",35),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.amt_out))}}function Uu(n,i){1&n&&(e.TgZ(0,"th",34),e._uU(1,"Fee (mSats)"),e.qZA())}function Nu(n,i){if(1&n&&(e.TgZ(0,"td",33),e.TgZ(1,"span",35),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.fee_msat))}}function Ou(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",36),e.TgZ(1,"div",37),e.TgZ(2,"mat-select",38),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",39),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Ru(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",40),e.TgZ(1,"button",41),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw(2).onForwardingEventClick(u,o)}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function Iu(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No forwarding history available."),e.qZA())}function Mu(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting forwarding history..."),e.qZA())}function Du(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(t.errorMessage)}}function Pu(n,i){if(1&n&&(e.TgZ(0,"td",42),e.YNc(1,Iu,2,0,"p",43),e.YNc(2,Mu,2,0,"p",43),e.YNc(3,Du,2,1,"p",43),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",(!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Ju=function(n){return{"display-none":n}};function Eu(n,i){if(1&n&&e._UZ(0,"tr",44),2&n){const t=e.oxw(2);e.Q6J("ngClass",e.VKq(1,Ju,(null==t.forwardingHistoryEvents?null:t.forwardingHistoryEvents.data)&&(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)>0))}}function Qu(n,i){1&n&&e._UZ(0,"tr",45)}function Yu(n,i){1&n&&e._UZ(0,"tr",46)}const Hu=function(){return["no_event"]};function Bu(n,i){if(1&n&&(e.TgZ(0,"div",10),e.YNc(1,yu,1,0,"mat-progress-bar",11),e.TgZ(2,"table",12,13),e.ynx(4,14),e.YNc(5,Tu,2,0,"th",15),e.YNc(6,bu,3,4,"td",16),e.BQk(),e.ynx(7,17),e.YNc(8,Au,2,0,"th",15),e.YNc(9,vu,2,1,"td",16),e.BQk(),e.ynx(10,18),e.YNc(11,wu,2,0,"th",15),e.YNc(12,qu,2,1,"td",16),e.BQk(),e.ynx(13,19),e.YNc(14,Su,2,0,"th",20),e.YNc(15,Lu,4,3,"td",16),e.BQk(),e.ynx(16,21),e.YNc(17,ku,2,0,"th",20),e.YNc(18,Fu,4,3,"td",16),e.BQk(),e.ynx(19,22),e.YNc(20,Uu,2,0,"th",20),e.YNc(21,Nu,4,3,"td",16),e.BQk(),e.ynx(22,23),e.YNc(23,Ou,6,0,"th",24),e.YNc(24,Ru,3,0,"td",25),e.BQk(),e.ynx(25,26),e.YNc(26,Pu,4,3,"td",27),e.BQk(),e.YNc(27,Eu,1,3,"tr",28),e.YNc(28,Qu,1,0,"tr",29),e.YNc(29,Yu,1,0,"tr",30),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",t.forwardingHistoryEvents),e.xp6(25),e.Q6J("matFooterRowDef",e.DdM(6,Hu)),e.xp6(1),e.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns)}}function Vu(n,i){if(1&n&&e._UZ(0,"mat-paginator",47),2&n){const t=e.oxw();e.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let Be=(()=>{class n{constructor(t,a,o,s){this.logger=t,this.commonService=a,this.store=o,this.datePipe=s,this.eventsData=[],this.filterValue="",this.forwardingHistoryData=[],this.displayedColumns=[],this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["timestamp","fee_msat","actions"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["timestamp","amt_in","amt_out","fee_msat","actions"]):(this.flgSticky=!0,this.displayedColumns=["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat","actions"])}ngOnInit(){this.store.select(C.Bo).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{var a;this.eventsData.length<=0&&(this.errorMessage="",this.apiCallStatus=t.apiCallStatus,(null===(a=t.apiCallStatus)||void 0===a?void 0:a.status)===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.forwardingHistoryData=t.forwardingHistory.forwarding_events||[],this.loadForwardingEventsTable(this.forwardingHistoryData),this.logger.info(t.apiCallStatus),this.logger.info(t.forwardingHistory))})}ngAfterViewInit(){this.forwardingHistoryData.length>0&&this.loadForwardingEventsTable(this.forwardingHistoryData)}ngOnChanges(t){t.eventsData&&(this.apiCallStatus={status:l.Bn.COMPLETED,action:"FetchForwardingHistory"},this.eventsData=t.eventsData.currentValue,this.forwardingHistoryData=this.eventsData,t.eventsData.firstChange||this.loadForwardingEventsTable(this.forwardingHistoryData)),t.filterValue&&!t.filterValue.firstChange&&this.applyFilter()}onForwardingEventClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Event Information",message:[[{key:"timestamp",value:t.timestamp,title:"Timestamp",width:25,type:l.Gi.DATE_TIME},{key:"amt_in",value:t.amt_in,title:"Inbound Amount (Sats)",width:25,type:l.Gi.NUMBER},{key:"amt_out",value:t.amt_out,title:"Outbound Amount (Sats)",width:25,type:l.Gi.NUMBER},{key:"fee_msat",value:t.fee_msat,title:"Fee (mSats)",width:25,type:l.Gi.NUMBER}],[{key:"alias_in",value:t.alias_in,title:"Inbound Peer Alias",width:25,type:l.Gi.STRING},{key:"chan_id_in",value:t.chan_id_in,title:"Inbound Channel ID",width:25,type:l.Gi.STRING},{key:"alias_out",value:t.alias_out,title:"Outbound Peer Alias",width:25,type:l.Gi.STRING},{key:"chan_id_out",value:t.chan_id_out,title:"Outbound Channel ID",width:25,type:l.Gi.STRING}]]}}}))}loadForwardingEventsTable(t){this.forwardingHistoryEvents=new r.by(t?[...t]:[]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.forwardingHistoryEvents.filterPredicate=(a,o)=>((a.timestamp?this.datePipe.transform(new Date(1e3*a.timestamp),"dd/MMM/YYYY HH:mm").toLowerCase():"")+JSON.stringify(a).toLowerCase()).includes(o),this.forwardingHistoryEvents.paginator=this.paginator,this.logger.info(this.forwardingHistoryEvents)}onDownloadCSV(){this.forwardingHistoryEvents&&this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")}applyFilter(){this.forwardingHistoryEvents&&(this.forwardingHistoryEvents.filter=this.filterValue.trim().toLowerCase())}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh),e.Y36(p.uU))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-forwarding-history"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},inputs:{eventsData:"eventsData",filterValue:"filterValue"},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Events")}]),e.TTD],decls:5,vars:4,consts:[["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","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","keyup"],["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,"dataSource"],["table",""],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias_in"],["matColumnDef","alias_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","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","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","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",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(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,xu,2,1,"div",1),e.YNc(2,Zu,4,1,"div",2),e.YNc(3,Bu,30,7,"div",3),e.YNc(4,Vu,1,3,"mat-paginator",4),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",""!==a.errorMessage),e.xp6(1),e.Q6J("ngIf",""===a.errorMessage),e.xp6(1),e.Q6J("ngIf",""===a.errorMessage),e.xp6(1),e.Q6J("ngIf",""===a.errorMessage))},directives:[_.xw,_.Wh,p.O5,_.yH,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,r.BZ,A.YE,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,P.pW,r.ge,A.nU,r.ev,R.gD,R.$L,Y.ey,L.lW,r.yh,r.Q2,p.mk,q.oO,r.XQ,r.Gk,S.NW],pipes:[p.uU,p.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();const Gu=["tableIn"],zu=["tableOut"],Wu=["paginatorIn"],Xu=["paginatorOut"];function $u(n,i){if(1&n&&(e.TgZ(0,"div",3),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.errorMessage)}}function ju(n,i){1&n&&e._UZ(0,"mat-progress-bar",37)}function Ku(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Channel ID"),e.qZA())}const de=function(n){return{"max-width":n}};function ep(n,i){if(1&n&&(e.TgZ(0,"td",39),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("ngStyle",e.VKq(2,de,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.Oqu(t.chan_id)}}function tp(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Peer Alias"),e.qZA())}function np(n,i){if(1&n&&(e.TgZ(0,"td",39),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("ngStyle",e.VKq(2,de,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.Oqu(t.alias)}}function ap(n,i){1&n&&(e.TgZ(0,"th",40),e._uU(1,"Events"),e.qZA())}function ip(n,i){if(1&n&&(e.TgZ(0,"td",41),e.TgZ(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.events))}}function op(n,i){1&n&&(e.TgZ(0,"th",40),e._uU(1,"Total Amount (Sats)"),e.qZA())}function sp(n,i){if(1&n&&(e.TgZ(0,"td",41),e.TgZ(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.total_amount))}}function lp(n,i){1&n&&(e.TgZ(0,"th",43),e.TgZ(1,"span",42),e._uU(2,"Actions"),e.qZA(),e.qZA())}function rp(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",44),e.TgZ(1,"button",45),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw(2).onRoutingPeerClick(u,o,"in")}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function cp(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No incoming routing peer available."),e.qZA())}function up(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting incoming routing peers..."),e.qZA())}function pp(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(t.errorMessage)}}function mp(n,i){if(1&n&&(e.TgZ(0,"td",46),e.YNc(1,cp,2,0,"p",47),e.YNc(2,up,2,0,"p",47),e.YNc(3,pp,2,1,"p",47),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",(!(null!=t.RoutingPeersIncoming&&t.RoutingPeersIncoming.data)||(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.RoutingPeersIncoming&&t.RoutingPeersIncoming.data)||(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.RoutingPeersIncoming&&t.RoutingPeersIncoming.data)||(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Ve=function(n){return{"display-none":n}};function _p(n,i){if(1&n&&e._UZ(0,"tr",48),2&n){const t=e.oxw(2);e.Q6J("ngClass",e.VKq(1,Ve,(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)>0))}}function dp(n,i){1&n&&e._UZ(0,"tr",49)}function hp(n,i){1&n&&e._UZ(0,"tr",50)}function gp(n,i){1&n&&e._UZ(0,"mat-progress-bar",37)}function fp(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Channel ID"),e.qZA())}function Cp(n,i){if(1&n&&(e.TgZ(0,"td",39),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("ngStyle",e.VKq(2,de,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.Oqu(t.chan_id)}}function xp(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Peer Alias"),e.qZA())}function Zp(n,i){if(1&n&&(e.TgZ(0,"td",39),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("ngStyle",e.VKq(2,de,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.Oqu(t.alias)}}function yp(n,i){1&n&&(e.TgZ(0,"th",40),e._uU(1,"Events"),e.qZA())}function Tp(n,i){if(1&n&&(e.TgZ(0,"td",41),e.TgZ(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.events))}}function bp(n,i){1&n&&(e.TgZ(0,"th",40),e._uU(1,"Total Amount (Sats)"),e.qZA())}function Ap(n,i){if(1&n&&(e.TgZ(0,"td",41),e.TgZ(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.total_amount))}}function vp(n,i){1&n&&(e.TgZ(0,"th",43),e.TgZ(1,"span",42),e._uU(2,"Actions"),e.qZA(),e.qZA())}function wp(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",51),e.TgZ(1,"button",52),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw(2).onRoutingPeerClick(u,o,"out")}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function qp(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No outgoing routing peer available."),e.qZA())}function Sp(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting outgoing routing peers..."),e.qZA())}function Lp(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(t.errorMessage)}}function kp(n,i){if(1&n&&(e.TgZ(0,"td",46),e.YNc(1,qp,2,0,"p",47),e.YNc(2,Sp,2,0,"p",47),e.YNc(3,Lp,2,1,"p",47),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",(!(null!=t.RoutingPeersOutgoing&&t.RoutingPeersOutgoing.data)||(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.RoutingPeersOutgoing&&t.RoutingPeersOutgoing.data)||(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.RoutingPeersOutgoing&&t.RoutingPeersOutgoing.data)||(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}function Fp(n,i){if(1&n&&e._UZ(0,"tr",48),2&n){const t=e.oxw(2);e.Q6J("ngClass",e.VKq(1,Ve,(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)>0))}}function Up(n,i){1&n&&e._UZ(0,"tr",49)}function Np(n,i){1&n&&e._UZ(0,"tr",50)}const Op=function(n,i){return{"mt-2":n,"mt-1":i}},Rp=function(){return["no_incoming_event"]},Ip=function(n){return{"mt-2":n}},Mp=function(){return["no_outgoing_event"]};function Dp(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",4),e.TgZ(1,"div",5),e.TgZ(2,"div",6),e.TgZ(3,"div",7),e._uU(4,"Incoming"),e.qZA(),e.TgZ(5,"mat-form-field",8),e.TgZ(6,"input",9),e.NdJ("keyup",function(){return e.CHM(t),e.oxw().applyIncomingFilter()})("ngModelChange",function(o){return e.CHM(t),e.oxw().filterIn=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",10),e.YNc(8,ju,1,0,"mat-progress-bar",11),e.TgZ(9,"table",12,13),e.ynx(11,14),e.YNc(12,Ku,2,0,"th",15),e.YNc(13,ep,2,4,"td",16),e.BQk(),e.ynx(14,17),e.YNc(15,tp,2,0,"th",15),e.YNc(16,np,2,4,"td",16),e.BQk(),e.ynx(17,18),e.YNc(18,ap,2,0,"th",19),e.YNc(19,ip,4,3,"td",20),e.BQk(),e.ynx(20,21),e.YNc(21,op,2,0,"th",19),e.YNc(22,sp,4,3,"td",20),e.BQk(),e.ynx(23,22),e.YNc(24,lp,3,0,"th",23),e.YNc(25,rp,3,0,"td",24),e.BQk(),e.ynx(26,25),e.YNc(27,mp,4,3,"td",26),e.BQk(),e.YNc(28,_p,1,3,"tr",27),e.YNc(29,dp,1,0,"tr",28),e.YNc(30,hp,1,0,"tr",29),e.qZA(),e.qZA(),e._UZ(31,"mat-paginator",30,31),e.qZA(),e.TgZ(33,"div",5),e.TgZ(34,"div",6),e.TgZ(35,"div",7),e._uU(36,"Outgoing"),e.qZA(),e.TgZ(37,"mat-form-field",8),e.TgZ(38,"input",9),e.NdJ("keyup",function(){return e.CHM(t),e.oxw().applyOutgoingFilter()})("ngModelChange",function(o){return e.CHM(t),e.oxw().filterOut=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(39,"div",10),e.YNc(40,gp,1,0,"mat-progress-bar",11),e.TgZ(41,"table",32,33),e.ynx(43,14),e.YNc(44,fp,2,0,"th",15),e.YNc(45,Cp,2,4,"td",16),e.BQk(),e.ynx(46,17),e.YNc(47,xp,2,0,"th",15),e.YNc(48,Zp,2,4,"td",16),e.BQk(),e.ynx(49,18),e.YNc(50,yp,2,0,"th",19),e.YNc(51,Tp,4,3,"td",20),e.BQk(),e.ynx(52,21),e.YNc(53,bp,2,0,"th",19),e.YNc(54,Ap,4,3,"td",20),e.BQk(),e.ynx(55,22),e.YNc(56,vp,3,0,"th",23),e.YNc(57,wp,3,0,"td",34),e.BQk(),e.ynx(58,35),e.YNc(59,kp,4,3,"td",26),e.BQk(),e.YNc(60,Fp,1,3,"tr",27),e.YNc(61,Up,1,0,"tr",28),e.YNc(62,Np,1,0,"tr",29),e.qZA(),e.qZA(),e._UZ(63,"mat-paginator",30,36),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(2),e.Q6J("ngClass",e.WLB(22,Op,t.screenSize===t.screenSizeEnum.XS,t.screenSize===t.screenSizeEnum.SM)),e.xp6(4),e.Q6J("ngModel",t.filterIn),e.xp6(2),e.Q6J("ngIf",t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",t.RoutingPeersIncoming),e.xp6(19),e.Q6J("matFooterRowDef",e.DdM(25,Rp)),e.xp6(1),e.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns),e.xp6(1),e.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS),e.xp6(3),e.Q6J("ngClass",e.VKq(26,Ip,t.screenSize!==t.screenSizeEnum.LG)),e.xp6(4),e.Q6J("ngModel",t.filterOut),e.xp6(2),e.Q6J("ngIf",t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",t.RoutingPeersOutgoing),e.xp6(19),e.Q6J("matFooterRowDef",e.DdM(28,Mp)),e.xp6(1),e.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns),e.xp6(1),e.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let Pp=(()=>{class n{constructor(t,a,o){this.logger=t,this.commonService=a,this.store=o,this.routingPeersData=[],this.displayedColumns=[],this.RoutingPeersIncoming=new r.by([]),this.RoutingPeersOutgoing=new r.by([]),this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.filterIn="",this.filterOut="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["chan_id","events","actions"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["chan_id","alias","events","total_amount"]):(this.flgSticky=!0,this.displayedColumns=["chan_id","alias","events","total_amount"])}ngOnInit(){this.store.select(C.Bo).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{var a;this.errorMessage="",this.apiCallStatus=t.apiCallStatus,(null===(a=t.apiCallStatus)||void 0===a?void 0:a.status)===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.routingPeersData=t.forwardingHistory.forwarding_events?t.forwardingHistory.forwarding_events:[],this.routingPeersData.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.routingPeersData),this.logger.info(t.apiCallStatus),this.logger.info(t.forwardingHistory)})}ngAfterViewInit(){this.routingPeersData.length>0&&this.loadRoutingPeersTable(this.routingPeersData)}onRoutingPeerClick(t,a,o){let s=" Routing Information";s="in"===o?"Incoming"+s:"Outgoing"+s,this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:s,message:[[{key:"chan_id",value:t.chan_id,title:"Channel ID",width:50,type:l.Gi.STRING},{key:"alias",value:t.alias,title:"Peer Alias",width:50,type:l.Gi.STRING}],[{key:"events",value:t.events,title:"Events",width:50,type:l.Gi.NUMBER},{key:"total_amount",value:t.total_amount,title:"Total Amount (Sats)",width:50,type:l.Gi.NUMBER}]]}}}))}loadRoutingPeersTable(t){if(t.length>0){const a=this.groupRoutingPeers(t);this.RoutingPeersIncoming=new r.by(a[0]),this.RoutingPeersIncoming.sort=this.sortIn,this.RoutingPeersIncoming.filterPredicate=(o,s)=>JSON.stringify(o).toLowerCase().includes(s),this.RoutingPeersIncoming.paginator=this.paginatorIn,this.logger.info(this.RoutingPeersIncoming),this.RoutingPeersOutgoing=new r.by(a[1]),this.RoutingPeersOutgoing.sort=this.sortOut,this.RoutingPeersOutgoing.filterPredicate=(o,s)=>JSON.stringify(o).toLowerCase().includes(s),this.RoutingPeersOutgoing.paginator=this.paginatorOut,this.logger.info(this.RoutingPeersOutgoing)}else this.RoutingPeersIncoming=new r.by([]),this.RoutingPeersOutgoing=new r.by([]);this.applyIncomingFilter(),this.applyOutgoingFilter()}groupRoutingPeers(t){const a=[],o=[];return t.forEach(s=>{const u=a.find(N=>N.chan_id===s.chan_id_in),g=o.find(N=>N.chan_id===s.chan_id_out);u?(u.events++,u.total_amount=+u.total_amount+ +s.amt_in):a.push({chan_id:s.chan_id_in,alias:s.alias_in,events:1,total_amount:+s.amt_in}),g?(g.events++,g.total_amount=+g.total_amount+ +s.amt_out):o.push({chan_id:s.chan_id_out,alias:s.alias_out,events:1,total_amount:+s.amt_out})}),[this.commonService.sortDescByKey(a,"total_amount"),this.commonService.sortDescByKey(o,"total_amount")]}applyIncomingFilter(){this.RoutingPeersIncoming.filter=this.filterIn.toLowerCase()}applyOutgoingFilter(){this.RoutingPeersOutgoing.filter=this.filterOut.toLowerCase()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-routing-peers"]],viewQuery:function(t,a){if(1&t&&(e.Gf(Gu,5,A.YE),e.Gf(zu,5,A.YE),e.Gf(Wu,5),e.Gf(Xu,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sortIn=o.first),e.iGM(o=e.CRH())&&(a.sortOut=o.first),e.iGM(o=e.CRH())&&(a.paginatorIn=o.first),e.iGM(o=e.CRH())&&(a.paginatorOut=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Routing peers")}])],decls:3,vars:2,consts:[["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",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"],["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","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["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"],["tableIn",""],["matColumnDef","chan_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","events"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","total_amount"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-2","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","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["paginatorIn",""],["mat-table","","matSort","",1,"overflow-auto","outgoing-table",3,"dataSource"],["tableOut",""],["mat-cell","","class","pl-2",4,"matCellDef"],["matColumnDef","no_outgoing_event"],["paginatorOut",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pr-3"],["mat-cell","","fxLayoutAlign","end center",1,"pl-2"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],["mat-cell","",1,"pl-2"],["mat-stroked-button","","color","primary","type","button","tabindex","5",3,"click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,$u,2,1,"div",1),e.YNc(2,Dp,65,29,"div",2),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",""!==a.errorMessage),e.xp6(1),e.Q6J("ngIf",""===a.errorMessage))},directives:[_.xw,_.Wh,p.O5,_.yH,p.mk,q.oO,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,r.BZ,A.YE,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,L.lW,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-chan_id[_ngcontent-%COMP%], .mat-column-alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function Jp(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",7),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().activeLink=s.link}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw();e.s9C("routerLink",t.link),e.Q6J("active",a.activeLink===t.link),e.xp6(1),e.Oqu(t.name)}}let Ep=(()=>{class n{constructor(t){this.router=t,this.faChartBar=Z.koM,this.links=[{link:"routingreport",name:"Routing"},{link:"transactions",name:"Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){const t=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(a=>a instanceof y.Av)).subscribe({next:a=>{const o=this.links.find(s=>a.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-reports"]],decls:10,vars:2,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-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Reports"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e.TgZ(7,"nav",5),e.YNc(8,Jp,2,3,"div",6),e.qZA(),e._UZ(9,"router-outlet"),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faChartBar),e.xp6(7),e.Q6J("ngForOf",a.links))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,D.BU,p.sg,y.lC,D.Nj,y.rH],styles:[""]}),n})();var Ge=h(7671),ze=h(6046);function Qp(n,i){1&n&&e._UZ(0,"mat-progress-bar",16)}function Yp(n,i){if(1&n&&(e.TgZ(0,"div",17),e._uU(1),e.ALo(2,"number"),e.ALo(3,"number"),e.qZA()),2&n){const t=e.oxw();e.Q6J("@fadeIn",t.events.total_fee_msat),e.xp6(1),e.AsE("",e.xi3(2,3,t.events.total_fee_msat/1e3||0,"1.0-2")," Sats/",e.lcZ(3,6,(null==t.events||null==t.events.forwarding_events?null:t.events.forwarding_events.length)||0)," Events")}}function Hp(n,i){1&n&&(e.TgZ(0,"div",18),e._uU(1,"No routing report for the selected period"),e.qZA())}const Bp=function(n){return{"error-border":n}};function Vp(n,i){if(1&n&&(e.TgZ(0,"div",19),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(2,Bp,"Getting Forwarding History..."!==t.errorMessage&&""!==t.errorMessage)),e.xp6(1),e.Oqu(t.errorMessage)}}function Gp(n,i){if(1&n&&(e.TgZ(0,"span"),e.TgZ(1,"span",22),e._uU(2),e.ALo(3,"number"),e.qZA(),e.TgZ(4,"span",22),e._uU(5),e.ALo(6,"number"),e.qZA(),e.qZA()),2&n){const t=i.model,a=e.oxw(2);e.xp6(2),e.hij("Events: ",e.lcZ(3,2,(a.selReportBy===a.reportBy.EVENTS?t.value:t.extra.totalEvents)||0),""),e.xp6(3),e.hij("Fee: ",e.xi3(6,4,(a.selReportBy===a.reportBy.EVENTS?t.extra.totalFees:t.value)||0,"1.0-2"),"")}}function zp(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"ngx-charts-bar-vertical",20),e.NdJ("select",function(o){return e.CHM(t),e.oxw().onChartBarSelected(o)})("mouseup",function(o){return e.CHM(t),e.oxw().onChartMouseUp(o)}),e.YNc(1,Gp,7,7,"ng-template",null,21,e.W1O),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("view",t.view)("results",t.routingReportData)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",t.showYAxisLabel)("xAxisLabel",t.xAxisLabel)("yAxisLabel",t.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)}}function Wp(n,i){if(1&n&&e._UZ(0,"rtl-forwarding-history",23),2&n){const t=e.oxw();e.Q6J("eventsData",null==t.events?null:t.events.forwarding_events)("filterValue",t.eventFilterValue)}}let Xp=(()=>{class n{constructor(t,a,o,s){this.logger=t,this.dataService=a,this.commonService=o,this.store=s,this.reportPeriod=l.op[0],this.secondsInADay=86400,this.events={},this.eventFilterValue="",this.reportBy=l.Xr,this.selReportBy=l.Xr.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=l.cu,this.errorMessage="",this.unSubs=[new m.x,new m.x,new m.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===l.cu.XS||this.screenSize===l.cu.SM),this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{t.identity_pubkey&&setTimeout(()=>{this.fetchEvents(this.startDate,this.endDate)},10)}),this.commonService.containerSizeUpdated.pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{switch(this.screenSize){case l.cu.MD:this.screenPaddingX=t.width/10;break;case l.cu.LG:this.screenPaddingX=t.width/16;break;default:this.screenPaddingX=t.width/20}this.view=[t.width-this.screenPaddingX,t.height/2.2],this.logger.info("Container Size: "+JSON.stringify(t)),this.logger.info("View: "+JSON.stringify(this.view))})}fetchEvents(t,a){this.errorMessage=l.m6.GET_FORWARDING_HISTORY;const o=Math.round(t.getTime()/1e3).toString(),s=Math.round(a.getTime()/1e3).toString();this.dataService.getForwardingHistory(o,s).pipe((0,d.R)(this.unSubs[2])).subscribe({next:u=>{this.errorMessage="",u.forwarding_events&&u.forwarding_events.length?(u.forwarding_events=u.forwarding_events.reverse(),this.events=u,this.routingReportData=this.selReportBy===this.reportBy.EVENTS?this.prepareEventsReport(t):this.prepareFeeReport(t)):(this.events={forwarding_events:[],total_fee_msat:0},this.routingReportData=[])},error:u=>{this.errorMessage=u}})}onChartMouseUp(t){"svg"===t.srcElement.tagName&&t.srcElement.classList.length>0&&"ngx-charts"===t.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(t){this.eventFilterValue=this.reportPeriod===l.op[1]?t.name+"/"+this.startDate.getFullYear():t.name.toString().padStart(2,"0")+"/"+l.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}prepareFeeReport(t){const a=Math.round(t.getTime()/1e3),o=[];if(this.events.total_fee_msat=0,this.reportPeriod===l.op[1]){for(let s=0;s<12;s++)o.push({name:l.gg[s].name,value:0,extra:{totalEvents:0}});this.events.forwarding_events.map(s=>{const u=new Date(1e3*+s.timestamp).getMonth();return o[u].value=o[u].value+ +s.fee_msat/1e3,o[u].extra.totalEvents=o[u].extra.totalEvents+1,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +s.fee_msat,this.events})}else{for(let s=0;s{const u=Math.floor((+s.timestamp-a)/this.secondsInADay);return o[u].value=o[u].value+ +s.fee_msat/1e3,o[u].extra.totalEvents=o[u].extra.totalEvents+1,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +s.fee_msat,this.events})}return o}prepareEventsReport(t){const a=Math.round(t.getTime()/1e3),o=[];if(this.events.total_fee_msat=0,this.reportPeriod===l.op[1]){for(let s=0;s<12;s++)o.push({name:l.gg[s].name,value:0,extra:{totalFees:0}});this.events.forwarding_events.map(s=>{const u=new Date(1e3*+s.timestamp).getMonth();return o[u].value=o[u].value+1,o[u].extra.totalFees=o[u].extra.totalFees+ +s.fee_msat/1e3,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +s.fee_msat,this.events})}else{for(let s=0;s{const u=Math.floor((+s.timestamp-a)/this.secondsInADay);return o[u].value=o[u].value+1,o[u].extra.totalFees=o[u].extra.totalFees+ +s.fee_msat/1e3,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +s.fee_msat,this.events})}return o}onSelectionChange(t){const a=t.selDate.getMonth(),o=t.selDate.getFullYear();this.reportPeriod=t.selScrollRange,this.reportPeriod===l.op[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.fetchEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(t,a){return 1===t&&a%4==0?l.gg[t].days+1:l.gg[t].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(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(j.D),e.Y36(O.v),e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-routing-report"]],hostBindings:function(t,a){1&t&&e.NdJ("mouseup",function(s){return a.onChartMouseUp(s)})},decls:20,vars:9,consts:[["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 start",1,"my-1",3,"ngModel","ngModelChange","change"],[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"],[3,"eventsData","filterValue",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,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"eventsData","filterValue"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"rtl-horizontal-scroller",1),e.NdJ("stepChanged",function(s){return a.onSelectionChange(s)}),e.qZA(),e.TgZ(2,"div",2),e.TgZ(3,"mat-radio-group",3),e.NdJ("ngModelChange",function(s){return a.selReportBy=s})("change",function(){return a.onSelReportByChange()}),e.TgZ(4,"span",4),e._uU(5,"Report By: "),e.qZA(),e.TgZ(6,"mat-radio-button",5),e._uU(7,"Fees"),e.qZA(),e.TgZ(8,"mat-radio-button",6),e._uU(9,"Events"),e.qZA(),e.qZA(),e.qZA(),e.YNc(10,Qp,1,0,"mat-progress-bar",7),e.TgZ(11,"div",8),e.YNc(12,Yp,4,8,"div",9),e.YNc(13,Hp,2,0,"div",10),e.YNc(14,Vp,2,4,"div",11),e.TgZ(15,"div",12),e.YNc(16,zp,3,11,"ngx-charts-bar-vertical",13),e.qZA(),e.qZA(),e.TgZ(17,"div",14),e.TgZ(18,"div",12),e.YNc(19,Wp,1,2,"rtl-forwarding-history",15),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Q6J("ngModel",a.selReportBy),e.xp6(3),e.s9C("value",a.reportBy.FEES),e.xp6(2),e.s9C("value",a.reportBy.EVENTS),e.xp6(2),e.Q6J("ngIf","Getting Forwarding History..."===a.errorMessage),e.xp6(2),e.Q6J("ngIf",a.routingReportData.length>0&&a.events.forwarding_events&&a.events.forwarding_events.length&&a.events.forwarding_events.length>0),e.xp6(1),e.Q6J("ngIf",(a.routingReportData.length<=0||a.events.forwarding_events.length<=0)&&""===a.errorMessage),e.xp6(1),e.Q6J("ngIf",""!==a.errorMessage),e.xp6(2),e.Q6J("ngIf",a.routingReportData.length>0&&a.events.forwarding_events&&a.events.forwarding_events.length&&a.events.forwarding_events.length>0),e.xp6(3),e.Q6J("ngIf",a.events&&(null==a.events?null:a.events.forwarding_events)&&a.events.forwarding_events.length&&a.events.forwarding_events.length>0))},directives:[_.xw,_.Wh,_.yH,Ge.D,ie.VQ,c.JJ,c.On,ie.U0,p.O5,P.pW,p.mk,q.oO,ze.K$,Be],pipes:[p.JJ],styles:[""],data:{animation:[ye.J]}}),n})();var $p=h(165);function jp(n,i){1&n&&(e.TgZ(0,"div",11),e._UZ(1,"mat-progress-bar",12),e.TgZ(2,"span"),e._uU(3,"Getting transactions data..."),e.qZA(),e.qZA())}function Kp(n,i){if(1&n&&(e.TgZ(0,"div",13),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.errorMessage)}}function em(n,i){if(1&n&&(e.TgZ(0,"div",16),e._uU(1),e.ALo(2,"number"),e.ALo(3,"number"),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.AsE(" Paid ",e.xi3(2,2,t.transactionsReportSummary.amountPaidSelectedPeriod/1e3||0,"1.0-2")," Sats/",e.lcZ(3,5,t.transactionsReportSummary.paymentsSelectedPeriod)," Payments ")}}function tm(n,i){if(1&n&&(e.TgZ(0,"div",16),e._uU(1),e.ALo(2,"number"),e.ALo(3,"number"),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.AsE(" Received ",e.xi3(2,2,t.transactionsReportSummary.amountReceivedSelectedPeriod/1e3||0,"1.0-2")," Sats/",e.lcZ(3,5,t.transactionsReportSummary.invoicesSelectedPeriod)," Invoices ")}}function nm(n,i){if(1&n&&(e.TgZ(0,"div",14),e.YNc(1,em,4,7,"div",15),e.YNc(2,tm,4,7,"div",15),e.qZA()),2&n){const t=e.oxw();e.Q6J("@fadeIn",t.transactionsReportSummary),e.xp6(1),e.Q6J("ngIf",t.transactionsReportSummary.paymentsSelectedPeriod>0),e.xp6(1),e.Q6J("ngIf",t.transactionsReportSummary.invoicesSelectedPeriod)}}function am(n,i){1&n&&(e.TgZ(0,"div",17),e._uU(1,"No transactions report for the selected period"),e.qZA())}function im(n,i){if(1&n&&(e.TgZ(0,"span",21),e._uU(1),e.ALo(2,"number"),e.ALo(3,"number"),e.qZA()),2&n){const t=i.model;e.xp6(1),e.HOy("",t.name,": ",e.xi3(2,4,t.value||0,"1.0-2"),"/# ","Paid"===t.name?"Payments":"Invoices",": ",e.lcZ(3,7,(null==t.extra?null:t.extra.total)||0),"")}}function om(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"ngx-charts-bar-vertical-2d",19),e.NdJ("select",function(o){return e.CHM(t),e.oxw(2).onChartBarSelected(o)})("mouseup",function(o){return e.CHM(t),e.oxw(2).onChartMouseUp(o)}),e.YNc(1,im,4,9,"ng-template",null,20,e.W1O),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("view",t.view)("results",t.transactionsReportData)("noBarWhenZero",!1)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",t.showYAxisLabel)("xAxisLabel",t.xAxisLabel)("yAxisLabel",t.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)("groupPadding",t.reportPeriod===t.scrollRanges[0]?2:8)}}function sm(n,i){if(1&n&&(e.TgZ(0,"div",9),e.YNc(1,om,3,13,"ngx-charts-bar-vertical-2d",18),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.transactionsReportData.length>0&&t.transactionsNonZeroReportData.length>0)}}function lm(n,i){if(1&n&&e._UZ(0,"rtl-transactions-report-table",22),2&n){const t=e.oxw();e.Q6J("dataList",t.transactionsNonZeroReportData)("dataRange",t.reportPeriod)("filterValue",t.transactionFilterValue)}}let rm=(()=>{class n{constructor(t,a,o){this.logger=t,this.commonService=a,this.store=o,this.scrollRanges=l.op,this.reportPeriod=l.op[0],this.secondsInADay=86400,this.payments=[],this.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=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===l.cu.XS||this.screenSize===l.cu.SM),this.store.select(C.l5).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{t.apiCallStatus.status===l.Bn.UN_INITIATED&&this.store.dispatch((0,b.Jo)()),this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.payments=t.allLightningTransactions.listPaymentsAll.payments||[],this.invoices=t.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(t)}),this.commonService.containerSizeUpdated.pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{switch(this.screenSize){case l.cu.MD:this.screenPaddingX=t.width/10;break;case l.cu.LG:this.screenPaddingX=t.width/16;break;default:this.screenPaddingX=t.width/20}this.view=[t.width-this.screenPaddingX,t.height/2.2],this.logger.info("Container Size: "+JSON.stringify(t)),this.logger.info("View: "+JSON.stringify(this.view))})}onChartMouseUp(t){"svg"===t.srcElement.tagName&&t.srcElement.classList.length>0&&"ngx-charts"===t.srcElement.classList[0]&&(this.transactionFilterValue="")}onChartBarSelected(t){this.transactionFilterValue=this.reportPeriod===l.op[1]?t.series+"/"+this.startDate.getFullYear():t.series.toString().padStart(2,"0")+"/"+l.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(t,a){const o=Math.round(t.getTime()/1e3),s=Math.round(a.getTime()/1e3),u=[];this.transactionsNonZeroReportData=[],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};const g=this.payments.filter(x=>"SUCCEEDED"===x.status&&x.creation_date>=o&&x.creation_datex.settled&&+x.creation_date>=o&&+x.creation_date{const U=new Date(1e3*+x.creation_date).getMonth();return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+ +x.value_msat+ +x.fee_msat,u[U].series[0].value=u[U].series[0].value+(+x.value_msat+ +x.fee_msat)/1e3,u[U].series[0].extra.total=u[U].series[0].extra.total+1,this.transactionsReportSummary}),N.map(x=>{const U=new Date(1e3*+x.creation_date).getMonth();return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+ +x.amt_paid_msat,u[U].series[1].value=u[U].series[1].value+ +x.amt_paid_msat/1e3,u[U].series[1].extra.total=u[U].series[1].extra.total+1,this.transactionsReportSummary})}else{for(let x=0;x{const U=Math.floor((+x.creation_date-o)/this.secondsInADay);return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+ +x.value_msat+ +x.fee_msat,u[U].series[0].value=u[U].series[0].value+(+x.value_msat+ +x.fee_msat)/1e3,u[U].series[0].extra.total=u[U].series[0].extra.total+1,this.transactionsReportSummary}),N.map(x=>{const U=Math.floor((+x.creation_date-o)/this.secondsInADay);return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+ +x.amt_paid_msat,u[U].series[1].value=u[U].series[1].value+ +x.amt_paid_msat/1e3,u[U].series[1].extra.total=u[U].series[1].extra.total+1,this.transactionsReportSummary})}return u}prepareTableData(){return this.transactionsReportData.reduce((t,a)=>a.series[0].extra.total>0||a.series[1].extra.total>0?t.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}):t,[])}onSelectionChange(t){const a=t.selDate.getMonth(),o=t.selDate.getFullYear();this.reportPeriod=t.selScrollRange,this.reportPeriod===l.op[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(t,a){return 1===t&&a%4==0?l.gg[t].days+1:l.gg[t].days}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-transactions-report"]],hostBindings:function(t,a){1&t&&e.NdJ("mouseup",function(s){return a.onChartMouseUp(s)})},decls:11,vars:6,consts:[["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,"dataList","dataRange","filterValue",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,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"dataList","dataRange","filterValue"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"rtl-horizontal-scroller",3),e.NdJ("stepChanged",function(s){return a.onSelectionChange(s)}),e.qZA(),e.YNc(4,jp,4,0,"div",4),e.YNc(5,Kp,2,1,"div",5),e.YNc(6,nm,3,3,"div",6),e.YNc(7,am,2,0,"div",7),e.YNc(8,sm,2,1,"div",8),e.TgZ(9,"div",9),e.YNc(10,lm,1,3,"rtl-transactions-report-table",10),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.ERROR),e.xp6(1),e.Q6J("ngIf",a.transactionsNonZeroReportData.length>0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",a.transactionsNonZeroReportData.length<=0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",a.transactionsNonZeroReportData.length>0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED),e.xp6(2),e.Q6J("ngIf",a.transactionsNonZeroReportData.length>0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED))},directives:[_.xw,_.Wh,_.yH,Ge.D,p.O5,P.pW,ze.H5,$p.g],pipes:[p.JJ],styles:[""],data:{animation:[ye.J]}}),n})();const cm=["form"];function um(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"UTXO Label is required."),e.qZA())}function pm(n,i){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.labelError)}}function mm(n,i){if(1&n&&(e.TgZ(0,"div",16),e._UZ(1,"fa-icon",17),e.YNc(2,pm,2,1,"span",11),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(1),e.Q6J("ngIf",""!==t.labelError)}}let _m=(()=>{class n{constructor(t,a,o,s,u,g){this.dialogRef=t,this.data=a,this.dataService=o,this.store=s,this.snackBar=u,this.commonService=g,this.faExclamationTriangle=Z.eHv,this.utxo=null,this.label="",this.labelError="",this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x]}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.outpoint.txid_bytes,this.label,!0).pipe((0,d.R)(this.unSubs[0])).subscribe({next:t=>{this.store.dispatch((0,b.mC)()),this.store.dispatch((0,b.Ly)()),this.snackBar.open("Successfully labelled the UTXO."),this.dialogRef.close()},error:t=>{this.labelError=t}})}resetData(){this.labelError="",this.label=""}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(j.D),e.Y36(w.yh),e.Y36(te.ux),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-on-chain-lebel-modal"]],viewQuery:function(t,a){if(1&t&&e.Gf(cm,7),2&t){let o;e.iGM(o=e.CRH())&&(a.form=o.first)}},decls:20,vars:4,consts:[["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","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"],["form","ngForm"],["fxFlex.gt-sm","100"],["autoFocus","","matInput","","placeholder","UTXO Label","name","label","tabindex","1","required","",3,"ngModel","ngModelChange"],[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-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5,"Label UTXO"),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.TgZ(9,"form",7,8),e.NdJ("submit",function(){return a.onLabelUTXO()})("reset",function(){return a.resetData()}),e.TgZ(11,"mat-form-field",9),e.TgZ(12,"input",10),e.NdJ("ngModelChange",function(s){return a.label=s}),e.qZA(),e.YNc(13,um,2,0,"mat-error",11),e.qZA(),e.YNc(14,mm,3,2,"div",12),e.TgZ(15,"div",13),e.TgZ(16,"button",14),e._uU(17,"Clear"),e.qZA(),e.TgZ(18,"button",15),e._uU(19,"Label UTXO"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("mat-dialog-close",!1),e.xp6(6),e.Q6J("ngModel",a.label),e.xp6(1),e.Q6J("ngIf",!a.label),e.xp6(1),e.Q6J("ngIf",""!==a.labelError))},directives:[_.xw,_.yH,T.dk,_.Wh,L.lW,J.ZT,T.dn,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,W.h,c.Q7,c.JJ,c.On,p.O5,f.TO,M.BN],styles:[""]}),n})();function dm(n,i){1&n&&e._UZ(0,"mat-progress-bar",28)}function hm(n,i){1&n&&(e.TgZ(0,"th",29),e._uU(1," Transaction ID "),e.qZA())}function gm(n,i){1&n&&(e.TgZ(0,"span",35),e.TgZ(1,"mat-icon",36),e._uU(2,"warning"),e.qZA(),e.qZA())}function fm(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,gm,3,0,"span",34),e.qZA()),2&n){const t=e.oxw().$implicit;e.oxw();const a=e.MAs(34);e.xp6(1),e.Q6J("ngIf",t.amount_sat<1e3)("ngIfElse",a)}}const We=function(n){return{"max-width":n}};function Cm(n,i){if(1&n&&(e.TgZ(0,"td",30),e.TgZ(1,"span",31),e.YNc(2,fm,2,2,"span",32),e.TgZ(3,"span",33),e._uU(4),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(3,We,a.screenSize===a.screenSizeEnum.XS?"12rem":"25rem")),e.xp6(2),e.Q6J("ngIf",a.utxos.length>0&&a.dustUtxos.length>0&&!a.isDustUTXO),e.xp6(2),e.Oqu(t.outpoint.txid_str)}}function xm(n,i){1&n&&(e.TgZ(0,"th",37),e._uU(1," Output "),e.qZA())}function Zm(n,i){if(1&n&&(e.TgZ(0,"td",38),e.TgZ(1,"span",39),e._uU(2),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(t.outpoint.output_index)}}function ym(n,i){1&n&&(e.TgZ(0,"th",29),e._uU(1," Label "),e.qZA())}function Tm(n,i){if(1&n&&(e.TgZ(0,"td",30),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,We,a.screenSize===a.screenSizeEnum.XS?"12rem":"25rem")),e.xp6(1),e.hij(" ",null==t?null:t.label," ")}}function bm(n,i){1&n&&(e.TgZ(0,"th",37),e._uU(1," Amount (Sats) "),e.qZA())}function Am(n,i){if(1&n&&(e.TgZ(0,"td",38),e.TgZ(1,"span",39),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.amount_sat||0))}}function vm(n,i){1&n&&(e.TgZ(0,"th",37),e._uU(1," Confirmations "),e.qZA())}function wm(n,i){if(1&n&&(e.TgZ(0,"td",38),e.TgZ(1,"span",39),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.confirmations||0))}}function qm(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",40),e.TgZ(1,"div",41),e.TgZ(2,"mat-select",42),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",43),e.NdJ("click",function(){return e.CHM(t),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Sm(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",44),e.TgZ(1,"div",45),e.TgZ(2,"mat-select",46),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",43),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onUTXOClick(s)}),e._uU(5,"View Info"),e.qZA(),e.TgZ(6,"mat-option",43),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onLabelUTXO(s)}),e._uU(7,"Label"),e.qZA(),e.TgZ(8,"mat-option",43),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onLeaseUTXO(s)}),e._uU(9,"Lease"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Lm(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No UTXO available."),e.qZA())}function km(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting UTXOs..."),e.qZA())}function Fm(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function Um(n,i){if(1&n&&(e.TgZ(0,"td",47),e.YNc(1,Lm,2,0,"p",32),e.YNc(2,km,2,0,"p",32),e.YNc(3,Fm,2,1,"p",32),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!(null!=t.listUTXOs&&t.listUTXOs.data)||(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.listUTXOs&&t.listUTXOs.data)||(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.listUTXOs&&t.listUTXOs.data)||(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Nm=function(n){return{"display-none":n}};function Om(n,i){if(1&n&&e._UZ(0,"tr",48),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Nm,(null==t.listUTXOs?null:t.listUTXOs.data)&&(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)>0))}}function Rm(n,i){1&n&&e._UZ(0,"tr",49)}function Im(n,i){1&n&&e._UZ(0,"tr",50)}function Mm(n,i){1&n&&e._UZ(0,"mat-icon",36)}const Dm=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Pm=function(){return["no_utxo"]};let Jm=(()=>{class n{constructor(t,a,o,s,u,g){this.logger=t,this.commonService=a,this.dataService=o,this.store=s,this.rtlEffects=u,this.decimalPipe=g,this.isDustUTXO=!1,this.addressType=l.x$,this.faMoneyBillWave=Z.aj4,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["amount_sat","confirmations","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["tx_id","output","amount_sat","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["tx_id","output","label","amount_sat","confirmations","actions"]):(this.flgSticky=!0,this.displayedColumns=["tx_id","output","label","amount_sat","confirmations","actions"])}ngOnInit(){this.store.select(C.T4).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),t.utxos&&t.utxos.length>0&&(this.dustUtxos=t.utxos.filter(a=>+a.amount_sat<1e3),this.utxos=t.utxos,this.loadUTXOsTable(this.isDustUTXO?this.dustUtxos:this.utxos)),this.logger.info(t)})}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)}applyFilter(){this.listUTXOs.filter=this.selFilter.trim().toLowerCase()}onUTXOClick(t){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"UTXO Information",message:[[{key:"txid",value:t.outpoint.txid_str,title:"Transaction ID",width:100,type:l.Gi.STRING}],[{key:"label",value:t.label,title:"Label",width:100,type:l.Gi.STRING}],[{key:"output_index",value:t.outpoint.output_index,title:"Output Index",width:34,type:l.Gi.NUMBER},{key:"amount_sat",value:t.amount_sat,title:"Amount (Sats)",width:33,type:l.Gi.NUMBER},{key:"confirmations",value:t.confirmations,title:"Confirmations",width:33,type:l.Gi.NUMBER}],[{key:"address_type",value:this.addressType[t.address_type].name,title:"Address Type",width:34},{key:"address",value:t.address,title:"Address",width:66}],[{key:"pk_script",value:t.pk_script,title:"PK Script",width:100,type:l.Gi.STRING}]]}}}))}loadUTXOsTable(t){this.listUTXOs=new r.by([...t]),this.listUTXOs.filterPredicate=(a,o)=>((a.label?a.label.toLowerCase():"")+(a.outpoint.txid_str?a.outpoint.txid_str.toLowerCase():"")+(a.outpoint.output_index?a.outpoint.output_index:"")+(a.outpoint.txid_bytes?a.outpoint.txid_bytes.toLowerCase():"")+(a.address?a.address.toLowerCase():"")+(a.address_type?a.address_type.toLowerCase():"")+(a.amount_sat?a.amount_sat:"")+(a.confirmations?a.confirmations:"")+(a.pk_script?a.pk_script.toLowerCase():"")).includes(o),this.listUTXOs.sortingDataAccessor=(a,o)=>{switch(o){case"tx_id":return a.outpoint.txid_str.toLocaleLowerCase();case"output":return+a.outpoint.output_index;default:return a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null}},this.listUTXOs.sort=this.sort,this.listUTXOs.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.listUTXOs.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listUTXOs)}onLabelUTXO(t){this.store.dispatch((0,v.qR)({payload:{data:{utxo:t,component:_m}}}))}onLeaseUTXO(t){const a=[[{key:"txid_str",value:t.outpoint.txid_str,title:"Transaction ID",width:100}],[{key:"amount_sat",value:this.decimalPipe.transform(t.amount_sat),title:"Amount (Sats)",width:100}]];t.label&&a.splice(1,0,[{key:"label",value:t.label,title:"Label",width:100}]),this.store.dispatch((0,v.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Lease UTXO",informationMessage:"The UTXO will be leased for 10 minutes.",message:a,noBtnText:"Cancel",yesBtnText:"Lease UTXO"}}})),this.rtlEffects.closeConfirm.pipe((0,d.R)(this.unSubs[0])).subscribe(o=>{o&&this.dataService.leaseUTXO(t.outpoint.txid_bytes,t.outpoint.output_index)})}onDownloadCSV(){this.listUTXOs.data&&this.listUTXOs.data.length>0&&this.commonService.downloadFile(this.listUTXOs.data,"UTXOs")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(j.D),e.Y36(w.yh),e.Y36(oe.V),e.Y36(p.JJ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-on-chain-utxos"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},inputs:{isDustUTXO:"isDustUTXO"},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("UTXOs")}]),e.TTD],decls:35,vars:14,consts:[["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","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["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,"dataSource","ngClass"],["table",""],["matColumnDef","tx_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","output"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","label"],["matColumnDef","amount_sat"],["matColumnDef","confirmations"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pl-3",4,"matCellDef"],["matColumnDef","no_utxo"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["emptySpace",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["fxLayout","row"],[4,"ngIf"],[1,"ellipsis-child"],["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"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-form-field",2),e.TgZ(3,"input",3),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(4,"div",4),e.TgZ(5,"div",5),e.YNc(6,dm,1,0,"mat-progress-bar",6),e.TgZ(7,"table",7,8),e.ynx(9,9),e.YNc(10,hm,2,0,"th",10),e.YNc(11,Cm,5,5,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,xm,2,0,"th",13),e.YNc(14,Zm,3,1,"td",14),e.BQk(),e.ynx(15,15),e.YNc(16,ym,2,0,"th",10),e.YNc(17,Tm,2,4,"td",11),e.BQk(),e.ynx(18,16),e.YNc(19,bm,2,0,"th",13),e.YNc(20,Am,4,3,"td",14),e.BQk(),e.ynx(21,17),e.YNc(22,vm,2,0,"th",13),e.YNc(23,wm,4,3,"td",14),e.BQk(),e.ynx(24,18),e.YNc(25,qm,6,0,"th",19),e.YNc(26,Sm,10,0,"td",20),e.BQk(),e.ynx(27,21),e.YNc(28,Um,4,3,"td",22),e.BQk(),e.YNc(29,Om,1,3,"tr",23),e.YNc(30,Rm,1,0,"tr",24),e.YNc(31,Im,1,0,"tr",25),e.qZA(),e._UZ(32,"mat-paginator",26),e.qZA(),e.qZA(),e.qZA(),e.YNc(33,Mm,1,0,"ng-template",null,27,e.W1O)),2&t&&(e.xp6(3),e.Q6J("ngModel",a.selFilter),e.xp6(3),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.listUTXOs)("ngClass",e.VKq(11,Dm,""!==a.errorMessage)),e.xp6(22),e.Q6J("matFooterRowDef",e.DdM(13,Pm)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,_.yH,_.Wh,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,p.O5,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,X.gM,K.Hw,R.gD,R.$L,Y.ey,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-label[_ngcontent-%COMP%]{padding-left:1rem;flex:1 1 15%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-tx_id[_ngcontent-%COMP%]{flex:1 1 15%}.mat-column-tx_id[_ngcontent-%COMP%] .ellipsis-child[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();function Em(n,i){1&n&&e._UZ(0,"mat-progress-bar",28)}function Qm(n,i){1&n&&(e.TgZ(0,"th",29),e._uU(1," Date/Time "),e.qZA())}function Ym(n,i){if(1&n&&(e.TgZ(0,"td",30),e._uU(1),e.ALo(2,"date"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,1e3*t.time_stamp,"dd/MMM/y HH:mm"))}}function Hm(n,i){1&n&&(e.TgZ(0,"th",29),e._uU(1," Label "),e.qZA())}const Bm=function(n){return{"max-width":n}};function Vm(n,i){if(1&n&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,Bm,a.screenSize===a.screenSizeEnum.XS?"12rem":"25rem")),e.xp6(1),e.hij(" ",null==t?null:t.label," ")}}function Gm(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1," Amount (Sats) "),e.qZA())}function zm(n,i){if(1&n&&(e.TgZ(0,"span",35),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.amount))}}function Wm(n,i){if(1&n&&(e.TgZ(0,"span",36),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.hij("(",e.lcZ(2,1,-1*t.amount),")")}}function Xm(n,i){if(1&n&&(e.TgZ(0,"td",30),e.YNc(1,zm,3,3,"span",33),e.YNc(2,Wm,3,3,"span",34),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Q6J("ngIf",t.amount>0||0===t.amount),e.xp6(1),e.Q6J("ngIf",t.amount<0)}}function $m(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1," Fees (Sats) "),e.qZA())}function jm(n,i){if(1&n&&(e.TgZ(0,"td",30),e.TgZ(1,"span",35),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.total_fees))}}function Km(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1," Block Height "),e.qZA())}function e_(n,i){if(1&n&&(e.TgZ(0,"td",30),e.TgZ(1,"span",35),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.block_height))}}function t_(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1," Confirmations "),e.qZA())}function n_(n,i){if(1&n&&(e.TgZ(0,"td",30),e.TgZ(1,"span",35),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.num_confirmations)," ")}}function a_(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",37),e.TgZ(1,"div",38),e.TgZ(2,"mat-select",39),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",40),e.NdJ("click",function(){return e.CHM(t),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function i_(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",41),e.TgZ(1,"button",42),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onTransactionClick(s)}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function o_(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No transaction available."),e.qZA())}function s_(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting transactions..."),e.qZA())}function l_(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function r_(n,i){if(1&n&&(e.TgZ(0,"td",43),e.YNc(1,o_,2,0,"p",44),e.YNc(2,s_,2,0,"p",44),e.YNc(3,l_,2,1,"p",44),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!(null!=t.listTransactions&&t.listTransactions.data)||(null==t.listTransactions||null==t.listTransactions.data?null:t.listTransactions.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.listTransactions&&t.listTransactions.data)||(null==t.listTransactions||null==t.listTransactions.data?null:t.listTransactions.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.listTransactions&&t.listTransactions.data)||(null==t.listTransactions||null==t.listTransactions.data?null:t.listTransactions.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const c_=function(n){return{"display-none":n}};function u_(n,i){if(1&n&&e._UZ(0,"tr",45),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,c_,(null==t.listTransactions?null:t.listTransactions.data)&&(null==t.listTransactions||null==t.listTransactions.data?null:t.listTransactions.data.length)>0))}}function p_(n,i){1&n&&e._UZ(0,"tr",46)}function m_(n,i){1&n&&e._UZ(0,"tr",47)}const __=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},d_=function(){return["no_transaction"]};let h_=(()=>{class n{constructor(t,a,o,s){this.logger=t,this.commonService=a,this.store=o,this.datePipe=s,this.faHistory=Z.qO$,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["time_stamp","amount","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["time_stamp","amount","num_confirmations","total_fees","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["time_stamp","label","amount","total_fees","num_confirmations","actions"]):(this.flgSticky=!0,this.displayedColumns=["time_stamp","label","amount","total_fees","block_height","num_confirmations","actions"])}ngOnInit(){this.store.select(C.dx).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),t.transactions&&t.transactions.length>0&&(this.transactions=t.transactions,this.loadTransactionsTable(this.transactions)),this.logger.info(t)})}ngOnChanges(){this.transactions&&this.transactions.length>0&&this.loadTransactionsTable(this.transactions)}applyFilter(){this.listTransactions.filter=this.selFilter.trim().toLowerCase()}onTransactionClick(t){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Transaction Information",message:[[{key:"block_hash",value:t.block_hash,title:"Block Hash",width:100}],[{key:"tx_hash",value:t.tx_hash,title:"Transaction Hash",width:100}],[{key:"label",value:t.label,title:"Label",width:100,type:l.Gi.STRING}],[{key:"time_stamp",value:t.time_stamp,title:"Date/Time",width:50,type:l.Gi.DATE_TIME},{key:"block_height",value:t.block_height,title:"Block Height",width:50,type:l.Gi.NUMBER}],[{key:"num_confirmations",value:t.num_confirmations,title:"Number of Confirmations",width:34,type:l.Gi.NUMBER},{key:"total_fees",value:t.total_fees,title:"Total Fees (Sats)",width:33,type:l.Gi.NUMBER},{key:"amount",value:t.amount,title:"Amount (Sats)",width:33,type:l.Gi.NUMBER}],[{key:"dest_addresses",value:t.dest_addresses,title:"Destination Addresses",width:100,type:l.Gi.ARRAY}]],scrollable:t.dest_addresses&&t.dest_addresses.length>5}}}))}loadTransactionsTable(t){this.listTransactions=new r.by([...t]),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.filterPredicate=(a,o)=>((a.time_stamp?this.datePipe.transform(new Date(1e3*a.time_stamp),"dd/MMM/YYYY HH:mm").toLowerCase():"")+JSON.stringify(a).toLowerCase()).includes(o),this.listTransactions.paginator=this.paginator,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(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh),e.Y36(p.uU))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-on-chain-transaction-history"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Transactions")}]),e.TTD],decls:36,vars:14,consts:[["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","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["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,"dataSource","ngClass"],["table",""],["matColumnDef","time_stamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","label"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["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","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","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","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",3,"ngStyle"],["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","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-form-field",2),e.TgZ(3,"input",3),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(4,"div",4),e.TgZ(5,"div",5),e.YNc(6,Em,1,0,"mat-progress-bar",6),e.TgZ(7,"table",7,8),e.ynx(9,9),e.YNc(10,Qm,2,0,"th",10),e.YNc(11,Ym,3,4,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,Hm,2,0,"th",10),e.YNc(14,Vm,2,4,"td",13),e.BQk(),e.ynx(15,14),e.YNc(16,Gm,2,0,"th",15),e.YNc(17,Xm,3,2,"td",11),e.BQk(),e.ynx(18,16),e.YNc(19,$m,2,0,"th",15),e.YNc(20,jm,4,3,"td",11),e.BQk(),e.ynx(21,17),e.YNc(22,Km,2,0,"th",15),e.YNc(23,e_,4,3,"td",11),e.BQk(),e.ynx(24,18),e.YNc(25,t_,2,0,"th",15),e.YNc(26,n_,4,3,"td",11),e.BQk(),e.ynx(27,19),e.YNc(28,a_,6,0,"th",20),e.YNc(29,i_,3,0,"td",21),e.BQk(),e.ynx(30,22),e.YNc(31,r_,4,3,"td",23),e.BQk(),e.YNc(32,u_,1,3,"tr",24),e.YNc(33,p_,1,0,"tr",25),e.YNc(34,m_,1,0,"tr",26),e.qZA(),e._UZ(35,"mat-paginator",27),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Q6J("ngModel",a.selFilter),e.xp6(3),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.listTransactions)("ngClass",e.VKq(11,__,""!==a.errorMessage)),e.xp6(25),e.Q6J("matFooterRowDef",e.DdM(13,d_)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,_.yH,_.Wh,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,p.O5,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,R.gD,R.$L,Y.ey,L.lW,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.uU,p.JJ],styles:[".mat-column-label[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();function g_(n,i){if(1&n&&(e.TgZ(0,"span",5),e._uU(1,"UTXOs"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.numUtxos)}}function f_(n,i){if(1&n&&(e.TgZ(0,"span",5),e._uU(1,"Transactions"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.numTransactions)}}function C_(n,i){if(1&n&&(e.TgZ(0,"span",5),e._uU(1,"Dust UTXOs"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.numDustUtxos)}}let x_=(()=>{class n{constructor(t,a){this.logger=t,this.store=a,this.selectedTableIndex=0,this.selectedTableIndexChange=new e.vpe,this.numTransactions=0,this.numUtxos=0,this.numDustUtxos=0,this.unSubs=[new m.x,new m.x,new m.x]}ngOnInit(){this.store.dispatch((0,b.mC)()),this.store.dispatch((0,b.Ly)()),this.store.select(C.T4).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{t.utxos&&t.utxos.length>0&&(this.numUtxos=t.utxos.length,this.numDustUtxos=t.utxos.filter(a=>+a.amount_sat<1e3).length),this.logger.info(t)}),this.store.select(C.dx).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{t.transactions&&t.transactions.length>0&&(this.numTransactions=t.transactions.length),this.logger.info(t)})}onSelectedIndexChanged(t){this.selectedTableIndexChange.emit(t)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-utxo-tables"]],inputs:{selectedTableIndex:"selectedTableIndex"},outputs:{selectedTableIndexChange:"selectedTableIndexChange"},decls:11,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"bordered-box"],[3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["fxLayout","row","fxFlex","100",3,"isDustUTXO"],["fxLayout","row","fxFlex","100"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"mat-tab-group",1),e.NdJ("selectedIndexChange",function(s){return a.onSelectedIndexChanged(s)}),e.TgZ(2,"mat-tab"),e.YNc(3,g_,2,1,"ng-template",2),e._UZ(4,"rtl-on-chain-utxos",3),e.qZA(),e.TgZ(5,"mat-tab"),e.YNc(6,f_,2,1,"ng-template",2),e._UZ(7,"rtl-on-chain-transaction-history",4),e.qZA(),e.TgZ(8,"mat-tab"),e.YNc(9,C_,2,1,"ng-template",2),e._UZ(10,"rtl-on-chain-utxos",3),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("selectedIndex",a.selectedTableIndex),e.xp6(3),e.Q6J("isDustUTXO",!1),e.xp6(6),e.Q6J("isDustUTXO",!0))},directives:[_.xw,_.yH,_.Wh,D.SP,D.uX,D.uD,Jm,h_,fe.k],styles:[""]}),n})();const Z_=function(n,i){return[n,i]};function y_(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",12),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().activeLink=null==s?null:s.link}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw();e.Q6J("active",a.activeLink===(null==t?null:t.link))("routerLink",e.WLB(3,Z_,null==t?null:t.link,null==a.selectedTable?null:a.selectedTable.name)),e.xp6(1),e.Oqu(null==t?null:t.name)}}let T_=(()=>{class n{constructor(t,a,o){this.store=t,this.router=a,this.activatedRoute=o,this.selNode={},this.faExchangeAlt=Z.Ssp,this.faChartPie=Z.OS1,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 m.x,new m.x,new m.x,new m.x]}ngOnInit(){const t=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=t?t.link:this.links[0].link,this.selectedTable=this.tables.find(a=>a.name===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(a=>a instanceof y.Av)).subscribe({next:a=>{const o=this.links.find(s=>a.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link,this.selectedTable=this.tables.find(s=>s.name===a.urlAfterRedirects.substring(a.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(C.$k).pipe((0,d.R)(this.unSubs[1])).subscribe(a=>{this.selNode=a}),this.store.select(C.qU).pipe((0,d.R)(this.unSubs[2])).subscribe(a=>{this.balances=[{title:"Total Balance",dataValue:a.blockchainBalance.total_balance||0},{title:"Confirmed",dataValue:a.blockchainBalance.confirmed_balance},{title:"Unconfirmed",dataValue:a.blockchainBalance.unconfirmed_balance}]})}onSelectedTableIndexChanged(t){this.selectedTable=this.tables.find(a=>a.id===t),this.router.navigate(["./",this.activeLink,this.selectedTable.name],{relativeTo:this.activatedRoute})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh),e.Y36(y.F0),e.Y36(y.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-on-chain"]],decls:21,vars:5,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-tab-nav-bar",""],["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,"selectedTableIndex","selectedTableIndexChange"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"On-chain Balance"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e._UZ(7,"rtl-currency-unit-converter",5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",0),e._UZ(9,"fa-icon",1),e.TgZ(10,"span",2),e._uU(11,"On-chain Transactions"),e.qZA(),e.qZA(),e.TgZ(12,"div",6),e.TgZ(13,"mat-card"),e.TgZ(14,"mat-card-content",4),e.TgZ(15,"nav",7),e.YNc(16,y_,2,6,"div",8),e.qZA(),e.TgZ(17,"div",9),e._UZ(18,"router-outlet"),e.qZA(),e.TgZ(19,"div",10),e.TgZ(20,"rtl-utxo-tables",11),e.NdJ("selectedTableIndexChange",function(s){return a.onSelectedTableIndexChanged(s)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faChartPie),e.xp6(6),e.Q6J("values",a.balances),e.xp6(2),e.Q6J("icon",a.faExchangeAlt),e.xp6(7),e.Q6J("ngForOf",a.links),e.xp6(4),e.Q6J("selectedTableIndex",null==a.selectedTable?null:a.selectedTable.id))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,ge.D,D.BU,p.sg,_.yH,y.lC,x_,D.Nj,y.rH],styles:[""]}),n})();var b_=h(9122);function A_(n,i){if(1&n&&(e.TgZ(0,"mat-option",7),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t.addressTp," ")}}let v_=(()=>{class n{constructor(t,a){this.store=t,this.lndEffects=a,this.addressTypes=l._t,this.selectedAddressType=l._t[0],this.newAddress=""}onGenerateAddress(){this.store.dispatch((0,b._E)({payload:this.selectedAddressType})),this.lndEffects.setNewAddress.pipe((0,V.q)(1)).subscribe(t=>{this.newAddress=t,setTimeout(()=>{this.store.dispatch((0,v.qR)({payload:{data:{address:this.newAddress,addressType:this.selectedAddressType.addressTp,component:b_.n}}}))},0)})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh),e.Y36(ee.l))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-on-chain-receive"]],decls:8,vars:2,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start end"],["fxFlex","48","fxFlex.gt-md","25","fxLayoutAlign","start end",1,"mr-2"],["placeholder","Address Type","name","address_type","tabindex","1",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mt-2"],["mat-flat-button","","color","primary","tabindex","2",1,"top-minus-15px",3,"click"],[3,"value"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-form-field",2),e.TgZ(3,"mat-select",3),e.NdJ("ngModelChange",function(s){return a.selectedAddressType=s}),e.YNc(4,A_,2,2,"mat-option",4),e.qZA(),e.qZA(),e.TgZ(5,"div",5),e.TgZ(6,"button",6),e.NdJ("click",function(){return a.onGenerateAddress()}),e._uU(7,"Generate Address"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Q6J("ngModel",a.selectedAddressType),e.xp6(1),e.Q6J("ngForOf",a.addressTypes))},directives:[_.xw,_.Wh,f.KE,_.yH,R.gD,c.JJ,c.On,p.sg,L.lW,Y.ey],styles:[""]}),n})();var w_=h(8012),Xe=h(8377);const q_=["form"],S_=["formSweepAll"],L_=["stepper"];function k_(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Bitcoin address is required."),e.qZA())}function F_(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.amountError)}}function U_(n,i){if(1&n&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.Oqu(t)}}function N_(n,i){if(1&n&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t.id),e.xp6(1),e.hij(" ",t.name," ")}}function O_(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Number of blocks is required."),e.qZA())}function R_(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",23),e.TgZ(1,"input",32,33),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw(2).transactionBlocks=o}),e.qZA(),e.YNc(3,O_,2,0,"mat-error",14),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngModel",t.transactionBlocks)("step",1)("min",0),e.xp6(2),e.Q6J("ngIf",!t.transactionBlocks)}}function I_(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Fees is required."),e.qZA())}function M_(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",23),e.TgZ(1,"input",34,35),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw(2).transactionFees=o}),e.qZA(),e.YNc(3,I_,2,0,"mat-error",14),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngModel",t.transactionFees)("step",1)("min",0),e.xp6(2),e.Q6J("ngIf",!t.transactionFees)}}function D_(n,i){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(t.sendFundError)}}function P_(n,i){if(1&n&&(e.TgZ(0,"div",36),e._UZ(1,"fa-icon",37),e.YNc(2,D_,2,1,"span",14),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(1),e.Q6J("ngIf",""!==t.sendFundError)}}function J_(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"form",9,10),e.NdJ("submit",function(){return e.CHM(t),e.oxw().onSendFunds()})("reset",function(){return e.CHM(t),e.oxw().resetData()}),e.TgZ(2,"mat-form-field",11),e.TgZ(3,"input",12,13),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().transactionAddress=o}),e.qZA(),e.YNc(5,k_,2,0,"mat-error",14),e.qZA(),e.TgZ(6,"mat-form-field",15),e.TgZ(7,"input",16,17),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().transactionAmount=o}),e.qZA(),e.TgZ(9,"span",18),e._uU(10),e.qZA(),e.YNc(11,F_,2,1,"mat-error",14),e.qZA(),e.TgZ(12,"mat-form-field",19),e.TgZ(13,"mat-select",20),e.NdJ("selectionChange",function(o){return e.CHM(t),e.oxw().onAmountUnitChange(o)}),e.YNc(14,U_,2,2,"mat-option",21),e.qZA(),e.qZA(),e.TgZ(15,"div",22),e.TgZ(16,"mat-form-field",23),e.TgZ(17,"mat-select",24),e.NdJ("valueChange",function(o){return e.CHM(t),e.oxw().selTransType=o}),e.YNc(18,N_,2,2,"mat-option",21),e.qZA(),e.qZA(),e.YNc(19,R_,4,4,"mat-form-field",25),e.YNc(20,M_,4,4,"mat-form-field",25),e.qZA(),e._UZ(21,"div",26),e.YNc(22,P_,3,2,"div",27),e.TgZ(23,"div",28),e.TgZ(24,"button",29),e._uU(25,"Clear Fields"),e.qZA(),e.TgZ(26,"button",30),e._uU(27,"Send Funds"),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(3),e.Q6J("ngModel",t.transactionAddress),e.xp6(2),e.Q6J("ngIf",!t.transactionAddress),e.xp6(2),e.Q6J("ngModel",t.transactionAmount)("step",100)("min",0),e.xp6(3),e.hij(" ",t.selAmountUnit," "),e.xp6(1),e.Q6J("ngIf",!t.transactionAmount),e.xp6(2),e.Q6J("value",t.selAmountUnit),e.xp6(1),e.Q6J("ngForOf",t.amountUnits),e.xp6(3),e.Q6J("value",t.selTransType),e.xp6(1),e.Q6J("ngForOf",t.transTypes),e.xp6(1),e.Q6J("ngIf","1"===t.selTransType),e.xp6(1),e.Q6J("ngIf","2"===t.selTransType),e.xp6(2),e.Q6J("ngIf",""!==t.sendFundError)}}function E_(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw(3);e.Oqu(t.passwordFormLabel)}}function Q_(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}function Y_(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-step",42),e.TgZ(1,"form",61),e.YNc(2,E_,1,1,"ng-template",55),e.TgZ(3,"div",0),e.TgZ(4,"mat-form-field",1),e._UZ(5,"input",62),e.YNc(6,Q_,2,0,"mat-error",14),e.qZA(),e.qZA(),e.TgZ(7,"div",63),e.TgZ(8,"button",64),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).onAuthenticate()}),e._uU(9,"Confirm"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("stepControl",t.passwordFormGroup)("editable",t.flgEditable),e.xp6(1),e.Q6J("formGroup",t.passwordFormGroup),e.xp6(5),e.Q6J("ngIf",null==t.passwordFormGroup.controls.password.errors?null:t.passwordFormGroup.controls.password.errors.required)}}function H_(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw(2);e.Oqu(t.sendFundFormLabel)}}function B_(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Bitcoin address is required."),e.qZA())}function V_(n,i){if(1&n&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t.id),e.xp6(1),e.hij(" ",t.name," ")}}function G_(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Number of blocks is required."),e.qZA())}function z_(n,i){if(1&n&&(e.TgZ(0,"mat-form-field",65),e._UZ(1,"input",66),e.YNc(2,G_,2,0,"mat-error",14),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("step",1)("min",0),e.xp6(1),e.Q6J("ngIf",null==t.sendFundFormGroup.controls.transactionBlocks.errors?null:t.sendFundFormGroup.controls.transactionBlocks.errors.required)}}function W_(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Fees is required."),e.qZA())}function X_(n,i){if(1&n&&(e.TgZ(0,"mat-form-field",65),e._UZ(1,"input",67),e.YNc(2,W_,2,0,"mat-error",14),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("step",1)("min",0),e.xp6(1),e.Q6J("ngIf",null==t.sendFundFormGroup.controls.transactionFees.errors?null:t.sendFundFormGroup.controls.transactionFees.errors.required)}}function $_(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw(2);e.Oqu(t.confirmFormLabel)}}function j_(n,i){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(t.sendFundError)}}function K_(n,i){if(1&n&&(e.TgZ(0,"div",36),e._UZ(1,"fa-icon",37),e.YNc(2,j_,2,1,"span",14),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(1),e.Q6J("ngIf",""!==t.sendFundError)}}function ed(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",38),e.TgZ(1,"mat-vertical-stepper",39,40),e.NdJ("selectionChange",function(o){return e.CHM(t),e.oxw().stepSelectionChanged(o)}),e.YNc(3,Y_,10,4,"mat-step",41),e.TgZ(4,"mat-step",42),e.TgZ(5,"form",43),e.YNc(6,H_,1,1,"ng-template",44),e.TgZ(7,"div",45),e.TgZ(8,"mat-form-field",46),e._UZ(9,"input",47),e.YNc(10,B_,2,0,"mat-error",14),e.qZA(),e.TgZ(11,"mat-form-field",48),e.TgZ(12,"mat-select",49),e.YNc(13,V_,2,2,"mat-option",21),e.qZA(),e.qZA(),e.YNc(14,z_,3,3,"mat-form-field",50),e.YNc(15,X_,3,3,"mat-form-field",50),e.qZA(),e.TgZ(16,"div",51),e.TgZ(17,"button",52),e._uU(18,"Next"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"mat-step",53),e.TgZ(20,"form",54),e.YNc(21,$_,1,1,"ng-template",55),e.TgZ(22,"div",38),e.TgZ(23,"div",56),e._UZ(24,"fa-icon",57),e.TgZ(25,"span"),e._uU(26,"You are about to sweep all funds from RTL. Are you sure?"),e.qZA(),e.qZA(),e.YNc(27,K_,3,2,"div",27),e.TgZ(28,"div",51),e.TgZ(29,"button",58),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSendFunds()}),e._uU(30,"Sweep All Funds"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"div",59),e.TgZ(32,"button",60),e._uU(33),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("linear",!0),e.xp6(2),e.Q6J("ngIf",!t.appConfig.sso.rtlSSO),e.xp6(1),e.Q6J("stepControl",t.sendFundFormGroup)("editable",t.flgEditable),e.xp6(1),e.Q6J("formGroup",t.sendFundFormGroup),e.xp6(5),e.Q6J("ngIf",null==t.sendFundFormGroup.controls.transactionAddress.errors?null:t.sendFundFormGroup.controls.transactionAddress.errors.required),e.xp6(3),e.Q6J("ngForOf",t.transTypes),e.xp6(1),e.Q6J("ngIf","1"===t.sendFundFormGroup.controls.selTransType.value),e.xp6(1),e.Q6J("ngIf","2"===t.sendFundFormGroup.controls.selTransType.value),e.xp6(4),e.Q6J("stepControl",t.confirmFormGroup),e.xp6(1),e.Q6J("formGroup",t.confirmFormGroup),e.xp6(4),e.Q6J("icon",t.faExclamationTriangle),e.xp6(3),e.Q6J("ngIf",""!==t.sendFundError),e.xp6(5),e.Q6J("mat-dialog-close",!1),e.xp6(1),e.Oqu(t.flgValidated?"Close":"Cancel")}}let td=(()=>{class n{constructor(t,a,o,s,u,g,N,x,U,re){this.dialogRef=t,this.data=a,this.logger=o,this.store=s,this.rtlEffects=u,this.commonService=g,this.decimalPipe=N,this.snackBar=x,this.actions=U,this.formBuilder=re,this.faExclamationTriangle=Z.eHv,this.sweepAll=!1,this.selNode={},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=l.uA,this.selAmountUnit=l.uA[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=l.Xz,this.sendFundError="",this.flgValidated=!1,this.flgEditable=!0,this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds",this.confirmFormLabel="Confirm sweep",this.amountError="Amount is Required.",this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.sweepAll=this.data.sweepAll,this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[c.kI.required]],password:["",[c.kI.required]]}),this.sendFundFormGroup=this.formBuilder.group({transactionAddress:["",c.kI.required],transactionBlocks:[null],transactionFees:[null],selTransType:["1",c.kI.required]}),this.confirmFormGroup=this.formBuilder.group({}),this.sendFundFormGroup.controls.selTransType.valueChanges.pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{"1"===t?(this.sendFundFormGroup.controls.transactionBlocks.setValidators([c.kI.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([c.kI.required]),this.sendFundFormGroup.controls.transactionFees.setValue(null))}),this.store.select(Xe.Yj).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.appConfig=t}),this.store.select(Xe.dT).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.fiatConversion=t.settings.fiatConversion,this.amountUnits=t.settings.currencyUnits,this.logger.info(t)}),this.actions.pipe((0,d.R)(this.unSubs[3]),(0,E.h)(t=>t.type===l.uR.UPDATE_API_CALL_STATUS_LND||t.type===l.uR.SET_CHANNEL_TRANSACTION_RES_LND)).subscribe(t=>{t.type===l.uR.SET_CHANNEL_TRANSACTION_RES_LND&&(this.store.dispatch((0,v.jW)({payload:this.sweepAll?"All Funds Sent Successfully!":"Fund Sent Successfully!"})),this.dialogRef.close()),t.type===l.uR.UPDATE_API_CALL_STATUS_LND&&t.payload.status===l.Bn.ERROR&&"SetChannelTransaction"===t.payload.action&&(this.sendFundError=t.payload.message)})}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,v.QO)({payload:w_(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,V.q)(1)).subscribe(t=>{"ERROR"!==t?(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 t={amount:this.transactionAmount?this.transactionAmount:0,sendAll:this.sweepAll};this.sweepAll?(t.address=this.sendFundFormGroup.controls.transactionAddress.value,"1"===this.sendFundFormGroup.controls.selTransType.value&&(t.blocks=this.sendFundFormGroup.controls.transactionBlocks.value),"2"===this.sendFundFormGroup.controls.selTransType.value&&(t.fees=this.sendFundFormGroup.controls.transactionFees.value)):(t.address=this.transactionAddress,"1"===this.selTransType&&(t.blocks=this.transactionBlocks),"2"===this.selTransType&&(t.fees=this.transactionFees)),this.transactionAmount&&this.selAmountUnit!==l.NT.SATS?this.commonService.convertCurrency(this.transactionAmount,this.selAmountUnit===this.amountUnits[2]?l.NT.OTHER:this.selAmountUnit,l.NT.SATS,this.amountUnits[2],this.fiatConversion).pipe((0,d.R)(this.unSubs[4])).subscribe({next:a=>{this.selAmountUnit=l.NT.SATS,t.amount=+this.decimalPipe.transform(a[this.amountUnits[0]],this.currencyUnitFormats[this.amountUnits[0]]).replace(/,/g,""),this.store.dispatch((0,b.Wi)({payload:t}))},error:a=>{this.transactionAmount=null,this.selAmountUnit=l.NT.SATS,this.amountError="Conversion Error: "+a}}):this.store.dispatch((0,b.Wi)({payload:t}))}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(t){switch(this.sendFundError="",t.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)}t.selectedIndex{this.selAmountUnit=t.value,a.transactionAmount=+a.decimalPipe.transform(g[s],a.currencyUnitFormats[s]).replace(/,/g,"")},error:g=>{a.transactionAmount=null,this.amountError="Conversion Error: "+g,this.selAmountUnit=o,s=o}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(F.mQ),e.Y36(w.yh),e.Y36(oe.V),e.Y36(O.v),e.Y36(p.JJ),e.Y36(te.ux),e.Y36(G.eX),e.Y36(c.qu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-on-chain-send-modal"]],viewQuery:function(t,a){if(1&t&&(e.Gf(q_,7),e.Gf(S_,5),e.Gf(L_,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.form=o.first),e.iGM(o=e.CRH())&&(a.formSweepAll=o.first),e.iGM(o=e.CRH())&&(a.stepper=o.first)}},decls:12,vars:4,consts:[["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","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","class","overflow-x-hidden",3,"submit","reset",4,"ngIf","ngIfElse"],["sweepAllBlock",""],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"overflow-x-hidden",3,"submit","reset"],["form","ngForm"],["fxFlex.gt-sm","55"],["autoFocus","","matInput","","placeholder","Bitcoin Address","tabindex","1","name","address","required","",3,"ngModel","ngModelChange"],["address","ngModel"],[4,"ngIf"],["fxFlex.gt-sm","30"],["matInput","","placeholder","Amount","name","amt","type","number","tabindex","2","required","",3,"ngModel","step","min","ngModelChange"],["amnt","ngModel"],["matSuffix",""],["fxFlex.gt-sm","10","fxLayoutAlign","start end"],["tabindex","3","required","","name","amountUnit",3,"value","selectionChange"],[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"],["fxFlex","48"],["tabindex","4",3,"value","valueChange"],["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","tabindex","7","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit","tabindex","8"],[3,"value"],["matInput","","placeholder","Number of Blocks","type","number","name","blcks","required","","tabindex","5",3,"ngModel","step","min","ngModelChange"],["blocks","ngModel"],["matInput","","placeholder","Fees (Sats/vByte)","type","number","name","chainFees","required","","tabindex","6",3,"ngModel","step","min","ngModelChange"],["fees","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[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"],["fxFlex.gt-sm","45"],["matInput","","formControlName","transactionAddress","placeholder","Bitcoin Address","tabindex","4","name","address","required",""],["fxFlex.gt-sm","25"],["formControlName","selTransType","tabindex","5"],["fxFlex.gt-sm","25","fxLayoutAlign","start end",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","8","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","tabindex","9","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["autoFocus","","matInput","","placeholder","Password","type","password","tabindex","1","formControlName","password","required",""],["fxLayout","row",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxFlex.gt-sm","25","fxLayoutAlign","start end"],["matInput","","formControlName","transactionBlocks","placeholder","Number of Blocks","type","number","name","blcks","required","","tabindex","6",3,"step","min"],["matInput","","formControlName","transactionFees","placeholder","Fees (Sats/vByte)","type","number","name","chainFees","required","","tabindex","7",3,"step","min"]],template:function(t,a){if(1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.YNc(9,J_,28,14,"form",7),e.qZA(),e.qZA(),e.qZA(),e.YNc(10,ed,34,15,"ng-template",null,8,e.W1O)),2&t){const o=e.MAs(11);e.xp6(5),e.Oqu(a.sweepAll?"Sweep All Funds":"Send Funds"),e.xp6(1),e.Q6J("mat-dialog-close",!1),e.xp6(3),e.Q6J("ngIf",!a.sweepAll)("ngIfElse",o)}},directives:[_.xw,_.yH,T.dk,_.Wh,L.lW,J.ZT,T.dn,p.O5,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,W.h,c.Q7,c.JJ,c.On,c.wV,c.qQ,$.q,f.R9,R.gD,p.sg,f.TO,Y.ey,M.BN,B.Vq,B.C0,c.sg,B.VY,c.u,B.Ic],styles:[""]}),n})(),$e=(()=>{class n{constructor(t,a){this.store=t,this.activatedRoute=a,this.sweepAll=!1,this.unSubs=[new m.x,new m.x]}ngOnInit(){this.activatedRoute.data.pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.sweepAll=t.sweepAll})}openSendFundsModal(){this.store.dispatch((0,v.qR)({payload:{data:{sweepAll:this.sweepAll,component:td}}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh),e.Y36(y.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-on-chain-send"]],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(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"button",2),e.NdJ("click",function(){return a.openSendFundsModal()}),e._uU(3),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Oqu(a.sweepAll?"Sweep All":"Send Funds"))},directives:[_.xw,_.yH,_.Wh,L.lW],styles:[""]}),n})();function nd(n,i){1&n&&e._UZ(0,"mat-progress-bar",26)}function ad(n,i){if(1&n&&e._UZ(0,"rtl-node-info",27),2&n){const t=e.oxw(3);e.Q6J("information",t.information)("showColorFieldSeparately",!0)}}function id(n,i){if(1&n&&e._UZ(0,"rtl-channel-status-info",28),2&n){const t=e.oxw(3);e.Q6J("channelsStatus",t.channelsStatus)("errorMessage",t.errorMessages[3]+" "+t.errorMessages[4])}}function od(n,i){if(1&n&&e._UZ(0,"rtl-fee-info",29),2&n){const t=e.oxw(3);e.Q6J("fees",t.fees)("errorMessage",t.errorMessages[2])}}const je=function(n){return{"dashboard-card-content":!0,"error-border":n}};function sd(n,i){if(1&n&&(e.TgZ(0,"mat-grid-tile",13),e.TgZ(1,"div",14),e.TgZ(2,"div",15),e.TgZ(3,"div",16),e._UZ(4,"fa-icon",17),e.TgZ(5,"span"),e._uU(6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",18),e.TgZ(8,"mat-card",19),e.TgZ(9,"mat-card-content",20),e.YNc(10,nd,1,0,"mat-progress-bar",21),e.TgZ(11,"div",22),e.YNc(12,ad,1,2,"rtl-node-info",23),e.YNc(13,id,1,2,"rtl-channel-status-info",24),e.YNc(14,od,1,2,"rtl-fee-info",25),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("colspan",t.cols)("rowspan",t.rows),e.xp6(4),e.Q6J("icon",t.icon),e.xp6(2),e.Oqu(t.title),e.xp6(3),e.Q6J("ngClass",e.VKq(10,je,"node"===t.id&&a.apiCallStatusNodeInfo.status===a.apiCallStatusEnum.ERROR||"status"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.ERROR||a.apiCallStatusPendingChannels.status===a.apiCallStatusEnum.ERROR)||"fee"===t.id&&a.apiCallStatusFees.status===a.apiCallStatusEnum.ERROR)),e.xp6(1),e.Q6J("ngIf","node"===t.id&&a.apiCallStatusNodeInfo.status===a.apiCallStatusEnum.INITIATED||"status"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.INITIATED||a.apiCallStatusPendingChannels.status===a.apiCallStatusEnum.INITIATED)||"fee"===t.id&&a.apiCallStatusFees.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngSwitch",t.id),e.xp6(1),e.Q6J("ngSwitchCase","node"),e.xp6(1),e.Q6J("ngSwitchCase","status"),e.xp6(1),e.Q6J("ngSwitchCase","fee")}}function ld(n,i){if(1&n&&(e.TgZ(0,"mat-grid-list",11),e.YNc(1,sd,15,12,"mat-grid-tile",12),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.nodeCards)}}function rd(n,i){1&n&&e._UZ(0,"mat-progress-bar",26)}function cd(n,i){1&n&&e.GkF(0)}function ud(n,i){if(1&n&&(e.TgZ(0,"div",33),e.YNc(1,cd,1,0,"ng-container",34),e.qZA()),2&n){const t=e.oxw(2),a=e.MAs(9),o=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet",t.apiCallStatusNetwork.status===t.apiCallStatusEnum.ERROR?a:o)}}function pd(n,i){1&n&&e.GkF(0)}function md(n,i){if(1&n&&(e.TgZ(0,"div",33),e.YNc(1,pd,1,0,"ng-container",34),e.qZA()),2&n){const t=e.oxw(2),a=e.MAs(9),o=e.MAs(13);e.xp6(1),e.Q6J("ngTemplateOutlet",t.apiCallStatusNetwork.status===t.apiCallStatusEnum.ERROR?a:o)}}function _d(n,i){1&n&&e.GkF(0)}function dd(n,i){if(1&n&&(e.TgZ(0,"div",33),e.YNc(1,_d,1,0,"ng-container",34),e.qZA()),2&n){const t=e.oxw(2),a=e.MAs(9),o=e.MAs(15);e.xp6(1),e.Q6J("ngTemplateOutlet",t.apiCallStatusNetwork.status===t.apiCallStatusEnum.ERROR?a:o)}}function hd(n,i){if(1&n&&(e.TgZ(0,"mat-grid-tile",30),e.TgZ(1,"mat-card",31),e.TgZ(2,"mat-card-content",20),e.YNc(3,rd,1,0,"mat-progress-bar",21),e.TgZ(4,"div",22),e.YNc(5,ud,2,1,"div",32),e.YNc(6,md,2,1,"div",32),e.YNc(7,dd,2,1,"div",32),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("colspan",t.cols)("rowspan",t.rows),e.xp6(2),e.Q6J("ngClass",e.VKq(8,je,a.apiCallStatusNetwork.status===a.apiCallStatusEnum.ERROR)),e.xp6(1),e.Q6J("ngIf",a.apiCallStatusNetwork.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngSwitch",t.id),e.xp6(1),e.Q6J("ngSwitchCase","general"),e.xp6(1),e.Q6J("ngSwitchCase","channels"),e.xp6(1),e.Q6J("ngSwitchCase","degrees")}}function gd(n,i){if(1&n&&(e.TgZ(0,"div",35),e.TgZ(1,"p"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Oqu(t.errorMessages[1])}}function fd(n,i){if(1&n&&(e.TgZ(0,"div",36),e.TgZ(1,"div"),e.TgZ(2,"h4",37),e._uU(3,"Network Capacity"),e.qZA(),e.TgZ(4,"div",38),e._uU(5),e.ALo(6,"number"),e.qZA(),e.qZA(),e.TgZ(7,"div"),e.TgZ(8,"h4",37),e._uU(9,"Number of Nodes"),e.qZA(),e.TgZ(10,"div",38),e._uU(11),e.ALo(12,"number"),e.qZA(),e.qZA(),e.TgZ(13,"div"),e.TgZ(14,"h4",37),e._uU(15,"Number of Channels"),e.qZA(),e.TgZ(16,"span",38),e._uU(17),e.ALo(18,"number"),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(5),e.hij("",e.lcZ(6,3,t.networkInfo.total_network_capacity)," Sats"),e.xp6(6),e.Oqu(e.lcZ(12,5,t.networkInfo.num_nodes)),e.xp6(6),e.Oqu(e.lcZ(18,7,t.networkInfo.num_channels))}}function Cd(n,i){if(1&n&&(e.TgZ(0,"div",36),e.TgZ(1,"div"),e.TgZ(2,"h4",37),e._uU(3,"Max Channel Size"),e.qZA(),e.TgZ(4,"div",38),e._uU(5),e.ALo(6,"number"),e.qZA(),e.qZA(),e.TgZ(7,"div"),e.TgZ(8,"h4",37),e._uU(9,"Avg Channel Size"),e.qZA(),e.TgZ(10,"div",38),e._uU(11),e.ALo(12,"number"),e.qZA(),e.qZA(),e.TgZ(13,"div"),e.TgZ(14,"h4",37),e._uU(15,"Min Channel Size"),e.qZA(),e.TgZ(16,"span",38),e._uU(17),e.ALo(18,"number"),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(5),e.Oqu(e.lcZ(6,3,t.networkInfo.max_channel_size)),e.xp6(6),e.Oqu(e.lcZ(12,5,t.networkInfo.avg_channel_size)),e.xp6(6),e.Oqu(e.lcZ(18,7,t.networkInfo.min_channel_size))}}function xd(n,i){if(1&n&&(e.TgZ(0,"div",36),e.TgZ(1,"div"),e.TgZ(2,"h4",37),e._uU(3,"Max Out Degree"),e.qZA(),e.TgZ(4,"div",38),e._uU(5),e.ALo(6,"number"),e.qZA(),e.qZA(),e.TgZ(7,"div"),e.TgZ(8,"h4",37),e._uU(9,"Avg Out Degree"),e.qZA(),e.TgZ(10,"div",38),e._uU(11),e.ALo(12,"number"),e.qZA(),e.qZA(),e.TgZ(13,"div",39),e._UZ(14,"h4",37),e._UZ(15,"span",38),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(5),e.Oqu(e.lcZ(6,2,t.networkInfo.max_out_degree)),e.xp6(6),e.Oqu(e.xi3(12,4,t.networkInfo.avg_out_degree,"1.0-2"))}}const Zd=function(n){return{"mt-1":n}};let yd=(()=>{class n{constructor(t,a,o){this.logger=t,this.commonService=a,this.store=o,this.faProjectDiagram=Z.o4t,this.faBolt=Z.BDt,this.faServer=Z.xf3,this.faNetworkWired=Z.kXW,this.selNode={},this.information={},this.channelsStatus={},this.networkInfo={},this.networkCards=[],this.nodeCards=[],this.screenSize="",this.screenSizeEnum=l.cu,this.userPersonaEnum=l.ol,this.errorMessages=["","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusNetwork=null,this.apiCallStatusFees=null,this.apiCallStatusChannels=null,this.apiCallStatusPendingChannels=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.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(C.bx).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=t.apiCallStatus,this.apiCallStatusNodeInfo.status===l.Bn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message),this.selNode=t.nodeSettings,this.information=t.information}),this.store.select(C.N7).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.errorMessages[1]="",this.apiCallStatusNetwork=t.apiCallStatus,this.apiCallStatusNetwork.status===l.Bn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusNetwork.message?JSON.stringify(this.apiCallStatusNetwork.message):this.apiCallStatusNetwork.message),this.networkInfo=t.networkInfo}),this.store.select(C.JG).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.errorMessages[2]="",this.apiCallStatusFees=t.apiCallStatus,this.apiCallStatusFees.status===l.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message),this.fees=t.fees}),this.store.select(C.ni).pipe((0,d.R)(this.unSubs[3])).subscribe(t=>{this.errorMessages[4]="",this.apiCallStatusPendingChannels=t.apiCallStatus,this.apiCallStatusPendingChannels.status===l.Bn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusPendingChannels.message?JSON.stringify(this.apiCallStatusPendingChannels.message):this.apiCallStatusPendingChannels.message),this.channelsStatus.pending={num_channels:t.pendingChannelsSummary.open.num_channels,capacity:t.pendingChannelsSummary.open.limbo_balance},this.channelsStatus.closing={num_channels:t.pendingChannelsSummary.closing.num_channels+t.pendingChannelsSummary.force_closing.num_channels+t.pendingChannelsSummary.waiting_close.num_channels,capacity:t.pendingChannelsSummary.total_limbo_balance}}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[4])).subscribe(t=>{this.errorMessages[3]="",this.apiCallStatusChannels=t.apiCallStatus,this.apiCallStatusChannels.status===l.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message),this.channelsStatus.active=t.channelsSummary.active,this.channelsStatus.inactive=t.channelsSummary.inactive,this.logger.info(t)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-network-info"]],decls:16,vars:6,consts:[["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"],["errorBlock",""],["generalBlock",""],["channelsBlock",""],["degreesBlock",""],["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",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"],["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,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxFlex","20"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,ld,2,1,"mat-grid-list",1),e.TgZ(2,"div",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span",4),e._uU(5,"Network"),e.qZA(),e.qZA(),e.TgZ(6,"mat-grid-list",5),e.YNc(7,hd,8,10,"mat-grid-tile",6),e.qZA(),e.qZA(),e.YNc(8,gd,3,1,"ng-template",null,7,e.W1O),e.YNc(10,fd,19,9,"ng-template",null,8,e.W1O),e.YNc(12,Cd,19,9,"ng-template",null,9,e.W1O),e.YNc(14,xd,16,7,"ng-template",null,10,e.W1O)),2&t&&(e.xp6(1),e.Q6J("ngIf",a.selNode.userPersona!==a.userPersonaEnum.OPERATOR),e.xp6(1),e.Q6J("ngClass",e.VKq(4,Zd,a.screenSize!==a.screenSizeEnum.XS)),e.xp6(1),e.Q6J("icon",a.faProjectDiagram),e.xp6(4),e.Q6J("ngForOf",a.networkCards))},directives:[_.xw,_.Wh,p.O5,p.mk,q.oO,M.BN,ce.Il,p.sg,ce.DX,_.yH,T.a8,T.dn,p.RF,p.n9,P.pW,Fe,Ne,Ue,p.tP],pipes:[p.JJ],styles:[""]}),n})();function Td(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",8),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().activeLink=s.link}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw();e.s9C("routerLink",t.link),e.Q6J("active",a.activeLink===t.link),e.xp6(1),e.Oqu(t.name)}}let bd=(()=>{class n{constructor(t){this.router=t,this.faDownload=Z.q7m,this.links=[{link:"bckup",name:"Backup"},{link:"restore",name:"Restore"}],this.activeLink=this.links[0].link,this.unSubs=[new m.x,new m.x]}ngOnInit(){const t=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(a=>a instanceof y.Av)).subscribe({next:a=>{const o=this.links.find(s=>a.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-backup"]],decls:11,vars:2,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-tab-nav-bar",""],["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"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Channels Backup"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e.TgZ(7,"nav",5),e.YNc(8,Td,2,3,"div",6),e.qZA(),e.TgZ(9,"div",7),e._UZ(10,"router-outlet"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faDownload),e.xp6(7),e.Q6J("ngForOf",a.links))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,D.BU,p.sg,_.yH,y.lC,D.Nj,y.rH],styles:[""]}),n})();function Ad(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",23),e.TgZ(1,"h4",24),e._uU(2),e.qZA(),e.TgZ(3,"div",25),e.TgZ(4,"button",26),e.NdJ("click",function(){return e.CHM(t),e.oxw().onRestoreChannels({})}),e._uU(5,"Restore All"),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(2),e.hij("Restore folder location: ",t.selNode.channelBackupPath,"/restore")}}function vd(n,i){if(1&n&&(e.TgZ(0,"div",27),e.TgZ(1,"h4",24),e._uU(2),e.qZA(),e.TgZ(3,"h4",28),e._uU(4,"All channel backup file not found! To perform channel restoration, channel backup file/s must be placed at the above location."),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.hij("Restore folder location: ",t.selNode.channelBackupPath,"/restore")}}function wd(n,i){if(1&n&&(e.TgZ(0,"div",27),e.TgZ(1,"h4",24),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.hij("Restore folder location: ",t.selNode.channelBackupPath,"/restore")}}function qd(n,i){1&n&&e._UZ(0,"mat-progress-bar",29)}function Sd(n,i){1&n&&(e.TgZ(0,"th",30),e._uU(1," Channel Point "),e.qZA())}const Ld=function(n){return{"max-width":n}};function kd(n,i){if(1&n&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,Ld,a.screenSize===a.screenSizeEnum.XS?"10rem":"45rem")),e.xp6(1),e.Oqu(null==t?null:t.channel_point)}}function Fd(n,i){1&n&&(e.TgZ(0,"th",32),e.TgZ(1,"span",33),e._uU(2,"Actions"),e.qZA(),e.qZA())}function Ud(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",34),e.TgZ(1,"span",33),e.TgZ(2,"button",35),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onRestoreChannels(s)}),e._uU(3,"Restore"),e.qZA(),e.qZA(),e.qZA()}}function Nd(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No singular channel backups available."),e.qZA())}function Od(n,i){if(1&n&&(e.TgZ(0,"td",36),e.YNc(1,Nd,2,0,"p",37),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.channels||!t.channels.data||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)}}const Rd=function(n){return{"display-none":n}};function Id(n,i){if(1&n&&e._UZ(0,"tr",38),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Rd,t.channels&&t.channels.data&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function Md(n,i){1&n&&e._UZ(0,"tr",39)}function Dd(n,i){1&n&&e._UZ(0,"tr",40)}const Pd=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Jd=function(){return["no_channel"]};let Ed=(()=>{class n{constructor(t,a,o,s){this.logger=t,this.store=a,this.lndEffects=o,this.commonService=s,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.selNode={},this.displayedColumns=["channel_point","actions"],this.channelsData=[],this.allRestoreExists=!1,this.flgLoading=[!0],this.flgSticky=!1,this.selFilter="",this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.dispatch((0,b.tb)()),this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.lndEffects.setRestoreChannelList.pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.allRestoreExists=t.all_restore_exists,this.channelsData=t.files,this.channelsData.length>0&&this.loadRestoreTable(this.channelsData),("error"!==this.flgLoading[0]||t&&t.files)&&(this.flgLoading[0]=!1),this.logger.info(t)})}ngAfterViewInit(){this.channelsData&&this.channelsData.length>0&&this.loadRestoreTable(this.channelsData)}onRestoreChannels(t){this.store.dispatch((0,b.vV)({payload:{channelPoint:t.channel_point?t.channel_point:"ALL"}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}loadRestoreTable(t){this.channels=new r.by([...t]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.channels.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.channels.paginator=this.paginator,this.applyFilter()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(ee.l),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-restore-table"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Channels")}])],decls:24,vars:17,consts:[["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","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","channel_point"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["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","",3,"ngStyle"],["mat-header-cell","",1,"pr-3"],["fxLayoutAlign","end center"],["mat-cell",""],["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(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,Ad,6,1,"div",1),e.YNc(2,vd,5,1,"div",2),e.YNc(3,wd,3,1,"div",2),e.TgZ(4,"div",3),e._UZ(5,"div",4),e.TgZ(6,"mat-form-field",5),e.TgZ(7,"input",6),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.YNc(9,qd,1,0,"mat-progress-bar",8),e.TgZ(10,"table",9,10),e.ynx(12,11),e.YNc(13,Sd,2,0,"th",12),e.YNc(14,kd,2,4,"td",13),e.BQk(),e.ynx(15,14),e.YNc(16,Fd,3,0,"th",15),e.YNc(17,Ud,4,0,"td",16),e.BQk(),e.ynx(18,17),e.YNc(19,Od,2,1,"td",18),e.BQk(),e.YNc(20,Id,1,3,"tr",19),e.YNc(21,Md,1,0,"tr",20),e.YNc(22,Dd,1,0,"tr",21),e.qZA(),e.qZA(),e._UZ(23,"mat-paginator",22),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",a.allRestoreExists),e.xp6(1),e.Q6J("ngIf",!a.allRestoreExists&&(!a.channels||(null==a.channels||null==a.channels.data?null:a.channels.data.length)<=0)),e.xp6(1),e.Q6J("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.xp6(4),e.Q6J("ngModel",a.selFilter),e.xp6(2),e.Q6J("ngIf",!0===a.flgLoading[0]),e.xp6(1),e.Q6J("dataSource",a.channels)("ngClass",e.VKq(14,Pd,"error"===a.flgLoading[0])),e.xp6(10),e.Q6J("matFooterRowDef",e.DdM(16,Jd)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,p.O5,_.Wh,_.yH,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,L.lW,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,r.yh,r.Q2,r.XQ,r.Gk],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function Qd(n,i){1&n&&e._UZ(0,"mat-progress-bar",31)}function Yd(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1," Channel Point "),e.qZA())}const Hd=function(n){return{"max-width":n}};function Bd(n,i){if(1&n&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,Hd,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.Oqu(null==t?null:t.channel_point)}}function Vd(n,i){1&n&&(e.TgZ(0,"th",34),e.TgZ(1,"span",35),e._uU(2,"Actions"),e.qZA(),e.qZA())}function Gd(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",36),e.TgZ(1,"div",37),e.TgZ(2,"mat-select",38),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",39),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw().onChannelClick(u,o)}),e._uU(5,"View Info"),e.qZA(),e.TgZ(6,"mat-option",39),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onBackupChannels(s)}),e._uU(7,"Backup"),e.qZA(),e.TgZ(8,"mat-option",39),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onDownloadBackup(s)}),e._uU(9,"Download Backup"),e.qZA(),e.TgZ(10,"mat-option",39),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onVerifyChannels(s)}),e._uU(11,"Verify"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function zd(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No channel available."),e.qZA())}function Wd(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting channels..."),e.qZA())}function Xd(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function $d(n,i){if(1&n&&(e.TgZ(0,"td",40),e.YNc(1,zd,2,0,"p",41),e.YNc(2,Wd,2,0,"p",41),e.YNc(3,Xd,2,1,"p",41),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const jd=function(n){return{"display-none":n}};function Kd(n,i){if(1&n&&e._UZ(0,"tr",42),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,jd,(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function eh(n,i){1&n&&e._UZ(0,"tr",43)}function th(n,i){1&n&&e._UZ(0,"tr",44)}const nh=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},ah=function(){return["no_channel"]};let ih=(()=>{class n{constructor(t,a,o,s){this.logger=t,this.store=a,this.actions=o,this.commonService=s,this.faInfoCircle=Z.sqG,this.faExclamationTriangle=Z.eHv,this.faArchive=Z.N2j,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.selNode={},this.displayedColumns=["channel_point","actions"],this.channelsData=[],this.flgSticky=!1,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.channelsData=t.channels,this.channelsData.length>0&&this.loadBackupTable(this.channelsData),this.logger.info(t)}),this.actions.pipe((0,d.R)(this.unSubs[2]),(0,E.h)(t=>t.type===l.uR.SET_CHANNELS_LND||t.type===l.pg.SHOW_FILE)).subscribe(t=>{t.type===l.uR.SET_CHANNELS_LND&&(this.selectedChannel=null),t.type===l.pg.SHOW_FILE&&(this.commonService.downloadFile(t.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(t){this.store.dispatch((0,b.Vv)({payload:{uiMessage:l.m6.BACKUP_CHANNEL,channelPoint:t.channel_point?t.channel_point:"ALL",showMessage:""}}))}onVerifyChannels(t){this.store.dispatch((0,b.Cp)({payload:{channelPoint:t.channel_point?t.channel_point:"ALL"}}))}onDownloadBackup(t){this.selectedChannel=t,this.store.dispatch((0,v.dc)({payload:{channelPoint:t.channel_point?t.channel_point:"all"}}))}onChannelClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{channel:t,showCopy:!1,component:xe}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}loadBackupTable(t){this.channels=new r.by(t?[...t]:[]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.channels.paginator=this.paginator,this.channels.filterPredicate=(a,o)=>((a.active?"active":"inactive")+(a.channel_point?a.channel_point.toLowerCase():"")+(a.chan_id?a.chan_id.toLowerCase():"")+(a.remote_pubkey?a.remote_pubkey.toLowerCase():"")+(a.remote_alias?a.remote_alias.toLowerCase():"")+(a.capacity?a.capacity:"")+(a.local_balance?a.local_balance:"")+(a.remote_balance?a.remote_balance:"")+(a.total_satoshis_sent?a.total_satoshis_sent:"")+(a.total_satoshis_received?a.total_satoshis_received:"")+(a.commit_fee?a.commit_fee:"")+(a.private?"private":"public")).includes(o),this.applyFilter()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(G.eX),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-backup-table"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Channels")}])],decls:42,vars:18,consts:[["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","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","channel_point"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",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","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","",1,"pr-3"],["fxLayoutAlign","end center"],["mat-cell","","fxLayoutAlign","end center"],[1,"bordered-box","table-actions-select"],["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(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span"),e._uU(5,"Save your backup files in a redundant location."),e.qZA(),e.qZA(),e.TgZ(6,"div",4),e._UZ(7,"fa-icon",3),e.TgZ(8,"span"),e.TgZ(9,"strong"),e._uU(10,"Backup Folder Location: "),e.qZA(),e._uU(11),e.qZA(),e.qZA(),e.TgZ(12,"div",5),e.TgZ(13,"button",6),e.NdJ("click",function(){return a.onVerifyChannels({})}),e._uU(14,"Verify All"),e.qZA(),e.TgZ(15,"button",7),e.NdJ("click",function(){return a.onBackupChannels({})}),e._uU(16,"Backup All"),e.qZA(),e.TgZ(17,"button",8),e.NdJ("click",function(){return a.onDownloadBackup({})}),e._uU(18,"Download Backup"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",9),e.TgZ(20,"div",10),e._UZ(21,"fa-icon",11),e.TgZ(22,"span",12),e._uU(23,"Backups"),e.qZA(),e.qZA(),e.TgZ(24,"mat-form-field",13),e.TgZ(25,"input",14),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"div",15),e.YNc(27,Qd,1,0,"mat-progress-bar",16),e.TgZ(28,"table",17,18),e.ynx(30,19),e.YNc(31,Yd,2,0,"th",20),e.YNc(32,Bd,2,4,"td",21),e.BQk(),e.ynx(33,22),e.YNc(34,Vd,3,0,"th",23),e.YNc(35,Gd,12,0,"td",24),e.BQk(),e.ynx(36,25),e.YNc(37,$d,4,3,"td",26),e.BQk(),e.YNc(38,Kd,1,3,"tr",27),e.YNc(39,eh,1,0,"tr",28),e.YNc(40,th,1,0,"tr",29),e.qZA(),e.qZA(),e._UZ(41,"mat-paginator",30),e.qZA()),2&t&&(e.xp6(3),e.Q6J("icon",a.faExclamationTriangle),e.xp6(4),e.Q6J("icon",a.faInfoCircle),e.xp6(4),e.hij("",a.selNode.channelBackupPath,"."),e.xp6(10),e.Q6J("icon",a.faArchive),e.xp6(4),e.Q6J("ngModel",a.selFilter),e.xp6(2),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.channels)("ngClass",e.VKq(15,nh,""!==a.errorMessage)),e.xp6(10),e.Q6J("matFooterRowDef",e.DdM(17,ah)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,_.Wh,_.yH,M.BN,L.lW,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,p.O5,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,R.gD,R.$L,Y.ey,r.yh,r.Q2,r.XQ,r.Gk],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 70%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function oh(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",8),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().activeLink=s.link}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw();e.s9C("routerLink",t.link),e.Q6J("active",a.activeLink===t.link),e.xp6(1),e.Oqu(t.name)}}let sh=(()=>{class n{constructor(t){this.router=t,this.faUserCheck=Z.hkK,this.links=[{link:"sign",name:"Sign"},{link:"verify",name:"Verify"}],this.activeLink=this.links[0].link,this.unSubs=[new m.x,new m.x]}ngOnInit(){const t=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(a=>a instanceof y.Av)).subscribe({next:a=>{const o=this.links.find(s=>a.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-sign-verify-message"]],decls:11,vars:2,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-tab-nav-bar",""],["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"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Sign/Verify Message"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e.TgZ(7,"nav",5),e.YNc(8,oh,2,3,"div",6),e.qZA(),e.TgZ(9,"div",7),e._UZ(10,"router-outlet"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faUserCheck),e.xp6(7),e.Q6J("ngForOf",a.links))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,D.BU,p.sg,_.yH,y.lC,D.Nj,y.rH],styles:[""]}),n})();function lh(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Message is required."),e.qZA())}let rh=(()=>{class n{constructor(t,a,o){this.dataService=t,this.snackBar=a,this.logger=o,this.message="",this.signedMessage="",this.signature="",this.unSubs=[new m.x,new m.x]}onSign(){if(!this.message||""===this.message)return!0;this.dataService.signMessage(this.message).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.signedMessage=this.message,this.signature=t.signature})}onMessageChange(){this.signedMessage!==this.message&&(this.signature="")}onCopyField(t){this.snackBar.open("Signature copied."),this.logger.info("Copied Text: "+t)}resetData(){this.message="",this.signature="",this.signedMessage=""}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(j.D),e.Y36(te.ux),e.Y36(F.mQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-sign"]],decls:20,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to sign","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[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,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","4","rtlClipboard","","type","button",3,"payload","copied"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"form",1,2),e.TgZ(3,"mat-form-field",3),e.TgZ(4,"textarea",4),e.NdJ("ngModelChange",function(s){return a.message=s})("keyup",function(){return a.onMessageChange()}),e.qZA(),e.YNc(5,lh,2,0,"mat-error",5),e.qZA(),e.TgZ(6,"div",6),e.TgZ(7,"button",7),e.NdJ("click",function(){return a.resetData()}),e._uU(8,"Clear Field"),e.qZA(),e.TgZ(9,"button",8),e.NdJ("click",function(){return a.onSign()}),e._uU(10,"Sign"),e.qZA(),e.qZA(),e._UZ(11,"mat-divider",9),e.TgZ(12,"div",10),e.TgZ(13,"p"),e._uU(14,"Generated Signature"),e.qZA(),e.qZA(),e.TgZ(15,"div",11),e._uU(16),e.qZA(),e.TgZ(17,"div",12),e.TgZ(18,"button",13),e.NdJ("copied",function(s){return a.onCopyField(s)}),e._uU(19,"Copy Signature"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngModel",a.message),e.xp6(1),e.Q6J("ngIf",!a.message),e.xp6(6),e.Q6J("inset",!0),e.xp6(5),e.Oqu(a.signature),e.xp6(2),e.Q6J("payload",a.signature))},directives:[_.xw,_.yH,_.Wh,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,W.h,c.Q7,c.JJ,c.On,p.O5,L.lW,z.d,se.y,f.TO],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function ch(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Message is required."),e.qZA())}function uh(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Signature is required."),e.qZA())}function ph(n,i){1&n&&(e.TgZ(0,"p",13),e.TgZ(1,"mat-icon",14),e._uU(2,"close"),e.qZA(),e._uU(3,"Verification failed, please double check message and signature"),e.qZA())}function mh(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Pubkey Used"),e.qZA())}function _h(n,i){if(1&n&&(e.TgZ(0,"div",20),e.TgZ(1,"p"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw(2);e.xp6(2),e.Oqu(null==t.verifyRes?null:t.verifyRes.pubkey)}}function dh(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",21),e.TgZ(1,"button",22),e.NdJ("copied",function(o){return e.CHM(t),e.oxw(2).onCopyField(o)}),e._uU(2,"Copy Pubkey"),e.qZA(),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("payload",null==t.verifyRes?null:t.verifyRes.pubkey)}}function hh(n,i){if(1&n&&(e.TgZ(0,"div",15),e._UZ(1,"mat-divider",16),e.TgZ(2,"div",17),e.YNc(3,mh,2,0,"p",5),e.qZA(),e.YNc(4,_h,3,1,"div",18),e.YNc(5,dh,3,1,"div",19),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("inset",!0),e.xp6(2),e.Q6J("ngIf",t.verifyRes.valid),e.xp6(1),e.Q6J("ngIf",t.verifyRes.valid),e.xp6(1),e.Q6J("ngIf",t.verifyRes.valid)}}let gh=(()=>{class n{constructor(t,a,o){this.dataService=t,this.snackBar=a,this.logger=o,this.message="",this.verifiedMessage="",this.signature="",this.verifiedSignature="",this.showVerifyStatus=!1,this.verifyRes={pubkey:"",valid:null},this.unSubs=[new m.x,new m.x]}onVerify(){if(!this.message||""===this.message||!this.signature||""===this.signature)return!0;this.dataService.verifyMessage(this.message,this.signature).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.verifyRes=t,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(t){this.snackBar.open("Pubkey copied."),this.logger.info("Copied Text: "+t)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(j.D),e.Y36(te.ux),e.Y36(F.mQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-verify"]],decls:17,vars:6,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to verify","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["matInput","","placeholder","Signature provided","name","signature","tabindex","2","required","",3,"ngModel","ngModelChange","keyup"],["sign","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 h-4 padding-gap",4,"ngIf"],["fxLayout","row","class","mt-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","5","rtlClipboard","","type","button",3,"payload","copied"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"form",1,2),e.TgZ(3,"mat-form-field",3),e.TgZ(4,"textarea",4),e.NdJ("ngModelChange",function(s){return a.message=s})("keyup",function(){return a.onChange()}),e.qZA(),e.YNc(5,ch,2,0,"mat-error",5),e.qZA(),e.TgZ(6,"mat-form-field",3),e.TgZ(7,"input",6,7),e.NdJ("ngModelChange",function(s){return a.signature=s})("keyup",function(){return a.onChange()}),e.qZA(),e.YNc(9,uh,2,0,"mat-error",5),e.qZA(),e.YNc(10,ph,4,0,"p",8),e.TgZ(11,"div",9),e.TgZ(12,"button",10),e.NdJ("click",function(){return a.resetData()}),e._uU(13,"Clear Fields"),e.qZA(),e.TgZ(14,"button",11),e.NdJ("click",function(){return a.onVerify()}),e._uU(15,"Verify"),e.qZA(),e.qZA(),e.YNc(16,hh,6,4,"div",12),e.qZA(),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngModel",a.message),e.xp6(1),e.Q6J("ngIf",!a.message),e.xp6(2),e.Q6J("ngModel",a.signature),e.xp6(2),e.Q6J("ngIf",!a.signature),e.xp6(1),e.Q6J("ngIf",a.showVerifyStatus&&!a.verifyRes.valid),e.xp6(6),e.Q6J("ngIf",a.showVerifyStatus&&a.verifyRes.valid))},directives:[_.xw,_.yH,_.Wh,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,W.h,c.Q7,c.JJ,c.On,p.O5,L.lW,f.TO,K.Hw,z.d,se.y],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();var fh=h(9442),k=h(1643);function Ch(n,i){if(1&n&&(e.TgZ(0,"div",3),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.errorMessage)}}function xh(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",9),e.TgZ(1,"div",10),e._uU(2,"Non Routing Peers"),e.qZA(),e.TgZ(3,"mat-form-field",11),e.TgZ(4,"input",12),e.NdJ("keyup",function(){return e.CHM(t),e.oxw(2).applyFilter()})("ngModelChange",function(o){return e.CHM(t),e.oxw(2).filter=o}),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(4),e.Q6J("ngModel",t.filter)}}function Zh(n,i){1&n&&e._UZ(0,"mat-progress-bar",35)}function yh(n,i){1&n&&(e.TgZ(0,"th",36),e._uU(1,"Channel ID"),e.qZA())}const Ke=function(n){return{"max-width":n}};function Th(n,i){if(1&n&&(e.TgZ(0,"td",37),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(3);e.Q6J("ngStyle",e.VKq(2,Ke,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.Oqu(t.chan_id)}}function bh(n,i){1&n&&(e.TgZ(0,"th",36),e._uU(1,"Peer Alias"),e.qZA())}function Ah(n,i){if(1&n&&(e.TgZ(0,"td",37),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(3);e.Q6J("ngStyle",e.VKq(2,Ke,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.Oqu(t.remote_alias)}}function vh(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Sats Sent"),e.qZA())}function wh(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",40),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.total_satoshis_sent))}}function qh(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Sats Received"),e.qZA())}function Sh(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",40),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.total_satoshis_received))}}function Lh(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Local Balance (Sats)"),e.qZA())}function kh(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",40),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.local_balance))}}function Fh(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Remote Balance (Sats)"),e.qZA())}function Uh(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",40),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.remote_balance))}}function Nh(n,i){1&n&&(e.TgZ(0,"th",41),e.TgZ(1,"span",40),e._uU(2,"Actions"),e.qZA(),e.qZA())}function Oh(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",42),e.TgZ(1,"button",43),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw(3).onManagePeer(s)}),e._uU(2,"Manage"),e.qZA(),e.qZA()}}function Rh(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"All peers are routing."),e.qZA())}function Ih(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting non routing peers..."),e.qZA())}function Mh(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(4);e.xp6(1),e.Oqu(t.errorMessage)}}function Dh(n,i){if(1&n&&(e.TgZ(0,"td",44),e.YNc(1,Rh,2,0,"p",45),e.YNc(2,Ih,2,0,"p",45),e.YNc(3,Mh,2,1,"p",45),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",(!(null!=t.NonRoutingPeers&&t.NonRoutingPeers.data)||(null==t.NonRoutingPeers||null==t.NonRoutingPeers.data?null:t.NonRoutingPeers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.NonRoutingPeers&&t.NonRoutingPeers.data)||(null==t.NonRoutingPeers||null==t.NonRoutingPeers.data?null:t.NonRoutingPeers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.NonRoutingPeers&&t.NonRoutingPeers.data)||(null==t.NonRoutingPeers||null==t.NonRoutingPeers.data?null:t.NonRoutingPeers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Ph=function(n){return{"display-none":n}};function Jh(n,i){if(1&n&&e._UZ(0,"tr",46),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,Ph,(null==t.NonRoutingPeers||null==t.NonRoutingPeers.data?null:t.NonRoutingPeers.data.length)>0))}}function Eh(n,i){1&n&&e._UZ(0,"tr",47)}function Qh(n,i){1&n&&e._UZ(0,"tr",48)}const Yh=function(){return["no_non_routing_event"]};function Hh(n,i){if(1&n&&(e.TgZ(0,"div",13),e.YNc(1,Zh,1,0,"mat-progress-bar",14),e.TgZ(2,"table",15,16),e.ynx(4,17),e.YNc(5,yh,2,0,"th",18),e.YNc(6,Th,2,4,"td",19),e.BQk(),e.ynx(7,20),e.YNc(8,bh,2,0,"th",18),e.YNc(9,Ah,2,4,"td",19),e.BQk(),e.ynx(10,21),e.YNc(11,vh,2,0,"th",22),e.YNc(12,wh,4,3,"td",23),e.BQk(),e.ynx(13,24),e.YNc(14,qh,2,0,"th",22),e.YNc(15,Sh,4,3,"td",23),e.BQk(),e.ynx(16,25),e.YNc(17,Lh,2,0,"th",22),e.YNc(18,kh,4,3,"td",23),e.BQk(),e.ynx(19,26),e.YNc(20,Fh,2,0,"th",22),e.YNc(21,Uh,4,3,"td",23),e.BQk(),e.ynx(22,27),e.YNc(23,Nh,3,0,"th",28),e.YNc(24,Oh,3,0,"td",29),e.BQk(),e.ynx(25,30),e.YNc(26,Dh,4,3,"td",31),e.BQk(),e.YNc(27,Jh,1,3,"tr",32),e.YNc(28,Eh,1,0,"tr",33),e.YNc(29,Qh,1,0,"tr",34),e.qZA(),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",t.NonRoutingPeers),e.xp6(25),e.Q6J("matFooterRowDef",e.DdM(6,Yh)),e.xp6(1),e.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns)}}function Bh(n,i){if(1&n&&(e.TgZ(0,"div",4),e.YNc(1,xh,5,1,"div",5),e.YNc(2,Hh,30,7,"div",6),e._UZ(3,"mat-paginator",7,8),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",""===t.errorMessage),e.xp6(1),e.Q6J("ngIf",""===t.errorMessage),e.xp6(1),e.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let Vh=(()=>{class n{constructor(t,a,o,s,u){this.logger=t,this.commonService=a,this.store=o,this.router=s,this.activatedRoute=u,this.routingPeersData=[],this.displayedColumns=[],this.NonRoutingPeers=new r.by([]),this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.filter="",this.activeChannels=[],this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["remote_alias","local_balance","remote_balance","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["chan_id","remote_alias","local_balance","remote_balance","actions"]):(this.flgSticky=!0,this.displayedColumns=["chan_id","remote_alias","total_satoshis_received","total_satoshis_sent","local_balance","remote_balance","actions"])}ngOnInit(){this.store.select(C.Bo).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{var a;this.errorMessage="",this.apiCallStatus=t.apiCallStatus,(null===(a=t.apiCallStatus)||void 0===a?void 0:a.status)===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.routingPeersData=t.forwardingHistory.forwarding_events?t.forwardingHistory.forwarding_events:[],this.routingPeersData.length>0&&this.sort&&this.paginator&&this.loadNonRoutingPeersTable(this.routingPeersData),this.logger.info(t.apiCallStatus),this.logger.info(t.forwardingHistory)}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.activeChannels=t.channels,this.logger.info(t)})}ngAfterViewInit(){this.routingPeersData.length>0&&this.loadNonRoutingPeersTable(this.routingPeersData)}onManagePeer(t){this.router.navigate(["../../","connections","channels","open"],{relativeTo:this.activatedRoute,state:{filter:t.chan_id}})}loadNonRoutingPeersTable(t){if(t.length>0){const a=this.activeChannels.filter(o=>t.findIndex(s=>s.chan_id_in===o.chan_id||s.chan_id_out===o.chan_id)<0);this.NonRoutingPeers=new r.by(a),this.NonRoutingPeers.sort=this.sort,this.NonRoutingPeers.filterPredicate=(o,s)=>JSON.stringify(o).toLowerCase().includes(s),this.NonRoutingPeers.paginator=this.paginator,this.logger.info(this.NonRoutingPeers)}else this.NonRoutingPeers=new r.by([]);this.applyFilter()}applyFilter(){this.NonRoutingPeers.filter=this.filter.toLowerCase()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh),e.Y36(y.F0),e.Y36(y.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-non-routing-peers"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Non routing peers")}])],decls:3,vars:2,consts:[["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"],["paginator",""],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","chan_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","remote_alias"],["matColumnDef","total_satoshis_sent"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","total_satoshis_received"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-2","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","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pr-3"],["mat-cell","","fxLayoutAlign","end center",1,"pl-2"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,Ch,2,1,"div",1),e.YNc(2,Bh,5,5,"div",2),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",""!==a.errorMessage),e.xp6(1),e.Q6J("ngIf",""===a.errorMessage))},directives:[_.xw,_.yH,_.Wh,p.O5,S.NW,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,r.BZ,A.YE,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,L.lW,r.yh,r.Q2,p.mk,q.oO,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-chan_id[_ngcontent-%COMP%], .mat-column-alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})(),Gh=(()=>{class n{constructor(t){this.dataService=t,this.paths="",this.unSubs=[new m.x,new m.x]}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 t=this.payment.htlcs[0].route.hops.reduce((a,o)=>""===a?o.pub_key:a+","+o.pub_key,"");this.dataService.getAliasesFromPubkeys(t,!0).pipe((0,d.R)(this.unSubs[0])).subscribe(a=>{this.paths=a.reduce((o,s)=>""===o?s:o+"\n"+s,"")})}this.payment.payment_request&&""!==this.payment.payment_request.trim()&&this.dataService.decodePayment(this.payment.payment_request,!1).pipe((0,V.q)(1)).subscribe(t=>{t&&t.description&&""!==t.description&&(this.payment.description=t.description)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(j.D))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-payment-lookup"]],inputs:{payment:"payment"},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(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"mat-card-content",1),e.TgZ(2,"div",2),e.TgZ(3,"h4",3),e._uU(4,"Payment Hash"),e.qZA(),e.TgZ(5,"span",4),e._uU(6),e.qZA(),e.qZA(),e._UZ(7,"mat-divider",5),e.TgZ(8,"div",2),e.TgZ(9,"h4",3),e._uU(10,"Payment Preimage"),e.qZA(),e.TgZ(11,"span",4),e.TgZ(12,"div"),e._uU(13),e.qZA(),e.qZA(),e.qZA(),e._UZ(14,"mat-divider",5),e.TgZ(15,"div",2),e.TgZ(16,"h4",3),e._uU(17,"Payment Request"),e.qZA(),e.TgZ(18,"span",4),e.TgZ(19,"div"),e._uU(20),e.qZA(),e.qZA(),e.qZA(),e._UZ(21,"mat-divider",5),e.TgZ(22,"div",2),e.TgZ(23,"h4",3),e._uU(24,"Description"),e.qZA(),e.TgZ(25,"span",4),e.TgZ(26,"div"),e._uU(27),e.qZA(),e.qZA(),e.qZA(),e._UZ(28,"mat-divider",5),e.TgZ(29,"div",6),e.TgZ(30,"div",7),e.TgZ(31,"h4",3),e._uU(32,"Status"),e.qZA(),e.TgZ(33,"span",4),e.TgZ(34,"div"),e._uU(35),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"div",7),e.TgZ(37,"h4",3),e._uU(38,"Creation Date"),e.qZA(),e.TgZ(39,"span",4),e.TgZ(40,"div"),e._uU(41),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e._UZ(42,"mat-divider",5),e.TgZ(43,"div",6),e.TgZ(44,"div",7),e.TgZ(45,"h4",3),e._uU(46,"Value (mSats)"),e.qZA(),e.TgZ(47,"span",4),e.TgZ(48,"div"),e._uU(49),e.ALo(50,"number"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(51,"div",7),e.TgZ(52,"h4",3),e._uU(53,"Fee (mSats)"),e.qZA(),e.TgZ(54,"span",4),e.TgZ(55,"div"),e._uU(56),e.ALo(57,"number"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e._UZ(58,"mat-divider",5),e.TgZ(59,"div",2),e.TgZ(60,"h4",3),e._uU(61,"Path"),e.qZA(),e.TgZ(62,"span",4),e.TgZ(63,"div"),e._uU(64),e.qZA(),e.qZA(),e.qZA(),e._UZ(65,"mat-divider",5),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Oqu(null==a.payment?null:a.payment.payment_hash),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(null==a.payment?null:a.payment.payment_preimage),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(null==a.payment?null:a.payment.payment_request),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(null==a.payment?null:a.payment.description),e.xp6(1),e.Q6J("inset",!0),e.xp6(7),e.Oqu(null==a.payment?null:a.payment.status),e.xp6(6),e.Oqu(null==a.payment?null:a.payment.creation_date),e.xp6(1),e.Q6J("inset",!0),e.xp6(7),e.Oqu(e.lcZ(50,16,null==a.payment?null:a.payment.value_msat)),e.xp6(7),e.Oqu(e.lcZ(57,18,null==a.payment?null:a.payment.fee_msat)),e.xp6(2),e.Q6J("inset",!0),e.xp6(6),e.Oqu(a.paths),e.xp6(1),e.Q6J("inset",!0))},directives:[_.xw,_.yH,_.Wh,T.dn,z.d],pipes:[p.JJ],styles:[""]}),n})();var zh=h(159);function Wh(n,i){if(1&n&&e._UZ(0,"qr-code",22),2&n){const t=e.oxw();e.Q6J("value",null==t.invoice?null:t.invoice.payment_request)("size",t.qrWidth)("errorCorrectionLevel","L")}}function Xh(n,i){1&n&&(e.TgZ(0,"span",23),e._uU(1,"N/A"),e.qZA())}function $h(n,i){if(1&n&&e._UZ(0,"qr-code",22),2&n){const t=e.oxw();e.Q6J("value",null==t.invoice?null:t.invoice.payment_request)("size",t.qrWidth)("errorCorrectionLevel","L")}}function jh(n,i){1&n&&(e.TgZ(0,"span",24),e._uU(1,"QR Code Not Applicable"),e.qZA())}function Kh(n,i){1&n&&e._UZ(0,"mat-divider",16),2&n&&e.Q6J("inset",!0)}function eg(n,i){1&n&&(e.ynx(0),e._uU(1," (zero amount) "),e.BQk())}const Ae=function(n){return{"mr-0":n}};function tg(n,i){if(1&n&&e._UZ(0,"span",38),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,Ae,t.screenSize===t.screenSizeEnum.XS))}}function ng(n,i){if(1&n&&e._UZ(0,"span",39),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,Ae,t.screenSize===t.screenSizeEnum.XS))}}function ag(n,i){if(1&n&&e._UZ(0,"span",40),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,Ae,t.screenSize===t.screenSizeEnum.XS))}}function ig(n,i){if(1&n&&(e.TgZ(0,"div",27),e.TgZ(1,"div",32),e.TgZ(2,"span",33),e.YNc(3,tg,1,3,"span",34),e.YNc(4,ng,1,3,"span",35),e.YNc(5,ag,1,3,"span",36),e._uU(6),e.qZA(),e.TgZ(7,"span",37),e._uU(8),e.ALo(9,"number"),e.qZA(),e.qZA(),e._UZ(10,"mat-divider",16),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.xp6(3),e.Q6J("ngIf","SETTLED"===t.state),e.xp6(1),e.Q6J("ngIf","ACCEPTED"===t.state),e.xp6(1),e.Q6J("ngIf","CANCELED"===t.state),e.xp6(1),e.hij(" ",t.chan_id," "),e.xp6(2),e.Oqu(e.xi3(9,6,+t.amt_msat/1e3||0,a.getDecimalFormat(t))),e.xp6(2),e.Q6J("inset",!0)}}function og(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",11),e.TgZ(1,"mat-expansion-panel",25),e.NdJ("opened",function(){return e.CHM(t),e.oxw().flgOpened=!0})("closed",function(){return e.CHM(t),e.oxw().onExpansionClosed()}),e.TgZ(2,"mat-expansion-panel-header"),e.TgZ(3,"mat-panel-title"),e.TgZ(4,"h4",26),e._uU(5,"HTLCs"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",27),e.TgZ(7,"div",28),e.TgZ(8,"span",29),e._uU(9,"Channel ID"),e.qZA(),e.TgZ(10,"span",30),e._uU(11,"Amount (Sats)"),e.qZA(),e.qZA(),e._UZ(12,"mat-divider",16),e.YNc(13,ig,11,9,"div",31),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(12),e.Q6J("inset",!0),e.xp6(1),e.Q6J("ngForOf",null==t.invoice?null:t.invoice.htlcs)}}function sg(n,i){1&n&&e._UZ(0,"mat-divider",16),2&n&&e.Q6J("inset",!0)}const et=function(n){return{"display-none":n}};let lg=(()=>{class n{constructor(t){this.commonService=t,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS&&(this.qrWidth=220)}getDecimalFormat(t){return t.amt_msat<1e3?"1.0-4":"1.0-0"}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-invoice-lookup"]],inputs:{invoice:"invoice"},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"],[3,"value","size","errorCorrectionLevel",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"],[3,"value","size","errorCorrectionLevel"],[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(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.YNc(2,Wh,1,3,"qr-code",2),e.YNc(3,Xh,2,0,"span",3),e.qZA(),e.TgZ(4,"div",4),e.TgZ(5,"mat-card-content",5),e.TgZ(6,"div",6),e.TgZ(7,"div",7),e.YNc(8,$h,1,3,"qr-code",2),e.YNc(9,jh,2,0,"span",8),e.qZA(),e.YNc(10,Kh,1,1,"mat-divider",9),e.TgZ(11,"div",10),e.TgZ(12,"div",11),e.TgZ(13,"div",12),e.TgZ(14,"h4",13),e._uU(15),e.qZA(),e.TgZ(16,"span",14),e._uU(17),e.ALo(18,"number"),e.YNc(19,eg,2,0,"ng-container",15),e.qZA(),e.qZA(),e.TgZ(20,"div",12),e.TgZ(21,"h4",13),e._uU(22,"Amount Settled"),e.qZA(),e.TgZ(23,"span",14),e.TgZ(24,"div"),e._uU(25),e.ALo(26,"number"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e._UZ(27,"mat-divider",16),e.TgZ(28,"div",11),e.TgZ(29,"div",12),e.TgZ(30,"h4",13),e._uU(31,"Date Created"),e.qZA(),e.TgZ(32,"span",14),e._uU(33),e.ALo(34,"date"),e.qZA(),e.qZA(),e.TgZ(35,"div",12),e.TgZ(36,"h4",13),e._uU(37,"Date Settled"),e.qZA(),e.TgZ(38,"span",14),e._uU(39),e.ALo(40,"date"),e.qZA(),e.qZA(),e.qZA(),e._UZ(41,"mat-divider",16),e.TgZ(42,"div",11),e.TgZ(43,"div",17),e.TgZ(44,"h4",13),e._uU(45,"Memo"),e.qZA(),e.TgZ(46,"span",14),e._uU(47),e.qZA(),e.qZA(),e.qZA(),e._UZ(48,"mat-divider",16),e.TgZ(49,"div",11),e.TgZ(50,"div",17),e.TgZ(51,"h4",13),e._uU(52,"Payment Request"),e.qZA(),e.TgZ(53,"span",18),e._uU(54),e.qZA(),e.qZA(),e.qZA(),e._UZ(55,"mat-divider",16),e.TgZ(56,"div",11),e.TgZ(57,"div",17),e.TgZ(58,"h4",13),e._uU(59,"Payment Hash"),e.qZA(),e.TgZ(60,"span",18),e._uU(61),e.qZA(),e.qZA(),e.qZA(),e.TgZ(62,"div"),e._UZ(63,"mat-divider",16),e.TgZ(64,"div",11),e.TgZ(65,"div",17),e.TgZ(66,"h4",13),e._uU(67,"Preimage"),e.qZA(),e.TgZ(68,"span",18),e._uU(69),e.qZA(),e.qZA(),e.qZA(),e._UZ(70,"mat-divider",16),e.TgZ(71,"div",11),e.TgZ(72,"div",19),e.TgZ(73,"h4",13),e._uU(74,"State"),e.qZA(),e.TgZ(75,"span",18),e._uU(76),e.qZA(),e.qZA(),e.TgZ(77,"div",20),e.TgZ(78,"h4",13),e._uU(79,"Expiry"),e.qZA(),e.TgZ(80,"span",18),e._uU(81),e.qZA(),e.qZA(),e.TgZ(82,"div",20),e.TgZ(83,"h4",13),e._uU(84,"Private Routing Hints"),e.qZA(),e.TgZ(85,"span",18),e._uU(86),e.qZA(),e.qZA(),e.qZA(),e._UZ(87,"mat-divider",16),e.YNc(88,og,14,2,"div",21),e.YNc(89,sg,1,1,"mat-divider",9),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("fxLayoutAlign",null!=a.invoice&&a.invoice.payment_request&&""!==(null==a.invoice?null:a.invoice.payment_request)?"center start":"center center")("ngClass",e.VKq(41,et,a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM)),e.xp6(1),e.Q6J("ngIf",(null==a.invoice?null:a.invoice.payment_request)&&""!==(null==a.invoice?null:a.invoice.payment_request)),e.xp6(1),e.Q6J("ngIf",!(null!=a.invoice&&a.invoice.payment_request)||""===(null==a.invoice?null:a.invoice.payment_request)),e.xp6(4),e.Q6J("fxLayoutAlign",null!=a.invoice&&a.invoice.payment_request&&""!==(null==a.invoice?null:a.invoice.payment_request)?"center start":"center center")("ngClass",e.VKq(43,et,a.screenSize!==a.screenSizeEnum.XS&&a.screenSize!==a.screenSizeEnum.SM)),e.xp6(1),e.Q6J("ngIf",(null==a.invoice?null:a.invoice.payment_request)&&""!==(null==a.invoice?null:a.invoice.payment_request)),e.xp6(1),e.Q6J("ngIf",!(null!=a.invoice&&a.invoice.payment_request)||""===(null==a.invoice?null:a.invoice.payment_request)),e.xp6(1),e.Q6J("ngIf",a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM),e.xp6(5),e.Oqu(a.screenSize===a.screenSizeEnum.XS?"Amount":"Amount Requested"),e.xp6(2),e.hij("",e.lcZ(18,31,(null==a.invoice?null:a.invoice.value)||0)," Sats"),e.xp6(2),e.Q6J("ngIf",!(null!=a.invoice&&a.invoice.value)||"0"===(null==a.invoice?null:a.invoice.value)),e.xp6(6),e.hij("",e.lcZ(26,33,null==a.invoice?null:a.invoice.amt_paid_sat)," Sats"),e.xp6(2),e.Q6J("inset",!0),e.xp6(6),e.Oqu(e.xi3(34,35,1e3*(null==a.invoice?null:a.invoice.creation_date),"dd/MMM/y HH:mm")),e.xp6(6),e.Oqu(0!=+(null==a.invoice?null:a.invoice.settle_date)?e.xi3(40,38,1e3*+(null==a.invoice?null:a.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),e.xp6(2),e.Q6J("inset",!0),e.xp6(6),e.Oqu(null==a.invoice?null:a.invoice.memo),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu((null==a.invoice?null:a.invoice.payment_request)||"N/A"),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu((null==a.invoice?null:a.invoice.r_hash)||""),e.xp6(2),e.Q6J("inset",!0),e.xp6(6),e.Oqu((null==a.invoice?null:a.invoice.r_preimage)||"-"),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(null==a.invoice?null:a.invoice.state),e.xp6(5),e.Oqu(null==a.invoice?null:a.invoice.expiry),e.xp6(5),e.Oqu(null!=a.invoice&&a.invoice.private?"Yes":"No"),e.xp6(1),e.Q6J("inset",!0),e.xp6(1),e.Q6J("ngIf",(null==a.invoice?null:a.invoice.htlcs)&&(null==a.invoice?null:a.invoice.htlcs.length)>0),e.xp6(1),e.Q6J("ngIf",(null==a.invoice?null:a.invoice.htlcs)&&(null==a.invoice?null:a.invoice.htlcs.length)>0))},directives:[_.xw,_.Wh,_.yH,p.mk,q.oO,p.O5,T.dn,Q.$V,z.d,zh.uU,H.ib,H.yz,H.yK,p.sg,X.gM],pipes:[p.JJ,p.uU],styles:[""]}),n})();function rg(n,i){if(1&n&&(e.TgZ(0,"mat-radio-button",17),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("value",t.id)("checked",a.selectedFieldId===t.id),e.xp6(1),e.hij(" ",t.name," ")}}function cg(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("",null==t.lookupFields[t.selectedFieldId]?null:t.lookupFields[t.selectedFieldId].placeholder," is required.")}}function ug(n,i){1&n&&e._UZ(0,"mat-progress-bar",20)}const pg=function(n){return{"w-100 mt-2 p-2 error-border":n,"w-100 my-2 p-2":!0}};function mg(n,i){if(1&n&&(e.TgZ(0,"div",18),e.YNc(1,ug,1,0,"mat-progress-bar",19),e._uU(2),e.qZA()),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(3,pg,""!==t.errorMessage&&"Getting lookup details..."!==t.errorMessage)),e.xp6(1),e.Q6J("ngIf","Getting lookup details..."===t.errorMessage),e.xp6(1),e.hij(" ",t.errorMessage," ")}}function _g(n,i){if(1&n&&(e.TgZ(0,"span",27),e._UZ(1,"rtl-payment-lookup",28),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("payment",t.lookupValue)}}function dg(n,i){if(1&n&&(e.TgZ(0,"span",27),e._UZ(1,"rtl-invoice-lookup",29),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("invoice",t.lookupValue)}}function hg(n,i){1&n&&(e.TgZ(0,"span",27),e.TgZ(1,"h3"),e._uU(2,"Error! Unable to find details!"),e.qZA(),e.qZA())}function gg(n,i){if(1&n&&(e.TgZ(0,"div",21),e.TgZ(1,"div",22),e.TgZ(2,"span",23),e._uU(3),e.qZA(),e.qZA(),e.TgZ(4,"div",24),e.YNc(5,_g,2,1,"span",25),e.YNc(6,dg,2,1,"span",25),e.YNc(7,hg,3,0,"span",26),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(3),e.hij("",t.lookupFields[t.selectedFieldId].name," Details"),e.xp6(1),e.Q6J("ngSwitch",t.selectedFieldId),e.xp6(1),e.Q6J("ngSwitchCase",0),e.xp6(1),e.Q6J("ngSwitchCase",1)}}const fg=function(n){return{"mt-1":!0,"mt-2":n}},Zg=y.Bz.forChild([{path:"",component:Se,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:si,canActivate:[k.QM]},{path:"wallet",component:_1,canActivate:[k.a1]},{path:"onchain",component:T_,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"receive/utxos"},{path:"receive/:selTab",component:v_,canActivate:[k.QM]},{path:"send/:selTab",component:$e,data:{sweepAll:!1},canActivate:[k.QM]},{path:"sweep/:selTab",component:$e,data:{sweepAll:!0},canActivate:[k.QM]}]},{path:"connections",component:ci,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:po,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:nl,canActivate:[k.QM]},{path:"pending",component:Pr,canActivate:[k.QM]},{path:"closed",component:uc,canActivate:[k.QM]},{path:"activehtlcs",component:Qc,canActivate:[k.QM]}]},{path:"peers",component:so,data:{sweepAll:!1},canActivate:[k.QM]}]},{path:"transactions",component:g1,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:De,canActivate:[k.QM]},{path:"invoices",component:Ie,canActivate:[k.QM]},{path:"lookuptransactions",component:(()=>{class n{constructor(t,a,o,s){this.logger=t,this.commonService=a,this.store=o,this.actions=s,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=Z.wn1,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(t=>t.type===l.uR.SET_LOOKUP_LND)).subscribe(t=>{this.flgSetLookupValue=!t.payload.error,this.lookupValue=JSON.parse(JSON.stringify(t.payload)),this.errorMessage=t.payload.error?this.commonService.extractErrorMessage(t.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,b.yZ)({payload:Buffer.from(this.lookupKey.trim(),"hex").toString("base64").replace(/\+/g,"-").replace(/[/]/g,"_")}));break;case 1:this.store.dispatch((0,b.n7)({payload:{openSnackBar:!1,paymentHash:Buffer.from(this.lookupKey.trim(),"hex").toString("base64").replace(/\+/g,"-").replace(/[/]/g,"_")}}))}}onSelectChange(t){this.resetData(),this.selectedFieldId=t.value}resetData(){this.flgSetLookupValue=!1,this.selectedFieldId=0,this.lookupKey="",this.lookupValue={},this.errorMessage=""}clearLookupValue(){this.lookupValue={},this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh),e.Y36(G.eX))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-lookup-transactions"]],decls:19,vars:10,consts:[["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"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModel","ngModelChange","change"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"placeholder","ngModel","change","ngModelChange"],["key",""],[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"],["fxFlex","100",4,"ngSwitchDefault"],["fxFlex","100"],[3,"payment"],[3,"invoice"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-content",2),e.TgZ(3,"form",3,4),e.TgZ(5,"div",5),e.TgZ(6,"mat-radio-group",6),e.NdJ("ngModelChange",function(s){return a.selectedFieldId=s})("change",function(s){return a.onSelectChange(s)}),e.YNc(7,rg,2,3,"mat-radio-button",7),e.qZA(),e.qZA(),e.TgZ(8,"mat-form-field",8),e.TgZ(9,"input",9,10),e.NdJ("change",function(){return a.clearLookupValue()})("ngModelChange",function(s){return a.lookupKey=s}),e.qZA(),e.YNc(11,cg,2,1,"mat-error",11),e.qZA(),e.TgZ(12,"div",12),e.TgZ(13,"button",13),e.NdJ("click",function(){return a.resetData()}),e._uU(14,"Clear"),e.qZA(),e.TgZ(15,"button",14),e.NdJ("click",function(){return a.onLookup()}),e._uU(16,"Lookup"),e.qZA(),e.qZA(),e.qZA(),e.YNc(17,mg,3,5,"div",15),e.YNc(18,gg,8,4,"div",16),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngModel",a.selectedFieldId),e.xp6(1),e.Q6J("ngForOf",a.lookupFields),e.xp6(1),e.Q6J("ngClass",e.VKq(8,fg,a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM)),e.xp6(1),e.Q6J("placeholder",(null==a.lookupFields[a.selectedFieldId]?null:a.lookupFields[a.selectedFieldId].placeholder)||"Lookup Key")("ngModel",a.lookupKey),e.xp6(2),e.Q6J("ngIf",!a.lookupKey),e.xp6(6),e.Q6J("ngIf",""!==a.errorMessage),e.xp6(1),e.Q6J("ngIf",""===a.errorMessage&&a.lookupValue&&a.flgSetLookupValue))},directives:[_.xw,_.yH,_.Wh,T.dn,c._Y,c.JL,c.F,ie.VQ,c.JJ,c.On,p.sg,f.KE,p.mk,q.oO,I.Nt,c.Fj,c.Q7,p.O5,L.lW,ie.U0,f.TO,P.pW,p.RF,p.n9,p.ED,Gh,lg],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}.pl-3[_ngcontent-%COMP%]{padding-left:3rem}"]}),n})(),canActivate:[k.QM]}]},{path:"messages",component:sh,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"sign"},{path:"sign",component:rh,canActivate:[k.QM]},{path:"verify",component:gh,canActivate:[k.QM]}]},{path:"channelbackup",component:bd,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"bckup"},{path:"bckup",component:ih,canActivate:[k.QM]},{path:"restore",component:Ed,canActivate:[k.QM]}]},{path:"routing",component:Cu,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:Be,canActivate:[k.QM]},{path:"peers",component:Pp,canActivate:[k.QM]},{path:"nonroutingprs",component:Vh,canActivate:[k.QM]}]},{path:"reports",component:Ep,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"routingreport"},{path:"routingreport",component:Xp,canActivate:[k.QM]},{path:"transactions",component:rm,canActivate:[k.QM]}]},{path:"graph",component:C1,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"lookups"},{path:"lookups",component:He,canActivate:[k.QM]},{path:"queryroutes",component:J1,canActivate:[k.QM]}]},{path:"lookups",component:He,canActivate:[k.QM]},{path:"network",component:yd,canActivate:[k.QM]},{path:"**",component:fh.w},{path:"rates",redirectTo:"network"}]}]);var yg=h(8750);let Tg=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n,bootstrap:[Se]}),n.\u0275inj=e.cJS({providers:[k.QM],imports:[[p.ez,yg.m,Zg]]}),n})()}}]); \ No newline at end of file diff --git a/frontend/636.f8c5bc0215761948.js b/frontend/636.f8c5bc0215761948.js deleted file mode 100644 index 8da9ca12..00000000 --- a/frontend/636.f8c5bc0215761948.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[636],{1636:(bg,qe,h)=>{h.r(qe),h.d(qe,{LNDModule:()=>Tg});var p=h(9808),y=h(1402),tt=h(8878),e=h(5e3),_=h(7093),P=h(5899);function nt(n,i){1&n&&e._UZ(0,"mat-progress-bar",3)}let Se=(()=>{class n{constructor(t){this.router=t,this.loading=!1,this.router.events.subscribe(a=>{switch(!0){case a instanceof y.OD:this.loading=!0;break;case a instanceof y.m2:case a instanceof y.gk:case a instanceof y.Q3:this.loading=!1}})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-lnd-root"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["color","primary","mode","indeterminate",4,"ngIf"],["outlet","outlet"],["color","primary","mode","indeterminate"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,nt,1,0,"mat-progress-bar",1),e._UZ(2,"router-outlet",null,2),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",a.loading))},directives:[_.xw,_.yH,_.Wh,p.O5,y.lC,P.pW],styles:[""],data:{animation:[tt.g]}}),n})();var m=h(7579),d=h(2722),E=h(9300),Le=h(534),Z=h(801),l=h(7731),C=h(6529),F=h(5043),w=h(5620),G=h(6642),O=h(62),M=h(9444),ce=h(3954),T=h(9224),he=h(2181),q=h(3322),L=h(7423),K=h(5245);const ke=function(n){return{backgroundColor:n}};function at(n,i){if(1&n&&e._UZ(0,"span",6),2&n){const t=e.oxw();e.Q6J("ngStyle",e.VKq(1,ke,null==t.information?null:t.information.color))}}function it(n,i){if(1&n&&(e.TgZ(0,"div"),e.TgZ(1,"h4",1),e._uU(2,"Color"),e.qZA(),e.TgZ(3,"div",2),e._UZ(4,"span",7),e._uU(5),e.ALo(6,"uppercase"),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(4),e.Q6J("ngStyle",e.VKq(4,ke,null==t.information?null:t.information.color)),e.xp6(1),e.hij(" ",e.lcZ(6,2,null==t.information?null:t.information.color)," ")}}function ot(n,i){if(1&n&&(e.TgZ(0,"span",2),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}let Fe=(()=>{class n{constructor(t){this.commonService=t,this.chains=[""]}ngOnChanges(){this.information&&this.information.chains&&this.information.chains.length>0&&(this.chains=[""],this.information.chains.forEach(t=>{this.chains.push(this.commonService.titleCase(t.chain)+" "+this.commonService.titleCase(t.network))}))}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},features:[e.TTD],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(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div"),e.TgZ(2,"h4",1),e._uU(3,"Alias"),e.qZA(),e.TgZ(4,"div",2),e._uU(5),e.YNc(6,at,1,3,"span",3),e.qZA(),e.qZA(),e.YNc(7,it,7,6,"div",4),e.TgZ(8,"div"),e.TgZ(9,"h4",1),e._uU(10,"Implementation"),e.qZA(),e.TgZ(11,"div",2),e._uU(12),e.qZA(),e.qZA(),e.TgZ(13,"div"),e.TgZ(14,"h4",1),e._uU(15,"Chain"),e.qZA(),e.YNc(16,ot,2,1,"span",5),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.hij(" ",null==a.information?null:a.information.alias," "),e.xp6(1),e.Q6J("ngIf",!a.showColorFieldSeparately),e.xp6(1),e.Q6J("ngIf",a.showColorFieldSeparately),e.xp6(5),e.Oqu(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.xp6(4),e.Q6J("ngForOf",a.chains))},directives:[_.xw,_.yH,_.Wh,p.O5,p.sg,p.PC,q.Zl],pipes:[p.gd],styles:[""]}),n})();function st(n,i){if(1&n&&(e.TgZ(0,"div",2),e.TgZ(1,"div"),e.TgZ(2,"h4",3),e._uU(3,"Lightning"),e.qZA(),e.TgZ(4,"div",4),e._uU(5),e.ALo(6,"number"),e.qZA(),e._UZ(7,"mat-progress-bar",5),e.qZA(),e.TgZ(8,"div"),e.TgZ(9,"h4",3),e._uU(10,"On-chain"),e.qZA(),e.TgZ(11,"div",4),e._uU(12),e.ALo(13,"number"),e.qZA(),e._UZ(14,"mat-progress-bar",5),e.qZA(),e.TgZ(15,"div"),e.TgZ(16,"h4",3),e._uU(17,"Total"),e.qZA(),e.TgZ(18,"div",4),e._uU(19),e.ALo(20,"number"),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(5),e.hij("",e.lcZ(6,5,null==t.balances?null:t.balances.lightning)," Sats"),e.xp6(2),e.s9C("value",(null==t.balances?null:t.balances.lightning)/(null==t.balances?null:t.balances.total)*100),e.xp6(5),e.hij("",e.lcZ(13,7,null==t.balances?null:t.balances.onchain)," Sats"),e.xp6(2),e.s9C("value",(null==t.balances?null:t.balances.onchain)/(null==t.balances?null:t.balances.total)*100),e.xp6(5),e.hij("",e.lcZ(20,9,null==t.balances?null:t.balances.total)," Sats")}}function lt(n,i){if(1&n&&(e.TgZ(0,"div",6),e.TgZ(1,"p"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Oqu(t.errorMessage)}}let rt=(()=>{class n{constructor(){this.balances={onchain:0,lightning:0,total:0}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-balances-info"]],inputs:{balances:"balances",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["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(t,a){if(1&t&&(e.YNc(0,st,21,11,"div",0),e.YNc(1,lt,3,1,"ng-template",null,1,e.W1O)),2&t){const o=e.MAs(2);e.Q6J("ngIf"," "===a.errorMessage)("ngIfElse",o)}},directives:[p.O5,_.xw,_.yH,_.Wh,P.pW],pipes:[p.JJ],styles:[""]}),n})();var f=h(7322),X=h(7238),z=h(4834),Q=h(644);const ct=function(){return["../connections/channels/open"]},ut=function(n){return{filter:n}};function pt(n,i){if(1&n&&(e.TgZ(0,"div",19),e.TgZ(1,"a",20),e._uU(2),e.ALo(3,"slice"),e.qZA(),e.TgZ(4,"div",6),e.TgZ(5,"mat-hint",21),e.TgZ(6,"strong",8),e._uU(7,"Local:"),e.qZA(),e._uU(8),e.ALo(9,"number"),e.qZA(),e.TgZ(10,"mat-hint",22),e._UZ(11,"fa-icon",23),e._uU(12),e.ALo(13,"number"),e.qZA(),e.TgZ(14,"mat-hint",24),e.TgZ(15,"strong",8),e._uU(16,"Remote:"),e.qZA(),e._uU(17),e.ALo(18,"number"),e.qZA(),e.qZA(),e._UZ(19,"mat-progress-bar",25),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(3);e.xp6(1),e.s9C("matTooltip",t.remote_alias||t.remote_pubkey),e.s9C("matTooltipDisabled",(t.remote_alias||t.remote_pubkey).length<26),e.Q6J("routerLink",e.DdM(21,ct))("state",e.VKq(22,ut,t.chan_id)),e.xp6(1),e.AsE(" ",e.Dn7(3,11,t.remote_alias||t.remote_pubkey,0,24),"",(t.remote_alias||t.remote_pubkey).length>25?"...":""," "),e.xp6(6),e.hij("",e.lcZ(9,15,t.local_balance||0)," Sats"),e.xp6(3),e.Q6J("icon",a.faBalanceScale),e.xp6(1),e.hij(" (",e.lcZ(13,17,t.balancedness||0),") "),e.xp6(5),e.hij("",e.lcZ(18,19,t.remote_balance||0)," Sats"),e.xp6(2),e.s9C("value",t.local_balance&&t.local_balance>0?+t.local_balance/(+t.local_balance+ +t.remote_balance)*100:0)}}function mt(n,i){if(1&n&&(e.TgZ(0,"div",17),e.YNc(1,pt,20,24,"div",18),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.allChannels)}}function _t(n,i){if(1&n&&(e.TgZ(0,"div",3),e.TgZ(1,"div",4),e.TgZ(2,"span",5),e._uU(3,"Total Capacity"),e.qZA(),e.TgZ(4,"div",6),e.TgZ(5,"mat-hint",7),e.TgZ(6,"strong",8),e._uU(7,"Local:"),e.qZA(),e._uU(8),e.ALo(9,"number"),e.qZA(),e.TgZ(10,"mat-hint",9),e._UZ(11,"fa-icon",10),e._uU(12),e.ALo(13,"number"),e.qZA(),e.TgZ(14,"mat-hint",11),e.TgZ(15,"strong",8),e._uU(16,"Remote:"),e.qZA(),e._uU(17),e.ALo(18,"number"),e.qZA(),e.qZA(),e._UZ(19,"mat-progress-bar",12),e.qZA(),e.TgZ(20,"div",13),e._UZ(21,"mat-divider",14),e.qZA(),e.TgZ(22,"div",15),e.YNc(23,mt,2,1,"div",16),e.qZA(),e.qZA()),2&n){const t=e.oxw(),a=e.MAs(2);e.xp6(8),e.hij("",e.lcZ(9,7,(null==t.channelBalances?null:t.channelBalances.localBalance)||0)," Sats"),e.xp6(3),e.Q6J("icon",t.faBalanceScale),e.xp6(1),e.hij(" (",e.lcZ(13,9,(null==t.channelBalances?null:t.channelBalances.balancedness)||0),") "),e.xp6(5),e.hij("",e.lcZ(18,11,(null==t.channelBalances?null:t.channelBalances.remoteBalance)||0)," Sats"),e.xp6(2),e.s9C("value",null!=t.channelBalances&&t.channelBalances.localBalance&&(null==t.channelBalances?null:t.channelBalances.localBalance)>0?+(null==t.channelBalances?null:t.channelBalances.localBalance)/(+(null==t.channelBalances?null:t.channelBalances.localBalance)+ +(null==t.channelBalances?null:t.channelBalances.remoteBalance))*100:0),e.xp6(4),e.Q6J("ngIf",t.allChannels&&t.allChannels.length>0)("ngIfElse",a)}}function dt(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",26),e._uU(1," No channels available. "),e.TgZ(2,"button",27),e.NdJ("click",function(){return e.CHM(t),e.oxw().goToChannels()}),e._uU(3,"Open Channel"),e.qZA(),e.qZA()}}function ht(n,i){if(1&n&&(e.TgZ(0,"div",28),e.TgZ(1,"p"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Oqu(t.errorMessage)}}let gt=(()=>{class n{constructor(t){this.router=t,this.faBalanceScale=Z.DL8,this.faDumbbell=Z.FlN,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/lnd/connections")}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-capacity-info"]],inputs:{channelBalances:"channelBalances",allChannels:"allChannels",sortBy:"sortBy",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","9","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,"routerLink","state","matTooltip","matTooltipDisabled"],["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(t,a){if(1&t&&(e.YNc(0,_t,24,13,"div",0),e.YNc(1,dt,4,0,"ng-template",null,1,e.W1O),e.YNc(3,ht,3,1,"ng-template",null,2,e.W1O)),2&t){const o=e.MAs(4);e.Q6J("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",o)}},directives:[p.O5,_.xw,_.Wh,_.yH,f.bx,M.BN,X.gM,P.pW,z.d,Q.$V,p.sg,y.yS,L.lW],pipes:[p.JJ,p.OU],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}),n})();function ft(n,i){if(1&n&&(e.TgZ(0,"div",2),e.TgZ(1,"div",3),e.TgZ(2,"div"),e.TgZ(3,"h4",4),e._uU(4,"Daily"),e.qZA(),e.TgZ(5,"div",5),e._uU(6),e.ALo(7,"number"),e.qZA(),e.qZA(),e.TgZ(8,"div"),e.TgZ(9,"h4",4),e._uU(10,"Weekly"),e.qZA(),e.TgZ(11,"div",5),e._uU(12),e.ALo(13,"number"),e.qZA(),e.qZA(),e.TgZ(14,"div"),e.TgZ(15,"h4",4),e._uU(16,"Monthly"),e.qZA(),e.TgZ(17,"div",5),e._uU(18),e.ALo(19,"number"),e.qZA(),e.qZA(),e.TgZ(20,"div",6),e._UZ(21,"h4",7),e._UZ(22,"span",5),e.qZA(),e.qZA(),e.TgZ(23,"div",3),e.TgZ(24,"div"),e.TgZ(25,"h4",4),e._uU(26,"Transactions"),e.qZA(),e.TgZ(27,"div",5),e._uU(28),e.ALo(29,"number"),e.qZA(),e.qZA(),e.TgZ(30,"div"),e.TgZ(31,"h4",4),e._uU(32,"Transactions"),e.qZA(),e.TgZ(33,"div",5),e._uU(34),e.ALo(35,"number"),e.qZA(),e.qZA(),e.TgZ(36,"div"),e.TgZ(37,"h4",4),e._uU(38,"Transactions"),e.qZA(),e.TgZ(39,"div",5),e._uU(40),e.ALo(41,"number"),e.qZA(),e.qZA(),e.TgZ(42,"div",6),e._UZ(43,"h4",7),e._UZ(44,"span",5),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(6),e.hij("",e.lcZ(7,6,null==t.fees?null:t.fees.day_fee_sum)," Sats"),e.xp6(6),e.hij("",e.lcZ(13,8,null==t.fees?null:t.fees.week_fee_sum)," Sats"),e.xp6(6),e.hij("",e.lcZ(19,10,null==t.fees?null:t.fees.month_fee_sum)," Sats"),e.xp6(10),e.Oqu(e.lcZ(29,12,null==t.fees?null:t.fees.daily_tx_count)),e.xp6(6),e.Oqu(e.lcZ(35,14,null==t.fees?null:t.fees.weekly_tx_count)),e.xp6(6),e.Oqu(e.lcZ(41,16,null==t.fees?null:t.fees.monthly_tx_count))}}function Ct(n,i){if(1&n&&(e.TgZ(0,"div",8),e.TgZ(1,"p"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Oqu(t.errorMessage)}}let Ue=(()=>{class n{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},{name:"Daily ",value:this.fees.day_fee_sum}];const t=Math.ceil(Math.log(this.fees.month_fee_sum+1)/Math.LN10),a=Math.pow(10,t-1);this.maxFeeValue=Math.ceil(this.fees.month_fee_sum/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)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-fee-info"]],inputs:{fees:"fees",errorMessage:"errorMessage"},features:[e.TTD],decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["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(t,a){if(1&t&&(e.YNc(0,ft,45,18,"div",0),e.YNc(1,Ct,3,1,"ng-template",null,1,e.W1O)),2&t){const o=e.MAs(2);e.Q6J("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",o)}},directives:[p.O5,_.xw,_.yH,_.Wh],pipes:[p.JJ],styles:[""]}),n})();function xt(n,i){if(1&n&&(e.TgZ(0,"div",2),e.TgZ(1,"div",3),e.TgZ(2,"div"),e.TgZ(3,"h4",4),e._uU(4,"Active"),e.qZA(),e.TgZ(5,"div",5),e._UZ(6,"span",6),e._uU(7),e.ALo(8,"number"),e.qZA(),e.qZA(),e.TgZ(9,"div"),e.TgZ(10,"h4",4),e._uU(11,"Pending"),e.qZA(),e.TgZ(12,"div",5),e._UZ(13,"span",7),e._uU(14),e.ALo(15,"number"),e.qZA(),e.qZA(),e.TgZ(16,"div"),e.TgZ(17,"h4",4),e._uU(18,"Inactive"),e.qZA(),e.TgZ(19,"div",5),e._UZ(20,"span",8),e._uU(21),e.ALo(22,"number"),e.qZA(),e.qZA(),e.TgZ(23,"div"),e.TgZ(24,"h4",4),e._uU(25,"Closing"),e.qZA(),e.TgZ(26,"div",5),e._UZ(27,"span",9),e._uU(28),e.ALo(29,"number"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"div",3),e.TgZ(31,"div"),e.TgZ(32,"h4",4),e._uU(33,"Capacity"),e.qZA(),e.TgZ(34,"div",5),e._uU(35),e.ALo(36,"number"),e.qZA(),e.qZA(),e.TgZ(37,"div"),e.TgZ(38,"h4",4),e._uU(39,"Capacity"),e.qZA(),e.TgZ(40,"div",5),e._uU(41),e.ALo(42,"number"),e.qZA(),e.qZA(),e.TgZ(43,"div"),e.TgZ(44,"h4",4),e._uU(45,"Capacity"),e.qZA(),e.TgZ(46,"div",5),e._uU(47),e.ALo(48,"number"),e.qZA(),e.qZA(),e.TgZ(49,"div"),e.TgZ(50,"h4",4),e._uU(51,"Capacity"),e.qZA(),e.TgZ(52,"div",5),e._uU(53),e.ALo(54,"number"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(7),e.Oqu(e.lcZ(8,8,(null==t.channelsStatus||null==t.channelsStatus.active?null:t.channelsStatus.active.num_channels)||0)),e.xp6(7),e.Oqu(e.lcZ(15,10,(null==t.channelsStatus||null==t.channelsStatus.pending?null:t.channelsStatus.pending.num_channels)||0)),e.xp6(7),e.Oqu(e.lcZ(22,12,(null==t.channelsStatus||null==t.channelsStatus.inactive?null:t.channelsStatus.inactive.num_channels)||0)),e.xp6(7),e.Oqu(e.lcZ(29,14,(null==t.channelsStatus||null==t.channelsStatus.closing?null:t.channelsStatus.closing.num_channels)||0)),e.xp6(7),e.hij("",e.lcZ(36,16,(null==t.channelsStatus||null==t.channelsStatus.active?null:t.channelsStatus.active.capacity)||0)," Sats"),e.xp6(6),e.hij("",e.lcZ(42,18,(null==t.channelsStatus||null==t.channelsStatus.pending?null:t.channelsStatus.pending.capacity)||0)," Sats"),e.xp6(6),e.hij("",e.lcZ(48,20,(null==t.channelsStatus||null==t.channelsStatus.inactive?null:t.channelsStatus.inactive.capacity)||0)," Sats"),e.xp6(6),e.hij("",e.lcZ(54,22,(null==t.channelsStatus||null==t.channelsStatus.closing?null:t.channelsStatus.closing.capacity)||0)," Sats")}}function Zt(n,i){if(1&n&&(e.TgZ(0,"div",10),e.TgZ(1,"p"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Oqu(t.errorMessage)}}let Ne=(()=>{class n{constructor(){this.channelsStatus={}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-status-info"]],inputs:{channelsStatus:"channelsStatus",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["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(t,a){if(1&t&&(e.YNc(0,xt,55,24,"div",0),e.YNc(1,Zt,3,1,"ng-template",null,1,e.W1O)),2&t){const o=e.MAs(2);e.Q6J("ngIf"," "===a.errorMessage)("ngIfElse",o)}},directives:[p.O5,_.xw,_.yH,_.Wh],pipes:[p.JJ],styles:[""]}),n})();var Oe=h(8213),v=h(7861),Re=h(9107);function yt(n,i){if(1&n&&(e.TgZ(0,"mat-hint",19),e.TgZ(1,"strong",20),e._uU(2,"Capacity: "),e.qZA(),e._uU(3),e.ALo(4,"number"),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(3),e.hij("",e.lcZ(4,1,t.remote_balance||0)," Sats")}}function Tt(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",24),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2).$implicit;return e.oxw(3).onLoopOut(o)}),e._uU(1,"Loop Out"),e.qZA()}}function bt(n,i){if(1&n&&(e.TgZ(0,"div",21),e.TgZ(1,"mat-hint",22),e.TgZ(2,"strong",20),e._uU(3,"Capacity: "),e.qZA(),e._uU(4),e.ALo(5,"number"),e.qZA(),e.YNc(6,Tt,2,0,"button",23),e.qZA()),2&n){const t=e.oxw().$implicit,a=e.oxw(3);e.xp6(4),e.hij("",e.lcZ(5,2,t.local_balance||0)," Sats"),e.xp6(2),e.Q6J("ngIf",a.showLoop)}}function At(n,i){if(1&n&&e._UZ(0,"mat-progress-bar",25),2&n){const t=e.oxw().$implicit,a=e.oxw(3);e.s9C("value",a.totalLiquidity>0?(+t.remote_balance||0)/a.totalLiquidity*100:0)}}function vt(n,i){if(1&n&&e._UZ(0,"mat-progress-bar",25),2&n){const t=e.oxw().$implicit,a=e.oxw(3);e.s9C("value",a.totalLiquidity>0?(+t.local_balance||0)/a.totalLiquidity*100:0)}}const wt=function(){return["../connections/channels/open"]},qt=function(n){return{filter:n}};function St(n,i){if(1&n&&(e.TgZ(0,"div",13),e.TgZ(1,"a",14),e._uU(2),e.ALo(3,"slice"),e.qZA(),e.TgZ(4,"div",15),e.YNc(5,yt,5,3,"mat-hint",16),e.YNc(6,bt,7,4,"div",17),e.qZA(),e.YNc(7,At,1,1,"mat-progress-bar",18),e.YNc(8,vt,1,1,"mat-progress-bar",18),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(3);e.xp6(1),e.s9C("matTooltip",t.remote_alias||t.remote_pubkey),e.s9C("matTooltipDisabled",(t.remote_alias||t.remote_pubkey).length<26),e.Q6J("routerLink",e.DdM(14,wt))("state",e.VKq(15,qt,t.chan_id)),e.xp6(1),e.AsE(" ",e.Dn7(3,10,t.remote_alias||t.remote_pubkey,0,24),"",(t.remote_alias||t.remote_pubkey).length>25?"...":""," "),e.xp6(3),e.Q6J("ngIf","In"===a.direction),e.xp6(1),e.Q6J("ngIf","Out"===a.direction),e.xp6(1),e.Q6J("ngIf","In"===a.direction),e.xp6(1),e.Q6J("ngIf","Out"===a.direction)}}function Lt(n,i){if(1&n&&(e.TgZ(0,"div",11),e.YNc(1,St,9,17,"div",12),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.allChannels)}}const kt=function(n,i,t){return{"mb-4":n,"mb-2":i,"mb-1":t}};function Ft(n,i){if(1&n&&(e.TgZ(0,"div",3),e.TgZ(1,"div",4),e.TgZ(2,"span",5),e._uU(3,"Total Capacity"),e.qZA(),e.TgZ(4,"mat-hint",6),e._uU(5),e.ALo(6,"number"),e.qZA(),e._UZ(7,"mat-progress-bar",7),e.qZA(),e.TgZ(8,"div",8),e._UZ(9,"mat-divider",9),e.qZA(),e.YNc(10,Lt,2,1,"div",10),e.qZA()),2&n){const t=e.oxw(),a=e.MAs(2);e.Q6J("ngClass",e.kEZ(6,kt,t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM,t.screenSize===t.screenSizeEnum.MD,t.screenSize===t.screenSizeEnum.LG||t.screenSize===t.screenSizeEnum.XL)),e.xp6(5),e.hij("",e.lcZ(6,4,t.totalLiquidity)," Sats"),e.xp6(5),e.Q6J("ngIf",t.allChannels&&t.allChannels.length>0)("ngIfElse",a)}}function Ut(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",28),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).goToChannels()}),e._uU(1,"Open Channel"),e.qZA()}}function Nt(n,i){if(1&n&&(e.TgZ(0,"div",26),e._uU(1," No channels available. "),e.YNc(2,Ut,2,0,"button",27),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("ngIf","Out"===t.direction)}}function Ot(n,i){if(1&n&&(e.TgZ(0,"div",29),e.TgZ(1,"p"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Oqu(t.errorMessage)}}let Rt=(()=>{class n{constructor(t,a,o,s){this.router=t,this.loopService=a,this.commonService=o,this.store=s,this.targetConf=6,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new m.x,new m.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.showLoop=!(!t.swapServerUrl||""===t.swapServerUrl.trim())})}goToChannels(){this.router.navigateByUrl("/lnd/connections")}onLoopOut(t){this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,d.R)(this.unSubs[1])).subscribe(a=>{this.store.dispatch((0,v.qR)({payload:{minHeight:"56rem",data:{channel:t,minQuote:a[0],maxQuote:a[1],direction:l.$I.LOOP_OUT,component:Oe.a}}}))})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(y.F0),e.Y36(Re.W),e.Y36(O.v),e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",allChannels:"allChannels",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",3,"ngClass",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",3,"ngClass"],["fxLayout","column","fxFlex","9","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,"routerLink","state","matTooltip","matTooltipDisabled"],["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","85","fxLayoutAlign","start start",1,"font-size-90","color-primary"],["fxFlex","15","fxLayoutAlign","end start","class","button-link-dashboard","color","primary","mat-button","","aria-label","Loop Out",3,"click",4,"ngIf"],["fxFlex","15","fxLayoutAlign","end start","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(t,a){if(1&t&&(e.YNc(0,Ft,11,10,"div",0),e.YNc(1,Nt,3,1,"ng-template",null,1,e.W1O),e.YNc(3,Ot,3,1,"ng-template",null,2,e.W1O)),2&t){const o=e.MAs(4);e.Q6J("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",o)}},directives:[p.O5,_.xw,_.Wh,_.yH,p.mk,q.oO,f.bx,P.pW,z.d,Q.$V,p.sg,y.yS,X.gM,L.lW],pipes:[p.JJ,p.OU],styles:[""]}),n})();var D=h(3251),S=h(6087),A=h(4847),r=h(2075),J=h(8966),b=h(6523),c=h(3075),I=h(7531),W=h(3390),$=h(6534),R=h(4107),ue=h(2368),Y=h(508);function It(n,i){if(1&n&&(e.TgZ(0,"mat-option",25),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.Oqu(e.lcZ(2,2,t))}}function Mt(n,i){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.invoiceError)}}function Dt(n,i){if(1&n&&(e.TgZ(0,"div",26),e._UZ(1,"fa-icon",27),e.YNc(2,Mt,2,1,"span",28),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(1),e.Q6J("ngIf",""!==t.invoiceError)}}let Pt=(()=>{class n{constructor(t,a,o,s,u,g){this.dialogRef=t,this.data=a,this.store=o,this.decimalPipe=s,this.commonService=u,this.actions=g,this.faExclamationTriangle=Z.eHv,this.selNode={},this.memo="",this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=l.IV,this.timeUnitEnum=l.Qk,this.timeUnits=l.LO,this.selTimeUnit=l.Qk.SECS,this.invoiceError="",this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.actions.pipe((0,d.R)(this.unSubs[2]),(0,E.h)(t=>t.type===l.uR.UPDATE_API_CALL_STATUS_LND)).subscribe(t=>{t.type===l.uR.UPDATE_API_CALL_STATUS_LND&&"SaveNewInvoice"===t.payload.action&&(this.invoiceError=t.payload.message,t.payload.status===l.Bn.ERROR&&(this.invoiceError=t.payload.message),t.payload.status===l.Bn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(t){this.invoiceError="";let a=this.expiry?this.expiry:3600;this.selTimeUnit!==l.Qk.SECS&&(a=this.commonService.convertTime(this.expiry,this.selTimeUnit,l.Qk.SECS)),this.store.dispatch((0,b.Rd)({payload:{uiMessage:l.m6.ADD_INVOICE,memo:this.memo,invoiceValue:this.invoiceValue,private:this.private,expiry:a,pageSize:this.pageSize,openModal:!0}}))}resetData(){this.memo="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=l.Qk.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,d.R)(this.unSubs[3])).subscribe({next:t=>{this.invoiceValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,l.Xz.OTHER)+" "+t.unit},error:t=>{this.invoiceValueHint="Conversion Error: "+t}}))}onTimeUnitChange(t){this.expiry&&this.selTimeUnit!==t.value&&(this.expiry=this.commonService.convertTime(this.expiry,this.selTimeUnit,t.value)),this.selTimeUnit=t.value}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(w.yh),e.Y36(p.JJ),e.Y36(O.v),e.Y36(G.eX))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-create-invoices"]],decls:38,vars:16,consts:[["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","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"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","end start"],["matInput","","autoFocus","","placeholder","Memo","tabindex","1","name","memo",3,"ngModel","ngModelChange"],["fxFlex","50","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","2","name","invoiceValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxFlex","24","fxLayoutAlign","start end"],["matInput","","placeholder","Expiry","type","number","tabindex","3","name","expiry",3,"ngModel","step","min","ngModelChange"],["tabindex","4","name","timeUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["tabindex","4","color","primary","name","private",3,"ngModel","ngModelChange"],["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","tabindex","5","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","6",3,"click"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"]],template:function(t,a){if(1&t){const o=e.EpF();e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5,"Create Invoice"),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.TgZ(9,"form",7,8),e.TgZ(11,"mat-form-field",9),e.TgZ(12,"input",10),e.NdJ("ngModelChange",function(u){return a.memo=u}),e.qZA(),e.qZA(),e.TgZ(13,"mat-form-field",11),e.TgZ(14,"input",12),e.NdJ("ngModelChange",function(u){return a.invoiceValue=u})("keyup",function(){return a.onInvoiceValueChange()}),e.qZA(),e.TgZ(15,"span",13),e._uU(16," Sats "),e.qZA(),e.TgZ(17,"mat-hint"),e._uU(18),e.qZA(),e.qZA(),e.TgZ(19,"mat-form-field",14),e.TgZ(20,"input",15),e.NdJ("ngModelChange",function(u){return a.expiry=u}),e.qZA(),e.TgZ(21,"span",13),e._uU(22),e.ALo(23,"titlecase"),e.qZA(),e.qZA(),e.TgZ(24,"mat-form-field",14),e.TgZ(25,"mat-select",16),e.NdJ("selectionChange",function(u){return a.onTimeUnitChange(u)}),e.YNc(26,It,3,4,"mat-option",17),e.qZA(),e.qZA(),e.TgZ(27,"div",18),e.TgZ(28,"mat-slide-toggle",19),e.NdJ("ngModelChange",function(u){return a.private=u}),e._uU(29,"Private Routing Hints"),e.qZA(),e.TgZ(30,"mat-icon",20),e._uU(31,"info_outline"),e.qZA(),e.qZA(),e.YNc(32,Dt,3,2,"div",21),e.TgZ(33,"div",22),e.TgZ(34,"button",23),e.NdJ("click",function(){return a.resetData()}),e._uU(35,"Clear Field"),e.qZA(),e.TgZ(36,"button",24),e.NdJ("click",function(){e.CHM(o);const u=e.MAs(10);return a.onAddInvoice(u)}),e._uU(37,"Create Invoice"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}2&t&&(e.xp6(6),e.Q6J("mat-dialog-close",!1),e.xp6(6),e.Q6J("ngModel",a.memo),e.xp6(2),e.Q6J("ngModel",a.invoiceValue)("step",100)("min",1),e.xp6(4),e.Oqu(a.invoiceValueHint),e.xp6(2),e.Q6J("ngModel",a.expiry)("step",a.selTimeUnit===a.timeUnitEnum.SECS?300:a.selTimeUnit===a.timeUnitEnum.MINS?10:a.selTimeUnit===a.timeUnitEnum.HOURS?2:1)("min",1),e.xp6(2),e.hij(" ",e.lcZ(23,14,a.selTimeUnit)," "),e.xp6(3),e.Q6J("value",a.selTimeUnit),e.xp6(1),e.Q6J("ngForOf",a.timeUnits),e.xp6(2),e.Q6J("ngModel",a.private),e.xp6(4),e.Q6J("ngIf",""!==a.invoiceError))},directives:[_.xw,_.yH,T.dk,_.Wh,L.lW,J.ZT,T.dn,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,W.h,c.JJ,c.On,c.wV,c.qQ,$.q,f.R9,f.bx,R.gD,p.sg,ue.Rr,K.Hw,X.gM,p.O5,Y.ey,M.BN],pipes:[p.rS],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();var Jt=h(8627);function Et(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"form",4,5),e.TgZ(2,"mat-form-field",6),e.TgZ(3,"input",7),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().memo=o}),e.qZA(),e.qZA(),e.TgZ(4,"mat-form-field",8),e.TgZ(5,"input",9),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().invoiceValue=o})("keyup",function(){return e.CHM(t),e.oxw().onInvoiceValueChange()}),e.qZA(),e.TgZ(6,"span",10),e._uU(7," Sats "),e.qZA(),e.TgZ(8,"mat-hint"),e._uU(9),e.qZA(),e.qZA(),e.TgZ(10,"div",11),e.TgZ(11,"button",12),e.NdJ("click",function(){return e.CHM(t),e.oxw().resetData()}),e._uU(12,"Clear Field"),e.qZA(),e.TgZ(13,"button",13),e.NdJ("click",function(){e.CHM(t);const o=e.MAs(1);return e.oxw().onAddInvoice(o)}),e._uU(14,"Create Invoice"),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(3),e.Q6J("ngModel",t.memo),e.xp6(2),e.Q6J("ngModel",t.invoiceValue)("step",100)("min",1),e.xp6(4),e.Oqu(t.invoiceValueHint)}}function Qt(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",14),e.TgZ(1,"button",15),e.NdJ("click",function(){return e.CHM(t),e.oxw().openCreateInvoiceModal()}),e._uU(2,"Create Invoice"),e.qZA(),e.qZA()}}function Yt(n,i){1&n&&e._UZ(0,"mat-progress-bar",46)}function Ht(n,i){1&n&&(e.TgZ(0,"th",47),e._uU(1," Date Created "),e.qZA())}const pe=function(n){return{"mr-0":n}};function Bt(n,i){if(1&n&&e._UZ(0,"span",53),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,pe,t.screenSize===t.screenSizeEnum.XS))}}function Vt(n,i){if(1&n&&e._UZ(0,"span",54),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,pe,t.screenSize===t.screenSizeEnum.XS))}}function Gt(n,i){if(1&n&&e._UZ(0,"span",55),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,pe,t.screenSize===t.screenSizeEnum.XS))}}function zt(n,i){if(1&n&&e._UZ(0,"span",56),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,pe,t.screenSize===t.screenSizeEnum.XS))}}function Wt(n,i){if(1&n&&(e.TgZ(0,"td",48),e.YNc(1,Bt,1,3,"span",49),e.YNc(2,Vt,1,3,"span",50),e.YNc(3,Gt,1,3,"span",51),e.YNc(4,zt,1,3,"span",52),e._uU(5),e.ALo(6,"date"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Q6J("ngIf","OPEN"===(null==t?null:t.state)),e.xp6(1),e.Q6J("ngIf","SETTLED"===(null==t?null:t.state)),e.xp6(1),e.Q6J("ngIf","ACCEPTED"===(null==t?null:t.state)),e.xp6(1),e.Q6J("ngIf","CANCELED"===(null==t?null:t.state)),e.xp6(1),e.hij(" ",e.xi3(6,5,1e3*(null==t?null:t.creation_date),"dd/MMM/y HH:mm"),"")}}function Xt(n,i){1&n&&(e.TgZ(0,"th",57),e._uU(1," Date Settled "),e.qZA())}function $t(n,i){if(1&n&&(e.TgZ(0,"td",58),e._uU(1),e.ALo(2,"date"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(0!=+(null==t?null:t.settle_date)?e.xi3(2,1,1e3*+(null==t?null:t.settle_date),"dd/MMM/y HH:mm"):"-")}}function jt(n,i){1&n&&(e.TgZ(0,"th",47),e._uU(1," Memo "),e.qZA())}const Kt=function(n){return{"max-width":n}};function en(n,i){if(1&n&&(e.TgZ(0,"td",48),e.TgZ(1,"div",59),e.TgZ(2,"span",60),e._uU(3),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.xp6(1),e.Q6J("ngStyle",e.VKq(2,Kt,a.screenSize===a.screenSizeEnum.XS?"10rem":"22rem")),e.xp6(2),e.Oqu(null==t?null:t.memo)}}function tn(n,i){1&n&&(e.TgZ(0,"th",61),e._uU(1," Amount (Sats) "),e.qZA())}function nn(n,i){if(1&n&&(e.TgZ(0,"td",48),e.TgZ(1,"span",62),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.value)," ")}}function an(n,i){1&n&&(e.TgZ(0,"th",61),e._uU(1," Amount Settled (Sats) "),e.qZA())}function on(n,i){if(1&n&&(e.TgZ(0,"td",48),e.TgZ(1,"span",62),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.amt_paid_sat)," ")}}function sn(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",63),e.TgZ(1,"div",64),e.TgZ(2,"mat-select",65),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",66),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}const ln=function(n){return{"pl-3":n}};function rn(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",67),e.TgZ(1,"div",68),e.TgZ(2,"mat-select",69),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",66),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw(2).onInvoiceClick(s)}),e._uU(5,"View Info"),e.qZA(),e.TgZ(6,"mat-option",66),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw(2).onRefreshInvoice(s)}),e._uU(7,"Refresh"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("ngClass",e.VKq(1,ln,t.screenSize!==t.screenSizeEnum.XS))}}function cn(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No invoice available."),e.qZA())}function un(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting invoices..."),e.qZA())}function pn(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(t.errorMessage)}}function mn(n,i){if(1&n&&(e.TgZ(0,"td",70),e.YNc(1,cn,2,0,"p",71),e.YNc(2,un,2,0,"p",71),e.YNc(3,pn,2,1,"p",71),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",(!(null!=t.invoices&&t.invoices.data)||(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.invoices&&t.invoices.data)||(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.invoices&&t.invoices.data)||(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const _n=function(n){return{"display-none":n}};function dn(n,i){if(1&n&&e._UZ(0,"tr",72),2&n){const t=e.oxw(2);e.Q6J("ngClass",e.VKq(1,_n,(null==t.invoices?null:t.invoices.data)&&(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)>0))}}function hn(n,i){1&n&&e._UZ(0,"tr",73)}function gn(n,i){1&n&&e._UZ(0,"tr",74)}const fn=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Cn=function(){return["no_invoice"]};function xn(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",16),e.TgZ(1,"div",17),e.TgZ(2,"div",18),e._UZ(3,"fa-icon",19),e.TgZ(4,"span",20),e._uU(5,"Invoices History"),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",21),e.TgZ(7,"input",22),e.NdJ("keyup",function(){return e.CHM(t),e.oxw().applyFilter()})("ngModelChange",function(o){return e.CHM(t),e.oxw().selFilter=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",23),e.YNc(9,Yt,1,0,"mat-progress-bar",24),e.TgZ(10,"table",25,26),e.ynx(12,27),e.YNc(13,Ht,2,0,"th",28),e.YNc(14,Wt,7,8,"td",29),e.BQk(),e.ynx(15,30),e.YNc(16,Xt,2,0,"th",31),e.YNc(17,$t,3,4,"td",32),e.BQk(),e.ynx(18,33),e.YNc(19,jt,2,0,"th",28),e.YNc(20,en,4,4,"td",29),e.BQk(),e.ynx(21,34),e.YNc(22,tn,2,0,"th",35),e.YNc(23,nn,4,3,"td",29),e.BQk(),e.ynx(24,36),e.YNc(25,an,2,0,"th",35),e.YNc(26,on,4,3,"td",29),e.BQk(),e.ynx(27,37),e.YNc(28,sn,6,0,"th",38),e.YNc(29,rn,8,3,"td",39),e.BQk(),e.ynx(30,40),e.YNc(31,mn,4,3,"td",41),e.BQk(),e.YNc(32,dn,1,3,"tr",42),e.YNc(33,hn,1,0,"tr",43),e.YNc(34,gn,1,0,"tr",44),e.qZA(),e.TgZ(35,"mat-paginator",45),e.NdJ("page",function(o){return e.CHM(t),e.oxw().onPageChange(o)}),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(3),e.Q6J("icon",t.faHistory),e.xp6(4),e.Q6J("ngModel",t.selFilter),e.xp6(2),e.Q6J("ngIf",t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",t.invoices)("ngClass",e.VKq(13,fn,""!==t.errorMessage)),e.xp6(22),e.Q6J("matFooterRowDef",e.DdM(15,Cn)),e.xp6(1),e.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns),e.xp6(1),e.Q6J("length",t.totalInvoices)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let Ie=(()=>{class n{constructor(t,a,o,s,u,g){this.logger=t,this.store=a,this.decimalPipe=o,this.commonService=s,this.datePipe=u,this.actions=g,this.calledFrom="transactions",this.faHistory=Z.qO$,this.selNode={},this.newlyAddedInvoiceMemo=null,this.newlyAddedInvoiceValue=null,this.memo="",this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoicesData=[],this.information={},this.flgSticky=!1,this.selFilter="",this.private=!1,this.expiryStep=100,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.firstOffset=-1,this.lastOffset=-1,this.totalInvoices=100,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["creation_date","value","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["creation_date","settle_date","value","amt_paid_sat","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["creation_date","settle_date","memo","value","actions"]):(this.flgSticky=!0,this.displayedColumns=["creation_date","settle_date","memo","value","amt_paid_sat","actions"])}ngOnInit(){this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(C.Ef).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.totalInvoices=t.listInvoices.total_invoices,this.firstOffset=+t.listInvoices.first_index_offset,this.lastOffset=+t.listInvoices.last_index_offset,this.invoicesData=t.listInvoices.invoices||[],this.invoicesData.length>0&&this.sort&&this.paginator&&this.loadInvoicesTable(this.invoicesData),this.logger.info(t)}),this.actions.pipe((0,d.R)(this.unSubs[3]),(0,E.h)(t=>t.type===l.uR.SET_LOOKUP_LND||t.type===l.uR.UPDATE_API_CALL_STATUS_LND)).subscribe(t=>{t.type===l.uR.SET_LOOKUP_LND&&this.invoicesData.length>0&&this.sort&&this.paginator&&t.payload&&(this.updateInvoicesData(JSON.parse(JSON.stringify(t.payload))),this.loadInvoicesTable(this.invoicesData))})}ngAfterViewInit(){this.invoicesData.length>0&&this.loadInvoicesTable(this.invoicesData)}onAddInvoice(t){const a=this.expiry?this.expiry:3600;this.newlyAddedInvoiceMemo=this.memo,this.newlyAddedInvoiceValue=this.invoiceValue,this.store.dispatch((0,b.Rd)({payload:{uiMessage:l.m6.ADD_INVOICE,memo:this.memo,invoiceValue:this.invoiceValue,private:this.private,expiry:a,pageSize:this.pageSize,openModal:!0}})),this.resetData()}onInvoiceClick(t){this.store.dispatch((0,v.qR)({payload:{data:{invoice:t,newlyAdded:!1,component:Jt.v}}}))}onRefreshInvoice(t){this.store.dispatch((0,b.n7)({payload:{openSnackBar:!0,paymentHash:Buffer.from(t.r_hash.trim(),"hex").toString("base64").replace(/\+/g,"-").replace(/[/]/g,"_")}}))}updateInvoicesData(t){this.invoicesData=this.invoicesData.map(a=>a.r_hash===t.r_hash?t:a)}loadInvoicesTable(t){this.invoices=new r.by(t?[...t]:[]),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.filterPredicate=(a,o)=>((a.creation_date?this.datePipe.transform(new Date(1e3*a.creation_date),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(a.settle_date?this.datePipe.transform(new Date(1e3*a.settle_date),"dd/MMM/YYYY HH:mm").toLowerCase():"")+JSON.stringify(a).toLowerCase()).includes(o),this.applyFilter(),this.logger.info(this.invoices)}resetData(){this.memo="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint=""}applyFilter(){this.invoices.filter=this.selFilter.trim().toLowerCase()}onPageChange(t){let a=!0,o=this.lastOffset,s=t.pageSize;0===t.pageIndex?(a=!0,o=0):t.pageIndext.previousPageIndex&&t.length>(t.pageIndex+1)*t.pageSize?(a=!0,o=this.firstOffset):t.length<=(t.pageIndex+1)*t.pageSize&&(a=!1,o=0,s=t.length-t.pageIndex*t.pageSize),this.store.dispatch((0,b.WM)({payload:{num_max_invoices:t.pageSize,index_offset:o,reversed:a}}))}onInvoiceValueChange(){this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,d.R)(this.unSubs[4])).subscribe({next:t=>{this.invoiceValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,l.Xz.OTHER)+" "+t.unit},error:t=>{this.invoiceValueHint="Conversion Error: "+t}}))}onDownloadCSV(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")}openCreateInvoiceModal(){this.store.dispatch((0,v.qR)({payload:{data:{pageSize:this.pageSize,component:Pt}}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(p.JJ),e.Y36(O.v),e.Y36(p.uU),e.Y36(G.eX))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-lightning-invoices"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},inputs:{calledFrom:"calledFrom"},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Invoices")}])],decls:4,vars:3,consts:[["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"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","end start"],["matInput","","placeholder","Memo","tabindex","1","name","memo",3,"ngModel","ngModelChange"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","2","name","invValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["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"],["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","30","fxLayoutAlign","start end"],["matInput","","tabindex","6","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","creation_date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","settle_date"],["mat-header-cell","","mat-sort-header","","class","pl-4",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["matColumnDef","memo"],["matColumnDef","value"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_paid_sat"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["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","Cancelled","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","Cancelled","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header","",1,"pl-4"],["mat-cell","",1,"pl-4"],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["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(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,Et,15,5,"form",1),e.YNc(2,Qt,3,0,"div",2),e.YNc(3,xn,36,16,"div",3),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf","home"===a.calledFrom),e.xp6(1),e.Q6J("ngIf","transactions"===a.calledFrom),e.xp6(1),e.Q6J("ngIf","transactions"===a.calledFrom))},directives:[_.xw,_.yH,_.Wh,p.O5,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,c.JJ,c.On,c.wV,c.qQ,$.q,f.R9,f.bx,L.lW,M.BN,Q.$V,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,X.gM,p.PC,q.Zl,R.gD,R.$L,Y.ey,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.uU,p.JJ],styles:[".mat-column-memo[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-memo[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();var V=h(5698),j=h(8104),H=h(1125),ne=h(1079);const Zn=["paymentReq"];function yn(n,i){if(1&n&&(e.TgZ(0,"mat-hint"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.paymentDecodedHint)}}function Tn(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Payment request is required."),e.qZA())}function bn(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.paymentDecodedHint)}}function An(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Payment amount is required."),e.qZA())}function vn(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",1),e.TgZ(1,"input",29,30),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().paymentAmount=o})("change",function(o){return e.CHM(t),e.oxw().onAmountChange(o)}),e.qZA(),e.TgZ(3,"mat-hint"),e._uU(4,"It is a zero amount invoice, enter amount to be paid."),e.qZA(),e.YNc(5,An,2,0,"mat-error",11),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngModel",t.paymentAmount),e.xp6(4),e.Q6J("ngIf",!t.paymentAmount)}}function wn(n,i){if(1&n&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",null==t?null:t.name," ")}}function qn(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("",null==t.selFeeLimitType?null:t.selFeeLimitType.placeholder," is required.")}}function Sn(n,i){if(1&n&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.Oqu((null==t?null:t.remote_alias)||(null==t?null:t.chan_id))}}function Ln(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Channel not found in the list."),e.qZA())}function kn(n,i){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.paymentError)}}function Fn(n,i){if(1&n&&(e.TgZ(0,"div",32),e._UZ(1,"fa-icon",33),e.YNc(2,kn,2,1,"span",11),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(1),e.Q6J("ngIf",""!==t.paymentError)}}let Un=(()=>{class n{constructor(t,a,o,s,u,g,N){this.dialogRef=t,this.store=a,this.logger=o,this.commonService=s,this.decimalPipe=u,this.actions=g,this.dataService=N,this.faExclamationTriangle=Z.eHv,this.selNode={},this.paymentDecoded={},this.zeroAmtInvoice=!1,this.paymentAmount=null,this.paymentRequest="",this.paymentDecodedHint="",this.showAdvanced=!1,this.activeChannels=[],this.filteredMinAmtActvChannels=[],this.selectedChannelCtrl=new c.NI,this.feeLimit=null,this.selFeeLimitType=l.Vc[0],this.feeLimitTypes=l.Vc,this.advancedTitle="Advanced Options",this.paymentError="",this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(o=>{this.selNode=o}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[1])).subscribe(o=>{this.activeChannels=o.channels.filter(s=>s.active),this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.logger.info(o)}),this.actions.pipe((0,d.R)(this.unSubs[2]),(0,E.h)(o=>o.type===l.uR.UPDATE_API_CALL_STATUS_LND||o.type===l.uR.SEND_PAYMENT_STATUS_LND)).subscribe(o=>{o.type===l.uR.SEND_PAYMENT_STATUS_LND&&this.dialogRef.close(),o.type===l.uR.UPDATE_API_CALL_STATUS_LND&&o.payload.status===l.Bn.ERROR&&"SendPayment"===o.payload.action&&(delete this.paymentDecoded.num_satoshis,this.paymentError=o.payload.message)});let t="",a="";this.activeChannels=this.activeChannels.sort((o,s)=>(t=o.remote_alias?o.remote_alias.toLowerCase():o.chan_id?o.chan_id.toLowerCase():"",a=s.remote_alias?s.remote_alias.toLowerCase():s.chan_id?s.chan_id.toLowerCase():"",ta?1:0)),this.selectedChannelCtrl.valueChanges.pipe((0,d.R)(this.unSubs[3])).subscribe(o=>{"string"==typeof o&&(this.filteredMinAmtActvChannels=this.filterChannels())})}filterChannels(){return this.activeChannels.filter(t=>0===(t.remote_alias?t.remote_alias.toLowerCase():t.chan_id?t.chan_id.toLowerCase():"").indexOf(this.selectedChannelCtrl.value?this.selectedChannelCtrl.value.toLowerCase():"")&&t.local_balance>=+(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0))}displayFn(t){return t&&t.remote_alias?t.remote_alias:t&&t.chan_id?t.chan_id:""}onSelectedChannelChanged(){if(this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.length>0&&"string"==typeof this.selectedChannelCtrl.value){const t=this.activeChannels.filter(a=>{const o=a.remote_alias?a.remote_alias.toLowerCase():a.chan_id?a.chan_id.toLowerCase():"";return o.length===this.selectedChannelCtrl.value.length&&0===o.indexOf(this.selectedChannelCtrl.value?this.selectedChannelCtrl.value.toLowerCase():"")});t&&t.length>0?(this.selectedChannelCtrl.setValue(t[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;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,this.store.dispatch((0,b.oV)({payload:{uiMessage:l.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,outgoingChannel:this.selectedChannelCtrl.value,feeLimitType:this.selFeeLimitType.id,feeLimit:this.feeLimit,fromDialog:!0}}))):(this.zeroAmtInvoice=!0,this.paymentDecoded.num_satoshis=this.paymentAmount,this.store.dispatch((0,b.oV)({payload:{uiMessage:l.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,paymentAmount:this.paymentAmount,outgoingChannel:this.selectedChannelCtrl.value,feeLimitType:this.selFeeLimitType.id,feeLimit:this.feeLimit,fromDialog:!0}})))}onAmountChange(t){delete this.paymentDecoded.num_satoshis}onPaymentRequestEntry(t){this.paymentRequest=t,this.paymentAmount=null,this.paymentError="",this.paymentDecodedHint="",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,V.q)(1)).subscribe({next:a=>{this.paymentDecoded=a,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.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.num_satoshis,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,d.R)(this.unSubs[4])).subscribe({next:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats ("+o.symbol+" "+this.decimalPipe.transform(o.OTHER?o.OTHER:0,l.Xz.OTHER)+") | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")},error:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")):(this.zeroAmtInvoice=!0,this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.paymentDecodedHint="Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None"))},error:a=>{this.logger.error(a),this.paymentDecodedHint="ERROR: "+a.message,this.paymentReq.control.setErrors({decodeError:!0})}}))}onAdvancedPanelToggle(t,a){if(t&&!a){const o=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)+(""!==o?" | First Outgoing Channel: "+o:"")}else this.advancedTitle="Advanced Options"}resetData(){this.paymentDecoded={},this.paymentRequest="",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=l.Vc[0],this.advancedTitle="Advanced Options",this.zeroAmtInvoice=!1,this.paymentReq.control.setErrors(null),this.paymentError="",this.paymentDecodedHint=""}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(w.yh),e.Y36(F.mQ),e.Y36(O.v),e.Y36(p.JJ),e.Y36(G.eX),e.Y36(j.D))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-lightning-send-payments"]],viewQuery:function(t,a){if(1&t&&e.Gf(Zn,5),2&t){let o;e.iGM(o=e.CRH())&&(a.paymentReq=o.first)}},decls:43,vars:21,consts:[["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","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayoutAlign","space-between stretch","fxLayout","column"],["sendPaymentForm","ngForm"],["autoFocus","","matInput","","placeholder","Payment Request","name","paymentRequest","rows","4","tabindex","1","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[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"],["fxFlex","30","fxLayoutAlign","start end"],["tabindex","5","Placeholder","Fee Limits",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","26"],["matInput","","type","number","name","feeLmt","required","","tabindex","6",3,"ngModel","placeholder","step","min","disabled","ngModelChange"],["fLmt","ngModel"],["fxFlex","40","fxLayoutAlign","start end"],["type","text","placeholder","First Outgoing Channel","aria-label","First Outgoing Channel","matInput","","tabindex","7",3,"formControl","matAutocomplete"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],["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","","id","sendBtn","color","primary","tabindex","3",3,"click"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","required","",3,"ngModel","ngModelChange","change"],["paymentAmt","ngModel"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(t,a){if(1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5,"Send Payment"),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.TgZ(9,"form",7,8),e.TgZ(11,"mat-form-field",1),e.TgZ(12,"textarea",9,10),e.NdJ("ngModelChange",function(s){return a.onPaymentRequestEntry(s)})("matTextareaAutosize",function(){return!0}),e.qZA(),e.YNc(14,yn,2,1,"mat-hint",11),e.YNc(15,Tn,2,0,"mat-error",11),e.YNc(16,bn,2,1,"mat-error",11),e.qZA(),e.YNc(17,vn,6,2,"mat-form-field",12),e.TgZ(18,"mat-expansion-panel",13),e.NdJ("closed",function(){return a.onAdvancedPanelToggle(!0,!1)})("opened",function(){return a.onAdvancedPanelToggle(!1,!1)}),e.TgZ(19,"mat-expansion-panel-header"),e.TgZ(20,"mat-panel-title"),e.TgZ(21,"span"),e._uU(22),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"div",14),e.TgZ(24,"mat-form-field",15),e.TgZ(25,"mat-select",16),e.NdJ("valueChange",function(s){return a.selFeeLimitType=s}),e.YNc(26,wn,2,2,"mat-option",17),e.qZA(),e.qZA(),e.TgZ(27,"mat-form-field",18),e.TgZ(28,"input",19,20),e.NdJ("ngModelChange",function(s){return a.feeLimit=s}),e.qZA(),e.YNc(30,qn,2,1,"mat-error",11),e.qZA(),e.TgZ(31,"mat-form-field",21),e._UZ(32,"input",22),e.TgZ(33,"mat-autocomplete",23,24),e.NdJ("optionSelected",function(){return a.onSelectedChannelChanged()}),e.YNc(35,Sn,2,2,"mat-option",17),e.qZA(),e.YNc(36,Ln,2,0,"mat-error",11),e.qZA(),e.qZA(),e.qZA(),e.YNc(37,Fn,3,2,"div",25),e.TgZ(38,"div",26),e.TgZ(39,"button",27),e.NdJ("click",function(){return a.resetData()}),e._uU(40,"Clear Fields"),e.qZA(),e.TgZ(41,"button",28),e.NdJ("click",function(){return a.onSendPayment()}),e._uU(42,"Send Payment"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t){const o=e.MAs(13),s=e.MAs(34);e.xp6(6),e.Q6J("mat-dialog-close",!1),e.xp6(6),e.Q6J("ngModel",a.paymentRequest),e.xp6(2),e.Q6J("ngIf",a.paymentRequest&&""!==a.paymentDecodedHint),e.xp6(1),e.Q6J("ngIf",!a.paymentRequest),e.xp6(1),e.Q6J("ngIf",null==o.errors?null:o.errors.decodeError),e.xp6(1),e.Q6J("ngIf",a.zeroAmtInvoice),e.xp6(5),e.Oqu(a.advancedTitle),e.xp6(3),e.Q6J("value",a.selFeeLimitType),e.xp6(1),e.Q6J("ngForOf",a.feeLimitTypes),e.xp6(2),e.Q6J("ngModel",a.feeLimit)("placeholder",null==a.selFeeLimitType?null:a.selFeeLimitType.placeholder)("step",1)("min",0)("disabled",a.selFeeLimitType===a.feeLimitTypes[0]),e.xp6(2),e.Q6J("ngIf",a.selFeeLimitType!==a.feeLimitTypes[0]&&!a.feeLimit),e.xp6(2),e.Q6J("formControl",a.selectedChannelCtrl)("matAutocomplete",s),e.xp6(1),e.Q6J("displayWith",a.displayFn),e.xp6(2),e.Q6J("ngForOf",a.filteredMinAmtActvChannels),e.xp6(1),e.Q6J("ngIf",null==a.selectedChannelCtrl.errors?null:a.selectedChannelCtrl.errors.notfound),e.xp6(1),e.Q6J("ngIf",""!==a.paymentError)}},directives:[_.xw,_.yH,T.dk,_.Wh,L.lW,J.ZT,T.dn,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,W.h,c.Q7,c.JJ,c.On,p.O5,H.ib,H.yz,H.yK,R.gD,p.sg,c.wV,c.qQ,$.q,ne.ZL,c.oH,ne.XC,f.bx,f.TO,Y.ey,M.BN],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();var oe=h(3093),ee=h(711);const Nn=["sendPaymentForm"];function On(n,i){if(1&n&&(e.TgZ(0,"mat-hint"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.paymentDecodedHint)}}function Rn(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Payment request is required."),e.qZA())}function In(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"form",4,5),e.TgZ(2,"mat-form-field",6),e.TgZ(3,"textarea",7,8),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().onPaymentRequestEntry(o)})("matTextareaAutosize",function(){return!0}),e.qZA(),e.YNc(5,On,2,1,"mat-hint",9),e.YNc(6,Rn,2,0,"mat-error",9),e.qZA(),e.TgZ(7,"div",10),e.TgZ(8,"button",11),e.NdJ("click",function(){return e.CHM(t),e.oxw().resetData()}),e._uU(9,"Clear Field"),e.qZA(),e.TgZ(10,"button",12),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSendPayment()}),e._uU(11,"Send Payment"),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(3),e.Q6J("ngModel",t.paymentRequest),e.xp6(2),e.Q6J("ngIf",t.paymentRequest&&""!==t.paymentDecodedHint),e.xp6(1),e.Q6J("ngIf",!t.paymentRequest)}}function Mn(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",13),e.TgZ(1,"button",14),e.NdJ("click",function(){return e.CHM(t),e.oxw().openSendPaymentModal()}),e._uU(2,"Send Payment"),e.qZA(),e.qZA()}}function Dn(n,i){1&n&&e._UZ(0,"mat-progress-bar",52)}function Pn(n,i){1&n&&(e.TgZ(0,"th",53),e._uU(1,"Creation Date"),e.qZA())}const ae=function(n){return{"mr-0":n}};function Jn(n,i){if(1&n&&e._UZ(0,"span",57),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,ae,t.screenSize===t.screenSizeEnum.XS))}}function En(n,i){if(1&n&&e._UZ(0,"span",58),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,ae,t.screenSize===t.screenSizeEnum.XS))}}function Qn(n,i){if(1&n&&(e.TgZ(0,"td",54),e.YNc(1,Jn,1,3,"span",55),e.YNc(2,En,1,3,"span",56),e._uU(3),e.ALo(4,"date"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Q6J("ngIf","SUCCEEDED"===(null==t?null:t.status)),e.xp6(1),e.Q6J("ngIf","SUCCEEDED"!==(null==t?null:t.status)),e.xp6(1),e.hij(" ",e.xi3(4,3,1e3*(null==t?null:t.creation_date),"dd/MMM/y HH:mm")," ")}}function Yn(n,i){1&n&&(e.TgZ(0,"th",53),e._uU(1,"Payment Hash"),e.qZA())}const Me=function(n){return{"max-width":n}};function Hn(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",59),e.TgZ(2,"span",60),e._uU(3),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.xp6(1),e.Q6J("ngStyle",e.VKq(2,Me,a.screenSize===a.screenSizeEnum.XS?"10rem":"30rem")),e.xp6(2),e.Oqu(null==t?null:t.payment_hash)}}function Bn(n,i){1&n&&(e.TgZ(0,"th",61),e._uU(1,"Fee (Sats)"),e.qZA())}function Vn(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",62),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==t?null:t.fee))}}function Gn(n,i){1&n&&(e.TgZ(0,"th",61),e._uU(1,"Value (Sats)"),e.qZA())}function zn(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",62),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==t?null:t.value))}}function Wn(n,i){1&n&&(e.TgZ(0,"th",61),e._uU(1,"#Hops"),e.qZA())}function Xn(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",62),e._uU(2),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu((null==t||null==t.htlcs[0]||null==t.htlcs[0].route||null==t.htlcs[0].route.hops?null:t.htlcs[0].route.hops.length)||0)}}function $n(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",63),e.TgZ(1,"div",64),e.TgZ(2,"mat-select",65),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",66),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function jn(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",67),e.TgZ(1,"button",68),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw(2).onPaymentClick(s)}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function Kn(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No payment available."),e.qZA())}function ea(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting payments..."),e.qZA())}function ta(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(t.errorMessage)}}function na(n,i){if(1&n&&(e.TgZ(0,"td",69),e.YNc(1,Kn,2,0,"p",9),e.YNc(2,ea,2,0,"p",9),e.YNc(3,ta,2,1,"p",9),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",(!(null!=t.payments&&t.payments.data)||(null==t.payments||null==t.payments.data?null:t.payments.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.payments&&t.payments.data)||(null==t.payments||null==t.payments.data?null:t.payments.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.payments&&t.payments.data)||(null==t.payments||null==t.payments.data?null:t.payments.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}function aa(n,i){if(1&n&&e._UZ(0,"span",57),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,ae,t.screenSize===t.screenSizeEnum.XS))}}function ia(n,i){if(1&n&&e._UZ(0,"span",58),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,ae,t.screenSize===t.screenSizeEnum.XS))}}function oa(n,i){if(1&n&&e._UZ(0,"span",57),2&n){const t=e.oxw(5);e.Q6J("ngClass",e.VKq(1,ae,t.screenSize===t.screenSizeEnum.XS))}}function sa(n,i){if(1&n&&e._UZ(0,"span",58),2&n){const t=e.oxw(5);e.Q6J("ngClass",e.VKq(1,ae,t.screenSize===t.screenSizeEnum.XS))}}function la(n,i){if(1&n&&(e.TgZ(0,"span",72),e.YNc(1,oa,1,3,"span",55),e.YNc(2,sa,1,3,"span",56),e._uU(3),e.ALo(4,"date"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Q6J("ngIf","SUCCEEDED"===t.status),e.xp6(1),e.Q6J("ngIf","SUCCEEDED"!==t.status),e.xp6(1),e.hij(" ",e.xi3(4,3,1e3*t.attempt_time,"dd/MMM/y HH:mm")," ")}}function ra(n,i){if(1&n&&(e.ynx(0),e.YNc(1,la,5,6,"span",71),e.BQk()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.htlcs)}}function ca(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",70),e.YNc(2,aa,1,3,"span",55),e.YNc(3,ia,1,3,"span",56),e._uU(4),e.qZA(),e.YNc(5,ra,2,1,"ng-container",9),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Q6J("ngIf","SUCCEEDED"===(null==t?null:t.status)),e.xp6(1),e.Q6J("ngIf","SUCCEEDED"!==(null==t?null:t.status)),e.xp6(1),e.hij(" Total Attempts: ",null==t||null==t.htlcs?null:t.htlcs.length," "),e.xp6(1),e.Q6J("ngIf",null==t?null:t.is_expanded)}}function ua(n,i){if(1&n&&(e.TgZ(0,"span",70),e._uU(1),e.qZA()),2&n){const t=i.index;e.xp6(1),e.hij(" HTLC ",t+1," ")}}function pa(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,ua,2,1,"span",73),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.htlcs)}}function ma(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",59),e.TgZ(2,"span",60),e._uU(3),e.qZA(),e.qZA(),e.YNc(4,pa,2,1,"span",9),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.xp6(1),e.Q6J("ngStyle",e.VKq(3,Me,a.screenSize===a.screenSizeEnum.XS?"10rem":"30rem")),e.xp6(2),e.Oqu(null==t?null:t.payment_hash),e.xp6(1),e.Q6J("ngIf",null==t?null:t.is_expanded)}}function _a(n,i){if(1&n&&(e.TgZ(0,"span",74),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,null==t.route?null:t.route.total_fees,"1.0-0")," ")}}function da(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,_a,3,4,"span",75),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.htlcs)}}function ha(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",74),e._uU(2),e.ALo(3,"number"),e.qZA(),e.YNc(4,da,2,1,"span",9),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.xi3(3,2,null==t?null:t.fee,"1.0-0")),e.xp6(2),e.Q6J("ngIf",null==t?null:t.is_expanded)}}function ga(n,i){if(1&n&&(e.TgZ(0,"span",74),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,null==t.route?null:t.route.total_amt,"1.0-0")," ")}}function fa(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,ga,3,4,"span",75),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.htlcs)}}function Ca(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",74),e._uU(2),e.ALo(3,"number"),e.qZA(),e.YNc(4,fa,2,1,"span",9),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.xi3(3,2,null==t?null:t.value,"1.0-0")),e.xp6(2),e.Q6J("ngIf",null==t?null:t.is_expanded)}}function xa(n,i){if(1&n&&(e.TgZ(0,"span",74),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,(null==t.route||null==t.route.hops?null:t.route.hops.length)||0,"1.0-0")," ")}}function Za(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,xa,3,4,"span",75),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.htlcs)}}function ya(n,i){if(1&n&&(e.TgZ(0,"td",54),e.TgZ(1,"span",74),e._uU(2,"-"),e.qZA(),e.YNc(3,Za,2,1,"span",9),e.qZA()),2&n){const t=i.$implicit;e.xp6(3),e.Q6J("ngIf",null==t?null:t.is_expanded)}}function Ta(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",62),e.TgZ(1,"button",79),e.NdJ("click",function(){const s=e.CHM(t).$implicit,u=e.oxw(2).$implicit;return e.oxw(2).onHTLCClick(s,u)}),e._uU(2),e.qZA(),e.qZA()}if(2&n){const t=i.index;e.xp6(2),e.hij("View ",t+1,"")}}function ba(n,i){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,Ta,3,1,"div",78),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.htlcs)}}function Aa(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",76),e.TgZ(1,"span",62),e.TgZ(2,"button",77),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return s.is_expanded=!(null!=s&&s.is_expanded)}),e._uU(3),e.qZA(),e.qZA(),e.YNc(4,ba,2,1,"div",9),e.qZA()}if(2&n){const t=i.$implicit;e.xp6(3),e.Oqu(null!=t&&t.is_expanded?"Hide":"Show"),e.xp6(1),e.Q6J("ngIf",null==t?null:t.is_expanded)}}function va(n,i){1&n&&e._UZ(0,"tr",80)}const wa=function(n){return{"display-none":n}};function qa(n,i){if(1&n&&e._UZ(0,"tr",81),2&n){const t=e.oxw(2);e.Q6J("ngClass",e.VKq(1,wa,(null==t.payments?null:t.payments.data)&&(null==t.payments||null==t.payments.data?null:t.payments.data.length)>0))}}function Sa(n,i){1&n&&e._UZ(0,"tr",82)}function La(n,i){1&n&&e._UZ(0,"tr",80)}const ka=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Fa=function(){return["no_payment"]};function Ua(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",15),e.TgZ(1,"div",16),e.TgZ(2,"div",17),e._UZ(3,"fa-icon",18),e.TgZ(4,"span",19),e._uU(5,"Payments History"),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",20),e.TgZ(7,"input",21),e.NdJ("keyup",function(){return e.CHM(t),e.oxw().applyFilter()})("ngModelChange",function(o){return e.CHM(t),e.oxw().selFilter=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",22),e.TgZ(9,"div",23),e.YNc(10,Dn,1,0,"mat-progress-bar",24),e.TgZ(11,"table",25,26),e.ynx(13,27),e.YNc(14,Pn,2,0,"th",28),e.YNc(15,Qn,5,6,"td",29),e.BQk(),e.ynx(16,30),e.YNc(17,Yn,2,0,"th",28),e.YNc(18,Hn,4,4,"td",29),e.BQk(),e.ynx(19,31),e.YNc(20,Bn,2,0,"th",32),e.YNc(21,Vn,4,3,"td",29),e.BQk(),e.ynx(22,33),e.YNc(23,Gn,2,0,"th",32),e.YNc(24,zn,4,3,"td",29),e.BQk(),e.ynx(25,34),e.YNc(26,Wn,2,0,"th",32),e.YNc(27,Xn,3,1,"td",29),e.BQk(),e.ynx(28,35),e.YNc(29,$n,6,0,"th",36),e.YNc(30,jn,3,0,"td",37),e.BQk(),e.ynx(31,38),e.YNc(32,na,4,3,"td",39),e.BQk(),e.ynx(33,40),e.YNc(34,ca,6,4,"td",29),e.BQk(),e.ynx(35,41),e.YNc(36,ma,5,5,"td",29),e.BQk(),e.ynx(37,42),e.YNc(38,ha,5,5,"td",29),e.BQk(),e.ynx(39,43),e.YNc(40,Ca,5,5,"td",29),e.BQk(),e.ynx(41,44),e.YNc(42,ya,4,1,"td",29),e.BQk(),e.ynx(43,45),e.YNc(44,Aa,5,2,"td",46),e.BQk(),e.YNc(45,va,1,0,"tr",47),e.YNc(46,qa,1,3,"tr",48),e.YNc(47,Sa,1,0,"tr",49),e.YNc(48,La,1,0,"tr",50),e.qZA(),e.TgZ(49,"mat-paginator",51),e.NdJ("page",function(o){return e.CHM(t),e.oxw().onPageChange(o)}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(3),e.Q6J("icon",t.faHistory),e.xp6(4),e.Q6J("ngModel",t.selFilter),e.xp6(3),e.Q6J("ngIf",t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",t.payments)("ngClass",e.VKq(15,ka,""!==t.errorMessage)),e.xp6(34),e.Q6J("matRowDefColumns",t.htlcColumns)("matRowDefWhen",t.is_group),e.xp6(1),e.Q6J("matFooterRowDef",e.DdM(17,Fa)),e.xp6(1),e.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns),e.xp6(1),e.Q6J("length",t.totalPayments)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let De=(()=>{class n{constructor(t,a,o,s,u,g,N,x){this.logger=t,this.commonService=a,this.dataService=o,this.store=s,this.rtlEffects=u,this.lndEffects=g,this.decimalPipe=N,this.datePipe=x,this.calledFrom="transactions",this.faHistory=Z.qO$,this.newlyAddedPayment="",this.selNode={},this.information={},this.peers=[],this.totalPayments=100,this.paymentJSONArr=[],this.displayedColumns=[],this.htlcColumns=[],this.paymentDecoded={},this.paymentRequest="",this.paymentDecodedHint="",this.flgSticky=!1,this.firstOffset=-1,this.lastOffset=-1,this.selFilter="",this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["creation_date","fee","actions"],this.htlcColumns=["groupTotal","groupFee","groupAction"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["creation_date","fee","value","hops","actions"],this.htlcColumns=["groupTotal","groupFee","groupValue","groupHops","groupAction"]):(this.flgSticky=!0,this.displayedColumns=["creation_date","payment_hash","fee","value","hops","actions"],this.htlcColumns=["groupTotal","groupHash","groupFee","groupValue","groupHops","groupAction"])}ngOnInit(){this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(C.Wi).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.peers=t.peers}),this.store.select(C.PP).pipe((0,d.R)(this.unSubs[3])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.paymentJSONArr=t.listPayments.payments||[],this.totalPayments=this.paymentJSONArr.length,this.firstOffset=+t.listPayments.first_index_offset,this.lastOffset=+t.listPayments.last_index_offset,this.paymentJSONArr&&this.paymentJSONArr.length>0&&this.sort&&this.paginator&&this.loadPaymentsTable(this.paymentJSONArr.slice(0,this.pageSize)),this.logger.info(t)})}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,V.q)(1)).subscribe(t=>{this.paymentDecoded=t,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,v.c1)({payload:{data:{type:l.n_.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:l.Gi.DATE_TIME},{key:"num_satoshis",value:this.paymentDecoded.num_satoshis,title:"Amount (Sats)",width:50,type:l.Gi.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:l.Gi.NUMBER},{key:"cltv_expiry",value:this.paymentDecoded.cltv_expiry,title:"CLTV Expiry",width:50}]]}}})),this.rtlEffects.closeConfirm.pipe((0,V.q)(1)).subscribe(a=>{a&&(this.store.dispatch((0,b.oV)({payload:{uiMessage:l.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,fromDialog:!1}})),this.resetData())})):(this.store.dispatch((0,v.c1)({payload:{data:{type:l.n_.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:l.Gi.DATE_TIME},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:l.Gi.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:l.Gi.NUMBER.toLowerCase(),inputValue:"",width:30}]}}})),this.rtlEffects.closeConfirm.pipe((0,V.q)(1)).subscribe(o=>{o&&(this.paymentDecoded.num_satoshis=o[0].inputValue,this.store.dispatch((0,b.oV)({payload:{uiMessage:l.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,paymentAmount:o[0].inputValue,fromDialog:!1}})),this.resetData())}))}openSendPaymentModal(){this.store.dispatch((0,v.qR)({payload:{data:{component:Un}}}))}onPaymentRequestEntry(t){this.paymentRequest=t,this.paymentDecodedHint="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,V.q)(1)).subscribe(a=>{this.paymentDecoded=a,this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis?this.selNode.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.num_satoshis,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,d.R)(this.unSubs[5])).subscribe({next:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats ("+o.symbol+this.decimalPipe.transform(o.OTHER?o.OTHER:0,l.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats | Memo: "+this.paymentDecoded.description:this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description})}onPageChange(t){let a=!0,o=this.lastOffset,s=t.pageSize;0===t.pageIndex?(a=!0,o=0):t.pageIndext.previousPageIndex&&t.length>(t.pageIndex+1)*t.pageSize?(a=!0,o=this.firstOffset):t.length<=(t.pageIndex+1)*t.pageSize&&(a=!1,o=0,s=t.length-t.pageIndex*t.pageSize);const u=t.pageIndex*this.pageSize;this.loadPaymentsTable(this.paymentJSONArr.slice(u,u+this.pageSize))}is_group(t,a){return a.htlcs&&a.htlcs.length>1}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}getHopDetails(t){const a=this;return t.reduce((o,s)=>{const u=a.peers.find(g=>g.pub_key===s.pub_key);return u&&u.alias?o.push("
Channel: "+u.alias.padEnd(20)+"			Amount (Sats): "+a.decimalPipe.transform(s.amt_to_forward)+"
"):a.dataService.getAliasesFromPubkeys(s.pub_key,!1).pipe((0,d.R)(a.unSubs[6])).subscribe(g=>{o.push("
Channel: "+(g.node&&g.node.alias?g.node.alias.padEnd(20):s.pub_key.substring(0,17)+"...")+"			Amount (Sats): "+a.decimalPipe.transform(s.amt_to_forward)+"
")}),o},[])}onHTLCClick(t,a){a.payment_request&&""!==a.payment_request.trim()?this.dataService.decodePayment(a.payment_request,!1).pipe((0,V.q)(1)).subscribe({next:o=>{setTimeout(()=>{this.showHTLCView(t,a,o)},0)},error:o=>{this.showHTLCView(t,a,null)}}):this.showHTLCView(t,a,null)}showHTLCView(t,a,o){const s=[[{key:"payment_hash",value:a.payment_hash,title:"Payment Hash",width:100,type:l.Gi.STRING}],[{key:"preimage",value:t.preimage,title:"Preimage",width:100,type:l.Gi.STRING}],[{key:"payment_request",value:a.payment_request,title:"Payment Request",width:100,type:l.Gi.STRING}],[{key:"status",value:t.status,title:"Status",width:33,type:l.Gi.STRING},{key:"attempt_time_ns",value:+t.attempt_time_ns/1e9,title:"Attempt Time",width:33,type:l.Gi.DATE_TIME},{key:"resolve_time_ns",value:+t.resolve_time_ns/1e9,title:"Resolve Time",width:34,type:l.Gi.DATE_TIME}],[{key:"total_amt",value:t.route.total_amt,title:"Amount (Sats)",width:33,type:l.Gi.NUMBER},{key:"total_fees",value:t.route.total_fees,title:"Fee (Sats)",width:33,type:l.Gi.NUMBER},{key:"total_time_lock",value:t.route.total_time_lock,title:"Total Time Lock",width:34,type:l.Gi.NUMBER}],[{key:"hops",value:this.getHopDetails(t.route.hops),title:"Hops",width:100,type:l.Gi.ARRAY}]];o&&o.description&&""!==o.description&&s.splice(3,0,[{key:"description",value:o.description,title:"Description",width:100,type:l.Gi.STRING}]),this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"HTLC Information",message:s,scrollable:t.route&&t.route.hops&&t.route.hops.length>1}}}))}onPaymentClick(t){if(t.htlcs&&t.htlcs[0]&&t.htlcs[0].route&&t.htlcs[0].route.hops&&t.htlcs[0].route.hops.length>0){const a=t.htlcs[0].route.hops.reduce((o,s)=>""===o?s.pub_key:o+","+s.pub_key,"");this.dataService.getAliasesFromPubkeys(a,!0).pipe((0,d.R)(this.unSubs[7])).subscribe(o=>{this.showPaymentView(t,o.reduce((s,u)=>""===s?u:s+"\n"+u,""))})}else this.showPaymentView(t,"")}showPaymentView(t,a){const o=[[{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:l.Gi.STRING}],[{key:"payment_preimage",value:t.payment_preimage,title:"Payment Preimage",width:100,type:l.Gi.STRING}],[{key:"payment_request",value:t.payment_request,title:"Payment Request",width:100,type:l.Gi.STRING}],[{key:"status",value:t.status,title:"Status",width:50,type:l.Gi.STRING},{key:"creation_date",value:t.creation_date,title:"Creation Date",width:50,type:l.Gi.DATE_TIME}],[{key:"value_msat",value:t.value_msat,title:"Value (mSats)",width:50,type:l.Gi.NUMBER},{key:"fee_msat",value:t.fee_msat,title:"Fee (mSats)",width:50,type:l.Gi.NUMBER}],[{key:"path",value:a,title:"Path",width:100,type:l.Gi.STRING}]];t.payment_request&&""!==t.payment_request.trim()?this.dataService.decodePayment(t.payment_request,!1).pipe((0,V.q)(1)).subscribe(s=>{s&&s.description&&""!==s.description&&o.splice(3,0,[{key:"description",value:s.description,title:"Description",width:100,type:l.Gi.STRING}]),setTimeout(()=>{this.openPaymentAlert(o,t.htlcs&&t.htlcs[0]&&t.htlcs[0].route&&t.htlcs[0].route.hops&&t.htlcs[0].route.hops.length>1)},0)}):this.openPaymentAlert(o,!1)}openPaymentAlert(t,a){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Payment Information",message:t,scrollable:a}}}))}applyFilter(){this.payments.filter=this.selFilter.trim().toLowerCase()}loadPaymentsTable(t){this.payments=new r.by(t?[...t]:[]),this.payments.sortingDataAccessor=(a,o)=>"hops"===o?a.htlcs.length&&a.htlcs[0]&&a.htlcs[0].route&&a.htlcs[0].route.hops&&a.htlcs[0].route.hops.length?a.htlcs[0].route.hops.length:0:a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.payments.sort=this.sort,this.payments.filterPredicate=(a,o)=>((a.creation_date?this.datePipe.transform(new Date(1e3*a.creation_date),"dd/MMM/YYYY HH:mm").toLowerCase():"")+JSON.stringify(a).toLowerCase()).includes(o),this.applyFilter()}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const t=JSON.parse(JSON.stringify(this.payments.data)),a=t.reduce((o,s)=>(s.payment_request&&""!==s.payment_request.trim()&&(o=""===o?s.payment_request:o+","+s.payment_request),o),"");this.dataService.decodePayments(a).pipe((0,d.R)(this.unSubs[8])).subscribe(o=>{let s=0;o.forEach((g,N)=>{if(g){for(;t[N+s].payment_hash!==g.payment_hash;)s+=1;t[N+s].description=g.description}});const u=t.reduce((g,N)=>g.concat(N),[]);this.commonService.downloadFile(u,"Payments")})}}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(j.D),e.Y36(w.yh),e.Y36(oe.V),e.Y36(ee.l),e.Y36(p.JJ),e.Y36(p.uU))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-lightning-payments"]],viewQuery:function(t,a){if(1&t&&(e.Gf(Nn,5),e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.form=o.first),e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},inputs:{calledFrom:"calledFrom"},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Payments")}])],decls:4,vars:3,consts:[["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"],["sendPaymentForm","ngForm"],["fxFlex","100"],["matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","1","required","",3,"perfectScrollbar","ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[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"],["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","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["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,"dataSource","ngClass"],["table",""],["matColumnDef","creation_date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","payment_hash"],["matColumnDef","fee"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","value"],["matColumnDef","hops"],["matColumnDef","actions"],["mat-header-cell","","class","px-2",4,"matHeaderCellDef"],["mat-cell","","class","px-2","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","groupTotal"],["matColumnDef","groupHash"],["matColumnDef","groupFee"],["matColumnDef","groupValue"],["matColumnDef","groupHops"],["matColumnDef","groupAction"],["mat-cell","","class","px-2",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["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"],["fxLayout","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-2"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-2"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"htlc-row-span"],["fxLayoutAlign","start center","class","htlc-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"htlc-row-span","pl-3"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-cell","",1,"px-2"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["fxLayoutAlign","end center",4,"ngFor","ngForOf"],["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(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,In,12,3,"form",1),e.YNc(2,Mn,3,0,"div",2),e.YNc(3,Ua,50,18,"div",3),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf","home"===a.calledFrom),e.xp6(1),e.Q6J("ngIf","transactions"===a.calledFrom),e.xp6(1),e.Q6J("ngIf","transactions"===a.calledFrom))},directives:[_.xw,_.yH,_.Wh,p.O5,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,c.Q7,Q.$V,c.JJ,c.On,L.lW,f.bx,f.TO,M.BN,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.nj,r.Ke,r.as,S.NW,P.pW,r.ge,A.nU,r.ev,X.gM,p.PC,q.Zl,R.gD,R.$L,Y.ey,r.yh,p.sg,r.Gk,r.Q2,r.XQ],pipes:[p.uU,p.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:0 0 20%;width:20%}.mat-column-payment_hash[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-groupAction[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}.htlc-row-span[_ngcontent-%COMP%]{min-height:4.2rem;place-content:center flex-start;align-items:center}.mat-column-groupTotal[_ngcontent-%COMP%]{min-width:17rem}"]}),n})();function Na(n,i){if(1&n&&(e.TgZ(0,"button",26),e.TgZ(1,"mat-icon"),e._uU(2,"more_vert"),e.qZA(),e.qZA()),2&n){e.oxw();const t=e.MAs(11);e.Q6J("matMenuTriggerFor",t)}}function Oa(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",27),e.NdJ("click",function(){const s=e.CHM(t).index,u=e.oxw().$implicit;return e.oxw(2).onNavigateTo(u.links[s])}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function Ra(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",27),e.NdJ("click",function(){return e.CHM(t),e.oxw(3).onsortChannelsBy()}),e._uU(1),e.qZA()}if(2&n){const t=e.oxw(3);e.xp6(1),e.hij("Sort By ","Balance Score"===t.sortField?"Capacity":"Balance Score","")}}function Ia(n,i){1&n&&e._UZ(0,"mat-progress-bar",28)}function Ma(n,i){if(1&n&&e._UZ(0,"rtl-node-info",29),2&n){const t=e.oxw(3);e.Q6J("information",t.information)("showColorFieldSeparately",!1)}}function Da(n,i){if(1&n&&e._UZ(0,"rtl-balances-info",30),2&n){const t=e.oxw(3);e.Q6J("balances",t.balances)("errorMessage",t.errorMessages[3]+" "+t.errorMessages[2])}}function Pa(n,i){if(1&n&&e._UZ(0,"rtl-channel-capacity-info",31),2&n){const t=e.oxw(3);e.Q6J("sortBy",t.sortField)("channelBalances",t.channelBalances)("allChannels",t.allChannelsCapacity)("errorMessage",t.errorMessages[3])}}function Ja(n,i){if(1&n&&e._UZ(0,"rtl-fee-info",32),2&n){const t=e.oxw(3);e.Q6J("fees",t.fees)("errorMessage",t.errorMessages[1])}}function Ea(n,i){if(1&n&&e._UZ(0,"rtl-channel-status-info",33),2&n){const t=e.oxw(3);e.Q6J("channelsStatus",t.channelsStatus)("errorMessage",t.errorMessages[3]+" "+t.errorMessages[4])}}function Qa(n,i){1&n&&(e.TgZ(0,"h3"),e._uU(1,"Error! Unable to find information!"),e.qZA())}const Pe=function(n){return{"dashboard-card-content":!0,"error-border":n}};function Ya(n,i){if(1&n&&(e.TgZ(0,"mat-grid-tile",8),e.TgZ(1,"mat-card",9),e.TgZ(2,"mat-card-header"),e.TgZ(3,"mat-card-title",10),e.TgZ(4,"div"),e._UZ(5,"fa-icon",11),e.TgZ(6,"span"),e._uU(7),e.qZA(),e.qZA(),e.TgZ(8,"div"),e.YNc(9,Na,3,1,"button",12),e.TgZ(10,"mat-menu",13,14),e.YNc(12,Oa,2,1,"button",15),e.YNc(13,Ra,2,1,"button",16),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"mat-card-content",17),e.YNc(15,Ia,1,0,"mat-progress-bar",18),e.TgZ(16,"div",19),e.YNc(17,Ma,1,2,"rtl-node-info",20),e.YNc(18,Da,1,2,"rtl-balances-info",21),e.YNc(19,Pa,1,4,"rtl-channel-capacity-info",22),e.YNc(20,Ja,1,2,"rtl-fee-info",23),e.YNc(21,Ea,1,2,"rtl-channel-status-info",24),e.YNc(22,Qa,2,0,"h3",25),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("colspan",t.cols)("rowspan",t.rows),e.xp6(5),e.Q6J("icon",t.icon),e.xp6(2),e.Oqu(t.title),e.xp6(2),e.Q6J("ngIf",t.links[0]),e.xp6(3),e.Q6J("ngForOf",t.goToOptions),e.xp6(1),e.Q6J("ngIf","capacity"===t.id),e.xp6(1),e.s9C("fxFlex","node"===t.id||"balance"===t.id?70:"fee"===t.id||"status"===t.id?78:90),e.Q6J("ngClass",e.VKq(16,Pe,"node"===t.id&&a.apiCallStatusNodeInfo.status===a.apiCallStatusEnum.ERROR||"balance"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.ERROR||a.apiCallStatusBlockchainBalance.status===a.apiCallStatusEnum.ERROR)||"capacity"===t.id&&a.apiCallStatusChannels.status===a.apiCallStatusEnum.ERROR||"fee"===t.id&&a.apiCallStatusFees.status===a.apiCallStatusEnum.ERROR||"status"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.ERROR||a.apiCallStatusPendingChannels.status===a.apiCallStatusEnum.ERROR))),e.xp6(1),e.Q6J("ngIf","node"===t.id&&a.apiCallStatusNodeInfo.status===a.apiCallStatusEnum.INITIATED||"balance"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.INITIATED||a.apiCallStatusBlockchainBalance.status===a.apiCallStatusEnum.INITIATED)||"capacity"===t.id&&a.apiCallStatusChannels.status===a.apiCallStatusEnum.INITIATED||"fee"===t.id&&a.apiCallStatusFees.status===a.apiCallStatusEnum.INITIATED||"status"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.INITIATED||a.apiCallStatusPendingChannels.status===a.apiCallStatusEnum.INITIATED)),e.xp6(1),e.Q6J("ngSwitch",t.id),e.xp6(1),e.Q6J("ngSwitchCase","node"),e.xp6(1),e.Q6J("ngSwitchCase","balance"),e.xp6(1),e.Q6J("ngSwitchCase","capacity"),e.xp6(1),e.Q6J("ngSwitchCase","fee"),e.xp6(1),e.Q6J("ngSwitchCase","status")}}function Ha(n,i){if(1&n&&(e.TgZ(0,"div",2),e.TgZ(1,"div",3),e._UZ(2,"fa-icon",4),e.TgZ(3,"span",5),e._uU(4),e.qZA(),e.qZA(),e.TgZ(5,"mat-grid-list",6),e.YNc(6,Ya,23,18,"mat-grid-tile",7),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("icon",t.apiCallStatusNodeInfo.status===t.apiCallStatusEnum.ERROR?t.faFrown:t.faSmile),e.xp6(2),e.Oqu(t.apiCallStatusNodeInfo.status===t.apiCallStatusEnum.COMPLETED?"Welcome "+t.information.alias+"! Your node is up and running.":t.apiCallStatusNodeInfo.status===t.apiCallStatusEnum.INITIATED?"Wait! Getting your node information...":"Error! Please check the server connection."),e.xp6(1),e.Q6J("rowHeight",t.operatorCardHeight),e.xp6(1),e.Q6J("ngForOf",t.operatorCards)}}function Ba(n,i){if(1&n&&(e.TgZ(0,"button",26),e.TgZ(1,"mat-icon"),e._uU(2,"more_vert"),e.qZA(),e.qZA()),2&n){e.oxw();const t=e.MAs(9);e.Q6J("matMenuTriggerFor",t)}}function Va(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",27),e.NdJ("click",function(){const s=e.CHM(t).index,u=e.oxw(2).$implicit;return e.oxw(2).onNavigateTo(u.links[s])}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function Ga(n,i){if(1&n&&(e.TgZ(0,"mat-card-header"),e.TgZ(1,"mat-card-title",10),e.TgZ(2,"div"),e._UZ(3,"fa-icon",11),e.TgZ(4,"span"),e._uU(5),e.qZA(),e.qZA(),e.TgZ(6,"div"),e.YNc(7,Ba,3,1,"button",12),e.TgZ(8,"mat-menu",13,43),e.YNc(10,Va,2,1,"button",15),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(3),e.Q6J("icon",t.icon),e.xp6(2),e.Oqu(t.title),e.xp6(2),e.Q6J("ngIf",t.links[0]),e.xp6(3),e.Q6J("ngForOf",t.goToOptions)}}function za(n,i){1&n&&e._UZ(0,"mat-progress-bar",28)}function Wa(n,i){if(1&n&&e._UZ(0,"rtl-node-info",44),2&n){const t=e.oxw(3);e.Q6J("information",t.information)}}function Xa(n,i){if(1&n&&e._UZ(0,"rtl-balances-info",30),2&n){const t=e.oxw(3);e.Q6J("balances",t.balances)("errorMessage",t.errorMessages[3]+" "+t.errorMessages[2])}}function $a(n,i){if(1&n&&e._UZ(0,"rtl-channel-liquidity-info",45),2&n){const t=e.oxw(3);e.Q6J("direction","In")("totalLiquidity",t.totalInboundLiquidity)("allChannels",t.allInboundChannels)("errorMessage",t.errorMessages[3])}}function ja(n,i){if(1&n&&e._UZ(0,"rtl-channel-liquidity-info",45),2&n){const t=e.oxw(3);e.Q6J("direction","Out")("totalLiquidity",t.totalOutboundLiquidity)("allChannels",t.allOutboundChannels)("errorMessage",t.errorMessages[3])}}function Ka(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",27),e.NdJ("click",function(){const s=e.CHM(t).index,u=e.oxw(3).$implicit;return e.oxw(2).onNavigateTo(u.links[s])}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function ei(n,i){if(1&n&&(e.TgZ(0,"button",26),e.TgZ(1,"mat-icon"),e._uU(2,"more_vert"),e.qZA(),e.qZA(),e.TgZ(3,"mat-menu",13,53),e.YNc(5,Ka,2,1,"button",15),e.qZA()),2&n){const t=e.MAs(4),a=e.oxw(2).$implicit;e.Q6J("matMenuTriggerFor",t),e.xp6(5),e.Q6J("ngForOf",a.goToOptions)}}function ti(n,i){1&n&&(e.TgZ(0,"span",46),e.TgZ(1,"mat-tab-group",47),e.TgZ(2,"mat-tab",48),e._UZ(3,"rtl-lightning-invoices",49),e.qZA(),e.TgZ(4,"mat-tab",50),e._UZ(5,"rtl-lightning-payments",49),e.qZA(),e.TgZ(6,"mat-tab",51),e.YNc(7,ei,6,2,"ng-template",52),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.xp6(3),e.Q6J("calledFrom","home"),e.xp6(2),e.Q6J("calledFrom","home"),e.xp6(1),e.Q6J("disabled",!0))}function ni(n,i){1&n&&(e.TgZ(0,"h3"),e._uU(1,"Error! Unable to find information!"),e.qZA())}const ai=function(n){return{"p-0":n}};function ii(n,i){if(1&n&&(e.TgZ(0,"mat-grid-tile",8),e.TgZ(1,"mat-card",36),e.YNc(2,Ga,11,4,"mat-card-header",37),e.TgZ(3,"mat-card-content",38),e.YNc(4,za,1,0,"mat-progress-bar",18),e.TgZ(5,"div",39),e.YNc(6,Wa,1,1,"rtl-node-info",40),e.YNc(7,Xa,1,2,"rtl-balances-info",21),e.YNc(8,$a,1,4,"rtl-channel-liquidity-info",41),e.YNc(9,ja,1,4,"rtl-channel-liquidity-info",41),e.YNc(10,ti,8,3,"span",42),e.YNc(11,ni,2,0,"h3",25),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("colspan",t.cols)("rowspan",t.rows),e.xp6(1),e.Q6J("ngClass",e.VKq(13,ai,"transactions"===t.id)),e.xp6(1),e.Q6J("ngIf","transactions"!==t.id),e.xp6(1),e.s9C("fxFlex","transactions"===t.id?100:"balance"===t.id?70:90),e.Q6J("ngClass",e.VKq(15,Pe,"node"===t.id&&a.apiCallStatusNodeInfo.status===a.apiCallStatusEnum.ERROR||"balance"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.ERROR||a.apiCallStatusBlockchainBalance.status===a.apiCallStatusEnum.ERROR)||("inboundLiq"===t.id||"outboundLiq"===t.id)&&a.apiCallStatusChannels.status===a.apiCallStatusEnum.ERROR)),e.xp6(1),e.Q6J("ngIf","node"===t.id&&a.apiCallStatusNodeInfo.status===a.apiCallStatusEnum.INITIATED||"balance"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.INITIATED||a.apiCallStatusBlockchainBalance.status===a.apiCallStatusEnum.INITIATED)||("inboundLiq"===t.id||"outboundLiq"===t.id)&&a.apiCallStatusChannels.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngSwitch",t.id),e.xp6(1),e.Q6J("ngSwitchCase","node"),e.xp6(1),e.Q6J("ngSwitchCase","balance"),e.xp6(1),e.Q6J("ngSwitchCase","inboundLiq"),e.xp6(1),e.Q6J("ngSwitchCase","outboundLiq"),e.xp6(1),e.Q6J("ngSwitchCase","transactions")}}function oi(n,i){if(1&n&&(e.TgZ(0,"div",34),e._UZ(1,"fa-icon",4),e.TgZ(2,"span",5),e._uU(3),e.qZA(),e.qZA(),e.TgZ(4,"mat-grid-list",35),e.YNc(5,ii,12,17,"mat-grid-tile",7),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faSmile),e.xp6(2),e.hij("Welcome ",t.information.alias,"! Your node is up and running."),e.xp6(1),e.Q6J("rowHeight",t.merchantCardHeight),e.xp6(1),e.Q6J("ngForOf",t.merchantCards)}}let si=(()=>{class n{constructor(t,a,o,s,u){switch(this.logger=t,this.store=a,this.actions=o,this.commonService=s,this.router=u,this.faSmile=Le.I3,this.faFrown=Le.Kf,this.faAngleDoubleDown=Z.Sbq,this.faAngleDoubleUp=Z.Vfw,this.faChartPie=Z.OS1,this.faBolt=Z.BDt,this.faServer=Z.xf3,this.faNetworkWired=Z.kXW,this.flgChildInfoUpdated=!1,this.userPersonaEnum=l.ol,this.activeChannels=0,this.inactiveChannels=0,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.selNode={},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="330px",this.merchantCardHeight="65px",this.sortField="Balance Score",this.screenSizeEnum=l.cu,this.errorMessages=["","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusFees=null,this.apiCallStatusBlockchainBalance=null,this.apiCallStatusChannels=null,this.apiCallStatusPendingChannels=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize){case l.cu.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 l.cu.SM:case l.cu.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(C.bx).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=t.apiCallStatus,this.apiCallStatusNodeInfo.status===l.Bn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message),this.selNode=t.nodeSettings,this.information=t.information}),this.store.select(C.JG).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.errorMessages[1]="",this.apiCallStatusFees=t.apiCallStatus,this.apiCallStatusFees.status===l.Bn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message),this.fees=t.fees}),this.store.select(C.qU).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.errorMessages[2]="",this.apiCallStatusBlockchainBalance=t.apiCallStatus,this.apiCallStatusBlockchainBalance.status===l.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusBlockchainBalance.message?JSON.stringify(this.apiCallStatusBlockchainBalance.message):this.apiCallStatusBlockchainBalance.message),this.balances.onchain=+t.blockchainBalance.total_balance>=0?+t.blockchainBalance.total_balance:0,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances)}),this.store.select(C.ni).pipe((0,d.R)(this.unSubs[3])).subscribe(t=>{this.errorMessages[4]="",this.apiCallStatusPendingChannels=t.apiCallStatus,this.apiCallStatusPendingChannels.status===l.Bn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusPendingChannels.message?JSON.stringify(this.apiCallStatusPendingChannels.message):this.apiCallStatusPendingChannels.message),this.channelsStatus.pending={num_channels:t.pendingChannelsSummary.open.num_channels,capacity:t.pendingChannelsSummary.open.limbo_balance},this.channelsStatus.closing={num_channels:t.pendingChannelsSummary.closing.num_channels+t.pendingChannelsSummary.force_closing.num_channels+t.pendingChannelsSummary.waiting_close.num_channels,capacity:t.pendingChannelsSummary.total_limbo_balance}}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[4])).subscribe(t=>{this.errorMessages[3]="",this.apiCallStatusChannels=t.apiCallStatus,this.apiCallStatusChannels.status===l.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message);const a=t.lightningBalance&&t.lightningBalance.local?+t.lightningBalance.local:0,o=t.lightningBalance&&t.lightningBalance.remote?+t.lightningBalance.remote:0;this.channelBalances={localBalance:a,remoteBalance:o,balancedness:+(1-Math.abs((a-o)/(a+o))).toFixed(3)},this.balances.lightning=t.lightningBalance.local,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances),this.activeChannels=t.channelsSummary.active.num_channels,this.inactiveChannels=t.channelsSummary.inactive.num_channels,this.channelsStatus.active=t.channelsSummary.active,this.channelsStatus.inactive=t.channelsSummary.inactive,this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.allChannels=t.channels.filter(u=>!0===u.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(u=>u.remote_balance>0),"remote_balance"))),this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels.filter(u=>u.local_balance>0),"local_balance"))),this.allChannels.forEach(u=>{this.totalInboundLiquidity=this.totalInboundLiquidity+ +u.remote_balance,this.totalOutboundLiquidity=this.totalOutboundLiquidity+ +u.local_balance}),this.flgChildInfoUpdated=this.balances.lightning>=0&&this.balances.onchain>=0&&this.fees.month_fee_sum>=0,this.logger.info(t)}),this.actions.pipe((0,d.R)(this.unSubs[5]),(0,E.h)(t=>t.type===l.uR.FETCH_FEES_LND||t.type===l.uR.SET_FEES_LND)).subscribe(t=>{t.type===l.uR.FETCH_FEES_LND&&(this.flgChildInfoUpdated=!1),t.type===l.uR.SET_FEES_LND&&(this.flgChildInfoUpdated=!0)})}onNavigateTo(t){"inactive"===t?this.router.navigateByUrl("/lnd/connections",{state:{filter:t}}):this.router.navigateByUrl("/lnd/"+t)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.allChannelsCapacity=this.allChannels.sort((t,a)=>{const o=+t.local_balance+ +t.remote_balance,s=+a.local_balance+ +a.remote_balance;return o>s?-1:o{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(G.eX),e.Y36(O.v),e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-home"]],decls:3,vars:2,consts:[["fxLayout","column",4,"ngIf","ngIfElse"],["merchantDashboard",""],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","mb-0"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","10",3,"rowHeight"],[3,"colspan","rowspan",4,"ngFor","ngForOf"],[3,"colspan","rowspan"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card","mt-4"],["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"],["menuOperator","matMenu"],["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-0"],["cols","6",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card","mt-4",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",3,"direction","totalLiquidity","allChannels","errorMessage",4,"ngSwitchCase"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",3,"perfectScrollbar",4,"ngSwitchCase"],["menuMerchant","matMenu"],["fxFlex","100",3,"information"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","errorMessage"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",1,"w-100","dashboard-tabs-group"],["label","Receive"],[3,"calledFrom"],["label","Pay"],[3,"disabled"],["mat-tab-label",""],["menuTransactions","matMenu"]],template:function(t,a){if(1&t&&(e.YNc(0,Ha,7,4,"div",0),e.YNc(1,oi,6,4,"ng-template",null,1,e.W1O)),2&t){const o=e.MAs(2);e.Q6J("ngIf",(null==a.selNode?null:a.selNode.userPersona)===a.userPersonaEnum.OPERATOR)("ngIfElse",o)}},directives:[p.O5,_.xw,_.Wh,M.BN,ce.Il,p.sg,ce.DX,T.a8,_.yH,T.dk,T.n5,he.VK,T.dn,p.mk,q.oO,p.RF,p.n9,p.ED,L.lW,he.p6,K.Hw,he.OP,P.pW,Fe,rt,gt,Ue,Ne,Rt,Q.$V,D.SP,D.uX,Ie,De,D.uD],styles:[""]}),n})();var ge=h(1203),fe=h(7544);function li(n,i){if(1&n&&(e.TgZ(0,"span",10),e._uU(1,"Channels"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.activeChannels)}}function ri(n,i){if(1&n&&(e.TgZ(0,"span",10),e._uU(1,"Peers"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.activePeers)}}let ci=(()=>{class n{constructor(t,a,o){this.store=t,this.logger=a,this.router=o,this.selNode={},this.activePeers=0,this.activeChannels=0,this.faUsers=Z.FVb,this.faChartPie=Z.OS1,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 m.x,new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.activeLink=this.links.findIndex(t=>t.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(t=>t instanceof y.Av)).subscribe({next:t=>{this.activeLink=this.links.findIndex(a=>a.link===t.urlAfterRedirects.substring(t.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(C.$k).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.selNode=t}),this.store.select(C.Wi).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.activePeers=t.peers&&t.peers.length?t.peers.length:0,this.logger.info(t)}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[3])).subscribe(t=>{this.activeChannels=t.channelsSummary.active.num_channels,this.logger.info(t)}),this.store.select(C.qU).pipe((0,d.R)(this.unSubs[4])).subscribe(t=>{this.balances=[{title:"Total Balance",dataValue:t.blockchainBalance.total_balance||0},{title:"Confirmed",dataValue:t.blockchainBalance.confirmed_balance},{title:"Unconfirmed",dataValue:t.blockchainBalance.unconfirmed_balance}],this.logger.info(t)})}onSelectedTabChange(t){this.router.navigateByUrl("/lnd/connections/"+this.links[t.index].link)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh),e.Y36(F.mQ),e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-connections"]],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"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["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(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"On-chain Balance"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e._UZ(7,"rtl-currency-unit-converter",5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",0),e._UZ(9,"fa-icon",1),e.TgZ(10,"span",2),e._uU(11,"Connections"),e.qZA(),e.qZA(),e.TgZ(12,"div",6),e.TgZ(13,"mat-card"),e.TgZ(14,"mat-card-content",4),e.TgZ(15,"mat-tab-group",7),e.NdJ("selectedIndexChange",function(s){return a.activeLink=s})("selectedTabChange",function(s){return a.onSelectedTabChange(s)}),e.TgZ(16,"mat-tab"),e.YNc(17,li,2,1,"ng-template",8),e.qZA(),e.TgZ(18,"mat-tab"),e.YNc(19,ri,2,1,"ng-template",8),e.qZA(),e.qZA(),e.TgZ(20,"div",9),e._UZ(21,"router-outlet"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faChartPie),e.xp6(6),e.Q6J("values",a.balances),e.xp6(2),e.Q6J("icon",a.faUsers),e.xp6(6),e.Q6J("selectedIndex",a.activeLink))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,ge.D,D.SP,D.uX,D.uD,_.yH,y.lC,fe.k],styles:[""]}),n})();var Ce=h(8675),Je=h(4004),Ee=h(9843);const ui=["form"];function pi(n,i){if(1&n&&(e.TgZ(0,"mat-option",38),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.Oqu(t.alias?t.alias:t.pub_key?t.pub_key:"")}}function mi(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Peer alias is required."),e.qZA())}function _i(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Peer not found in the list."),e.qZA())}function di(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",34),e._UZ(1,"input",35),e.TgZ(2,"mat-autocomplete",36,37),e.NdJ("optionSelected",function(){return e.CHM(t),e.oxw().onSelectedPeerChanged()}),e.YNc(4,pi,2,2,"mat-option",24),e.ALo(5,"async"),e.qZA(),e.YNc(6,mi,2,0,"mat-error",17),e.YNc(7,_i,2,0,"mat-error",17),e.qZA()}if(2&n){const t=e.MAs(3),a=e.oxw();e.xp6(1),e.Q6J("formControl",a.selectedPeer)("matAutocomplete",t),e.xp6(1),e.Q6J("displayWith",a.displayFn),e.xp6(2),e.Q6J("ngForOf",e.lcZ(5,6,a.filteredPeers)),e.xp6(2),e.Q6J("ngIf",null==a.selectedPeer.errors?null:a.selectedPeer.errors.required),e.xp6(1),e.Q6J("ngIf",null==a.selectedPeer.errors?null:a.selectedPeer.errors.notfound)}}function hi(n,i){1&n&&e.GkF(0)}function gi(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount is required."),e.qZA())}function fi(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("Amount must be less than or equal to ",t.totalBalance,".")}}function Ci(n,i){if(1&n&&(e.TgZ(0,"mat-option",38),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t.id),e.xp6(1),e.hij(" ",t.name," ")}}function xi(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("","1"===t.selTransType?"Target Confirmation Blocks":"Fee"," is required.")}}function Zi(n,i){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.channelConnectionError)}}function yi(n,i){if(1&n&&(e.TgZ(0,"div",39),e._UZ(1,"fa-icon",40),e.YNc(2,Zi,2,1,"span",17),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(1),e.Q6J("ngIf",""!==t.channelConnectionError)}}function Ti(n,i){if(1&n&&(e.TgZ(0,"mat-expansion-panel",42),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e.TgZ(3,"span"),e._uU(4,"Peer: \xa0"),e.qZA(),e.TgZ(5,"strong",43),e._uU(6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",9),e.TgZ(8,"div",44),e.TgZ(9,"div",34),e.TgZ(10,"h4",45),e._uU(11,"Pubkey"),e.qZA(),e.TgZ(12,"span",46),e._uU(13),e.qZA(),e.qZA(),e.qZA(),e._UZ(14,"mat-divider",47),e.TgZ(15,"div",44),e.TgZ(16,"div",48),e.TgZ(17,"h4",45),e._uU(18,"Address"),e.qZA(),e.TgZ(19,"span",49),e._uU(20),e.qZA(),e.qZA(),e.TgZ(21,"div",48),e.TgZ(22,"h4",45),e._uU(23,"Inbound"),e.qZA(),e.TgZ(24,"span",49),e._uU(25),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw(2);e.xp6(6),e.Oqu((null==t.peer?null:t.peer.alias)||(null==t.peer?null:t.peer.address)),e.xp6(7),e.Oqu(t.peer.pub_key),e.xp6(7),e.Oqu(null==t.peer?null:t.peer.address),e.xp6(5),e.Oqu(null!=t.peer&&t.peer.inbound?"True":"False")}}function bi(n,i){if(1&n&&e.YNc(0,Ti,26,4,"mat-expansion-panel",41),2&n){const t=e.oxw();e.Q6J("ngIf",t.peer)}}let Qe=(()=>{class n{constructor(t,a,o,s){this.dialogRef=t,this.data=a,this.store=o,this.actions=s,this.selectedPeer=new c.NI,this.amount=new c.NI,this.faExclamationTriangle=Z.eHv,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.totalBalance=0,this.selectedPubkey="",this.isPrivate=!1,this.selTransType="0",this.spendUnconfirmed=!1,this.transTypeValue="",this.transTypes=l.Dr,this.unSubs=[new m.x,new m.x]}ngOnInit(){this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.alertTitle=this.data.alertTitle,this.peer=this.data.message.peer||null,this.peers=this.data.message.peers||[],this.actions.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(o=>o.type===l.uR.UPDATE_API_CALL_STATUS_LND||o.type===l.uR.FETCH_CHANNELS_LND)).subscribe(o=>{o.type===l.uR.UPDATE_API_CALL_STATUS_LND&&o.payload.status===l.Bn.ERROR&&"SaveNewChannel"===o.payload.action&&(this.channelConnectionError=o.payload.message),o.type===l.uR.FETCH_CHANNELS_LND&&this.dialogRef.close()});let t="",a="";this.sortedPeers=this.peers.sort((o,s)=>(t=o.alias?o.alias.toLowerCase():o.pub_key?o.pub_key.toLowerCase():"",a=s.alias?s.alias.toLowerCase():o.pub_key.toLowerCase(),ta?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe((0,d.R)(this.unSubs[1]),(0,Ce.O)(""),(0,Je.U)(o=>"string"==typeof o?o:o.alias?o.alias:o.pub_key),(0,Je.U)(o=>o?this.filterPeers(o):this.sortedPeers.slice()))}filterPeers(t){return this.sortedPeers.filter(a=>0===a.alias.toLowerCase().indexOf(t?t.toLowerCase():""))}displayFn(t){return t&&t.alias?t.alias:t&&t.pub_key?t.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 t=this.peers.filter(a=>a.alias.length===this.selectedPeer.value.length&&0===a.alias.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""));1===t.length&&t[0].pub_key&&(this.selectedPubkey=t[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=!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)return!0;this.store.dispatch((0,b.YX)({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}}))}onAdvancedPanelToggle(t){this.advancedTitle=t?"Advanced Options | "+("1"===this.selTransType?"Target Confirmation Blocks: ":"2"===this.selTransType?"Fee (Sats/vByte): ":"Default")+("1"===this.selTransType||"2"===this.selTransType?this.transTypeValue:"")+" | Spend Unconfirmed Output: "+(this.spendUnconfirmed?"Yes":"No"):"Advanced Options"}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(w.yh),e.Y36(G.eX))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-open-channel"]],viewQuery:function(t,a){if(1&t&&e.Gf(ui,7),2&t){let o;e.iGM(o=e.CRH())&&(a.form=o.first)}},decls:55,vars:25,consts:[["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"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column",3,"submit","reset"],["form","ngForm"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","60","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","1","required","","name","amnt",3,"ngModel","step","min","max","ngModelChange"],["amt","ngModel"],["matSuffix",""],[4,"ngIf"],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","isPrivate",3,"ngModel","ngModelChange"],["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","49"],["tabindex","3",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","tabindex","4","name","transTpValue",3,"ngModel","required","disabled","placeholder","step","min","ngModelChange"],["transTypeVal","ngModel"],["fxFlex","50","fxLayoutAlign","start center"],["tabindex","6","color","primary","name","spendUnconfirmed",3,"ngModel","ngModelChange"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","9"],["peerDetailsExpansionBlock",""],["fxFlex","100"],["type","text","placeholder","Peer Alias","aria-label","Peers","matInput","","tabindex","1","required","",3,"formControl","matAutocomplete"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["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(t,a){if(1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e.NdJ("click",function(){return a.onClose()}),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.TgZ(9,"form",7,8),e.NdJ("submit",function(){return a.onOpenChannel()})("reset",function(){return a.resetData()}),e.TgZ(11,"div",9),e.YNc(12,di,8,8,"mat-form-field",10),e.qZA(),e.YNc(13,hi,1,0,"ng-container",11),e.TgZ(14,"div",9),e.TgZ(15,"div",12),e.TgZ(16,"mat-form-field",13),e.TgZ(17,"input",14,15),e.NdJ("ngModelChange",function(s){return a.fundingAmount=s}),e.qZA(),e.TgZ(19,"mat-hint"),e._uU(20),e.ALo(21,"number"),e.qZA(),e.TgZ(22,"span",16),e._uU(23," Sats "),e.qZA(),e.YNc(24,gi,2,0,"mat-error",17),e.YNc(25,fi,2,1,"mat-error",17),e.qZA(),e.TgZ(26,"div",18),e.TgZ(27,"mat-slide-toggle",19),e.NdJ("ngModelChange",function(s){return a.isPrivate=s}),e._uU(28,"Private Channel"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"mat-expansion-panel",20),e.NdJ("closed",function(){return a.onAdvancedPanelToggle(!0)})("opened",function(){return a.onAdvancedPanelToggle(!1)}),e.TgZ(30,"mat-expansion-panel-header"),e.TgZ(31,"mat-panel-title"),e.TgZ(32,"span"),e._uU(33),e.qZA(),e.qZA(),e.qZA(),e.TgZ(34,"div",21),e.TgZ(35,"div",12),e.TgZ(36,"mat-form-field",22),e.TgZ(37,"mat-select",23),e.NdJ("valueChange",function(s){return a.selTransType=s}),e.YNc(38,Ci,2,2,"mat-option",24),e.qZA(),e.qZA(),e.TgZ(39,"mat-form-field",22),e.TgZ(40,"input",25,26),e.NdJ("ngModelChange",function(s){return a.transTypeValue=s}),e.qZA(),e.YNc(42,xi,2,1,"mat-error",17),e.qZA(),e.qZA(),e.TgZ(43,"div",12),e.TgZ(44,"div",27),e.TgZ(45,"mat-slide-toggle",28),e.NdJ("ngModelChange",function(s){return a.spendUnconfirmed=s}),e._uU(46,"Spend Unconfirmed Output"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(47,yi,3,2,"div",29),e.TgZ(48,"div",30),e.TgZ(49,"button",31),e._uU(50,"Clear Fields"),e.qZA(),e.TgZ(51,"button",32),e._uU(52,"Open Channel"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(53,bi,1,1,"ng-template",null,33,e.W1O)),2&t){const o=e.MAs(54);e.xp6(5),e.Oqu(a.alertTitle),e.xp6(7),e.Q6J("ngIf",!a.peer&&a.peers&&a.peers.length>0),e.xp6(1),e.Q6J("ngTemplateOutlet",o),e.xp6(4),e.Q6J("ngModel",a.fundingAmount)("step",1e3)("min",1)("max",a.totalBalance),e.xp6(3),e.hij("(Remaining Bal: ",e.lcZ(21,23,a.totalBalance-(a.fundingAmount?a.fundingAmount:0)),")"),e.xp6(4),e.Q6J("ngIf",null==a.amount.errors?null:a.amount.errors.required),e.xp6(1),e.Q6J("ngIf",null==a.amount.errors?null:a.amount.errors.max),e.xp6(2),e.Q6J("ngModel",a.isPrivate),e.xp6(6),e.Oqu(a.advancedTitle),e.xp6(4),e.Q6J("value",a.selTransType),e.xp6(1),e.Q6J("ngForOf",a.transTypes),e.xp6(2),e.Q6J("ngModel",a.transTypeValue)("required","0"!==a.selTransType)("disabled","0"===a.selTransType)("placeholder","0"===a.selTransType?"Default":"1"===a.selTransType?"Target Confirmation Blocks":"Fee (Sats/vByte)")("step",1)("min",0),e.xp6(2),e.Q6J("ngIf","0"!==a.selTransType&&!a.transTypeValue),e.xp6(3),e.Q6J("ngModel",a.spendUnconfirmed),e.xp6(2),e.Q6J("ngIf",""!==a.channelConnectionError)}},directives:[_.xw,_.Wh,_.yH,T.dk,L.lW,T.dn,c._Y,c.JL,c.F,p.O5,p.tP,f.KE,I.Nt,c.wV,c.qQ,c.Fd,c.Fj,$.q,Ee.F,c.Q7,c.JJ,c.On,f.bx,f.R9,ue.Rr,H.ib,H.yz,H.yK,R.gD,p.sg,W.h,ne.ZL,c.oH,ne.XC,Y.ey,f.TO,M.BN,z.d],pipes:[p.JJ,p.Ov],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),n})();var B=h(5615);const Ai=["peersForm"],vi=["stepper"];function wi(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw();e.Oqu(t.peerFormLabel)}}function qi(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Address is required."),e.qZA())}function Si(n,i){if(1&n&&(e.TgZ(0,"div",37),e._UZ(1,"fa-icon",38),e.TgZ(2,"span"),e._uU(3),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(2),e.Oqu(t.peerConnectionError)}}function Li(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw();e.Oqu(t.channelFormLabel)}}function ki(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount is required."),e.qZA())}function Fi(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount must be a positive number."),e.qZA())}function Ui(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("Amount must be less than or equal to ",t.totalBalance,".")}}function Ni(n,i){if(1&n&&(e.TgZ(0,"mat-option",39),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t.id),e.xp6(1),e.hij(" ",t.name," ")}}function Oi(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("","0"===t.channelFormGroup.controls.selTransType.value?"Default":"1"===t.channelFormGroup.controls.selTransType.value?"Target Confirmation Blocks":"Fee (Sats/vByte)"," is required.")}}function Ri(n,i){if(1&n&&(e.TgZ(0,"div",37),e._UZ(1,"fa-icon",38),e.TgZ(2,"span"),e._uU(3),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(2),e.Oqu(t.channelConnectionError)}}let Ii=(()=>{class n{constructor(t,a,o,s,u,g,N){this.dialogRef=t,this.data=a,this.store=o,this.lndEffects=s,this.formBuilder=u,this.actions=g,this.logger=N,this.faExclamationTriangle=Z.eHv,this.peerAddress="",this.totalBalance=0,this.transTypes=l.Dr,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.unSubs=[new m.x,new m.x]}ngOnInit(){this.totalBalance=this.data.message.balance,this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[c.kI.required]],peerAddress:["",[c.kI.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[c.kI.required,c.kI.min(1),c.kI.max(this.totalBalance)]],isPrivate:[!1],selTransType:[l.Dr[0].id],transTypeValue:[{value:"",disabled:!0}],spendUnconfirmed:[!1],hiddenAmount:["",[c.kI.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.channelFormGroup.controls.selTransType.valueChanges.pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{t===l.Dr[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([c.kI.required]))}),this.actions.pipe((0,d.R)(this.unSubs[1]),(0,E.h)(t=>t.type===l.uR.NEWLY_ADDED_PEER_LND||t.type===l.uR.FETCH_PENDING_CHANNELS_LND||t.type===l.uR.UPDATE_API_CALL_STATUS_LND)).subscribe(t=>{t.type===l.uR.NEWLY_ADDED_PEER_LND&&(this.logger.info(t.payload),this.flgEditable=!1,this.newlyAddedPeer=t.payload.peer,this.peerFormGroup.controls.hiddenAddress.setValue(this.peerFormGroup.controls.peerAddress.value),this.stepper.next()),t.type===l.uR.FETCH_PENDING_CHANNELS_LND&&this.dialogRef.close(),t.type===l.uR.UPDATE_API_CALL_STATUS_LND&&t.payload.status===l.Bn.ERROR&&("SaveNewPeer"===t.payload.action||"FetchGraphNode"===t.payload.action?this.peerConnectionError=t.payload.message:"SaveNewChannel"===t.payload.action&&(this.channelConnectionError=t.payload.message))})}onConnectPeer(){if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="";const t=this.peerFormGroup.controls.peerAddress.value.search("@");let a="",o="";t>-1?(a=this.peerFormGroup.controls.peerAddress.value.substring(0,t),o=this.peerFormGroup.controls.peerAddress.value.substring(t+1),this.connectPeerWithParams(a,o)):(this.store.dispatch((0,b.dV)({payload:{pubkey:this.peerFormGroup.controls.peerAddress.value}})),this.lndEffects.setGraphNode.pipe((0,V.q)(1)).subscribe(s=>{setTimeout(()=>{o=s.node.addresses&&s.node.addresses.length&&s.node.addresses.length>0&&s.node.addresses[0].addr?s.node.addresses[0].addr:"",this.connectPeerWithParams(this.peerFormGroup.controls.peerAddress.value,o)},0)}))}connectPeerWithParams(t,a){this.store.dispatch((0,b.El)({payload:{pubkey:t,host:a,perm:!1}}))}onOpenChannel(){if(!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)return!0;this.channelConnectionError="",this.store.dispatch((0,b.YX)({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}}))}onClose(){this.dialogRef.close(!1)}stepSelectionChanged(t){switch(t.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)"}t.selectedIndex{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(w.yh),e.Y36(ee.l),e.Y36(c.qu),e.Y36(G.eX),e.Y36(F.mQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-connect-peer"]],viewQuery:function(t,a){if(1&t&&(e.Gf(Ai,5),e.Gf(vi,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.form=o.first),e.iGM(o=e.CRH())&&(a.stepper=o.first)}},decls:56,vars:24,consts:[["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","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["autoFocus","","matInput","","placeholder","Lightning Address (pubkey OR pubkey@ip:port)","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"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","60","fxLayoutAlign","start end"],["matInput","","formControlName","fundingAmount","placeholder","Amount","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"],["fxFlex","30","fxLayoutAlign","start end"],["tabindex","3","formControlName","selTransType","placeholder","Transaction Type"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","30"],["matInput","","formControlName","transTypeValue","type","number","name","transTypeValue","tabindex","4",3,"placeholder","step","required"],["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"],[3,"value"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5,"Connect to a new peer"),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e.NdJ("click",function(){return a.onClose()}),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.TgZ(9,"div",7),e.TgZ(10,"mat-vertical-stepper",8,9),e.NdJ("selectionChange",function(s){return a.stepSelectionChanged(s)}),e.TgZ(12,"mat-step",10),e.TgZ(13,"form",11),e.YNc(14,wi,1,1,"ng-template",12),e.TgZ(15,"mat-form-field",1),e._UZ(16,"input",13),e.YNc(17,qi,2,0,"mat-error",14),e.qZA(),e.YNc(18,Si,4,2,"div",15),e.TgZ(19,"div",16),e.TgZ(20,"button",17),e.NdJ("click",function(){return a.onConnectPeer()}),e._uU(21),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"mat-step",10),e.TgZ(23,"form",18),e.YNc(24,Li,1,1,"ng-template",19),e.TgZ(25,"div",20),e.TgZ(26,"div",21),e.TgZ(27,"mat-form-field",22),e._UZ(28,"input",23),e.TgZ(29,"mat-hint"),e._uU(30),e.qZA(),e.TgZ(31,"span",24),e._uU(32," Sats "),e.qZA(),e.YNc(33,ki,2,0,"mat-error",14),e.YNc(34,Fi,2,0,"mat-error",14),e.YNc(35,Ui,2,1,"mat-error",14),e.qZA(),e.TgZ(36,"div",25),e.TgZ(37,"mat-slide-toggle",26),e._uU(38,"Private Channel"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(39,"div",27),e.TgZ(40,"mat-form-field",28),e.TgZ(41,"mat-select",29),e.YNc(42,Ni,2,2,"mat-option",30),e.qZA(),e.qZA(),e.TgZ(43,"mat-form-field",31),e._UZ(44,"input",32),e.YNc(45,Oi,2,1,"mat-error",14),e.qZA(),e.TgZ(46,"div",25),e.TgZ(47,"mat-slide-toggle",33),e._uU(48,"Spend Unconfirmed Output"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(49,Ri,4,2,"div",15),e.TgZ(50,"div",16),e.TgZ(51,"button",34),e.NdJ("click",function(){return a.onOpenChannel()}),e._uU(52),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(53,"div",35),e.TgZ(54,"button",36),e._uU(55),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(10),e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",a.peerFormGroup)("editable",a.flgEditable),e.xp6(1),e.Q6J("formGroup",a.peerFormGroup),e.xp6(4),e.Q6J("ngIf",null==a.peerFormGroup.controls.peerAddress.errors?null:a.peerFormGroup.controls.peerAddress.errors.required),e.xp6(1),e.Q6J("ngIf",""!==a.peerConnectionError),e.xp6(3),e.Oqu(""!==a.peerConnectionError?"Retry":"Add Peer"),e.xp6(1),e.Q6J("stepControl",a.channelFormGroup)("editable",a.flgEditable),e.xp6(1),e.Q6J("formGroup",a.channelFormGroup),e.xp6(5),e.Q6J("step",1e3),e.xp6(2),e.hij("Remaining Bal: ",a.totalBalance-(a.channelFormGroup.controls.fundingAmount.value?a.channelFormGroup.controls.fundingAmount.value:0),""),e.xp6(3),e.Q6J("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.required),e.xp6(1),e.Q6J("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.min),e.xp6(1),e.Q6J("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.max),e.xp6(7),e.Q6J("ngForOf",a.transTypes),e.xp6(2),e.Q6J("placeholder","0"===a.channelFormGroup.controls.selTransType.value?"Default":"1"===a.channelFormGroup.controls.selTransType.value?"Target Confirmation Blocks":"Fee (Sats/vByte)")("step",1)("required","0"!==a.channelFormGroup.controls.selTransType.value),e.xp6(1),e.Q6J("ngIf",null==a.channelFormGroup.controls.transTypeValue.errors?null:a.channelFormGroup.controls.transTypeValue.errors.required),e.xp6(4),e.Q6J("ngIf",""!==a.channelConnectionError),e.xp6(3),e.Oqu(""!==a.channelConnectionError?"Retry":"Open Channel"),e.xp6(2),e.Q6J("mat-dialog-close",!1),e.xp6(1),e.Oqu(null!=a.newlyAddedPeer&&a.newlyAddedPeer.pub_key?"Do It Later":"Close"))},directives:[_.xw,_.yH,T.dk,_.Wh,L.lW,T.dn,B.Vq,B.C0,c._Y,c.JL,c.sg,B.VY,f.KE,I.Nt,c.Fj,W.h,c.JJ,c.u,c.Q7,p.O5,c.wV,f.bx,f.R9,ue.Rr,R.gD,p.sg,J.ZT,f.TO,M.BN,Y.ey],styles:[""]}),n})();function Mi(n,i){1&n&&e._UZ(0,"mat-progress-bar",32)}function Di(n,i){1&n&&(e.TgZ(0,"th",33),e._uU(1," Alias "),e.qZA())}const Ye=function(n){return{"max-width":n}};function Pi(n,i){if(1&n&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,Ye,a.screenSize===a.screenSizeEnum.XS?"12rem":"25rem")),e.xp6(1),e.hij(" ",null==t?null:t.alias," ")}}function Ji(n,i){1&n&&(e.TgZ(0,"th",33),e._uU(1," Public Key "),e.qZA())}function Ei(n,i){if(1&n&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,Ye,a.screenSize===a.screenSizeEnum.XS?"5rem":"35rem")),e.xp6(1),e.hij(" ",null==t?null:t.pub_key," ")}}function Qi(n,i){1&n&&(e.TgZ(0,"th",35),e._uU(1," Sats Sent "),e.qZA())}function Yi(n,i){if(1&n&&(e.TgZ(0,"td",36),e.TgZ(1,"span",37),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.sat_sent)," ")}}function Hi(n,i){1&n&&(e.TgZ(0,"th",35),e._uU(1," Sats Received "),e.qZA())}function Bi(n,i){if(1&n&&(e.TgZ(0,"td",36),e.TgZ(1,"span",37),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.sat_recv)," ")}}function Vi(n,i){1&n&&(e.TgZ(0,"th",35),e._uU(1," Ping "),e.qZA())}function Gi(n,i){if(1&n&&(e.TgZ(0,"td",36),e.TgZ(1,"span",37),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.ping_time)," ")}}function zi(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",38),e.TgZ(1,"div",39),e.TgZ(2,"mat-select",40),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",41),e.NdJ("click",function(){return e.CHM(t),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Wi(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",42),e.TgZ(1,"div",39),e.TgZ(2,"mat-select",40),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",41),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw().onPeerClick(u,o)}),e._uU(5,"View Info"),e.qZA(),e.TgZ(6,"mat-option",41),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onOpenChannel(s)}),e._uU(7,"Open Channel"),e.qZA(),e.TgZ(8,"mat-option",41),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onPeerDetach(s)}),e._uU(9,"Disconnect"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Xi(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No connected peer."),e.qZA())}function $i(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting peers..."),e.qZA())}function ji(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function Ki(n,i){if(1&n&&(e.TgZ(0,"td",43),e.YNc(1,Xi,2,0,"p",44),e.YNc(2,$i,2,0,"p",44),e.YNc(3,ji,2,1,"p",44),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!(null!=t.peers&&t.peers.data)||(null==t.peers.data?null:t.peers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.peers&&t.peers.data)||(null==t.peers.data?null:t.peers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.peers&&t.peers.data)||(null==t.peers.data?null:t.peers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const eo=function(n){return{"display-none":n}};function to(n,i){if(1&n&&e._UZ(0,"tr",45),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,eo,(null==t.peers?null:t.peers.data)&&(null==t.peers||null==t.peers.data?null:t.peers.data.length)>0))}}function no(n,i){1&n&&e._UZ(0,"tr",46)}function ao(n,i){1&n&&e._UZ(0,"tr",47)}const io=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},oo=function(){return["no_peer"]};let so=(()=>{class n{constructor(t,a,o,s){this.logger=t,this.store=a,this.rtlEffects=o,this.commonService=s,this.availableBalance=0,this.faUsers=Z.FVb,this.displayedColumns=[],this.peersData=[],this.information={},this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","sat_sent","sat_recv","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","sat_sent","sat_recv","ping_time","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","pub_key","sat_sent","sat_recv","ping_time","actions"])}ngOnInit(){this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.information=t}),this.store.select(C.qU).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.availableBalance=t.blockchainBalance.total_balance||0}),this.store.select(C.Wi).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.peersData=t.peers,this.peersData.length>0&&this.loadPeersTable(this.peersData),this.logger.info(t)})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Peer Information",showQRName:"Public Key",showQRField:t.pub_key,message:[[{key:"pub_key",value:t.pub_key,title:"Public Key",width:100}],[{key:"address",value:t.address,title:"Address",width:100}],[{key:"alias",value:t.alias,title:"Alias",width:40},{key:"inbound",value:t.inbound?"True":"False",title:"Inbound",width:30},{key:"ping_time",value:t.ping_time,title:"Ping Time",width:30,type:l.Gi.NUMBER}],[{key:"sat_sent",value:t.sat_sent,title:"Satoshis Sent",width:50,type:l.Gi.NUMBER},{key:"sat_recv",value:t.sat_recv,title:"Satoshis Received",width:50,type:l.Gi.NUMBER}],[{key:"bytes_sent",value:t.bytes_sent,title:"Bytes Sent",width:50,type:l.Gi.NUMBER},{key:"bytes_recv",value:t.bytes_recv,title:"Bytes Received",width:50,type:l.Gi.NUMBER}]]}}}))}onConnectPeer(){this.store.dispatch((0,v.qR)({payload:{data:{message:{peer:null,information:this.information,balance:this.availableBalance},component:Ii}}}))}onOpenChannel(t){this.store.dispatch((0,v.qR)({payload:{data:{alertTitle:"Open Channel",message:{peer:t,information:this.information,balance:this.availableBalance},component:Qe}}}))}onPeerDetach(t){this.store.dispatch((0,v.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(t.alias?t.alias:t.pub_key),noBtnText:"Cancel",yesBtnText:"Disconnect"}}})),this.rtlEffects.closeConfirm.pipe((0,d.R)(this.unSubs[3])).subscribe(o=>{o&&this.store.dispatch((0,b.z)({payload:{pubkey:t.pub_key}}))})}applyFilter(){this.peers.filter=this.selFilter.trim().toLowerCase()}loadPeersTable(t){this.peers=new r.by(t?[...t]:[]),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.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.peers.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){this.peers.data&&this.peers.data.length>0&&this.commonService.downloadFile(this.peers.data,"Peers")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(oe.V),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-peers"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Peers")}])],decls:40,vars:15,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"],["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","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","pub_key"],["matColumnDef","sat_sent"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","sat_recv"],["matColumnDef","ping_time"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"button",2),e.NdJ("click",function(){return a.onConnectPeer()}),e._uU(3,"Add Peer"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e._UZ(7,"fa-icon",6),e.TgZ(8,"span",7),e._uU(9,"Connected Peers"),e.qZA(),e.qZA(),e.TgZ(10,"mat-form-field",8),e.TgZ(11,"input",9),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"div",10),e.YNc(13,Mi,1,0,"mat-progress-bar",11),e.TgZ(14,"table",12,13),e.ynx(16,14),e.YNc(17,Di,2,0,"th",15),e.YNc(18,Pi,2,4,"td",16),e.BQk(),e.ynx(19,17),e.YNc(20,Ji,2,0,"th",15),e.YNc(21,Ei,2,4,"td",16),e.BQk(),e.ynx(22,18),e.YNc(23,Qi,2,0,"th",19),e.YNc(24,Yi,4,3,"td",20),e.BQk(),e.ynx(25,21),e.YNc(26,Hi,2,0,"th",19),e.YNc(27,Bi,4,3,"td",20),e.BQk(),e.ynx(28,22),e.YNc(29,Vi,2,0,"th",19),e.YNc(30,Gi,4,3,"td",20),e.BQk(),e.ynx(31,23),e.YNc(32,zi,6,0,"th",24),e.YNc(33,Wi,10,0,"td",25),e.BQk(),e.ynx(34,26),e.YNc(35,Ki,4,3,"td",27),e.BQk(),e.YNc(36,to,1,3,"tr",28),e.YNc(37,no,1,0,"tr",29),e.YNc(38,ao,1,0,"tr",30),e.qZA(),e.qZA(),e._UZ(39,"mat-paginator",31),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("icon",a.faUsers),e.xp6(4),e.Q6J("ngModel",a.selFilter),e.xp6(2),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.peers)("ngClass",e.VKq(12,io,""!==a.errorMessage)),e.xp6(22),e.Q6J("matFooterRowDef",e.DdM(14,oo)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,_.yH,_.Wh,L.lW,M.BN,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,p.O5,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,R.gD,R.$L,Y.ey,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-pub_key[_ngcontent-%COMP%]{flex:1 1 35%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:2rem}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem;flex:1 1 10%}.mat-column-sat_sent[_ngcontent-%COMP%], .mat-column-sat_recv[_ngcontent-%COMP%], .mat-column-ping_time[_ngcontent-%COMP%]{flex:1 1 13%;width:13%}"]}),n})();function lo(n,i){if(1&n&&(e.TgZ(0,"span",7),e._uU(1,"Open"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.numOpenChannels)}}function ro(n,i){if(1&n&&(e.TgZ(0,"span",7),e._uU(1,"Pending"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.numPendingChannels)}}function co(n,i){if(1&n&&(e.TgZ(0,"span",7),e._uU(1,"Closed"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.numClosedChannels)}}function uo(n,i){if(1&n&&(e.TgZ(0,"span",7),e._uU(1,"Active HTLCs"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.numActiveHTLCs)}}let po=(()=>{class n{constructor(t,a,o){this.logger=t,this.store=a,this.router=o,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 m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.activeLink=this.links.findIndex(t=>t.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(t=>t instanceof y.Av)).subscribe({next:t=>{this.activeLink=this.links.findIndex(a=>a.link===t.urlAfterRedirects.substring(t.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.numOpenChannels=t.channels&&t.channels.length?t.channels.length:0,this.numActiveHTLCs=t.channels.reduce((a,o)=>a+(o.pending_htlcs&&o.pending_htlcs.length>0?o.pending_htlcs.length:0),0),this.logger.info(t)}),this.store.select(C.ni).pipe((0,d.R)(this.unSubs[3])).subscribe(t=>{this.numPendingChannels=t.pendingChannelsSummary.total_channels?t.pendingChannelsSummary.total_channels:0}),this.store.select(C.P2).pipe((0,d.R)(this.unSubs[4])).subscribe(t=>{this.numClosedChannels=t.closedChannels&&t.closedChannels.length?t.closedChannels.length:0}),this.store.select(C.qU).pipe((0,d.R)(this.unSubs[5])).subscribe(t=>{this.totalBalance=+t.blockchainBalance.total_balance}),this.store.select(C.Wi).pipe((0,d.R)(this.unSubs[6])).subscribe(t=>{this.peers=t.peers,this.peers.forEach(a=>{(!a.alias||""===a.alias)&&(a.alias=a.pub_key.substring(0,15)+"...")}),this.logger.info(t)})}onOpenChannel(){this.store.dispatch((0,v.qR)({payload:{data:{alertTitle:"Open Channel",message:{peers:this.peers,information:this.information,balance:this.totalBalance},component:Qe}}}))}onSelectedTabChange(t){this.router.navigateByUrl("/lnd/connections/channels/"+this.links[t.index].link)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channels-tables"]],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,"my-2","bordered-box"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["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(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"button",2),e.NdJ("click",function(){return a.onOpenChannel()}),e._uU(3,"Open Channel"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-tab-group",4),e.NdJ("selectedIndexChange",function(s){return a.activeLink=s})("selectedTabChange",function(s){return a.onSelectedTabChange(s)}),e.TgZ(6,"mat-tab"),e.YNc(7,lo,2,1,"ng-template",5),e.qZA(),e.TgZ(8,"mat-tab"),e.YNc(9,ro,2,1,"ng-template",5),e.qZA(),e.TgZ(10,"mat-tab"),e.YNc(11,co,2,1,"ng-template",5),e.qZA(),e.TgZ(12,"mat-tab"),e.YNc(13,uo,2,1,"ng-template",5),e.qZA(),e.qZA(),e.TgZ(14,"div",6),e._UZ(15,"router-outlet"),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("selectedIndex",a.activeLink))},directives:[_.xw,_.yH,_.Wh,L.lW,D.SP,D.uX,D.uD,y.lC,fe.k],styles:[""]}),n})();var te=h(7261),se=h(6895);function mo(n,i){if(1&n&&(e.TgZ(0,"div"),e.TgZ(1,"div",9),e.TgZ(2,"div",14),e.TgZ(3,"h4",11),e._uU(4,"Commit Fee"),e.qZA(),e.TgZ(5,"span",15),e._uU(6),e.ALo(7,"number"),e.qZA(),e.qZA(),e.TgZ(8,"div",14),e.TgZ(9,"h4",11),e._uU(10,"Commit Weight"),e.qZA(),e.TgZ(11,"span",15),e._uU(12),e.ALo(13,"number"),e.qZA(),e.qZA(),e.TgZ(14,"div",14),e.TgZ(15,"h4",11),e._uU(16,"Fee/KW"),e.qZA(),e.TgZ(17,"span",15),e._uU(18),e.ALo(19,"number"),e.qZA(),e.qZA(),e.TgZ(20,"div",14),e.TgZ(21,"h4",11),e._uU(22,"Static Remote Key"),e.qZA(),e.TgZ(23,"span",15),e._uU(24),e.qZA(),e.qZA(),e.qZA(),e._UZ(25,"mat-divider",13),e.TgZ(26,"div",9),e.TgZ(27,"div",14),e.TgZ(28,"h4",11),e._uU(29),e.qZA(),e.TgZ(30,"span",15),e._uU(31),e.ALo(32,"number"),e.qZA(),e.qZA(),e.TgZ(33,"div",14),e.TgZ(34,"h4",11),e._uU(35),e.qZA(),e.TgZ(36,"span",15),e._uU(37),e.ALo(38,"number"),e.qZA(),e.qZA(),e.TgZ(39,"div",14),e.TgZ(40,"h4",11),e._uU(41,"Unsettled Balance"),e.qZA(),e.TgZ(42,"span",15),e._uU(43),e.ALo(44,"number"),e.qZA(),e.qZA(),e.TgZ(45,"div",14),e.TgZ(46,"h4",11),e._uU(47,"CSV Delay"),e.qZA(),e.TgZ(48,"span",15),e._uU(49),e.ALo(50,"number"),e.qZA(),e.qZA(),e.qZA(),e._UZ(51,"mat-divider",13),e.TgZ(52,"div",9),e.TgZ(53,"div",14),e.TgZ(54,"h4",11),e._uU(55,"Local Reserve (Sats)"),e.qZA(),e.TgZ(56,"span",15),e._uU(57),e.ALo(58,"number"),e.qZA(),e.qZA(),e.TgZ(59,"div",14),e.TgZ(60,"h4",11),e._uU(61,"Remote Reserve (Sats)"),e.qZA(),e.TgZ(62,"span",15),e._uU(63),e.ALo(64,"number"),e.qZA(),e.qZA(),e.TgZ(65,"div",14),e.TgZ(66,"h4",11),e._uU(67,"Lifetime (Seconds)"),e.qZA(),e.TgZ(68,"span",15),e._uU(69),e.ALo(70,"number"),e.qZA(),e.qZA(),e.TgZ(71,"div",14),e.TgZ(72,"h4",11),e._uU(73,"Pending HTLCs"),e.qZA(),e.TgZ(74,"span",15),e._uU(75),e.ALo(76,"number"),e.qZA(),e.qZA(),e.qZA(),e._UZ(77,"mat-divider",13),e.qZA()),2&n){const t=e.oxw();e.xp6(6),e.Oqu(e.lcZ(7,17,t.channel.commit_fee)),e.xp6(6),e.Oqu(e.lcZ(13,19,t.channel.commit_weight)),e.xp6(6),e.Oqu(e.lcZ(19,21,t.channel.fee_per_kw)),e.xp6(6),e.Oqu(t.channel.static_remote_key?"Yes":"No"),e.xp6(1),e.Q6J("inset",!0),e.xp6(4),e.Oqu(t.screenSize===t.screenSizeEnum.XS?"Total Sats Sent":"Total Satoshis Sent"),e.xp6(2),e.Oqu(e.lcZ(32,23,t.channel.total_satoshis_sent)),e.xp6(4),e.Oqu(t.screenSize===t.screenSizeEnum.XS?"Total Sats Recv":"Total Satoshis Received"),e.xp6(2),e.Oqu(e.lcZ(38,25,t.channel.total_satoshis_received)),e.xp6(6),e.Oqu(e.lcZ(44,27,t.channel.unsettled_balance)),e.xp6(6),e.Oqu(e.lcZ(50,29,t.channel.csv_delay)),e.xp6(2),e.Q6J("inset",!0),e.xp6(6),e.Oqu(e.lcZ(58,31,t.channel.local_chan_reserve_sat)),e.xp6(6),e.Oqu(e.lcZ(64,33,t.channel.remote_chan_reserve_sat)),e.xp6(6),e.Oqu(e.lcZ(70,35,t.channel.lifetime)),e.xp6(6),e.Oqu(e.lcZ(76,37,null==t.channel||null==t.channel.pending_htlcs?null:t.channel.pending_htlcs.length)),e.xp6(2),e.Q6J("inset",!0)}}function _o(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Show Advanced"),e.qZA())}function ho(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Hide Advanced"),e.qZA())}function go(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",23),e.NdJ("copied",function(o){return e.CHM(t),e.oxw().onCopyChanID(o)}),e._uU(1,"Copy Channel ID"),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("payload",t.channel.chan_id)}}function fo(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",24),e.NdJ("click",function(){return e.CHM(t),e.oxw().onClose()}),e._uU(1,"OK"),e.qZA()}}const Co=function(n){return{"xs-scroll-y":n}};let xe=(()=>{class n{constructor(t,a,o,s,u){this.dialogRef=t,this.data=a,this.logger=o,this.commonService=s,this.snackBar=u,this.faReceipt=Z.dLy,this.showAdvanced=!1,this.showCopy=!0,this.showCopyField=null,this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.channel=this.data.channel,this.showCopy=this.data.showCopy,this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyChanID(t){this.snackBar.open("Channel ID "+t+" copied."),this.logger.info("Copied Text: "+t)}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(F.mQ),e.Y36(O.v),e.Y36(te.ux))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-information"]],decls:94,vars:36,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-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","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"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["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"],["hideAdvancedText",""],["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"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(t,a){if(1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span",5),e._uU(6,"Channel Information"),e.qZA(),e.qZA(),e.TgZ(7,"button",6),e.NdJ("click",function(){return a.onClose()}),e._uU(8,"X"),e.qZA(),e.qZA(),e.TgZ(9,"mat-card-content",7),e.TgZ(10,"div",8),e.TgZ(11,"div",9),e.TgZ(12,"div",10),e.TgZ(13,"h4",11),e._uU(14,"Channel ID"),e.qZA(),e.TgZ(15,"span",12),e._uU(16),e.qZA(),e.qZA(),e.TgZ(17,"div",10),e.TgZ(18,"h4",11),e._uU(19,"Peer Alias"),e.qZA(),e.TgZ(20,"span",12),e._uU(21),e.qZA(),e.qZA(),e.qZA(),e._UZ(22,"mat-divider",13),e.TgZ(23,"div",9),e.TgZ(24,"div",1),e.TgZ(25,"h4",11),e._uU(26,"Channel Point"),e.qZA(),e.TgZ(27,"span",12),e._uU(28),e.qZA(),e.qZA(),e.qZA(),e._UZ(29,"mat-divider",13),e.TgZ(30,"div",9),e.TgZ(31,"div",1),e.TgZ(32,"h4",11),e._uU(33,"Peer Public Key"),e.qZA(),e.TgZ(34,"span",12),e._uU(35),e.qZA(),e.qZA(),e.qZA(),e._UZ(36,"mat-divider",13),e.TgZ(37,"div",9),e.TgZ(38,"div",14),e.TgZ(39,"h4",11),e._uU(40,"Local Balance"),e.qZA(),e.TgZ(41,"span",15),e._uU(42),e.ALo(43,"number"),e.qZA(),e.qZA(),e.TgZ(44,"div",14),e.TgZ(45,"h4",11),e._uU(46,"Remote Balance"),e.qZA(),e.TgZ(47,"span",15),e._uU(48),e.ALo(49,"number"),e.qZA(),e.qZA(),e.TgZ(50,"div",14),e.TgZ(51,"h4",11),e._uU(52,"Capacity"),e.qZA(),e.TgZ(53,"span",15),e._uU(54),e.ALo(55,"number"),e.qZA(),e.qZA(),e.TgZ(56,"div",14),e.TgZ(57,"h4",11),e._uU(58,"Uptime (Seconds)"),e.qZA(),e.TgZ(59,"span",15),e._uU(60),e.ALo(61,"number"),e.qZA(),e.qZA(),e.qZA(),e._UZ(62,"mat-divider",13),e.TgZ(63,"div",9),e.TgZ(64,"div",14),e.TgZ(65,"h4",11),e._uU(66,"Active"),e.qZA(),e.TgZ(67,"span",15),e._uU(68),e.qZA(),e.qZA(),e.TgZ(69,"div",14),e.TgZ(70,"h4",11),e._uU(71,"Private"),e.qZA(),e.TgZ(72,"span",15),e._uU(73),e.qZA(),e.qZA(),e.TgZ(74,"div",14),e.TgZ(75,"h4",11),e._uU(76,"Initiator"),e.qZA(),e.TgZ(77,"span",15),e._uU(78),e.qZA(),e.qZA(),e.TgZ(79,"div",14),e.TgZ(80,"h4",11),e._uU(81,"Number of Updates"),e.qZA(),e.TgZ(82,"span",15),e._uU(83),e.ALo(84,"number"),e.qZA(),e.qZA(),e.qZA(),e._UZ(85,"mat-divider",13),e.YNc(86,mo,78,39,"div",16),e.TgZ(87,"div",17),e.TgZ(88,"button",18),e.NdJ("click",function(){return a.onShowAdvanced()}),e.YNc(89,_o,2,0,"p",19),e.YNc(90,ho,2,0,"ng-template",null,20,e.W1O),e.qZA(),e.YNc(92,go,2,1,"button",21),e.YNc(93,fo,2,0,"button",22),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t){const o=e.MAs(91);e.xp6(4),e.Q6J("icon",a.faReceipt),e.xp6(5),e.Q6J("ngClass",e.VKq(34,Co,a.screenSize===a.screenSizeEnum.XS)),e.xp6(7),e.Oqu(a.channel.chan_id),e.xp6(5),e.Oqu(a.channel.remote_alias),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(a.channel.channel_point),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(a.channel.remote_pubkey),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(e.lcZ(43,24,a.channel.local_balance)),e.xp6(6),e.Oqu(e.lcZ(49,26,a.channel.remote_balance)),e.xp6(6),e.Oqu(e.lcZ(55,28,a.channel.capacity)),e.xp6(6),e.Oqu(e.lcZ(61,30,a.channel.uptime)),e.xp6(2),e.Q6J("inset",!0),e.xp6(6),e.Oqu(a.channel.active?"Yes":"No"),e.xp6(5),e.Oqu(a.channel.private?"Yes":"No"),e.xp6(5),e.Oqu(a.channel.initiator?"Yes":"No"),e.xp6(5),e.Oqu(e.lcZ(84,32,a.channel.num_updates)),e.xp6(2),e.Q6J("inset",!0),e.xp6(1),e.Q6J("ngIf",a.showAdvanced),e.xp6(3),e.Q6J("ngIf",!a.showAdvanced)("ngIfElse",o),e.xp6(3),e.Q6J("ngIf",a.showCopy),e.xp6(1),e.Q6J("ngIf",!a.showCopy)}},directives:[_.xw,_.Wh,_.yH,T.dk,M.BN,L.lW,T.dn,p.mk,q.oO,z.d,p.O5,W.h,se.y],pipes:[p.JJ],styles:[""]}),n})();var Ze=h(9646),ye=h(7772),xo=h(113);function Zo(n,i){1&n&&e.GkF(0)}const le=function(n,i){return{"small-svg":n,"large-svg":i}};function yo(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(o){return e.CHM(t),e.oxw().onSwipe(o)}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",8),e._UZ(3,"path",9),e._UZ(4,"path",10),e._UZ(5,"path",11),e._UZ(6,"path",12),e._UZ(7,"path",13),e._UZ(8,"path",14),e._UZ(9,"path",15),e._UZ(10,"path",16),e._UZ(11,"path",17),e._UZ(12,"path",18),e._UZ(13,"path",19),e._UZ(14,"path",20),e._UZ(15,"path",21),e._UZ(16,"path",22),e._UZ(17,"path",23),e._UZ(18,"path",24),e._UZ(19,"path",25),e._UZ(20,"path",26),e._UZ(21,"path",27),e._UZ(22,"path",28),e._UZ(23,"path",29),e._UZ(24,"path",30),e._UZ(25,"path",31),e._UZ(26,"path",32),e._UZ(27,"path",33),e._UZ(28,"path",34),e._UZ(29,"path",35),e._UZ(30,"path",36),e._UZ(31,"path",37),e._UZ(32,"path",38),e._UZ(33,"path",39),e._UZ(34,"path",40),e._UZ(35,"path",41),e._UZ(36,"path",42),e._UZ(37,"path",43),e._UZ(38,"path",44),e._UZ(39,"path",45),e._UZ(40,"path",46),e.qZA(),e.kcU(),e.TgZ(41,"div",47),e.TgZ(42,"mat-card-title"),e._uU(43,"Circular rebalancing explained."),e.qZA(),e.qZA(),e.TgZ(44,"div",48),e.TgZ(45,"mat-card-subtitle",49),e._uU(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.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("@sliderAnimation",t.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,le,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function To(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(o){return e.CHM(t),e.oxw().onSwipe(o)}),e.O4$(),e.TgZ(1,"svg",50),e._UZ(2,"path",51),e._UZ(3,"path",52),e._UZ(4,"path",53),e._UZ(5,"path",54),e._UZ(6,"path",55),e._UZ(7,"path",56),e._UZ(8,"path",57),e._UZ(9,"path",58),e._UZ(10,"path",59),e._UZ(11,"path",60),e._UZ(12,"path",61),e._UZ(13,"path",62),e._UZ(14,"path",63),e._UZ(15,"path",64),e._UZ(16,"path",65),e._UZ(17,"path",66),e._UZ(18,"path",67),e._UZ(19,"path",68),e._UZ(20,"path",69),e._UZ(21,"path",70),e._UZ(22,"path",71),e._UZ(23,"path",72),e._UZ(24,"path",73),e._UZ(25,"path",74),e._UZ(26,"path",75),e._UZ(27,"path",76),e._UZ(28,"path",77),e._UZ(29,"path",78),e._UZ(30,"path",79),e._UZ(31,"path",80),e._UZ(32,"path",81),e._UZ(33,"path",51),e._UZ(34,"path",52),e._UZ(35,"path",53),e._UZ(36,"path",54),e._UZ(37,"path",55),e._UZ(38,"path",56),e._UZ(39,"path",57),e._UZ(40,"path",58),e._UZ(41,"path",59),e._UZ(42,"path",82),e._UZ(43,"path",83),e._UZ(44,"path",62),e._UZ(45,"path",84),e._UZ(46,"path",85),e._UZ(47,"path",86),e._UZ(48,"path",66),e._UZ(49,"path",67),e._UZ(50,"path",68),e._UZ(51,"path",69),e._UZ(52,"path",70),e._UZ(53,"path",71),e._UZ(54,"path",72),e._UZ(55,"path",73),e._UZ(56,"path",74),e._UZ(57,"path",75),e._UZ(58,"path",76),e._UZ(59,"path",77),e._UZ(60,"path",78),e._UZ(61,"path",79),e._UZ(62,"path",87),e._UZ(63,"path",81),e._UZ(64,"path",88),e.TgZ(65,"defs"),e.TgZ(66,"linearGradient",89),e._UZ(67,"stop",90),e._UZ(68,"stop",91),e._UZ(69,"stop",92),e.qZA(),e.TgZ(70,"linearGradient",93),e._UZ(71,"stop",90),e._UZ(72,"stop",91),e._UZ(73,"stop",92),e.qZA(),e.TgZ(74,"linearGradient",94),e._UZ(75,"stop",90),e._UZ(76,"stop",91),e._UZ(77,"stop",92),e.qZA(),e.TgZ(78,"linearGradient",95),e._UZ(79,"stop",90),e._UZ(80,"stop",91),e._UZ(81,"stop",92),e.qZA(),e.TgZ(82,"linearGradient",96),e._UZ(83,"stop",90),e._UZ(84,"stop",91),e._UZ(85,"stop",92),e.qZA(),e.TgZ(86,"linearGradient",97),e._UZ(87,"stop",90),e._UZ(88,"stop",91),e._UZ(89,"stop",92),e.qZA(),e.qZA(),e.qZA(),e.kcU(),e.TgZ(90,"div",47),e.TgZ(91,"mat-card-title"),e._uU(92,"Step 1: Unbalanced channel"),e.qZA(),e.qZA(),e.TgZ(93,"div",48),e.TgZ(94,"mat-card-subtitle",49),e._uU(95," It starts with an unbalanced channel, that needs to be rebalanced in order to continue to route payments. "),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("@sliderAnimation",t.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,le,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function bo(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(o){return e.CHM(t),e.oxw().onSwipe(o)}),e.O4$(),e.TgZ(1,"svg",98),e._UZ(2,"path",99),e._UZ(3,"path",100),e._UZ(4,"path",101),e._UZ(5,"path",102),e._UZ(6,"path",103),e._UZ(7,"path",104),e._UZ(8,"path",105),e._UZ(9,"path",106),e._UZ(10,"path",107),e._UZ(11,"path",108),e._UZ(12,"path",109),e._UZ(13,"path",110),e._UZ(14,"path",111),e._UZ(15,"path",112),e._UZ(16,"path",113),e._UZ(17,"path",51),e._UZ(18,"path",114),e._UZ(19,"path",115),e._UZ(20,"path",116),e._UZ(21,"path",117),e._UZ(22,"path",118),e._UZ(23,"path",119),e._UZ(24,"path",120),e._UZ(25,"path",121),e._UZ(26,"path",82),e._UZ(27,"path",83),e._UZ(28,"path",122),e._UZ(29,"path",123),e._UZ(30,"path",124),e._UZ(31,"path",125),e._UZ(32,"path",66),e._UZ(33,"path",126),e._UZ(34,"path",127),e._UZ(35,"path",128),e._UZ(36,"path",129),e._UZ(37,"path",130),e._UZ(38,"path",131),e._UZ(39,"path",73),e._UZ(40,"path",74),e._UZ(41,"path",132),e._UZ(42,"path",76),e._UZ(43,"path",77),e._UZ(44,"path",78),e._UZ(45,"path",79),e._UZ(46,"path",133),e._UZ(47,"path",134),e._UZ(48,"path",135),e.TgZ(49,"defs"),e.TgZ(50,"linearGradient",136),e._UZ(51,"stop",90),e._UZ(52,"stop",91),e._UZ(53,"stop",92),e.qZA(),e.TgZ(54,"linearGradient",137),e._UZ(55,"stop",90),e._UZ(56,"stop",91),e._UZ(57,"stop",92),e.qZA(),e.TgZ(58,"linearGradient",138),e._UZ(59,"stop",90),e._UZ(60,"stop",91),e._UZ(61,"stop",92),e.qZA(),e.qZA(),e.qZA(),e.kcU(),e.TgZ(62,"div",47),e.TgZ(63,"mat-card-title"),e._uU(64,"Step 2: Invoice/Payment"),e.qZA(),e.qZA(),e.TgZ(65,"div",48),e.TgZ(66,"mat-card-subtitle",49),e._uU(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.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("@sliderAnimation",t.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,le,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function Ao(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(o){return e.CHM(t),e.oxw().onSwipe(o)}),e.O4$(),e.TgZ(1,"svg",139),e._UZ(2,"path",140),e._UZ(3,"path",141),e._UZ(4,"path",142),e._UZ(5,"path",143),e._UZ(6,"path",144),e._UZ(7,"path",145),e._UZ(8,"path",146),e._UZ(9,"path",147),e._UZ(10,"path",148),e._UZ(11,"path",149),e._UZ(12,"path",150),e._UZ(13,"path",151),e._UZ(14,"path",152),e._UZ(15,"path",153),e._UZ(16,"path",154),e._UZ(17,"path",155),e._UZ(18,"path",156),e._UZ(19,"path",157),e._UZ(20,"path",158),e._UZ(21,"path",159),e._UZ(22,"path",160),e._UZ(23,"path",161),e._UZ(24,"path",162),e._UZ(25,"path",163),e._UZ(26,"path",162),e._UZ(27,"path",164),e._UZ(28,"path",165),e._UZ(29,"path",166),e._UZ(30,"path",167),e._UZ(31,"path",168),e._UZ(32,"path",169),e._UZ(33,"path",170),e._UZ(34,"path",171),e._UZ(35,"path",172),e._UZ(36,"path",173),e._UZ(37,"path",174),e._UZ(38,"path",175),e._UZ(39,"path",176),e._UZ(40,"path",177),e._UZ(41,"path",178),e.TgZ(42,"defs"),e.TgZ(43,"linearGradient",179),e._UZ(44,"stop",90),e._UZ(45,"stop",91),e._UZ(46,"stop",92),e.qZA(),e.qZA(),e.qZA(),e.kcU(),e.TgZ(47,"div",47),e.TgZ(48,"mat-card-title"),e._uU(49,"Step 3: Rebalance amount"),e.qZA(),e.qZA(),e.TgZ(50,"div",48),e.TgZ(51,"mat-card-subtitle",49),e._uU(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.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("@sliderAnimation",t.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,le,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}function vo(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(o){return e.CHM(t),e.oxw().onSwipe(o)}),e.O4$(),e.TgZ(1,"svg",139),e._UZ(2,"path",180),e._UZ(3,"path",142),e._UZ(4,"path",181),e._UZ(5,"path",144),e._UZ(6,"path",145),e._UZ(7,"path",182),e._UZ(8,"path",147),e._UZ(9,"path",183),e._UZ(10,"path",184),e._UZ(11,"path",185),e._UZ(12,"path",186),e._UZ(13,"path",187),e._UZ(14,"path",188),e._UZ(15,"path",189),e._UZ(16,"path",190),e._UZ(17,"path",191),e._UZ(18,"path",157),e._UZ(19,"path",192),e._UZ(20,"path",193),e._UZ(21,"path",178),e._UZ(22,"path",159),e._UZ(23,"path",160),e._UZ(24,"path",194),e._UZ(25,"path",162),e._UZ(26,"path",163),e._UZ(27,"path",162),e._UZ(28,"path",164),e._UZ(29,"path",165),e._UZ(30,"path",166),e._UZ(31,"path",167),e._UZ(32,"path",195),e._UZ(33,"path",169),e._UZ(34,"path",196),e._UZ(35,"path",171),e._UZ(36,"path",172),e._UZ(37,"path",173),e._UZ(38,"path",174),e._UZ(39,"path",175),e._UZ(40,"path",197),e.TgZ(41,"defs"),e.TgZ(42,"linearGradient",198),e._UZ(43,"stop",90),e._UZ(44,"stop",91),e._UZ(45,"stop",92),e.qZA(),e.qZA(),e.qZA(),e.kcU(),e.TgZ(46,"div",47),e.TgZ(47,"mat-card-title"),e._uU(48,"Rebalance successful!"),e.qZA(),e.qZA(),e.TgZ(49,"div",48),e.TgZ(50,"mat-card-subtitle",49),e._uU(51," Your channel is successfully rebalanced and is able to continue to route payments. "),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("@sliderAnimation",t.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,le,t.screenSize===t.screenSizeEnum.XS,t.screenSize!==t.screenSizeEnum.XS))}}let wo=(()=>{class n{constructor(t){this.commonService=t,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.vpe,this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(t){2===t.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===t.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-rebalance-infographics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["infoStepBlock1",""],["infoStepBlock2",""],["infoStepBlock3",""],["infoStepBlock4",""],["infoStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",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","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["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","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["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","fill","#444053"],["d","M127.4 137.844L128.262 144L129 137.6L127.4 137.844Z","fill","#D0D2D5"],["d","M100.2 134.349V138.226L101 141.6H101.571L102.258 137.976L102.6 133.6L100.2 134.349Z","fill","#3F3D56"],["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","fill","#D0D2D5"],["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","fill","#D0D2D5"],["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","#444053"],["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","fill","#444053"],["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","fill","#6C63FF"],["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","fill","#6C63FF"],["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","fill","#6C63FF"],["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","fill","#6C63FF"],["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","fill","#6C63FF"],["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","fill","#6C63FF"],["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","fill","#6C63FF"],["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","fill","#6C63FF"],["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","fill","#6C63FF"],["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","fill","#6C63FF"],["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","fill","#6C63FF"],["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","fill","#6C63FF"],["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","fill","#6C63FF"],["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","fill","#6C63FF"],["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","fill","#6C63FF"],["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","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["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","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["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","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["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","fill","#5E4EA5","stroke","white","stroke-width","1.6"],["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","fill","#5E4EA5","stroke","white","stroke-width","1.6"],["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","fill","#5E4EA5","stroke","white","stroke-width","1.6"],["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","fill","#5E4EA5","stroke","white","stroke-width","1.6"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["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","fill","#E6E6E6"],["d","M88.6575 67.1775H1.48926V98.4248H88.6575V67.1775Z","fill","white"],["d","M59.844 74.5891H8.64404V90.6009H59.844V74.5891Z","fill","#C4B7FF"],["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","fill","#6C63FF"],["d","M88.6575 34.7129H1.48926V65.9602H88.6575V34.7129Z","fill","white"],["d","M59.844 42.1244H8.64404V58.1363H59.844V42.1244Z","fill","#C4B7FF"],["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","fill","#6C63FF"],["d","M88.6575 2.24823H1.48926V33.4955H88.6575V2.24823Z","fill","white"],["d","M59.844 9.66199H8.64404V25.6739H59.844V9.66199Z","fill","#C4B7FF"],["d","M32.644 74.5891H8.64404V90.6009H32.644V74.5891Z","fill","#5E4EA5"],["d","M45.444 42.1244H8.64404V58.1363H45.444V42.1244Z","fill","#5E4EA5"],["d","M59.644 9.66199H8.64404V25.662H59.644V9.66199Z","fill","#5E4EA5"],["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","fill","#5E4EA5"],["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","fill","#4A4A4A"],["d","M192.266 42.8538H69.9434V111.856H192.266V42.8538Z","fill","#CBCBCB"],["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","fill","#F2F2F2"],["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","fill","#3F3D56"],["d","M170.967 80.0673H159.541V82.4548H170.967V80.0673Z","fill","#4A4A4A"],["d","M184.781 61.4783H145.727V62.5015H184.781V61.4783Z","fill","#4A4A4A"],["d","M184.781 64.7186H145.727V65.7418H184.781V64.7186Z","fill","#4A4A4A"],["d","M184.781 67.9589H145.727V68.9821H184.781V67.9589Z","fill","#4A4A4A"],["d","M184.781 71.1991H145.727V72.2224H184.781V71.1991Z","fill","#4A4A4A"],["d","M184.781 74.4394H145.727V75.4626H184.781V74.4394Z","fill","#4A4A4A"],["d","M184.781 44.2537H180.006V49.0288H184.781V44.2537Z","fill","#F2F2F2"],["d","M186.998 51.2458H181.2V45.4474H186.998V51.2458ZM181.452 50.9937H186.746V45.6996H181.452V50.9937Z","fill","#4A4A4A"],["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","fill","#4A4A4A"],["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","fill","#5B5B5B"],["d","M42 75H9V91H42V75Z","fill","#5E4EA5"],["d","M42 42H9V58H42V42Z","fill","#5E4EA5"],["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","fill","#4A4A4A"],["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","fill","#F1F1F1"],["d","M115.068 85.6077H349.8V86.5722H113L115.068 85.6077Z","fill","#4A4A4A"],["d","M236.776 84.376H226.024V91.544H236.776V84.376Z","fill","#D0CDE1"],["d","M218.856 87.96H233.192V79H218.856V87.96ZM232.569 87.5704H219.479V79.3896H232.569V87.5704Z","fill","#4A4A4A"],["d","M265 57.3624H357.392V120.307H265V57.3624Z","fill","#CBCBCB"],["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","fill","#4A4A4A"],["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","fill","#4A4A4A"],["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","fill","#4A4A4A"],["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","fill","#4A4A4A"],["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","fill","#4A4A4A"],["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","fill","#4A4A4A"],["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","fill","#4A4A4A"],["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","fill","#F2F2F2"],["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","fill","#4A4A4A"],["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","fill","#5B5B5B"],["d","M88.6576 67.1775H1.48938V98.4248H88.6576V67.1775Z","fill","white"],["d","M59.8442 74.589H8.64417V90.6009H59.8442V74.589Z","fill","#C4B7FF"],["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","fill","#6C63FF"],["d","M88.6576 34.7129H1.48938V65.9602H88.6576V34.7129Z","fill","white"],["d","M59.8442 42.1244H8.64417V58.1363H59.8442V42.1244Z","fill","#C4B7FF"],["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","fill","#6C63FF"],["d","M88.6576 2.24824H1.48938V33.4955H88.6576V2.24824Z","fill","white"],["d","M59.8442 9.66196H8.64417V25.6738H59.8442V9.66196Z","fill","#C4B7FF"],["d","M59.8442 9.66196H8.64417V25.6738H59.8442V9.66196Z","fill","#5E4EA5"],["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","fill","#4A4A4A"],["d","M192.265 42.8538H69.9432V111.856H192.265V42.8538Z","fill","#CBCBCB"],["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","fill","#F2F2F2"],["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","fill","#3F3D56"],["d","M170.967 80.0672H159.541V82.4548H170.967V80.0672Z","fill","#4A4A4A"],["d","M184.781 67.9588H145.727V68.9821H184.781V67.9588Z","fill","#4A4A4A"],["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","fill","#4A4A4A"],["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","fill","#5B5B5B"],["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","#C4B7FF","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7"],["d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46","stroke","#5E4EA5","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7"],["d","M122.399 37H32.25V137.616H122.399V37Z","fill","#E6E6E6"],["d","M120.908 104.178H33.7394V135.425H120.908V104.178Z","fill","white"],["d","M92.0943 111.589H40.8943V127.601H92.0943V111.589Z","fill","#C4B7FF"],["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","fill","#6C63FF"],["d","M120.908 71.7129H33.7394V102.96H120.908V71.7129Z","fill","white"],["d","M92.0943 79.1244H40.8943V95.1363H92.0943V79.1244Z","fill","#C4B7FF"],["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","fill","#6C63FF"],["d","M120.908 39.2482H33.7394V70.4955H120.908V39.2482Z","fill","white"],["d","M92.0943 46.662H40.8943V62.6738H92.0943V46.662Z","fill","#C4B7FF"],["d","M74.5 112H40.5V128H74.5V112Z","fill","#5E4EA5"],["d","M74.5 79H40.5V95H74.5V79Z","fill","#5E4EA5"],["d","M91.8943 46.662H40.8943V62.662H91.8943V46.662Z","fill","#5E4EA5"],["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","fill","#5E4EA5"],["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","fill","#5E4EA5"],["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","fill","#5E4EA5"],["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","fill","#5E4EA5"],["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","fill","#C4B7FF"],["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","fill","#C4B7FF"],["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","fill","#F2F2F2"],["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","fill","#5B5B5B"],["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","fill","#F2F2F2"],["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","fill","#CBCBCB"],["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","fill","#595959"],["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","fill","#F2F2F2"],["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","fill","#CBCBCB"],["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","fill","#595959"],["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","fill","#595959"],["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","fill","#CBCBCB"],["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","fill","#CBCBCB"],["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","fill","#CBCBCB"],["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","fill","#595959"],["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","fill","#5E4EA5"],["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","#5E4EA5","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7"],["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","fill","#6C63FF"],["d","M120.908 39.2482H33.7393V70.4955H120.908V39.2482Z","fill","white"],["d","M92.0943 46.662H40.8943V62.6739H92.0943V46.662Z","fill","#C4B7FF"],["d","M76 112H41V128H76V112Z","fill","#5E4EA5"],["d","M70 79H41V95H70V79Z","fill","#5E4EA5"],["d","M70 47H41V63H70V47Z","fill","#5E4EA5"],["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","fill","#5E4EA5"],["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","fill","#5E4EA5"],["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","fill","#5E4EA5"],["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","fill","#CBCBCB"],["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","fill","#595959"],["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(t,a){if(1&t&&(e.YNc(0,Zo,1,0,"ng-container",0),e.YNc(1,yo,47,5,"ng-template",null,1,e.W1O),e.YNc(3,To,96,5,"ng-template",null,2,e.W1O),e.YNc(5,bo,68,5,"ng-template",null,3,e.W1O),e.YNc(7,Ao,53,5,"ng-template",null,4,e.W1O),e.YNc(9,vo,52,5,"ng-template",null,5,e.W1O)),2&t){const o=e.MAs(2),s=e.MAs(4),u=e.MAs(6),g=e.MAs(8),N=e.MAs(10);e.Q6J("ngTemplateOutlet",1===a.stepNumber?o:2===a.stepNumber?s:3===a.stepNumber?u:4===a.stepNumber?g:N)}},directives:[p.tP,_.xw,_.yH,_.Wh,p.mk,q.oO,T.n5,T.$j],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:[xo.l]}}),n})();const qo=["stepper"];function So(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw(2);e.Oqu(t.inputFormLabel)}}function Lo(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount is required."),e.qZA())}function ko(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount must be a positive number."),e.qZA())}function Fo(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.hij("Amount must be less than or equal to ",null==t.selChannel?null:t.selChannel.local_balance,".")}}function Uo(n,i){if(1&n&&(e.TgZ(0,"mat-option",55),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.AsE("",t.remote_alias," - ",t.chan_id,"")}}function No(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Receive from Peer is required."),e.qZA())}function Oo(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Receive from Peer not found in the list."),e.qZA())}function Ro(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw(2);e.Oqu(t.feeFormLabel)}}function Io(n,i){if(1&n&&(e.TgZ(0,"mat-option",55),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t.name," ")}}function Mo(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.hij("",t.feeFormGroup.controls.selFeeLimitType.value?t.feeFormGroup.controls.selFeeLimitType.value.placeholder:t.feeLimitTypes[0].placeholder," is required.")}}function Do(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.hij("",t.feeFormGroup.controls.selFeeLimitType.value?t.feeFormGroup.controls.selFeeLimitType.value.placeholder:t.feeLimitTypes[0].placeholder," must be a positive number.")}}function Po(n,i){1&n&&e._uU(0,"Invoice/Payment")}function Jo(n,i){1&n&&(e.TgZ(0,"mat-icon",56),e._uU(1,"check"),e.qZA())}function Eo(n,i){1&n&&e._UZ(0,"mat-progress-bar",57)}function Qo(n,i){if(1&n&&(e.TgZ(0,"mat-icon",56),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(null!=t.paymentStatus&&t.paymentStatus.error?"close":"check")}}function Yo(n,i){1&n&&e._UZ(0,"div",14)}function Ho(n,i){1&n&&e._UZ(0,"mat-progress-bar",57)}function Bo(n,i){if(1&n&&(e.TgZ(0,"h4",58),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.paymentStatus&&t.paymentStatus.payment_hash?"Rebalance Successful.":"Rebalance Failed.")}}function Vo(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",59),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).onRestart()}),e._uU(1,"Start Again"),e.qZA()}}function Go(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",5),e.TgZ(1,"div",6),e.TgZ(2,"mat-card-header",7),e.TgZ(3,"div",8),e.TgZ(4,"span",9),e._uU(5),e.qZA(),e.qZA(),e.TgZ(6,"div",10),e.TgZ(7,"button",11),e.NdJ("click",function(){return e.CHM(t),e.oxw().showInfo()}),e._uU(8,"?"),e.qZA(),e.TgZ(9,"button",12),e.NdJ("click",function(){return e.CHM(t),e.oxw().onClose()}),e._uU(10,"X"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"mat-card-content",13),e.TgZ(12,"div",14),e.TgZ(13,"div",15),e.TgZ(14,"div",16),e._UZ(15,"fa-icon",17),e.TgZ(16,"span"),e._uU(17,"Circular Rebalance is a payment you make to *yourselves* 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.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",18),e.TgZ(19,"p",19),e.TgZ(20,"strong"),e._uU(21,"Channel Peer:\xa0"),e.qZA(),e._uU(22),e.ALo(23,"titlecase"),e.qZA(),e.TgZ(24,"p",19),e.TgZ(25,"strong"),e._uU(26,"Channel ID:\xa0"),e.qZA(),e._uU(27),e.qZA(),e.qZA(),e.TgZ(28,"mat-vertical-stepper",20,21),e.NdJ("selectionChange",function(o){return e.CHM(t),e.oxw().stepSelectionChanged(o)}),e.TgZ(30,"mat-step",22),e.TgZ(31,"form",23),e.YNc(32,So,1,1,"ng-template",24),e.TgZ(33,"div",25),e.TgZ(34,"mat-form-field",26),e._UZ(35,"input",27),e.TgZ(36,"mat-hint"),e._uU(37),e.qZA(),e.TgZ(38,"span",28),e._uU(39,"Sats"),e.qZA(),e.YNc(40,Lo,2,0,"mat-error",29),e.YNc(41,ko,2,0,"mat-error",29),e.YNc(42,Fo,2,1,"mat-error",29),e.qZA(),e.TgZ(43,"mat-form-field",30),e.TgZ(44,"input",31),e.NdJ("change",function(){return e.CHM(t),e.oxw().onSelectedPeerChanged()}),e.qZA(),e.TgZ(45,"mat-autocomplete",32,33),e.NdJ("optionSelected",function(){return e.CHM(t),e.oxw().onSelectedPeerChanged()}),e.YNc(47,Uo,2,3,"mat-option",34),e.ALo(48,"async"),e.qZA(),e.YNc(49,No,2,0,"mat-error",29),e.YNc(50,Oo,2,0,"mat-error",29),e.qZA(),e.qZA(),e.TgZ(51,"div",35),e.TgZ(52,"button",36),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSelectFee()}),e._uU(53,"Select Fee"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(54,"mat-step",22),e.TgZ(55,"form",23),e.YNc(56,Ro,1,1,"ng-template",37),e.TgZ(57,"div",25),e.TgZ(58,"div",25),e.TgZ(59,"mat-form-field",30),e.TgZ(60,"mat-select",38),e.YNc(61,Io,2,2,"mat-option",34),e.qZA(),e.qZA(),e.TgZ(62,"mat-form-field",26),e._UZ(63,"input",39),e.YNc(64,Mo,2,1,"mat-error",29),e.YNc(65,Do,2,1,"mat-error",29),e.qZA(),e.qZA(),e.qZA(),e.TgZ(66,"div",35),e.TgZ(67,"button",40),e.NdJ("click",function(){return e.CHM(t),e.oxw().onRebalance()}),e._uU(68,"Rebalance"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(69,"mat-step",41),e.TgZ(70,"form",23),e.YNc(71,Po,1,0,"ng-template",24),e.TgZ(72,"div",42),e.TgZ(73,"mat-expansion-panel",43),e.TgZ(74,"mat-expansion-panel-header"),e.TgZ(75,"mat-panel-title"),e.TgZ(76,"span",44),e._uU(77),e.YNc(78,Jo,2,0,"mat-icon",45),e.qZA(),e.qZA(),e.qZA(),e.TgZ(79,"div",14),e.TgZ(80,"span",46),e._uU(81),e.qZA(),e.qZA(),e.qZA(),e.YNc(82,Eo,1,0,"mat-progress-bar",47),e.TgZ(83,"mat-expansion-panel",48),e.TgZ(84,"mat-expansion-panel-header"),e.TgZ(85,"mat-panel-title"),e.TgZ(86,"span",44),e._uU(87),e.YNc(88,Qo,2,1,"mat-icon",45),e.qZA(),e.qZA(),e.qZA(),e.YNc(89,Yo,1,0,"div",49),e.qZA(),e.YNc(90,Ho,1,0,"mat-progress-bar",47),e.qZA(),e.YNc(91,Bo,2,1,"h4",50),e.TgZ(92,"div",51),e.YNc(93,Vo,2,0,"button",52),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(94,"div",53),e.TgZ(95,"button",54),e._uU(96,"Close"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.MAs(46),a=e.oxw(),o=e.MAs(2);e.Q6J("@opacityAnimation",void 0),e.xp6(3),e.Q6J("fxFlex",a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM?"83":"91"),e.xp6(2),e.Oqu(a.channel?"Channel "+a.loopDirectionCaption:a.loopDirectionCaption),e.xp6(1),e.Q6J("fxFlex",a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM?"17":"9"),e.xp6(9),e.Q6J("icon",a.faInfoCircle),e.xp6(7),e.Oqu(e.lcZ(23,45,a.selChannel.remote_alias)),e.xp6(5),e.Oqu(a.selChannel.chan_id),e.xp6(1),e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",a.inputFormGroup)("editable",a.flgEditable),e.xp6(1),e.Q6J("formGroup",a.inputFormGroup),e.xp6(4),e.Q6J("step",100),e.xp6(2),e.AsE("(Local Bal: ",null==a.selChannel?null:a.selChannel.local_balance,", Remaining: ",(null==a.selChannel?null:a.selChannel.local_balance)-(a.inputFormGroup.controls.rebalanceAmount.value?a.inputFormGroup.controls.rebalanceAmount.value:0),")"),e.xp6(3),e.Q6J("ngIf",null==a.inputFormGroup.controls.rebalanceAmount.errors?null:a.inputFormGroup.controls.rebalanceAmount.errors.required),e.xp6(1),e.Q6J("ngIf",null==a.inputFormGroup.controls.rebalanceAmount.errors?null:a.inputFormGroup.controls.rebalanceAmount.errors.min),e.xp6(1),e.Q6J("ngIf",null==a.inputFormGroup.controls.rebalanceAmount.errors?null:a.inputFormGroup.controls.rebalanceAmount.errors.max),e.xp6(2),e.Q6J("matAutocomplete",t),e.xp6(1),e.Q6J("displayWith",a.displayFn),e.xp6(2),e.Q6J("ngForOf",e.lcZ(48,47,a.filteredActiveChannels)),e.xp6(2),e.Q6J("ngIf",null==a.inputFormGroup.controls.selRebalancePeer.errors?null:a.inputFormGroup.controls.selRebalancePeer.errors.required),e.xp6(1),e.Q6J("ngIf",null==a.inputFormGroup.controls.selRebalancePeer.errors?null:a.inputFormGroup.controls.selRebalancePeer.errors.notfound),e.xp6(4),e.Q6J("stepControl",a.feeFormGroup)("editable",a.flgEditable),e.xp6(1),e.Q6J("formGroup",a.feeFormGroup),e.xp6(6),e.Q6J("ngForOf",a.feeLimitTypes),e.xp6(2),e.s9C("placeholder",a.feeFormGroup.controls.selFeeLimitType.value?a.feeFormGroup.controls.selFeeLimitType.value.placeholder:a.feeLimitTypes[0].placeholder),e.Q6J("step",1),e.xp6(1),e.Q6J("ngIf",null==a.feeFormGroup.controls.feeLimit.errors?null:a.feeFormGroup.controls.feeLimit.errors.required),e.xp6(1),e.Q6J("ngIf",null==a.feeFormGroup.controls.feeLimit.errors?null:a.feeFormGroup.controls.feeLimit.errors.min),e.xp6(4),e.Q6J("stepControl",a.statusFormGroup),e.xp6(1),e.Q6J("formGroup",a.statusFormGroup),e.xp6(7),e.Oqu(a.flgInvoiceGenerated?a.flgReusingInvoice?"Invoice re-used":"Invoice generated":"Generating invoice..."),e.xp6(1),e.Q6J("ngIf",a.flgInvoiceGenerated),e.xp6(3),e.Oqu(a.paymentRequest),e.xp6(1),e.Q6J("ngIf",!a.flgInvoiceGenerated),e.xp6(1),e.Q6J("expanded",(a.flgInvoiceGenerated||a.flgReusingInvoice)&&a.flgPaymentSent),e.xp6(4),e.Oqu(a.flgInvoiceGenerated||a.flgPaymentSent?a.flgPaymentSent?null!=a.paymentStatus&&a.paymentStatus.error?"Payment failed":"Payment successful":"Processing payment...":"Payment waiting for Invoice"),e.xp6(1),e.Q6J("ngIf",a.flgPaymentSent),e.xp6(1),e.Q6J("ngIf",!a.paymentStatus)("ngIfElse",o),e.xp6(1),e.Q6J("ngIf",a.flgInvoiceGenerated&&!a.flgPaymentSent),e.xp6(1),e.Q6J("ngIf",a.flgInvoiceGenerated&&a.flgPaymentSent),e.xp6(2),e.Q6J("ngIf",a.paymentStatus&&a.paymentStatus.error),e.xp6(2),e.Q6J("mat-dialog-close",!1)}}function zo(n,i){1&n&&e.GkF(0)}function Wo(n,i){if(1&n&&e.YNc(0,zo,1,0,"ng-container",60),2&n){const t=e.oxw(),a=e.MAs(4),o=e.MAs(6);e.Q6J("ngTemplateOutlet",t.paymentStatus.error?a:o)}}function Xo(n,i){if(1&n&&(e.TgZ(0,"div",14),e.TgZ(1,"span",46),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.hij("Error: ",t.paymentStatus.error,"")}}function $o(n,i){if(1&n&&(e.TgZ(0,"div",14),e.TgZ(1,"div",61),e.TgZ(2,"div",6),e.TgZ(3,"h4",62),e._uU(4,"Payment Hash"),e.qZA(),e.TgZ(5,"span",46),e._uU(6),e.qZA(),e.qZA(),e.qZA(),e._UZ(7,"mat-divider",63),e.TgZ(8,"div",61),e.TgZ(9,"div",64),e.TgZ(10,"h4",62),e._uU(11),e.qZA(),e.TgZ(12,"span",46),e._uU(13),e.qZA(),e.qZA(),e.TgZ(14,"div",64),e.TgZ(15,"h4",62),e._uU(16,"Number of Hops"),e.qZA(),e.TgZ(17,"span",46),e._uU(18),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(6),e.Oqu(t.paymentStatus.payment_hash),e.xp6(5),e.hij("Total Fees (",t.paymentStatus.payment_route.total_fees_msat?"mSats":"Sats",")"),e.xp6(2),e.Oqu(t.paymentStatus.payment_route.total_fees_msat?t.paymentStatus.payment_route.total_fees_msat:t.paymentStatus.payment_route.total_fees?t.paymentStatus.payment_route.total_fees:0),e.xp6(5),e.Oqu(t.paymentStatus&&t.paymentStatus.payment_route&&t.paymentStatus.payment_route.hops&&t.paymentStatus.payment_route.hops.length?t.paymentStatus.payment_route.hops.length:0)}}const jo=function(n,i){return{"dot-primary":n,"dot-primary-lighter":i}};function Ko(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"span",81),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw(2).onStepChanged(s)}),e._UZ(1,"p",82),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw(2);e.xp6(1),e.Q6J("ngClass",e.WLB(1,jo,a.stepNumber===t,a.stepNumber!==t))}}function es(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",83),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).onStepChanged(4)}),e._uU(1,"Back"),e.qZA()}}function ts(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",84),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.flgShowInfo=!1,o.stepNumber=1}),e._uU(1,"Close"),e.qZA()}}function ns(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",85),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.flgShowInfo=!1,o.stepNumber=1}),e._uU(1,"Close"),e.qZA()}}function as(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",86),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.onStepChanged(o.stepNumber-1)}),e._uU(1,"Back"),e.qZA()}}function is(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.onStepChanged(o.stepNumber+1)}),e._uU(1,"Next"),e.qZA()}}const os=function(){return[1,2,3,4,5]};function ss(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",65),e.TgZ(1,"div",66),e.TgZ(2,"mat-card-header",67),e.TgZ(3,"div",68),e._UZ(4,"span",9),e.qZA(),e.TgZ(5,"div",69),e.TgZ(6,"button",70),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return o.flgShowInfo=!1,o.stepNumber=1}),e._uU(7,"X"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",71),e.TgZ(9,"rtl-channel-rebalance-infographics",72),e.NdJ("stepNumberChange",function(o){return e.CHM(t),e.oxw().stepNumber=o}),e.qZA(),e.qZA(),e.TgZ(10,"div",73),e.YNc(11,Ko,2,4,"span",74),e.qZA(),e.TgZ(12,"div",75),e.YNc(13,es,2,0,"button",76),e.YNc(14,ts,2,0,"button",77),e.YNc(15,ns,2,0,"button",78),e.YNc(16,as,2,0,"button",79),e.YNc(17,is,2,0,"button",80),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("@opacityAnimation",void 0),e.xp6(9),e.Q6J("stepNumber",t.stepNumber)("animationDirection",t.animationDirection),e.xp6(2),e.Q6J("ngForOf",e.DdM(9,os)),e.xp6(2),e.Q6J("ngIf",5===t.stepNumber),e.xp6(1),e.Q6J("ngIf",5===t.stepNumber),e.xp6(1),e.Q6J("ngIf",t.stepNumber<5),e.xp6(1),e.Q6J("ngIf",t.stepNumber>1&&t.stepNumber<5),e.xp6(1),e.Q6J("ngIf",t.stepNumber<5)}}let ls=(()=>{class n{constructor(t,a,o,s,u,g,N,x){this.dialogRef=t,this.data=a,this.logger=o,this.store=s,this.actions=u,this.formBuilder=g,this.decimalPipe=N,this.commonService=x,this.faInfoCircle=Z.sqG,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=l.cu,this.animationDirection="forward",this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize();let t="",a="";this.selChannel=this.data.message.selChannel,this.activeChannels=this.data.message.channels.filter(o=>o.active&&o.chan_id!==this.selChannel.chan_id&&o.remote_balance>0),this.activeChannels=this.activeChannels.sort((o,s)=>(t=o.remote_alias?o.remote_alias.toLowerCase():o.chan_id?o.chan_id.toLowerCase():"",a=s.remote_alias?s.remote_alias.toLowerCase():o.chan_id.toLowerCase(),ta?1:0)),l.Vc.forEach((o,s)=>{s>0&&this.feeLimitTypes.push(o)}),this.inputFormGroup=this.formBuilder.group({hiddenAmount:["",[c.kI.required]],rebalanceAmount:["",[c.kI.required,c.kI.min(1),c.kI.max(this.selChannel.local_balance)]],selRebalancePeer:[null,c.kI.required]}),this.feeFormGroup=this.formBuilder.group({selFeeLimitType:[this.feeLimitTypes[0],c.kI.required],feeLimit:["",[c.kI.required,c.kI.min(0)]],hiddenFeeLimit:["",[c.kI.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.store.select(C.Ef).pipe((0,d.R)(this.unSubs[0])).subscribe(o=>{this.invoices=o.listInvoices,this.logger.info(o)}),this.actions.pipe((0,d.R)(this.unSubs[1]),(0,E.h)(o=>o.type===l.uR.SET_QUERY_ROUTES_LND||o.type===l.uR.SEND_PAYMENT_STATUS_LND||o.type===l.uR.NEWLY_SAVED_INVOICE_LND)).subscribe(o=>{o.type===l.uR.SET_QUERY_ROUTES_LND&&(this.queryRoute=o.payload),o.type===l.uR.SEND_PAYMENT_STATUS_LND&&(this.logger.info(o.payload),this.flgPaymentSent=!0,this.paymentStatus=o.payload,this.flgEditable=!0),o.type===l.uR.NEWLY_SAVED_INVOICE_LND&&(this.logger.info(o.payload),this.flgInvoiceGenerated=!0,this.sendPayment(o.payload.paymentRequest))}),this.inputFormGroup.get("rebalanceAmount").valueChanges.pipe((0,d.R)(this.unSubs[2]),(0,Ce.O)(0)).subscribe(o=>{this.inputFormGroup.controls.selRebalancePeer.setValue(""),this.inputFormGroup.controls.selRebalancePeer.setErrors(null),this.filteredActiveChannels=(0,Ze.of)(o?this.filterActiveChannels():this.activeChannels.slice())}),this.inputFormGroup.get("selRebalancePeer").valueChanges.pipe((0,d.R)(this.unSubs[3]),(0,Ce.O)("")).subscribe(o=>{"string"==typeof o&&(this.filteredActiveChannels=(0,Ze.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(t){switch(t.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"}t.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 t=this.findUnsettledInvoice();t?(this.flgReusingInvoice=!0,this.sendPayment(t.payment_request)):this.store.dispatch((0,b.Rd)({payload:{uiMessage:l.m6.NO_SPINNER,memo:"Local-Rebalance-"+this.inputFormGroup.controls.rebalanceAmount.value+"-Sats",invoiceValue:this.inputFormGroup.controls.rebalanceAmount.value,private:!1,expiry:3600,pageSize:l.IV,openModal:!1}}))}findUnsettledInvoice(){return this.invoices.invoices.find(t=>(0==+t.settle_date||!t.settle_date)&&t.memo==="Local-Rebalance-"+this.inputFormGroup.controls.rebalanceAmount.value+"-Sats"&&"CANCELED"!==t.state)}sendPayment(t){this.flgInvoiceGenerated=!0,this.paymentRequest=t,this.store.dispatch((0,b.oV)("percent"===this.feeFormGroup.controls.selFeeLimitType.value.id&&+this.feeFormGroup.controls.feeLimit.value%1!=0?{payload:{uiMessage:l.m6.NO_SPINNER,paymentReq:t,outgoingChannel:this.selChannel,feeLimitType:"fixed",feeLimit:Math.ceil(+this.feeFormGroup.controls.feeLimit.value*+this.inputFormGroup.controls.rebalanceAmount.value/100),allowSelfPayment:!0,lastHopPubkey:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey,fromDialog:!0}}:{payload:{uiMessage:l.m6.NO_SPINNER,paymentReq:t,outgoingChannel:this.selChannel,feeLimitType:this.feeFormGroup.controls.selFeeLimitType.value.id,feeLimit:this.feeFormGroup.controls.feeLimit.value,allowSelfPayment:!0,lastHopPubkey:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey,fromDialog:!0}}))}filterActiveChannels(){return this.activeChannels.filter(t=>t.remote_balance>=this.inputFormGroup.controls.rebalanceAmount.value&&t.chan_id!==this.selChannel.chan_id&&(0===t.remote_alias.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():"")||0===t.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 t=this.activeChannels.filter(a=>a.remote_alias.length===this.inputFormGroup.controls.selRebalancePeer.value.length&&0===a.remote_alias.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():""));t&&t.length>0?(this.inputFormGroup.controls.selRebalancePeer.setValue(t[0]),this.inputFormGroup.controls.selRebalancePeer.setErrors(null)):this.inputFormGroup.controls.selRebalancePeer.setErrors({notfound:!0})}}displayFn(t){return t&&t.remote_alias?t.remote_alias:t&&t.chan_id?t.chan_id:""}showInfo(){this.flgShowInfo=!0}onStepChanged(t){this.animationDirection=t{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(F.mQ),e.Y36(w.yh),e.Y36(G.eX),e.Y36(c.qu),e.Y36(p.JJ),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-rebalance"]],viewQuery:function(t,a){if(1&t&&e.Gf(qo,5),2&t){let o;e.iGM(o=e.CRH())&&(a.stepper=o.first)}},decls:8,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["paymentStatusBlock",""],["paymentFailedBlock",""],["paymentSuccessfulBlock",""],["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,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["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","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","selectionChange"],["stepper",""],[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"],["fxFlex","48"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","rebalanceAmount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxFlex","48","fxLayoutAlign","start end"],["type","text","placeholder","Receive from Peer","aria-label","Receive from Peer","matInput","","formControlName","selRebalancePeer","tabindex","2","required","",3,"matAutocomplete","change"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[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","Placeholder","Fee Limits","required",""],["matInput","","formControlName","feeLimit","type","number","tabindex","7","required","",3,"placeholder","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"],["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"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["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"],["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(t,a){1&t&&(e.YNc(0,Go,97,49,"div",0),e.YNc(1,Wo,1,1,"ng-template",null,1,e.W1O),e.YNc(3,Xo,3,1,"ng-template",null,2,e.W1O),e.YNc(5,$o,19,4,"ng-template",null,3,e.W1O),e.YNc(7,ss,18,10,"div",4)),2&t&&(e.Q6J("ngIf",!a.flgShowInfo),e.xp6(7),e.Q6J("ngIf",a.flgShowInfo))},directives:[p.O5,_.xw,_.yH,_.Wh,T.dk,L.lW,T.dn,M.BN,B.Vq,B.C0,c._Y,c.JL,c.sg,B.VY,f.KE,I.Nt,c.wV,c.Fj,W.h,c.JJ,c.u,c.Q7,f.bx,f.R9,ne.ZL,ne.XC,p.sg,R.gD,H.ib,H.yz,H.yK,J.ZT,f.TO,Y.ey,K.Hw,P.pW,p.tP,z.d,wo,p.mk,q.oO],pipes:[p.rS,p.Ov],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[ye._]}}),n})();function rs(n,i){if(1&n&&(e.TgZ(0,"div",16),e.TgZ(1,"p",17),e.TgZ(2,"mat-icon",18),e._uU(3,"close"),e.qZA(),e._uU(4),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(4),e.Oqu(t.errorMsg)}}function cs(n,i){if(1&n&&(e.TgZ(0,"div",27),e._UZ(1,"fa-icon",28),e.TgZ(2,"span"),e._uU(3,"Priority/Fee for force closing inactive channels cannot be modified."),e.qZA(),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("icon",t.faInfoCircle)}}function us(n,i){if(1&n&&(e.TgZ(0,"mat-option",29),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t.id),e.xp6(1),e.hij(" ",t.name," ")}}function ps(n,i){1&n&&(e.TgZ(0,"mat-form-field",30),e._UZ(1,"input",31),e.qZA())}function ms(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Number of blocks is required."),e.qZA())}function _s(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",32),e.TgZ(1,"input",33,34),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw(2).blocks=o}),e.qZA(),e.YNc(3,ms,2,0,"mat-error",35),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngModel",t.blocks)("step",1)("min",0),e.xp6(2),e.Q6J("ngIf",!t.blocks)}}function ds(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Fees is required."),e.qZA())}function hs(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",32),e.TgZ(1,"input",36,37),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw(2).fees=o}),e.qZA(),e.YNc(3,ds,2,0,"mat-error",35),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngModel",t.fees)("step",1)("min",0),e.xp6(2),e.Q6J("ngIf",!t.fees)}}function gs(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",19),e.YNc(1,cs,4,1,"div",20),e.TgZ(2,"div",21),e.TgZ(3,"mat-form-field",22),e.TgZ(4,"mat-select",23),e.NdJ("valueChange",function(o){return e.CHM(t),e.oxw().selTransType=o}),e.YNc(5,us,2,2,"mat-option",24),e.qZA(),e.qZA(),e.YNc(6,ps,2,0,"mat-form-field",25),e.YNc(7,_s,4,4,"mat-form-field",26),e.YNc(8,hs,4,4,"mat-form-field",26),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.channelToClose.active),e.xp6(3),e.Q6J("value",t.selTransType)("disabled",!t.channelToClose.active),e.xp6(1),e.Q6J("ngForOf",t.transTypes),e.xp6(1),e.Q6J("ngIf","0"===t.selTransType),e.xp6(1),e.Q6J("ngIf","1"===t.selTransType),e.xp6(1),e.Q6J("ngIf","2"===t.selTransType)}}function fs(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",38),e.NdJ("click",function(){return e.CHM(t),e.oxw().resetData()}),e._uU(1,"Clear"),e.qZA()}}function Cs(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",39),e.NdJ("click",function(){return e.CHM(t),e.oxw().onCloseChannel()}),e._uU(1),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.channelToClose.active?"Close Channel":"Force Close")}}function xs(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",40),e.NdJ("click",function(){return e.CHM(t),e.oxw().onClose()}),e._uU(1,"Ok"),e.qZA()}}let Zs=(()=>{class n{constructor(t,a,o,s,u){this.dialogRef=t,this.data=a,this.store=o,this.actions=s,this.logger=u,this.transTypes=l.Dr,this.selTransType="0",this.blocks=null,this.fees=null,this.faExclamationTriangle=Z.eHv,this.faInfoCircle=Z.sqG,this.flgPendingHtlcs=!1,this.errorMsg="Please wait for pending HTLCs to settle before attempting channel closure.",this.unSubs=[new m.x,new m.x]}ngOnInit(){this.channelToClose=this.data.channel,this.actions.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(t=>t.type===l.uR.UPDATE_API_CALL_STATUS_LND||t.type===l.uR.SET_CHANNELS_LND)).subscribe(t=>{if(t.type===l.uR.SET_CHANNELS_LND){const a=t.payload.find(o=>o.chan_id===this.data.channel.chan_id);a&&a.pending_htlcs&&a.pending_htlcs.length&&a.pending_htlcs.length>0&&(this.flgPendingHtlcs=!0)}t.type===l.uR.UPDATE_API_CALL_STATUS_LND&&t.payload.status===l.Bn.ERROR&&"FetchAllChannels"===t.payload.action&&this.logger.error("Fetching latest channel information failed!\n"+t.payload.message)})}onCloseChannel(){if("1"===this.selTransType&&(!this.blocks||0===this.blocks)||"2"===this.selTransType&&(!this.fees||0===this.fees))return!0;const t={channelPoint:this.channelToClose.channel_point,forcibly:!this.channelToClose.active};this.blocks&&(t.targetConf=this.blocks),this.fees&&(t.satPerByte=this.fees),this.store.dispatch((0,b.BL)({payload:t})),this.dialogRef.close(!1)}resetData(){this.selTransType="0",this.blocks=null,this.fees=null}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(w.yh),e.Y36(G.eX),e.Y36(F.mQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-close-channel"]],decls:19,vars:7,consts:[["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","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","tabindex","3","default","",3,"click",4,"ngIf"],["mat-button","","color","primary","type","submit","tabindex","4",3,"click",4,"ngIf"],["mat-button","","color","primary","type","submit","tabindex","5",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 center"],["fxFlex.gt-sm","48"],["tabindex","1",3,"value","disabled","valueChange"],[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"],[3,"value"],["fxFlex","48"],["matInput","","placeholder","Default","disabled",""],["fxFlex.gt-sm","48","fxLayoutAlign","start end"],["matInput","","placeholder","Number of Blocks","type","number","name","blocks","required","","tabindex","2",3,"ngModel","step","min","ngModelChange"],["blcks","ngModel"],[4,"ngIf"],["matInput","","placeholder","Fees (Sats/vByte)","type","number","name","ccfees","required","","tabindex","3",3,"ngModel","step","min","ngModelChange"],["clchfee","ngModel"],["mat-button","","color","primary","type","reset","tabindex","3","default","",1,"mr-1",3,"click"],["mat-button","","color","primary","type","submit","tabindex","4",3,"click"],["mat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e.NdJ("click",function(){return a.onClose()}),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.TgZ(9,"form",7),e.TgZ(10,"div",8),e.TgZ(11,"p",9),e._uU(12),e.qZA(),e.YNc(13,rs,5,1,"div",10),e.YNc(14,gs,9,7,"div",11),e.qZA(),e.TgZ(15,"div",12),e.YNc(16,fs,2,0,"button",13),e.YNc(17,Cs,2,1,"button",14),e.YNc(18,xs,2,0,"button",15),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Oqu(a.channelToClose.active?"Close Channel":"Force Close Channel"),e.xp6(7),e.hij("",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.xp6(1),e.Q6J("ngIf",a.flgPendingHtlcs),e.xp6(1),e.Q6J("ngIf",!a.flgPendingHtlcs),e.xp6(2),e.Q6J("ngIf",a.channelToClose.active&&!a.flgPendingHtlcs),e.xp6(1),e.Q6J("ngIf",!a.flgPendingHtlcs),e.xp6(1),e.Q6J("ngIf",a.flgPendingHtlcs))},directives:[_.xw,_.yH,T.dk,_.Wh,L.lW,T.dn,c._Y,c.JL,c.F,p.O5,K.Hw,f.KE,R.gD,p.sg,M.BN,Y.ey,I.Nt,c.wV,c.qQ,c.Fj,$.q,c.Q7,c.JJ,c.On,f.TO],styles:[""]}),n})();function ys(n,i){1&n&&e._UZ(0,"mat-progress-bar",30)}function Ts(n,i){1&n&&(e.TgZ(0,"th",31),e._uU(1," Peer "),e.qZA())}function bs(n,i){1&n&&e._UZ(0,"span",39)}function As(n,i){1&n&&e._UZ(0,"span",40)}function vs(n,i){if(1&n&&(e.TgZ(0,"span",41),e._UZ(1,"fa-icon",42),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("icon",t.faEyeSlash)}}function ws(n,i){if(1&n&&(e.TgZ(0,"span",43),e._UZ(1,"fa-icon",42),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("icon",t.faEye)}}const qs=function(n){return{"max-width":n}};function Ss(n,i){if(1&n&&(e.TgZ(0,"td",32),e.TgZ(1,"div",33),e.YNc(2,bs,1,0,"span",34),e.YNc(3,As,1,0,"span",35),e.YNc(4,vs,2,1,"span",36),e.YNc(5,ws,2,1,"span",37),e.TgZ(6,"span",38),e._uU(7),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(6,qs,a.screenSize===a.screenSizeEnum.XS?"10rem":a.screenSize===a.screenSizeEnum.MD?"15rem":"22rem")),e.xp6(1),e.Q6J("ngIf",t.active),e.xp6(1),e.Q6J("ngIf",!t.active),e.xp6(1),e.Q6J("ngIf",t.private),e.xp6(1),e.Q6J("ngIf",!t.private),e.xp6(2),e.Oqu(t.remote_alias||t.remote_pubkey)}}function Ls(n,i){if(1&n&&(e.TgZ(0,"th",44),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("Uptime (",t.timeUnit,")")}}function ks(n,i){if(1&n&&(e.TgZ(0,"td",32),e.TgZ(1,"span",45),e._uU(2),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij("",t.uptime_str," ")}}function Fs(n,i){1&n&&(e.TgZ(0,"th",44),e._uU(1,"Sats Sent "),e.qZA())}function Us(n,i){if(1&n&&(e.TgZ(0,"td",32),e.TgZ(1,"span",45),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij("",e.lcZ(3,1,t.total_satoshis_sent)," ")}}function Ns(n,i){1&n&&(e.TgZ(0,"th",44),e._uU(1,"Sats Received "),e.qZA())}function Os(n,i){if(1&n&&(e.TgZ(0,"td",32),e.TgZ(1,"span",45),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij("",e.lcZ(3,1,t.total_satoshis_received)," ")}}function Rs(n,i){1&n&&(e.TgZ(0,"th",44),e._uU(1,"Local Balance (Sats) "),e.qZA())}function Is(n,i){if(1&n&&(e.TgZ(0,"td",32),e.TgZ(1,"span",45),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij("",e.lcZ(3,1,t.local_balance)," ")}}function Ms(n,i){1&n&&(e.TgZ(0,"th",44),e._uU(1,"Remote Balance (Sats) "),e.qZA())}function Ds(n,i){if(1&n&&(e.TgZ(0,"td",32),e.TgZ(1,"span",45),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij("",e.lcZ(3,1,t.remote_balance)," ")}}function Ps(n,i){1&n&&(e.TgZ(0,"th",46),e._uU(1,"Balance Score "),e.qZA())}function Js(n,i){if(1&n&&(e.TgZ(0,"td",47),e.TgZ(1,"div",48),e.TgZ(2,"mat-hint",49),e._uU(3),e.ALo(4,"number"),e.qZA(),e.qZA(),e._UZ(5,"mat-progress-bar",50),e.qZA()),2&n){const t=i.$implicit;e.xp6(3),e.Oqu(e.lcZ(4,2,t.balancedness||0)),e.xp6(2),e.s9C("value",t.local_balance&&t.local_balance>0?+t.local_balance/(+t.local_balance+ +t.remote_balance)*100:0)}}function Es(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",51),e.TgZ(1,"div",52),e.TgZ(2,"mat-select",53),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",54),e.NdJ("click",function(){return e.CHM(t),e.oxw().onChannelUpdate("all")}),e._uU(5,"Update Fee Policy"),e.qZA(),e.TgZ(6,"mat-option",54),e.NdJ("click",function(){return e.CHM(t),e.oxw().onDownloadCSV()}),e._uU(7,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Qs(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-option",54),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit;return e.oxw().onCircularRebalance(o)}),e._uU(1,"Circular Rebalance"),e.qZA()}}function Ys(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-option",54),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit;return e.oxw().onLoopOut(o)}),e._uU(1,"Loop Out"),e.qZA()}}function Hs(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",55),e.TgZ(1,"div",52),e.TgZ(2,"mat-select",56),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",54),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw().onChannelClick(u,o)}),e._uU(5,"View Info"),e.qZA(),e.TgZ(6,"mat-option",54),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onViewRemotePolicy(s)}),e._uU(7,"View Remote Fee "),e.qZA(),e.TgZ(8,"mat-option",54),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onChannelUpdate(s)}),e._uU(9,"Update Fee Policy"),e.qZA(),e.YNc(10,Qs,2,0,"mat-option",57),e.YNc(11,Ys,2,0,"mat-option",57),e.TgZ(12,"mat-option",54),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onChannelClose(s)}),e._uU(13,"Close Channel"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(10),e.Q6J("ngIf",+t.versionsArr[0]>0||+t.versionsArr[1]>=9),e.xp6(1),e.Q6J("ngIf",t.selNode.swapServerUrl)}}function Bs(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No peers connected. Add a peer in order to open a channel."),e.qZA())}function Vs(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No channel available."),e.qZA())}function Gs(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting channels..."),e.qZA())}function zs(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function Ws(n,i){if(1&n&&(e.TgZ(0,"td",58),e.YNc(1,Bs,2,0,"p",59),e.YNc(2,Vs,2,0,"p",59),e.YNc(3,Gs,2,0,"p",59),e.YNc(4,zs,2,1,"p",59),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.numPeers<1&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",t.numPeers>0&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const Xs=function(n){return{"display-none":n}};function $s(n,i){if(1&n&&e._UZ(0,"tr",60),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Xs,t.numPeers>0&&(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function js(n,i){1&n&&e._UZ(0,"tr",61)}function Ks(n,i){1&n&&e._UZ(0,"tr",62)}const el=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},tl=function(){return["no_peer"]};let nl=(()=>{class n{constructor(t,a,o,s,u,g,N,x){var U,re,ve,we;this.logger=t,this.store=a,this.lndEffects=o,this.commonService=s,this.rtlEffects=u,this.decimalPipe=g,this.loopService=N,this.router=x,this.timeUnit="mins:secs",this.userPersonaEnum=l.ol,this.selNode={},this.totalBalance=0,this.displayedColumns=[],this.channelsData=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.selFilter="",this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.versionsArr=[],this.faEye=Z.Mdf,this.faEyeSlash=Z.Aq,this.targetConf=6,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["remote_alias","local_balance","remote_balance","actions"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["remote_alias","local_balance","remote_balance","balancedness","actions"]):(this.flgSticky=!0,this.displayedColumns=["remote_alias","uptime","total_satoshis_sent","total_satoshis_received","local_balance","remote_balance","balancedness","actions"]),this.selFilter=(null===(re=null===(U=this.router.getCurrentNavigation().extras)||void 0===U?void 0:U.state)||void 0===re?void 0:re.filter)?null===(we=null===(ve=this.router.getCurrentNavigation().extras)||void 0===ve?void 0:ve.state)||void 0===we?void 0:we.filter:""}ngOnInit(){this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.information=t,this.information&&this.information.version&&(this.versionsArr=this.information.version.split("."))}),this.store.select(C.Wi).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.numPeers=t.peers&&t.peers.length?t.peers.length:0}),this.store.select(C.qU).pipe((0,d.R)(this.unSubs[3])).subscribe(t=>{this.totalBalance=+t.blockchainBalance.total_balance}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[4])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.channelsData=this.calculateUptime(t.channels),this.channelsData.length>0&&this.loadChannelsTable(this.channelsData),this.logger.info(t)})}ngAfterViewInit(){this.channelsData.length>0&&this.loadChannelsTable(this.channelsData)}onViewRemotePolicy(t){this.store.dispatch((0,b.$A)({payload:{uiMessage:l.m6.GET_REMOTE_POLICY,channelID:t.chan_id.toString()+"/"+this.information.identity_pubkey}})),this.lndEffects.setLookup.pipe((0,V.q)(1)).subscribe(a=>{if(!a.fee_base_msat&&!a.fee_rate_milli_msat&&!a.time_lock_delta)return!1;const o=[[{key:"fee_base_msat",value:a.fee_base_msat,title:"Base Fees (mSats)",width:25,type:l.Gi.NUMBER},{key:"fee_rate_milli_msat",value:a.fee_rate_milli_msat,title:"Fee Rate (milli mSats)",width:25,type:l.Gi.NUMBER},{key:"fee_rate_milli_msat",value:a.fee_rate_milli_msat/1e4,title:"Fee Rate (%)",width:25,type:l.Gi.NUMBER,digitsInfo:"1.0-8"},{key:"time_lock_delta",value:a.time_lock_delta,title:"Time Lock Delta",width:25,type:l.Gi.NUMBER}]],s="Remote policy for Channel: "+(t.remote_alias||t.chan_id?t.remote_alias&&t.chan_id?t.remote_alias+" ("+t.chan_id+")":t.remote_alias?t.remote_alias:t.chan_id:t.channel_point);setTimeout(()=>{this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Remote Channel Policy",titleMessage:s,message:o}}}))},0)})}onCircularRebalance(t){this.store.dispatch((0,v.qR)({payload:{data:{message:{channels:this.channelsData,selChannel:t},component:ls}}}))}onChannelUpdate(t){"all"===t?(this.store.dispatch((0,v.c1)({payload:{data:{type:l.n_.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:l.Gi.NUMBER.toLowerCase(),inputValue:1e3,width:32},{placeholder:"Fee Rate (mili mSat)",inputType:l.Gi.NUMBER.toLowerCase(),inputValue:1,min:1,width:32,hintFunction:this.percentHintFunction},{placeholder:"Time Lock Delta",inputType:l.Gi.NUMBER.toLowerCase(),inputValue:40,width:32}]}}})),this.rtlEffects.closeConfirm.pipe((0,d.R)(this.unSubs[5])).subscribe(o=>{o&&this.store.dispatch((0,b.pW)({payload:{baseFeeMsat:o[0].inputValue,feeRate:o[1].inputValue,timeLockDelta:o[2].inputValue,chanPoint:"all"}}))})):(this.myChanPolicy={fee_base_msat:0,fee_rate_milli_msat:0,time_lock_delta:0},this.store.dispatch((0,b.$A)({payload:{uiMessage:l.m6.GET_CHAN_POLICY,channelID:t.chan_id.toString()}})),this.lndEffects.setLookup.pipe((0,V.q)(1)).subscribe(a=>{this.myChanPolicy=a.node1_pub===this.information.identity_pubkey?a.node1_policy:a.node2_pub===this.information.identity_pubkey?a.node2_policy:{fee_base_msat:0,fee_rate_milli_msat:0,time_lock_delta:0},this.logger.info(this.myChanPolicy);const o="Update fee policy for Channel: "+(t.remote_alias||t.chan_id?t.remote_alias&&t.chan_id?t.remote_alias+" ("+t.chan_id+")":t.remote_alias?t.remote_alias:t.chan_id:t.channel_point),s=[];setTimeout(()=>{this.store.dispatch((0,v.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Update Fee Policy",titleMessage:o,noBtnText:"Cancel",yesBtnText:"Update Channel",message:s,flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSat)",inputType:l.Gi.NUMBER.toLowerCase(),inputValue:""===this.myChanPolicy.fee_base_msat?0:this.myChanPolicy.fee_base_msat,width:32},{placeholder:"Fee Rate (mili mSat)",inputType:l.Gi.NUMBER.toLowerCase(),inputValue:this.myChanPolicy.fee_rate_milli_msat,min:1,width:32,hintFunction:this.percentHintFunction},{placeholder:"Time Lock Delta",inputType:l.Gi.NUMBER.toLowerCase(),inputValue:this.myChanPolicy.time_lock_delta,width:32}]}}}))},0)}),this.rtlEffects.closeConfirm.pipe((0,d.R)(this.unSubs[6])).subscribe(a=>{a&&this.store.dispatch((0,b.pW)({payload:{baseFeeMsat:a[0].inputValue,feeRate:a[1].inputValue,timeLockDelta:a[2].inputValue,chanPoint:t.channel_point}}))})),this.applyFilter()}onChannelClose(t){t.active&&this.store.dispatch((0,b.UR)()),this.store.dispatch((0,v.qR)({payload:{data:{channel:t,component:Zs}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}onChannelClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{channel:t,showCopy:!0,component:xe}}}))}loadChannelsTable(t){t.sort((a,o)=>a.active===o.active?0:o.active?1:-1),this.channels=new r.by([...t]),this.channels.filterPredicate=(a,o)=>((a.active?"active":"inactive")+(a.chan_id?a.chan_id.toLowerCase():"")+(a.remote_pubkey?a.remote_pubkey.toLowerCase():"")+(a.remote_alias?a.remote_alias.toLowerCase():"")+(a.capacity?a.capacity:"")+(a.local_balance?a.local_balance:"")+(a.remote_balance?a.remote_balance:"")+(a.total_satoshis_sent?a.total_satoshis_sent:"")+(a.total_satoshis_received?a.total_satoshis_received:"")+(a.commit_fee?a.commit_fee:"")+(a.private?"private":"public")).includes(o),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.channels.paginator=this.paginator,this.applyFilter(),this.logger.info(this.channels)}calculateUptime(t){let g=60,N=1,x=0;switch(t.forEach(U=>{U.uptime&&+U.uptime>x&&(x=+U.uptime)}),!0){case x<3600:this.timeUnit="Mins:Secs",g=60,N=1;break;case x>=3600&&x<86400:this.timeUnit="Hrs:Mins",g=3600,N=60;break;case x>=86400&&x<31536e3:this.timeUnit="Days:Hrs",g=86400,N=3600;break;case x>31536e3:this.timeUnit="Yrs:Days",g=31536e3,N=86400;break;default:this.timeUnit="Mins:Secs",g=60,N=1}return t.forEach(U=>{U.uptime_str=U.uptime?this.decimalPipe.transform(Math.floor(+U.uptime/g),"2.0-0")+":"+this.decimalPipe.transform(Math.round(+U.uptime%g/N),"2.0-0"):"---"}),t}onLoopOut(t){this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,d.R)(this.unSubs[7])).subscribe(a=>{this.store.dispatch((0,v.qR)({payload:{minHeight:"56rem",data:{channel:t,minQuote:a[0],maxQuote:a[1],direction:l.$I.LOOP_OUT,component:Oe.a}}}))})}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"Open-channels")}percentHintFunction(t){return(t/1e4).toString()+"%"}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(ee.l),e.Y36(O.v),e.Y36(oe.V),e.Y36(p.JJ),e.Y36(Re.W),e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-open-table"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Channels")}])],decls:39,vars:14,consts:[["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","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","remote_alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","uptime"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","total_satoshis_sent"],["matColumnDef","total_satoshis_received"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","balancedness"],["mat-header-cell","","mat-sort-header","","class","pl-2",4,"matHeaderCellDef"],["mat-cell","","class","pl-2",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pl-1",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["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"],["class","dot green","matTooltip","Active","matTooltipPosition","right",4,"ngIf"],["class","dot yellow","matTooltip","Inactive","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Active","matTooltipPosition","right",1,"dot","green"],["matTooltip","Inactive","matTooltipPosition","right",1,"dot","yellow"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-2"],["mat-cell","",1,"pl-2"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell","",1,"pl-1"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-1"],["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(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"div",2),e.TgZ(3,"mat-form-field",3),e.TgZ(4,"input",4),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",5),e.YNc(6,ys,1,0,"mat-progress-bar",6),e.TgZ(7,"table",7,8),e.ynx(9,9),e.YNc(10,Ts,2,0,"th",10),e.YNc(11,Ss,8,8,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,Ls,2,1,"th",13),e.YNc(14,ks,3,1,"td",11),e.BQk(),e.ynx(15,14),e.YNc(16,Fs,2,0,"th",13),e.YNc(17,Us,4,3,"td",11),e.BQk(),e.ynx(18,15),e.YNc(19,Ns,2,0,"th",13),e.YNc(20,Os,4,3,"td",11),e.BQk(),e.ynx(21,16),e.YNc(22,Rs,2,0,"th",13),e.YNc(23,Is,4,3,"td",11),e.BQk(),e.ynx(24,17),e.YNc(25,Ms,2,0,"th",13),e.YNc(26,Ds,4,3,"td",11),e.BQk(),e.ynx(27,18),e.YNc(28,Ps,2,0,"th",19),e.YNc(29,Js,6,4,"td",20),e.BQk(),e.ynx(30,21),e.YNc(31,Es,8,0,"th",22),e.YNc(32,Hs,14,2,"td",23),e.BQk(),e.ynx(33,24),e.YNc(34,Ws,5,4,"td",25),e.BQk(),e.YNc(35,$s,1,3,"tr",26),e.YNc(36,js,1,0,"tr",27),e.YNc(37,Ks,1,0,"tr",28),e.qZA(),e.qZA(),e._UZ(38,"mat-paginator",29),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngModel",a.selFilter),e.xp6(2),e.Q6J("ngIf",(null==a.apiCallStatus?null:a.apiCallStatus.status)===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.channels)("ngClass",e.VKq(11,el,""!==a.errorMessage)),e.xp6(28),e.Q6J("matFooterRowDef",e.DdM(13,tl)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,_.Wh,_.yH,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,p.O5,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,X.gM,M.BN,f.bx,R.gD,R.$L,Y.ey,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-remote_alias[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-remote_alias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-balancedness[_ngcontent-%COMP%]{flex:0 0 20%;width:20%}@media only screen and (max-width: 75em){.mat-column-balancedness[_ngcontent-%COMP%]{flex:0 0 35%;width:35%}}@media only screen and (max-width: 56.25em){.mat-column-balancedness[_ngcontent-%COMP%]{flex:0 0 25%;width:25%}}.mat-column-uptime[_ngcontent-%COMP%], .mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%]{flex:1 1 10%;width:10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media only screen and (max-width: 75em){.mat-column-uptime[_ngcontent-%COMP%], .mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%]{white-space:unset;flex:1 1 25%;width:25%}}@media only screen and (max-width: 56.25em){.mat-column-uptime[_ngcontent-%COMP%], .mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}}@media only screen and (max-width: 37.5em){.mat-column-uptime[_ngcontent-%COMP%], .mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%]{white-space:unset}}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 100%}@media only screen and (max-width: 56.25em){.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 90%}}@media only screen and (max-width: 37.5em){.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 80%}}"]}),n})();const al=["outputIdx"];function il(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Index for change output is required."),e.qZA())}function ol(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Invalid index value."),e.qZA())}function sl(n,i){if(1&n&&(e.TgZ(0,"mat-option",29),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t.id),e.xp6(1),e.hij(" ",t.name," ")}}function ll(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Number of blocks is required."),e.qZA())}function rl(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",17),e.TgZ(1,"input",30,31),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().blocks=o}),e.qZA(),e.YNc(3,ll,2,0,"mat-error",20),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngModel",t.blocks)("step",1)("min",0),e.xp6(2),e.Q6J("ngIf",!t.blocks)}}function cl(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Fees is required."),e.qZA())}function ul(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",17),e.TgZ(1,"input",32,33),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().fees=o}),e.qZA(),e.YNc(3,cl,2,0,"mat-error",20),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngModel",t.fees)("step",1)("min",0),e.xp6(2),e.Q6J("ngIf",!t.fees)}}function pl(n,i){if(1&n&&(e.TgZ(0,"div",34),e._UZ(1,"fa-icon",13),e.TgZ(2,"span"),e._uU(3),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(2),e.Oqu(t.bumpFeeError)}}let ml=(()=>{class n{constructor(t,a,o,s,u){this.dialogRef=t,this.data=a,this.logger=o,this.dataService=s,this.snackBar=u,this.transTypes=[...l.Dr],this.selTransType="2",this.blocks=null,this.fees=null,this.outputIndex=null,this.faCopy=Z.kZ_,this.faInfoCircle=Z.sqG,this.faExclamationTriangle=Z.eHv,this.bumpFeeError="",this.unSubs=[new m.x,new m.x]}set payReq(t){t&&(this.outputIdx=t)}ngOnInit(){this.transTypes=this.transTypes.splice(1),this.bumpFeeChannel=this.data.pendingChannel;const t=this.bumpFeeChannel.channel.channel_point.split(":")||[];this.bumpFeeChannel.channel.txid_str=t[0]||(this.bumpFeeChannel.channel&&this.bumpFeeChannel.channel.channel_point?this.bumpFeeChannel.channel.channel_point:""),this.bumpFeeChannel.channel.output_index=+t[1]||null}onBumpFee(){return this.outputIndex===this.bumpFeeChannel.channel.output_index?(this.outputIdx.control.setErrors({pendingChannelOutputIndex:!0}),!0):!this.outputIndex&&0!==this.outputIndex||!("1"!==this.selTransType||this.blocks&&0!==this.blocks)||!("2"!==this.selTransType||this.fees&&0!==this.fees)||void this.dataService.bumpFee(this.bumpFeeChannel.channel.txid_str,this.outputIndex,this.blocks,this.fees).pipe((0,d.R)(this.unSubs[0])).subscribe({next:t=>{this.dialogRef.close(!1)},error:t=>{this.logger.error(t),this.bumpFeeError=t.message?t.message:t}})}onCopyID(t){this.snackBar.open("Transaction ID copied.")}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(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(F.mQ),e.Y36(j.D),e.Y36(te.ux))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-bump-fee"]],viewQuery:function(t,a){if(1&t&&e.Gf(al,5),2&t){let o;e.iGM(o=e.CRH())&&(a.payReq=o.first)}},decls:48,vars:15,consts:[["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","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"],["matSuffix","","rtlClipboard","","matTooltip","Copy transaction ID",1,"ml-1",3,"icon","payload","copied"],["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"],[1,"pl-1"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex.gt-sm","32","fxLayoutAlign","start end"],["matInput","","placeholder","Index for Change Output","type","number","tabindex","1","required","","name","outputIdx",3,"ngModel","step","min","ngModelChange"],["outputIdx","ngModel"],[4,"ngIf"],["fxFlex.gt-sm","32"],["tabindex","2",3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["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","tabindex","5","default","",1,"mr-1",3,"click"],["mat-button","","color","primary","type","submit","tabindex","6",3,"click"],[3,"value"],["matInput","","placeholder","Number of Blocks","type","number","name","blocks","required","","tabindex","3",3,"ngModel","step","min","ngModelChange"],["blcks","ngModel"],["matInput","","placeholder","Fees (Sats/vByte)","type","number","name","fees","required","","tabindex","4",3,"ngModel","step","min","ngModelChange"],["fee","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"]],template:function(t,a){if(1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5,"Bump Fee"),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e.NdJ("click",function(){return a.onClose()}),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.TgZ(9,"form",7),e.TgZ(10,"div",8),e.TgZ(11,"p",9),e._uU(12),e.TgZ(13,"fa-icon",10),e.NdJ("copied",function(s){return a.onCopyID(s)}),e.qZA(),e.qZA(),e.TgZ(14,"div",11),e.TgZ(15,"div",12),e._UZ(16,"fa-icon",13),e.TgZ(17,"span",14),e._uU(18,"Bumping fee on pending open channels is an advanced feature, attempt it only if you are familiar with the functionality of Bitcoin transactions. "),e.TgZ(19,"div"),e._uU(20,"Before attempting fee bump ensure the following:"),e.qZA(),e.TgZ(21,"div",15),e._uU(22,"1: Use a Bitcoin block explorer to ensure that channel opening transaction is not confirmed."),e.qZA(),e.TgZ(23,"div",15),e._uU(24,"2: The channel opening transaction must have a sizable change output, which can be spent further. The fee cannot be bumped without the change output."),e.qZA(),e.TgZ(25,"div",15),e._uU(26,"3: Find the index value of the change output via a block explorer."),e.qZA(),e.TgZ(27,"div",15),e._uU(28,"4: Enter the index value of the change output in the form below and the desired fee rate."),e.qZA(),e.TgZ(29,"div",15),e._uU(30,"5: Upon successful fee bump, use your block explorer to track the child transaction in the mempool, which should be linked with the change output transaction."),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"div",16),e.TgZ(32,"mat-form-field",17),e.TgZ(33,"input",18,19),e.NdJ("ngModelChange",function(s){return a.outputIndex=s}),e.qZA(),e.YNc(35,il,2,0,"mat-error",20),e.YNc(36,ol,2,0,"mat-error",20),e.qZA(),e.TgZ(37,"mat-form-field",21),e.TgZ(38,"mat-select",22),e.NdJ("valueChange",function(s){return a.selTransType=s})("selectionChange",function(){return a.blocks=null,a.fees=null}),e.YNc(39,sl,2,2,"mat-option",23),e.qZA(),e.qZA(),e.YNc(40,rl,4,4,"mat-form-field",24),e.YNc(41,ul,4,4,"mat-form-field",24),e.qZA(),e.YNc(42,pl,4,2,"div",25),e.qZA(),e.qZA(),e.TgZ(43,"div",26),e.TgZ(44,"button",27),e.NdJ("click",function(){return a.resetData()}),e._uU(45,"Clear"),e.qZA(),e.TgZ(46,"button",28),e.NdJ("click",function(){return a.onBumpFee()}),e._uU(47),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t){const o=e.MAs(34);e.xp6(12),e.hij("Bump fee for channel point: ",null==a.bumpFeeChannel||null==a.bumpFeeChannel.channel?null:a.bumpFeeChannel.channel.channel_point," "),e.xp6(1),e.Q6J("icon",a.faCopy)("payload",null==a.bumpFeeChannel||null==a.bumpFeeChannel.channel?null:a.bumpFeeChannel.channel.txid_str),e.xp6(3),e.Q6J("icon",a.faInfoCircle),e.xp6(17),e.Q6J("ngModel",a.outputIndex)("step",1)("min",0),e.xp6(2),e.Q6J("ngIf",null==o.errors?null:o.errors.required),e.xp6(1),e.Q6J("ngIf",null==o.errors?null:o.errors.pendingChannelOutputIndex),e.xp6(2),e.Q6J("value",a.selTransType),e.xp6(1),e.Q6J("ngForOf",a.transTypes),e.xp6(1),e.Q6J("ngIf","1"===a.selTransType),e.xp6(1),e.Q6J("ngIf","2"===a.selTransType),e.xp6(1),e.Q6J("ngIf",""!==a.bumpFeeError),e.xp6(5),e.Oqu(""!==a.bumpFeeError?"Retry Bump Fee":"Bump Fee")}},directives:[_.xw,_.yH,T.dk,_.Wh,L.lW,T.dn,c._Y,c.JL,c.F,M.BN,f.R9,se.y,X.gM,f.KE,I.Nt,c.wV,c.qQ,c.Fj,$.q,c.Q7,c.JJ,c.On,p.O5,R.gD,p.sg,f.TO,Y.ey],styles:[""]}),n})();function _l(n,i){1&n&&e._UZ(0,"mat-progress-bar",36)}function dl(n,i){1&n&&e._UZ(0,"mat-progress-bar",36)}function hl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",37),e._uU(1," Peer "),e.qZA())}const me=function(n){return{"max-width":n}};function gl(n,i){if(1&n&&(e.TgZ(0,"mat-cell",38),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,me,a.screenSize===a.screenSizeEnum.XS?"10rem":"30rem")),e.xp6(1),e.Oqu(t.channel.remote_alias)}}function fl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1,"Commit Fee (Sats) "),e.qZA())}function Cl(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.commit_fee))}}function xl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1,"Commit Weight "),e.qZA())}function Zl(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.commit_weight))}}function yl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1,"Capacity (Sats)"),e.qZA())}function Tl(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.capacity))}}function bl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",41),e._uU(1,"Actions"),e.qZA())}function Al(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-cell",42),e.TgZ(1,"div",43),e.TgZ(2,"mat-select",44),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",45),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onOpenClick(s)}),e._uU(5,"View Info"),e.qZA(),e.TgZ(6,"mat-option",45),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onBumpFee(s)}),e._uU(7,"Bump Fee"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function vl(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No pending channel."),e.qZA())}function wl(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting pending channels..."),e.qZA())}function ql(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function Sl(n,i){if(1&n&&(e.TgZ(0,"td",46),e.YNc(1,vl,2,0,"p",47),e.YNc(2,wl,2,0,"p",47),e.YNc(3,ql,2,1,"p",47),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!t.pendingOpenChannels||!(null!=t.pendingOpenChannels&&t.pendingOpenChannels.data)||(null==t.pendingOpenChannels||null==t.pendingOpenChannels.data?null:t.pendingOpenChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!t.pendingOpenChannels||!(null!=t.pendingOpenChannels&&t.pendingOpenChannels.data)||(null==t.pendingOpenChannels||null==t.pendingOpenChannels.data?null:t.pendingOpenChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!t.pendingOpenChannels||!(null!=t.pendingOpenChannels&&t.pendingOpenChannels.data)||(null==t.pendingOpenChannels||null==t.pendingOpenChannels.data?null:t.pendingOpenChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Te=function(n){return{"display-none":n}};function Ll(n,i){if(1&n&&e._UZ(0,"tr",48),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Te,t.pendingOpenChannels&&(null==t.pendingOpenChannels?null:t.pendingOpenChannels.data)&&(null==t.pendingOpenChannels||null==t.pendingOpenChannels.data?null:t.pendingOpenChannels.data.length)>0))}}function kl(n,i){1&n&&e._UZ(0,"mat-header-row")}function Fl(n,i){1&n&&e._UZ(0,"mat-row",49)}function Ul(n,i){1&n&&e._UZ(0,"mat-progress-bar",36)}function Nl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",37),e._uU(1," Peer "),e.qZA())}function Ol(n,i){if(1&n&&(e.TgZ(0,"mat-cell",38),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,me,a.screenSize===a.screenSizeEnum.XS?"10rem":"30rem")),e.xp6(1),e.Oqu(t.channel.remote_alias)}}function Rl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1,"Recovered Balance (Sats) "),e.qZA())}function Il(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.recovered_balance))}}function Ml(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1,"Limbo Balance (Sats) "),e.qZA())}function Dl(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.limbo_balance))}}function Pl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1,"Capacity (Sats) "),e.qZA())}function Jl(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.capacity))}}function El(n,i){1&n&&(e.TgZ(0,"mat-header-cell",50),e._uU(1,"Actions"),e.qZA())}function Ql(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-cell",51),e.TgZ(1,"button",52),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onForceClosingClick(s)}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function Yl(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No pending channel."),e.qZA())}function Hl(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting pending channels..."),e.qZA())}function Bl(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function Vl(n,i){if(1&n&&(e.TgZ(0,"td",46),e.YNc(1,Yl,2,0,"p",47),e.YNc(2,Hl,2,0,"p",47),e.YNc(3,Bl,2,1,"p",47),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!t.pendingForceClosingChannels||!(null!=t.pendingForceClosingChannels&&t.pendingForceClosingChannels.data)||(null==t.pendingForceClosingChannels||null==t.pendingForceClosingChannels.data?null:t.pendingForceClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!t.pendingForceClosingChannels||!(null!=t.pendingForceClosingChannels&&t.pendingForceClosingChannels.data)||(null==t.pendingForceClosingChannels||null==t.pendingForceClosingChannels.data?null:t.pendingForceClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!t.pendingForceClosingChannels||!(null!=t.pendingForceClosingChannels&&t.pendingForceClosingChannels.data)||(null==t.pendingForceClosingChannels||null==t.pendingForceClosingChannels.data?null:t.pendingForceClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}function Gl(n,i){if(1&n&&e._UZ(0,"tr",48),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Te,t.pendingForceClosingChannels&&(null==t.pendingForceClosingChannels?null:t.pendingForceClosingChannels.data)&&(null==t.pendingForceClosingChannels||null==t.pendingForceClosingChannels.data?null:t.pendingForceClosingChannels.data.length)>0))}}function zl(n,i){1&n&&e._UZ(0,"mat-header-row")}function Wl(n,i){1&n&&e._UZ(0,"mat-row",49)}function Xl(n,i){1&n&&e._UZ(0,"mat-progress-bar",36)}function $l(n,i){1&n&&(e.TgZ(0,"mat-header-cell",53),e._uU(1," Peer "),e.qZA())}function jl(n,i){if(1&n&&(e.TgZ(0,"mat-cell",54),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,me,a.screenSize===a.screenSizeEnum.XS?"10rem":"30rem")),e.xp6(1),e.Oqu(t.channel.remote_alias)}}function Kl(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1," Local Balance (Sats) "),e.qZA())}function er(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.local_balance))}}function tr(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1," Remote Balance (Sats) "),e.qZA())}function nr(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.remote_balance))}}function ar(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1," Capacity (Sats) "),e.qZA())}function ir(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.capacity))}}function or(n,i){1&n&&(e.TgZ(0,"mat-header-cell",50),e._uU(1,"Actions"),e.qZA())}function sr(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-cell",51),e.TgZ(1,"button",55),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onClosingClick(s)}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function lr(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No pending channel."),e.qZA())}function rr(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting pending channels..."),e.qZA())}function cr(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function ur(n,i){if(1&n&&(e.TgZ(0,"td",46),e.YNc(1,lr,2,0,"p",47),e.YNc(2,rr,2,0,"p",47),e.YNc(3,cr,2,1,"p",47),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!t.pendingClosingChannels||!(null!=t.pendingClosingChannels&&t.pendingClosingChannels.data)||(null==t.pendingClosingChannels||null==t.pendingClosingChannels.data?null:t.pendingClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!t.pendingClosingChannels||!(null!=t.pendingClosingChannels&&t.pendingClosingChannels.data)||(null==t.pendingClosingChannels||null==t.pendingClosingChannels.data?null:t.pendingClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!t.pendingClosingChannels||!(null!=t.pendingClosingChannels&&t.pendingClosingChannels.data)||(null==t.pendingClosingChannels||null==t.pendingClosingChannels.data?null:t.pendingClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}function pr(n,i){if(1&n&&e._UZ(0,"tr",48),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Te,t.pendingClosingChannels&&(null==t.pendingClosingChannels?null:t.pendingClosingChannels.data)&&(null==t.pendingClosingChannels||null==t.pendingClosingChannels.data?null:t.pendingClosingChannels.data.length)>0))}}function mr(n,i){1&n&&e._UZ(0,"mat-header-row")}function _r(n,i){1&n&&e._UZ(0,"mat-row",49)}function dr(n,i){1&n&&e._UZ(0,"mat-progress-bar",36)}function hr(n,i){1&n&&(e.TgZ(0,"mat-header-cell",53),e._uU(1," Peer "),e.qZA())}function gr(n,i){if(1&n&&(e.TgZ(0,"mat-cell",54),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,me,a.screenSize===a.screenSizeEnum.XS?"10rem":"30rem")),e.xp6(1),e.Oqu(t.channel.remote_alias)}}function fr(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1," Limbo Balance (Sats) "),e.qZA())}function Cr(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij("",e.lcZ(2,1,t.limbo_balance)," ")}}function xr(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1," Local Balance (Sats) "),e.qZA())}function Zr(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.local_balance))}}function yr(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1," Remote Balance (Sats) "),e.qZA())}function Tr(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.remote_balance))}}function br(n,i){1&n&&(e.TgZ(0,"mat-header-cell",39),e._uU(1," Capacity (Sats) "),e.qZA())}function Ar(n,i){if(1&n&&(e.TgZ(0,"mat-cell",40),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.channel.capacity))}}function vr(n,i){1&n&&(e.TgZ(0,"mat-header-cell",50),e._uU(1,"Actions"),e.qZA())}function wr(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-cell",51),e.TgZ(1,"button",56),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onWaitClosingClick(s)}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function qr(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No pending channel."),e.qZA())}function Sr(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting pending channels..."),e.qZA())}function Lr(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function kr(n,i){if(1&n&&(e.TgZ(0,"td",46),e.YNc(1,qr,2,0,"p",47),e.YNc(2,Sr,2,0,"p",47),e.YNc(3,Lr,2,1,"p",47),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!t.pendingWaitClosingChannels||!(null!=t.pendingWaitClosingChannels&&t.pendingWaitClosingChannels.data)||(null==t.pendingWaitClosingChannels||null==t.pendingWaitClosingChannels.data?null:t.pendingWaitClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!t.pendingWaitClosingChannels||!(null!=t.pendingWaitClosingChannels&&t.pendingWaitClosingChannels.data)||(null==t.pendingWaitClosingChannels||null==t.pendingWaitClosingChannels.data?null:t.pendingWaitClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!t.pendingWaitClosingChannels||!(null!=t.pendingWaitClosingChannels&&t.pendingWaitClosingChannels.data)||(null==t.pendingWaitClosingChannels||null==t.pendingWaitClosingChannels.data?null:t.pendingWaitClosingChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Fr=function(n){return{"py-0":!0,"display-none":n}};function Ur(n,i){if(1&n&&e._UZ(0,"tr",48),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Fr,t.pendingWaitClosingChannels&&(null==t.pendingWaitClosingChannels?null:t.pendingWaitClosingChannels.data)&&(null==t.pendingWaitClosingChannels||null==t.pendingWaitClosingChannels.data?null:t.pendingWaitClosingChannels.data.length)>0))}}function Nr(n,i){1&n&&e._UZ(0,"mat-header-row")}function Or(n,i){1&n&&e._UZ(0,"mat-row",49)}const _e=function(n){return{"error-border bordered-box":n,"bordered-box":!0}},Rr=function(){return["no_pending_open"]},Ir=function(){return["no_pending_force_closing"]},Mr=function(){return["no_pending_closing"]},Dr=function(){return["no_pending_wait_closing"]};let Pr=(()=>{class n{constructor(t,a,o){this.logger=t,this.store=a,this.commonService=o,this.selNode={},this.selectedFilter="",this.information={},this.pendingChannels={},this.displayedOpenColumns=["remote_alias","commit_fee","commit_weight","capacity","actions"],this.pendingOpenChannelsLength=0,this.displayedForceClosingColumns=["remote_alias","recovered_balance","limbo_balance","capacity","actions"],this.pendingForceClosingChannelsLength=0,this.displayedClosingColumns=["remote_alias","local_balance","remote_balance","capacity","actions"],this.pendingClosingChannelsLength=0,this.displayedWaitClosingColumns=["remote_alias","limbo_balance","local_balance","remote_balance","actions"],this.pendingWaitClosingChannelsLength=0,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.displayedOpenColumns=["remote_alias","actions"],this.displayedForceClosingColumns=["remote_alias","actions"],this.displayedClosingColumns=["remote_alias","actions"],this.displayedWaitClosingColumns=["remote_alias","actions"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.displayedOpenColumns=["remote_alias","commit_fee","actions"],this.displayedForceClosingColumns=["remote_alias","limbo_balance","actions"],this.displayedClosingColumns=["remote_alias","remote_balance","actions"],this.displayedWaitClosingColumns=["remote_alias","limbo_balance","actions"]):(this.displayedOpenColumns=["remote_alias","commit_fee","commit_weight","capacity","actions"],this.displayedForceClosingColumns=["remote_alias","recovered_balance","limbo_balance","capacity","actions"],this.displayedClosingColumns=["remote_alias","local_balance","remote_balance","capacity","actions"],this.displayedWaitClosingColumns=["remote_alias","limbo_balance","local_balance","remote_balance","actions"])}ngOnInit(){this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(C.ni).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.pendingChannels=t.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(t)})}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(t){const a=JSON.parse(JSON.stringify(t,["commit_weight","confirmation_height","fee_per_kw","commit_fee"],2)),o=JSON.parse(JSON.stringify(t.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),s={};Object.assign(s,a,o),this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Opening Channel Information",message:[[{key:"channel_point",value:s.channel_point,title:"Channel Point",width:100,type:l.Gi.STRING}],[{key:"remote_node_pub",value:s.remote_node_pub,title:"Peer Node Pubkey",width:100,type:l.Gi.STRING}],[{key:"remote_alias",value:s.remote_alias,title:"Peer Alias",width:100,type:l.Gi.STRING}],[{key:"capacity",value:s.capacity,title:"Capacity",width:25,type:l.Gi.NUMBER},{key:"confirmation_height",value:s.confirmation_height,title:"Confirmation Height",width:25,type:l.Gi.NUMBER},{key:"local_balance",value:s.local_balance,title:"Local Balance",width:25,type:l.Gi.NUMBER},{key:"remote_balance",value:s.remote_balance,title:"Remote Balance",width:25,type:l.Gi.NUMBER}],[{key:"fee_per_kw",value:s.fee_per_kw,title:"Fee/KW",width:25,type:l.Gi.NUMBER},{key:"commit_weight",value:s.commit_weight,title:"Commit Weight",width:25,type:l.Gi.NUMBER},{key:"commit_fee",value:s.commit_fee,title:"Commit Fee",width:50,type:l.Gi.NUMBER}]]}}}))}onBumpFee(t){this.store.dispatch((0,v.qR)({payload:{data:{pendingChannel:t,component:ml}}}))}onForceClosingClick(t){const a=JSON.parse(JSON.stringify(t,["closing_txid","limbo_balance","maturity_height","blocks_til_maturity","recovered_balance"],2)),o=JSON.parse(JSON.stringify(t.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),s={};Object.assign(s,a,o),this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Force Closing Channel Information",message:[[{key:"closing_txid",value:s.closing_txid,title:"Closing Transaction ID",width:100,type:l.Gi.STRING}],[{key:"channel_point",value:s.channel_point,title:"Channel Point",width:100,type:l.Gi.STRING}],[{key:"remote_alias",value:s.remote_alias,title:"Peer Alias",width:25,type:l.Gi.STRING},{key:"remote_node_pub",value:s.remote_node_pub,title:"Peer Node Pubkey",width:75,type:l.Gi.STRING}],[{key:"capacity",value:s.capacity,title:"Capacity",width:25,type:l.Gi.NUMBER},{key:"limbo_balance",value:s.limbo_balance,title:"Limbo Balance",width:25,type:l.Gi.NUMBER},{key:"local_balance",value:s.local_balance,title:"Local Balance",width:25,type:l.Gi.NUMBER},{key:"remote_balance",value:s.remote_balance,title:"Remote Balance",width:25,type:l.Gi.NUMBER}],[{key:"maturity_height",value:s.maturity_height,title:"Maturity Height",width:25,type:l.Gi.NUMBER},{key:"blocks_til_maturity",value:s.blocks_til_maturity,title:"Blocks Till Maturity",width:25,type:l.Gi.NUMBER},{key:"recovered_balance",value:s.recovered_balance,title:"Recovered Balance",width:50,type:l.Gi.NUMBER}]]}}}))}onClosingClick(t){const a=JSON.parse(JSON.stringify(t,["closing_txid"],2)),o=JSON.parse(JSON.stringify(t.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),s={};Object.assign(s,a,o),this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Closing Channel Information",message:[[{key:"closing_txid",value:s.closing_txid,title:"Closing Transaction ID",width:50,type:l.Gi.STRING}],[{key:"channel_point",value:s.channel_point,title:"Channel Point",width:100,type:l.Gi.STRING}],[{key:"remote_alias",value:s.remote_alias,title:"Peer Alias",width:25,type:l.Gi.STRING},{key:"remote_node_pub",value:s.remote_node_pub,title:"Peer Node Pubkey",width:75,type:l.Gi.STRING}],[{key:"capacity",value:s.capacity,title:"Capacity",width:25,type:l.Gi.NUMBER},{key:"local_balance",value:s.local_balance,title:"Local Balance",width:25,type:l.Gi.NUMBER},{key:"remote_balance",value:s.remote_balance,title:"Remote Balance",width:50,type:l.Gi.NUMBER}]]}}}))}onWaitClosingClick(t){const a=JSON.parse(JSON.stringify(t,["limbo_balance"],2)),o=JSON.parse(JSON.stringify(t.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),s=JSON.parse(JSON.stringify(t.commitments,["local_txid"],2)),u={};Object.assign(u,a,o,s),this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Wait Closing Channel Information",message:[[{key:"local_txid",value:u.local_txid,title:"Transaction ID",width:100,type:l.Gi.STRING}],[{key:"channel_point",value:u.channel_point,title:"Channel Point",width:100,type:l.Gi.STRING}],[{key:"remote_alias",value:u.remote_alias,title:"Peer Alias",width:25,type:l.Gi.STRING},{key:"remote_node_pub",value:u.remote_node_pub,title:"Peer Node Pubkey",width:75,type:l.Gi.STRING}],[{key:"capacity",value:u.capacity,title:"Capacity",width:25,type:l.Gi.NUMBER},{key:"limbo_balance",value:u.limbo_balance,title:"Limbo Balance",width:25,type:l.Gi.NUMBER},{key:"local_balance",value:u.local_balance,title:"Local Balance",width:25,type:l.Gi.NUMBER},{key:"remote_balance",value:u.remote_balance,title:"Remote Balance",width:25,type:l.Gi.NUMBER}]]}}}))}loadOpenChannelsTable(t){t.sort((a,o)=>a.active===o.active?0:o.active?-1:1),this.pendingOpenChannelsLength=t.length?t.length:0,this.pendingOpenChannels=new r.by([...t]),this.pendingOpenChannels.sort=this.sort,this.pendingOpenChannels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.pendingOpenChannels.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.logger.info(this.pendingOpenChannels)}loadForceClosingChannelsTable(t){t.sort((a,o)=>a.active===o.active?0:o.active?-1:1),this.pendingForceClosingChannelsLength=t.length?t.length:0,this.pendingForceClosingChannels=new r.by([...t]),this.pendingForceClosingChannels.sort=this.sort,this.pendingForceClosingChannels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.pendingForceClosingChannels.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.logger.info(this.pendingForceClosingChannels)}loadClosingChannelsTable(t){t.sort((a,o)=>a.active===o.active?0:o.active?-1:1),this.pendingClosingChannelsLength=t.length?t.length:0,this.pendingClosingChannels=new r.by([...t]),this.pendingClosingChannels.sort=this.sort,this.pendingClosingChannels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.pendingClosingChannels.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.logger.info(this.pendingClosingChannels)}loadWaitClosingChannelsTable(t){t.sort((a,o)=>a.active===o.active?0:o.active?-1:1),this.pendingWaitClosingChannelsLength=t.length?t.length:0,this.pendingWaitClosingChannels=new r.by([...t]),this.pendingWaitClosingChannels.sort=this.sort,this.pendingWaitClosingChannels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.pendingWaitClosingChannels.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.logger.info(this.pendingWaitClosingChannels)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-pending-table"]],viewQuery:function(t,a){if(1&t&&e.Gf(A.YE,5),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first)}},decls:121,vars:44,consts:[["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","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","remote_alias"],["mat-sort-header","",4,"matHeaderCellDef"],[3,"ngStyle",4,"matCellDef"],["matColumnDef","commit_fee"],["fxLayoutAlign","end center","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","commit_weight"],["matColumnDef","capacity"],["matColumnDef","actions"],["fxLayoutAlign","end center","class","pl-3 pr-4",4,"matHeaderCellDef"],["fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_pending_open"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","","fxLayoutAlign","start center",3,"ngClass",4,"matFooterRowDef"],[4,"matHeaderRowDef"],["fxLayoutAlign","stretch stretch",4,"matRowDef","matRowDefColumns"],["mat-table","","matSort","",3,"dataSource","ngClass"],["matColumnDef","recovered_balance"],["matColumnDef","limbo_balance"],["fxLayoutAlign","end center","class","pl-4 pr-3",4,"matHeaderCellDef"],["fxLayoutAlign","end center","class","pl-4",4,"matCellDef"],["matColumnDef","no_pending_force_closing"],["class","pl-2","mat-sort-header","",4,"matHeaderCellDef"],["class","pl-2",3,"ngStyle",4,"matCellDef"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","no_pending_closing"],["matColumnDef","no_pending_wait_closing"],["mode","indeterminate"],["mat-sort-header",""],[3,"ngStyle"],["fxLayoutAlign","end center","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",1,"pl-3","pr-4"],["fxLayoutAlign","end center",1,"px-3"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","","fxLayoutAlign","start center",3,"ngClass"],["fxLayoutAlign","stretch stretch"],["fxLayoutAlign","end center",1,"pl-4","pr-3"],["fxLayoutAlign","end center",1,"pl-4"],["mat-stroked-button","","color","primary","type","button","tabindex","2",3,"click"],["mat-sort-header","",1,"pl-2"],[1,"pl-2",3,"ngStyle"],["mat-stroked-button","","color","primary","type","button","tabindex","3",3,"click"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"span",1),e._uU(2),e.ALo(3,"number"),e.qZA(),e.TgZ(4,"mat-accordion",2),e.YNc(5,_l,1,0,"mat-progress-bar",3),e.TgZ(6,"mat-expansion-panel",4),e.TgZ(7,"mat-expansion-panel-header"),e.TgZ(8,"mat-panel-title"),e._uU(9),e.qZA(),e.qZA(),e.TgZ(10,"div",5),e.YNc(11,dl,1,0,"mat-progress-bar",3),e.TgZ(12,"table",6,7),e.ynx(14,8),e.YNc(15,hl,2,0,"mat-header-cell",9),e.YNc(16,gl,2,4,"mat-cell",10),e.BQk(),e.ynx(17,11),e.YNc(18,fl,2,0,"mat-header-cell",12),e.YNc(19,Cl,3,3,"mat-cell",13),e.BQk(),e.ynx(20,14),e.YNc(21,xl,2,0,"mat-header-cell",12),e.YNc(22,Zl,3,3,"mat-cell",13),e.BQk(),e.ynx(23,15),e.YNc(24,yl,2,0,"mat-header-cell",12),e.YNc(25,Tl,3,3,"mat-cell",13),e.BQk(),e.ynx(26,16),e.YNc(27,bl,2,0,"mat-header-cell",17),e.YNc(28,Al,8,0,"mat-cell",18),e.BQk(),e.ynx(29,19),e.YNc(30,Sl,4,3,"td",20),e.BQk(),e.YNc(31,Ll,1,3,"tr",21),e.YNc(32,kl,1,0,"mat-header-row",22),e.YNc(33,Fl,1,0,"mat-row",23),e.qZA(),e.qZA(),e.qZA(),e.YNc(34,Ul,1,0,"mat-progress-bar",3),e.TgZ(35,"mat-expansion-panel",4),e.TgZ(36,"mat-expansion-panel-header"),e.TgZ(37,"mat-panel-title"),e._uU(38),e.qZA(),e.qZA(),e.TgZ(39,"div",5),e.TgZ(40,"table",24,7),e.ynx(42,8),e.YNc(43,Nl,2,0,"mat-header-cell",9),e.YNc(44,Ol,2,4,"mat-cell",10),e.BQk(),e.ynx(45,25),e.YNc(46,Rl,2,0,"mat-header-cell",12),e.YNc(47,Il,3,3,"mat-cell",13),e.BQk(),e.ynx(48,26),e.YNc(49,Ml,2,0,"mat-header-cell",12),e.YNc(50,Dl,3,3,"mat-cell",13),e.BQk(),e.ynx(51,15),e.YNc(52,Pl,2,0,"mat-header-cell",12),e.YNc(53,Jl,3,3,"mat-cell",13),e.BQk(),e.ynx(54,16),e.YNc(55,El,2,0,"mat-header-cell",27),e.YNc(56,Ql,3,0,"mat-cell",28),e.BQk(),e.ynx(57,29),e.YNc(58,Vl,4,3,"td",20),e.BQk(),e.YNc(59,Gl,1,3,"tr",21),e.YNc(60,zl,1,0,"mat-header-row",22),e.YNc(61,Wl,1,0,"mat-row",23),e.qZA(),e.qZA(),e.qZA(),e.YNc(62,Xl,1,0,"mat-progress-bar",3),e.TgZ(63,"mat-expansion-panel",4),e.TgZ(64,"mat-expansion-panel-header"),e.TgZ(65,"mat-panel-title"),e._uU(66),e.qZA(),e.qZA(),e.TgZ(67,"div",5),e.TgZ(68,"table",24,7),e.ynx(70,8),e.YNc(71,$l,2,0,"mat-header-cell",30),e.YNc(72,jl,2,4,"mat-cell",31),e.BQk(),e.ynx(73,32),e.YNc(74,Kl,2,0,"mat-header-cell",12),e.YNc(75,er,3,3,"mat-cell",13),e.BQk(),e.ynx(76,33),e.YNc(77,tr,2,0,"mat-header-cell",12),e.YNc(78,nr,3,3,"mat-cell",13),e.BQk(),e.ynx(79,15),e.YNc(80,ar,2,0,"mat-header-cell",12),e.YNc(81,ir,3,3,"mat-cell",13),e.BQk(),e.ynx(82,16),e.YNc(83,or,2,0,"mat-header-cell",27),e.YNc(84,sr,3,0,"mat-cell",28),e.BQk(),e.ynx(85,34),e.YNc(86,ur,4,3,"td",20),e.BQk(),e.YNc(87,pr,1,3,"tr",21),e.YNc(88,mr,1,0,"mat-header-row",22),e.YNc(89,_r,1,0,"mat-row",23),e.qZA(),e.qZA(),e.qZA(),e.YNc(90,dr,1,0,"mat-progress-bar",3),e.TgZ(91,"mat-expansion-panel",4),e.TgZ(92,"mat-expansion-panel-header"),e.TgZ(93,"mat-panel-title"),e._uU(94),e.qZA(),e.qZA(),e.TgZ(95,"div",5),e.TgZ(96,"table",24,7),e.ynx(98,8),e.YNc(99,hr,2,0,"mat-header-cell",30),e.YNc(100,gr,2,4,"mat-cell",31),e.BQk(),e.ynx(101,26),e.YNc(102,fr,2,0,"mat-header-cell",12),e.YNc(103,Cr,3,3,"mat-cell",13),e.BQk(),e.ynx(104,32),e.YNc(105,xr,2,0,"mat-header-cell",12),e.YNc(106,Zr,3,3,"mat-cell",13),e.BQk(),e.ynx(107,33),e.YNc(108,yr,2,0,"mat-header-cell",12),e.YNc(109,Tr,3,3,"mat-cell",13),e.BQk(),e.ynx(110,15),e.YNc(111,br,2,0,"mat-header-cell",12),e.YNc(112,Ar,3,3,"mat-cell",13),e.BQk(),e.ynx(113,16),e.YNc(114,vr,2,0,"mat-header-cell",27),e.YNc(115,wr,3,0,"mat-cell",28),e.BQk(),e.ynx(116,35),e.YNc(117,kr,4,3,"td",20),e.BQk(),e.YNc(118,Ur,1,3,"tr",21),e.YNc(119,Nr,1,0,"mat-header-row",22),e.YNc(120,Or,1,0,"mat-row",23),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(2),e.hij("Total Limbo Balance: ",e.lcZ(3,30,a.pendingChannels.total_limbo_balance)," Sats"),e.xp6(3),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(4),e.hij("Pending Open (",a.pendingOpenChannelsLength,")"),e.xp6(2),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.pendingOpenChannels)("ngClass",e.VKq(32,_e,""!==a.errorMessage)),e.xp6(19),e.Q6J("matFooterRowDef",e.DdM(34,Rr)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedOpenColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedOpenColumns),e.xp6(1),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(4),e.hij("Pending Force Closing (",a.pendingForceClosingChannelsLength,")"),e.xp6(2),e.Q6J("dataSource",a.pendingForceClosingChannels)("ngClass",e.VKq(35,_e,""!==a.errorMessage)),e.xp6(19),e.Q6J("matFooterRowDef",e.DdM(37,Ir)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedForceClosingColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedForceClosingColumns),e.xp6(1),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(4),e.hij("Pending Closing (",a.pendingClosingChannelsLength,")"),e.xp6(2),e.Q6J("dataSource",a.pendingClosingChannels)("ngClass",e.VKq(38,_e,""!==a.errorMessage)),e.xp6(19),e.Q6J("matFooterRowDef",e.DdM(40,Mr)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedClosingColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedClosingColumns),e.xp6(1),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(4),e.hij("Waiting Close (",a.pendingWaitClosingChannelsLength,")"),e.xp6(2),e.Q6J("dataSource",a.pendingWaitClosingChannels)("ngClass",e.VKq(41,_e,""!==a.errorMessage)),e.xp6(22),e.Q6J("matFooterRowDef",e.DdM(43,Dr)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedWaitClosingColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedWaitClosingColumns))},directives:[_.xw,H.pp,p.O5,H.ib,H.yz,H.yK,_.Wh,_.yH,Q.$V,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,R.gD,R.$L,Y.ey,r.yh,r.Q2,r.XQ,r.Gk,L.lW],pipes:[p.JJ],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}tr.mat-footer-row[_ngcontent-%COMP%] td.mat-footer-cell[_ngcontent-%COMP%]{border-bottom:none}"]}),n})();function Jr(n,i){1&n&&e._UZ(0,"mat-progress-bar",27)}function Er(n,i){1&n&&(e.TgZ(0,"th",28),e._uU(1," Close Type "),e.qZA())}function Qr(n,i){if(1&n&&(e.TgZ(0,"td",29),e.TgZ(1,"div",30),e.TgZ(2,"mat-icon",31),e._uU(3,"info_outline"),e.qZA(),e._uU(4),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.xp6(2),e.Q6J("matTooltip",a.channelClosureType[t.close_type].tooltip),e.xp6(2),e.hij(" ",a.channelClosureType[t.close_type].name," ")}}function Yr(n,i){1&n&&(e.TgZ(0,"th",28),e._uU(1," Peer "),e.qZA())}const Hr=function(n){return{"max-width":n}};function Br(n,i){if(1&n&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,Hr,a.screenSize===a.screenSizeEnum.XS?"10rem":"20rem")),e.xp6(1),e.hij(" ",t.remote_alias," ")}}function Vr(n,i){1&n&&(e.TgZ(0,"th",33),e._uU(1," Capacity "),e.qZA())}function Gr(n,i){if(1&n&&(e.TgZ(0,"td",29),e.TgZ(1,"span",34),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,t.capacity)," ")}}function zr(n,i){1&n&&(e.TgZ(0,"th",33),e._uU(1," Close Height "),e.qZA())}function Wr(n,i){if(1&n&&(e.TgZ(0,"td",29),e.TgZ(1,"span",34),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,t.close_height)," ")}}function Xr(n,i){1&n&&(e.TgZ(0,"th",33),e._uU(1," Settled Balance "),e.qZA())}function $r(n,i){if(1&n&&(e.TgZ(0,"td",29),e.TgZ(1,"span",34),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,t.settled_balance)," ")}}function jr(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",35),e.TgZ(1,"div",36),e.TgZ(2,"mat-select",37),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",38),e.NdJ("click",function(){return e.CHM(t),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Kr(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",39),e.TgZ(1,"span",34),e.TgZ(2,"button",40),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw().onClosedChannelClick(u,o)}),e._uU(3,"View Info"),e.qZA(),e.qZA(),e.qZA()}}function ec(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No closed channel available."),e.qZA())}function tc(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting closed channels..."),e.qZA())}function nc(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function ac(n,i){if(1&n&&(e.TgZ(0,"td",41),e.YNc(1,ec,2,0,"p",42),e.YNc(2,tc,2,0,"p",42),e.YNc(3,nc,2,1,"p",42),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!(null!=t.closedChannels&&t.closedChannels.data)||(null==t.closedChannels||null==t.closedChannels.data?null:t.closedChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.closedChannels&&t.closedChannels.data)||(null==t.closedChannels||null==t.closedChannels.data?null:t.closedChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.closedChannels&&t.closedChannels.data)||(null==t.closedChannels||null==t.closedChannels.data?null:t.closedChannels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const ic=function(n){return{"display-none":n}};function oc(n,i){if(1&n&&e._UZ(0,"tr",43),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,ic,(null==t.closedChannels?null:t.closedChannels.data)&&(null==t.closedChannels||null==t.closedChannels.data?null:t.closedChannels.data.length)>0))}}function sc(n,i){1&n&&e._UZ(0,"tr",44)}function lc(n,i){1&n&&e._UZ(0,"tr",45)}const rc=function(n){return{"error-border":n,"overflow-auto":!0}},cc=function(){return["no_closed_channel"]};let uc=(()=>{class n{constructor(t,a,o){this.logger=t,this.store=a,this.commonService=o,this.channelClosureType=l.HW,this.faHistory=Z.qO$,this.displayedColumns=[],this.closedChannelsData=[],this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unsub=[new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["remote_alias","actions"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["close_type","remote_alias","settled_balance","actions"]):(this.flgSticky=!0,this.displayedColumns=["close_type","remote_alias","capacity","close_height","settled_balance","actions"])}ngOnInit(){this.store.select(C.P2).pipe((0,d.R)(this.unsub[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.closedChannelsData=t.closedChannels,this.closedChannelsData.length>0&&this.loadClosedChannelsTable(this.closedChannelsData),this.logger.info(t)})}ngAfterViewInit(){this.closedChannelsData.length>0&&this.loadClosedChannelsTable(this.closedChannelsData)}applyFilter(){this.closedChannels.filter=this.selFilter.trim().toLowerCase()}onClosedChannelClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Closed Channel Information",message:[[{key:"close_type",value:this.channelClosureType[t.close_type].name,title:"Close Type",width:30,type:l.Gi.STRING},{key:"settled_balance",value:t.settled_balance,title:"Settled Balance",width:30,type:l.Gi.NUMBER},{key:"time_locked_balance",value:t.time_locked_balance,title:"Time Locked Balance",width:40,type:l.Gi.NUMBER}],[{key:"chan_id",value:t.chan_id,title:"Channel ID",width:30},{key:"capacity",value:t.capacity,title:"Capacity",width:30,type:l.Gi.NUMBER},{key:"close_height",value:t.close_height,title:"Close Height",width:40,type:l.Gi.NUMBER}],[{key:"remote_alias",value:t.remote_alias,title:"Peer Alias",width:30},{key:"remote_pubkey",value:t.remote_pubkey,title:"Peer Public Key",width:70}],[{key:"channel_point",value:t.channel_point,title:"Channel Point",width:100}],[{key:"closing_tx_hash",value:t.closing_tx_hash,title:"Closing Transaction Hash",width:100,type:l.Gi.STRING}]]}}}))}loadClosedChannelsTable(t){this.closedChannels=new r.by([...t]),this.closedChannels.sort=this.sort,this.closedChannels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.closedChannels.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.closedChannels.paginator=this.paginator,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.unsub.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-closed-table"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Channels")}])],decls:33,vars:14,consts:[["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","close_type"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","remote_alias"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","capacity"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","close_height"],["matColumnDef","settled_balance"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1",4,"matCellDef"],["matColumnDef","no_closed_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayout","row","fxLayoutAlign","start center"],[1,"info-icon","info-icon-text",3,"matTooltip"],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"div",2),e.TgZ(3,"mat-form-field",3),e.TgZ(4,"input",4),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",5),e.YNc(6,Jr,1,0,"mat-progress-bar",6),e.TgZ(7,"table",7,8),e.ynx(9,9),e.YNc(10,Er,2,0,"th",10),e.YNc(11,Qr,5,2,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,Yr,2,0,"th",10),e.YNc(14,Br,2,4,"td",13),e.BQk(),e.ynx(15,14),e.YNc(16,Vr,2,0,"th",15),e.YNc(17,Gr,4,3,"td",11),e.BQk(),e.ynx(18,16),e.YNc(19,zr,2,0,"th",15),e.YNc(20,Wr,4,3,"td",11),e.BQk(),e.ynx(21,17),e.YNc(22,Xr,2,0,"th",15),e.YNc(23,$r,4,3,"td",11),e.BQk(),e.ynx(24,18),e.YNc(25,jr,6,0,"th",19),e.YNc(26,Kr,4,0,"td",20),e.BQk(),e.ynx(27,21),e.YNc(28,ac,4,3,"td",22),e.BQk(),e.YNc(29,oc,1,3,"tr",23),e.YNc(30,sc,1,0,"tr",24),e.YNc(31,lc,1,0,"tr",25),e.qZA(),e.qZA(),e._UZ(32,"mat-paginator",26),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngModel",a.selFilter),e.xp6(2),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.closedChannels)("ngClass",e.VKq(11,rc,""!==a.errorMessage)),e.xp6(22),e.Q6J("matFooterRowDef",e.DdM(13,cc)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,_.Wh,_.yH,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,p.O5,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,K.Hw,X.gM,p.PC,q.Zl,R.gD,R.$L,Y.ey,L.lW,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-close_type[_ngcontent-%COMP%]{flex:0 0 16%;min-width:5rem}.mat-column-remote_alias[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function pc(n,i){1&n&&e._UZ(0,"mat-progress-bar",27)}function mc(n,i){1&n&&(e.TgZ(0,"th",28),e._uU(1,"Amount (Sats)"),e.qZA())}function _c(n,i){if(1&n&&(e.TgZ(0,"span",33),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,null==t?null:t.amount)," ")}}function dc(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,_c,3,3,"span",32),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.pending_htlcs)}}function hc(n,i){if(1&n&&(e.TgZ(0,"td",29),e.TgZ(1,"span",30),e._uU(2),e.qZA(),e.YNc(3,dc,2,1,"span",31),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" Active HTLCs: ",null==t||null==t.pending_htlcs?null:t.pending_htlcs.length," "),e.xp6(1),e.Q6J("ngIf",t.is_expanded)}}function gc(n,i){1&n&&(e.TgZ(0,"th",28),e._uU(1,"Alias/Incoming"),e.qZA())}function fc(n,i){if(1&n&&(e.TgZ(0,"span",30),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",null!=t&&t.incoming?"Yes":"No"," ")}}function Cc(n,i){if(1&n&&(e.ynx(0),e.YNc(1,fc,2,1,"span",34),e.BQk()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.pending_htlcs)}}function xc(n,i){if(1&n&&(e.TgZ(0,"td",29),e.TgZ(1,"span",30),e._uU(2),e.qZA(),e.YNc(3,Cc,2,1,"ng-container",31),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(null==t?null:t.remote_alias),e.xp6(1),e.Q6J("ngIf",t.is_expanded)}}function Zc(n,i){1&n&&(e.TgZ(0,"th",35),e.TgZ(1,"span",36),e._uU(2,"Expiration Height"),e.qZA(),e.qZA())}function yc(n,i){if(1&n&&(e.TgZ(0,"span",36),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,null==t?null:t.expiration_height,"1.0-0")," ")}}function Tc(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,yc,3,4,"span",37),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.pending_htlcs)}}function bc(n,i){if(1&n&&(e.TgZ(0,"td",29),e.TgZ(1,"span",36),e._uU(2),e.qZA(),e.YNc(3,Tc,2,1,"span",31),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(" "),e.xp6(1),e.Q6J("ngIf",t.is_expanded)}}function Ac(n,i){1&n&&(e.TgZ(0,"th",38),e.TgZ(1,"span",36),e._uU(2,"Hash Lock"),e.qZA(),e.qZA())}function vc(n,i){if(1&n&&(e.TgZ(0,"span",36),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",null==t?null:t.hash_lock," ")}}function wc(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,vc,2,1,"span",37),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.pending_htlcs)}}function qc(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",36),e._uU(2),e.qZA(),e.YNc(3,wc,2,1,"span",31),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(" "),e.xp6(1),e.Q6J("ngIf",t.is_expanded)}}function Sc(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",40),e.TgZ(1,"div",41),e.TgZ(2,"mat-select",42),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",43),e.NdJ("click",function(){return e.CHM(t),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Lc(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",45),e.TgZ(1,"button",48),e.NdJ("click",function(){const s=e.CHM(t).$implicit,u=e.oxw(2).$implicit;return e.oxw().onHTLCClick(s,u)}),e._uU(2),e.qZA(),e.qZA()}if(2&n){const t=i.index;e.xp6(2),e.hij("View ",t+1,"")}}function kc(n,i){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,Lc,3,1,"div",47),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==t?null:t.pending_htlcs)}}function Fc(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",44),e.TgZ(1,"span",45),e.TgZ(2,"button",46),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return s.is_expanded=!s.is_expanded}),e._uU(3),e.qZA(),e.qZA(),e.YNc(4,kc,2,1,"div",31),e.qZA()}if(2&n){const t=i.$implicit;e.xp6(3),e.Oqu(t.is_expanded?"Hide":"Show"),e.xp6(1),e.Q6J("ngIf",t.is_expanded)}}function Uc(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No active htlc available."),e.qZA())}function Nc(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting active htlcs..."),e.qZA())}function Oc(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function Rc(n,i){if(1&n&&(e.TgZ(0,"td",49),e.YNc(1,Uc,2,0,"p",31),e.YNc(2,Nc,2,0,"p",31),e.YNc(3,Oc,2,1,"p",31),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Ic=function(n){return{"display-none":n}};function Mc(n,i){if(1&n&&e._UZ(0,"tr",50),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Ic,(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function Dc(n,i){1&n&&e._UZ(0,"tr",51)}function Pc(n,i){1&n&&e._UZ(0,"tr",52)}const Jc=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Ec=function(){return["no_channel"]};let Qc=(()=>{class n{constructor(t,a,o){this.logger=t,this.commonService=a,this.store=o,this.channelsJSONArr=[],this.displayedColumns=[],this.htlcColumns=[],this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["amount","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["amount","incoming","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["amount","incoming","expiration_height","actions"]):(this.flgSticky=!0,this.displayedColumns=["amount","incoming","expiration_height","hash_lock","actions"])}ngOnInit(){this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.channelsJSONArr=t.channels.filter(a=>a.pending_htlcs&&a.pending_htlcs.length>0)||[],this.loadHTLCsTable(this.channelsJSONArr),this.logger.info(t)})}ngAfterViewInit(){this.loadHTLCsTable(this.channelsJSONArr)}onHTLCClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"HTLC Information",message:[[{key:"remote_alias",value:a.remote_alias,title:"Alias",width:100,type:l.Gi.STRING}],[{key:"amount",value:t.amount,title:"Amount (Sats)",width:50,type:l.Gi.NUMBER},{key:"incoming",value:t.incoming?"Yes":"No",title:"Incoming",width:50,type:l.Gi.STRING}],[{key:"expiration_height",value:t.expiration_height,title:"Expiration Height",width:50,type:l.Gi.NUMBER},{key:"hash_lock",value:t.hash_lock,title:"Hash Lock",width:50,type:l.Gi.STRING}]]}}}))}onChannelClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{channel:t,showCopy:!0,component:xe}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}loadHTLCsTable(t){this.channels=new r.by(t?[...t]:[]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(a,o)=>{switch(o){case"amount":return this.commonService.sortByKey(a.pending_htlcs,o,"number",this.sort.direction),a.pending_htlcs&&a.pending_htlcs.length?a.pending_htlcs.length:null;case"incoming":return this.commonService.sortByKey(a.pending_htlcs,o,"boolean",this.sort.direction),a.remote_alias?a.remote_alias:a.remote_pubkey?a.remote_pubkey:null;case"expiration_height":case"hash_lock":return this.commonService.sortByKey(a.pending_htlcs,o,"number",this.sort.direction),a;default:return a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null}},this.channels.paginator=this.paginator,this.channels.filterPredicate=(a,o)=>((a.remote_alias?a.remote_alias.toLowerCase():"")+a.pending_htlcs.map(u=>JSON.stringify(u)+(u.incoming?"yes":"no"))).includes(o),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((o,s)=>o.concat(s.pending_htlcs?s.pending_htlcs:s),[])}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-active-htlcs-table"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("HTLCs")}])],decls:30,vars:14,consts:[["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","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","incoming"],["matColumnDef","expiration_height"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["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",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayoutAlign","start center",1,"htlc-row-span"],[4,"ngIf"],["fxLayoutAlign","start center","class","htlc-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"htlc-row-span","pl-3"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["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"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","",1,"px-2"],["fxLayoutAlign","end center"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["fxLayoutAlign","end center",4,"ngFor","ngForOf"],["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(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"div",2),e.TgZ(3,"mat-form-field",3),e.TgZ(4,"input",4),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",5),e.YNc(6,pc,1,0,"mat-progress-bar",6),e.TgZ(7,"table",7,8),e.ynx(9,9),e.YNc(10,mc,2,0,"th",10),e.YNc(11,hc,4,2,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,gc,2,0,"th",10),e.YNc(14,xc,4,2,"td",11),e.BQk(),e.ynx(15,13),e.YNc(16,Zc,3,0,"th",14),e.YNc(17,bc,4,2,"td",11),e.BQk(),e.ynx(18,15),e.YNc(19,Ac,3,0,"th",16),e.YNc(20,qc,4,2,"td",17),e.BQk(),e.ynx(21,18),e.YNc(22,Sc,6,0,"th",19),e.YNc(23,Fc,5,2,"td",20),e.BQk(),e.ynx(24,21),e.YNc(25,Rc,4,3,"td",22),e.BQk(),e.YNc(26,Mc,1,3,"tr",23),e.YNc(27,Dc,1,0,"tr",24),e.YNc(28,Pc,1,0,"tr",25),e.qZA(),e.qZA(),e._UZ(29,"mat-paginator",26),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngModel",a.selFilter),e.xp6(2),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.channels)("ngClass",e.VKq(11,Jc,""!==a.errorMessage)),e.xp6(19),e.Q6J("matFooterRowDef",e.DdM(13,Ec)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,_.Wh,_.yH,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,p.O5,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,p.sg,R.gD,R.$L,Y.ey,L.lW,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-amount[_ngcontent-%COMP%], .mat-column-expiration_height[_ngcontent-%COMP%]{flex:0 0 30%;width:30%}.mat-column-incoming[_ngcontent-%COMP%], .mat-column-hash_lock[_ngcontent-%COMP%]{flex:0 0 25%;width:25%;text-overflow:ellipsis}.htlc-row-span[_ngcontent-%COMP%]{min-height:4.2rem;place-content:center flex-start;align-items:center}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}"]}),n})();function Yc(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Wallet password is required."),e.qZA())}let Hc=(()=>{class n{constructor(t){this.store=t,this.walletPassword=""}ngOnInit(){this.walletPassword=""}onUnlockWallet(){if(!this.walletPassword)return!0;this.store.dispatch((0,b.xG)({payload:{pwd:window.btoa(this.walletPassword)}}))}resetData(){this.walletPassword=""}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-unlock-wallet"]],decls:12,vars:2,consts:[["fxLayout","column",1,"padding-gap","mb-2"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between"],["fxFlex","100","fxLayoutAlign","start"],["autoFocus","","matInput","","type","password","placeholder","Password","name","walletPassword","tabindex","1","required","",3,"ngModel","ngModelChange"],[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(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"form",1),e.TgZ(2,"mat-form-field",2),e.TgZ(3,"input",3),e.NdJ("ngModelChange",function(s){return a.walletPassword=s}),e.qZA(),e.TgZ(4,"mat-hint"),e._uU(5,"Enter Wallet Password"),e.qZA(),e.YNc(6,Yc,2,0,"mat-error",4),e.qZA(),e.TgZ(7,"div",5),e.TgZ(8,"button",6),e.NdJ("click",function(){return a.resetData()}),e._uU(9,"Clear Field"),e.qZA(),e.TgZ(10,"button",7),e.NdJ("click",function(){return a.onUnlockWallet()}),e._uU(11,"Unlock Wallet"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Q6J("ngModel",a.walletPassword),e.xp6(3),e.Q6J("ngIf",!a.walletPassword))},directives:[_.xw,c._Y,c.JL,c.F,_.Wh,f.KE,_.yH,I.Nt,c.Fj,W.h,c.Q7,c.JJ,c.On,f.bx,p.O5,L.lW,f.TO],styles:[""]}),n})();var Bc=h(1555);function Vc(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form",4),e.TgZ(2,"div",5),e._uU(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.qZA(),e.TgZ(4,"div",6),e.TgZ(5,"button",7),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return o.proceed=!1,o.warnRes=!0}),e._uU(6,"Do Not Proceed"),e.qZA(),e.TgZ(7,"button",8),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return o.proceed=!0,o.warnRes=!0}),e._uU(8,"Proceed"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Gc(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",9),e.TgZ(1,"div",10),e._uU(2,"Please re-configure & re-start RTL after securing your LND connction. You can close this window now."),e.qZA(),e.TgZ(3,"div",6),e.TgZ(4,"button",11),e.NdJ("click",function(){return e.CHM(t),e.oxw().warnRes=!1}),e._uU(5,"Go Back"),e.qZA(),e.qZA(),e.qZA()}}function zc(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}function Wc(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Password must be at least 8 characters in length."),e.qZA())}function Xc(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Confirm password is required."),e.qZA())}function $c(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Confirm password must be at least 8 characters in length."),e.qZA())}function jc(n,i){1&n&&(e.TgZ(0,"div",41),e.TgZ(1,"mat-icon",42),e._uU(2,"cancel"),e.qZA(),e._uU(3,"Passwords do not match. "),e.qZA())}function Kc(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Cipher seed is required."),e.qZA())}function e1(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Invalid Cipher. Enter comma separated 24 words cipher seed."),e.qZA())}function t1(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Passphrase is required."),e.qZA())}function n1(n,i){1&n&&(e.TgZ(0,"mat-icon"),e._uU(1,"vpn_key"),e.qZA())}function a1(n,i){1&n&&(e.TgZ(0,"mat-icon"),e._uU(1,"swap_calls"),e.qZA())}function i1(n,i){1&n&&(e.TgZ(0,"mat-icon"),e._uU(1,"fingerprint"),e.qZA())}function o1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-vertical-stepper",12,13),e.TgZ(2,"mat-step",14),e.TgZ(3,"form",15),e.TgZ(4,"mat-form-field",16),e._UZ(5,"input",17),e.TgZ(6,"mat-hint"),e._uU(7,"Enter Wallet Password"),e.qZA(),e.YNc(8,zc,2,0,"mat-error",1),e.YNc(9,Wc,2,0,"mat-error",1),e.qZA(),e.TgZ(10,"mat-form-field",16),e._UZ(11,"input",18),e.TgZ(12,"mat-hint"),e._uU(13,"Confirm Wallet Password"),e.qZA(),e.YNc(14,Xc,2,0,"mat-error",1),e.YNc(15,$c,2,0,"mat-error",1),e.qZA(),e.YNc(16,jc,4,0,"div",19),e.TgZ(17,"div",20),e.TgZ(18,"button",21),e._uU(19,"Next"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"mat-step",22),e.TgZ(21,"form",23),e.TgZ(22,"div",24),e.TgZ(23,"mat-slide-toggle",25),e._uU(24,"Existing Cipher"),e.qZA(),e.TgZ(25,"mat-form-field",26),e._UZ(26,"input",27),e.TgZ(27,"mat-hint"),e._uU(28,"Cipher Seed"),e.qZA(),e.YNc(29,Kc,2,0,"mat-error",1),e.YNc(30,e1,2,0,"mat-error",1),e.qZA(),e.qZA(),e.TgZ(31,"div",28),e.TgZ(32,"button",29),e._uU(33,"Back"),e.qZA(),e.TgZ(34,"button",30),e._uU(35,"Next"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"mat-step",31),e.TgZ(37,"form",23),e.TgZ(38,"div",24),e.TgZ(39,"mat-slide-toggle",32),e._uU(40,"Existing Passphrase"),e.qZA(),e.TgZ(41,"mat-form-field",33),e._UZ(42,"input",34),e.TgZ(43,"mat-hint"),e._uU(44,"Enter Passphrase"),e.qZA(),e.YNc(45,t1,2,0,"mat-error",1),e.qZA(),e.qZA(),e.TgZ(46,"div",28),e.TgZ(47,"button",35),e.NdJ("click",function(){return e.CHM(t),e.oxw().resetData()}),e._uU(48,"Clear"),e.qZA(),e.TgZ(49,"button",36),e._uU(50,"Back"),e.qZA(),e.TgZ(51,"button",37),e.NdJ("click",function(){return e.CHM(t),e.oxw().onInitWallet()}),e._uU(52,"Initialize Wallet"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(53,n1,2,0,"ng-template",38),e.YNc(54,a1,2,0,"ng-template",39),e.YNc(55,i1,2,0,"ng-template",40),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",t.passwordFormGroup),e.xp6(1),e.Q6J("formGroup",t.passwordFormGroup),e.xp6(5),e.Q6J("ngIf",null==t.passwordFormGroup.controls.initWalletPassword.errors?null:t.passwordFormGroup.controls.initWalletPassword.errors.required),e.xp6(1),e.Q6J("ngIf",null==t.passwordFormGroup.controls.initWalletPassword.errors?null:t.passwordFormGroup.controls.initWalletPassword.errors.minlength),e.xp6(5),e.Q6J("ngIf",null==t.passwordFormGroup.controls.initWalletConfirmPassword.errors?null:t.passwordFormGroup.controls.initWalletConfirmPassword.errors.required),e.xp6(1),e.Q6J("ngIf",null==t.passwordFormGroup.controls.initWalletConfirmPassword.errors?null:t.passwordFormGroup.controls.initWalletConfirmPassword.errors.minlength),e.xp6(1),e.Q6J("ngIf",(null==t.passwordFormGroup.errors?null:t.passwordFormGroup.errors.unmatchedPasswords)&&(t.passwordFormGroup.controls.initWalletPassword.touched||t.passwordFormGroup.controls.initWalletPassword.dirty)&&(t.passwordFormGroup.controls.initWalletConfirmPassword.touched||t.passwordFormGroup.controls.initWalletConfirmPassword.dirty)),e.xp6(4),e.Q6J("stepControl",t.cipherFormGroup),e.xp6(1),e.Q6J("formGroup",t.cipherFormGroup),e.xp6(2),e.Q6J("labelPosition","before"),e.xp6(6),e.Q6J("ngIf",null==t.cipherFormGroup.controls.cipherSeed.errors?null:t.cipherFormGroup.controls.cipherSeed.errors.required),e.xp6(1),e.Q6J("ngIf",!(null!=t.cipherFormGroup.controls.cipherSeed.errors&&t.cipherFormGroup.controls.cipherSeed.errors.required)&&(null==t.cipherFormGroup.controls.cipherSeed.errors?null:t.cipherFormGroup.controls.cipherSeed.errors.invalidCipher)),e.xp6(6),e.Q6J("stepControl",t.passphraseFormGroup),e.xp6(1),e.Q6J("formGroup",t.passphraseFormGroup),e.xp6(2),e.Q6J("labelPosition","before"),e.xp6(6),e.Q6J("ngIf",null==t.passphraseFormGroup.controls.passphrase.errors?null:t.passphraseFormGroup.controls.passphrase.errors.required)}}function s1(n,i){if(1&n&&(e.TgZ(0,"span",48),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function l1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form",4),e.TgZ(2,"div",43),e._uU(3,"YOU MUST WRITE DOWN THIS SEED TO BE ABLE TO RESTORE THE WALLET!"),e.qZA(),e.TgZ(4,"div",44),e.YNc(5,s1,2,1,"span",45),e.qZA(),e.TgZ(6,"div",46),e._uU(7,"Wallet initialization is done."),e.qZA(),e.TgZ(8,"div",46),e._uU(9,"The node will be usable only after LND has synced completely with the network."),e.qZA(),e.TgZ(10,"div",46),e._uU(11,"Click continue only after writing down the seed."),e.qZA(),e.TgZ(12,"div",6),e.TgZ(13,"button",47),e.NdJ("click",function(){return e.CHM(t),e.oxw().onGoToHome()}),e._uU(14,"Go To Home"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(5),e.Q6J("ngForOf",t.genSeedResponse)}}function r1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form",4),e.TgZ(2,"div",46),e._uU(3,"Something went wrong! Unable to initialize wallet!"),e.qZA(),e.TgZ(4,"div",6),e.TgZ(5,"button",49),e.NdJ("click",function(){return e.CHM(t),e.oxw().resetData()}),e._uU(6,"Restart"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function c1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"form",4),e.TgZ(2,"div",46),e._uU(3,"Wallet recovery is done."),e.qZA(),e.TgZ(4,"div",46),e._uU(5,"The node will be usable only after LND has synced completely with the network."),e.qZA(),e.TgZ(6,"div",6),e.TgZ(7,"button",50),e.NdJ("click",function(){return e.CHM(t),e.oxw().onGoToHome()}),e._uU(8,"Go To Home"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function u1(n){const i=n.get("initWalletPassword"),t=n.get("initWalletConfirmPassword");return i&&t&&i.value!==t.value?{unmatchedPasswords:!0}:null}function p1(n){const i=n.value.toString().trim().split(",")||[];return i&&24!==i.length?{invalidCipher:!0}:null}let m1=(()=>{class n{constructor(t,a,o){this.store=t,this.formBuilder=a,this.lndEffects=o,this.insecureLND=!1,this.genSeedResponse=[],this.initWalletResponse="",this.proceed=!0,this.warnRes=!1,this.unsubs=[new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.passwordFormGroup=this.formBuilder.group({initWalletPassword:["",[c.kI.required,c.kI.minLength(8)]],initWalletConfirmPassword:["",[c.kI.required,c.kI.minLength(8)]]},{validators:u1}),this.cipherFormGroup=this.formBuilder.group({existingCipher:[!1],cipherSeed:[{value:"",disabled:!0},[p1]]}),this.passphraseFormGroup=this.formBuilder.group({enterPassphrase:[!1],passphrase:[{value:"",disabled:!0}]}),this.cipherFormGroup.controls.existingCipher.valueChanges.pipe((0,d.R)(this.unsubs[0])).subscribe(t=>{t?(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,d.R)(this.unsubs[1])).subscribe(t=>{t?(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,d.R)(this.unsubs[2])).subscribe(t=>{this.initWalletResponse=t}),this.lndEffects.genSeedResponse.pipe((0,d.R)(this.unsubs[3])).subscribe(t=>{this.genSeedResponse=t,this.store.dispatch((0,b.y2)(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 t=this.cipherFormGroup.controls.cipherSeed.value.toString().trim().split(",");this.store.dispatch((0,b.y2)(this.passphraseFormGroup.controls.enterPassphrase.value?{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:t,passphrase:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}}:{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:t}}))}else this.store.dispatch((0,b.fu)(this.passphraseFormGroup.controls.enterPassphrase.value?{payload:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}:{payload:""}))}onGoToHome(){setTimeout(()=>{this.store.dispatch((0,v.tw)()),this.store.dispatch((0,b.sQ)({payload:{loadPage:"HOME"}}))},1e3)}resetData(){this.genSeedResponse=[],this.initWalletResponse=""}ngOnDestroy(){this.unsubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh),e.Y36(c.qu),e.Y36(ee.l))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-initialize-wallet"]],viewQuery:function(t,a){if(1&t&&e.Gf(B.Vq,5),2&t){let o;e.iGM(o=e.CRH())&&(a.stepper=o.first)}},features:[e._Bn([{provide:Bc.gx,useValue:{displayDefaultIndicatorType:!1}}])],decls:7,vars:6,consts:[["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"],["stepper",""],["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"],["fxFlex","49","fxLayoutAlign","start"],["matInput","","type","password","placeholder","Password","name","initWalletPassword","formControlName","initWalletPassword","tabindex","5","required",""],["matInput","","type","password","placeholder","Confirm 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"],["fxFlex","20","tabindex","8","color","primary","formControlName","existingCipher","name","existingCipher",1,"chkbox-wallet",3,"labelPosition"],["fxFlex","75","fxLayoutAlign","start",1,"my-1"],["autofocus","","matInput","","type","input","placeholder","Comma separated array of 24 words cipher seed","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"],["fxFlex","20","tabindex","10","color","primary","formControlName","enterPassphrase","name","enterPassphrase",1,"chkbox-wallet",3,"labelPosition"],["fxFlex","75","fxLayoutAlign","start"],["matInput","","type","password","placeholder","Passphrase","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(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,Vc,9,0,"div",1),e.YNc(2,Gc,6,0,"div",2),e.YNc(3,o1,56,17,"mat-vertical-stepper",3),e.YNc(4,l1,15,1,"div",1),e.YNc(5,r1,7,0,"div",1),e.YNc(6,c1,9,0,"div",1),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",a.insecureLND&&!a.warnRes),e.xp6(1),e.Q6J("ngIf",a.warnRes&&!a.proceed),e.xp6(1),e.Q6J("ngIf",(!a.insecureLND||a.warnRes&&a.proceed)&&a.genSeedResponse.length<=0&&""===a.initWalletResponse),e.xp6(1),e.Q6J("ngIf",a.genSeedResponse.length>0&&""!==a.initWalletResponse),e.xp6(1),e.Q6J("ngIf",a.genSeedResponse.length>0&&""===a.initWalletResponse),e.xp6(1),e.Q6J("ngIf",a.genSeedResponse.length<=0&&""!==a.initWalletResponse))},directives:[_.xw,p.O5,c._Y,c.JL,c.F,_.Wh,_.yH,L.lW,B.Vq,B.C0,c.sg,f.KE,I.Nt,c.Fj,c.JJ,c.u,c.Q7,f.bx,B.Ic,ue.Rr,B.fd,B.z9,f.TO,K.Hw,p.sg],styles:[""]}),n})(),_1=(()=>{class n{constructor(){this.faWallet=Z.X5K}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-wallet"]],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"],["label","Unlock"],["label","Initialize"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Wallet"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e.TgZ(7,"mat-tab-group"),e.TgZ(8,"mat-tab",5),e._UZ(9,"rtl-unlock-wallet"),e.qZA(),e.TgZ(10,"mat-tab",6),e._UZ(11,"rtl-initialize-wallet"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faWallet))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,D.SP,D.uX,Hc,m1],styles:[""]}),n})();var d1=h(1365);function h1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",11),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().activeLink=s.link}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw();e.s9C("routerLink",t.link),e.Q6J("active",a.activeLink===t.link),e.xp6(1),e.Oqu(t.name)}}let g1=(()=>{class n{constructor(t,a,o){this.logger=t,this.store=a,this.router=o,this.faExchangeAlt=Z.Ssp,this.faChartPie=Z.OS1,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 m.x,new m.x,new m.x,new m.x]}ngOnInit(){const t=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(a=>a instanceof y.Av)).subscribe({next:a=>{const o=this.links.find(s=>a.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[1]),(0,d1.M)(this.store.select(C.$k))).subscribe(([a,o])=>{this.currencyUnits=o.currencyUnits,this.balances=o.userPersona===l.ol.OPERATOR?[{title:"Local Capacity",dataValue:a.lightningBalance.local,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:a.lightningBalance.remote,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:a.lightningBalance.local,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:a.lightningBalance.remote,tooltip:"Amount you can receive"}],this.logger.info(a)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-transactions"]],decls:19,vars:4,consts:[["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",""],["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"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Lightning Balance"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e._UZ(7,"rtl-currency-unit-converter",5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",6),e._UZ(9,"fa-icon",1),e.TgZ(10,"span",2),e._uU(11,"Lightning Transactions"),e.qZA(),e.qZA(),e.TgZ(12,"div",7),e.TgZ(13,"mat-card"),e.TgZ(14,"mat-card-content",4),e.TgZ(15,"nav",8),e.YNc(16,h1,2,3,"div",9),e.qZA(),e.TgZ(17,"div",10),e._UZ(18,"router-outlet"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faChartPie),e.xp6(6),e.Q6J("values",a.balances),e.xp6(2),e.Q6J("icon",a.faExchangeAlt),e.xp6(7),e.Q6J("ngForOf",a.links))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,ge.D,D.BU,p.sg,_.yH,y.lC,D.Nj,y.rH],styles:[""]}),n})();function f1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",8),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().activeLink=s.link}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw();e.s9C("routerLink",t.link),e.Q6J("active",a.activeLink===t.link),e.xp6(1),e.Oqu(t.name)}}let C1=(()=>{class n{constructor(t){this.router=t,this.faSearch=Z.wn1,this.links=[{link:"lookups",name:"Lookup"},{link:"queryroutes",name:"Query Routes"}],this.activeLink=this.links[0].link,this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){const t=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(a=>a instanceof y.Av)).subscribe({next:a=>{const o=this.links.find(s=>a.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-graph"]],decls:11,vars:2,consts:[["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",""],["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"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Graph Lookups"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e.TgZ(7,"nav",5),e.YNc(8,f1,2,3,"div",6),e.qZA(),e.TgZ(9,"div",7),e._UZ(10,"router-outlet"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faSearch),e.xp6(7),e.Q6J("ngForOf",a.links))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,D.BU,p.sg,_.yH,y.lC,D.Nj,y.rH],styles:[""]}),n})();function x1(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Destination pubkey is required."),e.qZA())}function Z1(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount is required."),e.qZA())}function y1(n,i){1&n&&e._UZ(0,"mat-progress-bar",37)}function T1(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1," Hop "),e.qZA())}function b1(n,i){if(1&n&&(e.TgZ(0,"td",39),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",null==t?null:t.hop_sequence," ")}}function A1(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1," Peer "),e.qZA())}const v1=function(n){return{"max-width":n}};function w1(n,i){if(1&n&&(e.TgZ(0,"td",40),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,v1,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.hij(" ",null==t?null:t.pubkey_alias," ")}}function q1(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1," Channel "),e.qZA())}function S1(n,i){if(1&n&&(e.TgZ(0,"td",39),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",null==t?null:t.chan_id," ")}}function L1(n,i){1&n&&(e.TgZ(0,"th",41),e._uU(1," Capacity (Sats) "),e.qZA())}function k1(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.chan_capacity),"")}}function F1(n,i){1&n&&(e.TgZ(0,"th",41),e._uU(1," Amount To Fwd (Sats) "),e.qZA())}function U1(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.amt_to_forward)," ")}}function N1(n,i){1&n&&(e.TgZ(0,"th",41),e._uU(1," Fee (mSats) "),e.qZA())}function O1(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.fee_msat)," ")}}function R1(n,i){1&n&&(e.TgZ(0,"th",43),e.TgZ(1,"span",42),e._uU(2,"Actions"),e.qZA(),e.qZA())}function I1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",44),e.TgZ(1,"button",45),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw().onHopClick(u,o)}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function M1(n,i){1&n&&e._UZ(0,"tr",46)}function D1(n,i){1&n&&e._UZ(0,"tr",47)}const P1=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}};let J1=(()=>{class n{constructor(t,a,o){this.store=t,this.lndEffects=a,this.commonService=o,this.destinationPubkey="",this.amount=null,this.flgSticky=!1,this.displayedColumns=[],this.flgLoading=[!1],this.faRoute=Z.FpQ,this.faExclamationTriangle=Z.eHv,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["pubkey_alias","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["hop_sequence","pubkey_alias","fee_msat","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["hop_sequence","pubkey_alias","chan_capacity","amt_to_forward_msat","fee_msat","actions"]):(this.flgSticky=!0,this.displayedColumns=["hop_sequence","pubkey_alias","chan_capacity","amt_to_forward_msat","fee_msat","actions"])}ngOnInit(){this.lndEffects.setQueryRoutes.pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.qrHops=new r.by([]),t.routes&&t.routes.length&&t.routes.length>0&&t.routes[0].hops?(this.flgLoading[0]=!1,this.qrHops=new r.by([...t.routes[0].hops]),this.qrHops.data=t.routes[0].hops):this.flgLoading[0]="error",this.qrHops.sort=this.sort,this.qrHops.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null})}onQueryRoutes(){if(!this.destinationPubkey||!this.amount)return!0;this.qrHops=new r.by([]),this.flgLoading[0]=!0,this.store.dispatch((0,b.WO)({payload:{destPubkey:this.destinationPubkey,amount:this.amount}}))}resetData(){this.destinationPubkey="",this.amount=null,this.flgLoading[0]=!1}onHopClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Route Information",message:[[{key:"hop_sequence",value:t.hop_sequence,title:"Sequence",width:33,type:l.Gi.NUMBER},{key:"amt_to_forward",value:t.amt_to_forward,title:"Amount To Forward (Sats)",width:33,type:l.Gi.NUMBER},{key:"fee_msat",value:t.fee_msat,title:"Fee (mSats)",width:34,type:l.Gi.NUMBER}],[{key:"chan_capacity",value:t.chan_capacity,title:"Channel Capacity (Sats)",width:50,type:l.Gi.NUMBER},{key:"expiry",value:t.expiry,title:"Expiry",width:50,type:l.Gi.NUMBER}],[{key:"pubkey_alias",value:t.pubkey_alias,title:"Peer Alias",width:50,type:l.Gi.STRING},{key:"chan_id",value:t.chan_id,title:"Channel ID",width:50,type:l.Gi.STRING}],[{key:"pub_key",value:t.pub_key,title:"Peer Pubkey",width:100,type:l.Gi.STRING}]]}}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh),e.Y36(ee.l),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-query-routes"]],viewQuery:function(t,a){if(1&t&&e.Gf(A.YE,5),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first)}},decls:51,vars:16,consts:[["fxLayout","column","fxFlex","100",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",3,"ngSubmit"],["queryRoutesForm","ngForm"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","69","fxLayoutAlign","start end"],["matInput","","placeholder","Destination Pubkey","name","destinationPubkey","tabindex","1","required","",3,"ngModel","ngModelChange"],["destPubkey","ngModel"],[4,"ngIf"],["fxFlex","29","fxLayoutAlign","start end"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","type","number","required","",3,"ngModel","step","min","ngModelChange"],["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,"dataSource","ngClass"],["table",""],["matColumnDef","hop_sequence"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","pubkey_alias"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","chan_id"],["matColumnDef","chan_capacity"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_to_forward_msat"],["matColumnDef","fee_msat"],["matColumnDef","actions"],["mat-header-cell","","class","pl-4 pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pl-4","pr-3"],["mat-cell","",1,"pl-4"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(t,a){if(1&t){const o=e.EpF();e.TgZ(0,"div",0),e.TgZ(1,"form",1,2),e.NdJ("ngSubmit",function(){return e.CHM(o),e.MAs(2).form.valid&&a.onQueryRoutes()}),e.TgZ(3,"div",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span"),e._uU(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),e.qZA(),e.qZA(),e.TgZ(7,"mat-form-field",5),e.TgZ(8,"input",6,7),e.NdJ("ngModelChange",function(u){return a.destinationPubkey=u}),e.qZA(),e.YNc(10,x1,2,0,"mat-error",8),e.qZA(),e.TgZ(11,"mat-form-field",9),e.TgZ(12,"input",10),e.NdJ("ngModelChange",function(u){return a.amount=u}),e.qZA(),e.YNc(13,Z1,2,0,"mat-error",8),e.qZA(),e.TgZ(14,"div",11),e.TgZ(15,"button",12),e.NdJ("click",function(){return a.resetData()}),e._uU(16,"Clear"),e.qZA(),e.TgZ(17,"button",13),e._uU(18,"Query Route"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",14),e.TgZ(20,"div",15),e._UZ(21,"fa-icon",16),e.TgZ(22,"span",17),e._uU(23,"Transaction Route"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(24,"div",18),e.YNc(25,y1,1,0,"mat-progress-bar",19),e.TgZ(26,"table",20,21),e.ynx(28,22),e.YNc(29,T1,2,0,"th",23),e.YNc(30,b1,2,1,"td",24),e.BQk(),e.ynx(31,25),e.YNc(32,A1,2,0,"th",23),e.YNc(33,w1,2,4,"td",26),e.BQk(),e.ynx(34,27),e.YNc(35,q1,2,0,"th",23),e.YNc(36,S1,2,1,"td",24),e.BQk(),e.ynx(37,28),e.YNc(38,L1,2,0,"th",29),e.YNc(39,k1,4,3,"td",24),e.BQk(),e.ynx(40,30),e.YNc(41,F1,2,0,"th",29),e.YNc(42,U1,4,3,"td",24),e.BQk(),e.ynx(43,31),e.YNc(44,N1,2,0,"th",29),e.YNc(45,O1,4,3,"td",24),e.BQk(),e.ynx(46,32),e.YNc(47,R1,3,0,"th",33),e.YNc(48,I1,3,0,"td",34),e.BQk(),e.YNc(49,M1,1,0,"tr",35),e.YNc(50,D1,1,0,"tr",36),e.qZA(),e.qZA(),e.qZA()}2&t&&(e.xp6(4),e.Q6J("icon",a.faExclamationTriangle),e.xp6(4),e.Q6J("ngModel",a.destinationPubkey),e.xp6(2),e.Q6J("ngIf",!a.destinationPubkey),e.xp6(2),e.Q6J("ngModel",a.amount)("step",1e3)("min",0),e.xp6(1),e.Q6J("ngIf",!a.amount),e.xp6(8),e.Q6J("icon",a.faRoute),e.xp6(4),e.Q6J("ngIf",!0===a.flgLoading[0]),e.xp6(1),e.Q6J("dataSource",a.qrHops)("ngClass",e.VKq(14,P1,"error"===a.flgLoading[0])),e.xp6(23),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns))},directives:[_.xw,_.yH,c._Y,c.JL,c.F,_.Wh,M.BN,f.KE,I.Nt,c.Fj,c.Q7,c.JJ,c.On,p.O5,c.wV,c.qQ,$.q,L.lW,Q.$V,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.as,r.nj,f.TO,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{flex:0 0 5%;width:5%}.mat-column-pubkey_alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();var ie=h(9814);function E1(n,i){if(1&n&&(e.TgZ(0,"span",9),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.xp6(1),e.AsE("",a.nodeFeaturesEnum[t.value.name]||t.value.name,": ",t.value.is_required?"Mandatory":"Optional","")}}function Q1(n,i){1&n&&(e.TgZ(0,"th",27),e._uU(1,"Network"),e.qZA())}function Y1(n,i){if(1&n&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",null==t?null:t.network," ")}}function H1(n,i){1&n&&(e.TgZ(0,"th",27),e._uU(1,"Address"),e.qZA())}function B1(n,i){if(1&n&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.hij(" ",null==t?null:t.addr," ")}}function V1(n,i){1&n&&(e.TgZ(0,"th",29),e.TgZ(1,"span",30),e._uU(2,"Actions"),e.qZA(),e.qZA())}function G1(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",31),e.TgZ(1,"span",30),e.TgZ(2,"button",32),e.NdJ("copied",function(o){return e.CHM(t),e.oxw(2).onCopyNodeURI(o)}),e._uU(3,"Copy Node URI"),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw(2);e.xp6(2),e.Q6J("payload",a.lookupResult.node.pub_key+"@"+t.addr)}}function z1(n,i){1&n&&e._UZ(0,"tr",33)}function W1(n,i){1&n&&e._UZ(0,"tr",34)}const X1=function(n){return{"background-color":n}};function $1(n,i){if(1&n&&(e.TgZ(0,"div",1),e._UZ(1,"mat-divider",2),e.TgZ(2,"div",3),e.TgZ(3,"div",4),e.TgZ(4,"h4",5),e._uU(5,"Alias"),e.qZA(),e.TgZ(6,"span",6),e._uU(7),e.TgZ(8,"span",7),e._uU(9),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",8),e.TgZ(11,"h4",5),e._uU(12,"Pub Key"),e.qZA(),e.TgZ(13,"span",9),e._uU(14),e.qZA(),e.qZA(),e.qZA(),e._UZ(15,"mat-divider",10),e.TgZ(16,"div",3),e.TgZ(17,"div",4),e.TgZ(18,"h4",5),e._uU(19,"Last Update"),e.qZA(),e.TgZ(20,"span",6),e._uU(21),e.ALo(22,"date"),e.qZA(),e.qZA(),e.TgZ(23,"div",8),e.TgZ(24,"h4",5),e._uU(25,"Total Capacity (Sats)"),e.qZA(),e.TgZ(26,"span",6),e._uU(27),e.ALo(28,"number"),e.qZA(),e.qZA(),e.qZA(),e._UZ(29,"mat-divider",10),e.TgZ(30,"div",3),e.TgZ(31,"div",4),e.TgZ(32,"h4",5),e._uU(33,"Number of Channels"),e.qZA(),e.TgZ(34,"span",6),e._uU(35),e.ALo(36,"number"),e.qZA(),e.qZA(),e.TgZ(37,"div",11),e.TgZ(38,"h4",5),e._uU(39,"Features"),e.qZA(),e.YNc(40,E1,2,2,"span",12),e.ALo(41,"keyvalue"),e.qZA(),e.qZA(),e._UZ(42,"mat-divider",10),e.TgZ(43,"div",13),e.TgZ(44,"h4",14),e._uU(45,"Addresses"),e.qZA(),e.TgZ(46,"div",15),e.TgZ(47,"table",16,17),e.ynx(49,18),e.YNc(50,Q1,2,0,"th",19),e.YNc(51,Y1,2,1,"td",20),e.BQk(),e.ynx(52,21),e.YNc(53,H1,2,0,"th",19),e.YNc(54,B1,2,1,"td",20),e.BQk(),e.ynx(55,22),e.YNc(56,V1,3,0,"th",23),e.YNc(57,G1,4,1,"td",24),e.BQk(),e.YNc(58,z1,1,0,"tr",25),e.YNc(59,W1,1,0,"tr",26),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(t.lookupResult.node.alias),e.xp6(1),e.Q6J("ngStyle",e.VKq(24,X1,null==t.lookupResult.node?null:t.lookupResult.node.color)),e.xp6(1),e.Oqu(null==t.lookupResult.node?null:t.lookupResult.node.color),e.xp6(5),e.Oqu(t.lookupResult.node.pub_key),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(e.xi3(22,15,1e3*t.lookupResult.node.last_update,"dd/MMM/y HH:mm")),e.xp6(6),e.Oqu(e.lcZ(28,18,t.lookupResult.total_capacity)),e.xp6(2),e.Q6J("inset",!0),e.xp6(6),e.Oqu(e.lcZ(36,20,t.lookupResult.num_channels)),e.xp6(5),e.Q6J("ngForOf",e.lcZ(41,22,t.lookupResult.node.features)),e.xp6(2),e.Q6J("inset",!0),e.xp6(5),e.Q6J("dataSource",t.lookupResult.node.addresses),e.xp6(11),e.Q6J("matHeaderRowDef",t.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns)}}let j1=(()=>{class n{constructor(t,a){this.logger=t,this.snackBar=a,this.nodeFeaturesEnum=l.hZ,this.displayedColumns=["network","addr","actions"]}onCopyNodeURI(t){this.snackBar.open("Node URI copied."),this.logger.info("Copied Text: "+t)}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(te.ux))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-node-lookup"]],inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["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","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",3,"dataSource"],["table",""],["matColumnDef","network"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","addr"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"pl-1"],["fxLayoutAlign","end center"],["mat-cell","",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","1","rtlClipboard","",3,"payload","copied"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&e.YNc(0,$1,60,26,"div",0),2&t&&e.Q6J("ngIf",a.lookupResult)},directives:[p.O5,_.xw,z.d,_.yH,_.Wh,p.PC,q.Zl,p.sg,Q.$V,r.BZ,A.YE,r.w1,r.fO,r.Dz,r.as,r.nj,r.ge,A.nU,r.ev,L.lW,se.y,r.XQ,r.Gk],pipes:[p.uU,p.JJ,p.Nd],styles:[""]}),n})();function K1(n,i){1&n&&(e.TgZ(0,"h3",15),e._uU(1,"Node 1"),e.qZA())}function eu(n,i){1&n&&(e.TgZ(0,"h3",15),e._uU(1,"Node 1 (Your Node)"),e.qZA())}function tu(n,i){1&n&&(e.TgZ(0,"h3",15),e._uU(1,"Node 2"),e.qZA())}function nu(n,i){1&n&&(e.TgZ(0,"h3",15),e._uU(1,"Node 2 (Your Node)"),e.qZA())}function au(n,i){if(1&n&&(e.TgZ(0,"div",1),e._UZ(1,"mat-divider",2),e.TgZ(2,"div",3),e.TgZ(3,"div",4),e.TgZ(4,"h4",5),e._uU(5,"Channel Id"),e.qZA(),e.TgZ(6,"span",6),e._uU(7),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.TgZ(9,"h4",5),e._uU(10,"Channel Point"),e.qZA(),e.TgZ(11,"span",6),e._uU(12),e.qZA(),e.qZA(),e.qZA(),e._UZ(13,"mat-divider",8),e.TgZ(14,"div",3),e.TgZ(15,"div",4),e.TgZ(16,"h4",5),e._uU(17,"Last Update"),e.qZA(),e.TgZ(18,"span",6),e._uU(19),e.ALo(20,"date"),e.qZA(),e.qZA(),e.TgZ(21,"div",7),e.TgZ(22,"h4",5),e._uU(23,"Capacity (Sats)"),e.qZA(),e.TgZ(24,"span",6),e._uU(25),e.ALo(26,"number"),e.qZA(),e.qZA(),e.qZA(),e._UZ(27,"mat-divider",8),e.TgZ(28,"div",9),e.TgZ(29,"div",10),e.TgZ(30,"div",11),e.YNc(31,K1,2,0,"h3",12),e.YNc(32,eu,2,0,"h3",12),e.qZA(),e._UZ(33,"mat-divider",8),e.TgZ(34,"div",13),e.TgZ(35,"h4",5),e._uU(36,"Pubkey"),e.qZA(),e.TgZ(37,"span",6),e._uU(38),e.qZA(),e.qZA(),e._UZ(39,"mat-divider",8),e.TgZ(40,"div",14),e.TgZ(41,"h4",5),e._uU(42,"Time Lock Delta"),e.qZA(),e.TgZ(43,"span",6),e._uU(44),e.qZA(),e.qZA(),e._UZ(45,"mat-divider",8),e.TgZ(46,"div",14),e.TgZ(47,"h4",5),e._uU(48,"Min HTLC"),e.qZA(),e.TgZ(49,"span",6),e._uU(50),e.qZA(),e.qZA(),e._UZ(51,"mat-divider",8),e.TgZ(52,"div",14),e.TgZ(53,"h4",5),e._uU(54,"Fee Base Msat"),e.qZA(),e.TgZ(55,"span",6),e._uU(56),e.qZA(),e.qZA(),e._UZ(57,"mat-divider",8),e.TgZ(58,"div",14),e.TgZ(59,"h4",5),e._uU(60,"Fee Rate Milli Msat"),e.qZA(),e.TgZ(61,"span",6),e._uU(62),e.qZA(),e.qZA(),e._UZ(63,"mat-divider",8),e.TgZ(64,"div",14),e.TgZ(65,"h4",5),e._uU(66,"Disabled"),e.qZA(),e.TgZ(67,"span",6),e._uU(68),e.qZA(),e.qZA(),e.qZA(),e.TgZ(69,"div",10),e.TgZ(70,"div"),e.YNc(71,tu,2,0,"h3",12),e.YNc(72,nu,2,0,"h3",12),e.qZA(),e._UZ(73,"mat-divider",8),e.TgZ(74,"div",13),e.TgZ(75,"h4",5),e._uU(76,"Pubkey"),e.qZA(),e.TgZ(77,"span",6),e._uU(78),e.qZA(),e.qZA(),e._UZ(79,"mat-divider",8),e.TgZ(80,"div",14),e.TgZ(81,"h4",5),e._uU(82,"Time Lock Delta"),e.qZA(),e.TgZ(83,"span",6),e._uU(84),e.qZA(),e.qZA(),e._UZ(85,"mat-divider",8),e.TgZ(86,"div",14),e.TgZ(87,"h4",5),e._uU(88,"Min HTLC"),e.qZA(),e.TgZ(89,"span",6),e._uU(90),e.qZA(),e.qZA(),e._UZ(91,"mat-divider",8),e.TgZ(92,"div",14),e.TgZ(93,"h4",5),e._uU(94,"Fee Base Msat"),e.qZA(),e.TgZ(95,"span",6),e._uU(96),e.qZA(),e.qZA(),e._UZ(97,"mat-divider",8),e.TgZ(98,"div",14),e.TgZ(99,"h4",5),e._uU(100,"Fee Rate Milli Msat"),e.qZA(),e.TgZ(101,"span",6),e._uU(102),e.qZA(),e.qZA(),e._UZ(103,"mat-divider",8),e.TgZ(104,"div",14),e.TgZ(105,"h4",5),e._uU(106,"Disabled"),e.qZA(),e.TgZ(107,"span",6),e._uU(108),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(t.lookupResult.channel_id),e.xp6(5),e.Oqu(t.lookupResult.chan_point),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(e.xi3(20,35,1e3*t.lookupResult.last_update,"dd/MMM/y HH:mm")),e.xp6(6),e.Oqu(e.lcZ(26,38,t.lookupResult.capacity)),e.xp6(2),e.Q6J("inset",!0),e.xp6(4),e.Q6J("ngIf",!t.node1_match),e.xp6(1),e.Q6J("ngIf",t.node1_match),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(t.lookupResult.node1_pub),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node1_policy?null:t.lookupResult.node1_policy.time_lock_delta),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node1_policy?null:t.lookupResult.node1_policy.min_htlc),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node1_policy?null:t.lookupResult.node1_policy.fee_base_msat),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node1_policy?null:t.lookupResult.node1_policy.fee_rate_milli_msat),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null!=t.lookupResult.node1_policy&&t.lookupResult.node1_policy.disabled?"Yes":"No"),e.xp6(3),e.Q6J("ngIf",!t.node2_match),e.xp6(1),e.Q6J("ngIf",t.node2_match),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(t.lookupResult.node2_pub),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node2_policy?null:t.lookupResult.node2_policy.time_lock_delta),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node2_policy?null:t.lookupResult.node2_policy.min_htlc),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node2_policy?null:t.lookupResult.node2_policy.fee_base_msat),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null==t.lookupResult.node2_policy?null:t.lookupResult.node2_policy.fee_rate_milli_msat),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Oqu(null!=t.lookupResult.node2_policy&&t.lookupResult.node2_policy.disabled?"Yes":"No")}}let iu=(()=>{class n{constructor(t){this.store=t,this.node1_match=!1,this.node2_match=!1,this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.lookupResult.node1_pub===t.identity_pubkey&&(this.node1_match=!0),this.lookupResult.node2_pub===t.identity_pubkey&&(this.node2_match=!0)})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-lookup"]],inputs:{lookupResult:"lookupResult"},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 start",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(t,a){1&t&&e.YNc(0,au,109,40,"div",0),2&t&&e.Q6J("ngIf",a.lookupResult)},directives:[p.O5,_.xw,z.d,_.yH,_.Wh],pipes:[p.uU,p.JJ],styles:[".mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%], .mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{height:38px!important}"]}),n})();function ou(n,i){if(1&n&&(e.TgZ(0,"mat-radio-button",17),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("value",t.id)("checked",a.selectedFieldId===t.id),e.xp6(1),e.hij(" ",t.name," ")}}function su(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("",null==t.lookupFields[t.selectedFieldId]?null:t.lookupFields[t.selectedFieldId].placeholder," is required.")}}function lu(n,i){1&n&&e._UZ(0,"mat-progress-bar",20)}const ru=function(n){return{"w-100 mt-2 p-2 error-border":n,"w-100 my-2 p-2":!0}};function cu(n,i){if(1&n&&(e.TgZ(0,"div",18),e.YNc(1,lu,1,0,"mat-progress-bar",19),e._uU(2),e.qZA()),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(3,ru,""!==t.errorMessage&&"Getting lookup details..."!==t.errorMessage)),e.xp6(1),e.Q6J("ngIf","Getting lookup details..."===t.errorMessage),e.xp6(1),e.hij(" ",t.errorMessage," ")}}function uu(n,i){if(1&n&&(e.TgZ(0,"span",27),e._UZ(1,"rtl-node-lookup",28),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("lookupResult",t.lookupValue)}}function pu(n,i){if(1&n&&(e.TgZ(0,"span",27),e._UZ(1,"rtl-channel-lookup",28),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("lookupResult",t.lookupValue)}}function mu(n,i){1&n&&(e.TgZ(0,"span",27),e.TgZ(1,"h3"),e._uU(2,"Error! Unable to find details!"),e.qZA(),e.qZA())}function _u(n,i){if(1&n&&(e.TgZ(0,"div",21),e.TgZ(1,"div",22),e.TgZ(2,"span",23),e._uU(3),e.qZA(),e.qZA(),e.TgZ(4,"div",24),e.YNc(5,uu,2,1,"span",25),e.YNc(6,pu,2,1,"span",25),e.YNc(7,mu,3,0,"span",26),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(3),e.hij("",t.lookupFields[t.selectedFieldId].name," Details"),e.xp6(1),e.Q6J("ngSwitch",t.selectedFieldId),e.xp6(1),e.Q6J("ngSwitchCase",0),e.xp6(1),e.Q6J("ngSwitchCase",1)}}const du=function(n){return{"mt-1":!0,"mt-2":n}};let He=(()=>{class n{constructor(t,a,o,s){this.logger=t,this.commonService=a,this.store=o,this.actions=s,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=Z.wn1,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(t=>t.type===l.uR.SET_LOOKUP_LND||t.type===l.uR.UPDATE_API_CALL_STATUS_LND)).subscribe(t=>{t.type===l.uR.SET_LOOKUP_LND&&(this.errorMessage=0===this.selectedFieldId&&t.payload.hasOwnProperty("node")||1===this.selectedFieldId&&t.payload.hasOwnProperty("channel_id")?"":this.errorMessage,this.lookupValue=JSON.parse(JSON.stringify(t.payload)),this.flgSetLookupValue=!(0!==this.selectedFieldId||!t.payload.hasOwnProperty("node"))||!(1!==this.selectedFieldId||!t.payload.hasOwnProperty("channel_id")),this.logger.info(this.lookupValue)),t.type===l.uR.UPDATE_API_CALL_STATUS_LND&&"Lookup"===t.payload.action&&(this.errorMessage="",t.payload.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof t.payload.message?JSON.stringify(t.payload.message):t.payload.message),t.payload.status===l.Bn.INITIATED&&(this.errorMessage=l.m6.GET_LOOKUP_DETAILS))})}onLookup(){if(!this.lookupKey)return!0;switch(this.flgSetLookupValue=!1,this.lookupValue={},this.selectedFieldId){case 0:this.store.dispatch((0,b.Sf)({payload:this.lookupKey.trim()}));break;case 1:this.store.dispatch((0,b.$A)({payload:{uiMessage:l.m6.SEARCHING_CHANNEL,channelID:this.lookupKey.trim()}}))}}onSelectChange(t){this.resetData(),this.selectedFieldId=t.value}resetData(){this.flgSetLookupValue=!1,this.selectedFieldId=0,this.lookupKey="",this.lookupValue={},this.errorMessage=""}clearLookupValue(){this.lookupValue={},this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh),e.Y36(G.eX))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-lookups"]],decls:19,vars:10,consts:[["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"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModel","ngModelChange","change"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"placeholder","ngModel","change","ngModelChange"],["key",""],[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"],["fxFlex","100",4,"ngSwitchDefault"],["fxFlex","100"],[3,"lookupResult"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-content",2),e.TgZ(3,"form",3,4),e.TgZ(5,"div",5),e.TgZ(6,"mat-radio-group",6),e.NdJ("ngModelChange",function(s){return a.selectedFieldId=s})("change",function(s){return a.onSelectChange(s)}),e.YNc(7,ou,2,3,"mat-radio-button",7),e.qZA(),e.qZA(),e.TgZ(8,"mat-form-field",8),e.TgZ(9,"input",9,10),e.NdJ("change",function(){return a.clearLookupValue()})("ngModelChange",function(s){return a.lookupKey=s}),e.qZA(),e.YNc(11,su,2,1,"mat-error",11),e.qZA(),e.TgZ(12,"div",12),e.TgZ(13,"button",13),e.NdJ("click",function(){return a.resetData()}),e._uU(14,"Clear"),e.qZA(),e.TgZ(15,"button",14),e.NdJ("click",function(){return a.onLookup()}),e._uU(16,"Lookup"),e.qZA(),e.qZA(),e.qZA(),e.YNc(17,cu,3,5,"div",15),e.YNc(18,_u,8,4,"div",16),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngModel",a.selectedFieldId),e.xp6(1),e.Q6J("ngForOf",a.lookupFields),e.xp6(1),e.Q6J("ngClass",e.VKq(8,du,a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM)),e.xp6(1),e.Q6J("placeholder",(null==a.lookupFields[a.selectedFieldId]?null:a.lookupFields[a.selectedFieldId].placeholder)||"Lookup Key")("ngModel",a.lookupKey),e.xp6(2),e.Q6J("ngIf",!a.lookupKey),e.xp6(6),e.Q6J("ngIf",""!==a.errorMessage),e.xp6(1),e.Q6J("ngIf",""===a.errorMessage&&a.lookupValue&&a.flgSetLookupValue))},directives:[_.xw,_.yH,_.Wh,T.dn,c._Y,c.JL,c.F,ie.VQ,c.JJ,c.On,p.sg,f.KE,p.mk,q.oO,I.Nt,c.Fj,c.Q7,p.O5,L.lW,ie.U0,f.TO,P.pW,p.RF,p.n9,p.ED,j1,iu],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}.pl-3[_ngcontent-%COMP%]{padding-left:3rem}"]}),n})();var be=h(6856);function hu(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Invalid date format."),e.qZA())}function gu(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Invalid date format."),e.qZA())}function fu(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",27),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().activeLink=s.link}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw();e.s9C("routerLink",t.link),e.Q6J("active",a.activeLink===t.link),e.xp6(1),e.Oqu(t.name)}}let Cu=(()=>{class n{constructor(t,a,o){this.logger=t,this.store=a,this.router=o,this.faMapSigns=Z.SuH,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 m.x,new m.x,new m.x]}ngOnInit(){this.onEventsFetch();const t=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(a=>a instanceof y.Av)).subscribe({next:a=>{const o=this.links.find(s=>a.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}onEventsFetch(){this.store.dispatch((0,b.QJ)({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,b.u0)({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,b.QJ)({payload:{forwarding_events:[]}})),this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-routing"]],decls:35,vars:15,consts:[["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"],["routingForm","ngForm"],["fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","49","fxLayoutAlign","start"],["matInput","","placeholder","Start Date","name","startDate","tabindex","1",3,"matDatepicker","max","ngModel","ngModelChange"],["strtDate","ngModel"],["matSuffix","",3,"for"],[3,"startAt"],["startDatepicker",""],[4,"ngIf"],["matInput","","placeholder","End Date","name","endDate","tabindex","2",3,"matDatepicker","min","max","ngModel","ngModelChange"],["enDate","ngModel"],["endDatepicker",""],["fxLayout","row",1,"mt-2"],["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","","fxFlex","100"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,a){if(1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span",3),e._uU(4,"Routing"),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"mat-card",5),e.TgZ(7,"mat-card-content",6),e.TgZ(8,"form",7,8),e.NdJ("ngSubmit",function(){return a.onEventsFetch()}),e.TgZ(10,"div",9),e.TgZ(11,"mat-form-field",10),e.TgZ(12,"input",11,12),e.NdJ("ngModelChange",function(s){return a.startDate=s}),e.qZA(),e._UZ(14,"mat-datepicker-toggle",13),e._UZ(15,"mat-datepicker",14,15),e.YNc(17,hu,2,0,"mat-error",16),e.qZA(),e.TgZ(18,"mat-form-field",10),e.TgZ(19,"input",17,18),e.NdJ("ngModelChange",function(s){return a.endDate=s}),e.qZA(),e._UZ(21,"mat-datepicker-toggle",13),e._UZ(22,"mat-datepicker",14,19),e.YNc(24,gu,2,0,"mat-error",16),e.qZA(),e.qZA(),e.TgZ(25,"div",20),e.TgZ(26,"button",21),e.NdJ("click",function(){return a.resetData()}),e._uU(27,"Clear"),e.qZA(),e.TgZ(28,"button",22),e._uU(29,"Fetch Events"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"div",23),e.TgZ(31,"nav",24),e.YNc(32,fu,2,3,"div",25),e.qZA(),e.qZA(),e.TgZ(33,"div",26),e._UZ(34,"router-outlet"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t){const o=e.MAs(13),s=e.MAs(16),u=e.MAs(20),g=e.MAs(23);e.xp6(2),e.Q6J("icon",a.faMapSigns),e.xp6(10),e.Q6J("matDatepicker",s)("max",a.today)("ngModel",a.startDate),e.xp6(2),e.Q6J("for",s),e.xp6(1),e.Q6J("startAt",a.startDate),e.xp6(2),e.Q6J("ngIf",o.errors),e.xp6(2),e.Q6J("matDatepicker",g)("min",a.startDate)("max",a.today)("ngModel",a.endDate),e.xp6(2),e.Q6J("for",g),e.xp6(1),e.Q6J("startAt",a.endDate),e.xp6(2),e.Q6J("ngIf",u.errors),e.xp6(8),e.Q6J("ngForOf",a.links)}},directives:[_.xw,_.Wh,M.BN,_.yH,T.a8,T.dn,c._Y,c.JL,c.F,f.KE,I.Nt,be.hl,Ee.F,c.Fj,c.JJ,c.On,be.nW,f.R9,be.Mq,p.O5,$.q,L.lW,D.BU,p.sg,y.lC,f.TO,D.Nj,y.rH],styles:[""]}),n})();function xu(n,i){if(1&n&&(e.TgZ(0,"div",5),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.errorMessage)}}function Zu(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",6),e._UZ(1,"div",7),e.TgZ(2,"mat-form-field",8),e.TgZ(3,"input",9),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().filterValue=o})("input",function(){return e.CHM(t),e.oxw().applyFilter()})("keyup",function(){return e.CHM(t),e.oxw().applyFilter()}),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(3),e.Q6J("ngModel",t.filterValue)}}function yu(n,i){1&n&&e._UZ(0,"mat-progress-bar",31)}function Tu(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1,"Timestamp"),e.qZA())}function bu(n,i){if(1&n&&(e.TgZ(0,"td",33),e._uU(1),e.ALo(2,"date"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,1e3*t.timestamp,"dd/MMM/y HH:mm"))}}function Au(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1,"Inbound Channel"),e.qZA())}function vu(n,i){if(1&n&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t.alias_in)}}function wu(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1,"Outbound Channel"),e.qZA())}function qu(n,i){if(1&n&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t.alias_out)}}function Su(n,i){1&n&&(e.TgZ(0,"th",34),e._uU(1,"Inbound Amount (Sats)"),e.qZA())}function Lu(n,i){if(1&n&&(e.TgZ(0,"td",33),e.TgZ(1,"span",35),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.amt_in))}}function ku(n,i){1&n&&(e.TgZ(0,"th",34),e._uU(1,"Outbound Amount (Sats)"),e.qZA())}function Fu(n,i){if(1&n&&(e.TgZ(0,"td",33),e.TgZ(1,"span",35),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.amt_out))}}function Uu(n,i){1&n&&(e.TgZ(0,"th",34),e._uU(1,"Fee (mSats)"),e.qZA())}function Nu(n,i){if(1&n&&(e.TgZ(0,"td",33),e.TgZ(1,"span",35),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.fee_msat))}}function Ou(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",36),e.TgZ(1,"div",37),e.TgZ(2,"mat-select",38),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",39),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Ru(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",40),e.TgZ(1,"button",41),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw(2).onForwardingEventClick(u,o)}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function Iu(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No forwarding history available."),e.qZA())}function Mu(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting forwarding history..."),e.qZA())}function Du(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(t.errorMessage)}}function Pu(n,i){if(1&n&&(e.TgZ(0,"td",42),e.YNc(1,Iu,2,0,"p",43),e.YNc(2,Mu,2,0,"p",43),e.YNc(3,Du,2,1,"p",43),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",(!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Ju=function(n){return{"display-none":n}};function Eu(n,i){if(1&n&&e._UZ(0,"tr",44),2&n){const t=e.oxw(2);e.Q6J("ngClass",e.VKq(1,Ju,(null==t.forwardingHistoryEvents?null:t.forwardingHistoryEvents.data)&&(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)>0))}}function Qu(n,i){1&n&&e._UZ(0,"tr",45)}function Yu(n,i){1&n&&e._UZ(0,"tr",46)}const Hu=function(){return["no_event"]};function Bu(n,i){if(1&n&&(e.TgZ(0,"div",10),e.YNc(1,yu,1,0,"mat-progress-bar",11),e.TgZ(2,"table",12,13),e.ynx(4,14),e.YNc(5,Tu,2,0,"th",15),e.YNc(6,bu,3,4,"td",16),e.BQk(),e.ynx(7,17),e.YNc(8,Au,2,0,"th",15),e.YNc(9,vu,2,1,"td",16),e.BQk(),e.ynx(10,18),e.YNc(11,wu,2,0,"th",15),e.YNc(12,qu,2,1,"td",16),e.BQk(),e.ynx(13,19),e.YNc(14,Su,2,0,"th",20),e.YNc(15,Lu,4,3,"td",16),e.BQk(),e.ynx(16,21),e.YNc(17,ku,2,0,"th",20),e.YNc(18,Fu,4,3,"td",16),e.BQk(),e.ynx(19,22),e.YNc(20,Uu,2,0,"th",20),e.YNc(21,Nu,4,3,"td",16),e.BQk(),e.ynx(22,23),e.YNc(23,Ou,6,0,"th",24),e.YNc(24,Ru,3,0,"td",25),e.BQk(),e.ynx(25,26),e.YNc(26,Pu,4,3,"td",27),e.BQk(),e.YNc(27,Eu,1,3,"tr",28),e.YNc(28,Qu,1,0,"tr",29),e.YNc(29,Yu,1,0,"tr",30),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",t.forwardingHistoryEvents),e.xp6(25),e.Q6J("matFooterRowDef",e.DdM(6,Hu)),e.xp6(1),e.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns)}}function Vu(n,i){if(1&n&&e._UZ(0,"mat-paginator",47),2&n){const t=e.oxw();e.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let Be=(()=>{class n{constructor(t,a,o,s){this.logger=t,this.commonService=a,this.store=o,this.datePipe=s,this.eventsData=[],this.filterValue="",this.forwardingHistoryData=[],this.displayedColumns=[],this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["timestamp","fee_msat","actions"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["timestamp","amt_in","amt_out","fee_msat","actions"]):(this.flgSticky=!0,this.displayedColumns=["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat","actions"])}ngOnInit(){this.store.select(C.Bo).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{var a;this.eventsData.length<=0&&(this.errorMessage="",this.apiCallStatus=t.apiCallStatus,(null===(a=t.apiCallStatus)||void 0===a?void 0:a.status)===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.forwardingHistoryData=t.forwardingHistory.forwarding_events||[],this.loadForwardingEventsTable(this.forwardingHistoryData),this.logger.info(t.apiCallStatus),this.logger.info(t.forwardingHistory))})}ngAfterViewInit(){this.forwardingHistoryData.length>0&&this.loadForwardingEventsTable(this.forwardingHistoryData)}ngOnChanges(t){t.eventsData&&(this.apiCallStatus={status:l.Bn.COMPLETED,action:"FetchForwardingHistory"},this.eventsData=t.eventsData.currentValue,this.forwardingHistoryData=this.eventsData,t.eventsData.firstChange||this.loadForwardingEventsTable(this.forwardingHistoryData)),t.filterValue&&!t.filterValue.firstChange&&this.applyFilter()}onForwardingEventClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Event Information",message:[[{key:"timestamp",value:t.timestamp,title:"Timestamp",width:25,type:l.Gi.DATE_TIME},{key:"amt_in",value:t.amt_in,title:"Inbound Amount (Sats)",width:25,type:l.Gi.NUMBER},{key:"amt_out",value:t.amt_out,title:"Outbound Amount (Sats)",width:25,type:l.Gi.NUMBER},{key:"fee_msat",value:t.fee_msat,title:"Fee (mSats)",width:25,type:l.Gi.NUMBER}],[{key:"alias_in",value:t.alias_in,title:"Inbound Peer Alias",width:25,type:l.Gi.STRING},{key:"chan_id_in",value:t.chan_id_in,title:"Inbound Channel ID",width:25,type:l.Gi.STRING},{key:"alias_out",value:t.alias_out,title:"Outbound Peer Alias",width:25,type:l.Gi.STRING},{key:"chan_id_out",value:t.chan_id_out,title:"Outbound Channel ID",width:25,type:l.Gi.STRING}]]}}}))}loadForwardingEventsTable(t){this.forwardingHistoryEvents=new r.by(t?[...t]:[]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.forwardingHistoryEvents.filterPredicate=(a,o)=>((a.timestamp?this.datePipe.transform(new Date(1e3*a.timestamp),"dd/MMM/YYYY HH:mm").toLowerCase():"")+JSON.stringify(a).toLowerCase()).includes(o),this.forwardingHistoryEvents.paginator=this.paginator,this.logger.info(this.forwardingHistoryEvents)}onDownloadCSV(){this.forwardingHistoryEvents&&this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")}applyFilter(){this.forwardingHistoryEvents&&(this.forwardingHistoryEvents.filter=this.filterValue.trim().toLowerCase())}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh),e.Y36(p.uU))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-forwarding-history"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},inputs:{eventsData:"eventsData",filterValue:"filterValue"},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Events")}]),e.TTD],decls:5,vars:4,consts:[["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","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","keyup"],["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,"dataSource"],["table",""],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias_in"],["matColumnDef","alias_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","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","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","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",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(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,xu,2,1,"div",1),e.YNc(2,Zu,4,1,"div",2),e.YNc(3,Bu,30,7,"div",3),e.YNc(4,Vu,1,3,"mat-paginator",4),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",""!==a.errorMessage),e.xp6(1),e.Q6J("ngIf",""===a.errorMessage),e.xp6(1),e.Q6J("ngIf",""===a.errorMessage),e.xp6(1),e.Q6J("ngIf",""===a.errorMessage))},directives:[_.xw,_.Wh,p.O5,_.yH,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,r.BZ,A.YE,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,P.pW,r.ge,A.nU,r.ev,R.gD,R.$L,Y.ey,L.lW,r.yh,r.Q2,p.mk,q.oO,r.XQ,r.Gk,S.NW],pipes:[p.uU,p.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();const Gu=["tableIn"],zu=["tableOut"],Wu=["paginatorIn"],Xu=["paginatorOut"];function $u(n,i){if(1&n&&(e.TgZ(0,"div",3),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.errorMessage)}}function ju(n,i){1&n&&e._UZ(0,"mat-progress-bar",37)}function Ku(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Channel ID"),e.qZA())}const de=function(n){return{"max-width":n}};function ep(n,i){if(1&n&&(e.TgZ(0,"td",39),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("ngStyle",e.VKq(2,de,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.Oqu(t.chan_id)}}function tp(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Peer Alias"),e.qZA())}function np(n,i){if(1&n&&(e.TgZ(0,"td",39),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("ngStyle",e.VKq(2,de,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.Oqu(t.alias)}}function ap(n,i){1&n&&(e.TgZ(0,"th",40),e._uU(1,"Events"),e.qZA())}function ip(n,i){if(1&n&&(e.TgZ(0,"td",41),e.TgZ(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.events))}}function op(n,i){1&n&&(e.TgZ(0,"th",40),e._uU(1,"Total Amount (Sats)"),e.qZA())}function sp(n,i){if(1&n&&(e.TgZ(0,"td",41),e.TgZ(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.total_amount))}}function lp(n,i){1&n&&(e.TgZ(0,"th",43),e.TgZ(1,"span",42),e._uU(2,"Actions"),e.qZA(),e.qZA())}function rp(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",44),e.TgZ(1,"button",45),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw(2).onRoutingPeerClick(u,o,"in")}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function cp(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No incoming routing peer available."),e.qZA())}function up(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting incoming routing peers..."),e.qZA())}function pp(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(t.errorMessage)}}function mp(n,i){if(1&n&&(e.TgZ(0,"td",46),e.YNc(1,cp,2,0,"p",47),e.YNc(2,up,2,0,"p",47),e.YNc(3,pp,2,1,"p",47),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",(!(null!=t.RoutingPeersIncoming&&t.RoutingPeersIncoming.data)||(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.RoutingPeersIncoming&&t.RoutingPeersIncoming.data)||(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.RoutingPeersIncoming&&t.RoutingPeersIncoming.data)||(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Ve=function(n){return{"display-none":n}};function _p(n,i){if(1&n&&e._UZ(0,"tr",48),2&n){const t=e.oxw(2);e.Q6J("ngClass",e.VKq(1,Ve,(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)>0))}}function dp(n,i){1&n&&e._UZ(0,"tr",49)}function hp(n,i){1&n&&e._UZ(0,"tr",50)}function gp(n,i){1&n&&e._UZ(0,"mat-progress-bar",37)}function fp(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Channel ID"),e.qZA())}function Cp(n,i){if(1&n&&(e.TgZ(0,"td",39),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("ngStyle",e.VKq(2,de,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.Oqu(t.chan_id)}}function xp(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Peer Alias"),e.qZA())}function Zp(n,i){if(1&n&&(e.TgZ(0,"td",39),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("ngStyle",e.VKq(2,de,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.Oqu(t.alias)}}function yp(n,i){1&n&&(e.TgZ(0,"th",40),e._uU(1,"Events"),e.qZA())}function Tp(n,i){if(1&n&&(e.TgZ(0,"td",41),e.TgZ(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.events))}}function bp(n,i){1&n&&(e.TgZ(0,"th",40),e._uU(1,"Total Amount (Sats)"),e.qZA())}function Ap(n,i){if(1&n&&(e.TgZ(0,"td",41),e.TgZ(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.total_amount))}}function vp(n,i){1&n&&(e.TgZ(0,"th",43),e.TgZ(1,"span",42),e._uU(2,"Actions"),e.qZA(),e.qZA())}function wp(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",51),e.TgZ(1,"button",52),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw(2).onRoutingPeerClick(u,o,"out")}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function qp(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No outgoing routing peer available."),e.qZA())}function Sp(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting outgoing routing peers..."),e.qZA())}function Lp(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(t.errorMessage)}}function kp(n,i){if(1&n&&(e.TgZ(0,"td",46),e.YNc(1,qp,2,0,"p",47),e.YNc(2,Sp,2,0,"p",47),e.YNc(3,Lp,2,1,"p",47),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",(!(null!=t.RoutingPeersOutgoing&&t.RoutingPeersOutgoing.data)||(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.RoutingPeersOutgoing&&t.RoutingPeersOutgoing.data)||(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.RoutingPeersOutgoing&&t.RoutingPeersOutgoing.data)||(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}function Fp(n,i){if(1&n&&e._UZ(0,"tr",48),2&n){const t=e.oxw(2);e.Q6J("ngClass",e.VKq(1,Ve,(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)>0))}}function Up(n,i){1&n&&e._UZ(0,"tr",49)}function Np(n,i){1&n&&e._UZ(0,"tr",50)}const Op=function(n,i){return{"mt-2":n,"mt-1":i}},Rp=function(){return["no_incoming_event"]},Ip=function(n){return{"mt-2":n}},Mp=function(){return["no_outgoing_event"]};function Dp(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",4),e.TgZ(1,"div",5),e.TgZ(2,"div",6),e.TgZ(3,"div",7),e._uU(4,"Incoming"),e.qZA(),e.TgZ(5,"mat-form-field",8),e.TgZ(6,"input",9),e.NdJ("keyup",function(){return e.CHM(t),e.oxw().applyIncomingFilter()})("ngModelChange",function(o){return e.CHM(t),e.oxw().filterIn=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",10),e.YNc(8,ju,1,0,"mat-progress-bar",11),e.TgZ(9,"table",12,13),e.ynx(11,14),e.YNc(12,Ku,2,0,"th",15),e.YNc(13,ep,2,4,"td",16),e.BQk(),e.ynx(14,17),e.YNc(15,tp,2,0,"th",15),e.YNc(16,np,2,4,"td",16),e.BQk(),e.ynx(17,18),e.YNc(18,ap,2,0,"th",19),e.YNc(19,ip,4,3,"td",20),e.BQk(),e.ynx(20,21),e.YNc(21,op,2,0,"th",19),e.YNc(22,sp,4,3,"td",20),e.BQk(),e.ynx(23,22),e.YNc(24,lp,3,0,"th",23),e.YNc(25,rp,3,0,"td",24),e.BQk(),e.ynx(26,25),e.YNc(27,mp,4,3,"td",26),e.BQk(),e.YNc(28,_p,1,3,"tr",27),e.YNc(29,dp,1,0,"tr",28),e.YNc(30,hp,1,0,"tr",29),e.qZA(),e.qZA(),e._UZ(31,"mat-paginator",30,31),e.qZA(),e.TgZ(33,"div",5),e.TgZ(34,"div",6),e.TgZ(35,"div",7),e._uU(36,"Outgoing"),e.qZA(),e.TgZ(37,"mat-form-field",8),e.TgZ(38,"input",9),e.NdJ("keyup",function(){return e.CHM(t),e.oxw().applyOutgoingFilter()})("ngModelChange",function(o){return e.CHM(t),e.oxw().filterOut=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(39,"div",10),e.YNc(40,gp,1,0,"mat-progress-bar",11),e.TgZ(41,"table",32,33),e.ynx(43,14),e.YNc(44,fp,2,0,"th",15),e.YNc(45,Cp,2,4,"td",16),e.BQk(),e.ynx(46,17),e.YNc(47,xp,2,0,"th",15),e.YNc(48,Zp,2,4,"td",16),e.BQk(),e.ynx(49,18),e.YNc(50,yp,2,0,"th",19),e.YNc(51,Tp,4,3,"td",20),e.BQk(),e.ynx(52,21),e.YNc(53,bp,2,0,"th",19),e.YNc(54,Ap,4,3,"td",20),e.BQk(),e.ynx(55,22),e.YNc(56,vp,3,0,"th",23),e.YNc(57,wp,3,0,"td",34),e.BQk(),e.ynx(58,35),e.YNc(59,kp,4,3,"td",26),e.BQk(),e.YNc(60,Fp,1,3,"tr",27),e.YNc(61,Up,1,0,"tr",28),e.YNc(62,Np,1,0,"tr",29),e.qZA(),e.qZA(),e._UZ(63,"mat-paginator",30,36),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(2),e.Q6J("ngClass",e.WLB(22,Op,t.screenSize===t.screenSizeEnum.XS,t.screenSize===t.screenSizeEnum.SM)),e.xp6(4),e.Q6J("ngModel",t.filterIn),e.xp6(2),e.Q6J("ngIf",t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",t.RoutingPeersIncoming),e.xp6(19),e.Q6J("matFooterRowDef",e.DdM(25,Rp)),e.xp6(1),e.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns),e.xp6(1),e.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS),e.xp6(3),e.Q6J("ngClass",e.VKq(26,Ip,t.screenSize!==t.screenSizeEnum.LG)),e.xp6(4),e.Q6J("ngModel",t.filterOut),e.xp6(2),e.Q6J("ngIf",t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",t.RoutingPeersOutgoing),e.xp6(19),e.Q6J("matFooterRowDef",e.DdM(28,Mp)),e.xp6(1),e.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns),e.xp6(1),e.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let Pp=(()=>{class n{constructor(t,a,o){this.logger=t,this.commonService=a,this.store=o,this.routingPeersData=[],this.displayedColumns=[],this.RoutingPeersIncoming=new r.by([]),this.RoutingPeersOutgoing=new r.by([]),this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.filterIn="",this.filterOut="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["chan_id","events","actions"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["chan_id","alias","events","total_amount"]):(this.flgSticky=!0,this.displayedColumns=["chan_id","alias","events","total_amount"])}ngOnInit(){this.store.select(C.Bo).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{var a;this.errorMessage="",this.apiCallStatus=t.apiCallStatus,(null===(a=t.apiCallStatus)||void 0===a?void 0:a.status)===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.routingPeersData=t.forwardingHistory.forwarding_events?t.forwardingHistory.forwarding_events:[],this.routingPeersData.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.routingPeersData),this.logger.info(t.apiCallStatus),this.logger.info(t.forwardingHistory)})}ngAfterViewInit(){this.routingPeersData.length>0&&this.loadRoutingPeersTable(this.routingPeersData)}onRoutingPeerClick(t,a,o){let s=" Routing Information";s="in"===o?"Incoming"+s:"Outgoing"+s,this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:s,message:[[{key:"chan_id",value:t.chan_id,title:"Channel ID",width:50,type:l.Gi.STRING},{key:"alias",value:t.alias,title:"Peer Alias",width:50,type:l.Gi.STRING}],[{key:"events",value:t.events,title:"Events",width:50,type:l.Gi.NUMBER},{key:"total_amount",value:t.total_amount,title:"Total Amount (Sats)",width:50,type:l.Gi.NUMBER}]]}}}))}loadRoutingPeersTable(t){if(t.length>0){const a=this.groupRoutingPeers(t);this.RoutingPeersIncoming=new r.by(a[0]),this.RoutingPeersIncoming.sort=this.sortIn,this.RoutingPeersIncoming.filterPredicate=(o,s)=>JSON.stringify(o).toLowerCase().includes(s),this.RoutingPeersIncoming.paginator=this.paginatorIn,this.logger.info(this.RoutingPeersIncoming),this.RoutingPeersOutgoing=new r.by(a[1]),this.RoutingPeersOutgoing.sort=this.sortOut,this.RoutingPeersOutgoing.filterPredicate=(o,s)=>JSON.stringify(o).toLowerCase().includes(s),this.RoutingPeersOutgoing.paginator=this.paginatorOut,this.logger.info(this.RoutingPeersOutgoing)}else this.RoutingPeersIncoming=new r.by([]),this.RoutingPeersOutgoing=new r.by([]);this.applyIncomingFilter(),this.applyOutgoingFilter()}groupRoutingPeers(t){const a=[],o=[];return t.forEach(s=>{const u=a.find(N=>N.chan_id===s.chan_id_in),g=o.find(N=>N.chan_id===s.chan_id_out);u?(u.events++,u.total_amount=+u.total_amount+ +s.amt_in):a.push({chan_id:s.chan_id_in,alias:s.alias_in,events:1,total_amount:+s.amt_in}),g?(g.events++,g.total_amount=+g.total_amount+ +s.amt_out):o.push({chan_id:s.chan_id_out,alias:s.alias_out,events:1,total_amount:+s.amt_out})}),[this.commonService.sortDescByKey(a,"total_amount"),this.commonService.sortDescByKey(o,"total_amount")]}applyIncomingFilter(){this.RoutingPeersIncoming.filter=this.filterIn.toLowerCase()}applyOutgoingFilter(){this.RoutingPeersOutgoing.filter=this.filterOut.toLowerCase()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-routing-peers"]],viewQuery:function(t,a){if(1&t&&(e.Gf(Gu,5,A.YE),e.Gf(zu,5,A.YE),e.Gf(Wu,5),e.Gf(Xu,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sortIn=o.first),e.iGM(o=e.CRH())&&(a.sortOut=o.first),e.iGM(o=e.CRH())&&(a.paginatorIn=o.first),e.iGM(o=e.CRH())&&(a.paginatorOut=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Routing peers")}])],decls:3,vars:2,consts:[["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",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"],["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","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["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"],["tableIn",""],["matColumnDef","chan_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","events"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","total_amount"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-2","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","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["paginatorIn",""],["mat-table","","matSort","",1,"overflow-auto","outgoing-table",3,"dataSource"],["tableOut",""],["mat-cell","","class","pl-2",4,"matCellDef"],["matColumnDef","no_outgoing_event"],["paginatorOut",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pr-3"],["mat-cell","","fxLayoutAlign","end center",1,"pl-2"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],["mat-cell","",1,"pl-2"],["mat-stroked-button","","color","primary","type","button","tabindex","5",3,"click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,$u,2,1,"div",1),e.YNc(2,Dp,65,29,"div",2),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",""!==a.errorMessage),e.xp6(1),e.Q6J("ngIf",""===a.errorMessage))},directives:[_.xw,_.Wh,p.O5,_.yH,p.mk,q.oO,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,r.BZ,A.YE,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,L.lW,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-chan_id[_ngcontent-%COMP%], .mat-column-alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function Jp(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",7),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().activeLink=s.link}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw();e.s9C("routerLink",t.link),e.Q6J("active",a.activeLink===t.link),e.xp6(1),e.Oqu(t.name)}}let Ep=(()=>{class n{constructor(t){this.router=t,this.faChartBar=Z.koM,this.links=[{link:"routingreport",name:"Routing"},{link:"transactions",name:"Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new m.x,new m.x,new m.x,new m.x]}ngOnInit(){const t=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(a=>a instanceof y.Av)).subscribe({next:a=>{const o=this.links.find(s=>a.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-reports"]],decls:10,vars:2,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-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Reports"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e.TgZ(7,"nav",5),e.YNc(8,Jp,2,3,"div",6),e.qZA(),e._UZ(9,"router-outlet"),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faChartBar),e.xp6(7),e.Q6J("ngForOf",a.links))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,D.BU,p.sg,y.lC,D.Nj,y.rH],styles:[""]}),n})();var Ge=h(7671),ze=h(6046);function Qp(n,i){1&n&&e._UZ(0,"mat-progress-bar",16)}function Yp(n,i){if(1&n&&(e.TgZ(0,"div",17),e._uU(1),e.ALo(2,"number"),e.ALo(3,"number"),e.qZA()),2&n){const t=e.oxw();e.Q6J("@fadeIn",t.events.total_fee_msat),e.xp6(1),e.AsE("",e.xi3(2,3,t.events.total_fee_msat/1e3||0,"1.0-2")," Sats/",e.lcZ(3,6,(null==t.events||null==t.events.forwarding_events?null:t.events.forwarding_events.length)||0)," Events")}}function Hp(n,i){1&n&&(e.TgZ(0,"div",18),e._uU(1,"No routing report for the selected period"),e.qZA())}const Bp=function(n){return{"error-border":n}};function Vp(n,i){if(1&n&&(e.TgZ(0,"div",19),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(2,Bp,"Getting Forwarding History..."!==t.errorMessage&&""!==t.errorMessage)),e.xp6(1),e.Oqu(t.errorMessage)}}function Gp(n,i){if(1&n&&(e.TgZ(0,"span"),e.TgZ(1,"span",22),e._uU(2),e.ALo(3,"number"),e.qZA(),e.TgZ(4,"span",22),e._uU(5),e.ALo(6,"number"),e.qZA(),e.qZA()),2&n){const t=i.model,a=e.oxw(2);e.xp6(2),e.hij("Events: ",e.lcZ(3,2,(a.selReportBy===a.reportBy.EVENTS?t.value:t.extra.totalEvents)||0),""),e.xp6(3),e.hij("Fee: ",e.xi3(6,4,(a.selReportBy===a.reportBy.EVENTS?t.extra.totalFees:t.value)||0,"1.0-2"),"")}}function zp(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"ngx-charts-bar-vertical",20),e.NdJ("select",function(o){return e.CHM(t),e.oxw().onChartBarSelected(o)})("mouseup",function(o){return e.CHM(t),e.oxw().onChartMouseUp(o)}),e.YNc(1,Gp,7,7,"ng-template",null,21,e.W1O),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("view",t.view)("results",t.routingReportData)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",t.showYAxisLabel)("xAxisLabel",t.xAxisLabel)("yAxisLabel",t.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)}}function Wp(n,i){if(1&n&&e._UZ(0,"rtl-forwarding-history",23),2&n){const t=e.oxw();e.Q6J("eventsData",null==t.events?null:t.events.forwarding_events)("filterValue",t.eventFilterValue)}}let Xp=(()=>{class n{constructor(t,a,o,s){this.logger=t,this.dataService=a,this.commonService=o,this.store=s,this.reportPeriod=l.op[0],this.secondsInADay=86400,this.events={},this.eventFilterValue="",this.reportBy=l.Xr,this.selReportBy=l.Xr.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=l.cu,this.errorMessage="",this.unSubs=[new m.x,new m.x,new m.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===l.cu.XS||this.screenSize===l.cu.SM),this.store.select(C.Q5).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{t.identity_pubkey&&setTimeout(()=>{this.fetchEvents(this.startDate,this.endDate)},10)}),this.commonService.containerSizeUpdated.pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{switch(this.screenSize){case l.cu.MD:this.screenPaddingX=t.width/10;break;case l.cu.LG:this.screenPaddingX=t.width/16;break;default:this.screenPaddingX=t.width/20}this.view=[t.width-this.screenPaddingX,t.height/2.2],this.logger.info("Container Size: "+JSON.stringify(t)),this.logger.info("View: "+JSON.stringify(this.view))})}fetchEvents(t,a){this.errorMessage=l.m6.GET_FORWARDING_HISTORY;const o=Math.round(t.getTime()/1e3).toString(),s=Math.round(a.getTime()/1e3).toString();this.dataService.getForwardingHistory(o,s).pipe((0,d.R)(this.unSubs[2])).subscribe({next:u=>{this.errorMessage="",u.forwarding_events&&u.forwarding_events.length?(u.forwarding_events=u.forwarding_events.reverse(),this.events=u,this.routingReportData=this.selReportBy===this.reportBy.EVENTS?this.prepareEventsReport(t):this.prepareFeeReport(t)):(this.events={forwarding_events:[],total_fee_msat:0},this.routingReportData=[])},error:u=>{this.errorMessage=u}})}onChartMouseUp(t){"svg"===t.srcElement.tagName&&t.srcElement.classList.length>0&&"ngx-charts"===t.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(t){this.eventFilterValue=this.reportPeriod===l.op[1]?t.name+"/"+this.startDate.getFullYear():t.name.toString().padStart(2,"0")+"/"+l.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}prepareFeeReport(t){const a=Math.round(t.getTime()/1e3),o=[];if(this.events.total_fee_msat=0,this.reportPeriod===l.op[1]){for(let s=0;s<12;s++)o.push({name:l.gg[s].name,value:0,extra:{totalEvents:0}});this.events.forwarding_events.map(s=>{const u=new Date(1e3*+s.timestamp).getMonth();return o[u].value=o[u].value+ +s.fee_msat/1e3,o[u].extra.totalEvents=o[u].extra.totalEvents+1,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +s.fee_msat,this.events})}else{for(let s=0;s{const u=Math.floor((+s.timestamp-a)/this.secondsInADay);return o[u].value=o[u].value+ +s.fee_msat/1e3,o[u].extra.totalEvents=o[u].extra.totalEvents+1,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +s.fee_msat,this.events})}return o}prepareEventsReport(t){const a=Math.round(t.getTime()/1e3),o=[];if(this.events.total_fee_msat=0,this.reportPeriod===l.op[1]){for(let s=0;s<12;s++)o.push({name:l.gg[s].name,value:0,extra:{totalFees:0}});this.events.forwarding_events.map(s=>{const u=new Date(1e3*+s.timestamp).getMonth();return o[u].value=o[u].value+1,o[u].extra.totalFees=o[u].extra.totalFees+ +s.fee_msat/1e3,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +s.fee_msat,this.events})}else{for(let s=0;s{const u=Math.floor((+s.timestamp-a)/this.secondsInADay);return o[u].value=o[u].value+1,o[u].extra.totalFees=o[u].extra.totalFees+ +s.fee_msat/1e3,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +s.fee_msat,this.events})}return o}onSelectionChange(t){const a=t.selDate.getMonth(),o=t.selDate.getFullYear();this.reportPeriod=t.selScrollRange,this.reportPeriod===l.op[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.fetchEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(t,a){return 1===t&&a%4==0?l.gg[t].days+1:l.gg[t].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(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(j.D),e.Y36(O.v),e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-routing-report"]],hostBindings:function(t,a){1&t&&e.NdJ("mouseup",function(s){return a.onChartMouseUp(s)})},decls:20,vars:9,consts:[["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 start",1,"my-1",3,"ngModel","ngModelChange","change"],[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"],[3,"eventsData","filterValue",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,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"eventsData","filterValue"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"rtl-horizontal-scroller",1),e.NdJ("stepChanged",function(s){return a.onSelectionChange(s)}),e.qZA(),e.TgZ(2,"div",2),e.TgZ(3,"mat-radio-group",3),e.NdJ("ngModelChange",function(s){return a.selReportBy=s})("change",function(){return a.onSelReportByChange()}),e.TgZ(4,"span",4),e._uU(5,"Report By: "),e.qZA(),e.TgZ(6,"mat-radio-button",5),e._uU(7,"Fees"),e.qZA(),e.TgZ(8,"mat-radio-button",6),e._uU(9,"Events"),e.qZA(),e.qZA(),e.qZA(),e.YNc(10,Qp,1,0,"mat-progress-bar",7),e.TgZ(11,"div",8),e.YNc(12,Yp,4,8,"div",9),e.YNc(13,Hp,2,0,"div",10),e.YNc(14,Vp,2,4,"div",11),e.TgZ(15,"div",12),e.YNc(16,zp,3,11,"ngx-charts-bar-vertical",13),e.qZA(),e.qZA(),e.TgZ(17,"div",14),e.TgZ(18,"div",12),e.YNc(19,Wp,1,2,"rtl-forwarding-history",15),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Q6J("ngModel",a.selReportBy),e.xp6(3),e.s9C("value",a.reportBy.FEES),e.xp6(2),e.s9C("value",a.reportBy.EVENTS),e.xp6(2),e.Q6J("ngIf","Getting Forwarding History..."===a.errorMessage),e.xp6(2),e.Q6J("ngIf",a.routingReportData.length>0&&a.events.forwarding_events&&a.events.forwarding_events.length&&a.events.forwarding_events.length>0),e.xp6(1),e.Q6J("ngIf",(a.routingReportData.length<=0||a.events.forwarding_events.length<=0)&&""===a.errorMessage),e.xp6(1),e.Q6J("ngIf",""!==a.errorMessage),e.xp6(2),e.Q6J("ngIf",a.routingReportData.length>0&&a.events.forwarding_events&&a.events.forwarding_events.length&&a.events.forwarding_events.length>0),e.xp6(3),e.Q6J("ngIf",a.events&&(null==a.events?null:a.events.forwarding_events)&&a.events.forwarding_events.length&&a.events.forwarding_events.length>0))},directives:[_.xw,_.Wh,_.yH,Ge.D,ie.VQ,c.JJ,c.On,ie.U0,p.O5,P.pW,p.mk,q.oO,ze.K$,Be],pipes:[p.JJ],styles:[""],data:{animation:[ye.J]}}),n})();var $p=h(165);function jp(n,i){1&n&&(e.TgZ(0,"div",11),e._UZ(1,"mat-progress-bar",12),e.TgZ(2,"span"),e._uU(3,"Getting transactions data..."),e.qZA(),e.qZA())}function Kp(n,i){if(1&n&&(e.TgZ(0,"div",13),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.errorMessage)}}function em(n,i){if(1&n&&(e.TgZ(0,"div",16),e._uU(1),e.ALo(2,"number"),e.ALo(3,"number"),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.AsE(" Paid ",e.xi3(2,2,t.transactionsReportSummary.amountPaidSelectedPeriod/1e3||0,"1.0-2")," Sats/",e.lcZ(3,5,t.transactionsReportSummary.paymentsSelectedPeriod)," Payments ")}}function tm(n,i){if(1&n&&(e.TgZ(0,"div",16),e._uU(1),e.ALo(2,"number"),e.ALo(3,"number"),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.AsE(" Received ",e.xi3(2,2,t.transactionsReportSummary.amountReceivedSelectedPeriod/1e3||0,"1.0-2")," Sats/",e.lcZ(3,5,t.transactionsReportSummary.invoicesSelectedPeriod)," Invoices ")}}function nm(n,i){if(1&n&&(e.TgZ(0,"div",14),e.YNc(1,em,4,7,"div",15),e.YNc(2,tm,4,7,"div",15),e.qZA()),2&n){const t=e.oxw();e.Q6J("@fadeIn",t.transactionsReportSummary),e.xp6(1),e.Q6J("ngIf",t.transactionsReportSummary.paymentsSelectedPeriod>0),e.xp6(1),e.Q6J("ngIf",t.transactionsReportSummary.invoicesSelectedPeriod)}}function am(n,i){1&n&&(e.TgZ(0,"div",17),e._uU(1,"No transactions report for the selected period"),e.qZA())}function im(n,i){if(1&n&&(e.TgZ(0,"span",21),e._uU(1),e.ALo(2,"number"),e.ALo(3,"number"),e.qZA()),2&n){const t=i.model;e.xp6(1),e.HOy("",t.name,": ",e.xi3(2,4,t.value||0,"1.0-2"),"/# ","Paid"===t.name?"Payments":"Invoices",": ",e.lcZ(3,7,(null==t.extra?null:t.extra.total)||0),"")}}function om(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"ngx-charts-bar-vertical-2d",19),e.NdJ("select",function(o){return e.CHM(t),e.oxw(2).onChartBarSelected(o)})("mouseup",function(o){return e.CHM(t),e.oxw(2).onChartMouseUp(o)}),e.YNc(1,im,4,9,"ng-template",null,20,e.W1O),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("view",t.view)("results",t.transactionsReportData)("noBarWhenZero",!1)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",t.showYAxisLabel)("xAxisLabel",t.xAxisLabel)("yAxisLabel",t.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)("groupPadding",t.reportPeriod===t.scrollRanges[0]?2:8)}}function sm(n,i){if(1&n&&(e.TgZ(0,"div",9),e.YNc(1,om,3,13,"ngx-charts-bar-vertical-2d",18),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.transactionsReportData.length>0&&t.transactionsNonZeroReportData.length>0)}}function lm(n,i){if(1&n&&e._UZ(0,"rtl-transactions-report-table",22),2&n){const t=e.oxw();e.Q6J("dataList",t.transactionsNonZeroReportData)("dataRange",t.reportPeriod)("filterValue",t.transactionFilterValue)}}let rm=(()=>{class n{constructor(t,a,o){this.logger=t,this.commonService=a,this.store=o,this.scrollRanges=l.op,this.reportPeriod=l.op[0],this.secondsInADay=86400,this.payments=[],this.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=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===l.cu.XS||this.screenSize===l.cu.SM),this.store.select(C.l5).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{t.apiCallStatus.status===l.Bn.UN_INITIATED&&this.store.dispatch((0,b.Jo)()),this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.payments=t.allLightningTransactions.listPaymentsAll.payments||[],this.invoices=t.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(t)}),this.commonService.containerSizeUpdated.pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{switch(this.screenSize){case l.cu.MD:this.screenPaddingX=t.width/10;break;case l.cu.LG:this.screenPaddingX=t.width/16;break;default:this.screenPaddingX=t.width/20}this.view=[t.width-this.screenPaddingX,t.height/2.2],this.logger.info("Container Size: "+JSON.stringify(t)),this.logger.info("View: "+JSON.stringify(this.view))})}onChartMouseUp(t){"svg"===t.srcElement.tagName&&t.srcElement.classList.length>0&&"ngx-charts"===t.srcElement.classList[0]&&(this.transactionFilterValue="")}onChartBarSelected(t){this.transactionFilterValue=this.reportPeriod===l.op[1]?t.series+"/"+this.startDate.getFullYear():t.series.toString().padStart(2,"0")+"/"+l.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(t,a){const o=Math.round(t.getTime()/1e3),s=Math.round(a.getTime()/1e3),u=[];this.transactionsNonZeroReportData=[],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};const g=this.payments.filter(x=>"SUCCEEDED"===x.status&&x.creation_date>=o&&x.creation_datex.settled&&+x.creation_date>=o&&+x.creation_date{const U=new Date(1e3*+x.creation_date).getMonth();return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+ +x.value_msat+ +x.fee_msat,u[U].series[0].value=u[U].series[0].value+(+x.value_msat+ +x.fee_msat)/1e3,u[U].series[0].extra.total=u[U].series[0].extra.total+1,this.transactionsReportSummary}),N.map(x=>{const U=new Date(1e3*+x.creation_date).getMonth();return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+ +x.amt_paid_msat,u[U].series[1].value=u[U].series[1].value+ +x.amt_paid_msat/1e3,u[U].series[1].extra.total=u[U].series[1].extra.total+1,this.transactionsReportSummary})}else{for(let x=0;x{const U=Math.floor((+x.creation_date-o)/this.secondsInADay);return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+ +x.value_msat+ +x.fee_msat,u[U].series[0].value=u[U].series[0].value+(+x.value_msat+ +x.fee_msat)/1e3,u[U].series[0].extra.total=u[U].series[0].extra.total+1,this.transactionsReportSummary}),N.map(x=>{const U=Math.floor((+x.creation_date-o)/this.secondsInADay);return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+ +x.amt_paid_msat,u[U].series[1].value=u[U].series[1].value+ +x.amt_paid_msat/1e3,u[U].series[1].extra.total=u[U].series[1].extra.total+1,this.transactionsReportSummary})}return u}prepareTableData(){return this.transactionsReportData.reduce((t,a)=>a.series[0].extra.total>0||a.series[1].extra.total>0?t.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}):t,[])}onSelectionChange(t){const a=t.selDate.getMonth(),o=t.selDate.getFullYear();this.reportPeriod=t.selScrollRange,this.reportPeriod===l.op[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(t,a){return 1===t&&a%4==0?l.gg[t].days+1:l.gg[t].days}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-transactions-report"]],hostBindings:function(t,a){1&t&&e.NdJ("mouseup",function(s){return a.onChartMouseUp(s)})},decls:11,vars:6,consts:[["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,"dataList","dataRange","filterValue",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,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"dataList","dataRange","filterValue"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"rtl-horizontal-scroller",3),e.NdJ("stepChanged",function(s){return a.onSelectionChange(s)}),e.qZA(),e.YNc(4,jp,4,0,"div",4),e.YNc(5,Kp,2,1,"div",5),e.YNc(6,nm,3,3,"div",6),e.YNc(7,am,2,0,"div",7),e.YNc(8,sm,2,1,"div",8),e.TgZ(9,"div",9),e.YNc(10,lm,1,3,"rtl-transactions-report-table",10),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.ERROR),e.xp6(1),e.Q6J("ngIf",a.transactionsNonZeroReportData.length>0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",a.transactionsNonZeroReportData.length<=0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",a.transactionsNonZeroReportData.length>0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED),e.xp6(2),e.Q6J("ngIf",a.transactionsNonZeroReportData.length>0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED))},directives:[_.xw,_.Wh,_.yH,Ge.D,p.O5,P.pW,ze.H5,$p.g],pipes:[p.JJ],styles:[""],data:{animation:[ye.J]}}),n})();const cm=["form"];function um(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"UTXO Label is required."),e.qZA())}function pm(n,i){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.labelError)}}function mm(n,i){if(1&n&&(e.TgZ(0,"div",16),e._UZ(1,"fa-icon",17),e.YNc(2,pm,2,1,"span",11),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(1),e.Q6J("ngIf",""!==t.labelError)}}let _m=(()=>{class n{constructor(t,a,o,s,u,g){this.dialogRef=t,this.data=a,this.dataService=o,this.store=s,this.snackBar=u,this.commonService=g,this.faExclamationTriangle=Z.eHv,this.utxo=null,this.label="",this.labelError="",this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x]}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.outpoint.txid_bytes,this.label,!0).pipe((0,d.R)(this.unSubs[0])).subscribe({next:t=>{this.store.dispatch((0,b.mC)()),this.store.dispatch((0,b.Ly)()),this.snackBar.open("Successfully labelled the UTXO."),this.dialogRef.close()},error:t=>{this.labelError=t}})}resetData(){this.labelError="",this.label=""}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(j.D),e.Y36(w.yh),e.Y36(te.ux),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-on-chain-lebel-modal"]],viewQuery:function(t,a){if(1&t&&e.Gf(cm,7),2&t){let o;e.iGM(o=e.CRH())&&(a.form=o.first)}},decls:20,vars:4,consts:[["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","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"],["form","ngForm"],["fxFlex.gt-sm","100"],["autoFocus","","matInput","","placeholder","UTXO Label","name","label","tabindex","1","required","",3,"ngModel","ngModelChange"],[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-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5,"Label UTXO"),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.TgZ(9,"form",7,8),e.NdJ("submit",function(){return a.onLabelUTXO()})("reset",function(){return a.resetData()}),e.TgZ(11,"mat-form-field",9),e.TgZ(12,"input",10),e.NdJ("ngModelChange",function(s){return a.label=s}),e.qZA(),e.YNc(13,um,2,0,"mat-error",11),e.qZA(),e.YNc(14,mm,3,2,"div",12),e.TgZ(15,"div",13),e.TgZ(16,"button",14),e._uU(17,"Clear"),e.qZA(),e.TgZ(18,"button",15),e._uU(19,"Label UTXO"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("mat-dialog-close",!1),e.xp6(6),e.Q6J("ngModel",a.label),e.xp6(1),e.Q6J("ngIf",!a.label),e.xp6(1),e.Q6J("ngIf",""!==a.labelError))},directives:[_.xw,_.yH,T.dk,_.Wh,L.lW,J.ZT,T.dn,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,W.h,c.Q7,c.JJ,c.On,p.O5,f.TO,M.BN],styles:[""]}),n})();function dm(n,i){1&n&&e._UZ(0,"mat-progress-bar",28)}function hm(n,i){1&n&&(e.TgZ(0,"th",29),e._uU(1," Transaction ID "),e.qZA())}function gm(n,i){1&n&&(e.TgZ(0,"span",35),e.TgZ(1,"mat-icon",36),e._uU(2,"warning"),e.qZA(),e.qZA())}function fm(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,gm,3,0,"span",34),e.qZA()),2&n){const t=e.oxw().$implicit;e.oxw();const a=e.MAs(34);e.xp6(1),e.Q6J("ngIf",t.amount_sat<1e3)("ngIfElse",a)}}const We=function(n){return{"max-width":n}};function Cm(n,i){if(1&n&&(e.TgZ(0,"td",30),e.TgZ(1,"span",31),e.YNc(2,fm,2,2,"span",32),e.TgZ(3,"span",33),e._uU(4),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(3,We,a.screenSize===a.screenSizeEnum.XS?"12rem":"25rem")),e.xp6(2),e.Q6J("ngIf",a.utxos.length>0&&a.dustUtxos.length>0&&!a.isDustUTXO),e.xp6(2),e.Oqu(t.outpoint.txid_str)}}function xm(n,i){1&n&&(e.TgZ(0,"th",37),e._uU(1," Output "),e.qZA())}function Zm(n,i){if(1&n&&(e.TgZ(0,"td",38),e.TgZ(1,"span",39),e._uU(2),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(t.outpoint.output_index)}}function ym(n,i){1&n&&(e.TgZ(0,"th",29),e._uU(1," Label "),e.qZA())}function Tm(n,i){if(1&n&&(e.TgZ(0,"td",30),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,We,a.screenSize===a.screenSizeEnum.XS?"12rem":"25rem")),e.xp6(1),e.hij(" ",null==t?null:t.label," ")}}function bm(n,i){1&n&&(e.TgZ(0,"th",37),e._uU(1," Amount (Sats) "),e.qZA())}function Am(n,i){if(1&n&&(e.TgZ(0,"td",38),e.TgZ(1,"span",39),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.amount_sat||0))}}function vm(n,i){1&n&&(e.TgZ(0,"th",37),e._uU(1," Confirmations "),e.qZA())}function wm(n,i){if(1&n&&(e.TgZ(0,"td",38),e.TgZ(1,"span",39),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.confirmations||0))}}function qm(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",40),e.TgZ(1,"div",41),e.TgZ(2,"mat-select",42),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",43),e.NdJ("click",function(){return e.CHM(t),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Sm(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",44),e.TgZ(1,"div",45),e.TgZ(2,"mat-select",46),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",43),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onUTXOClick(s)}),e._uU(5,"View Info"),e.qZA(),e.TgZ(6,"mat-option",43),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onLabelUTXO(s)}),e._uU(7,"Label"),e.qZA(),e.TgZ(8,"mat-option",43),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onLeaseUTXO(s)}),e._uU(9,"Lease"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function Lm(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No UTXO available."),e.qZA())}function km(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting UTXOs..."),e.qZA())}function Fm(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function Um(n,i){if(1&n&&(e.TgZ(0,"td",47),e.YNc(1,Lm,2,0,"p",32),e.YNc(2,km,2,0,"p",32),e.YNc(3,Fm,2,1,"p",32),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!(null!=t.listUTXOs&&t.listUTXOs.data)||(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.listUTXOs&&t.listUTXOs.data)||(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.listUTXOs&&t.listUTXOs.data)||(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Nm=function(n){return{"display-none":n}};function Om(n,i){if(1&n&&e._UZ(0,"tr",48),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Nm,(null==t.listUTXOs?null:t.listUTXOs.data)&&(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)>0))}}function Rm(n,i){1&n&&e._UZ(0,"tr",49)}function Im(n,i){1&n&&e._UZ(0,"tr",50)}function Mm(n,i){1&n&&e._UZ(0,"mat-icon",36)}const Dm=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Pm=function(){return["no_utxo"]};let Jm=(()=>{class n{constructor(t,a,o,s,u,g){this.logger=t,this.commonService=a,this.dataService=o,this.store=s,this.rtlEffects=u,this.decimalPipe=g,this.isDustUTXO=!1,this.addressType=l.x$,this.faMoneyBillWave=Z.aj4,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["amount_sat","confirmations","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["tx_id","output","amount_sat","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["tx_id","output","label","amount_sat","confirmations","actions"]):(this.flgSticky=!0,this.displayedColumns=["tx_id","output","label","amount_sat","confirmations","actions"])}ngOnInit(){this.store.select(C.T4).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),t.utxos&&t.utxos.length>0&&(this.dustUtxos=t.utxos.filter(a=>+a.amount_sat<1e3),this.utxos=t.utxos,this.loadUTXOsTable(this.isDustUTXO?this.dustUtxos:this.utxos)),this.logger.info(t)})}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)}applyFilter(){this.listUTXOs.filter=this.selFilter.trim().toLowerCase()}onUTXOClick(t){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"UTXO Information",message:[[{key:"txid",value:t.outpoint.txid_str,title:"Transaction ID",width:100,type:l.Gi.STRING}],[{key:"label",value:t.label,title:"Label",width:100,type:l.Gi.STRING}],[{key:"output_index",value:t.outpoint.output_index,title:"Output Index",width:34,type:l.Gi.NUMBER},{key:"amount_sat",value:t.amount_sat,title:"Amount (Sats)",width:33,type:l.Gi.NUMBER},{key:"confirmations",value:t.confirmations,title:"Confirmations",width:33,type:l.Gi.NUMBER}],[{key:"address_type",value:this.addressType[t.address_type].name,title:"Address Type",width:34},{key:"address",value:t.address,title:"Address",width:66}],[{key:"pk_script",value:t.pk_script,title:"PK Script",width:100,type:l.Gi.STRING}]]}}}))}loadUTXOsTable(t){this.listUTXOs=new r.by([...t]),this.listUTXOs.filterPredicate=(a,o)=>((a.label?a.label.toLowerCase():"")+(a.outpoint.txid_str?a.outpoint.txid_str.toLowerCase():"")+(a.outpoint.output_index?a.outpoint.output_index:"")+(a.outpoint.txid_bytes?a.outpoint.txid_bytes.toLowerCase():"")+(a.address?a.address.toLowerCase():"")+(a.address_type?a.address_type.toLowerCase():"")+(a.amount_sat?a.amount_sat:"")+(a.confirmations?a.confirmations:"")+(a.pk_script?a.pk_script.toLowerCase():"")).includes(o),this.listUTXOs.sortingDataAccessor=(a,o)=>{switch(o){case"tx_id":return a.outpoint.txid_str.toLocaleLowerCase();case"output":return+a.outpoint.output_index;default:return a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null}},this.listUTXOs.sort=this.sort,this.listUTXOs.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.listUTXOs.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listUTXOs)}onLabelUTXO(t){this.store.dispatch((0,v.qR)({payload:{data:{utxo:t,component:_m}}}))}onLeaseUTXO(t){const a=[[{key:"txid_str",value:t.outpoint.txid_str,title:"Transaction ID",width:100}],[{key:"amount_sat",value:this.decimalPipe.transform(t.amount_sat),title:"Amount (Sats)",width:100}]];t.label&&a.splice(1,0,[{key:"label",value:t.label,title:"Label",width:100}]),this.store.dispatch((0,v.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Lease UTXO",informationMessage:"The UTXO will be leased for 10 minutes.",message:a,noBtnText:"Cancel",yesBtnText:"Lease UTXO"}}})),this.rtlEffects.closeConfirm.pipe((0,d.R)(this.unSubs[0])).subscribe(o=>{o&&this.dataService.leaseUTXO(t.outpoint.txid_bytes,t.outpoint.output_index)})}onDownloadCSV(){this.listUTXOs.data&&this.listUTXOs.data.length>0&&this.commonService.downloadFile(this.listUTXOs.data,"UTXOs")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(j.D),e.Y36(w.yh),e.Y36(oe.V),e.Y36(p.JJ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-on-chain-utxos"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},inputs:{isDustUTXO:"isDustUTXO"},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("UTXOs")}]),e.TTD],decls:35,vars:14,consts:[["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","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["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,"dataSource","ngClass"],["table",""],["matColumnDef","tx_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","output"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","label"],["matColumnDef","amount_sat"],["matColumnDef","confirmations"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pl-3",4,"matCellDef"],["matColumnDef","no_utxo"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["emptySpace",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["fxLayout","row"],[4,"ngIf"],[1,"ellipsis-child"],["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"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-form-field",2),e.TgZ(3,"input",3),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(4,"div",4),e.TgZ(5,"div",5),e.YNc(6,dm,1,0,"mat-progress-bar",6),e.TgZ(7,"table",7,8),e.ynx(9,9),e.YNc(10,hm,2,0,"th",10),e.YNc(11,Cm,5,5,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,xm,2,0,"th",13),e.YNc(14,Zm,3,1,"td",14),e.BQk(),e.ynx(15,15),e.YNc(16,ym,2,0,"th",10),e.YNc(17,Tm,2,4,"td",11),e.BQk(),e.ynx(18,16),e.YNc(19,bm,2,0,"th",13),e.YNc(20,Am,4,3,"td",14),e.BQk(),e.ynx(21,17),e.YNc(22,vm,2,0,"th",13),e.YNc(23,wm,4,3,"td",14),e.BQk(),e.ynx(24,18),e.YNc(25,qm,6,0,"th",19),e.YNc(26,Sm,10,0,"td",20),e.BQk(),e.ynx(27,21),e.YNc(28,Um,4,3,"td",22),e.BQk(),e.YNc(29,Om,1,3,"tr",23),e.YNc(30,Rm,1,0,"tr",24),e.YNc(31,Im,1,0,"tr",25),e.qZA(),e._UZ(32,"mat-paginator",26),e.qZA(),e.qZA(),e.qZA(),e.YNc(33,Mm,1,0,"ng-template",null,27,e.W1O)),2&t&&(e.xp6(3),e.Q6J("ngModel",a.selFilter),e.xp6(3),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.listUTXOs)("ngClass",e.VKq(11,Dm,""!==a.errorMessage)),e.xp6(22),e.Q6J("matFooterRowDef",e.DdM(13,Pm)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,_.yH,_.Wh,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,p.O5,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,X.gM,K.Hw,R.gD,R.$L,Y.ey,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-label[_ngcontent-%COMP%]{padding-left:1rem;flex:1 1 15%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-tx_id[_ngcontent-%COMP%]{flex:1 1 15%}.mat-column-tx_id[_ngcontent-%COMP%] .ellipsis-child[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();function Em(n,i){1&n&&e._UZ(0,"mat-progress-bar",28)}function Qm(n,i){1&n&&(e.TgZ(0,"th",29),e._uU(1," Date/Time "),e.qZA())}function Ym(n,i){if(1&n&&(e.TgZ(0,"td",30),e._uU(1),e.ALo(2,"date"),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,1e3*t.time_stamp,"dd/MMM/y HH:mm"))}}function Hm(n,i){1&n&&(e.TgZ(0,"th",29),e._uU(1," Label "),e.qZA())}const Bm=function(n){return{"max-width":n}};function Vm(n,i){if(1&n&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,Bm,a.screenSize===a.screenSizeEnum.XS?"12rem":"25rem")),e.xp6(1),e.hij(" ",null==t?null:t.label," ")}}function Gm(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1," Amount (Sats) "),e.qZA())}function zm(n,i){if(1&n&&(e.TgZ(0,"span",35),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,t.amount))}}function Wm(n,i){if(1&n&&(e.TgZ(0,"span",36),e._uU(1),e.ALo(2,"number"),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.hij("(",e.lcZ(2,1,-1*t.amount),")")}}function Xm(n,i){if(1&n&&(e.TgZ(0,"td",30),e.YNc(1,zm,3,3,"span",33),e.YNc(2,Wm,3,3,"span",34),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Q6J("ngIf",t.amount>0||0===t.amount),e.xp6(1),e.Q6J("ngIf",t.amount<0)}}function $m(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1," Fees (Sats) "),e.qZA())}function jm(n,i){if(1&n&&(e.TgZ(0,"td",30),e.TgZ(1,"span",35),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.total_fees))}}function Km(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1," Block Height "),e.qZA())}function e_(n,i){if(1&n&&(e.TgZ(0,"td",30),e.TgZ(1,"span",35),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.block_height))}}function t_(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1," Confirmations "),e.qZA())}function n_(n,i){if(1&n&&(e.TgZ(0,"td",30),e.TgZ(1,"span",35),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==t?null:t.num_confirmations)," ")}}function a_(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"th",37),e.TgZ(1,"div",38),e.TgZ(2,"mat-select",39),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",40),e.NdJ("click",function(){return e.CHM(t),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function i_(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",41),e.TgZ(1,"button",42),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onTransactionClick(s)}),e._uU(2,"View Info"),e.qZA(),e.qZA()}}function o_(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No transaction available."),e.qZA())}function s_(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting transactions..."),e.qZA())}function l_(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function r_(n,i){if(1&n&&(e.TgZ(0,"td",43),e.YNc(1,o_,2,0,"p",44),e.YNc(2,s_,2,0,"p",44),e.YNc(3,l_,2,1,"p",44),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!(null!=t.listTransactions&&t.listTransactions.data)||(null==t.listTransactions||null==t.listTransactions.data?null:t.listTransactions.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.listTransactions&&t.listTransactions.data)||(null==t.listTransactions||null==t.listTransactions.data?null:t.listTransactions.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.listTransactions&&t.listTransactions.data)||(null==t.listTransactions||null==t.listTransactions.data?null:t.listTransactions.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const c_=function(n){return{"display-none":n}};function u_(n,i){if(1&n&&e._UZ(0,"tr",45),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,c_,(null==t.listTransactions?null:t.listTransactions.data)&&(null==t.listTransactions||null==t.listTransactions.data?null:t.listTransactions.data.length)>0))}}function p_(n,i){1&n&&e._UZ(0,"tr",46)}function m_(n,i){1&n&&e._UZ(0,"tr",47)}const __=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},d_=function(){return["no_transaction"]};let h_=(()=>{class n{constructor(t,a,o,s){this.logger=t,this.commonService=a,this.store=o,this.datePipe=s,this.faHistory=Z.qO$,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["time_stamp","amount","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["time_stamp","amount","num_confirmations","total_fees","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["time_stamp","label","amount","total_fees","num_confirmations","actions"]):(this.flgSticky=!0,this.displayedColumns=["time_stamp","label","amount","total_fees","block_height","num_confirmations","actions"])}ngOnInit(){this.store.select(C.dx).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),t.transactions&&t.transactions.length>0&&(this.transactions=t.transactions,this.loadTransactionsTable(this.transactions)),this.logger.info(t)})}ngOnChanges(){this.transactions&&this.transactions.length>0&&this.loadTransactionsTable(this.transactions)}applyFilter(){this.listTransactions.filter=this.selFilter.trim().toLowerCase()}onTransactionClick(t){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Transaction Information",message:[[{key:"block_hash",value:t.block_hash,title:"Block Hash",width:100}],[{key:"tx_hash",value:t.tx_hash,title:"Transaction Hash",width:100}],[{key:"label",value:t.label,title:"Label",width:100,type:l.Gi.STRING}],[{key:"time_stamp",value:t.time_stamp,title:"Date/Time",width:50,type:l.Gi.DATE_TIME},{key:"block_height",value:t.block_height,title:"Block Height",width:50,type:l.Gi.NUMBER}],[{key:"num_confirmations",value:t.num_confirmations,title:"Number of Confirmations",width:34,type:l.Gi.NUMBER},{key:"total_fees",value:t.total_fees,title:"Total Fees (Sats)",width:33,type:l.Gi.NUMBER},{key:"amount",value:t.amount,title:"Amount (Sats)",width:33,type:l.Gi.NUMBER}],[{key:"dest_addresses",value:t.dest_addresses,title:"Destination Addresses",width:100,type:l.Gi.ARRAY}]],scrollable:t.dest_addresses&&t.dest_addresses.length>5}}}))}loadTransactionsTable(t){this.listTransactions=new r.by([...t]),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.filterPredicate=(a,o)=>((a.time_stamp?this.datePipe.transform(new Date(1e3*a.time_stamp),"dd/MMM/YYYY HH:mm").toLowerCase():"")+JSON.stringify(a).toLowerCase()).includes(o),this.listTransactions.paginator=this.paginator,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(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh),e.Y36(p.uU))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-on-chain-transaction-history"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Transactions")}]),e.TTD],decls:36,vars:14,consts:[["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","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["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,"dataSource","ngClass"],["table",""],["matColumnDef","time_stamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","label"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["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","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","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","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",3,"ngStyle"],["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","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-form-field",2),e.TgZ(3,"input",3),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(4,"div",4),e.TgZ(5,"div",5),e.YNc(6,Em,1,0,"mat-progress-bar",6),e.TgZ(7,"table",7,8),e.ynx(9,9),e.YNc(10,Qm,2,0,"th",10),e.YNc(11,Ym,3,4,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,Hm,2,0,"th",10),e.YNc(14,Vm,2,4,"td",13),e.BQk(),e.ynx(15,14),e.YNc(16,Gm,2,0,"th",15),e.YNc(17,Xm,3,2,"td",11),e.BQk(),e.ynx(18,16),e.YNc(19,$m,2,0,"th",15),e.YNc(20,jm,4,3,"td",11),e.BQk(),e.ynx(21,17),e.YNc(22,Km,2,0,"th",15),e.YNc(23,e_,4,3,"td",11),e.BQk(),e.ynx(24,18),e.YNc(25,t_,2,0,"th",15),e.YNc(26,n_,4,3,"td",11),e.BQk(),e.ynx(27,19),e.YNc(28,a_,6,0,"th",20),e.YNc(29,i_,3,0,"td",21),e.BQk(),e.ynx(30,22),e.YNc(31,r_,4,3,"td",23),e.BQk(),e.YNc(32,u_,1,3,"tr",24),e.YNc(33,p_,1,0,"tr",25),e.YNc(34,m_,1,0,"tr",26),e.qZA(),e._UZ(35,"mat-paginator",27),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Q6J("ngModel",a.selFilter),e.xp6(3),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.listTransactions)("ngClass",e.VKq(11,__,""!==a.errorMessage)),e.xp6(25),e.Q6J("matFooterRowDef",e.DdM(13,d_)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,_.yH,_.Wh,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,p.O5,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,R.gD,R.$L,Y.ey,L.lW,r.yh,r.Q2,r.XQ,r.Gk],pipes:[p.uU,p.JJ],styles:[".mat-column-label[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();function g_(n,i){if(1&n&&(e.TgZ(0,"span",5),e._uU(1,"UTXOs"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.numUtxos)}}function f_(n,i){if(1&n&&(e.TgZ(0,"span",5),e._uU(1,"Transactions"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.numTransactions)}}function C_(n,i){if(1&n&&(e.TgZ(0,"span",5),e._uU(1,"Dust UTXOs"),e.qZA()),2&n){const t=e.oxw();e.s9C("matBadge",t.numDustUtxos)}}let x_=(()=>{class n{constructor(t,a){this.logger=t,this.store=a,this.selectedTableIndex=0,this.selectedTableIndexChange=new e.vpe,this.numTransactions=0,this.numUtxos=0,this.numDustUtxos=0,this.unSubs=[new m.x,new m.x,new m.x]}ngOnInit(){this.store.dispatch((0,b.mC)()),this.store.dispatch((0,b.Ly)()),this.store.select(C.T4).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{t.utxos&&t.utxos.length>0&&(this.numUtxos=t.utxos.length,this.numDustUtxos=t.utxos.filter(a=>+a.amount_sat<1e3).length),this.logger.info(t)}),this.store.select(C.dx).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{t.transactions&&t.transactions.length>0&&(this.numTransactions=t.transactions.length),this.logger.info(t)})}onSelectedIndexChanged(t){this.selectedTableIndexChange.emit(t)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-utxo-tables"]],inputs:{selectedTableIndex:"selectedTableIndex"},outputs:{selectedTableIndexChange:"selectedTableIndexChange"},decls:11,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"bordered-box"],[3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["fxLayout","row","fxFlex","100",3,"isDustUTXO"],["fxLayout","row","fxFlex","100"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"mat-tab-group",1),e.NdJ("selectedIndexChange",function(s){return a.onSelectedIndexChanged(s)}),e.TgZ(2,"mat-tab"),e.YNc(3,g_,2,1,"ng-template",2),e._UZ(4,"rtl-on-chain-utxos",3),e.qZA(),e.TgZ(5,"mat-tab"),e.YNc(6,f_,2,1,"ng-template",2),e._UZ(7,"rtl-on-chain-transaction-history",4),e.qZA(),e.TgZ(8,"mat-tab"),e.YNc(9,C_,2,1,"ng-template",2),e._UZ(10,"rtl-on-chain-utxos",3),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("selectedIndex",a.selectedTableIndex),e.xp6(3),e.Q6J("isDustUTXO",!1),e.xp6(6),e.Q6J("isDustUTXO",!0))},directives:[_.xw,_.yH,_.Wh,D.SP,D.uX,D.uD,Jm,h_,fe.k],styles:[""]}),n})();const Z_=function(n,i){return[n,i]};function y_(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",12),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().activeLink=null==s?null:s.link}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw();e.Q6J("active",a.activeLink===(null==t?null:t.link))("routerLink",e.WLB(3,Z_,null==t?null:t.link,null==a.selectedTable?null:a.selectedTable.name)),e.xp6(1),e.Oqu(null==t?null:t.name)}}let T_=(()=>{class n{constructor(t,a,o){this.store=t,this.router=a,this.activatedRoute=o,this.selNode={},this.faExchangeAlt=Z.Ssp,this.faChartPie=Z.OS1,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 m.x,new m.x,new m.x,new m.x]}ngOnInit(){const t=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=t?t.link:this.links[0].link,this.selectedTable=this.tables.find(a=>a.name===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(a=>a instanceof y.Av)).subscribe({next:a=>{const o=this.links.find(s=>a.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link,this.selectedTable=this.tables.find(s=>s.name===a.urlAfterRedirects.substring(a.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(C.$k).pipe((0,d.R)(this.unSubs[1])).subscribe(a=>{this.selNode=a}),this.store.select(C.qU).pipe((0,d.R)(this.unSubs[2])).subscribe(a=>{this.balances=[{title:"Total Balance",dataValue:a.blockchainBalance.total_balance||0},{title:"Confirmed",dataValue:a.blockchainBalance.confirmed_balance},{title:"Unconfirmed",dataValue:a.blockchainBalance.unconfirmed_balance}]})}onSelectedTableIndexChanged(t){this.selectedTable=this.tables.find(a=>a.id===t),this.router.navigate(["./",this.activeLink,this.selectedTable.name],{relativeTo:this.activatedRoute})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh),e.Y36(y.F0),e.Y36(y.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-on-chain"]],decls:21,vars:5,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-tab-nav-bar",""],["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,"selectedTableIndex","selectedTableIndexChange"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"On-chain Balance"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e._UZ(7,"rtl-currency-unit-converter",5),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",0),e._UZ(9,"fa-icon",1),e.TgZ(10,"span",2),e._uU(11,"On-chain Transactions"),e.qZA(),e.qZA(),e.TgZ(12,"div",6),e.TgZ(13,"mat-card"),e.TgZ(14,"mat-card-content",4),e.TgZ(15,"nav",7),e.YNc(16,y_,2,6,"div",8),e.qZA(),e.TgZ(17,"div",9),e._UZ(18,"router-outlet"),e.qZA(),e.TgZ(19,"div",10),e.TgZ(20,"rtl-utxo-tables",11),e.NdJ("selectedTableIndexChange",function(s){return a.onSelectedTableIndexChanged(s)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faChartPie),e.xp6(6),e.Q6J("values",a.balances),e.xp6(2),e.Q6J("icon",a.faExchangeAlt),e.xp6(7),e.Q6J("ngForOf",a.links),e.xp6(4),e.Q6J("selectedTableIndex",null==a.selectedTable?null:a.selectedTable.id))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,ge.D,D.BU,p.sg,_.yH,y.lC,x_,D.Nj,y.rH],styles:[""]}),n})();var b_=h(9122);function A_(n,i){if(1&n&&(e.TgZ(0,"mat-option",7),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t.addressTp," ")}}let v_=(()=>{class n{constructor(t,a){this.store=t,this.lndEffects=a,this.addressTypes=l._t,this.selectedAddressType=l._t[0],this.newAddress=""}onGenerateAddress(){this.store.dispatch((0,b._E)({payload:this.selectedAddressType})),this.lndEffects.setNewAddress.pipe((0,V.q)(1)).subscribe(t=>{this.newAddress=t,setTimeout(()=>{this.store.dispatch((0,v.qR)({payload:{data:{address:this.newAddress,addressType:this.selectedAddressType.addressTp,component:b_.n}}}))},0)})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh),e.Y36(ee.l))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-on-chain-receive"]],decls:8,vars:2,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start end"],["fxFlex","48","fxFlex.gt-md","25","fxLayoutAlign","start end",1,"mr-2"],["placeholder","Address Type","name","address_type","tabindex","1",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mt-2"],["mat-flat-button","","color","primary","tabindex","2",1,"top-minus-15px",3,"click"],[3,"value"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-form-field",2),e.TgZ(3,"mat-select",3),e.NdJ("ngModelChange",function(s){return a.selectedAddressType=s}),e.YNc(4,A_,2,2,"mat-option",4),e.qZA(),e.qZA(),e.TgZ(5,"div",5),e.TgZ(6,"button",6),e.NdJ("click",function(){return a.onGenerateAddress()}),e._uU(7,"Generate Address"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Q6J("ngModel",a.selectedAddressType),e.xp6(1),e.Q6J("ngForOf",a.addressTypes))},directives:[_.xw,_.Wh,f.KE,_.yH,R.gD,c.JJ,c.On,p.sg,L.lW,Y.ey],styles:[""]}),n})();var w_=h(8012),Xe=h(8377);const q_=["form"],S_=["formSweepAll"],L_=["stepper"];function k_(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Bitcoin address is required."),e.qZA())}function F_(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.amountError)}}function U_(n,i){if(1&n&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.Oqu(t)}}function N_(n,i){if(1&n&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t.id),e.xp6(1),e.hij(" ",t.name," ")}}function O_(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Number of blocks is required."),e.qZA())}function R_(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",23),e.TgZ(1,"input",32,33),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw(2).transactionBlocks=o}),e.qZA(),e.YNc(3,O_,2,0,"mat-error",14),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngModel",t.transactionBlocks)("step",1)("min",0),e.xp6(2),e.Q6J("ngIf",!t.transactionBlocks)}}function I_(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Fees is required."),e.qZA())}function M_(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-form-field",23),e.TgZ(1,"input",34,35),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw(2).transactionFees=o}),e.qZA(),e.YNc(3,I_,2,0,"mat-error",14),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngModel",t.transactionFees)("step",1)("min",0),e.xp6(2),e.Q6J("ngIf",!t.transactionFees)}}function D_(n,i){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(t.sendFundError)}}function P_(n,i){if(1&n&&(e.TgZ(0,"div",36),e._UZ(1,"fa-icon",37),e.YNc(2,D_,2,1,"span",14),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(1),e.Q6J("ngIf",""!==t.sendFundError)}}function J_(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"form",9,10),e.NdJ("submit",function(){return e.CHM(t),e.oxw().onSendFunds()})("reset",function(){return e.CHM(t),e.oxw().resetData()}),e.TgZ(2,"mat-form-field",11),e.TgZ(3,"input",12,13),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().transactionAddress=o}),e.qZA(),e.YNc(5,k_,2,0,"mat-error",14),e.qZA(),e.TgZ(6,"mat-form-field",15),e.TgZ(7,"input",16,17),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().transactionAmount=o}),e.qZA(),e.TgZ(9,"span",18),e._uU(10),e.qZA(),e.YNc(11,F_,2,1,"mat-error",14),e.qZA(),e.TgZ(12,"mat-form-field",19),e.TgZ(13,"mat-select",20),e.NdJ("selectionChange",function(o){return e.CHM(t),e.oxw().onAmountUnitChange(o)}),e.YNc(14,U_,2,2,"mat-option",21),e.qZA(),e.qZA(),e.TgZ(15,"div",22),e.TgZ(16,"mat-form-field",23),e.TgZ(17,"mat-select",24),e.NdJ("valueChange",function(o){return e.CHM(t),e.oxw().selTransType=o}),e.YNc(18,N_,2,2,"mat-option",21),e.qZA(),e.qZA(),e.YNc(19,R_,4,4,"mat-form-field",25),e.YNc(20,M_,4,4,"mat-form-field",25),e.qZA(),e._UZ(21,"div",26),e.YNc(22,P_,3,2,"div",27),e.TgZ(23,"div",28),e.TgZ(24,"button",29),e._uU(25,"Clear Fields"),e.qZA(),e.TgZ(26,"button",30),e._uU(27,"Send Funds"),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(3),e.Q6J("ngModel",t.transactionAddress),e.xp6(2),e.Q6J("ngIf",!t.transactionAddress),e.xp6(2),e.Q6J("ngModel",t.transactionAmount)("step",100)("min",0),e.xp6(3),e.hij(" ",t.selAmountUnit," "),e.xp6(1),e.Q6J("ngIf",!t.transactionAmount),e.xp6(2),e.Q6J("value",t.selAmountUnit),e.xp6(1),e.Q6J("ngForOf",t.amountUnits),e.xp6(3),e.Q6J("value",t.selTransType),e.xp6(1),e.Q6J("ngForOf",t.transTypes),e.xp6(1),e.Q6J("ngIf","1"===t.selTransType),e.xp6(1),e.Q6J("ngIf","2"===t.selTransType),e.xp6(2),e.Q6J("ngIf",""!==t.sendFundError)}}function E_(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw(3);e.Oqu(t.passwordFormLabel)}}function Q_(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}function Y_(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"mat-step",42),e.TgZ(1,"form",61),e.YNc(2,E_,1,1,"ng-template",55),e.TgZ(3,"div",0),e.TgZ(4,"mat-form-field",1),e._UZ(5,"input",62),e.YNc(6,Q_,2,0,"mat-error",14),e.qZA(),e.qZA(),e.TgZ(7,"div",63),e.TgZ(8,"button",64),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).onAuthenticate()}),e._uU(9,"Confirm"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("stepControl",t.passwordFormGroup)("editable",t.flgEditable),e.xp6(1),e.Q6J("formGroup",t.passwordFormGroup),e.xp6(5),e.Q6J("ngIf",null==t.passwordFormGroup.controls.password.errors?null:t.passwordFormGroup.controls.password.errors.required)}}function H_(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw(2);e.Oqu(t.sendFundFormLabel)}}function B_(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Bitcoin address is required."),e.qZA())}function V_(n,i){if(1&n&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("value",t.id),e.xp6(1),e.hij(" ",t.name," ")}}function G_(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Number of blocks is required."),e.qZA())}function z_(n,i){if(1&n&&(e.TgZ(0,"mat-form-field",65),e._UZ(1,"input",66),e.YNc(2,G_,2,0,"mat-error",14),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("step",1)("min",0),e.xp6(1),e.Q6J("ngIf",null==t.sendFundFormGroup.controls.transactionBlocks.errors?null:t.sendFundFormGroup.controls.transactionBlocks.errors.required)}}function W_(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Fees is required."),e.qZA())}function X_(n,i){if(1&n&&(e.TgZ(0,"mat-form-field",65),e._UZ(1,"input",67),e.YNc(2,W_,2,0,"mat-error",14),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("step",1)("min",0),e.xp6(1),e.Q6J("ngIf",null==t.sendFundFormGroup.controls.transactionFees.errors?null:t.sendFundFormGroup.controls.transactionFees.errors.required)}}function $_(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw(2);e.Oqu(t.confirmFormLabel)}}function j_(n,i){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(t.sendFundError)}}function K_(n,i){if(1&n&&(e.TgZ(0,"div",36),e._UZ(1,"fa-icon",37),e.YNc(2,j_,2,1,"span",14),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(1),e.Q6J("ngIf",""!==t.sendFundError)}}function ed(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",38),e.TgZ(1,"mat-vertical-stepper",39,40),e.NdJ("selectionChange",function(o){return e.CHM(t),e.oxw().stepSelectionChanged(o)}),e.YNc(3,Y_,10,4,"mat-step",41),e.TgZ(4,"mat-step",42),e.TgZ(5,"form",43),e.YNc(6,H_,1,1,"ng-template",44),e.TgZ(7,"div",45),e.TgZ(8,"mat-form-field",46),e._UZ(9,"input",47),e.YNc(10,B_,2,0,"mat-error",14),e.qZA(),e.TgZ(11,"mat-form-field",48),e.TgZ(12,"mat-select",49),e.YNc(13,V_,2,2,"mat-option",21),e.qZA(),e.qZA(),e.YNc(14,z_,3,3,"mat-form-field",50),e.YNc(15,X_,3,3,"mat-form-field",50),e.qZA(),e.TgZ(16,"div",51),e.TgZ(17,"button",52),e._uU(18,"Next"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"mat-step",53),e.TgZ(20,"form",54),e.YNc(21,$_,1,1,"ng-template",55),e.TgZ(22,"div",38),e.TgZ(23,"div",56),e._UZ(24,"fa-icon",57),e.TgZ(25,"span"),e._uU(26,"You are about to sweep all funds from RTL. Are you sure?"),e.qZA(),e.qZA(),e.YNc(27,K_,3,2,"div",27),e.TgZ(28,"div",51),e.TgZ(29,"button",58),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSendFunds()}),e._uU(30,"Sweep All Funds"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"div",59),e.TgZ(32,"button",60),e._uU(33),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("linear",!0),e.xp6(2),e.Q6J("ngIf",!t.appConfig.sso.rtlSSO),e.xp6(1),e.Q6J("stepControl",t.sendFundFormGroup)("editable",t.flgEditable),e.xp6(1),e.Q6J("formGroup",t.sendFundFormGroup),e.xp6(5),e.Q6J("ngIf",null==t.sendFundFormGroup.controls.transactionAddress.errors?null:t.sendFundFormGroup.controls.transactionAddress.errors.required),e.xp6(3),e.Q6J("ngForOf",t.transTypes),e.xp6(1),e.Q6J("ngIf","1"===t.sendFundFormGroup.controls.selTransType.value),e.xp6(1),e.Q6J("ngIf","2"===t.sendFundFormGroup.controls.selTransType.value),e.xp6(4),e.Q6J("stepControl",t.confirmFormGroup),e.xp6(1),e.Q6J("formGroup",t.confirmFormGroup),e.xp6(4),e.Q6J("icon",t.faExclamationTriangle),e.xp6(3),e.Q6J("ngIf",""!==t.sendFundError),e.xp6(5),e.Q6J("mat-dialog-close",!1),e.xp6(1),e.Oqu(t.flgValidated?"Close":"Cancel")}}let td=(()=>{class n{constructor(t,a,o,s,u,g,N,x,U,re){this.dialogRef=t,this.data=a,this.logger=o,this.store=s,this.rtlEffects=u,this.commonService=g,this.decimalPipe=N,this.snackBar=x,this.actions=U,this.formBuilder=re,this.faExclamationTriangle=Z.eHv,this.sweepAll=!1,this.selNode={},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=l.uA,this.selAmountUnit=l.uA[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=l.Xz,this.sendFundError="",this.flgValidated=!1,this.flgEditable=!0,this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds",this.confirmFormLabel="Confirm sweep",this.amountError="Amount is Required.",this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x,new m.x]}ngOnInit(){this.sweepAll=this.data.sweepAll,this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[c.kI.required]],password:["",[c.kI.required]]}),this.sendFundFormGroup=this.formBuilder.group({transactionAddress:["",c.kI.required],transactionBlocks:[null],transactionFees:[null],selTransType:["1",c.kI.required]}),this.confirmFormGroup=this.formBuilder.group({}),this.sendFundFormGroup.controls.selTransType.valueChanges.pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{"1"===t?(this.sendFundFormGroup.controls.transactionBlocks.setValidators([c.kI.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([c.kI.required]),this.sendFundFormGroup.controls.transactionFees.setValue(null))}),this.store.select(Xe.Yj).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.appConfig=t}),this.store.select(Xe.dT).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.fiatConversion=t.settings.fiatConversion,this.amountUnits=t.settings.currencyUnits,this.logger.info(t)}),this.actions.pipe((0,d.R)(this.unSubs[3]),(0,E.h)(t=>t.type===l.uR.UPDATE_API_CALL_STATUS_LND||t.type===l.uR.SET_CHANNEL_TRANSACTION_RES_LND)).subscribe(t=>{t.type===l.uR.SET_CHANNEL_TRANSACTION_RES_LND&&(this.store.dispatch((0,v.jW)({payload:this.sweepAll?"All Funds Sent Successfully!":"Fund Sent Successfully!"})),this.dialogRef.close()),t.type===l.uR.UPDATE_API_CALL_STATUS_LND&&t.payload.status===l.Bn.ERROR&&"SetChannelTransaction"===t.payload.action&&(this.sendFundError=t.payload.message)})}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,v.QO)({payload:w_(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,V.q)(1)).subscribe(t=>{"ERROR"!==t?(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 t={amount:this.transactionAmount?this.transactionAmount:0,sendAll:this.sweepAll};this.sweepAll?(t.address=this.sendFundFormGroup.controls.transactionAddress.value,"1"===this.sendFundFormGroup.controls.selTransType.value&&(t.blocks=this.sendFundFormGroup.controls.transactionBlocks.value),"2"===this.sendFundFormGroup.controls.selTransType.value&&(t.fees=this.sendFundFormGroup.controls.transactionFees.value)):(t.address=this.transactionAddress,"1"===this.selTransType&&(t.blocks=this.transactionBlocks),"2"===this.selTransType&&(t.fees=this.transactionFees)),this.transactionAmount&&this.selAmountUnit!==l.NT.SATS?this.commonService.convertCurrency(this.transactionAmount,this.selAmountUnit===this.amountUnits[2]?l.NT.OTHER:this.selAmountUnit,l.NT.SATS,this.amountUnits[2],this.fiatConversion).pipe((0,d.R)(this.unSubs[4])).subscribe({next:a=>{this.selAmountUnit=l.NT.SATS,t.amount=+this.decimalPipe.transform(a[this.amountUnits[0]],this.currencyUnitFormats[this.amountUnits[0]]).replace(/,/g,""),this.store.dispatch((0,b.Wi)({payload:t}))},error:a=>{this.transactionAmount=null,this.selAmountUnit=l.NT.SATS,this.amountError="Conversion Error: "+a}}):this.store.dispatch((0,b.Wi)({payload:t}))}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(t){switch(this.sendFundError="",t.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)}t.selectedIndex{this.selAmountUnit=t.value,a.transactionAmount=+a.decimalPipe.transform(g[s],a.currencyUnitFormats[s]).replace(/,/g,"")},error:g=>{a.transactionAmount=null,this.amountError="Conversion Error: "+g,this.selAmountUnit=o,s=o}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(J.so),e.Y36(J.WI),e.Y36(F.mQ),e.Y36(w.yh),e.Y36(oe.V),e.Y36(O.v),e.Y36(p.JJ),e.Y36(te.ux),e.Y36(G.eX),e.Y36(c.qu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-on-chain-send-modal"]],viewQuery:function(t,a){if(1&t&&(e.Gf(q_,7),e.Gf(S_,5),e.Gf(L_,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.form=o.first),e.iGM(o=e.CRH())&&(a.formSweepAll=o.first),e.iGM(o=e.CRH())&&(a.stepper=o.first)}},decls:12,vars:4,consts:[["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","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","class","overflow-x-hidden",3,"submit","reset",4,"ngIf","ngIfElse"],["sweepAllBlock",""],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"overflow-x-hidden",3,"submit","reset"],["form","ngForm"],["fxFlex.gt-sm","55"],["autoFocus","","matInput","","placeholder","Bitcoin Address","tabindex","1","name","address","required","",3,"ngModel","ngModelChange"],["address","ngModel"],[4,"ngIf"],["fxFlex.gt-sm","30"],["matInput","","placeholder","Amount","name","amt","type","number","tabindex","2","required","",3,"ngModel","step","min","ngModelChange"],["amnt","ngModel"],["matSuffix",""],["fxFlex.gt-sm","10","fxLayoutAlign","start end"],["tabindex","3","required","","name","amountUnit",3,"value","selectionChange"],[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"],["fxFlex","48"],["tabindex","4",3,"value","valueChange"],["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","tabindex","7","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit","tabindex","8"],[3,"value"],["matInput","","placeholder","Number of Blocks","type","number","name","blcks","required","","tabindex","5",3,"ngModel","step","min","ngModelChange"],["blocks","ngModel"],["matInput","","placeholder","Fees (Sats/vByte)","type","number","name","chainFees","required","","tabindex","6",3,"ngModel","step","min","ngModelChange"],["fees","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[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"],["fxFlex.gt-sm","45"],["matInput","","formControlName","transactionAddress","placeholder","Bitcoin Address","tabindex","4","name","address","required",""],["fxFlex.gt-sm","25"],["formControlName","selTransType","tabindex","5"],["fxFlex.gt-sm","25","fxLayoutAlign","start end",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","8","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","tabindex","9","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["autoFocus","","matInput","","placeholder","Password","type","password","tabindex","1","formControlName","password","required",""],["fxLayout","row",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxFlex.gt-sm","25","fxLayoutAlign","start end"],["matInput","","formControlName","transactionBlocks","placeholder","Number of Blocks","type","number","name","blcks","required","","tabindex","6",3,"step","min"],["matInput","","formControlName","transactionFees","placeholder","Fees (Sats/vByte)","type","number","name","chainFees","required","","tabindex","7",3,"step","min"]],template:function(t,a){if(1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-header",2),e.TgZ(3,"div",3),e.TgZ(4,"span",4),e._uU(5),e.qZA(),e.qZA(),e.TgZ(6,"button",5),e._uU(7,"X"),e.qZA(),e.qZA(),e.TgZ(8,"mat-card-content",6),e.YNc(9,J_,28,14,"form",7),e.qZA(),e.qZA(),e.qZA(),e.YNc(10,ed,34,15,"ng-template",null,8,e.W1O)),2&t){const o=e.MAs(11);e.xp6(5),e.Oqu(a.sweepAll?"Sweep All Funds":"Send Funds"),e.xp6(1),e.Q6J("mat-dialog-close",!1),e.xp6(3),e.Q6J("ngIf",!a.sweepAll)("ngIfElse",o)}},directives:[_.xw,_.yH,T.dk,_.Wh,L.lW,J.ZT,T.dn,p.O5,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,W.h,c.Q7,c.JJ,c.On,c.wV,c.qQ,$.q,f.R9,R.gD,p.sg,f.TO,Y.ey,M.BN,B.Vq,B.C0,c.sg,B.VY,c.u,B.Ic],styles:[""]}),n})(),$e=(()=>{class n{constructor(t,a){this.store=t,this.activatedRoute=a,this.sweepAll=!1,this.unSubs=[new m.x,new m.x]}ngOnInit(){this.activatedRoute.data.pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.sweepAll=t.sweepAll})}openSendFundsModal(){this.store.dispatch((0,v.qR)({payload:{data:{sweepAll:this.sweepAll,component:td}}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.yh),e.Y36(y.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-on-chain-send"]],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(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"button",2),e.NdJ("click",function(){return a.openSendFundsModal()}),e._uU(3),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Oqu(a.sweepAll?"Sweep All":"Send Funds"))},directives:[_.xw,_.yH,_.Wh,L.lW],styles:[""]}),n})();function nd(n,i){1&n&&e._UZ(0,"mat-progress-bar",26)}function ad(n,i){if(1&n&&e._UZ(0,"rtl-node-info",27),2&n){const t=e.oxw(3);e.Q6J("information",t.information)("showColorFieldSeparately",!0)}}function id(n,i){if(1&n&&e._UZ(0,"rtl-channel-status-info",28),2&n){const t=e.oxw(3);e.Q6J("channelsStatus",t.channelsStatus)("errorMessage",t.errorMessages[3]+" "+t.errorMessages[4])}}function od(n,i){if(1&n&&e._UZ(0,"rtl-fee-info",29),2&n){const t=e.oxw(3);e.Q6J("fees",t.fees)("errorMessage",t.errorMessages[2])}}const je=function(n){return{"dashboard-card-content":!0,"error-border":n}};function sd(n,i){if(1&n&&(e.TgZ(0,"mat-grid-tile",13),e.TgZ(1,"div",14),e.TgZ(2,"div",15),e.TgZ(3,"div",16),e._UZ(4,"fa-icon",17),e.TgZ(5,"span"),e._uU(6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",18),e.TgZ(8,"mat-card",19),e.TgZ(9,"mat-card-content",20),e.YNc(10,nd,1,0,"mat-progress-bar",21),e.TgZ(11,"div",22),e.YNc(12,ad,1,2,"rtl-node-info",23),e.YNc(13,id,1,2,"rtl-channel-status-info",24),e.YNc(14,od,1,2,"rtl-fee-info",25),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("colspan",t.cols)("rowspan",t.rows),e.xp6(4),e.Q6J("icon",t.icon),e.xp6(2),e.Oqu(t.title),e.xp6(3),e.Q6J("ngClass",e.VKq(10,je,"node"===t.id&&a.apiCallStatusNodeInfo.status===a.apiCallStatusEnum.ERROR||"status"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.ERROR||a.apiCallStatusPendingChannels.status===a.apiCallStatusEnum.ERROR)||"fee"===t.id&&a.apiCallStatusFees.status===a.apiCallStatusEnum.ERROR)),e.xp6(1),e.Q6J("ngIf","node"===t.id&&a.apiCallStatusNodeInfo.status===a.apiCallStatusEnum.INITIATED||"status"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.INITIATED||a.apiCallStatusPendingChannels.status===a.apiCallStatusEnum.INITIATED)||"fee"===t.id&&a.apiCallStatusFees.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngSwitch",t.id),e.xp6(1),e.Q6J("ngSwitchCase","node"),e.xp6(1),e.Q6J("ngSwitchCase","status"),e.xp6(1),e.Q6J("ngSwitchCase","fee")}}function ld(n,i){if(1&n&&(e.TgZ(0,"mat-grid-list",11),e.YNc(1,sd,15,12,"mat-grid-tile",12),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.nodeCards)}}function rd(n,i){1&n&&e._UZ(0,"mat-progress-bar",26)}function cd(n,i){1&n&&e.GkF(0)}function ud(n,i){if(1&n&&(e.TgZ(0,"div",33),e.YNc(1,cd,1,0,"ng-container",34),e.qZA()),2&n){const t=e.oxw(2),a=e.MAs(9),o=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet",t.apiCallStatusNetwork.status===t.apiCallStatusEnum.ERROR?a:o)}}function pd(n,i){1&n&&e.GkF(0)}function md(n,i){if(1&n&&(e.TgZ(0,"div",33),e.YNc(1,pd,1,0,"ng-container",34),e.qZA()),2&n){const t=e.oxw(2),a=e.MAs(9),o=e.MAs(13);e.xp6(1),e.Q6J("ngTemplateOutlet",t.apiCallStatusNetwork.status===t.apiCallStatusEnum.ERROR?a:o)}}function _d(n,i){1&n&&e.GkF(0)}function dd(n,i){if(1&n&&(e.TgZ(0,"div",33),e.YNc(1,_d,1,0,"ng-container",34),e.qZA()),2&n){const t=e.oxw(2),a=e.MAs(9),o=e.MAs(15);e.xp6(1),e.Q6J("ngTemplateOutlet",t.apiCallStatusNetwork.status===t.apiCallStatusEnum.ERROR?a:o)}}function hd(n,i){if(1&n&&(e.TgZ(0,"mat-grid-tile",30),e.TgZ(1,"mat-card",31),e.TgZ(2,"mat-card-content",20),e.YNc(3,rd,1,0,"mat-progress-bar",21),e.TgZ(4,"div",22),e.YNc(5,ud,2,1,"div",32),e.YNc(6,md,2,1,"div",32),e.YNc(7,dd,2,1,"div",32),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("colspan",t.cols)("rowspan",t.rows),e.xp6(2),e.Q6J("ngClass",e.VKq(8,je,a.apiCallStatusNetwork.status===a.apiCallStatusEnum.ERROR)),e.xp6(1),e.Q6J("ngIf",a.apiCallStatusNetwork.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngSwitch",t.id),e.xp6(1),e.Q6J("ngSwitchCase","general"),e.xp6(1),e.Q6J("ngSwitchCase","channels"),e.xp6(1),e.Q6J("ngSwitchCase","degrees")}}function gd(n,i){if(1&n&&(e.TgZ(0,"div",35),e.TgZ(1,"p"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Oqu(t.errorMessages[1])}}function fd(n,i){if(1&n&&(e.TgZ(0,"div",36),e.TgZ(1,"div"),e.TgZ(2,"h4",37),e._uU(3,"Network Capacity"),e.qZA(),e.TgZ(4,"div",38),e._uU(5),e.ALo(6,"number"),e.qZA(),e.qZA(),e.TgZ(7,"div"),e.TgZ(8,"h4",37),e._uU(9,"Number of Nodes"),e.qZA(),e.TgZ(10,"div",38),e._uU(11),e.ALo(12,"number"),e.qZA(),e.qZA(),e.TgZ(13,"div"),e.TgZ(14,"h4",37),e._uU(15,"Number of Channels"),e.qZA(),e.TgZ(16,"span",38),e._uU(17),e.ALo(18,"number"),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(5),e.hij("",e.lcZ(6,3,t.networkInfo.total_network_capacity)," Sats"),e.xp6(6),e.Oqu(e.lcZ(12,5,t.networkInfo.num_nodes)),e.xp6(6),e.Oqu(e.lcZ(18,7,t.networkInfo.num_channels))}}function Cd(n,i){if(1&n&&(e.TgZ(0,"div",36),e.TgZ(1,"div"),e.TgZ(2,"h4",37),e._uU(3,"Max Channel Size"),e.qZA(),e.TgZ(4,"div",38),e._uU(5),e.ALo(6,"number"),e.qZA(),e.qZA(),e.TgZ(7,"div"),e.TgZ(8,"h4",37),e._uU(9,"Avg Channel Size"),e.qZA(),e.TgZ(10,"div",38),e._uU(11),e.ALo(12,"number"),e.qZA(),e.qZA(),e.TgZ(13,"div"),e.TgZ(14,"h4",37),e._uU(15,"Min Channel Size"),e.qZA(),e.TgZ(16,"span",38),e._uU(17),e.ALo(18,"number"),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(5),e.Oqu(e.lcZ(6,3,t.networkInfo.max_channel_size)),e.xp6(6),e.Oqu(e.lcZ(12,5,t.networkInfo.avg_channel_size)),e.xp6(6),e.Oqu(e.lcZ(18,7,t.networkInfo.min_channel_size))}}function xd(n,i){if(1&n&&(e.TgZ(0,"div",36),e.TgZ(1,"div"),e.TgZ(2,"h4",37),e._uU(3,"Max Out Degree"),e.qZA(),e.TgZ(4,"div",38),e._uU(5),e.ALo(6,"number"),e.qZA(),e.qZA(),e.TgZ(7,"div"),e.TgZ(8,"h4",37),e._uU(9,"Avg Out Degree"),e.qZA(),e.TgZ(10,"div",38),e._uU(11),e.ALo(12,"number"),e.qZA(),e.qZA(),e.TgZ(13,"div",39),e._UZ(14,"h4",37),e._UZ(15,"span",38),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(5),e.Oqu(e.lcZ(6,2,t.networkInfo.max_out_degree)),e.xp6(6),e.Oqu(e.xi3(12,4,t.networkInfo.avg_out_degree,"1.0-2"))}}const Zd=function(n){return{"mt-1":n}};let yd=(()=>{class n{constructor(t,a,o){this.logger=t,this.commonService=a,this.store=o,this.faProjectDiagram=Z.o4t,this.faBolt=Z.BDt,this.faServer=Z.xf3,this.faNetworkWired=Z.kXW,this.selNode={},this.information={},this.channelsStatus={},this.networkInfo={},this.networkCards=[],this.nodeCards=[],this.screenSize="",this.screenSizeEnum=l.cu,this.userPersonaEnum=l.ol,this.errorMessages=["","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusNetwork=null,this.apiCallStatusFees=null,this.apiCallStatusChannels=null,this.apiCallStatusPendingChannels=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.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(C.bx).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=t.apiCallStatus,this.apiCallStatusNodeInfo.status===l.Bn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message),this.selNode=t.nodeSettings,this.information=t.information}),this.store.select(C.N7).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.errorMessages[1]="",this.apiCallStatusNetwork=t.apiCallStatus,this.apiCallStatusNetwork.status===l.Bn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusNetwork.message?JSON.stringify(this.apiCallStatusNetwork.message):this.apiCallStatusNetwork.message),this.networkInfo=t.networkInfo}),this.store.select(C.JG).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.errorMessages[2]="",this.apiCallStatusFees=t.apiCallStatus,this.apiCallStatusFees.status===l.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message),this.fees=t.fees}),this.store.select(C.ni).pipe((0,d.R)(this.unSubs[3])).subscribe(t=>{this.errorMessages[4]="",this.apiCallStatusPendingChannels=t.apiCallStatus,this.apiCallStatusPendingChannels.status===l.Bn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusPendingChannels.message?JSON.stringify(this.apiCallStatusPendingChannels.message):this.apiCallStatusPendingChannels.message),this.channelsStatus.pending={num_channels:t.pendingChannelsSummary.open.num_channels,capacity:t.pendingChannelsSummary.open.limbo_balance},this.channelsStatus.closing={num_channels:t.pendingChannelsSummary.closing.num_channels+t.pendingChannelsSummary.force_closing.num_channels+t.pendingChannelsSummary.waiting_close.num_channels,capacity:t.pendingChannelsSummary.total_limbo_balance}}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[4])).subscribe(t=>{this.errorMessages[3]="",this.apiCallStatusChannels=t.apiCallStatus,this.apiCallStatusChannels.status===l.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message),this.channelsStatus.active=t.channelsSummary.active,this.channelsStatus.inactive=t.channelsSummary.inactive,this.logger.info(t)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-network-info"]],decls:16,vars:6,consts:[["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"],["errorBlock",""],["generalBlock",""],["channelsBlock",""],["degreesBlock",""],["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",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"],["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,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxFlex","20"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,ld,2,1,"mat-grid-list",1),e.TgZ(2,"div",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span",4),e._uU(5,"Network"),e.qZA(),e.qZA(),e.TgZ(6,"mat-grid-list",5),e.YNc(7,hd,8,10,"mat-grid-tile",6),e.qZA(),e.qZA(),e.YNc(8,gd,3,1,"ng-template",null,7,e.W1O),e.YNc(10,fd,19,9,"ng-template",null,8,e.W1O),e.YNc(12,Cd,19,9,"ng-template",null,9,e.W1O),e.YNc(14,xd,16,7,"ng-template",null,10,e.W1O)),2&t&&(e.xp6(1),e.Q6J("ngIf",a.selNode.userPersona!==a.userPersonaEnum.OPERATOR),e.xp6(1),e.Q6J("ngClass",e.VKq(4,Zd,a.screenSize!==a.screenSizeEnum.XS)),e.xp6(1),e.Q6J("icon",a.faProjectDiagram),e.xp6(4),e.Q6J("ngForOf",a.networkCards))},directives:[_.xw,_.Wh,p.O5,p.mk,q.oO,M.BN,ce.Il,p.sg,ce.DX,_.yH,T.a8,T.dn,p.RF,p.n9,P.pW,Fe,Ne,Ue,p.tP],pipes:[p.JJ],styles:[""]}),n})();function Td(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",8),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().activeLink=s.link}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw();e.s9C("routerLink",t.link),e.Q6J("active",a.activeLink===t.link),e.xp6(1),e.Oqu(t.name)}}let bd=(()=>{class n{constructor(t){this.router=t,this.faDownload=Z.q7m,this.links=[{link:"bckup",name:"Backup"},{link:"restore",name:"Restore"}],this.activeLink=this.links[0].link,this.unSubs=[new m.x,new m.x]}ngOnInit(){const t=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(a=>a instanceof y.Av)).subscribe({next:a=>{const o=this.links.find(s=>a.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-backup"]],decls:11,vars:2,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-tab-nav-bar",""],["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"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Channels Backup"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e.TgZ(7,"nav",5),e.YNc(8,Td,2,3,"div",6),e.qZA(),e.TgZ(9,"div",7),e._UZ(10,"router-outlet"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faDownload),e.xp6(7),e.Q6J("ngForOf",a.links))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,D.BU,p.sg,_.yH,y.lC,D.Nj,y.rH],styles:[""]}),n})();function Ad(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",23),e.TgZ(1,"h4",24),e._uU(2),e.qZA(),e.TgZ(3,"div",25),e.TgZ(4,"button",26),e.NdJ("click",function(){return e.CHM(t),e.oxw().onRestoreChannels({})}),e._uU(5,"Restore All"),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(2),e.hij("Restore folder location: ",t.selNode.channelBackupPath,"/restore")}}function vd(n,i){if(1&n&&(e.TgZ(0,"div",27),e.TgZ(1,"h4",24),e._uU(2),e.qZA(),e.TgZ(3,"h4",28),e._uU(4,"All channel backup file not found! To perform channel restoration, channel backup file/s must be placed at the above location."),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.hij("Restore folder location: ",t.selNode.channelBackupPath,"/restore")}}function wd(n,i){if(1&n&&(e.TgZ(0,"div",27),e.TgZ(1,"h4",24),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.hij("Restore folder location: ",t.selNode.channelBackupPath,"/restore")}}function qd(n,i){1&n&&e._UZ(0,"mat-progress-bar",29)}function Sd(n,i){1&n&&(e.TgZ(0,"th",30),e._uU(1," Channel Point "),e.qZA())}const Ld=function(n){return{"max-width":n}};function kd(n,i){if(1&n&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,Ld,a.screenSize===a.screenSizeEnum.XS?"10rem":"45rem")),e.xp6(1),e.Oqu(null==t?null:t.channel_point)}}function Fd(n,i){1&n&&(e.TgZ(0,"th",32),e.TgZ(1,"span",33),e._uU(2,"Actions"),e.qZA(),e.qZA())}function Ud(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",34),e.TgZ(1,"span",33),e.TgZ(2,"button",35),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onRestoreChannels(s)}),e._uU(3,"Restore"),e.qZA(),e.qZA(),e.qZA()}}function Nd(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No singular channel backups available."),e.qZA())}function Od(n,i){if(1&n&&(e.TgZ(0,"td",36),e.YNc(1,Nd,2,0,"p",37),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.channels||!t.channels.data||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)}}const Rd=function(n){return{"display-none":n}};function Id(n,i){if(1&n&&e._UZ(0,"tr",38),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,Rd,t.channels&&t.channels.data&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function Md(n,i){1&n&&e._UZ(0,"tr",39)}function Dd(n,i){1&n&&e._UZ(0,"tr",40)}const Pd=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Jd=function(){return["no_channel"]};let Ed=(()=>{class n{constructor(t,a,o,s){this.logger=t,this.store=a,this.lndEffects=o,this.commonService=s,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.selNode={},this.displayedColumns=["channel_point","actions"],this.channelsData=[],this.allRestoreExists=!1,this.flgLoading=[!0],this.flgSticky=!1,this.selFilter="",this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.dispatch((0,b.tb)()),this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.lndEffects.setRestoreChannelList.pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.allRestoreExists=t.all_restore_exists,this.channelsData=t.files,this.channelsData.length>0&&this.loadRestoreTable(this.channelsData),("error"!==this.flgLoading[0]||t&&t.files)&&(this.flgLoading[0]=!1),this.logger.info(t)})}ngAfterViewInit(){this.channelsData&&this.channelsData.length>0&&this.loadRestoreTable(this.channelsData)}onRestoreChannels(t){this.store.dispatch((0,b.vV)({payload:{channelPoint:t.channel_point?t.channel_point:"ALL"}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}loadRestoreTable(t){this.channels=new r.by([...t]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.channels.filterPredicate=(a,o)=>JSON.stringify(a).toLowerCase().includes(o),this.channels.paginator=this.paginator,this.applyFilter()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(ee.l),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-restore-table"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Channels")}])],decls:24,vars:17,consts:[["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","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","channel_point"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["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","",3,"ngStyle"],["mat-header-cell","",1,"pr-3"],["fxLayoutAlign","end center"],["mat-cell",""],["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(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,Ad,6,1,"div",1),e.YNc(2,vd,5,1,"div",2),e.YNc(3,wd,3,1,"div",2),e.TgZ(4,"div",3),e._UZ(5,"div",4),e.TgZ(6,"mat-form-field",5),e.TgZ(7,"input",6),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"div",7),e.YNc(9,qd,1,0,"mat-progress-bar",8),e.TgZ(10,"table",9,10),e.ynx(12,11),e.YNc(13,Sd,2,0,"th",12),e.YNc(14,kd,2,4,"td",13),e.BQk(),e.ynx(15,14),e.YNc(16,Fd,3,0,"th",15),e.YNc(17,Ud,4,0,"td",16),e.BQk(),e.ynx(18,17),e.YNc(19,Od,2,1,"td",18),e.BQk(),e.YNc(20,Id,1,3,"tr",19),e.YNc(21,Md,1,0,"tr",20),e.YNc(22,Dd,1,0,"tr",21),e.qZA(),e.qZA(),e._UZ(23,"mat-paginator",22),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",a.allRestoreExists),e.xp6(1),e.Q6J("ngIf",!a.allRestoreExists&&(!a.channels||(null==a.channels||null==a.channels.data?null:a.channels.data.length)<=0)),e.xp6(1),e.Q6J("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.xp6(4),e.Q6J("ngModel",a.selFilter),e.xp6(2),e.Q6J("ngIf",!0===a.flgLoading[0]),e.xp6(1),e.Q6J("dataSource",a.channels)("ngClass",e.VKq(14,Pd,"error"===a.flgLoading[0])),e.xp6(10),e.Q6J("matFooterRowDef",e.DdM(16,Jd)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,p.O5,_.Wh,_.yH,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,L.lW,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,r.yh,r.Q2,r.XQ,r.Gk],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function Qd(n,i){1&n&&e._UZ(0,"mat-progress-bar",31)}function Yd(n,i){1&n&&(e.TgZ(0,"th",32),e._uU(1," Channel Point "),e.qZA())}const Hd=function(n){return{"max-width":n}};function Bd(n,i){if(1&n&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("ngStyle",e.VKq(2,Hd,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.Oqu(null==t?null:t.channel_point)}}function Vd(n,i){1&n&&(e.TgZ(0,"th",34),e.TgZ(1,"span",35),e._uU(2,"Actions"),e.qZA(),e.qZA())}function Gd(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",36),e.TgZ(1,"div",37),e.TgZ(2,"mat-select",38),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",39),e.NdJ("click",function(o){const u=e.CHM(t).$implicit;return e.oxw().onChannelClick(u,o)}),e._uU(5,"View Info"),e.qZA(),e.TgZ(6,"mat-option",39),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onBackupChannels(s)}),e._uU(7,"Backup"),e.qZA(),e.TgZ(8,"mat-option",39),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onDownloadBackup(s)}),e._uU(9,"Download Backup"),e.qZA(),e.TgZ(10,"mat-option",39),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().onVerifyChannels(s)}),e._uU(11,"Verify"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}}function zd(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"No channel available."),e.qZA())}function Wd(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting channels..."),e.qZA())}function Xd(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function $d(n,i){if(1&n&&(e.TgZ(0,"td",40),e.YNc(1,zd,2,0,"p",41),e.YNc(2,Wd,2,0,"p",41),e.YNc(3,Xd,2,1,"p",41),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const jd=function(n){return{"display-none":n}};function Kd(n,i){if(1&n&&e._UZ(0,"tr",42),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,jd,(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function eh(n,i){1&n&&e._UZ(0,"tr",43)}function th(n,i){1&n&&e._UZ(0,"tr",44)}const nh=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},ah=function(){return["no_channel"]};let ih=(()=>{class n{constructor(t,a,o,s){this.logger=t,this.store=a,this.actions=o,this.commonService=s,this.faInfoCircle=Z.sqG,this.faExclamationTriangle=Z.eHv,this.faArchive=Z.N2j,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.selNode={},this.displayedColumns=["channel_point","actions"],this.channelsData=[],this.flgSticky=!1,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(C.$k).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.channelsData=t.channels,this.channelsData.length>0&&this.loadBackupTable(this.channelsData),this.logger.info(t)}),this.actions.pipe((0,d.R)(this.unSubs[2]),(0,E.h)(t=>t.type===l.uR.SET_CHANNELS_LND||t.type===l.pg.SHOW_FILE)).subscribe(t=>{t.type===l.uR.SET_CHANNELS_LND&&(this.selectedChannel=null),t.type===l.pg.SHOW_FILE&&(this.commonService.downloadFile(t.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(t){this.store.dispatch((0,b.Vv)({payload:{uiMessage:l.m6.BACKUP_CHANNEL,channelPoint:t.channel_point?t.channel_point:"ALL",showMessage:""}}))}onVerifyChannels(t){this.store.dispatch((0,b.Cp)({payload:{channelPoint:t.channel_point?t.channel_point:"ALL"}}))}onDownloadBackup(t){this.selectedChannel=t,this.store.dispatch((0,v.dc)({payload:{channelPoint:t.channel_point?t.channel_point:"all"}}))}onChannelClick(t,a){this.store.dispatch((0,v.qR)({payload:{data:{channel:t,showCopy:!1,component:xe}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}loadBackupTable(t){this.channels=new r.by(t?[...t]:[]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.channels.paginator=this.paginator,this.channels.filterPredicate=(a,o)=>((a.active?"active":"inactive")+(a.channel_point?a.channel_point.toLowerCase():"")+(a.chan_id?a.chan_id.toLowerCase():"")+(a.remote_pubkey?a.remote_pubkey.toLowerCase():"")+(a.remote_alias?a.remote_alias.toLowerCase():"")+(a.capacity?a.capacity:"")+(a.local_balance?a.local_balance:"")+(a.remote_balance?a.remote_balance:"")+(a.total_satoshis_sent?a.total_satoshis_sent:"")+(a.total_satoshis_received?a.total_satoshis_received:"")+(a.commit_fee?a.commit_fee:"")+(a.private?"private":"public")).includes(o),this.applyFilter()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(w.yh),e.Y36(G.eX),e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-channel-backup-table"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Channels")}])],decls:42,vars:18,consts:[["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","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","channel_point"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",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","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","",1,"pr-3"],["fxLayoutAlign","end center"],["mat-cell","","fxLayoutAlign","end center"],[1,"bordered-box","table-actions-select"],["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(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span"),e._uU(5,"Save your backup files in a redundant location."),e.qZA(),e.qZA(),e.TgZ(6,"div",4),e._UZ(7,"fa-icon",3),e.TgZ(8,"span"),e.TgZ(9,"strong"),e._uU(10,"Backup Folder Location: "),e.qZA(),e._uU(11),e.qZA(),e.qZA(),e.TgZ(12,"div",5),e.TgZ(13,"button",6),e.NdJ("click",function(){return a.onVerifyChannels({})}),e._uU(14,"Verify All"),e.qZA(),e.TgZ(15,"button",7),e.NdJ("click",function(){return a.onBackupChannels({})}),e._uU(16,"Backup All"),e.qZA(),e.TgZ(17,"button",8),e.NdJ("click",function(){return a.onDownloadBackup({})}),e._uU(18,"Download Backup"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",9),e.TgZ(20,"div",10),e._UZ(21,"fa-icon",11),e.TgZ(22,"span",12),e._uU(23,"Backups"),e.qZA(),e.qZA(),e.TgZ(24,"mat-form-field",13),e.TgZ(25,"input",14),e.NdJ("keyup",function(){return a.applyFilter()})("ngModelChange",function(s){return a.selFilter=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"div",15),e.YNc(27,Qd,1,0,"mat-progress-bar",16),e.TgZ(28,"table",17,18),e.ynx(30,19),e.YNc(31,Yd,2,0,"th",20),e.YNc(32,Bd,2,4,"td",21),e.BQk(),e.ynx(33,22),e.YNc(34,Vd,3,0,"th",23),e.YNc(35,Gd,12,0,"td",24),e.BQk(),e.ynx(36,25),e.YNc(37,$d,4,3,"td",26),e.BQk(),e.YNc(38,Kd,1,3,"tr",27),e.YNc(39,eh,1,0,"tr",28),e.YNc(40,th,1,0,"tr",29),e.qZA(),e.qZA(),e._UZ(41,"mat-paginator",30),e.qZA()),2&t&&(e.xp6(3),e.Q6J("icon",a.faExclamationTriangle),e.xp6(4),e.Q6J("icon",a.faInfoCircle),e.xp6(4),e.hij("",a.selNode.channelBackupPath,"."),e.xp6(10),e.Q6J("icon",a.faArchive),e.xp6(4),e.Q6J("ngModel",a.selFilter),e.xp6(2),e.Q6J("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",a.channels)("ngClass",e.VKq(15,nh,""!==a.errorMessage)),e.xp6(10),e.Q6J("matFooterRowDef",e.DdM(17,ah)),e.xp6(1),e.Q6J("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",a.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},directives:[_.xw,_.Wh,_.yH,M.BN,L.lW,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,p.O5,r.BZ,A.YE,p.mk,q.oO,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,S.NW,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,R.gD,R.$L,Y.ey,r.yh,r.Q2,r.XQ,r.Gk],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 70%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function oh(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",8),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw().activeLink=s.link}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit,a=e.oxw();e.s9C("routerLink",t.link),e.Q6J("active",a.activeLink===t.link),e.xp6(1),e.Oqu(t.name)}}let sh=(()=>{class n{constructor(t){this.router=t,this.faUserCheck=Z.hkK,this.links=[{link:"sign",name:"Sign"},{link:"verify",name:"Verify"}],this.activeLink=this.links[0].link,this.unSubs=[new m.x,new m.x]}ngOnInit(){const t=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(a=>a instanceof y.Av)).subscribe({next:a=>{const o=this.links.find(s=>a.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(y.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-sign-verify-message"]],decls:11,vars:2,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-tab-nav-bar",""],["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"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Sign/Verify Message"),e.qZA(),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.TgZ(6,"mat-card-content",4),e.TgZ(7,"nav",5),e.YNc(8,oh,2,3,"div",6),e.qZA(),e.TgZ(9,"div",7),e._UZ(10,"router-outlet"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("icon",a.faUserCheck),e.xp6(7),e.Q6J("ngForOf",a.links))},directives:[_.xw,_.Wh,M.BN,T.a8,T.dn,D.BU,p.sg,_.yH,y.lC,D.Nj,y.rH],styles:[""]}),n})();function lh(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Message is required."),e.qZA())}let rh=(()=>{class n{constructor(t,a,o){this.dataService=t,this.snackBar=a,this.logger=o,this.message="",this.signedMessage="",this.signature="",this.unSubs=[new m.x,new m.x]}onSign(){if(!this.message||""===this.message)return!0;this.dataService.signMessage(this.message).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.signedMessage=this.message,this.signature=t.signature})}onMessageChange(){this.signedMessage!==this.message&&(this.signature="")}onCopyField(t){this.snackBar.open("Signature copied."),this.logger.info("Copied Text: "+t)}resetData(){this.message="",this.signature="",this.signedMessage=""}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(j.D),e.Y36(te.ux),e.Y36(F.mQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-sign"]],decls:20,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to sign","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[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,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","4","rtlClipboard","","type","button",3,"payload","copied"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"form",1,2),e.TgZ(3,"mat-form-field",3),e.TgZ(4,"textarea",4),e.NdJ("ngModelChange",function(s){return a.message=s})("keyup",function(){return a.onMessageChange()}),e.qZA(),e.YNc(5,lh,2,0,"mat-error",5),e.qZA(),e.TgZ(6,"div",6),e.TgZ(7,"button",7),e.NdJ("click",function(){return a.resetData()}),e._uU(8,"Clear Field"),e.qZA(),e.TgZ(9,"button",8),e.NdJ("click",function(){return a.onSign()}),e._uU(10,"Sign"),e.qZA(),e.qZA(),e._UZ(11,"mat-divider",9),e.TgZ(12,"div",10),e.TgZ(13,"p"),e._uU(14,"Generated Signature"),e.qZA(),e.qZA(),e.TgZ(15,"div",11),e._uU(16),e.qZA(),e.TgZ(17,"div",12),e.TgZ(18,"button",13),e.NdJ("copied",function(s){return a.onCopyField(s)}),e._uU(19,"Copy Signature"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngModel",a.message),e.xp6(1),e.Q6J("ngIf",!a.message),e.xp6(6),e.Q6J("inset",!0),e.xp6(5),e.Oqu(a.signature),e.xp6(2),e.Q6J("payload",a.signature))},directives:[_.xw,_.yH,_.Wh,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,W.h,c.Q7,c.JJ,c.On,p.O5,L.lW,z.d,se.y,f.TO],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function ch(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Message is required."),e.qZA())}function uh(n,i){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Signature is required."),e.qZA())}function ph(n,i){1&n&&(e.TgZ(0,"p",13),e.TgZ(1,"mat-icon",14),e._uU(2,"close"),e.qZA(),e._uU(3,"Verification failed, please double check message and signature"),e.qZA())}function mh(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Pubkey Used"),e.qZA())}function _h(n,i){if(1&n&&(e.TgZ(0,"div",20),e.TgZ(1,"p"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw(2);e.xp6(2),e.Oqu(null==t.verifyRes?null:t.verifyRes.pubkey)}}function dh(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",21),e.TgZ(1,"button",22),e.NdJ("copied",function(o){return e.CHM(t),e.oxw(2).onCopyField(o)}),e._uU(2,"Copy Pubkey"),e.qZA(),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("payload",null==t.verifyRes?null:t.verifyRes.pubkey)}}function hh(n,i){if(1&n&&(e.TgZ(0,"div",15),e._UZ(1,"mat-divider",16),e.TgZ(2,"div",17),e.YNc(3,mh,2,0,"p",5),e.qZA(),e.YNc(4,_h,3,1,"div",18),e.YNc(5,dh,3,1,"div",19),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("inset",!0),e.xp6(2),e.Q6J("ngIf",t.verifyRes.valid),e.xp6(1),e.Q6J("ngIf",t.verifyRes.valid),e.xp6(1),e.Q6J("ngIf",t.verifyRes.valid)}}let gh=(()=>{class n{constructor(t,a,o){this.dataService=t,this.snackBar=a,this.logger=o,this.message="",this.verifiedMessage="",this.signature="",this.verifiedSignature="",this.showVerifyStatus=!1,this.verifyRes={pubkey:"",valid:null},this.unSubs=[new m.x,new m.x]}onVerify(){if(!this.message||""===this.message||!this.signature||""===this.signature)return!0;this.dataService.verifyMessage(this.message,this.signature).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.verifyRes=t,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(t){this.snackBar.open("Pubkey copied."),this.logger.info("Copied Text: "+t)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(j.D),e.Y36(te.ux),e.Y36(F.mQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-verify"]],decls:17,vars:6,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to verify","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["matInput","","placeholder","Signature provided","name","signature","tabindex","2","required","",3,"ngModel","ngModelChange","keyup"],["sign","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 h-4 padding-gap",4,"ngIf"],["fxLayout","row","class","mt-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","5","rtlClipboard","","type","button",3,"payload","copied"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"form",1,2),e.TgZ(3,"mat-form-field",3),e.TgZ(4,"textarea",4),e.NdJ("ngModelChange",function(s){return a.message=s})("keyup",function(){return a.onChange()}),e.qZA(),e.YNc(5,ch,2,0,"mat-error",5),e.qZA(),e.TgZ(6,"mat-form-field",3),e.TgZ(7,"input",6,7),e.NdJ("ngModelChange",function(s){return a.signature=s})("keyup",function(){return a.onChange()}),e.qZA(),e.YNc(9,uh,2,0,"mat-error",5),e.qZA(),e.YNc(10,ph,4,0,"p",8),e.TgZ(11,"div",9),e.TgZ(12,"button",10),e.NdJ("click",function(){return a.resetData()}),e._uU(13,"Clear Fields"),e.qZA(),e.TgZ(14,"button",11),e.NdJ("click",function(){return a.onVerify()}),e._uU(15,"Verify"),e.qZA(),e.qZA(),e.YNc(16,hh,6,4,"div",12),e.qZA(),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngModel",a.message),e.xp6(1),e.Q6J("ngIf",!a.message),e.xp6(2),e.Q6J("ngModel",a.signature),e.xp6(2),e.Q6J("ngIf",!a.signature),e.xp6(1),e.Q6J("ngIf",a.showVerifyStatus&&!a.verifyRes.valid),e.xp6(6),e.Q6J("ngIf",a.showVerifyStatus&&a.verifyRes.valid))},directives:[_.xw,_.yH,_.Wh,c._Y,c.JL,c.F,f.KE,I.Nt,c.Fj,W.h,c.Q7,c.JJ,c.On,p.O5,L.lW,f.TO,K.Hw,z.d,se.y],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();var fh=h(9442),k=h(1643);function Ch(n,i){if(1&n&&(e.TgZ(0,"div",3),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.errorMessage)}}function xh(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",9),e.TgZ(1,"div",10),e._uU(2,"Non Routing Peers"),e.qZA(),e.TgZ(3,"mat-form-field",11),e.TgZ(4,"input",12),e.NdJ("keyup",function(){return e.CHM(t),e.oxw(2).applyFilter()})("ngModelChange",function(o){return e.CHM(t),e.oxw(2).filter=o}),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(4),e.Q6J("ngModel",t.filter)}}function Zh(n,i){1&n&&e._UZ(0,"mat-progress-bar",35)}function yh(n,i){1&n&&(e.TgZ(0,"th",36),e._uU(1,"Channel ID"),e.qZA())}const Ke=function(n){return{"max-width":n}};function Th(n,i){if(1&n&&(e.TgZ(0,"td",37),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(3);e.Q6J("ngStyle",e.VKq(2,Ke,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.Oqu(t.chan_id)}}function bh(n,i){1&n&&(e.TgZ(0,"th",36),e._uU(1,"Peer Alias"),e.qZA())}function Ah(n,i){if(1&n&&(e.TgZ(0,"td",37),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(3);e.Q6J("ngStyle",e.VKq(2,Ke,a.screenSize===a.screenSizeEnum.XS?"10rem":"28rem")),e.xp6(1),e.Oqu(t.remote_alias)}}function vh(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Sats Sent"),e.qZA())}function wh(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",40),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.total_satoshis_sent))}}function qh(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Sats Received"),e.qZA())}function Sh(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",40),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.total_satoshis_received))}}function Lh(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Local Balance (Sats)"),e.qZA())}function kh(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",40),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.local_balance))}}function Fh(n,i){1&n&&(e.TgZ(0,"th",38),e._uU(1,"Remote Balance (Sats)"),e.qZA())}function Uh(n,i){if(1&n&&(e.TgZ(0,"td",39),e.TgZ(1,"span",40),e._uU(2),e.ALo(3,"number"),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,t.remote_balance))}}function Nh(n,i){1&n&&(e.TgZ(0,"th",41),e.TgZ(1,"span",40),e._uU(2,"Actions"),e.qZA(),e.qZA())}function Oh(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"td",42),e.TgZ(1,"button",43),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw(3).onManagePeer(s)}),e._uU(2,"Manage"),e.qZA(),e.qZA()}}function Rh(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"All peers are routing."),e.qZA())}function Ih(n,i){1&n&&(e.TgZ(0,"p"),e._uU(1,"Getting non routing peers..."),e.qZA())}function Mh(n,i){if(1&n&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&n){const t=e.oxw(4);e.xp6(1),e.Oqu(t.errorMessage)}}function Dh(n,i){if(1&n&&(e.TgZ(0,"td",44),e.YNc(1,Rh,2,0,"p",45),e.YNc(2,Ih,2,0,"p",45),e.YNc(3,Mh,2,1,"p",45),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",(!(null!=t.NonRoutingPeers&&t.NonRoutingPeers.data)||(null==t.NonRoutingPeers||null==t.NonRoutingPeers.data?null:t.NonRoutingPeers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.NonRoutingPeers&&t.NonRoutingPeers.data)||(null==t.NonRoutingPeers||null==t.NonRoutingPeers.data?null:t.NonRoutingPeers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngIf",(!(null!=t.NonRoutingPeers&&t.NonRoutingPeers.data)||(null==t.NonRoutingPeers||null==t.NonRoutingPeers.data?null:t.NonRoutingPeers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Ph=function(n){return{"display-none":n}};function Jh(n,i){if(1&n&&e._UZ(0,"tr",46),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,Ph,(null==t.NonRoutingPeers||null==t.NonRoutingPeers.data?null:t.NonRoutingPeers.data.length)>0))}}function Eh(n,i){1&n&&e._UZ(0,"tr",47)}function Qh(n,i){1&n&&e._UZ(0,"tr",48)}const Yh=function(){return["no_non_routing_event"]};function Hh(n,i){if(1&n&&(e.TgZ(0,"div",13),e.YNc(1,Zh,1,0,"mat-progress-bar",14),e.TgZ(2,"table",15,16),e.ynx(4,17),e.YNc(5,yh,2,0,"th",18),e.YNc(6,Th,2,4,"td",19),e.BQk(),e.ynx(7,20),e.YNc(8,bh,2,0,"th",18),e.YNc(9,Ah,2,4,"td",19),e.BQk(),e.ynx(10,21),e.YNc(11,vh,2,0,"th",22),e.YNc(12,wh,4,3,"td",23),e.BQk(),e.ynx(13,24),e.YNc(14,qh,2,0,"th",22),e.YNc(15,Sh,4,3,"td",23),e.BQk(),e.ynx(16,25),e.YNc(17,Lh,2,0,"th",22),e.YNc(18,kh,4,3,"td",23),e.BQk(),e.ynx(19,26),e.YNc(20,Fh,2,0,"th",22),e.YNc(21,Uh,4,3,"td",23),e.BQk(),e.ynx(22,27),e.YNc(23,Nh,3,0,"th",28),e.YNc(24,Oh,3,0,"td",29),e.BQk(),e.ynx(25,30),e.YNc(26,Dh,4,3,"td",31),e.BQk(),e.YNc(27,Jh,1,3,"tr",32),e.YNc(28,Eh,1,0,"tr",33),e.YNc(29,Qh,1,0,"tr",34),e.qZA(),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("dataSource",t.NonRoutingPeers),e.xp6(25),e.Q6J("matFooterRowDef",e.DdM(6,Yh)),e.xp6(1),e.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns)}}function Bh(n,i){if(1&n&&(e.TgZ(0,"div",4),e.YNc(1,xh,5,1,"div",5),e.YNc(2,Hh,30,7,"div",6),e._UZ(3,"mat-paginator",7,8),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",""===t.errorMessage),e.xp6(1),e.Q6J("ngIf",""===t.errorMessage),e.xp6(1),e.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let Vh=(()=>{class n{constructor(t,a,o,s,u){this.logger=t,this.commonService=a,this.store=o,this.router=s,this.activatedRoute=u,this.routingPeersData=[],this.displayedColumns=[],this.NonRoutingPeers=new r.by([]),this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.filter="",this.activeChannels=[],this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x,new m.x,new m.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["remote_alias","local_balance","remote_balance","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["chan_id","remote_alias","local_balance","remote_balance","actions"]):(this.flgSticky=!0,this.displayedColumns=["chan_id","remote_alias","total_satoshis_received","total_satoshis_sent","local_balance","remote_balance","actions"])}ngOnInit(){this.store.select(C.Bo).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{var a;this.errorMessage="",this.apiCallStatus=t.apiCallStatus,(null===(a=t.apiCallStatus)||void 0===a?void 0:a.status)===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.routingPeersData=t.forwardingHistory.forwarding_events?t.forwardingHistory.forwarding_events:[],this.routingPeersData.length>0&&this.sort&&this.paginator&&this.loadNonRoutingPeersTable(this.routingPeersData),this.logger.info(t.apiCallStatus),this.logger.info(t.forwardingHistory)}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.activeChannels=t.channels,this.logger.info(t)})}ngAfterViewInit(){this.routingPeersData.length>0&&this.loadNonRoutingPeersTable(this.routingPeersData)}onManagePeer(t){this.router.navigate(["../../","connections","channels","open"],{relativeTo:this.activatedRoute,state:{filter:t.chan_id}})}loadNonRoutingPeersTable(t){if(t.length>0){const a=this.activeChannels.filter(o=>t.findIndex(s=>s.chan_id_in===o.chan_id||s.chan_id_out===o.chan_id)<0);this.NonRoutingPeers=new r.by(a),this.NonRoutingPeers.sort=this.sort,this.NonRoutingPeers.filterPredicate=(o,s)=>JSON.stringify(o).toLowerCase().includes(s),this.NonRoutingPeers.paginator=this.paginator,this.logger.info(this.NonRoutingPeers)}else this.NonRoutingPeers=new r.by([]);this.applyFilter()}applyFilter(){this.NonRoutingPeers.filter=this.filter.toLowerCase()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh),e.Y36(y.F0),e.Y36(y.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-non-routing-peers"]],viewQuery:function(t,a){if(1&t&&(e.Gf(A.YE,5),e.Gf(S.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},features:[e._Bn([{provide:S.ye,useValue:(0,l.pt)("Non routing peers")}])],decls:3,vars:2,consts:[["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"],["paginator",""],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","chan_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","remote_alias"],["matColumnDef","total_satoshis_sent"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","total_satoshis_received"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-2","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","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pr-3"],["mat-cell","","fxLayoutAlign","end center",1,"pl-2"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,Ch,2,1,"div",1),e.YNc(2,Bh,5,5,"div",2),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",""!==a.errorMessage),e.xp6(1),e.Q6J("ngIf",""===a.errorMessage))},directives:[_.xw,_.yH,_.Wh,p.O5,S.NW,f.KE,I.Nt,c.Fj,c.JJ,c.On,Q.$V,r.BZ,A.YE,r.w1,r.fO,r.Dz,r.mD,r.Ke,r.as,r.nj,P.pW,r.ge,A.nU,r.ev,p.PC,q.Zl,L.lW,r.yh,r.Q2,p.mk,q.oO,r.XQ,r.Gk],pipes:[p.JJ],styles:[".mat-column-chan_id[_ngcontent-%COMP%], .mat-column-alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})(),Gh=(()=>{class n{constructor(t){this.dataService=t,this.paths="",this.unSubs=[new m.x,new m.x]}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 t=this.payment.htlcs[0].route.hops.reduce((a,o)=>""===a?o.pub_key:a+","+o.pub_key,"");this.dataService.getAliasesFromPubkeys(t,!0).pipe((0,d.R)(this.unSubs[0])).subscribe(a=>{this.paths=a.reduce((o,s)=>""===o?s:o+"\n"+s,"")})}this.payment.payment_request&&""!==this.payment.payment_request.trim()&&this.dataService.decodePayment(this.payment.payment_request,!1).pipe((0,V.q)(1)).subscribe(t=>{t&&t.description&&""!==t.description&&(this.payment.description=t.description)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(j.D))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-payment-lookup"]],inputs:{payment:"payment"},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(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"mat-card-content",1),e.TgZ(2,"div",2),e.TgZ(3,"h4",3),e._uU(4,"Payment Hash"),e.qZA(),e.TgZ(5,"span",4),e._uU(6),e.qZA(),e.qZA(),e._UZ(7,"mat-divider",5),e.TgZ(8,"div",2),e.TgZ(9,"h4",3),e._uU(10,"Payment Preimage"),e.qZA(),e.TgZ(11,"span",4),e.TgZ(12,"div"),e._uU(13),e.qZA(),e.qZA(),e.qZA(),e._UZ(14,"mat-divider",5),e.TgZ(15,"div",2),e.TgZ(16,"h4",3),e._uU(17,"Payment Request"),e.qZA(),e.TgZ(18,"span",4),e.TgZ(19,"div"),e._uU(20),e.qZA(),e.qZA(),e.qZA(),e._UZ(21,"mat-divider",5),e.TgZ(22,"div",2),e.TgZ(23,"h4",3),e._uU(24,"Description"),e.qZA(),e.TgZ(25,"span",4),e.TgZ(26,"div"),e._uU(27),e.qZA(),e.qZA(),e.qZA(),e._UZ(28,"mat-divider",5),e.TgZ(29,"div",6),e.TgZ(30,"div",7),e.TgZ(31,"h4",3),e._uU(32,"Status"),e.qZA(),e.TgZ(33,"span",4),e.TgZ(34,"div"),e._uU(35),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"div",7),e.TgZ(37,"h4",3),e._uU(38,"Creation Date"),e.qZA(),e.TgZ(39,"span",4),e.TgZ(40,"div"),e._uU(41),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e._UZ(42,"mat-divider",5),e.TgZ(43,"div",6),e.TgZ(44,"div",7),e.TgZ(45,"h4",3),e._uU(46,"Value (mSats)"),e.qZA(),e.TgZ(47,"span",4),e.TgZ(48,"div"),e._uU(49),e.ALo(50,"number"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(51,"div",7),e.TgZ(52,"h4",3),e._uU(53,"Fee (mSats)"),e.qZA(),e.TgZ(54,"span",4),e.TgZ(55,"div"),e._uU(56),e.ALo(57,"number"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e._UZ(58,"mat-divider",5),e.TgZ(59,"div",2),e.TgZ(60,"h4",3),e._uU(61,"Path"),e.qZA(),e.TgZ(62,"span",4),e.TgZ(63,"div"),e._uU(64),e.qZA(),e.qZA(),e.qZA(),e._UZ(65,"mat-divider",5),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Oqu(null==a.payment?null:a.payment.payment_hash),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(null==a.payment?null:a.payment.payment_preimage),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(null==a.payment?null:a.payment.payment_request),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(null==a.payment?null:a.payment.description),e.xp6(1),e.Q6J("inset",!0),e.xp6(7),e.Oqu(null==a.payment?null:a.payment.status),e.xp6(6),e.Oqu(null==a.payment?null:a.payment.creation_date),e.xp6(1),e.Q6J("inset",!0),e.xp6(7),e.Oqu(e.lcZ(50,16,null==a.payment?null:a.payment.value_msat)),e.xp6(7),e.Oqu(e.lcZ(57,18,null==a.payment?null:a.payment.fee_msat)),e.xp6(2),e.Q6J("inset",!0),e.xp6(6),e.Oqu(a.paths),e.xp6(1),e.Q6J("inset",!0))},directives:[_.xw,_.yH,_.Wh,T.dn,z.d],pipes:[p.JJ],styles:[""]}),n})();var zh=h(159);function Wh(n,i){if(1&n&&e._UZ(0,"qr-code",22),2&n){const t=e.oxw();e.Q6J("value",null==t.invoice?null:t.invoice.payment_request)("size",t.qrWidth)("errorCorrectionLevel","L")}}function Xh(n,i){1&n&&(e.TgZ(0,"span",23),e._uU(1,"N/A"),e.qZA())}function $h(n,i){if(1&n&&e._UZ(0,"qr-code",22),2&n){const t=e.oxw();e.Q6J("value",null==t.invoice?null:t.invoice.payment_request)("size",t.qrWidth)("errorCorrectionLevel","L")}}function jh(n,i){1&n&&(e.TgZ(0,"span",24),e._uU(1,"QR Code Not Applicable"),e.qZA())}function Kh(n,i){1&n&&e._UZ(0,"mat-divider",16),2&n&&e.Q6J("inset",!0)}function eg(n,i){1&n&&(e.ynx(0),e._uU(1," (zero amount) "),e.BQk())}const Ae=function(n){return{"mr-0":n}};function tg(n,i){if(1&n&&e._UZ(0,"span",38),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,Ae,t.screenSize===t.screenSizeEnum.XS))}}function ng(n,i){if(1&n&&e._UZ(0,"span",39),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,Ae,t.screenSize===t.screenSizeEnum.XS))}}function ag(n,i){if(1&n&&e._UZ(0,"span",40),2&n){const t=e.oxw(3);e.Q6J("ngClass",e.VKq(1,Ae,t.screenSize===t.screenSizeEnum.XS))}}function ig(n,i){if(1&n&&(e.TgZ(0,"div",27),e.TgZ(1,"div",32),e.TgZ(2,"span",33),e.YNc(3,tg,1,3,"span",34),e.YNc(4,ng,1,3,"span",35),e.YNc(5,ag,1,3,"span",36),e._uU(6),e.qZA(),e.TgZ(7,"span",37),e._uU(8),e.ALo(9,"number"),e.qZA(),e.qZA(),e._UZ(10,"mat-divider",16),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.xp6(3),e.Q6J("ngIf","SETTLED"===t.state),e.xp6(1),e.Q6J("ngIf","ACCEPTED"===t.state),e.xp6(1),e.Q6J("ngIf","CANCELED"===t.state),e.xp6(1),e.hij(" ",t.chan_id," "),e.xp6(2),e.Oqu(e.xi3(9,6,+t.amt_msat/1e3||0,a.getDecimalFormat(t))),e.xp6(2),e.Q6J("inset",!0)}}function og(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",11),e.TgZ(1,"mat-expansion-panel",25),e.NdJ("opened",function(){return e.CHM(t),e.oxw().flgOpened=!0})("closed",function(){return e.CHM(t),e.oxw().onExpansionClosed()}),e.TgZ(2,"mat-expansion-panel-header"),e.TgZ(3,"mat-panel-title"),e.TgZ(4,"h4",26),e._uU(5,"HTLCs"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"div",27),e.TgZ(7,"div",28),e.TgZ(8,"span",29),e._uU(9,"Channel ID"),e.qZA(),e.TgZ(10,"span",30),e._uU(11,"Amount (Sats)"),e.qZA(),e.qZA(),e._UZ(12,"mat-divider",16),e.YNc(13,ig,11,9,"div",31),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(12),e.Q6J("inset",!0),e.xp6(1),e.Q6J("ngForOf",null==t.invoice?null:t.invoice.htlcs)}}function sg(n,i){1&n&&e._UZ(0,"mat-divider",16),2&n&&e.Q6J("inset",!0)}const et=function(n){return{"display-none":n}};let lg=(()=>{class n{constructor(t){this.commonService=t,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS&&(this.qrWidth=220)}getDecimalFormat(t){return t.amt_msat<1e3?"1.0-4":"1.0-0"}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(O.v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-invoice-lookup"]],inputs:{invoice:"invoice"},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"],[3,"value","size","errorCorrectionLevel",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"],[3,"value","size","errorCorrectionLevel"],[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(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.YNc(2,Wh,1,3,"qr-code",2),e.YNc(3,Xh,2,0,"span",3),e.qZA(),e.TgZ(4,"div",4),e.TgZ(5,"mat-card-content",5),e.TgZ(6,"div",6),e.TgZ(7,"div",7),e.YNc(8,$h,1,3,"qr-code",2),e.YNc(9,jh,2,0,"span",8),e.qZA(),e.YNc(10,Kh,1,1,"mat-divider",9),e.TgZ(11,"div",10),e.TgZ(12,"div",11),e.TgZ(13,"div",12),e.TgZ(14,"h4",13),e._uU(15),e.qZA(),e.TgZ(16,"span",14),e._uU(17),e.ALo(18,"number"),e.YNc(19,eg,2,0,"ng-container",15),e.qZA(),e.qZA(),e.TgZ(20,"div",12),e.TgZ(21,"h4",13),e._uU(22,"Amount Settled"),e.qZA(),e.TgZ(23,"span",14),e.TgZ(24,"div"),e._uU(25),e.ALo(26,"number"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e._UZ(27,"mat-divider",16),e.TgZ(28,"div",11),e.TgZ(29,"div",12),e.TgZ(30,"h4",13),e._uU(31,"Date Created"),e.qZA(),e.TgZ(32,"span",14),e._uU(33),e.ALo(34,"date"),e.qZA(),e.qZA(),e.TgZ(35,"div",12),e.TgZ(36,"h4",13),e._uU(37,"Date Settled"),e.qZA(),e.TgZ(38,"span",14),e._uU(39),e.ALo(40,"date"),e.qZA(),e.qZA(),e.qZA(),e._UZ(41,"mat-divider",16),e.TgZ(42,"div",11),e.TgZ(43,"div",17),e.TgZ(44,"h4",13),e._uU(45,"Memo"),e.qZA(),e.TgZ(46,"span",14),e._uU(47),e.qZA(),e.qZA(),e.qZA(),e._UZ(48,"mat-divider",16),e.TgZ(49,"div",11),e.TgZ(50,"div",17),e.TgZ(51,"h4",13),e._uU(52,"Payment Request"),e.qZA(),e.TgZ(53,"span",18),e._uU(54),e.qZA(),e.qZA(),e.qZA(),e._UZ(55,"mat-divider",16),e.TgZ(56,"div",11),e.TgZ(57,"div",17),e.TgZ(58,"h4",13),e._uU(59,"Payment Hash"),e.qZA(),e.TgZ(60,"span",18),e._uU(61),e.qZA(),e.qZA(),e.qZA(),e.TgZ(62,"div"),e._UZ(63,"mat-divider",16),e.TgZ(64,"div",11),e.TgZ(65,"div",17),e.TgZ(66,"h4",13),e._uU(67,"Preimage"),e.qZA(),e.TgZ(68,"span",18),e._uU(69),e.qZA(),e.qZA(),e.qZA(),e._UZ(70,"mat-divider",16),e.TgZ(71,"div",11),e.TgZ(72,"div",19),e.TgZ(73,"h4",13),e._uU(74,"State"),e.qZA(),e.TgZ(75,"span",18),e._uU(76),e.qZA(),e.qZA(),e.TgZ(77,"div",20),e.TgZ(78,"h4",13),e._uU(79,"Expiry"),e.qZA(),e.TgZ(80,"span",18),e._uU(81),e.qZA(),e.qZA(),e.TgZ(82,"div",20),e.TgZ(83,"h4",13),e._uU(84,"Private Routing Hints"),e.qZA(),e.TgZ(85,"span",18),e._uU(86),e.qZA(),e.qZA(),e.qZA(),e._UZ(87,"mat-divider",16),e.YNc(88,og,14,2,"div",21),e.YNc(89,sg,1,1,"mat-divider",9),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("fxLayoutAlign",null!=a.invoice&&a.invoice.payment_request&&""!==(null==a.invoice?null:a.invoice.payment_request)?"center start":"center center")("ngClass",e.VKq(41,et,a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM)),e.xp6(1),e.Q6J("ngIf",(null==a.invoice?null:a.invoice.payment_request)&&""!==(null==a.invoice?null:a.invoice.payment_request)),e.xp6(1),e.Q6J("ngIf",!(null!=a.invoice&&a.invoice.payment_request)||""===(null==a.invoice?null:a.invoice.payment_request)),e.xp6(4),e.Q6J("fxLayoutAlign",null!=a.invoice&&a.invoice.payment_request&&""!==(null==a.invoice?null:a.invoice.payment_request)?"center start":"center center")("ngClass",e.VKq(43,et,a.screenSize!==a.screenSizeEnum.XS&&a.screenSize!==a.screenSizeEnum.SM)),e.xp6(1),e.Q6J("ngIf",(null==a.invoice?null:a.invoice.payment_request)&&""!==(null==a.invoice?null:a.invoice.payment_request)),e.xp6(1),e.Q6J("ngIf",!(null!=a.invoice&&a.invoice.payment_request)||""===(null==a.invoice?null:a.invoice.payment_request)),e.xp6(1),e.Q6J("ngIf",a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM),e.xp6(5),e.Oqu(a.screenSize===a.screenSizeEnum.XS?"Amount":"Amount Requested"),e.xp6(2),e.hij("",e.lcZ(18,31,(null==a.invoice?null:a.invoice.value)||0)," Sats"),e.xp6(2),e.Q6J("ngIf",!(null!=a.invoice&&a.invoice.value)||"0"===(null==a.invoice?null:a.invoice.value)),e.xp6(6),e.hij("",e.lcZ(26,33,null==a.invoice?null:a.invoice.amt_paid_sat)," Sats"),e.xp6(2),e.Q6J("inset",!0),e.xp6(6),e.Oqu(e.xi3(34,35,1e3*(null==a.invoice?null:a.invoice.creation_date),"dd/MMM/y HH:mm")),e.xp6(6),e.Oqu(0!=+(null==a.invoice?null:a.invoice.settle_date)?e.xi3(40,38,1e3*+(null==a.invoice?null:a.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),e.xp6(2),e.Q6J("inset",!0),e.xp6(6),e.Oqu(null==a.invoice?null:a.invoice.memo),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu((null==a.invoice?null:a.invoice.payment_request)||"N/A"),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu((null==a.invoice?null:a.invoice.r_hash)||""),e.xp6(2),e.Q6J("inset",!0),e.xp6(6),e.Oqu((null==a.invoice?null:a.invoice.r_preimage)||"-"),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Oqu(null==a.invoice?null:a.invoice.state),e.xp6(5),e.Oqu(null==a.invoice?null:a.invoice.expiry),e.xp6(5),e.Oqu(null!=a.invoice&&a.invoice.private?"Yes":"No"),e.xp6(1),e.Q6J("inset",!0),e.xp6(1),e.Q6J("ngIf",(null==a.invoice?null:a.invoice.htlcs)&&(null==a.invoice?null:a.invoice.htlcs.length)>0),e.xp6(1),e.Q6J("ngIf",(null==a.invoice?null:a.invoice.htlcs)&&(null==a.invoice?null:a.invoice.htlcs.length)>0))},directives:[_.xw,_.Wh,_.yH,p.mk,q.oO,p.O5,T.dn,Q.$V,z.d,zh.uU,H.ib,H.yz,H.yK,p.sg,X.gM],pipes:[p.JJ,p.uU],styles:[""]}),n})();function rg(n,i){if(1&n&&(e.TgZ(0,"mat-radio-button",17),e._uU(1),e.qZA()),2&n){const t=i.$implicit,a=e.oxw();e.Q6J("value",t.id)("checked",a.selectedFieldId===t.id),e.xp6(1),e.hij(" ",t.name," ")}}function cg(n,i){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("",null==t.lookupFields[t.selectedFieldId]?null:t.lookupFields[t.selectedFieldId].placeholder," is required.")}}function ug(n,i){1&n&&e._UZ(0,"mat-progress-bar",20)}const pg=function(n){return{"w-100 mt-2 p-2 error-border":n,"w-100 my-2 p-2":!0}};function mg(n,i){if(1&n&&(e.TgZ(0,"div",18),e.YNc(1,ug,1,0,"mat-progress-bar",19),e._uU(2),e.qZA()),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(3,pg,""!==t.errorMessage&&"Getting lookup details..."!==t.errorMessage)),e.xp6(1),e.Q6J("ngIf","Getting lookup details..."===t.errorMessage),e.xp6(1),e.hij(" ",t.errorMessage," ")}}function _g(n,i){if(1&n&&(e.TgZ(0,"span",27),e._UZ(1,"rtl-payment-lookup",28),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("payment",t.lookupValue)}}function dg(n,i){if(1&n&&(e.TgZ(0,"span",27),e._UZ(1,"rtl-invoice-lookup",29),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("invoice",t.lookupValue)}}function hg(n,i){1&n&&(e.TgZ(0,"span",27),e.TgZ(1,"h3"),e._uU(2,"Error! Unable to find details!"),e.qZA(),e.qZA())}function gg(n,i){if(1&n&&(e.TgZ(0,"div",21),e.TgZ(1,"div",22),e.TgZ(2,"span",23),e._uU(3),e.qZA(),e.qZA(),e.TgZ(4,"div",24),e.YNc(5,_g,2,1,"span",25),e.YNc(6,dg,2,1,"span",25),e.YNc(7,hg,3,0,"span",26),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(3),e.hij("",t.lookupFields[t.selectedFieldId].name," Details"),e.xp6(1),e.Q6J("ngSwitch",t.selectedFieldId),e.xp6(1),e.Q6J("ngSwitchCase",0),e.xp6(1),e.Q6J("ngSwitchCase",1)}}const fg=function(n){return{"mt-1":!0,"mt-2":n}},Zg=y.Bz.forChild([{path:"",component:Se,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:si,canActivate:[k.QM]},{path:"wallet",component:_1,canActivate:[k.a1]},{path:"onchain",component:T_,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"receive/utxos"},{path:"receive/:selTab",component:v_,canActivate:[k.QM]},{path:"send/:selTab",component:$e,data:{sweepAll:!1},canActivate:[k.QM]},{path:"sweep/:selTab",component:$e,data:{sweepAll:!0},canActivate:[k.QM]}]},{path:"connections",component:ci,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:po,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:nl,canActivate:[k.QM]},{path:"pending",component:Pr,canActivate:[k.QM]},{path:"closed",component:uc,canActivate:[k.QM]},{path:"activehtlcs",component:Qc,canActivate:[k.QM]}]},{path:"peers",component:so,data:{sweepAll:!1},canActivate:[k.QM]}]},{path:"transactions",component:g1,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:De,canActivate:[k.QM]},{path:"invoices",component:Ie,canActivate:[k.QM]},{path:"lookuptransactions",component:(()=>{class n{constructor(t,a,o,s){this.logger=t,this.commonService=a,this.store=o,this.actions=s,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=Z.wn1,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatusEnum=l.Bn,this.unSubs=[new m.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions.pipe((0,d.R)(this.unSubs[0]),(0,E.h)(t=>t.type===l.uR.SET_LOOKUP_LND)).subscribe(t=>{this.flgSetLookupValue=!t.payload.error,this.lookupValue=JSON.parse(JSON.stringify(t.payload)),this.errorMessage=t.payload.error?this.commonService.extractErrorMessage(t.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,b.yZ)({payload:Buffer.from(this.lookupKey.trim(),"hex").toString("base64").replace(/\+/g,"-").replace(/[/]/g,"_")}));break;case 1:this.store.dispatch((0,b.n7)({payload:{openSnackBar:!1,paymentHash:Buffer.from(this.lookupKey.trim(),"hex").toString("base64").replace(/\+/g,"-").replace(/[/]/g,"_")}}))}}onSelectChange(t){this.resetData(),this.selectedFieldId=t.value}resetData(){this.flgSetLookupValue=!1,this.selectedFieldId=0,this.lookupKey="",this.lookupValue={},this.errorMessage=""}clearLookupValue(){this.lookupValue={},this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(O.v),e.Y36(w.yh),e.Y36(G.eX))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-lookup-transactions"]],decls:19,vars:10,consts:[["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"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModel","ngModelChange","change"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"placeholder","ngModel","change","ngModelChange"],["key",""],[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"],["fxFlex","100",4,"ngSwitchDefault"],["fxFlex","100"],[3,"payment"],[3,"invoice"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-card-content",2),e.TgZ(3,"form",3,4),e.TgZ(5,"div",5),e.TgZ(6,"mat-radio-group",6),e.NdJ("ngModelChange",function(s){return a.selectedFieldId=s})("change",function(s){return a.onSelectChange(s)}),e.YNc(7,rg,2,3,"mat-radio-button",7),e.qZA(),e.qZA(),e.TgZ(8,"mat-form-field",8),e.TgZ(9,"input",9,10),e.NdJ("change",function(){return a.clearLookupValue()})("ngModelChange",function(s){return a.lookupKey=s}),e.qZA(),e.YNc(11,cg,2,1,"mat-error",11),e.qZA(),e.TgZ(12,"div",12),e.TgZ(13,"button",13),e.NdJ("click",function(){return a.resetData()}),e._uU(14,"Clear"),e.qZA(),e.TgZ(15,"button",14),e.NdJ("click",function(){return a.onLookup()}),e._uU(16,"Lookup"),e.qZA(),e.qZA(),e.qZA(),e.YNc(17,mg,3,5,"div",15),e.YNc(18,gg,8,4,"div",16),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngModel",a.selectedFieldId),e.xp6(1),e.Q6J("ngForOf",a.lookupFields),e.xp6(1),e.Q6J("ngClass",e.VKq(8,fg,a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM)),e.xp6(1),e.Q6J("placeholder",(null==a.lookupFields[a.selectedFieldId]?null:a.lookupFields[a.selectedFieldId].placeholder)||"Lookup Key")("ngModel",a.lookupKey),e.xp6(2),e.Q6J("ngIf",!a.lookupKey),e.xp6(6),e.Q6J("ngIf",""!==a.errorMessage),e.xp6(1),e.Q6J("ngIf",""===a.errorMessage&&a.lookupValue&&a.flgSetLookupValue))},directives:[_.xw,_.yH,_.Wh,T.dn,c._Y,c.JL,c.F,ie.VQ,c.JJ,c.On,p.sg,f.KE,p.mk,q.oO,I.Nt,c.Fj,c.Q7,p.O5,L.lW,ie.U0,f.TO,P.pW,p.RF,p.n9,p.ED,Gh,lg],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}.pl-3[_ngcontent-%COMP%]{padding-left:3rem}"]}),n})(),canActivate:[k.QM]}]},{path:"messages",component:sh,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"sign"},{path:"sign",component:rh,canActivate:[k.QM]},{path:"verify",component:gh,canActivate:[k.QM]}]},{path:"channelbackup",component:bd,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"bckup"},{path:"bckup",component:ih,canActivate:[k.QM]},{path:"restore",component:Ed,canActivate:[k.QM]}]},{path:"routing",component:Cu,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:Be,canActivate:[k.QM]},{path:"peers",component:Pp,canActivate:[k.QM]},{path:"nonroutingprs",component:Vh,canActivate:[k.QM]}]},{path:"reports",component:Ep,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"routingreport"},{path:"routingreport",component:Xp,canActivate:[k.QM]},{path:"transactions",component:rm,canActivate:[k.QM]}]},{path:"graph",component:C1,canActivate:[k.QM],children:[{path:"",pathMatch:"full",redirectTo:"lookups"},{path:"lookups",component:He,canActivate:[k.QM]},{path:"queryroutes",component:J1,canActivate:[k.QM]}]},{path:"lookups",component:He,canActivate:[k.QM]},{path:"network",component:yd,canActivate:[k.QM]},{path:"**",component:fh.w},{path:"rates",redirectTo:"network"}]}]);var yg=h(8750);let Tg=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n,bootstrap:[Se]}),n.\u0275inj=e.cJS({providers:[k.QM],imports:[[p.ez,yg.m,Zg]]}),n})()}}]); \ No newline at end of file diff --git a/frontend/index.html b/frontend/index.html index 71522abe..f0000913 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -13,6 +13,6 @@ - + \ No newline at end of file diff --git a/frontend/main.1300125d72833537.js b/frontend/main.1300125d72833537.js deleted file mode 100644 index ae565874..00000000 --- a/frontend/main.1300125d72833537.js +++ /dev/null @@ -1 +0,0 @@ -var M5=Object.defineProperty,w5=Object.defineProperties,A5=Object.getOwnPropertyDescriptors,m8=Object.getOwnPropertySymbols,E5=Object.prototype.hasOwnProperty,T5=Object.prototype.propertyIsEnumerable,g8=(Ve,Q,m)=>Q in Ve?M5(Ve,Q,{enumerable:!0,configurable:!0,writable:!0,value:m}):Ve[Q]=m,io=(Ve,Q)=>{for(var m in Q||(Q={}))E5.call(Q,m)&&g8(Ve,m,Q[m]);if(m8)for(var m of m8(Q))T5.call(Q,m)&&g8(Ve,m,Q[m]);return Ve},_8=(Ve,Q)=>w5(Ve,A5(Q));(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[179],{801:(Ve,Q,m)=>{"use strict";m.d(Q,{Sbq:()=>w,Vfw:()=>W,N2j:()=>se,DL8:()=>$,BDt:()=>at,Acd:()=>gt,koM:()=>Vr,OS1:()=>pr,dT$:()=>Qt,mh3:()=>Xt,b7W:()=>Ti,kZ_:()=>wr,q7m:()=>ii,FlN:()=>so,KOR:()=>Ea,Ssp:()=>bo,eHv:()=>Yr,Mdf:()=>a1,Aq:()=>aa,qO$:()=>Ph,vqe:()=>os,sqG:()=>C1,Krp:()=>pl,uli:()=>z0,nNP:()=>E1,byT:()=>Z0,SuH:()=>I1,co4:()=>X0,aj4:()=>Pc,kXW:()=>Ja,XsY:()=>vl,USL:()=>Fc,r8p:()=>bd,o4t:()=>Td,Psp:()=>Y1,dLy:()=>_2,FpQ:()=>x2,wn1:()=>vr,xf3:()=>Ud,HLz:()=>J1,NBC:()=>Z2,CgH:()=>$a,B$L:()=>qr,hkK:()=>$2,hnx:()=>Pu,gNZ:()=>jc,FJU:()=>s0,FVb:()=>qc,X5K:()=>nh,wyP:()=>sh});var w={prefix:"fas",iconName:"angle-double-down",icon:[320,512,[],"f103","M143 256.3L7 120.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0L313 86.3c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.4 9.5-24.6 9.5-34 .1zm34 192l136-136c9.4-9.4 9.4-24.6 0-33.9l-22.6-22.6c-9.4-9.4-24.6-9.4-33.9 0L160 352.1l-96.4-96.4c-9.4-9.4-24.6-9.4-33.9 0L7 278.3c-9.4 9.4-9.4 24.6 0 33.9l136 136c9.4 9.5 24.6 9.5 34 .1z"]},W={prefix:"fas",iconName:"angle-double-up",icon:[320,512,[],"f102","M177 255.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 351.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 425.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1zm-34-192L7 199.7c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l96.4-96.4 96.4 96.4c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9l-136-136c-9.2-9.4-24.4-9.4-33.8 0z"]},se={prefix:"fas",iconName:"archive",icon:[512,512,[],"f187","M32 448c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V160H32v288zm160-212c0-6.6 5.4-12 12-12h104c6.6 0 12 5.4 12 12v8c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-8zM480 32H32C14.3 32 0 46.3 0 64v48c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16V64c0-17.7-14.3-32-32-32z"]},$={prefix:"fas",iconName:"balance-scale",icon:[640,512,[],"f24e","M256 336h-.02c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0C-2.06 328.75.02 320.33.02 336H0c0 44.18 57.31 80 128 80s128-35.82 128-80zM128 176l72 144H56l72-144zm511.98 160c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 320l72-144 72 144H440zm88 128H352V153.25c23.51-10.29 41.16-31.48 46.39-57.25H528c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H383.64C369.04 12.68 346.09 0 320 0s-49.04 12.68-63.64 32H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h129.61c5.23 25.76 22.87 46.96 46.39 57.25V448H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]},at={prefix:"fas",iconName:"bolt",icon:[320,512,[],"f0e7","M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"]},gt={prefix:"fas",iconName:"bullhorn",icon:[576,512,[],"f0a1","M576 240c0-23.63-12.95-44.04-32-55.12V32.01C544 23.26 537.02 0 512 0c-7.12 0-14.19 2.38-19.98 7.02l-85.03 68.03C364.28 109.19 310.66 128 256 128H64c-35.35 0-64 28.65-64 64v96c0 35.35 28.65 64 64 64h33.7c-1.39 10.48-2.18 21.14-2.18 32 0 39.77 9.26 77.35 25.56 110.94 5.19 10.69 16.52 17.06 28.4 17.06h74.28c26.05 0 41.69-29.84 25.9-50.56-16.4-21.52-26.15-48.36-26.15-77.44 0-11.11 1.62-21.79 4.41-32H256c54.66 0 108.28 18.81 150.98 52.95l85.03 68.03a32.023 32.023 0 0 0 19.98 7.02c24.92 0 32-22.78 32-32V295.13C563.05 284.04 576 263.63 576 240zm-96 141.42l-33.05-26.44C392.95 311.78 325.12 288 256 288v-96c69.12 0 136.95-23.78 190.95-66.98L480 98.58v282.84z"]},Vr={prefix:"fas",iconName:"chart-bar",icon:[512,512,[],"f080","M332.8 320h38.4c6.4 0 12.8-6.4 12.8-12.8V172.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V76.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-288 0h38.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zM496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]},pr={prefix:"fas",iconName:"chart-pie",icon:[544,512,[],"f200","M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z"]},Qt={prefix:"fas",iconName:"code",icon:[640,512,[],"f121","M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"]},Xt={prefix:"fas",iconName:"code-branch",icon:[384,512,[],"f126","M384 144c0-44.2-35.8-80-80-80s-80 35.8-80 80c0 36.4 24.3 67.1 57.5 76.8-.6 16.1-4.2 28.5-11 36.9-15.4 19.2-49.3 22.4-85.2 25.7-28.2 2.6-57.4 5.4-81.3 16.9v-144c32.5-10.2 56-40.5 56-76.3 0-44.2-35.8-80-80-80S0 35.8 0 80c0 35.8 23.5 66.1 56 76.3v199.3C23.5 365.9 0 396.2 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-34-21.2-63.1-51.2-74.6 3.1-5.2 7.8-9.8 14.9-13.4 16.2-8.2 40.4-10.4 66.1-12.8 42.2-3.9 90-8.4 118.2-43.4 14-17.4 21.1-39.8 21.6-67.9 31.6-10.8 54.4-40.7 54.4-75.9zM80 64c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm0 384c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm224-320c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16z"]},Ti={prefix:"fas",iconName:"cog",icon:[512,512,[],"f013","M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]},wr={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"]},ii={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"]},so={prefix:"fas",iconName:"dumbbell",icon:[640,512,[],"f44b","M104 96H56c-13.3 0-24 10.7-24 24v104H8c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h24v104c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24zm528 128h-24V120c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h24c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM456 32h-48c-13.3 0-24 10.7-24 24v168H256V56c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v400c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h128v168c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24z"]},Ea={prefix:"fas",iconName:"eject",icon:[448,512,[],"f052","M448 384v64c0 17.673-14.327 32-32 32H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h384c17.673 0 32 14.327 32 32zM48.053 320h351.886c41.651 0 63.581-49.674 35.383-80.435L259.383 47.558c-19.014-20.743-51.751-20.744-70.767 0L12.67 239.565C-15.475 270.268 6.324 320 48.053 320z"]},bo={prefix:"fas",iconName:"exchange-alt",icon:[512,512,[],"f362","M0 168v-16c0-13.255 10.745-24 24-24h360V80c0-21.367 25.899-32.042 40.971-16.971l80 80c9.372 9.373 9.372 24.569 0 33.941l-80 80C409.956 271.982 384 261.456 384 240v-48H24c-13.255 0-24-10.745-24-24zm488 152H128v-48c0-21.314-25.862-32.08-40.971-16.971l-80 80c-9.372 9.373-9.372 24.569 0 33.941l80 80C102.057 463.997 128 453.437 128 432v-48h360c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"]},Yr={prefix:"fas",iconName:"exclamation-triangle",icon:[576,512,[],"f071","M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"]},a1={prefix:"fas",iconName:"eye",icon:[576,512,[],"f06e","M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"]},aa={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"]},Ph={prefix:"fas",iconName:"history",icon:[512,512,[],"f1da","M504 255.531c.253 136.64-111.18 248.372-247.82 248.468-59.015.042-113.223-20.53-155.822-54.911-11.077-8.94-11.905-25.541-1.839-35.607l11.267-11.267c8.609-8.609 22.353-9.551 31.891-1.984C173.062 425.135 212.781 440 256 440c101.705 0 184-82.311 184-184 0-101.705-82.311-184-184-184-48.814 0-93.149 18.969-126.068 49.932l50.754 50.754c10.08 10.08 2.941 27.314-11.313 27.314H24c-8.837 0-16-7.163-16-16V38.627c0-14.254 17.234-21.393 27.314-11.314l49.372 49.372C129.209 34.136 189.552 8 256 8c136.81 0 247.747 110.78 248 247.531zm-180.912 78.784l9.823-12.63c8.138-10.463 6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z"]},os={prefix:"fas",iconName:"infinity",icon:[640,512,[],"f534","M471.1 96C405 96 353.3 137.3 320 174.6 286.7 137.3 235 96 168.9 96 75.8 96 0 167.8 0 256s75.8 160 168.9 160c66.1 0 117.8-41.3 151.1-78.6 33.3 37.3 85 78.6 151.1 78.6 93.1 0 168.9-71.8 168.9-160S564.2 96 471.1 96zM168.9 320c-40.2 0-72.9-28.7-72.9-64s32.7-64 72.9-64c38.2 0 73.4 36.1 94 64-20.4 27.6-55.9 64-94 64zm302.2 0c-38.2 0-73.4-36.1-94-64 20.4-27.6 55.9-64 94-64 40.2 0 72.9 28.7 72.9 64s-32.7 64-72.9 64z"]},C1={prefix:"fas",iconName:"info-circle",icon:[512,512,[],"f05a","M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"]},pl={prefix:"fas",iconName:"layer-group",icon:[512,512,[],"f5fd","M12.41 148.02l232.94 105.67c6.8 3.09 14.49 3.09 21.29 0l232.94-105.67c16.55-7.51 16.55-32.52 0-40.03L266.65 2.31a25.607 25.607 0 0 0-21.29 0L12.41 107.98c-16.55 7.51-16.55 32.53 0 40.04zm487.18 88.28l-58.09-26.33-161.64 73.27c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.51 209.97l-58.1 26.33c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 276.3c16.55-7.5 16.55-32.5 0-40zm0 127.8l-57.87-26.23-161.86 73.37c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.29 337.87 12.41 364.1c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 404.1c16.55-7.5 16.55-32.5 0-40z"]},z0={prefix:"fas",iconName:"life-ring",icon:[512,512,[],"f1cd","M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm173.696 119.559l-63.399 63.399c-10.987-18.559-26.67-34.252-45.255-45.255l63.399-63.399a218.396 218.396 0 0 1 45.255 45.255zM256 352c-53.019 0-96-42.981-96-96s42.981-96 96-96 96 42.981 96 96-42.981 96-96 96zM127.559 82.304l63.399 63.399c-18.559 10.987-34.252 26.67-45.255 45.255l-63.399-63.399a218.372 218.372 0 0 1 45.255-45.255zM82.304 384.441l63.399-63.399c10.987 18.559 26.67 34.252 45.255 45.255l-63.399 63.399a218.396 218.396 0 0 1-45.255-45.255zm302.137 45.255l-63.399-63.399c18.559-10.987 34.252-26.67 45.255-45.255l63.399 63.399a218.403 218.403 0 0 1-45.255 45.255z"]},E1={prefix:"fas",iconName:"link",icon:[512,512,[],"f0c1","M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"]},Z0={prefix:"fas",iconName:"lock",icon:[448,512,[],"f023","M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"]},I1={prefix:"fas",iconName:"map-signs",icon:[512,512,[],"f277","M507.31 84.69L464 41.37c-6-6-14.14-9.37-22.63-9.37H288V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v16H56c-13.25 0-24 10.75-24 24v80c0 13.25 10.75 24 24 24h385.37c8.49 0 16.62-3.37 22.63-9.37l43.31-43.31c6.25-6.26 6.25-16.38 0-22.63zM224 496c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h-64v112zm232-272H288v-32h-64v32H70.63c-8.49 0-16.62 3.37-22.63 9.37L4.69 276.69c-6.25 6.25-6.25 16.38 0 22.63L48 342.63c6 6 14.14 9.37 22.63 9.37H456c13.25 0 24-10.75 24-24v-80c0-13.25-10.75-24-24-24z"]},X0={prefix:"fas",iconName:"money-bill-alt",icon:[640,512,[],"f3d1","M352 288h-16v-88c0-4.42-3.58-8-8-8h-13.58c-4.74 0-9.37 1.4-13.31 4.03l-15.33 10.22a7.994 7.994 0 0 0-2.22 11.09l8.88 13.31a7.994 7.994 0 0 0 11.09 2.22l.47-.31V288h-16c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8h64c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zM608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 192c-53.02 0-96-50.15-96-112 0-61.86 42.98-112 96-112s96 50.14 96 112c0 61.87-43 112-96 112zm272 32h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"]},Pc={prefix:"fas",iconName:"money-bill-wave",icon:[640,512,[],"f53a","M621.16 54.46C582.37 38.19 543.55 32 504.75 32c-123.17-.01-246.33 62.34-369.5 62.34-30.89 0-61.76-3.92-92.65-13.72-3.47-1.1-6.95-1.62-10.35-1.62C15.04 79 0 92.32 0 110.81v317.26c0 12.63 7.23 24.6 18.84 29.46C57.63 473.81 96.45 480 135.25 480c123.17 0 246.34-62.35 369.51-62.35 30.89 0 61.76 3.92 92.65 13.72 3.47 1.1 6.95 1.62 10.35 1.62 17.21 0 32.25-13.32 32.25-31.81V83.93c-.01-12.64-7.24-24.6-18.85-29.47zM48 132.22c20.12 5.04 41.12 7.57 62.72 8.93C104.84 170.54 79 192.69 48 192.69v-60.47zm0 285v-47.78c34.37 0 62.18 27.27 63.71 61.4-22.53-1.81-43.59-6.31-63.71-13.62zM320 352c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96zm272 27.78c-17.52-4.39-35.71-6.85-54.32-8.44 5.87-26.08 27.5-45.88 54.32-49.28v57.72zm0-236.11c-30.89-3.91-54.86-29.7-55.81-61.55 19.54 2.17 38.09 6.23 55.81 12.66v48.89z"]},Ja={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M640 264v-16c0-8.84-7.16-16-16-16H344v-40h72c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H224c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h72v40H16c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h104v40H64c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h304v40h-56c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h104c8.84 0 16-7.16 16-16zM256 128V64h128v64H256zm-64 320H96v-64h96v64zm352 0h-96v-64h96v64z"]},vl={prefix:"fas",iconName:"paint-brush",icon:[512,512,[],"f1fc","M167.02 309.34c-40.12 2.58-76.53 17.86-97.19 72.3-2.35 6.21-8 9.98-14.59 9.98-11.11 0-45.46-27.67-55.25-34.35C0 439.62 37.93 512 128 512c75.86 0 128-43.77 128-120.19 0-3.11-.65-6.08-.97-9.13l-88.01-73.34zM457.89 0c-15.16 0-29.37 6.71-40.21 16.45C213.27 199.05 192 203.34 192 257.09c0 13.7 3.25 26.76 8.73 38.7l63.82 53.18c7.21 1.8 14.64 3.03 22.39 3.03 62.11 0 98.11-45.47 211.16-256.46 7.38-14.35 13.9-29.85 13.9-45.99C512 20.64 486 0 457.89 0z"]},Fc={prefix:"fas",iconName:"percentage",icon:[384,512,[],"f541","M109.25 173.25c24.99-24.99 24.99-65.52 0-90.51-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 25 25 65.52 25 90.51 0zm256 165.49c-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 24.99 24.99 65.52 24.99 90.51 0 25-24.99 25-65.51 0-90.51zm-1.94-231.43l-22.62-22.62c-12.5-12.5-32.76-12.5-45.25 0L20.69 359.44c-12.5 12.5-12.5 32.76 0 45.25l22.62 22.62c12.5 12.5 32.76 12.5 45.25 0l274.75-274.75c12.5-12.49 12.5-32.75 0-45.25z"]},bd={prefix:"fas",iconName:"plus",icon:[448,512,[],"f067","M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]},Td={prefix:"fas",iconName:"project-diagram",icon:[640,512,[],"f542","M384 320H256c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32zM192 32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v128c0 17.67 14.33 32 32 32h95.72l73.16 128.04C211.98 300.98 232.4 288 256 288h.28L192 175.51V128h224V64H192V32zM608 0H480c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32z"]},Y1={prefix:"fas",iconName:"question",icon:[384,512,[],"f128","M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"]},_2={prefix:"fas",iconName:"receipt",icon:[384,512,[],"f543","M358.4 3.2L320 48 265.6 3.2a15.9 15.9 0 0 0-19.2 0L192 48 137.6 3.2a15.9 15.9 0 0 0-19.2 0L64 48 25.6 3.2C15-4.7 0 2.8 0 16v480c0 13.2 15 20.7 25.6 12.8L64 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L192 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L320 464l38.4 44.8c10.5 7.9 25.6.4 25.6-12.8V16c0-13.2-15-20.7-25.6-12.8zM320 360c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16z"]},x2={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M416 320h-96c-17.6 0-32-14.4-32-32s14.4-32 32-32h96s96-107 96-160-43-96-96-96-96 43-96 96c0 25.5 22.2 63.4 45.3 96H320c-52.9 0-96 43.1-96 96s43.1 96 96 96h96c17.6 0 32 14.4 32 32s-14.4 32-32 32H185.5c-16 24.8-33.8 47.7-47.3 64H416c52.9 0 96-43.1 96-96s-43.1-96-96-96zm0-256c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM96 256c-53 0-96 43-96 96s96 160 96 160 96-107 96-160-43-96-96-96zm0 128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]},vr={prefix:"fas",iconName:"search",icon:[512,512,[],"f002","M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"]},Ud={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M480 160H32c-17.673 0-32-14.327-32-32V64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24z"]},J1={prefix:"fas",iconName:"tachometer-alt",icon:[576,512,[],"f3fd","M288 32C128.94 32 0 160.94 0 320c0 52.8 14.25 102.26 39.06 144.8 5.61 9.62 16.3 15.2 27.44 15.2h443c11.14 0 21.83-5.58 27.44-15.2C561.75 422.26 576 372.8 576 320c0-159.06-128.94-288-288-288zm0 64c14.71 0 26.58 10.13 30.32 23.65-1.11 2.26-2.64 4.23-3.45 6.67l-9.22 27.67c-5.13 3.49-10.97 6.01-17.64 6.01-17.67 0-32-14.33-32-32S270.33 96 288 96zM96 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm48-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm246.77-72.41l-61.33 184C343.13 347.33 352 364.54 352 384c0 11.72-3.38 22.55-8.88 32H232.88c-5.5-9.45-8.88-20.28-8.88-32 0-33.94 26.5-61.43 59.9-63.59l61.34-184.01c4.17-12.56 17.73-19.45 30.36-15.17 12.57 4.19 19.35 17.79 15.17 30.36zm14.66 57.2l15.52-46.55c3.47-1.29 7.13-2.23 11.05-2.23 17.67 0 32 14.33 32 32s-14.33 32-32 32c-11.38-.01-20.89-6.28-26.57-15.22zM480 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]},Z2={prefix:"fas",iconName:"times",icon:[352,512,[],"f00d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"]},$a={prefix:"fas",iconName:"tools",icon:[512,512,[],"f7d9","M501.1 395.7L384 278.6c-23.1-23.1-57.6-27.6-85.4-13.9L192 158.1V96L64 0 0 64l96 128h62.1l106.6 106.6c-13.6 27.8-9.2 62.3 13.9 85.4l117.1 117.1c14.6 14.6 38.2 14.6 52.7 0l52.7-52.7c14.5-14.6 14.5-38.2 0-52.7zM331.7 225c28.3 0 54.9 11 74.9 31l19.4 19.4c15.8-6.9 30.8-16.5 43.8-29.5 37.1-37.1 49.7-89.3 37.9-136.7-2.2-9-13.5-12.1-20.1-5.5l-74.4 74.4-67.9-11.3L334 98.9l74.4-74.4c6.6-6.6 3.4-17.9-5.7-20.2-47.4-11.7-99.6.9-136.6 37.9-28.5 28.5-41.9 66.1-41.2 103.6l82.1 82.1c8.1-1.9 16.5-2.9 24.7-2.9zm-103.9 82l-56.7-56.7L18.7 402.8c-25 25-25 65.5 0 90.5s65.5 25 90.5 0l123.6-123.6c-7.6-19.9-9.9-41.6-5-62.7zM64 472c-13.2 0-24-10.8-24-24 0-13.3 10.7-24 24-24s24 10.7 24 24c0 13.2-10.7 24-24 24z"]},qr={prefix:"fas",iconName:"unlock-alt",icon:[448,512,[],"f13e","M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zM264 408c0 22.1-17.9 40-40 40s-40-17.9-40-40v-48c0-22.1 17.9-40 40-40s40 17.9 40 40v48z"]},$2={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4zm323-128.4l-27.8-28.1c-4.6-4.7-12.1-4.7-16.8-.1l-104.8 104-45.5-45.8c-4.6-4.7-12.1-4.7-16.8-.1l-28.1 27.9c-4.7 4.6-4.7 12.1-.1 16.8l81.7 82.3c4.6 4.7 12.1 4.7 16.8.1l141.3-140.2c4.6-4.7 4.7-12.2.1-16.8z"]},Pu={prefix:"fas",iconName:"user-clock",icon:[640,512,[],"f4fd","M496 224c-79.6 0-144 64.4-144 144s64.4 144 144 144 144-64.4 144-144-64.4-144-144-144zm64 150.3c0 5.3-4.4 9.7-9.7 9.7h-60.6c-5.3 0-9.7-4.4-9.7-9.7v-76.6c0-5.3 4.4-9.7 9.7-9.7h12.6c5.3 0 9.7 4.4 9.7 9.7V352h38.3c5.3 0 9.7 4.4 9.7 9.7v12.6zM320 368c0-27.8 6.7-54.1 18.2-77.5-8-1.5-16.2-2.5-24.6-2.5h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h347.1c-45.3-31.9-75.1-84.5-75.1-144zm-96-112c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128z"]},jc={prefix:"fas",iconName:"user-cog",icon:[640,512,[],"f4fe","M610.5 373.3c2.6-14.1 2.6-28.5 0-42.6l25.8-14.9c3-1.7 4.3-5.2 3.3-8.5-6.7-21.6-18.2-41.2-33.2-57.4-2.3-2.5-6-3.1-9-1.4l-25.8 14.9c-10.9-9.3-23.4-16.5-36.9-21.3v-29.8c0-3.4-2.4-6.4-5.7-7.1-22.3-5-45-4.8-66.2 0-3.3.7-5.7 3.7-5.7 7.1v29.8c-13.5 4.8-26 12-36.9 21.3l-25.8-14.9c-2.9-1.7-6.7-1.1-9 1.4-15 16.2-26.5 35.8-33.2 57.4-1 3.3.4 6.8 3.3 8.5l25.8 14.9c-2.6 14.1-2.6 28.5 0 42.6l-25.8 14.9c-3 1.7-4.3 5.2-3.3 8.5 6.7 21.6 18.2 41.1 33.2 57.4 2.3 2.5 6 3.1 9 1.4l25.8-14.9c10.9 9.3 23.4 16.5 36.9 21.3v29.8c0 3.4 2.4 6.4 5.7 7.1 22.3 5 45 4.8 66.2 0 3.3-.7 5.7-3.7 5.7-7.1v-29.8c13.5-4.8 26-12 36.9-21.3l25.8 14.9c2.9 1.7 6.7 1.1 9-1.4 15-16.2 26.5-35.8 33.2-57.4 1-3.3-.4-6.8-3.3-8.5l-25.8-14.9zM496 400.5c-26.8 0-48.5-21.8-48.5-48.5s21.8-48.5 48.5-48.5 48.5 21.8 48.5 48.5-21.7 48.5-48.5 48.5zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm201.2 226.5c-2.3-1.2-4.6-2.6-6.8-3.9l-7.9 4.6c-6 3.4-12.8 5.3-19.6 5.3-10.9 0-21.4-4.6-28.9-12.6-18.3-19.8-32.3-43.9-40.2-69.6-5.5-17.7 1.9-36.4 17.9-45.7l7.9-4.6c-.1-2.6-.1-5.2 0-7.8l-7.9-4.6c-16-9.2-23.4-28-17.9-45.7.9-2.9 2.2-5.8 3.2-8.7-3.8-.3-7.5-1.2-11.4-1.2h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c10.1 0 19.5-3.2 27.2-8.5-1.2-3.8-2-7.7-2-11.8v-9.2z"]},s0={prefix:"fas",iconName:"user-lock",icon:[640,512,[],"f502","M224 256A128 128 0 1 0 96 128a128 128 0 0 0 128 128zm96 64a63.08 63.08 0 0 1 8.1-30.5c-4.8-.5-9.5-1.5-14.5-1.5h-16.7a174.08 174.08 0 0 1-145.8 0h-16.7A134.43 134.43 0 0 0 0 422.4V464a48 48 0 0 0 48 48h280.9a63.54 63.54 0 0 1-8.9-32zm288-32h-32v-80a80 80 0 0 0-160 0v80h-32a32 32 0 0 0-32 32v160a32 32 0 0 0 32 32h224a32 32 0 0 0 32-32V320a32 32 0 0 0-32-32zM496 432a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm32-144h-64v-80a32 32 0 0 1 64 0z"]},qc={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"]},nh={prefix:"fas",iconName:"wallet",icon:[512,512,[],"f555","M461.2 128H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h384c8.84 0 16-7.16 16-16 0-26.51-21.49-48-48-48H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h397.2c28.02 0 50.8-21.53 50.8-48V176c0-26.47-22.78-48-50.8-48zM416 336c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]},sh={prefix:"fas",iconName:"window-restore",icon:[512,512,[],"f2d2","M512 48v288c0 26.5-21.5 48-48 48h-48V176c0-44.1-35.9-80-80-80H128V48c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zM384 176v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zm-68 28c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v52h252v-52z"]}},429:(Ve,Q,m)=>{"use strict";m.d(Q,{Ni:()=>v,xH:()=>C,oo:()=>o,CN:()=>M,CX:()=>l,SN:()=>R,RX:()=>s,HJ:()=>L,I8:()=>O,EG:()=>A,Lu:()=>E,g3:()=>P,xS:()=>w,_E:()=>Z,$W:()=>W,Z8:()=>ie,El:()=>ee,X3:()=>he,z:()=>re,EK:()=>de,cQ:()=>le,HI:()=>se,oV:()=>y,TM:()=>i,WO:()=>a,kL:()=>p,UR:()=>u,as:()=>_,pW:()=>D,YX:()=>I,BL:()=>x,OG:()=>r,Sf:()=>b,$A:()=>U,n7:()=>N,v_:()=>z,u0:()=>be,QJ:()=>xe,Ip:()=>Re,M7:()=>ze,KE:()=>Le,d6:()=>K,WM:()=>we,Nr:()=>Y,Rd:()=>ae,YP:()=>Ge,aL:()=>vt,g6:()=>Fe,Wi:()=>Ne,Ly:()=>Oe,UH:()=>Pe,eM:()=>q,VD:()=>$,yl:()=>ce,Zu:()=>Me,dh:()=>Ue,ZH:()=>lt,i9:()=>nt,JK:()=>ft,uT:()=>it,d7:()=>rt,e9:()=>Mt,_9:()=>Zt,en:()=>Ft});var e=m(5620),t=m(7731);const v=(0,e.PH)(t.AB.UPDATE_API_CALL_STATUS_CLN,(0,e.Ky)()),C=(0,e.PH)(t.AB.RESET_CLN_STORE,(0,e.Ky)()),o=(0,e.PH)(t.AB.SET_CHILD_NODE_SETTINGS_CLN,(0,e.Ky)()),M=(0,e.PH)(t.AB.FETCH_INFO_CLN,(0,e.Ky)()),l=(0,e.PH)(t.AB.SET_INFO_CLN,(0,e.Ky)()),R=(0,e.PH)(t.AB.FETCH_FEES_CLN),s=(0,e.PH)(t.AB.SET_FEES_CLN,(0,e.Ky)()),L=(0,e.PH)(t.AB.FETCH_FEE_RATES_CLN,(0,e.Ky)()),O=(0,e.PH)(t.AB.SET_FEE_RATES_CLN,(0,e.Ky)()),A=(0,e.PH)(t.AB.FETCH_BALANCE_CLN),E=(0,e.PH)(t.AB.SET_BALANCE_CLN,(0,e.Ky)()),P=(0,e.PH)(t.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),w=(0,e.PH)(t.AB.SET_LOCAL_REMOTE_BALANCE_CLN,(0,e.Ky)()),Z=(0,e.PH)(t.AB.GET_NEW_ADDRESS_CLN,(0,e.Ky)()),W=((0,e.PH)(t.AB.SET_NEW_ADDRESS_CLN,(0,e.Ky)()),(0,e.PH)(t.AB.FETCH_PEERS_CLN)),ie=(0,e.PH)(t.AB.SET_PEERS_CLN,(0,e.Ky)()),ee=(0,e.PH)(t.AB.SAVE_NEW_PEER_CLN,(0,e.Ky)()),he=((0,e.PH)(t.AB.NEWLY_ADDED_PEER_CLN,(0,e.Ky)()),(0,e.PH)(t.AB.ADD_PEER_CLN,(0,e.Ky)())),re=(0,e.PH)(t.AB.DETACH_PEER_CLN,(0,e.Ky)()),de=(0,e.PH)(t.AB.REMOVE_PEER_CLN,(0,e.Ky)()),le=(0,e.PH)(t.AB.FETCH_PAYMENTS_CLN),se=(0,e.PH)(t.AB.SET_PAYMENTS_CLN,(0,e.Ky)()),y=(0,e.PH)(t.AB.SEND_PAYMENT_CLN,(0,e.Ky)()),i=(0,e.PH)(t.AB.SEND_PAYMENT_STATUS_CLN,(0,e.Ky)()),a=(0,e.PH)(t.AB.GET_QUERY_ROUTES_CLN,(0,e.Ky)()),p=(0,e.PH)(t.AB.SET_QUERY_ROUTES_CLN,(0,e.Ky)()),u=(0,e.PH)(t.AB.FETCH_CHANNELS_CLN),_=(0,e.PH)(t.AB.SET_CHANNELS_CLN,(0,e.Ky)()),D=(0,e.PH)(t.AB.UPDATE_CHANNEL_CLN,(0,e.Ky)()),I=(0,e.PH)(t.AB.SAVE_NEW_CHANNEL_CLN,(0,e.Ky)()),x=(0,e.PH)(t.AB.CLOSE_CHANNEL_CLN,(0,e.Ky)()),r=(0,e.PH)(t.AB.REMOVE_CHANNEL_CLN,(0,e.Ky)()),b=(0,e.PH)(t.AB.PEER_LOOKUP_CLN,(0,e.Ky)()),U=(0,e.PH)(t.AB.CHANNEL_LOOKUP_CLN,(0,e.Ky)()),N=(0,e.PH)(t.AB.INVOICE_LOOKUP_CLN,(0,e.Ky)()),z=(0,e.PH)(t.AB.SET_LOOKUP_CLN,(0,e.Ky)()),be=(0,e.PH)(t.AB.GET_FORWARDING_HISTORY_CLN,(0,e.Ky)()),xe=(0,e.PH)(t.AB.SET_FORWARDING_HISTORY_CLN,(0,e.Ky)()),Re=(0,e.PH)(t.AB.GET_FAILED_FORWARDING_HISTORY_CLN),ze=(0,e.PH)(t.AB.SET_FAILED_FORWARDING_HISTORY_CLN,(0,e.Ky)()),Le=(0,e.PH)(t.AB.GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN),K=(0,e.PH)(t.AB.SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN,(0,e.Ky)()),we=(0,e.PH)(t.AB.FETCH_INVOICES_CLN,(0,e.Ky)()),Y=(0,e.PH)(t.AB.SET_INVOICES_CLN,(0,e.Ky)()),ae=(0,e.PH)(t.AB.SAVE_NEW_INVOICE_CLN,(0,e.Ky)()),Ge=(0,e.PH)(t.AB.ADD_INVOICE_CLN,(0,e.Ky)()),vt=(0,e.PH)(t.AB.UPDATE_INVOICE_CLN,(0,e.Ky)()),Fe=(0,e.PH)(t.AB.DELETE_EXPIRED_INVOICE_CLN,(0,e.Ky)()),Ne=(0,e.PH)(t.AB.SET_CHANNEL_TRANSACTION_CLN,(0,e.Ky)()),Oe=((0,e.PH)(t.AB.SET_CHANNEL_TRANSACTION_RES_CLN,(0,e.Ky)()),(0,e.PH)(t.AB.FETCH_UTXOS_CLN)),Pe=(0,e.PH)(t.AB.SET_UTXOS_CLN,(0,e.Ky)()),q=(0,e.PH)(t.AB.FETCH_OFFER_INVOICE_CLN,(0,e.Ky)()),$=(0,e.PH)(t.AB.SET_OFFER_INVOICE_CLN,(0,e.Ky)()),ce=(0,e.PH)(t.AB.FETCH_OFFERS_CLN),Me=(0,e.PH)(t.AB.SET_OFFERS_CLN,(0,e.Ky)()),Ue=(0,e.PH)(t.AB.SAVE_NEW_OFFER_CLN,(0,e.Ky)()),lt=(0,e.PH)(t.AB.ADD_OFFER_CLN,(0,e.Ky)()),nt=(0,e.PH)(t.AB.DISABLE_OFFER_CLN,(0,e.Ky)()),ft=(0,e.PH)(t.AB.UPDATE_OFFER_CLN,(0,e.Ky)()),it=(0,e.PH)(t.AB.FETCH_OFFER_BOOKMARKS_CLN),rt=(0,e.PH)(t.AB.SET_OFFER_BOOKMARKS_CLN,(0,e.Ky)()),Mt=(0,e.PH)(t.AB.ADD_UPDATE_OFFER_BOOKMARK_CLN,(0,e.Ky)()),Zt=(0,e.PH)(t.AB.DELETE_OFFER_BOOKMARK_CLN,(0,e.Ky)()),Ft=(0,e.PH)(t.AB.REMOVE_OFFER_BOOKMARK_CLN,(0,e.Ky)())},4947:(Ve,Q,m)=>{"use strict";m.d(Q,{J:()=>se});var e=m(6642),t=m(7579),v=m(9646),C=m(5577),o=m(2722),M=m(4004),l=m(262),R=m(1365),s=m(2340),L=m(1786),O=m(5566),A=m(7731),E=m(7861),P=m(429),w=m(9828),Z=m(1462),j=m(5e3),W=m(8138),ie=m(5620),ee=m(5986),ve=m(62),he=m(5043),re=m(1402),de=m(7998),le=m(9808);let se=(()=>{class y{constructor(a,p,u,_,D,I,x,r,b){this.actions=a,this.httpClient=p,this.store=u,this.sessionService=_,this.commonService=D,this.logger=I,this.router=x,this.wsService=r,this.location=b,this.CHILD_API_URL=s.T5+"/cln",this.flgInitialized=!1,this.unSubs=[new t.x,new t.x,new t.x],this.infoFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_INFO_CLN),(0,C.z)(U=>(this.flgInitialized=!1,this.store.dispatch((0,E.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,P.Ni)({payload:{action:"FetchInfo",status:A.Bn.INITIATED}})),this.store.dispatch((0,E.ac)({payload:A.m6.GET_NODE_INFO})),this.httpClient.get(this.CHILD_API_URL+s.NZ.GETINFO_API).pipe((0,o.R)(this.actions.pipe((0,e.l4)(A.pg.SET_SELECTED_NODE))),(0,M.U)(N=>(this.logger.info(N),N.chains&&N.chains.length&&N.chains[0]&&"object"==typeof N.chains[0]&&N.chains[0].hasOwnProperty("chain")&&N.chains[0].chain.toLowerCase().indexOf("bitcoin")<0?(this.store.dispatch((0,P.Ni)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.GET_NODE_INFO})),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.qR)({payload:{data:{type:A.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:A.pg.LOGOUT}):(this.initializeRemainingData(N,U.payload.loadPage),this.store.dispatch((0,P.Ni)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.GET_NODE_INFO})),{type:A.AB.SET_INFO_CLN,payload:N||{}}))),(0,l.K)(N=>{const z=this.commonService.extractErrorCode(N),be="ETIMEDOUT"===z?"Unable to Connect to Core Lightning Server.":this.commonService.extractErrorMessage(N);return this.router.navigate(["/error"],{state:{errorCode:z,errorMessage:be}}),this.handleErrorWithoutAlert("FetchInfo",A.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:z,error:be}),(0,v.of)({type:A.pg.VOID})})))))),this.fetchFeesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_FEES_CLN),(0,C.z)(()=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchFees",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.FEES_API))),(0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.Ni)({payload:{action:"FetchFees",status:A.Bn.COMPLETED}})),{type:A.AB.SET_FEES_CLN,payload:U||{}})),(0,l.K)(U=>(this.handleErrorWithoutAlert("FetchFees",A.m6.NO_SPINNER,"Fetching Fees Failed.",U),(0,v.of)({type:A.pg.VOID}))))),this.fetchFeeRatesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_FEE_RATES_CLN),(0,C.z)(U=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchFeeRates"+U.payload,status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/feeRates/"+U.payload).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"FetchFeeRates"+U.payload,status:A.Bn.COMPLETED}})),{type:A.AB.SET_FEE_RATES_CLN,payload:N||{}})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchFeeRates"+U.payload,A.m6.NO_SPINNER,"Fetching Fee Rates Failed.",N),(0,v.of)({type:A.pg.VOID})))))))),this.fetchBalanceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_BALANCE_CLN),(0,C.z)(()=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchBalance",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.BALANCE_API))),(0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.Ni)({payload:{action:"FetchBalance",status:A.Bn.COMPLETED}})),{type:A.AB.SET_BALANCE_CLN,payload:U||{}})),(0,l.K)(U=>(this.handleErrorWithoutAlert("FetchBalance",A.m6.NO_SPINNER,"Fetching Balances Failed.",U),(0,v.of)({type:A.pg.VOID}))))),this.fetchLocalRemoteBalanceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),(0,C.z)(()=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchLocalRemoteBalance",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/localRemoteBalance"))),(0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.Ni)({payload:{action:"FetchLocalRemoteBalance",status:A.Bn.COMPLETED}})),{type:A.AB.SET_LOCAL_REMOTE_BALANCE_CLN,payload:U||{}})),(0,l.K)(U=>(this.handleErrorWithoutAlert("FetchLocalRemoteBalance",A.m6.NO_SPINNER,"Fetching Balances Failed.",U),(0,v.of)({type:A.pg.VOID}))))),this.getNewAddressCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.GET_NEW_ADDRESS_CLN),(0,C.z)(U=>(this.store.dispatch((0,E.ac)({payload:A.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+s.NZ.ON_CHAIN_API+"?type="+U.payload.addressCode).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,E.uO)({payload:A.m6.GENERATE_NEW_ADDRESS})),{type:A.AB.SET_NEW_ADDRESS_CLN,payload:N&&N.address?N.address:{}})),(0,l.K)(N=>(this.handleErrorWithAlert("GenerateNewAddress",A.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+s.NZ.ON_CHAIN_API+"?type="+U.payload.addressId,N),(0,v.of)({type:A.pg.VOID})))))))),this.setNewAddressCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_NEW_ADDRESS_CLN),(0,M.U)(U=>(this.logger.info(U.payload),U.payload))),{dispatch:!1}),this.peersFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_PEERS_CLN),(0,C.z)(()=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchPeers",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.PEERS_API).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.Ni)({payload:{action:"FetchPeers",status:A.Bn.COMPLETED}})),{type:A.AB.SET_PEERS_CLN,payload:U||[]})),(0,l.K)(U=>(this.handleErrorWithoutAlert("FetchPeers",A.m6.NO_SPINNER,"Fetching Peers Failed.",U),(0,v.of)({type:A.pg.VOID})))))))),this.saveNewPeerCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SAVE_NEW_PEER_CLN),(0,C.z)(U=>(this.store.dispatch((0,E.ac)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,P.Ni)({payload:{action:"SaveNewPeer",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.PEERS_API,{id:U.payload.id}).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"SaveNewPeer",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,P.Z8)({payload:N||[]})),{type:A.AB.NEWLY_ADDED_PEER_CLN,payload:{peer:N.find(z=>0===U.payload.id.indexOf(z.id))}})),(0,l.K)(N=>(this.handleErrorWithoutAlert("SaveNewPeer",A.m6.CONNECT_PEER,"Peer Connection Failed.",N),(0,v.of)({type:A.pg.VOID})))))))),this.detachPeerCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.DETACH_PEER_CLN),(0,C.z)(U=>(this.store.dispatch((0,E.ac)({payload:A.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+s.NZ.PEERS_API+"/"+U.payload.id+"?force="+U.payload.force).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,E.uO)({payload:A.m6.DISCONNECT_PEER})),this.store.dispatch((0,E.jW)({payload:"Peer Disconnected Successfully!"})),{type:A.AB.REMOVE_PEER_CLN,payload:{id:U.payload.id}})),(0,l.K)(N=>(this.handleErrorWithAlert("PeerDisconnect",A.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+s.NZ.PEERS_API+"/"+U.payload.id,N),(0,v.of)({type:A.pg.VOID})))))))),this.channelsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_CHANNELS_CLN),(0,C.z)(()=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/listChannels"))),(0,M.U)(U=>{this.logger.info(U),this.store.dispatch((0,P.Ni)({payload:{action:"FetchChannels",status:A.Bn.COMPLETED}})),this.store.dispatch((0,P.u0)({payload:{status:"settled"}}));const N={activeChannels:[],pendingChannels:[],inactiveChannels:[]};return U.forEach(z=>{"CHANNELD_NORMAL"===z.state?z.connected?N.activeChannels.push(z):N.inactiveChannels.push(z):N.pendingChannels.push(z)}),{type:A.AB.SET_CHANNELS_CLN,payload:N}}),(0,l.K)(U=>(this.handleErrorWithoutAlert("FetchChannels",A.m6.NO_SPINNER,"Fetching Channels Failed.",U),(0,v.of)({type:A.pg.VOID}))))),this.openNewChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SAVE_NEW_CHANNEL_CLN),(0,C.z)(U=>{this.store.dispatch((0,E.ac)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,P.Ni)({payload:{action:"SaveNewChannel",status:A.Bn.INITIATED}}));const N={id:U.payload.peerId,satoshis:U.payload.satoshis,feeRate:U.payload.feeRate,announce:U.payload.announce};return U.payload.minconf&&(N.minconf=U.payload.minconf),U.payload.utxos&&(N.utxos=U.payload.utxos),U.payload.requestAmount&&(N.request_amt=U.payload.requestAmount),U.payload.compactLease&&(N.compact_lease=U.payload.compactLease),this.httpClient.post(this.CHILD_API_URL+s.NZ.CHANNELS_API,N).pipe((0,M.U)(z=>(this.logger.info(z),this.store.dispatch((0,P.Ni)({payload:{action:"SaveNewChannel",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,E.jW)({payload:"Channel Added Successfully!"})),this.store.dispatch((0,P.EG)()),this.store.dispatch((0,P.Ly)()),{type:A.AB.FETCH_CHANNELS_CLN})),(0,l.K)(z=>(this.handleErrorWithoutAlert("SaveNewChannel",A.m6.OPEN_CHANNEL,"Opening Channel Failed.",z),(0,v.of)({type:A.pg.VOID}))))}))),this.updateChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.UPDATE_CHANNEL_CLN),(0,C.z)(U=>(this.store.dispatch((0,E.ac)({payload:A.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/setChannelFee",{id:U.payload.channelId,base:U.payload.baseFeeMsat,ppm:U.payload.feeRate}).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,E.uO)({payload:A.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,E.jW)("all"===U.payload.channelId?{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:A.AB.FETCH_CHANNELS_CLN})),(0,l.K)(N=>(this.handleErrorWithAlert("UpdateChannel",A.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+s.NZ.CHANNELS_API,N),(0,v.of)({type:A.pg.VOID})))))))),this.closeChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.CLOSE_CHANNEL_CLN),(0,C.z)(U=>(this.store.dispatch((0,E.ac)({payload:U.payload.force?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/"+U.payload.channelId+(U.payload.force?"?force="+U.payload.force:"")).pipe((0,M.U)(z=>(this.logger.info(z),this.store.dispatch((0,E.uO)({payload:U.payload.force?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL})),this.store.dispatch((0,P.UR)()),this.store.dispatch((0,P.g3)()),this.store.dispatch((0,E.jW)({payload:"Channel Closed Successfully!"})),{type:A.AB.REMOVE_CHANNEL_CLN,payload:U.payload})),(0,l.K)(z=>(this.handleErrorWithAlert("CloseChannel",U.payload.force?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+s.NZ.CHANNELS_API,z),(0,v.of)({type:A.pg.VOID})))))))),this.paymentsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_PAYMENTS_CLN),(0,C.z)(()=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchPayments",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.PAYMENTS_API))),(0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.Ni)({payload:{action:"FetchPayments",status:A.Bn.COMPLETED}})),{type:A.AB.SET_PAYMENTS_CLN,payload:U||[]})),(0,l.K)(U=>(this.handleErrorWithoutAlert("FetchPayments",A.m6.NO_SPINNER,"Fetching Payments Failed.",U),(0,v.of)({type:A.pg.VOID}))))),this.fetchOfferInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_OFFER_INVOICE_CLN),(0,C.z)(U=>(this.store.dispatch((0,E.ac)({payload:A.m6.FETCH_INVOICE})),this.store.dispatch((0,P.Ni)({payload:{action:"FetchOfferInvoice",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.OFFERS_API+"/fetchOfferInvoice",U.payload).pipe((0,M.U)(N=>{this.logger.info(N),setTimeout(()=>{this.store.dispatch((0,P.Ni)({payload:{action:"FetchOfferInvoice",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.FETCH_INVOICE})),this.store.dispatch((0,P.VD)({payload:N||{}}))},500)}),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchOfferInvoice",A.m6.FETCH_INVOICE,"Offer Invoice Fetch Failed",N),(0,v.of)({type:A.pg.VOID}))))))),{dispatch:!1}),this.setOfferInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_OFFER_INVOICE_CLN),(0,M.U)(U=>(this.logger.info(U.payload),U.payload))),{dispatch:!1}),this.sendPaymentCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SEND_PAYMENT_CLN),(0,C.z)(U=>(this.store.dispatch((0,E.ac)({payload:U.payload.uiMessage})),this.store.dispatch((0,P.Ni)({payload:{action:"SendPayment",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.PAYMENTS_API,U.payload).pipe((0,M.U)(N=>{this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"SendPayment",status:A.Bn.COMPLETED}}));let z="Payment Sent Successfully!";N.saveToDBError&&(z="Payment Sent Successfully but Offer Saving to Database Failed."),N.saveToDBResponse&&"NA"!==N.saveToDBResponse&&(this.store.dispatch((0,P.e9)({payload:N.saveToDBResponse})),z="Payment Sent Successfully and Offer Saved to Database."),setTimeout(()=>{this.store.dispatch((0,P.UR)()),this.store.dispatch((0,P.EG)()),this.store.dispatch((0,P.cQ)()),this.store.dispatch((0,E.uO)({payload:U.payload.uiMessage})),this.store.dispatch((0,E.jW)({payload:z})),this.store.dispatch((0,P.TM)({payload:N.paymentResponse}))},1e3)}),(0,l.K)(N=>(this.logger.error("Error: "+JSON.stringify(N)),U.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",U.payload.uiMessage,"Send Payment Failed.",N):this.handleErrorWithAlert("SendPayment",U.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+s.NZ.PAYMENTS_API,N),(0,v.of)({type:A.pg.VOID}))))))),{dispatch:!1}),this.queryRoutesFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.GET_QUERY_ROUTES_CLN),(0,C.z)(U=>(this.store.dispatch((0,P.Ni)({payload:{action:"GetQueryRoutes",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/getRoute/"+U.payload.destPubkey+"/"+U.payload.amount).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"GetQueryRoutes",status:A.Bn.COMPLETED}})),{type:A.AB.SET_QUERY_ROUTES_CLN,payload:N})),(0,l.K)(N=>(this.store.dispatch((0,P.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",A.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+s.NZ.NETWORK_API+"/getRoute/"+U.payload.destPubkey+"/"+U.payload.amount,N),(0,v.of)({type:A.pg.VOID})))))))),this.setQueryRoutesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_QUERY_ROUTES_CLN),(0,M.U)(U=>U.payload)),{dispatch:!1}),this.peerLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.PEER_LOOKUP_CLN),(0,C.z)(U=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEARCHING_NODE})),this.store.dispatch((0,P.Ni)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/listNode/"+U.payload).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.SEARCHING_NODE})),{type:A.AB.SET_LOOKUP_CLN,payload:N})),(0,l.K)(N=>(this.handleErrorWithAlert("Lookup",A.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+s.NZ.NETWORK_API+"/listNode/"+U.payload,N),(0,v.of)({type:A.pg.VOID})))))))),this.channelLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.CHANNEL_LOOKUP_CLN),(0,C.z)(U=>(this.store.dispatch((0,E.ac)({payload:U.payload.uiMessage})),this.store.dispatch((0,P.Ni)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/listChannel/"+U.payload.shortChannelID).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:U.payload.uiMessage})),{type:A.AB.SET_LOOKUP_CLN,payload:N})),(0,l.K)(N=>(U.payload.showError?this.handleErrorWithAlert("Lookup",U.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+s.NZ.NETWORK_API+"/listChannel/"+U.payload.shortChannelID,N):this.store.dispatch((0,E.uO)({payload:U.payload.uiMessage})),this.store.dispatch((0,P.v_)({payload:[]})),(0,v.of)({type:A.pg.VOID})))))))),this.invoiceLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.INVOICE_LOOKUP_CLN),(0,C.z)(U=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEARCHING_INVOICE})),this.store.dispatch((0,P.Ni)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.INVOICES_API+"?label="+U.payload).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.SEARCHING_INVOICE})),N.invoices&&N.invoices.length&&N.invoices.length>0&&this.store.dispatch((0,P.aL)({payload:N.invoices[0]})),{type:A.AB.SET_LOOKUP_CLN,payload:N.invoices&&N.invoices.length&&N.invoices.length>0?N.invoices[0]:N})),(0,l.K)(N=>(this.handleErrorWithoutAlert("Lookup",A.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",N),this.store.dispatch((0,E.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,v.of)({type:A.pg.VOID})))))))),this.setLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_LOOKUP_CLN),(0,M.U)(U=>(this.logger.info(U.payload),U.payload))),{dispatch:!1}),this.fetchForwardingHistoryCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.GET_FORWARDING_HISTORY_CLN),(0,R.M)(this.store.select(w.ey)),(0,C.z)(([U,N])=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchForwardingHistory",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/listForwards?status="+U.payload.status).pipe((0,M.U)(z=>{if(this.logger.info(z),this.store.dispatch((0,P.Ni)({payload:{action:"FetchForwardingHistory",status:A.Bn.COMPLETED}})),!N.api_version||!this.commonService.isVersionCompatible(N.api_version,"0.5.0")){const xe=[],Re=[],ze=[];z.forEach(Le=>{"settled"===Le.status?ze.push(Le):"failed"===Le.status?Re.push(Le):"local_failed"===Le.status&&xe.push(Le)}),z=JSON.parse(JSON.stringify(ze)),"failed"===U.payload.status&&this.store.dispatch((0,P.M7)({payload:Re})),"local_failed"===U.payload.status&&this.store.dispatch((0,P.M7)({payload:xe}))}return{type:A.AB.SET_FORWARDING_HISTORY_CLN,payload:z}}),(0,l.K)(z=>(this.handleErrorWithAlert("FetchForwardingHistory",A.m6.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+s.NZ.CHANNELS_API+"/listForwards?status="+U.payload.status,z),(0,v.of)({type:A.pg.VOID})))))))),this.fetchFailedForwardingHistoryCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.GET_FAILED_FORWARDING_HISTORY_CLN),(0,R.M)(this.store.select(w.ey)),(0,C.z)(([U,N])=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchFailedForwardingHistory",status:A.Bn.INITIATED}})),N.api_version&&this.commonService.isVersionCompatible(N.api_version,"0.5.0")?this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/listForwards?status=failed").pipe((0,M.U)(be=>(this.logger.info(be),this.store.dispatch((0,P.Ni)({payload:{action:"FetchFailedForwardingHistory",status:A.Bn.COMPLETED}})),{type:A.AB.SET_FAILED_FORWARDING_HISTORY_CLN,payload:be})),(0,l.K)(be=>(this.handleErrorWithAlert("FetchFailedForwardingHistory",A.m6.NO_SPINNER,"Get Failed Forwarding History Failed",this.CHILD_API_URL+s.NZ.CHANNELS_API+"/listForwards?status=failed",be),(0,v.of)({type:A.pg.VOID})))):(this.store.dispatch((0,P.Ni)({payload:{action:"FetchFailedForwardingHistory",status:A.Bn.COMPLETED}})),(0,v.of)({type:A.pg.VOID})))))),this.fetchLocalFailedForwardingHistoryCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN),(0,R.M)(this.store.select(w.ey)),(0,C.z)(([U,N])=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchLocalFailedForwardingHistory",status:A.Bn.INITIATED}})),N.api_version&&this.commonService.isVersionCompatible(N.api_version,"0.5.0")?this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/listForwards?status=local_failed").pipe((0,M.U)(be=>(this.logger.info(be),this.store.dispatch((0,P.Ni)({payload:{action:"FetchLocalFailedForwardingHistory",status:A.Bn.COMPLETED}})),{type:A.AB.SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN,payload:be})),(0,l.K)(be=>(this.handleErrorWithAlert("FetchLocalFailedForwardingHistory",A.m6.NO_SPINNER,"Get Local Failed Forwarding History Failed",this.CHILD_API_URL+s.NZ.CHANNELS_API+"/listForwards?status=local_failed",be),(0,v.of)({type:A.pg.VOID})))):(this.store.dispatch((0,P.Ni)({payload:{action:"FetchLocalFailedForwardingHistory",status:A.Bn.COMPLETED}})),(0,v.of)({type:A.pg.VOID})))))),this.deleteExpiredInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.DELETE_EXPIRED_INVOICE_CLN),(0,C.z)(U=>(this.store.dispatch((0,E.ac)({payload:A.m6.DELETE_INVOICE})),this.httpClient.delete(this.CHILD_API_URL+s.NZ.INVOICES_API+(U.payload?"?maxexpiry="+U.payload:"")).pipe((0,M.U)(z=>(this.logger.info(z),this.store.dispatch((0,E.uO)({payload:A.m6.DELETE_INVOICE})),this.store.dispatch((0,E.jW)({payload:"Invoices Deleted Successfully!"})),{type:A.AB.FETCH_INVOICES_CLN,payload:{num_max_invoices:1e6,reversed:!0}})),(0,l.K)(z=>(this.handleErrorWithAlert("DeleteInvoices",A.m6.DELETE_INVOICE,"Delete Invoice Failed",this.CHILD_API_URL+s.NZ.INVOICES_API,z),(0,v.of)({type:A.pg.VOID})))))))),this.saveNewInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SAVE_NEW_INVOICE_CLN),(0,C.z)(U=>(this.store.dispatch((0,E.ac)({payload:A.m6.ADD_INVOICE})),this.store.dispatch((0,P.Ni)({payload:{action:"SaveNewInvoice",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.INVOICES_API,{label:U.payload.label,amount:U.payload.amount,description:U.payload.description,expiry:U.payload.expiry,private:U.payload.private}).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"SaveNewInvoice",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.ADD_INVOICE})),N.msatoshi=U.payload.amount,N.label=U.payload.label,N.expires_at=Math.round((new Date).getTime()/1e3+U.payload.expiry),N.description=U.payload.description,N.status="unpaid",setTimeout(()=>{this.store.dispatch((0,E.qR)({payload:{data:{invoice:N,newlyAdded:!0,component:O.y}}}))},100),{type:A.AB.ADD_INVOICE_CLN,payload:N})),(0,l.K)(N=>(this.handleErrorWithoutAlert("SaveNewInvoice",A.m6.ADD_INVOICE,"Add Invoice Failed.",N),(0,v.of)({type:A.pg.VOID})))))))),this.saveNewOfferCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SAVE_NEW_OFFER_CLN),(0,C.z)(U=>(this.store.dispatch((0,E.ac)({payload:A.m6.CREATE_OFFER})),this.store.dispatch((0,P.Ni)({payload:{action:"SaveNewOffer",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.OFFERS_API,{amount:U.payload.amount,description:U.payload.description,vendor:U.payload.vendor}).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"SaveNewOffer",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.CREATE_OFFER})),setTimeout(()=>{this.store.dispatch((0,E.qR)({payload:{data:{offer:N,newlyAdded:!0,component:Z.k}}}))},100),{type:A.AB.ADD_OFFER_CLN,payload:N})),(0,l.K)(N=>(this.handleErrorWithoutAlert("SaveNewOffer",A.m6.CREATE_OFFER,"Create Offer Failed.",N),(0,v.of)({type:A.pg.VOID})))))))),this.invoicesFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_INVOICES_CLN),(0,C.z)(U=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchInvoices",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.INVOICES_API+"?num_max_invoices="+(U.payload.num_max_invoices?U.payload.num_max_invoices:1e6)+"&index_offset="+(U.payload.index_offset?U.payload.index_offset:0)+"&reversed="+(!U.payload.reversed||U.payload.reversed)).pipe((0,M.U)(xe=>(this.logger.info(xe),this.store.dispatch((0,P.Ni)({payload:{action:"FetchInvoices",status:A.Bn.COMPLETED}})),{type:A.AB.SET_INVOICES_CLN,payload:xe})),(0,l.K)(xe=>(this.handleErrorWithoutAlert("FetchInvoices",A.m6.NO_SPINNER,"Fetching Invoices Failed.",xe),(0,v.of)({type:A.pg.VOID})))))))),this.offersFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_OFFERS_CLN),(0,C.z)(U=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchOffers",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.OFFERS_API).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"FetchOffers",status:A.Bn.COMPLETED}})),{type:A.AB.SET_OFFERS_CLN,payload:N.offers?N.offers:[]})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchOffers",A.m6.NO_SPINNER,"Fetching Offers Failed.",N),(0,v.of)({type:A.pg.VOID})))))))),this.offersDisableCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.DISABLE_OFFER_CLN),(0,C.z)(U=>(this.store.dispatch((0,E.ac)({payload:A.m6.DISABLE_OFFER})),this.store.dispatch((0,P.Ni)({payload:{action:"DisableOffer",status:A.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+s.NZ.OFFERS_API+"/"+U.payload.offer_id).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"DisableOffer",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.DISABLE_OFFER})),this.store.dispatch((0,E.jW)({payload:"Offer Disabled Successfully!"})),{type:A.AB.UPDATE_OFFER_CLN,payload:{offer:N}})),(0,l.K)(N=>(this.handleErrorWithoutAlert("DisableOffer",A.m6.DISABLE_OFFER,"Disabling Offer Failed.",N),(0,v.of)({type:A.pg.VOID})))))))),this.offerBookmarksFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_OFFER_BOOKMARKS_CLN),(0,C.z)(U=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchOfferBookmarks",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.OFFERS_API+"/offerbookmarks").pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"FetchOfferBookmarks",status:A.Bn.COMPLETED}})),{type:A.AB.SET_OFFER_BOOKMARKS_CLN,payload:N||[]})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchOfferBookmarks",A.m6.NO_SPINNER,"Fetching Offer Bookmarks Failed.",N),(0,v.of)({type:A.pg.VOID})))))))),this.peidOffersDeleteCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.DELETE_OFFER_BOOKMARK_CLN),(0,C.z)(U=>(this.store.dispatch((0,E.ac)({payload:A.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,P.Ni)({payload:{action:"DeleteOfferBookmark",status:A.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+s.NZ.OFFERS_API+"/offerbookmark/"+U.payload.bolt12).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"DeleteOfferBookmark",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,E.jW)({payload:"Offer Bookmark Deleted Successfully!"})),{type:A.AB.REMOVE_OFFER_BOOKMARK_CLN,payload:{bolt12:U.payload.bolt12}})),(0,l.K)(N=>(this.handleErrorWithAlert("DeleteOfferBookmark",A.m6.DELETE_OFFER_BOOKMARK,"Deleting Offer Bookmark Failed.",this.CHILD_API_URL+s.NZ.OFFERS_API+"/offerbookmark/"+U.payload.bolt12,N),(0,v.of)({type:A.pg.VOID})))))))),this.SetChannelTransactionCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_CHANNEL_TRANSACTION_CLN),(0,C.z)(U=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,P.Ni)({payload:{action:"SetChannelTransaction",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.ON_CHAIN_API,U.payload).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.Ni)({payload:{action:"SetChannelTransaction",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,P.EG)()),this.store.dispatch((0,P.Ly)()),{type:A.AB.SET_CHANNEL_TRANSACTION_RES_CLN,payload:N})),(0,l.K)(N=>(this.handleErrorWithoutAlert("SetChannelTransaction",A.m6.SEND_FUNDS,"Sending Fund Failed.",N),(0,v.of)({type:A.pg.VOID})))))))),this.utxosFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_UTXOS_CLN),(0,C.z)(()=>(this.store.dispatch((0,P.Ni)({payload:{action:"FetchUTXOs",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.ON_CHAIN_API+"/utxos"))),(0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.Ni)({payload:{action:"FetchUTXOs",status:A.Bn.COMPLETED}})),{type:A.AB.SET_UTXOS_CLN,payload:U.outputs||[]})),(0,l.K)(U=>(this.handleErrorWithoutAlert("FetchUTXOs",A.m6.NO_SPINNER,"Fetching UTXOs Failed.",U),(0,v.of)({type:A.pg.VOID}))))),this.store.select(w.yA).pipe((0,o.R)(this.unSubs[0])).subscribe(U=>{U.FetchInfo.status!==A.Bn.COMPLETED&&U.FetchInfo.status!==A.Bn.ERROR||U.FetchFees.status!==A.Bn.COMPLETED&&U.FetchFees.status!==A.Bn.ERROR||U.FetchChannels.status!==A.Bn.COMPLETED&&U.FetchChannels.status!==A.Bn.ERROR||U.FetchBalance.status!==A.Bn.COMPLETED&&U.FetchBalance.status!==A.Bn.ERROR||U.FetchLocalRemoteBalance.status!==A.Bn.COMPLETED&&U.FetchLocalRemoteBalance.status!==A.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,E.uO)({payload:A.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.clWSMessages.pipe((0,o.R)(this.unSubs[1])).subscribe(U=>{if(this.logger.info("Received new message from the service: "+JSON.stringify(U)),U)switch(U.event){case A.nM.INVOICE:this.logger.info(U),U&&U.data&&U.data.label&&this.store.dispatch((0,P.aL)({payload:U.data}));break;case A.nM.SEND_PAYMENT:case A.nM.BLOCK_HEIGHT:this.logger.info(U);break;default:this.logger.info("Received Event from WS: "+JSON.stringify(U))}})}initializeRemainingData(a,p){this.sessionService.setItem("clUnlocked","true");const u={identity_pubkey:a.id,alias:a.alias,testnet:"testnet"===a.network.toLowerCase(),chains:a.chains,uris:a.uris,version:a.version,api_version:a.api_version,numberOfPendingChannels:a.num_pending_channels};this.store.dispatch((0,E.ac)({payload:A.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,E._V)({payload:u}));let _=this.location.path();_.includes("/lnd/")?_=_.replace("/lnd/","/cln/"):_.includes("/ecl/")&&(_=_.replace("/ecl/","/cln/")),(_.includes("/login")||_.includes("/error")||""===_||"HOME"===p||_.includes("?access-key="))&&(_="/cln/home"),this.router.navigate([_]),this.store.dispatch((0,P.WM)({payload:{num_max_invoices:1e6,index_offset:0,reversed:!0}})),this.store.dispatch((0,P.SN)()),this.store.dispatch((0,P.UR)()),this.store.dispatch((0,P.EG)()),this.store.dispatch((0,P.g3)()),this.store.dispatch((0,P.HJ)({payload:"perkw"})),this.store.dispatch((0,P.HJ)({payload:"perkb"})),this.store.dispatch((0,P.$W)()),this.store.dispatch((0,P.Ly)()),this.store.dispatch((0,P.cQ)())}handleErrorWithoutAlert(a,p,u,_){if(this.logger.error("ERROR IN: "+a+"\n"+JSON.stringify(_)),401===_.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,E.uO)({payload:p}));const D=this.commonService.extractErrorMessage(_,u);this.store.dispatch((0,P.Ni)({payload:{action:a,status:A.Bn.ERROR,statusCode:_.status.toString(),message:D}}))}}handleErrorWithAlert(a,p,u,_,D){if(this.logger.error(D),401===D.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,E.uO)({payload:p}));const I=this.commonService.extractErrorMessage(D);this.store.dispatch((0,E.qR)({payload:{data:{type:"ERROR",alertTitle:u,message:{code:D.status,message:I,URL:_},component:L.H}}})),this.store.dispatch((0,P.Ni)({payload:{action:a,status:A.Bn.ERROR,statusCode:D.status.toString(),message:I,URL:_}}))}}ngOnDestroy(){this.unSubs.forEach(a=>{a.next(null),a.complete()})}}return y.\u0275fac=function(a){return new(a||y)(j.LFG(e.eX),j.LFG(W.eN),j.LFG(ie.yh),j.LFG(ee.m),j.LFG(ve.v),j.LFG(he.mQ),j.LFG(re.F0),j.LFG(de.d),j.LFG(le.Ye))},y.\u0275prov=j.Yz7({token:y,factory:y.\u0275fac}),y})()},9828:(Ve,Q,m)=>{"use strict";m.d(Q,{lw:()=>v,ey:()=>C,yA:()=>M,PP:()=>l,Wi:()=>R,JG:()=>s,zm:()=>L,hx:()=>O,gc:()=>A,T4:()=>E,ZW:()=>P,Rn:()=>w,Wj:()=>Z,Bo:()=>j,xQ:()=>W,lK:()=>ie,OL:()=>ee,jK:()=>ve,Ao:()=>he,Hz:()=>re,Y_:()=>de,EQ:()=>le});var e=m(5620);const t=(0,e.ZF)("cln"),v=(0,e.P1)(t,y=>y.nodeSettings),C=(0,e.P1)(t,y=>y.information),M=((0,e.P1)(t,y=>y.apisCallStatus.FetchInfo),(0,e.P1)(t,y=>y.apisCallStatus)),l=(0,e.P1)(t,y=>({payments:y.payments,apiCallStatus:y.apisCallStatus.FetchPayments})),R=(0,e.P1)(t,y=>({peers:y.peers,apiCallStatus:y.apisCallStatus.FetchPeers})),s=(0,e.P1)(t,y=>({fees:y.fees,apiCallStatus:y.apisCallStatus.FetchFees})),L=(0,e.P1)(t,y=>({feeRatesPerKB:y.feeRatesPerKB,apiCallStatus:y.apisCallStatus.FetchFeeRatesperkb})),O=(0,e.P1)(t,y=>({feeRatesPerKW:y.feeRatesPerKW,apiCallStatus:y.apisCallStatus.FetchFeeRatesperkw})),A=(0,e.P1)(t,y=>({listInvoices:y.invoices,apiCallStatus:y.apisCallStatus.FetchInvoices})),E=(0,e.P1)(t,y=>({utxos:y.utxos,apiCallStatus:y.apisCallStatus.FetchUTXOs})),P=(0,e.P1)(t,y=>({activeChannels:y.activeChannels,pendingChannels:y.pendingChannels,inactiveChannels:y.inactiveChannels,apiCallStatus:y.apisCallStatus.FetchChannels})),w=(0,e.P1)(t,y=>({balance:y.balance,apiCallStatus:y.apisCallStatus.FetchBalance})),Z=(0,e.P1)(t,y=>({localRemoteBalance:y.localRemoteBalance,apiCallStatus:y.apisCallStatus.FetchLocalRemoteBalance})),j=(0,e.P1)(t,y=>({forwardingHistory:y.forwardingHistory,apiCallStatus:y.apisCallStatus.FetchForwardingHistory})),W=(0,e.P1)(t,y=>({failedForwardingHistory:y.failedForwardingHistory,apiCallStatus:y.apisCallStatus.FetchFailedForwardingHistory})),ie=(0,e.P1)(t,y=>({localFailedForwardingHistory:y.localFailedForwardingHistory,apiCallStatus:y.apisCallStatus.FetchLocalFailedForwardingHistory})),ee=(0,e.P1)(t,y=>({information:y.information,nodeSettings:y.nodeSettings,balance:y.balance})),ve=(0,e.P1)(t,y=>({information:y.information,balance:y.balance,numPeers:y.peers.length})),he=(0,e.P1)(t,y=>({information:y.information,balance:y.balance})),re=(0,e.P1)(t,y=>({information:y.information,nodeSettings:y.nodeSettings,apisCallStatus:[y.apisCallStatus.FetchInfo,y.apisCallStatus.FetchForwardingHistory]})),de=(0,e.P1)(t,y=>({offers:y.offers,apiCallStatus:y.apisCallStatus.FetchOffers})),le=(0,e.P1)(t,y=>({offersBookmarks:y.offersBookmarks,apiCallStatus:y.apisCallStatus.FetchOfferBookmarks}))},5566:(Ve,Q,m)=>{"use strict";m.d(Q,{y:()=>vt});var e=m(8966),t=m(801),v=m(7579),C=m(2722),o=m(7731),M=m(9828),l=m(5e3),R=m(5043),s=m(62),L=m(7261),O=m(5620),A=m(7093),E=m(9808),P=m(3322),w=m(9224),Z=m(9444),j=m(7423),W=m(4834),ie=m(159),ee=m(7238),ve=m(773),he=m(3390),re=m(6895);function de(Fe,Ne){if(1&Fe&&l._UZ(0,"qr-code",33),2&Fe){const ue=l.oxw();l.Q6J("value",(null==ue.invoice?null:ue.invoice.bolt11)||(null==ue.invoice?null:ue.invoice.bolt12))("size",ue.qrWidth)("errorCorrectionLevel","L")}}function le(Fe,Ne){1&Fe&&(l.TgZ(0,"span",34),l._uU(1,"N/A"),l.qZA())}const se=function(Fe){return{"mr-0":Fe}};function y(Fe,Ne){if(1&Fe&&l._UZ(0,"span",35),2&Fe){const ue=l.oxw();l.Q6J("ngClass",l.VKq(1,se,ue.screenSize===ue.screenSizeEnum.XS))}}function i(Fe,Ne){if(1&Fe&&l._UZ(0,"span",36),2&Fe){const ue=l.oxw();l.Q6J("ngClass",l.VKq(1,se,ue.screenSize===ue.screenSizeEnum.XS))}}function a(Fe,Ne){if(1&Fe&&l._UZ(0,"span",37),2&Fe){const ue=l.oxw();l.Q6J("ngClass",l.VKq(1,se,ue.screenSize===ue.screenSizeEnum.XS))}}function p(Fe,Ne){if(1&Fe&&l._UZ(0,"qr-code",33),2&Fe){const ue=l.oxw();l.Q6J("value",(null==ue.invoice?null:ue.invoice.bolt11)||(null==ue.invoice?null:ue.invoice.bolt12))("size",ue.qrWidth)("errorCorrectionLevel","L")}}function u(Fe,Ne){1&Fe&&(l.TgZ(0,"span",38),l._uU(1,"QR Code Not Applicable"),l.qZA())}function _(Fe,Ne){1&Fe&&l._UZ(0,"mat-divider",39),2&Fe&&l.Q6J("inset",!0)}function D(Fe,Ne){if(1&Fe&&(l.TgZ(0,"div",19),l.TgZ(1,"div",40),l._UZ(2,"fa-icon",41),l.TgZ(3,"span"),l._uU(4),l.qZA(),l.qZA(),l.qZA()),2&Fe){const ue=l.oxw();l.xp6(2),l.Q6J("icon",ue.faExclamationTriangle),l.xp6(2),l.Oqu(null==ue.invoice?null:ue.invoice.warning_capacity)}}function I(Fe,Ne){1&Fe&&(l.ynx(0),l._uU(1," (zero amount) "),l.BQk())}function x(Fe,Ne){1&Fe&&l._UZ(0,"span",47)}const r=function(){return[]};function b(Fe,Ne){if(1&Fe&&(l.TgZ(0,"div",43),l.TgZ(1,"div",44),l.TgZ(2,"span",45),l._uU(3),l.ALo(4,"number"),l.qZA(),l.YNc(5,x,1,0,"span",46),l.qZA(),l.qZA()),2&Fe){const ue=l.oxw(2);l.xp6(3),l.hij("",l.lcZ(4,2,(null==ue.invoice?null:ue.invoice.msatoshi_received)/1e3)," Sats"),l.xp6(2),l.Q6J("ngForOf",l.DdM(4,r).constructor(35))}}function U(Fe,Ne){if(1&Fe&&(l.TgZ(0,"div"),l._uU(1),l.ALo(2,"number"),l.qZA()),2&Fe){const ue=l.oxw(2);l.xp6(1),l.hij("",l.lcZ(2,1,(null==ue.invoice?null:ue.invoice.msatoshi_received)/1e3)," Sats")}}function N(Fe,Ne){if(1&Fe&&(l.ynx(0),l.YNc(1,b,6,5,"div",42),l.YNc(2,U,3,3,"div",23),l.BQk()),2&Fe){const ue=l.oxw();l.xp6(1),l.Q6J("ngIf",ue.flgInvoicePaid),l.xp6(1),l.Q6J("ngIf",!ue.flgInvoicePaid)}}function z(Fe,Ne){1&Fe&&(l.TgZ(0,"span"),l._uU(1,"-"),l.qZA())}function be(Fe,Ne){1&Fe&&l._UZ(0,"mat-spinner",49),2&Fe&&l.Q6J("diameter",20)}function xe(Fe,Ne){if(1&Fe&&(l.ynx(0),l.YNc(1,z,2,0,"span",23),l.YNc(2,be,1,1,"mat-spinner",48),l.BQk()),2&Fe){const ue=l.oxw();l.xp6(1),l.Q6J("ngIf","unpaid"!==(null==ue.invoice?null:ue.invoice.status)||!ue.flgVersionCompatible),l.xp6(1),l.Q6J("ngIf","unpaid"===(null==ue.invoice?null:ue.invoice.status)&&ue.flgVersionCompatible)}}function Re(Fe,Ne){if(1&Fe&&(l.TgZ(0,"div"),l._UZ(1,"mat-divider",25),l.TgZ(2,"div",19),l.TgZ(3,"div",26),l.TgZ(4,"h4",21),l._uU(5,"Payment Hash"),l.qZA(),l.TgZ(6,"span",24),l._uU(7),l.qZA(),l.qZA(),l.qZA(),l._UZ(8,"mat-divider",25),l.TgZ(9,"div",19),l.TgZ(10,"div",26),l.TgZ(11,"h4",21),l._uU(12,"Label"),l.qZA(),l.TgZ(13,"span",24),l._uU(14),l.qZA(),l.qZA(),l.qZA(),l._UZ(15,"mat-divider",25),l.qZA()),2&Fe){const ue=l.oxw();l.xp6(7),l.Oqu(null==ue.invoice?null:ue.invoice.payment_hash),l.xp6(7),l.Oqu(null==ue.invoice?null:ue.invoice.label)}}function ze(Fe,Ne){1&Fe&&(l.TgZ(0,"p"),l._uU(1,"Show Advanced"),l.qZA())}function Le(Fe,Ne){1&Fe&&(l.TgZ(0,"p"),l._uU(1,"Hide Advanced"),l.qZA())}function K(Fe,Ne){if(1&Fe){const ue=l.EpF();l.TgZ(0,"button",50),l.NdJ("copied",function(Pe){return l.CHM(ue),l.oxw().onCopyPayment(Pe)}),l._uU(1,"Copy Invoice"),l.qZA()}if(2&Fe){const ue=l.oxw();l.Q6J("payload",(null==ue.invoice?null:ue.invoice.bolt11)||(null==ue.invoice?null:ue.invoice.bolt12))}}function we(Fe,Ne){if(1&Fe){const ue=l.EpF();l.TgZ(0,"button",51),l.NdJ("click",function(){return l.CHM(ue),l.oxw().onClose()}),l._uU(1,"OK"),l.qZA()}}const Y=function(Fe){return{"display-none":Fe}},ae=function(Fe){return{"xs-scroll-y":Fe}},Ge=function(Fe,Ne){return{"mt-2":Fe,"mt-1":Ne}};let vt=(()=>{class Fe{constructor(ue,Oe,Pe,q,$,ce){this.dialogRef=ue,this.data=Oe,this.logger=Pe,this.commonService=q,this.snackBar=$,this.store=ce,this.faReceipt=t.dLy,this.faExclamationTriangle=t.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.cu,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new v.x,new v.x,new v.x,new v.x,new v.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.cu.XS&&(this.qrWidth=220),this.store.select(M.ey).pipe((0,C.R)(this.unSubs[0])).subscribe(ue=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(ue.api_version,"0.6.0")}),this.store.select(M.gc).pipe((0,C.R)(this.unSubs[1])).subscribe(ue=>{const Oe=this.invoice.status;this.invoice=(ue.listInvoices.invoices||[]).find(q=>q.payment_hash===this.invoice.payment_hash),Oe!==this.invoice.status&&"paid"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(ue)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(ue){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+ue)}ngOnDestroy(){this.unSubs.forEach(ue=>{ue.next(null),ue.complete()})}}return Fe.\u0275fac=function(ue){return new(ue||Fe)(l.Y36(e.so),l.Y36(e.WI),l.Y36(R.mQ),l.Y36(s.v),l.Y36(L.ux),l.Y36(O.yh))},Fe.\u0275cmp=l.Xpm({type:Fe,selectors:[["rtl-cln-invoice-information"]],decls:72,vars:49,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",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","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",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"],["hideAdvancedText",""],["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"],[3,"value","size","errorCorrectionLevel"],[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",3,"inset"],["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,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(ue,Oe){if(1&ue&&(l.TgZ(0,"div",0),l.TgZ(1,"div",1),l.YNc(2,de,1,3,"qr-code",2),l.YNc(3,le,2,0,"span",3),l.qZA(),l.TgZ(4,"div",4),l.TgZ(5,"mat-card-header",5),l.TgZ(6,"div",6),l._UZ(7,"fa-icon",7),l.TgZ(8,"span",8),l._uU(9),l.YNc(10,y,1,3,"span",9),l.YNc(11,i,1,3,"span",10),l.YNc(12,a,1,3,"span",11),l.qZA(),l.qZA(),l.TgZ(13,"button",12),l.NdJ("click",function(){return Oe.onClose()}),l._uU(14,"X"),l.qZA(),l.qZA(),l.TgZ(15,"mat-card-content",13),l.TgZ(16,"div",14),l.TgZ(17,"div",15),l.YNc(18,p,1,3,"qr-code",2),l.YNc(19,u,2,0,"span",16),l.qZA(),l.YNc(20,_,1,1,"mat-divider",17),l.YNc(21,D,5,2,"div",18),l.TgZ(22,"div",19),l.TgZ(23,"div",20),l.TgZ(24,"h4",21),l._uU(25),l.qZA(),l.TgZ(26,"span",22),l._uU(27),l.ALo(28,"number"),l.YNc(29,I,2,0,"ng-container",23),l.qZA(),l.qZA(),l.TgZ(30,"div",20),l.TgZ(31,"h4",21),l._uU(32,"Amount Received"),l.qZA(),l.TgZ(33,"span",24),l.YNc(34,N,3,2,"ng-container",23),l.YNc(35,xe,3,2,"ng-container",23),l.qZA(),l.qZA(),l.qZA(),l._UZ(36,"mat-divider",25),l.TgZ(37,"div",19),l.TgZ(38,"div",20),l.TgZ(39,"h4",21),l._uU(40,"Date Expiry"),l.qZA(),l.TgZ(41,"span",22),l._uU(42),l.ALo(43,"date"),l.qZA(),l.qZA(),l.TgZ(44,"div",20),l.TgZ(45,"h4",21),l._uU(46,"Date Settled"),l.qZA(),l.TgZ(47,"span",22),l._uU(48),l.ALo(49,"date"),l.qZA(),l.qZA(),l.qZA(),l._UZ(50,"mat-divider",25),l.TgZ(51,"div",19),l.TgZ(52,"div",26),l.TgZ(53,"h4",21),l._uU(54,"Description"),l.qZA(),l.TgZ(55,"span",22),l._uU(56),l.qZA(),l.qZA(),l.qZA(),l._UZ(57,"mat-divider",25),l.TgZ(58,"div",19),l.TgZ(59,"div",26),l.TgZ(60,"h4",21),l._uU(61),l.qZA(),l.TgZ(62,"span",24),l._uU(63),l.qZA(),l.qZA(),l.qZA(),l.YNc(64,Re,16,2,"div",23),l.TgZ(65,"div",27),l.TgZ(66,"button",28),l.NdJ("click",function(){return Oe.onShowAdvanced()}),l.YNc(67,ze,2,0,"p",29),l.YNc(68,Le,2,0,"ng-template",null,30,l.W1O),l.qZA(),l.YNc(70,K,2,1,"button",31),l.YNc(71,we,2,0,"button",32),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.qZA()),2&ue){const Pe=l.MAs(69);l.xp6(1),l.Q6J("fxLayoutAlign",null!=Oe.invoice&&Oe.invoice.bolt11&&""!==(null==Oe.invoice?null:Oe.invoice.bolt11)||null!=Oe.invoice&&Oe.invoice.bolt12&&""!==(null==Oe.invoice?null:Oe.invoice.bolt12)?"center start":"center center")("ngClass",l.VKq(40,Y,Oe.screenSize===Oe.screenSizeEnum.XS||Oe.screenSize===Oe.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==Oe.invoice?null:Oe.invoice.bolt11)&&""!==(null==Oe.invoice?null:Oe.invoice.bolt11)||(null==Oe.invoice?null:Oe.invoice.bolt12)&&""!==(null==Oe.invoice?null:Oe.invoice.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=Oe.invoice&&Oe.invoice.bolt11||null!=Oe.invoice&&Oe.invoice.bolt12)),l.xp6(4),l.Q6J("icon",Oe.faReceipt),l.xp6(2),l.hij(" ",Oe.screenSize===Oe.screenSizeEnum.XS?Oe.newlyAdded?"Created":"Invoice":Oe.newlyAdded?"Invoice Created":"Invoice Information"," "),l.xp6(1),l.Q6J("ngIf","paid"===(null==Oe.invoice?null:Oe.invoice.status)),l.xp6(1),l.Q6J("ngIf","unpaid"===(null==Oe.invoice?null:Oe.invoice.status)),l.xp6(1),l.Q6J("ngIf","expired"===(null==Oe.invoice?null:Oe.invoice.status)),l.xp6(3),l.Q6J("ngClass",l.VKq(42,ae,Oe.screenSize===Oe.screenSizeEnum.XS)),l.xp6(2),l.Q6J("fxLayoutAlign",null!=Oe.invoice&&Oe.invoice.bolt11&&""!==(null==Oe.invoice?null:Oe.invoice.bolt11)||null!=Oe.invoice&&Oe.invoice.bolt12&&""!==(null==Oe.invoice?null:Oe.invoice.bolt12)?"center start":"center center")("ngClass",l.VKq(44,Y,Oe.screenSize!==Oe.screenSizeEnum.XS&&Oe.screenSize!==Oe.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==Oe.invoice?null:Oe.invoice.bolt11)&&""!==(null==Oe.invoice?null:Oe.invoice.bolt11)||(null==Oe.invoice?null:Oe.invoice.bolt12)&&""!==(null==Oe.invoice?null:Oe.invoice.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=Oe.invoice&&Oe.invoice.bolt11||null!=Oe.invoice&&Oe.invoice.bolt12)),l.xp6(1),l.Q6J("ngIf",Oe.screenSize===Oe.screenSizeEnum.XS||Oe.screenSize===Oe.screenSizeEnum.SM),l.xp6(1),l.Q6J("ngIf",null==Oe.invoice?null:Oe.invoice.warning_capacity),l.xp6(4),l.Oqu(Oe.screenSize===Oe.screenSizeEnum.XS?"Amount":"Amount Requested"),l.xp6(2),l.hij(" ",l.lcZ(28,32,(null==Oe.invoice?null:Oe.invoice.msatoshi)/1e3||0)," Sats"),l.xp6(2),l.Q6J("ngIf",!(null!=Oe.invoice&&Oe.invoice.msatoshi)||"0"===(null==Oe.invoice?null:Oe.invoice.msatoshi)),l.xp6(5),l.Q6J("ngIf","paid"===(null==Oe.invoice?null:Oe.invoice.status)),l.xp6(1),l.Q6J("ngIf","paid"!==(null==Oe.invoice?null:Oe.invoice.status)),l.xp6(7),l.Oqu(l.xi3(43,34,1e3*(null==Oe.invoice?null:Oe.invoice.expires_at),"dd/MMM/y HH:mm")),l.xp6(6),l.Oqu(l.xi3(49,37,1e3*(null==Oe.invoice?null:Oe.invoice.paid_at),"dd/MMM/y HH:mm")||"-"),l.xp6(8),l.Oqu((null==Oe.invoice?null:Oe.invoice.description)||"-"),l.xp6(5),l.hij("",null!=Oe.invoice&&Oe.invoice.bolt12?"Bolt12":null!=Oe.invoice&&Oe.invoice.bolt11&&!Oe.invoice.label.includes("keysend-")?"Bolt11":"Keysend"," Invoice"),l.xp6(2),l.Oqu((null==Oe.invoice?null:Oe.invoice.bolt11)||(null==Oe.invoice?null:Oe.invoice.bolt12)),l.xp6(1),l.Q6J("ngIf",Oe.showAdvanced),l.xp6(1),l.Q6J("ngClass",l.WLB(46,Ge,!Oe.showAdvanced,Oe.showAdvanced)),l.xp6(2),l.Q6J("ngIf",!Oe.showAdvanced)("ngIfElse",Pe),l.xp6(3),l.Q6J("ngIf",(null==Oe.invoice?null:Oe.invoice.bolt11)&&""!==(null==Oe.invoice?null:Oe.invoice.bolt11)||(null==Oe.invoice?null:Oe.invoice.bolt12)&&""!==(null==Oe.invoice?null:Oe.invoice.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=Oe.invoice&&Oe.invoice.bolt11||null!=Oe.invoice&&Oe.invoice.bolt12))}},directives:[A.xw,A.Wh,A.yH,E.mk,P.oO,E.O5,w.dk,Z.BN,j.lW,w.dn,W.d,ie.uU,ee.gM,E.sg,ve.$g,he.h,re.y],pipes:[E.JJ,E.uU],styles:[""]}),Fe})()},1462:(Ve,Q,m)=>{"use strict";m.d(Q,{k:()=>z});var e=m(8966),t=m(801),v=m(7579),C=m(2722),o=m(7731),M=m(9828),l=m(5e3),R=m(5043),s=m(62),L=m(7261),O=m(5620),A=m(8104),E=m(7093),P=m(9808),w=m(3322),Z=m(9224),j=m(9444),W=m(7423),ie=m(4834),ee=m(159),ve=m(3390),he=m(6895);function re(be,xe){if(1&be&&l._UZ(0,"qr-code",28),2&be){const Re=l.oxw();l.Q6J("value",null==Re.offer?null:Re.offer.bolt12)("size",Re.qrWidth)("errorCorrectionLevel","L")}}function de(be,xe){1&be&&(l.TgZ(0,"span",29),l._uU(1,"N/A"),l.qZA())}function le(be,xe){if(1&be&&l._UZ(0,"qr-code",28),2&be){const Re=l.oxw();l.Q6J("value",null==Re.offer?null:Re.offer.bolt12)("size",Re.qrWidth)("errorCorrectionLevel","L")}}function se(be,xe){1&be&&(l.TgZ(0,"span",30),l._uU(1,"QR Code Not Applicable"),l.qZA())}function y(be,xe){1&be&&l._UZ(0,"mat-divider",31),2&be&&l.Q6J("inset",!0)}function i(be,xe){1&be&&l._UZ(0,"mat-divider",19)}function a(be,xe){if(1&be&&(l.TgZ(0,"div",15),l.TgZ(1,"div",16),l.TgZ(2,"h4",17),l._uU(3,"Used"),l.qZA(),l.TgZ(4,"span",18),l._uU(5),l.qZA(),l.qZA(),l.TgZ(6,"div",16),l.TgZ(7,"h4",17),l._uU(8,"Single Use"),l.qZA(),l.TgZ(9,"span",18),l._uU(10),l.qZA(),l.qZA(),l.qZA()),2&be){const Re=l.oxw(2);l.xp6(5),l.hij(" ",null!=Re.offer&&Re.offer.used?null!=Re.offer&&Re.offer.used?"Yes":"No":"N/K"," "),l.xp6(5),l.hij(" ",null!=Re.offer&&Re.offer.single_use?null!=Re.offer&&Re.offer.single_use?"Yes":"No":"N/K"," ")}}function p(be,xe){1&be&&l._UZ(0,"mat-divider",19)}function u(be,xe){if(1&be&&(l.TgZ(0,"div",15),l.TgZ(1,"div",20),l.TgZ(2,"h4",17),l._uU(3,"Vendor"),l.qZA(),l.TgZ(4,"span",34),l._uU(5),l.qZA(),l.qZA(),l.qZA()),2&be){const Re=l.oxw(2);l.xp6(5),l.Oqu((null==Re.offerDecoded?null:Re.offerDecoded.vendor)||(null==Re.offerDecoded?null:Re.offerDecoded.issuer))}}function _(be,xe){if(1&be&&(l.TgZ(0,"div"),l.YNc(1,i,1,0,"mat-divider",32),l.YNc(2,a,11,2,"div",33),l.YNc(3,p,1,0,"mat-divider",32),l.YNc(4,u,6,1,"div",33),l._UZ(5,"mat-divider",19),l.TgZ(6,"div",15),l.TgZ(7,"div",20),l.TgZ(8,"h4",17),l._uU(9,"Offer ID"),l.qZA(),l.TgZ(10,"span",18),l._uU(11),l.qZA(),l.qZA(),l.qZA(),l._UZ(12,"mat-divider",19),l.qZA()),2&be){const Re=l.oxw();l.xp6(1),l.Q6J("ngIf",(null==Re.offer?null:Re.offer.used)||(null==Re.offer?null:Re.offer.single_use)),l.xp6(1),l.Q6J("ngIf",(null==Re.offer?null:Re.offer.used)||(null==Re.offer?null:Re.offer.single_use)),l.xp6(1),l.Q6J("ngIf",(null==Re.offerDecoded?null:Re.offerDecoded.vendor)||(null==Re.offerDecoded?null:Re.offerDecoded.issuer)),l.xp6(1),l.Q6J("ngIf",(null==Re.offerDecoded?null:Re.offerDecoded.vendor)||(null==Re.offerDecoded?null:Re.offerDecoded.issuer)),l.xp6(7),l.Oqu(Re.offerDecoded.offer_id)}}function D(be,xe){1&be&&(l.TgZ(0,"p"),l._uU(1,"Show Advanced"),l.qZA())}function I(be,xe){1&be&&(l.TgZ(0,"p"),l._uU(1,"Hide Advanced"),l.qZA())}function x(be,xe){if(1&be){const Re=l.EpF();l.TgZ(0,"button",35),l.NdJ("copied",function(Le){return l.CHM(Re),l.oxw().onCopyOffer(Le)}),l._uU(1,"Copy Offer"),l.qZA()}if(2&be){const Re=l.oxw();l.Q6J("payload",null==Re.offer?null:Re.offer.bolt12)}}function r(be,xe){if(1&be){const Re=l.EpF();l.TgZ(0,"button",36),l.NdJ("click",function(){return l.CHM(Re),l.oxw().onClose()}),l._uU(1,"OK"),l.qZA()}}const b=function(be){return{"display-none":be}},U=function(be){return{"xs-scroll-y":be}},N=function(be,xe){return{"mt-2":be,"mt-1":xe}};let z=(()=>{class be{constructor(Re,ze,Le,K,we,Y,ae){this.dialogRef=Re,this.data=ze,this.logger=Le,this.commonService=K,this.snackBar=we,this.store=Y,this.dataService=ae,this.faReceipt=t.dLy,this.faExclamationTriangle=t.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.offerDecoded={},this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.cu,this.flgOfferPaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new v.x,new v.x,new v.x,new v.x,new v.x]}ngOnInit(){this.offer=this.data.offer,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.cu.XS&&(this.qrWidth=220),this.store.select(M.ey).pipe((0,C.R)(this.unSubs[0])).subscribe(Re=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(Re.api_version,"0.6.0")}),this.dataService.decodePayment(this.offer.bolt12,!0).pipe((0,C.R)(this.unSubs[1])).subscribe(Re=>{this.offerDecoded=Re,this.offerDecoded.offer_id&&!this.offerDecoded.amount_msat?(this.offerDecoded.amount_msat="0msat",this.offerDecoded.amount=0):this.offerDecoded.amount=+(this.offerDecoded.amount||this.offerDecoded.amount_msat.slice(0,-4))})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyOffer(Re){this.snackBar.open("Offer copied."),this.logger.info("Copied Text: "+Re)}ngOnDestroy(){this.unSubs.forEach(Re=>{Re.next(null),Re.complete()})}}return be.\u0275fac=function(Re){return new(Re||be)(l.Y36(e.so),l.Y36(e.WI),l.Y36(R.mQ),l.Y36(s.v),l.Y36(L.ux),l.Y36(O.yh),l.Y36(A.D))},be.\u0275cmp=l.Xpm({type:be,selectors:[["rtl-cln-offer-information"]],decls:52,vars:33,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",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","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"],["hideAdvancedText",""],["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"],[3,"value","size","errorCorrectionLevel"],[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,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(Re,ze){if(1&Re&&(l.TgZ(0,"div",0),l.TgZ(1,"div",1),l.YNc(2,re,1,3,"qr-code",2),l.YNc(3,de,2,0,"span",3),l.qZA(),l.TgZ(4,"div",4),l.TgZ(5,"mat-card-header",5),l.TgZ(6,"div",6),l._UZ(7,"fa-icon",7),l.TgZ(8,"span",8),l._uU(9),l.qZA(),l.qZA(),l.TgZ(10,"button",9),l.NdJ("click",function(){return ze.onClose()}),l._uU(11,"X"),l.qZA(),l.qZA(),l.TgZ(12,"mat-card-content",10),l.TgZ(13,"div",11),l.TgZ(14,"div",12),l.YNc(15,le,1,3,"qr-code",2),l.YNc(16,se,2,0,"span",13),l.qZA(),l.YNc(17,y,1,1,"mat-divider",14),l.TgZ(18,"div",15),l.TgZ(19,"div",16),l.TgZ(20,"h4",17),l._uU(21,"Amount Requested (Sats)"),l.qZA(),l.TgZ(22,"span",18),l._uU(23),l.ALo(24,"number"),l.qZA(),l.qZA(),l.TgZ(25,"div",16),l.TgZ(26,"h4",17),l._uU(27,"Active"),l.qZA(),l.TgZ(28,"span",18),l._uU(29),l.qZA(),l.qZA(),l.qZA(),l._UZ(30,"mat-divider",19),l.TgZ(31,"div",15),l.TgZ(32,"div",20),l.TgZ(33,"h4",17),l._uU(34,"Description"),l.qZA(),l.TgZ(35,"span",18),l._uU(36),l.qZA(),l.qZA(),l.qZA(),l._UZ(37,"mat-divider",19),l.TgZ(38,"div",15),l.TgZ(39,"div",20),l.TgZ(40,"h4",17),l._uU(41,"Offer Request"),l.qZA(),l.TgZ(42,"span",18),l._uU(43),l.qZA(),l.qZA(),l.qZA(),l.YNc(44,_,13,5,"div",21),l.TgZ(45,"div",22),l.TgZ(46,"button",23),l.NdJ("click",function(){return ze.onShowAdvanced()}),l.YNc(47,D,2,0,"p",24),l.YNc(48,I,2,0,"ng-template",null,25,l.W1O),l.qZA(),l.YNc(50,x,2,1,"button",26),l.YNc(51,r,2,0,"button",27),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.qZA()),2&Re){const Le=l.MAs(49);l.xp6(1),l.Q6J("fxLayoutAlign",null!=ze.offer&&ze.offer.bolt12&&""!==(null==ze.offer?null:ze.offer.bolt12)?"center start":"center center")("ngClass",l.VKq(24,b,ze.screenSize===ze.screenSizeEnum.XS||ze.screenSize===ze.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==ze.offer?null:ze.offer.bolt12)&&""!==(null==ze.offer?null:ze.offer.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=ze.offer&&ze.offer.bolt12)||""===(null==ze.offer?null:ze.offer.bolt12)),l.xp6(4),l.Q6J("icon",ze.faReceipt),l.xp6(2),l.Oqu(ze.screenSize===ze.screenSizeEnum.XS?ze.newlyAdded?"Created":"Offer":ze.newlyAdded?"Offer Created":"Offer Information"),l.xp6(3),l.Q6J("ngClass",l.VKq(26,U,ze.screenSize===ze.screenSizeEnum.XS)),l.xp6(2),l.Q6J("fxLayoutAlign",null!=ze.offer&&ze.offer.bolt12&&""!==(null==ze.offer?null:ze.offer.bolt12)?"center start":"center center")("ngClass",l.VKq(28,b,ze.screenSize!==ze.screenSizeEnum.XS&&ze.screenSize!==ze.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==ze.offer?null:ze.offer.bolt12)&&""!==(null==ze.offer?null:ze.offer.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=ze.offer&&ze.offer.bolt12)||""===(null==ze.offer?null:ze.offer.bolt12)),l.xp6(1),l.Q6J("ngIf",ze.screenSize===ze.screenSizeEnum.XS||ze.screenSize===ze.screenSizeEnum.SM),l.xp6(6),l.hij(" ",null!=ze.offerDecoded&&ze.offerDecoded.amount_msat&&0!==(null==ze.offerDecoded?null:ze.offerDecoded.amount)?l.lcZ(24,22,(null==ze.offerDecoded?null:ze.offerDecoded.amount)/1e3):"Open Offer"," "),l.xp6(6),l.hij(" ",null!=ze.offer&&ze.offer.active?null!=ze.offer&&ze.offer.active?"Active":"Inactive":"N/K"," "),l.xp6(7),l.hij(" ",null==ze.offerDecoded?null:ze.offerDecoded.description," "),l.xp6(7),l.Oqu(null==ze.offer?null:ze.offer.bolt12),l.xp6(1),l.Q6J("ngIf",ze.showAdvanced),l.xp6(1),l.Q6J("ngClass",l.WLB(30,N,!ze.showAdvanced,ze.showAdvanced)),l.xp6(2),l.Q6J("ngIf",!ze.showAdvanced)("ngIfElse",Le),l.xp6(3),l.Q6J("ngIf",(null==ze.offer?null:ze.offer.bolt12)&&""!==(null==ze.offer?null:ze.offer.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=ze.offer&&ze.offer.bolt12)||""===(null==ze.offer?null:ze.offer.bolt12))}},directives:[E.xw,E.Wh,E.yH,P.mk,w.oO,P.O5,Z.dk,j.BN,W.lW,Z.dn,ie.d,ee.uU,ve.h,he.y],pipes:[P.JJ],styles:[""]}),be})()},2994:(Ve,Q,m)=>{"use strict";m.d(Q,{QZ:()=>v,Fd:()=>C,Zr:()=>o,iz:()=>M,CX:()=>l,SN:()=>R,RX:()=>s,UR:()=>L,eN:()=>O,TW:()=>A,i:()=>E,iL:()=>P,Bw:()=>w,On:()=>Z,HG:()=>j,$W:()=>W,Z8:()=>ie,El:()=>ee,GD:()=>re,EK:()=>de,_E:()=>le,YX:()=>y,pW:()=>i,BL:()=>a,OG:()=>p,cQ:()=>u,HI:()=>_,WO:()=>D,kL:()=>I,oV:()=>x,TM:()=>r,mC:()=>b,Lf:()=>U,Iy:()=>N,WM:()=>be,Nr:()=>xe,Z$:()=>Re,YP:()=>ze,aL:()=>Le,Sf:()=>K,n7:()=>we,DJ:()=>ae,ti:()=>Ge});var e=m(5620),t=m(7731);const v=(0,e.PH)(t.lr.UPDATE_API_CALL_STATUS_ECL,(0,e.Ky)()),C=(0,e.PH)(t.lr.RESET_ECL_STORE,(0,e.Ky)()),o=(0,e.PH)(t.lr.SET_CHILD_NODE_SETTINGS_ECL,(0,e.Ky)()),M=(0,e.PH)(t.lr.FETCH_INFO_ECL,(0,e.Ky)()),l=(0,e.PH)(t.lr.SET_INFO_ECL,(0,e.Ky)()),R=(0,e.PH)(t.lr.FETCH_FEES_ECL),s=(0,e.PH)(t.lr.SET_FEES_ECL,(0,e.Ky)()),L=(0,e.PH)(t.lr.FETCH_CHANNELS_ECL,(0,e.Ky)()),O=(0,e.PH)(t.lr.SET_ACTIVE_CHANNELS_ECL,(0,e.Ky)()),A=(0,e.PH)(t.lr.SET_PENDING_CHANNELS_ECL,(0,e.Ky)()),E=(0,e.PH)(t.lr.SET_INACTIVE_CHANNELS_ECL,(0,e.Ky)()),P=(0,e.PH)(t.lr.FETCH_ONCHAIN_BALANCE_ECL),w=(0,e.PH)(t.lr.SET_ONCHAIN_BALANCE_ECL,(0,e.Ky)()),Z=(0,e.PH)(t.lr.SET_LIGHTNING_BALANCE_ECL,(0,e.Ky)()),j=(0,e.PH)(t.lr.SET_CHANNELS_STATUS_ECL,(0,e.Ky)()),W=(0,e.PH)(t.lr.FETCH_PEERS_ECL),ie=(0,e.PH)(t.lr.SET_PEERS_ECL,(0,e.Ky)()),ee=(0,e.PH)(t.lr.SAVE_NEW_PEER_ECL,(0,e.Ky)()),re=((0,e.PH)(t.lr.NEWLY_ADDED_PEER_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.ADD_PEER_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.DETACH_PEER_ECL,(0,e.Ky)())),de=(0,e.PH)(t.lr.REMOVE_PEER_ECL,(0,e.Ky)()),le=(0,e.PH)(t.lr.GET_NEW_ADDRESS_ECL),y=((0,e.PH)(t.lr.SET_NEW_ADDRESS_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.SAVE_NEW_CHANNEL_ECL,(0,e.Ky)())),i=(0,e.PH)(t.lr.UPDATE_CHANNEL_ECL,(0,e.Ky)()),a=(0,e.PH)(t.lr.CLOSE_CHANNEL_ECL,(0,e.Ky)()),p=(0,e.PH)(t.lr.REMOVE_CHANNEL_ECL,(0,e.Ky)()),u=(0,e.PH)(t.lr.FETCH_PAYMENTS_ECL),_=(0,e.PH)(t.lr.SET_PAYMENTS_ECL,(0,e.Ky)()),D=(0,e.PH)(t.lr.GET_QUERY_ROUTES_ECL,(0,e.Ky)()),I=(0,e.PH)(t.lr.SET_QUERY_ROUTES_ECL,(0,e.Ky)()),x=(0,e.PH)(t.lr.SEND_PAYMENT_ECL,(0,e.Ky)()),r=(0,e.PH)(t.lr.SEND_PAYMENT_STATUS_ECL,(0,e.Ky)()),b=(0,e.PH)(t.lr.FETCH_TRANSACTIONS_ECL),U=(0,e.PH)(t.lr.SET_TRANSACTIONS_ECL,(0,e.Ky)()),N=(0,e.PH)(t.lr.SEND_ONCHAIN_FUNDS_ECL,(0,e.Ky)()),be=((0,e.PH)(t.lr.SEND_ONCHAIN_FUNDS_RES_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.FETCH_INVOICES_ECL)),xe=(0,e.PH)(t.lr.SET_INVOICES_ECL,(0,e.Ky)()),Re=(0,e.PH)(t.lr.CREATE_INVOICE_ECL,(0,e.Ky)()),ze=(0,e.PH)(t.lr.ADD_INVOICE_ECL,(0,e.Ky)()),Le=(0,e.PH)(t.lr.UPDATE_INVOICE_ECL,(0,e.Ky)()),K=(0,e.PH)(t.lr.PEER_LOOKUP_ECL,(0,e.Ky)()),we=(0,e.PH)(t.lr.INVOICE_LOOKUP_ECL,(0,e.Ky)()),ae=((0,e.PH)(t.lr.SET_LOOKUP_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.UPDATE_CHANNEL_STATE_ECL,(0,e.Ky)())),Ge=(0,e.PH)(t.lr.UPDATE_RELAYED_PAYMENT_ECL,(0,e.Ky)())},3289:(Ve,Q,m)=>{"use strict";m.d(Q,{o:()=>de});var e=m(6642),t=m(7579),v=m(9646),C=m(5577),o=m(2722),M=m(4004),l=m(262),R=m(2340),s=m(1786),L=m(7731),O=m(7861),A=m(7766),E=m(2994),P=m(2501),w=m(5e3),Z=m(8138),j=m(5620),W=m(5986),ie=m(62),ee=m(5043),ve=m(1402),he=m(7998),re=m(9808);let de=(()=>{class le{constructor(y,i,a,p,u,_,D,I,x){this.actions=y,this.httpClient=i,this.store=a,this.sessionService=p,this.commonService=u,this.logger=_,this.router=D,this.wsService=I,this.location=x,this.CHILD_API_URL=R.T5+"/ecl",this.flgInitialized=!1,this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.rawChannelsList=[],this.unSubs=[new t.x,new t.x,new t.x],this.infoFetchECL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_INFO_ECL),(0,C.z)(r=>(this.flgInitialized=!1,this.store.dispatch((0,O.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,O.ac)({payload:L.m6.GET_NODE_INFO})),this.store.dispatch((0,E.QZ)({payload:{action:"FetchInfo",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.GETINFO_API).pipe((0,o.R)(this.actions.pipe((0,e.l4)(L.pg.SET_SELECTED_NODE))),(0,M.U)(b=>(this.logger.info(b),this.initializeRemainingData(b,r.payload.loadPage),this.store.dispatch((0,E.QZ)({payload:{action:"FetchInfo",status:L.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:L.m6.GET_NODE_INFO})),{type:L.lr.SET_INFO_ECL,payload:b||{}})),(0,l.K)(b=>{const U=this.commonService.extractErrorCode(b),N=503===U?"Unable to Connect to Eclair Server.":this.commonService.extractErrorMessage(b);return this.router.navigate(["/error"],{state:{errorCode:U,errorMessage:N}}),this.handleErrorWithoutAlert("FetchInfo",L.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:U,error:N}),(0,v.of)({type:L.pg.VOID})})))))),this.fetchFees=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_FEES_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchFees",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.FEES_API+"/fees").pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchFees",status:L.Bn.COMPLETED}})),{type:L.lr.SET_FEES_ECL,payload:r||{}})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchFees",L.m6.NO_SPINNER,"Fetching Fees Failed.",r),(0,v.of)({type:L.pg.VOID})))))))),this.fetchPayments=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_PAYMENTS_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchPayments",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.FEES_API+"/payments").pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchPayments",status:L.Bn.COMPLETED}})),{type:L.lr.SET_PAYMENTS_ECL,payload:r||{}})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchPayments",L.m6.NO_SPINNER,"Fetching Payments Failed.",r),(0,v.of)({type:L.pg.VOID})))))))),this.channelsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_CHANNELS_ECL),(0,C.z)(r=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchChannels",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.CHANNELS_API).pipe((0,M.U)(b=>(this.logger.info(b),this.rawChannelsList=b,this.setChannelsAndStatusAndBalances(),this.store.dispatch((0,E.QZ)({payload:{action:"FetchChannels",status:L.Bn.COMPLETED}})),r.payload&&r.payload.fetchPayments&&this.store.dispatch((0,E.cQ)()),{type:L.pg.VOID})),(0,l.K)(b=>(this.handleErrorWithoutAlert("FetchChannels",L.m6.NO_SPINNER,"Fetching Channels Failed.",b),(0,v.of)({type:L.pg.VOID})))))))),this.fetchOnchainBalance=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_ONCHAIN_BALANCE_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchOnchainBalance",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API+"/balance"))),(0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchOnchainBalance",status:L.Bn.COMPLETED}})),{type:L.lr.SET_ONCHAIN_BALANCE_ECL,payload:r||{}})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchOnchainBalance",L.m6.NO_SPINNER,"Fetching Onchain Balances Failed.",r),(0,v.of)({type:L.pg.VOID}))))),this.peersFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_PEERS_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchPeers",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.PEERS_API).pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchPeers",status:L.Bn.COMPLETED}})),{type:L.lr.SET_PEERS_ECL,payload:r||[]})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchPeers",L.m6.NO_SPINNER,"Fetching Peers Failed.",r),(0,v.of)({type:L.pg.VOID})))))))),this.getNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.GET_NEW_ADDRESS_ECL),(0,C.z)(()=>(this.store.dispatch((0,O.ac)({payload:L.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API).pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,O.uO)({payload:L.m6.GENERATE_NEW_ADDRESS})),{type:L.lr.SET_NEW_ADDRESS_ECL,payload:r})),(0,l.K)(r=>(this.handleErrorWithAlert("GetNewAddress",L.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+R.NZ.ON_CHAIN_API,r),(0,v.of)({type:L.pg.VOID})))))))),this.setNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.SET_NEW_ADDRESS_ECL),(0,M.U)(r=>(this.logger.info(r.payload),r.payload))),{dispatch:!1}),this.saveNewPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.SAVE_NEW_PEER_ECL),(0,C.z)(r=>(this.store.dispatch((0,O.ac)({payload:L.m6.CONNECT_PEER})),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewPeer",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.PEERS_API+(r.payload.id.includes("@")?"?uri=":"?nodeId=")+r.payload.id,{}).pipe((0,M.U)(b=>(this.logger.info(b),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewPeer",status:L.Bn.COMPLETED}})),b=b||[],this.store.dispatch((0,O.uO)({payload:L.m6.CONNECT_PEER})),this.store.dispatch((0,E.Z8)({payload:b})),{type:L.lr.NEWLY_ADDED_PEER_ECL,payload:{peer:b.find(U=>U.nodeId===(r.payload.id.includes("@")?r.payload.id.substring(0,r.payload.id.indexOf("@")):r.payload.id))}})),(0,l.K)(b=>(this.handleErrorWithoutAlert("SaveNewPeer",L.m6.CONNECT_PEER,"Peer Connection Failed.",b),(0,v.of)({type:L.pg.VOID})))))))),this.detachPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.DETACH_PEER_ECL),(0,C.z)(r=>(this.store.dispatch((0,O.ac)({payload:L.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.PEERS_API+"/"+r.payload.nodeId).pipe((0,M.U)(b=>(this.logger.info(b),this.store.dispatch((0,O.uO)({payload:L.m6.DISCONNECT_PEER})),this.store.dispatch((0,O.jW)({payload:"Disconnecting Peer!"})),{type:L.lr.REMOVE_PEER_ECL,payload:{nodeId:r.payload.nodeId}})),(0,l.K)(b=>(this.handleErrorWithAlert("DisconnectPeer",L.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+R.NZ.PEERS_API+"/"+r.payload.nodeId,b),(0,v.of)({type:L.pg.VOID})))))))),this.openNewChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.SAVE_NEW_CHANNEL_ECL),(0,C.z)(r=>(this.store.dispatch((0,O.ac)({payload:L.m6.OPEN_CHANNEL})),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewChannel",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.CHANNELS_API,r.payload.feeRate&&r.payload.feeRate>0?{nodeId:r.payload.nodeId,fundingSatoshis:r.payload.amount,channelFlags:+!r.payload.private,fundingFeerateSatByte:r.payload.feeRate}:{nodeId:r.payload.nodeId,fundingSatoshis:r.payload.amount,channelFlags:+!r.payload.private}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewChannel",status:L.Bn.COMPLETED}})),this.store.dispatch((0,E.$W)()),this.store.dispatch((0,E.iL)()),this.store.dispatch((0,O.uO)({payload:L.m6.OPEN_CHANNEL})),this.store.dispatch((0,O.jW)({payload:"Channel Added Successfully!"})),{type:L.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,l.K)(U=>(this.handleErrorWithoutAlert("SaveNewChannel",L.m6.OPEN_CHANNEL,"Opening Channel Failed.",U),(0,v.of)({type:L.pg.VOID})))))))),this.updateChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.UPDATE_CHANNEL_ECL),(0,C.z)(r=>{this.store.dispatch((0,O.ac)({payload:L.m6.UPDATE_CHAN_POLICY}));let b="?feeBaseMsat="+r.payload.baseFeeMsat+"&feeProportionalMillionths="+r.payload.feeRate;return b=r.payload.nodeIds?b+"&nodeIds="+r.payload.nodeIds:r.payload.nodeId?b+"&nodeId="+r.payload.nodeId:r.payload.channelIds?b+"&channelIds="+r.payload.channelIds:b+"&channelId="+r.payload.channelId,this.httpClient.post(this.CHILD_API_URL+R.NZ.CHANNELS_API+"/updateRelayFee"+b,{}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,O.uO)({payload:L.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,O.jW)(r.payload.nodeIds||r.payload.channelIds?{payload:"Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:L.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,l.K)(U=>(this.handleErrorWithAlert("UpdateChannels",L.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+R.NZ.CHANNELS_API,U),(0,v.of)({type:L.pg.VOID}))))}))),this.closeChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.CLOSE_CHANNEL_ECL),(0,C.z)(r=>(this.store.dispatch((0,O.ac)({payload:r.payload.force?L.m6.FORCE_CLOSE_CHANNEL:L.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.CHANNELS_API+"?channelId="+r.payload.channelId+"&force="+r.payload.force).pipe((0,M.U)(b=>(this.logger.info(b),setTimeout(()=>{this.store.dispatch((0,O.uO)({payload:r.payload.force?L.m6.FORCE_CLOSE_CHANNEL:L.m6.CLOSE_CHANNEL})),this.store.dispatch((0,E.UR)({payload:{fetchPayments:!1}})),this.store.dispatch((0,O.jW)({payload:r.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"}))},2e3),{type:L.pg.VOID})),(0,l.K)(b=>(this.handleErrorWithAlert("CloseChannel",r.payload.force?L.m6.FORCE_CLOSE_CHANNEL:L.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+R.NZ.CHANNELS_API,b),(0,v.of)({type:L.pg.VOID})))))))),this.queryRoutesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.GET_QUERY_ROUTES_ECL),(0,C.z)(r=>this.httpClient.get(this.CHILD_API_URL+R.NZ.PAYMENTS_API+"/route?nodeId="+r.payload.nodeId+"&amountMsat="+r.payload.amount).pipe((0,M.U)(b=>(this.logger.info(b),{type:L.lr.SET_QUERY_ROUTES_ECL,payload:b})),(0,l.K)(b=>(this.store.dispatch((0,E.kL)({payload:[]})),this.handleErrorWithAlert("GetQueryRoutes",L.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+R.NZ.PAYMENTS_API+"/route?nodeId="+r.payload.nodeId+"&amountMsat="+r.payload.amount,b),(0,v.of)({type:L.pg.VOID}))))))),this.setQueryRoutes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.SET_QUERY_ROUTES_ECL),(0,M.U)(r=>r.payload)),{dispatch:!1}),this.sendPayment=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.SEND_PAYMENT_ECL),(0,C.z)(r=>(this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.store.dispatch((0,O.ac)({payload:L.m6.SEND_PAYMENT})),this.store.dispatch((0,E.QZ)({payload:{action:"SendPayment",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.PAYMENTS_API,r.payload).pipe((0,M.U)(b=>(this.logger.info(b),this.latestPaymentRes=b,setTimeout(()=>{this.flgReceivedPaymentUpdateFromWS||this.handleSendPaymentStatus("Payment Submitted!")},3e3),{type:L.pg.VOID})),(0,l.K)(b=>(this.logger.error("Error: "+JSON.stringify(b)),r.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",L.m6.SEND_PAYMENT,"Send Payment Failed.",b):this.handleErrorWithAlert("SendPayment",L.m6.SEND_PAYMENT,"Send Payment Failed",this.CHILD_API_URL+R.NZ.PAYMENTS_API,b),(0,v.of)({type:L.pg.VOID})))))))),this.transactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_TRANSACTIONS_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchTransactions",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API+"/transactions?count=1000&skip=0"))),(0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchTransactions",status:L.Bn.COMPLETED}})),{type:L.lr.SET_TRANSACTIONS_ECL,payload:r||[]})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchTransactions",L.m6.NO_SPINNER,"Fetching Transactions Failed.",r),(0,v.of)({type:L.pg.VOID}))))),this.SendOnchainFunds=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.SEND_ONCHAIN_FUNDS_ECL),(0,C.z)(r=>(this.store.dispatch((0,O.ac)({payload:L.m6.SEND_FUNDS})),this.store.dispatch((0,E.QZ)({payload:{action:"SendOnchainFunds",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.ON_CHAIN_API,r.payload).pipe((0,M.U)(b=>(this.logger.info(b),this.store.dispatch((0,E.QZ)({payload:{action:"SendOnchainFunds",status:L.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:L.m6.SEND_FUNDS})),this.store.dispatch((0,E.iL)()),{type:L.lr.SEND_ONCHAIN_FUNDS_RES_ECL,payload:b})),(0,l.K)(b=>(this.handleErrorWithoutAlert("SendOnchainFunds",L.m6.SEND_FUNDS,"Sending Fund Failed.",b),(0,v.of)({type:L.pg.VOID})))))))),this.createInvoice=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.CREATE_INVOICE_ECL),(0,C.z)(r=>(this.store.dispatch((0,O.ac)({payload:L.m6.CREATE_INVOICE})),this.store.dispatch((0,E.QZ)({payload:{action:"CreateInvoice",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.INVOICES_API,r.payload).pipe((0,M.U)(b=>(this.logger.info(b),this.store.dispatch((0,E.QZ)({payload:{action:"CreateInvoice",status:L.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:L.m6.CREATE_INVOICE})),b.timestamp=Math.round((new Date).getTime()/1e3),b.expiresAt=Math.round(b.timestamp+r.payload.expireIn),b.description=r.payload.description,b.status="unpaid",setTimeout(()=>{this.store.dispatch((0,O.qR)({payload:{data:{invoice:b,newlyAdded:!0,component:A.R}}}))},100),{type:L.lr.ADD_INVOICE_ECL,payload:b})),(0,l.K)(b=>(this.handleErrorWithoutAlert("CreateInvoice",L.m6.CREATE_INVOICE,"Create Invoice Failed.",b),(0,v.of)({type:L.pg.VOID})))))))),this.invoicesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_INVOICES_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchInvoices",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.INVOICES_API).pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchInvoices",status:L.Bn.COMPLETED}})),{type:L.lr.SET_INVOICES_ECL,payload:r})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchInvoices",L.m6.NO_SPINNER,"Fetching Invoices Failed.",r),(0,v.of)({type:L.pg.VOID})))))))),this.peerLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.PEER_LOOKUP_ECL),(0,C.z)(r=>(this.store.dispatch((0,O.ac)({payload:L.m6.SEARCHING_NODE})),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.NETWORK_API+"/nodes/"+r.payload).pipe((0,M.U)(b=>(this.logger.info(b),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:L.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:L.m6.SEARCHING_NODE})),{type:L.lr.SET_LOOKUP_ECL,payload:b})),(0,l.K)(b=>(this.handleErrorWithAlert("Lookup",L.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+R.NZ.NETWORK_API+"/nodes/"+r.payload,b),(0,v.of)({type:L.pg.VOID})))))))),this.invoiceLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.INVOICE_LOOKUP_ECL),(0,C.z)(r=>(this.store.dispatch((0,O.ac)({payload:L.m6.SEARCHING_INVOICE})),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.INVOICES_API+"/"+r.payload).pipe((0,M.U)(b=>(this.logger.info(b),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:L.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:L.m6.SEARCHING_INVOICE})),this.store.dispatch((0,E.aL)({payload:b})),{type:L.lr.SET_LOOKUP_ECL,payload:b})),(0,l.K)(b=>(this.handleErrorWithoutAlert("Lookup",L.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",b),this.store.dispatch((0,O.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,v.of)({type:L.pg.VOID})))))))),this.setLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.SET_LOOKUP_ECL),(0,M.U)(r=>(this.logger.info(r.payload),r.payload))),{dispatch:!1}),this.handleSendPaymentStatus=r=>{this.store.dispatch((0,E.QZ)({payload:{action:"SendPayment",status:L.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:L.m6.SEND_PAYMENT})),this.store.dispatch((0,E.TM)({payload:this.latestPaymentRes})),this.store.dispatch((0,E.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,O.jW)({payload:r}))},this.store.select(P.yA).pipe((0,o.R)(this.unSubs[0])).subscribe(r=>{r.FetchInfo.status!==L.Bn.COMPLETED&&r.FetchInfo.status!==L.Bn.ERROR||r.FetchFees.status!==L.Bn.COMPLETED&&r.FetchFees.status!==L.Bn.ERROR||r.FetchOnchainBalance.status!==L.Bn.COMPLETED&&r.FetchOnchainBalance.status!==L.Bn.ERROR||r.FetchChannels.status!==L.Bn.COMPLETED&&r.FetchChannels.status!==L.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,O.uO)({payload:L.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.eclWSMessages.pipe((0,o.R)(this.unSubs[1])).subscribe(r=>{this.logger.info("Received new message from the service: "+JSON.stringify(r));let b="";if(r)switch(r.type){case L.$v.PAYMENT_SENT:r&&r.id&&this.latestPaymentRes===r.id&&(this.flgReceivedPaymentUpdateFromWS=!0,b="Payment Sent: "+(r.paymentHash?"with payment hash "+r.paymentHash:JSON.stringify(r)),this.handleSendPaymentStatus(b));break;case L.$v.PAYMENT_FAILED:r&&r.id&&this.latestPaymentRes===r.id&&(this.flgReceivedPaymentUpdateFromWS=!0,b="Payment Failed: "+(r.failures&&r.failures.length&&r.failures.length>0&&r.failures[0].t?r.failures[0].t:r.failures&&r.failures.length&&r.failures.length>0&&r.failures[0].e&&r.failures[0].e.failureMessage?r.failures[0].e.failureMessage:JSON.stringify(r)),this.handleSendPaymentStatus(b));break;case L.$v.PAYMENT_RECEIVED:this.store.dispatch((0,E.aL)({payload:r}));break;case L.$v.PAYMENT_RELAYED:delete r.source,this.store.dispatch((0,E.ti)({payload:r}));break;case L.$v.CHANNEL_STATE_CHANGED:"NORMAL"===r.currentState||"CLOSED"===r.currentState?(this.rawChannelsList=this.rawChannelsList.map(U=>(U.channelId===r.channelId&&U.nodeId===r.remoteNodeId&&(U.state=r.currentState),U)),this.setChannelsAndStatusAndBalances()):this.store.dispatch((0,E.DJ)({payload:r}));break;default:this.logger.info("Received Event from WS: "+JSON.stringify(r))}})}setChannelsAndStatusAndBalances(){let y=0,i=0,a=0,p={localBalance:0,remoteBalance:0},u=[];const _=[],D=[],I={active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0}};this.rawChannelsList.forEach((x,r)=>{"NORMAL"===x.state?(y=x.toLocal+x.toRemote,i+=x.toLocal,a+=x.toRemote,x.balancedness=0===y?1:+(1-Math.abs((x.toLocal-x.toRemote)/y)).toFixed(3),u.push(x),I.active.channels=I.active.channels+1,I.active.capacity=I.active.capacity+x.toLocal):x.state.includes("WAIT")||x.state.includes("CLOSING")||x.state.includes("SYNCING")?(x.state=x.state.replace(/_/g," "),_.push(x),I.pending.channels=I.pending.channels+1,I.pending.capacity=I.pending.capacity+x.toLocal):(x.state=x.state.replace(/_/g," "),D.push(x),I.inactive.channels=I.inactive.channels+1,I.inactive.capacity=I.inactive.capacity+x.toLocal)}),p={localBalance:i,remoteBalance:a},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(D)),this.logger.info("Lightning Balances: "+JSON.stringify(p)),this.logger.info("Channels Status: "+JSON.stringify(I)),this.logger.info("Channel, status and balances: "+JSON.stringify({active:u,pending:_,inactive:D,balances:p,status:I})),this.store.dispatch((0,E.eN)({payload:u})),this.store.dispatch((0,E.TW)({payload:_})),this.store.dispatch((0,E.i)({payload:D})),this.store.dispatch((0,E.On)({payload:p})),this.store.dispatch((0,E.HG)({payload:I}))}initializeRemainingData(y,i){this.sessionService.setItem("eclUnlocked","true");const a={identity_pubkey:y.nodeId,alias:y.alias,testnet:"testnet"===y.network,chains:y.publicAddresses,uris:y.uris,version:y.version,numberOfPendingChannels:0};this.store.dispatch((0,O.ac)({payload:L.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,O._V)({payload:a}));let p=this.location.path();p.includes("/lnd/")?p=p.replace("/lnd/","/ecl/"):p.includes("/cln/")&&(p=p.replace("/cln/","/ecl/")),(p.includes("/login")||p.includes("/error")||""===p||"HOME"===i||p.includes("?access-key="))&&(p="/ecl/home"),this.router.navigate([p]),this.store.dispatch((0,E.WM)()),this.store.dispatch((0,E.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,E.SN)()),this.store.dispatch((0,E.iL)()),this.store.dispatch((0,E.$W)())}handleErrorWithoutAlert(y,i,a,p){this.logger.error("ERROR IN: "+y+"\n"+JSON.stringify(p)),401===p.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,O.ts)()),this.store.dispatch((0,O.kS)()),this.store.dispatch((0,O.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,O.uO)({payload:i})),this.store.dispatch((0,E.QZ)({payload:{action:y,status:L.Bn.ERROR,statusCode:p.status.toString(),message:this.commonService.extractErrorMessage(p,a)}})))}handleErrorWithAlert(y,i,a,p,u){if(this.logger.error(u),401===u.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,O.ts)()),this.store.dispatch((0,O.kS)()),this.store.dispatch((0,O.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,O.uO)({payload:i}));const _=this.commonService.extractErrorMessage(u);this.store.dispatch((0,O.qR)({payload:{data:{type:"ERROR",alertTitle:a,message:{code:u.status,message:_,URL:p},component:s.H}}})),this.store.dispatch((0,E.QZ)({payload:{action:y,status:L.Bn.ERROR,statusCode:u.status.toString(),message:_,URL:p}}))}}ngOnDestroy(){this.unSubs.forEach(y=>{y.next(null),y.complete()})}}return le.\u0275fac=function(y){return new(y||le)(w.LFG(e.eX),w.LFG(Z.eN),w.LFG(j.yh),w.LFG(W.m),w.LFG(ie.v),w.LFG(ee.mQ),w.LFG(ve.F0),w.LFG(he.d),w.LFG(re.Ye))},le.\u0275prov=w.Yz7({token:le,factory:le.\u0275fac}),le})()},2501:(Ve,Q,m)=>{"use strict";m.d(Q,{pg:()=>v,yD:()=>C,T$:()=>o,yA:()=>l,PP:()=>R,JG:()=>s,Xz:()=>L,dx:()=>O,Ef:()=>A,Bo:()=>E,kY:()=>P});var e=m(5620);const t=(0,e.ZF)("ecl"),v=(0,e.P1)(t,w=>w.nodeSettings),C=(0,e.P1)(t,w=>w.information),o=(0,e.P1)(t,w=>({information:w.information,apiCallStatus:w.apisCallStatus.FetchInfo})),l=((0,e.P1)(t,w=>w.apisCallStatus.FetchInfo),(0,e.P1)(t,w=>w.apisCallStatus)),R=(0,e.P1)(t,w=>({payments:w.payments,apiCallStatus:w.apisCallStatus.FetchPayments})),s=(0,e.P1)(t,w=>({fees:w.fees,apiCallStatus:w.apisCallStatus.FetchFees})),L=(0,e.P1)(t,w=>({activeChannels:w.activeChannels,pendingChannels:w.pendingChannels,inactiveChannels:w.inactiveChannels,lightningBalance:w.lightningBalance,channelsStatus:w.channelsStatus,apiCallStatus:w.apisCallStatus.FetchChannels})),O=(0,e.P1)(t,w=>({transactions:w.transactions,apiCallStatus:w.apisCallStatus.FetchTransactions})),A=(0,e.P1)(t,w=>({invoices:w.invoices,apiCallStatus:w.apisCallStatus.FetchInvoices})),E=(0,e.P1)(t,w=>({peers:w.peers,apiCallStatus:w.apisCallStatus.FetchPeers})),P=(0,e.P1)(t,w=>({onchainBalance:w.onchainBalance,apiCallStatus:w.apisCallStatus.FetchOnchainBalance}))},7766:(Ve,Q,m)=>{"use strict";m.d(Q,{R:()=>Le});var e=m(8966),t=m(801),v=m(7579),C=m(2722),o=m(7731),M=m(2501),l=m(5e3),R=m(5043),s=m(62),L=m(7261),O=m(5620),A=m(7093),E=m(9808),P=m(3322),w=m(9224),Z=m(9444),j=m(7423),W=m(4834),ie=m(159),ee=m(773),ve=m(3390),he=m(6895);function re(K,we){if(1&K&&l._UZ(0,"qr-code",29),2&K){const Y=l.oxw();l.Q6J("value",null==Y.invoice?null:Y.invoice.serialized)("size",Y.qrWidth)("errorCorrectionLevel","L")}}function de(K,we){1&K&&(l.TgZ(0,"span",30),l._uU(1,"N/A"),l.qZA())}function le(K,we){if(1&K&&l._UZ(0,"qr-code",29),2&K){const Y=l.oxw();l.Q6J("value",null==Y.invoice?null:Y.invoice.serialized)("size",Y.qrWidth)("errorCorrectionLevel","L")}}function se(K,we){1&K&&(l.TgZ(0,"span",31),l._uU(1,"QR Code Not Applicable"),l.qZA())}function y(K,we){1&K&&l._UZ(0,"mat-divider",32),2&K&&l.Q6J("inset",!0)}function i(K,we){1&K&&(l.ynx(0),l._uU(1," (zero amount) "),l.BQk())}function a(K,we){1&K&&l._UZ(0,"span",38)}const p=function(){return[]};function u(K,we){if(1&K&&(l.TgZ(0,"div",34),l.TgZ(1,"div",35),l.TgZ(2,"span",36),l._uU(3),l.ALo(4,"number"),l.qZA(),l.YNc(5,a,1,0,"span",37),l.qZA(),l.qZA()),2&K){const Y=l.oxw(2);l.xp6(3),l.hij("",l.lcZ(4,2,null==Y.invoice?null:Y.invoice.amountSettled)," Sats"),l.xp6(2),l.Q6J("ngForOf",l.DdM(4,p).constructor(35))}}function _(K,we){if(1&K&&(l.TgZ(0,"div"),l._uU(1),l.ALo(2,"number"),l.qZA()),2&K){const Y=l.oxw(2);l.xp6(1),l.hij("",l.lcZ(2,1,null==Y.invoice?null:Y.invoice.amountSettled)," Sats")}}function D(K,we){if(1&K&&(l.ynx(0),l.YNc(1,u,6,5,"div",33),l.YNc(2,_,3,3,"div",19),l.BQk()),2&K){const Y=l.oxw();l.xp6(1),l.Q6J("ngIf",Y.flgInvoicePaid),l.xp6(1),l.Q6J("ngIf",!Y.flgInvoicePaid)}}function I(K,we){1&K&&(l.TgZ(0,"span"),l._uU(1,"-"),l.qZA())}function x(K,we){1&K&&l._UZ(0,"mat-spinner",40),2&K&&l.Q6J("diameter",20)}function r(K,we){if(1&K&&(l.ynx(0),l.YNc(1,I,2,0,"span",19),l.YNc(2,x,1,1,"mat-spinner",39),l.BQk()),2&K){const Y=l.oxw();l.xp6(1),l.Q6J("ngIf","unpaid"!==(null==Y.invoice?null:Y.invoice.status)||!Y.flgVersionCompatible),l.xp6(1),l.Q6J("ngIf","unpaid"===(null==Y.invoice?null:Y.invoice.status)&&Y.flgVersionCompatible)}}function b(K,we){if(1&K&&(l.TgZ(0,"div"),l._UZ(1,"mat-divider",20),l.TgZ(2,"div",15),l.TgZ(3,"div",41),l.TgZ(4,"h4",17),l._uU(5,"Date Expiry"),l.qZA(),l.TgZ(6,"span",18),l._uU(7),l.ALo(8,"date"),l.qZA(),l.qZA(),l.TgZ(9,"div",42),l.TgZ(10,"h4",17),l._uU(11,"Date Settled"),l.qZA(),l.TgZ(12,"span",21),l._uU(13),l.ALo(14,"date"),l.qZA(),l.qZA(),l.qZA(),l._UZ(15,"mat-divider",20),l.TgZ(16,"div",15),l.TgZ(17,"div",22),l.TgZ(18,"h4",17),l._uU(19,"Payment Hash"),l.qZA(),l.TgZ(20,"span",21),l._uU(21),l.qZA(),l.qZA(),l.qZA(),l._UZ(22,"mat-divider",20),l.TgZ(23,"div",15),l.TgZ(24,"div",22),l.TgZ(25,"h4",17),l._uU(26,"Node Id"),l.qZA(),l.TgZ(27,"span",21),l._uU(28),l.qZA(),l.qZA(),l.qZA(),l._UZ(29,"mat-divider",20),l.qZA()),2&K){const Y=l.oxw();l.xp6(7),l.Oqu(l.xi3(8,4,1e3*(null==Y.invoice?null:Y.invoice.expiresAt),"dd/MMM/y HH:mm")),l.xp6(6),l.Oqu(l.xi3(14,7,1e3*(null==Y.invoice?null:Y.invoice.receivedAt),"dd/MMM/y HH:mm")),l.xp6(8),l.Oqu(null==Y.invoice?null:Y.invoice.paymentHash),l.xp6(7),l.Oqu(null==Y.invoice?null:Y.invoice.nodeId)}}function U(K,we){1&K&&(l.TgZ(0,"p"),l._uU(1,"Show Advanced"),l.qZA())}function N(K,we){1&K&&(l.TgZ(0,"p"),l._uU(1,"Hide Advanced"),l.qZA())}function z(K,we){if(1&K){const Y=l.EpF();l.TgZ(0,"button",43),l.NdJ("copied",function(Ge){return l.CHM(Y),l.oxw().onCopyPayment(Ge)}),l._uU(1,"Copy Invoice"),l.qZA()}if(2&K){const Y=l.oxw();l.Q6J("payload",null==Y.invoice?null:Y.invoice.serialized)}}function be(K,we){if(1&K){const Y=l.EpF();l.TgZ(0,"button",44),l.NdJ("click",function(){return l.CHM(Y),l.oxw().onClose()}),l._uU(1,"OK"),l.qZA()}}const xe=function(K){return{"display-none":K}},Re=function(K){return{"xs-scroll-y":K}},ze=function(K,we){return{"mt-2":K,"mt-1":we}};let Le=(()=>{class K{constructor(Y,ae,Ge,vt,Fe,Ne){this.dialogRef=Y,this.data=ae,this.logger=Ge,this.commonService=vt,this.snackBar=Fe,this.store=Ne,this.faReceipt=t.dLy,this.faExclamationTriangle=t.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.cu,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new v.x,new v.x,new v.x,new v.x,new v.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.cu.XS&&(this.qrWidth=220),this.store.select(M.yD).pipe((0,C.R)(this.unSubs[0])).subscribe(Y=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(Y.version,"0.5.0")}),this.store.select(M.Ef).pipe((0,C.R)(this.unSubs[1])).subscribe(Y=>{const ae=this.invoice.status;this.invoice=(Y.invoices&&Y.invoices.length>0?Y.invoices:[]).find(vt=>vt.paymentHash===this.invoice.paymentHash),ae!==this.invoice.status&&"received"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(Y)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(Y){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+Y)}ngOnDestroy(){this.unSubs.forEach(Y=>{Y.next(null),Y.complete()})}}return K.\u0275fac=function(Y){return new(Y||K)(l.Y36(e.so),l.Y36(e.WI),l.Y36(R.mQ),l.Y36(s.v),l.Y36(L.ux),l.Y36(O.yh))},K.\u0275cmp=l.Xpm({type:K,selectors:[["rtl-ecl-invoice-information"]],decls:68,vars:42,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",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","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"],["hideAdvancedText",""],["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"],[3,"value","size","errorCorrectionLevel"],[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,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(Y,ae){if(1&Y&&(l.TgZ(0,"div",0),l.TgZ(1,"div",1),l.YNc(2,re,1,3,"qr-code",2),l.YNc(3,de,2,0,"span",3),l.qZA(),l.TgZ(4,"div",4),l.TgZ(5,"mat-card-header",5),l.TgZ(6,"div",6),l._UZ(7,"fa-icon",7),l.TgZ(8,"span",8),l._uU(9),l.qZA(),l.qZA(),l.TgZ(10,"button",9),l.NdJ("click",function(){return ae.onClose()}),l._uU(11,"X"),l.qZA(),l.qZA(),l.TgZ(12,"mat-card-content",10),l.TgZ(13,"div",11),l.TgZ(14,"div",12),l.YNc(15,le,1,3,"qr-code",2),l.YNc(16,se,2,0,"span",13),l.qZA(),l.YNc(17,y,1,1,"mat-divider",14),l.TgZ(18,"div",15),l.TgZ(19,"div",16),l.TgZ(20,"h4",17),l._uU(21,"Amount Requested"),l.qZA(),l.TgZ(22,"span",18),l._uU(23),l.ALo(24,"number"),l.YNc(25,i,2,0,"ng-container",19),l.qZA(),l.qZA(),l.TgZ(26,"div",16),l.TgZ(27,"h4",17),l._uU(28,"Amount Settled"),l.qZA(),l.TgZ(29,"span",18),l.YNc(30,D,3,2,"ng-container",19),l.YNc(31,r,3,2,"ng-container",19),l.qZA(),l.qZA(),l.qZA(),l._UZ(32,"mat-divider",20),l.TgZ(33,"div",15),l.TgZ(34,"div",16),l.TgZ(35,"h4",17),l._uU(36,"Date Created"),l.qZA(),l.TgZ(37,"span",21),l._uU(38),l.ALo(39,"date"),l.qZA(),l.qZA(),l.TgZ(40,"div",16),l.TgZ(41,"h4",17),l._uU(42,"Status"),l.qZA(),l.TgZ(43,"span",21),l._uU(44),l.ALo(45,"titlecase"),l.qZA(),l.qZA(),l.qZA(),l._UZ(46,"mat-divider",20),l.TgZ(47,"div",15),l.TgZ(48,"div",22),l.TgZ(49,"h4",17),l._uU(50,"Description"),l.qZA(),l.TgZ(51,"span",18),l._uU(52),l.qZA(),l.qZA(),l.qZA(),l._UZ(53,"mat-divider",20),l.TgZ(54,"div",15),l.TgZ(55,"div",22),l.TgZ(56,"h4",17),l._uU(57,"Invoice"),l.qZA(),l.TgZ(58,"span",21),l._uU(59),l.qZA(),l.qZA(),l.qZA(),l.YNc(60,b,30,10,"div",19),l.TgZ(61,"div",23),l.TgZ(62,"button",24),l.NdJ("click",function(){return ae.onShowAdvanced()}),l.YNc(63,U,2,0,"p",25),l.YNc(64,N,2,0,"ng-template",null,26,l.W1O),l.qZA(),l.YNc(66,z,2,1,"button",27),l.YNc(67,be,2,0,"button",28),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.qZA()),2&Y){const Ge=l.MAs(65);l.xp6(1),l.Q6J("fxLayoutAlign",null!=ae.invoice&&ae.invoice.serialized&&""!==(null==ae.invoice?null:ae.invoice.serialized)?"center start":"center center")("ngClass",l.VKq(33,xe,ae.screenSize===ae.screenSizeEnum.XS||ae.screenSize===ae.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==ae.invoice?null:ae.invoice.serialized)&&""!==(null==ae.invoice?null:ae.invoice.serialized)),l.xp6(1),l.Q6J("ngIf",!(null!=ae.invoice&&ae.invoice.serialized)||""===(null==ae.invoice?null:ae.invoice.serialized)),l.xp6(4),l.Q6J("icon",ae.faReceipt),l.xp6(2),l.Oqu(ae.screenSize===ae.screenSizeEnum.XS?ae.newlyAdded?"Created":"Invoice":ae.newlyAdded?"Invoice Created":"Invoice Information"),l.xp6(3),l.Q6J("ngClass",l.VKq(35,Re,ae.screenSize===ae.screenSizeEnum.XS)),l.xp6(2),l.Q6J("fxLayoutAlign",null!=ae.invoice&&ae.invoice.serialized&&""!==(null==ae.invoice?null:ae.invoice.serialized)?"center start":"center center")("ngClass",l.VKq(37,xe,ae.screenSize!==ae.screenSizeEnum.XS&&ae.screenSize!==ae.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==ae.invoice?null:ae.invoice.serialized)&&""!==(null==ae.invoice?null:ae.invoice.serialized)),l.xp6(1),l.Q6J("ngIf",!(null!=ae.invoice&&ae.invoice.serialized)||""===(null==ae.invoice?null:ae.invoice.serialized)),l.xp6(1),l.Q6J("ngIf",ae.screenSize===ae.screenSizeEnum.XS||ae.screenSize===ae.screenSizeEnum.SM),l.xp6(6),l.hij("",l.lcZ(24,26,(null==ae.invoice?null:ae.invoice.amount)||0)," Sats"),l.xp6(2),l.Q6J("ngIf",!(null!=ae.invoice&&ae.invoice.amount)||"0"===(null==ae.invoice?null:ae.invoice.amount)),l.xp6(5),l.Q6J("ngIf",null==ae.invoice?null:ae.invoice.amountSettled),l.xp6(1),l.Q6J("ngIf",!(null!=ae.invoice&&ae.invoice.amountSettled)),l.xp6(7),l.Oqu(l.xi3(39,28,1e3*(null==ae.invoice?null:ae.invoice.timestamp),"dd/MMM/y HH:mm")),l.xp6(6),l.Oqu(l.lcZ(45,31,null==ae.invoice?null:ae.invoice.status)),l.xp6(8),l.Oqu((null==ae.invoice?null:ae.invoice.description)||"-"),l.xp6(7),l.Oqu((null==ae.invoice?null:ae.invoice.serialized)||"N/A"),l.xp6(1),l.Q6J("ngIf",ae.showAdvanced),l.xp6(1),l.Q6J("ngClass",l.WLB(39,ze,!ae.showAdvanced,ae.showAdvanced)),l.xp6(2),l.Q6J("ngIf",!ae.showAdvanced)("ngIfElse",Ge),l.xp6(3),l.Q6J("ngIf",(null==ae.invoice?null:ae.invoice.serialized)&&""!==(null==ae.invoice?null:ae.invoice.serialized)),l.xp6(1),l.Q6J("ngIf",!(null!=ae.invoice&&ae.invoice.serialized)||""===(null==ae.invoice?null:ae.invoice.serialized))}},directives:[A.xw,A.Wh,A.yH,E.mk,P.oO,E.O5,w.dk,Z.BN,j.lW,w.dn,W.d,ie.uU,E.sg,ee.$g,ve.h,he.y],pipes:[E.JJ,E.uU,E.rS],styles:[""]}),K})()},6523:(Ve,Q,m)=>{"use strict";m.d(Q,{PC:()=>v,Ll:()=>C,JT:()=>o,sQ:()=>M,CX:()=>l,$W:()=>R,Z8:()=>s,El:()=>L,z:()=>A,EK:()=>E,Rd:()=>P,YP:()=>Z,SN:()=>j,RX:()=>W,Bl:()=>ie,Jl:()=>ee,Rv:()=>ve,ks:()=>he,UR:()=>re,as:()=>de,Z7:()=>le,TW:()=>se,Zh:()=>y,_L:()=>i,pW:()=>a,YX:()=>p,BL:()=>u,OG:()=>_,Vv:()=>D,Cp:()=>I,tb:()=>b,B_:()=>U,vV:()=>N,WM:()=>be,Nr:()=>xe,aL:()=>Re,qY:()=>ze,mC:()=>Le,Lf:()=>K,Ly:()=>we,UH:()=>Y,cQ:()=>ae,HI:()=>Ge,oV:()=>vt,dV:()=>Ne,_E:()=>Oe,Wi:()=>q,fu:()=>ce,y2:()=>Ue,xG:()=>nt,Sf:()=>ft,$A:()=>it,n7:()=>rt,yZ:()=>Mt,u0:()=>Ft,QJ:()=>Vt,WO:()=>Ii,kL:()=>jt,Jo:()=>ei,Fr:()=>ki});var e=m(5620),t=m(7731);const v=(0,e.PH)(t.uR.UPDATE_API_CALL_STATUS_LND,(0,e.Ky)()),C=(0,e.PH)(t.uR.RESET_LND_STORE,(0,e.Ky)()),o=(0,e.PH)(t.uR.SET_CHILD_NODE_SETTINGS_LND,(0,e.Ky)()),M=(0,e.PH)(t.uR.FETCH_INFO_LND,(0,e.Ky)()),l=(0,e.PH)(t.uR.SET_INFO_LND,(0,e.Ky)()),R=(0,e.PH)(t.uR.FETCH_PEERS_LND),s=(0,e.PH)(t.uR.SET_PEERS_LND,(0,e.Ky)()),L=(0,e.PH)(t.uR.SAVE_NEW_PEER_LND,(0,e.Ky)()),A=((0,e.PH)(t.uR.NEWLY_ADDED_PEER_LND,(0,e.Ky)()),(0,e.PH)(t.uR.DETACH_PEER_LND,(0,e.Ky)())),E=(0,e.PH)(t.uR.REMOVE_PEER_LND,(0,e.Ky)()),P=(0,e.PH)(t.uR.SAVE_NEW_INVOICE_LND,(0,e.Ky)()),Z=((0,e.PH)(t.uR.NEWLY_SAVED_INVOICE_LND,(0,e.Ky)()),(0,e.PH)(t.uR.ADD_INVOICE_LND,(0,e.Ky)())),j=(0,e.PH)(t.uR.FETCH_FEES_LND),W=(0,e.PH)(t.uR.SET_FEES_LND,(0,e.Ky)()),ie=(0,e.PH)(t.uR.FETCH_BLOCKCHAIN_BALANCE_LND),ee=(0,e.PH)(t.uR.SET_BLOCKCHAIN_BALANCE_LND,(0,e.Ky)()),ve=(0,e.PH)(t.uR.FETCH_NETWORK_LND),he=(0,e.PH)(t.uR.SET_NETWORK_LND,(0,e.Ky)()),re=(0,e.PH)(t.uR.FETCH_CHANNELS_LND),de=(0,e.PH)(t.uR.SET_CHANNELS_LND,(0,e.Ky)()),le=(0,e.PH)(t.uR.FETCH_PENDING_CHANNELS_LND),se=(0,e.PH)(t.uR.SET_PENDING_CHANNELS_LND,(0,e.Ky)()),y=(0,e.PH)(t.uR.FETCH_CLOSED_CHANNELS_LND),i=(0,e.PH)(t.uR.SET_CLOSED_CHANNELS_LND,(0,e.Ky)()),a=(0,e.PH)(t.uR.UPDATE_CHANNEL_LND,(0,e.Ky)()),p=(0,e.PH)(t.uR.SAVE_NEW_CHANNEL_LND,(0,e.Ky)()),u=(0,e.PH)(t.uR.CLOSE_CHANNEL_LND,(0,e.Ky)()),_=(0,e.PH)(t.uR.REMOVE_CHANNEL_LND,(0,e.Ky)()),D=(0,e.PH)(t.uR.BACKUP_CHANNELS_LND,(0,e.Ky)()),I=(0,e.PH)(t.uR.VERIFY_CHANNEL_LND,(0,e.Ky)()),b=((0,e.PH)(t.uR.BACKUP_CHANNELS_RES_LND,(0,e.Ky)()),(0,e.PH)(t.uR.VERIFY_CHANNEL_RES_LND,(0,e.Ky)()),(0,e.PH)(t.uR.RESTORE_CHANNELS_LIST_LND)),U=(0,e.PH)(t.uR.SET_RESTORE_CHANNELS_LIST_LND,(0,e.Ky)()),N=(0,e.PH)(t.uR.RESTORE_CHANNELS_LND,(0,e.Ky)()),be=((0,e.PH)(t.uR.RESTORE_CHANNELS_RES_LND,(0,e.Ky)()),(0,e.PH)(t.uR.FETCH_INVOICES_LND,(0,e.Ky)())),xe=(0,e.PH)(t.uR.SET_INVOICES_LND,(0,e.Ky)()),Re=(0,e.PH)(t.uR.UPDATE_INVOICE_LND,(0,e.Ky)()),ze=(0,e.PH)(t.uR.UPDATE_PAYMENT_LND,(0,e.Ky)()),Le=(0,e.PH)(t.uR.FETCH_TRANSACTIONS_LND),K=(0,e.PH)(t.uR.SET_TRANSACTIONS_LND,(0,e.Ky)()),we=(0,e.PH)(t.uR.FETCH_UTXOS_LND),Y=(0,e.PH)(t.uR.SET_UTXOS_LND,(0,e.Ky)()),ae=(0,e.PH)(t.uR.FETCH_PAYMENTS_LND,(0,e.Ky)()),Ge=(0,e.PH)(t.uR.SET_PAYMENTS_LND,(0,e.Ky)()),vt=(0,e.PH)(t.uR.SEND_PAYMENT_LND,(0,e.Ky)()),Ne=((0,e.PH)(t.uR.SEND_PAYMENT_STATUS_LND,(0,e.Ky)()),(0,e.PH)(t.uR.FETCH_GRAPH_NODE_LND,(0,e.Ky)())),Oe=((0,e.PH)(t.uR.SET_GRAPH_NODE_LND,(0,e.Ky)()),(0,e.PH)(t.uR.GET_NEW_ADDRESS_LND,(0,e.Ky)())),q=((0,e.PH)(t.uR.SET_NEW_ADDRESS_LND,(0,e.Ky)()),(0,e.PH)(t.uR.SET_CHANNEL_TRANSACTION_LND,(0,e.Ky)())),ce=((0,e.PH)(t.uR.SET_CHANNEL_TRANSACTION_RES_LND,(0,e.Ky)()),(0,e.PH)(t.uR.GEN_SEED_LND,(0,e.Ky)())),Ue=((0,e.PH)(t.uR.GEN_SEED_RESPONSE_LND,(0,e.Ky)()),(0,e.PH)(t.uR.INIT_WALLET_LND,(0,e.Ky)())),nt=((0,e.PH)(t.uR.INIT_WALLET_RESPONSE_LND,(0,e.Ky)()),(0,e.PH)(t.uR.UNLOCK_WALLET_LND,(0,e.Ky)())),ft=(0,e.PH)(t.uR.PEER_LOOKUP_LND,(0,e.Ky)()),it=(0,e.PH)(t.uR.CHANNEL_LOOKUP_LND,(0,e.Ky)()),rt=(0,e.PH)(t.uR.INVOICE_LOOKUP_LND,(0,e.Ky)()),Mt=(0,e.PH)(t.uR.PAYMENT_LOOKUP_LND,(0,e.Ky)()),Ft=((0,e.PH)(t.uR.SET_LOOKUP_LND,(0,e.Ky)()),(0,e.PH)(t.uR.GET_FORWARDING_HISTORY_LND,(0,e.Ky)())),Vt=(0,e.PH)(t.uR.SET_FORWARDING_HISTORY_LND,(0,e.Ky)()),Ii=(0,e.PH)(t.uR.GET_QUERY_ROUTES_LND,(0,e.Ky)()),jt=(0,e.PH)(t.uR.SET_QUERY_ROUTES_LND,(0,e.Ky)()),ei=(0,e.PH)(t.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),ki=(0,e.PH)(t.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,(0,e.Ky)())},711:(Ve,Q,m)=>{"use strict";m.d(Q,{l:()=>se});var e=m(6642),t=m(7579),v=m(9646),C=m(5577),o=m(2722),M=m(4004),l=m(262),R=m(1365),s=m(2340),L=m(8627),O=m(1786),A=m(7731),E=m(7861),P=m(6523),w=m(6529),Z=m(5e3),j=m(8138),W=m(5620),ie=m(5043),ee=m(62),ve=m(5986),he=m(8966),re=m(1402),de=m(7998),le=m(9808);let se=(()=>{class y{constructor(a,p,u,_,D,I,x,r,b,U){this.actions=a,this.httpClient=p,this.store=u,this.logger=_,this.commonService=D,this.sessionService=I,this.dialog=x,this.router=r,this.wsService=b,this.location=U,this.CHILD_API_URL=s.T5+"/lnd",this.flgInitialized=!1,this.unSubs=[new t.x,new t.x],this.infoFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_INFO_LND),(0,C.z)(N=>(this.flgInitialized=!1,this.store.dispatch((0,E.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.ac)({payload:A.m6.GET_NODE_INFO})),this.store.dispatch((0,P.PC)({payload:{action:"FetchInfo",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.GETINFO_API).pipe((0,o.R)(this.actions.pipe((0,e.l4)(A.pg.SET_SELECTED_NODE))),(0,M.U)(z=>(this.logger.info(z),z.chains&&z.chains.length&&z.chains[0]&&("string"==typeof z.chains[0]&&z.chains[0].toLowerCase().indexOf("bitcoin")<0||"object"==typeof z.chains[0]&&z.chains[0].hasOwnProperty("chain")&&z.chains[0].chain.toLowerCase().indexOf("bitcoin")<0)?(this.store.dispatch((0,P.PC)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.qR)({payload:{data:{type:A.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:A.pg.LOGOUT}):z.identity_pubkey?(z.lnImplementation="LND",this.initializeRemainingData(z,N.payload.loadPage),this.store.dispatch((0,P.PC)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.ts)()),{type:A.uR.SET_INFO_LND,payload:z||{}}):(this.store.dispatch((0,P.PC)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.ts)()),this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),{type:A.uR.SET_INFO_LND,payload:{}}))),(0,l.K)(z=>{if("string"==typeof z.error.error&&z.error.error.includes("Not Found")||"string"==typeof z.error.error&&z.error.error.includes("wallet locked")||502===z.status&&!z.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",A.m6.GET_NODE_INFO,"Fetching Node Info Failed.",z);else if("string"==typeof z.error.error&&z.error.error.includes("starting up")&&500===z.status)setTimeout(()=>{this.store.dispatch((0,P.sQ)({payload:{loadPage:"HOME"}}))},2e3);else{const be=this.commonService.extractErrorCode(z),xe=503===be?"Unable to Connect to LND Server.":this.commonService.extractErrorMessage(z);this.router.navigate(["/error"],{state:{errorCode:be,errorMessage:xe}}),this.handleErrorWithoutAlert("FetchInfo",A.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:be,error:xe})}return(0,v.of)({type:A.pg.VOID})})))))),this.peersFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_PEERS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchPeers",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.PEERS_API).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"FetchPeers",status:A.Bn.COMPLETED}})),{type:A.uR.SET_PEERS_LND,payload:N||[]})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchPeers",A.m6.NO_SPINNER,"Fetching Peers Failed.",N),(0,v.of)({type:A.pg.VOID})))))))),this.saveNewPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SAVE_NEW_PEER_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewPeer",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.PEERS_API,{pubkey:N.payload.pubkey,host:N.payload.host,perm:N.payload.perm}).pipe((0,M.U)(z=>(this.logger.info(z),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewPeer",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,P.Z8)({payload:z||[]})),{type:A.uR.NEWLY_ADDED_PEER_LND,payload:{peer:z[0]}})),(0,l.K)(z=>(this.handleErrorWithoutAlert("SaveNewPeer",A.m6.CONNECT_PEER,"Peer Connection Failed.",z),(0,v.of)({type:A.pg.VOID})))))))),this.detachPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.DETACH_PEER_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+s.NZ.PEERS_API+"/"+N.payload.pubkey).pipe((0,M.U)(z=>(this.logger.info(z),this.store.dispatch((0,E.uO)({payload:A.m6.DISCONNECT_PEER})),this.store.dispatch((0,E.jW)({payload:"Peer Disconnected Successfully."})),{type:A.uR.REMOVE_PEER_LND,payload:{pubkey:N.payload.pubkey}})),(0,l.K)(z=>(this.handleErrorWithAlert("DetachPeer",A.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+s.NZ.PEERS_API+"/"+N.payload.pubkey,z),(0,v.of)({type:A.pg.VOID})))))))),this.saveNewInvoice=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SAVE_NEW_INVOICE_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewInvoice",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.INVOICES_API,{memo:N.payload.memo,amount:N.payload.invoiceValue,private:N.payload.private,expiry:N.payload.expiry}).pipe((0,M.U)(z=>(this.logger.info(z),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewInvoice",status:A.Bn.COMPLETED}})),this.store.dispatch((0,P.WM)({payload:{num_max_invoices:N.payload.pageSize,reversed:!0}})),N.payload.openModal?(z.memo=N.payload.memo,z.value=N.payload.invoiceValue,z.expiry=N.payload.expiry,z.cltv_expiry="144",z.private=N.payload.private,z.creation_date=Math.round((new Date).getTime()/1e3).toString(),setTimeout(()=>{this.store.dispatch((0,E.qR)({payload:{data:{invoice:z,newlyAdded:!0,component:L.v}}}))},100),{type:A.pg.CLOSE_SPINNER,payload:N.payload.uiMessage}):{type:A.uR.NEWLY_SAVED_INVOICE_LND,payload:{paymentRequest:z.payment_request}})),(0,l.K)(z=>(this.handleErrorWithoutAlert("SaveNewInvoice",N.payload.uiMessage,"Add Invoice Failed.",z),(0,v.of)({type:A.pg.VOID})))))))),this.openNewChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SAVE_NEW_CHANNEL_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewChannel",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.CHANNELS_API,{node_pubkey:N.payload.selectedPeerPubkey,local_funding_amount:N.payload.fundingAmount,private:N.payload.private,trans_type:N.payload.transType,trans_type_value:N.payload.transTypeValue,spend_unconfirmed:N.payload.spendUnconfirmed}).pipe((0,M.U)(z=>(this.logger.info(z),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewChannel",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,P.Bl)()),this.store.dispatch((0,P.UR)()),this.store.dispatch((0,P.Vv)({payload:{uiMessage:A.m6.NO_SPINNER,channelPoint:"ALL",showMessage:"Channel Added Successfully!"}})),{type:A.uR.FETCH_PENDING_CHANNELS_LND})),(0,l.K)(z=>(this.handleErrorWithoutAlert("SaveNewChannel",A.m6.OPEN_CHANNEL,"Opening Channel Failed.",z),(0,v.of)({type:A.pg.VOID})))))))),this.updateChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.UPDATE_CHANNEL_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/chanPolicy",{baseFeeMsat:N.payload.baseFeeMsat,feeRate:N.payload.feeRate,timeLockDelta:N.payload.timeLockDelta,chanPoint:N.payload.chanPoint}).pipe((0,M.U)(z=>(this.logger.info(z),this.store.dispatch((0,E.uO)({payload:A.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,E.jW)("all"===N.payload.chanPoint?{payload:"All Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:A.uR.FETCH_CHANNELS_LND})),(0,l.K)(z=>(this.handleErrorWithAlert("UpdateChannels",A.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+s.NZ.CHANNELS_API+"/chanPolicy",z),(0,v.of)({type:A.pg.VOID})))))))),this.closeChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.CLOSE_CHANNEL_LND),(0,C.z)(N=>{this.store.dispatch((0,E.ac)({payload:N.payload.forcibly?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL}));let z=this.CHILD_API_URL+s.NZ.CHANNELS_API+"/"+N.payload.channelPoint+"?force="+N.payload.forcibly;return N.payload.targetConf&&(z=z+"&target_conf="+N.payload.targetConf),N.payload.satPerByte&&(z=z+"&sat_per_byte="+N.payload.satPerByte),this.httpClient.delete(z).pipe((0,M.U)(be=>(this.logger.info(be),this.store.dispatch((0,E.uO)({payload:N.payload.forcibly?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL})),this.store.dispatch((0,P.UR)()),this.store.dispatch((0,P.Z7)()),this.store.dispatch((0,P.Vv)({payload:{uiMessage:A.m6.NO_SPINNER,channelPoint:"ALL",showMessage:be.message}})),{type:A.pg.VOID})),(0,l.K)(be=>(this.handleErrorWithAlert("CloseChannel",N.payload.forcibly?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+s.NZ.CHANNELS_API+"/"+N.payload.channelPoint+"?force="+N.payload.forcibly,be),(0,v.of)({type:A.pg.VOID}))))}))),this.backupChannels=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.BACKUP_CHANNELS_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"BackupChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/"+N.payload.channelPoint).pipe((0,M.U)(z=>(this.logger.info(z),this.store.dispatch((0,P.PC)({payload:{action:"BackupChannels",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,E.jW)({payload:N.payload.showMessage+" "+z.message})),{type:A.uR.BACKUP_CHANNELS_RES_LND,payload:z.message})),(0,l.K)(z=>(this.handleErrorWithAlert("BackupChannels",N.payload.uiMessage,N.payload.showMessage+" Unable to Backup Channel. Try again later.",this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/"+N.payload.channelPoint,z),(0,v.of)({type:A.pg.VOID})))))))),this.verifyChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.VERIFY_CHANNEL_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.VERIFY_CHANNEL})),this.store.dispatch((0,P.PC)({payload:{action:"VerifyChannel",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/verify/"+N.payload.channelPoint,{}).pipe((0,M.U)(z=>(this.logger.info(z),this.store.dispatch((0,P.PC)({payload:{action:"VerifyChannel",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.VERIFY_CHANNEL})),this.store.dispatch((0,E.jW)({payload:z.message})),{type:A.uR.VERIFY_CHANNEL_RES_LND,payload:z.message})),(0,l.K)(z=>(this.handleErrorWithAlert("VerifyChannel",A.m6.VERIFY_CHANNEL,"Unable to Verify Channel. Try again later.",this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/verify/"+N.payload.channelPoint,z),(0,v.of)({type:A.pg.VOID})))))))),this.restoreChannels=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.RESTORE_CHANNELS_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.RESTORE_CHANNEL})),this.store.dispatch((0,P.PC)({payload:{action:"RestoreChannels",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/restore/"+N.payload.channelPoint,{}).pipe((0,M.U)(z=>(this.logger.info(z),this.store.dispatch((0,P.PC)({payload:{action:"RestoreChannels",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.RESTORE_CHANNEL})),this.store.dispatch((0,E.jW)({payload:z.message})),this.store.dispatch((0,P.B_)({payload:z.list})),{type:A.uR.RESTORE_CHANNELS_RES_LND,payload:z.message})),(0,l.K)(z=>(this.handleErrorWithAlert("RestoreChannels",A.m6.RESTORE_CHANNEL,"Unable to Restore Channel. Try again later.",this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/restore/"+N.payload.channelPoint,z),(0,v.of)({type:A.pg.VOID})))))))),this.fetchFees=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_FEES_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchFees",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.FEES_API))),(0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"FetchFees",status:A.Bn.COMPLETED}})),N.forwarding_events_history&&(this.store.dispatch((0,P.QJ)({payload:N.forwarding_events_history})),delete N.forwarding_events_history),{type:A.uR.SET_FEES_LND,payload:N||{}})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchFees",A.m6.NO_SPINNER,"Fetching Fees Failed.",N),(0,v.of)({type:A.pg.VOID}))))),this.balanceBlockchainFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_BLOCKCHAIN_BALANCE_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchBalance",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.BALANCE_API))),(0,M.U)(N=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchBalance",status:A.Bn.COMPLETED}})),this.logger.info(N),{type:A.uR.SET_BLOCKCHAIN_BALANCE_LND,payload:N||{total_balance:""}})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchBalance",A.m6.NO_SPINNER,"Fetching Blockchain Balance Failed.",N),(0,v.of)({type:A.pg.VOID}))))),this.networkInfoFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_NETWORK_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchNetwork",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/info"))),(0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"FetchNetwork",status:A.Bn.COMPLETED}})),{type:A.uR.SET_NETWORK_LND,payload:N||{}})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchNetwork",A.m6.NO_SPINNER,"Fetching Network Failed.",N),(0,v.of)({type:A.pg.VOID}))))),this.channelsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_CHANNELS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_API).pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"FetchChannels",status:A.Bn.COMPLETED}})),{type:A.uR.SET_CHANNELS_LND,payload:N.channels||[]})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchChannels",A.m6.NO_SPINNER,"Fetching Channels Failed.",N),(0,v.of)({type:A.pg.VOID})))))))),this.channelsPendingFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_PENDING_CHANNELS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchPendingChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/pending").pipe((0,M.U)(N=>{this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"FetchPendingChannels",status:A.Bn.COMPLETED}}));const z={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 N&&(z.total_limbo_balance=N.total_limbo_balance,N.pending_closing_channels&&(z.closing.num_channels=N.pending_closing_channels.length,z.total_channels=z.total_channels+N.pending_closing_channels.length,N.pending_closing_channels.forEach(be=>{z.closing.limbo_balance=+z.closing.limbo_balance+(be.channel.local_balance?+be.channel.local_balance:0)})),N.pending_force_closing_channels&&(z.force_closing.num_channels=N.pending_force_closing_channels.length,z.total_channels=z.total_channels+N.pending_force_closing_channels.length,N.pending_force_closing_channels.forEach(be=>{z.force_closing.limbo_balance=+z.force_closing.limbo_balance+(be.channel.local_balance?+be.channel.local_balance:0)})),N.pending_open_channels&&(z.open.num_channels=N.pending_open_channels.length,z.total_channels=z.total_channels+N.pending_open_channels.length,N.pending_open_channels.forEach(be=>{z.open.limbo_balance=+z.open.limbo_balance+(be.channel.local_balance?+be.channel.local_balance:0)})),N.waiting_close_channels&&(z.waiting_close.num_channels=N.waiting_close_channels.length,z.total_channels=z.total_channels+N.waiting_close_channels.length,N.waiting_close_channels.forEach(be=>{z.waiting_close.limbo_balance=+z.waiting_close.limbo_balance+(be.channel.local_balance?+be.channel.local_balance:0)}))),{type:A.uR.SET_PENDING_CHANNELS_LND,payload:N?{pendingChannels:N,pendingChannelsSummary:z}:{pendingChannels:{},pendingChannelsSummary:z}}}),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchPendingChannels",A.m6.NO_SPINNER,"Fetching Pending Channels Failed.",N),(0,v.of)({type:A.pg.VOID})))))))),this.channelsClosedFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_CLOSED_CHANNELS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchClosedChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/closed").pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"FetchClosedChannels",status:A.Bn.COMPLETED}})),{type:A.uR.SET_CLOSED_CHANNELS_LND,payload:N.channels||[]})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchClosedChannels",A.m6.NO_SPINNER,"Fetching Closed Channels Failed.",N),(0,v.of)({type:A.pg.VOID})))))))),this.invoicesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_INVOICES_LND),(0,C.z)(N=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchInvoices",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.INVOICES_API+"?num_max_invoices="+(N.payload.num_max_invoices?N.payload.num_max_invoices:100)+"&index_offset="+(N.payload.index_offset?N.payload.index_offset:0)+"&reversed="+(!!N.payload.reversed&&N.payload.reversed)).pipe((0,M.U)(Re=>(this.logger.info(Re),this.store.dispatch((0,P.PC)({payload:{action:"FetchInvoices",status:A.Bn.COMPLETED}})),N.payload.reversed&&!N.payload.index_offset&&(Re.total_invoices=+Re.last_index_offset),{type:A.uR.SET_INVOICES_LND,payload:Re})),(0,l.K)(Re=>(this.handleErrorWithoutAlert("FetchInvoices",A.m6.NO_SPINNER,"Fetching Invoices Failed.",Re),(0,v.of)({type:A.pg.VOID})))))))),this.transactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_TRANSACTIONS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchTransactions",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.TRANSACTIONS_API))),(0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"FetchTransactions",status:A.Bn.COMPLETED}})),{type:A.uR.SET_TRANSACTIONS_LND,payload:N||[]})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchTransactions",A.m6.NO_SPINNER,"Fetching Transactions Failed.",N),(0,v.of)({type:A.pg.VOID}))))),this.utxosFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_UTXOS_LND),(0,R.M)(this.store.select(w.Q5)),(0,C.z)(([N,z])=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchUTXOs",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.WALLET_API+"/getUTXOs?max_confs="+(z&&z.block_height?z.block_height:1e9)))),(0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"FetchUTXOs",status:A.Bn.COMPLETED}})),{type:A.uR.SET_UTXOS_LND,payload:N||[]})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchUTXOs",A.m6.NO_SPINNER,"Fetching UTXOs Failed.",N),(0,v.of)({type:A.pg.VOID}))))),this.paymentsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_PAYMENTS_LND),(0,C.z)(N=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchPayments",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.PAYMENTS_API+"?max_payments="+(N.payload.max_payments?N.payload.max_payments:100)+"&index_offset="+(N.payload.index_offset?N.payload.index_offset:0)+"&reversed="+(!!N.payload.reversed&&N.payload.reversed)).pipe((0,M.U)(Re=>(this.logger.info(Re),this.store.dispatch((0,P.PC)({payload:{action:"FetchPayments",status:A.Bn.COMPLETED}})),{type:A.uR.SET_PAYMENTS_LND,payload:Re})),(0,l.K)(Re=>(this.handleErrorWithoutAlert("FetchPayments",A.m6.NO_SPINNER,"Fetching Payments Failed.",Re),(0,v.of)({type:A.uR.SET_PAYMENTS_LND,payload:{payments:[]}})))))))),this.sendPayment=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SEND_PAYMENT_LND),(0,C.z)(N=>{this.store.dispatch((0,E.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"SendPayment",status:A.Bn.INITIATED}}));const z={};return z.paymentReq=N.payload.paymentReq,N.payload.paymentAmount&&(z.paymentAmount=N.payload.paymentAmount),N.payload.outgoingChannel&&(z.outgoingChannel=N.payload.outgoingChannel.chan_id),N.payload.allowSelfPayment&&(z.allowSelfPayment=N.payload.allowSelfPayment),N.payload.lastHopPubkey&&(z.lastHopPubkey=N.payload.lastHopPubkey),N.payload.feeLimitType&&N.payload.feeLimitType!==A.Vc[0].id&&(z.feeLimit={},z.feeLimit[N.payload.feeLimitType]=N.payload.feeLimit),this.httpClient.post(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/transactions",z).pipe((0,M.U)(be=>{if(this.logger.info(be),this.store.dispatch((0,E.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"SendPayment",status:A.Bn.COMPLETED}})),be.payment_error)return N.payload.allowSelfPayment?(this.store.dispatch((0,P.WM)({payload:{num_max_invoices:A.IV,reversed:!0}})),{type:A.uR.SEND_PAYMENT_STATUS_LND,payload:be}):(N.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed.",be.payment_error):this.handleErrorWithAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+s.NZ.CHANNELS_API+"/transactions",be.payment_error),{type:A.pg.VOID});if(this.store.dispatch((0,E.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"SendPayment",status:A.Bn.COMPLETED}})),this.store.dispatch((0,P.UR)()),this.store.dispatch((0,P.cQ)({payload:{max_payments:A.IV,reversed:!0}})),N.payload.allowSelfPayment)this.store.dispatch((0,P.WM)({payload:{num_max_invoices:A.IV,reversed:!0}}));else{let xe="Payment Sent Successfully.";be.payment_route&&be.payment_route.total_fees_msat&&(xe="Payment sent successfully with the total fee "+be.payment_route.total_fees_msat+" (mSats)."),this.store.dispatch((0,E.jW)({payload:xe}))}return{type:A.uR.SEND_PAYMENT_STATUS_LND,payload:be}}),(0,l.K)(be=>(this.logger.error("Error: "+JSON.stringify(be)),N.payload.allowSelfPayment?(this.handleErrorWithoutAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed.",be),this.store.dispatch((0,P.WM)({payload:{num_max_invoices:A.IV,reversed:!0}})),(0,v.of)({type:A.uR.SEND_PAYMENT_STATUS_LND,payload:{error:this.commonService.extractErrorMessage(be)}})):(N.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed.",be):this.handleErrorWithAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+s.NZ.CHANNELS_API+"/transactions",be),(0,v.of)({type:A.pg.VOID})))))}))),this.graphNodeFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_GRAPH_NODE_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,P.PC)({payload:{action:"FetchGraphNode",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/node/"+N.payload.pubkey).pipe((0,M.U)(z=>(this.logger.info(z),this.store.dispatch((0,E.uO)({payload:A.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,P.PC)({payload:{action:"FetchGraphNode",status:A.Bn.COMPLETED}})),{type:A.uR.SET_GRAPH_NODE_LND,payload:z&&z.node?{node:z.node}:{node:null}})),(0,l.K)(z=>(this.handleErrorWithoutAlert("FetchGraphNode",A.m6.GET_NODE_ADDRESS,"Fetching Graph Node Failed.",z),(0,v.of)({type:A.pg.VOID})))))))),this.setGraphNode=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_GRAPH_NODE_LND),(0,M.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.getNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GET_NEW_ADDRESS_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NEW_ADDRESS_API+"?type="+N.payload.addressId).pipe((0,M.U)(z=>(this.logger.info(z),this.store.dispatch((0,E.uO)({payload:A.m6.GENERATE_NEW_ADDRESS})),{type:A.uR.SET_NEW_ADDRESS_LND,payload:z&&z.address?z.address:{}})),(0,l.K)(z=>(this.handleErrorWithAlert("GetNewAddress",A.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+s.NZ.NEW_ADDRESS_API+"?type="+N.payload.addressId,z),(0,v.of)({type:A.pg.VOID})))))))),this.setNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_NEW_ADDRESS_LND),(0,M.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.SetChannelTransaction=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_CHANNEL_TRANSACTION_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,P.PC)({payload:{action:"SetChannelTransaction",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.TRANSACTIONS_API,{amount:N.payload.amount,address:N.payload.address,sendAll:N.payload.sendAll,fees:N.payload.fees,blocks:N.payload.blocks}).pipe((0,M.U)(z=>(this.logger.info(z),this.store.dispatch((0,P.PC)({payload:{action:"SetChannelTransaction",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,P.mC)()),this.store.dispatch((0,P.Bl)()),this.store.dispatch((0,P.UR)()),{type:A.uR.SET_CHANNEL_TRANSACTION_RES_LND,payload:z})),(0,l.K)(z=>(this.handleErrorWithoutAlert("SetChannelTransaction",A.m6.SEND_FUNDS,"Sending Fund Failed.",z),(0,v.of)({type:A.pg.VOID})))))))),this.fetchForwardingHistory=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GET_FORWARDING_HISTORY_LND),(0,C.z)(N=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchForwardingHistory",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.SWITCH_API,{num_max_events:N.payload.num_max_events,index_offset:N.payload.index_offset,end_time:N.payload.end_time,start_time:N.payload.start_time}).pipe((0,M.U)(be=>(this.logger.info(be),this.store.dispatch((0,P.PC)({payload:{action:"FetchForwardingHistory",status:A.Bn.COMPLETED}})),{type:A.uR.SET_FORWARDING_HISTORY_LND,payload:be})),(0,l.K)(be=>(this.handleErrorWithAlert("FetchForwardingHistory",A.m6.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+s.NZ.SWITCH_API,be),(0,v.of)({type:A.pg.VOID})))))))),this.queryRoutesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GET_QUERY_ROUTES_LND),(0,C.z)(N=>{let z=this.CHILD_API_URL+s.NZ.NETWORK_API+"/routes/"+N.payload.destPubkey+"/"+N.payload.amount;return N.payload.outgoingChanId&&(z=z+"?outgoing_chan_id="+N.payload.outgoingChanId),this.httpClient.get(z).pipe((0,M.U)(be=>(this.logger.info(be),{type:A.uR.SET_QUERY_ROUTES_LND,payload:be})),(0,l.K)(be=>(this.store.dispatch((0,P.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",A.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+s.NZ.NETWORK_API,be),(0,v.of)({type:A.pg.VOID}))))}))),this.setQueryRoutes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_QUERY_ROUTES_LND),(0,M.U)(N=>N.payload)),{dispatch:!1}),this.genSeed=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GEN_SEED_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.GEN_SEED})),this.httpClient.get(this.CHILD_API_URL+s.NZ.WALLET_API+"/genseed/"+N.payload).pipe((0,M.U)(z=>(this.logger.info("Generated GenSeed!"),this.logger.info(z),this.store.dispatch((0,E.uO)({payload:A.m6.GEN_SEED})),{type:A.uR.GEN_SEED_RESPONSE_LND,payload:z.cipher_seed_mnemonic})),(0,l.K)(z=>(this.handleErrorWithAlert("GenSeed",A.m6.GEN_SEED,"Genseed Generation Failed",this.CHILD_API_URL+s.NZ.WALLET_API+"/genseed/"+N.payload,z),(0,v.of)({type:A.pg.VOID})))))))),this.updateSelNodeOptions=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.pg.UPDATE_SELECTED_NODE_OPTIONS),(0,C.z)(()=>this.httpClient.get(this.CHILD_API_URL+s.NZ.WALLET_API+"/updateSelNodeOptions").pipe((0,M.U)(N=>(this.logger.info("Update Sel Node Successfull"),this.logger.info(N),{type:A.pg.VOID})),(0,l.K)(N=>(this.handleErrorWithAlert("UpdateSelectedNodeOptions",A.m6.NO_SPINNER,"Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",N),(0,v.of)({type:A.pg.VOID}))))))),this.genSeedResponse=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GEN_SEED_RESPONSE_LND),(0,M.U)(N=>N.payload)),{dispatch:!1}),this.initWalletRes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.INIT_WALLET_RESPONSE_LND),(0,M.U)(N=>N.payload)),{dispatch:!1}),this.initWallet=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.INIT_WALLET_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.INITIALIZE_WALLET})),this.httpClient.post(this.CHILD_API_URL+s.NZ.WALLET_API+"/wallet/initwallet",{wallet_password:N.payload.pwd,cipher_seed_mnemonic:N.payload.cipher?N.payload.cipher:"",aezeed_passphrase:N.payload.passphrase?N.payload.passphrase:""}).pipe((0,M.U)(z=>(this.logger.info(z),this.store.dispatch((0,E.uO)({payload:A.m6.INITIALIZE_WALLET})),{type:A.uR.INIT_WALLET_RESPONSE_LND,payload:z})),(0,l.K)(z=>(this.handleErrorWithAlert("InitWallet",A.m6.INITIALIZE_WALLET,"Wallet Initialization Failed",this.CHILD_API_URL+s.NZ.WALLET_API+"/initwallet",z),(0,v.of)({type:A.pg.VOID})))))))),this.unlockWallet=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.UNLOCK_WALLET_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.UNLOCK_WALLET})),this.httpClient.post(this.CHILD_API_URL+s.NZ.WALLET_API+"/wallet/unlockwallet",{wallet_password:N.payload.pwd}).pipe((0,M.U)(z=>(this.logger.info(z),this.logger.info("Successfully Unlocked!"),this.sessionService.setItem("lndUnlocked","true"),this.store.dispatch((0,E.uO)({payload:A.m6.UNLOCK_WALLET})),this.store.dispatch((0,E.ac)({payload:A.m6.WAIT_SYNC_NODE})),setTimeout(()=>{this.store.dispatch((0,E.uO)({payload:A.m6.WAIT_SYNC_NODE})),this.store.dispatch((0,P.sQ)({payload:{loadPage:"HOME"}}))},5e3),{type:A.pg.VOID})),(0,l.K)(z=>(this.handleErrorWithAlert("UnlockWallet",A.m6.UNLOCK_WALLET,"Unlock Wallet Failed",this.CHILD_API_URL+s.NZ.WALLET_API+"/unlockwallet",z),(0,v.of)({type:A.pg.VOID}))))))),{dispatch:!1}),this.peerLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.PEER_LOOKUP_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEARCHING_NODE})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/node/"+N.payload).pipe((0,M.U)(z=>(this.logger.info(z),this.store.dispatch((0,E.uO)({payload:A.m6.SEARCHING_NODE})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),{type:A.uR.SET_LOOKUP_LND,payload:z})),(0,l.K)(z=>(this.handleErrorWithAlert("Lookup",A.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+s.NZ.NETWORK_API+"/node/"+N.payload,z),(0,v.of)({type:A.pg.VOID})))))))),this.channelLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.CHANNEL_LOOKUP_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/edge/"+N.payload.channelID).pipe((0,M.U)(z=>(this.logger.info(z),this.store.dispatch((0,E.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),{type:A.uR.SET_LOOKUP_LND,payload:z})),(0,l.K)(z=>(this.handleErrorWithAlert("Lookup",N.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+s.NZ.NETWORK_API+"/edge/"+N.payload.channelID,z),(0,v.of)({type:A.pg.VOID})))))))),this.invoiceLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.INVOICE_LOOKUP_LND),(0,C.z)(N=>{this.store.dispatch((0,E.ac)({payload:A.m6.SEARCHING_INVOICE})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.INITIATED}}));let z=this.CHILD_API_URL+s.NZ.INVOICES_API+"/lookup";return z=N.payload.paymentAddress&&""!==N.payload.paymentAddress?z+"?payment_addr="+N.payload.paymentAddress:z+"?payment_hash="+N.payload.paymentHash,this.httpClient.get(z).pipe((0,M.U)(be=>(this.logger.info(be),this.store.dispatch((0,E.uO)({payload:A.m6.SEARCHING_INVOICE})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,P.aL)({payload:be})),{type:A.uR.SET_LOOKUP_LND,payload:be})),(0,l.K)(be=>(this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",A.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",be),N.payload.openSnackBar&&this.store.dispatch((0,E.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,v.of)({type:A.uR.SET_LOOKUP_LND,payload:{error:be}}))))}))),this.paymentLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.PAYMENT_LOOKUP_LND),(0,C.z)(N=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.PAYMENTS_API+"/lookup/"+N.payload).pipe((0,M.U)(z=>(this.logger.info(z),this.store.dispatch((0,E.uO)({payload:A.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,P.qY)({payload:z})),{type:A.uR.SET_LOOKUP_LND,payload:z})),(0,l.K)(z=>(this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:A.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",A.m6.SEARCHING_PAYMENT,"Payment Lookup Failed",z),(0,v.of)({type:A.uR.SET_LOOKUP_LND,payload:{error:z}})))))))),this.setLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_LOOKUP_LND),(0,M.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.getRestoreChannelList=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.RESTORE_CHANNELS_LIST_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"RestoreChannelsList",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/restore/list").pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"RestoreChannelsList",status:A.Bn.COMPLETED}})),{type:A.uR.SET_RESTORE_CHANNELS_LIST_LND,payload:N||{all_restore_exists:!1,files:[]}})),(0,l.K)(N=>(this.handleErrorWithAlert("RestoreChannelsList",A.m6.NO_SPINNER,"Restore Channels List Failed",this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API,N),(0,v.of)({type:A.pg.VOID})))))))),this.setRestoreChannelList=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_RESTORE_CHANNELS_LIST_LND),(0,M.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.allLightningTransactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchLightningTransactions",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.PAYMENTS_API+"/alltransactions").pipe((0,M.U)(N=>(this.logger.info(N),this.store.dispatch((0,P.PC)({payload:{action:"FetchLightningTransactions",status:A.Bn.COMPLETED}})),{type:A.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,payload:N})),(0,l.K)(N=>(this.handleErrorWithoutAlert("FetchLightningTransactions",A.m6.NO_SPINNER,"Fetching All Lightning Transaction Failed.",N),(0,v.of)({type:A.pg.VOID})))))))),this.store.select(w.yA).pipe((0,o.R)(this.unSubs[0])).subscribe(N=>{N.FetchInfo.status!==A.Bn.COMPLETED&&N.FetchInfo.status!==A.Bn.ERROR||N.FetchFees.status!==A.Bn.COMPLETED&&N.FetchFees.status!==A.Bn.ERROR||N.FetchBalanceBlockchain.status!==A.Bn.COMPLETED&&N.FetchBalanceBlockchain.status!==A.Bn.ERROR||N.FetchAllChannels.status!==A.Bn.COMPLETED&&N.FetchAllChannels.status!==A.Bn.ERROR||N.FetchPendingChannels.status!==A.Bn.COMPLETED&&N.FetchPendingChannels.status!==A.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,E.uO)({payload:A.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.lndWSMessages.pipe((0,o.R)(this.unSubs[1])).subscribe(N=>{this.logger.info("Received new message from the service: "+JSON.stringify(N)),N&&(N.type===A.g8.INVOICE?(this.logger.info(N),N&&N.result&&N.result.payment_request&&this.store.dispatch((0,P.aL)({payload:N.result}))):this.logger.info("Received Event from WS: "+JSON.stringify(N)))})}initializeRemainingData(a,p){this.sessionService.setItem("lndUnlocked","true");const u={identity_pubkey:a.identity_pubkey,alias:a.alias,testnet:a.testnet,chains:a.chains,uris:a.uris,version:a.version?a.version.split(" ")[0]:""};this.store.dispatch((0,E.ac)({payload:A.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,E._V)({payload:u}));let _=this.location.path();_.includes("/cln/")?_=_.replace("/cln/","/lnd/"):_.includes("/ecl/")&&(_=_.replace("/ecl/","/lnd/")),(_.includes("/unlock")||_.includes("/login")||_.includes("/error")||""===_||"HOME"===p||_.includes("?access-key="))&&(_="/lnd/home"),this.router.navigate([_]),this.store.dispatch((0,P.Bl)()),this.store.dispatch((0,P.UR)()),this.store.dispatch((0,P.Z7)()),this.store.dispatch((0,P.Zh)()),this.store.dispatch((0,P.$W)()),this.store.dispatch((0,P.Rv)()),this.store.dispatch((0,P.SN)()),this.store.dispatch((0,P.WM)({payload:{num_max_invoices:10,reversed:!0}})),this.store.dispatch((0,P.cQ)({payload:{max_payments:1e5,reversed:!0}}))}handleErrorWithoutAlert(a,p,u,_){this.logger.error("ERROR IN: "+a+"\n"+JSON.stringify(_)),401===_.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,E.uO)({payload:p})),this.store.dispatch((0,P.PC)({payload:{action:a,status:A.Bn.ERROR,statusCode:_.status.toString(),message:this.commonService.extractErrorMessage(_,u)}})))}handleErrorWithAlert(a,p,u,_,D){if(this.logger.error(D),401===D.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,E.uO)({payload:p}));const I=this.commonService.extractErrorMessage(D);this.store.dispatch((0,E.qR)({payload:{data:{type:"ERROR",alertTitle:u,message:{code:D.status,message:I,URL:_},component:O.H}}})),this.store.dispatch((0,P.PC)({payload:{action:a,status:A.Bn.ERROR,statusCode:D.status.toString(),message:I,URL:_}}))}}ngOnDestroy(){this.unSubs.forEach(a=>{a.next(null),a.complete()})}}return y.\u0275fac=function(a){return new(a||y)(Z.LFG(e.eX),Z.LFG(j.eN),Z.LFG(W.yh),Z.LFG(ie.mQ),Z.LFG(ee.v),Z.LFG(ve.m),Z.LFG(he.uw),Z.LFG(re.F0),Z.LFG(de.d),Z.LFG(le.Ye))},y.\u0275prov=Z.Yz7({token:y,factory:y.\u0275fac}),y})()},6529:(Ve,Q,m)=>{"use strict";m.d(Q,{$k:()=>v,Q5:()=>C,yA:()=>M,Bo:()=>l,PP:()=>R,JG:()=>s,Wi:()=>L,dx:()=>O,Ef:()=>A,ZW:()=>E,ni:()=>w,P2:()=>Z,qU:()=>j,T4:()=>ie,N7:()=>ee,l5:()=>ve,_f:()=>he,bx:()=>re});var e=m(5620);const t=(0,e.ZF)("lnd"),v=(0,e.P1)(t,de=>de.nodeSettings),C=(0,e.P1)(t,de=>de.information),M=((0,e.P1)(t,de=>({information:de.information,apiCallStatus:de.apisCallStatus.FetchInfo})),(0,e.P1)(t,de=>de.apisCallStatus)),l=(0,e.P1)(t,de=>({forwardingHistory:de.forwardingHistory,apiCallStatus:de.apisCallStatus.FetchForwardingHistory})),R=(0,e.P1)(t,de=>({listPayments:de.listPayments,apiCallStatus:de.apisCallStatus.FetchPayments})),s=(0,e.P1)(t,de=>({fees:de.fees,apiCallStatus:de.apisCallStatus.FetchFees})),L=(0,e.P1)(t,de=>({peers:de.peers,apiCallStatus:de.apisCallStatus.FetchPeers})),O=(0,e.P1)(t,de=>({transactions:de.transactions,apiCallStatus:de.apisCallStatus.FetchTransactions})),A=(0,e.P1)(t,de=>({listInvoices:de.listInvoices,apiCallStatus:de.apisCallStatus.FetchInvoices})),E=(0,e.P1)(t,de=>({channels:de.channels,channelsSummary:de.channelsSummary,lightningBalance:de.lightningBalance,apiCallStatus:de.apisCallStatus.FetchAllChannels})),w=((0,e.P1)(t,de=>({channelsSummary:de.channelsSummary,pendingChannels:de.pendingChannels,closedChannels:de.closedChannels,apiCallStatus:de.apisCallStatus.FetchAllChannels})),(0,e.P1)(t,de=>({pendingChannels:de.pendingChannels,pendingChannelsSummary:de.pendingChannelsSummary,apiCallStatus:de.apisCallStatus.FetchPendingChannels}))),Z=(0,e.P1)(t,de=>({closedChannels:de.closedChannels,apiCallStatus:de.apisCallStatus.FetchClosedChannels})),j=(0,e.P1)(t,de=>({blockchainBalance:de.blockchainBalance,apiCallStatus:de.apisCallStatus.FetchBalanceBlockchain})),ie=((0,e.P1)(t,de=>({lightningBalance:de.lightningBalance,apiCallStatus:de.apisCallStatus.FetchAllChannels})),(0,e.P1)(t,de=>({utxos:de.utxos,apiCallStatus:de.apisCallStatus.FetchUTXOs}))),ee=(0,e.P1)(t,de=>({networkInfo:de.networkInfo,apiCallStatus:de.apisCallStatus.FetchNetwork})),ve=(0,e.P1)(t,de=>({allLightningTransactions:de.allLightningTransactions,apiCallStatus:de.apisCallStatus.FetchLightningTransactions})),he=(0,e.P1)(t,de=>({channels:de.channels,pendingChannels:de.pendingChannels,closedChannels:de.closedChannels})),re=(0,e.P1)(t,de=>({information:de.information,nodeSettings:de.nodeSettings,apiCallStatus:de.apisCallStatus.FetchInfo}))},8627:(Ve,Q,m)=>{"use strict";m.d(Q,{v:()=>$});var e=m(8966),t=m(801),v=m(7579),C=m(2722),o=m(7731),M=m(6529),l=m(5e3),R=m(5043),s=m(62),L=m(7261),O=m(5620),A=m(7093),E=m(9808),P=m(3322),w=m(9224),Z=m(9444),j=m(7423),W=m(644),ie=m(4834),ee=m(159),ve=m(773),he=m(1125),re=m(7238),de=m(5245),le=m(3390),se=m(6895);const y=["scrollContainer"];function i(ce,Me){if(1&ce&&l._UZ(0,"qr-code",32),2&ce){const Ue=l.oxw();l.Q6J("value",null==Ue.invoice?null:Ue.invoice.payment_request)("size",Ue.qrWidth)("errorCorrectionLevel","L")}}function a(ce,Me){1&ce&&(l.TgZ(0,"span",33),l._uU(1,"N/A"),l.qZA())}function p(ce,Me){if(1&ce&&l._UZ(0,"qr-code",32),2&ce){const Ue=l.oxw();l.Q6J("value",null==Ue.invoice?null:Ue.invoice.payment_request)("size",Ue.qrWidth)("errorCorrectionLevel","L")}}function u(ce,Me){1&ce&&(l.TgZ(0,"span",34),l._uU(1,"QR Code Not Applicable"),l.qZA())}function _(ce,Me){1&ce&&l._UZ(0,"mat-divider",22),2&ce&&l.Q6J("inset",!0)}function D(ce,Me){1&ce&&(l.ynx(0),l._uU(1," (zero amount) "),l.BQk())}function I(ce,Me){1&ce&&l._UZ(0,"span",40)}const x=function(){return[]};function r(ce,Me){if(1&ce&&(l.TgZ(0,"div",36),l.TgZ(1,"div",37),l.TgZ(2,"span",38),l._uU(3),l.ALo(4,"number"),l.qZA(),l.YNc(5,I,1,0,"span",39),l.qZA(),l.qZA()),2&ce){const Ue=l.oxw(2);l.xp6(3),l.hij("",l.lcZ(4,2,null==Ue.invoice?null:Ue.invoice.amt_paid_sat)," Sats"),l.xp6(2),l.Q6J("ngForOf",l.DdM(4,x).constructor(35))}}function b(ce,Me){if(1&ce&&(l.TgZ(0,"div"),l._uU(1),l.ALo(2,"number"),l.qZA()),2&ce){const Ue=l.oxw(2);l.xp6(1),l.hij("",l.lcZ(2,1,null==Ue.invoice?null:Ue.invoice.amt_paid_sat)," Sats")}}function U(ce,Me){if(1&ce&&(l.ynx(0),l.YNc(1,r,6,5,"div",35),l.YNc(2,b,3,3,"div",21),l.BQk()),2&ce){const Ue=l.oxw();l.xp6(1),l.Q6J("ngIf",Ue.flgInvoicePaid),l.xp6(1),l.Q6J("ngIf",!Ue.flgInvoicePaid)}}function N(ce,Me){1&ce&&(l.TgZ(0,"span"),l._uU(1,"-"),l.qZA())}function z(ce,Me){1&ce&&l._UZ(0,"mat-spinner",42),2&ce&&l.Q6J("diameter",20)}function be(ce,Me){if(1&ce&&(l.ynx(0),l.YNc(1,N,2,0,"span",21),l.YNc(2,z,1,1,"mat-spinner",41),l.BQk()),2&ce){const Ue=l.oxw();l.xp6(1),l.Q6J("ngIf","OPEN"!==(null==Ue.invoice?null:Ue.invoice.state)||!Ue.flgVersionCompatible),l.xp6(1),l.Q6J("ngIf","OPEN"===(null==Ue.invoice?null:Ue.invoice.state)&&Ue.flgVersionCompatible)}}const xe=function(ce){return{"mr-0":ce}};function Re(ce,Me){if(1&ce&&l._UZ(0,"span",59),2&ce){const Ue=l.oxw(4);l.Q6J("ngClass",l.VKq(1,xe,Ue.screenSize===Ue.screenSizeEnum.XS))}}function ze(ce,Me){if(1&ce&&l._UZ(0,"span",60),2&ce){const Ue=l.oxw(4);l.Q6J("ngClass",l.VKq(1,xe,Ue.screenSize===Ue.screenSizeEnum.XS))}}function Le(ce,Me){if(1&ce&&l._UZ(0,"span",61),2&ce){const Ue=l.oxw(4);l.Q6J("ngClass",l.VKq(1,xe,Ue.screenSize===Ue.screenSizeEnum.XS))}}function K(ce,Me){if(1&ce&&(l.TgZ(0,"div",48),l.TgZ(1,"div",53),l.TgZ(2,"span",54),l.YNc(3,Re,1,3,"span",55),l.YNc(4,ze,1,3,"span",56),l.YNc(5,Le,1,3,"span",57),l._uU(6),l.qZA(),l.TgZ(7,"span",58),l._uU(8),l.ALo(9,"number"),l.qZA(),l.qZA(),l._UZ(10,"mat-divider",22),l.qZA()),2&ce){const Ue=Me.$implicit,lt=l.oxw(3);l.xp6(3),l.Q6J("ngIf","SETTLED"===Ue.state),l.xp6(1),l.Q6J("ngIf","ACCEPTED"===Ue.state),l.xp6(1),l.Q6J("ngIf","CANCELED"===Ue.state),l.xp6(1),l.hij(" ",Ue.chan_id," "),l.xp6(2),l.Oqu(l.xi3(9,6,+Ue.amt_msat/1e3||0,lt.getDecimalFormat(Ue))),l.xp6(2),l.Q6J("inset",!0)}}function we(ce,Me){if(1&ce){const Ue=l.EpF();l.TgZ(0,"div",17),l.TgZ(1,"mat-expansion-panel",46),l.NdJ("opened",function(){return l.CHM(Ue),l.oxw(2).flgOpened=!0})("closed",function(){return l.CHM(Ue),l.oxw(2).onExpansionClosed()}),l.TgZ(2,"mat-expansion-panel-header"),l.TgZ(3,"mat-panel-title"),l.TgZ(4,"h4",47),l._uU(5,"HTLCs"),l.qZA(),l.qZA(),l.qZA(),l.TgZ(6,"div",48),l.TgZ(7,"div",49),l.TgZ(8,"span",50),l._uU(9,"Channel ID"),l.qZA(),l.TgZ(10,"span",51),l._uU(11,"Amount (Sats)"),l.qZA(),l.qZA(),l._UZ(12,"mat-divider",22),l.YNc(13,K,11,9,"div",52),l.qZA(),l.qZA(),l.qZA()}if(2&ce){const Ue=l.oxw(2);l.xp6(12),l.Q6J("inset",!0),l.xp6(1),l.Q6J("ngForOf",null==Ue.invoice?null:Ue.invoice.htlcs)}}function Y(ce,Me){1&ce&&l._UZ(0,"mat-divider",22),2&ce&&l.Q6J("inset",!0)}function ae(ce,Me){if(1&ce&&(l.TgZ(0,"div"),l._UZ(1,"mat-divider",22),l.TgZ(2,"div",17),l.TgZ(3,"div",23),l.TgZ(4,"h4",19),l._uU(5,"Preimage"),l.qZA(),l.TgZ(6,"span",24),l._uU(7),l.qZA(),l.qZA(),l.qZA(),l._UZ(8,"mat-divider",22),l.TgZ(9,"div",17),l.TgZ(10,"div",43),l.TgZ(11,"h4",19),l._uU(12,"State"),l.qZA(),l.TgZ(13,"span",24),l._uU(14),l.qZA(),l.qZA(),l.TgZ(15,"div",44),l.TgZ(16,"h4",19),l._uU(17,"Expiry"),l.qZA(),l.TgZ(18,"span",24),l._uU(19),l.qZA(),l.qZA(),l.TgZ(20,"div",44),l.TgZ(21,"h4",19),l._uU(22,"Private Routing Hints"),l.qZA(),l.TgZ(23,"span",24),l._uU(24),l.qZA(),l.qZA(),l.qZA(),l._UZ(25,"mat-divider",22),l.YNc(26,we,14,2,"div",45),l.YNc(27,Y,1,1,"mat-divider",14),l.qZA()),2&ce){const Ue=l.oxw();l.xp6(1),l.Q6J("inset",!0),l.xp6(6),l.Oqu((null==Ue.invoice?null:Ue.invoice.r_preimage)||"-"),l.xp6(1),l.Q6J("inset",!0),l.xp6(6),l.Oqu(null==Ue.invoice?null:Ue.invoice.state),l.xp6(5),l.Oqu(null==Ue.invoice?null:Ue.invoice.expiry),l.xp6(5),l.Oqu(null!=Ue.invoice&&Ue.invoice.private?"Yes":"No"),l.xp6(1),l.Q6J("inset",!0),l.xp6(1),l.Q6J("ngIf",(null==Ue.invoice?null:Ue.invoice.htlcs)&&(null==Ue.invoice?null:Ue.invoice.htlcs.length)>0),l.xp6(1),l.Q6J("ngIf",(null==Ue.invoice?null:Ue.invoice.htlcs)&&(null==Ue.invoice?null:Ue.invoice.htlcs.length)>0)}}function Ge(ce,Me){if(1&ce){const Ue=l.EpF();l.TgZ(0,"div",62),l.TgZ(1,"button",63),l.NdJ("click",function(){return l.CHM(Ue),l.oxw().onScrollDown()}),l.TgZ(2,"mat-icon",64),l._uU(3,"arrow_downward"),l.qZA(),l.qZA(),l.qZA()}}function vt(ce,Me){1&ce&&(l.TgZ(0,"p"),l._uU(1,"Show Advanced"),l.qZA())}function Fe(ce,Me){1&ce&&(l.TgZ(0,"p"),l._uU(1,"Hide Advanced"),l.qZA())}function Ne(ce,Me){if(1&ce){const Ue=l.EpF();l.TgZ(0,"button",65),l.NdJ("copied",function(nt){return l.CHM(Ue),l.oxw().onCopyPayment(nt)}),l._uU(1),l.qZA()}if(2&ce){const Ue=l.oxw();l.Q6J("payload",null==Ue.invoice?null:Ue.invoice.payment_request),l.xp6(1),l.Oqu(Ue.screenSize===Ue.screenSizeEnum.XS?"Copy Payment":"Copy Payment Request")}}function ue(ce,Me){if(1&ce){const Ue=l.EpF();l.TgZ(0,"button",66),l.NdJ("click",function(){return l.CHM(Ue),l.oxw().onClose()}),l._uU(1,"OK"),l.qZA()}}const Oe=function(ce){return{"display-none":ce}},Pe=function(ce){return{"xs-scroll-y":ce}},q=function(ce){return{"h-50":ce}};let $=(()=>{class ce{constructor(Ue,lt,nt,ft,it,rt){this.dialogRef=Ue,this.data=lt,this.logger=nt,this.commonService=ft,this.snackBar=it,this.store=rt,this.faReceipt=t.dLy,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.cu,this.flgOpened=!1,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new v.x,new v.x,new v.x,new v.x,new v.x]}set container(Ue){Ue&&(this.scrollContainer=Ue)}ngOnInit(){this.invoice=JSON.parse(JSON.stringify(this.data.invoice)),this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.cu.XS&&(this.qrWidth=220),this.store.select(M.Q5).pipe((0,C.R)(this.unSubs[0])).subscribe(lt=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(lt.version,"0.11.0")});const Ue=JSON.parse(JSON.stringify(this.invoice));this.store.select(M.Ef).pipe((0,C.R)(this.unSubs[1])).subscribe(lt=>{const nt=this.invoice.state,it=(lt.listInvoices.invoices||[]).find(rt=>rt.r_hash===Ue.r_hash);this.invoice=it,nt!==this.invoice.state&&"SETTLED"===this.invoice.state&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(lt)})}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(Ue){this.snackBar.open("Payment request copied."),this.logger.info("Copied Text: "+Ue)}getDecimalFormat(Ue){return Ue.amt_msat<1e3?"1.0-4":"1.0-0"}ngOnDestroy(){this.unSubs.forEach(Ue=>{Ue.next(null),Ue.complete()})}}return ce.\u0275fac=function(Ue){return new(Ue||ce)(l.Y36(e.so),l.Y36(e.WI),l.Y36(R.mQ),l.Y36(s.v),l.Y36(L.ux),l.Y36(O.yh))},ce.\u0275cmp=l.Xpm({type:ce,selectors:[["rtl-invoice-information"]],viewQuery:function(Ue,lt){if(1&Ue&&l.Gf(y,5),2&Ue){let nt;l.iGM(nt=l.CRH())&&(lt.container=nt.first)}},decls:78,vars:49,consts:[["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"],[3,"value","size","errorCorrectionLevel",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","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,"perfectScrollbar","ngClass"],["scrollContainer",""],["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"],["hideAdvancedText",""],["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"],[3,"value","size","errorCorrectionLevel"],[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"],["fxFlex","34"],["fxFlex","33"],["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"],["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,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(Ue,lt){if(1&Ue&&(l.TgZ(0,"div",0),l.TgZ(1,"div",1),l.YNc(2,i,1,3,"qr-code",2),l.YNc(3,a,2,0,"span",3),l.qZA(),l.TgZ(4,"div",4),l.TgZ(5,"mat-card-header",5),l.TgZ(6,"div",6),l._UZ(7,"fa-icon",7),l.TgZ(8,"span",8),l._uU(9),l.qZA(),l.qZA(),l.TgZ(10,"button",9),l.NdJ("click",function(){return lt.onClose()}),l._uU(11,"X"),l.qZA(),l.qZA(),l.TgZ(12,"mat-card-content",10),l.TgZ(13,"div",11),l.TgZ(14,"div",12),l.YNc(15,p,1,3,"qr-code",2),l.YNc(16,u,2,0,"span",13),l.qZA(),l.YNc(17,_,1,1,"mat-divider",14),l.TgZ(18,"div",15,16),l.TgZ(20,"div",17),l.TgZ(21,"div",18),l.TgZ(22,"h4",19),l._uU(23),l.qZA(),l.TgZ(24,"span",20),l._uU(25),l.ALo(26,"number"),l.YNc(27,D,2,0,"ng-container",21),l.qZA(),l.qZA(),l.TgZ(28,"div",18),l.TgZ(29,"h4",19),l._uU(30,"Amount Settled"),l.qZA(),l.TgZ(31,"span",20),l.YNc(32,U,3,2,"ng-container",21),l.YNc(33,be,3,2,"ng-container",21),l.qZA(),l.qZA(),l.qZA(),l._UZ(34,"mat-divider",22),l.TgZ(35,"div",17),l.TgZ(36,"div",18),l.TgZ(37,"h4",19),l._uU(38,"Date Created"),l.qZA(),l.TgZ(39,"span",20),l._uU(40),l.ALo(41,"date"),l.qZA(),l.qZA(),l.TgZ(42,"div",18),l.TgZ(43,"h4",19),l._uU(44,"Date Settled"),l.qZA(),l.TgZ(45,"span",20),l._uU(46),l.ALo(47,"date"),l.qZA(),l.qZA(),l.qZA(),l._UZ(48,"mat-divider",22),l.TgZ(49,"div",17),l.TgZ(50,"div",23),l.TgZ(51,"h4",19),l._uU(52,"Memo"),l.qZA(),l.TgZ(53,"span",20),l._uU(54),l.qZA(),l.qZA(),l.qZA(),l._UZ(55,"mat-divider",22),l.TgZ(56,"div",17),l.TgZ(57,"div",23),l.TgZ(58,"h4",19),l._uU(59,"Payment Request"),l.qZA(),l.TgZ(60,"span",24),l._uU(61),l.qZA(),l.qZA(),l.qZA(),l._UZ(62,"mat-divider",22),l.TgZ(63,"div",17),l.TgZ(64,"div",23),l.TgZ(65,"h4",19),l._uU(66,"Payment Hash"),l.qZA(),l.TgZ(67,"span",24),l._uU(68),l.qZA(),l.qZA(),l.qZA(),l.YNc(69,ae,28,9,"div",21),l.qZA(),l.qZA(),l.qZA(),l.YNc(70,Ge,4,0,"div",25),l.TgZ(71,"div",26),l.TgZ(72,"button",27),l.NdJ("click",function(){return lt.onShowAdvanced()}),l.YNc(73,vt,2,0,"p",28),l.YNc(74,Fe,2,0,"ng-template",null,29,l.W1O),l.qZA(),l.YNc(76,Ne,2,2,"button",30),l.YNc(77,ue,2,0,"button",31),l.qZA(),l.qZA(),l.qZA()),2&Ue){const nt=l.MAs(75);l.xp6(1),l.Q6J("fxLayoutAlign",null!=lt.invoice&<.invoice.payment_request&&""!==(null==lt.invoice?null:lt.invoice.payment_request)?"center start":"center center")("ngClass",l.VKq(41,Oe,lt.screenSize===lt.screenSizeEnum.XS||lt.screenSize===lt.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.payment_request)&&""!==(null==lt.invoice?null:lt.invoice.payment_request)),l.xp6(1),l.Q6J("ngIf",!(null!=lt.invoice&<.invoice.payment_request)||""===(null==lt.invoice?null:lt.invoice.payment_request)),l.xp6(4),l.Q6J("icon",lt.faReceipt),l.xp6(2),l.Oqu(lt.screenSize===lt.screenSizeEnum.XS?lt.newlyAdded?"Created":"Invoice":lt.newlyAdded?"Invoice Created":"Invoice Information"),l.xp6(3),l.Q6J("ngClass",l.VKq(43,Pe,lt.screenSize===lt.screenSizeEnum.XS)),l.xp6(2),l.Q6J("fxLayoutAlign",null!=lt.invoice&<.invoice.payment_request&&""!==(null==lt.invoice?null:lt.invoice.payment_request)?"center start":"center center")("ngClass",l.VKq(45,Oe,lt.screenSize!==lt.screenSizeEnum.XS&<.screenSize!==lt.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.payment_request)&&""!==(null==lt.invoice?null:lt.invoice.payment_request)),l.xp6(1),l.Q6J("ngIf",!(null!=lt.invoice&<.invoice.payment_request)||""===(null==lt.invoice?null:lt.invoice.payment_request)),l.xp6(1),l.Q6J("ngIf",lt.screenSize===lt.screenSizeEnum.XS||lt.screenSize===lt.screenSizeEnum.SM),l.xp6(1),l.Q6J("ngClass",l.VKq(47,q,(null==lt.invoice?null:lt.invoice.htlcs)&&(null==lt.invoice?null:lt.invoice.htlcs.length)>0&<.showAdvanced)),l.xp6(5),l.Oqu(lt.screenSize===lt.screenSizeEnum.XS?"Amount":"Amount Requested"),l.xp6(2),l.hij("",l.lcZ(26,33,(null==lt.invoice?null:lt.invoice.value)||0)," Sats"),l.xp6(2),l.Q6J("ngIf",!(null!=lt.invoice&<.invoice.value)||"0"===(null==lt.invoice?null:lt.invoice.value)),l.xp6(5),l.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.amt_paid_sat)&&"OPEN"!==(null==lt.invoice?null:lt.invoice.state)),l.xp6(1),l.Q6J("ngIf",!(null!=lt.invoice&<.invoice.amt_paid_sat)||"0"===(null==lt.invoice?null:lt.invoice.amt_paid_sat)),l.xp6(1),l.Q6J("inset",!0),l.xp6(6),l.Oqu(l.xi3(41,35,1e3*(null==lt.invoice?null:lt.invoice.creation_date),"dd/MMM/y HH:mm")),l.xp6(6),l.Oqu(0!=+(null==lt.invoice?null:lt.invoice.settle_date)?l.xi3(47,38,1e3*+(null==lt.invoice?null:lt.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),l.xp6(2),l.Q6J("inset",!0),l.xp6(6),l.Oqu(null==lt.invoice?null:lt.invoice.memo),l.xp6(1),l.Q6J("inset",!0),l.xp6(6),l.Oqu((null==lt.invoice?null:lt.invoice.payment_request)||"N/A"),l.xp6(1),l.Q6J("inset",!0),l.xp6(6),l.Oqu((null==lt.invoice?null:lt.invoice.r_hash)||""),l.xp6(1),l.Q6J("ngIf",lt.showAdvanced),l.xp6(1),l.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.htlcs)&&(null==lt.invoice?null:lt.invoice.htlcs.length)>0&<.showAdvanced&<.flgOpened),l.xp6(3),l.Q6J("ngIf",!lt.showAdvanced)("ngIfElse",nt),l.xp6(3),l.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.payment_request)&&""!==(null==lt.invoice?null:lt.invoice.payment_request)),l.xp6(1),l.Q6J("ngIf",!(null!=lt.invoice&<.invoice.payment_request)||""===(null==lt.invoice?null:lt.invoice.payment_request))}},directives:[A.xw,A.Wh,A.yH,E.mk,P.oO,E.O5,w.dk,Z.BN,j.lW,w.dn,W.$V,ie.d,ee.uU,E.sg,ve.$g,he.ib,he.yz,he.yK,re.gM,de.Hw,le.h,se.y],pipes:[E.JJ,E.uU],styles:[""]}),ce})()},7772:(Ve,Q,m)=>{"use strict";m.d(Q,{_:()=>t,J:()=>v});var e=m(1777);const t=[(0,e.X$)("opacityAnimation",[(0,e.eR)(":enter",[(0,e.oB)({opacity:0}),(0,e.jt)("1000ms ease-in",(0,e.oB)({opacity:1}))]),(0,e.eR)(":leave",[(0,e.jt)("0ms",(0,e.oB)({opacity:0}))])])],v=[(0,e.X$)("fadeIn",[(0,e.eR)("void => *",[]),(0,e.eR)("* => void",[]),(0,e.eR)("* => *",[(0,e.jt)(800,(0,e.F4)([(0,e.oB)({opacity:0,transform:"translateY(100%)"}),(0,e.oB)({opacity:1,transform:"translateY(0%)"})]))])])]},8878:(Ve,Q,m)=>{"use strict";m.d(Q,{g:()=>t});var e=m(1777);const t=(0,e.X$)("routeAnimation",[(0,e.eR)("* => *",[(0,e.IO)(":enter, :leave",(0,e.oB)({position:"fixed",width:"100%"}),{optional:!0}),(0,e.ru)([(0,e.IO)(":enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)("1000ms ease-in-out",(0,e.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({transform:"translateX(0%)"}),(0,e.jt)("1000ms ease-in-out",(0,e.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])])},113:(Ve,Q,m)=>{"use strict";m.d(Q,{l:()=>t});var e=m(1777);const t=[(0,e.X$)("sliderAnimation",[(0,e.SB)("*",(0,e.oB)({transform:"translateX(0)"})),(0,e.eR)("void => backward",[(0,e.oB)({transform:"translateX(-100%"}),(0,e.jt)("800ms")]),(0,e.eR)("backward => void",[(0,e.jt)("0ms",(0,e.oB)({transform:"translateX(100%)"}))]),(0,e.eR)("void => forward",[(0,e.oB)({transform:"translateX(100%"}),(0,e.jt)("800ms")]),(0,e.eR)("forward => void",[(0,e.jt)("0ms",(0,e.oB)({transform:"translateX(-100%)"}))])])]},1786:(Ve,Q,m)=>{"use strict";m.d(Q,{H:()=>O});var e=m(8966),t=m(5e3),v=m(5043),C=m(7093),o=m(9224),M=m(7423),l=m(9808),R=m(4834),s=m(3390);function L(A,E){if(1&A&&(t.TgZ(0,"p",14),t._uU(1),t.qZA()),2&A){const P=t.oxw();t.xp6(1),t.Oqu(P.data.titleMessage)}}let O=(()=>{class A{constructor(P,w,Z){this.dialogRef=P,this.data=w,this.logger=Z,this.errorMessage=""}ngOnInit(){this.errorMessage="object"==typeof this.data.message.message?JSON.stringify(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)}}return A.\u0275fac=function(P){return new(P||A)(t.Y36(e.so),t.Y36(e.WI),t.Y36(v.mQ))},A.\u0275cmp=t.Xpm({type:A,selectors:[["rtl-error-message"]],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","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(P,w){1&P&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"mat-card-header",2),t.TgZ(3,"div",3),t.TgZ(4,"span",4),t._uU(5),t.qZA(),t.qZA(),t.TgZ(6,"button",5),t.NdJ("click",function(){return w.onClose()}),t._uU(7,"X"),t.qZA(),t.qZA(),t.TgZ(8,"mat-card-content",6),t.TgZ(9,"div",7),t.YNc(10,L,2,1,"p",8),t.TgZ(11,"h4",9),t._uU(12,"Error Code"),t.qZA(),t.TgZ(13,"span"),t._uU(14),t.qZA(),t._UZ(15,"mat-divider",10),t.TgZ(16,"h4",9),t._uU(17,"Error Message"),t.qZA(),t.TgZ(18,"span",11),t._uU(19),t.qZA(),t._UZ(20,"mat-divider",10),t.TgZ(21,"h4",9),t._uU(22,"API URL"),t.qZA(),t.TgZ(23,"span",11),t._uU(24),t.qZA(),t._UZ(25,"mat-divider",10),t.TgZ(26,"div",12),t.TgZ(27,"button",13),t._uU(28,"OK"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&P&&(t.xp6(5),t.Oqu(w.data.alertTitle||"ERROR"),t.xp6(5),t.Q6J("ngIf",w.data.titleMessage),t.xp6(4),t.Oqu(w.data.message.code),t.xp6(5),t.Oqu(w.errorMessage),t.xp6(5),t.Oqu(w.data.message.URL),t.xp6(3),t.Q6J("mat-dialog-close",!1))},directives:[C.xw,C.yH,o.dk,C.Wh,M.lW,o.dn,l.O5,R.d,s.h,e.ZT],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),A})()},9442:(Ve,Q,m)=>{"use strict";m.d(Q,{w:()=>R});var e=m(801),t=m(5e3),v=m(1402),C=m(7093),o=m(9444),M=m(9224),l=m(7423);let R=(()=>{class s{constructor(O){this.router=O,this.faTimes=e.NBC}goToHelp(){this.router.navigate(["/help"])}}return s.\u0275fac=function(O){return new(O||s)(t.Y36(v.F0))},s.\u0275cmp=t.Xpm({type:s,selectors:[["rtl-not-found"]],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(O,A){1&O&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Page Not Found"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"div",5),t.TgZ(8,"div",6),t._uU(9,"This page does not exist!"),t.qZA(),t.TgZ(10,"span",7),t.TgZ(11,"button",8),t.NdJ("click",function(){return A.goToHelp()}),t._uU(12,"Go To Help"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&O&&(t.xp6(1),t.Q6J("icon",A.faTimes))},directives:[C.xw,C.Wh,o.BN,M.a8,M.dn,C.yH,l.lW],encapsulation:2}),s})()},8213:(Ve,Q,m)=>{"use strict";m.d(Q,{a:()=>Xi});var e=m(3075),t=m(7579),v=m(2722),C=m(8966),o=m(801),M=m(7772),l=m(7731),R=m(6529),s=m(5e3),L=m(5620),O=m(9107),A=m(9808),E=m(5043),P=m(1402),w=m(62),Z=m(7093),j=m(9224),W=m(7423),ie=m(5615),ee=m(1125),ve=m(3322),he=m(5245),re=m(7238),de=m(4834);function le(Ke,_t){1&Ke&&s.GkF(0)}function se(Ke,_t){1&Ke&&s.GkF(0)}const y=function(Ke){return{"h-5":Ke}};function i(Ke,_t){if(1&Ke&&(s.TgZ(0,"mat-expansion-panel",3),s.TgZ(1,"mat-expansion-panel-header"),s.TgZ(2,"mat-panel-title"),s.TgZ(3,"span",4),s._uU(4),s.ALo(5,"number"),s.qZA(),s.qZA(),s.qZA(),s.YNc(6,se,1,0,"ng-container",0),s.qZA()),2&Ke){const ye=s.oxw(),qe=s.MAs(4);s.Q6J("expanded",ye.panelExpanded)("ngClass",s.VKq(7,y,!ye.flgShowPanel)),s.xp6(4),s.AsE("Quote for ",ye.termCaption," amount (",s.lcZ(5,5,ye.quote.amount)," Sats)"),s.xp6(2),s.Q6J("ngTemplateOutlet",qe)}}function a(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",19),s.TgZ(1,"h4",8),s._uU(2," Prepay Amount (Sats) "),s.TgZ(3,"mat-icon",20),s._uU(4,"info_outline"),s.qZA(),s.qZA(),s.TgZ(5,"span",10),s._uU(6),s.ALo(7,"number"),s.qZA(),s.qZA()),2&Ke){const ye=s.oxw(2);s.xp6(6),s.Oqu(s.lcZ(7,1,null==ye.quote?null:ye.quote.prepay_amt_sat))}}function p(Ke,_t){1&Ke&&s._UZ(0,"mat-divider",13)}function u(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",6),s.TgZ(1,"div",21),s.TgZ(2,"h4",8),s._uU(3," Swap Server Node Pubkey "),s.TgZ(4,"mat-icon",22),s._uU(5,"info_outline"),s.qZA(),s.qZA(),s.TgZ(6,"span",10),s._uU(7),s.qZA(),s.qZA(),s.qZA()),2&Ke){const ye=s.oxw(2);s.xp6(7),s.Oqu(null==ye.quote?null:ye.quote.swap_payment_dest)}}function _(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",5),s.TgZ(1,"div",6),s.TgZ(2,"div",7),s.TgZ(3,"h4",8),s._uU(4," Swap Fee (Sats) "),s.TgZ(5,"mat-icon",9),s._uU(6,"info_outline"),s.qZA(),s.qZA(),s.TgZ(7,"span",10),s._uU(8),s.ALo(9,"number"),s.qZA(),s.qZA(),s.TgZ(10,"div",7),s.TgZ(11,"h4",8),s._uU(12),s.TgZ(13,"mat-icon",11),s._uU(14,"info_outline"),s.qZA(),s.qZA(),s.TgZ(15,"span",10),s._uU(16),s.ALo(17,"number"),s.qZA(),s.qZA(),s.YNc(18,a,8,3,"div",12),s.qZA(),s._UZ(19,"mat-divider",13),s.TgZ(20,"div",6),s.TgZ(21,"div",14),s.TgZ(22,"h4",8),s._uU(23," Max Off-chain Swap Routing Fee (Sats) "),s.TgZ(24,"mat-icon",15),s._uU(25,"info_outline"),s.qZA(),s.qZA(),s.TgZ(26,"span",10),s._uU(27),s.ALo(28,"number"),s.qZA(),s.qZA(),s.TgZ(29,"div",14),s.TgZ(30,"h4",8),s._uU(31," Max Off-chain Prepay Routing Fee (Sats) "),s.TgZ(32,"mat-icon",16),s._uU(33,"info_outline"),s.qZA(),s.qZA(),s.TgZ(34,"span",10),s._uU(35,"36"),s.qZA(),s.qZA(),s.qZA(),s.YNc(36,p,1,0,"mat-divider",17),s.YNc(37,u,8,1,"div",18),s.qZA()),2&Ke){const ye=s.oxw();s.xp6(2),s.Q6J("fxFlex",null!=ye.quote&&ye.quote.prepay_amt_sat?"30":"50"),s.xp6(6),s.Oqu(s.lcZ(9,9,null==ye.quote?null:ye.quote.swap_fee_sat)),s.xp6(2),s.Q6J("fxFlex",null!=ye.quote&&ye.quote.prepay_amt_sat?"35":"50"),s.xp6(2),s.hij(" ",null!=ye.quote&&ye.quote.htlc_sweep_fee_sat?"HTLC Sweep Fee (Sats)":null!=ye.quote&&ye.quote.htlc_publish_fee_sat?"HTLC Publish Fee (Sats)":""," "),s.xp6(4),s.Oqu(s.lcZ(17,11,null!=ye.quote&&ye.quote.htlc_sweep_fee_sat?ye.quote.htlc_sweep_fee_sat:null!=ye.quote&&ye.quote.htlc_publish_fee_sat?ye.quote.htlc_publish_fee_sat:0)),s.xp6(2),s.Q6J("ngIf",null==ye.quote?null:ye.quote.prepay_amt_sat),s.xp6(9),s.Oqu(s.lcZ(28,13,(null==ye.quote?null:ye.quote.amount)*((null!=ye.quote&&ye.quote.off_chain_swap_routing_fee_percentage?null==ye.quote?null:ye.quote.off_chain_swap_routing_fee_percentage:2)/100))),s.xp6(9),s.Q6J("ngIf",""!==(null==ye.quote?null:ye.quote.swap_payment_dest)),s.xp6(1),s.Q6J("ngIf",""!==(null==ye.quote?null:ye.quote.swap_payment_dest))}}let D=(()=>{class Ke{constructor(){this.quote={},this.termCaption="",this.showPanel=!0,this.panelExpanded=!1,this.flgShowPanel=!1}ngOnInit(){setTimeout(()=>{this.flgShowPanel=!0},1200)}}return Ke.\u0275fac=function(ye){return new(ye||Ke)},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["rtl-loop-quote"]],inputs:{quote:"quote",termCaption:"termCaption",showPanel:"showPanel",panelExpanded:"panelExpanded"},decls:5,vars:1,consts:[[4,"ngTemplateOutlet"],["informationBlock",""],["quoteDetailsBlock",""],["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,"fxFlex"],["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(ye,qe){if(1&ye&&(s.YNc(0,le,1,0,"ng-container",0),s.YNc(1,i,7,9,"ng-template",null,1,s.W1O),s.YNc(3,_,38,15,"ng-template",null,2,s.W1O)),2&ye){const yt=s.MAs(2),pe=s.MAs(4);s.Q6J("ngTemplateOutlet",qe.showPanel?yt:pe)}},directives:[A.tP,ee.ib,Z.yH,A.mk,ve.oO,ee.yz,ee.yK,Z.Wh,Z.xw,he.Hw,re.gM,A.O5,de.d],pipes:[A.JJ],styles:[""]}),Ke})();var I=m(7322),x=m(7531),r=m(3390),b=m(2368),U=m(9814),N=m(5899);function z(Ke,_t){1&Ke&&s.GkF(0)}function be(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",3),s.TgZ(1,"span",4),s._uU(2),s.qZA(),s.qZA()),2&Ke){const ye=s.oxw();s.xp6(2),s.Oqu(null!=ye.loopStatus&&ye.loopStatus.error?null==ye.loopStatus?null:ye.loopStatus.error:"Unknown Error.")}}function xe(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",3),s.TgZ(1,"div",5),s.TgZ(2,"div",6),s.TgZ(3,"h4",7),s._uU(4,"ID"),s.qZA(),s.TgZ(5,"span",4),s._uU(6),s.qZA(),s.qZA(),s.qZA(),s._UZ(7,"mat-divider",8),s.TgZ(8,"div",5),s.TgZ(9,"div",6),s.TgZ(10,"h4",7),s._uU(11,"HTLC Address"),s.qZA(),s.TgZ(12,"span",4),s._uU(13),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&Ke){const ye=s.oxw();s.xp6(6),s.Oqu(null==ye.loopStatus?null:ye.loopStatus.id_bytes),s.xp6(7),s.Oqu(null==ye.loopStatus?null:ye.loopStatus.htlc_address)}}let Re=(()=>{class Ke{constructor(){}}return Ke.\u0275fac=function(ye){return new(ye||Ke)},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["rtl-loop-status"]],inputs:{loopStatus:"loopStatus"},decls:5,vars:1,consts:[[4,"ngTemplateOutlet"],["loopFailedBlock",""],["loopSuccessfulBlock",""],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"]],template:function(ye,qe){if(1&ye&&(s.YNc(0,z,1,0,"ng-container",0),s.YNc(1,be,3,1,"ng-template",null,1,s.W1O),s.YNc(3,xe,14,2,"ng-template",null,2,s.W1O)),2&ye){const yt=s.MAs(2),pe=s.MAs(4);s.Q6J("ngTemplateOutlet",null!=qe.loopStatus&&qe.loopStatus.error?yt:pe)}},directives:[A.tP,Z.xw,Z.yH,Z.Wh,de.d],styles:[""]}),Ke})();var ze=m(113);function Le(Ke,_t){1&Ke&&s.GkF(0)}const K=function(Ke,_t){return{"small-svg":Ke,"large-svg":_t}};function we(Ke,_t){if(1&Ke){const ye=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ye),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",7),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"g",8),s.TgZ(5,"g",9),s.TgZ(6,"g",10),s.TgZ(7,"g",11),s._UZ(8,"circle",12),s._UZ(9,"path",13),s.qZA(),s.TgZ(10,"g",14),s._UZ(11,"ellipse",15),s._UZ(12,"ellipse",16),s._UZ(13,"rect",17),s._UZ(14,"rect",18),s._UZ(15,"rect",19),s._UZ(16,"rect",20),s._UZ(17,"rect",21),s._UZ(18,"rect",22),s._UZ(19,"rect",23),s._UZ(20,"rect",24),s._UZ(21,"rect",25),s._UZ(22,"rect",26),s._UZ(23,"rect",27),s._UZ(24,"rect",28),s._UZ(25,"rect",29),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(26,"div",30),s.TgZ(27,"mat-card-title"),s._uU(28,"Loop Out explained."),s.qZA(),s.qZA(),s.TgZ(29,"div",31),s.TgZ(30,"mat-card-subtitle",32),s._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ye=s.oxw();s.Q6J("@sliderAnimation",ye.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,K,ye.screenSize===ye.screenSizeEnum.XS,ye.screenSize!==ye.screenSizeEnum.XS))}}function Y(Ke,_t){if(1&Ke){const ye=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ye),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",33),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",34),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",8),s.TgZ(10,"g",38),s.TgZ(11,"g",39),s.TgZ(12,"g",40),s.TgZ(13,"g",41),s.TgZ(14,"g",42),s._UZ(15,"rect",43),s._UZ(16,"rect",44),s._UZ(17,"rect",45),s._UZ(18,"circle",46),s._UZ(19,"rect",47),s._UZ(20,"rect",48),s._UZ(21,"circle",49),s._UZ(22,"rect",50),s._UZ(23,"rect",51),s._UZ(24,"rect",52),s._UZ(25,"rect",53),s._UZ(26,"circle",54),s._UZ(27,"circle",55),s.qZA(),s.TgZ(28,"g",56),s._UZ(29,"path",57),s._UZ(30,"rect",58),s._UZ(31,"polygon",59),s._UZ(32,"circle",60),s._UZ(33,"path",61),s._UZ(34,"rect",62),s._UZ(35,"rect",63),s._UZ(36,"rect",64),s._UZ(37,"rect",65),s._UZ(38,"rect",66),s._UZ(39,"rect",67),s._UZ(40,"rect",68),s._UZ(41,"path",69),s._UZ(42,"path",70),s.qZA(),s._UZ(43,"path",71),s.qZA(),s.qZA(),s._UZ(44,"circle",72),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(45,"div",30),s.TgZ(46,"mat-card-title"),s._uU(47,"Step 1: Deciding to Loop Out"),s.qZA(),s.qZA(),s.TgZ(48,"div",31),s.TgZ(49,"mat-card-subtitle",32),s._uU(50," You have a channel with a local balance amount and you want to gain inbound liquidity. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ye=s.oxw();s.Q6J("@sliderAnimation",ye.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,K,ye.screenSize===ye.screenSizeEnum.XS,ye.screenSize!==ye.screenSizeEnum.XS))}}function ae(Ke,_t){if(1&Ke){const ye=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ye),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",73),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",74),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",8),s.TgZ(10,"g",75),s.TgZ(11,"g",76),s._UZ(12,"circle",77),s._UZ(13,"path",78),s.TgZ(14,"g",79),s._UZ(15,"polygon",80),s._UZ(16,"polygon",81),s._UZ(17,"path",82),s.qZA(),s.TgZ(18,"g",83),s._UZ(19,"polygon",84),s._UZ(20,"path",85),s._UZ(21,"rect",86),s._UZ(22,"path",87),s._UZ(23,"rect",88),s._UZ(24,"rect",89),s._UZ(25,"rect",90),s._UZ(26,"rect",91),s._UZ(27,"circle",92),s._UZ(28,"path",93),s.TgZ(29,"g",94),s.TgZ(30,"g",95),s._UZ(31,"g",96),s.qZA(),s._UZ(32,"g",97),s.qZA(),s._UZ(33,"path",98),s.qZA(),s.TgZ(34,"g",99),s.TgZ(35,"g",41),s.TgZ(36,"g",42),s._UZ(37,"rect",43),s._UZ(38,"rect",44),s._UZ(39,"rect",45),s._UZ(40,"circle",46),s._UZ(41,"rect",47),s._UZ(42,"rect",48),s._UZ(43,"circle",49),s._UZ(44,"rect",50),s._UZ(45,"rect",51),s._UZ(46,"rect",52),s._UZ(47,"rect",53),s._UZ(48,"circle",100),s._UZ(49,"circle",54),s._UZ(50,"circle",55),s._UZ(51,"circle",101),s.qZA(),s.TgZ(52,"g",56),s._UZ(53,"path",57),s._UZ(54,"rect",102),s._UZ(55,"polygon",103),s._UZ(56,"circle",104),s._UZ(57,"path",61),s._UZ(58,"rect",105),s._UZ(59,"rect",106),s._UZ(60,"rect",107),s._UZ(61,"rect",108),s._UZ(62,"rect",109),s._UZ(63,"rect",110),s._UZ(64,"rect",68),s._UZ(65,"path",69),s._UZ(66,"path",70),s.qZA(),s._UZ(67,"path",111),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(68,"div",30),s.TgZ(69,"mat-card-title"),s._uU(70,"Step 2: Send lightning payment"),s.qZA(),s.qZA(),s.TgZ(71,"div",31),s.TgZ(72,"mat-card-subtitle",32),s._uU(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. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ye=s.oxw();s.Q6J("@sliderAnimation",ye.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,K,ye.screenSize===ye.screenSizeEnum.XS,ye.screenSize!==ye.screenSizeEnum.XS))}}function Ge(Ke,_t){if(1&Ke){const ye=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ye),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",112),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"g",8),s.TgZ(5,"g",113),s.TgZ(6,"g",114),s.TgZ(7,"g",115),s.TgZ(8,"g",116),s._UZ(9,"circle",12),s._UZ(10,"path",117),s.qZA(),s.TgZ(11,"g",14),s._UZ(12,"ellipse",118),s._UZ(13,"ellipse",16),s._UZ(14,"rect",17),s._UZ(15,"rect",18),s._UZ(16,"rect",19),s._UZ(17,"rect",20),s._UZ(18,"rect",21),s._UZ(19,"rect",22),s._UZ(20,"rect",23),s._UZ(21,"rect",24),s._UZ(22,"rect",25),s._UZ(23,"rect",26),s._UZ(24,"rect",27),s._UZ(25,"rect",28),s._UZ(26,"rect",29),s.qZA(),s.qZA(),s.TgZ(27,"g",119),s._UZ(28,"polygon",80),s._UZ(29,"polygon",120),s._UZ(30,"path",82),s.qZA(),s.TgZ(31,"g",121),s._UZ(32,"polygon",84),s._UZ(33,"path",85),s._UZ(34,"rect",86),s._UZ(35,"path",87),s._UZ(36,"rect",88),s._UZ(37,"rect",89),s._UZ(38,"rect",90),s._UZ(39,"rect",91),s._UZ(40,"circle",122),s._UZ(41,"path",93),s.TgZ(42,"g",94),s.TgZ(43,"g",95),s._UZ(44,"g",96),s.qZA(),s._UZ(45,"g",97),s.qZA(),s._UZ(46,"path",123),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(47,"div",30),s.TgZ(48,"mat-card-title"),s._uU(49,"Step 3: Receive funds back"),s.qZA(),s.qZA(),s.TgZ(50,"div",31),s.TgZ(51,"mat-card-subtitle",32),s._uU(52," Loop service then sends you a payment on-chain for the amount same as the lightning payment minus the fee. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ye=s.oxw();s.Q6J("@sliderAnimation",ye.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,K,ye.screenSize===ye.screenSizeEnum.XS,ye.screenSize!==ye.screenSizeEnum.XS))}}function vt(Ke,_t){if(1&Ke){const ye=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ye),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",124),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",34),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",8),s.TgZ(10,"g",125),s.TgZ(11,"g",126),s.TgZ(12,"g",42),s._UZ(13,"rect",127),s._UZ(14,"rect",128),s._UZ(15,"rect",129),s._UZ(16,"circle",130),s._UZ(17,"rect",131),s._UZ(18,"rect",132),s._UZ(19,"circle",133),s._UZ(20,"rect",134),s._UZ(21,"rect",135),s._UZ(22,"rect",136),s._UZ(23,"rect",137),s._UZ(24,"rect",138),s._UZ(25,"circle",139),s._UZ(26,"circle",140),s._UZ(27,"circle",141),s.qZA(),s.TgZ(28,"g",142),s.TgZ(29,"g",143),s.TgZ(30,"g",144),s._UZ(31,"path",145),s._UZ(32,"rect",146),s._UZ(33,"polygon",147),s.TgZ(34,"g",148),s._UZ(35,"path",149),s.qZA(),s._UZ(36,"rect",150),s._UZ(37,"rect",151),s._UZ(38,"rect",152),s._UZ(39,"rect",153),s._UZ(40,"rect",154),s._UZ(41,"rect",155),s._UZ(42,"rect",156),s._UZ(43,"path",157),s._UZ(44,"path",158),s.qZA(),s.TgZ(45,"g",159),s._UZ(46,"path",160),s._UZ(47,"path",161),s._UZ(48,"path",162),s._UZ(49,"path",163),s._UZ(50,"path",164),s._UZ(51,"path",165),s._UZ(52,"path",166),s._UZ(53,"path",167),s._UZ(54,"path",168),s._UZ(55,"path",169),s._UZ(56,"path",170),s._UZ(57,"circle",171),s._UZ(58,"circle",172),s.qZA(),s._UZ(59,"path",173),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(60,"div",30),s.TgZ(61,"mat-card-title"),s._uU(62,"Done!"),s.qZA(),s.qZA(),s.TgZ(63,"div",31),s.TgZ(64,"mat-card-subtitle",32),s._uU(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. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ye=s.oxw();s.Q6J("@sliderAnimation",ye.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,K,ye.screenSize===ye.screenSizeEnum.XS,ye.screenSize!==ye.screenSizeEnum.XS))}}let Fe=(()=>{class Ke{constructor(ye){this.commonService=ye,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new s.vpe,this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(ye){2===ye.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===ye.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return Ke.\u0275fac=function(ye){return new(ye||Ke)(s.Y36(w.v))},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["rtl-loop-out-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],["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(ye,qe){if(1&ye&&(s.YNc(0,Le,1,0,"ng-container",0),s.YNc(1,we,32,5,"ng-template",null,1,s.W1O),s.YNc(3,Y,51,5,"ng-template",null,2,s.W1O),s.YNc(5,ae,74,5,"ng-template",null,3,s.W1O),s.YNc(7,Ge,53,5,"ng-template",null,4,s.W1O),s.YNc(9,vt,66,5,"ng-template",null,5,s.W1O)),2&ye){const yt=s.MAs(2),pe=s.MAs(4),Je=s.MAs(6),St=s.MAs(8),kt=s.MAs(10);s.Q6J("ngTemplateOutlet",1===qe.stepNumber?yt:2===qe.stepNumber?pe:3===qe.stepNumber?Je:4===qe.stepNumber?St:kt)}},directives:[A.tP,Z.xw,Z.yH,Z.Wh,A.mk,ve.oO,j.n5,j.$j],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:[ze.l]}}),Ke})();function Ne(Ke,_t){1&Ke&&s.GkF(0)}const ue=function(Ke,_t){return{"small-svg":Ke,"large-svg":_t}};function Oe(Ke,_t){if(1&Ke){const ye=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ye),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",7),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"g",8),s.TgZ(5,"g",9),s.TgZ(6,"g",10),s.TgZ(7,"g",11),s._UZ(8,"circle",12),s._UZ(9,"path",13),s.qZA(),s.TgZ(10,"g",14),s._UZ(11,"ellipse",15),s._UZ(12,"ellipse",16),s._UZ(13,"rect",17),s._UZ(14,"rect",18),s._UZ(15,"rect",19),s._UZ(16,"rect",20),s._UZ(17,"rect",21),s._UZ(18,"rect",22),s._UZ(19,"rect",23),s._UZ(20,"rect",24),s._UZ(21,"rect",25),s._UZ(22,"rect",26),s._UZ(23,"rect",27),s._UZ(24,"rect",28),s._UZ(25,"rect",29),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(26,"div",30),s.TgZ(27,"mat-card-title"),s._uU(28,"Loop In explained."),s.qZA(),s.qZA(),s.TgZ(29,"div",31),s.TgZ(30,"mat-card-subtitle",32),s._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ye=s.oxw();s.Q6J("@sliderAnimation",ye.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,ue,ye.screenSize===ye.screenSizeEnum.XS,ye.screenSize!==ye.screenSizeEnum.XS))}}function Pe(Ke,_t){if(1&Ke){const ye=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ye),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",33),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",34),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",8),s.TgZ(10,"g",38),s.TgZ(11,"g",39),s.TgZ(12,"g",40),s._UZ(13,"rect",41),s._UZ(14,"rect",42),s._UZ(15,"rect",43),s._UZ(16,"circle",44),s._UZ(17,"rect",45),s._UZ(18,"rect",46),s._UZ(19,"circle",47),s._UZ(20,"rect",48),s._UZ(21,"rect",49),s._UZ(22,"rect",50),s._UZ(23,"rect",51),s._UZ(24,"rect",52),s._UZ(25,"circle",53),s._UZ(26,"circle",54),s._UZ(27,"circle",55),s.qZA(),s.TgZ(28,"g",56),s.TgZ(29,"g",57),s.TgZ(30,"g",58),s._UZ(31,"path",59),s._UZ(32,"rect",60),s._UZ(33,"polygon",61),s.TgZ(34,"g",62),s._UZ(35,"path",63),s.qZA(),s._UZ(36,"rect",64),s._UZ(37,"rect",65),s._UZ(38,"rect",66),s._UZ(39,"rect",67),s._UZ(40,"rect",68),s._UZ(41,"rect",69),s._UZ(42,"rect",70),s._UZ(43,"path",71),s._UZ(44,"path",72),s.qZA(),s.TgZ(45,"g",73),s._UZ(46,"path",74),s._UZ(47,"path",75),s._UZ(48,"path",76),s._UZ(49,"path",77),s._UZ(50,"path",78),s._UZ(51,"path",79),s._UZ(52,"path",80),s._UZ(53,"path",81),s._UZ(54,"path",82),s._UZ(55,"path",83),s._UZ(56,"path",84),s._UZ(57,"circle",85),s._UZ(58,"circle",86),s.qZA(),s._UZ(59,"path",87),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(60,"div",30),s.TgZ(61,"mat-card-title"),s._uU(62,"Step 1: Deciding to Loop In"),s.qZA(),s.qZA(),s.TgZ(63,"div",31),s.TgZ(64,"mat-card-subtitle",32),s._uU(65," Your outgoing capacity is depleted and you want to regain it without opening new channels. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ye=s.oxw();s.Q6J("@sliderAnimation",ye.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,ue,ye.screenSize===ye.screenSizeEnum.XS,ye.screenSize!==ye.screenSizeEnum.XS))}}function q(Ke,_t){if(1&Ke){const ye=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ye),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",88),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",89),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",90),s.TgZ(10,"g",91),s.TgZ(11,"g",92),s.TgZ(12,"g",93),s.TgZ(13,"g",94),s._UZ(14,"circle",95),s._UZ(15,"path",96),s.TgZ(16,"g",97),s._UZ(17,"polygon",98),s._UZ(18,"polygon",99),s._UZ(19,"path",100),s.qZA(),s.TgZ(20,"g",101),s._UZ(21,"polygon",102),s._UZ(22,"path",103),s._UZ(23,"rect",104),s._UZ(24,"path",105),s._UZ(25,"rect",106),s._UZ(26,"rect",107),s._UZ(27,"rect",108),s._UZ(28,"rect",109),s._UZ(29,"circle",110),s._UZ(30,"path",111),s.TgZ(31,"g",112),s.TgZ(32,"g",113),s._UZ(33,"g",114),s.qZA(),s._UZ(34,"g",115),s.qZA(),s.qZA(),s.qZA(),s.TgZ(35,"g",116),s.TgZ(36,"g",40),s._UZ(37,"rect",117),s._UZ(38,"rect",42),s._UZ(39,"rect",43),s._UZ(40,"circle",118),s._UZ(41,"rect",45),s._UZ(42,"rect",46),s._UZ(43,"circle",119),s._UZ(44,"rect",48),s._UZ(45,"rect",49),s._UZ(46,"rect",50),s._UZ(47,"rect",51),s._UZ(48,"rect",52),s._UZ(49,"circle",120),s._UZ(50,"circle",54),s._UZ(51,"circle",55),s._UZ(52,"circle",121),s.qZA(),s.TgZ(53,"g",56),s.TgZ(54,"g",57),s.TgZ(55,"g",58),s._UZ(56,"path",59),s._UZ(57,"rect",60),s._UZ(58,"polygon",61),s.TgZ(59,"g",122),s._UZ(60,"path",63),s.qZA(),s._UZ(61,"rect",123),s._UZ(62,"rect",124),s._UZ(63,"rect",125),s._UZ(64,"rect",126),s._UZ(65,"rect",127),s._UZ(66,"rect",128),s._UZ(67,"rect",129),s._UZ(68,"path",130),s._UZ(69,"path",72),s.qZA(),s.TgZ(70,"g",73),s._UZ(71,"path",131),s._UZ(72,"path",132),s._UZ(73,"path",133),s._UZ(74,"path",134),s._UZ(75,"path",135),s._UZ(76,"path",136),s._UZ(77,"path",80),s._UZ(78,"path",81),s._UZ(79,"path",137),s._UZ(80,"path",83),s._UZ(81,"path",138),s._UZ(82,"circle",85),s._UZ(83,"circle",86),s.qZA(),s._UZ(84,"path",139),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s._UZ(85,"path",140),s._UZ(86,"path",141),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(87,"div",30),s.TgZ(88,"mat-card-title"),s._uU(89,"Step 2: Send payment out"),s.qZA(),s.qZA(),s.TgZ(90,"div",31),s.TgZ(91,"mat-card-subtitle",32),s._uU(92," Your node sends funds on-chain to loop server to be swapped with off-chain liquidity. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ye=s.oxw();s.Q6J("@sliderAnimation",ye.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,ue,ye.screenSize===ye.screenSizeEnum.XS,ye.screenSize!==ye.screenSizeEnum.XS))}}function $(Ke,_t){if(1&Ke){const ye=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ye),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",142),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"g",90),s.TgZ(5,"g",143),s.TgZ(6,"g",144),s.TgZ(7,"g"),s.TgZ(8,"g",145),s.TgZ(9,"g",146),s._UZ(10,"circle",12),s._UZ(11,"path",147),s.qZA(),s.TgZ(12,"g",14),s._UZ(13,"ellipse",148),s._UZ(14,"ellipse",16),s._UZ(15,"rect",17),s._UZ(16,"rect",18),s._UZ(17,"rect",19),s._UZ(18,"rect",20),s._UZ(19,"rect",21),s._UZ(20,"rect",22),s._UZ(21,"rect",23),s._UZ(22,"rect",24),s._UZ(23,"rect",25),s._UZ(24,"rect",26),s._UZ(25,"rect",27),s._UZ(26,"rect",28),s._UZ(27,"rect",29),s.qZA(),s.qZA(),s.TgZ(28,"g",149),s._UZ(29,"polygon",150),s._UZ(30,"polygon",99),s._UZ(31,"path",151),s.qZA(),s.TgZ(32,"g",152),s._UZ(33,"polygon",102),s._UZ(34,"path",103),s._UZ(35,"rect",104),s._UZ(36,"path",105),s._UZ(37,"rect",106),s._UZ(38,"rect",107),s._UZ(39,"rect",108),s._UZ(40,"rect",109),s._UZ(41,"circle",110),s._UZ(42,"path",111),s.TgZ(43,"g",112),s.TgZ(44,"g",113),s._UZ(45,"g",114),s.qZA(),s._UZ(46,"g",115),s.qZA(),s.qZA(),s.qZA(),s._UZ(47,"path",153),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(48,"div",30),s.TgZ(49,"mat-card-title"),s._uU(50,"Step 3: Recieve Funds Off-chain"),s.qZA(),s.qZA(),s.TgZ(51,"div",31),s.TgZ(52,"mat-card-subtitle",32),s._uU(53," Loop server sends equivalent funds off-chain to your node by making a lightning payment to you. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ye=s.oxw();s.Q6J("@sliderAnimation",ye.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,ue,ye.screenSize===ye.screenSizeEnum.XS,ye.screenSize!==ye.screenSizeEnum.XS))}}function ce(Ke,_t){if(1&Ke){const ye=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ye),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",154),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",34),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",90),s.TgZ(10,"g",155),s.TgZ(11,"g",156),s.TgZ(12,"g",157),s.TgZ(13,"g",158),s.TgZ(14,"g",40),s._UZ(15,"rect",159),s._UZ(16,"rect",160),s._UZ(17,"rect",161),s._UZ(18,"circle",162),s._UZ(19,"rect",163),s._UZ(20,"rect",164),s._UZ(21,"circle",165),s._UZ(22,"rect",166),s._UZ(23,"rect",167),s._UZ(24,"rect",168),s._UZ(25,"rect",169),s._UZ(26,"circle",170),s._UZ(27,"circle",171),s.qZA(),s.TgZ(28,"g",172),s._UZ(29,"path",173),s._UZ(30,"rect",174),s._UZ(31,"polygon",175),s._UZ(32,"circle",176),s._UZ(33,"path",177),s._UZ(34,"rect",178),s._UZ(35,"rect",179),s._UZ(36,"rect",180),s._UZ(37,"rect",181),s._UZ(38,"rect",182),s._UZ(39,"rect",183),s._UZ(40,"rect",184),s._UZ(41,"path",185),s._UZ(42,"path",186),s.qZA(),s._UZ(43,"path",187),s.qZA(),s.qZA(),s._UZ(44,"circle",188),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(45,"div",30),s.TgZ(46,"mat-card-title"),s._uU(47,"Done!"),s.qZA(),s.qZA(),s.TgZ(48,"div",31),s.TgZ(49,"mat-card-subtitle",32),s._uU(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. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ye=s.oxw();s.Q6J("@sliderAnimation",ye.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,ue,ye.screenSize===ye.screenSizeEnum.XS,ye.screenSize!==ye.screenSizeEnum.XS))}}let Me=(()=>{class Ke{constructor(ye){this.commonService=ye,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new s.vpe,this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(ye){2===ye.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===ye.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return Ke.\u0275fac=function(ye){return new(ye||Ke)(s.Y36(w.v))},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["rtl-loop-in-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],["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(ye,qe){if(1&ye&&(s.YNc(0,Ne,1,0,"ng-container",0),s.YNc(1,Oe,32,5,"ng-template",null,1,s.W1O),s.YNc(3,Pe,66,5,"ng-template",null,2,s.W1O),s.YNc(5,q,93,5,"ng-template",null,3,s.W1O),s.YNc(7,$,54,5,"ng-template",null,4,s.W1O),s.YNc(9,ce,51,5,"ng-template",null,5,s.W1O)),2&ye){const yt=s.MAs(2),pe=s.MAs(4),Je=s.MAs(6),St=s.MAs(8),kt=s.MAs(10);s.Q6J("ngTemplateOutlet",1===qe.stepNumber?yt:2===qe.stepNumber?pe:3===qe.stepNumber?Je:4===qe.stepNumber?St:kt)}},directives:[A.tP,Z.xw,Z.yH,Z.Wh,A.mk,ve.oO,j.n5,j.$j],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:[ze.l]}}),Ke})();const Ue=["stepper"];function lt(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",48),s.TgZ(1,"p",49),s.TgZ(2,"strong"),s._uU(3,"Channel Peer:\xa0"),s.qZA(),s._uU(4),s.ALo(5,"titlecase"),s.qZA(),s.TgZ(6,"p",50),s.TgZ(7,"strong"),s._uU(8,"Channel ID:\xa0"),s.qZA(),s._uU(9),s.qZA(),s._UZ(10,"p",50),s.qZA()),2&Ke){const ye=s.oxw(2);s.xp6(4),s.Oqu(s.lcZ(5,2,ye.channel.remote_alias)),s.xp6(5),s.Oqu(ye.channel.chan_id)}}function nt(Ke,_t){if(1&Ke&&s._uU(0),2&Ke){const ye=s.oxw(2);s.Oqu(ye.inputFormLabel)}}function ft(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Amount is required."),s.qZA())}function it(Ke,_t){if(1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"number"),s.qZA()),2&Ke){const ye=s.oxw(2);s.xp6(1),s.hij("Amount must be greater than or equal to ",s.lcZ(2,1,ye.minQuote.amount),".")}}function rt(Ke,_t){if(1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"number"),s.qZA()),2&Ke){const ye=s.oxw(2);s.xp6(1),s.hij("Amount must be less than or equal to ",s.lcZ(2,1,ye.maxQuote.amount),".")}}function Mt(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Confirmation target is required."),s.qZA())}function Zt(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Confirmation target must be a positive number."),s.qZA())}function Ft(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Percentage is required."),s.qZA())}function Vt(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Percentage must be a positive number."),s.qZA())}function Ii(Ke,_t){if(1&Ke&&(s.TgZ(0,"mat-form-field",50),s._UZ(1,"input",51),s.YNc(2,Ft,2,0,"mat-error",25),s.YNc(3,Vt,2,0,"mat-error",25),s.qZA()),2&Ke){const ye=s.oxw(2);s.xp6(1),s.Q6J("step",1),s.xp6(1),s.Q6J("ngIf",null==ye.inputFormGroup.controls.routingFeePercent.errors?null:ye.inputFormGroup.controls.routingFeePercent.errors.required),s.xp6(1),s.Q6J("ngIf",null==ye.inputFormGroup.controls.routingFeePercent.errors?null:ye.inputFormGroup.controls.routingFeePercent.errors.min)}}function jt(Ke,_t){1&Ke&&(s.TgZ(0,"div",52),s.TgZ(1,"mat-slide-toggle",53),s._uU(2,"Fast"),s.qZA(),s.TgZ(3,"mat-icon",54),s._uU(4,"info_outline"),s.qZA(),s.qZA())}function ei(Ke,_t){if(1&Ke&&s._uU(0),2&Ke){const ye=s.oxw(2);s.Oqu(ye.quoteFormLabel)}}function ki(Ke,_t){1&Ke&&(s.TgZ(0,"p",55),s.TgZ(1,"mat-icon",56),s._uU(2,"close"),s.qZA(),s._uU(3,"Local balance amount is insufficient for swap."),s.qZA())}function ai(Ke,_t){if(1&Ke){const ye=s.EpF();s.TgZ(0,"button",57),s.NdJ("click",function(){return s.CHM(ye),s.oxw(2).onValidateAmount()}),s._uU(1,"Next"),s.qZA()}}function hi(Ke,_t){if(1&Ke){const ye=s.EpF();s.TgZ(0,"button",58),s.NdJ("click",function(){return s.CHM(ye),s.oxw(2).onLoop()}),s._uU(1),s.qZA()}if(2&Ke){const ye=s.oxw(2);s.xp6(1),s.hij("Initiate ",ye.loopDirectionCaption,"")}}function Ze(Ke,_t){if(1&Ke&&s._uU(0),2&Ke){const ye=s.oxw(3);s.Oqu(ye.addressFormLabel)}}function Ee(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Address is required."),s.qZA())}function G(Ke,_t){if(1&Ke){const ye=s.EpF();s.TgZ(0,"mat-step",16),s.TgZ(1,"form",17),s.YNc(2,Ze,1,1,"ng-template",18),s.TgZ(3,"div",59),s.TgZ(4,"mat-radio-group",60),s.NdJ("change",function(yt){return s.CHM(ye),s.oxw(2).onAddressTypeChange(yt)}),s.TgZ(5,"mat-radio-button",61),s._uU(6,"Node Local Address"),s.qZA(),s.TgZ(7,"mat-radio-button",62),s._uU(8,"External Address"),s.qZA(),s.qZA(),s.TgZ(9,"mat-form-field",63),s._UZ(10,"input",64),s.YNc(11,Ee,2,0,"mat-error",25),s.qZA(),s.qZA(),s.TgZ(12,"div",29),s.TgZ(13,"button",65),s.NdJ("click",function(){return s.CHM(ye),s.oxw(2).onLoop()}),s._uU(14),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ye=s.oxw(2);s.Q6J("stepControl",ye.addressFormGroup)("editable",ye.flgEditable),s.xp6(1),s.Q6J("formGroup",ye.addressFormGroup),s.xp6(9),s.Q6J("required","external"===ye.addressFormGroup.controls.addressType.value),s.xp6(1),s.Q6J("ngIf",null==ye.addressFormGroup.controls.address.errors?null:ye.addressFormGroup.controls.address.errors.required),s.xp6(3),s.hij("Initiate ",ye.loopDirectionCaption,"")}}function ge(Ke,_t){if(1&Ke&&s._uU(0),2&Ke){const ye=s.oxw(2);s.hij("",ye.loopDirectionCaption," Status")}}function De(Ke,_t){if(1&Ke&&(s.TgZ(0,"mat-icon",66),s._uU(1),s.qZA()),2&Ke){const ye=s.oxw(2);s.xp6(1),s.Oqu(ye.loopStatus&&null!=ye.loopStatus&&ye.loopStatus.id_bytes?"check":"close")}}function et(Ke,_t){1&Ke&&s._UZ(0,"div")}function $t(Ke,_t){1&Ke&&s._UZ(0,"mat-progress-bar",67)}function Nt(Ke,_t){if(1&Ke&&(s.TgZ(0,"h4",68),s._uU(1),s.qZA()),2&Ke){const ye=s.oxw(2);s.xp6(1),s.Oqu(ye.loopStatus&&ye.loopStatus.error?ye.loopDirectionCaption+" failed.":ye.loopStatus&&ye.loopStatus.id_bytes&&ye.channel?ye.loopDirectionCaption+" request placed successfully. You can check the status of the request on the 'Loop' menu.":ye.loopDirectionCaption+" request placed successfully.")}}function Jt(Ke,_t){if(1&Ke){const ye=s.EpF();s.TgZ(0,"button",69),s.NdJ("click",function(){return s.CHM(ye),s.oxw(2).goToLoop()}),s._uU(1,"Check Status"),s.qZA()}}function ct(Ke,_t){if(1&Ke){const ye=s.EpF();s.TgZ(0,"button",70),s.NdJ("click",function(){return s.CHM(ye),s.oxw(2).onRestart()}),s._uU(1,"Start Again"),s.qZA()}}function ke(Ke,_t){if(1&Ke){const ye=s.EpF();s.TgZ(0,"div",3),s.TgZ(1,"div",4),s.TgZ(2,"mat-card-header",5),s.TgZ(3,"div",6),s.TgZ(4,"span",7),s._uU(5),s.qZA(),s.qZA(),s.TgZ(6,"div",8),s.TgZ(7,"button",9),s.NdJ("click",function(){return s.CHM(ye),s.oxw().showInfo()}),s._uU(8,"?"),s.qZA(),s.TgZ(9,"button",10),s.NdJ("click",function(){return s.CHM(ye),s.oxw().onClose()}),s._uU(10,"X"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(11,"mat-card-content",11),s.TgZ(12,"div",12),s.YNc(13,lt,11,4,"div",13),s.TgZ(14,"mat-vertical-stepper",14,15),s.NdJ("selectionChange",function(yt){return s.CHM(ye),s.oxw().stepSelectionChanged(yt)}),s.TgZ(16,"mat-step",16),s.TgZ(17,"form",17),s.YNc(18,nt,1,1,"ng-template",18),s.TgZ(19,"div",19),s._UZ(20,"rtl-loop-quote",20),s._UZ(21,"rtl-loop-quote",20),s.qZA(),s.TgZ(22,"div",21),s.TgZ(23,"mat-form-field",22),s._UZ(24,"input",23),s.TgZ(25,"mat-hint"),s._uU(26),s.ALo(27,"number"),s.ALo(28,"number"),s.qZA(),s.TgZ(29,"span",24),s._uU(30,"Sats"),s.qZA(),s.YNc(31,ft,2,0,"mat-error",25),s.YNc(32,it,3,3,"mat-error",25),s.YNc(33,rt,3,3,"mat-error",25),s.qZA(),s.TgZ(34,"mat-form-field",22),s._UZ(35,"input",26),s.YNc(36,Mt,2,0,"mat-error",25),s.YNc(37,Zt,2,0,"mat-error",25),s.qZA(),s.YNc(38,Ii,4,3,"mat-form-field",27),s.qZA(),s.YNc(39,jt,5,0,"div",28),s.TgZ(40,"div",29),s.TgZ(41,"button",30),s.NdJ("click",function(){return s.CHM(ye),s.oxw().onEstimateQuote()}),s._uU(42,"Estimate Quote"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(43,"mat-step",16),s.TgZ(44,"form",17),s.YNc(45,ei,1,1,"ng-template",18),s._UZ(46,"rtl-loop-quote",31),s.YNc(47,ki,4,0,"p",32),s.TgZ(48,"div",29),s.YNc(49,ai,2,0,"button",33),s.YNc(50,hi,2,1,"button",34),s.qZA(),s.qZA(),s.qZA(),s.YNc(51,G,15,6,"mat-step",35),s.TgZ(52,"mat-step",36),s.TgZ(53,"form",17),s.YNc(54,ge,1,1,"ng-template",18),s.TgZ(55,"div",37),s.TgZ(56,"mat-expansion-panel",38),s.TgZ(57,"mat-expansion-panel-header"),s.TgZ(58,"mat-panel-title"),s.TgZ(59,"span",39),s._uU(60),s.YNc(61,De,2,1,"mat-icon",40),s.qZA(),s.qZA(),s.qZA(),s.YNc(62,et,1,0,"div",41),s.qZA(),s.YNc(63,$t,1,0,"mat-progress-bar",42),s.qZA(),s.YNc(64,Nt,2,1,"h4",43),s.TgZ(65,"div",29),s.YNc(66,Jt,2,0,"button",44),s.YNc(67,ct,2,0,"button",45),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(68,"div",46),s.TgZ(69,"button",47),s._uU(70,"Close"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ye=s.oxw(),qe=s.MAs(2);s.Q6J("@opacityAnimation",void 0),s.xp6(3),s.Q6J("fxFlex",ye.screenSize===ye.screenSizeEnum.XS||ye.screenSize===ye.screenSizeEnum.SM?"83":"91"),s.xp6(2),s.Oqu(ye.channel?"Channel "+ye.loopDirectionCaption:ye.loopDirectionCaption),s.xp6(1),s.Q6J("fxFlex",ye.screenSize===ye.screenSizeEnum.XS||ye.screenSize===ye.screenSizeEnum.SM?"17":"9"),s.xp6(7),s.Q6J("ngIf",ye.channel),s.xp6(1),s.Q6J("linear",!0),s.xp6(2),s.Q6J("stepControl",ye.inputFormGroup)("editable",ye.flgEditable),s.xp6(1),s.Q6J("formGroup",ye.inputFormGroup),s.xp6(3),s.Q6J("quote",ye.minQuote)("termCaption","min")("panelExpanded",!1)("showPanel",!0),s.xp6(1),s.Q6J("quote",ye.maxQuote)("termCaption","max")("panelExpanded",!1)("showPanel",!0),s.xp6(2),s.Q6J("fxFlex",ye.direction===ye.LoopTypeEnum.LOOP_OUT?"35":"48"),s.xp6(1),s.Q6J("step",1e3),s.xp6(2),s.AsE("Range: ",s.lcZ(27,51,ye.minQuote.amount),"-",s.lcZ(28,53,ye.maxQuote.amount),""),s.xp6(5),s.Q6J("ngIf",null==ye.inputFormGroup.controls.amount.errors?null:ye.inputFormGroup.controls.amount.errors.required),s.xp6(1),s.Q6J("ngIf",null==ye.inputFormGroup.controls.amount.errors?null:ye.inputFormGroup.controls.amount.errors.min),s.xp6(1),s.Q6J("ngIf",null==ye.inputFormGroup.controls.amount.errors?null:ye.inputFormGroup.controls.amount.errors.max),s.xp6(1),s.Q6J("fxFlex",ye.direction===ye.LoopTypeEnum.LOOP_OUT?"30":"48"),s.xp6(1),s.Q6J("step",1),s.xp6(1),s.Q6J("ngIf",null==ye.inputFormGroup.controls.sweepConfTarget.errors?null:ye.inputFormGroup.controls.sweepConfTarget.errors.required),s.xp6(1),s.Q6J("ngIf",null==ye.inputFormGroup.controls.sweepConfTarget.errors?null:ye.inputFormGroup.controls.sweepConfTarget.errors.min),s.xp6(1),s.Q6J("ngIf",ye.direction===ye.LoopTypeEnum.LOOP_OUT),s.xp6(1),s.Q6J("ngIf",ye.direction===ye.LoopTypeEnum.LOOP_OUT),s.xp6(4),s.Q6J("stepControl",ye.quoteFormGroup)("editable",ye.flgEditable),s.xp6(1),s.Q6J("formGroup",ye.quoteFormGroup),s.xp6(2),s.Q6J("quote",ye.quote)("showPanel",!1),s.xp6(1),s.Q6J("ngIf",ye.inputFormGroup.controls.amount.value>ye.localBalanceToCompare),s.xp6(2),s.Q6J("ngIf",ye.direction===ye.LoopTypeEnum.LOOP_OUT),s.xp6(1),s.Q6J("ngIf",ye.direction===ye.LoopTypeEnum.LOOP_IN),s.xp6(1),s.Q6J("ngIf",ye.direction===ye.LoopTypeEnum.LOOP_OUT),s.xp6(1),s.Q6J("stepControl",ye.statusFormGroup),s.xp6(1),s.Q6J("formGroup",ye.statusFormGroup),s.xp6(3),s.Q6J("expanded",!!ye.loopStatus),s.xp6(4),s.Oqu(ye.loopStatus?ye.loopStatus.id_bytes?ye.loopDirectionCaption+" request details":ye.loopDirectionCaption+" error details":"Waiting for "+ye.loopDirectionCaption+" request..."),s.xp6(1),s.Q6J("ngIf",ye.loopStatus),s.xp6(1),s.Q6J("ngIf",!ye.loopStatus)("ngIfElse",qe),s.xp6(1),s.Q6J("ngIf",!ye.loopStatus),s.xp6(1),s.Q6J("ngIf",ye.loopStatus),s.xp6(2),s.Q6J("ngIf",ye.loopStatus&&ye.loopStatus.id_bytes&&ye.channel),s.xp6(1),s.Q6J("ngIf",ye.loopStatus&&(ye.loopStatus.error||!ye.loopStatus.id_bytes)),s.xp6(2),s.Q6J("mat-dialog-close",!1)}}function Be(Ke,_t){if(1&Ke&&s._UZ(0,"rtl-loop-status",71),2&Ke){const ye=s.oxw();s.Q6J("loopStatus",ye.loopStatus)}}function at(Ke,_t){if(1&Ke){const ye=s.EpF();s.TgZ(0,"rtl-loop-out-info-graphics",88),s.NdJ("stepNumberChange",function(yt){return s.CHM(ye),s.oxw(2).stepNumber=yt}),s.qZA()}if(2&Ke){const ye=s.oxw(2);s.Q6J("stepNumber",ye.stepNumber)("animationDirection",ye.animationDirection)}}function st(Ke,_t){if(1&Ke){const ye=s.EpF();s.TgZ(0,"rtl-loop-in-info-graphics",88),s.NdJ("stepNumberChange",function(yt){return s.CHM(ye),s.oxw(2).stepNumber=yt}),s.qZA()}if(2&Ke){const ye=s.oxw(2);s.Q6J("stepNumber",ye.stepNumber)("animationDirection",ye.animationDirection)}}const At=function(Ke,_t){return{"dot-primary":Ke,"dot-primary-lighter":_t}};function li(Ke,_t){if(1&Ke){const ye=s.EpF();s.TgZ(0,"span",89),s.NdJ("click",function(){const pe=s.CHM(ye).$implicit;return s.oxw(2).onStepChanged(pe)}),s._UZ(1,"p",90),s.qZA()}if(2&Ke){const ye=_t.$implicit,qe=s.oxw(2);s.xp6(1),s.Q6J("ngClass",s.WLB(1,At,qe.stepNumber===ye,qe.stepNumber!==ye))}}function Bt(Ke,_t){if(1&Ke){const ye=s.EpF();s.TgZ(0,"button",91),s.NdJ("click",function(){return s.CHM(ye),s.oxw(2).onReadMore()}),s._uU(1,"Read More"),s.qZA()}}function Rt(Ke,_t){if(1&Ke){const ye=s.EpF();s.TgZ(0,"button",92),s.NdJ("click",function(){return s.CHM(ye),s.oxw(2).onStepChanged(4)}),s._uU(1,"Back"),s.qZA()}}function Li(Ke,_t){if(1&Ke){const ye=s.EpF();s.TgZ(0,"button",93),s.NdJ("click",function(){s.CHM(ye);const yt=s.oxw(2);return yt.flgShowInfo=!1,yt.stepNumber=1}),s._uU(1,"Close"),s.qZA()}}function si(Ke,_t){if(1&Ke){const ye=s.EpF();s.TgZ(0,"button",94),s.NdJ("click",function(){s.CHM(ye);const yt=s.oxw(2);return yt.flgShowInfo=!1,yt.stepNumber=1}),s._uU(1,"Close"),s.qZA()}}function ci(Ke,_t){if(1&Ke){const ye=s.EpF();s.TgZ(0,"button",95),s.NdJ("click",function(){s.CHM(ye);const yt=s.oxw(2);return yt.onStepChanged(yt.stepNumber-1)}),s._uU(1,"Back"),s.qZA()}}function sn(Ke,_t){if(1&Ke){const ye=s.EpF();s.TgZ(0,"button",96),s.NdJ("click",function(){s.CHM(ye);const yt=s.oxw(2);return yt.onStepChanged(yt.stepNumber+1)}),s._uU(1,"Next"),s.qZA()}}const Ui=function(){return[1,2,3,4,5]};function Di(Ke,_t){if(1&Ke){const ye=s.EpF();s.TgZ(0,"div",72),s.TgZ(1,"div",19),s.TgZ(2,"mat-card-header",73),s.TgZ(3,"div",74),s._UZ(4,"span",7),s.qZA(),s.TgZ(5,"div",75),s.TgZ(6,"button",76),s.NdJ("click",function(){s.CHM(ye);const yt=s.oxw();return yt.flgShowInfo=!1,yt.stepNumber=1}),s._uU(7,"X"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(8,"mat-card-content",77),s.YNc(9,at,1,2,"rtl-loop-out-info-graphics",78),s.YNc(10,st,1,2,"rtl-loop-in-info-graphics",78),s.qZA(),s.TgZ(11,"div",79),s.YNc(12,li,2,4,"span",80),s.qZA(),s.TgZ(13,"div",81),s.YNc(14,Bt,2,0,"button",82),s.YNc(15,Rt,2,0,"button",83),s.YNc(16,Li,2,0,"button",84),s.YNc(17,si,2,0,"button",85),s.YNc(18,ci,2,0,"button",86),s.YNc(19,sn,2,0,"button",87),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ye=s.oxw();s.Q6J("@opacityAnimation",void 0),s.xp6(9),s.Q6J("ngIf",ye.direction===ye.LoopTypeEnum.LOOP_OUT),s.xp6(1),s.Q6J("ngIf",ye.direction===ye.LoopTypeEnum.LOOP_IN),s.xp6(2),s.Q6J("ngForOf",s.DdM(10,Ui)),s.xp6(2),s.Q6J("ngIf",5===ye.stepNumber),s.xp6(1),s.Q6J("ngIf",5===ye.stepNumber),s.xp6(1),s.Q6J("ngIf",5===ye.stepNumber),s.xp6(1),s.Q6J("ngIf",ye.stepNumber<5),s.xp6(1),s.Q6J("ngIf",ye.stepNumber>1&&ye.stepNumber<5),s.xp6(1),s.Q6J("ngIf",ye.stepNumber<5)}}let Xi=(()=>{class Ke{constructor(ye,qe,yt,pe,Je,St,kt,yi,Ni){this.dialogRef=ye,this.data=qe,this.store=yt,this.loopService=pe,this.formBuilder=Je,this.decimalPipe=St,this.logger=kt,this.router=yi,this.commonService=Ni,this.faInfoCircle=o.sqG,this.LoopTypeEnum=l.$I,this.direction=l.$I.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=l.cu,this.animationDirection="forward",this.flgEditable=!0,this.localBalanceToCompare=null,this.unSubs=[new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x]}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,this.loopDirectionCaption=this.direction===l.$I.LOOP_IN?"Loop in":"Loop out",this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.minQuote.amount,[e.kI.required,e.kI.min(this.minQuote.amount),e.kI.max(this.maxQuote.amount)]],sweepConfTarget:[6,[e.kI.required,e.kI.min(1)]],routingFeePercent:[2,[e.kI.required,e.kI.min(0)]],fast:[!1,[e.kI.required]]}),this.quoteFormGroup=this.formBuilder.group({}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[e.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.store.select(R.ZW).pipe((0,v.R)(this.unSubs[6])).subscribe(ye=>{this.localBalanceToCompare=this.channel?+this.channel.local_balance:+ye.lightningBalance.local})}ngAfterViewInit(){this.inputFormGroup.setErrors({Invalid:!0}),this.direction===l.$I.LOOP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.inputFormGroup.valueChanges.pipe((0,v.R)(this.unSubs[4])).subscribe(ye=>{this.inputFormGroup.setErrors({Invalid:!0})}),this.direction===l.$I.LOOP_OUT&&this.addressFormGroup.valueChanges.pipe((0,v.R)(this.unSubs[5])).subscribe(ye=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(ye){"external"===ye.value?(this.addressFormGroup.controls.address.setValidators([e.kI.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.inputFormGroup.controls.amount.value<=this.localBalanceToCompare&&this.stepper.next()}onLoop(){if(!this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2||this.direction===l.$I.LOOP_OUT&&(!this.inputFormGroup.controls.routingFeePercent.value||this.inputFormGroup.controls.routingFeePercent.value<0)||this.direction===l.$I.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===l.$I.LOOP_IN)this.loopService.loopIn(this.inputFormGroup.controls.amount.value,+this.quote.swap_fee_sat,+this.quote.htlc_publish_fee_sat,"",!0).pipe((0,v.R)(this.unSubs[0])).subscribe({next:ye=>{this.loopStatus=ye,this.loopService.listSwaps(),this.flgEditable=!0},error:ye=>{this.loopStatus={error:ye},this.flgEditable=!0,this.logger.error(ye)}});else{const ye=Math.ceil(this.inputFormGroup.controls.amount.value*(this.inputFormGroup.controls.routingFeePercent.value/100)),qe="external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",yt=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,ye,+this.quote.htlc_sweep_fee_sat,this.prepayRoutingFee,+this.quote.prepay_amt_sat,+this.quote.swap_fee_sat,yt,qe).pipe((0,v.R)(this.unSubs[1])).subscribe({next:pe=>{this.loopStatus=pe,this.loopService.listSwaps(),this.flgEditable=!0},error:pe=>{this.loopStatus={error:pe},this.flgEditable=!0,this.logger.error(pe)}})}}onEstimateQuote(){if(!this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2)return!0;const ye=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.direction===l.$I.LOOP_IN?this.loopService.getLoopInQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,ye).pipe((0,v.R)(this.unSubs[2])).subscribe(qe=>{this.quote=qe,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,ye).pipe((0,v.R)(this.unSubs[3])).subscribe(qe=>{this.quote=qe,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(ye){switch(ye.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===l.$I.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===l.$I.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===l.$I.LOOP_OUT&&1!==ye.selectedIndex&&ye.selectedIndex{ye.next(null),ye.complete()})}}return Ke.\u0275fac=function(ye){return new(ye||Ke)(s.Y36(C.so),s.Y36(C.WI),s.Y36(L.yh),s.Y36(O.W),s.Y36(e.qu),s.Y36(A.JJ),s.Y36(E.mQ),s.Y36(P.F0),s.Y36(w.v))},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["rtl-loop-modal"]],viewQuery:function(ye,qe){if(1&ye&&s.Gf(Ue,5),2&ye){let yt;s.iGM(yt=s.CRH())&&(qe.stepper=yt.first)}},decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["loopStatusBlock",""],["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,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["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,"linear","selectionChange"],["stepper",""],[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,"quote","termCaption","panelExpanded","showPanel"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],[3,"fxFlex"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["matInput","","placeholder","Sweep Confirmation Target","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","","placeholder","Max Off-chain Routing Fee (%)","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"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Address","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"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["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,"stepNumber","animationDirection","stepNumberChange"],["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(ye,qe){1&ye&&(s.YNc(0,ke,71,55,"div",0),s.YNc(1,Be,1,1,"ng-template",null,1,s.W1O),s.YNc(3,Di,20,11,"div",2)),2&ye&&(s.Q6J("ngIf",!qe.flgShowInfo),s.xp6(3),s.Q6J("ngIf",qe.flgShowInfo))},directives:[A.O5,Z.xw,Z.yH,Z.Wh,j.dk,W.lW,j.dn,ie.Vq,ie.C0,e._Y,e.JL,e.sg,ie.VY,D,I.KE,x.Nt,e.wV,e.Fj,r.h,e.JJ,e.u,e.Q7,I.bx,I.R9,ee.ib,ee.yz,ee.yK,C.ZT,I.TO,b.Rr,he.Hw,re.gM,U.VQ,U.U0,N.pW,Re,A.sg,Fe,Me,A.mk,ve.oO],pipes:[A.JJ,A.rS],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[M._]}}),Ke})()},3390:(Ve,Q,m)=>{"use strict";m.d(Q,{h:()=>t});var e=m(5e3);let t=(()=>{class v{constructor(o){this.el=o}ngAfterContentInit(){setTimeout(()=>{this.el.nativeElement.focus()},500)}}return v.\u0275fac=function(o){return new(o||v)(e.Y36(e.SBq))},v.\u0275dir=e.lG2({type:v,selectors:[["","autoFocus",""]],inputs:{appAutoFocus:"appAutoFocus"}}),v})()},6895:(Ve,Q,m)=>{"use strict";m.d(Q,{y:()=>t});var e=m(5e3);let t=(()=>{class v{constructor(){this.copied=new e.vpe}onClick(o){o.preventDefault(),this.payload&&navigator.clipboard&&navigator.clipboard.writeText(this.payload.toString()).then(()=>{this.copied.emit(this.payload.toString())},M=>{this.copied.emit("Error could not copy text: "+JSON.stringify(M))})}}return v.\u0275fac=function(o){return new(o||v)},v.\u0275dir=e.lG2({type:v,selectors:[["","rtlClipboard",""]],hostBindings:function(o,M){1&o&&e.NdJ("click",function(R){return M.onClick(R)})},inputs:{payload:"payload"},outputs:{copied:"copied"}}),v})()},9843:(Ve,Q,m)=>{"use strict";m.d(Q,{F:()=>v});var e=m(3075),t=m(5e3);let v=(()=>{class C{validate(M){return this.max?e.kI.max(+this.max)(M):null}}return C.\u0275fac=function(M){return new(M||C)},C.\u0275dir=t.lG2({type:C,selectors:[["input","max",""]],inputs:{max:"max"},features:[t._Bn([{provide:e.Cf,useExisting:C,multi:!0}])]}),C})()},6534:(Ve,Q,m)=>{"use strict";m.d(Q,{q:()=>v});var e=m(3075),t=m(5e3);let v=(()=>{class C{validate(M){return this.min?e.kI.min(+this.min)(M):null}}return C.\u0275fac=function(M){return new(M||C)},C.\u0275dir=t.lG2({type:C,selectors:[["input","min",""]],inputs:{min:"min"},features:[t._Bn([{provide:e.Cf,useExisting:C,multi:!0}])]}),C})()},1643:(Ve,Q,m)=>{"use strict";m.d(Q,{a1:()=>o,QM:()=>M,eQ:()=>l,fY:()=>R});var e=m(4004),t=m(5e3),v=m(1402),C=m(5986);let o=(()=>{class s{constructor(O,A){this.router=O,this.sessionService=A}canActivate(O){return!(!this.sessionService.getItem("token")||"settings"!==O.url[0].path&&"auth"!==O.url[0].path&&"true"===this.sessionService.getItem("defaultPassword")&&(this.router.navigate(["/settings/auth"]),1))}}return s.\u0275fac=function(O){return new(O||s)(t.LFG(v.F0),t.LFG(C.m))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac}),s})(),M=(()=>{class s{constructor(O){this.sessionService=O}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(O=>O.lndUnlocked))}}return s.\u0275fac=function(O){return new(O||s)(t.LFG(C.m))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac}),s})(),l=(()=>{class s{constructor(O){this.sessionService=O}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(O=>O.clUnlocked))}}return s.\u0275fac=function(O){return new(O||s)(t.LFG(C.m))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac}),s})(),R=(()=>{class s{constructor(O){this.sessionService=O}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(O=>O.eclUnlocked))}}return s.\u0275fac=function(O){return new(O||s)(t.LFG(C.m))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac}),s})()},62:(Ve,Q,m)=>{"use strict";m.d(Q,{v:()=>O});var e=m(1135),t=m(9646),v=m(2843),C=m(5698),o=m(4004),M=m(262),l=m(7731),R=m(5e3),s=m(8104),L=m(5043);let O=(()=>{class A{constructor(P,w){this.dataService=P,this.logger=w,this.currencyUnits=[],this.CurrencyUnitEnum=l.NT,this.conversionData={data:null,last_fetched:null},this.ratesAPIStatus=l.Bn.UN_INITIATED,this.screenSize=l.cu.MD,this.containerSize={width:0,height:0},this.containerSizeUpdated=new e.X(this.containerSize)}getScreenSize(){return this.screenSize}setScreenSize(P){this.screenSize=P}getContainerSize(){return this.containerSize}setContainerSize(P,w){this.containerSize={width:P,height:w},this.logger.info("Container Size: "+JSON.stringify(this.containerSize)),this.containerSizeUpdated.next(this.containerSize)}sortByKey(P,w,Z,j="asc"){return P.sort("number"===Z?"desc"===j?(W,ie)=>+W[w]>+ie[w]?-1:1:(W,ie)=>+W[w]>+ie[w]?1:-1:"desc"===j?(W,ie)=>W[w]>ie[w]?-1:1:(W,ie)=>W[w]>ie[w]?1:-1)}sortDescByKey(P,w){return P.sort((Z,j)=>{const W=+Z[w],ie=+j[w];return W>ie?-1:W{const W=+Z[w],ie=+j[w];return Wie?1:0})}camelCase(P){return P.replace(/(?:^\w|[A-Z]|\b\w)/g,(w,Z)=>w.toUpperCase()).replace(/\s+/g,"").replace(/-/g," ")}titleCase(P,w,Z){return w&&Z&&""!==w&&""!==Z&&(P=P.replace(new RegExp(w,"g"),Z)),P.indexOf("!\n")>0||P.indexOf(".\n")>0?P.split("\n").reduce((j,W)=>j+W.charAt(0).toUpperCase()+W.substring(1).toLowerCase()+"\n",""):P.indexOf(" ")>0?P.split(" ").reduce((j,W)=>j+W.charAt(0).toUpperCase()+W.substring(1).toLowerCase()+" ",""):P.charAt(0).toUpperCase()+P.substring(1).toLowerCase()}convertCurrency(P,w,Z,j,W){const ie=(new Date).valueOf();return W&&j&&this.ratesAPIStatus!==l.Bn.INITIATED&&(w===l.NT.OTHER||Z===l.NT.OTHER)?this.conversionData.data&&this.conversionData.last_fetched&&ie(this.ratesAPIStatus=l.Bn.COMPLETED,this.conversionData.data=ee&&"object"==typeof ee?ee:ee&&"string"==typeof ee?JSON.parse(ee):{},this.conversionData.last_fetched=ie,this.convertWithFiat(P,w,j))),(0,M.K)(ee=>(this.ratesAPIStatus=l.Bn.ERROR,(0,v._)(()=>this.extractErrorMessage(ee,"Currency Conversion Error.")))))):(0,t.of)(this.convertWithoutFiat(P,w))}convertWithoutFiat(P,w){const Z={};switch(Z[l.NT.SATS]=0,Z[l.NT.BTC]=0,w){case l.NT.SATS:Z[l.NT.SATS]=P,Z[l.NT.BTC]=1e-8*P;break;case l.NT.BTC:Z[l.NT.SATS]=1e8*P,Z[l.NT.BTC]=P}return Z}convertWithFiat(P,w,Z){const j={unit:Z,symbol:this.conversionData.data[Z].symbol};switch(j[l.NT.SATS]=0,j[l.NT.BTC]=0,j[l.NT.OTHER]=0,w){case l.NT.SATS:j[l.NT.SATS]=P,j[l.NT.BTC]=1e-8*P,j[l.NT.OTHER]=1e-8*P*this.conversionData.data[Z].last;break;case l.NT.BTC:j[l.NT.SATS]=1e8*P,j[l.NT.BTC]=P,j[l.NT.OTHER]=P*this.conversionData.data[Z].last;break;case l.NT.OTHER:j[l.NT.SATS]=P/this.conversionData.data[Z].last*1e8,j[l.NT.BTC]=P/this.conversionData.data[Z].last,j[l.NT.OTHER]=P}return j}convertTime(P,w,Z){switch(w){case l.Qk.SECS:switch(Z){case l.Qk.MINS:P/=60;break;case l.Qk.HOURS:P/=3600;break;case l.Qk.DAYS:P/=86400}break;case l.Qk.MINS:switch(Z){case l.Qk.SECS:P*=60;break;case l.Qk.HOURS:P/=60;break;case l.Qk.DAYS:P/=1440}break;case l.Qk.HOURS:switch(Z){case l.Qk.SECS:P*=3600;break;case l.Qk.MINS:P*=60;break;case l.Qk.DAYS:P/=24}break;case l.Qk.DAYS:switch(Z){case l.Qk.SECS:P=3600*P*24;break;case l.Qk.MINS:P=60*P*24;break;case l.Qk.HOURS:P*=24}}return P}downloadFile(P,w,Z=".json",j=".csv"){let W=new Blob;W=".json"===Z?new Blob(["\ufeff"+this.convertToCSV(P)],{type:"text/csv;charset=utf-8;"}):new Blob([P.toString()],{type:"text/plain;charset=utf-8"});const ie=document.createElement("a"),ee=URL.createObjectURL(W);-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&ie.setAttribute("target","_blank"),ie.setAttribute("href",ee),ie.setAttribute("download",w+j),ie.style.visibility="hidden",document.body.appendChild(ie),ie.click(),document.body.removeChild(ie)}convertToCSV(P){const w=[];let Z="",j="",W="";return"object"!=typeof P&&(P=JSON.parse(P)),P.forEach((ee,ve)=>{for(const he in ee)w.findIndex(re=>re===he)<0&&w.push(he)}),W=w.join(",")+"\r\n",P.forEach(ee=>{Z="",w.forEach(ve=>{ee.hasOwnProperty(ve)?Array.isArray(ee[ve])?(j="",ee[ve].forEach((he,re)=>{j+="object"==typeof he?"("+JSON.stringify(he).replace(/\,/g,";")+")":"("+he+")"}),Z+=j+","):Z+="object"==typeof ee[ve]?JSON.stringify(ee[ve]).replace(/\,/g,";")+",":ee[ve]+",":Z+=","}),W+=Z.slice(0,-1)+"\r\n"}),W}isVersionCompatible(P,w){if(P){const Z=P.trim().replace("v","").split("-")[0].split(".")||[],j=w.split(".");return+Z[0]>+j[0]||+Z[0]==+j[0]&&+Z[1]>+j[1]||+Z[0]==+j[0]&&+Z[1]==+j[1]&&+Z[2]>=+j[2]}return!1}extractErrorMessage(P,w="Unknown Error."){const Z=this.titleCase(P.error.text&&"string"==typeof P.error.text&&P.error.text.includes('')?"API Route Does Not Exist.":P.error&&P.error.error&&P.error.error.error&&P.error.error.error.error&&P.error.error.error.error.error&&"string"==typeof P.error.error.error.error.error?P.error.error.error.error.error:P.error&&P.error.error&&P.error.error.error&&P.error.error.error.error&&"string"==typeof P.error.error.error.error?P.error.error.error.error:P.error&&P.error.error&&P.error.error.error&&"string"==typeof P.error.error.error?P.error.error.error:P.error&&P.error.error&&"string"==typeof P.error.error?P.error.error:P.error&&"string"==typeof P.error?P.error:P.error&&P.error.error&&P.error.error.error&&P.error.error.error.error&&P.error.error.error.error.message&&"string"==typeof P.error.error.error.error.message?P.error.error.error.error.message:P.error&&P.error.error&&P.error.error.error&&P.error.error.error.message&&"string"==typeof P.error.error.error.message?P.error.error.error.message:P.error&&P.error.error&&P.error.error.message&&"string"==typeof P.error.error.message?P.error.error.message:P.error&&P.error.message&&"string"==typeof P.error.message?P.error.message:P.message&&"string"==typeof P.message?P.message:w);return this.logger.info("Error Message: "+Z),Z}extractErrorCode(P,w=500){const Z=P.error&&P.error.error&&P.error.error.message&&P.error.error.message.code?P.error.error.message.code:P.error&&P.error.error&&P.error.error.code?P.error.error.code:P.error&&P.error.code?P.error.code:P.code?P.code:P.status?P.status:w;return this.logger.info("Error Code: "+Z),Z}extractErrorNumber(P,w=500){const Z=P.error&&P.error.error&&P.error.error.errno?P.error.error.errno:P.error&&P.error.errno?P.error.errno:P.errno?P.errno:P.status?P.status:w;return this.logger.info("Error Number: "+Z),Z}ngOnDestroy(){this.containerSizeUpdated.next(null),this.containerSizeUpdated.complete()}}return A.\u0275fac=function(P){return new(P||A)(R.LFG(s.D),R.LFG(L.mQ))},A.\u0275prov=R.Yz7({token:A,factory:A.\u0275fac}),A})()},7731:(Ve,Q,m)=>{"use strict";m.d(Q,{pt:()=>t,uA:()=>v,Xz:()=>C,Er:()=>o,LO:()=>M,IV:()=>l,TJ:()=>R,_t:()=>s,Dr:()=>L,Vc:()=>O,vn:()=>A,wZ:()=>E,$v:()=>P,nM:()=>w,g8:()=>Z,ol:()=>j,n_:()=>W,OJ:()=>ie,Qk:()=>ee,NT:()=>ve,Gi:()=>he,cu:()=>re,HW:()=>de,x$:()=>le,p7:()=>se,Zs:()=>y,Fq:()=>i,$I:()=>a,hc:()=>p,Qw:()=>u,gg:()=>_,op:()=>D,JX:()=>I,kO:()=>x,Bn:()=>r,m6:()=>b,IX:()=>U,Xr:()=>N,pg:()=>z,uR:()=>be,AB:()=>xe,lr:()=>Re,Df:()=>ze,H_:()=>Le,hZ:()=>K,gB:()=>we});var e=m(6087);function t(Y){const ae=new e.ye;return ae.itemsPerPageLabel=Y+" per page:",ae}const v=["Sats","BTC"],C={Sats:"1.0-0",BTC:"1.6-6",OTHER:"1.2-2"},o=[{id:"USD",name:"USD"},{id:"AUD",name:"AUD"},{id:"BRL",name:"BRL"},{id:"CAD",name:"CAD"},{id:"CHF",name:"CHF"},{id:"CLP",name:"CLP"},{id:"CNY",name:"CNY"},{id:"DKK",name:"DKK"},{id:"EUR",name:"EUR"},{id:"GBP",name:"GBP"},{id:"HKD",name:"HKD"},{id:"INR",name:"INR"},{id:"ISK",name:"ISK"},{id:"JPY",name:"JPY"},{id:"KRW",name:"KRW"},{id:"NZD",name:"NZD"},{id:"PLN",name:"PLN"},{id:"RUB",name:"RUB"},{id:"SEK",name:"SEK"},{id:"SGD",name:"SGD"},{id:"THB",name:"THB"},{id:"TWD",name:"TWD"}],M=["SECS","MINS","HOURS","DAYS"],l=10,R=[5,10,25,100],s=[{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)"}],L=[{id:"0",name:"Priority (Default)"},{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],O=[{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 Payment Amount",placeholder:"Percentage Limit"}],A=[{feeRateId:"urgent",feeRateType:"Urgent"},{feeRateId:"normal",feeRateType:"Normal"},{feeRateId:"slow",feeRateType:"Slow"},{feeRateId:"customperkb",feeRateType:"Custom (Sats/vByte)"}],E={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 P=(()=>{return(Y=P||(P={})).PAYMENT_RECEIVED="payment-received",Y.PAYMENT_RELAYED="payment-relayed",Y.PAYMENT_SENT="payment-sent",Y.PAYMENT_SETTLING_ONCHAIN="payment-settling-onchain",Y.PAYMENT_FAILED="payment-failed",Y.CHANNEL_OPENED="channel-opened",Y.CHANNEL_STATE_CHANGED="channel-state-changed",Y.CHANNEL_CLOSED="channel-closed",P;var Y})(),w=(()=>{return(Y=w||(w={})).INVOICE="invoice",Y.BLOCK_HEIGHT="block-height",Y.SEND_PAYMENT="send-payment",w;var Y})(),Z=(()=>((Z||(Z={})).INVOICE="invoice",Z))(),j=(()=>{return(Y=j||(j={})).OPERATOR="OPERATOR",Y.MERCHANT="MERCHANT",Y.ALL="ALL",j;var Y})(),W=(()=>{return(Y=W||(W={})).INFORMATION="Information",Y.WARNING="Warning",Y.ERROR="Error",Y.SUCCESS="Success",Y.CONFIRM="Confirm",W;var Y})(),ie=(()=>{return(Y=ie||(ie={})).JWT="JWT",Y.PASSWORD="PASSWORD",ie;var Y})(),ee=(()=>{return(Y=ee||(ee={})).SECS="SECS",Y.MINS="MINS",Y.HOURS="HOURS",Y.DAYS="DAYS",ee;var Y})(),ve=(()=>{return(Y=ve||(ve={})).SATS="Sats",Y.BTC="BTC",Y.OTHER="OTHER",ve;var Y})(),he=(()=>{return(Y=he||(he={})).ARRAY="ARRAY",Y.NUMBER="NUMBER",Y.STRING="STRING",Y.BOOLEAN="BOOLEAN",Y.PASSWORD="PASSWORD",Y.DATE="DATE",Y.DATE_TIME="DATE_TIME",he;var Y})(),re=(()=>{return(Y=re||(re={})).XS="XS",Y.SM="SM",Y.MD="MD",Y.LG="LG",Y.XL="XL",re;var Y})();const de={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"}},le={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:""}};var se=(()=>{return(Y=se||(se={})).WIRE_INVALID_ONION_VERSION="Invalid Onion Version",Y.WIRE_INVALID_ONION_HMAC="Invalid Onion HMAC",Y.WIRE_INVALID_ONION_KEY="Invalid Onion Key",Y.WIRE_TEMPORARY_CHANNEL_FAILURE="Temporary Channel Failure",Y.WIRE_PERMANENT_CHANNEL_FAILURE="Permanent Channel Failure",Y.WIRE_REQUIRED_CHANNEL_FEATURE_MISSING="Missing Required Channel Feature",Y.WIRE_UNKNOWN_NEXT_PEER="Unknown Next Peer",Y.WIRE_AMOUNT_BELOW_MINIMUM="Amount Below Minimum",Y.WIRE_FEE_INSUFFICIENT="Insufficient Fee",Y.WIRE_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",Y.WIRE_EXPIRY_TOO_FAR="Expiry Too Far",Y.WIRE_EXPIRY_TOO_SOON="Expiry Too Soon",Y.WIRE_CHANNEL_DISABLED="Channel Disabled",Y.WIRE_INVALID_ONION_PAYLOAD="Invalid Onion Payload",Y.WIRE_INVALID_REALM="Invalid Realm",Y.WIRE_PERMANENT_NODE_FAILURE="Permanent Node Failure",Y.WIRE_TEMPORARY_NODE_FAILURE="Temporary Node Failure",Y.WIRE_REQUIRED_NODE_FEATURE_MISSING="Missing Required Node Feature",Y.WIRE_INVALID_ONION_BLINDING="Invalid Onion Binding",Y.WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS="Incorrect or Unknow Payment Details",Y.WIRE_MPP_TIMEOUT="MPP Timeout",Y.WIRE_FINAL_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",Y.WIRE_FINAL_INCORRECT_HTLC_AMOUNT="Incorrect HTLC Amount",se;var Y})(),y=(()=>{return(Y=y||(y={})).CHANNELD_NORMAL="Active",Y.OPENINGD="Opening",Y.CHANNELD_AWAITING_LOCKIN="Pending Open",Y.CHANNELD_SHUTTING_DOWN="Shutting Down",Y.CLOSINGD_SIGEXCHANGE="Closing: Sig Exchange",Y.CLOSINGD_COMPLETE="Closed",Y.AWAITING_UNILATERAL="Awaiting Unilateral Close",Y.FUNDING_SPEND_SEEN="Funding Spend Seen",Y.ONCHAIN="Onchain",Y.DUALOPEND_OPEN_INIT="Dual Open Initialized",Y.DUALOPEND_AWAITING_LOCKIN="Dual Pending Open",y;var Y})(),i=(()=>{return(Y=i||(i={})).INITIATED="Initiated",Y.PREIMAGE_REVEALED="Preimage Revealed",Y.HTLC_PUBLISHED="HTLC Published",Y.SUCCESS="Successful",Y.FAILED="Failed",Y.INVOICE_SETTLED="Invoice Settled",i;var Y})(),a=(()=>{return(Y=a||(a={})).LOOP_OUT="LOOP_OUT",Y.LOOP_IN="LOOP_IN",a;var Y})(),p=(()=>{return(Y=p||(p={})).SWAP_OUT="SWAP_OUT",Y.SWAP_IN="SWAP_IN",p;var Y})(),u=(()=>{return(Y=u||(u={}))["swap.created"]="Swap Created",Y["swap.expired"]="Swap Expired",Y["invoice.set"]="Invoice Set",Y["invoice.paid"]="Invoice Paid",Y["invoice.pending"]="Invoice Pending",Y["invoice.settled"]="Invoice Settled",Y["invoice.failedToPay"]="Invoice Failed To Pay",Y["channel.created"]="Channel Created",Y["transaction.failed"]="Transaction Failed",Y["transaction.mempool"]="Transaction Mempool",Y["transaction.claimed"]="Transaction Claimed",Y["transaction.refunded"]="Transaction Refunded",Y["transaction.confirmed"]="Transaction Confirmed",Y["swap.refunded"]="Swap Refunded",Y["swap.abandoned"]="Swap Abandoned",u;var Y})();const _=[{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}],D=["MONTHLY","YEARLY"];var I=(()=>{return(Y=I||(I={})).LOOP="LOOP",Y.BOLTZ="BOLTZ",Y.OFFERS="OFFERS",I;var Y})();const x=["password","changeme","moneyprintergobrrr"];var r=(()=>{return(Y=r||(r={})).UN_INITIATED="UN_INITIATED",Y.INITIATED="INITIATED",Y.COMPLETED="COMPLETED",Y.ERROR="ERROR",r;var Y})();const b={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_SETTING:"Updating Setting...",UPDATE_UI_SETTINGS:"Updating Settings...",UPDATE_NODE_SETTINGS:"Updating Node Settings...",UPDATE_SELECTED_NODE:"Updating Selected Node...",OPEN_CONFIG_FILE:"Opening Config File...",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_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...",LOG_OUT:"Logging Out..."};var U=(()=>{return(Y=U||(U={})).INVOICE="INVOICE",Y.OFFER="OFFER",Y.KEYSEND="KEYSEND",U;var Y})(),N=(()=>{return(Y=N||(N={})).FEES="FEES",Y.EVENTS="EVENTS",N;var Y})(),z=(()=>{return(Y=z||(z={})).VOID="VOID",Y.SET_API_URL_ECL="SET_API_URL_ECL",Y.UPDATE_SELECTED_NODE_OPTIONS="UPDATE_SELECTED_NODE_OPTIONS",Y.UPDATE_API_CALL_STATUS_ROOT="UPDATE_API_CALL_STATUS_ROOT",Y.RESET_ROOT_STORE="RESET_ROOT_STORE",Y.CLOSE_ALL_DIALOGS="CLOSE_ALL_DIALOGS",Y.OPEN_SNACK_BAR="OPEN_SNACKBAR",Y.OPEN_SPINNER="OPEN_SPINNER",Y.CLOSE_SPINNER="CLOSE_SPINNER",Y.OPEN_ALERT="OPEN_ALERT",Y.CLOSE_ALERT="CLOSE_ALERT",Y.OPEN_CONFIRMATION="OPEN_CONFIRMATION",Y.CLOSE_CONFIRMATION="CLOSE_CONFIRMATION",Y.SHOW_PUBKEY="SHOW_PUBKEY",Y.FETCH_CONFIG="FETCH_CONFIG",Y.SHOW_CONFIG="SHOW_CONFIG",Y.FETCH_STORE="FETCH_STORE",Y.SET_STORE="SET_STORE",Y.FETCH_RTL_CONFIG="FETCH_RTL_CONFIG",Y.SET_RTL_CONFIG="SET_RTL_CONFIG",Y.SAVE_SSO="SAVE_SSO",Y.SAVE_SETTINGS="SAVE_SETTINGS",Y.TWO_FA_SAVE_SETTINGS="TWO_FA_SAVE_SETTINGS",Y.SET_SELECTED_NODE="SET_SELECTED_NODE",Y.UPDATE_ROOT_NODE_SETTINGS="UPDATE_ROOT_NODE_SETTINGS",Y.UPDATE_SERVICE_SETTINGS="UPDATE_SERVICE_SETTINGS",Y.SET_NODE_DATA="SET_NODE_DATA",Y.IS_AUTHORIZED="IS_AUTHORIZED",Y.IS_AUTHORIZED_RES="IS_AUTHORIZED_RES",Y.LOGIN="LOGIN",Y.VERIFY_TWO_FA="VERIFY_TWO_FA",Y.LOGOUT="LOGOUT",Y.RESET_PASSWORD="RESET_PASSWORD",Y.RESET_PASSWORD_RES="RESET_PASSWORD_RES",Y.FETCH_FILE="FETCH_FILE",Y.SHOW_FILE="SHOW_FILE",z;var Y})(),be=(()=>{return(Y=be||(be={})).RESET_LND_STORE="RESET_LND_STORE",Y.UPDATE_API_CALL_STATUS_LND="UPDATE_API_CALL_STATUS_LND",Y.SET_CHILD_NODE_SETTINGS_LND="SET_CHILD_NODE_SETTINGS_LND",Y.FETCH_INFO_LND="FETCH_INFO_LND",Y.SET_INFO_LND="SET_INFO_LND",Y.FETCH_PEERS_LND="FETCH_PEERS_LND",Y.SET_PEERS_LND="SET_PEERS_LND",Y.SAVE_NEW_PEER_LND="SAVE_NEW_PEER_LND",Y.NEWLY_ADDED_PEER_LND="NEWLY_ADDED_PEER_LND",Y.DETACH_PEER_LND="DETACH_PEER_LND",Y.REMOVE_PEER_LND="REMOVE_PEER_LND",Y.SAVE_NEW_INVOICE_LND="SAVE_NEW_INVOICE_LND",Y.NEWLY_SAVED_INVOICE_LND="NEWLY_SAVED_INVOICE_LND",Y.ADD_INVOICE_LND="ADD_INVOICE_LND",Y.FETCH_FEES_LND="FETCH_FEES_LND",Y.SET_FEES_LND="SET_FEES_LND",Y.FETCH_BLOCKCHAIN_BALANCE_LND="FETCH_BLOCKCHAIN_BALANCE_LND",Y.SET_BLOCKCHAIN_BALANCE_LND="SET_BLOCKCHAIN_BALANCE_LND",Y.FETCH_NETWORK_LND="FETCH_NETWORK_LND",Y.SET_NETWORK_LND="SET_NETWORK_LND",Y.FETCH_CHANNELS_LND="FETCH_CHANNELS_LND",Y.FETCH_PENDING_CHANNELS_LND="FETCH_PENDING_CHANNELS_LND",Y.FETCH_CLOSED_CHANNELS_LND="FETCH_CLOSED_CHANNELS_LND",Y.SET_CHANNELS_LND="SET_CHANNELS_LND",Y.SET_PENDING_CHANNELS_LND="SET_PENDING_CHANNELS_LND",Y.SET_CLOSED_CHANNELS_LND="SET_CLOSED_CHANNELS_LND",Y.UPDATE_CHANNEL_LND="UPDATE_CHANNEL_LND",Y.SAVE_NEW_CHANNEL_LND="SAVE_NEW_CHANNEL_LND",Y.CLOSE_CHANNEL_LND="CLOSE_CHANNEL_LND",Y.REMOVE_CHANNEL_LND="REMOVE_CHANNEL_LND",Y.BACKUP_CHANNELS_LND="BACKUP_CHANNELS_LND",Y.VERIFY_CHANNEL_LND="VERIFY_CHANNEL_LND",Y.BACKUP_CHANNELS_RES_LND="BACKUP_CHANNELS_RES_LND",Y.VERIFY_CHANNEL_RES_LND="VERIFY_CHANNEL_RES_LND",Y.RESTORE_CHANNELS_LIST_LND="RESTORE_CHANNELS_LIST_LND",Y.SET_RESTORE_CHANNELS_LIST_LND="SET_RESTORE_CHANNELS_LIST_LND",Y.RESTORE_CHANNELS_LND="RESTORE_CHANNELS_LND",Y.RESTORE_CHANNELS_RES_LND="RESTORE_CHANNELS_RES_LND",Y.FETCH_INVOICES_LND="FETCH_INVOICES_LND",Y.SET_INVOICES_LND="SET_INVOICES_LND",Y.UPDATE_INVOICE_LND="UPDATE_INVOICE_LND",Y.UPDATE_PAYMENT_LND="UPDATE_PAYMENT_LND",Y.SET_TOTAL_INVOICES_LND="SET_TOTAL_INVOICES_LND",Y.FETCH_TRANSACTIONS_LND="FETCH_TRANSACTIONS_LND",Y.SET_TRANSACTIONS_LND="SET_TRANSACTIONS_LND",Y.FETCH_UTXOS_LND="FETCH_UTXOS_LND",Y.SET_UTXOS_LND="SET_UTXOS_LND",Y.FETCH_PAYMENTS_LND="FETCH_PAYMENTS_LND",Y.SET_PAYMENTS_LND="SET_PAYMENTS_LND",Y.SEND_PAYMENT_LND="SEND_PAYMENT_LND",Y.SEND_PAYMENT_STATUS_LND="SEND_PAYMENT_STATUS_LND",Y.FETCH_GRAPH_NODE_LND="FETCH_GRAPH_NODE_LND",Y.SET_GRAPH_NODE_LND="SET_GRAPH_NODE_LND",Y.GET_NEW_ADDRESS_LND="GET_NEW_ADDRESS_LND",Y.SET_NEW_ADDRESS_LND="SET_NEW_ADDRESS_LND",Y.SET_CHANNEL_TRANSACTION_LND="SET_CHANNEL_TRANSACTION_LND",Y.SET_CHANNEL_TRANSACTION_RES_LND="SET_CHANNEL_TRANSACTION_RES_LND",Y.GEN_SEED_LND="GEN_SEED_LND",Y.GEN_SEED_RESPONSE_LND="GEN_SEED_RESPONSE_LND",Y.INIT_WALLET_LND="INIT_WALLET_LND",Y.INIT_WALLET_RESPONSE_LND="INIT_WALLET_RESPONSE_LND",Y.UNLOCK_WALLET_LND="UNLOCK_WALLET_LND",Y.PEER_LOOKUP_LND="PEER_LOOKUP_LND",Y.CHANNEL_LOOKUP_LND="CHANNEL_LOOKUP_LND",Y.INVOICE_LOOKUP_LND="INVOICE_LOOKUP_LND",Y.PAYMENT_LOOKUP_LND="PAYMENT_LOOKUP_LND",Y.SET_LOOKUP_LND="SET_LOOKUP_LND",Y.GET_FORWARDING_HISTORY_LND="GET_FORWARDING_HISTORY_LND",Y.SET_FORWARDING_HISTORY_LND="SET_FORWARDING_HISTORY_LND",Y.GET_QUERY_ROUTES_LND="GET_QUERY_ROUTES_LND",Y.SET_QUERY_ROUTES_LND="SET_QUERY_ROUTES_LND",Y.GET_ALL_LIGHTNING_TRANSATIONS_LND="GET_ALL_LIGHTNING_TRANSATIONS_LND",Y.SET_ALL_LIGHTNING_TRANSATIONS_LND="SET_ALL_LIGHTNING_TRANSATIONS_LND",be;var Y})(),xe=(()=>{return(Y=xe||(xe={})).RESET_CLN_STORE="RESET_CLN_STORE",Y.UPDATE_API_CALL_STATUS_CLN="UPDATE_API_CALL_STATUS_CLN",Y.SET_CHILD_NODE_SETTINGS_CLN="SET_CHILD_NODE_SETTINGS_CLN",Y.FETCH_INFO_CLN="FETCH_INFO_CL_CLN",Y.SET_INFO_CLN="SET_INFO_CLN",Y.FETCH_FEES_CLN="FETCH_FEES_CLN",Y.SET_FEES_CLN="SET_FEES_CLN",Y.FETCH_FEE_RATES_CLN="FETCH_FEE_RATES_CLN",Y.SET_FEE_RATES_CLN="SET_FEE_RATES_CLN",Y.FETCH_BALANCE_CLN="FETCH_BALANCE_CLN",Y.SET_BALANCE_CLN="SET_BALANCE_CLN",Y.FETCH_LOCAL_REMOTE_BALANCE_CLN="FETCH_LOCAL_REMOTE_BALANCE_CLN",Y.SET_LOCAL_REMOTE_BALANCE_CLN="SET_LOCAL_REMOTE_BALANCE_CLN",Y.GET_NEW_ADDRESS_CLN="GET_NEW_ADDRESS_CLN",Y.SET_NEW_ADDRESS_CLN="SET_NEW_ADDRESS_CLN",Y.FETCH_UTXOS_CLN="FETCH_UTXOS_CLN",Y.SET_UTXOS_CLN="SET_UTXOS_CLN",Y.FETCH_PEERS_CLN="FETCH_PEERS_CLN",Y.SET_PEERS_CLN="SET_PEERS_CLN",Y.SAVE_NEW_PEER_CLN="SAVE_NEW_PEER_CLN",Y.NEWLY_ADDED_PEER_CLN="NEWLY_ADDED_PEER_CLN",Y.ADD_PEER_CLN="ADD_PEER_CLN",Y.DETACH_PEER_CLN="DETACH_PEER_CLN",Y.REMOVE_PEER_CLN="REMOVE_PEER_CLN",Y.FETCH_CHANNELS_CLN="FETCH_CHANNELS_CLN",Y.SET_CHANNELS_CLN="SET_CHANNELS_CLN",Y.UPDATE_CHANNEL_CLN="UPDATE_CHANNEL_CLN",Y.SAVE_NEW_CHANNEL_CLN="SAVE_NEW_CHANNEL_CLN",Y.CLOSE_CHANNEL_CLN="CLOSE_CHANNEL_CLN",Y.REMOVE_CHANNEL_CLN="REMOVE_CHANNEL_CLN",Y.FETCH_PAYMENTS_CLN="FETCH_PAYMENTS_CLN",Y.SET_PAYMENTS_CLN="SET_PAYMENTS_CLN",Y.SEND_PAYMENT_CLN="SEND_PAYMENT_CLN",Y.SEND_PAYMENT_STATUS_CLN="SEND_PAYMENT_STATUS_CLN",Y.GET_QUERY_ROUTES_CLN="GET_QUERY_ROUTES_CLN",Y.SET_QUERY_ROUTES_CLN="SET_QUERY_ROUTES_CLN",Y.PEER_LOOKUP_CLN="PEER_LOOKUP_CLN",Y.CHANNEL_LOOKUP_CLN="CHANNEL_LOOKUP_CLN",Y.INVOICE_LOOKUP_CLN="INVOICE_LOOKUP_CLN",Y.SET_LOOKUP_CLN="SET_LOOKUP_CLN",Y.GET_FORWARDING_HISTORY_CLN="GET_FORWARDING_HISTORY_CLN",Y.SET_FORWARDING_HISTORY_CLN="SET_FORWARDING_HISTORY_CLN",Y.GET_FAILED_FORWARDING_HISTORY_CLN="GET_FAILED_FORWARDING_HISTORY_CLN",Y.SET_FAILED_FORWARDING_HISTORY_CLN="SET_FAILED_FORWARDING_HISTORY_CLN",Y.GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",Y.SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",Y.FETCH_INVOICES_CLN="FETCH_INVOICES_CLN",Y.SET_INVOICES_CLN="SET_INVOICES_CLN",Y.SAVE_NEW_INVOICE_CLN="SAVE_NEW_INVOICE_CLN",Y.ADD_INVOICE_CLN="ADD_INVOICE_CLN",Y.UPDATE_INVOICE_CLN="UPDATE_INVOICE_CLN",Y.DELETE_EXPIRED_INVOICE_CLN="DELETE_EXPIRED_INVOICE_CLN",Y.SET_CHANNEL_TRANSACTION_CLN="SET_CHANNEL_TRANSACTION_CLN",Y.SET_CHANNEL_TRANSACTION_RES_CLN="SET_CHANNEL_TRANSACTION_RES_CLN",Y.FETCH_OFFER_INVOICE_CLN="FETCH_OFFER_INVOICE_CLN",Y.SET_OFFER_INVOICE_CLN="SET_OFFER_INVOICE_CLN",Y.FETCH_OFFERS_CLN="FETCH_OFFERS_CLN",Y.SET_OFFERS_CLN="SET_OFFERS_CLN",Y.SAVE_NEW_OFFER_CLN="SAVE_NEW_OFFER_CLN",Y.ADD_OFFER_CLN="ADD_OFFER_CLN",Y.DISABLE_OFFER_CLN="DISABLE_OFFER_CLN",Y.UPDATE_OFFER_CLN="UPDATE_OFFER_CLN",Y.FETCH_OFFER_BOOKMARKS_CLN="FETCH_OFFER_BOOKMARKS_CLN",Y.SET_OFFER_BOOKMARKS_CLN="SET_OFFER_BOOKMARKS_CLN",Y.ADD_UPDATE_OFFER_BOOKMARK_CLN="ADD_UPDATE_OFFER_BOOKMARK_CLN",Y.DELETE_OFFER_BOOKMARK_CLN="DELETE_OFFER_BOOKMARK_CLN",Y.REMOVE_OFFER_BOOKMARK_CLN="REMOVE_OFFER_BOOKMARK_CL",xe;var Y})(),Re=(()=>{return(Y=Re||(Re={})).RESET_ECL_STORE="RESET_ECL_STORE",Y.UPDATE_API_CALL_STATUS_ECL="UPDATE_API_CALL_STATUS_ECL",Y.SET_CHILD_NODE_SETTINGS_ECL="SET_CHILD_NODE_SETTINGS_ECL",Y.FETCH_INFO_ECL="FETCH_INFO_ECL",Y.SET_INFO_ECL="SET_INFO_ECL",Y.FETCH_FEES_ECL="FETCH_FEES_ECL",Y.SET_FEES_ECL="SET_FEES_ECL",Y.FETCH_CHANNELS_ECL="FETCH_CHANNELS_ECL",Y.SET_ACTIVE_CHANNELS_ECL="SET_ACTIVE_CHANNELS_ECL",Y.SET_PENDING_CHANNELS_ECL="SET_PENDING_CHANNELS_ECL",Y.SET_INACTIVE_CHANNELS_ECL="SET_INACTIVE_CHANNELS_ECL",Y.FETCH_ONCHAIN_BALANCE_ECL="FETCH_ONCHAIN_BALANCE_ECL",Y.SET_ONCHAIN_BALANCE_ECL="SET_ONCHAIN_BALANCE_ECL",Y.FETCH_LIGHTNING_BALANCE_ECL="FETCH_LIGHTNING_BALANCE_ECL",Y.SET_LIGHTNING_BALANCE_ECL="SET_LIGHTNING_BALANCE_ECL",Y.SET_CHANNELS_STATUS_ECL="SET_CHANNELS_STATUS_ECL",Y.FETCH_PEERS_ECL="FETCH_PEERS_ECL",Y.SET_PEERS_ECL="SET_PEERS_ECL",Y.SAVE_NEW_PEER_ECL="SAVE_NEW_PEER_ECL",Y.NEWLY_ADDED_PEER_ECL="NEWLY_ADDED_PEER_ECL",Y.ADD_PEER_ECL="ADD_PEER_ECL",Y.DETACH_PEER_ECL="DETACH_PEER_ECL",Y.REMOVE_PEER_ECL="REMOVE_PEER_ECL",Y.GET_NEW_ADDRESS_ECL="GET_NEW_ADDRESS_ECL",Y.SET_NEW_ADDRESS_ECL="SET_NEW_ADDRESS_ECL",Y.SAVE_NEW_CHANNEL_ECL="SAVE_NEW_CHANNEL_ECL",Y.UPDATE_CHANNEL_ECL="UPDATE_CHANNEL_ECL",Y.CLOSE_CHANNEL_ECL="CLOSE_CHANNEL_ECL",Y.REMOVE_CHANNEL_ECL="REMOVE_CHANNEL_ECL",Y.FETCH_PAYMENTS_ECL="FETCH_PAYMENTS_ECL",Y.SET_PAYMENTS_ECL="SET_PAYMENTS_ECL",Y.GET_QUERY_ROUTES_ECL="GET_QUERY_ROUTES_ECL",Y.SET_QUERY_ROUTES_ECL="SET_QUERY_ROUTES_ECL",Y.SEND_PAYMENT_ECL="SEND_PAYMENT_ECL",Y.SEND_PAYMENT_STATUS_ECL="SEND_PAYMENT_STATUS_ECL",Y.FETCH_TRANSACTIONS_ECL="FETCH_TRANSACTIONS_ECL",Y.SET_TRANSACTIONS_ECL="SET_TRANSACTIONS_ECL",Y.SEND_ONCHAIN_FUNDS_ECL="SEND_ONCHAIN_FUNDS_ECL",Y.SEND_ONCHAIN_FUNDS_RES_ECL="SEND_ONCHAIN_FUNDS_RES_ECL",Y.FETCH_INVOICES_ECL="FETCH_INVOICES_ECL",Y.SET_INVOICES_ECL="SET_INVOICES_ECL",Y.SET_TOTAL_INVOICES_ECL="SET_TOTAL_INVOICES_ECL",Y.CREATE_INVOICE_ECL="CREATE_INVOICE_ECL",Y.ADD_INVOICE_ECL="ADD_INVOICE_ECL",Y.UPDATE_INVOICE_ECL="UPDATE_INVOICE_ECL",Y.PEER_LOOKUP_ECL="PEER_LOOKUP_ECL",Y.INVOICE_LOOKUP_ECL="INVOICE_LOOKUP_ECL",Y.SET_LOOKUP_ECL="SET_LOOKUP_ECL",Y.UPDATE_CHANNEL_STATE_ECL="UPDATE_CHANNEL_STATE_ECL",Y.UPDATE_RELAYED_PAYMENT_ECL="UPDATE_RELAYED_PAYMENT_ECL",Re;var Y})();const ze=[{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"}];var Le=(()=>{return(Y=Le||(Le={})).gossip_queries_ex="Gossip queries including additional information",Y.option_anchor_outputs="Anchor outputs",Y.option_data_loss_protect="Extra channel re-establish fields",Y.var_onion_optin="Variable-length routing onion payloads",Y.option_static_remotekey="Static key for remote output",Y.option_support_large_channel="Create large channels",Y.option_anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",Y.payment_secret="Payment secret field",Y.option_shutdown_anysegwit="Future segwit versions allowed in shutdown",Y.basic_mpp="Basic multi-part payments",Y.gossip_queries="More sophisticated gossip control",Y.option_upfront_shutdown_script="Shutdown script pubkey when opening channel",Y.anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",Y.amp="AMP",Le;var Y})(),K=(()=>{return(Y=K||(K={}))["data-loss-protect"]="Extra channel re-establish fields",Y["upfront-shutdown-script"]="Shutdown script pubkey when opening channel",Y["gossip-queries"]="More sophisticated gossip control",Y["tlv-onion"]="Variable-length routing onion payloads",Y["ext-gossip-queries"]="Gossip queries can include additional information",Y["static-remote-key"]="Static key for remote output",Y["payment-addr"]="Payment secret field",Y["multi-path-payments"]="Basic multi-part payments",Y["wumbo-channels"]="Wumbo Channels",Y.anchors="Anchor outputs",Y["anchors-zero-fee-htlc-tx"]="Anchor commitment type with zero fee HTLC transactions",Y.amp="AMP",K;var Y})();const we=[{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}]},8104:(Ve,Q,m)=>{"use strict";m.d(Q,{D:()=>re});var e=m(8138),t=m(1135),v=m(7579),C=m(2843),o=m(9646),M=m(590),l=m(5577),R=m(2722),s=m(4004),L=m(262),O=m(1365),A=m(2340),E=m(7731),P=m(1786),w=m(7861),Z=m(6523),j=m(6529),W=m(5e3),ie=m(5620),ee=m(5043),ve=m(7261),he=m(9808);let re=(()=>{class de{constructor(se,y,i,a,p){this.httpClient=se,this.store=y,this.logger=i,this.snackBar=a,this.titleCasePipe=p,this.APIUrl=A.T5,this.lnImplementation="",this.lnImplementationUpdated=new t.X(null),this.unSubs=[new v.x,new v.x,new v.x,new v.x,new v.x,new v.x,new v.x,new v.x,new v.x,new v.x,new v.x,new v.x,new v.x]}setLnImplementation(se){this.lnImplementation=se.toLowerCase(),this.lnImplementationUpdated.next(this.lnImplementation)}getFiatRates(){return this.httpClient.get(A.NZ.CONF_API+"/rates")}decodePayment(se,y){return this.lnImplementationUpdated.pipe((0,M.P)(i=>null!==i),(0,l.z)(i=>{let a=this.APIUrl+"/"+i+A.NZ.PAYMENTS_API+"/decode/"+se;return"cln"===i&&(a=this.APIUrl+"/"+i+A.NZ.UTILITY_API+"/decode/"+se),this.store.dispatch((0,w.ac)({payload:E.m6.DECODE_PAYMENT})),this.httpClient.get(a).pipe((0,R.R)(this.unSubs[0]),(0,s.U)(p=>(this.store.dispatch((0,w.uO)({payload:E.m6.DECODE_PAYMENT})),p)),(0,L.K)(p=>(y?this.handleErrorWithoutAlert("Decode Payment",E.m6.DECODE_PAYMENT,p):this.handleErrorWithAlert("decodePaymentData",E.m6.DECODE_PAYMENT,"Decode Payment Failed",a,p),(0,C._)(()=>new Error(this.extractErrorMessage(p))))))}))}decodePayments(se){return this.lnImplementationUpdated.pipe((0,M.P)(y=>null!==y),(0,l.z)(y=>{let i="",a="";return"ecl"===y?(i=this.APIUrl+"/"+y+A.NZ.PAYMENTS_API+"/getsentinfos",a=E.m6.GET_SENT_PAYMENTS):"cln"===y?(i=this.APIUrl+"/"+y+A.NZ.UTILITY_API,a=E.m6.DECODE_PAYMENTS):(i=this.APIUrl+"/"+y+A.NZ.PAYMENTS_API,a=E.m6.DECODE_PAYMENTS),this.store.dispatch((0,w.ac)({payload:a})),this.httpClient.post(i,{payments:se}).pipe((0,R.R)(this.unSubs[1]),(0,s.U)(p=>(this.store.dispatch((0,w.uO)({payload:a})),p)),(0,L.K)(p=>(this.handleErrorWithAlert("decodePaymentsData",a,a+" Failed",i,p),(0,C._)(()=>new Error(this.extractErrorMessage(p))))))}))}getAliasesFromPubkeys(se,y){return this.lnImplementationUpdated.pipe((0,M.P)(i=>null!==i),(0,l.z)(i=>{if(y){const a=(new e.LE).set("pubkeys",se);return this.httpClient.get(this.APIUrl+"/"+i+A.NZ.NETWORK_API+"/nodes",{params:a})}return this.httpClient.get(this.APIUrl+"/"+i+A.NZ.NETWORK_API+"/node/"+se)}))}signMessage(se){return this.lnImplementationUpdated.pipe((0,M.P)(y=>null!==y),(0,l.z)(y=>{let i=this.APIUrl+"/"+y+A.NZ.MESSAGE_API+"/sign";return"cln"===y&&(i=this.APIUrl+"/"+y+A.NZ.UTILITY_API+"/sign"),this.store.dispatch((0,w.ac)({payload:E.m6.SIGN_MESSAGE})),this.httpClient.post(i,{message:se}).pipe((0,R.R)(this.unSubs[2]),(0,s.U)(a=>(this.store.dispatch((0,w.uO)({payload:E.m6.SIGN_MESSAGE})),a)),(0,L.K)(a=>(this.handleErrorWithAlert("signMessageData",E.m6.SIGN_MESSAGE,"Sign Message Failed",i,a),(0,C._)(()=>new Error(this.extractErrorMessage(a))))))}))}verifyMessage(se,y){return this.lnImplementationUpdated.pipe((0,M.P)(i=>null!==i),(0,l.z)(i=>{let a=this.APIUrl+"/"+i+A.NZ.MESSAGE_API+"/verify";return"cln"===i&&(a=this.APIUrl+"/"+i+A.NZ.UTILITY_API+"/verify"),this.store.dispatch((0,w.ac)({payload:E.m6.VERIFY_MESSAGE})),this.httpClient.post(a,{message:se,signature:y}).pipe((0,R.R)(this.unSubs[3]),(0,s.U)(p=>(this.store.dispatch((0,w.uO)({payload:E.m6.VERIFY_MESSAGE})),p)),(0,L.K)(p=>(this.handleErrorWithAlert("verifyMessageData",E.m6.VERIFY_MESSAGE,"Verify Message Failed",a,p),(0,C._)(()=>new Error(this.extractErrorMessage(p))))))}))}bumpFee(se,y,i,a){return this.lnImplementationUpdated.pipe((0,M.P)(p=>null!==p),(0,l.z)(p=>{const u={txid:se,outputIndex:y};return i&&(u.targetConf=i),a&&(u.satPerByte=a),this.store.dispatch((0,w.ac)({payload:E.m6.BUMP_FEE})),this.httpClient.post(this.APIUrl+"/"+p+A.NZ.WALLET_API+"/bumpfee",u).pipe((0,R.R)(this.unSubs[4]),(0,s.U)(_=>(this.store.dispatch((0,w.uO)({payload:E.m6.BUMP_FEE})),this.snackBar.open("Successfully bumped the fee. Use the block explorer to verify transaction."),_)),(0,L.K)(_=>(this.handleErrorWithoutAlert("Bump Fee",E.m6.BUMP_FEE,_),(0,C._)(()=>new Error(this.extractErrorMessage(_))))))}))}labelUTXO(se,y,i=!0){return this.lnImplementationUpdated.pipe((0,M.P)(a=>null!==a),(0,l.z)(a=>{const p={txid:se,label:y,overwrite:i};return this.store.dispatch((0,w.ac)({payload:E.m6.LABEL_UTXO})),this.httpClient.post(this.APIUrl+"/"+a+A.NZ.WALLET_API+"/label",p).pipe((0,R.R)(this.unSubs[5]),(0,s.U)(u=>(this.store.dispatch((0,w.uO)({payload:E.m6.LABEL_UTXO})),u)),(0,L.K)(u=>(this.handleErrorWithoutAlert("Lease UTXO",E.m6.LABEL_UTXO,u),(0,C._)(()=>new Error(this.extractErrorMessage(u))))))}))}leaseUTXO(se,y){return this.lnImplementationUpdated.pipe((0,M.P)(i=>null!==i),(0,l.z)(i=>{const a={txid:se,outputIndex:y};return this.store.dispatch((0,w.ac)({payload:E.m6.LEASE_UTXO})),this.httpClient.post(this.APIUrl+"/"+i+A.NZ.WALLET_API+"/lease",a).pipe((0,R.R)(this.unSubs[6]),(0,s.U)(p=>{this.store.dispatch((0,w.uO)({payload:E.m6.LEASE_UTXO})),this.store.dispatch((0,Z.mC)()),this.store.dispatch((0,Z.Ly)());const u=new Date(1e3*p.expiration),_=Math.round(u.getTime())-60*u.getTimezoneOffset();this.snackBar.open("The UTXO has been leased till "+new Date(_).toString().substring(4,21).replace(" ","/").replace(" ","/").toUpperCase()+".")}),(0,L.K)(p=>(this.handleErrorWithoutAlert("Lease UTXO",E.m6.LEASE_UTXO,p),(0,C._)(()=>new Error(this.extractErrorMessage(p))))))}))}getForwardingHistory(se,y){return this.lnImplementationUpdated.pipe((0,M.P)(i=>null!==i),(0,l.z)(i=>{const a={end_time:y,start_time:se};return this.store.dispatch((0,w.ac)({payload:E.m6.GET_FORWARDING_HISTORY})),this.httpClient.post(this.APIUrl+"/"+i+A.NZ.SWITCH_API,a).pipe((0,R.R)(this.unSubs[7]),(0,O.M)(this.store.select(j._f)),(0,l.z)(([p,u])=>{if(p.forwarding_events){const _=[...u.channels,...u.closedChannels];p.forwarding_events.forEach(D=>{if(_&&_.length>0)for(let I=0;I<_.length;I++){if(_[I].chan_id.toString()===D.chan_id_in&&(D.alias_in=_[I].remote_alias?_[I].remote_alias:D.chan_id_in,D.alias_out)||_[I].chan_id.toString()===D.chan_id_out&&(D.alias_out=_[I].remote_alias?_[I].remote_alias:D.chan_id_out,D.alias_in))return;I===_.length-1&&(D.alias_in||(D.alias_in=D.chan_id_in),D.alias_out||(D.alias_out=D.chan_id_out))}else D.alias_in=D.chan_id_in,D.alias_out=D.chan_id_out})}else p={};return this.store.dispatch((0,w.uO)({payload:E.m6.GET_FORWARDING_HISTORY})),(0,o.of)(p)}),(0,L.K)(p=>(this.handleErrorWithAlert("getForwardingHistoryData",E.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/"+i+A.NZ.SWITCH_API,p),(0,C._)(()=>new Error(this.extractErrorMessage(p))))))}))}listNetworkNodes(se=""){return this.lnImplementationUpdated.pipe((0,M.P)(y=>null!==y),(0,l.z)(y=>(this.store.dispatch((0,w.ac)({payload:E.m6.LIST_NETWORK_NODES})),this.httpClient.get(this.APIUrl+"/"+y+A.NZ.NETWORK_API+"/listNodes"+se).pipe((0,R.R)(this.unSubs[8]),(0,l.z)(i=>(this.store.dispatch((0,w.uO)({payload:E.m6.LIST_NETWORK_NODES})),(0,o.of)(i))),(0,L.K)(i=>(this.handleErrorWithoutAlert("List Network Nodes",E.m6.LIST_NETWORK_NODES,i),(0,C._)(()=>this.extractErrorMessage(i))))))))}listConfigs(){return this.lnImplementationUpdated.pipe((0,M.P)(se=>null!==se),(0,l.z)(se=>(this.store.dispatch((0,w.ac)({payload:E.m6.GET_LIST_CONFIGS})),this.httpClient.get(this.APIUrl+"/"+se+A.NZ.UTILITY_API+"/listConfigs").pipe((0,R.R)(this.unSubs[9]),(0,l.z)(y=>(this.store.dispatch((0,w.uO)({payload:E.m6.GET_LIST_CONFIGS})),(0,o.of)(y))),(0,L.K)(y=>(this.handleErrorWithoutAlert("List Configurations",E.m6.GET_LIST_CONFIGS,y),(0,C._)(()=>this.extractErrorMessage(y))))))))}getOrUpdateFunderPolicy(se,y,i,a,p,u){return this.lnImplementationUpdated.pipe((0,M.P)(_=>null!==_),(0,l.z)(_=>{const D=se?{policy:se,policy_mod:y,lease_fee_base_msat:i,lease_fee_basis:a,channel_fee_max_base_msat:p,channel_fee_max_proportional_thousandths:u}:null;return this.store.dispatch((0,w.ac)({payload:E.m6.GET_FUNDER_POLICY})),this.httpClient.post(this.APIUrl+"/"+_+A.NZ.CHANNELS_API+"/funderUpdate",D).pipe((0,R.R)(this.unSubs[10]),(0,s.U)(I=>(this.store.dispatch((0,w.uO)({payload:E.m6.GET_FUNDER_POLICY})),D&&this.store.dispatch((0,w.jW)({payload:"Funder Policy Updated Successfully!"})),I)),(0,L.K)(I=>(this.handleErrorWithoutAlert("Funder Policy",E.m6.GET_FUNDER_POLICY,I),(0,C._)(()=>new Error(this.extractErrorMessage(I))))))}))}extractErrorMessage(se,y="Unknown Error."){return this.titleCasePipe.transform(se.error.text&&"string"==typeof se.error.text&&se.error.text.includes('')?"API Route Does Not Exist.":se.error&&se.error.error&&se.error.error.error&&se.error.error.error.error&&se.error.error.error.error.error&&"string"==typeof se.error.error.error.error.error?se.error.error.error.error.error:se.error&&se.error.error&&se.error.error.error&&se.error.error.error.error&&"string"==typeof se.error.error.error.error?se.error.error.error.error:se.error&&se.error.error&&se.error.error.error&&"string"==typeof se.error.error.error?se.error.error.error:se.error&&se.error.error&&"string"==typeof se.error.error?se.error.error:se.error&&"string"==typeof se.error?se.error:se.error&&se.error.error&&se.error.error.error&&se.error.error.error.error&&se.error.error.error.error.message&&"string"==typeof se.error.error.error.error.message?se.error.error.error.error.message:se.error&&se.error.error&&se.error.error.error&&se.error.error.error.message&&"string"==typeof se.error.error.error.message?se.error.error.error.message:se.error&&se.error.error&&se.error.error.message&&"string"==typeof se.error.error.message?se.error.error.message:se.error&&se.error.message&&"string"==typeof se.error.message?se.error.message:se.message&&"string"==typeof se.message?se.message:y)}handleErrorWithoutAlert(se,y,i){i.error.text&&"string"==typeof i.error.text&&i.error.text.includes('')&&(i={status:403,error:{message:"API Route Does Not Exist."}}),this.logger.error("ERROR IN: "+se+"\n"+JSON.stringify(i)),401===i.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.ts)()),this.store.dispatch((0,w.kS)()),this.store.dispatch((0,w.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,w.uO)({payload:y})),this.store.dispatch((0,w.qi)({payload:{action:se,status:E.Bn.ERROR,statusCode:i.status.toString(),message:this.extractErrorMessage(i)}})))}handleErrorWithAlert(se,y,i,a,p){if(this.logger.error(p),401===p.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.ts)()),this.store.dispatch((0,w.kS)()),this.store.dispatch((0,w.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,w.uO)({payload:y}));const u=this.extractErrorMessage(p);this.store.dispatch((0,w.qR)({payload:{data:{type:"ERROR",alertTitle:i,message:{code:p.status?p.status:"Unknown Error",message:u,URL:a},component:P.H}}})),this.store.dispatch((0,w.qi)({payload:{action:se,status:E.Bn.ERROR,statusCode:p.status.toString(),message:u,URL:a}}))}}ngOnDestroy(){this.unSubs.forEach(se=>{se.next(null),se.complete()})}}return de.\u0275fac=function(se){return new(se||de)(W.LFG(e.eN),W.LFG(ie.yh),W.LFG(ee.mQ),W.LFG(ve.ux),W.LFG(he.rS))},de.\u0275prov=W.Yz7({token:de,factory:de.\u0275fac}),de})()},5043:(Ve,Q,m)=>{"use strict";m.d(Q,{mQ:()=>M,LG:()=>l});var e=m(2340),t=m(5e3);const{isDebugMode:v}=e.NZ,C=()=>null;let M=(()=>{class R{invokeConsoleMethod(L,O){}}return R.\u0275fac=function(L){return new(L||R)},R.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac}),R})(),l=(()=>{class R{get info(){return v?console.log.bind(console):C}get warn(){return v?console.warn.bind(console):C}get error(){return v?console.error.bind(console):C}invokeConsoleMethod(L,O){(console[L]||console.log||C).apply(console,[O])}}return R.\u0275fac=function(L){return new(L||R)},R.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac}),R})()},9107:(Ve,Q,m)=>{"use strict";m.d(Q,{W:()=>j});var e=m(8138),t=m(1135),v=m(7579),C=m(9646),o=m(2843),M=m(2722),l=m(262),R=m(4004),s=m(2340),L=m(7731),O=m(1786),A=m(7861),E=m(5e3),P=m(5043),w=m(5620),Z=m(62);let j=(()=>{class W{constructor(ee,ve,he,re){this.httpClient=ee,this.logger=ve,this.store=he,this.commonService=re,this.loopUrl="",this.swaps=[],this.swapsChanged=new t.X([]),this.unSubs=[new v.x,new v.x,new v.x,new v.x,new v.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,A.ac)({payload:L.m6.GET_LOOP_SWAPS})),this.loopUrl=s.T5+s.NZ.LOOP_API+"/swaps",this.httpClient.get(this.loopUrl).pipe((0,M.R)(this.unSubs[0])).subscribe({next:ee=>{this.store.dispatch((0,A.uO)({payload:L.m6.GET_LOOP_SWAPS})),this.swaps=ee,this.swapsChanged.next(this.swaps)},error:ee=>this.swapsChanged.error(this.handleErrorWithAlert(L.m6.GET_LOOP_SWAPS,this.loopUrl,ee))})}loopOut(ee,ve,he,re,de,le,se,y,i,a){const p={amount:ee,targetConf:he,swapRoutingFee:re,minerFee:de,prepayRoutingFee:le,prepayAmt:se,swapFee:y,swapPublicationDeadline:i,destAddress:a};return""!==ve&&(p.chanId=ve),this.loopUrl=s.T5+s.NZ.LOOP_API+"/out",this.httpClient.post(this.loopUrl,p).pipe((0,l.K)(u=>this.handleErrorWithoutAlert("Loop Out for Channel: "+ve,L.m6.NO_SPINNER,u)))}getLoopOutTerms(){return this.loopUrl=s.T5+s.NZ.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe((0,l.K)(ee=>this.handleErrorWithoutAlert("Loop Out Terms",L.m6.NO_SPINNER,ee)))}getLoopOutQuote(ee,ve,he){let re=new e.LE;return re=re.append("targetConf",ve.toString()),re=re.append("swapPublicationDeadline",he.toString()),this.loopUrl=s.T5+s.NZ.LOOP_API+"/out/quote/"+ee,this.store.dispatch((0,A.ac)({payload:L.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:re}).pipe((0,M.R)(this.unSubs[1]),(0,R.U)(de=>(this.store.dispatch((0,A.uO)({payload:L.m6.GET_QUOTE})),de)),(0,l.K)(de=>this.handleErrorWithoutAlert("Loop Out Quote",L.m6.GET_QUOTE,de)))}getLoopOutTermsAndQuotes(ee){let ve=new e.LE;return ve=ve.append("targetConf",ee.toString()),ve=ve.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=s.T5+s.NZ.LOOP_API+"/out/termsAndQuotes",this.store.dispatch((0,A.ac)({payload:L.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:ve}).pipe((0,M.R)(this.unSubs[2]),(0,R.U)(he=>(this.store.dispatch((0,A.uO)({payload:L.m6.GET_TERMS_QUOTES})),he)),(0,l.K)(he=>(0,C.of)(this.handleErrorWithAlert(L.m6.GET_TERMS_QUOTES,this.loopUrl,he))))}loopIn(ee,ve,he,re,de){const le={amount:ee,swapFee:ve,minerFee:he,lastHop:re,externalHtlc:de};return this.loopUrl=s.T5+s.NZ.LOOP_API+"/in",this.httpClient.post(this.loopUrl,le).pipe((0,l.K)(se=>this.handleErrorWithoutAlert("Loop In",L.m6.NO_SPINNER,se)))}getLoopInTerms(){return this.loopUrl=s.T5+s.NZ.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe((0,l.K)(ee=>this.handleErrorWithoutAlert("Loop In Terms",L.m6.NO_SPINNER,ee)))}getLoopInQuote(ee,ve,he){let re=new e.LE;return re=re.append("targetConf",ve.toString()),re=re.append("swapPublicationDeadline",he.toString()),this.loopUrl=s.T5+s.NZ.LOOP_API+"/in/quote/"+ee,this.store.dispatch((0,A.ac)({payload:L.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:re}).pipe((0,M.R)(this.unSubs[3]),(0,R.U)(de=>(this.store.dispatch((0,A.uO)({payload:L.m6.GET_QUOTE})),de)),(0,l.K)(de=>this.handleErrorWithoutAlert("Loop In Qoute",L.m6.GET_QUOTE,de)))}getLoopInTermsAndQuotes(ee){let ve=new e.LE;return ve=ve.append("targetConf",ee.toString()),ve=ve.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=s.T5+s.NZ.LOOP_API+"/in/termsAndQuotes",this.store.dispatch((0,A.ac)({payload:L.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:ve}).pipe((0,M.R)(this.unSubs[4]),(0,R.U)(he=>(this.store.dispatch((0,A.uO)({payload:L.m6.GET_TERMS_QUOTES})),he)),(0,l.K)(he=>(0,C.of)(this.handleErrorWithAlert(L.m6.GET_TERMS_QUOTES,this.loopUrl,he))))}getSwap(ee){return this.loopUrl=s.T5+s.NZ.LOOP_API+"/swap/"+ee,this.httpClient.get(this.loopUrl).pipe((0,l.K)(ve=>this.handleErrorWithoutAlert("Loop Get Swap for ID: "+ee,L.m6.NO_SPINNER,ve)))}handleErrorWithoutAlert(ee,ve,he){let re="";return this.logger.error("ERROR IN: "+ee+"\n"+JSON.stringify(he)),this.store.dispatch((0,A.uO)({payload:ve})),401===he.status?(re="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,A.kS)())):503===he.status?(re="Unable to Connect to Loop Server.",this.store.dispatch((0,A.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:he.status,message:"Unable to Connect to Loop Server",URL:ee},component:O.H}}}))):re=this.commonService.extractErrorMessage(he),(0,o._)(()=>new Error(re))}handleErrorWithAlert(ee,ve,he){let re="";if(this.logger.error(he),this.store.dispatch((0,A.uO)({payload:ee})),401===he.status)re="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,A.kS)());else if(503===he.status)re="Unable to Connect to Loop Server.",setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:he.status,message:"Unable to Connect to Loop Server",URL:ve},component:O.H}}}))},100);else{re=this.commonService.extractErrorMessage(he);const de=he.error&&he.error.error&&he.error.error.code?he.error.error.code:he.error&&he.error.code?he.error.code:he.code?he.code:he.status;setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{type:L.n_.ERROR,alertTitle:"ERROR",message:{code:de,message:re,URL:ve},component:O.H}}}))},100)}return{message:re}}ngOnDestroy(){this.unSubs.forEach(ee=>{ee.next(null),ee.complete()})}}return W.\u0275fac=function(ee){return new(ee||W)(E.LFG(e.eN),E.LFG(P.mQ),E.LFG(w.yh),E.LFG(Z.v))},W.\u0275prov=E.Yz7({token:W,factory:W.\u0275fac}),W})()},5986:(Ve,Q,m)=>{"use strict";m.d(Q,{m:()=>v});var e=m(7579),t=m(5e3);let v=(()=>{class C{constructor(){this.sessionSub=new e.x}watchSession(){return this.sessionSub.asObservable()}getItem(M){return sessionStorage.getItem(M)}getAllItems(){return sessionStorage}setItem(M,l){sessionStorage.setItem(M,l),this.sessionSub.next(sessionStorage)}removeItem(M){sessionStorage.removeItem(M),this.sessionSub.next(sessionStorage)}clearAll(){sessionStorage.clear(),this.sessionSub.next(sessionStorage)}}return C.\u0275fac=function(M){return new(M||C)},C.\u0275prov=t.Yz7({token:C,factory:C.\u0275fac}),C})()},7998:(Ve,Q,m)=>{"use strict";m.d(Q,{d:()=>P});var e=m(1135),t=m(7579),v=m(2722),C=m(930),o=m(8306),M=m(727),l=m(4707);const R={url:"",deserializer:w=>JSON.parse(w.data),serializer:w=>JSON.stringify(w)};class L extends t.u{constructor(Z,j){if(super(),this._socket=null,Z instanceof o.y)this.destination=j,this.source=Z;else{const W=this._config=Object.assign({},R);if(this._output=new t.x,"string"==typeof Z)W.url=Z;else for(const ie in Z)Z.hasOwnProperty(ie)&&(W[ie]=Z[ie]);if(!W.WebSocketCtor&&WebSocket)W.WebSocketCtor=WebSocket;else if(!W.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new l.t}}lift(Z){const j=new L(this._config,this.destination);return j.operator=Z,j.source=this,j}_resetState(){this._socket=null,this.source||(this.destination=new l.t),this._output=new t.x}multiplex(Z,j,W){const ie=this;return new o.y(ee=>{try{ie.next(Z())}catch(he){ee.error(he)}const ve=ie.subscribe(he=>{try{W(he)&&ee.next(he)}catch(re){ee.error(re)}},he=>ee.error(he),()=>ee.complete());return()=>{try{ie.next(j())}catch(he){ee.error(he)}ve.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:Z,protocol:j,url:W,binaryType:ie}=this._config,ee=this._output;let ve=null;try{ve=j?new Z(W,j):new Z(W),this._socket=ve,ie&&(this._socket.binaryType=ie)}catch(re){return void ee.error(re)}const he=new M.w0(()=>{this._socket=null,ve&&1===ve.readyState&&ve.close()});ve.onopen=re=>{const{_socket:de}=this;if(!de)return ve.close(),void this._resetState();const{openObserver:le}=this._config;le&&le.next(re);const se=this.destination;this.destination=C.Lv.create(y=>{if(1===ve.readyState)try{const{serializer:i}=this._config;ve.send(i(y))}catch(i){this.destination.error(i)}},y=>{const{closingObserver:i}=this._config;i&&i.next(void 0),y&&y.code?ve.close(y.code,y.reason):ee.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:y}=this._config;y&&y.next(void 0),ve.close(),this._resetState()}),se&&se instanceof l.t&&he.add(se.subscribe(this.destination))},ve.onerror=re=>{this._resetState(),ee.error(re)},ve.onclose=re=>{this._resetState();const{closeObserver:de}=this._config;de&&de.next(re),re.wasClean?ee.complete():ee.error(re)},ve.onmessage=re=>{try{const{deserializer:de}=this._config;ee.next(de(re))}catch(de){ee.error(de)}}}_subscribe(Z){const{source:j}=this;return j?j.subscribe(Z):(this._socket||this._connectSocket(),this._output.subscribe(Z),Z.add(()=>{const{_socket:W}=this;0===this._output.observers.length&&(W&&(1===W.readyState||0===W.readyState)&&W.close(),this._resetState())}),Z)}unsubscribe(){const{_socket:Z}=this;Z&&(1===Z.readyState||0===Z.readyState)&&Z.close(),this._resetState(),super.unsubscribe()}}var O=m(5e3),A=m(5043),E=m(5986);let P=(()=>{class w{constructor(j,W){this.logger=j,this.sessionService=W,this.clWSMessages=new e.X(null),this.eclWSMessages=new e.X(null),this.lndWSMessages=new e.X(null),this.wsUrl="",this.nodeIndex="",this.RETRY_SECONDS=5,this.RECONNECT_TIMEOUT=null,this.unSubs=[new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x]}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.R)(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()}}return w.\u0275fac=function(j){return new(j||w)(O.LFG(A.mQ),O.LFG(E.m))},w.\u0275prov=O.Yz7({token:w,factory:w.\u0275fac}),w})()},8750:(Ve,Q,m)=>{"use strict";m.d(Q,{m:()=>mi});var e=m(9808),t=m(1402),v=m(3075),C=m(8138),o=m(9444),M=m(5e3),l=m(3270),R=m(3322),s=m(7093);m(3191);let qe=(()=>{class Ct{}return Ct.\u0275fac=function(bt){return new(bt||Ct)},Ct.\u0275mod=M.oAB({type:Ct}),Ct.\u0275inj=M.cJS({imports:[[l.IR]]}),Ct})(),pe=(()=>{class Ct{constructor(bt,Yt){(0,e.PM)(Yt)&&!bt&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(bt,Yt=[]){return{ngModule:Ct,providers:bt.serverLoaded?[{provide:l.WU,useValue:Object.assign(Object.assign({},l.g5),bt)},{provide:l.Bs,useValue:Yt,multi:!0},{provide:l.wY,useValue:!0}]:[{provide:l.WU,useValue:Object.assign(Object.assign({},l.g5),bt)},{provide:l.Bs,useValue:Yt,multi:!0}]}}}return Ct.\u0275fac=function(bt){return new(bt||Ct)(M.LFG(l.wY),M.LFG(M.Lbi))},Ct.\u0275mod=M.oAB({type:Ct}),Ct.\u0275inj=M.cJS({imports:[[s.ae,R.aT,qe],s.ae,R.aT,qe]}),Ct})();var Je=m(5113),St=m(508),kt=m(8966),yi=m(1079),Ni=m(7544),Si=m(7423);m(449),m(5664);let kn=(()=>{class Ct{}return Ct.\u0275fac=function(bt){return new(bt||Ct)},Ct.\u0275mod=M.oAB({type:Ct}),Ct.\u0275inj=M.cJS({imports:[[St.BQ,St.si],St.BQ]}),Ct})();var dr=m(9224),wi=m(7446),Fi=m(6856),dn=m(1125),Lr=m(3954),La=m(5245),Gn=m(7531),Or=m(4623),Ra=m(2181),Ma=m(6087),Fa=m(5899),xr=m(773),hs=m(9814),ur=m(4107),pa=m(2638),ma=m(2368);m(1159),m(6360),m(925),m(727),m(226);let Aa=(()=>{class Ct{}return Ct.\u0275fac=function(bt){return new(bt||Ct)},Ct.\u0275mod=M.oAB({type:Ct}),Ct.\u0275inj=M.cJS({imports:[[e.ez,St.BQ],St.BQ]}),Ct})();var Vr=m(7261),ha=m(4847),pr=m(5615),Sr=m(2075),is=m(3251),Oa=m(4594),ra=m(7238),Gr=m(149),Ha=m(6046),Zn=m(159),ns=m(644),ja=m(9776);let Xe=(()=>{class Ct extends ja.Xj{_createContainer(){const bt=document.createElement("div");bt.classList.add("cdk-overlay-container"),document.getElementById("rtl-container").appendChild(bt),this._containerElement=bt}}return Ct.\u0275fac=function(){let ti;return function(Yt){return(ti||(ti=M.n5z(Ct)))(Yt||Ct)}}(),Ct.\u0275prov=M.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})();var _e=m(5043),J=m(7731);const ne={suppressScrollX:!1,suppressScrollY:!1};let Qe=(()=>{class Ct extends St.LF{format(bt,Yt){if("input"===Yt){let xi=bt.getDate().toString();return xi=+xi<10?"0"+xi:xi,xi+"/"+J.gg[bt.getMonth()].name.toUpperCase()+"/"+bt.getFullYear()}return J.gg[bt.getMonth()].name.toUpperCase()+" "+bt.getFullYear()}}return Ct.\u0275fac=function(){let ti;return function(Yt){return(ti||(ti=M.n5z(Ct)))(Yt||Ct)}}(),Ct.\u0275prov=M.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})();const Wt={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 mi=(()=>{class Ct{}return Ct.\u0275fac=function(bt){return new(bt||Ct)},Ct.\u0275mod=M.oAB({type:Ct}),Ct.\u0275inj=M.cJS({providers:[{provide:_e.mQ,useClass:_e.LG},{provide:ns.op,useValue:ne},{provide:Vr.Ve,useValue:{duration:2e3,verticalPosition:"bottom",panelClass:"rtl-snack-bar"}},{provide:kt.Bq,useValue:{hasBackdrop:!0,autoFocus:!0,disableClose:!0,role:"dialog",width:"45%"}},{provide:St._A,useClass:Qe},{provide:St.sG,useValue:Wt},{provide:ja.Xj,useClass:Xe},e.JJ,e.rS,e.uU],imports:[[e.ez,v.u5,v.UX,o.uH,pe,Je.xu,kt.Is,Si.ot,kn,dr.QW,wi.p9,dn.To,Lr.N6,Fi.FA,St.XK,La.Ps,Gn.c,Or.ie,Ra.Tx,Fa.Cv,xr.Cq,hs.Fk,Gr.dp,ur.LD,pa.SJ,ma.rP,ha.JX,Sr.p0,Oa.g0,ra.AV,Ni.g,Ma.TU,pr.T5,Aa,is.Nh,Vr.ZX,yi.Bb,Ha.a4,Zn.OF,t.Bz,C.JF,ns.Xd],v.u5,v.UX,o.uH,pe,Je.xu,kt.Is,Si.ot,kn,dr.QW,wi.p9,dn.To,Lr.N6,Fi.FA,St.XK,La.Ps,Gn.c,Or.ie,Ra.Tx,Fa.Cv,xr.Cq,hs.Fk,Gr.dp,ur.LD,pa.SJ,ma.rP,ha.JX,Sr.p0,Oa.g0,ra.AV,Ni.g,Ma.TU,pr.T5,Aa,is.Nh,Vr.ZX,yi.Bb,Ha.a4,Zn.OF,ns.Xd]}),Ct})()},7861:(Ve,Q,m)=>{"use strict";m.d(Q,{lC:()=>C,qi:()=>o,ts:()=>M,jW:()=>l,ac:()=>R,uO:()=>s,qR:()=>L,M6:()=>O,c1:()=>A,yb:()=>E,tj:()=>P,Q2:()=>w,tw:()=>j,vI:()=>W,ey:()=>ie,XT:()=>ee,zQ:()=>ve,Uy:()=>he,fk:()=>re,Tm:()=>de,jS:()=>le,_V:()=>se,kS:()=>i,c0:()=>a,QO:()=>u,x4:()=>D,dc:()=>x});var e=m(5620),t=m(7731);(0,e.PH)(t.pg.VOID);const C=(0,e.PH)(t.pg.SET_API_URL_ECL,(0,e.Ky)()),o=(0,e.PH)(t.pg.UPDATE_API_CALL_STATUS_ROOT,(0,e.Ky)()),M=(0,e.PH)(t.pg.CLOSE_ALL_DIALOGS),l=(0,e.PH)(t.pg.OPEN_SNACK_BAR,(0,e.Ky)()),R=(0,e.PH)(t.pg.OPEN_SPINNER,(0,e.Ky)()),s=(0,e.PH)(t.pg.CLOSE_SPINNER,(0,e.Ky)()),L=(0,e.PH)(t.pg.OPEN_ALERT,(0,e.Ky)()),O=(0,e.PH)(t.pg.CLOSE_ALERT,(0,e.Ky)()),A=(0,e.PH)(t.pg.OPEN_CONFIRMATION,(0,e.Ky)()),E=(0,e.PH)(t.pg.CLOSE_CONFIRMATION,(0,e.Ky)()),P=(0,e.PH)(t.pg.SHOW_PUBKEY),w=(0,e.PH)(t.pg.FETCH_CONFIG,(0,e.Ky)()),j=((0,e.PH)(t.pg.SHOW_CONFIG,(0,e.Ky)()),(0,e.PH)(t.pg.UPDATE_SELECTED_NODE_OPTIONS)),W=(0,e.PH)(t.pg.RESET_ROOT_STORE,(0,e.Ky)()),ie=(0,e.PH)(t.pg.FETCH_RTL_CONFIG),ee=(0,e.PH)(t.pg.SET_RTL_CONFIG,(0,e.Ky)()),ve=(0,e.PH)(t.pg.SAVE_SETTINGS,(0,e.Ky)()),he=(0,e.PH)(t.pg.TWO_FA_SAVE_SETTINGS,(0,e.Ky)()),re=(0,e.PH)(t.pg.SET_SELECTED_NODE,(0,e.Ky)()),de=(0,e.PH)(t.pg.UPDATE_ROOT_NODE_SETTINGS,(0,e.Ky)()),le=(0,e.PH)(t.pg.UPDATE_SERVICE_SETTINGS,(0,e.Ky)()),se=(0,e.PH)(t.pg.SET_NODE_DATA,(0,e.Ky)()),i=((0,e.PH)(t.pg.SAVE_SSO,(0,e.Ky)()),(0,e.PH)(t.pg.LOGOUT)),a=(0,e.PH)(t.pg.RESET_PASSWORD,(0,e.Ky)()),u=((0,e.PH)(t.pg.RESET_PASSWORD_RES,(0,e.Ky)()),(0,e.PH)(t.pg.IS_AUTHORIZED,(0,e.Ky)())),D=((0,e.PH)(t.pg.IS_AUTHORIZED_RES,(0,e.Ky)()),(0,e.PH)(t.pg.LOGIN,(0,e.Ky)())),x=((0,e.PH)(t.pg.VERIFY_TWO_FA,(0,e.Ky)()),(0,e.PH)(t.pg.FETCH_FILE,(0,e.Ky)()));(0,e.PH)(t.pg.SHOW_FILE,(0,e.Ky)())},3093:(Ve,Q,m)=>{"use strict";m.d(Q,{V:()=>qi});var e=m(6642),t=m(7579),v=m(9646),C=m(8306),o=m(4128),M=m(4004),l=m(5698),R=m(1365),s=m(5577),L=m(262),O=m(2722),A=m(2340),E=m(7731),P=m(8966),w=m(5e3),Z=m(7093),j=m(773);let W=(()=>{class ot{constructor(gt,Lt){this.dialogRef=gt,this.data=Lt}}return ot.\u0275fac=function(gt){return new(gt||ot)(w.Y36(P.so),w.Y36(P.WI))},ot.\u0275cmp=w.Xpm({type:ot,selectors:[["rtl-spinner-dialog"]],decls:5,vars:1,consts:[[1,"spinner-container"],["fxLayout","column","fxLayoutAlign","center center",1,"spinner-circle"]],template:function(gt,Lt){1>&&(w.TgZ(0,"div",0),w.TgZ(1,"div",1),w._UZ(2,"mat-spinner"),w.TgZ(3,"h1"),w._uU(4),w.qZA(),w.qZA(),w.qZA()),2>&&(w.xp6(4),w.Oqu(Lt.data.titleMessage))},directives:[Z.xw,Z.Wh,j.$g],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;left:40%;top:35%}"]}),ot})();var ie=m(5043),ee=m(7261),ve=m(62),he=m(9808),re=m(3322),de=m(9224),le=m(7423),se=m(159),y=m(644),i=m(5245),a=m(3390),p=m(6895),u=m(4834);const _=["scrollContainer"];function D(ot,Kt){if(1&ot&&w._UZ(0,"qr-code",15),2&ot){const gt=w.oxw();w.Q6J("value",gt.showQRField)("size",200)("errorCorrectionLevel","L")}}function I(ot,Kt){1&ot&&w.GkF(0)}const x=function(ot){return{"h-40":ot}};function r(ot,Kt){if(1&ot&&(w.ynx(0),w.TgZ(1,"mat-card-content",16,17),w.YNc(3,I,1,0,"ng-container",18),w.qZA(),w.BQk()),2&ot){const gt=w.oxw(),Lt=w.MAs(20);w.xp6(1),w.Q6J("ngClass",w.VKq(2,x,gt.data.scrollable)),w.xp6(2),w.Q6J("ngTemplateOutlet",Lt)}}function b(ot,Kt){1&ot&&w.GkF(0)}function U(ot,Kt){if(1&ot&&(w.ynx(0),w.TgZ(1,"mat-card-content",19),w.YNc(2,b,1,0,"ng-container",18),w.qZA(),w.BQk()),2&ot){w.oxw();const gt=w.MAs(20);w.xp6(2),w.Q6J("ngTemplateOutlet",gt)}}function N(ot,Kt){1&ot&&(w.TgZ(0,"mat-icon",23),w._uU(1,"arrow_downward"),w.qZA())}function z(ot,Kt){1&ot&&(w.TgZ(0,"mat-icon",23),w._uU(1,"arrow_upward"),w.qZA())}function be(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"div",20),w.TgZ(1,"button",21),w.NdJ("click",function(){return w.CHM(gt),w.oxw().onScroll()}),w.YNc(2,N,2,0,"mat-icon",22),w.YNc(3,z,2,0,"mat-icon",22),w.qZA(),w.qZA()}if(2&ot){const gt=w.oxw();w.xp6(2),w.Q6J("ngIf","DOWN"===gt.scrollDirection),w.xp6(1),w.Q6J("ngIf","UP"===gt.scrollDirection)}}function xe(ot,Kt){1&ot&&(w.TgZ(0,"button",24),w._uU(1,"OK"),w.qZA()),2&ot&&w.Q6J("mat-dialog-close",!1)}function Re(ot,Kt){1&ot&&(w.TgZ(0,"button",25),w._uU(1,"Close"),w.qZA()),2&ot&&w.Q6J("mat-dialog-close",!1)}function ze(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"button",26),w.NdJ("copied",function(ui){return w.CHM(gt),w.oxw().onCopyField(ui)}),w._uU(1),w.qZA()}if(2&ot){const gt=w.oxw();w.Q6J("payload",gt.showCopyField),w.xp6(1),w.hij("Copy ",gt.showCopyName,"")}}function Le(ot,Kt){1&ot&&(w.TgZ(0,"button",25),w._uU(1,"Close"),w.qZA()),2&ot&&w.Q6J("mat-dialog-close",!1)}function K(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"button",26),w.NdJ("copied",function(ui){return w.CHM(gt),w.oxw().onCopyField(ui)}),w._uU(1),w.qZA()}if(2&ot){const gt=w.oxw();w.Q6J("payload",gt.showQRField),w.xp6(1),w.hij("Copy ",gt.showQRName,"")}}function we(ot,Kt){if(1&ot&&w._UZ(0,"qr-code",15),2&ot){const gt=w.oxw(2);w.Q6J("value",gt.showQRField)("size",200)("errorCorrectionLevel","L")}}function Y(ot,Kt){if(1&ot&&(w.TgZ(0,"p",32),w._uU(1),w.qZA()),2&ot){const gt=w.oxw(2);w.xp6(1),w.Oqu(gt.data.titleMessage)}}function ae(ot,Kt){1&ot&&w._UZ(0,"span",46),2&ot&&w.Q6J("innerHTML",Kt.$implicit,w.oJD)}function Ge(ot,Kt){if(1&ot&&(w.ynx(0),w.YNc(1,ae,1,1,"span",45),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Q6J("ngForOf",gt.value)}}function vt(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.ALo(2,"date"),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,1e3*gt.value,"dd/MMM/y HH:mm"))}}function Fe(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.ALo(2,"number"),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,gt.value,gt.digitsInfo?gt.digitsInfo:"1.0-3"))}}function Ne(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(gt.value?"True":"False")}}function ue(ot,Kt){1&ot&&(w.TgZ(0,"mat-icon",51),w._uU(1,"info"),w.qZA())}const Oe=function(ot){return{"failed-status":ot}};function Pe(ot,Kt){if(1&ot&&(w.TgZ(0,"p",49),w._uU(1),w.YNc(2,ue,2,0,"mat-icon",50),w.qZA()),2&ot){const gt=w.oxw(3).$implicit,Lt=w.oxw(4);w.Q6J("ngClass",w.VKq(3,Oe,gt.value===Lt.LoopStateEnum.FAILED)),w.xp6(1),w.hij(" ",gt.value," "),w.xp6(1),w.Q6J("ngIf",gt.value===Lt.LoopStateEnum.FAILED)}}function q(ot,Kt){if(1&ot&&w._uU(0),2&ot){const gt=w.oxw(3).$implicit;w.Oqu(gt.value)}}function $(ot,Kt){if(1&ot&&(w.ynx(0),w.YNc(1,Pe,3,5,"p",47),w.YNc(2,q,1,1,"ng-template",null,48,w.W1O),w.BQk()),2&ot){const gt=w.MAs(3),Lt=w.oxw(2).$implicit,ui=w.oxw(4);w.xp6(1),w.Q6J("ngIf","SWAP"===ui.data.openedBy&&"state"===Lt.key)("ngIfElse",gt)}}function ce(ot,Kt){if(1&ot&&(w.TgZ(0,"span"),w.TgZ(1,"span",42),w.YNc(2,Ge,2,1,"ng-container",43),w.YNc(3,vt,3,4,"ng-container",43),w.YNc(4,Fe,3,4,"ng-container",43),w.YNc(5,Ne,2,1,"ng-container",43),w.YNc(6,$,4,2,"ng-container",44),w.qZA(),w.qZA()),2&ot){const gt=w.oxw().$implicit,Lt=w.oxw(4);w.xp6(1),w.Q6J("ngSwitch",gt.type),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.ARRAY),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.DATE_TIME),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.NUMBER),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.BOOLEAN)}}function Me(ot,Kt){1&ot&&(w.TgZ(0,"span",52),w._uU(1,"\xa0"),w.qZA())}function Ue(ot,Kt){if(1&ot&&(w.TgZ(0,"div",37),w.TgZ(1,"h4",38),w._uU(2),w.qZA(),w.YNc(3,ce,7,5,"span",39),w.YNc(4,Me,2,0,"ng-template",null,40,w.W1O),w._UZ(6,"mat-divider",41),w.qZA()),2&ot){const gt=Kt.$implicit,Lt=w.MAs(5);w.s9C("fxFlex.gt-md",gt.width),w.xp6(2),w.Oqu(gt.title),w.xp6(1),w.Q6J("ngIf",gt&&(!!gt.value||0===gt.value))("ngIfElse",Lt)}}function lt(ot,Kt){if(1&ot&&(w.TgZ(0,"div"),w.TgZ(1,"div",35),w.YNc(2,Ue,7,4,"div",36),w.qZA(),w.qZA()),2&ot){const gt=Kt.$implicit;w.xp6(2),w.Q6J("ngForOf",gt)}}function nt(ot,Kt){if(1&ot&&(w.TgZ(0,"div",33),w.YNc(1,lt,3,1,"div",34),w.qZA()),2&ot){const gt=w.oxw(2);w.xp6(1),w.Q6J("ngForOf",gt.messageObjs)}}const ft=function(ot){return{"display-none":ot}};function it(ot,Kt){if(1&ot&&(w.TgZ(0,"div",27),w.TgZ(1,"div",28),w.YNc(2,we,1,3,"qr-code",2),w.qZA(),w.TgZ(3,"div",29),w.YNc(4,Y,2,1,"p",30),w.YNc(5,nt,2,1,"div",31),w.qZA(),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Q6J("ngClass",w.VKq(4,ft,""===gt.showQRField||gt.screenSize!==gt.screenSizeEnum.XS&>.screenSize!==gt.screenSizeEnum.SM)),w.xp6(1),w.Q6J("ngIf",""!==gt.showQRField),w.xp6(2),w.Q6J("ngIf",gt.data.titleMessage),w.xp6(1),w.Q6J("ngIf",(null==gt.messageObjs?null:gt.messageObjs.length)>0)}}let rt=(()=>{class ot{constructor(gt,Lt,ui,Ci,Yi,$i){this.dialogRef=gt,this.data=Lt,this.logger=ui,this.snackBar=Ci,this.commonService=Yi,this.renderer=$i,this.LoopStateEnum=E.Fq,this.showQRField="",this.showQRName="",this.showCopyName="",this.showCopyField="",this.errorMessage="",this.messageObjs=[],this.alertTypeEnum=E.n_,this.dataTypeEnum=E.Gi,this.screenSize="",this.screenSizeEnum=E.cu,this.scrollDirection="DOWN",this.shouldScroll=!0}set container(gt){gt&&(this.scrollContainer=gt,this.scrollContainer&&this.scrollContainer.nativeElement&&(this.unlistenEnd=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-end",Lt=>{this.scrollDirection="UP"}),this.unlistenStart=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-start",Lt=>{this.scrollDirection="DOWN"})))}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.messageObjs=this.data.message,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===E.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.messageObjs)}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(gt){this.snackBar.open((this.showQRName?this.showQRName:this.showCopyName)+" copied."),this.logger.info("Copied Text: "+gt)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unlistenStart&&this.unlistenStart(),this.unlistenEnd&&this.unlistenEnd()}}return ot.\u0275fac=function(gt){return new(gt||ot)(w.Y36(P.so),w.Y36(P.WI),w.Y36(ie.mQ),w.Y36(ee.ux),w.Y36(ve.v),w.Y36(w.Qsj))},ot.\u0275cmp=w.Xpm({type:ot,selectors:[["rtl-alert-message"]],viewQuery:function(gt,Lt){if(1>&&w.Gf(_,5),2>){let ui;w.iGM(ui=w.CRH())&&(Lt.container=ui.first)}},decls:21,vars:14,consts:[["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"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],[3,"fxFlex"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","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"],["contentBlock",""],[3,"value","size","errorCorrectionLevel"],[1,"padding-gap-x-large",3,"perfectScrollbar","ngClass"],["scrollContainer",""],[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"],["fxLayoutAlign","center center",4,"ngIf"],["fxLayoutAlign","center center"],["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,"payload","copied"],["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"],["emptyField",""],[1,"w-100","my-1"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"foreground-secondary-text",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","display-block w-100",3,"innerHTML",4,"ngFor","ngForOf"],[1,"display-block","w-100",3,"innerHTML"],["fxLayout","row",3,"ngClass",4,"ngIf","ngIfElse"],["noStyleBlock",""],["fxLayout","row",3,"ngClass"],["fxLayoutAlign","end end","class","icon-failed-status",4,"ngIf"],["fxLayoutAlign","end end",1,"icon-failed-status"],["fxFlex","100",1,"foreground-secondary-text"]],template:function(gt,Lt){1>&&(w.TgZ(0,"div",0),w.TgZ(1,"div",1),w.YNc(2,D,1,3,"qr-code",2),w.qZA(),w.TgZ(3,"div",3),w.TgZ(4,"mat-card-header",4),w.TgZ(5,"div",5),w.TgZ(6,"span",6),w._uU(7),w.qZA(),w.qZA(),w.TgZ(8,"button",7),w.NdJ("click",function(){return Lt.onClose()}),w._uU(9,"X"),w.qZA(),w.qZA(),w.YNc(10,r,4,4,"ng-container",8),w.YNc(11,U,3,1,"ng-container",8),w.YNc(12,be,4,2,"div",9),w.TgZ(13,"div",10),w.YNc(14,xe,2,1,"button",11),w.YNc(15,Re,2,1,"button",12),w.YNc(16,ze,2,2,"button",13),w.YNc(17,Le,2,1,"button",12),w.YNc(18,K,2,2,"button",13),w.qZA(),w.qZA(),w.qZA(),w.YNc(19,it,6,6,"ng-template",null,14,w.W1O)),2>&&(w.xp6(1),w.Q6J("ngClass",w.VKq(12,ft,""===Lt.showQRField||Lt.screenSize===Lt.screenSizeEnum.XS||Lt.screenSize===Lt.screenSizeEnum.SM)),w.xp6(1),w.Q6J("ngIf",""!==Lt.showQRField),w.xp6(1),w.Q6J("fxFlex",""===Lt.showQRField||Lt.screenSize===Lt.screenSizeEnum.XS||Lt.screenSize===Lt.screenSizeEnum.SM?"100":"70"),w.xp6(4),w.Oqu(Lt.data.alertTitle||Lt.alertTypeEnum[Lt.data.type]),w.xp6(3),w.Q6J("ngIf",Lt.data.scrollable),w.xp6(1),w.Q6J("ngIf",!Lt.data.scrollable),w.xp6(1),w.Q6J("ngIf",Lt.data.scrollable&&Lt.shouldScroll),w.xp6(2),w.Q6J("ngIf",(!Lt.showQRField||""===Lt.showQRField)&&""===Lt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Lt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Lt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Lt.showQRField),w.xp6(1),w.Q6J("ngIf",""!==Lt.showQRField))},directives:[Z.xw,Z.Wh,Z.yH,he.mk,re.oO,he.O5,de.dk,le.lW,se.uU,de.dn,y.$V,he.tP,i.Hw,a.h,P.ZT,p.y,he.sg,u.d,he.RF,he.n9,he.ED],pipes:[he.uU,he.JJ],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),ot})();var Mt=m(801),Zt=m(7861),Ft=m(5620),Vt=m(3075),Ii=m(9444),jt=m(7322),ei=m(7531),ki=m(6534);function ai(ot,Kt){if(1&ot&&(w.TgZ(0,"div",17),w._UZ(1,"fa-icon",18),w.TgZ(2,"span"),w._uU(3),w.qZA(),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Q6J("icon",gt.faExclamationTriangle),w.xp6(2),w.Oqu(gt.warningMessage)}}function hi(ot,Kt){if(1&ot&&(w.TgZ(0,"div",19),w._UZ(1,"fa-icon",18),w.TgZ(2,"span"),w._uU(3),w.qZA(),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Q6J("icon",gt.faInfoCircle),w.xp6(2),w.Oqu(gt.informationMessage)}}function Ze(ot,Kt){if(1&ot&&(w.TgZ(0,"p",20),w._uU(1),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Oqu(gt.data.titleMessage)}}function Ee(ot,Kt){1&ot&&w._UZ(0,"span",33),2&ot&&w.Q6J("innerHTML",Kt.$implicit,w.oJD)}function G(ot,Kt){if(1&ot&&(w.ynx(0),w.YNc(1,Ee,1,1,"span",32),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Q6J("ngForOf",gt.value)}}function ge(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.ALo(2,"date"),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,1e3*gt.value,"dd/MMM/y HH:mm"))}}function De(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.ALo(2,"number"),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,gt.value,"1.0-3"))}}function et(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(!0===gt.value?"True":"False")}}function $t(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(gt.value)}}function Nt(ot,Kt){if(1&ot&&(w.TgZ(0,"span"),w.TgZ(1,"span",29),w.YNc(2,G,2,1,"ng-container",30),w.YNc(3,ge,3,4,"ng-container",30),w.YNc(4,De,3,4,"ng-container",30),w.YNc(5,et,2,1,"ng-container",30),w.YNc(6,$t,2,1,"ng-container",31),w.qZA(),w.qZA()),2&ot){const gt=w.oxw().$implicit,Lt=w.oxw(3);w.xp6(1),w.Q6J("ngSwitch",gt.type),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.ARRAY),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.DATE_TIME),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.NUMBER),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.BOOLEAN)}}function Jt(ot,Kt){1&ot&&(w.TgZ(0,"span",34),w._uU(1,"\xa0"),w.qZA())}function ct(ot,Kt){if(1&ot&&(w.TgZ(0,"div",24),w.TgZ(1,"h4",25),w._uU(2),w.qZA(),w.YNc(3,Nt,7,5,"span",26),w.YNc(4,Jt,2,0,"ng-template",null,27,w.W1O),w._UZ(6,"mat-divider",28),w.qZA()),2&ot){const gt=Kt.$implicit,Lt=w.MAs(5);w.s9C("fxFlex.gt-md",gt.width),w.xp6(2),w.Oqu(gt.title),w.xp6(1),w.Q6J("ngIf",gt&&(!!gt.value||0===gt.value))("ngIfElse",Lt)}}function ke(ot,Kt){if(1&ot&&(w.TgZ(0,"div"),w.TgZ(1,"div",22),w.YNc(2,ct,7,4,"div",23),w.qZA(),w.qZA()),2&ot){const gt=Kt.$implicit;w.xp6(2),w.Q6J("ngForOf",gt)}}function Be(ot,Kt){if(1&ot&&(w.TgZ(0,"div"),w.YNc(1,ke,3,1,"div",21),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Q6J("ngForOf",gt.messageObjs)}}function at(ot,Kt){if(1&ot&&(w.TgZ(0,"p",20),w._uU(1),w.qZA()),2&ot){const gt=w.oxw(2);w.xp6(1),w.Oqu(gt.data.titleMessage)}}function st(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"input",41),w.NdJ("ngModelChange",function(ui){return w.CHM(gt),w.oxw().$implicit.inputValue=ui}),w.ALo(1,"lowercase"),w.qZA()}if(2&ot){const gt=w.oxw(),Lt=gt.index,ui=gt.$implicit;w.MGl("name","input",Lt,""),w.Q6J("placeholder",ui.placeholder)("min",ui.min)("step",ui.step)("type",w.lcZ(1,7,ui.inputType))("ngModel",ui.inputValue)("tabindex",Lt+1)}}function At(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"input",42),w.NdJ("ngModelChange",function(ui){return w.CHM(gt),w.oxw().$implicit.inputValue=ui}),w.ALo(1,"lowercase"),w.qZA()}if(2&ot){const gt=w.oxw(),Lt=gt.index,ui=gt.$implicit;w.MGl("name","input",Lt,""),w.Q6J("placeholder",ui.placeholder)("min",ui.min)("step",ui.step)("type",w.lcZ(1,7,ui.inputType))("ngModel",ui.inputValue)("tabindex",Lt+1)}}function li(ot,Kt){if(1&ot&&(w.TgZ(0,"mat-error"),w._uU(1),w.qZA()),2&ot){const gt=w.oxw().$implicit;w.xp6(1),w.hij("",gt.placeholder," is required.")}}function Bt(ot,Kt){if(1&ot&&(w.TgZ(0,"mat-form-field",38),w.YNc(1,st,2,9,"input",39),w.YNc(2,At,2,9,"input",40),w.YNc(3,li,2,1,"mat-error",11),w.TgZ(4,"mat-hint"),w._uU(5),w.qZA(),w.qZA()),2&ot){const gt=Kt.$implicit,Lt=Kt.index;w.Q6J("fxFlex",gt.width),w.xp6(1),w.Q6J("ngIf",0===Lt),w.xp6(1),w.Q6J("ngIf",0!==Lt),w.xp6(1),w.Q6J("ngIf",!gt.inputValue),w.xp6(2),w.Oqu(gt.hintFunction?gt.hintFunction(gt.inputValue):gt.hintText)}}function Rt(ot,Kt){if(1&ot&&(w.TgZ(0,"div",35),w.YNc(1,at,2,1,"p",10),w.TgZ(2,"div",36),w.YNc(3,Bt,6,5,"mat-form-field",37),w.qZA(),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Q6J("ngIf",gt.data.titleMessage),w.xp6(2),w.Q6J("ngForOf",gt.getInputs)}}function Li(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"button",43),w.NdJ("click",function(){w.CHM(gt);const ui=w.oxw();return ui.onClose(ui.getInputs)}),w._uU(1),w.qZA()}if(2&ot){const gt=w.oxw();w.xp6(1),w.Oqu(gt.yesBtnText)}}function si(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"button",44),w.NdJ("click",function(){return w.CHM(gt),w.oxw().onClose(!0)}),w._uU(1),w.qZA()}if(2&ot){const gt=w.oxw();w.xp6(1),w.Oqu(gt.yesBtnText)}}let ci=(()=>{class ot{constructor(gt,Lt,ui,Ci){this.dialogRef=gt,this.data=Lt,this.logger=ui,this.store=Ci,this.faInfoCircle=Mt.sqG,this.faExclamationTriangle=Mt.eHv,this.informationMessage="",this.warningMessage="",this.noBtnText="No",this.yesBtnText="Yes",this.messageObjs=[],this.flgShowInput=!1,this.alertTypeEnum=E.n_,this.dataTypeEnum=E.Gi,this.getInputs=[{placeholder:"",inputType:"text",inputValue:"",hintText:"",hintFunction:null}]}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.messageObjs=this.data.message,this.data.type===E.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection")}onClose(gt){if(gt&&this.getInputs&&this.getInputs.some(Lt=>void 0===Lt.inputValue))return!0;this.store.dispatch((0,Zt.yb)({payload:gt}))}}return ot.\u0275fac=function(gt){return new(gt||ot)(w.Y36(P.so),w.Y36(P.WI),w.Y36(ie.mQ),w.Y36(Ft.yh))},ot.\u0275cmp=w.Xpm({type:ot,selectors:[["rtl-confirmation-message"]],decls:20,vars:9,consts:[["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","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","2",1,"mr-1",3,"click"],["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"],["emptyField",""],[1,"w-100","my-1"],[1,"foreground-secondary-text",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","display-block w-100",3,"innerHTML",4,"ngFor","ngForOf"],[1,"display-block","w-100",3,"innerHTML"],["fxFlex","100",1,"foreground-secondary-text"],["fxLayout","column",1,"bordered-box","my-2","p-2"],["fxLayoutAlign","space-between center"],[3,"fxFlex",4,"ngFor","ngForOf"],[3,"fxFlex"],["autoFocus","","matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange",4,"ngIf"],["matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange",4,"ngIf"],["autoFocus","","matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange"],["matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange"],["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(gt,Lt){1>&&(w.TgZ(0,"div",0),w.TgZ(1,"div",1),w.TgZ(2,"mat-card-header",2),w.TgZ(3,"div",3),w.TgZ(4,"span",4),w._uU(5),w.qZA(),w.qZA(),w.TgZ(6,"button",5),w.NdJ("click",function(){return Lt.onClose(!1)}),w._uU(7,"X"),w.qZA(),w.qZA(),w.TgZ(8,"mat-card-content",6),w.TgZ(9,"form",7),w.YNc(10,ai,4,2,"div",8),w.YNc(11,hi,4,2,"div",9),w.YNc(12,Ze,2,1,"p",10),w.YNc(13,Be,2,1,"div",11),w.YNc(14,Rt,4,2,"div",12),w.TgZ(15,"div",13),w.TgZ(16,"button",14),w.NdJ("click",function(){return Lt.onClose(!1)}),w._uU(17),w.qZA(),w.YNc(18,Li,2,1,"button",15),w.YNc(19,si,2,1,"button",16),w.qZA(),w.qZA(),w.qZA(),w.qZA(),w.qZA()),2>&&(w.xp6(5),w.Oqu(Lt.data.alertTitle||Lt.alertTypeEnum[Lt.data.type]),w.xp6(5),w.Q6J("ngIf",Lt.warningMessage&&""!==Lt.warningMessage),w.xp6(1),w.Q6J("ngIf",Lt.informationMessage&&""!==Lt.informationMessage),w.xp6(1),w.Q6J("ngIf",Lt.data.titleMessage&&!Lt.flgShowInput),w.xp6(1),w.Q6J("ngIf",(null==Lt.messageObjs?null:Lt.messageObjs.length)>0),w.xp6(1),w.Q6J("ngIf",Lt.flgShowInput),w.xp6(3),w.Oqu(Lt.noBtnText),w.xp6(1),w.Q6J("ngIf",Lt.flgShowInput),w.xp6(1),w.Q6J("ngIf",!Lt.flgShowInput))},directives:[Z.xw,Z.yH,de.dk,Z.Wh,le.lW,de.dn,Vt._Y,Vt.JL,Vt.F,he.O5,Ii.BN,he.sg,u.d,he.RF,he.n9,he.ED,jt.KE,jt.bx,ei.Nt,ki.q,Vt.Fj,a.h,Vt.Q7,Vt.JJ,Vt.On,jt.TO],pipes:[he.uU,he.JJ,he.i8],styles:[""]}),ot})();var sn=m(1786),Ui=m(4107),Di=m(508);function Xi(ot,Kt){if(1&ot&&(w.TgZ(0,"mat-option",23),w._uU(1),w.qZA()),2&ot){const gt=Kt.$implicit;w.Q6J("value",gt),w.xp6(1),w.hij(" ",gt.infoName," ")}}function Ke(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"div",13),w.TgZ(1,"mat-form-field",20),w.TgZ(2,"mat-select",21),w.NdJ("valueChange",function(ui){return w.CHM(gt),w.oxw().selInfoType=ui}),w.YNc(3,Xi,2,2,"mat-option",22),w.qZA(),w.qZA(),w.qZA()}if(2&ot){const gt=w.oxw();w.xp6(2),w.Q6J("value",gt.selInfoType),w.xp6(1),w.Q6J("ngForOf",gt.infoTypes)}}const _t=function(ot){return{"display-none":ot}};let ye=(()=>{class ot{constructor(gt,Lt,ui,Ci,Yi){this.dialogRef=gt,this.data=Lt,this.logger=ui,this.snackBar=Ci,this.commonService=Yi,this.faReceipt=Mt.dLy,this.infoTypes=[{infoID:0,infoKey:"node pubkey",infoName:"Node pubkey"}],this.selInfoType=this.infoTypes[0],this.qrWidth=210,this.screenSize="",this.screenSizeEnum=E.cu}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((gt,Lt)=>{this.infoTypes.push({infoID:Lt+1,infoKey:"node URI "+(Lt+1),infoName:"Node URI "+(Lt+1)})})),this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyPubkey(gt){this.snackBar.open(this.selInfoType.infoName+" copied."),this.logger.info("Copied Text: "+gt)}}return ot.\u0275fac=function(gt){return new(gt||ot)(w.Y36(P.so),w.Y36(P.WI),w.Y36(ie.mQ),w.Y36(ee.ux),w.Y36(ve.v))},ot.\u0275cmp=w.Xpm({type:ot,selectors:[["rtl-show-pubkey"]],decls:26,vars:19,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"],[3,"value","size","errorCorrectionLevel"],["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"],["tabindex","3","fxFlex","5","fxLayoutAlign","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","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxFlex","100","fxFlex.gt-sm","40","fxLayoutAlign","start end"],["tabindex","1",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(gt,Lt){1>&&(w.TgZ(0,"div",0),w.TgZ(1,"div",1),w._UZ(2,"qr-code",2),w.qZA(),w.TgZ(3,"div",3),w.TgZ(4,"mat-card-header",4),w.TgZ(5,"div",5),w._UZ(6,"fa-icon",6),w.TgZ(7,"span",7),w._uU(8),w.qZA(),w.qZA(),w.TgZ(9,"button",8),w.NdJ("click",function(){return Lt.onClose()}),w._uU(10,"X"),w.qZA(),w.qZA(),w.TgZ(11,"mat-card-content",9),w.TgZ(12,"div",10),w.TgZ(13,"div",11),w._UZ(14,"qr-code",2),w.qZA(),w.YNc(15,Ke,4,2,"div",12),w.TgZ(16,"div",13),w.TgZ(17,"div",14),w.TgZ(18,"h4",15),w._uU(19),w.qZA(),w.TgZ(20,"span",16),w._uU(21),w.qZA(),w.qZA(),w.qZA(),w._UZ(22,"mat-divider",17),w.TgZ(23,"div",18),w.TgZ(24,"button",19),w.NdJ("copied",function(Ci){return Lt.onCopyPubkey(Ci)}),w._uU(25),w.qZA(),w.qZA(),w.qZA(),w.qZA(),w.qZA(),w.qZA()),2>&&(w.xp6(1),w.Q6J("ngClass",w.VKq(15,_t,Lt.screenSize===Lt.screenSizeEnum.XS||Lt.screenSize===Lt.screenSizeEnum.SM)),w.xp6(1),w.s9C("value",0===Lt.selInfoType.infoID?Lt.information.identity_pubkey:Lt.information.uris[Lt.selInfoType.infoID-1]),w.Q6J("size",Lt.qrWidth)("errorCorrectionLevel","L"),w.xp6(4),w.Q6J("icon",Lt.faReceipt),w.xp6(2),w.Oqu(Lt.selInfoType.infoName),w.xp6(5),w.Q6J("ngClass",w.VKq(17,_t,Lt.screenSize!==Lt.screenSizeEnum.XS&&Lt.screenSize!==Lt.screenSizeEnum.SM)),w.xp6(1),w.s9C("value",0===Lt.selInfoType.infoID?Lt.information.identity_pubkey:Lt.information.uris[Lt.selInfoType.infoID-1]),w.Q6J("size",Lt.qrWidth)("errorCorrectionLevel","L"),w.xp6(1),w.Q6J("ngIf",Lt.information.uris&&Lt.information.uris.length>0),w.xp6(4),w.Oqu(Lt.selInfoType.infoName),w.xp6(2),w.Oqu(0===Lt.selInfoType.infoID?Lt.information.identity_pubkey:Lt.information.uris[Lt.selInfoType.infoID-1]),w.xp6(3),w.s9C("payload",0===Lt.selInfoType.infoID?Lt.information.identity_pubkey:Lt.information.uris[Lt.selInfoType.infoID-1]),w.xp6(1),w.hij("Copy ",Lt.selInfoType.infoKey,""))},directives:[Z.xw,Z.Wh,Z.yH,he.mk,re.oO,se.uU,de.dk,Ii.BN,le.lW,de.dn,he.O5,u.d,a.h,p.y,jt.KE,Ui.gD,he.sg,Di.ey],styles:[""]}),ot})();var qe=m(6523),yt=m(429),pe=m(2994),Je=m(8377),St=m(8138),kt=m(7998),yi=m(5986),Ni=m(8104),Si=m(1402);let qi=(()=>{class ot{constructor(gt,Lt,ui,Ci,Yi,$i,Cn,Ln,_n,kn,dr){this.actions=gt,this.httpClient=Lt,this.store=ui,this.logger=Ci,this.wsService=Yi,this.sessionService=$i,this.commonService=Cn,this.dataService=Ln,this.dialog=_n,this.snackBar=kn,this.router=dr,this.screenSize="",this.alertWidth="55%",this.confirmWidth="70%",this.unSubs=[new t.x,new t.x],this.closeAllDialogs=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_ALL_DIALOGS),(0,M.U)(()=>{this.dialog.closeAll()})),{dispatch:!1}),this.openSnackBar=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_SNACK_BAR),(0,M.U)(wi=>{"string"==typeof wi.payload?this.snackBar.open(wi.payload):this.snackBar.open(wi.payload.message,"","ERROR"===wi.payload.type?{duration:wi.payload.duration?wi.payload.duration:2e3,panelClass:"rtl-warn-snack-bar"}:"WARN"===wi.payload.type?{duration:wi.payload.duration?wi.payload.duration:2e3,panelClass:"rtl-accent-snack-bar"}:{duration:wi.payload.duration?wi.payload.duration:2e3,panelClass:"rtl-snack-bar"})})),{dispatch:!1}),this.openSpinner=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_SPINNER),(0,M.U)(wi=>{wi.payload!==E.m6.NO_SPINNER&&(this.dialogRef=this.dialog.open(W,{data:{titleMessage:wi.payload}}))})),{dispatch:!1}),this.closeSpinner=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_SPINNER),(0,M.U)(wi=>{if(wi.payload!==E.m6.NO_SPINNER)try{this.dialogRef&&this.dialogRef.componentInstance&&this.dialogRef.componentInstance.data&&this.dialogRef.componentInstance.data.titleMessage&&this.dialogRef.componentInstance.data.titleMessage===wi.payload?this.dialogRef.close():this.dialog.openDialogs.forEach(Fi=>{Fi.componentInstance&&Fi.componentInstance.data&&Fi.componentInstance.data.titleMessage&&Fi.componentInstance.data.titleMessage===wi.payload&&Fi.close()})}catch(Fi){this.logger.error(Fi)}})),{dispatch:!1}),this.openAlert=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_ALERT),(0,M.U)(wi=>{const Fi=JSON.parse(JSON.stringify(wi.payload));Fi.width||(Fi.width=this.alertWidth),this.dialogRef=this.dialog.open(wi.payload.data.component?wi.payload.data.component:rt,Fi)})),{dispatch:!1}),this.closeAlert=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_ALERT),(0,M.U)(wi=>(this.dialogRef&&this.dialogRef.close(),wi.payload))),{dispatch:!1}),this.openConfirm=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_CONFIRMATION),(0,M.U)(wi=>{const Fi=JSON.parse(JSON.stringify(wi.payload));Fi.width||(Fi.width=this.confirmWidth),this.dialogRef=this.dialog.open(ci,Fi)})),{dispatch:!1}),this.closeConfirm=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_CONFIRMATION),(0,l.q)(1),(0,M.U)(wi=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(wi.payload),wi.payload))),{dispatch:!1}),this.showNodePubkey=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SHOW_PUBKEY),(0,R.M)(this.store.select(Je.R4)),(0,s.z)(([wi,Fi])=>(this.sessionService.getItem("token")&&Fi.identity_pubkey?this.store.dispatch((0,Zt.qR)({payload:{data:{information:Fi,component:ye}}})):this.snackBar.open("Node Pubkey does not exist."),(0,v.of)({type:E.pg.VOID}))))),this.appConfigFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_RTL_CONFIG),(0,s.z)(()=>(this.screenSize=this.commonService.getScreenSize(),this.screenSize===E.cu.XS||this.screenSize===E.cu.SM?(this.alertWidth="95%",this.confirmWidth="95%"):this.screenSize===E.cu.MD?(this.alertWidth="80%",this.confirmWidth="80%"):(this.alertWidth="45%",this.confirmWidth="50%"),this.store.dispatch((0,Zt.ac)({payload:E.m6.GET_RTL_CONFIG})),this.store.dispatch((0,Zt.qi)({payload:{action:"FetchRTLConfig",status:E.Bn.INITIATED}})),this.sessionService.getItem("token")?this.httpClient.get(A.NZ.CONF_API+"/rtlconf"):this.httpClient.get(A.NZ.CONF_API+"/rtlconfinit"))),(0,M.U)(wi=>{let Fi;return this.logger.info(wi),this.store.dispatch((0,Zt.uO)({payload:E.m6.GET_RTL_CONFIG})),this.store.dispatch((0,Zt.qi)({payload:{action:"FetchRTLConfig",status:E.Bn.COMPLETED}})),wi.nodes.forEach(dn=>{dn.settings.currencyUnits=[...E.uA,dn.settings.currencyUnit],+dn.index===wi.selectedNodeIndex&&(Fi=dn)}),Fi?(this.store.dispatch((0,Zt.fk)({payload:{uiMessage:E.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:Fi,isInitialSetup:!0}})),{type:E.pg.SET_RTL_CONFIG,payload:wi}):{type:E.pg.VOID}}),(0,L.K)(wi=>(this.handleErrorWithAlert("FetchRTLConfig",E.m6.GET_RTL_CONFIG,"Fetch RTL Config Failed!",A.NZ.CONF_API,wi),(0,v.of)({type:E.pg.VOID}))))),this.settingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SAVE_SETTINGS),(0,s.z)(wi=>{this.store.dispatch((0,Zt.ac)({payload:wi.payload.uiMessage})),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateSettings",status:E.Bn.INITIATED}}));let Fi=new C.y;if(wi.payload.settings&&wi.payload.defaultNodeIndex){const dn=this.httpClient.post(A.NZ.CONF_API,{updatedSettings:wi.payload.settings}),Lr=this.httpClient.post(A.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:wi.payload.defaultNodeIndex});Fi=(0,o.D)([dn,Lr])}else wi.payload.settings&&!wi.payload.defaultNodeIndex?Fi=this.httpClient.post(A.NZ.CONF_API,{updatedSettings:wi.payload.settings}):!wi.payload.settings&&wi.payload.defaultNodeIndex&&(Fi=this.httpClient.post(A.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:wi.payload.defaultNodeIndex}));return Fi.pipe((0,M.U)(dn=>(this.logger.info(dn),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateSettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:wi.payload.uiMessage})),{type:E.pg.OPEN_SNACK_BAR,payload:dn.length?dn[0].message+".":dn.message+"."})),(0,L.K)(dn=>(this.handleErrorWithAlert("UpdateSettings",wi.payload.uiMessage,"Update Settings Failed!",A.NZ.CONF_API,dn.length?dn[0]:dn),(0,v.of)({type:E.pg.VOID}))))}))),this.updateServicesettings=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.UPDATE_SERVICE_SETTINGS),(0,s.z)(wi=>(this.store.dispatch((0,Zt.ac)({payload:wi.payload.uiMessage})),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateServiceSettings",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.CONF_API+"/updateServiceSettings",wi.payload).pipe((0,M.U)(Fi=>(this.logger.info(Fi),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateServiceSettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:wi.payload.uiMessage})),this.store.dispatch((0,Zt.Tm)({payload:wi.payload})),{type:E.pg.OPEN_SNACK_BAR,payload:Fi.message+"."})),(0,L.K)(Fi=>(this.handleErrorWithAlert("UpdateServiceSettings",wi.payload.uiMessage,"Update Service Settings Failed!",A.NZ.CONF_API,Fi),(0,v.of)({type:E.pg.VOID})))))))),this.twoFASettingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.TWO_FA_SAVE_SETTINGS),(0,s.z)(wi=>(this.store.dispatch((0,Zt.ac)({payload:E.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,Zt.qi)({payload:{action:"Update2FASettings",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.CONF_API+"/update2FA",{secret2fa:wi.payload.secret2fa}))),(0,R.M)(this.store.select(Je.Yj)),(0,M.U)(([wi,Fi])=>{this.logger.info(wi),Fi.enable2FA=!Fi.enable2FA,this.store.dispatch((0,Zt.qi)({payload:{action:"Update2FASettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:E.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,Zt.XT)({payload:Fi}))}),(0,L.K)(wi=>(this.handleErrorWithAlert("Update2FASettings",E.m6.UPDATE_UI_SETTINGS,"Update 2FA Settings Failed!",A.NZ.CONF_API,wi),(0,v.of)({type:E.pg.VOID})))),{dispatch:!1}),this.configFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_CONFIG),(0,s.z)(wi=>(this.store.dispatch((0,Zt.ac)({payload:E.m6.OPEN_CONFIG_FILE})),this.store.dispatch((0,Zt.qi)({payload:{action:"fetchConfig",status:E.Bn.INITIATED}})),this.httpClient.get(A.NZ.CONF_API+"/config/"+wi.payload).pipe((0,M.U)(Fi=>(this.store.dispatch((0,Zt.qi)({payload:{action:"fetchConfig",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:E.m6.OPEN_CONFIG_FILE})),{type:E.pg.SHOW_CONFIG,payload:Fi})),(0,L.K)(Fi=>(this.handleErrorWithAlert("fetchConfig",E.m6.OPEN_CONFIG_FILE,"Fetch Config Failed!",A.NZ.CONF_API+"/config/"+wi.payload,Fi),(0,v.of)({type:E.pg.VOID})))))))),this.showLnConfig=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SHOW_CONFIG),(0,M.U)(wi=>wi.payload)),{dispatch:!1}),this.isAuthorized=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.IS_AUTHORIZED),(0,s.z)(wi=>(this.store.dispatch((0,Zt.qi)({payload:{action:"IsAuthorized",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.AUTHENTICATE_API,{authenticateWith:wi.payload&&""!==wi.payload.trim()?E.OJ.PASSWORD:E.OJ.JWT,authenticationValue:wi.payload&&""!==wi.payload.trim()?wi.payload:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe((0,M.U)(Fi=>(this.logger.info(Fi),this.store.dispatch((0,Zt.qi)({payload:{action:"IsAuthorized",status:E.Bn.COMPLETED}})),this.logger.info("Successfully Authorized!"),{type:E.pg.IS_AUTHORIZED_RES,payload:Fi})),(0,L.K)(Fi=>(this.handleErrorWithAlert("IsAuthorized",E.m6.NO_SPINNER,"Authorization Failed",A.NZ.AUTHENTICATE_API,Fi),(0,v.of)({type:E.pg.IS_AUTHORIZED_RES,payload:"ERROR"})))))))),this.isAuthorizedRes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.IS_AUTHORIZED_RES),(0,M.U)(wi=>wi.payload)),{dispatch:!1}),this.authLogin=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.LOGIN),(0,R.M)(this.store.select(Je.Yj)),(0,s.z)(([wi,Fi])=>(this.store.dispatch((0,qe.Ll)({payload:null})),this.store.dispatch((0,yt.xH)({payload:null})),this.store.dispatch((0,pe.Fd)({payload:null})),this.store.dispatch((0,Zt.qi)({payload:{action:"Login",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.AUTHENTICATE_API,{authenticateWith:wi.payload.password?E.OJ.PASSWORD:E.OJ.JWT,authenticationValue:wi.payload.password?wi.payload.password:this.sessionService.getItem("token")?this.sessionService.getItem("token"):"",twoFAToken:wi.payload.twoFAToken?wi.payload.twoFAToken:""}).pipe((0,M.U)(dn=>{this.logger.info(dn),this.store.dispatch((0,Zt.qi)({payload:{action:"Login",status:E.Bn.COMPLETED}})),this.setLoggedInDetails(wi.payload.defaultPassword,dn)}),(0,L.K)(dn=>(this.logger.info("Redirecting to Login Error Page"),this.handleErrorWithoutAlert("Login",E.m6.NO_SPINNER,dn),+Fi.sso.rtlSSO?this.router.navigate(["/error"],{state:{errorCode:"406",errorMessage:dn.error&&dn.error.error?dn.error.error:"Single Sign On Failed!"}}):this.router.navigate(["./login"]),(0,v.of)({type:E.pg.VOID}))))))),{dispatch:!1}),this.tokenVerify=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.VERIFY_TWO_FA),(0,s.z)(wi=>(this.store.dispatch((0,Zt.ac)({payload:E.m6.VERIFY_TOKEN})),this.store.dispatch((0,Zt.qi)({payload:{action:"VerifyToken",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.AUTHENTICATE_API+"/token",{authentication2FA:wi.payload.token}).pipe((0,M.U)(Fi=>{this.logger.info(Fi),this.store.dispatch((0,Zt.uO)({payload:E.m6.VERIFY_TOKEN})),this.store.dispatch((0,Zt.qi)({payload:{action:"VerifyToken",status:E.Bn.COMPLETED}})),this.logger.info("Token Successfully Verified!"),this.setLoggedInDetails(!1,wi.payload.authResponse)}),(0,L.K)(Fi=>(this.handleErrorWithAlert("VerifyToken",E.m6.VERIFY_TOKEN,"Authorization Failed!",A.NZ.AUTHENTICATE_API+"/token",Fi),(0,v.of)({type:E.pg.VOID}))))))),{dispatch:!1}),this.logOut=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.LOGOUT),(0,R.M)(this.store.select(Je.Yj)),(0,s.z)(([wi,Fi])=>(this.store.dispatch((0,Zt.ac)({payload:E.m6.LOG_OUT})),this.httpClient.get(A.NZ.AUTHENTICATE_API+"/logout").pipe((0,M.U)(dn=>{this.logger.info(dn),this.store.dispatch((0,Zt.uO)({payload:E.m6.LOG_OUT})),+Fi.sso.rtlSSO?window.location.href=Fi.sso.logoutRedirectLink:this.router.navigate(["./login"]),this.sessionService.clearAll(),this.store.dispatch((0,Zt._V)({payload:{}})),this.logger.warn("LOGGED OUT")}))))),{dispatch:!1}),this.resetPassword=(0,e.GW)(()=>this.actions.pipe((0,O.R)(this.unSubs[1]),(0,e.l4)(E.pg.RESET_PASSWORD),(0,s.z)(wi=>(this.store.dispatch((0,Zt.qi)({payload:{action:"ResetPassword",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.AUTHENTICATE_API+"/reset",{currPassword:wi.payload.currPassword,newPassword:wi.payload.newPassword}).pipe((0,O.R)(this.unSubs[0]),(0,M.U)(Fi=>(this.logger.info(Fi),this.store.dispatch((0,Zt.qi)({payload:{action:"ResetPassword",status:E.Bn.COMPLETED}})),this.sessionService.setItem("defaultPassword",!1),this.logger.info("Password Reset Successful!"),this.store.dispatch((0,Zt.jW)({payload:"Password Reset Successful!"})),this.SetToken(Fi.token),{type:E.pg.RESET_PASSWORD_RES,payload:Fi.token})),(0,L.K)(Fi=>(this.handleErrorWithAlert("ResetPassword",E.m6.NO_SPINNER,"Password Reset Failed!",A.NZ.AUTHENTICATE_API+"/reset",Fi),(0,v.of)({type:E.pg.VOID})))))))),this.setSelectedNode=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SET_SELECTED_NODE),(0,s.z)(wi=>(this.store.dispatch((0,Zt.ac)({payload:wi.payload.uiMessage})),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateSelNode",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.CONF_API+"/updateSelNode",{prevNodeIndex:wi.payload.prevLnNodeIndex,currNodeIndex:wi.payload.currentLnNode.index}).pipe((0,M.U)(Fi=>(this.logger.info(Fi),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateSelNode",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:wi.payload.uiMessage})),this.initializeNode(wi.payload.currentLnNode,wi.payload.isInitialSetup),{type:E.pg.VOID})),(0,L.K)(Fi=>(this.handleErrorWithAlert("UpdateSelNode",wi.payload.uiMessage,"Update Selected Node Failed!",A.NZ.CONF_API+"/updateSelNode",Fi),(0,v.of)({type:E.pg.VOID})))))))),this.fetchFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_FILE),(0,s.z)(wi=>{this.store.dispatch((0,Zt.ac)({payload:E.m6.DOWNLOAD_BACKUP_FILE})),this.store.dispatch((0,Zt.qi)({payload:{action:"FetchFile",status:E.Bn.INITIATED}}));const Fi="?channel="+wi.payload.channelPoint+(wi.payload.path?"&path="+wi.payload.path:"");return this.httpClient.get(A.NZ.CONF_API+"/file"+Fi).pipe((0,M.U)(dn=>(this.store.dispatch((0,Zt.qi)({payload:{action:"FetchFile",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:E.m6.DOWNLOAD_BACKUP_FILE})),{type:E.pg.SHOW_FILE,payload:dn})),(0,L.K)(dn=>(this.handleErrorWithAlert("fetchFile",E.m6.DOWNLOAD_BACKUP_FILE,"Download Backup File Failed!",A.NZ.CONF_API+"/file"+Fi,{status:this.commonService.extractErrorNumber(dn),error:{error:this.commonService.extractErrorCode(dn)}}),(0,v.of)({type:E.pg.VOID}))))}))),this.showFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SHOW_FILE),(0,M.U)(wi=>wi.payload)),{dispatch:!1})}initializeNode(gt,Lt){this.logger.info("Initializing node from RTL Effects.");const ui=Lt?"":"HOME";let Ci={};if(Ci=gt.settings.fiatConversion&>.settings.currencyUnit?{userPersona:gt.settings.userPersona,channelBackupPath:gt.settings.channelBackupPath,selCurrencyUnit:gt.settings.currencyUnit,currencyUnits:[...E.uA,gt.settings.currencyUnit],fiatConversion:gt.settings.fiatConversion,lnImplementation:gt.lnImplementation,swapServerUrl:gt.settings.swapServerUrl,boltzServerUrl:gt.settings.boltzServerUrl,enableOffers:gt.settings.enableOffers}:{userPersona:gt.settings.userPersona,channelBackupPath:gt.settings.channelBackupPath,selCurrencyUnit:gt.settings.currencyUnit,currencyUnits:E.uA,fiatConversion:gt.settings.fiatConversion,lnImplementation:gt.lnImplementation,swapServerUrl:gt.settings.swapServerUrl,boltzServerUrl:gt.settings.boltzServerUrl,enableOffers:gt.settings.enableOffers},this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("clUnlocked"),this.sessionService.removeItem("eclUnlocked"),this.store.dispatch((0,Zt.vI)({payload:gt})),this.store.dispatch((0,qe.Ll)({payload:Ci})),this.store.dispatch((0,yt.xH)({payload:Ci})),this.store.dispatch((0,pe.Fd)({payload:Ci})),this.sessionService.getItem("token")){const Yi=gt.lnImplementation?gt.lnImplementation.toUpperCase():"LND";this.dataService.setLnImplementation(Yi);const $i=A.NZ.production&&window.location.origin?window.location.origin+"/rtl/api":A.T5;switch(this.wsService.connectWebSocket($i.replace(/^http/,"ws")+A.NZ.Web_SOCKET_API,gt.index.toString()),Yi){case"CLN":this.store.dispatch((0,yt.CN)({payload:{loadPage:ui}}));break;case"ECL":this.store.dispatch((0,pe.iz)({payload:{loadPage:ui}}));break;default:this.store.dispatch((0,qe.sQ)({payload:{loadPage:ui}}))}}}SetToken(gt){gt?(this.sessionService.setItem("lndUnlocked","true"),this.sessionService.setItem("token",gt)):(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"))}setLoggedInDetails(gt,Lt){this.logger.info("Successfully Authorized!"),this.SetToken(Lt.token),this.sessionService.setItem("defaultPassword",gt),gt?(this.store.dispatch((0,Zt.jW)({payload:"Reset your password."})),this.router.navigate(["/settings/auth"])):this.store.dispatch((0,Zt.ey)())}handleErrorWithoutAlert(gt,Lt,ui){this.logger.error("ERROR IN: "+gt+"\n"+JSON.stringify(ui)),401===ui.status&&"Login"!==gt?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Zt.ts)()),this.store.dispatch((0,Zt.kS)()),this.store.dispatch((0,Zt.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,Zt.uO)({payload:Lt})),this.store.dispatch((0,Zt.qi)({payload:{action:gt,status:E.Bn.ERROR,statusCode:ui.status?ui.status.toString():"",message:this.commonService.extractErrorMessage(ui)}})))}handleErrorWithAlert(gt,Lt,ui,Ci,Yi){if(this.logger.error(Yi),0===Yi.status&&Yi.statusText&&"Unknown Error"===Yi.statusText&&(Yi={status:400,error:{message:"Unknown Error / CORS Origin Not Allowed"}}),401===Yi.status&&"Login"!==gt)this.logger.info("Redirecting to Login"),this.store.dispatch((0,Zt.ts)()),this.store.dispatch((0,Zt.kS)()),this.store.dispatch((0,Zt.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,Zt.uO)({payload:Lt}));const $i=this.commonService.extractErrorMessage(Yi);this.store.dispatch((0,Zt.qR)({payload:{data:{type:"ERROR",alertTitle:ui,message:{code:Yi.status?Yi.status:"Unknown Error",message:$i,URL:Ci},component:sn.H}}})),this.store.dispatch((0,Zt.qi)({payload:{action:gt,status:E.Bn.ERROR,statusCode:Yi.status?Yi.status.toString():"",message:$i,URL:Ci}}))}}ngOnDestroy(){this.unSubs.forEach(gt=>{gt.next(null),gt.complete()})}}return ot.\u0275fac=function(gt){return new(gt||ot)(w.LFG(e.eX),w.LFG(St.eN),w.LFG(Ft.yh),w.LFG(ie.mQ),w.LFG(kt.d),w.LFG(yi.m),w.LFG(ve.v),w.LFG(Ni.D),w.LFG(P.uw),w.LFG(ee.ux),w.LFG(Si.F0))},ot.\u0275prov=w.Yz7({token:ot,factory:ot.\u0275fac}),ot})()},8377:(Ve,Q,m)=>{"use strict";m.d(Q,{dT:()=>C,Yj:()=>o,R4:()=>M,ul:()=>l,Sr:()=>R,gW:()=>s});var e=m(5620);const t=(0,e.ZF)("root"),C=((0,e.P1)(t,L=>L.apiURL),(0,e.P1)(t,L=>L.selNode)),o=(0,e.P1)(t,L=>L.appConfig),M=(0,e.P1)(t,L=>L.nodeData),l=(0,e.P1)(t,L=>L.apisCallStatus.Login),R=(0,e.P1)(t,L=>L.apisCallStatus.IsAuthorized),s=(0,e.P1)(t,L=>({nodeDate:L.nodeData,selNode:L.selNode}))},2340:(Ve,Q,m)=>{"use strict";m.d(Q,{T5:()=>e,NZ:()=>t,q4:()=>v});const e="./api",t={production:!0,isDebugMode:!1,AUTHENTICATE_API:e+"/authenticate",CONF_API:e+"/conf",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"},v="0.12.4-beta"},8864:(Ve,Q,m)=>{"use strict";var e=m(2313),t=m(5e3),v=m(6360),C=m(8138),o=m(5113),M=m(5620),l=m(6642),R=m(9565),s=m(7579),L=m(6451),O=m(4968),A=m(457),E=m(4986),P=m(2805);function w(X=0,He=E.z){return X<0&&(X=0),(0,P.H)(X,X,He)}var Z=m(9646),j=m(727),W=m(4482),ie=m(5403),ee=m(8737),ve=m(3269),he=m(9672),de=m(9300),le=m(8505),se=m(3900),y=m(2722),i=m(8746),a=m(1884),p=m(4004);class u{}class _{constructor(He,B){this._ngZone=B,this.timerStart$=new s.x,this.idleDetected$=new s.x,this.timeout$=new s.x,this.idleMillisec=6e5,this.idleSensitivityMillisec=1e3,this.timeout=300,this.pingMillisec=12e4,He&&this.setConfig(He)}startWatching(){this.activityEvents$||(this.activityEvents$=(0,L.T)((0,O.R)(window,"mousemove"),(0,O.R)(window,"resize"),(0,O.R)(document,"keydown"))),this.idle$=(0,A.D)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function re(X,...He){var B,Ae;const mt=null!==(B=(0,ve.yG)(He))&&void 0!==B?B:E.z,fi=null!==(Ae=He[0])&&void 0!==Ae?Ae:null,In=He[1]||1/0;return(0,W.e)((tr,Fn)=>{let Br=[],ya=!1;const sr=fo=>{const{buffer:xc,subs:jo}=fo;jo.unsubscribe(),(0,ee.P)(Br,fo),Fn.next(xc),ya&&Na()},Na=()=>{if(Br){const fo=new j.w0;Fn.add(fo);const jo={buffer:[],subs:fo};Br.push(jo),(0,he.f)(fo,mt,()=>sr(jo),X)}};null!==fi&&fi>=0?(0,he.f)(Fn,mt,Na,fi,!0):ya=!0,Na();const Wo=new ie.Q(Fn,fo=>{const xc=Br.slice();for(const jo of xc){const{buffer:w0}=jo;w0.push(fo),In<=w0.length&&sr(jo)}},()=>{for(;null==Br?void 0:Br.length;)Fn.next(Br.shift().buffer);null==Wo||Wo.unsubscribe(),Fn.complete(),Fn.unsubscribe()},void 0,()=>Br=null);tr.subscribe(Wo)})}(this.idleSensitivityMillisec),(0,de.h)(He=>!He.length&&!this.isIdleDetected&&!this.isInactivityTimer),(0,le.b)(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),(0,se.w)(()=>this._ngZone.runOutsideAngular(()=>w(1e3).pipe((0,y.R)((0,L.T)(this.activityEvents$,(0,P.H)(this.idleMillisec).pipe((0,le.b)(()=>{this.isInactivityTimer=!0,this.timerStart$.next(!0)})))),(0,i.x)(()=>{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,a.x)(),(0,se.w)(He=>He?this.timer$:(0,Z.of)(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe((0,de.h)(He=>!!He),(0,le.b)(()=>this.isTimeout=!0),(0,p.U)(()=>!0))}getConfigValue(){return{idle:this.idleMillisec/1e3,idleSensitivity:this.idleSensitivityMillisec/1e3,timeout:this.timeout,ping:this.pingMillisec/1e3}}setConfigValues(He){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(He):console.error("Call stopWatching() before set config values")}setConfig(He){He.idle&&(this.idleMillisec=1e3*He.idle),He.ping&&(this.pingMillisec=1e3*He.ping),He.idleSensitivity&&(this.idleSensitivityMillisec=1e3*He.idleSensitivity),He.timeout&&(this.timeout=He.timeout)}setCustomActivityEvents(He){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=He:console.error("Call stopWatching() before set custom activity events")}setupTimer(He){this._ngZone.runOutsideAngular(()=>{this.timer$=(0,Z.of)(()=>new Date).pipe((0,p.U)(B=>B()),(0,se.w)(B=>w(1e3).pipe((0,p.U)(()=>Math.round(((new Date).valueOf()-B.valueOf())/1e3)),(0,le.b)(Ae=>{Ae>=He&&this.timeout$.next(!0)}))))})}setupPing(He){this.ping$=w(He).pipe((0,de.h)(()=>!this.isTimeout))}}_.\u0275fac=function(He){return new(He||_)(t.LFG(u,8),t.LFG(t.R0b))},_.\u0275prov=t.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_.ngInjectableDef=(0,t.Ez6)({factory:function(){return new _((0,t.f3M)(u,8),(0,t.f3M)(t.R0b))},token:_,providedIn:"root"});let D=(()=>{class X{static forRoot(B){return{ngModule:X,providers:[{provide:u,useValue:B}]}}}return X.\u0275fac=function(B){return new(B||X)},X.\u0275mod=t.oAB({type:X}),X.\u0275inj=t.cJS({imports:[[]]}),X})();var I=m(1402),x=m(801),r=m(8377),b=m(7093),U=m(9444),N=m(9224),z=m(3251),be=m(9808);const xe=function(){return{initial:!1}};function Re(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",10),t.NdJ("click",function(){t.CHM(B);const mt=t.oxw();return mt.activeLink=mt.links[1].link}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw();t.s9C("routerLink",B.links[1].link),t.Q6J("active",B.activeLink===B.links[1].link)("state",t.DdM(4,xe)),t.xp6(1),t.Oqu(B.links[1].name)}}function ze(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){t.CHM(B);const mt=t.oxw();return mt.activeLink=mt.links[2].link}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw();t.s9C("routerLink",B.links[2].link),t.Q6J("active",B.activeLink===B.links[2].link),t.xp6(1),t.Oqu(B.links[2].name)}}let Le=(()=>{class X{constructor(B,Ae){this.store=B,this.router=Ae,this.faUserCog=x.gNZ,this.showBitcoind=!1,this.links=[{link:"app",name:"Application"},{link:"auth",name:"Authentication"},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new s.x,new s.x,new s.x]}ngOnInit(){const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeLink=B?B.link:this.links[0].link,this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof I.Av)).subscribe({next:Ae=>{const mt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeLink=mt?mt.link:this.links[0].link}}),this.store.select(r.Yj).pipe((0,y.R)(this.unSubs[1])).subscribe(Ae=>{this.appConfig=Ae}),this.store.select(r.dT).pipe((0,y.R)(this.unSubs[2])).subscribe(Ae=>{this.showBitcoind=!1,this.selNode=Ae,this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(I.F0))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-settings"]],decls:14,vars:6,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-tab-nav-bar",""],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Settings"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"nav",5),t.TgZ(8,"div",6),t.NdJ("click",function(){return Ae.activeLink=Ae.links[0].link}),t._uU(9),t.qZA(),t.YNc(10,Re,2,5,"div",7),t.YNc(11,ze,2,3,"div",8),t.qZA(),t.TgZ(12,"div",9),t._UZ(13,"router-outlet"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(1),t.Q6J("icon",Ae.faUserCog),t.xp6(7),t.s9C("routerLink",Ae.links[0].link),t.Q6J("active",Ae.activeLink===Ae.links[0].link),t.xp6(1),t.Oqu(Ae.links[0].name),t.xp6(1),t.Q6J("ngIf",!+Ae.appConfig.sso.rtlSSO),t.xp6(1),t.Q6J("ngIf",Ae.showBitcoind))},directives:[b.xw,b.Wh,U.BN,N.a8,N.dn,z.BU,z.Nj,I.rH,be.O5,b.yH,I.lC],styles:[""]}),X})();var K=m(7731),we=m(7861),Y=m(5043),ae=m(644),Ge=m(3075),vt=m(7322),Fe=m(4107),Ne=m(3390),ue=m(7423),Oe=m(508);function Pe(X,He){if(1&X&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.Q6J("value",B.index),t.xp6(1),t.AsE(" ",B.lnNode," (",B.lnImplementation,") ")}}function q(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"form",2,3),t.TgZ(2,"div",4),t._UZ(3,"fa-icon",5),t.TgZ(4,"span",6),t._uU(5,"Default Node"),t.qZA(),t.qZA(),t.TgZ(6,"div",7),t.TgZ(7,"div",8),t._UZ(8,"fa-icon",9),t.TgZ(9,"span"),t._uU(10,"The setting will apply after RTL server restarts."),t.qZA(),t.qZA(),t.TgZ(11,"div",10),t.TgZ(12,"mat-form-field",10),t.TgZ(13,"mat-select",11),t.NdJ("ngModelChange",function(mt){return t.CHM(B),t.oxw().appConfig.defaultNodeIndex=mt}),t.YNc(14,Pe,2,3,"mat-option",12),t.qZA(),t.qZA(),t.qZA(),t.TgZ(15,"div",13),t.TgZ(16,"div",10),t.TgZ(17,"button",14),t.NdJ("click",function(){return t.CHM(B),t.oxw().onResetSettings()}),t._uU(18,"Reset"),t.qZA(),t.TgZ(19,"button",15),t.NdJ("click",function(){return t.CHM(B),t.oxw().onUpdateSettings()}),t._uU(20,"Update"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.xp6(3),t.Q6J("icon",B.faWindowRestore),t.xp6(5),t.Q6J("icon",B.faInfoCircle),t.xp6(5),t.Q6J("ngModel",B.appConfig.defaultNodeIndex),t.xp6(1),t.Q6J("ngForOf",B.appConfig.nodes)}}let $=(()=>{class X{constructor(B,Ae){this.logger=B,this.store=Ae,this.faInfoCircle=x.sqG,this.faWindowRestore=x.wyP,this.faPlus=x.r8p,this.previousDefaultNode=0,this.unSubs=[new s.x,new s.x]}ngOnInit(){this.store.select(r.Yj).pipe((0,y.R)(this.unSubs[0])).subscribe(B=>{this.appConfig=B,this.previousDefaultNode=this.appConfig.defaultNodeIndex,this.logger.info(B)})}onAddNewNode(){this.logger.warn("ADD NEW NODE")}onUpdateSettings(){this.store.dispatch((0,we.zQ)({payload:{uiMessage:K.m6.UPDATE_DEFAULT_NODE_SETTING,defaultNodeIndex:this.appConfig.defaultNodeIndex?this.appConfig.defaultNodeIndex:+this.appConfig.nodes[0].index}}))}onResetSettings(){this.appConfig.defaultNodeIndex=this.previousDefaultNode}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Y.mQ),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-app-settings"]],decls:2,vars:1,consts:[["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"],["form","ngForm"],["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","fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","row","fxLayoutAlign","start start"],["autoFocus","","tabindex","1","name","defaultNode",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],[3,"value"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t.YNc(1,q,21,4,"form",1),t.qZA()),2&B&&(t.xp6(1),t.Q6J("ngIf",Ae.appConfig.nodes&&Ae.appConfig.nodes.length&&Ae.appConfig.nodes.length>0))},directives:[b.xw,b.yH,ae.$V,be.O5,Ge._Y,Ge.JL,Ge.F,b.Wh,U.BN,vt.KE,Fe.gD,Ne.h,Ge.JJ,Ge.On,be.sg,ue.lW,Oe.ey],styles:[""]}),X})();var ce=m(8012),Me=m(5698),Ue=m(8966),lt=m(5768),nt=m(3093),ft=m(7261),it=m(5615),rt=m(7531),Mt=m(6895),Zt=m(159);const Ft=["stepper"];function Vt(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw();t.Oqu(B.passwordFormLabel)}}function Ii(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Password is required."),t.qZA())}function jt(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(2);t.Oqu(B.secretFormLabel)}}function ei(X,He){if(1&X&&t._UZ(0,"qr-code",32),2&X){const B=t.oxw(2);t.Q6J("value",B.otpauth)("size",180)("errorCorrectionLevel","L")}}function ki(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Secret Code is required."),t.qZA())}function ai(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-step",10),t.TgZ(1,"form",21),t.YNc(2,jt,1,1,"ng-template",22),t.TgZ(3,"div",23),t.YNc(4,ei,1,3,"qr-code",24),t.qZA(),t.TgZ(5,"div",25),t._UZ(6,"fa-icon",26),t.TgZ(7,"span"),t._uU(8,"You can use a compatible authentication app to get an authentication code when you log in to RTL. e.g.: Google Authenticator."),t.qZA(),t.qZA(),t.TgZ(9,"div",27),t.TgZ(10,"mat-form-field",1),t._UZ(11,"input",28),t.TgZ(12,"fa-icon",29),t.NdJ("copied",function(mt){return t.CHM(B),t.oxw().onCopySecret(mt)}),t.qZA(),t.YNc(13,ki,2,0,"mat-error",14),t.qZA(),t.qZA(),t.TgZ(14,"div",30),t.TgZ(15,"button",31),t._uU(16,"Next"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("stepControl",B.secretFormGroup)("editable",B.flgEditable),t.xp6(1),t.Q6J("formGroup",B.secretFormGroup),t.xp6(3),t.Q6J("ngIf",B.otpauth),t.xp6(2),t.Q6J("icon",B.faInfoCircle),t.xp6(6),t.Q6J("icon",B.faCopy)("payload",null==B.secretFormGroup||null==B.secretFormGroup.controls||null==B.secretFormGroup.controls.secret?null:B.secretFormGroup.controls.secret.value),t.xp6(1),t.Q6J("ngIf",null==B.secretFormGroup||null==B.secretFormGroup.controls||null==B.secretFormGroup.controls.secret||null==B.secretFormGroup.controls.secret.errors?null:B.secretFormGroup.controls.secret.errors.required)}}function hi(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(2);t.Oqu(B.tokenFormLabel)}}function Ze(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Token is required."),t.qZA())}function Ee(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Token is invalid."),t.qZA())}function G(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"div",27),t.TgZ(2,"mat-form-field",1),t._UZ(3,"input",36),t.YNc(4,Ze,2,0,"mat-error",14),t.YNc(5,Ee,2,0,"mat-error",14),t.qZA(),t.qZA(),t.TgZ(6,"div",30),t.TgZ(7,"button",37),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onVerifyToken()}),t._uU(8),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(2);t.xp6(4),t.Q6J("ngIf",null==B.tokenFormGroup||null==B.tokenFormGroup.controls||null==B.tokenFormGroup.controls.token||null==B.tokenFormGroup.controls.token.errors?null:B.tokenFormGroup.controls.token.errors.required),t.xp6(1),t.Q6J("ngIf",null==B.tokenFormGroup||null==B.tokenFormGroup.controls||null==B.tokenFormGroup.controls.token||null==B.tokenFormGroup.controls.token.errors?null:B.tokenFormGroup.controls.token.errors.notValid),t.xp6(3),t.Oqu(null!=B.tokenFormGroup&&null!=B.tokenFormGroup.controls&&null!=B.tokenFormGroup.controls.token&&null!=B.tokenFormGroup.controls.token.errors&&B.tokenFormGroup.controls.token.errors.notValid?"Retry":"Verify")}}function ge(X,He){1&X&&(t.TgZ(0,"div"),t.TgZ(1,"strong"),t._uU(2,"Success! You are all set."),t.qZA(),t.qZA())}function De(X,He){if(1&X&&(t.TgZ(0,"mat-step",33),t.TgZ(1,"form",34),t.YNc(2,hi,1,1,"ng-template",12),t.YNc(3,G,9,3,"div",35),t.YNc(4,ge,3,0,"div",14),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.Q6J("stepControl",B.tokenFormGroup),t.xp6(1),t.Q6J("formGroup",B.tokenFormGroup),t.xp6(2),t.Q6J("ngIf",!B.flgValidated||!B.isTokenValid),t.xp6(1),t.Q6J("ngIf",B.flgValidated&&B.isTokenValid)}}function et(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(2);t.Oqu(B.disableFormLabel)}}function $t(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"div",38),t._UZ(2,"fa-icon",26),t.TgZ(3,"span"),t._uU(4,"You are about to disable two-factor authentication security from RTL. Are you sure you want to turn it off?"),t.qZA(),t.qZA(),t.TgZ(5,"div",30),t.TgZ(6,"button",37),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onVerifyToken()}),t._uU(7,"Disable"),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(2);t.xp6(2),t.Q6J("icon",B.faExclamationTriangle)}}function Nt(X,He){1&X&&(t.TgZ(0,"div"),t.TgZ(1,"strong"),t._uU(2,"Two factor authentication removed from RTL."),t.qZA(),t.qZA())}function Jt(X,He){if(1&X&&(t.TgZ(0,"mat-step",33),t.TgZ(1,"form",34),t.YNc(2,et,1,1,"ng-template",12),t.YNc(3,$t,8,1,"div",35),t.YNc(4,Nt,3,0,"div",14),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.Q6J("stepControl",B.disableFormGroup),t.xp6(1),t.Q6J("formGroup",B.disableFormGroup),t.xp6(2),t.Q6J("ngIf",!B.flgValidated||!B.isTokenValid),t.xp6(1),t.Q6J("ngIf",B.flgValidated&&B.isTokenValid)}}let ct=(()=>{class X{constructor(B,Ae,mt,fi,In,tr){this.dialogRef=B,this.data=Ae,this.store=mt,this.formBuilder=fi,this.rtlEffects=In,this.snackBar=tr,this.faExclamationTriangle=x.eHv,this.faCopy=x.kZ_,this.faInfoCircle=x.sqG,this.flgValidated=!1,this.isTokenValid=!0,this.otpauth="",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:["",[Ge.kI.required]],password:["",[Ge.kI.required]]}),this.secretFormGroup=this.formBuilder.group({secret:[{value:"",disabled:!0},Ge.kI.required]}),this.tokenFormGroup=this.formBuilder.group({token:["",Ge.kI.required]}),this.disableFormGroup=this.formBuilder.group({}),this.unSubs=[new s.x,new s.x]}ngOnInit(){this.appConfig=this.data.appConfig,this.showDisableStepper=!!this.appConfig.enable2FA,this.secretFormGroup=this.formBuilder.group({secret:[{value:this.appConfig.enable2FA?"":this.generateSecret(),disabled:!0},Ge.kI.required]})}generateSecret(){const B=lt.authenticator.generateSecret();return this.otpauth=lt.authenticator.keyuri("","Ride The Lightning (RTL)",B),B}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,we.QO)({payload:ce(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,Me.q)(1)).subscribe(B=>{"ERROR"!==B?(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(B){this.snackBar.open("Secret code "+this.secretFormGroup.controls.secret.value+" copied.")}onVerifyToken(){if(this.appConfig.enable2FA)this.store.dispatch((0,we.Uy)({payload:{secret2fa:""}})),this.generateSecret(),this.isTokenValid=!0;else{if(!this.tokenFormGroup.controls.token.value)return!0;if(this.isTokenValid=lt.authenticator.check(this.tokenFormGroup.controls.token.value,this.secretFormGroup.controls.secret.value),!this.isTokenValid)return this.tokenFormGroup.controls.token.setErrors({notValid:!0}),!0;this.store.dispatch((0,we.Uy)({payload:{secret2fa:this.secretFormGroup.controls.secret.value}})),this.tokenFormGroup.controls.token.setValue("")}this.flgValidated=!0,this.appConfig.enable2FA=!this.appConfig.enable2FA}stepSelectionChanged(B){switch(B.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password";break;case 1:case 2:this.passwordFormLabel="User authenticated successfully"}B.selectedIndex{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Ue.so),t.Y36(Ue.WI),t.Y36(M.yh),t.Y36(Ge.qu),t.Y36(nt.V),t.Y36(ft.ux))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-two-factor-auth"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(Ft,5),2&B){let mt;t.iGM(mt=t.CRH())&&(Ae.stepper=mt.first)}},decls:28,vars:11,consts:[["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","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["autoFocus","","matInput","","placeholder","Password","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"],[3,"value","size","errorCorrectionLevel",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","","placeholder","Secret Code","type","text","tabindex","4","formControlName","secret","required",""],["matSuffix","","rtlClipboard","",3,"icon","payload","copied"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","6","type","button","matStepperNext",""],[3,"value","size","errorCorrectionLevel"],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["fxLayout","column",4,"ngIf"],["autoFocus","","matInput","","placeholder","Token","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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"mat-card-header",2),t.TgZ(3,"div",3),t.TgZ(4,"span",4),t._uU(5,"Setup Two Factor Authentication"),t.qZA(),t.qZA(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA(),t.qZA(),t.TgZ(8,"mat-card-content",6),t.TgZ(9,"div",7),t.TgZ(10,"mat-vertical-stepper",8,9),t.NdJ("selectionChange",function(fi){return Ae.stepSelectionChanged(fi)}),t.TgZ(12,"mat-step",10),t.TgZ(13,"form",11),t.YNc(14,Vt,1,1,"ng-template",12),t.TgZ(15,"div",0),t.TgZ(16,"mat-form-field",1),t._UZ(17,"input",13),t.YNc(18,Ii,2,0,"mat-error",14),t.qZA(),t.qZA(),t.TgZ(19,"div",15),t.TgZ(20,"button",16),t.NdJ("click",function(){return Ae.onAuthenticate()}),t._uU(21,"Confirm"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.YNc(22,ai,17,8,"mat-step",17),t.YNc(23,De,5,4,"mat-step",18),t.YNc(24,Jt,5,4,"mat-step",18),t.qZA(),t.TgZ(25,"div",19),t.TgZ(26,"button",20),t._uU(27),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(4),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",Ae.passwordFormGroup)("editable",Ae.flgEditable),t.xp6(1),t.Q6J("formGroup",Ae.passwordFormGroup),t.xp6(5),t.Q6J("ngIf",null==Ae.passwordFormGroup||null==Ae.passwordFormGroup.controls||null==Ae.passwordFormGroup.controls.password||null==Ae.passwordFormGroup.controls.password.errors?null:Ae.passwordFormGroup.controls.password.errors.required),t.xp6(4),t.Q6J("ngIf",!Ae.showDisableStepper),t.xp6(1),t.Q6J("ngIf",!Ae.showDisableStepper),t.xp6(1),t.Q6J("ngIf",Ae.showDisableStepper),t.xp6(2),t.Q6J("mat-dialog-close",!1),t.xp6(1),t.Oqu(Ae.flgValidated&&Ae.isTokenValid?"Close":"Cancel"))},directives:[b.xw,b.yH,N.dk,b.Wh,ue.lW,Ue.ZT,N.dn,it.Vq,it.C0,Ge._Y,Ge.JL,Ge.sg,it.VY,vt.KE,rt.Nt,Ge.Fj,Ne.h,Ge.JJ,Ge.u,Ge.Q7,be.O5,vt.TO,U.BN,vt.R9,Mt.y,it.Ic,Zt.uU],styles:[""]}),X})();var ke=m(5986),Be=m(4834);const at=["authForm"];function st(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Current password is required."),t.qZA())}function At(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.errorMsg)}}function li(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.errorConfirmMsg)}}function Bt(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"form",10,11),t.TgZ(2,"div",12),t._UZ(3,"fa-icon",4),t.TgZ(4,"span",5),t._uU(5,"Password"),t.qZA(),t.qZA(),t.TgZ(6,"mat-form-field"),t.TgZ(7,"input",13),t.NdJ("ngModelChange",function(mt){return t.CHM(B),t.oxw().currPassword=mt}),t.qZA(),t.YNc(8,st,2,0,"mat-error",14),t.qZA(),t.TgZ(9,"mat-form-field"),t.TgZ(10,"input",15),t.NdJ("ngModelChange",function(mt){return t.CHM(B),t.oxw().newPassword=mt}),t.qZA(),t.YNc(11,At,2,1,"mat-error",14),t.qZA(),t.TgZ(12,"mat-form-field"),t.TgZ(13,"input",16),t.NdJ("ngModelChange",function(mt){return t.CHM(B),t.oxw().confirmPassword=mt}),t.qZA(),t.YNc(14,li,2,1,"mat-error",14),t.qZA(),t.TgZ(15,"div",17),t.TgZ(16,"button",18),t.NdJ("click",function(){return t.CHM(B),t.oxw().onResetPassword()}),t._uU(17,"Reset"),t.qZA(),t.TgZ(18,"button",19),t.NdJ("click",function(){return t.CHM(B),t.oxw().onChangePassword()}),t._uU(19,"Change Password"),t.qZA(),t.qZA(),t.TgZ(20,"div",20),t._UZ(21,"mat-divider",21),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.xp6(3),t.Q6J("icon",B.faLock),t.xp6(4),t.Q6J("ngModel",B.currPassword),t.xp6(1),t.Q6J("ngIf",!B.currPassword),t.xp6(2),t.Q6J("ngModel",B.newPassword),t.xp6(1),t.Q6J("ngIf",B.matchOldAndNewPasswords()),t.xp6(2),t.Q6J("ngModel",B.confirmPassword),t.xp6(1),t.Q6J("ngIf",B.matchNewPasswords()),t.xp6(7),t.Q6J("inset",!0)}}let Rt=(()=>{class X{constructor(B,Ae,mt,fi,In){this.logger=B,this.store=Ae,this.actions=mt,this.router=fi,this.sessionService=In,this.faInfoCircle=x.sqG,this.faUserLock=x.FJU,this.faUserClock=x.hnx,this.faLock=x.byT,this.currPassword="",this.newPassword="",this.confirmPassword="",this.errorMsg="",this.errorConfirmMsg="",this.initializeNodeData=!1,this.unSubs=[new s.x,new s.x,new s.x]}ngOnInit(){this.initializeNodeData="true"===this.sessionService.getItem("defaultPassword"),this.store.select(r.Yj).pipe((0,y.R)(this.unSubs[0])).subscribe(B=>{this.appConfig=B,this.logger.info(this.appConfig)}),this.store.select(r.dT).pipe((0,y.R)(this.unSubs[1])).subscribe(B=>{this.selNode=B}),this.actions.pipe((0,y.R)(this.unSubs[2]),(0,de.h)(B=>B.type===K.pg.RESET_PASSWORD_RES)).subscribe(B=>{if(K.kO.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||K.kO.includes(this.newPassword.toLowerCase()))return!0;this.store.dispatch((0,we.c0)({payload:{currPassword:ce(this.currPassword).toString(),newPassword:ce(this.newPassword).toString()}}))}matchOldAndNewPasswords(){let B=!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.",B=!0):K.kO.includes(this.newPassword.toLowerCase())?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg=K.kO.reduce((Ae,mt,fi)=>fi{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Y.mQ),t.Y36(M.yh),t.Y36(l.eX),t.Y36(I.F0),t.Y36(ke.m))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-auth-settings"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(at,5),2&B){let mt;t.iGM(mt=t.CRH())&&(Ae.form=mt.first)}},decls:14,vars:4,consts:[["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"],["fxLayout","column","fxFlex","100","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"],["authForm","ngForm"],["fxLayout","row","fxLayoutAlign","start start",1,"mb-2"],["autoFocus","","matInput","","placeholder","Current Password","type","password","id","currpassword","name","currpassword","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["matInput","","placeholder","New Password","type","password","id","newpassword","name","newpassword","tabindex","2","required","",3,"ngModel","ngModelChange"],["matInput","","placeholder","Confirm New Password","type","password","id","confirmpassword","name","confirmpassword","tabindex","3","required","",3,"ngModel","ngModelChange"],["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"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end stretch",1,"my-2"],[3,"inset"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t.YNc(1,Bt,22,8,"form",1),t.TgZ(2,"div",2),t.TgZ(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span",5),t._uU(6,"Two Factor Authentication"),t.qZA(),t.qZA(),t.TgZ(7,"div",6),t._UZ(8,"fa-icon",7),t.TgZ(9,"span"),t._uU(10,"Protect your account from unauthorized access by requiring a second authentication method in addition to your password."),t.qZA(),t.qZA(),t.TgZ(11,"div",8),t.TgZ(12,"button",9),t.NdJ("click",function(){return Ae.on2FAuth()}),t._uU(13),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(1),t.Q6J("ngIf",null==Ae.appConfig?null:Ae.appConfig.allowPasswordUpdate),t.xp6(3),t.Q6J("icon",Ae.faUserClock),t.xp6(4),t.Q6J("icon",Ae.faInfoCircle),t.xp6(5),t.Oqu(Ae.appConfig.enable2FA?"Disable 2FA":"Enable 2FA"))},directives:[b.xw,b.yH,b.Wh,be.O5,U.BN,ue.lW,Ge._Y,Ge.JL,Ge.F,vt.KE,rt.Nt,Ge.Fj,Ne.h,Ge.Q7,Ge.JJ,Ge.On,Be.d,vt.TO],styles:[""]}),X})();var Li=m(4623);function si(X,He){1&X&&t._UZ(0,"mat-divider",7)}function ci(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"pre",5),t._uU(2),t.ALo(3,"json"),t.qZA(),t.YNc(4,si,1,0,"mat-divider",6),t.qZA()),2&X){const B=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,2,B.configData)),t.xp6(2),t.Q6J("ngIf",""!==B.configData)}}function sn(X,He){if(1&X&&(t.TgZ(0,"h2"),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B)}}function Ui(X,He){if(1&X&&(t.TgZ(0,"h4",14),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B)}}function Di(X,He){1&X&&t._UZ(0,"mat-divider",15),2&X&&t.Q6J("inset",!0)}function Xi(X,He){if(1&X&&(t.TgZ(0,"mat-list-item"),t.TgZ(1,"mat-card-subtitle",7),t.YNc(2,sn,2,1,"h2",10),t.qZA(),t.TgZ(3,"mat-card-subtitle",11),t.YNc(4,Ui,2,1,"h4",12),t.qZA(),t.YNc(5,Di,1,1,"mat-divider",13),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Q6J("ngIf",B.indexOf("[")>=0),t.xp6(2),t.Q6J("ngIf",B.indexOf("[")<0),t.xp6(1),t.Q6J("ngIf",B.indexOf("[")<0)}}function Ke(X,He){if(1&X&&(t.TgZ(0,"div",8),t.TgZ(1,"mat-list"),t.YNc(2,Xi,6,3,"mat-list-item",9),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(2),t.Q6J("ngForOf",B.configData)}}let _t=(()=>{class X{constructor(B,Ae,mt){this.store=B,this.rtlEffects=Ae,this.router=mt,this.selectedNodeType="",this.configData="",this.fileFormat="INI",this.faCog=x.b7W,this.unSubs=[new s.x,new s.x]}ngOnInit(){this.selectedNodeType=this.router.url.includes("bconfig")?"bitcoind":"ln",this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,de.h)(B=>B instanceof I.Av)).subscribe({next:B=>{this.selectedNodeType=B.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}}),this.store.dispatch((0,we.Q2)({payload:this.selectedNodeType})),this.rtlEffects.showLnConfig.pipe((0,y.R)(this.unSubs[1])).subscribe(B=>{const Ae=B.data;this.fileFormat=B.format,this.configData=""===Ae||!Ae||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==Ae&&Ae&&"JSON"===this.fileFormat?Ae:"":Ae.split("\n")})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(nt.V),t.Y36(I.F0))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-bitcoin-config"]],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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,ci,5,4,"div",2),t.YNc(3,Ke,3,1,"div",3),t.qZA(),t.qZA()),2&B&&(t.xp6(2),t.Q6J("ngIf",""!==Ae.configData&&"JSON"===Ae.fileFormat),t.xp6(1),t.Q6J("ngIf",""!==Ae.configData&&("INI"===Ae.fileFormat||"HOCON"===Ae.fileFormat)))},directives:[b.xw,b.yH,b.Wh,be.O5,Be.d,Li.i$,be.sg,Li.Tg,N.$j],pipes:[be.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})();const ye=function(){return{initial:!1}};function qe(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",10),t.NdJ("click",function(){t.CHM(B);const mt=t.oxw();return mt.activeLink=mt.links[1].link}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw();t.s9C("routerLink",B.links[1].link),t.Q6J("active",B.activeLink===B.links[1].link)("state",t.DdM(4,ye)),t.xp6(1),t.Oqu(B.links[1].name)}}function yt(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){t.CHM(B);const mt=t.oxw();return mt.activeLink=mt.links[2].link}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw();t.s9C("routerLink",B.links[2].link),t.Q6J("active",B.activeLink===B.links[2].link),t.xp6(1),t.Oqu(B.links[2].name)}}function pe(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){t.CHM(B);const mt=t.oxw();return mt.activeLink=mt.links[3].link}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw();t.s9C("routerLink",B.links[3].link),t.Q6J("active",B.activeLink===B.links[3].link),t.xp6(1),t.Oqu(B.links[3].name)}}let Je=(()=>{class X{constructor(B,Ae){this.store=B,this.router=Ae,this.faTools=x.CgH,this.showLnConfig=!1,this.lnImplementationStr="",this.links=[{link:"layout",name:"Layout"},{link:"services",name:"Services"},{link:"experimental",name:"Experimental"},{link:"lnconfig",name:this.lnImplementationStr}],this.activeLink="",this.unSubs=[new s.x,new s.x,new s.x]}ngOnInit(){const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeLink=B?B.link:this.links[0].link,this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof I.Av)).subscribe({next:Ae=>{const mt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeLink=mt?mt.link:this.links[0].link}}),this.store.select(r.dT).pipe((0,y.R)(this.unSubs[1])).subscribe(Ae=>{switch(this.showLnConfig=!1,this.selNode=Ae,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[3].name=this.lnImplementationStr,this.showLnConfig=!0)})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(I.F0))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-node-config"]],decls:15,vars:7,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-tab-nav-bar",""],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Node Config"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"nav",5),t.TgZ(8,"div",6),t.NdJ("click",function(){return Ae.activeLink=Ae.links[0].link}),t._uU(9),t.qZA(),t.YNc(10,qe,2,5,"div",7),t.YNc(11,yt,2,3,"div",8),t.YNc(12,pe,2,3,"div",8),t.qZA(),t.TgZ(13,"div",9),t._UZ(14,"router-outlet"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(1),t.Q6J("icon",Ae.faTools),t.xp6(7),t.s9C("routerLink",Ae.links[0].link),t.Q6J("active",Ae.activeLink===Ae.links[0].link),t.xp6(1),t.Oqu(Ae.links[0].name),t.xp6(1),t.Q6J("ngIf","LND"===(null==Ae.selNode||null==Ae.selNode.lnImplementation?null:Ae.selNode.lnImplementation.toUpperCase())),t.xp6(1),t.Q6J("ngIf","CLN"===(null==Ae.selNode||null==Ae.selNode.lnImplementation?null:Ae.selNode.lnImplementation.toUpperCase())),t.xp6(1),t.Q6J("ngIf",Ae.showLnConfig))},directives:[b.xw,b.Wh,U.BN,N.a8,N.dn,z.BU,z.Nj,I.rH,be.O5,b.yH,I.lC],styles:[""]}),X})();function St(X,He){1&X&&t._UZ(0,"mat-divider",7)}function kt(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"pre",5),t._uU(2),t.ALo(3,"json"),t.qZA(),t.YNc(4,St,1,0,"mat-divider",6),t.qZA()),2&X){const B=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,2,B.configData)),t.xp6(2),t.Q6J("ngIf",""!==B.configData)}}function yi(X,He){if(1&X&&(t.TgZ(0,"h2"),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B)}}function Ni(X,He){if(1&X&&(t.TgZ(0,"h4",14),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B)}}function Si(X,He){1&X&&t._UZ(0,"mat-divider",15),2&X&&t.Q6J("inset",!0)}function qi(X,He){if(1&X&&(t.TgZ(0,"mat-list-item"),t.TgZ(1,"mat-card-subtitle",7),t.YNc(2,yi,2,1,"h2",10),t.qZA(),t.TgZ(3,"mat-card-subtitle",11),t.YNc(4,Ni,2,1,"h4",12),t.qZA(),t.YNc(5,Si,1,1,"mat-divider",13),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Q6J("ngIf",B.indexOf("[")>=0),t.xp6(2),t.Q6J("ngIf",B.indexOf("[")<0),t.xp6(1),t.Q6J("ngIf",B.indexOf("[")<0)}}function ot(X,He){if(1&X&&(t.TgZ(0,"div",8),t.TgZ(1,"mat-list"),t.YNc(2,qi,6,3,"mat-list-item",9),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(2),t.Q6J("ngForOf",B.configData)}}let Kt=(()=>{class X{constructor(B,Ae,mt){this.store=B,this.rtlEffects=Ae,this.router=mt,this.selectedNodeType="",this.configData="",this.fileFormat="INI",this.faCog=x.b7W,this.unSubs=[new s.x,new s.x]}ngOnInit(){this.selectedNodeType=this.router.url.includes("bconfig")?"bitcoind":"ln",this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,de.h)(B=>B instanceof I.Av)).subscribe({next:B=>{this.selectedNodeType=B.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}}),this.store.dispatch((0,we.Q2)({payload:this.selectedNodeType})),this.rtlEffects.showLnConfig.pipe((0,y.R)(this.unSubs[1])).subscribe(B=>{const Ae=B.data;this.fileFormat=B.format,this.configData=""===Ae||!Ae||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==Ae&&Ae&&"JSON"===this.fileFormat?Ae:"":Ae.split("\n")})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(nt.V),t.Y36(I.F0))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-lnp-config"]],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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,kt,5,4,"div",2),t.YNc(3,ot,3,1,"div",3),t.qZA(),t.qZA()),2&B&&(t.xp6(2),t.Q6J("ngIf",""!==Ae.configData&&"JSON"===Ae.fileFormat),t.xp6(1),t.Q6J("ngIf",""!==Ae.configData&&("INI"===Ae.fileFormat||"HOCON"===Ae.fileFormat)))},directives:[b.xw,b.yH,b.Wh,be.O5,Be.d,Li.i$,be.sg,Li.Tg,N.$j],pipes:[be.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})();var gt=m(2994),Lt=m(429),ui=m(6523),Ci=m(62),Yi=m(2368),$i=m(9814),Cn=m(3322);function Ln(X,He){if(1&X&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.Q6J("value",B.id),t.xp6(1),t.hij(" ",B.id," ")}}function _n(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Currency unit is required."),t.qZA())}function kn(X,He){if(1&X&&(t.TgZ(0,"mat-radio-button",36),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw();t.Q6J("value",B)("checked",Ae.selNode.settings.userPersona===B),t.xp6(1),t.hij(" ",t.lcZ(2,3,B)," ")}}const dr=function(X){return{"mr-4":X}};function wi(X,He){if(1&X&&(t.TgZ(0,"mat-radio-button",37),t._uU(1),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw();t.Q6J("value",B)("ngClass",t.VKq(3,dr,Ae.screenSize===Ae.screenSizeEnum.XS||Ae.screenSize===Ae.screenSizeEnum.SM)),t.xp6(1),t.hij("",B.name," ")}}const Fi=function(X){return{skin:!0,"selected-color":X}};function dn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"span",38),t.TgZ(1,"div",39),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw().changeThemeColor(fi.id)}),t.ALo(2,"lowercase"),t.qZA(),t._uU(3),t.qZA()}if(2&X){const B=He.$implicit,Ae=t.oxw();t.xp6(1),t.Tol(t.lcZ(2,4,B.id)),t.Q6J("ngClass",t.VKq(6,Fi,Ae.selectedThemeColor===B.id)),t.xp6(2),t.hij(" ",B.name," ")}}let Lr=(()=>{class X{constructor(B,Ae,mt){this.logger=B,this.commonService=Ae,this.store=mt,this.faExclamationTriangle=x.eHv,this.faMoneyBillAlt=x.co4,this.faPaintBrush=x.XsY,this.faInfoCircle=x.sqG,this.userPersonas=[K.ol.OPERATOR,K.ol.MERCHANT],this.currencyUnits=K.Er,this.themeModes=K.wZ.modes,this.themeColors=K.wZ.themes,this.selectedThemeMode=K.wZ.modes[0],this.selectedThemeColor=K.wZ.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.screenSize="",this.screenSizeEnum=K.cu,this.unSubs=[new s.x,new s.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(r.dT).pipe((0,y.R)(this.unSubs[0])).subscribe(B=>{this.selNode=B,this.selectedThemeMode=this.themeModes.find(Ae=>this.selNode.settings.themeMode===Ae.id),this.selectedThemeColor=this.selNode.settings.themeColor,this.selNode.settings.fiatConversion||(this.selNode.settings.currencyUnit=null),this.previousSettings=JSON.parse(JSON.stringify(this.selNode.settings)),this.logger.info(B)})}onCurrencyChange(B){this.selNode.settings.currencyUnits=[...K.uA,B.value],this.store.dispatch((0,ui.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:B.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,Lt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:B.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,gt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:B.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}}))}toggleSettings(B,Ae){this.selNode.settings[B]=!this.selNode.settings[B]}changeThemeColor(B){this.selectedThemeColor=B,this.selNode.settings.themeColor=B}chooseThemeMode(){this.selNode.settings.themeMode=this.selectedThemeMode.id}onUpdateSettings(){if(this.selNode.settings.fiatConversion&&!this.selNode.settings.currencyUnit)return!0;this.logger.info(this.selNode.settings),this.store.dispatch((0,we.zQ)({payload:{uiMessage:K.m6.UPDATE_NODE_SETTINGS,settings:this.selNode.settings}})),this.store.dispatch((0,ui.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,Lt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,gt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}}))}onResetSettings(){const B=this.selNode.index;this.selNode.settings=this.previousSettings,this.selectedThemeMode=this.themeModes.find(Ae=>Ae.id===this.previousSettings.themeMode),this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch((0,we.fk)({payload:{uiMessage:K.m6.NO_SPINNER,prevLnNodeIndex:+B,currentLnNode:this.selNode,isInitialSetup:!0}}))}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Y.mQ),t.Y36(Ci.v),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-node-settings"]],decls:60,vars:17,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxLayout","column","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayoutAlign","start stretch",1,"mt-1","bordered-box","padding-gap-large"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["href","https://www.blockchain.com/api/exchange_rates_api","target","blank"],["fxLayout","row wrap","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","fiatConversion",3,"ngModel","ngModelChange","change"],["autoFocus","","placeholder","Fiat Currency","tabindex","3","name","currencyUnit",3,"ngModel","disabled","required","ngModelChange","selectionChange"],["currencyUnit","ngModel"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","space-between stretch",1,"settings-container","page-sub-title-container","mt-1"],[1,"mt-1"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-0"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100"],["color","primary","tabindex","1","name","userPersona",3,"ngModel","ngModelChange"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],[1,"mt-1",3,"inset"],["fxLayout","column","fxLayout.gt-xs","row","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-xs","start stretch"],["fxFlex.gt-xs","20","fxFlex.gt-md","15","fxLayout","column","fxLayoutAlign","space-between stretch"],["color","primary","name","themeMode",3,"ngModel","ngModelChange","change"],["tabindex","5",3,"value","ngClass",4,"ngFor","ngForOf"],["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","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","10",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","11",3,"click"],[3,"value"],[1,"mr-4",3,"value","checked"],["tabindex","5",3,"value","ngClass"],["fxLayout","row",1,"theme-name"],["tabindex","9",3,"ngClass","click"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"form",1,2),t.TgZ(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span",5),t._uU(6,"Balance Display"),t.qZA(),t.qZA(),t.TgZ(7,"div",6),t.TgZ(8,"div",7),t._UZ(9,"fa-icon",8),t.TgZ(10,"span"),t._uU(11,"Fiat conversion calls "),t.TgZ(12,"strong"),t.TgZ(13,"a",9),t._uU(14,"Blockchain.com"),t.qZA(),t.qZA(),t._uU(15," API to get conversion rates."),t.qZA(),t.qZA(),t.TgZ(16,"div",10),t.TgZ(17,"mat-slide-toggle",11),t.NdJ("ngModelChange",function(fi){return Ae.selNode.settings.fiatConversion=fi})("change",function(fi){return Ae.selNode.settings.currencyUnit=fi.checked?Ae.selNode.settings.currencyUnit:null}),t._uU(18,"Enable Fiat Conversion"),t.qZA(),t.TgZ(19,"mat-form-field"),t.TgZ(20,"mat-select",12,13),t.NdJ("ngModelChange",function(fi){return Ae.selNode.settings.currencyUnit=fi})("selectionChange",function(fi){return Ae.onCurrencyChange(fi)}),t.YNc(22,Ln,2,2,"mat-option",14),t.qZA(),t.YNc(23,_n,2,0,"mat-error",15),t.qZA(),t.qZA(),t.qZA(),t.TgZ(24,"div",16),t.TgZ(25,"div",17),t.TgZ(26,"div",18),t._UZ(27,"fa-icon",4),t.TgZ(28,"span",5),t._uU(29,"Customization"),t.qZA(),t.qZA(),t.TgZ(30,"div",6),t.TgZ(31,"div",19),t.TgZ(32,"div",20),t._UZ(33,"fa-icon",8),t.TgZ(34,"span"),t._uU(35,"Dashboard layout will be tailored based on the role selected to better serve its needs."),t.qZA(),t.qZA(),t.TgZ(36,"div",21),t.TgZ(37,"h4"),t._uU(38,"Dashboard Layout"),t.qZA(),t.TgZ(39,"mat-radio-group",22),t.NdJ("ngModelChange",function(fi){return Ae.selNode.settings.userPersona=fi}),t.YNc(40,kn,3,5,"mat-radio-button",23),t.qZA(),t.qZA(),t.qZA(),t._UZ(41,"mat-divider",24),t.TgZ(42,"div",25),t.TgZ(43,"div",26),t.TgZ(44,"h4"),t._uU(45,"Mode"),t.qZA(),t.TgZ(46,"mat-radio-group",27),t.NdJ("ngModelChange",function(fi){return Ae.selectedThemeMode=fi})("change",function(){return Ae.chooseThemeMode()}),t.YNc(47,wi,2,5,"mat-radio-button",28),t.qZA(),t.qZA(),t.qZA(),t._UZ(48,"mat-divider",24),t.TgZ(49,"div",25),t.TgZ(50,"div",29),t.TgZ(51,"h4"),t._uU(52,"Themes"),t.qZA(),t.TgZ(53,"div",30),t.YNc(54,dn,4,8,"span",31),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(55,"div",32),t.TgZ(56,"button",33),t.NdJ("click",function(){return Ae.onResetSettings()}),t._uU(57,"Reset"),t.qZA(),t.TgZ(58,"button",34),t.NdJ("click",function(){return Ae.onUpdateSettings()}),t._uU(59,"Update"),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(4),t.Q6J("icon",Ae.faMoneyBillAlt),t.xp6(5),t.Q6J("icon",Ae.faExclamationTriangle),t.xp6(8),t.Q6J("ngModel",Ae.selNode.settings.fiatConversion),t.xp6(3),t.Q6J("ngModel",Ae.selNode.settings.currencyUnit)("disabled",!Ae.selNode.settings.fiatConversion)("required",Ae.selNode.settings.fiatConversion),t.xp6(2),t.Q6J("ngForOf",Ae.currencyUnits),t.xp6(1),t.Q6J("ngIf",Ae.selNode.settings.fiatConversion&&!Ae.selNode.settings.currencyUnit),t.xp6(4),t.Q6J("icon",Ae.faPaintBrush),t.xp6(6),t.Q6J("icon",Ae.faInfoCircle),t.xp6(6),t.Q6J("ngModel",Ae.selNode.settings.userPersona),t.xp6(1),t.Q6J("ngForOf",Ae.userPersonas),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Q6J("ngModel",Ae.selectedThemeMode),t.xp6(1),t.Q6J("ngForOf",Ae.themeModes),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Q6J("ngForOf",Ae.themeColors))},directives:[b.xw,b.yH,ae.$V,Ge._Y,Ge.JL,Ge.F,b.Wh,U.BN,Yi.Rr,Ge.JJ,Ge.On,vt.KE,Fe.gD,Ne.h,Ge.Q7,be.sg,be.O5,$i.VQ,Be.d,ue.lW,Oe.ey,vt.TO,$i.U0,be.mk,Cn.oO],pipes:[be.rS,be.i8],styles:[""]}),X})();const La=function(){return{initial:!1}};let Gn=(()=>{class X{constructor(B){this.router=B,this.faLayerGroup=x.Krp,this.links=[{link:"loop",name:"Loop"},{link:"boltz",name:"Boltz"}],this.activeLink="",this.unSubs=[new s.x,new s.x,new s.x]}ngOnInit(){const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeLink=B?B.link:this.links[0].link,this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof I.Av)).subscribe({next:Ae=>{const mt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeLink=mt?mt.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(I.F0))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-services-settings"]],decls:14,vars:9,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Services"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"nav",5),t.TgZ(8,"div",6),t.NdJ("click",function(){return Ae.activeLink=Ae.links[0].link}),t._uU(9),t.qZA(),t.TgZ(10,"div",7),t.NdJ("click",function(){return Ae.activeLink=Ae.links[1].link}),t._uU(11),t.qZA(),t.qZA(),t.TgZ(12,"div",8),t._UZ(13,"router-outlet"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(1),t.Q6J("icon",Ae.faLayerGroup),t.xp6(7),t.s9C("routerLink",Ae.links[0].link),t.Q6J("active",Ae.activeLink===Ae.links[0].link),t.xp6(1),t.Oqu(Ae.links[0].name),t.xp6(1),t.s9C("routerLink",Ae.links[1].link),t.Q6J("active",Ae.activeLink===Ae.links[1].link)("state",t.DdM(8,La)),t.xp6(1),t.Oqu(Ae.links[1].name))},directives:[b.xw,b.Wh,U.BN,N.a8,N.dn,z.BU,z.Nj,I.rH,b.yH,I.lC],styles:[""]}),X})();const Or=["form"];function Ra(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Loop server URL is required."),t.qZA())}function Ma(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Specify the loop server url with 'https://'."),t.qZA())}function Fa(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Loop macaroon path is required."),t.qZA())}let xr=(()=>{class X{constructor(B,Ae){this.logger=B,this.store=Ae,this.faInfoCircle=x.sqG,this.enableLoop=!1,this.unSubs=[new s.x,new s.x]}ngOnInit(){this.store.select(r.dT).pipe((0,y.R)(this.unSubs[0])).subscribe(B=>{this.selNode=B,this.enableLoop=B.settings.swapServerUrl&&""!==B.settings.swapServerUrl.trim(),this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(B)})}onEnableServiceChanged(B){this.enableLoop=B.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.logger.info(this.selNode),this.store.dispatch((0,we.jS)({payload:{uiMessage:K.m6.UPDATE_LOOP_SETTINGS,service:K.JX.LOOP,settings:{enable:this.enableLoop,serverUrl:this.selNode.settings.swapServerUrl,macaroonPath:this.selNode.authentication.swapMacaroonPath}}})),this.store.dispatch((0,ui.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,Lt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,gt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}}))}onReset(){this.selNode=JSON.parse(JSON.stringify(this.previousSelNode)),this.enableLoop=this.selNode.settings.swapServerUrl&&""!==this.selNode.settings.swapServerUrl.trim()}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Y.mQ),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-loop-service-settings"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(Or,7),2&B){let mt;t.iGM(mt=t.CRH())&&(Ae.form=mt.first)}},decls:34,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",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"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","loop",1,"mb-1",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","placeholder","Loop Server URL","type","text","id","swapServerUrl","name","srvrUrl","tabindex","2",3,"ngModel","required","disabled","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","placeholder","Loop Macaroon Path","type","text","id","swapMacaroonPath","name","swapMacaroonPath","tabindex","3",3,"ngModel","required","disabled","ngModelChange"],["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(B,Ae){if(1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span"),t._uU(4,"Please ensure that "),t.TgZ(5,"strong"),t._uU(6,"loopd"),t.qZA(),t._uU(7," is running and accessible to RTL before enabling this service. Click "),t.TgZ(8,"strong"),t.TgZ(9,"a",3),t._uU(10,"here"),t.qZA(),t.qZA(),t._uU(11," to learn more about the installation."),t.qZA(),t.qZA(),t.TgZ(12,"form",4,5),t.TgZ(14,"div",6),t.TgZ(15,"mat-slide-toggle",7),t.NdJ("ngModelChange",function(fi){return Ae.enableLoop=fi})("change",function(fi){return Ae.onEnableServiceChanged(fi)}),t._uU(16,"Enable Loop Service"),t.qZA(),t.TgZ(17,"mat-form-field",8),t.TgZ(18,"input",9,10),t.NdJ("ngModelChange",function(fi){return Ae.selNode.settings.swapServerUrl=fi}),t.qZA(),t.TgZ(20,"mat-hint"),t._uU(21,"Service url for loop server REST APIs, eg. https://localhost:8081"),t.qZA(),t.YNc(22,Ra,2,0,"mat-error",11),t.YNc(23,Ma,2,0,"mat-error",11),t.qZA(),t.TgZ(24,"mat-form-field"),t.TgZ(25,"input",12),t.NdJ("ngModelChange",function(fi){return Ae.selNode.authentication.swapMacaroonPath=fi}),t.qZA(),t.TgZ(26,"mat-hint"),t._uU(27,"Path for the folder containing service 'loop.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Local\\\\Loop\\\\testnet"),t.qZA(),t.YNc(28,Fa,2,0,"mat-error",11),t.qZA(),t.qZA(),t.qZA(),t.TgZ(29,"div",13),t.TgZ(30,"button",14),t.NdJ("click",function(){return Ae.onReset()}),t._uU(31,"Reset"),t.qZA(),t.TgZ(32,"button",15),t.NdJ("click",function(){return Ae.onUpdateService()}),t._uU(33,"Update"),t.qZA(),t.qZA(),t.qZA()),2&B){const mt=t.MAs(19);t.xp6(2),t.Q6J("icon",Ae.faInfoCircle),t.xp6(13),t.Q6J("ngModel",Ae.enableLoop),t.xp6(3),t.Q6J("ngModel",Ae.selNode.settings.swapServerUrl)("required",Ae.enableLoop)("disabled",!Ae.enableLoop),t.xp6(4),t.Q6J("ngIf",!Ae.selNode.settings.swapServerUrl&&Ae.enableLoop),t.xp6(1),t.Q6J("ngIf",(null==mt||null==mt.errors?null:mt.errors.invalid)&&Ae.enableLoop),t.xp6(2),t.Q6J("ngModel",Ae.selNode.authentication.swapMacaroonPath)("required",Ae.enableLoop)("disabled",!Ae.enableLoop),t.xp6(3),t.Q6J("ngIf",!Ae.selNode.authentication.swapMacaroonPath&&Ae.enableLoop)}},directives:[b.xw,b.yH,ae.$V,U.BN,Ge._Y,Ge.JL,Ge.F,b.Wh,Yi.Rr,Ne.h,Ge.JJ,Ge.On,vt.KE,rt.Nt,Ge.Fj,Ge.Q7,vt.bx,be.O5,ue.lW,vt.TO],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})();const hs=["form"];function ur(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Boltz server URL is required."),t.qZA())}function pa(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Specify the boltz server url with 'https://'."),t.qZA())}function ma(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Boltz macaroon path is required."),t.qZA())}let Ir=(()=>{class X{constructor(B,Ae){this.logger=B,this.store=Ae,this.faInfoCircle=x.sqG,this.enableBoltz=!1,this.serverUrl="",this.macaroonPath="",this.unSubs=[new s.x,new s.x]}ngOnInit(){this.store.select(r.dT).pipe((0,y.R)(this.unSubs[0])).subscribe(B=>{this.selNode=B,this.enableBoltz=B.settings.boltzServerUrl&&""!==B.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(B)})}onEnableServiceChanged(B){this.enableBoltz=B.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.selNode.settings.boltzServerUrl=this.serverUrl,this.selNode.authentication.boltzMacaroonPath=this.macaroonPath,this.store.dispatch((0,we.jS)({payload:{uiMessage:K.m6.UPDATE_BOLTZ_SETTINGS,service:K.JX.BOLTZ,settings:{enable:this.enableBoltz,serverUrl:this.serverUrl,macaroonPath:this.macaroonPath}}})),this.store.dispatch((0,ui.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,Lt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,gt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}}))}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(B=>{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Y.mQ),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-service-settings"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(hs,7),2&B){let mt;t.iGM(mt=t.CRH())&&(Ae.form=mt.first)}},decls:34,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://lnd.docs.boltz.exchange/en/latest/","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","boltz",1,"mb-1",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","placeholder","Boltz Server URL","type","text","id","boltzServerUrl","name","srvrUrl","tabindex","2",3,"ngModel","required","disabled","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","placeholder","Boltz Macaroon Path","type","text","id","boltzMacaroonPath","name","boltzMacaroonPath","tabindex","3",3,"ngModel","required","disabled","ngModelChange"],["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(B,Ae){if(1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span"),t._uU(4,"Please ensure that "),t.TgZ(5,"strong"),t._uU(6,"boltzd"),t.qZA(),t._uU(7," is running and accessible to RTL before enabling this service. Click "),t.TgZ(8,"strong"),t.TgZ(9,"a",3),t._uU(10,"here"),t.qZA(),t.qZA(),t._uU(11," to learn more about the installation."),t.qZA(),t.qZA(),t.TgZ(12,"form",4,5),t.TgZ(14,"div",6),t.TgZ(15,"mat-slide-toggle",7),t.NdJ("ngModelChange",function(fi){return Ae.enableBoltz=fi})("change",function(fi){return Ae.onEnableServiceChanged(fi)}),t._uU(16,"Enable Boltz Service"),t.qZA(),t.TgZ(17,"mat-form-field",8),t.TgZ(18,"input",9,10),t.NdJ("ngModelChange",function(fi){return Ae.serverUrl=fi}),t.qZA(),t.TgZ(20,"mat-hint"),t._uU(21,"Service url for boltz server REST APIs, eg. https://localhost:9003"),t.qZA(),t.YNc(22,ur,2,0,"mat-error",11),t.YNc(23,pa,2,0,"mat-error",11),t.qZA(),t.TgZ(24,"mat-form-field"),t.TgZ(25,"input",12),t.NdJ("ngModelChange",function(fi){return Ae.macaroonPath=fi}),t.qZA(),t.TgZ(26,"mat-hint"),t._uU(27,"Path for the folder containing boltz 'admin.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Boltz\\\\testnet"),t.qZA(),t.YNc(28,ma,2,0,"mat-error",11),t.qZA(),t.qZA(),t.qZA(),t.TgZ(29,"div",13),t.TgZ(30,"button",14),t.NdJ("click",function(){return Ae.onReset()}),t._uU(31,"Reset"),t.qZA(),t.TgZ(32,"button",15),t.NdJ("click",function(){return Ae.onUpdateService()}),t._uU(33,"Update"),t.qZA(),t.qZA(),t.qZA()),2&B){const mt=t.MAs(19);t.xp6(2),t.Q6J("icon",Ae.faInfoCircle),t.xp6(13),t.Q6J("ngModel",Ae.enableBoltz),t.xp6(3),t.Q6J("ngModel",Ae.serverUrl)("required",Ae.enableBoltz)("disabled",!Ae.enableBoltz),t.xp6(4),t.Q6J("ngIf",(!Ae.serverUrl||""===Ae.serverUrl.trim())&&Ae.enableBoltz),t.xp6(1),t.Q6J("ngIf",(null==mt||null==mt.errors?null:mt.errors.invalid)&&Ae.enableBoltz),t.xp6(2),t.Q6J("ngModel",Ae.macaroonPath)("required",Ae.enableBoltz)("disabled",!Ae.enableBoltz),t.xp6(3),t.Q6J("ngIf",!Ae.macaroonPath&&Ae.enableBoltz)}},directives:[b.xw,b.yH,ae.$V,U.BN,Ge._Y,Ge.JL,Ge.F,b.Wh,Yi.Rr,Ne.h,Ge.JJ,Ge.On,vt.KE,rt.Nt,Ge.Fj,Ge.Q7,vt.bx,be.O5,ue.lW,vt.TO],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})(),Ga=(()=>{class X{constructor(B,Ae){this.store=B,this.router=Ae,this.faLayerGroup=x.Krp,this.showLnConfig=!1,this.showBitcoind=!1,this.lnImplementationStr="",this.links=[{link:"layout",name:"Layout"},{link:"auth",name:"Authentication"},{link:"lnconfig",name:this.lnImplementationStr},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new s.x,new s.x,new s.x]}ngOnInit(){const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeLink=B?B.link:this.links[0].link,this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof I.Av)).subscribe({next:Ae=>{const mt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeLink=mt?mt.link:this.links[0].link}}),this.store.select(r.dT).pipe((0,y.R)(this.unSubs[1])).subscribe(Ae=>{switch(this.showLnConfig=!1,this.showBitcoind=!1,this.selNode=Ae,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[2].name=this.lnImplementationStr,this.showLnConfig=!0),this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(I.F0))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-services"]],decls:1,vars:0,template:function(B,Ae){1&B&&t._UZ(0,"router-outlet")},directives:[I.lC],styles:[""]}),X})();var Ya=m(8213),Zr=m(9107),Pr=m(6087),Kn=m(4847),vn=m(2075),Qn=m(5899);function Tr(X,He){1&X&&t._UZ(0,"mat-progress-bar",34)}function Ba(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Initiation Time "),t.qZA())}function Wa(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.ALo(2,"date"),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,B.initiation_time/1e6,"dd/MMM/y HH:mm"))}}function kr(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Last Update Time "),t.qZA())}function la(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.ALo(2,"date"),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,B.last_update_time/1e6,"dd/MMM/y HH:mm"))}}function Jr(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," ID "),t.qZA())}function ga(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.id)}}function $n(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," ID (Bytes) "),t.qZA())}function wa(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.id_bytes)}}function Nr(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," State "),t.qZA())}function ca(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw();t.xp6(1),t.Oqu(Ae.LoopStateEnum[B.state])}}function Aa(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," HTLC Address "),t.qZA())}function Vr(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.htlc_address)}}function ha(X,He){1&X&&(t.TgZ(0,"th",37),t._uU(1," Amount (Sats) "),t.qZA())}function pr(X,He){if(1&X&&(t.TgZ(0,"td",36),t.TgZ(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.amt))}}function Sr(X,He){1&X&&(t.TgZ(0,"th",37),t._uU(1," Cost Server (Sats) "),t.qZA())}function is(X,He){if(1&X&&(t.TgZ(0,"td",36),t.TgZ(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.cost_server))}}function Oa(X,He){1&X&&(t.TgZ(0,"th",37),t._uU(1," Cost Offchain (Sats) "),t.qZA())}function ra(X,He){if(1&X&&(t.TgZ(0,"td",36),t.TgZ(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.cost_offchain))}}function Gr(X,He){1&X&&(t.TgZ(0,"th",37),t._uU(1," Cost Onchain (Sats) "),t.qZA())}function Ha(X,He){if(1&X&&(t.TgZ(0,"td",36),t.TgZ(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==B?null:B.cost_onchain)," ")}}function Zn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"th",39),t.TgZ(1,"div",40),t.TgZ(2,"mat-select",41),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",42),t.NdJ("click",function(){return t.CHM(B),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}}function ns(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"td",43),t.TgZ(1,"button",44),t.NdJ("click",function(mt){const In=t.CHM(B).$implicit;return t.oxw().onSwapClick(In,mt)}),t._uU(2,"View Info"),t.qZA(),t.qZA()}}function ja(X,He){if(1&X&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.emptyTableMessage)}}function Xe(X,He){if(1&X&&(t.TgZ(0,"td",45),t.YNc(1,ja,2,1,"p",46),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Q6J("ngIf",!(null!=B.listSwaps&&B.listSwaps.data)||(null==B.listSwaps||null==B.listSwaps.data?null:B.listSwaps.data.length)<1)}}const _e=function(X){return{"display-none":X}};function J(X,He){if(1&X&&t._UZ(0,"tr",47),2&X){const B=t.oxw();t.Q6J("ngClass",t.VKq(1,_e,(null==B.listSwaps?null:B.listSwaps.data)&&(null==B.listSwaps||null==B.listSwaps.data?null:B.listSwaps.data.length)>0))}}function ne(X,He){1&X&&t._UZ(0,"tr",48)}function Qe(X,He){1&X&&t._UZ(0,"tr",49)}const Wt=function(X){return{"overflow-auto error-border":X,"overflow-auto":!0}},mi=function(){return["no_swap"]};let Ct=(()=>{class X{constructor(B,Ae,mt,fi){this.logger=B,this.commonService=Ae,this.store=mt,this.loopService=fi,this.selectedSwapType=K.$I.LOOP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.LoopStateEnum=K.Fq,this.faHistory=x.qO$,this.swapCaption="Loop Out",this.displayedColumns=[],this.selFilter="",this.flgSticky=!1,this.pageSize=K.IV,this.pageSizeOptions=K.TJ,this.screenSize="",this.screenSizeEnum=K.cu,this.unSubs=[new s.x,new s.x,new s.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===K.cu.XS||this.screenSize===K.cu.SM?(this.flgSticky=!1,this.displayedColumns=["state","amt","actions"]):this.screenSize===K.cu.MD?(this.flgSticky=!1,this.displayedColumns=["state","initiation_time","amt","actions"]):(this.flgSticky=!0,this.displayedColumns=["state","initiation_time","amt","cost_server","cost_offchain","cost_onchain","actions"])}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(B){this.swapCaption=this.selectedSwapType===K.$I.LOOP_IN?"Loop In":"Loop Out",this.loadSwapsTable(this.swapsData)}applyFilter(){this.listSwaps.filter=this.selFilter.trim().toLowerCase()}onSwapClick(B,Ae){this.loopService.getSwap(B.id_bytes.replace(/\//g,"_").replace(/\+/g,"-")).pipe((0,y.R)(this.unSubs[2])).subscribe(mt=>{this.store.dispatch((0,we.qR)({payload:{data:{type:K.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"state",value:K.Fq[mt.state],title:"Status",width:50,type:K.Gi.STRING},{key:"amt",value:mt.amt,title:"Amount (Sats)",width:50,type:K.Gi.NUMBER}],[{key:"initiation_time",value:mt.initiation_time/1e9,title:"Initiation Time",width:50,type:K.Gi.DATE_TIME},{key:"last_update_time",value:mt.last_update_time/1e9,title:"Last Update Time",width:50,type:K.Gi.DATE_TIME}],[{key:"cost_server",value:mt.cost_server,title:"Server Cost (Sats)",width:33,type:K.Gi.NUMBER},{key:"cost_offchain",value:mt.cost_offchain,title:"Offchain Cost (Sats)",width:33,type:K.Gi.NUMBER},{key:"cost_onchain",value:mt.cost_onchain,title:"Onchain Cost (Sats)",width:34,type:K.Gi.NUMBER}],[{key:"id_bytes",value:mt.id_bytes,title:"ID",width:100,type:K.Gi.STRING}],[{key:"htlc_address",value:mt.htlc_address,title:"HTLC Address",width:100,type:K.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(B){this.listSwaps=new vn.by([...B]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(Ae,mt)=>Ae[mt]&&isNaN(Ae[mt])?Ae[mt].toLocaleLowerCase():Ae[mt]?+Ae[mt]:null,this.listSwaps.filterPredicate=(Ae,mt)=>JSON.stringify(Ae).toLowerCase().includes(mt),this.listSwaps.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===K.$I.LOOP_IN?"Loop in":"Loop out")}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Y.mQ),t.Y36(Ci.v),t.Y36(M.yh),t.Y36(Zr.W))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-swaps"]],viewQuery:function(B,Ae){if(1&B&&(t.Gf(Kn.YE,5),t.Gf(Pr.NW,5)),2&B){let mt;t.iGM(mt=t.CRH())&&(Ae.sort=mt.first),t.iGM(mt=t.CRH())&&(Ae.paginator=mt.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[t._Bn([{provide:Pr.ye,useValue:(0,K.pt)("Swaps")}]),t.TTD],decls:52,vars:17,consts:[["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","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","initiation_time"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","last_update_time"],["matColumnDef","id"],["matColumnDef","id_bytes"],["matColumnDef","state"],["matColumnDef","htlc_address"],["matColumnDef","amt"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","cost_server"],["matColumnDef","cost_offchain"],["matColumnDef","cost_onchain"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","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","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"div",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span",4),t._uU(5),t.qZA(),t.qZA(),t.TgZ(6,"mat-form-field",5),t.TgZ(7,"input",6),t.NdJ("keyup",function(){return Ae.applyFilter()})("ngModelChange",function(fi){return Ae.selFilter=fi}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"div",7),t.TgZ(9,"div",8),t.YNc(10,Tr,1,0,"mat-progress-bar",9),t.TgZ(11,"table",10,11),t.ynx(13,12),t.YNc(14,Ba,2,0,"th",13),t.YNc(15,Wa,3,4,"td",14),t.BQk(),t.ynx(16,15),t.YNc(17,kr,2,0,"th",13),t.YNc(18,la,3,4,"td",14),t.BQk(),t.ynx(19,16),t.YNc(20,Jr,2,0,"th",13),t.YNc(21,ga,2,1,"td",14),t.BQk(),t.ynx(22,17),t.YNc(23,$n,2,0,"th",13),t.YNc(24,wa,2,1,"td",14),t.BQk(),t.ynx(25,18),t.YNc(26,Nr,2,0,"th",13),t.YNc(27,ca,2,1,"td",14),t.BQk(),t.ynx(28,19),t.YNc(29,Aa,2,0,"th",13),t.YNc(30,Vr,2,1,"td",14),t.BQk(),t.ynx(31,20),t.YNc(32,ha,2,0,"th",21),t.YNc(33,pr,4,3,"td",14),t.BQk(),t.ynx(34,22),t.YNc(35,Sr,2,0,"th",21),t.YNc(36,is,4,3,"td",14),t.BQk(),t.ynx(37,23),t.YNc(38,Oa,2,0,"th",21),t.YNc(39,ra,4,3,"td",14),t.BQk(),t.ynx(40,24),t.YNc(41,Gr,2,0,"th",21),t.YNc(42,Ha,4,3,"td",14),t.BQk(),t.ynx(43,25),t.YNc(44,Zn,6,0,"th",26),t.YNc(45,ns,3,0,"td",27),t.BQk(),t.ynx(46,28),t.YNc(47,Xe,2,1,"td",29),t.BQk(),t.YNc(48,J,1,3,"tr",30),t.YNc(49,ne,1,0,"tr",31),t.YNc(50,Qe,1,0,"tr",32),t.qZA(),t._UZ(51,"mat-paginator",33),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(3),t.Q6J("icon",Ae.faHistory),t.xp6(2),t.AsE("",Ae.swapCaption," History, ",Ae.flgLoading,""),t.xp6(2),t.Q6J("ngModel",Ae.selFilter),t.xp6(3),t.Q6J("ngIf",!0===Ae.flgLoading[0]),t.xp6(1),t.Q6J("dataSource",Ae.listSwaps)("ngClass",t.VKq(14,Wt,"error"===Ae.flgLoading[0])),t.xp6(37),t.Q6J("matFooterRowDef",t.DdM(16,mi)),t.xp6(1),t.Q6J("matHeaderRowDef",Ae.displayedColumns)("matHeaderRowDefSticky",Ae.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",Ae.displayedColumns),t.xp6(1),t.Q6J("pageSize",Ae.pageSize)("pageSizeOptions",Ae.pageSizeOptions)("showFirstLastButtons",Ae.screenSize!==Ae.screenSizeEnum.XS))},directives:[b.xw,b.yH,b.Wh,U.BN,vt.KE,rt.Nt,Ge.Fj,Ge.JJ,Ge.On,ae.$V,be.O5,vn.BZ,Kn.YE,be.mk,Cn.oO,vn.w1,vn.fO,vn.Dz,vn.mD,vn.Ke,vn.as,vn.nj,Pr.NW,Qn.pW,vn.ge,Kn.nU,vn.ev,Fe.gD,Fe.$L,Oe.ey,ue.lW,vn.yh,vn.Q2,vn.XQ,vn.Gk],pipes:[be.uU,be.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),X})();const ti=function(X){return["../",X]};function bt(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",10),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw().onSelectedIndexChange(fi)}),t._uU(1),t.qZA()}if(2&X){const B=He.$implicit,Ae=t.oxw();t.Q6J("active",Ae.activeTab.link===B.link)("routerLink",t.VKq(3,ti,B.link)),t.xp6(1),t.Oqu(B.name)}}let Yt=(()=>{class X{constructor(B,Ae,mt){this.router=B,this.loopService=Ae,this.store=mt,this.faInfinity=x.vqe,this.targetConf=2,this.inAmount=25e4,this.quotes=[],this.LoopTypeEnum=K.$I,this.selectedSwapType=K.$I.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 s.x,new s.x,new s.x,new s.x]}ngOnInit(){this.loopService.listSwaps();const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeTab=B||this.links[0],this.selectedSwapType=B&&"loopin"===B.link?K.$I.LOOP_IN:K.$I.LOOP_OUT,this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof I.Av)).subscribe({next:Ae=>{const mt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeTab=mt||this.links[0],this.selectedSwapType=mt&&"loopin"===mt.link?K.$I.LOOP_IN:K.$I.LOOP_OUT}}),this.loopService.swapsChanged.pipe((0,y.R)(this.unSubs[1])).subscribe({next:Ae=>{this.flgLoading[0]=!1,this.storedSwaps=Ae,this.filteredSwaps=this.storedSwaps.filter(mt=>mt.type===this.selectedSwapType)},error:Ae=>{this.flgLoading[0]="error",this.emptyTableMessage=Ae.message?Ae.message:"No loop "+(this.selectedSwapType===K.$I.LOOP_IN?"in":"out")+" available."}})}onSelectedIndexChange(B){this.selectedSwapType="loopin"===B.link?K.$I.LOOP_IN:K.$I.LOOP_OUT,this.filteredSwaps=this.storedSwaps.filter(Ae=>Ae.type===this.selectedSwapType)}onLoop(B){B===K.$I.LOOP_IN?this.loopService.getLoopInTermsAndQuotes(this.targetConf).pipe((0,y.R)(this.unSubs[2])).subscribe({next:Ae=>{this.store.dispatch((0,we.qR)({payload:{data:{minQuote:Ae[0],maxQuote:Ae[1],direction:B,component:Ya.a}}}))}}):this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,y.R)(this.unSubs[3])).subscribe({next:Ae=>{this.store.dispatch((0,we.qR)({payload:{data:{minQuote:Ae[0],maxQuote:Ae[1],direction:B,component:Ya.a}}}))}})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(I.F0),t.Y36(Zr.W),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-loop"]],decls:13,vars:7,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-tab-nav-bar",""],["role","tab","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","1",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Loop"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"nav",5),t.YNc(8,bt,2,5,"div",6),t.qZA(),t.TgZ(9,"div",7),t.TgZ(10,"button",8),t.NdJ("click",function(){return Ae.onLoop(Ae.selectedSwapType)}),t._uU(11),t.qZA(),t.qZA(),t._UZ(12,"rtl-swaps",9),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(1),t.Q6J("icon",Ae.faInfinity),t.xp6(7),t.Q6J("ngForOf",Ae.links),t.xp6(3),t.hij("Start ",Ae.activeTab.name,""),t.xp6(1),t.Q6J("selectedSwapType",Ae.selectedSwapType)("swapsData",Ae.filteredSwaps)("flgLoading",Ae.flgLoading)("emptyTableMessage",Ae.emptyTableMessage))},directives:[b.xw,b.Wh,U.BN,N.a8,N.dn,z.BU,be.sg,ue.lW,Ct,b.yH,z.Nj,I.rH],styles:[""]}),X})();var xi=m(7772),Bi=m(1135),yn=m(2843),An=m(262),Wi=m(2340),Cr=m(1786);let Un=(()=>{class X{constructor(B,Ae,mt,fi){this.httpClient=B,this.logger=Ae,this.store=mt,this.commonService=fi,this.swapUrl="",this.swaps={},this.swapsChanged=new Bi.X({}),this.unSubs=[new s.x,new s.x,new s.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,we.ac)({payload:K.m6.GET_BOLTZ_SWAPS})),this.swapUrl=Wi.T5+Wi.NZ.BOLTZ_API+"/listSwaps",this.httpClient.get(this.swapUrl).pipe((0,y.R)(this.unSubs[0])).subscribe({next:B=>{this.store.dispatch((0,we.uO)({payload:K.m6.GET_BOLTZ_SWAPS})),this.swaps=B,this.swapsChanged.next(this.swaps)},error:B=>this.swapsChanged.error(this.handleErrorWithAlert(K.m6.GET_BOLTZ_SWAPS,this.swapUrl,B))})}swapInfo(B){return this.swapUrl=Wi.T5+Wi.NZ.BOLTZ_API+"/swapInfo/"+B,this.httpClient.get(this.swapUrl).pipe((0,An.K)(Ae=>(0,Z.of)(this.handleErrorWithAlert(K.m6.NO_SPINNER,this.swapUrl,Ae))))}serviceInfo(){return this.store.dispatch((0,we.ac)({payload:K.m6.GET_SERVICE_INFO})),this.swapUrl=Wi.T5+Wi.NZ.BOLTZ_API+"/serviceInfo",this.httpClient.get(this.swapUrl).pipe((0,y.R)(this.unSubs[1]),(0,p.U)(B=>(this.store.dispatch((0,we.uO)({payload:K.m6.GET_SERVICE_INFO})),B)),(0,An.K)(B=>(0,Z.of)(this.handleErrorWithAlert(K.m6.GET_SERVICE_INFO,this.swapUrl,B))))}swapOut(B,Ae){const mt={amount:B,address:Ae};return this.swapUrl=Wi.T5+Wi.NZ.BOLTZ_API+"/createreverseswap",this.httpClient.post(this.swapUrl,mt).pipe((0,An.K)(fi=>this.handleErrorWithoutAlert("Swap Out for Address: "+Ae,K.m6.NO_SPINNER,fi)))}swapIn(B){const Ae={amount:B};return this.swapUrl=Wi.T5+Wi.NZ.BOLTZ_API+"/createswap",this.httpClient.post(this.swapUrl,Ae).pipe((0,An.K)(mt=>this.handleErrorWithoutAlert("Swap In for Amount: "+B,K.m6.NO_SPINNER,mt)))}handleErrorWithoutAlert(B,Ae,mt){let fi="";return this.logger.error("ERROR IN: "+B+"\n"+JSON.stringify(mt)),this.store.dispatch((0,we.uO)({payload:Ae})),401===mt.status?(fi="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,we.kS)())):503===mt.status?(fi="Unable to Connect to Boltz Server.",this.store.dispatch((0,we.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:mt.status,message:"Unable to Connect to Boltz Server",URL:B},component:Cr.H}}}))):fi=this.commonService.extractErrorMessage(mt),(0,yn._)(()=>new Error(fi))}handleErrorWithAlert(B,Ae,mt){let fi="";if(401===mt.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch((0,we.kS)())),this.logger.error(mt),this.store.dispatch((0,we.uO)({payload:B})),401===mt.status)fi="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,we.kS)());else if(503===mt.status)fi="Unable to Connect to Boltz Server.",setTimeout(()=>{this.store.dispatch((0,we.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:mt.status,message:"Unable to Connect to Boltz Server",URL:Ae},component:Cr.H}}}))},100);else{fi=this.commonService.extractErrorMessage(mt);const In=mt.error&&mt.error.error&&mt.error.error.code?mt.error.error.code:mt.error&&mt.error.code?mt.error.code:mt.code?mt.code:mt.status;setTimeout(()=>{this.store.dispatch((0,we.qR)({payload:{data:{type:K.n_.ERROR,alertTitle:"ERROR",message:{code:In,message:fi,URL:Ae},component:Cr.H}}}))},100)}return{message:fi}}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.LFG(C.eN),t.LFG(Y.mQ),t.LFG(M.yh),t.LFG(Ci.v))},X.\u0275prov=t.Yz7({token:X,factory:X.\u0275fac}),X})();var Rn=m(1125);let _a=(()=>{class X{constructor(){this.serviceInfo={},this.direction=K.hc.SWAP_OUT,this.swapTypeEnum=K.hc}}return X.\u0275fac=function(B){return new(B||X)},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-service-info"]],inputs:{serviceInfo:"serviceInfo",direction:"direction"},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(B,Ae){1&B&&(t.TgZ(0,"mat-expansion-panel",0),t.TgZ(1,"mat-expansion-panel-header"),t.TgZ(2,"mat-panel-title"),t.TgZ(3,"span",1),t._uU(4,"Service Information"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(5,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"div",4),t.TgZ(8,"h4",5),t._uU(9,"Minimum Amount (Sats)"),t.qZA(),t.TgZ(10,"span",6),t._uU(11),t.ALo(12,"number"),t.qZA(),t.qZA(),t.TgZ(13,"div",4),t.TgZ(14,"h4",5),t._uU(15,"Maximum Amount (Sats)"),t.qZA(),t.TgZ(16,"span",6),t._uU(17),t.ALo(18,"number"),t.qZA(),t.qZA(),t.qZA(),t._UZ(19,"mat-divider",7),t.TgZ(20,"div",3),t.TgZ(21,"div",4),t.TgZ(22,"h4",5),t._uU(23,"Fee Percentage"),t.qZA(),t.TgZ(24,"span",6),t._uU(25),t.ALo(26,"number"),t.qZA(),t.qZA(),t.TgZ(27,"div",4),t.TgZ(28,"h4",5),t._uU(29,"Miner Fee (Sats)"),t.qZA(),t.TgZ(30,"span",6),t._uU(31),t.ALo(32,"number"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.Q6J("expanded",!0),t.xp6(11),t.Oqu(t.lcZ(12,5,null==Ae.serviceInfo||null==Ae.serviceInfo.limits?null:Ae.serviceInfo.limits.minimal)),t.xp6(6),t.Oqu(t.lcZ(18,7,null==Ae.serviceInfo||null==Ae.serviceInfo.limits?null:Ae.serviceInfo.limits.maximal)),t.xp6(8),t.Oqu(t.lcZ(26,9,null==Ae.serviceInfo||null==Ae.serviceInfo.fees?null:Ae.serviceInfo.fees.percentage)),t.xp6(6),t.Oqu(t.lcZ(32,11,Ae.direction===Ae.swapTypeEnum.SWAP_OUT?null==Ae.serviceInfo||null==Ae.serviceInfo.fees||null==Ae.serviceInfo.fees.miner?null:Ae.serviceInfo.fees.miner.reverse:null==Ae.serviceInfo||null==Ae.serviceInfo.fees||null==Ae.serviceInfo.fees.miner?null:Ae.serviceInfo.fees.miner.normal)))},directives:[Rn.ib,b.yH,Rn.yz,Rn.yK,b.Wh,b.xw,Be.d],pipes:[be.JJ],styles:[""]}),X})();var Mr=m(5245);function ds(X,He){1&X&&t.GkF(0)}function vs(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"span",5),t._uU(2),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(2),t.Oqu(null!=B.swapStatus&&B.swapStatus.error?null==B.swapStatus?null:B.swapStatus.error:"Unknown Error.")}}function Pi(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"div",6),t.TgZ(2,"div",7),t.TgZ(3,"h4",8),t._uU(4,"ID"),t.qZA(),t.TgZ(5,"span",5),t._uU(6),t.qZA(),t.qZA(),t.TgZ(7,"div",7),t.TgZ(8,"h4",8),t._uU(9,"Routing Fee (mSats)"),t.qZA(),t.TgZ(10,"span",5),t._uU(11),t.ALo(12,"number"),t.qZA(),t.qZA(),t.qZA(),t._UZ(13,"mat-divider",9),t.TgZ(14,"div",6),t.TgZ(15,"div",7),t.TgZ(16,"h4",8),t._uU(17,"Claim Transaction ID"),t.qZA(),t.TgZ(18,"span",5),t._uU(19),t.qZA(),t.qZA(),t.TgZ(20,"div",7),t.TgZ(21,"h4",8),t._uU(22,"Lockup Address"),t.qZA(),t.TgZ(23,"span",5),t._uU(24),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(6),t.Oqu(null==B.swapStatus?null:B.swapStatus.id),t.xp6(5),t.Oqu(t.lcZ(12,4,null==B.swapStatus?null:B.swapStatus.routingFeeMilliSat)),t.xp6(8),t.Oqu(null==B.swapStatus?null:B.swapStatus.claimTransactionId),t.xp6(5),t.Oqu(null==B.swapStatus?null:B.swapStatus.lockupAddress)}}function Nn(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"div",6),t.TgZ(2,"div",7),t.TgZ(3,"h4",8),t._uU(4,"ID"),t.qZA(),t.TgZ(5,"span",5),t._uU(6),t.qZA(),t.qZA(),t.TgZ(7,"div",7),t.TgZ(8,"h4",8),t._uU(9,"Expected Amount (Sats)"),t.qZA(),t.TgZ(10,"span",5),t._uU(11),t.ALo(12,"number"),t.qZA(),t.qZA(),t.qZA(),t._UZ(13,"mat-divider",9),t.TgZ(14,"div",6),t.TgZ(15,"div",10),t.TgZ(16,"h4",8),t._uU(17,"Address"),t.qZA(),t.TgZ(18,"span",5),t._uU(19),t.qZA(),t.qZA(),t.qZA(),t._UZ(20,"mat-divider",9),t.TgZ(21,"div",6),t.TgZ(22,"div",10),t.TgZ(23,"h4",8),t._uU(24,"BIP 21"),t.qZA(),t.TgZ(25,"span",5),t._uU(26),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(6),t.Oqu(null==B.swapStatus?null:B.swapStatus.id),t.xp6(5),t.Oqu(t.lcZ(12,4,null==B.swapStatus?null:B.swapStatus.expectedAmount)),t.xp6(8),t.Oqu(null==B.swapStatus?null:B.swapStatus.address),t.xp6(7),t.Oqu(null==B.swapStatus?null:B.swapStatus.bip21)}}let Us=(()=>{class X{constructor(){this.swapStatus=null,this.direction=K.hc.SWAP_OUT,this.swapTypeEnum=K.hc}}return X.\u0275fac=function(B){return new(B||X)},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-swap-status"]],inputs:{swapStatus:"swapStatus",direction:"direction"},decls:7,vars:1,consts:[[4,"ngTemplateOutlet"],["swapFailedBlock",""],["swapOutBlock",""],["swapInBlock",""],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],["fxFlex","100"]],template:function(B,Ae){if(1&B&&(t.YNc(0,ds,1,0,"ng-container",0),t.YNc(1,vs,3,1,"ng-template",null,1,t.W1O),t.YNc(3,Pi,25,6,"ng-template",null,2,t.W1O),t.YNc(5,Nn,27,6,"ng-template",null,3,t.W1O)),2&B){const mt=t.MAs(2),fi=t.MAs(4),In=t.MAs(6);t.Q6J("ngTemplateOutlet",null!=Ae.swapStatus&&Ae.swapStatus.error?mt:Ae.direction===Ae.swapTypeEnum.SWAP_OUT?fi:In)}},directives:[be.tP,b.xw,b.yH,b.Wh,Be.d],pipes:[be.JJ],styles:[""]}),X})();var fr=m(113);function Zs(X,He){1&X&&t.GkF(0)}const rs=function(X,He){return{"small-svg":X,"large-svg":He}};function xt(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(mt){return t.CHM(B),t.oxw().onSwipe(mt)}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",8),t._UZ(3,"path",9),t._UZ(4,"path",10),t._UZ(5,"path",11),t._UZ(6,"path",12),t._UZ(7,"path",13),t._UZ(8,"path",14),t._UZ(9,"path",15),t._UZ(10,"path",16),t._UZ(11,"path",17),t.qZA(),t.kcU(),t.TgZ(12,"div",18),t.TgZ(13,"mat-card-title"),t._uU(14,"Boltz Reverse Submarine Swap explained."),t.qZA(),t.qZA(),t.TgZ(15,"div",19),t.TgZ(16,"mat-card-subtitle",20),t._uU(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. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function te(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(mt){return t.CHM(B),t.oxw().onSwipe(mt)}),t.O4$(),t.TgZ(1,"svg",21),t.TgZ(2,"g",22),t._UZ(3,"path",23),t._UZ(4,"path",24),t._UZ(5,"path",25),t._UZ(6,"path",26),t._UZ(7,"path",27),t._UZ(8,"path",28),t.qZA(),t._UZ(9,"path",29),t.TgZ(10,"defs"),t.TgZ(11,"clipPath",30),t._UZ(12,"rect",31),t.qZA(),t.qZA(),t.qZA(),t.kcU(),t.TgZ(13,"div",18),t.TgZ(14,"mat-card-title"),t._uU(15,"Step 1: Deciding to Reverse Submarine Swap"),t.qZA(),t.qZA(),t.TgZ(16,"div",19),t.TgZ(17,"mat-card-subtitle",20),t._uU(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. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function fe(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(mt){return t.CHM(B),t.oxw().onSwipe(mt)}),t.O4$(),t.TgZ(1,"svg",32),t._UZ(2,"path",33),t._UZ(3,"path",34),t._UZ(4,"path",35),t._UZ(5,"path",36),t._UZ(6,"path",37),t._UZ(7,"circle",38),t._UZ(8,"rect",39),t.TgZ(9,"defs"),t.TgZ(10,"pattern",40),t._UZ(11,"use",41),t.qZA(),t._UZ(12,"image",42),t.qZA(),t.qZA(),t.kcU(),t.TgZ(13,"div",18),t.TgZ(14,"mat-card-title"),t._uU(15,"Step 2: Paying the Lightning Invoice"),t.qZA(),t.qZA(),t.TgZ(16,"div",19),t.TgZ(17,"mat-card-subtitle",20),t._uU(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. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function je(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(mt){return t.CHM(B),t.oxw().onSwipe(mt)}),t.O4$(),t.TgZ(1,"svg",43),t.TgZ(2,"g",22),t._UZ(3,"path",44),t._UZ(4,"path",45),t._UZ(5,"path",46),t._UZ(6,"path",47),t._UZ(7,"path",48),t.qZA(),t.TgZ(8,"defs"),t.TgZ(9,"clipPath",30),t._UZ(10,"rect",49),t.qZA(),t.qZA(),t.qZA(),t.kcU(),t.TgZ(11,"div",18),t.TgZ(12,"mat-card-title"),t._uU(13,"Step 3: Receiving the funds on-chain"),t.qZA(),t.qZA(),t.TgZ(14,"div",19),t.TgZ(15,"mat-card-subtitle",20),t._uU(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. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function wt(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(mt){return t.CHM(B),t.oxw().onSwipe(mt)}),t.O4$(),t.TgZ(1,"svg",50),t._UZ(2,"path",51),t._UZ(3,"path",52),t._UZ(4,"path",53),t._UZ(5,"path",54),t._UZ(6,"path",55),t.qZA(),t.kcU(),t.TgZ(7,"div",18),t.TgZ(8,"mat-card-title"),t._uU(9,"Done!"),t.qZA(),t.qZA(),t.TgZ(10,"div",19),t.TgZ(11,"mat-card-subtitle",20),t._uU(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. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}let Pt=(()=>{class X{constructor(B){this.commonService=B,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.vpe,this.screenSize="",this.screenSizeEnum=K.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(B){2===B.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===B.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Ci.v))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-swapout-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["swapStepBlock1",""],["swapStepBlock2",""],["swapStepBlock3",""],["swapStepBlock4",""],["swapStepBlock5",""],["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(B,Ae){if(1&B&&(t.YNc(0,Zs,1,0,"ng-container",0),t.YNc(1,xt,18,5,"ng-template",null,1,t.W1O),t.YNc(3,te,19,5,"ng-template",null,2,t.W1O),t.YNc(5,fe,19,5,"ng-template",null,3,t.W1O),t.YNc(7,je,17,5,"ng-template",null,4,t.W1O),t.YNc(9,wt,13,5,"ng-template",null,5,t.W1O)),2&B){const mt=t.MAs(2),fi=t.MAs(4),In=t.MAs(6),tr=t.MAs(8),Fn=t.MAs(10);t.Q6J("ngTemplateOutlet",1===Ae.stepNumber?mt:2===Ae.stepNumber?fi:3===Ae.stepNumber?In:4===Ae.stepNumber?tr:Fn)}},directives:[be.tP,b.xw,b.yH,b.Wh,be.mk,Cn.oO,N.n5,N.$j],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:[fr.l]}}),X})();function Qt(X,He){1&X&&t.GkF(0)}const Xt=function(X,He){return{"small-svg":X,"large-svg":He}};function pi(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(mt){return t.CHM(B),t.oxw().onSwipe(mt)}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",8),t._UZ(3,"path",9),t._UZ(4,"path",10),t._UZ(5,"path",11),t._UZ(6,"path",12),t._UZ(7,"path",13),t._UZ(8,"path",14),t._UZ(9,"path",15),t._UZ(10,"path",16),t._UZ(11,"path",17),t.qZA(),t.kcU(),t.TgZ(12,"div",18),t.TgZ(13,"mat-card-title"),t._uU(14,"Boltz Submarine Swaps explained."),t.qZA(),t.qZA(),t.TgZ(15,"div",19),t.TgZ(16,"mat-card-subtitle",20),t._uU(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. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Xt,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function Ti(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(mt){return t.CHM(B),t.oxw().onSwipe(mt)}),t.O4$(),t.TgZ(1,"svg",21),t._UZ(2,"path",22),t._UZ(3,"path",23),t._UZ(4,"path",24),t._UZ(5,"path",25),t._UZ(6,"path",26),t._UZ(7,"path",27),t._UZ(8,"path",28),t.qZA(),t.kcU(),t.TgZ(9,"div",18),t.TgZ(10,"mat-card-title"),t._uU(11,"Step 1: Deciding to Submarine Swap"),t.qZA(),t.qZA(),t.TgZ(12,"div",19),t.TgZ(13,"mat-card-subtitle",20),t._uU(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. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Xt,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function Zi(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(mt){return t.CHM(B),t.oxw().onSwipe(mt)}),t.O4$(),t.TgZ(1,"svg",29),t._UZ(2,"path",30),t._UZ(3,"path",31),t._UZ(4,"path",32),t._UZ(5,"path",33),t._UZ(6,"path",34),t._UZ(7,"circle",35),t._UZ(8,"rect",36),t.TgZ(9,"defs"),t.TgZ(10,"pattern",37),t._UZ(11,"use",38),t.qZA(),t._UZ(12,"image",39),t.qZA(),t.qZA(),t.kcU(),t.TgZ(13,"div",18),t.TgZ(14,"mat-card-title"),t._uU(15,"Step 2: Sending the on-chain funds"),t.qZA(),t.qZA(),t.TgZ(16,"div",19),t.TgZ(17,"mat-card-subtitle",20),t._uU(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. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Xt,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function tn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(mt){return t.CHM(B),t.oxw().onSwipe(mt)}),t.O4$(),t.TgZ(1,"svg",40),t.TgZ(2,"g",41),t._UZ(3,"path",42),t._UZ(4,"path",43),t._UZ(5,"path",44),t._UZ(6,"path",45),t._UZ(7,"path",46),t.qZA(),t.TgZ(8,"defs"),t.TgZ(9,"clipPath",47),t._UZ(10,"rect",48),t.qZA(),t.qZA(),t.qZA(),t.kcU(),t.TgZ(11,"div",18),t.TgZ(12,"mat-card-title"),t._uU(13,"Step 3: Receiving the funds on Lightning"),t.qZA(),t.qZA(),t.TgZ(14,"div",19),t.TgZ(15,"mat-card-subtitle",20),t._uU(16," Boltz pays the Lightning invoice to your node and claims the on-chain funds locked in the previous step. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Xt,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function Mn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(mt){return t.CHM(B),t.oxw().onSwipe(mt)}),t.O4$(),t.TgZ(1,"svg",49),t._UZ(2,"path",50),t._UZ(3,"path",51),t._UZ(4,"path",52),t._UZ(5,"path",53),t._UZ(6,"path",54),t.qZA(),t.kcU(),t.TgZ(7,"div",18),t.TgZ(8,"mat-card-title"),t._uU(9,"Done!"),t.qZA(),t.qZA(),t.TgZ(10,"div",19),t.TgZ(11,"mat-card-subtitle",20),t._uU(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. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Xt,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}let On=(()=>{class X{constructor(B){this.commonService=B,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.vpe,this.screenSize="",this.screenSizeEnum=K.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(B){2===B.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===B.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Ci.v))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-swapin-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["swapStepBlock1",""],["swapStepBlock2",""],["swapStepBlock3",""],["swapStepBlock4",""],["swapStepBlock5",""],["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(B,Ae){if(1&B&&(t.YNc(0,Qt,1,0,"ng-container",0),t.YNc(1,pi,18,5,"ng-template",null,1,t.W1O),t.YNc(3,Ti,15,5,"ng-template",null,2,t.W1O),t.YNc(5,Zi,19,5,"ng-template",null,3,t.W1O),t.YNc(7,tn,17,5,"ng-template",null,4,t.W1O),t.YNc(9,Mn,13,5,"ng-template",null,5,t.W1O)),2&B){const mt=t.MAs(2),fi=t.MAs(4),In=t.MAs(6),tr=t.MAs(8),Fn=t.MAs(10);t.Q6J("ngTemplateOutlet",1===Ae.stepNumber?mt:2===Ae.stepNumber?fi:3===Ae.stepNumber?In:4===Ae.stepNumber?tr:Fn)}},directives:[be.tP,b.xw,b.yH,b.Wh,be.mk,Cn.oO,N.n5,N.$j],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:[fr.l]}}),X})();const tt=["stepper"];function Et(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(2);t.Oqu(B.inputFormLabel)}}function It(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function zt(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.hij("Amount must be greater than or equal to ",t.lcZ(2,1,null==B.serviceInfo||null==B.serviceInfo.limits?null:B.serviceInfo.limits.minimal),".")}}function ri(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.hij("Amount must be less than or equal to ",t.lcZ(2,1,null==B.serviceInfo||null==B.serviceInfo.limits?null:B.serviceInfo.limits.maximal),".")}}function vi(X,He){1&X&&(t.TgZ(0,"button",40),t._uU(1,"Next"),t.qZA())}function Mi(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",41),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onSwap()}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw(2);t.xp6(1),t.hij("Initiate ",B.swapDirectionCaption,"")}}function Ai(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(3);t.Oqu(B.addressFormLabel)}}function Ki(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Address is required."),t.qZA())}function un(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-step",15),t.TgZ(1,"form",16),t.YNc(2,Ai,1,1,"ng-template",17),t.TgZ(3,"div",42),t.TgZ(4,"mat-radio-group",43),t.NdJ("change",function(mt){return t.CHM(B),t.oxw(2).onAddressTypeChange(mt)}),t.TgZ(5,"mat-radio-button",44),t._uU(6,"Node Local Address"),t.qZA(),t.TgZ(7,"mat-radio-button",45),t._uU(8,"External Address"),t.qZA(),t.qZA(),t.TgZ(9,"mat-form-field",46),t._UZ(10,"input",47),t.YNc(11,Ki,2,0,"mat-error",24),t.qZA(),t.qZA(),t.TgZ(12,"div",25),t.TgZ(13,"button",48),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onSwap()}),t._uU(14),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(2);t.Q6J("stepControl",B.addressFormGroup)("editable",B.flgEditable),t.xp6(1),t.Q6J("formGroup",B.addressFormGroup),t.xp6(9),t.Q6J("required","external"===B.addressFormGroup.controls.addressType.value),t.xp6(1),t.Q6J("ngIf",null==B.addressFormGroup.controls.address.errors?null:B.addressFormGroup.controls.address.errors.required),t.xp6(3),t.hij("Initiate ",B.swapDirectionCaption,"")}}function gn(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(2);t.hij("",B.swapDirectionCaption," Status")}}function En(X,He){if(1&X&&(t.TgZ(0,"mat-icon",49),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.swapStatus&&null!=B.swapStatus&&B.swapStatus.id?"check":"close")}}function zn(X,He){1&X&&t._UZ(0,"div")}function Rr(X,He){1&X&&t._UZ(0,"mat-progress-bar",50)}function Fr(X,He){if(1&X&&(t.TgZ(0,"h4",51),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.swapStatus&&B.swapStatus.error?B.swapDirectionCaption+" failed.":B.swapStatus&&B.swapStatus.id?B.swapDirectionCaption+" request placed successfully. You can check the status of the request on the 'Boltz' menu.":B.swapDirectionCaption+" request placed successfully.")}}function wr(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",52),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onRestart()}),t._uU(1,"Start Again"),t.qZA()}}function Vn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",3),t.TgZ(1,"div",4),t.TgZ(2,"mat-card-header",5),t.TgZ(3,"div",6),t.TgZ(4,"span",7),t._uU(5),t.qZA(),t.qZA(),t.TgZ(6,"div",8),t.TgZ(7,"button",9),t.NdJ("click",function(){return t.CHM(B),t.oxw().showInfo()}),t._uU(8,"?"),t.qZA(),t.TgZ(9,"button",10),t.NdJ("click",function(){return t.CHM(B),t.oxw().onClose()}),t._uU(10,"X"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"mat-card-content",11),t.TgZ(12,"div",12),t.TgZ(13,"mat-vertical-stepper",13,14),t.NdJ("selectionChange",function(mt){return t.CHM(B),t.oxw().stepSelectionChanged(mt)}),t.TgZ(15,"mat-step",15),t.TgZ(16,"form",16),t.YNc(17,Et,1,1,"ng-template",17),t.TgZ(18,"div",18),t._UZ(19,"rtl-boltz-service-info",19),t.qZA(),t.TgZ(20,"div",20),t.TgZ(21,"mat-form-field",21),t._UZ(22,"input",22),t.TgZ(23,"mat-hint"),t._uU(24),t.ALo(25,"number"),t.ALo(26,"number"),t.qZA(),t.TgZ(27,"span",23),t._uU(28,"Sats"),t.qZA(),t.YNc(29,It,2,0,"mat-error",24),t.YNc(30,zt,3,3,"mat-error",24),t.YNc(31,ri,3,3,"mat-error",24),t.qZA(),t.qZA(),t.TgZ(32,"div",25),t.YNc(33,vi,2,0,"button",26),t.YNc(34,Mi,2,1,"button",27),t.qZA(),t.qZA(),t.qZA(),t.YNc(35,un,15,6,"mat-step",28),t.TgZ(36,"mat-step",29),t.TgZ(37,"form",16),t.YNc(38,gn,1,1,"ng-template",17),t.TgZ(39,"div",30),t.TgZ(40,"mat-expansion-panel",31),t.TgZ(41,"mat-expansion-panel-header"),t.TgZ(42,"mat-panel-title"),t.TgZ(43,"span",32),t._uU(44),t.YNc(45,En,2,1,"mat-icon",33),t.qZA(),t.qZA(),t.qZA(),t.YNc(46,zn,1,0,"div",34),t.qZA(),t.YNc(47,Rr,1,0,"mat-progress-bar",35),t.qZA(),t.YNc(48,Fr,2,1,"h4",36),t.TgZ(49,"div",25),t.YNc(50,wr,2,0,"button",37),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(51,"div",38),t.TgZ(52,"button",39),t._uU(53,"Close"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(),Ae=t.MAs(2);t.Q6J("@opacityAnimation",void 0),t.xp6(3),t.Q6J("fxFlex",B.screenSize===B.screenSizeEnum.XS||B.screenSize===B.screenSizeEnum.SM?"83":"91"),t.xp6(2),t.Oqu(B.swapDirectionCaption),t.xp6(1),t.Q6J("fxFlex",B.screenSize===B.screenSizeEnum.XS||B.screenSize===B.screenSizeEnum.SM?"17":"9"),t.xp6(7),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",B.inputFormGroup)("editable",B.flgEditable),t.xp6(1),t.Q6J("formGroup",B.inputFormGroup),t.xp6(3),t.Q6J("serviceInfo",B.serviceInfo)("direction",B.direction),t.xp6(3),t.Q6J("step",1e3),t.xp6(2),t.AsE("Range: ",t.lcZ(25,30,null==B.serviceInfo||null==B.serviceInfo.limits?null:B.serviceInfo.limits.minimal),"-",t.lcZ(26,32,null==B.serviceInfo||null==B.serviceInfo.limits?null:B.serviceInfo.limits.maximal),""),t.xp6(5),t.Q6J("ngIf",null==B.inputFormGroup||null==B.inputFormGroup.controls||null==B.inputFormGroup.controls.amount||null==B.inputFormGroup.controls.amount.errors?null:B.inputFormGroup.controls.amount.errors.required),t.xp6(1),t.Q6J("ngIf",null==B.inputFormGroup||null==B.inputFormGroup.controls||null==B.inputFormGroup.controls.amount||null==B.inputFormGroup.controls.amount.errors?null:B.inputFormGroup.controls.amount.errors.min),t.xp6(1),t.Q6J("ngIf",null==B.inputFormGroup||null==B.inputFormGroup.controls||null==B.inputFormGroup.controls.amount||null==B.inputFormGroup.controls.amount.errors?null:B.inputFormGroup.controls.amount.errors.max),t.xp6(2),t.Q6J("ngIf",B.direction===B.swapTypeEnum.SWAP_OUT),t.xp6(1),t.Q6J("ngIf",B.direction===B.swapTypeEnum.SWAP_IN),t.xp6(1),t.Q6J("ngIf",B.direction===B.swapTypeEnum.SWAP_OUT),t.xp6(1),t.Q6J("stepControl",B.statusFormGroup),t.xp6(1),t.Q6J("formGroup",B.statusFormGroup),t.xp6(3),t.Q6J("expanded",!!B.swapStatus),t.xp6(4),t.Oqu(B.swapStatus?B.swapStatus.id?B.swapDirectionCaption+" request details":B.swapDirectionCaption+" error details":"Waiting for "+B.swapDirectionCaption+" request..."),t.xp6(1),t.Q6J("ngIf",B.swapStatus),t.xp6(1),t.Q6J("ngIf",!B.swapStatus)("ngIfElse",Ae),t.xp6(1),t.Q6J("ngIf",!B.swapStatus),t.xp6(1),t.Q6J("ngIf",B.swapStatus),t.xp6(2),t.Q6J("ngIf",B.swapStatus&&(B.swapStatus.error||!B.swapStatus.id)),t.xp6(2),t.Q6J("mat-dialog-close",!1)}}function mr(X,He){if(1&X&&t._UZ(0,"rtl-boltz-swap-status",53),2&X){const B=t.oxw();t.Q6J("swapStatus",B.swapStatus)("direction",B.direction)}}function Hi(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"rtl-boltz-swapout-info-graphics",70),t.NdJ("stepNumberChange",function(mt){return t.CHM(B),t.oxw(2).stepNumber=mt}),t.qZA()}if(2&X){const B=t.oxw(2);t.Q6J("stepNumber",B.stepNumber)("animationDirection",B.animationDirection)}}function on(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"rtl-boltz-swapin-info-graphics",70),t.NdJ("stepNumberChange",function(mt){return t.CHM(B),t.oxw(2).stepNumber=mt}),t.qZA()}if(2&X){const B=t.oxw(2);t.Q6J("stepNumber",B.stepNumber)("animationDirection",B.animationDirection)}}const nn=function(X,He){return{"dot-primary":X,"dot-primary-lighter":He}};function Pn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"span",71),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw(2).onStepChanged(fi)}),t._UZ(1,"p",72),t.qZA()}if(2&X){const B=He.$implicit,Ae=t.oxw(2);t.xp6(1),t.Q6J("ngClass",t.WLB(1,nn,Ae.stepNumber===B,Ae.stepNumber!==B))}}function jn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",73),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onReadMore()}),t._uU(1,"Read More"),t.qZA()}}function da(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",74),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onStepChanged(4)}),t._uU(1,"Back"),t.qZA()}}function Xr(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",75),t.NdJ("click",function(){t.CHM(B);const mt=t.oxw(2);return mt.flgShowInfo=!1,mt.stepNumber=1}),t._uU(1,"Close"),t.qZA()}}function $r(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",76),t.NdJ("click",function(){t.CHM(B);const mt=t.oxw(2);return mt.flgShowInfo=!1,mt.stepNumber=1}),t._uU(1,"Close"),t.qZA()}}function Yn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",77),t.NdJ("click",function(){t.CHM(B);const mt=t.oxw(2);return mt.onStepChanged(mt.stepNumber-1)}),t._uU(1,"Back"),t.qZA()}}function no(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",78),t.NdJ("click",function(){t.CHM(B);const mt=t.oxw(2);return mt.onStepChanged(mt.stepNumber+1)}),t._uU(1,"Next"),t.qZA()}}const Ia=function(){return[1,2,3,4,5]};function Ps(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",54),t.TgZ(1,"div",18),t.TgZ(2,"mat-card-header",55),t.TgZ(3,"div",56),t._UZ(4,"span",7),t.qZA(),t.TgZ(5,"div",57),t.TgZ(6,"button",58),t.NdJ("click",function(){t.CHM(B);const mt=t.oxw();return mt.flgShowInfo=!1,mt.stepNumber=1}),t._uU(7,"X"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"mat-card-content",59),t.YNc(9,Hi,1,2,"rtl-boltz-swapout-info-graphics",60),t.YNc(10,on,1,2,"rtl-boltz-swapin-info-graphics",60),t.qZA(),t.TgZ(11,"div",61),t.YNc(12,Pn,2,4,"span",62),t.qZA(),t.TgZ(13,"div",63),t.YNc(14,jn,2,0,"button",64),t.YNc(15,da,2,0,"button",65),t.YNc(16,Xr,2,0,"button",66),t.YNc(17,$r,2,0,"button",67),t.YNc(18,Yn,2,0,"button",68),t.YNc(19,no,2,0,"button",69),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@opacityAnimation",void 0),t.xp6(9),t.Q6J("ngIf",B.direction===B.swapTypeEnum.SWAP_OUT),t.xp6(1),t.Q6J("ngIf",B.direction===B.swapTypeEnum.SWAP_IN),t.xp6(2),t.Q6J("ngForOf",t.DdM(10,Ia)),t.xp6(2),t.Q6J("ngIf",5===B.stepNumber),t.xp6(1),t.Q6J("ngIf",5===B.stepNumber),t.xp6(1),t.Q6J("ngIf",5===B.stepNumber),t.xp6(1),t.Q6J("ngIf",B.stepNumber<5),t.xp6(1),t.Q6J("ngIf",B.stepNumber>1&&B.stepNumber<5),t.xp6(1),t.Q6J("ngIf",B.stepNumber<5)}}let Vs=(()=>{class X{constructor(B,Ae,mt,fi,In,tr,Fn,Br,ya){this.dialogRef=B,this.data=Ae,this.store=mt,this.boltzService=fi,this.formBuilder=In,this.decimalPipe=tr,this.logger=Fn,this.router=Br,this.commonService=ya,this.faInfoCircle=x.sqG,this.serviceInfo={fees:{percentage:null,miner:{normal:null,reverse:null}},limits:{minimal:1e4,maximal:5e7}},this.swapTypeEnum=K.hc,this.direction=K.hc.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=K.cu,this.animationDirection="forward",this.flgEditable=!0,this.unSubs=[new s.x,new s.x,new s.x,new s.x,new s.x,new s.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.serviceInfo=this.data.serviceInfo,this.direction=this.data.direction,this.swapDirectionCaption=this.direction===K.hc.SWAP_OUT?"Swap Out":"Swap in",this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.serviceInfo.limits.minimal,[Ge.kI.required,Ge.kI.min(this.serviceInfo.limits.minimal),Ge.kI.max(this.serviceInfo.limits.maximal)]]}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[Ge.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges()}ngAfterViewInit(){this.direction===K.hc.SWAP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.direction===K.hc.SWAP_OUT&&this.addressFormGroup.valueChanges.pipe((0,y.R)(this.unSubs[2])).subscribe(B=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(B){"external"===B.value?(this.addressFormGroup.controls.address.setValidators([Ge.kI.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.inputFormGroup.controls.amount.value<+this.serviceInfo.limits.minimal||this.inputFormGroup.controls.amount.value>+this.serviceInfo.limits.maximal||this.direction===K.hc.SWAP_OUT&&"external"===this.addressFormGroup.controls.addressType.value&&(!this.addressFormGroup.controls.address.value||""===this.addressFormGroup.controls.address.value.trim()))return!0;this.flgEditable=!1,this.stepper.selected.stepControl.setErrors(null),this.stepper.next(),this.direction===K.hc.SWAP_IN?this.boltzService.swapIn(this.inputFormGroup.controls.amount.value).pipe((0,y.R)(this.unSubs[3])).subscribe({next:B=>{this.swapStatus=B,this.boltzService.listSwaps(),this.flgEditable=!0},error:B=>{this.swapStatus={error:B},this.flgEditable=!0,this.logger.error(B)}}):this.boltzService.swapOut(this.inputFormGroup.controls.amount.value,"external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"").pipe((0,y.R)(this.unSubs[4])).subscribe({next:Ae=>{this.swapStatus=Ae,this.boltzService.listSwaps(),this.flgEditable=!0},error:Ae=>{this.swapStatus={error:Ae},this.flgEditable=!0,this.logger.error(Ae)}})}stepSelectionChanged(B){switch(B.selectedIndex){case 0:default:this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.addressFormLabel="Withdrawal Address";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.amount.value?this.swapDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats":"Amount to "+this.swapDirectionCaption,this.addressFormLabel="Withdrawal Address"}B.selectedIndex{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Ue.so),t.Y36(Ue.WI),t.Y36(M.yh),t.Y36(Un),t.Y36(Ge.qu),t.Y36(be.JJ),t.Y36(Y.mQ),t.Y36(I.F0),t.Y36(Ci.v))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-swap-modal"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(tt,5),2&B){let mt;t.iGM(mt=t.CRH())&&(Ae.stepper=mt.first)}},decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["swapStatusBlock",""],["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,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["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,"linear","selectionChange"],["stepper",""],[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"],["fxFlex","48"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["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"],["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"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Address","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"],["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"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["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,"stepNumber","animationDirection","stepNumberChange"],["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(B,Ae){1&B&&(t.YNc(0,Vn,54,34,"div",0),t.YNc(1,mr,1,2,"ng-template",null,1,t.W1O),t.YNc(3,Ps,20,11,"div",2)),2&B&&(t.Q6J("ngIf",!Ae.flgShowInfo),t.xp6(3),t.Q6J("ngIf",Ae.flgShowInfo))},directives:[be.O5,b.xw,b.yH,b.Wh,N.dk,ue.lW,N.dn,it.Vq,it.C0,Ge._Y,Ge.JL,Ge.sg,it.VY,_a,vt.KE,rt.Nt,Ge.wV,Ge.Fj,Ne.h,Ge.JJ,Ge.u,Ge.Q7,vt.bx,vt.R9,Rn.ib,Rn.yz,Rn.yK,Ue.ZT,vt.TO,it.Ic,$i.VQ,$i.U0,Mr.Hw,Qn.pW,Us,be.sg,Pt,On,be.mk,Cn.oO],pipes:[be.JJ],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[xi._]}}),X})();function va(X,He){1&X&&t._UZ(0,"mat-progress-bar",32)}function us(X,He){1&X&&(t.TgZ(0,"th",33),t._uU(1," Status "),t.qZA())}function Jc(X,He){if(1&X&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw();t.xp6(1),t.Oqu(Ae.swapStateEnum[B.status])}}function Gs(X,He){1&X&&(t.TgZ(0,"th",33),t._uU(1," Swap ID "),t.qZA())}function ro(X,He){if(1&X&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.id)}}function tl(X,He){1&X&&(t.TgZ(0,"th",33),t._uU(1," Claim Address "),t.qZA())}function cc(X,He){if(1&X&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.claimAddress)}}function hc(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Onchain Amount (Sats) "),t.qZA())}function Xc(X,He){if(1&X&&(t.TgZ(0,"td",34),t.TgZ(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.onchainAmount))}}function $c(X,He){1&X&&(t.TgZ(0,"th",33),t._uU(1," Lockup Address "),t.qZA())}function Lo(X,He){if(1&X&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.lockupAddress)}}function il(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Expected Amount (Sats) "),t.qZA())}function nl(X,He){if(1&X&&(t.TgZ(0,"td",34),t.TgZ(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.expectedAmount))}}function Oo(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Timeout Block Height "),t.qZA())}function Ll(X,He){if(1&X&&(t.TgZ(0,"td",34),t.TgZ(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.timeoutBlockHeight))}}function Io(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Amount (Sats) "),t.qZA())}function ao(X,He){if(1&X&&(t.TgZ(0,"td",34),t.TgZ(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.amt))}}function dc(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"th",37),t.TgZ(1,"div",38),t.TgZ(2,"mat-select",39),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",40),t.NdJ("click",function(){return t.CHM(B),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}}function Ys(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"td",41),t.TgZ(1,"button",42),t.NdJ("click",function(mt){const In=t.CHM(B).$implicit;return t.oxw().onSwapClick(In,mt)}),t._uU(2,"View Info"),t.qZA(),t.qZA()}}function rl(X,He){if(1&X&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.emptyTableMessage)}}function al(X,He){if(1&X&&(t.TgZ(0,"td",43),t.YNc(1,rl,2,1,"p",44),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Q6J("ngIf",!(null!=B.listSwaps&&B.listSwaps.data)||(null==B.listSwaps||null==B.listSwaps.data?null:B.listSwaps.data.length)<1)}}const Ye=function(X){return{"display-none":X}};function Te(X,He){if(1&X&&t._UZ(0,"tr",45),2&X){const B=t.oxw();t.Q6J("ngClass",t.VKq(1,Ye,(null==B.listSwaps?null:B.listSwaps.data)&&(null==B.listSwaps||null==B.listSwaps.data?null:B.listSwaps.data.length)>0))}}function Ce(X,He){1&X&&t._UZ(0,"tr",46)}function $e(X,He){1&X&&t._UZ(0,"tr",47)}const dt=function(X){return{"overflow-auto error-border":X,"overflow-auto":!0}},Ot=function(){return["no_swap"]};let qt=(()=>{class X{constructor(B,Ae,mt,fi){this.logger=B,this.commonService=Ae,this.store=mt,this.boltzService=fi,this.selectedSwapType=K.hc.SWAP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.swapStateEnum=K.Qw,this.faHistory=x.qO$,this.swapCaption="Swap Out",this.displayedColumns=[],this.selFilter="",this.flgSticky=!1,this.pageSize=K.IV,this.pageSizeOptions=K.TJ,this.screenSize="",this.screenSizeEnum=K.cu,this.unSubs=[new s.x,new s.x,new s.x],this.screenSize=this.commonService.getScreenSize(),this.setTableColumns()}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(B){B.selectedSwapType&&!B.selectedSwapType.firstChange&&this.setTableColumns(),this.swapCaption=this.selectedSwapType===K.hc.SWAP_IN?"Swap In":"Swap Out",this.loadSwapsTable(this.swapsData)}setTableColumns(){this.screenSize===K.cu.XS||this.screenSize===K.cu.SM?(this.flgSticky=!1,this.displayedColumns=this.selectedSwapType===K.hc.SWAP_IN?["status","id","expectedAmount","actions"]:["status","id","onchainAmount","actions"]):this.screenSize===K.cu.MD?(this.flgSticky=!1,this.displayedColumns=this.selectedSwapType===K.hc.SWAP_IN?["status","id","expectedAmount","timeoutBlockHeight","actions"]:["status","id","onchainAmount","timeoutBlockHeight","actions"]):(this.flgSticky=!0,this.displayedColumns=this.selectedSwapType===K.hc.SWAP_IN?["status","id","lockupAddress","expectedAmount","timeoutBlockHeight","actions"]:["status","id","claimAddress","onchainAmount","timeoutBlockHeight","actions"])}applyFilter(){this.listSwaps&&""!==this.selFilter&&(this.listSwaps.filter=this.selFilter.trim().toLowerCase())}onSwapClick(B,Ae){this.boltzService.swapInfo(B.id).pipe((0,y.R)(this.unSubs[1])).subscribe(mt=>{this.store.dispatch((0,we.qR)({payload:{data:{type:K.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"status",value:K.Qw[(mt=this.selectedSwapType===K.hc.SWAP_IN?mt.swap:mt.reverseSwap).status],title:"Status",width:50,type:K.Gi.STRING},{key:"id",value:mt.id,title:"ID",width:50,type:K.Gi.STRING}],[{key:"amount",value:mt.onchainAmount?mt.onchainAmount:mt.expectedAmount?mt.expectedAmount:0,title:mt.onchainAmount?"Onchain Amount (Sats)":mt.expectedAmount?"Expected Amount (Sats)":"Amount (Sats)",width:50,type:K.Gi.NUMBER},{key:"timeoutBlockHeight",value:mt.timeoutBlockHeight,title:"Timeout Block Height",width:50,type:K.Gi.NUMBER}],[{key:"address",value:mt.claimAddress?mt.claimAddress:mt.lockupAddress?mt.lockupAddress:"",title:mt.claimAddress?"Claim Address":mt.lockupAddress?"Lockup Address":"Address",width:100,type:K.Gi.STRING}],[{key:"invoice",value:mt.invoice,title:"Invoice",width:100,type:K.Gi.STRING}],[{key:"privateKey",value:mt.privateKey,title:"Private Key",width:100,type:K.Gi.STRING}],[{key:"preimage",value:mt.preimage,title:"Preimage",width:100,type:K.Gi.STRING}],[{key:"redeemScript",value:mt.redeemScript,title:"Redeem Script",width:100,type:K.Gi.STRING}],[{key:"lockupTransactionId",value:mt.lockupTransactionId,title:"Lockup Transaction ID",width:50,type:K.Gi.STRING},{key:"transactionId",value:mt.claimTransactionId?mt.claimTransactionId:mt.refundTransactionId?mt.refundTransactionId:"",title:mt.claimTransactionId?"Claim Transaction ID":mt.refundTransactionId?"Refund Transaction ID":"Transaction ID",width:50,type:K.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(B){this.listSwaps=new vn.by(B?[...B]:[]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(Ae,mt)=>Ae[mt]&&isNaN(Ae[mt])?Ae[mt].toLocaleLowerCase():Ae[mt]?+Ae[mt]:null,this.listSwaps.filterPredicate=(Ae,mt)=>JSON.stringify(Ae).toLowerCase().includes(mt),this.paginator&&this.paginator.firstPage(),this.listSwaps.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===K.hc.SWAP_IN?"Swap in":"Swap out")}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Y.mQ),t.Y36(Ci.v),t.Y36(M.yh),t.Y36(Un))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-swaps"]],viewQuery:function(B,Ae){if(1&B&&(t.Gf(Kn.YE,5),t.Gf(Pr.NW,5)),2&B){let mt;t.iGM(mt=t.CRH())&&(Ae.sort=mt.first),t.iGM(mt=t.CRH())&&(Ae.paginator=mt.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[t._Bn([{provide:Pr.ye,useValue:(0,K.pt)("Swaps")}]),t.TTD],decls:46,vars:16,consts:[["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","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","claimAddress"],["matColumnDef","onchainAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","lockupAddress"],["matColumnDef","expectedAmount"],["matColumnDef","timeoutBlockHeight"],["matColumnDef","amt"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","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","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"div",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span",4),t._uU(5),t.qZA(),t.qZA(),t.TgZ(6,"mat-form-field",5),t.TgZ(7,"input",6),t.NdJ("keyup",function(){return Ae.applyFilter()})("ngModelChange",function(fi){return Ae.selFilter=fi}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"div",7),t.TgZ(9,"div",8),t.YNc(10,va,1,0,"mat-progress-bar",9),t.TgZ(11,"table",10,11),t.ynx(13,12),t.YNc(14,us,2,0,"th",13),t.YNc(15,Jc,2,1,"td",14),t.BQk(),t.ynx(16,15),t.YNc(17,Gs,2,0,"th",13),t.YNc(18,ro,2,1,"td",14),t.BQk(),t.ynx(19,16),t.YNc(20,tl,2,0,"th",13),t.YNc(21,cc,2,1,"td",14),t.BQk(),t.ynx(22,17),t.YNc(23,hc,2,0,"th",18),t.YNc(24,Xc,4,3,"td",14),t.BQk(),t.ynx(25,19),t.YNc(26,$c,2,0,"th",13),t.YNc(27,Lo,2,1,"td",14),t.BQk(),t.ynx(28,20),t.YNc(29,il,2,0,"th",18),t.YNc(30,nl,4,3,"td",14),t.BQk(),t.ynx(31,21),t.YNc(32,Oo,2,0,"th",18),t.YNc(33,Ll,4,3,"td",14),t.BQk(),t.ynx(34,22),t.YNc(35,Io,2,0,"th",18),t.YNc(36,ao,4,3,"td",14),t.BQk(),t.ynx(37,23),t.YNc(38,dc,6,0,"th",24),t.YNc(39,Ys,3,0,"td",25),t.BQk(),t.ynx(40,26),t.YNc(41,al,2,1,"td",27),t.BQk(),t.YNc(42,Te,1,3,"tr",28),t.YNc(43,Ce,1,0,"tr",29),t.YNc(44,$e,1,0,"tr",30),t.qZA(),t._UZ(45,"mat-paginator",31),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(3),t.Q6J("icon",Ae.faHistory),t.xp6(2),t.hij("",Ae.swapCaption," History"),t.xp6(2),t.Q6J("ngModel",Ae.selFilter),t.xp6(3),t.Q6J("ngIf",!0===Ae.flgLoading[0]),t.xp6(1),t.Q6J("dataSource",Ae.listSwaps)("ngClass",t.VKq(13,dt,"error"===Ae.flgLoading[0])),t.xp6(31),t.Q6J("matFooterRowDef",t.DdM(15,Ot)),t.xp6(1),t.Q6J("matHeaderRowDef",Ae.displayedColumns)("matHeaderRowDefSticky",Ae.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",Ae.displayedColumns),t.xp6(1),t.Q6J("pageSize",Ae.pageSize)("pageSizeOptions",Ae.pageSizeOptions)("showFirstLastButtons",Ae.screenSize!==Ae.screenSizeEnum.XS))},directives:[b.xw,b.yH,b.Wh,U.BN,vt.KE,rt.Nt,Ge.Fj,Ge.JJ,Ge.On,ae.$V,be.O5,vn.BZ,Kn.YE,be.mk,Cn.oO,vn.w1,vn.fO,vn.Dz,vn.mD,vn.Ke,vn.as,vn.nj,Pr.NW,Qn.pW,vn.ge,Kn.nU,vn.ev,Fe.gD,Fe.$L,Oe.ey,ue.lW,vn.yh,vn.Q2,vn.XQ,vn.Gk],pipes:[be.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),X})();const ii=function(X){return["../",X]};function Ei(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",15),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw().onSelectedIndexChange(fi)}),t._uU(1),t.qZA()}if(2&X){const B=He.$implicit,Ae=t.oxw();t.Q6J("active",Ae.activeTab.link===B.link)("routerLink",t.VKq(3,ii,B.link)),t.xp6(1),t.Oqu(B.name)}}let an=(()=>{class X{constructor(B,Ae,mt){this.router=B,this.store=Ae,this.boltzService=mt,this.swapTypeEnum=K.hc,this.selectedSwapType=K.hc.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 s.x,new s.x,new s.x,new s.x]}ngOnInit(){this.boltzService.listSwaps();const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeTab=B||this.links[0],this.selectedSwapType=B&&"swapin"===B.link?K.hc.SWAP_IN:K.hc.SWAP_OUT,this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof I.Av)).subscribe({next:Ae=>{const mt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeTab=mt||this.links[0],this.selectedSwapType=mt&&"swapin"===mt.link?K.hc.SWAP_IN:K.hc.SWAP_OUT}}),this.boltzService.swapsChanged.pipe((0,y.R)(this.unSubs[1])).subscribe({next:Ae=>{this.swaps=Ae,this.swapsData=this.selectedSwapType===K.hc.SWAP_IN?Ae.swaps:Ae.reverseSwaps,this.flgLoading[0]=!1},error:Ae=>{this.flgLoading[0]="error",this.emptyTableMessage=Ae.message?Ae.message:"No swap "+(this.selectedSwapType===K.hc.SWAP_IN?"in":"out")+" available."}})}onSelectedIndexChange(B){"swapin"===B.link?(this.selectedSwapType=K.hc.SWAP_IN,this.swapsData=this.swaps.swaps):(this.selectedSwapType=K.hc.SWAP_OUT,this.swapsData=this.swaps.reverseSwaps)}onSwap(B){this.boltzService.serviceInfo().pipe((0,y.R)(this.unSubs[2])).subscribe({next:Ae=>{this.store.dispatch((0,we.qR)({payload:{data:{serviceInfo:Ae,direction:B,component:Vs}}}))}})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(I.F0),t.Y36(M.yh),t.Y36(Un))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-root"]],decls:18,vars:6,consts:[["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",""],["role","tab","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","1",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1),t.TgZ(2,"g",2),t.TgZ(3,"g",3),t._UZ(4,"circle",4),t._UZ(5,"path",5),t._UZ(6,"path",6),t.qZA(),t.qZA(),t.qZA(),t.kcU(),t.TgZ(7,"span",7),t._uU(8,"Boltz"),t.qZA(),t.qZA(),t.TgZ(9,"div",8),t.TgZ(10,"mat-card"),t.TgZ(11,"mat-card-content",9),t.TgZ(12,"nav",10),t.YNc(13,Ei,2,5,"div",11),t.qZA(),t.TgZ(14,"div",12),t.TgZ(15,"button",13),t.NdJ("click",function(){return Ae.onSwap(Ae.selectedSwapType)}),t._uU(16),t.qZA(),t.qZA(),t._UZ(17,"rtl-boltz-swaps",14),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(13),t.Q6J("ngForOf",Ae.links),t.xp6(3),t.hij("Start ",Ae.activeTab.name,""),t.xp6(1),t.Q6J("selectedSwapType",Ae.selectedSwapType)("swapsData",Ae.swapsData)("flgLoading",Ae.flgLoading)("emptyTableMessage",Ae.emptyTableMessage))},directives:[b.xw,b.Wh,N.a8,N.dn,b.yH,z.BU,be.sg,ue.lW,qt,z.Nj,I.rH],styles:[""]}),X})();class ea{constructor(He){this.help=He}}function ys(X,He){if(1&X&&(t.TgZ(0,"mat-expansion-panel",8),t.TgZ(1,"mat-expansion-panel-header"),t.TgZ(2,"mat-panel-title"),t._uU(3),t.qZA(),t.qZA(),t.TgZ(4,"mat-panel-description",9),t._UZ(5,"span",10),t.TgZ(6,"a",11),t._uU(7),t.qZA(),t.qZA(),t.qZA()),2&X){const B=t.oxw().$implicit,Ae=t.oxw();t.xp6(3),t.Oqu(B.help.question),t.xp6(2),t.Q6J("innerHTML",B.help.answer,t.oJD),t.xp6(1),t.Q6J("routerLink",Ae.flgLoggedIn?Ae.LNPLink+B.help.link:"/login"),t.xp6(1),t.Oqu(Ae.flgLoggedIn?B.help.linkCaption:"Login to go to the page")}}function fs(X,He){if(1&X&&(t.TgZ(0,"div",6),t.YNc(1,ys,8,4,"mat-expansion-panel",7),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw();t.xp6(1),t.Q6J("ngIf","ALL"===B.help.lnImplementation||B.help.lnImplementation===Ae.selNode.lnImplementation)}}let ks=(()=>{class X{constructor(B,Ae){this.store=B,this.sessionService=Ae,this.helpTopics=[],this.faQuestion=x.Psp,this.LNPLink="/lnd/",this.flgLoggedIn=!1,this.unSubs=[new s.x,new s.x,new s.x,new s.x],this.helpTopics.push(new ea({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:"onchain",linkCaption:"On-Chain page",lnImplementation:"ALL"})),this.helpTopics.push(new ea({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:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new ea({question:"Opening Channels",answer:'Open channels with a connected network peer.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. On the "Channels" section, 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:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new ea({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. 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:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new ea({question:"Lightning Transactions - 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:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new ea({question:"Lightning Transactions - 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:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new ea({question:"Lightning Transactions - Query Route",answer:'Querying Payment Routes.\nGo to the "Transactions" 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:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new ea({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:"backup",linkCaption:"Channel Backups",lnImplementation:"LND"})),this.helpTopics.push(new ea({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:"backup",linkCaption:"Channel Backups",lnImplementation:"LND"})),this.helpTopics.push(new ea({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:"routing",linkCaption:"Forwarding History",lnImplementation:"ALL"})),this.helpTopics.push(new ea({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:"lookups",linkCaption:"Graph Lookup page",lnImplementation:"ALL"})),this.helpTopics.push(new ea({question:"Settings",answer:'RTL Offers certain customizations on the UI to personalize your experience on the app\nGo to "Settings" 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. Default Node - If you are managing multiple nodes via RTL UI, you can select the default node to load upon login.\nOther Customizations include day and night mode and a choice of color themes to select from.\n',lnImplementation:"ALL"}))}ngOnInit(){this.store.select(r.dT).pipe((0,y.R)(this.unSubs[0])).subscribe(B=>{switch(this.selNode=B,this.selNode.lnImplementation.toUpperCase()){case"CLN":this.LNPLink="/cln/";break;case"ECL":this.LNPLink="/ecl/";break;default:this.LNPLink="/lnd/"}}),this.sessionService.watchSession().pipe((0,y.R)(this.unSubs[1])).subscribe(B=>{this.flgLoggedIn=!!B.token}),this.sessionService.getItem("token")&&(this.flgLoggedIn=!0)}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(ke.m))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-help"]],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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span",3),t._uU(4,"Help"),t.qZA(),t.qZA(),t.TgZ(5,"div",4),t.TgZ(6,"div",0),t.YNc(7,fs,2,1,"div",5),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(2),t.Q6J("icon",Ae.faQuestion),t.xp6(5),t.Q6J("ngForOf",Ae.helpTopics))},directives:[b.xw,b.yH,b.Wh,U.BN,be.sg,be.O5,Rn.ib,Rn.yz,Rn.yK,Rn.u4,I.yS],styles:[".mat-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]}),X})();var bs=m(9841);function Ea(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Token is required."),t.qZA())}let Ol=(()=>{class X{constructor(B,Ae){this.dialogRef=B,this.store=Ae,this.faUserClock=x.hnx,this.token=""}onClose(){this.dialogRef.close(null)}onVerifyToken(){if(!this.token)return!0;this.dialogRef.close(),this.store.dispatch((0,we.M6)({payload:{twoFAToken:this.token}}))}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Ue.so),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-login-token"]],decls:17,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","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","row",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100",3,"ngSubmit"],["tokenForm","ngForm"],["autoFocus","","matInput","","placeholder","Token","type","text","id","token","name","token","tabindex","2","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","4","type","submit"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"mat-card-header",2),t.TgZ(3,"div",3),t.TgZ(4,"span",4),t._uU(5,"Two Factor Token"),t.qZA(),t.qZA(),t.TgZ(6,"button",5),t.NdJ("click",function(){return Ae.onClose()}),t._uU(7,"X"),t.qZA(),t.qZA(),t.TgZ(8,"mat-card-content",6),t.TgZ(9,"form",7,8),t.NdJ("ngSubmit",function(){return Ae.onVerifyToken()}),t.TgZ(11,"mat-form-field"),t.TgZ(12,"input",9),t.NdJ("ngModelChange",function(fi){return Ae.token=fi}),t.qZA(),t.YNc(13,Ea,2,0,"mat-error",10),t.qZA(),t.TgZ(14,"div",11),t.TgZ(15,"button",12),t._uU(16,"Verify Token"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(12),t.Q6J("ngModel",Ae.token),t.xp6(1),t.Q6J("ngIf",!Ae.token))},directives:[b.xw,b.Wh,b.yH,N.dk,ue.lW,N.dn,Ge._Y,Ge.JL,Ge.F,vt.KE,rt.Nt,Ge.Fj,Ne.h,Ge.Q7,Ge.JJ,Ge.On,be.O5,vt.TO],styles:[""]}),X})();function yo(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Password is required."),t.qZA())}function oo(X,He){if(1&X&&(t.TgZ(0,"p",21),t.TgZ(1,"mat-icon",22),t._uU(2,"close"),t.qZA(),t._uU(3),t.qZA()),2&X){const B=t.oxw();t.xp6(3),t.hij(" ",B.loginErrorMessage," ")}}const e1=function(X){return{"padding-gap-large":X}},t1=function(X,He){return{"font-size-200":X,"font-size-300":He}};let Po=(()=>{class X{constructor(B,Ae,mt,fi){this.logger=B,this.store=Ae,this.rtlEffects=mt,this.commonService=fi,this.faUnlockAlt=x.B$L,this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.flgShow=!1,this.screenSize="",this.screenSizeEnum=K.cu,this.loginErrorMessage="",this.apiCallStatusEnum=K.Bn,this.unSubs=[new s.x,new s.x,new s.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),(0,bs.a)([this.store.select(r.ul),this.store.select(r.Sr)]).pipe((0,y.R)(this.unSubs[0])).subscribe(([B,Ae])=>{this.loginErrorMessage="",B.status===K.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof B.message?JSON.stringify(B.message):B.message),this.logger.error(B.message)),Ae.status===K.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof Ae.message?JSON.stringify(Ae.message):Ae.message),this.logger.error(Ae.message))}),this.store.select(r.Yj).pipe((0,y.R)(this.unSubs[1])).subscribe(B=>{this.appConfig=B,this.logger.info(B)})}onLogin(){if(!this.password)return!0;this.loginErrorMessage="",this.appConfig.enable2FA?(this.store.dispatch((0,we.qR)({payload:{maxWidth:"35rem",data:{component:Ol}}})),this.rtlEffects.closeAlert.pipe((0,Me.q)(1)).subscribe(B=>{B&&this.store.dispatch((0,we.x4)({payload:{password:ce(this.password),defaultPassword:K.kO.includes(this.password.toLowerCase()),twoFAToken:B.twoFAToken}}))})):this.store.dispatch((0,we.x4)({payload:{password:ce(this.password),defaultPassword:K.kO.includes(this.password.toLowerCase())}}))}resetData(){this.password="",this.loginErrorMessage="",this.flgShow=!1}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Y.mQ),t.Y36(M.yh),t.Y36(nt.V),t.Y36(Ci.v))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-login"]],decls:25,vars:12,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","center stretch",1,"login-container"],["fxLayout","row","fxFlex","50","fxLayoutAlign","center stretch"],["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"],["src","assets/images/RTL-Horse-BY.svg","alt","RTL Logo",1,"rtl-logo-svg"],["fxFlex","65","fxLayout","column","fxLayoutAlign","center stretch",3,"ngClass"],["fxLayout","row","fxLayoutAlign","center center",1,"page-title-container","p-0"],[1,"font-bold-500",3,"ngClass"],[1,"page-title"],[1,"mt-5px","mb-0","px-2"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between"],["loginForm","ngForm"],["fxFlex","100","fxLayoutAlign","start"],["autoFocus","","matInput","","placeholder","Password","id","password","name","password","tabindex","1","required","",3,"type","ngModel","ngModelChange"],["tabindex","2","matSuffix","",3,"click"],[4,"ngIf"],["fxFlex","100","class","color-warn pre-wrap","fxLayoutAlign","start start",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["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"],["fxFlex","100","fxLayoutAlign","start start",1,"color-warn","pre-wrap"],[1,"mr-1","icon-small"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"mat-card",2),t.TgZ(3,"div",3),t.TgZ(4,"div",4),t._UZ(5,"img",5),t.qZA(),t.TgZ(6,"div",6),t.TgZ(7,"mat-card-header",7),t.TgZ(8,"mat-card-title",8),t.TgZ(9,"span",9),t._uU(10,"Welcome"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"mat-card-content",10),t.TgZ(12,"form",11,12),t.TgZ(14,"mat-form-field",13),t.TgZ(15,"input",14),t.NdJ("ngModelChange",function(fi){return Ae.password=fi}),t.qZA(),t.TgZ(16,"mat-icon",15),t.NdJ("click",function(){return Ae.flgShow=!Ae.flgShow}),t._uU(17),t.qZA(),t.YNc(18,yo,2,0,"mat-error",16),t.qZA(),t.YNc(19,oo,4,1,"p",17),t.TgZ(20,"div",18),t.TgZ(21,"button",19),t.NdJ("click",function(){return Ae.resetData()}),t._uU(22,"Clear"),t.qZA(),t.TgZ(23,"button",20),t.NdJ("click",function(){return Ae.onLogin()}),t._uU(24,"Login"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(6),t.Q6J("ngClass",t.VKq(7,e1,Ae.screenSize===Ae.screenSizeEnum.XS)),t.xp6(2),t.Q6J("ngClass",t.WLB(9,t1,Ae.screenSize===Ae.screenSizeEnum.XS,Ae.screenSize!==Ae.screenSizeEnum.XS)),t.xp6(7),t.Q6J("type",Ae.flgShow?"text":"password")("ngModel",Ae.password),t.xp6(2),t.Oqu(Ae.flgShow?"visibility_off":"visibility"),t.xp6(1),t.Q6J("ngIf",!Ae.password),t.xp6(1),t.Q6J("ngIf",""!==Ae.loginErrorMessage))},directives:[b.xw,b.yH,b.Wh,N.a8,be.mk,Cn.oO,N.dk,N.n5,N.dn,Ge._Y,Ge.JL,Ge.F,vt.KE,rt.Nt,Ge.Fj,Ne.h,Ge.Q7,Ge.JJ,Ge.On,Mr.Hw,vt.R9,be.O5,ue.lW,vt.TO],styles:[".login-container[_ngcontent-%COMP%]{height:90vh}.login-container[_ngcontent-%COMP%] .mat-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:120%;cursor:pointer}"]}),X})();var ko=m(9442);let No=(()=>{class X{constructor(B,Ae){this.activatedRoute=B,this.router=Ae,this.error={errorCode:"",errorMessage:""},this.faTimes=x.NBC,this.unsubs=[new s.x,new s.x]}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.activatedRoute.paramMap.pipe((0,y.R)(this.unsubs[0])).subscribe(B=>{this.error=window.history.state})}goToHelp(){this.router.navigate(["/help"])}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(I.gz),t.Y36(I.F0))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-error"]],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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"mat-card",1),t.TgZ(2,"mat-card-header",2),t.TgZ(3,"mat-card-title",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span",5),t._uU(6),t.qZA(),t.qZA(),t.qZA(),t.TgZ(7,"mat-card-content",6),t.TgZ(8,"div",7),t._uU(9),t.qZA(),t.TgZ(10,"span",8),t.TgZ(11,"button",9),t.NdJ("click",function(){return Ae.goToHelp()}),t._uU(12,"Go To Help"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(4),t.Q6J("icon",Ae.faTimes),t.xp6(2),t.hij("Error ",Ae.error.errorCode,""),t.xp6(3),t.Oqu(Ae.error.errorMessage))},directives:[b.xw,b.yH,b.Wh,N.a8,N.dk,N.n5,U.BN,N.dn,ue.lW],encapsulation:2}),X})();var Pa=m(1643),uc=m(9828),bo=m(8104),n1=m(6534),d0=m(9843);function Yr(X,He){1&X&&t._UZ(0,"span",16)}function fc(X,He){1&X&&t._UZ(0,"span",17)}function u0(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"form",18,4),t.TgZ(2,"div",19),t._UZ(3,"fa-icon",2),t.TgZ(4,"span"),t._uU(5,"Please ensure that "),t.TgZ(6,"strong"),t._uU(7,"experimental-offers"),t.qZA(),t._uU(8," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),t.TgZ(9,"strong"),t.TgZ(10,"a",20),t._uU(11,"here"),t.qZA(),t.qZA(),t._uU(12," to learn more about Core Lightning offers."),t.qZA(),t.qZA(),t.TgZ(13,"h4",21),t._uU(14,"Description"),t.qZA(),t.TgZ(15,"span"),t._uU(16,"Offers is a draft specification (also referred as BOLT12) for Lightning nodes and wallets, with experimental support in Core Lightning."),t.qZA(),t.TgZ(17,"h4",21),t._uU(18,"Links"),t.qZA(),t.TgZ(19,"span"),t.TgZ(20,"a",22),t._uU(21,"Core lightning Bolt12"),t.qZA(),t.qZA(),t._UZ(22,"mat-divider",23),t.TgZ(23,"div",24),t._UZ(24,"fa-icon",2),t.TgZ(25,"span"),t._uU(26,"Do not get an Offer tattoo until spec is fully ratified!"),t.qZA(),t.qZA(),t.TgZ(27,"mat-slide-toggle",25),t.NdJ("ngModelChange",function(mt){return t.CHM(B),t.oxw(2).enableOffers=mt})("change",function(){return t.CHM(B),t.oxw(2).onUpdateFeature()}),t._uU(28),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(2);t.xp6(3),t.Q6J("icon",B.faInfoCircle),t.xp6(19),t.Q6J("inset",!0),t.xp6(2),t.Q6J("icon",B.faExclamationTriangle),t.xp6(3),t.Q6J("ngModel",B.enableOffers),t.xp6(1),t.hij("Enable Offers ",B.enableOffers?"(You can find Offers under Lightning -> Transactions -> Offers)":"","")}}function r1(X,He){if(1&X&&(t.TgZ(0,"mat-option",43),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&X){const B=He.$implicit;t.Q6J("value",B),t.xp6(1),t.hij(" ",t.lcZ(2,2,B.id)," ")}}function sl(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&X){const B=t.oxw(3);t.xp6(1),t.hij("",B.selPolicyType.placeholder," is required.")}}function ol(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&X){const B=t.oxw(3);t.xp6(1),t.AsE("",B.selPolicyType.placeholder," must be greater than or equal to ",B.selPolicyType.min,".")}}function a1(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&X){const B=t.oxw(3);t.xp6(1),t.AsE("",B.selPolicyType.placeholder," must be less than or equal to ",B.selPolicyType.max,".")}}function qa(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Lease base fee is required."),t.qZA())}function aa(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Lease base basis is required."),t.qZA())}function f0(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Max channel routing base fee is required."),t.qZA())}function sa(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Max channel routing fee rate is required."),t.qZA())}function Ro(X,He){if(1&X&&(t.TgZ(0,"h4",44),t._uU(1),t.qZA()),2&X){const B=t.oxw(3);t.xp6(1),t.Oqu(B.updateMsg.error&&""!==B.updateMsg.error?"Error: "+B.updateMsg.error||0:B.updateMsg||"Successfully Updated the Funding Policy!")}}function lo(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"form",18,4),t.TgZ(2,"div",26),t._UZ(3,"fa-icon",2),t.TgZ(4,"span"),t._uU(5,"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."),t.qZA(),t.qZA(),t.TgZ(6,"div",27),t.TgZ(7,"mat-form-field",28),t.TgZ(8,"mat-select",29),t.NdJ("ngModelChange",function(mt){return t.CHM(B),t.oxw(2).selPolicyType=mt})("selectionChange",function(){return t.CHM(B),t.oxw(2).policyMod=null}),t.YNc(9,r1,3,4,"mat-option",30),t.qZA(),t.qZA(),t.TgZ(10,"mat-form-field",31),t.TgZ(11,"input",32,33),t.NdJ("ngModelChange",function(mt){return t.CHM(B),t.oxw(2).policyMod=mt}),t.qZA(),t.TgZ(13,"mat-hint"),t._uU(14),t.qZA(),t.YNc(15,sl,2,1,"mat-error",34),t.YNc(16,ol,2,2,"mat-error",34),t.YNc(17,a1,2,2,"mat-error",34),t.qZA(),t.qZA(),t.TgZ(18,"div",27),t.TgZ(19,"mat-form-field",31),t.TgZ(20,"input",35),t.NdJ("ngModelChange",function(mt){return t.CHM(B),t.oxw(2).leaseFeeBaseSat=mt}),t.qZA(),t.YNc(21,qa,2,0,"mat-error",34),t.qZA(),t.TgZ(22,"mat-form-field",31),t.TgZ(23,"input",36),t.NdJ("ngModelChange",function(mt){return t.CHM(B),t.oxw(2).leaseFeeBasis=mt}),t.qZA(),t.YNc(24,aa,2,0,"mat-error",34),t.qZA(),t.qZA(),t.TgZ(25,"div",27),t.TgZ(26,"mat-form-field",31),t.TgZ(27,"input",37),t.NdJ("ngModelChange",function(mt){return t.CHM(B),t.oxw(2).channelFeeMaxBaseSat=mt}),t.qZA(),t.YNc(28,f0,2,0,"mat-error",34),t.qZA(),t.TgZ(29,"mat-form-field",31),t.TgZ(30,"input",38),t.NdJ("ngModelChange",function(mt){return t.CHM(B),t.oxw(2).channelFeeMaxProportional=mt}),t.qZA(),t.YNc(31,sa,2,0,"mat-error",34),t.qZA(),t.qZA(),t.YNc(32,Ro,2,1,"h4",39),t.TgZ(33,"div",40),t.TgZ(34,"button",41),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onResetPolicy()}),t._uU(35,"Reset"),t.qZA(),t.TgZ(36,"button",42),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onUpdateFundingPolicy()}),t._uU(37,"Update"),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(2);t.xp6(3),t.Q6J("icon",B.faExclamationTriangle),t.xp6(5),t.Q6J("ngModel",B.selPolicyType),t.xp6(1),t.Q6J("ngForOf",B.policyTypes),t.xp6(2),t.Q6J("ngModel",B.policyMod)("placeholder",B.selPolicyType.placeholder)("step","fixed"===B.selPolicyType.id?1e3:10)("min",B.selPolicyType.min)("max",B.selPolicyType.max),t.xp6(3),t.lnq("",B.selPolicyType.placeholder," should be between ",B.selPolicyType.min," and ",B.selPolicyType.max,""),t.xp6(1),t.Q6J("ngIf",!B.policyMod),t.xp6(1),t.Q6J("ngIf",B.policyModB.selPolicyType.max),t.xp6(3),t.Q6J("ngModel",B.leaseFeeBaseSat),t.xp6(1),t.Q6J("ngIf",!B.leaseFeeBaseSat),t.xp6(2),t.Q6J("ngModel",B.leaseFeeBasis),t.xp6(1),t.Q6J("ngIf",!B.leaseFeeBasis),t.xp6(3),t.Q6J("ngModel",B.channelFeeMaxBaseSat),t.xp6(1),t.Q6J("ngIf",!B.channelFeeMaxBaseSat),t.xp6(2),t.Q6J("ngModel",B.channelFeeMaxProportional),t.xp6(1),t.Q6J("ngIf",!B.channelFeeMaxProportional),t.xp6(1),t.Q6J("ngIf",B.flgUpdateCalled)}}function uh(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-expansion-panel",9),t.NdJ("opened",function(){const fi=t.CHM(B).index;return t.oxw().onPanelExpanded(fi)}),t.TgZ(1,"mat-expansion-panel-header"),t.TgZ(2,"mat-panel-title",10),t.TgZ(3,"h4",11),t._uU(4),t.qZA(),t.TgZ(5,"h4",11),t.YNc(6,Yr,1,0,"span",12),t.YNc(7,fc,1,0,"span",13),t._uU(8),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"div",14),t.YNc(10,u0,29,5,"form",15),t.YNc(11,lo,38,23,"form",15),t.qZA(),t.qZA()}if(2&X){const B=He.$implicit,Ae=He.index;t.Q6J("expanded",!1),t.xp6(4),t.Oqu(B.name),t.xp6(2),t.Q6J("ngIf",B.enabled),t.xp6(1),t.Q6J("ngIf",!B.enabled),t.xp6(1),t.hij(" ",B.enabled?"Enabled":"Disabled"," "),t.xp6(2),t.Q6J("ngIf",0===Ae),t.xp6(1),t.Q6J("ngIf",1===Ae)}}const xs=I.Bz.forRoot([{path:"",pathMatch:"full",redirectTo:"login"},{path:"lnd",loadChildren:()=>Promise.all([m.e(893),m.e(636)]).then(m.bind(m,1636)).then(X=>X.LNDModule),canActivate:[Pa.a1]},{path:"cln",loadChildren:()=>Promise.all([m.e(893),m.e(564)]).then(m.bind(m,9564)).then(X=>X.CLNModule),canActivate:[Pa.a1]},{path:"ecl",loadChildren:()=>Promise.all([m.e(893),m.e(924)]).then(m.bind(m,7924)).then(X=>X.ECLModule),canActivate:[Pa.a1]},{path:"settings",component:Le,canActivate:[Pa.a1],children:[{path:"",pathMatch:"full",redirectTo:"app"},{path:"app",component:$,canActivate:[Pa.a1]},{path:"auth",component:Rt,canActivate:[Pa.a1]},{path:"bconfig",component:_t,canActivate:[Pa.a1]}]},{path:"config",component:Je,canActivate:[Pa.a1],children:[{path:"",pathMatch:"full",redirectTo:"layout"},{path:"layout",component:Lr,canActivate:[Pa.a1]},{path:"services",component:Gn,canActivate:[Pa.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",component:xr,canActivate:[Pa.a1]},{path:"boltz",component:Ir,canActivate:[Pa.a1]}]},{path:"experimental",component:(()=>{class X{constructor(B,Ae,mt){this.logger=B,this.store=Ae,this.dataService=mt,this.faInfoCircle=x.sqG,this.faExclamationTriangle=x.eHv,this.faCode=x.dT$,this.features=[{name:"Offers",enabled:!1},{name:"Channel Funding Policy",enabled:!1}],this.enableOffers=!1,this.fundingPolicy=null,this.policyTypes=K.gB,this.selPolicyType=K.gB[0],this.flgUpdateCalled=!1,this.updateMsg="",this.unSubs=[new s.x,new s.x,new s.x,new s.x,new s.x]}ngOnInit(){this.dataService.listConfigs().pipe((0,y.R)(this.unSubs[0])).subscribe({next:B=>{this.logger.info("Received List Configs: "+JSON.stringify(B)),this.features[1].enabled=!!B["experimental-dual-fund"]},error:B=>{this.logger.error("List Configs Error: "+JSON.stringify(B)),this.features[1].enabled=!1}}),this.store.select(r.dT).pipe((0,y.R)(this.unSubs[1])).subscribe(B=>{this.selNode=B,this.enableOffers=this.selNode.settings.enableOffers,this.features[0].enabled=this.enableOffers,this.logger.info(this.selNode)}),this.store.select(uc.Rn).pipe((0,y.R)(this.unSubs[2])).subscribe(B=>{this.policyTypes[2].max=B.balance.totalBalance||1e3})}onPanelExpanded(B){1===B&&!this.fundingPolicy&&this.dataService.getOrUpdateFunderPolicy().pipe((0,y.R)(this.unSubs[3])).subscribe(Ae=>{this.logger.info("Received Funder Update Policy: "+JSON.stringify(Ae)),this.fundingPolicy=Ae,this.fundingPolicy.policy&&(this.selPolicyType=K.gB.find(mt=>mt.id===this.fundingPolicy.policy)),this.policyMod=this.fundingPolicy.policy_mod||0===this.fundingPolicy.policy_mod?this.fundingPolicy.policy_mod:null,this.leaseFeeBaseSat=this.fundingPolicy.lease_fee_base_msat?this.fundingPolicy.lease_fee_base_msat/1e3:0===this.fundingPolicy.lease_fee_base_msat?0:null,this.leaseFeeBasis=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,we.jS)({payload:{uiMessage:K.m6.UPDATE_SETTING,service:K.JX.OFFERS,settings:{enableOffers:this.enableOffers}}})),this.store.dispatch((0,ui.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}})),this.store.dispatch((0,Lt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}})),this.store.dispatch((0,gt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}}))}onUpdateFundingPolicy(){this.flgUpdateCalled=!1,this.updateMsg="",this.dataService.getOrUpdateFunderPolicy(this.selPolicyType.id,this.policyMod,this.leaseFeeBaseSat,this.leaseFeeBasis,1e3*this.channelFeeMaxBaseSat,this.channelFeeMaxProportional/1e3).pipe((0,y.R)(this.unSubs[4])).subscribe({next:B=>{this.logger.info(B),this.fundingPolicy=B,this.onResetPolicy(),this.updateMsg="Compact Lease: "+B.compact_lease},error:B=>{this.logger.error(B),this.updateMsg=JSON.stringify(B.error.error.message)}})}onResetPolicy(){this.flgUpdateCalled=!1,this.updateMsg="",this.selPolicyType=this.fundingPolicy.policy?K.gB.find(B=>B.id===this.fundingPolicy.policy):K.gB[0],this.policyMod=this.fundingPolicy.policy_mod||0===this.fundingPolicy.policy_mod?this.fundingPolicy.policy_mod:null,this.leaseFeeBaseSat=this.fundingPolicy.lease_fee_base_msat?this.fundingPolicy.lease_fee_base_msat/1e3:0===this.fundingPolicy.lease_fee_base_msat?0:null,this.leaseFeeBasis=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(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Y.mQ),t.Y36(M.yh),t.Y36(bo.D))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-experimental-settings"]],decls:13,vars:3,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",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"],["form","ngForm"],["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,"expanded","opened"],["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,"ngModel","ngModelChange","change"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn"],["fxLayout","column","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch"],["fxFlex","49","fxLayoutAlign","start end"],["autofocus","","tabindex","1","placeholder","Policy","name","policy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","49"],["matInput","","type","number","tabindex","2","required","","name","plcMod",3,"ngModel","placeholder","step","min","max","ngModelChange"],["plcMod","ngModel"],[4,"ngIf"],["matInput","","placeholder","Lease Base Fee (Sats)","type","number","step","100","min","0","tabindex","3","required","","name","leaseFeeBaseSat",3,"ngModel","ngModelChange"],["matInput","","placeholder","Lease Base Basis (bps)","type","number","step","1","min","0","tabindex","4","required","","name","leaseFeeBasis",3,"ngModel","ngModelChange"],["matInput","","placeholder","Max Channel Routing Base Fee (Sats)","type","number","step","100","min","0","tabindex","5","required","","name","channelFeeMaxBaseSat",3,"ngModel","ngModelChange"],["matInput","","placeholder","Max Channel Routing Fee Rate (ppm)","type","number","step","1000","min","0","tabindex","6","required","","name","channelFeeMaxProportional",3,"ngModel","ngModelChange"],["fxLayoutAlign","start","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",1,"font-bold-500","mt-2"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span"),t._uU(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."),t.qZA(),t.qZA(),t.TgZ(5,"form",3,4),t.TgZ(7,"div",5),t._UZ(8,"fa-icon",6),t.TgZ(9,"span",7),t._uU(10,"Features"),t.qZA(),t.qZA(),t.TgZ(11,"mat-accordion"),t.YNc(12,uh,12,7,"mat-expansion-panel",8),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(2),t.Q6J("icon",Ae.faInfoCircle),t.xp6(6),t.Q6J("icon",Ae.faCode),t.xp6(4),t.Q6J("ngForOf",Ae.features))},directives:[b.xw,b.yH,ae.$V,U.BN,Ge._Y,Ge.JL,Ge.F,b.Wh,Rn.pp,be.sg,Rn.ib,Rn.yz,Rn.yK,be.O5,Be.d,Yi.Rr,Ne.h,Ge.JJ,Ge.On,vt.KE,Fe.gD,rt.Nt,Ge.wV,Ge.qQ,Ge.Fd,Ge.Fj,n1.q,d0.F,Ge.Q7,vt.bx,ue.lW,Oe.ey,vt.TO],pipes:[be.rS],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})(),canActivate:[Pa.a1]},{path:"lnconfig",component:Kt,canActivate:[Pa.a1]}]},{path:"services",component:Ga,canActivate:[Pa.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",pathMatch:"full",redirectTo:"loop/loopout"},{path:"loop/:selTab",component:Yt},{path:"boltz",pathMatch:"full",redirectTo:"boltz/swapout"},{path:"boltz/:selTab",component:an}]},{path:"help",component:ks},{path:"login",component:Po},{path:"error",component:No},{path:"**",component:ko.w}]);var s1=m(8750),Il=m(8878),js=m(4594),Pl=m(2181);function p0(X,He){if(1&X&&(t.TgZ(0,"p",2),t._UZ(1,"fa-icon",3),t.TgZ(2,"span"),t._uU(3),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Q6J("icon",B.faCode),t.xp6(2),t.hij("API Version: ",null==B.information?null:B.information.api_version,"")}}function m0(X,He){if(1&X&&(t.TgZ(0,"a",11),t._UZ(1,"fa-icon",3),t.TgZ(2,"span",12),t._uU(3,"Settings"),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Q6J("icon",B.faUserCog)}}function o1(X,He){if(1&X&&(t.TgZ(0,"a",13),t._UZ(1,"fa-icon",3),t.TgZ(2,"span",14),t._uU(3,"Help"),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Q6J("icon",B.faLifeRing)}}function fh(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"a",15),t.NdJ("click",function(){return t.CHM(B),t.oxw().onClick()}),t._UZ(1,"fa-icon",3),t.TgZ(2,"span"),t._uU(3,"Logout"),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.xp6(1),t.Q6J("icon",B.faEject)}}let g0=(()=>{class X{constructor(B,Ae,mt,fi,In){this.logger=B,this.sessionService=Ae,this.store=mt,this.rtlEffects=fi,this.actions=In,this.faUserCog=x.gNZ,this.faCodeBranch=x.mh3,this.faCode=x.dT$,this.faCog=x.b7W,this.faLifeRing=x.uli,this.faEject=x.KOR,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.showLogout=!1,this.unSubs=[new s.x,new s.x,new s.x,new s.x],this.version=Wi.q4}ngOnInit(){this.store.select(r.R4).pipe((0,y.R)(this.unSubs[0])).subscribe(B=>{if(this.information=B,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("object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const Ae=this.information.chains[0];this.informationChain.chain=Ae.chain,this.informationChain.network=Ae.network}}else this.informationChain.chain="",this.informationChain.network="";this.logger.info(B)}),this.sessionService.watchSession().pipe((0,y.R)(this.unSubs[1])).subscribe(B=>{this.showLogout=!!B.token,this.flgLoading=!!B.token}),this.actions.pipe((0,y.R)(this.unSubs[2]),(0,de.h)(B=>B.type===K.pg.LOGOUT)).subscribe(()=>{this.showLogout=!1})}onClick(){this.store.dispatch((0,we.c1)({payload:{data:{type:K.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,y.R)(this.unSubs[3])).subscribe(B=>{B&&(this.showLogout=!1,this.store.dispatch((0,we.kS)()))})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Y.mQ),t.Y36(ke.m),t.Y36(M.yh),t.Y36(nt.V),t.Y36(l.eX))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-top-menu"]],decls:14,vars:8,consts:[[1,"top-menu",3,"overlapTrigger"],["topMenu","matMenu"],["mat-menu-item",""],[1,"fa-icon-small","mr-1",3,"icon"],["mat-menu-item","",4,"ngIf"],["mat-menu-item","","routerLink","/settings",4,"ngIf"],["mat-menu-item","","routerLink","/help",4,"ngIf"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",1,"top-toolbar-icon",3,"matMenuTriggerFor"],["src","assets/images/RTL-Horse-BY.svg","alt","RTL Logo"],[1,"logo-icon"],["mat-menu-item","","routerLink","/settings"],["routerLink","/settings"],["mat-menu-item","","routerLink","/help"],["routerLink","/help"],["mat-menu-item","",3,"click"]],template:function(B,Ae){if(1&B&&(t.TgZ(0,"mat-menu",0,1),t.TgZ(2,"p",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span"),t._uU(5),t.qZA(),t.qZA(),t.YNc(6,p0,4,2,"p",4),t.YNc(7,m0,4,1,"a",5),t.YNc(8,o1,4,1,"a",6),t.YNc(9,fh,4,1,"a",7),t.qZA(),t.TgZ(10,"button",8),t._UZ(11,"img",9),t.TgZ(12,"mat-icon",10),t._uU(13,"arrow_drop_down"),t.qZA(),t.qZA()),2&B){const mt=t.MAs(1);t.Q6J("overlapTrigger",!1),t.xp6(3),t.Q6J("icon",Ae.faCodeBranch),t.xp6(2),t.hij("Version: ",Ae.version,""),t.xp6(1),t.Q6J("ngIf",null==Ae.information?null:Ae.information.api_version),t.xp6(1),t.Q6J("ngIf",Ae.showLogout),t.xp6(1),t.Q6J("ngIf",Ae.showLogout),t.xp6(1),t.Q6J("ngIf",Ae.showLogout),t.xp6(1),t.Q6J("matMenuTriggerFor",mt)}},directives:[Pl.VK,Pl.OP,U.BN,be.O5,ue.lW,Pl.p6,Mr.Hw,I.yS,I.rH],styles:[".mat-menu-content,.mat-menu-content p.mat-menu-item{cursor:default}.mat-menu-content p.mat-menu-item fa-icon,.mat-menu-content p.mat-menu-item span,.mat-menu-content p.mat-menu-item div{cursor:default}.mat-menu-content p.mat-menu-item:hover{cursor:default!important}.top-toolbar-icon .mat-button-wrapper img{width:3.2rem}.top-toolbar-icon .mat-button-wrapper .material-icons.mat-icon.logo-icon{font-size:2rem;text-align:start}\n"],encapsulation:2}),X})();var Ka=m(2638),kl=m(8258),as=m(149);const qs={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:x.HLz,link:"/lnd/home",userPersona:K.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:x.nNP,link:"/lnd/onchain",userPersona:K.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:x.BDt,link:"/lnd/connections",userPersona:K.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:x.FVb,link:"/lnd/connections",userPersona:K.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:x.Ssp,link:"/lnd/transactions",userPersona:K.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:x.SuH,link:"/lnd/routing",userPersona:K.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:x.koM,link:"/lnd/reports",userPersona:K.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:x.wn1,link:"/lnd/graph",userPersona:K.ol.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:x.hkK,link:"/lnd/messages",userPersona:K.ol.ALL},{id:37,parentId:3,name:"Backup",iconType:"FA",icon:x.q7m,link:"/lnd/channelbackup",userPersona:K.ol.ALL},{id:38,parentId:3,name:"Network",iconType:"FA",icon:x.o4t,link:"/lnd/network",userPersona:K.ol.OPERATOR},{id:39,parentId:3,name:"Node/Network",iconType:"FA",icon:x.xf3,link:"/lnd/network",userPersona:K.ol.MERCHANT}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:x.Krp,link:"/services/loop",userPersona:K.ol.ALL,children:[{id:41,parentId:4,name:"Loop",iconType:"FA",icon:x.vqe,link:"/services/loop",userPersona:K.ol.ALL},{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/services/boltz",userPersona:K.ol.ALL}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:x.CgH,link:"/config",userPersona:K.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:x.Psp,link:"/help",userPersona:K.ol.ALL}],CLNChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:x.HLz,link:"/cln/home",userPersona:K.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:x.nNP,link:"/cln/onchain",userPersona:K.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:x.BDt,link:"/cln/connections",userPersona:K.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:x.FVb,link:"/cln/connections",userPersona:K.ol.ALL},{id:32,parentId:3,name:"Liquidity Ads",iconType:"FA",icon:x.Acd,link:"/cln/liquidityads",userPersona:K.ol.ALL},{id:33,parentId:3,name:"Transactions",iconType:"FA",icon:x.Ssp,link:"/cln/transactions",userPersona:K.ol.ALL},{id:34,parentId:3,name:"Routing",iconType:"FA",icon:x.SuH,link:"/cln/routing",userPersona:K.ol.ALL},{id:35,parentId:3,name:"Reports",iconType:"FA",icon:x.koM,link:"/cln/reports",userPersona:K.ol.ALL},{id:36,parentId:3,name:"Graph Lookup",iconType:"FA",icon:x.wn1,link:"/cln/graph",userPersona:K.ol.ALL},{id:37,parentId:3,name:"Sign/Verify",iconType:"FA",icon:x.hkK,link:"/cln/messages",userPersona:K.ol.ALL},{id:38,parentId:3,name:"Fee Rates",iconType:"FA",icon:x.USL,link:"/cln/rates",userPersona:K.ol.OPERATOR},{id:39,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:x.xf3,link:"/cln/rates",userPersona:K.ol.MERCHANT}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:x.CgH,link:"/config",userPersona:K.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:x.Psp,link:"/help",userPersona:K.ol.ALL}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:x.HLz,link:"/ecl/home",userPersona:K.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:x.nNP,link:"/ecl/onchain",userPersona:K.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:x.BDt,link:"/ecl/connections",userPersona:K.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:x.FVb,link:"/ecl/connections",userPersona:K.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:x.Ssp,link:"/ecl/transactions",userPersona:K.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:x.SuH,link:"/ecl/routing",userPersona:K.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:x.koM,link:"/ecl/reports",userPersona:K.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:x.wn1,link:"/ecl/graph",userPersona:K.ol.ALL}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:x.CgH,link:"/config",userPersona:K.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:x.Psp,link:"/help",userPersona:K.ol.ALL}]};var l1=m(7238);function pc(X,He){if(1&X&&(t.TgZ(0,"mat-option",11),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.Q6J("value",B.index),t.xp6(1),t.AsE(" ",B.lnNode," (",B.lnImplementation,") ")}}function mc(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-select",9),t.NdJ("selectionChange",function(mt){return t.CHM(B),t.oxw().onNodeSelectionChange(mt.value)}),t.YNc(1,pc,2,3,"mat-option",10),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("value",B.selConfigNodeIndex),t.xp6(1),t.Q6J("ngForOf",B.appConfig.nodes)}}function gc(X,He){if(1&X&&(t.TgZ(0,"span",21),t.GkF(1,22),t.qZA()),2&X){const B=t.oxw().$implicit;t.oxw(2);const Ae=t.MAs(11);t.xp6(1),t.Q6J("ngTemplateOutlet","boltzIconBlock"===B.icon?Ae:null)}}function c1(X,He){if(1&X&&t._UZ(0,"fa-icon",23),2&X){const B=t.oxw().$implicit;t.Q6J("icon",B.icon)}}function Rl(X,He){if(1&X&&(t.TgZ(0,"mat-icon",24),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B.icon)}}function Fo(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-tree-node",15),t.TgZ(1,"div",16),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw(2).onChildNavClicked(fi)}),t.TgZ(2,"div",17),t.YNc(3,gc,2,1,"span",18),t.YNc(4,c1,1,1,"fa-icon",19),t.YNc(5,Rl,2,1,"mat-icon",20),t.TgZ(6,"span"),t._uU(7),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=He.$implicit;t.s9C("routerLink",B.link),t.xp6(3),t.Q6J("ngIf","SVG"===B.iconType),t.xp6(1),t.Q6J("ngIf","FA"===B.iconType),t.xp6(1),t.Q6J("ngIf",!B.iconType),t.xp6(2),t.Oqu(B.name)}}function co(X,He){if(1&X&&(t.TgZ(0,"span",33),t.GkF(1,22),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Q6J("ngTemplateOutlet",B.icon)}}function za(X,He){if(1&X&&t._UZ(0,"fa-icon",23),2&X){const B=t.oxw().$implicit;t.Q6J("icon",B.icon)}}function Cs(X,He){if(1&X&&(t.TgZ(0,"mat-icon",24),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B.icon)}}function Ns(X,He){if(1&X&&(t.TgZ(0,"mat-nested-tree-node",25),t.TgZ(1,"div",26),t.TgZ(2,"div",27),t.YNc(3,co,2,1,"span",28),t.YNc(4,za,1,1,"fa-icon",19),t.YNc(5,Cs,2,1,"mat-icon",20),t.TgZ(6,"span"),t._uU(7),t.qZA(),t.qZA(),t.TgZ(8,"button",29),t.TgZ(9,"mat-icon",30),t._uU(10),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"div",31),t.GkF(12,32),t.qZA(),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw(2);t.xp6(3),t.Q6J("ngIf","SVG"===B.iconType),t.xp6(1),t.Q6J("ngIf","FA"===B.iconType),t.xp6(1),t.Q6J("ngIf",!B.iconType),t.xp6(2),t.Oqu(B.name),t.xp6(1),t.uIk("aria-label","toggle "+B.name),t.xp6(2),t.Oqu(Ae.treeControlNested.isExpanded(B)?"arrow_drop_up":"arrow_drop_down"),t.xp6(1),t.ekj("tree-children-invisible",!Ae.treeControlNested.isExpanded(B))}}function _c(X,He){if(1&X&&(t.TgZ(0,"mat-tree",5,12),t.YNc(2,Fo,8,5,"mat-tree-node",13),t.YNc(3,Ns,13,8,"mat-nested-tree-node",14),t.qZA()),2&X){const B=t.oxw();t.Q6J("dataSource",B.navMenus)("treeControl",B.treeControlNested),t.xp6(3),t.Q6J("matTreeNodeDefWhen",B.hasChild)}}function h1(X,He){if(1&X&&(t.TgZ(0,"span",21),t.GkF(1,22),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Q6J("ngTemplateOutlet",B.icon)}}function vc(X,He){if(1&X&&t._UZ(0,"fa-icon",36),2&X){const B=t.oxw().$implicit;t.s9C("matTooltip",B.name),t.Q6J("icon",B.icon)}}function Fl(X,He){if(1&X&&(t.TgZ(0,"mat-icon",37),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.s9C("matTooltip",B.name),t.xp6(1),t.Oqu(B.icon)}}function yc(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-tree-node",16),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw().onShowData(fi)}),t.YNc(1,h1,2,1,"span",18),t.YNc(2,vc,1,2,"fa-icon",34),t.YNc(3,Fl,2,2,"mat-icon",35),t.TgZ(4,"span"),t._uU(5),t.qZA(),t.qZA()}if(2&X){const B=He.$implicit;t.xp6(1),t.Q6J("ngIf","SVG"===B.iconType),t.xp6(1),t.Q6J("ngIf","FA"===B.iconType),t.xp6(1),t.Q6J("ngIf",!B.iconType),t.xp6(2),t.Oqu(B.name)}}function ta(X,He){if(1&X&&(t.TgZ(0,"span",33),t.GkF(1,22),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Q6J("ngTemplateOutlet",B.icon)}}function ll(X,He){if(1&X&&t._UZ(0,"fa-icon",36),2&X){const B=t.oxw().$implicit;t.s9C("matTooltip",B.name),t.Q6J("icon",B.icon)}}function v0(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-tree-node",16),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw(2).onClick(fi)}),t.YNc(1,ta,2,1,"span",28),t.YNc(2,ll,1,2,"fa-icon",34),t.TgZ(3,"span"),t._uU(4),t.qZA(),t.qZA()}if(2&X){const B=He.$implicit;t.xp6(1),t.Q6J("ngIf","SVG"===B.iconType),t.xp6(1),t.Q6J("ngIf","FA"===B.iconType),t.xp6(2),t.Oqu(B.name)}}function ka(X,He){if(1&X&&(t.TgZ(0,"mat-tree",5),t.YNc(1,v0,5,3,"mat-tree-node",6),t.qZA()),2&X){const B=t.oxw();t.Q6J("dataSource",B.navMenusLogout)("treeControl",B.treeControlLogout)}}function bc(X,He){1&X&&(t.O4$(),t.TgZ(0,"svg",38),t.TgZ(1,"g",39),t.TgZ(2,"g",40),t._UZ(3,"circle",41),t._UZ(4,"path",42),t._UZ(5,"path",43),t.qZA(),t.qZA(),t.qZA())}let cl=(()=>{class X{constructor(B,Ae,mt,fi,In,tr){this.logger=B,this.commonService=Ae,this.sessionService=mt,this.store=fi,this.actions=In,this.rtlEffects=tr,this.ChildNavClicked=new t.vpe,this.faEject=x.KOR,this.faEye=x.Mdf,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.logoutNode=[{id:200,parentId:0,name:"Logout",iconType:"FA",icon:x.KOR}],this.showDataNodes=[{id:1e3,parentId:0,name:"Public Key",iconType:"FA",icon:x.Mdf}],this.showLogout=!1,this.numPendingChannels=0,this.smallScreen=!1,this.childRootRoute="",this.userPersonaEnum=K.ol,this.unSubs=[new s.x,new s.x,new s.x,new s.x,new s.x,new s.x],this.treeControlNested=new kl.VY(Fn=>Fn.children),this.treeControlLogout=new kl.VY(Fn=>Fn.children),this.treeControlShowData=new kl.VY(Fn=>Fn.children),this.navMenus=new as.WX,this.navMenusLogout=new as.WX,this.navMenusShowData=new as.WX,this.hasChild=(Fn,Br)=>!!Br.children&&Br.children.length>0,this.version=Wi.q4,200===qs.LNDChildren[qs.LNDChildren.length-1].id&&qs.LNDChildren.pop(),this.navMenus.data=qs.LNDChildren,this.navMenusLogout.data=this.logoutNode,this.navMenusShowData.data=this.showDataNodes}ngOnInit(){const B=this.sessionService.getItem("token");this.showLogout=!!B,this.flgLoading=!!B,this.store.select(r.Yj).pipe((0,y.R)(this.unSubs[0])).subscribe(Ae=>{this.appConfig=Ae}),this.store.select(r.gW).pipe((0,y.R)(this.unSubs[1])).subscribe(Ae=>{if(this.information=Ae.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("object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const mt=this.information.chains[0];this.informationChain.chain=mt.chain,this.informationChain.network=mt.network}}else this.informationChain.chain="",this.informationChain.network="";this.flgLoading=!this.information.identity_pubkey,window.innerWidth<=414&&(this.smallScreen=!0),this.selNode=Ae.selNode,this.settings=this.selNode.settings,this.selConfigNodeIndex=+Ae.selNode.index,this.selNode&&this.selNode.lnImplementation&&this.filterSideMenuNodes(),this.logger.info(Ae)}),this.sessionService.watchSession().pipe((0,y.R)(this.unSubs[2])).subscribe(Ae=>{this.showLogout=!!Ae.token,this.flgLoading=!!Ae.token}),this.actions.pipe((0,y.R)(this.unSubs[3]),(0,de.h)(Ae=>Ae.type===K.pg.LOGOUT)).subscribe(Ae=>{this.showLogout=!1})}onClick(B){"Logout"===B.name&&(this.store.dispatch((0,we.c1)({payload:{data:{type:K.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,y.R)(this.unSubs[4])).subscribe(Ae=>{Ae&&(this.showLogout=!1,this.store.dispatch((0,we.kS)()))})),this.ChildNavClicked.emit(B)}onChildNavClicked(B){this.ChildNavClicked.emit(B)}filterSideMenuNodes(){switch(this.selNode.lnImplementation.toUpperCase()){case"CLN":this.loadCLNMenu();break;case"ECL":this.loadECLMenu();break;default:this.loadLNDMenu()}}loadLNDMenu(){let B=[];B=JSON.parse(JSON.stringify(qs.LNDChildren)),this.navMenus.data=B.filter(Ae=>Ae.children&&Ae.children.length?(Ae.children=Ae.children.filter(mt=>(mt.userPersona===K.ol.ALL||mt.userPersona===this.settings.userPersona)&&"/services/loop"!==mt.link&&"/services/boltz"!==mt.link||"/services/loop"===mt.link&&this.settings.swapServerUrl&&""!==this.settings.swapServerUrl.trim()||"/services/boltz"===mt.link&&this.settings.boltzServerUrl&&""!==this.settings.boltzServerUrl.trim()),Ae.children.length>0):Ae.userPersona===K.ol.ALL||Ae.userPersona===this.settings.userPersona)}loadCLNMenu(){let B=[];B=JSON.parse(JSON.stringify(qs.CLNChildren)),this.navMenus.data=B.filter(Ae=>(Ae.children&&Ae.children.length&&(Ae.children=Ae.children.filter(mt=>(mt.userPersona===K.ol.ALL||mt.userPersona===this.settings.userPersona)&&"/cln/messages"!==mt.link||"/cln/messages"===mt.link&&this.information.api_version&&this.commonService.isVersionCompatible(this.information.api_version,"0.2.2"))),Ae.userPersona===K.ol.ALL||Ae.userPersona===this.settings.userPersona))}loadECLMenu(){this.navMenus.data=JSON.parse(JSON.stringify(qs.ECLChildren))}onShowData(B){this.store.dispatch((0,we.tj)()),this.ChildNavClicked.emit("showData")}onNodeSelectionChange(B){const Ae=this.selConfigNodeIndex;this.selConfigNodeIndex=B;const mt=this.appConfig.nodes.find(fi=>+fi.index===B);this.store.dispatch((0,we.fk)({payload:{uiMessage:K.m6.UPDATE_SELECTED_NODE,prevLnNodeIndex:+Ae,currentLnNode:mt,isInitialSetup:!1}})),this.ChildNavClicked.emit("selectNode")}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Y.mQ),t.Y36(Ci.v),t.Y36(ke.m),t.Y36(M.yh),t.Y36(l.eX),t.Y36(nt.V))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-side-navigation"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(as.gi,5),2&B){let mt;t.iGM(mt=t.CRH())&&(Ae.tree=mt.first)}},outputs:{ChildNavClicked:"ChildNavClicked"},decls:12,vars:5,consts:[["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"],["boltzIconBlock",""],[1,"m-2","multi-node-select",3,"value","selectionChange"],["tabindex","1",3,"value",4,"ngFor","ngForOf"],["tabindex","1",3,"value"],["tree",""],["matTreeNodeToggle","","routerLinkActive","active-link",3,"routerLink",4,"matTreeNodeDef"],["fxLayout","column","matTreeNodeToggle","",4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle","","routerLinkActive","active-link",3,"routerLink"],[3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["class","fa-icon-small mr-2",4,"ngIf"],["class","fa-icon-small mr-2",3,"icon",4,"ngIf"],["class","mat-icon-36",4,"ngIf"],[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","89","fxLayoutAlign","start center"],["class","mr-2",4,"ngIf"],["fxFlex","11","mat-icon-button","","fxLayoutAlign","end center"],[1,"mat-icon-rtl-mirror"],[1,"mat-nested-tree-node-child"],["matTreeNodeOutlet",""],[1,"mr-2"],["class","fa-icon-small mr-2","matTooltipPosition","right",3,"icon","matTooltip",4,"ngIf"],["class","mat-icon-36","matTooltipPosition","right",3,"matTooltip",4,"ngIf"],["matTooltipPosition","right",1,"fa-icon-small","mr-2",3,"icon","matTooltip"],["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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,mc,2,2,"mat-select",2),t._UZ(3,"mat-divider",3),t.YNc(4,_c,4,3,"mat-tree",4),t._UZ(5,"mat-divider",3),t.TgZ(6,"mat-tree",5),t.YNc(7,yc,6,4,"mat-tree-node",6),t.qZA(),t.qZA(),t.TgZ(8,"div",7),t.YNc(9,ka,2,2,"mat-tree",4),t.qZA(),t.qZA(),t.YNc(10,bc,6,0,"ng-template",null,8,t.W1O)),2&B&&(t.xp6(2),t.Q6J("ngIf",Ae.appConfig.nodes.length>1),t.xp6(2),t.Q6J("ngIf",null==Ae.settings?null:Ae.settings.lnServerUrl),t.xp6(2),t.Q6J("dataSource",Ae.navMenusShowData)("treeControl",Ae.treeControlShowData),t.xp6(3),t.Q6J("ngIf",Ae.showLogout))},directives:[b.xw,b.yH,b.Wh,ae.$V,be.O5,Be.d,as.gi,as.fQ,Fe.gD,be.sg,Oe.ey,as.uo,as.eu,I.Od,I.rH,be.tP,U.BN,Mr.Hw,as.GZ,ue.lW,as.Ar,l1.gM],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]}),X})();var d1=m(773);const Bo=["sideNavigation"],u1=["sideNavContent"];function ph(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){return t.CHM(B),t.oxw().sideNavToggle()}),t.TgZ(1,"mat-icon"),t._uU(2,"menu"),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("matTooltip",B.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",B.smallScreen)}}function f1(X,He){1&X&&(t.O4$(),t._UZ(0,"path",18))}function Ho(X,He){1&X&&(t.O4$(),t._UZ(0,"path",19))}function zo(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(B);const mt=t.oxw();return mt.flgSidenavPinned=!mt.flgSidenavPinned}),t.O4$(),t.TgZ(1,"svg",15),t.YNc(2,f1,1,0,"path",16),t.YNc(3,Ho,1,0,"path",17),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("matTooltip",B.flgSidenavPinned?"Unpin Navigation Menu":"Pin Navigation Menu"),t.xp6(2),t.Q6J("ngIf",!B.flgSidenavPinned),t.xp6(1),t.Q6J("ngIf",B.flgSidenavPinned)}}function Bl(X,He){if(1&X&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Oqu(B.information.alias?"RTL - "+B.information.alias:"RTL")}}function Ks(X,He){if(1&X&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Oqu(B.information.alias?"Ride The Lightning - "+B.information.alias:"Ride The Lightning")}}function mh(X,He){1&X&&(t.TgZ(0,"div",20),t._UZ(1,"mat-spinner",21),t.TgZ(2,"h4"),t._uU(3,"Loading RTL..."),t.qZA(),t.qZA())}const ho=function(X,He){return[X,He]};let Uo=(()=>{class X{constructor(B,Ae,mt,fi,In,tr,Fn,Br,ya){this.logger=B,this.commonService=Ae,this.store=mt,this.actions=fi,this.userIdle=In,this.router=tr,this.sessionService=Fn,this.breakpointObserver=Br,this.renderer=ya,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 s.x,new s.x,new s.x,new s.x,new s.x,new s.x,new s.x,new s.x]}ngOnInit(){this.router.events.subscribe(B=>{B instanceof I.m2&&document.getElementsByTagName("mat-sidenav-content")[0].scrollTo(0,0)}),this.breakpointObserver.observe([o.u3.XSmall,o.u3.TabletPortrait,o.u3.Small,o.u3.Medium,o.u3.Large,o.u3.XLarge]).pipe((0,y.R)(this.unSubs[0])).subscribe(B=>{B.breakpoints[o.u3.XSmall]?(this.commonService.setScreenSize(K.cu.XS),this.smallScreen=!0):B.breakpoints[o.u3.TabletPortrait]?(this.commonService.setScreenSize(K.cu.SM),this.smallScreen=!0):B.breakpoints[o.u3.Small]||B.breakpoints[o.u3.Medium]?(this.commonService.setScreenSize(K.cu.MD),this.smallScreen=!1):B.breakpoints[o.u3.Large]?(this.commonService.setScreenSize(K.cu.LG),this.smallScreen=!1):(this.commonService.setScreenSize(K.cu.XL),this.smallScreen=!1)}),this.store.dispatch((0,we.ey)()),this.accessKey=this.readAccessKey(),this.store.select(r.dT).pipe((0,y.R)(this.unSubs[1])).subscribe(B=>{this.settings=B.settings,this.sessionService.getItem("token")?(this.flgLoggedIn=!0,this.userIdle.startWatching()):(this.flgLoggedIn=!1,this.flgLoading[0]=!1)}),this.store.select(r.Yj).pipe((0,y.R)(this.unSubs[2])).subscribe(B=>{this.appConfig=B}),this.store.select(r.R4).pipe((0,y.R)(this.unSubs[3])).subscribe(B=>{this.information=B,this.flgLoading[0]=!this.information.identity_pubkey,this.logger.info(this.information)}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1),this.actions.pipe((0,y.R)(this.unSubs[4]),(0,de.h)(B=>B.type===K.pg.SET_RTL_CONFIG||B.type===K.pg.LOGIN||B.type===K.pg.LOGOUT)).subscribe(B=>{B.type===K.pg.SET_RTL_CONFIG&&(this.sessionService.getItem("token")||(+B.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,we.x4)({payload:{password:ce(this.accessKey).toString(),defaultPassword:!1}})):this.router.navigate(["./login"]))),B.type===K.pg.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)),B.type===K.pg.LOGOUT&&(this.flgLoggedIn=!1,this.userIdle.stopWatching(),this.userIdle.stopTimer())}),this.userIdle.onTimerStart().pipe((0,y.R)(this.unSubs[5])).subscribe(B=>{this.logger.info("Counting Down: "+(11-B))}),this.userIdle.onTimeout().pipe((0,y.R)(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,we.ts)()),this.store.dispatch((0,we.qR)({payload:{data:{type:K.n_.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}}})),this.store.dispatch((0,we.kS)()))}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1)}readAccessKey(){const B=window.location.href;return B.includes("access-key=")?B.substring(B.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(B){this.smallScreen&&this.sideNavigation.close()}copiedText(B){this.flgCopied=!0,setTimeout(()=>{this.flgCopied=!1},5e3),this.logger.info("Copied Text: "+B)}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Y.mQ),t.Y36(Ci.v),t.Y36(M.yh),t.Y36(l.eX),t.Y36(_),t.Y36(I.F0),t.Y36(ke.m),t.Y36(o.Yg),t.Y36(t.Qsj))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-app"]],viewQuery:function(B,Ae){if(1&B&&(t.Gf(Bo,5),t.Gf(u1,5)),2&B){let mt;t.iGM(mt=t.CRH())&&(Ae.sideNavigation=mt.first),t.iGM(mt=t.CRH())&&(Ae.sideNavContent=mt.first)}},decls:23,vars:15,consts:[["fxLayout","column","id","rtl-container",1,"rtl-container","medium",3,"ngClass"],["fxLayout","row","fxLayoutAlign","space-between center",1,"padding-gap-x","bg-primary","rtl-top-toolbar"],["class","top-toolbar-icon mr-1","mat-icon-button","","matTooltipPosition","right",3,"matTooltip","matTooltipDisabled","click",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click",4,"ngIf"],[4,"ngIf"],[1,"sidenav","mat-elevation-z6",3,"perfectScrollbar","opened","mode"],["sideNavigation",""],["fxFlex","100",3,"ChildNavClicked"],[3,"perfectScrollbar"],["sideNavContent",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["outlet","outlet"],["class","rtl-spinner",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",1,"top-toolbar-icon","mr-1",3,"matTooltip","matTooltipDisabled","click"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click"],["viewBox","0 0 32 32",1,"top-toolbar-icon","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,"rtl-spinner"],["color","accent"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t.ALo(1,"lowercase"),t.ALo(2,"lowercase"),t.TgZ(3,"mat-toolbar",1),t.TgZ(4,"div"),t.YNc(5,ph,3,2,"button",2),t.YNc(6,zo,4,3,"button",3),t.qZA(),t.TgZ(7,"div"),t.YNc(8,Bl,2,1,"span",4),t.YNc(9,Ks,2,1,"span",4),t.qZA(),t.TgZ(10,"div"),t._UZ(11,"rtl-top-menu"),t.qZA(),t.qZA(),t.TgZ(12,"mat-sidenav-container"),t.TgZ(13,"mat-sidenav",5,6),t.TgZ(15,"rtl-side-navigation",7),t.NdJ("ChildNavClicked",function(fi){return Ae.onNavigationClicked(fi)}),t.qZA(),t.qZA(),t.TgZ(16,"mat-sidenav-content",8,9),t.TgZ(18,"div",10),t._UZ(19,"router-outlet",null,11),t.qZA(),t.qZA(),t._uU(21,"> "),t.qZA(),t.YNc(22,mh,4,0,"div",12),t.qZA()),2&B&&(t.Q6J("ngClass",t.WLB(12,ho,t.lcZ(1,8,Ae.settings.themeColor),t.lcZ(2,10,Ae.settings.themeMode))),t.xp6(5),t.Q6J("ngIf",Ae.flgLoggedIn),t.xp6(1),t.Q6J("ngIf",!Ae.smallScreen&&Ae.flgLoggedIn),t.xp6(2),t.Q6J("ngIf",Ae.smallScreen),t.xp6(1),t.Q6J("ngIf",!Ae.smallScreen),t.xp6(4),t.Q6J("opened",Ae.flgSideNavOpened&&Ae.flgLoggedIn)("mode",Ae.flgSidenavPinned&&!Ae.smallScreen?"side":"over"),t.xp6(9),t.Q6J("ngIf",!Ae.settings.themeColor))},directives:[b.xw,be.mk,Cn.oO,js.Ye,b.Wh,be.O5,g0,Ka.TM,Ka.JX,ae.$V,cl,b.yH,Ka.Rh,I.lC,ue.lW,l1.gM,Mr.Hw,d1.$g],pipes:[be.i8],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}"],data:{animation:[Il.g]}}),X})(),xo=(()=>{class X{constructor(B){this.sessionService=B}intercept(B,Ae){if(this.sessionService.getItem("token")){const mt=B.clone({headers:B.headers.set("Authorization","Bearer "+this.sessionService.getItem("token")),withCredentials:!0});return Ae.handle(mt)}return Ae.handle(B)}}return X.\u0275fac=function(B){return new(B||X)(t.LFG(ke.m))},X.\u0275prov=t.Yz7({token:X,factory:X.\u0275fac}),X})();var p1=m(7998),y0=m(711),Zo=m(4947),Vo=m(3289);const Go={userPersona:"OPERATOR",themeMode:"DAY",themeColor:"PURPLE",channelBackupPath:"",selCurrencyUnit:"USD",fiatConversion:!1,currencyUnits:["Sats","BTC","USD"],bitcoindConfigPath:"",enableOffers:!1},b0={configPath:"",swapMacaroonPath:"",boltzMacaroonPath:""},gh={apiURL:"",apisCallStatus:{Login:{status:K.Bn.UN_INITIATED},IsAuthorized:{status:K.Bn.UN_INITIATED}},selNode:{index:1,lnNode:"Node 1",settings:Go,authentication:b0,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,sso:{rtlSSO:0,logoutRedirectLink:""},enable2FA:!1,allowPasswordUpdate:!0,nodes:[{settings:Go,authentication:b0}]},nodeData:{}},x0=(0,M.Lq)(gh,(0,M.on)(we.qi,(X,{payload:He})=>{const B=JSON.parse(JSON.stringify(X.apisCallStatus));return B[He.action]={status:He.status,statusCode:He.statusCode,message:He.message,URL:He.URL,filePath:He.filePath},Object.assign(Object.assign({},X),{apisCallStatus:B})}),(0,M.on)(we.vI,(X,{payload:He})=>Object.assign(Object.assign({},gh),{apisCallStatus:X.apisCallStatus,appConfig:X.appConfig,selNode:He})),(0,M.on)(we.fk,(X,{payload:He})=>Object.assign(Object.assign({},X),{selNode:He.currentLnNode})),(0,M.on)(we.Tm,(X,{payload:He})=>{const B=JSON.parse(JSON.stringify(X.selNode));switch(He.service){case K.JX.BOLTZ:B.settings.boltzServerUrl=He.settings.boltzServerUrl;break;case K.JX.LOOP:B.settings.swapServerUrl=He.settings.swapServerUrl;break;case K.JX.OFFERS:B.settings.enableOffers=He.settings.enableOffers}return Object.assign(Object.assign({},X),{selNode:B})}),(0,M.on)(we._V,(X,{payload:He})=>Object.assign(Object.assign({},X),{nodeData:He})),(0,M.on)(we.XT,(X,{payload:He})=>Object.assign(Object.assign({},X),{appConfig:He}))),C0={apisCallStatus:{FetchInfo:{status:K.Bn.UN_INITIATED},FetchFees:{status:K.Bn.UN_INITIATED},FetchPeers:{status:K.Bn.UN_INITIATED},FetchClosedChannels:{status:K.Bn.UN_INITIATED},FetchPendingChannels:{status:K.Bn.UN_INITIATED},FetchAllChannels:{status:K.Bn.UN_INITIATED},FetchBalanceBlockchain:{status:K.Bn.UN_INITIATED},FetchInvoices:{status:K.Bn.UN_INITIATED},FetchPayments:{status:K.Bn.UN_INITIATED},FetchForwardingHistory:{status:K.Bn.UN_INITIATED},FetchUTXOs:{status:K.Bn.UN_INITIATED},FetchTransactions:{status:K.Bn.UN_INITIATED},FetchLightningTransactions:{status:K.Bn.UN_INITIATED},FetchNetwork:{status:K.Bn.UN_INITIATED}},nodeSettings:{userPersona:K.ol.OPERATOR,fiatConversion:!1,channelBackupPath:"",currencyUnits:[],selCurrencyUnit:"",lnImplementation:"",swapServerUrl:""},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 _h=!1,M0=!1;const vh=(0,M.Lq)(C0,(0,M.on)(ui.PC,(X,{payload:He})=>{const B=JSON.parse(JSON.stringify(X.apisCallStatus));return B[He.action]={status:He.status,statusCode:He.statusCode,message:He.message,URL:He.URL,filePath:He.filePath},Object.assign(Object.assign({},X),{apisCallStatus:B})}),(0,M.on)(ui.JT,(X,{payload:He})=>Object.assign(Object.assign({},X),{nodeSettings:He})),(0,M.on)(ui.Ll,(X,{payload:He})=>Object.assign(Object.assign({},C0),{nodeSettings:He})),(0,M.on)(ui.CX,(X,{payload:He})=>Object.assign(Object.assign({},X),{information:He})),(0,M.on)(ui.Z8,(X,{payload:He})=>Object.assign(Object.assign({},X),{peers:He})),(0,M.on)(ui.EK,(X,{payload:He})=>{const B=[...X.peers],Ae=X.peers.findIndex(mt=>mt.pub_key===He.pubkey);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{peers:B})}),(0,M.on)(ui.YP,(X,{payload:He})=>{const B=X.listInvoices;return B.invoices.unshift(He),Object.assign(Object.assign({},X),{listInvoices:B})}),(0,M.on)(ui.aL,(X,{payload:He})=>{const B=X.listInvoices;return B.invoices=B.invoices.map(Ae=>Ae.payment_request===He.payment_request?He:Ae),Object.assign(Object.assign({},X),{listInvoices:B})}),(0,M.on)(ui.qY,(X,{payload:He})=>{const B=X.listPayments;return B.payments=B.payments.map(Ae=>Ae.payment_hash===He.payment_hash?He:Ae),Object.assign(Object.assign({},X),{listPayments:B})}),(0,M.on)(ui.RX,(X,{payload:He})=>Object.assign(Object.assign({},X),{fees:He})),(0,M.on)(ui._L,(X,{payload:He})=>Object.assign(Object.assign({},X),{closedChannels:He})),(0,M.on)(ui.TW,(X,{payload:He})=>Object.assign(Object.assign({},X),{pendingChannels:He.pendingChannels,pendingChannelsSummary:He.pendingChannelsSummary})),(0,M.on)(ui.as,(X,{payload:He})=>{let B=0,Ae=0,mt=0,fi=0,In=0,tr=0;return He&&He.forEach(Fn=>{Fn.local_balance||(Fn.local_balance=0),!0===Fn.active?(In+=+Fn.local_balance,mt+=1,Fn.local_balance?B=+B+ +Fn.local_balance:Fn.local_balance=0,Fn.remote_balance?Ae=+Ae+ +Fn.remote_balance:Fn.remote_balance=0):(tr+=+Fn.local_balance,fi+=1)}),Object.assign(Object.assign({},X),{channels:He,channelsSummary:{active:{num_channels:mt,capacity:In},inactive:{num_channels:fi,capacity:tr}},lightningBalance:{local:B,remote:Ae}})}),(0,M.on)(ui.OG,(X,{payload:He})=>{const B=[...X.channels],Ae=X.channels.findIndex(mt=>mt.channel_point===He.channelPoint);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{channels:B})}),(0,M.on)(ui.Jl,(X,{payload:He})=>Object.assign(Object.assign({},X),{blockchainBalance:He})),(0,M.on)(ui.ks,(X,{payload:He})=>Object.assign(Object.assign({},X),{networkInfo:He})),(0,M.on)(ui.Nr,(X,{payload:He})=>(He.total_invoices||(He.total_invoices=X.listInvoices.total_invoices),Object.assign(Object.assign({},X),{listInvoices:He}))),(0,M.on)(ui.Lf,(X,{payload:He})=>{if(_h=!0,He.length&&M0){const B=[...X.utxos];return B.forEach(Ae=>{const mt=He.find(fi=>fi.tx_hash===Ae.outpoint.txid_str);Ae.label=mt&&mt.label?mt.label:""}),Object.assign(Object.assign({},X),{utxos:B,transactions:He})}return Object.assign(Object.assign({},X),{transactions:He})}),(0,M.on)(ui.UH,(X,{payload:He})=>{if(M0=!0,He.length&&_h){const B=[...X.transactions];He.forEach(Ae=>{const mt=B.find(fi=>fi.tx_hash===Ae.outpoint.txid_str);Ae.label=mt&&mt.label?mt.label:""})}return Object.assign(Object.assign({},X),{utxos:He})}),(0,M.on)(ui.HI,(X,{payload:He})=>{const B={listInvoicesAll:X.allLightningTransactions.listInvoicesAll,listPaymentsAll:He};return Object.assign(Object.assign({},X),{listPayments:He,allLightningTransactions:B})}),(0,M.on)(ui.Fr,(X,{payload:He})=>{const B={listInvoicesAll:He.listInvoicesAll,listPaymentsAll:X.listPayments};return Object.assign(Object.assign({},X),{allLightningTransactions:B})}),(0,M.on)(ui.QJ,(X,{payload:He})=>{const B=[...X.channels,...X.closedChannels];let Ae=He.forwarding_events?JSON.parse(JSON.stringify(He)):{};return Ae.forwarding_events&&(Ae=m1(Ae,B)),Object.assign(Object.assign({},X),{forwardingHistory:Ae})})),m1=(X,He)=>(X.forwarding_events.forEach(B=>{if(He&&He.length>0)for(let Ae=0;Ae{const B=JSON.parse(JSON.stringify(X.apisCallStatus));return B[He.action]={status:He.status,statusCode:He.statusCode,message:He.message,URL:He.URL,filePath:He.filePath},Object.assign(Object.assign({},X),{apisCallStatus:B})}),(0,M.on)(Lt.oo,(X,{payload:He})=>Object.assign(Object.assign({},X),{nodeSettings:He})),(0,M.on)(Lt.xH,(X,{payload:He})=>Object.assign(Object.assign({},Yo),{nodeSettings:He})),(0,M.on)(Lt.CX,(X,{payload:He})=>Object.assign(Object.assign({},X),{information:He})),(0,M.on)(Lt.RX,(X,{payload:He})=>Object.assign(Object.assign({},X),{fees:He})),(0,M.on)(Lt.I8,(X,{payload:He})=>He.perkb?Object.assign(Object.assign({},X),{feeRatesPerKB:He}):He.perkw?Object.assign(Object.assign({},X),{feeRatesPerKW:He}):Object.assign({},X)),(0,M.on)(Lt.Lu,(X,{payload:He})=>Object.assign(Object.assign({},X),{balance:He})),(0,M.on)(Lt.xS,(X,{payload:He})=>Object.assign(Object.assign({},X),{localRemoteBalance:He})),(0,M.on)(Lt.Z8,(X,{payload:He})=>Object.assign(Object.assign({},X),{peers:He})),(0,M.on)(Lt.X3,(X,{payload:He})=>Object.assign(Object.assign({},X),{peers:[...X.peers,He]})),(0,M.on)(Lt.EK,(X,{payload:He})=>{const B=[...X.peers],Ae=X.peers.findIndex(mt=>mt.id===He.id);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{peers:B})}),(0,M.on)(Lt.as,(X,{payload:He})=>Object.assign(Object.assign({},X),{activeChannels:He.activeChannels,pendingChannels:He.pendingChannels,inactiveChannels:He.inactiveChannels})),(0,M.on)(Lt.OG,(X,{payload:He})=>{const B=[...X.peers];return B.forEach(Ae=>{Ae.id===He.id&&(Ae.connected=!1,delete Ae.netaddr)}),Object.assign(Object.assign({},X),{peers:B})}),(0,M.on)(Lt.HI,(X,{payload:He})=>Object.assign(Object.assign({},X),{payments:He})),(0,M.on)(Lt.QJ,(X,{payload:He})=>{const B=X.fees,Ae=[...X.activeChannels,...X.pendingChannels,...X.inactiveChannels];return He=Rs(He,Ae),B.totalTxCount=He.length,Object.assign(Object.assign({},X),{fee:B,forwardingHistory:He})}),(0,M.on)(Lt.M7,(X,{payload:He})=>{const B=[...X.activeChannels,...X.pendingChannels,...X.inactiveChannels];return He=Rs(He,B),Object.assign(Object.assign({},X),{failedForwardingHistory:He})}),(0,M.on)(Lt.d6,(X,{payload:He})=>{const B=[...X.activeChannels,...X.pendingChannels,...X.inactiveChannels];return He=Rs(He,B),Object.assign(Object.assign({},X),{localFailedForwardingHistory:He})}),(0,M.on)(Lt.YP,(X,{payload:He})=>{const B=X.invoices;return B.invoices.unshift(He),Object.assign(Object.assign({},X),{invoices:B})}),(0,M.on)(Lt.Nr,(X,{payload:He})=>Object.assign(Object.assign({},X),{invoices:He})),(0,M.on)(Lt.aL,(X,{payload:He})=>{const B=X.invoices;return B.invoices=B.invoices.map(Ae=>Ae.label===He.label?He:Ae),Object.assign(Object.assign({},X),{invoices:B})}),(0,M.on)(Lt.UH,(X,{payload:He})=>Object.assign(Object.assign({},X),{utxos:He})),(0,M.on)(Lt.Zu,(X,{payload:He})=>Object.assign(Object.assign({},X),{offers:He})),(0,M.on)(Lt.ZH,(X,{payload:He})=>{const B=X.offers;return B.unshift(He),Object.assign(Object.assign({},X),{offers:B})}),(0,M.on)(Lt.JK,(X,{payload:He})=>{const B=[...X.offers],Ae=X.offers.findIndex(mt=>mt.offer_id===He.offer.offer_id);return Ae>-1&&B.splice(Ae,1,He.offer),Object.assign(Object.assign({},X),{offers:B})}),(0,M.on)(Lt.d7,(X,{payload:He})=>Object.assign(Object.assign({},X),{offersBookmarks:He})),(0,M.on)(Lt.e9,(X,{payload:He})=>{const B=[...X.offersBookmarks],Ae=B.findIndex(mt=>mt.bolt12===He.bolt12);if(Ae<0)B.unshift(He);else{const mt=Object.assign({},B[Ae]);mt.title=He.title,mt.amountmSat=He.amountmSat,mt.lastUpdatedAt=He.lastUpdatedAt,mt.description=He.description,mt.vendor=He.vendor,B.splice(Ae,1,mt)}return Object.assign(Object.assign({},X),{offersBookmarks:B})}),(0,M.on)(Lt.en,(X,{payload:He})=>{const B=[...X.offersBookmarks],Ae=X.offersBookmarks.findIndex(mt=>mt.bolt12===He.bolt12);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{offersBookmarks:B})})),Rs=(X,He)=>(X&&X.length>0?X.forEach((B,Ae)=>{if(He&&He.length>0)for(let mt=0;mt{const B=JSON.parse(JSON.stringify(X.apisCallStatus));return B[He.action]={status:He.status,statusCode:He.statusCode,message:He.message,URL:He.URL,filePath:He.filePath},Object.assign(Object.assign({},X),{apisCallStatus:B})}),(0,M.on)(gt.Zr,(X,{payload:He})=>Object.assign(Object.assign({},X),{nodeSettings:He})),(0,M.on)(gt.Fd,(X,{payload:He})=>Object.assign(Object.assign({},uo),{nodeSettings:He})),(0,M.on)(gt.CX,(X,{payload:He})=>Object.assign(Object.assign({},X),{information:He})),(0,M.on)(gt.RX,(X,{payload:He})=>Object.assign(Object.assign({},X),{fees:He})),(0,M.on)(gt.eN,(X,{payload:He})=>Object.assign(Object.assign({},X),{activeChannels:He})),(0,M.on)(gt.TW,(X,{payload:He})=>Object.assign(Object.assign({},X),{pendingChannels:He})),(0,M.on)(gt.i,(X,{payload:He})=>Object.assign(Object.assign({},X),{inactiveChannels:He})),(0,M.on)(gt.HG,(X,{payload:He})=>Object.assign(Object.assign({},X),{channelsStatus:He})),(0,M.on)(gt.Bw,(X,{payload:He})=>Object.assign(Object.assign({},X),{onchainBalance:He})),(0,M.on)(gt.On,(X,{payload:He})=>Object.assign(Object.assign({},X),{lightningBalance:He})),(0,M.on)(gt.Z8,(X,{payload:He})=>Object.assign(Object.assign({},X),{peers:He})),(0,M.on)(gt.EK,(X,{payload:He})=>{const B=[...X.peers],Ae=X.peers.findIndex(mt=>mt.nodeId===He.nodeId);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{peers:B})}),(0,M.on)(gt.OG,(X,{payload:He})=>{const B=[...X.activeChannels],Ae=X.activeChannels.findIndex(mt=>mt.channelId===He.channelId);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{activeChannels:B})}),(0,M.on)(gt.HI,(X,{payload:He})=>{if(He&&He.sent){const B=[...X.activeChannels,...X.pendingChannels,...X.inactiveChannels];He.sent.map(Ae=>{const mt=X.peers.find(fi=>fi.nodeId===Ae.recipientNodeId);return Ae.recipientNodeAlias=mt?mt.alias:Ae.recipientNodeId,Ae.parts&&Ae.parts.map(fi=>{const In=B.find(tr=>tr.channelId===fi.toChannelId);return fi.toChannelAlias=In?In.alias:fi.toChannelId,Ae.parts}),He.sent})}if(He&&He.relayed){const B=[...X.activeChannels,...X.pendingChannels,...X.inactiveChannels];He.relayed.forEach(Ae=>{Ae=_1(Ae,B)})}return Object.assign(Object.assign({},X),{payments:He})}),(0,M.on)(gt.Lf,(X,{payload:He})=>Object.assign(Object.assign({},X),{transactions:He})),(0,M.on)(gt.YP,(X,{payload:He})=>{const B=X.invoices;return B.unshift(He),Object.assign(Object.assign({},X),{invoices:B})}),(0,M.on)(gt.Nr,(X,{payload:He})=>Object.assign(Object.assign({},X),{invoices:He})),(0,M.on)(gt.aL,(X,{payload:He})=>{let B=X.invoices;return B=B.map(Ae=>{if(Ae.paymentHash===He.paymentHash){if(He.hasOwnProperty("type")){const mt=JSON.parse(JSON.stringify(Ae));return mt.amountSettled=He.parts&&He.parts.length&&He.parts.length>0&&He.parts[0].amount?He.parts[0].amount/1e3:0,mt.receivedAt=He.parts&&He.parts.length&&He.parts.length>0&&He.parts[0].timestamp?Math.round(He.parts[0].timestamp/1e3):0,mt.status="received",mt}return He}return Ae}),Object.assign(Object.assign({},X),{invoices:B})}),(0,M.on)(gt.DJ,(X,{payload:He})=>{let B=X.pendingChannels;return B=B.map(Ae=>(Ae.channelId===He.channelId&&Ae.nodeId===He.remoteNodeId&&(He.currentState=He.currentState.replace(/_/g," "),Ae.state=He.currentState),Ae)),Object.assign(Object.assign({},X),{pendingChannels:B})}),(0,M.on)(gt.ti,(X,{payload:He})=>{const B=X.payments,Ae=_1(He,[...X.activeChannels,...X.pendingChannels,...X.inactiveChannels]);Ae.amountIn=Math.round(He.amountIn/1e3),Ae.amountOut=Math.round(He.amountOut/1e3),B.relayed.unshift(Ae);const mt=He.amountIn-He.amountOut,fi={localBalance:X.lightningBalance.localBalance+mt,remoteBalance:X.lightningBalance.remoteBalance-mt},In=X.channelsStatus;In.active.capacity=X.channelsStatus.active.capacity+mt;const tr={daily_fee:X.fees.daily_fee+mt,daily_txs:X.fees.daily_txs+1,weekly_fee:X.fees.weekly_fee+mt,weekly_txs:X.fees.weekly_txs+1,monthly_fee:X.fees.monthly_fee+mt,monthly_txs:X.fees.monthly_txs+1},Fn=X.activeChannels;let Br=!1,ya=!1;for(const sr of Fn){if(sr.channelId===He.fromChannelId){Br=!0;const Na=sr.toLocal+sr.toRemote;sr.toLocal=sr.toLocal+Ae.amountIn,sr.toRemote=sr.toRemote-Ae.amountIn,sr.balancedness=0===Na?1:+(1-Math.abs((sr.toLocal-sr.toRemote)/Na)).toFixed(3)}if(sr.channelId===He.toChannelId){ya=!0;const Na=sr.toLocal+sr.toRemote;sr.toLocal=sr.toLocal-Ae.amountOut,sr.toRemote=sr.toRemote+Ae.amountOut,sr.balancedness=0===Na?1:+(1-Math.abs((sr.toLocal-sr.toRemote)/Na)).toFixed(3)}if(ya&&Br)break}return Object.assign(Object.assign({},X),{payments:B,lightningBalance:fi,channelStatus:In,fees:tr,activeChannels:Fn})})),_1=(X,He)=>{if("payment-relayed"===X.type)if(He&&He.length>0)for(let B=0;B0)for(let B=0;B{He[B].channelId.toString()===Ae.channelId&&(Ae.channelAlias=He[B].alias?He[B].alias:Ae.channelId,Ae.shortChannelId=He[B].shortChannelId?He[B].shortChannelId:"")}),X.outgoing.forEach(Ae=>{He[B].channelId.toString()===Ae.channelId&&(Ae.channelAlias=He[B].alias?He[B].alias:Ae.channelId,Ae.shortChannelId=He[B].shortChannelId?He[B].shortChannelId:"")}),B===He.length-1&&(X.incoming[0].channelAlias||X.incoming.forEach(Ae=>{Ae.channelAlias=Ae.channelId.substring(0,17)+"...",Ae.shortChannelId=""}),X.outgoing[0].channelAlias||X.outgoing.forEach(Ae=>{Ae.channelAlias=Ae.channelId.substring(0,17)+"...",Ae.shortChannelId=""}));else X.incoming.forEach(B=>{B.channelAlias=B.channelId.substring(0,17)+"...",B.shortChannelId=""}),X.outgoing.forEach(B=>{B.channelAlias=B.channelId.substring(0,17)+"...",B.shortChannelId=""});X.amountIn=X.incoming.reduce((B,Ae)=>B+Ae.amount,0),X.fromChannelId=X.incoming[0].channelId,X.fromChannelAlias=X.incoming[0].channelAlias,X.fromShortChannelId=X.incoming[0].shortChannelId,X.amountOut=X.outgoing.reduce((B,Ae)=>B+Ae.amount,0),X.toChannelId=X.outgoing[0].channelId,X.toChannelAlias=X.outgoing[0].channelAlias,X.toShortChannelId=X.outgoing[0].shortChannelId}return X};let Hl=(()=>{class X{}return X.\u0275fac=function(B){return new(B||X)},X.\u0275mod=t.oAB({type:X,bootstrap:[Uo]}),X.\u0275inj=t.cJS({providers:[{provide:C.TP,useClass:xo,multi:!0},Pa.a1,ke.m,bo.D,p1.d,Zr.W,Ci.v,Un],imports:[[v.PW,s1.m,xs,o.xu,e.t6,D.forRoot({idle:3590,timeout:10,ping:12e3}),M.Aw.forRoot({root:x0,lnd:vh,cln:g1,ecl:yh},{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),l.sQ.forRoot([nt.V,y0.l,Zo.J,Vo.o]),Wi.NZ.production?[]:R.FT.instrument()]]}),X})();Wi.NZ.production&&(0,t.G48)(),e.q6().bootstrapModule(Hl).catch(X=>console.log(X))},7854:(Ve,Q)=>{"use strict";function m(K){return Object.keys(K).map(we=>K[we])}var K;Object.defineProperty(Q,"__esModule",{value:!0}),(K=Q.HashAlgorithms||(Q.HashAlgorithms={})).SHA1="sha1",K.SHA256="sha256",K.SHA512="sha512";const e=m(Q.HashAlgorithms);!function(K){K.ASCII="ascii",K.BASE64="base64",K.HEX="hex",K.LATIN1="latin1",K.UTF8="utf8"}(Q.KeyEncodings||(Q.KeyEncodings={}));const t=m(Q.KeyEncodings);!function(K){K.HOTP="hotp",K.TOTP="totp"}(Q.Strategy||(Q.Strategy={}));const v=m(Q.Strategy),C=()=>{throw new Error("Please provide an options.createDigest implementation.")};function o(K){return/^(\d+)$/.test(K)}function M(K,we,Y){return K.length>=we?K:`${Array(we+1).join(Y)}${K}`.slice(-1*we)}function l(K){const we=`otpauth://${K.type}/{labelPrefix}:{accountName}?secret={secret}{query}`,Y=[];if(v.indexOf(K.type)<0)throw new Error(`Expecting options.type to be one of ${v.join(", ")}. Received ${K.type}.`);if("hotp"===K.type){if(null==K.counter||"number"!=typeof K.counter)throw new Error('Expecting options.counter to be a number when options.type is "hotp".');Y.push(`&counter=${K.counter}`)}return"totp"===K.type&&K.step&&Y.push(`&period=${K.step}`),K.digits&&Y.push(`&digits=${K.digits}`),K.algorithm&&Y.push(`&algorithm=${K.algorithm.toUpperCase()}`),K.issuer&&Y.push(`&issuer=${encodeURIComponent(K.issuer)}`),we.replace("{labelPrefix}",encodeURIComponent(K.issuer||K.accountName)).replace("{accountName}",encodeURIComponent(K.accountName)).replace("{secret}",K.secret).replace("{query}",Y.join(""))}class R{constructor(we={}){this._defaultOptions=Object.freeze(io({},we)),this._options=Object.freeze({})}create(we={}){return new R(we)}clone(we={}){const Y=this.create(io(io({},this._defaultOptions),we));return Y.options=this._options,Y}get options(){return Object.freeze(io(io({},this._defaultOptions),this._options))}set options(we){this._options=Object.freeze(io(io({},this._options),we))}allOptions(){return this.options}resetOptions(){this._options=Object.freeze({})}}function s(K){if("function"!=typeof K.createDigest)throw new Error("Expecting options.createDigest to be a function.");if("function"!=typeof K.createHmacKey)throw new Error("Expecting options.createHmacKey to be a function.");if("number"!=typeof K.digits)throw new Error("Expecting options.digits to be a number.");if(!K.algorithm||e.indexOf(K.algorithm)<0)throw new Error(`Expecting options.algorithm to be one of ${e.join(", ")}. Received ${K.algorithm}.`);if(!K.encoding||t.indexOf(K.encoding)<0)throw new Error(`Expecting options.encoding to be one of ${t.join(", ")}. Received ${K.encoding}.`)}const L=(K,we,Y)=>Buffer.from(we,Y).toString("hex");function O(){return{algorithm:Q.HashAlgorithms.SHA1,createHmacKey:L,createDigest:C,digits:6,encoding:Q.KeyEncodings.ASCII}}function A(K){const we=io(io({},O()),K);return s(we),Object.freeze(we)}function E(K){return M(K.toString(16),16,"0")}function P(K,we){const Y=Buffer.from(K,"hex"),ae=15&Y[Y.length-1],vt=((127&Y[ae])<<24|(255&Y[ae+1])<<16|(255&Y[ae+2])<<8|255&Y[ae+3])%Math.pow(10,we);return M(String(vt),we,"0")}function Z(K,we,Y){const ae=Y.digest||function w(K,we,Y){const ae=E(we),Ge=Y.createHmacKey(Y.algorithm,K,Y.encoding);return Y.createDigest(Y.algorithm,Ge,ae)}(K,we,Y);return P(ae,Y.digits)}function j(K,we,Y,ae){return!!o(K)&&K===Z(we,Y,ae)}function W(K,we,Y,ae,Ge){return l({algorithm:Ge.algorithm,digits:Ge.digits,type:Q.Strategy.HOTP,accountName:K,counter:ae,issuer:we,secret:Y})}class ie extends R{create(we={}){return new ie(we)}allOptions(){return A(this.options)}generate(we,Y){return Z(we,Y,this.allOptions())}check(we,Y,ae){return j(we,Y,ae,this.allOptions())}verify(we){if("object"!=typeof we)throw new Error("Expecting argument 0 of verify to be an object");return this.check(we.token,we.secret,we.counter)}keyuri(we,Y,ae,Ge){return W(we,Y,ae,Ge,this.allOptions())}}function ee(K){if("number"==typeof K)return[Math.abs(K),Math.abs(K)];if(Array.isArray(K)){const[we,Y]=K;if("number"==typeof we&&"number"==typeof Y)return[Math.abs(we),Math.abs(Y)]}throw new Error("Expecting options.window to be an number or [number, number].")}function ve(K){if(s(K),ee(K.window),"number"!=typeof K.epoch)throw new Error("Expecting options.epoch to be a number.");if("number"!=typeof K.step)throw new Error("Expecting options.step to be a number.")}const he=(K,we,Y)=>{const ae=K.length,Ge=Buffer.from(K,we).toString("hex");if(ae{switch(K){case Q.HashAlgorithms.SHA1:return he(we,Y,20);case Q.HashAlgorithms.SHA256:return he(we,Y,32);case Q.HashAlgorithms.SHA512:return he(we,Y,64);default:throw new Error(`Expecting algorithm to be one of ${e.join(", ")}. Received ${K}.`)}};function de(){return{algorithm:Q.HashAlgorithms.SHA1,createDigest:C,createHmacKey:re,digits:6,encoding:Q.KeyEncodings.ASCII,epoch:Date.now(),step:30,window:0}}function le(K){const we=io(io({},de()),K);return ve(we),Object.freeze(we)}function se(K,we){return Math.floor(K/we/1e3)}function y(K,we){return Z(K,se(we.epoch,we.step),we)}function i(K,we,Y,ae){const Ge=[];if(0===ae)return Ge;for(let vt=1;vt<=ae;vt++)Ge.push(K+we*vt*Y);return Ge}function a(K,we,Y){const ae=ee(Y),Ge=1e3*we;return{current:K,past:i(K,-1,Ge,ae[0]),future:i(K,1,Ge,ae[1])}}function p(K,we,Y){return!!o(K)&&K===y(we,Y)}function u(K,we,Y,ae){let Ge=null;return K.some((vt,Fe)=>!!p(we,Y,_8(io({},ae),{epoch:vt}))&&(Ge=Fe+1,!0)),Ge}function _(K,we,Y){if(p(K,we,Y))return 0;const ae=a(Y.epoch,Y.step,Y.window),Ge=u(ae.past,K,we,Y);return null!==Ge?-1*Ge:u(ae.future,K,we,Y)}function D(K,we){return Math.floor(K/1e3)%we}function I(K,we){return we-D(K,we)}function x(K,we,Y,ae){return l({algorithm:ae.algorithm,digits:ae.digits,step:ae.step,type:Q.Strategy.TOTP,accountName:K,issuer:we,secret:Y})}class r extends ie{create(we={}){return new r(we)}allOptions(){return le(this.options)}generate(we){return y(we,this.allOptions())}checkDelta(we,Y){return _(we,Y,this.allOptions())}check(we,Y){return"number"==typeof this.checkDelta(we,Y)}verify(we){if("object"!=typeof we)throw new Error("Expecting argument 0 of verify to be an object");return this.check(we.token,we.secret)}timeRemaining(){const we=this.allOptions();return I(we.epoch,we.step)}timeUsed(){const we=this.allOptions();return D(we.epoch,we.step)}keyuri(we,Y,ae){return x(we,Y,ae,this.allOptions())}}function b(K){if(ve(K),"function"!=typeof K.keyDecoder)throw new Error("Expecting options.keyDecoder to be a function.");if(K.keyEncoder&&"function"!=typeof K.keyEncoder)throw new Error("Expecting options.keyEncoder to be a function.")}function U(){return{algorithm:Q.HashAlgorithms.SHA1,createDigest:C,createHmacKey:re,digits:6,encoding:Q.KeyEncodings.HEX,epoch:Date.now(),step:30,window:0}}function N(K){const we=io(io({},U()),K);return b(we),Object.freeze(we)}function z(K,we){return we.keyEncoder(K,we.encoding)}function be(K,we){return we.keyDecoder(K,we.encoding)}function xe(K,we){return z(we.createRandomBytes(K,we.encoding),we)}function Re(K,we){return y(be(K,we),we)}function ze(K,we,Y){return _(K,be(we,Y),Y)}class Le extends r{create(we={}){return new Le(we)}allOptions(){return N(this.options)}generate(we){return Re(we,this.allOptions())}checkDelta(we,Y){return ze(we,Y,this.allOptions())}encode(we){return z(we,this.allOptions())}decode(we){return be(we,this.allOptions())}generateSecret(we=10){return xe(we,this.allOptions())}}Q.Authenticator=Le,Q.HASH_ALGORITHMS=e,Q.HOTP=ie,Q.KEY_ENCODINGS=t,Q.OTP=R,Q.STRATEGY=v,Q.TOTP=r,Q.authenticatorCheckWithWindow=ze,Q.authenticatorDecoder=be,Q.authenticatorDefaultOptions=U,Q.authenticatorEncoder=z,Q.authenticatorGenerateSecret=xe,Q.authenticatorOptionValidator=b,Q.authenticatorOptions=N,Q.authenticatorToken=Re,Q.createDigestPlaceholder=C,Q.hotpCheck=j,Q.hotpCounter=E,Q.hotpCreateHmacKey=L,Q.hotpDefaultOptions=O,Q.hotpDigestToToken=P,Q.hotpKeyuri=W,Q.hotpOptions=A,Q.hotpOptionsValidator=s,Q.hotpToken=Z,Q.isTokenValid=o,Q.keyuri=l,Q.objectValues=m,Q.padStart=M,Q.totpCheck=p,Q.totpCheckByEpoch=u,Q.totpCheckWithWindow=_,Q.totpCounter=se,Q.totpCreateHmacKey=re,Q.totpDefaultOptions=de,Q.totpEpochAvailable=a,Q.totpKeyuri=x,Q.totpOptions=le,Q.totpOptionsValidator=ve,Q.totpPadSecret=he,Q.totpTimeRemaining=I,Q.totpTimeUsed=D,Q.totpToken=y},6098:(Ve,Q,m)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var t=function e(o){return o&&"object"==typeof o&&"default"in o?o.default:o}(m(1348));Q.createDigest=(o,M,l)=>t.createHmac(o,Buffer.from(M,"hex")).update(Buffer.from(l,"hex")).digest().toString("hex"),Q.createRandomBytes=(o,M)=>t.randomBytes(o).toString(M)},1415:(Ve,Q,m)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var t=function e(o){return o&&"object"==typeof o&&"default"in o?o.default:o}(m(2167));Q.keyDecoder=(o,M)=>t.decode(o).toString(M),Q.keyEncoder=(o,M)=>t.encode(Buffer.from(o,M).toString("ascii")).toString().replace(/=/g,"")},842:(Ve,Q,m)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var e=m(6098),t=m(1415),v=m(7854);const C=new v.HOTP({createDigest:e.createDigest}),o=new v.TOTP({createDigest:e.createDigest}),M=new v.Authenticator({createDigest:e.createDigest,createRandomBytes:e.createRandomBytes,keyDecoder:t.keyDecoder,keyEncoder:t.keyEncoder});Q.authenticator=M,Q.hotp=C,Q.totp=o},6046:(Ve,Q,m)=>{"use strict";m.d(Q,{H5:()=>_4,K$:()=>g4,a4:()=>lh});var e=m(5e3),t=m(9808),v=m(7429),C=m(655),o=m(4968),M=m(8372),l=m(1777);function R(){}function s(f){return null==f?R:function(){return this.querySelector(f)}}function O(f){return"object"==typeof f&&"length"in f?f:Array.from(f)}function A(){return[]}function E(f){return null==f?A:function(){return this.querySelectorAll(f)}}function Z(f){return function(){return this.matches(f)}}function j(f){return function(T){return T.matches(f)}}var W=Array.prototype.find;function ee(){return this.firstElementChild}var he=Array.prototype.filter;function re(){return this.children}function y(f){return new Array(f.length)}function a(f,T){this.ownerDocument=f.ownerDocument,this.namespaceURI=f.namespaceURI,this._next=null,this._parent=f,this.__data__=T}function p(f){return function(){return f}}function u(f,T,n,d,k,H){for(var Se,oe=0,ht=T.length,pt=H.length;oeT?1:f>=T?0:NaN}a.prototype={constructor:a,appendChild:function(f){return this._parent.insertBefore(f,this._next)},insertBefore:function(f,T){return this._parent.insertBefore(f,T)},querySelector:function(f){return this._parent.querySelector(f)},querySelectorAll:function(f){return this._parent.querySelectorAll(f)}};var we="http://www.w3.org/1999/xhtml";const Y={svg:"http://www.w3.org/2000/svg",xhtml:we,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ae(f){var T=f+="",n=T.indexOf(":");return n>=0&&"xmlns"!==(T=f.slice(0,n))&&(f=f.slice(n+1)),Y.hasOwnProperty(T)?{space:Y[T],local:f}:f}function Ge(f){return function(){this.removeAttribute(f)}}function vt(f){return function(){this.removeAttributeNS(f.space,f.local)}}function Fe(f,T){return function(){this.setAttribute(f,T)}}function Ne(f,T){return function(){this.setAttributeNS(f.space,f.local,T)}}function ue(f,T){return function(){var n=T.apply(this,arguments);null==n?this.removeAttribute(f):this.setAttribute(f,n)}}function Oe(f,T){return function(){var n=T.apply(this,arguments);null==n?this.removeAttributeNS(f.space,f.local):this.setAttributeNS(f.space,f.local,n)}}function q(f){return f.ownerDocument&&f.ownerDocument.defaultView||f.document&&f||f.defaultView}function $(f){return function(){this.style.removeProperty(f)}}function ce(f,T,n){return function(){this.style.setProperty(f,T,n)}}function Me(f,T,n){return function(){var d=T.apply(this,arguments);null==d?this.style.removeProperty(f):this.style.setProperty(f,d,n)}}function lt(f,T){return f.style.getPropertyValue(T)||q(f).getComputedStyle(f,null).getPropertyValue(T)}function nt(f){return function(){delete this[f]}}function ft(f,T){return function(){this[f]=T}}function it(f,T){return function(){var n=T.apply(this,arguments);null==n?delete this[f]:this[f]=n}}function Mt(f){return f.trim().split(/^|\s+/)}function Zt(f){return f.classList||new Ft(f)}function Ft(f){this._node=f,this._names=Mt(f.getAttribute("class")||"")}function Vt(f,T){for(var n=Zt(f),d=-1,k=T.length;++d=0&&(n=T.slice(d+1),T=T.slice(0,d)),{type:T,name:n}})}function Ke(f){return function(){var T=this.__on;if(T){for(var H,n=0,d=-1,k=T.length;n=0&&(this._names.splice(T,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(f){return this._names.indexOf(f)>=0}};var kt=[null];function yi(f,T){this._groups=f,this._parents=T}function Ni(){return new yi([[document.documentElement]],kt)}yi.prototype=Ni.prototype={constructor:yi,select:function L(f){"function"!=typeof f&&(f=s(f));for(var T=this._groups,n=T.length,d=new Array(n),k=0;k=Qi&&(Qi=Gi+1);!(fn=di[Qi])&&++Qi=0;)(oe=d[k])&&(H&&4^oe.compareDocumentPosition(H)&&H.parentNode.insertBefore(oe,H),H=oe);return this},sort:function N(f){function T(Ht,Ut){return Ht&&Ut?f(Ht.__data__,Ut.__data__):!Ht-!Ut}f||(f=z);for(var n=this._groups,d=n.length,k=new Array(d),H=0;H1?this.each((null==T?$:"function"==typeof T?Me:ce)(f,T,null==n?"":n)):lt(this.node(),f)},property:function rt(f,T){return arguments.length>1?this.each((null==T?nt:"function"==typeof T?it:ft)(f,T)):this.node()[f]},classed:function ai(f,T){var n=Mt(f+"");if(arguments.length<2){for(var d=Zt(this.node()),k=-1,H=n.length;++k{}};function gt(){for(var d,f=0,T=arguments.length,n={};f=0&&(d=n.slice(k+1),n=n.slice(0,k)),n&&!T.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:d}})}function Ci(f,T){for(var k,n=0,d=f.length;n0)for(var k,H,n=new Array(k),d=0;d>8&15|T>>4&240,T>>4&15|240&T,(15&T)<<4|15&T,1):8===n?Kn(T>>24&255,T>>16&255,T>>8&255,(255&T)/255):4===n?Kn(T>>12&15|T>>8&240,T>>8&15|T>>4&240,T>>4&15|240&T,((15&T)<<4|15&T)/255):null):(T=Ma.exec(f))?new Tr(T[1],T[2],T[3],1):(T=Fa.exec(f))?new Tr(255*T[1]/100,255*T[2]/100,255*T[3]/100,1):(T=xr.exec(f))?Kn(T[1],T[2],T[3],T[4]):(T=hs.exec(f))?Kn(255*T[1]/100,255*T[2]/100,255*T[3]/100,T[4]):(T=ur.exec(f))?la(T[1],T[2]/100,T[3]/100,1):(T=pa.exec(f))?la(T[1],T[2]/100,T[3]/100,T[4]):ma.hasOwnProperty(f)?Pr(ma[f]):"transparent"===f?new Tr(NaN,NaN,NaN,0):null}function Pr(f){return new Tr(f>>16&255,f>>8&255,255&f,1)}function Kn(f,T,n,d){return d<=0&&(f=T=n=NaN),new Tr(f,T,n,d)}function vn(f){return f instanceof Fi||(f=Zr(f)),f?new Tr((f=f.rgb()).r,f.g,f.b,f.opacity):new Tr}function Qn(f,T,n,d){return 1===arguments.length?vn(f):new Tr(f,T,n,null==d?1:d)}function Tr(f,T,n,d){this.r=+f,this.g=+T,this.b=+n,this.opacity=+d}function Ba(){return"#"+kr(this.r)+kr(this.g)+kr(this.b)}function Wa(){var f=this.opacity;return(1===(f=isNaN(f)?1:Math.max(0,Math.min(1,f)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===f?")":", "+f+")")}function kr(f){return((f=Math.max(0,Math.min(255,Math.round(f)||0)))<16?"0":"")+f.toString(16)}function la(f,T,n,d){return d<=0?f=T=n=NaN:n<=0||n>=1?f=T=NaN:T<=0&&(f=NaN),new $n(f,T,n,d)}function Jr(f){if(f instanceof $n)return new $n(f.h,f.s,f.l,f.opacity);if(f instanceof Fi||(f=Zr(f)),!f)return new $n;if(f instanceof $n)return f;var T=(f=f.rgb()).r/255,n=f.g/255,d=f.b/255,k=Math.min(T,n,d),H=Math.max(T,n,d),oe=NaN,Se=H-k,ht=(H+k)/2;return Se?(oe=T===H?(n-d)/Se+6*(n0&&ht<1?0:oe,new $n(oe,Se,ht,f.opacity)}function $n(f,T,n,d){this.h=+f,this.s=+T,this.l=+n,this.opacity=+d}function wa(f,T,n){return 255*(f<60?T+(n-T)*f/60:f<180?n:f<240?T+(n-T)*(240-f)/60:T)}function Nr(f,T,n,d,k){var H=f*f,oe=H*f;return((1-3*f+3*H-oe)*T+(4-6*H+3*oe)*n+(1+3*f+3*H-3*oe)*d+oe*k)/6}dr(Fi,Zr,{copy:function(f){return Object.assign(new this.constructor,this,f)},displayable:function(){return this.rgb().displayable()},hex:Ir,formatHex:Ir,formatHsl:function Ga(){return Jr(this).formatHsl()},formatRgb:Ya,toString:Ya}),dr(Tr,Qn,wi(Fi,{brighter:function(f){return f=null==f?Lr:Math.pow(Lr,f),new Tr(this.r*f,this.g*f,this.b*f,this.opacity)},darker:function(f){return f=null==f?.7:Math.pow(.7,f),new Tr(this.r*f,this.g*f,this.b*f,this.opacity)},rgb:function(){return this},displayable:function(){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:Ba,formatHex:Ba,formatRgb:Wa,toString:Wa})),dr($n,function ga(f,T,n,d){return 1===arguments.length?Jr(f):new $n(f,T,n,null==d?1:d)},wi(Fi,{brighter:function(f){return f=null==f?Lr:Math.pow(Lr,f),new $n(this.h,this.s,this.l*f,this.opacity)},darker:function(f){return f=null==f?.7:Math.pow(.7,f),new $n(this.h,this.s,this.l*f,this.opacity)},rgb:function(){var f=this.h%360+360*(this.h<0),T=isNaN(f)||isNaN(this.s)?0:this.s,n=this.l,d=n+(n<.5?n:1-n)*T,k=2*n-d;return new Tr(wa(f>=240?f-240:f+120,k,d),wa(f,k,d),wa(f<120?f+240:f-120,k,d),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var f=this.opacity;return(1===(f=isNaN(f)?1:Math.max(0,Math.min(1,f)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===f?")":", "+f+")")}}));const Vr=f=>()=>f;function Oa(f,T){var n=T-f;return n?function ha(f,T){return function(n){return f+n*T}}(f,n):Vr(isNaN(f)?T:f)}const ra=function f(T){var n=function is(f){return 1==(f=+f)?Oa:function(T,n){return n-T?function pr(f,T,n){return f=Math.pow(f,n),T=Math.pow(T,n)-f,n=1/n,function(d){return Math.pow(f+d*T,n)}}(T,n,f):Vr(isNaN(T)?n:T)}}(T);function d(k,H){var oe=n((k=Qn(k)).r,(H=Qn(H)).r),Se=n(k.g,H.g),ht=n(k.b,H.b),pt=Oa(k.opacity,H.opacity);return function(Dt){return k.r=oe(Dt),k.g=Se(Dt),k.b=ht(Dt),k.opacity=pt(Dt),k+""}}return d.gamma=f,d}(1);function Gr(f){return function(T){var oe,Se,n=T.length,d=new Array(n),k=new Array(n),H=new Array(n);for(oe=0;oe=1?(n=1,T-1):Math.floor(n*T),k=f[d],H=f[d+1];return Nr((n-d/T)*T,d>0?f[d-1]:2*k-H,k,H,dn&&(H=T.slice(n,H),Se[oe]?Se[oe]+=H:Se[++oe]=H),(d=d[0])===(k=k[0])?Se[oe]?Se[oe]+=k:Se[++oe]=k:(Se[++oe]=null,ht.push({i:oe,x:_e(d,k)})),n=Qe.lastIndex;return n=0&&f._call.call(null,T),f=f._next;--yn}()}finally{yn=0,function fe(){for(var f,n,T=Un,d=1/0;T;)T._call?(d>T._time&&(d=T._time),f=T,T=T._next):(n=T._next,T._next=null,T=f?f._next=n:Un=n);Rn=f,je(d)}(),Mr=0}}function te(){var f=vs.now(),T=f-_a;T>1e3&&(ds-=T,_a=f)}function je(f){yn||(An&&(An=clearTimeout(An)),f-Mr>24?(f<1/0&&(An=setTimeout(xt,f-vs.now()-ds)),Wi&&(Wi=clearInterval(Wi))):(Wi||(_a=vs.now(),Wi=setInterval(te,1e3)),yn=1,Pi(xt)))}function wt(f,T,n){var d=new fr;return d.restart(k=>{d.stop(),f(k+T)},T=null==T?0:+T,n),d}fr.prototype=Zs.prototype={constructor:fr,restart:function(f,T,n){if("function"!=typeof f)throw new TypeError("callback is not a function");n=(null==n?Nn():+n)+(null==T?0:+T),!this._next&&Rn!==this&&(Rn?Rn._next=this:Un=this,Rn=this),this._call=f,this._time=n,je()},stop:function(){this._call&&(this._call=null,this._time=1/0,je())}};var Pt=$i("start","end","cancel","interrupt"),Qt=[];function tt(f,T,n,d,k,H){var oe=f.__transition;if(oe){if(n in oe)return}else f.__transition={};!function ri(f,T,n){var k,d=f.__transition;function oe(pt){var Dt,Ht,Ut,ni;if(1!==n.state)return ht();for(Dt in d)if((ni=d[Dt]).name===n.name){if(3===ni.state)return wt(oe);4===ni.state?(ni.state=6,ni.timer.stop(),ni.on.call("interrupt",f,f.__data__,ni.index,ni.group),delete d[Dt]):+Dt0)throw new Error("too late; already scheduled");return n}function It(f,T){var n=zt(f,T);if(n.state>3)throw new Error("too late; already running");return n}function zt(f,T){var n=f.__transition;if(!n||!(n=n[T]))throw new Error("transition not found");return n}var gn,Ai=180/Math.PI,Ki={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function un(f,T,n,d,k,H){var oe,Se,ht;return(oe=Math.sqrt(f*f+T*T))&&(f/=oe,T/=oe),(ht=f*n+T*d)&&(n-=f*ht,d-=T*ht),(Se=Math.sqrt(n*n+d*d))&&(n/=Se,d/=Se,ht/=Se),f*d180?Dt+=360:Dt-pt>180&&(pt+=360),Ut.push({i:Ht.push(k(Ht)+"rotate(",null,d)-2,x:_e(pt,Dt)})):Dt&&Ht.push(k(Ht)+"rotate("+Dt+d)}(pt.rotate,Dt.rotate,Ht,Ut),function Se(pt,Dt,Ht,Ut){pt!==Dt?Ut.push({i:Ht.push(k(Ht)+"skewX(",null,d)-2,x:_e(pt,Dt)}):Dt&&Ht.push(k(Ht)+"skewX("+Dt+d)}(pt.skewX,Dt.skewX,Ht,Ut),function ht(pt,Dt,Ht,Ut,ni,bi){if(pt!==Ht||Dt!==Ut){var zi=ni.push(k(ni)+"scale(",null,",",null,")");bi.push({i:zi-4,x:_e(pt,Ht)},{i:zi-2,x:_e(Dt,Ut)})}else(1!==Ht||1!==Ut)&&ni.push(k(ni)+"scale("+Ht+","+Ut+")")}(pt.scaleX,pt.scaleY,Dt.scaleX,Dt.scaleY,Ht,Ut),pt=Dt=null,function(ni){for(var di,bi=-1,zi=Ut.length;++bi=0&&(T=T.slice(0,n)),!T||"start"===T})}(T)?Et:It;return function(){var oe=H(this,f),Se=oe.on;Se!==d&&(k=(d=Se).copy()).on(T,n),oe.on=k}}var Ye=qi.prototype.constructor;function $e(f){return function(){this.style.removeProperty(f)}}function Ei(f,T,n){return function(d){this.style.setProperty(f,T.call(this,d),n)}}function an(f,T,n){var d,k;function H(){var oe=T.apply(this,arguments);return oe!==k&&(d=(k=oe)&&Ei(f,oe,n)),d}return H._value=T,H}function so(f){return function(T){this.textContent=f.call(this,T)}}function ea(f){var T,n;function d(){var k=f.apply(this,arguments);return k!==n&&(T=(n=k)&&so(k)),T}return d._value=f,d}var bs=0;function Ea(f,T,n,d){this._groups=f,this._parents=T,this._name=n,this._id=d}function yo(){return++bs}var oo=qi.prototype;Ea.prototype=function Ol(f){return qi().transition(f)}.prototype={constructor:Ea,select:function rl(f){var T=this._name,n=this._id;"function"!=typeof f&&(f=s(f));for(var d=this._groups,k=d.length,H=new Array(k),oe=0;oe2&&d.state<5,d.state=6,d.timer.stop(),d.on.call(k?"interrupt":"cancel",f,f.__data__,d.index,d.group),delete n[oe]):H=!1;H&&delete f.__transition}}(this,f)})},qi.prototype.transition=function Pa(f){var T,n;f instanceof Ea?(T=f._id,f=f._name):(T=yo(),(n=ko).time=Nn(),f=null==f?null:f+"");for(var d=this._groups,k=d.length,H=0;HT?1:f>=T?0:NaN}function qs(f){let T=f,n=f;function d(oe,Se,ht,pt){for(null==ht&&(ht=0),null==pt&&(pt=oe.length);ht>>1;n(oe[Dt],Se)<0?ht=Dt+1:pt=Dt}return ht}return 1===f.length&&(T=(oe,Se)=>f(oe)-Se,n=function l1(f){return(T,n)=>Nl(f(T),n)}(f)),{left:d,center:function H(oe,Se,ht,pt){null==ht&&(ht=0),null==pt&&(pt=oe.length);const Dt=d(oe,Se,ht,pt-1);return Dt>ht&&T(oe[Dt-1],Se)>-T(oe[Dt],Se)?Dt-1:Dt},right:function k(oe,Se,ht,pt){for(null==ht&&(ht=0),null==pt&&(pt=oe.length);ht>>1;n(oe[Dt],Se)>0?pt=Dt:ht=Dt+1}return ht}}}["w","e"].map(js),["n","s"].map(js),["n","w","e","s","nw","ne","sw","se"].map(js);var pc=Math.sqrt(50),mc=Math.sqrt(10),gc=Math.sqrt(2);function Rl(f,T,n){var d=(T-f)/Math.max(0,n),k=Math.floor(Math.log(d)/Math.LN10),H=d/Math.pow(10,k);return k>=0?(H>=pc?10:H>=mc?5:H>=gc?2:1)*Math.pow(10,k):-Math.pow(10,-k)/(H>=pc?10:H>=mc?5:H>=gc?2:1)}function Fo(f,T,n){var d=Math.abs(T-f)/Math.max(0,n),k=Math.pow(10,Math.floor(Math.log(d)/Math.LN10)),H=d/k;return H>=pc?k*=10:H>=mc?k*=5:H>=gc&&(k*=2),T0))return ht;do{ht.push(pt=new Date(+H)),T(H,Se),f(H)}while(pt=oe)for(;f(oe),!H(oe);)oe.setTime(oe-1)},function(oe,Se){if(oe>=oe)if(Se<0)for(;++Se<=0;)for(;T(oe,-1),!H(oe););else for(;--Se>=0;)for(;T(oe,1),!H(oe););})},n&&(k.count=function(H,oe){return Fl.setTime(+H),yc.setTime(+oe),f(Fl),f(yc),Math.floor(n(Fl,yc))},k.every=function(H){return H=Math.floor(H),isFinite(H)&&H>0?H>1?k.filter(d?function(oe){return d(oe)%H==0}:function(oe){return k.count(0,oe)%H==0}):k:null}),k}var ll=ta(function(){},function(f,T){f.setTime(+f+T)},function(f,T){return T-f});ll.every=function(f){return f=Math.floor(f),isFinite(f)&&f>0?f>1?ta(function(T){T.setTime(Math.floor(T/f)*f)},function(T,n){T.setTime(+T+n*f)},function(T,n){return(n-T)/f}):ll:null};const v0=ll;const cl=ta(function(f){f.setTime(f-f.getMilliseconds())},function(f,T){f.setTime(+f+T*co)},function(f,T){return(T-f)/co},function(f){return f.getUTCSeconds()});const u1=ta(function(f){f.setTime(f-f.getMilliseconds()-f.getSeconds()*co)},function(f,T){f.setTime(+f+T*za)},function(f,T){return(T-f)/za},function(f){return f.getMinutes()});const Ho=ta(function(f){f.setTime(f-f.getMilliseconds()-f.getSeconds()*co-f.getMinutes()*za)},function(f,T){f.setTime(+f+T*Cs)},function(f,T){return(T-f)/Cs},function(f){return f.getHours()});const Ks=ta(f=>f.setHours(0,0,0,0),(f,T)=>f.setDate(f.getDate()+T),(f,T)=>(T-f-(T.getTimezoneOffset()-f.getTimezoneOffset())*za)/Ns,f=>f.getDate()-1);function ho(f){return ta(function(T){T.setDate(T.getDate()-(T.getDay()+7-f)%7),T.setHours(0,0,0,0)},function(T,n){T.setDate(T.getDate()+7*n)},function(T,n){return(n-T-(n.getTimezoneOffset()-T.getTimezoneOffset())*za)/_c})}var Uo=ho(0),xo=ho(1),Zo=(ho(2),ho(3),ho(4));const Yo=(ho(5),ho(6),ta(function(f){f.setDate(1),f.setHours(0,0,0,0)},function(f,T){f.setMonth(f.getMonth()+T)},function(f,T){return T.getMonth()-f.getMonth()+12*(T.getFullYear()-f.getFullYear())},function(f){return f.getMonth()}));var Rs=ta(function(f){f.setMonth(0,1),f.setHours(0,0,0,0)},function(f,T){f.setFullYear(f.getFullYear()+T)},function(f,T){return T.getFullYear()-f.getFullYear()},function(f){return f.getFullYear()});Rs.every=function(f){return isFinite(f=Math.floor(f))&&f>0?ta(function(T){T.setFullYear(Math.floor(T.getFullYear()/f)*f),T.setMonth(0,1),T.setHours(0,0,0,0)},function(T,n){T.setFullYear(T.getFullYear()+n*f)}):null};const uo=Rs;const Hl=ta(function(f){f.setUTCSeconds(0,0)},function(f,T){f.setTime(+f+T*za)},function(f,T){return(T-f)/za},function(f){return f.getUTCMinutes()});const B=ta(function(f){f.setUTCMinutes(0,0,0)},function(f,T){f.setTime(+f+T*Cs)},function(f,T){return(T-f)/Cs},function(f){return f.getUTCHours()});const fi=ta(function(f){f.setUTCHours(0,0,0,0)},function(f,T){f.setUTCDate(f.getUTCDate()+T)},function(f,T){return(T-f)/Ns},function(f){return f.getUTCDate()-1});function tr(f){return ta(function(T){T.setUTCDate(T.getUTCDate()-(T.getUTCDay()+7-f)%7),T.setUTCHours(0,0,0,0)},function(T,n){T.setUTCDate(T.getUTCDate()+7*n)},function(T,n){return(n-T)/_c})}var Fn=tr(0),Br=tr(1),Na=(tr(2),tr(3),tr(4));const B4=(tr(5),tr(6),ta(function(f){f.setUTCDate(1),f.setUTCHours(0,0,0,0)},function(f,T){f.setUTCMonth(f.getUTCMonth()+T)},function(f,T){return T.getUTCMonth()-f.getUTCMonth()+12*(T.getUTCFullYear()-f.getUTCFullYear())},function(f){return f.getUTCMonth()}));var hl=ta(function(f){f.setUTCMonth(0,1),f.setUTCHours(0,0,0,0)},function(f,T){f.setUTCFullYear(f.getUTCFullYear()+T)},function(f,T){return T.getUTCFullYear()-f.getUTCFullYear()},function(f){return f.getUTCFullYear()});hl.every=function(f){return isFinite(f=Math.floor(f))&&f>0?ta(function(T){T.setUTCFullYear(Math.floor(T.getUTCFullYear()/f)*f),T.setUTCMonth(0,1),T.setUTCHours(0,0,0,0)},function(T,n){T.setUTCFullYear(T.getUTCFullYear()+n*f)}):null};const dl=hl;function zl(f,T,n,d,k,H){const oe=[[cl,1,co],[cl,5,5e3],[cl,15,15e3],[cl,30,3e4],[H,1,za],[H,5,5*za],[H,15,15*za],[H,30,30*za],[k,1,Cs],[k,3,3*Cs],[k,6,6*Cs],[k,12,12*Cs],[d,1,Ns],[d,2,2*Ns],[n,1,_c],[T,1,h1],[T,3,3*h1],[f,1,vc]];function ht(pt,Dt,Ht){const Ut=Math.abs(Dt-pt)/Ht,ni=qs(([,,di])=>di).right(oe,Ut);if(ni===oe.length)return f.every(Fo(pt/vc,Dt/vc,Ht));if(0===ni)return v0.every(Math.max(Fo(pt,Dt,Ht),1));const[bi,zi]=oe[Ut/oe[ni-1][2][T.toLowerCase(),n]))}function Ah(f,T,n){var d=Qa.exec(T.slice(n,n+1));return d?(f.w=+d[0],n+d[0].length):-1}function y1(f,T,n){var d=Qa.exec(T.slice(n,n+1));return d?(f.u=+d[0],n+d[0].length):-1}function Eh(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.U=+d[0],n+d[0].length):-1}function E0(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.V=+d[0],n+d[0].length):-1}function af(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.W=+d[0],n+d[0].length):-1}function ua(f,T,n){var d=Qa.exec(T.slice(n,n+4));return d?(f.y=+d[0],n+d[0].length):-1}function T0(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.y=+d[0]+(+d[0]>68?1900:2e3),n+d[0].length):-1}function sf(f,T,n){var d=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(T.slice(n,n+6));return d?(f.Z=d[1]?0:-(d[2]+(d[3]||"00")),n+d[0].length):-1}function S0(f,T,n){var d=Qa.exec(T.slice(n,n+1));return d?(f.q=3*d[0]-3,n+d[0].length):-1}function Th(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.m=d[0]-1,n+d[0].length):-1}function Sh(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.d=+d[0],n+d[0].length):-1}function lf(f,T,n){var d=Qa.exec(T.slice(n,n+3));return d?(f.m=0,f.d=+d[0],n+d[0].length):-1}function Dh(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.H=+d[0],n+d[0].length):-1}function cf(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.M=+d[0],n+d[0].length):-1}function hf(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.S=+d[0],n+d[0].length):-1}function Z4(f,T,n){var d=Qa.exec(T.slice(n,n+3));return d?(f.L=+d[0],n+d[0].length):-1}function V4(f,T,n){var d=Qa.exec(T.slice(n,n+6));return d?(f.L=Math.floor(d[0]/1e3),n+d[0].length):-1}function wc(f,T,n){var d=U4.exec(T.slice(n,n+1));return d?n+d[0].length:-1}function ms(f,T,n){var d=Qa.exec(T.slice(n));return d?(f.Q=+d[0],n+d[0].length):-1}function D0(f,T,n){var d=Qa.exec(T.slice(n));return d?(f.s=+d[0],n+d[0].length):-1}function L0(f,T){return or(f.getDate(),T,2)}function Lh(f,T){return or(f.getHours(),T,2)}function ss(f,T){return or(f.getHours()%12||12,T,2)}function Ac(f,T){return or(1+Ks.count(uo(f),f),T,3)}function b1(f,T){return or(f.getMilliseconds(),T,3)}function df(f,T){return b1(f,T)+"000"}function uf(f,T){return or(f.getMonth()+1,T,2)}function Oh(f,T){return or(f.getMinutes(),T,2)}function ff(f,T){return or(f.getSeconds(),T,2)}function Ih(f){var T=f.getDay();return 0===T?7:T}function Ph(f,T){return or(Uo.count(uo(f)-1,f),T,2)}function O0(f){var T=f.getDay();return T>=4||0===T?Zo(f):Zo.ceil(f)}function pf(f,T){return f=O0(f),or(Zo.count(uo(f),f)+(4===uo(f).getDay()),T,2)}function mf(f){return f.getDay()}function gf(f,T){return or(xo.count(uo(f)-1,f),T,2)}function I0(f,T){return or(f.getFullYear()%100,T,2)}function _f(f,T){return or((f=O0(f)).getFullYear()%100,T,2)}function vf(f,T){return or(f.getFullYear()%1e4,T,4)}function G4(f,T){var n=f.getDay();return or((f=n>=4||0===n?Zo(f):Zo.ceil(f)).getFullYear()%1e4,T,4)}function P0(f){var T=f.getTimezoneOffset();return(T>0?"-":(T*=-1,"+"))+or(T/60|0,"0",2)+or(T%60,"0",2)}function kh(f,T){return or(f.getUTCDate(),T,2)}function yf(f,T){return or(f.getUTCHours(),T,2)}function Ec(f,T){return or(f.getUTCHours()%12||12,T,2)}function bf(f,T){return or(1+fi.count(dl(f),f),T,3)}function Nh(f,T){return or(f.getUTCMilliseconds(),T,3)}function xf(f,T){return Nh(f,T)+"000"}function Cf(f,T){return or(f.getUTCMonth()+1,T,2)}function Mf(f,T){return or(f.getUTCMinutes(),T,2)}function Rh(f,T){return or(f.getUTCSeconds(),T,2)}function wf(f){var T=f.getUTCDay();return 0===T?7:T}function Af(f,T){return or(Fn.count(dl(f)-1,f),T,2)}function Fh(f){var T=f.getUTCDay();return T>=4||0===T?Na(f):Na.ceil(f)}function Ef(f,T){return f=Fh(f),or(Na.count(dl(f),f)+(4===dl(f).getUTCDay()),T,2)}function Bh(f){return f.getUTCDay()}function Hh(f,T){return or(Br.count(dl(f)-1,f),T,2)}function Tf(f,T){return or(f.getUTCFullYear()%100,T,2)}function Sf(f,T){return or((f=Fh(f)).getUTCFullYear()%100,T,2)}function Ul(f,T){return or(f.getUTCFullYear()%1e4,T,4)}function po(f,T){var n=f.getUTCDay();return or((f=n>=4||0===n?Na(f):Na.ceil(f)).getUTCFullYear()%1e4,T,4)}function Y4(){return"+0000"}function Df(){return"%"}function k0(f){return+f}function Lf(f){return Math.floor(+f/1e3)}function N0(f){return null===f?NaN:+f}!function Tc(f){(function A0(f){var T=f.dateTime,n=f.date,d=f.time,k=f.periods,H=f.days,oe=f.shortDays,Se=f.months,ht=f.shortMonths,pt=Cc(k),Dt=Mc(k),Ht=Cc(H),Ut=Mc(H),ni=Cc(oe),bi=Mc(oe),zi=Cc(Se),di=Mc(Se),Vi=Cc(ht),Gi=Mc(ht),Qi={a:function _r(ln){return oe[ln.getDay()]},A:function Za(ln){return H[ln.getDay()]},b:function Xn(ln){return ht[ln.getMonth()]},B:function fa(ln){return Se[ln.getMonth()]},c:null,d:L0,e:L0,f:df,g:_f,G:G4,H:Lh,I:ss,j:Ac,L:b1,m:uf,M:Oh,p:function Qr(ln){return k[+(ln.getHours()>=12)]},q:function na(ln){return 1+~~(ln.getMonth()/3)},Q:k0,s:Lf,S:ff,u:Ih,U:Ph,V:pf,w:mf,W:gf,x:null,X:null,y:I0,Y:vf,Z:P0,"%":Df},cn={a:function Tl(ln){return oe[ln.getUTCDay()]},A:function _s(ln){return H[ln.getUTCDay()]},b:function el(ln){return ht[ln.getUTCMonth()]},B:function vo(ln){return Se[ln.getUTCMonth()]},c:null,d:kh,e:kh,f:xf,g:Sf,G:po,H:yf,I:Ec,j:bf,L:Nh,m:Cf,M:Mf,p:function Va(ln){return k[+(ln.getUTCHours()>=12)]},q:function Sl(ln){return 1+~~(ln.getUTCMonth()/3)},Q:k0,s:Lf,S:Rh,u:wf,U:Af,V:Ef,w:Bh,W:Hh,x:null,X:null,y:Tf,Y:Ul,Z:Y4,"%":Df},fn={a:function cr(ln,Bn,nr){var ji=ni.exec(Bn.slice(nr));return ji?(ln.w=bi.get(ji[0].toLowerCase()),nr+ji[0].length):-1},A:function hn(ln,Bn,nr){var ji=Ht.exec(Bn.slice(nr));return ji?(ln.w=Ut.get(ji[0].toLowerCase()),nr+ji[0].length):-1},b:function bn(ln,Bn,nr){var ji=Vi.exec(Bn.slice(nr));return ji?(ln.m=Gi.get(ji[0].toLowerCase()),nr+ji[0].length):-1},B:function mn(ln,Bn,nr){var ji=zi.exec(Bn.slice(nr));return ji?(ln.m=di.get(ji[0].toLowerCase()),nr+ji[0].length):-1},c:function hr(ln,Bn,nr){return qn(ln,T,Bn,nr)},d:Sh,e:Sh,f:V4,g:T0,G:ua,H:Dh,I:Dh,j:lf,L:Z4,m:Th,M:cf,p:function zr(ln,Bn,nr){var ji=pt.exec(Bn.slice(nr));return ji?(ln.p=Dt.get(ji[0].toLowerCase()),nr+ji[0].length):-1},q:S0,Q:ms,s:D0,S:hf,u:y1,U:Eh,V:E0,w:Ah,W:af,x:function Sa(ln,Bn,nr){return qn(ln,n,Bn,nr)},X:function br(ln,Bn,nr){return qn(ln,d,Bn,nr)},y:T0,Y:ua,Z:sf,"%":wc};function en(ln,Bn){return function(nr){var Is,Hn,Ca,ji=[],Da=-1,Dr=0,Os=ln.length;for(nr instanceof Date||(nr=new Date(+nr));++Da53)return null;"w"in ji||(ji.w=1),"Z"in ji?(Os=(Dr=Mh(ul(ji.y,0,1))).getUTCDay(),Dr=Os>4||0===Os?Br.ceil(Dr):Br(Dr),Dr=fi.offset(Dr,7*(ji.V-1)),ji.y=Dr.getUTCFullYear(),ji.m=Dr.getUTCMonth(),ji.d=Dr.getUTCDate()+(ji.w+6)%7):(Os=(Dr=Ch(ul(ji.y,0,1))).getDay(),Dr=Os>4||0===Os?xo.ceil(Dr):xo(Dr),Dr=Ks.offset(Dr,7*(ji.V-1)),ji.y=Dr.getFullYear(),ji.m=Dr.getMonth(),ji.d=Dr.getDate()+(ji.w+6)%7)}else("W"in ji||"U"in ji)&&("w"in ji||(ji.w="u"in ji?ji.u%7:"W"in ji?1:0),Os="Z"in ji?Mh(ul(ji.y,0,1)).getUTCDay():Ch(ul(ji.y,0,1)).getDay(),ji.m=0,ji.d="W"in ji?(ji.w+6)%7+7*ji.W-(Os+5)%7:ji.w+7*ji.U-(Os+6)%7);return"Z"in ji?(ji.H+=ji.Z/100|0,ji.M+=ji.Z%100,Mh(ji)):Ch(ji)}}function qn(ln,Bn,nr,ji){for(var Is,Hn,Da=0,Dr=Bn.length,Os=nr.length;Da=Os)return-1;if(37===(Is=Bn.charCodeAt(Da++))){if(Is=Bn.charAt(Da++),!(Hn=fn[Is in v1?Bn.charAt(Da++):Is])||(ji=Hn(ln,nr,ji))<0)return-1}else if(Is!=nr.charCodeAt(ji++))return-1}return ji}return Qi.x=en(n,Qi),Qi.X=en(d,Qi),Qi.c=en(T,Qi),cn.x=en(n,cn),cn.X=en(d,cn),cn.c=en(T,cn),{format:function(ln){var Bn=en(ln+="",Qi);return Bn.toString=function(){return ln},Bn},parse:function(ln){var Bn=gr(ln+="",!1);return Bn.toString=function(){return ln},Bn},utcFormat:function(ln){var Bn=en(ln+="",cn);return Bn.toString=function(){return ln},Bn},utcParse:function(ln){var Bn=gr(ln+="",!0);return Bn.toString=function(){return ln},Bn}}})(f)}({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 R0=qs(Nl).right,fl=(qs(N0),R0);function F0(f,T){return f=+f,T=+T,function(n){return Math.round(f*(1-n)+T*n)}}function Pf(f){return+f}var w1=[0,1];function Zl(f){return f}function B0(f,T){return(T-=f=+f)?function(n){return(n-f)/T}:function Zh(f){return function(){return f}}(isNaN(T)?NaN:.5)}function Nf(f,T,n){var d=f[0],k=f[1],H=T[0],oe=T[1];return kT&&(n=f,f=T,T=n),function(d){return Math.max(f,Math.min(T,d))}}(f[0],f[Ut-1])),Se=Ut>2?Rf:Nf,ht=pt=null,Ht}function Ht(Ut){return null==Ut||isNaN(Ut=+Ut)?H:(ht||(ht=Se(f.map(d),T,n)))(d(oe(Ut)))}return Ht.invert=function(Ut){return oe(k((pt||(pt=Se(T,f.map(d),_e)))(Ut)))},Ht.domain=function(Ut){return arguments.length?(f=Array.from(Ut,Pf),Dt()):f.slice()},Ht.range=function(Ut){return arguments.length?(T=Array.from(Ut),Dt()):T.slice()},Ht.rangeRound=function(Ut){return T=Array.from(Ut),n=F0,Dt()},Ht.clamp=function(Ut){return arguments.length?(oe=!!Ut||Zl,Dt()):oe!==Zl},Ht.interpolate=function(Ut){return arguments.length?(n=Ut,Dt()):n},Ht.unknown=function(Ut){return arguments.length?(H=Ut,Ht):H},function(Ut,ni){return d=Ut,k=ni,Dt()}}()(Zl,Zl)}function pl(f,T){switch(arguments.length){case 0:break;case 1:this.range(f);break;default:this.range(T).domain(f)}return this}var Dc,z0=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Sc(f){if(!(T=z0.exec(f)))throw new Error("invalid format: "+f);var T;return new E1({fill:T[1],align:T[2],sign:T[3],symbol:T[4],zero:T[5],width:T[6],comma:T[7],precision:T[8]&&T[8].slice(1),trim:T[9],type:T[10]})}function E1(f){this.fill=void 0===f.fill?" ":f.fill+"",this.align=void 0===f.align?">":f.align+"",this.sign=void 0===f.sign?"-":f.sign+"",this.symbol=void 0===f.symbol?"":f.symbol+"",this.zero=!!f.zero,this.width=void 0===f.width?void 0:+f.width,this.comma=!!f.comma,this.precision=void 0===f.precision?void 0:+f.precision,this.trim=!!f.trim,this.type=void 0===f.type?"":f.type+""}function S1(f,T){if((n=(f=T?f.toExponential(T-1):f.toExponential()).indexOf("e"))<0)return null;var n,d=f.slice(0,n);return[d.length>1?d[0]+d.slice(2):d,+f.slice(n+1)]}function ml(f){return(f=S1(Math.abs(f)))?f[1]:NaN}function V0(f,T){var n=S1(f,T);if(!n)return f+"";var d=n[0],k=n[1];return k<0?"0."+new Array(-k).join("0")+d:d.length>k+1?d.slice(0,k+1)+"."+d.slice(k+1):d+new Array(k-d.length+2).join("0")}Sc.prototype=E1.prototype,E1.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 L1={"%":(f,T)=>(100*f).toFixed(T),b:f=>Math.round(f).toString(2),c:f=>f+"",d:function T1(f){return Math.abs(f=Math.round(f))>=1e21?f.toLocaleString("en").replace(/,/g,""):f.toString(10)},e:(f,T)=>f.toExponential(T),f:(f,T)=>f.toFixed(T),g:(f,T)=>f.toPrecision(T),o:f=>Math.round(f).toString(8),p:(f,T)=>V0(100*f,T),r:V0,s:function D1(f,T){var n=S1(f,T);if(!n)return f+"";var d=n[0],k=n[1],H=k-(Dc=3*Math.max(-8,Math.min(8,Math.floor(k/3))))+1,oe=d.length;return H===oe?d:H>oe?d+new Array(H-oe+1).join("0"):H>0?d.slice(0,H)+"."+d.slice(H):"0."+new Array(1-H).join("0")+S1(f,Math.max(0,T+H-1))[0]},X:f=>Math.round(f).toString(16).toUpperCase(),x:f=>Math.round(f).toString(16)};function G0(f){return f}var Lc,Y0,Kh,O1=Array.prototype.map,Vl=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Xh(f){var T=f.domain;return f.ticks=function(n){var d=T();return function c1(f,T,n){var d,H,oe,Se,k=-1;if(n=+n,(f=+f)==(T=+T)&&n>0)return[f];if((d=T0){let ht=Math.round(f/Se),pt=Math.round(T/Se);for(ht*SeT&&--pt,oe=new Array(H=pt-ht+1);++kT&&--pt,oe=new Array(H=pt-ht+1);++k0;){if((pt=Rl(oe,Se,n))===ht)return d[k]=oe,d[H]=Se,T(d);if(pt>0)oe=Math.floor(oe/pt)*pt,Se=Math.ceil(Se/pt)*pt;else{if(!(pt<0))break;oe=Math.ceil(oe*pt)/pt,Se=Math.floor(Se*pt)/pt}ht=pt}return f},f}function Ar(){var f=A1();return f.copy=function(){return Vh(f,Ar())},pl.apply(f,arguments),Xh(f)}function j0(f,T,n){f=+f,T=+T,n=(k=arguments.length)<2?(T=f,f=0,1):k<3?1:+n;for(var d=-1,k=0|Math.max(0,Math.ceil((T-f)/n)),H=new Array(k);++d0&&Se>0&&(ht+Se+1>d&&(Se=Math.max(1,d-ht)),H.push(n.substring(k-=Se,k+Se)),!((ht+=Se+1)>d));)Se=f[oe=(oe+1)%f.length];return H.reverse().join(T)}}(O1.call(f.grouping,Number),f.thousands+""),n=void 0===f.currency?"":f.currency[0]+"",d=void 0===f.currency?"":f.currency[1]+"",k=void 0===f.decimal?".":f.decimal+"",H=void 0===f.numerals?G0:function U0(f){return function(T){return T.replace(/[0-9]/g,function(n){return f[+n]})}}(O1.call(f.numerals,String)),oe=void 0===f.percent?"%":f.percent+"",Se=void 0===f.minus?"\u2212":f.minus+"",ht=void 0===f.nan?"NaN":f.nan+"";function pt(Ht){var Ut=(Ht=Sc(Ht)).fill,ni=Ht.align,bi=Ht.sign,zi=Ht.symbol,di=Ht.zero,Vi=Ht.width,Gi=Ht.comma,Qi=Ht.precision,cn=Ht.trim,fn=Ht.type;"n"===fn?(Gi=!0,fn="g"):L1[fn]||(void 0===Qi&&(Qi=12),cn=!0,fn="g"),(di||"0"===Ut&&"="===ni)&&(di=!0,Ut="0",ni="=");var en="$"===zi?n:"#"===zi&&/[boxX]/.test(fn)?"0"+fn.toLowerCase():"",gr="$"===zi?d:/[%p]/.test(fn)?oe:"",qn=L1[fn],zr=/[defgprs%]/.test(fn);function cr(hn){var hr,Sa,br,bn=en,mn=gr;if("c"===fn)mn=qn(hn)+mn,hn="";else{var _r=(hn=+hn)<0||1/hn<0;if(hn=isNaN(hn)?ht:qn(Math.abs(hn),Qi),cn&&(hn=function Z0(f){e:for(var k,T=f.length,n=1,d=-1;n0&&(d=0)}return d>0?f.slice(0,d)+f.slice(k+1):f}(hn)),_r&&0==+hn&&"+"!==bi&&(_r=!1),bn=(_r?"("===bi?bi:Se:"-"===bi||"("===bi?"":bi)+bn,mn=("s"===fn?Vl[8+Dc/3]:"")+mn+(_r&&"("===bi?")":""),zr)for(hr=-1,Sa=hn.length;++hr(br=hn.charCodeAt(hr))||br>57){mn=(46===br?k+hn.slice(hr+1):hn.slice(hr))+mn,hn=hn.slice(0,hr);break}}Gi&&!di&&(hn=T(hn,1/0));var Za=bn.length+hn.length+mn.length,Xn=Za>1)+bn+hn+mn+Xn.slice(Za);break;default:hn=Xn+bn+hn+mn}return H(hn)}return Qi=void 0===Qi?6:/[gprs]/.test(fn)?Math.max(1,Math.min(21,Qi)):Math.max(0,Math.min(20,Qi)),cr.toString=function(){return Ht+""},cr}return{format:pt,formatPrefix:function Dt(Ht,Ut){var ni=pt(((Ht=Sc(Ht)).type="f",Ht)),bi=3*Math.max(-8,Math.min(8,Math.floor(ml(Ut)/3))),zi=Math.pow(10,-bi),di=Vl[8+bi/3];return function(Vi){return ni(zi*Vi)+di}}}}(f),Y0=Lc.format,Kh=Lc.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});const $h=Symbol("implicit");function I1(){var f=new Map,T=[],n=[],d=$h;function k(H){var oe=H+"",Se=f.get(oe);if(!Se){if(d!==$h)return d;f.set(oe,Se=T.push(H))}return n[(Se-1)%n.length]}return k.domain=function(H){if(!arguments.length)return T.slice();T=[],f=new Map;for(const oe of H){const Se=oe+"";f.has(Se)||f.set(Se,T.push(oe))}return k},k.range=function(H){return arguments.length?(n=Array.from(H),k):n.slice()},k.unknown=function(H){return arguments.length?(d=H,k):d},k.copy=function(){return I1(T,n).unknown(d)},pl.apply(k,arguments),k}function Er(){var H,oe,f=I1().unknown(void 0),T=f.domain,n=f.range,d=0,k=1,Se=!1,ht=0,pt=0,Dt=.5;function Ht(){var Ut=T().length,ni=k=1)return+n(f[d-1],d-1,f);var d,k=(d-1)*T,H=Math.floor(k),oe=+n(f[H],H,f);return oe+(+n(f[H+1],H+1,f)-oe)*(k-H)}}function id(){var d,f=[],T=[],n=[];function k(){var oe=0,Se=Math.max(1,T.length);for(n=new Array(Se-1);++oe0?n[Se-1]:f[0],Se=0;)T+=n[d].value;else T=1;f.value=T}function vd(f,T){f instanceof Map?(f=[void 0,f],void 0===T&&(T=n3)):void 0===T&&(T=i3);for(var d,H,oe,Se,ht,n=new Bc(f),k=[n];d=k.pop();)if((oe=T(d.data))&&(ht=(oe=Array.from(oe)).length))for(d.children=oe,Se=ht-1;Se>=0;--Se)k.push(H=oe[Se]=new Bc(oe[Se])),H.parent=d,H.depth=d.depth+1;return n.eachBefore(e6)}function i3(f){return f.children}function n3(f){return Array.isArray(f)?f[1]:null}function yd(f){void 0!==f.data.value&&(f.value=f.data.value),f.data=f.data.data}function e6(f){var T=0;do{f.height=T}while((f=f.parent)&&f.height<++T)}function Bc(f){this.data=f,this.depth=this.height=0,this.parent=null}ws.prototype=function q0(){return new ws}.prototype={constructor:ws,moveTo:function(f,T){this._+="M"+(this._x0=this._x1=+f)+","+(this._y0=this._y1=+T)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(f,T){this._+="L"+(this._x1=+f)+","+(this._y1=+T)},quadraticCurveTo:function(f,T,n,d){this._+="Q"+ +f+","+ +T+","+(this._x1=+n)+","+(this._y1=+d)},bezierCurveTo:function(f,T,n,d,k,H){this._+="C"+ +f+","+ +T+","+ +n+","+ +d+","+(this._x1=+k)+","+(this._y1=+H)},arcTo:function(f,T,n,d,k){var H=this._x1,oe=this._y1,Se=(n=+n)-(f=+f),ht=(d=+d)-(T=+T),pt=H-f,Dt=oe-T,Ht=pt*pt+Dt*Dt;if((k=+k)<0)throw new Error("negative radius: "+k);if(null===this._x1)this._+="M"+(this._x1=f)+","+(this._y1=T);else if(Ht>Ko)if(Math.abs(Dt*Se-ht*pt)>Ko&&k){var Ut=n-H,ni=d-oe,bi=Se*Se+ht*ht,zi=Ut*Ut+ni*ni,di=Math.sqrt(bi),Vi=Math.sqrt(Ht),Gi=k*Math.tan((R1-Math.acos((bi+Ht-zi)/(2*di*Vi)))/2),Qi=Gi/Vi,cn=Gi/di;Math.abs(Qi-1)>Ko&&(this._+="L"+(f+Qi*pt)+","+(T+Qi*Dt)),this._+="A"+k+","+k+",0,0,"+ +(Dt*Ut>pt*ni)+","+(this._x1=f+cn*Se)+","+(this._y1=T+cn*ht)}else this._+="L"+(this._x1=f)+","+(this._y1=T)},arc:function(f,T,n,d,k,H){f=+f,T=+T,H=!!H;var oe=(n=+n)*Math.cos(d),Se=n*Math.sin(d),ht=f+oe,pt=T+Se,Dt=1^H,Ht=H?d-k:k-d;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+ht+","+pt:(Math.abs(this._x1-ht)>Ko||Math.abs(this._y1-pt)>Ko)&&(this._+="L"+ht+","+pt),n&&(Ht<0&&(Ht=Ht%F1+F1),Ht>B1?this._+="A"+n+","+n+",0,1,"+Dt+","+(f-oe)+","+(T-Se)+"A"+n+","+n+",0,1,"+Dt+","+(this._x1=ht)+","+(this._y1=pt):Ht>Ko&&(this._+="A"+n+","+n+",0,"+ +(Ht>=R1)+","+Dt+","+(this._x1=f+n*Math.cos(k))+","+(this._y1=T+n*Math.sin(k))))},rect:function(f,T,n,d){this._+="M"+(this._x0=this._x1=+f)+","+(this._y0=this._y1=+T)+"h"+ +n+"v"+ +d+"h"+-n+"Z"},toString:function(){return this._}},Ic.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Gl(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(f,T){switch(f=+f,T=+T,this._point){case 0:this._point=1,this._line?this._context.lineTo(f,T):this._context.moveTo(f,T);break;case 1:this._point=2,this._x1=f,this._y1=T;break;case 2:this._point=3;default:Gl(this,f,T)}this._x0=this._x1,this._x1=this._x2,this._x2=f,this._y0=this._y1,this._y1=this._y2,this._y2=T}},function f(T){function n(d){return new Ic(d,T)}return n.tension=function(d){return f(+d)},n}(0),Pc.prototype={areaStart:Uf,areaEnd:Uf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(f,T){switch(f=+f,T=+T,this._point){case 0:this._point=1,this._x3=f,this._y3=T;break;case 1:this._point=2,this._context.moveTo(this._x4=f,this._y4=T);break;case 2:this._point=3,this._x5=f,this._y5=T;break;default:Gl(this,f,T)}this._x0=this._x1,this._x1=this._x2,this._x2=f,this._y0=this._y1,this._y1=this._y2,this._y2=T}},function f(T){function n(d){return new Pc(d,T)}return n.tension=function(d){return f(+d)},n}(0),function sd(f){function T(n){return new ad(f(n))}return T._curve=f,T}(function Sn(f){return new nd(f)}),ad.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(f,T){this._curve.point(T*Math.sin(f),T*-Math.cos(f))}},Math,Math,Math,Math,Math,Math,Math,Math,Math,m(7293),function f(T){function n(d,k,H,oe,Se){!function Wl(f,T,n,d,k,H){for(var ht,pt,ni,bi,di,Vi,Gi,Qi,cn,fn,en,oe=[],Se=T.children,Dt=0,Ht=0,Ut=Se.length,zi=T.value;DtGi&&(Gi=pt),en=di*di*fn,(Qi=Math.max(Gi/en,en/Vi))>cn){di-=pt;break}cn=Qi}oe.push(ht={value:di,dice:ni1?d:1)},n}((1+Math.sqrt(5))/2),Bc.prototype=vd.prototype={constructor:Bc,count:function c2(){return this.eachAfter(ud)},each:function h2(f,T){let n=-1;for(const d of this)f.call(T,d,++n,this);return this},eachAfter:function Fc(f,T){for(var H,oe,Se,n=this,d=[n],k=[],ht=-1;n=d.pop();)if(k.push(n),H=n.children)for(oe=0,Se=H.length;oe=0;--H)d.push(k[H]);return this},find:function Kf(f,T){let n=-1;for(const d of this)if(f.call(T,d,++n,this))return d},sum:function pd(f){return this.eachAfter(function(T){for(var n=+f(T.data)||0,d=T.children,k=d&&d.length;--k>=0;)n+=d[k].value;T.value=n})},sort:function t3(f){return this.eachBefore(function(T){T.children&&T.children.sort(f)})},path:function md(f){for(var T=this,n=function gd(f,T){if(f===T)return f;var n=f.ancestors(),d=T.ancestors(),k=null;for(f=n.pop(),T=d.pop();f===T;)k=f,f=n.pop(),T=d.pop();return k}(T,f),d=[T];T!==n;)d.push(T=T.parent);for(var k=d.length;f!==n;)d.splice(k,0,f),f=f.parent;return d},ancestors:function Qf(){for(var f=this,T=[f];f=f.parent;)T.push(f);return T},descendants:function _d(){return Array.from(this)},leaves:function Jf(){var f=[];return this.eachBefore(function(T){T.children||f.push(T)}),f},links:function Xf(){var f=this,T=[];return f.each(function(n){n!==f&&T.push({source:n.parent,target:n})}),T},copy:function $f(){return vd(this).eachBefore(yd)},[Symbol.iterator]:function*As(){var T,d,k,H,f=this,n=[f];do{for(T=n.reverse(),n=[];f=T.pop();)if(yield f,d=f.children)for(k=0,H=d.length;k{class f{constructor(n,d,k){this.applicationRef=n,this.componentFactoryResolver=d,this.injector=k}static setGlobalRootViewContainer(n){f.globalRootViewContainer=n}getRootViewContainer(){if(this._container)return this._container;if(f.globalRootViewContainer)return f.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(n){this._container=n}getComponentRootNode(n){return function xu(f){return f.element}(n)?n.element.nativeElement:n.hostView&&n.hostView.rootNodes.length>0?n.hostView.rootNodes[0]:n.location.nativeElement}getRootViewContainerNode(n){return this.getComponentRootNode(n)}projectComponentBindings(n,d){if(d){if(void 0!==d.inputs){const k=Object.getOwnPropertyNames(d.inputs);for(const H of k)n.instance[H]=d.inputs[H]}if(void 0!==d.outputs){const k=Object.getOwnPropertyNames(d.outputs);for(const H of k)n.instance[H]=d.outputs[H]}}return n}appendComponent(n,d={},k){k||(k=this.getRootViewContainer());const H=this.getComponentRootNode(k),oe=new v.u0(H,this.componentFactoryResolver,this.applicationRef,this.injector),Se=new v.C5(n),ht=oe.attach(Se);return this.projectComponentBindings(ht,d),ht}}return f.\u0275fac=function(n){return new(n||f)(e.LFG(e.z2F),e.LFG(e._Vd),e.LFG(e.zs3))},f.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac}),f.globalRootViewContainer=null,f})();function z2(f,T,n){n=n||{};let d,k,H,oe=null,Se=0;function ht(){Se=!1===n.leading?0:+new Date,oe=null,H=f.apply(d,k)}return function(){const pt=+new Date;!Se&&!1===n.leading&&(Se=pt);const Dt=T-(pt-Se);return d=this,k=arguments,Dt<=0?(clearTimeout(oe),oe=null,Se=pt,H=f.apply(d,k)):!oe&&!1!==n.trailing&&(oe=setTimeout(ht,Dt)),H}}function f4(f,T){return function(d,k,H){return{configurable:!0,enumerable:H.enumerable,get:function(){return Object.defineProperty(this,k,{configurable:!0,enumerable:H.enumerable,value:z2(H.value,f,T)}),this[k]}}}}var Dn=(()=>{return(f=Dn||(Dn={})).Top="top",f.Bottom="bottom",f.Left="left",f.Right="right",f.Center="center",Dn;var f})();function $1(f,T,n){return n===Dn.Top?f.top-7:n===Dn.Bottom?f.top+f.height-T.height+7:n===Dn.Center?f.top+f.height/2-T.height/2:void 0}function U2(f,T,n){return n===Dn.Left?f.left-7:n===Dn.Right?f.left+f.width-T.width+7:n===Dn.Center?f.left+f.width/2-T.width/2:void 0}class Es{static calculateVerticalAlignment(T,n,d){let k=$1(T,n,d);return k+n.height>window.innerHeight&&(k=window.innerHeight-n.height),k}static calculateVerticalCaret(T,n,d,k){let H;k===Dn.Top&&(H=T.height/2-d.height/2+7),k===Dn.Bottom&&(H=n.height-T.height/2-d.height/2-7),k===Dn.Center&&(H=n.height/2-d.height/2);const oe=$1(T,n,k);return oe+n.height>window.innerHeight&&(H+=oe+n.height-window.innerHeight),H}static calculateHorizontalAlignment(T,n,d){let k=U2(T,n,d);return k+n.width>window.innerWidth&&(k=window.innerWidth-n.width),k}static calculateHorizontalCaret(T,n,d,k){let H;k===Dn.Left&&(H=T.width/2-d.width/2+7),k===Dn.Right&&(H=n.width-T.width/2-d.width/2-7),k===Dn.Center&&(H=n.width/2-d.width/2);const oe=U2(T,n,k);return oe+n.width>window.innerWidth&&(H+=oe+n.width-window.innerWidth),H}static shouldFlip(T,n,d,k){let H=!1;return d===Dn.Right&&T.left+T.width+n.width+k>window.innerWidth&&(H=!0),d===Dn.Left&&T.left-n.width-k<0&&(H=!0),d===Dn.Top&&T.top-n.height-k<0&&(H=!0),d===Dn.Bottom&&T.top+T.height+n.height+k>window.innerHeight&&(H=!0),H}static positionCaret(T,n,d,k,H){let oe=0,Se=0;return T===Dn.Right?(Se=-7,oe=Es.calculateVerticalCaret(d,n,k,H)):T===Dn.Left?(Se=n.width,oe=Es.calculateVerticalCaret(d,n,k,H)):T===Dn.Top?(oe=n.height,Se=Es.calculateHorizontalCaret(d,n,k,H)):T===Dn.Bottom&&(oe=-7,Se=Es.calculateHorizontalCaret(d,n,k,H)),{top:oe,left:Se}}static positionContent(T,n,d,k,H){let oe=0,Se=0;return T===Dn.Right?(Se=d.left+d.width+k,oe=Es.calculateVerticalAlignment(d,n,H)):T===Dn.Left?(Se=d.left-n.width-k,oe=Es.calculateVerticalAlignment(d,n,H)):T===Dn.Top?(oe=d.top-n.height-k,Se=Es.calculateHorizontalAlignment(d,n,H)):T===Dn.Bottom&&(oe=d.top+d.height+k,Se=Es.calculateHorizontalAlignment(d,n,H)),{top:oe,left:Se}}static determinePlacement(T,n,d,k){if(Es.shouldFlip(d,n,T,k)){if(T===Dn.Right)return Dn.Left;if(T===Dn.Left)return Dn.Right;if(T===Dn.Top)return Dn.Bottom;if(T===Dn.Bottom)return Dn.Top}return T}}let Cu=(()=>{class f{constructor(n,d,k){this.element=n,this.renderer=d,this.platformId=k}get cssClasses(){let n="ngx-charts-tooltip-content";return n+=` position-${this.placement}`,n+=` type-${this.type}`,n+=` ${this.cssClass}`,n}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,t.NF)(this.platformId))return;const n=this.element.nativeElement,d=this.host.nativeElement.getBoundingClientRect();if(!d.height&&!d.width)return;const k=n.getBoundingClientRect();this.checkFlip(d,k),this.positionContent(n,d,k),this.showCaret&&this.positionCaret(d,k),setTimeout(()=>this.renderer.addClass(n,"animate"),1)}positionContent(n,d,k){const{top:H,left:oe}=Es.positionContent(this.placement,k,d,this.spacing,this.alignment);this.renderer.setStyle(n,"top",`${H}px`),this.renderer.setStyle(n,"left",`${oe}px`)}positionCaret(n,d){const k=this.caretElm.nativeElement,H=k.getBoundingClientRect(),{top:oe,left:Se}=Es.positionCaret(this.placement,d,n,H,this.alignment);this.renderer.setStyle(k,"top",`${oe}px`),this.renderer.setStyle(k,"left",`${Se}px`)}checkFlip(n,d){this.placement=Es.determinePlacement(this.placement,d,n,this.spacing)}onWindowResize(){this.position()}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-tooltip-content"]],viewQuery:function(n,d){if(1&n&&e.Gf(xd,5),2&n){let k;e.iGM(k=e.CRH())&&(d.caretElm=k.first)}},hostVars:2,hostBindings:function(n,d){1&n&&e.NdJ("resize",function(){return d.onWindowResize()},!1,e.Jf7),2&n&&e.Tol(d.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(n,d){1&n&&(e.TgZ(0,"div"),e._UZ(1,"span",0,1),e.TgZ(3,"div",2),e.YNc(4,r6,2,4,"span",3),e.YNc(5,a6,1,1,"span",4),e.qZA(),e.qZA()),2&n&&(e.xp6(1),e.Gre("tooltip-caret position-",d.placement,""),e.Q6J("hidden",!d.showCaret),e.xp6(3),e.Q6J("ngIf",!d.title),e.xp6(1),e.Q6J("ngIf",d.title))},directives:[t.O5,t.tP],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:normal;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:rgba(0,0,0,.75);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:translate(10px)}.ngx-charts-tooltip-content.position-left{transform:translate(-10px)}.ngx-charts-tooltip-content.position-top{transform:translateY(-10px)}.ngx-charts-tooltip-content.position-bottom{transform:translateY(10px)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translate(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}),(0,C.gn)([f4(100)],f.prototype,"onWindowResize",null),f})(),Vc=(()=>{class f extends class Mu{constructor(T){this.injectionService=T,this.defaults={},this.components=new Map}getByType(T=this.type){return this.components.get(T)}create(T){return this.createByType(this.type,T)}createByType(T,n){n=this.assignDefaults(n);const d=this.injectComponent(T,n);return this.register(T,d),d}destroy(T){const n=this.components.get(T.componentType);if(n&&n.length){const d=n.indexOf(T);d>-1&&(n[d].destroy(),n.splice(d,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(T){const n=this.components.get(T);if(n&&n.length){let d=n.length-1;for(;d>=0;)this.destroy(n[d--])}}injectComponent(T,n){return this.injectionService.appendComponent(T,n)}assignDefaults(T){const n=Object.assign({},this.defaults.inputs),d=Object.assign({},this.defaults.outputs);return!T.inputs&&!T.outputs&&(T={inputs:T}),n&&(T.inputs=Object.assign(Object.assign({},n),T.inputs)),d&&(T.outputs=Object.assign(Object.assign({},d),T.outputs)),T}register(T,n){this.components.has(T)||this.components.set(T,[]),this.components.get(T).push(n)}}{constructor(n){super(n),this.type=Cu}}return f.\u0275fac=function(n){return new(n||f)(e.LFG(X1))},f.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac}),f})();var yr=(()=>{return(f=yr||(yr={})).Right="right",f.Below="below",yr;var f})(),Xo=(()=>{return(f=Xo||(Xo={})).ScaleLegend="scaleLegend",f.Legend="legend",Xo;var f})(),_i=(()=>{return(f=_i||(_i={})).Time="time",f.Linear="linear",f.Ordinal="ordinal",f.Quantile="quantile",_i;var f})();let Wr=(()=>{class f{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new e.vpe,this.legendLabelActivate=new e.vpe,this.legendLabelDeactivate=new e.vpe,this.LegendPosition=yr,this.LegendType=Xo}ngOnChanges(n){this.update()}update(){let n=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===yr.Right)&&(n=this.legendType===Xo.ScaleLegend?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-n)/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==yr.Right?this.chartWidth:Math.floor(this.view[0]*n/12)}getLegendType(){return this.legendOptions.scaleType===_i.Linear?Xo.ScaleLegend:Xo.Legend}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[e._Bn([Vc]),e.TTD],ngContentSelectors:Ad,decls:5,vars:6,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,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(n,d){1&n&&(e.F$t(),e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1),e.Hsn(2),e.qZA(),e.YNc(3,Md,1,5,"ngx-charts-scale-legend",2),e.YNc(4,wd,1,7,"ngx-charts-legend",3),e.qZA()),2&n&&(e.Udp("width",d.view[0],"px"),e.xp6(1),e.uIk("width",d.chartWidth)("height",d.view[1]),e.xp6(2),e.Q6J("ngIf",d.showLegend&&d.legendType===d.LegendType.ScaleLegend),e.xp6(1),e.Q6J("ngIf",d.showLegend&&d.legendType===d.LegendType.Legend))},directives:function(){return[t.O5,K2,q2]},encapsulation:2,changeDetection:0}),f})(),wu=(()=>{class f{constructor(n,d){this.element=n,this.zone=d,this.visible=new e.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const n=()=>{if(!this.element)return;const{offsetHeight:d,offsetWidth:k}=this.element.nativeElement;d&&k?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>n(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>n())})}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq),e.Y36(e.R0b))},f.\u0275dir=e.lG2({type:f,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),f})();function Gc(f){return"[object Date]"===toString.call(f)}let jr=(()=>{class f{constructor(n,d,k,H){this.chartElement=n,this.zone=d,this.cd=k,this.platformId=H,this.scheme="cool",this.schemeType=_i.Ordinal,this.animations=!0,this.select=new e.vpe}ngOnInit(){(0,t.PM)(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new wu(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(n){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 n=this.getContainerDims();n&&(this.width=n.width,this.height=n.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 n,d;const k=this.chartElement.nativeElement;if((0,t.NF)(this.platformId)&&null!==k.parentNode){const H=k.parentNode.getBoundingClientRect();n=H.width,d=H.height}return n&&d?{width:n,height:d}:null}formatDates(){for(let n=0;n{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=d}cloneData(n){const d=[];for(const k of n){const H={name:k.name};if(void 0!==k.value&&(H.value=k.value),void 0!==k.series){H.series=[];for(const oe of k.series){const Se=Object.assign({},oe);H.series.push(Se)}}void 0!==k.extra&&(H.extra=JSON.parse(JSON.stringify(k.extra))),d.push(H)}return d}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[e.TTD],decls:1,vars:0,template:function(n,d){1&n&&e._UZ(0,"div")},encapsulation:2}),f})();var ba=(()=>{return(f=ba||(ba={})).Top="top",f.Bottom="bottom",f.Left="left",f.Right="right",ba;var f})();let Au=(()=>{class f{constructor(n){this.textHeight=25,this.margin=5,this.element=n.nativeElement}ngOnChanges(n){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case ba.Top:case ba.Bottom:this.y=this.offset,this.x=this.width/2;break;case ba.Left:this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case ba.Right:this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[e.TTD],attrs:go,decls:2,vars:6,template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"text"),e._uU(1),e.qZA()),2&n&&(e.uIk("stroke-width",d.strokeWidth)("x",d.x)("y",d.y)("text-anchor",d.textAnchor)("transform",d.transform),e.xp6(1),e.hij(" ",d.label," "))},encapsulation:2,changeDetection:0}),f})();function $o(f,T=16){return"string"!=typeof f?"number"==typeof f?f+"":"":(f=f.trim()).length<=T?f:`${f.slice(0,T)}...`}function Eu(f,T){if(f.length>T){const n=[],d=Math.floor(f.length/T);for(let k=0;k{return(f=Xa||(Xa={})).Start="start",f.Middle="middle",f.End="end",Xa;var f})();let Tu=(()=>{class f{constructor(n){this.platformId=n,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new e.vpe,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor=Xa.Middle,this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.approxHeight=10}ngOnChanges(n){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,t.NF)(this.platformId))return void this.dimensionsChanged.emit({height:this.approxHeight});const n=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);n!==this.height&&(this.height=n,this.dimensionsChanged.emit({height:this.height}),setTimeout(()=>this.updateDims()))}update(){const n=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:n.tickFormat?n.tickFormat.apply(n,this.tickArguments):function(k){return"Date"===k.constructor.name?k.toLocaleDateString():k.toLocaleString()};const d=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(k){return this.scale(k)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",d&&0!==d?(this.textTransform=`rotate(${d})`,this.textAnchor=Xa.End,this.verticalSpacing=10):this.textAnchor=Xa.Middle,setTimeout(()=>this.updateDims())}getRotationAngle(n){let d=0;this.maxTicksLength=0;for(let pt=0;ptthis.maxTicksLength&&(this.maxTicksLength=Ht)}const oe=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let Se=oe;const ht=Math.floor(this.width/n.length);for(;Se>ht&&d>-90;)d-=30,Se=Math.cos(d*(Math.PI/180))*oe;return this.approxHeight=Math.max(Math.abs(Math.sin(d*(Math.PI/180))*oe),10),d}getTicks(){let n;const d=this.getMaxTicks(20),k=this.getMaxTicks(100);return this.tickValues?n=this.tickValues:this.scale.ticks?n=this.scale.ticks.apply(this.scale,[k]):(n=this.scale.domain(),n=Eu(n,d)),n}getMaxTicks(n){return Math.floor(this.width/n)}tickTransform(n){return"translate("+this.adjustedScale(n)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(n){return this.trimTicks?$o(n,this.maxTickLength):n}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(n,d){if(1&n&&e.Gf(V1,5),2&n){let k;e.iGM(k=e.CRH())&&(d.ticksElement=k.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:s6,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"g",null,0),e.YNc(2,o6,5,7,"g",1),e.qZA(),e.YNc(3,Ed,2,2,"g",2)),2&n&&(e.xp6(2),e.Q6J("ngForOf",d.ticks),e.xp6(1),e.Q6J("ngForOf",d.ticks))},directives:[t.sg,t.O5],encapsulation:2,changeDetection:0}),f})(),ir=(()=>{class f{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient=ba.Bottom,this.xAxisOffset=0,this.dimensionsChanged=new e.vpe,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5,this.orientation=ba}ngOnChanges(n){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,void 0!==this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:n}){const d=n+25+5;d!==this.labelOffset&&(this.labelOffset=d,setTimeout(()=>{this.dimensionsChanged.emit({height:n})},0))}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(n,d){if(1&n&&e.Gf(Tu,5),2&n){let k;e.iGM(k=e.CRH())&&(d.ticksComponent=k.first)}},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:l6,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,c6,1,12,"g",0),e.YNc(2,Td,1,5,"g",1),e.qZA()),2&n&&(e.uIk("class",d.xAxisClassName)("transform",d.transform),e.xp6(1),e.Q6J("ngIf",d.xScale),e.xp6(1),e.Q6J("ngIf",d.showLabel))},directives:[t.O5,Tu,Au],encapsulation:2,changeDetection:0}),f})();function Hs(f,T,n,d,k,[H,oe,Se,ht]){let pt="";return pt=`M${[f+k,T]}`,pt+="h"+((n=0===(n=Math.floor(n))?1:n)-2*k),pt+=oe?`a${[k,k]} 0 0 1 ${[k,k]}`:`h${k}v${k}`,pt+="v"+((d=0===(d=Math.floor(d))?1:d)-2*k),pt+=ht?`a${[k,k]} 0 0 1 ${[-k,k]}`:`v${k}h${-k}`,pt+="h"+(2*k-n),pt+=Se?`a${[k,k]} 0 0 1 ${[-k,-k]}`:`h${-k}v${-k}`,pt+="v"+(2*k-d),pt+=H?`a${[k,k]} 0 0 1 ${[k,-k]}`:`v${-k}h${k}`,pt+="z",pt}let Su=(()=>{class f{constructor(n){this.platformId=n,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new e.vpe,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor=Xa.Middle,this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.Orientation=ba}ngOnChanges(n){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,t.NF)(this.platformId))return this.width=this.getApproximateAxisWidth(),void this.dimensionsChanged.emit({width:this.width});const n=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);n!==this.width&&(this.width=n,this.dimensionsChanged.emit({width:n}),setTimeout(()=>this.updateDims()))}update(){let n;const d=this.orient===ba.Top||this.orient===ba.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,n=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:n.tickFormat?n.tickFormat.apply(n,this.tickArguments):function(k){return"Date"===k.constructor.name?k.toLocaleDateString():k.toLocaleString()},this.adjustedScale=n.bandwidth?function(k){return n(k)+.5*n.bandwidth()}:n,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case ba.Top:case ba.Bottom:this.transform=function(k){return"translate("+this.adjustedScale(k)+",0)"},this.textAnchor=Xa.Middle,this.y2=this.innerTickSize*d,this.y1=this.tickSpacing*d,this.dy=d<0?"0em":".71em";break;case ba.Left:this.transform=function(k){return"translate(0,"+this.adjustedScale(k)+")"},this.textAnchor=Xa.End,this.x2=this.innerTickSize*-d,this.x1=this.tickSpacing*-d,this.dy=".32em";break;case ba.Right:this.transform=function(k){return"translate(0,"+this.adjustedScale(k)+")"},this.textAnchor=Xa.Start,this.x2=this.innerTickSize*-d,this.x1=this.tickSpacing*-d,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(n=>n.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(n=>n.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=Hs(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let n;const d=this.getMaxTicks(20),k=this.getMaxTicks(50);return this.tickValues?n=this.tickValues:this.scale.ticks?n=this.scale.ticks.apply(this.scale,[k]):(n=this.scale.domain(),n=Eu(n,d)),n}getMaxTicks(n){return Math.floor(this.height/n)}tickTransform(n){return`translate(${this.adjustedScale(n)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(n){return this.trimTicks?$o(n,this.maxTickLength):n}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(k=>this.tickTrim(this.tickFormat(k)).length))}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(n,d){if(1&n&&e.Gf(V1,5),2&n){let k;e.iGM(k=e.CRH())&&(d.ticksElement=k.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:f2,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"g",null,0),e.YNc(2,h6,5,9,"g",1),e.qZA(),e.YNc(3,d6,1,2,"path",2),e.YNc(4,p2,2,2,"g",3),e.YNc(5,f6,2,1,"g",3)),2&n&&(e.xp6(2),e.Q6J("ngForOf",d.ticks),e.xp6(1),e.Q6J("ngIf",d.referenceLineLength>1&&d.refMax&&d.refMin&&d.showRefLines),e.xp6(1),e.Q6J("ngForOf",d.ticks),e.xp6(1),e.Q6J("ngForOf",d.referenceLines))},directives:[t.sg,t.O5],encapsulation:2,changeDetection:0}),f})(),$a=(()=>{class f{constructor(){this.showGridLines=!1,this.yOrient=ba.Left,this.yAxisOffset=0,this.dimensionsChanged=new e.vpe,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(n){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),this.yOrient===ba.Right?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:n}){n!==this.labelOffset&&this.yOrient===ba.Right?(this.labelOffset=n+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:n})},0)):n!==this.labelOffset&&(this.labelOffset=n,setTimeout(()=>{this.dimensionsChanged.emit({width:n})},0))}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(n,d){if(1&n&&e.Gf(Su,5),2&n){let k;e.iGM(k=e.CRH())&&(d.ticksComponent=k.first)}},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:p6,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","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,g2,1,14,"g",0),e.YNc(2,a3,1,5,"g",1),e.qZA()),2&n&&(e.uIk("class",d.yAxisClassName)("transform",d.transform),e.xp6(1),e.Q6J("ngIf",d.yScale),e.xp6(1),e.Q6J("ngIf",d.showLabel))},directives:[t.O5,Su,Au],encapsulation:2,changeDetection:0}),f})(),V2=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[t.ez]]}),f})();var cs=(()=>{return(f=cs||(cs={})).popover="popover",f.tooltip="tooltip",cs;var f})(),Ao=(()=>{return(f=Ao||(Ao={}))[f.all="all"]="all",f[f.focus="focus"]="focus",f[f.mouseover="mouseover"]="mouseover",Ao;var f})();let Ts=(()=>{class f{constructor(n,d,k){this.tooltipService=n,this.viewContainerRef=d,this.renderer=k,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Dn.Top,this.tooltipAlignment=Dn.Center,this.tooltipType=cs.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Ao.all,this.tooltipImmediateExit=!1,this.show=new e.vpe,this.hide=new e.vpe}get listensForFocus(){return this.tooltipShowEvent===Ao.all||this.tooltipShowEvent===Ao.focus}get listensForHover(){return this.tooltipShowEvent===Ao.all||this.tooltipShowEvent===Ao.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(n){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(n))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(n){if(this.component||this.tooltipDisabled)return;const d=n?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const k=this.createBoundOptions();this.component=this.tooltipService.create(k),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},d)}addHideListeners(n){this.mouseEnterContentEvent=this.renderer.listen(n,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(n,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",d=>{n.contains(d.target)||this.hideTooltip()}))}hideTooltip(n=!1){if(!this.component)return;const d=()=>{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),n?d():this.timeout=setTimeout(d,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}}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(Vc),e.Y36(e.s_b),e.Y36(e.Qsj))},f.\u0275dir=e.lG2({type:f,selectors:[["","ngx-tooltip",""]],hostBindings:function(n,d){1&n&&e.NdJ("focusin",function(){return d.onFocus()})("blur",function(){return d.onBlur()})("mouseenter",function(){return d.onMouseEnter()})("mouseleave",function(H){return d.onMouseLeave(H.target)})("click",function(){return d.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTitle:"tooltipTitle",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),f})(),Cl=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({providers:[X1,Vc],imports:[[t.ez]]}),f})();function Ua(f){return f instanceof Date?f.toLocaleDateString():f.toLocaleString()}const G2={};function es(){let f=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return f=`a${f}`,G2[f]?es():(G2[f]=!0,f)}var lr=(()=>{return(f=lr||(lr={})).Vertical="vertical",f.Horizontal="horizontal",lr;var f})();let $s=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{width:"width",height:"height",x:"x",y:"y"},attrs:Id,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(n,d){1&n&&(e.O4$(),e._UZ(0,"rect",0)),2&n&&e.uIk("height",d.height)("width",d.width)("x",d.x)("y",d.y)},encapsulation:2,changeDetection:0}),f})();var ac=(()=>{return(f=ac||(ac={})).Odd="odd",f.Even="even",ac;var f})();let j2,e0=(()=>{class f{ngOnChanges(n){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(n=>{let d,k,H,oe,Se,ht=ac.Odd;if(this.orient===lr.Vertical){const pt=this.xScale(n.name);Number.parseInt((pt/this.xScale.step()).toString(),10)%2==1&&(ht=ac.Even),d=this.xScale.bandwidth()*this.xScale.paddingInner(),k=this.xScale.bandwidth()+d,H=this.dims.height,oe=this.xScale(n.name)-d/2,Se=0}else if(this.orient===lr.Horizontal){const pt=this.yScale(n.name);Number.parseInt((pt/this.yScale.step()).toString(),10)%2==1&&(ht=ac.Even),d=this.yScale.bandwidth()*this.yScale.paddingInner(),k=this.dims.width,H=this.yScale.bandwidth()+d,oe=0,Se=this.yScale(n.name)-d/2}return{name:n.name,class:ht,height:H,width:k,x:oe,y:Se}})}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},features:[e.TTD],attrs:Mo,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(n,d){1&n&&e.YNc(0,W1,1,10,"g",0),2&n&&e.Q6J("ngForOf",d.gridPanels)},directives:[t.sg,$s],encapsulation:2,changeDetection:0}),f})(),ts=(()=>{class f{constructor(){this.orientation=lr.Vertical}ngOnChanges(n){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%",this.orientation===lr.Horizontal?this.x2="100%":this.orientation===lr.Vertical&&(this.y1="100%")}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[e.TTD],attrs:g6,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"linearGradient",0),e.YNc(1,_6,1,5,"stop",1),e.qZA()),2&n&&(e.Q6J("id",d.name),e.uIk("x1",d.x1)("y1",d.y1)("x2",d.x2)("y2",d.y2),e.xp6(1),e.Q6J("ngForOf",d.stops))},directives:[t.sg],encapsulation:2,changeDetection:0}),f})();"undefined"!=typeof window?j2=window:"undefined"!=typeof global&&(j2=global);let q2=(()=>{class f{constructor(n){this.cd=n,this.horizontal=!1,this.labelClick=new e.vpe,this.labelActivate=new e.vpe,this.labelDeactivate=new e.vpe,this.legendEntries=[]}ngOnChanges(n){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const n=[];for(const d of this.data){const k=Ua(d);-1===n.findIndex(oe=>oe.label===k)&&n.push({label:d,formattedLabel:k,color:this.colors.getColor(d)})}return n}isActive(n){return!!this.activeEntries&&void 0!==this.activeEntries.find(k=>n.label===k.name)}activate(n){this.labelActivate.emit(n)}deactivate(n){this.labelDeactivate.emit(n)}trackBy(n,d){return d.label}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.sBO))},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[e.TTD],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,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(n,d){1&n&&(e.TgZ(0,"div"),e.YNc(1,y6,3,1,"header",0),e.TgZ(2,"div",1),e.TgZ(3,"ul",2),e.YNc(4,C2,2,4,"li",3),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Udp("width",d.width,"px"),e.xp6(1),e.Q6J("ngIf",(null==d.title?null:d.title.length)>0),e.xp6(2),e.Udp("max-height",d.height-45,"px"),e.ekj("horizontal-legend",d.horizontal),e.xp6(1),e.Q6J("ngForOf",d.legendEntries)("ngForTrackBy",d.trackBy))},directives:function(){return[t.O5,t.sg,Ou]},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:bold}.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:rgba(0,0,0,.05)}.chart-legend .legend-label{cursor:pointer;font-size:90%;margin:8px;color:#afb7c8}.chart-legend .legend-label:hover{color:#000;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}),f})(),Ou=(()=>{class f{constructor(){this.isActive=!1,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.toggle=new e.vpe}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(n,d){1&n&&e.NdJ("mouseenter",function(){return d.onMouseEnter()})("mouseleave",function(){return d.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(n,d){1&n&&(e.TgZ(0,"span",0),e.NdJ("click",function(){return d.select.emit(d.formattedLabel)}),e.TgZ(1,"span",1),e.NdJ("click",function(){return d.toggle.emit(d.formattedLabel)}),e.qZA(),e.TgZ(2,"span",2),e._uU(3),e.qZA(),e.qZA()),2&n&&(e.ekj("active",d.isActive),e.Q6J("title",d.formattedLabel),e.xp6(1),e.Udp("background-color",d.color),e.xp6(2),e.hij(" ",d.trimmedLabel," "))},encapsulation:2,changeDetection:0}),f})(),K2=(()=>{class f{constructor(){this.horizontal=!1}ngOnChanges(n){const d=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${d})`}gradientString(n,d){d.push(1);const k=[];return n.reverse().forEach((H,oe)=>{k.push(`${H} ${Math.round(100*d[oe])}%`)}),k.join(", ")}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[e.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(n,d){1&n&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"span"),e._uU(3),e.qZA(),e.qZA(),e._UZ(4,"div",2),e.TgZ(5,"div",1),e.TgZ(6,"span"),e._uU(7),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Udp("height",d.horizontal?void 0:d.height,"px")("width",d.width,"px"),e.ekj("horizontal-legend",d.horizontal),e.xp6(3),e.Oqu(d.valueRange[1].toLocaleString()),e.xp6(1),e.Udp("background",d.gradient),e.xp6(3),e.Oqu(d.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}),f})(),zs=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[t.ez,V2,Cl],t.ez,V2,Cl]}),f})();function qr({width:f,height:T,margins:n,showXAxis:d=!1,showYAxis:k=!1,xAxisHeight:H=0,yAxisWidth:oe=0,showXLabel:Se=!1,showYLabel:ht=!1,showLegend:pt=!1,legendType:Dt=_i.Ordinal,legendPosition:Ht=yr.Right,columns:Ut=12}){let ni=n[3],bi=f,zi=T-n[0]-n[2];return pt&&Ht===yr.Right&&(Ut-=Dt===_i.Ordinal?2:1),bi=bi*Ut/12,bi=bi-n[1]-n[3],d&&(zi-=5,zi-=H,Se&&(zi-=30)),k&&(bi-=5,bi-=oe,ni+=oe,ni+=10,ht&&(bi-=30,ni+=30)),bi=Math.max(0,bi),zi=Math.max(0,zi),{width:Math.floor(bi),height:Math.floor(zi),xOffset:Math.floor(ni)}}let X2=[{name:"vivid",selectable:!0,group:_i.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:_i.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:_i.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:_i.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:_i.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:_i.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:_i.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:_i.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:_i.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:_i.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:_i.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:_i.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:_i.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:_i.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:_i.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class Kr{constructor(T,n,d,k){"string"==typeof T&&(T=X2.find(H=>H.name===T)),this.colorDomain=T.domain,this.scaleType=n,this.domain=d,this.customColors=k,this.scale=this.generateColorScheme(T,n,this.domain)}generateColorScheme(T,n,d){let k;switch("string"==typeof T&&(T=X2.find(H=>H.name===T)),n){case _i.Quantile:k=id().range(T.domain).domain(d);break;case _i.Ordinal:k=I1().range(T.domain).domain(d);break;case _i.Linear:{const H=[...T.domain];1===H.length&&(H.push(H[0]),this.colorDomain=H);const oe=j0(0,1,1/H.length);k=Ar().range(H).domain(oe)}}return k}getColor(T){if(null==T)throw new Error("Value can not be null");if(this.scaleType===_i.Linear){const n=Ar().domain(this.domain).range([0,1]);return this.scale(n(T))}{if("function"==typeof this.customColors)return this.customColors(T);const n=T.toString();let d;return this.customColors&&this.customColors.length>0&&(d=this.customColors.find(k=>k.name.toLowerCase()===n.toLowerCase())),d?d.value:this.scale(T)}}getLinearGradientStops(T,n){void 0===n&&(n=this.domain[0]);const d=Ar().domain(this.domain).range([0,1]),k=Er().domain(this.colorDomain).range([0,1]),H=this.getColor(T),oe=d(n),Se=this.getColor(n),ht=d(T);let pt=1,Dt=oe;const Ht=[];for(Ht.push({color:Se,offset:oe,originalOffset:oe,opacity:1});Dt=(ht-k.bandwidth()).toFixed(4))break;Ht.push({color:Ut,offset:ni,opacity:1}),Dt=ni,pt++}}if(Ht[Ht.length-1].offset<100&&Ht.push({color:H,offset:ht,opacity:1}),ht===oe)Ht[0].offset=0,Ht[1].offset=100;else if(100!==Ht[Ht.length-1].offset)for(const Ut of Ht)Ut.offset=(Ut.offset-oe)/(ht-oe)*100;return Ht}}let m4=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[zs]]}),f})(),s0=(()=>{class f{constructor(n){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.hasGradient=!1,this.hideBar=!1,this.element=n.nativeElement}ngOnChanges(n){n.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+es().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 n=function ot(f){return"string"==typeof f?new yi([[document.querySelector(f)]],[document.documentElement]):new yi([[f]],kt)}(this.element).select(".bar"),d=this.getPath();this.animations?n.transition().duration(500).attr("d",d):n.attr("d",d)}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 d,n=this.getRadius();return this.roundEdges?this.orientation===lr.Vertical?(n=Math.min(this.height,n),d=Hs(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===lr.Horizontal&&(n=Math.min(this.width,n),d=Hs(this.x,this.y,1,this.height,0,this.edges)):this.orientation===lr.Vertical?d=Hs(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===lr.Horizontal&&(d=Hs(this.x,this.y,1,this.height,0,this.edges)),d}getPath(){let d,n=this.getRadius();return this.roundEdges?this.orientation===lr.Vertical?(n=Math.min(this.height,n),d=Hs(this.x,this.y,this.width,this.height,n,this.edges)):this.orientation===lr.Horizontal&&(n=Math.min(this.width,n),d=Hs(this.x,this.y,this.width,this.height,n,this.edges)):d=Hs(this.x,this.y,this.width,this.height,n,this.edges),d}getRadius(){let n=0;return this.roundEdges&&this.height>5&&this.width>5&&(n=Math.floor(Math.min(5,this.height/2,this.width/2))),n}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let n=[!1,!1,!1,!1];return this.roundEdges&&(this.orientation===lr.Vertical?n=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:this.orientation===lr.Horizontal&&(n=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),n}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&(this.orientation===lr.Vertical&&0===this.height||this.orientation===lr.Horizontal&&0===this.width)}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(n,d){1&n&&e.NdJ("mouseenter",function(){return d.onMouseEnter()})("mouseleave",function(){return d.onMouseLeave()})},inputs:{roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",animations:"animations",noBarWhenZero:"noBarWhenZero",fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",stops:"stops",ariaLabel:"ariaLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[e.TTD],attrs:h3,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(n,d){1&n&&(e.YNc(0,Xs,2,3,"defs",0),e.O4$(),e.TgZ(1,"path",1),e.NdJ("click",function(){return d.select.emit(d.data)}),e.qZA()),2&n&&(e.Q6J("ngIf",d.hasGradient),e.xp6(1),e.ekj("active",d.isActive)("hidden",d.hideBar),e.uIk("d",d.path)("aria-label",d.ariaLabel)("fill",d.hasGradient?d.gradientFill:d.fill))},directives:[t.O5,ts],encapsulation:2,changeDetection:0}),f})();var xa=(()=>{return(f=xa||(xa={})).Standard="standard",f.Normalized="normalized",f.Stacked="stacked",xa;var f})();let g4=(()=>{class f extends jr{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=yr.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.activate=new e.vpe,this.deactivate=new e.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive: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=qr({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})`}getXScale(){this.xDomain=this.getXDomain();const n=this.xDomain.length/(this.dims.width/this.barPadding+1);return Er().range([0,this.dims.width]).paddingInner(n).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const n=Ar().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?n.nice():n}getXDomain(){return this.results.map(n=>n.label)}getYDomain(){const n=this.results.map(H=>H.value);let d=this.yScaleMin?Math.min(this.yScaleMin,...n):Math.min(0,...n);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(d=Math.min(d,...this.yAxisTicks));let k=this.yScaleMax?Math.max(this.yScaleMax,...n):Math.max(0,...n);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(k=Math.max(k,...this.yAxisTicks)),[d,k]}onClick(n){this.select.emit(n)}setColors(){let n;n=this.schemeType===_i.Ordinal?this.xDomain:this.yDomain,this.colors=new Kr(this.scheme,this.schemeType,n,this.customColors)}getLegendOptions(){const n={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return n.scaleType===_i.Ordinal?(n.domain=this.xDomain,n.colors=this.colors,n.title=this.legendTitle):(n.domain=this.yDomain,n.colors=this.colors.scale),n}updateYAxisWidth({width:n}){this.yAxisWidth=n,this.update()}updateXAxisHeight({height:n}){this.xAxisHeight=n,this.update()}onDataLabelMaxHeightChanged(n){n.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,n.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,n.size.height),n.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(n,d=!1){n=this.results.find(H=>d?H.label===n.name:H.name===n.name),!(this.activeEntries.findIndex(H=>H.name===n.name&&H.value===n.value&&H.series===n.series)>-1)&&(this.activeEntries=[n,...this.activeEntries],this.activate.emit({value:n,entries:this.activeEntries}))}onDeactivate(n,d=!1){n=this.results.find(H=>d?H.label===n.name:H.name===n.name);const k=this.activeEntries.findIndex(H=>H.name===n.name&&H.value===n.value&&H.series===n.series);this.activeEntries.splice(k,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:n,entries:this.activeEntries})}}return f.\u0275fac=function(){let T;return function(d){return(T||(T=e.n5z(f)))(d||f)}}(),f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(n,d,k){if(1&n&&e.Suo(k,Hr,5),2&n){let H;e.iGM(H=e.CRH())&&(d.tooltipTemplate=H.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","activeEntries","roundEdges","animations","noBarWhenZero","activate","deactivate","select","dataLabelHeightChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"]],template:function(n,d){1&n&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(H){return d.onClick(H)})("legendLabelActivate",function(H){return d.onActivate(H,!0)})("legendLabelDeactivate",function(H){return d.onDeactivate(H,!0)}),e.O4$(),e.TgZ(1,"g",1),e.YNc(2,N6,1,11,"g",2),e.YNc(3,R6,1,9,"g",3),e.TgZ(4,"g",4),e.NdJ("activate",function(H){return d.onActivate(H)})("deactivate",function(H){return d.onDeactivate(H)})("select",function(H){return d.onClick(H)})("dataLabelHeightChanged",function(H){return d.onDataLabelMaxHeightChanged(H)}),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Q6J("view",e.WLB(22,vr,d.width,d.height))("showLegend",d.legend)("legendOptions",d.legendOptions)("activeEntries",d.activeEntries)("animations",d.animations),e.xp6(1),e.uIk("transform",d.transform),e.xp6(1),e.Q6J("ngIf",d.xAxis),e.xp6(1),e.Q6J("ngIf",d.yAxis),e.xp6(1),e.Q6J("xScale",d.xScale)("yScale",d.yScale)("colors",d.colors)("series",d.results)("dims",d.dims)("gradient",d.gradient)("tooltipDisabled",d.tooltipDisabled)("tooltipTemplate",d.tooltipTemplate)("showDataLabel",d.showDataLabel)("dataLabelFormatting",d.dataLabelFormatting)("activeEntries",d.activeEntries)("roundEdges",d.roundEdges)("animations",d.animations)("noBarWhenZero",d.noBarWhenZero))},directives:function(){return[Wr,t.O5,qc,ir,$a]},styles:[oa],encapsulation:2,changeDetection:0}),f})(),_4=(()=>{class f extends jr{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=yr.Right,this.tooltipDisabled=!1,this.scaleType=_i.Ordinal,this.showGridLines=!0,this.activeEntries=[],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.activate=new e.vpe,this.deactivate=new e.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0},this.barOrientation=lr,this.trackBy=(n,d)=>d.name}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=qr({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(n,d){n.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,n.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,n.size.height),d===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const n=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return Er().rangeRound([0,this.dims.width]).paddingInner(n).paddingOuter(n/2).domain(this.groupDomain)}getInnerScale(){const n=this.groupScale.bandwidth(),d=this.innerDomain.length/(n/this.barPadding+1);return Er().rangeRound([0,n]).paddingInner(d).domain(this.innerDomain)}getValueScale(){const n=Ar().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?n.nice():n}getGroupDomain(){const n=[];for(const d of this.results)n.includes(d.label)||n.push(d.label);return n}getInnerDomain(){const n=[];for(const d of this.results)for(const k of d.series)n.includes(k.label)||n.push(k.label);return n}getValueDomain(){const n=[];for(const H of this.results)for(const oe of H.series)n.includes(oe.value)||n.push(oe.value);return[Math.min(0,...n),this.yScaleMax?Math.max(this.yScaleMax,...n):Math.max(0,...n)]}groupTransform(n){return`translate(${this.groupScale(n.label)}, 0)`}onClick(n,d){d&&(n.series=d.name),this.select.emit(n)}setColors(){let n;n=this.schemeType===_i.Ordinal?this.innerDomain:this.valueDomain,this.colors=new Kr(this.scheme,this.schemeType,n,this.customColors)}getLegendOptions(){const n={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return n.scaleType===_i.Ordinal?(n.domain=this.innerDomain,n.colors=this.colors,n.title=this.legendTitle):(n.domain=this.valueDomain,n.colors=this.colors.scale),n}updateYAxisWidth({width:n}){this.yAxisWidth=n,this.update()}updateXAxisHeight({height:n}){this.xAxisHeight=n,this.update()}onActivate(n,d,k=!1){const H=Object.assign({},n);d&&(H.series=d.name);const oe=this.results.map(Se=>Se.series).flat().filter(Se=>k?Se.label===H.name:Se.name===H.name&&Se.series===H.series);this.activeEntries=[...oe],this.activate.emit({value:H,entries:this.activeEntries})}onDeactivate(n,d,k=!1){const H=Object.assign({},n);d&&(H.series=d.name),this.activeEntries=this.activeEntries.filter(oe=>k?oe.label!==H.name:!(oe.name===H.name&&oe.series===H.series)),this.deactivate.emit({value:H,entries:this.activeEntries})}}return f.\u0275fac=function(){let T;return function(d){return(T||(T=e.n5z(f)))(d||f)}}(),f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(n,d,k){if(1&n&&e.Suo(k,Hr,5),2&n){let H;e.iGM(H=e.CRH())&&(d.tooltipTemplate=H.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",scaleType:"scaleType",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:6,vars:18,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[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","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["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-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged"]],template:function(n,d){1&n&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelActivate",function(H){return d.onActivate(H,void 0,!0)})("legendLabelDeactivate",function(H){return d.onDeactivate(H,void 0,!0)})("legendLabelClick",function(H){return d.onClick(H)}),e.O4$(),e.TgZ(1,"g",1),e._UZ(2,"g",2),e.YNc(3,F6,1,10,"g",3),e.YNc(4,B6,1,9,"g",4),e.YNc(5,H6,1,17,"g",5),e.qZA(),e.qZA()),2&n&&(e.Q6J("view",e.WLB(15,vr,d.width,d.height))("showLegend",d.legend)("legendOptions",d.legendOptions)("activeEntries",d.activeEntries)("animations",d.animations),e.xp6(1),e.uIk("transform",d.transform),e.xp6(1),e.Q6J("xScale",d.groupScale)("yScale",d.valueScale)("data",d.results)("dims",d.dims)("orient",d.barOrientation.Vertical),e.xp6(1),e.Q6J("ngIf",d.xAxis),e.xp6(1),e.Q6J("ngIf",d.yAxis),e.xp6(1),e.Q6J("ngForOf",d.results)("ngForTrackBy",d.trackBy))},directives:function(){return[Wr,e0,t.O5,t.sg,ir,$a,qc]},styles:[oa],encapsulation:2,data:{animation:[(0,l.X$)("animationState",[(0,l.eR)(":leave",[(0,l.oB)({opacity:1,transform:"*"}),(0,l.jt)(500,(0,l.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),f})();var Ls=(()=>{return(f=Ls||(Ls={})).positive="positive",f.negative="negative",Ls;var f})();let qc=(()=>{class f{constructor(){this.type=xa.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.dataLabelHeightChanged=new e.vpe,this.barsForDataLabels=[],this.barOrientation=lr}ngOnChanges(n){this.update()}update(){let n;this.updateTooltipSettings(),this.series.length&&(n=this.xScale.bandwidth()),n=Math.round(n);const d=Math.max(this.yScale.domain()[0],0),k={[Ls.positive]:0,[Ls.negative]:0};let oe,H=Ls.positive;this.type===xa.Normalized&&(oe=this.series.map(Se=>Se.value).reduce((Se,ht)=>Se+ht,0)),this.bars=this.series.map((Se,ht)=>{let pt=Se.value;const Dt=this.getLabel(Se),Ht=Ua(Dt);H=pt>0?Ls.positive:Ls.negative;const ni={value:pt,label:Dt,roundEdges:this.roundEdges,data:Se,width:n,formattedLabel:Ht,height:0,x:0,y:0};if(this.type===xa.Standard)ni.height=Math.abs(this.yScale(pt)-this.yScale(d)),ni.x=this.xScale(Dt),ni.y=this.yScale(pt<0?0:pt);else if(this.type===xa.Stacked){const zi=k[H],di=zi+pt;k[H]+=pt,ni.height=this.yScale(zi)-this.yScale(di),ni.x=0,ni.y=this.yScale(di),ni.offset0=zi,ni.offset1=di}else if(this.type===xa.Normalized){let zi=k[H],di=zi+pt;k[H]+=pt,oe>0?(zi=100*zi/oe,di=100*di/oe):(zi=0,di=0),ni.height=this.yScale(zi)-this.yScale(di),ni.x=0,ni.y=this.yScale(di),ni.offset0=zi,ni.offset1=di,pt=(di-zi).toFixed(2)+"%"}this.colors.scaleType===_i.Ordinal?ni.color=this.colors.getColor(Dt):this.type===xa.Standard?(ni.color=this.colors.getColor(pt),ni.gradientStops=this.colors.getLinearGradientStops(pt)):(ni.color=this.colors.getColor(ni.offset1),ni.gradientStops=this.colors.getLinearGradientStops(ni.offset1,ni.offset0));let bi=Ht;return ni.ariaLabel=Ht+" "+pt.toLocaleString(),null!=this.seriesName&&(bi=`${this.seriesName} \u2022 ${Ht}`,ni.data.series=this.seriesName,ni.ariaLabel=this.seriesName+" "+ni.ariaLabel),ni.tooltipText=this.tooltipDisabled?void 0:`\n ${function Ta(f){return f.toLocaleString().replace(/[&'`"<>]/g,T=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[T]))}(bi)}\n ${this.dataLabelFormatting?this.dataLabelFormatting(pt):pt.toLocaleString()}\n `,ni}),this.updateDataLabels()}updateDataLabels(){if(this.type===xa.Stacked){this.barsForDataLabels=[];const n={};n.series=this.seriesName;const d=this.series.map(H=>H.value).reduce((H,oe)=>oe>0?H+oe:H,0),k=this.series.map(H=>H.value).reduce((H,oe)=>oe<0?H+oe:H,0);n.total=d+k,n.x=0,n.y=0,n.height=this.yScale(n.total>0?d:k),n.width=this.xScale.bandwidth(),this.barsForDataLabels.push(n)}else this.barsForDataLabels=this.series.map(n=>{var d;const k={};return k.series=null!==(d=this.seriesName)&&void 0!==d?d:n.label,k.total=n.value,k.x=this.xScale(n.label),k.y=this.yScale(0),k.height=this.yScale(k.total)-this.yScale(0),k.width=this.xScale.bandwidth(),k})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:Dn.Top,this.tooltipType=this.tooltipDisabled?void 0:cs.tooltip}isActive(n){return!!this.activeEntries&&void 0!==this.activeEntries.find(k=>n.name===k.name&&n.value===k.value)}onClick(n){this.select.emit(n)}getLabel(n){return n.label?n.label:n.name}trackBy(n,d){return d.label}trackDataLabelBy(n,d){return n+"#"+d.series+"#"+d.total}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",animations:"animations",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",dims:"dims",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",dataLabelFormatting:"dataLabelFormatting"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[e.TTD],attrs:ls,decls:2,vars:3,consts:[["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"],[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"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(n,d){1&n&&(e.YNc(0,bl,1,22,"g",0),e.YNc(1,Bs,2,2,"g",1)),2&n&&(e.Q6J("ngForOf",d.bars)("ngForTrackBy",d.trackBy),e.xp6(1),e.Q6J("ngIf",d.showDataLabel))},directives:function(){return[t.sg,t.O5,s0,Ts,ku]},encapsulation:2,data:{animation:[(0,l.X$)("animationState",[(0,l.eR)(":leave",[(0,l.oB)({opacity:1}),(0,l.jt)(500,(0,l.oB)({opacity:0}))])])]},changeDetection:0}),f})(),ku=(()=>{class f{constructor(n){this.dimensionsChanged=new e.vpe,this.horizontalPadding=2,this.verticalPadding=5,this.element=n.nativeElement}ngOnChanges(n){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):Ua(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})`)}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:S2,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"text",0),e._uU(1),e.qZA()),2&n&&(e.uIk("text-anchor",d.textAnchor)("transform",d.transform)("x",d.x)("y",d.y),e.xp6(1),e.hij(" ",d.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),f})(),Nu=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[zs]]}),f})(),Bu=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[zs]]}),f})(),zu=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[zs]]}),f})(),El=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[zs]]}),f})(),y4=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[zs]]}),f})();Math;let ia=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[zs]]}),f})(),I3=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[zs,ia,y4]]}),f})(),w4=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[zs]]}),f})(),E4=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[zs]]}),f})(),J3=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[zs,ia,Nu]]}),f})(),lh=(()=>{class f{constructor(){!function oh(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[zs,m4,Nu,Bu,zu,El,y4,I3,w4,ia,E4,J3]}),f})()},7977:(Ve,Q,m)=>{"use strict";const e=Q;e.bignum=m(3854),e.define=m(9516).define,e.base=m(7813),e.constants=m(5459),e.decoders=m(196),e.encoders=m(1131)},9516:(Ve,Q,m)=>{"use strict";const e=m(1131),t=m(196),v=m(3894);function o(M,l){this.name=M,this.body=l,this.decoders={},this.encoders={}}Q.define=function(l,R){return new o(l,R)},o.prototype._createNamed=function(l){const R=this.name;function s(L){this._initNamed(L,R)}return v(s,l),s.prototype._initNamed=function(O,A){l.call(this,O,A)},new s(this)},o.prototype._getDecoder=function(l){return this.decoders.hasOwnProperty(l=l||"der")||(this.decoders[l]=this._createNamed(t[l])),this.decoders[l]},o.prototype.decode=function(l,R,s){return this._getDecoder(R).decode(l,s)},o.prototype._getEncoder=function(l){return this.encoders.hasOwnProperty(l=l||"der")||(this.encoders[l]=this._createNamed(e[l])),this.encoders[l]},o.prototype.encode=function(l,R,s){return this._getEncoder(R).encode(l,s)}},2769:(Ve,Q,m)=>{"use strict";const e=m(3894),t=m(4919).b,v=m(2038).Buffer;function C(M,l){t.call(this,l),v.isBuffer(M)?(this.base=M,this.offset=0,this.length=M.length):this.error("Input not Buffer")}function o(M,l){if(Array.isArray(M))this.length=0,this.value=M.map(function(R){return o.isEncoderBuffer(R)||(R=new o(R,l)),this.length+=R.length,R},this);else if("number"==typeof M){if(!(0<=M&&M<=255))return l.error("non-byte EncoderBuffer value");this.value=M,this.length=1}else if("string"==typeof M)this.value=M,this.length=v.byteLength(M);else{if(!v.isBuffer(M))return l.error("Unsupported type: "+typeof M);this.value=M,this.length=M.length}}e(C,t),Q.C=C,C.isDecoderBuffer=function(l){return l instanceof C||"object"==typeof l&&v.isBuffer(l.base)&&"DecoderBuffer"===l.constructor.name&&"number"==typeof l.offset&&"number"==typeof l.length&&"function"==typeof l.save&&"function"==typeof l.restore&&"function"==typeof l.isEmpty&&"function"==typeof l.readUInt8&&"function"==typeof l.skip&&"function"==typeof l.raw},C.prototype.save=function(){return{offset:this.offset,reporter:t.prototype.save.call(this)}},C.prototype.restore=function(l){const R=new C(this.base);return R.offset=l.offset,R.length=this.offset,this.offset=l.offset,t.prototype.restore.call(this,l.reporter),R},C.prototype.isEmpty=function(){return this.offset===this.length},C.prototype.readUInt8=function(l){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(l||"DecoderBuffer overrun")},C.prototype.skip=function(l,R){if(!(this.offset+l<=this.length))return this.error(R||"DecoderBuffer overrun");const s=new C(this.base);return s._reporterState=this._reporterState,s.offset=this.offset,s.length=this.offset+l,this.offset+=l,s},C.prototype.raw=function(l){return this.base.slice(l?l.offset:this.offset,this.length)},Q.R=o,o.isEncoderBuffer=function(l){return l instanceof o||"object"==typeof l&&"EncoderBuffer"===l.constructor.name&&"number"==typeof l.length&&"function"==typeof l.join},o.prototype.join=function(l,R){return l||(l=v.alloc(this.length)),R||(R=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(s){s.join(l,R),R+=s.length}):("number"==typeof this.value?l[R]=this.value:"string"==typeof this.value?l.write(this.value,R):v.isBuffer(this.value)&&this.value.copy(l,R),R+=this.length)),l}},7813:(Ve,Q,m)=>{"use strict";const e=Q;e.Reporter=m(4919).b,e.DecoderBuffer=m(2769).C,e.EncoderBuffer=m(2769).R,e.Node=m(1430)},1430:(Ve,Q,m)=>{"use strict";const e=m(4919).b,t=m(2769).R,v=m(2769).C,C=m(2391),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"],M=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function R(L,O,A){const E={};this._baseState=E,E.name=A,E.enc=L,E.parent=O||null,E.children=null,E.tag=null,E.args=null,E.reverseArgs=null,E.choice=null,E.optional=!1,E.any=!1,E.obj=!1,E.use=null,E.useDecoder=null,E.key=null,E.default=null,E.explicit=null,E.implicit=null,E.contains=null,E.parent||(E.children=[],this._wrap())}Ve.exports=R;const s=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];R.prototype.clone=function(){const O=this._baseState,A={};s.forEach(function(P){A[P]=O[P]});const E=new this.constructor(A.parent);return E._baseState=A,E},R.prototype._wrap=function(){const O=this._baseState;M.forEach(function(A){this[A]=function(){const P=new this.constructor(this);return O.children.push(P),P[A].apply(P,arguments)}},this)},R.prototype._init=function(O){const A=this._baseState;C(null===A.parent),O.call(this),A.children=A.children.filter(function(E){return E._baseState.parent===this},this),C.equal(A.children.length,1,"Root node can have only one child")},R.prototype._useArgs=function(O){const A=this._baseState,E=O.filter(function(P){return P instanceof this.constructor},this);O=O.filter(function(P){return!(P instanceof this.constructor)},this),0!==E.length&&(C(null===A.children),A.children=E,E.forEach(function(P){P._baseState.parent=this},this)),0!==O.length&&(C(null===A.args),A.args=O,A.reverseArgs=O.map(function(P){if("object"!=typeof P||P.constructor!==Object)return P;const w={};return Object.keys(P).forEach(function(Z){Z==(0|Z)&&(Z|=0),w[P[Z]]=Z}),w}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(L){R.prototype[L]=function(){throw new Error(L+" not implemented for encoding: "+this._baseState.enc)}}),o.forEach(function(L){R.prototype[L]=function(){const A=this._baseState,E=Array.prototype.slice.call(arguments);return C(null===A.tag),A.tag=L,this._useArgs(E),this}}),R.prototype.use=function(O){C(O);const A=this._baseState;return C(null===A.use),A.use=O,this},R.prototype.optional=function(){return this._baseState.optional=!0,this},R.prototype.def=function(O){const A=this._baseState;return C(null===A.default),A.default=O,A.optional=!0,this},R.prototype.explicit=function(O){const A=this._baseState;return C(null===A.explicit&&null===A.implicit),A.explicit=O,this},R.prototype.implicit=function(O){const A=this._baseState;return C(null===A.explicit&&null===A.implicit),A.implicit=O,this},R.prototype.obj=function(){const O=this._baseState,A=Array.prototype.slice.call(arguments);return O.obj=!0,0!==A.length&&this._useArgs(A),this},R.prototype.key=function(O){const A=this._baseState;return C(null===A.key),A.key=O,this},R.prototype.any=function(){return this._baseState.any=!0,this},R.prototype.choice=function(O){const A=this._baseState;return C(null===A.choice),A.choice=O,this._useArgs(Object.keys(O).map(function(E){return O[E]})),this},R.prototype.contains=function(O){const A=this._baseState;return C(null===A.use),A.contains=O,this},R.prototype._decode=function(O,A){const E=this._baseState;if(null===E.parent)return O.wrapResult(E.children[0]._decode(O,A));let j,P=E.default,w=!0,Z=null;if(null!==E.key&&(Z=O.enterKey(E.key)),E.optional){let W=null;if(null!==E.explicit?W=E.explicit:null!==E.implicit?W=E.implicit:null!==E.tag&&(W=E.tag),null!==W||E.any){if(w=this._peekTag(O,W,E.any),O.isError(w))return w}else{const ie=O.save();try{null===E.choice?this._decodeGeneric(E.tag,O,A):this._decodeChoice(O,A),w=!0}catch(ee){w=!1}O.restore(ie)}}if(E.obj&&w&&(j=O.enterObject()),w){if(null!==E.explicit){const ie=this._decodeTag(O,E.explicit);if(O.isError(ie))return ie;O=ie}const W=O.offset;if(null===E.use&&null===E.choice){let ie;E.any&&(ie=O.save());const ee=this._decodeTag(O,null!==E.implicit?E.implicit:E.tag,E.any);if(O.isError(ee))return ee;E.any?P=O.raw(ie):O=ee}if(A&&A.track&&null!==E.tag&&A.track(O.path(),W,O.length,"tagged"),A&&A.track&&null!==E.tag&&A.track(O.path(),O.offset,O.length,"content"),E.any||(P=null===E.choice?this._decodeGeneric(E.tag,O,A):this._decodeChoice(O,A)),O.isError(P))return P;if(!E.any&&null===E.choice&&null!==E.children&&E.children.forEach(function(ee){ee._decode(O,A)}),E.contains&&("octstr"===E.tag||"bitstr"===E.tag)){const ie=new v(P);P=this._getUse(E.contains,O._reporterState.obj)._decode(ie,A)}}return E.obj&&w&&(P=O.leaveObject(j)),null===E.key||null===P&&!0!==w?null!==Z&&O.exitKey(Z):O.leaveKey(Z,E.key,P),P},R.prototype._decodeGeneric=function(O,A,E){const P=this._baseState;return"seq"===O||"set"===O?null:"seqof"===O||"setof"===O?this._decodeList(A,O,P.args[0],E):/str$/.test(O)?this._decodeStr(A,O,E):"objid"===O&&P.args?this._decodeObjid(A,P.args[0],P.args[1],E):"objid"===O?this._decodeObjid(A,null,null,E):"gentime"===O||"utctime"===O?this._decodeTime(A,O,E):"null_"===O?this._decodeNull(A,E):"bool"===O?this._decodeBool(A,E):"objDesc"===O?this._decodeStr(A,O,E):"int"===O||"enum"===O?this._decodeInt(A,P.args&&P.args[0],E):null!==P.use?this._getUse(P.use,A._reporterState.obj)._decode(A,E):A.error("unknown tag: "+O)},R.prototype._getUse=function(O,A){const E=this._baseState;return E.useDecoder=this._use(O,A),C(null===E.useDecoder._baseState.parent),E.useDecoder=E.useDecoder._baseState.children[0],E.implicit!==E.useDecoder._baseState.implicit&&(E.useDecoder=E.useDecoder.clone(),E.useDecoder._baseState.implicit=E.implicit),E.useDecoder},R.prototype._decodeChoice=function(O,A){const E=this._baseState;let P=null,w=!1;return Object.keys(E.choice).some(function(Z){const j=O.save(),W=E.choice[Z];try{const ie=W._decode(O,A);if(O.isError(ie))return!1;P={type:Z,value:ie},w=!0}catch(ie){return O.restore(j),!1}return!0},this),w?P:O.error("Choice not matched")},R.prototype._createEncoderBuffer=function(O){return new t(O,this.reporter)},R.prototype._encode=function(O,A,E){const P=this._baseState;if(null!==P.default&&P.default===O)return;const w=this._encodeValue(O,A,E);return void 0===w||this._skipDefault(w,A,E)?void 0:w},R.prototype._encodeValue=function(O,A,E){const P=this._baseState;if(null===P.parent)return P.children[0]._encode(O,A||new e);let w=null;if(this.reporter=A,P.optional&&void 0===O){if(null===P.default)return;O=P.default}let Z=null,j=!1;if(P.any)w=this._createEncoderBuffer(O);else if(P.choice)w=this._encodeChoice(O,A);else if(P.contains)Z=this._getUse(P.contains,E)._encode(O,A),j=!0;else if(P.children)Z=P.children.map(function(W){if("null_"===W._baseState.tag)return W._encode(null,A,O);if(null===W._baseState.key)return A.error("Child should have a key");const ie=A.enterKey(W._baseState.key);if("object"!=typeof O)return A.error("Child expected, but input is not object");const ee=W._encode(O[W._baseState.key],A,O);return A.leaveKey(ie),ee},this).filter(function(W){return W}),Z=this._createEncoderBuffer(Z);else if("seqof"===P.tag||"setof"===P.tag){if(!P.args||1!==P.args.length)return A.error("Too many args for : "+P.tag);if(!Array.isArray(O))return A.error("seqof/setof, but data is not Array");const W=this.clone();W._baseState.implicit=null,Z=this._createEncoderBuffer(O.map(function(ie){return this._getUse(this._baseState.args[0],O)._encode(ie,A)},W))}else null!==P.use?w=this._getUse(P.use,E)._encode(O,A):(Z=this._encodePrimitive(P.tag,O),j=!0);if(!P.any&&null===P.choice){const W=null!==P.implicit?P.implicit:P.tag,ie=null===P.implicit?"universal":"context";null===W?null===P.use&&A.error("Tag could be omitted only for .use()"):null===P.use&&(w=this._encodeComposite(W,j,ie,Z))}return null!==P.explicit&&(w=this._encodeComposite(P.explicit,!1,"context",w)),w},R.prototype._encodeChoice=function(O,A){const E=this._baseState,P=E.choice[O.type];return P||C(!1,O.type+" not found in "+JSON.stringify(Object.keys(E.choice))),P._encode(O.value,A)},R.prototype._encodePrimitive=function(O,A){const E=this._baseState;if(/str$/.test(O))return this._encodeStr(A,O);if("objid"===O&&E.args)return this._encodeObjid(A,E.reverseArgs[0],E.args[1]);if("objid"===O)return this._encodeObjid(A,null,null);if("gentime"===O||"utctime"===O)return this._encodeTime(A,O);if("null_"===O)return this._encodeNull();if("int"===O||"enum"===O)return this._encodeInt(A,E.args&&E.reverseArgs[0]);if("bool"===O)return this._encodeBool(A);if("objDesc"===O)return this._encodeStr(A,O);throw new Error("Unsupported tag: "+O)},R.prototype._isNumstr=function(O){return/^[0-9 ]*$/.test(O)},R.prototype._isPrintstr=function(O){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(O)}},4919:(Ve,Q,m)=>{"use strict";const e=m(3894);function t(C){this._reporterState={obj:null,path:[],options:C||{},errors:[]}}function v(C,o){this.path=C,this.rethrow(o)}Q.b=t,t.prototype.isError=function(o){return o instanceof v},t.prototype.save=function(){const o=this._reporterState;return{obj:o.obj,pathLen:o.path.length}},t.prototype.restore=function(o){const M=this._reporterState;M.obj=o.obj,M.path=M.path.slice(0,o.pathLen)},t.prototype.enterKey=function(o){return this._reporterState.path.push(o)},t.prototype.exitKey=function(o){const M=this._reporterState;M.path=M.path.slice(0,o-1)},t.prototype.leaveKey=function(o,M,l){const R=this._reporterState;this.exitKey(o),null!==R.obj&&(R.obj[M]=l)},t.prototype.path=function(){return this._reporterState.path.join("/")},t.prototype.enterObject=function(){const o=this._reporterState,M=o.obj;return o.obj={},M},t.prototype.leaveObject=function(o){const M=this._reporterState,l=M.obj;return M.obj=o,l},t.prototype.error=function(o){let M;const l=this._reporterState,R=o instanceof v;if(M=R?o:new v(l.path.map(function(s){return"["+JSON.stringify(s)+"]"}).join(""),o.message||o,o.stack),!l.options.partial)throw M;return R||l.errors.push(M),M},t.prototype.wrapResult=function(o){const M=this._reporterState;return M.options.partial?{result:this.isError(o)?null:o,errors:M.errors}:o},e(v,Error),v.prototype.rethrow=function(o){if(this.message=o+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,v),!this.stack)try{throw new Error(this.message)}catch(M){this.stack=M.stack}return this}},5496:(Ve,Q)=>{"use strict";function m(e){const t={};return Object.keys(e).forEach(function(v){(0|v)==v&&(v|=0),t[e[v]]=v}),t}Q.tagClass={0:"universal",1:"application",2:"context",3:"private"},Q.tagClassByName=m(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=m(Q.tag)},5459:(Ve,Q,m)=>{"use strict";const e=Q;e._reverse=function(v){const C={};return Object.keys(v).forEach(function(o){(0|o)==o&&(o|=0),C[v[o]]=o}),C},e.der=m(5496)},7127:(Ve,Q,m)=>{"use strict";const e=m(3894),t=m(3854),v=m(2769).C,C=m(1430),o=m(5496);function M(L){this.enc="der",this.name=L.name,this.entity=L,this.tree=new l,this.tree._init(L.body)}function l(L){C.call(this,"der",L)}function R(L,O){let A=L.readUInt8(O);if(L.isError(A))return A;const E=o.tagClass[A>>6],P=0==(32&A);if(31==(31&A)){let Z=A;for(A=0;128==(128&Z);){if(Z=L.readUInt8(O),L.isError(Z))return Z;A<<=7,A|=127&Z}}else A&=31;return{cls:E,primitive:P,tag:A,tagStr:o.tag[A]}}function s(L,O,A){let E=L.readUInt8(A);if(L.isError(E))return E;if(!O&&128===E)return null;if(0==(128&E))return E;const P=127&E;if(P>4)return L.error("length octect is too long");E=0;for(let w=0;w{"use strict";const e=Q;e.der=m(7127),e.pem=m(9617)},9617:(Ve,Q,m)=>{"use strict";const e=m(3894),t=m(2038).Buffer,v=m(7127);function C(o){v.call(this,o),this.enc="pem"}e(C,v),Ve.exports=C,C.prototype.decode=function(M,l){const R=M.toString().split(/[\r\n]+/g),s=l.label.toUpperCase(),L=/^-----(BEGIN|END) ([^-]+)-----$/;let O=-1,A=-1;for(let w=0;w{"use strict";const e=m(3894),t=m(2038).Buffer,v=m(1430),C=m(5496);function o(s){this.enc="der",this.name=s.name,this.entity=s,this.tree=new M,this.tree._init(s.body)}function M(s){v.call(this,"der",s)}function l(s){return s<10?"0"+s:s}Ve.exports=o,o.prototype.encode=function(L,O){return this.tree._encode(L,O).join()},e(M,v),M.prototype._encodeComposite=function(L,O,A,E){const P=function R(s,L,O,A){let E;if("seqof"===s?s="seq":"setof"===s&&(s="set"),C.tagByName.hasOwnProperty(s))E=C.tagByName[s];else{if("number"!=typeof s||(0|s)!==s)return A.error("Unknown tag: "+s);E=s}return E>=31?A.error("Multi-octet tag encoding unsupported"):(L||(E|=32),E|=C.tagClassByName[O||"universal"]<<6,E)}(L,O,A,this.reporter);if(E.length<128){const j=t.alloc(2);return j[0]=P,j[1]=E.length,this._createEncoderBuffer([j,E])}let w=1;for(let j=E.length;j>=256;j>>=8)w++;const Z=t.alloc(2+w);Z[0]=P,Z[1]=128|w;for(let j=1+w,W=E.length;W>0;j--,W>>=8)Z[j]=255&W;return this._createEncoderBuffer([Z,E])},M.prototype._encodeStr=function(L,O){if("bitstr"===O)return this._createEncoderBuffer([0|L.unused,L.data]);if("bmpstr"===O){const A=t.alloc(2*L.length);for(let E=0;E=40)return this.reporter.error("Second objid identifier OOB");L.splice(0,2,40*L[0]+L[1])}let E=0;for(let Z=0;Z=128;j>>=7)E++}const P=t.alloc(E);let w=P.length-1;for(let Z=L.length-1;Z>=0;Z--){let j=L[Z];for(P[w--]=127&j;(j>>=7)>0;)P[w--]=128|127&j}return this._createEncoderBuffer(P)},M.prototype._encodeTime=function(L,O){let A;const E=new Date(L);return"gentime"===O?A=[l(E.getUTCFullYear()),l(E.getUTCMonth()+1),l(E.getUTCDate()),l(E.getUTCHours()),l(E.getUTCMinutes()),l(E.getUTCSeconds()),"Z"].join(""):"utctime"===O?A=[l(E.getUTCFullYear()%100),l(E.getUTCMonth()+1),l(E.getUTCDate()),l(E.getUTCHours()),l(E.getUTCMinutes()),l(E.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+O+" time is not supported yet"),this._encodeStr(A,"octstr")},M.prototype._encodeNull=function(){return this._createEncoderBuffer("")},M.prototype._encodeInt=function(L,O){if("string"==typeof L){if(!O)return this.reporter.error("String int or enum given, but no values map");if(!O.hasOwnProperty(L))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(L));L=O[L]}if("number"!=typeof L&&!t.isBuffer(L)){const P=L.toArray();!L.sign&&128&P[0]&&P.unshift(0),L=t.from(P)}if(t.isBuffer(L)){let P=L.length;0===L.length&&P++;const w=t.alloc(P);return L.copy(w),0===L.length&&(w[0]=0),this._createEncoderBuffer(w)}if(L<128)return this._createEncoderBuffer(L);if(L<256)return this._createEncoderBuffer([0,L]);let A=1;for(let P=L;P>=256;P>>=8)A++;const E=new Array(A);for(let P=E.length-1;P>=0;P--)E[P]=255&L,L>>=8;return 128&E[0]&&E.unshift(0),this._createEncoderBuffer(t.from(E))},M.prototype._encodeBool=function(L){return this._createEncoderBuffer(L?255:0)},M.prototype._use=function(L,O){return"function"==typeof L&&(L=L(O)),L._getEncoder("der").tree},M.prototype._skipDefault=function(L,O,A){const E=this._baseState;let P;if(null===E.default)return!1;const w=L.join();if(void 0===E.defaultBuffer&&(E.defaultBuffer=this._encodeValue(E.default,O,A).join()),w.length!==E.defaultBuffer.length)return!1;for(P=0;P{"use strict";const e=Q;e.der=m(6374),e.pem=m(3530)},3530:(Ve,Q,m)=>{"use strict";const e=m(3894),t=m(6374);function v(C){t.call(this,C),this.enc="pem"}e(v,t),Ve.exports=v,v.prototype.encode=function(o,M){const R=t.prototype.encode.call(this,o).toString("base64"),s=["-----BEGIN "+M.label+"-----"];for(let L=0;L=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function R(y,i,a){var p=l(y,a);return a-1>=i&&(p|=l(y,a-1)<<4),p}function s(y,i,a,p){for(var u=0,_=Math.min(y.length,a),D=i;D<_;D++){var I=y.charCodeAt(D)-48;u*=p,u+=I>=49?I-49+10:I>=17?I-17+10:I}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),v(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(D=i[u]|i[u-1]<<8|i[u-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u=a;u-=2)I=R(i,a,u)<<_,this.words[D]|=67108863&I,_>=18?(_-=18,this.words[D+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u=18?(_-=18,this.words[D+=1]|=I>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var D=i.length-p,I=D%u,x=Math.min(D,D-I)+p,r=0,b=p;b1&&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 L=["","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"],O=[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],A=[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 P(y,i,a){a.negative=i.negative^y.negative;var p=y.length+i.length|0;a.length=p,p=p-1|0;var u=0|y.words[0],_=0|i.words[0],D=u*_,x=D/67108864|0;a.words[0]=67108863&D;for(var r=1;r>>26,U=67108863&x,N=Math.min(r,i.length-1),z=Math.max(0,r-y.length+1);z<=N;z++)b+=(D=(u=0|y.words[r-z|0])*(_=0|i.words[z])+U)/67108864|0,U=67108863&D;a.words[r]=0|U,x=0|b}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,D=0;D>>24-u&16777215)||D!==this.length-1?L[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,D--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=O[i],b=A[i];p="";var U=this.clone();for(U.negative=0;!U.isZero();){var N=U.modn(b).toString(i);p=(U=U.idivn(b)).isZero()?N+p:L[r-N.length]+N+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}v(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&v(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return v(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);v(u<=_,"byte array longer than desired length"),v(_>0,"Requested array length <= 0"),this.strip();var x,r,D="le"===a,I=new i(_),b=this.clone();if(D){for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),I[r]=x;for(;r<_;r++)I[r]=0}else{for(r=0;r<_-u;r++)I[r]=0;for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),I[_-r-1]=x}return I},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;pi.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;ui.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){v("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){v("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<i.length?(p=this,u=i):(p=i,u=this);for(var _=0,D=0;D>>26;for(;0!==_&&D>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;Di.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var D=0,I=0;I<_.length;I++)D=(a=(0|u.words[I])-(0|_.words[I])+D)>>26,this.words[I]=67108863&a;for(;0!==D&&I>26,this.words[I]=67108863&a;if(0===D&&I>>13,be=0|u[1],xe=8191&be,Re=be>>>13,ze=0|u[2],Le=8191&ze,K=ze>>>13,we=0|u[3],Y=8191&we,ae=we>>>13,Ge=0|u[4],vt=8191&Ge,Fe=Ge>>>13,Ne=0|u[5],ue=8191&Ne,Oe=Ne>>>13,Pe=0|u[6],q=8191&Pe,$=Pe>>>13,ce=0|u[7],Me=8191&ce,Ue=ce>>>13,lt=0|u[8],nt=8191<,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,ki=0|_[2],ai=8191&ki,hi=ki>>>13,Ze=0|_[3],Ee=8191&Ze,G=Ze>>>13,ge=0|_[4],De=8191&ge,et=ge>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],ke=8191&ct,Be=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(I+(x=Math.imul(N,Ft))|0)+((8191&(r=(r=Math.imul(N,Vt))+Math.imul(z,Ft)|0))<<13)|0;I=((b=Math.imul(z,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(xe,Ft),r=(r=Math.imul(xe,Vt))+Math.imul(Re,Ft)|0,b=Math.imul(Re,Vt);var Ui=(I+(x=x+Math.imul(N,jt)|0)|0)+((8191&(r=(r=r+Math.imul(N,ei)|0)+Math.imul(z,jt)|0))<<13)|0;I=((b=b+Math.imul(z,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Le,Ft),r=(r=Math.imul(Le,Vt))+Math.imul(K,Ft)|0,b=Math.imul(K,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ei)|0)+Math.imul(Re,jt)|0,b=b+Math.imul(Re,ei)|0;var Di=(I+(x=x+Math.imul(N,ai)|0)|0)+((8191&(r=(r=r+Math.imul(N,hi)|0)+Math.imul(z,ai)|0))<<13)|0;I=((b=b+Math.imul(z,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(Y,Ft),r=(r=Math.imul(Y,Vt))+Math.imul(ae,Ft)|0,b=Math.imul(ae,Vt),x=x+Math.imul(Le,jt)|0,r=(r=r+Math.imul(Le,ei)|0)+Math.imul(K,jt)|0,b=b+Math.imul(K,ei)|0,x=x+Math.imul(xe,ai)|0,r=(r=r+Math.imul(xe,hi)|0)+Math.imul(Re,ai)|0,b=b+Math.imul(Re,hi)|0;var Xi=(I+(x=x+Math.imul(N,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(N,G)|0)+Math.imul(z,Ee)|0))<<13)|0;I=((b=b+Math.imul(z,G)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Fe,Ft)|0,b=Math.imul(Fe,Vt),x=x+Math.imul(Y,jt)|0,r=(r=r+Math.imul(Y,ei)|0)+Math.imul(ae,jt)|0,b=b+Math.imul(ae,ei)|0,x=x+Math.imul(Le,ai)|0,r=(r=r+Math.imul(Le,hi)|0)+Math.imul(K,ai)|0,b=b+Math.imul(K,hi)|0,x=x+Math.imul(xe,Ee)|0,r=(r=r+Math.imul(xe,G)|0)+Math.imul(Re,Ee)|0,b=b+Math.imul(Re,G)|0;var Ke=(I+(x=x+Math.imul(N,De)|0)|0)+((8191&(r=(r=r+Math.imul(N,et)|0)+Math.imul(z,De)|0))<<13)|0;I=((b=b+Math.imul(z,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(ue,Ft),r=(r=Math.imul(ue,Vt))+Math.imul(Oe,Ft)|0,b=Math.imul(Oe,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Fe,jt)|0,b=b+Math.imul(Fe,ei)|0,x=x+Math.imul(Y,ai)|0,r=(r=r+Math.imul(Y,hi)|0)+Math.imul(ae,ai)|0,b=b+Math.imul(ae,hi)|0,x=x+Math.imul(Le,Ee)|0,r=(r=r+Math.imul(Le,G)|0)+Math.imul(K,Ee)|0,b=b+Math.imul(K,G)|0,x=x+Math.imul(xe,De)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Re,De)|0,b=b+Math.imul(Re,et)|0;var _t=(I+(x=x+Math.imul(N,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Jt)|0)+Math.imul(z,Nt)|0))<<13)|0;I=((b=b+Math.imul(z,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,b=Math.imul($,Vt),x=x+Math.imul(ue,jt)|0,r=(r=r+Math.imul(ue,ei)|0)+Math.imul(Oe,jt)|0,b=b+Math.imul(Oe,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Fe,ai)|0,b=b+Math.imul(Fe,hi)|0,x=x+Math.imul(Y,Ee)|0,r=(r=r+Math.imul(Y,G)|0)+Math.imul(ae,Ee)|0,b=b+Math.imul(ae,G)|0,x=x+Math.imul(Le,De)|0,r=(r=r+Math.imul(Le,et)|0)+Math.imul(K,De)|0,b=b+Math.imul(K,et)|0,x=x+Math.imul(xe,Nt)|0,r=(r=r+Math.imul(xe,Jt)|0)+Math.imul(Re,Nt)|0,b=b+Math.imul(Re,Jt)|0;var ye=(I+(x=x+Math.imul(N,ke)|0)|0)+((8191&(r=(r=r+Math.imul(N,Be)|0)+Math.imul(z,ke)|0))<<13)|0;I=((b=b+Math.imul(z,Be)|0)+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,x=Math.imul(Me,Ft),r=(r=Math.imul(Me,Vt))+Math.imul(Ue,Ft)|0,b=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,b=b+Math.imul($,ei)|0,x=x+Math.imul(ue,ai)|0,r=(r=r+Math.imul(ue,hi)|0)+Math.imul(Oe,ai)|0,b=b+Math.imul(Oe,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,G)|0)+Math.imul(Fe,Ee)|0,b=b+Math.imul(Fe,G)|0,x=x+Math.imul(Y,De)|0,r=(r=r+Math.imul(Y,et)|0)+Math.imul(ae,De)|0,b=b+Math.imul(ae,et)|0,x=x+Math.imul(Le,Nt)|0,r=(r=r+Math.imul(Le,Jt)|0)+Math.imul(K,Nt)|0,b=b+Math.imul(K,Jt)|0,x=x+Math.imul(xe,ke)|0,r=(r=r+Math.imul(xe,Be)|0)+Math.imul(Re,ke)|0,b=b+Math.imul(Re,Be)|0;var qe=(I+(x=x+Math.imul(N,st)|0)|0)+((8191&(r=(r=r+Math.imul(N,At)|0)+Math.imul(z,st)|0))<<13)|0;I=((b=b+Math.imul(z,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Me,jt)|0,r=(r=r+Math.imul(Me,ei)|0)+Math.imul(Ue,jt)|0,b=b+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,b=b+Math.imul($,hi)|0,x=x+Math.imul(ue,Ee)|0,r=(r=r+Math.imul(ue,G)|0)+Math.imul(Oe,Ee)|0,b=b+Math.imul(Oe,G)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Fe,De)|0,b=b+Math.imul(Fe,et)|0,x=x+Math.imul(Y,Nt)|0,r=(r=r+Math.imul(Y,Jt)|0)+Math.imul(ae,Nt)|0,b=b+Math.imul(ae,Jt)|0,x=x+Math.imul(Le,ke)|0,r=(r=r+Math.imul(Le,Be)|0)+Math.imul(K,ke)|0,b=b+Math.imul(K,Be)|0,x=x+Math.imul(xe,st)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Re,st)|0,b=b+Math.imul(Re,At)|0;var yt=(I+(x=x+Math.imul(N,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Rt)|0)+Math.imul(z,Bt)|0))<<13)|0;I=((b=b+Math.imul(z,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,b=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,b=b+Math.imul(ft,ei)|0,x=x+Math.imul(Me,ai)|0,r=(r=r+Math.imul(Me,hi)|0)+Math.imul(Ue,ai)|0,b=b+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,G)|0)+Math.imul($,Ee)|0,b=b+Math.imul($,G)|0,x=x+Math.imul(ue,De)|0,r=(r=r+Math.imul(ue,et)|0)+Math.imul(Oe,De)|0,b=b+Math.imul(Oe,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Fe,Nt)|0,b=b+Math.imul(Fe,Jt)|0,x=x+Math.imul(Y,ke)|0,r=(r=r+Math.imul(Y,Be)|0)+Math.imul(ae,ke)|0,b=b+Math.imul(ae,Be)|0,x=x+Math.imul(Le,st)|0,r=(r=r+Math.imul(Le,At)|0)+Math.imul(K,st)|0,b=b+Math.imul(K,At)|0,x=x+Math.imul(xe,Bt)|0,r=(r=r+Math.imul(xe,Rt)|0)+Math.imul(Re,Bt)|0,b=b+Math.imul(Re,Rt)|0;var pe=(I+(x=x+Math.imul(N,si)|0)|0)+((8191&(r=(r=r+Math.imul(N,ci)|0)+Math.imul(z,si)|0))<<13)|0;I=((b=b+Math.imul(z,ci)|0)+(r>>>13)|0)+(pe>>>26)|0,pe&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,b=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,b=b+Math.imul(ft,hi)|0,x=x+Math.imul(Me,Ee)|0,r=(r=r+Math.imul(Me,G)|0)+Math.imul(Ue,Ee)|0,b=b+Math.imul(Ue,G)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,b=b+Math.imul($,et)|0,x=x+Math.imul(ue,Nt)|0,r=(r=r+Math.imul(ue,Jt)|0)+Math.imul(Oe,Nt)|0,b=b+Math.imul(Oe,Jt)|0,x=x+Math.imul(vt,ke)|0,r=(r=r+Math.imul(vt,Be)|0)+Math.imul(Fe,ke)|0,b=b+Math.imul(Fe,Be)|0,x=x+Math.imul(Y,st)|0,r=(r=r+Math.imul(Y,At)|0)+Math.imul(ae,st)|0,b=b+Math.imul(ae,At)|0,x=x+Math.imul(Le,Bt)|0,r=(r=r+Math.imul(Le,Rt)|0)+Math.imul(K,Bt)|0,b=b+Math.imul(K,Rt)|0;var Je=(I+(x=x+Math.imul(xe,si)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Re,si)|0))<<13)|0;I=((b=b+Math.imul(Re,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,b=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,G)|0)+Math.imul(ft,Ee)|0,b=b+Math.imul(ft,G)|0,x=x+Math.imul(Me,De)|0,r=(r=r+Math.imul(Me,et)|0)+Math.imul(Ue,De)|0,b=b+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,b=b+Math.imul($,Jt)|0,x=x+Math.imul(ue,ke)|0,r=(r=r+Math.imul(ue,Be)|0)+Math.imul(Oe,ke)|0,b=b+Math.imul(Oe,Be)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Fe,st)|0,b=b+Math.imul(Fe,At)|0,x=x+Math.imul(Y,Bt)|0,r=(r=r+Math.imul(Y,Rt)|0)+Math.imul(ae,Bt)|0,b=b+Math.imul(ae,Rt)|0;var St=(I+(x=x+Math.imul(Le,si)|0)|0)+((8191&(r=(r=r+Math.imul(Le,ci)|0)+Math.imul(K,si)|0))<<13)|0;I=((b=b+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,G))+Math.imul(Mt,Ee)|0,b=Math.imul(Mt,G),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Me,Nt)|0,r=(r=r+Math.imul(Me,Jt)|0)+Math.imul(Ue,Nt)|0,b=b+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,ke)|0,r=(r=r+Math.imul(q,Be)|0)+Math.imul($,ke)|0,b=b+Math.imul($,Be)|0,x=x+Math.imul(ue,st)|0,r=(r=r+Math.imul(ue,At)|0)+Math.imul(Oe,st)|0,b=b+Math.imul(Oe,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Fe,Bt)|0,b=b+Math.imul(Fe,Rt)|0;var kt=(I+(x=x+Math.imul(Y,si)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ci)|0)+Math.imul(ae,si)|0))<<13)|0;I=((b=b+Math.imul(ae,ci)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,b=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,b=b+Math.imul(ft,Jt)|0,x=x+Math.imul(Me,ke)|0,r=(r=r+Math.imul(Me,Be)|0)+Math.imul(Ue,ke)|0,b=b+Math.imul(Ue,Be)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,b=b+Math.imul($,At)|0,x=x+Math.imul(ue,Bt)|0,r=(r=r+Math.imul(ue,Rt)|0)+Math.imul(Oe,Bt)|0,b=b+Math.imul(Oe,Rt)|0;var yi=(I+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Fe,si)|0))<<13)|0;I=((b=b+Math.imul(Fe,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,b=Math.imul(Mt,Jt),x=x+Math.imul(nt,ke)|0,r=(r=r+Math.imul(nt,Be)|0)+Math.imul(ft,ke)|0,b=b+Math.imul(ft,Be)|0,x=x+Math.imul(Me,st)|0,r=(r=r+Math.imul(Me,At)|0)+Math.imul(Ue,st)|0,b=b+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,b=b+Math.imul($,Rt)|0;var Ni=(I+(x=x+Math.imul(ue,si)|0)|0)+((8191&(r=(r=r+Math.imul(ue,ci)|0)+Math.imul(Oe,si)|0))<<13)|0;I=((b=b+Math.imul(Oe,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,ke),r=(r=Math.imul(rt,Be))+Math.imul(Mt,ke)|0,b=Math.imul(Mt,Be),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,b=b+Math.imul(ft,At)|0,x=x+Math.imul(Me,Bt)|0,r=(r=r+Math.imul(Me,Rt)|0)+Math.imul(Ue,Bt)|0,b=b+Math.imul(Ue,Rt)|0;var Si=(I+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;I=((b=b+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,b=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,b=b+Math.imul(ft,Rt)|0;var qi=(I+(x=x+Math.imul(Me,si)|0)|0)+((8191&(r=(r=r+Math.imul(Me,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;I=((b=b+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,b=Math.imul(Mt,Rt);var ot=(I+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;I=((b=b+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(I+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return I=((b=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,D[0]=sn,D[1]=Ui,D[2]=Di,D[3]=Xi,D[4]=Ke,D[5]=_t,D[6]=ye,D[7]=qe,D[8]=yt,D[9]=pe,D[10]=Je,D[11]=St,D[12]=kt,D[13]=yi,D[14]=Ni,D[15]=Si,D[16]=qi,D[17]=ot,D[18]=Kt,0!==I&&(D[19]=I,p.length++),p};function j(y,i,a){return(new W).mulp(y,i,a)}function W(y,i){this.x=y,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function Z(y,i,a){a.negative=i.negative^y.negative,a.length=y.length+i.length;for(var p=0,u=0,_=0;_>>26)|0)>>>26,D&=67108863}a.words[_]=I,p=D,D=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u>=1;return u},W.prototype.permute=function(i,a,p,u,_,D){for(var I=0;I>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u

>>=13),_>>>=13;for(D=2*a;D>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(y){for(var i=new Array(y.bitLength()),a=0;a>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var D=0;for(_=0;_>>26-a}D&&(this.words[_]=D,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_=0),u=a?(a-a%26)/26:0;var _=i%26,D=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=D,u=Math.max(0,u),x){for(var r=0;rD)for(this.length-=D,r=0;r=0&&(0!==b||r>=u);r--){var U=0|this.words[r];this.words[r]=b<<26-_|U>>>_,b=U&I}return x&&0!==b&&(x.words[x.length++]=b),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return v(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){v("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<=0);var a=i%26,p=(i-a)/26;return v(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(v("number"==typeof i),v(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a>26)-(x/67108864|0),this.words[_+p]=67108863&D}for(;_>26,this.words[_+p]=67108863&D;if(0===I)return this.strip();for(v(-1===I),I=0,_=0;_>26,this.words[_]=67108863&D;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,D=0|_.words[_.length-1];0!=(p=26-this._countBits(D))&&(_=_.ushln(p),u.iushln(p),D=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var b=0;b=0;N--){var z=67108864*(0|u.words[_.length+N])+(0|u.words[_.length+N-1]);for(z=Math.min(z/D|0,67108863),u._ishlnsubmul(_,z,N);0!==u.negative;)z--,u.negative=0,u._ishlnsubmul(_,1,N),u.isZero()||(u.negative^=1);r&&(r.words[N]=z)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return v(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,a),"mod"!==a&&(u=D.div.neg()),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),a),"mod"!==a&&(u=D.div.neg()),{div:u,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),a),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:D.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,D},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),D=p.cmp(u);return D<0||1===_&&0===D?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){v(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){v(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){v(0===i.negative),v(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=new o(0),I=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),b=a.clone();!a.isZero();){for(var U=0,N=1;0==(a.words[0]&N)&&U<26;++U,N<<=1);if(U>0)for(a.iushrn(U);U-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var z=0,be=1;0==(p.words[0]&be)&&z<26;++z,be<<=1);if(z>0)for(p.iushrn(z);z-- >0;)(D.isOdd()||I.isOdd())&&(D.iadd(r),I.isub(b)),D.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(D),_.isub(I)):(p.isub(a),D.isub(u),I.isub(_))}return{a:D,b:I,gcd:p.iushln(x)}},o.prototype._invmp=function(i){v(0===i.negative),v(!i.isZero());var U,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var I=0,x=1;0==(a.words[0]&x)&&I<26;++I,x<<=1);if(I>0)for(a.iushrn(I);I-- >0;)u.isOdd()&&u.iadd(D),u.iushrn(1);for(var r=0,b=1;0==(p.words[0]&b)&&r<26;++r,b<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(D),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(U=0===a.cmpn(1)?u:_).cmpn(0)<0&&U.iadd(i),U},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var D=a;a=p,p=D}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){v("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<>>26,this.words[D]=I&=67108863}return 0!==_&&(this.words[D]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),v(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:ui.length)return 1;if(this.length=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new le(i)},o.prototype.toRed=function(i){return v(!this.red,"Already a number in reduction context"),v(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return v(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return v(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return v(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return v(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return v(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return v(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return v(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return v(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return v(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return v(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return v(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return v(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return v(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ie={k256:null,p224:null,p192:null,p25519:null};function ee(y,i){this.name=y,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ve(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function he(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function le(y){if("string"==typeof y){var i=o._prime(y);this.m=i.p,this.prime=i}else v(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}function se(y){le.call(this,y),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)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(ve,ee),ve.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_>>22,D=I}i.words[_-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},ve.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(ie[i])return ie[i];var a;if("k256"===i)a=new ve;else if("p224"===i)a=new he;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return ie[i]=a,a},le.prototype._verify1=function(i){v(0===i.negative,"red works only with positives"),v(i.red,"red works only with red numbers")},le.prototype._verify2=function(i,a){v(0==(i.negative|a.negative),"red works only with positives"),v(i.red&&i.red===a.red,"red works only with red numbers")},le.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},le.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},le.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},le.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},le.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},le.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},le.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},le.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},le.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},le.prototype.isqr=function(i){return this.imul(i,i.clone())},le.prototype.sqr=function(i){return this.mul(i,i)},le.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(v(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);v(!u.isZero());var D=new o(1).toRed(this),I=D.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(I);)r.redIAdd(I);for(var b=this.pow(r,u),U=this.pow(i,u.addn(1).iushrn(1)),N=this.pow(i,u),z=_;0!==N.cmp(D);){for(var be=N,xe=0;0!==be.cmp(D);xe++)be=be.redSqr();v(xe=0;_--){for(var b=a.words[_],U=r-1;U>=0;U--){var N=b>>U&1;D!==u[0]&&(D=this.sqr(D)),0!==N||0!==I?(I<<=1,I|=N,(4==++x||0===_&&0===U)&&(D=this.mul(D,u[I]),x=0,I=0)):x=0}r=26}return D},le.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},le.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new se(i)},C(se,le),se.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},se.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},se.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},se.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},se.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ve=m.nmd(Ve),this)},5343:(Ve,Q)=>{"use strict";Q.byteLength=function l(E){var P=M(E),Z=P[1];return 3*(P[0]+Z)/4-Z},Q.toByteArray=function s(E){var P,ve,w=M(E),Z=w[0],j=w[1],W=new t(function R(E,P,w){return 3*(P+w)/4-w}(0,Z,j)),ie=0,ee=j>0?Z-4:Z;for(ve=0;ve>16&255,W[ie++]=P>>8&255,W[ie++]=255&P;return 2===j&&(P=e[E.charCodeAt(ve)]<<2|e[E.charCodeAt(ve+1)]>>4,W[ie++]=255&P),1===j&&(P=e[E.charCodeAt(ve)]<<10|e[E.charCodeAt(ve+1)]<<4|e[E.charCodeAt(ve+2)]>>2,W[ie++]=P>>8&255,W[ie++]=255&P),W},Q.fromByteArray=function A(E){for(var P,w=E.length,Z=w%3,j=[],W=16383,ie=0,ee=w-Z;ieee?ee:ie+W));return 1===Z?j.push(m[(P=E[w-1])>>2]+m[P<<4&63]+"=="):2===Z&&j.push(m[(P=(E[w-2]<<8)+E[w-1])>>10]+m[P>>4&63]+m[P<<2&63]+"="),j.join("")};for(var m=[],e=[],t="undefined"!=typeof Uint8Array?Uint8Array:Array,v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",C=0,o=v.length;C0)throw new Error("Invalid string. Length must be a multiple of 4");var w=E.indexOf("=");return-1===w&&(w=P),[w,w===P?0:4-w%4]}function L(E){return m[E>>18&63]+m[E>>12&63]+m[E>>6&63]+m[63&E]}function O(E,P,w){for(var j=[],W=P;W=48&&_<=57?_-48:_>=65&&_<=70?_-55:_>=97&&_<=102?_-87:void v(!1,"Invalid character in "+p)}function R(p,u,_){var D=l(p,_);return _-1>=u&&(D|=l(p,_-1)<<4),D}function s(p,u,_,D){for(var I=0,x=0,r=Math.min(p.length,_),b=u;b=49?U-49+10:U>=17?U-17+10:U,v(U>=0&&x0?u:_},o.min=function(u,_){return u.cmp(_)<0?u:_},o.prototype._init=function(u,_,D){if("number"==typeof u)return this._initNumber(u,_,D);if("object"==typeof u)return this._initArray(u,_,D);"hex"===_&&(_=16),v(_===(0|_)&&_>=2&&_<=36);var I=0;"-"===(u=u.toString().replace(/\s+/g,""))[0]&&(I++,this.negative=1),I=0;I-=3)this.words[x]|=(r=u[I]|u[I-1]<<8|u[I-2]<<16)<>>26-b&67108863,(b+=24)>=26&&(b-=26,x++);else if("le"===D)for(I=0,x=0;I>>26-b&67108863,(b+=24)>=26&&(b-=26,x++);return this._strip()},o.prototype._parseHex=function(u,_,D){this.length=Math.ceil((u.length-_)/6),this.words=new Array(this.length);for(var I=0;I=_;I-=2)b=R(u,_,I)<=18?(x-=18,this.words[r+=1]|=b>>>26):x+=8;else for(I=(u.length-_)%2==0?_+1:_;I=18?(x-=18,this.words[r+=1]|=b>>>26):x+=8;this._strip()},o.prototype._parseBase=function(u,_,D){this.words=[0],this.length=1;for(var I=0,x=1;x<=67108863;x*=_)I++;I--,x=x/_|0;for(var r=u.length-D,b=r%I,U=Math.min(r,r-b)+D,N=0,z=D;z1&&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},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=O}catch(p){o.prototype.inspect=O}else o.prototype.inspect=O;function O(){return(this.red?""}var A=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],E=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],P=[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 j(p,u,_){_.negative=u.negative^p.negative;var D=p.length+u.length|0;_.length=D,D=D-1|0;var I=0|p.words[0],x=0|u.words[0],r=I*x,U=r/67108864|0;_.words[0]=67108863&r;for(var N=1;N>>26,be=67108863&U,xe=Math.min(N,u.length-1),Re=Math.max(0,N-p.length+1);Re<=xe;Re++)z+=(r=(I=0|p.words[N-Re|0])*(x=0|u.words[Re])+be)/67108864|0,be=67108863&r;_.words[N]=0|be,U=0|z}return 0!==U?_.words[N]=0|U:_.length--,_._strip()}o.prototype.toString=function(u,_){var D;if(_=0|_||1,16===(u=u||10)||"hex"===u){D="";for(var I=0,x=0,r=0;r>>24-I&16777215)||r!==this.length-1?A[6-U.length]+U+D:U+D,(I+=2)>=26&&(I-=26,r--)}for(0!==x&&(D=x.toString(16)+D);D.length%_!=0;)D="0"+D;return 0!==this.negative&&(D="-"+D),D}if(u===(0|u)&&u>=2&&u<=36){var N=E[u],z=P[u];D="";var be=this.clone();for(be.negative=0;!be.isZero();){var xe=be.modrn(z).toString(u);D=(be=be.idivn(z)).isZero()?xe+D:A[N-xe.length]+xe+D}for(this.isZero()&&(D="0"+D);D.length%_!=0;)D="0"+D;return 0!==this.negative&&(D="-"+D),D}v(!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&&v(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-u:u},o.prototype.toJSON=function(){return this.toString(16,2)},M&&(o.prototype.toBuffer=function(u,_){return this.toArrayLike(M,u,_)}),o.prototype.toArray=function(u,_){return this.toArrayLike(Array,u,_)},o.prototype.toArrayLike=function(u,_,D){this._strip();var I=this.byteLength(),x=D||Math.max(1,I);v(I<=x,"byte array longer than desired length"),v(x>0,"Requested array length <= 0");var r=function(u,_){return u.allocUnsafe?u.allocUnsafe(_):new u(_)}(u,x);return this["_toArrayLike"+("le"===_?"LE":"BE")](r,I),r},o.prototype._toArrayLikeLE=function(u,_){for(var D=0,I=0,x=0,r=0;x>8&255),D>16&255),6===r?(D>24&255),I=0,r=0):(I=b>>>24,r+=2)}if(D=0&&(u[D--]=b>>8&255),D>=0&&(u[D--]=b>>16&255),6===r?(D>=0&&(u[D--]=b>>24&255),I=0,r=0):(I=b>>>24,r+=2)}if(D>=0)for(u[D--]=I;D>=0;)u[D--]=0},o.prototype._countBits=Math.clz32?function(u){return 32-Math.clz32(u)}:function(u){var _=u,D=0;return _>=4096&&(D+=13,_>>>=13),_>=64&&(D+=7,_>>>=7),_>=8&&(D+=4,_>>>=4),_>=2&&(D+=2,_>>>=2),D+_},o.prototype._zeroBits=function(u){if(0===u)return 26;var _=u,D=0;return 0==(8191&_)&&(D+=13,_>>>=13),0==(127&_)&&(D+=7,_>>>=7),0==(15&_)&&(D+=4,_>>>=4),0==(3&_)&&(D+=2,_>>>=2),0==(1&_)&&D++,D},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 D=0;D<_.length;D++)this.words[D]=this.words[D]&u.words[D];return this.length=_.length,this._strip()},o.prototype.iand=function(u){return v(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 _,D;this.length>u.length?(_=this,D=u):(_=u,D=this);for(var I=0;Iu.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){v("number"==typeof u&&u>=0);var _=0|Math.ceil(u/26),D=u%26;this._expand(_),D>0&&_--;for(var I=0;I<_;I++)this.words[I]=67108863&~this.words[I];return D>0&&(this.words[I]=~this.words[I]&67108863>>26-D),this._strip()},o.prototype.notn=function(u){return this.clone().inotn(u)},o.prototype.setn=function(u,_){v("number"==typeof u&&u>=0);var D=u/26|0,I=u%26;return this._expand(D+1),this.words[D]=_?this.words[D]|1<u.length?(D=this,I=u):(D=u,I=this);for(var x=0,r=0;r>>26;for(;0!==x&&r>>26;if(this.length=D.length,0!==x)this.words[this.length]=x,this.length++;else if(D!==this)for(;ru.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 I,x,D=this.cmp(u);if(0===D)return this.negative=0,this.length=1,this.words[0]=0,this;D>0?(I=this,x=u):(I=u,x=this);for(var r=0,b=0;b>26,this.words[b]=67108863&_;for(;0!==r&&b>26,this.words[b]=67108863&_;if(0===r&&b>>13,ze=0|I[1],Le=8191&ze,K=ze>>>13,we=0|I[2],Y=8191&we,ae=we>>>13,Ge=0|I[3],vt=8191&Ge,Fe=Ge>>>13,Ne=0|I[4],ue=8191&Ne,Oe=Ne>>>13,Pe=0|I[5],q=8191&Pe,$=Pe>>>13,ce=0|I[6],Me=8191&ce,Ue=ce>>>13,lt=0|I[7],nt=8191<,ft=lt>>>13,it=0|I[8],rt=8191&it,Mt=it>>>13,Zt=0|I[9],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|x[0],jt=8191&Ii,ei=Ii>>>13,ki=0|x[1],ai=8191&ki,hi=ki>>>13,Ze=0|x[2],Ee=8191&Ze,G=Ze>>>13,ge=0|x[3],De=8191&ge,et=ge>>>13,$t=0|x[4],Nt=8191&$t,Jt=$t>>>13,ct=0|x[5],ke=8191&ct,Be=ct>>>13,at=0|x[6],st=8191&at,At=at>>>13,li=0|x[7],Bt=8191&li,Rt=li>>>13,Li=0|x[8],si=8191&Li,ci=Li>>>13,sn=0|x[9],Ui=8191&sn,Di=sn>>>13;D.negative=u.negative^_.negative,D.length=19;var Xi=(b+(U=Math.imul(xe,jt))|0)+((8191&(N=(N=Math.imul(xe,ei))+Math.imul(Re,jt)|0))<<13)|0;b=((z=Math.imul(Re,ei))+(N>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,U=Math.imul(Le,jt),N=(N=Math.imul(Le,ei))+Math.imul(K,jt)|0,z=Math.imul(K,ei);var Ke=(b+(U=U+Math.imul(xe,ai)|0)|0)+((8191&(N=(N=N+Math.imul(xe,hi)|0)+Math.imul(Re,ai)|0))<<13)|0;b=((z=z+Math.imul(Re,hi)|0)+(N>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,U=Math.imul(Y,jt),N=(N=Math.imul(Y,ei))+Math.imul(ae,jt)|0,z=Math.imul(ae,ei),U=U+Math.imul(Le,ai)|0,N=(N=N+Math.imul(Le,hi)|0)+Math.imul(K,ai)|0,z=z+Math.imul(K,hi)|0;var _t=(b+(U=U+Math.imul(xe,Ee)|0)|0)+((8191&(N=(N=N+Math.imul(xe,G)|0)+Math.imul(Re,Ee)|0))<<13)|0;b=((z=z+Math.imul(Re,G)|0)+(N>>>13)|0)+(_t>>>26)|0,_t&=67108863,U=Math.imul(vt,jt),N=(N=Math.imul(vt,ei))+Math.imul(Fe,jt)|0,z=Math.imul(Fe,ei),U=U+Math.imul(Y,ai)|0,N=(N=N+Math.imul(Y,hi)|0)+Math.imul(ae,ai)|0,z=z+Math.imul(ae,hi)|0,U=U+Math.imul(Le,Ee)|0,N=(N=N+Math.imul(Le,G)|0)+Math.imul(K,Ee)|0,z=z+Math.imul(K,G)|0;var ye=(b+(U=U+Math.imul(xe,De)|0)|0)+((8191&(N=(N=N+Math.imul(xe,et)|0)+Math.imul(Re,De)|0))<<13)|0;b=((z=z+Math.imul(Re,et)|0)+(N>>>13)|0)+(ye>>>26)|0,ye&=67108863,U=Math.imul(ue,jt),N=(N=Math.imul(ue,ei))+Math.imul(Oe,jt)|0,z=Math.imul(Oe,ei),U=U+Math.imul(vt,ai)|0,N=(N=N+Math.imul(vt,hi)|0)+Math.imul(Fe,ai)|0,z=z+Math.imul(Fe,hi)|0,U=U+Math.imul(Y,Ee)|0,N=(N=N+Math.imul(Y,G)|0)+Math.imul(ae,Ee)|0,z=z+Math.imul(ae,G)|0,U=U+Math.imul(Le,De)|0,N=(N=N+Math.imul(Le,et)|0)+Math.imul(K,De)|0,z=z+Math.imul(K,et)|0;var qe=(b+(U=U+Math.imul(xe,Nt)|0)|0)+((8191&(N=(N=N+Math.imul(xe,Jt)|0)+Math.imul(Re,Nt)|0))<<13)|0;b=((z=z+Math.imul(Re,Jt)|0)+(N>>>13)|0)+(qe>>>26)|0,qe&=67108863,U=Math.imul(q,jt),N=(N=Math.imul(q,ei))+Math.imul($,jt)|0,z=Math.imul($,ei),U=U+Math.imul(ue,ai)|0,N=(N=N+Math.imul(ue,hi)|0)+Math.imul(Oe,ai)|0,z=z+Math.imul(Oe,hi)|0,U=U+Math.imul(vt,Ee)|0,N=(N=N+Math.imul(vt,G)|0)+Math.imul(Fe,Ee)|0,z=z+Math.imul(Fe,G)|0,U=U+Math.imul(Y,De)|0,N=(N=N+Math.imul(Y,et)|0)+Math.imul(ae,De)|0,z=z+Math.imul(ae,et)|0,U=U+Math.imul(Le,Nt)|0,N=(N=N+Math.imul(Le,Jt)|0)+Math.imul(K,Nt)|0,z=z+Math.imul(K,Jt)|0;var yt=(b+(U=U+Math.imul(xe,ke)|0)|0)+((8191&(N=(N=N+Math.imul(xe,Be)|0)+Math.imul(Re,ke)|0))<<13)|0;b=((z=z+Math.imul(Re,Be)|0)+(N>>>13)|0)+(yt>>>26)|0,yt&=67108863,U=Math.imul(Me,jt),N=(N=Math.imul(Me,ei))+Math.imul(Ue,jt)|0,z=Math.imul(Ue,ei),U=U+Math.imul(q,ai)|0,N=(N=N+Math.imul(q,hi)|0)+Math.imul($,ai)|0,z=z+Math.imul($,hi)|0,U=U+Math.imul(ue,Ee)|0,N=(N=N+Math.imul(ue,G)|0)+Math.imul(Oe,Ee)|0,z=z+Math.imul(Oe,G)|0,U=U+Math.imul(vt,De)|0,N=(N=N+Math.imul(vt,et)|0)+Math.imul(Fe,De)|0,z=z+Math.imul(Fe,et)|0,U=U+Math.imul(Y,Nt)|0,N=(N=N+Math.imul(Y,Jt)|0)+Math.imul(ae,Nt)|0,z=z+Math.imul(ae,Jt)|0,U=U+Math.imul(Le,ke)|0,N=(N=N+Math.imul(Le,Be)|0)+Math.imul(K,ke)|0,z=z+Math.imul(K,Be)|0;var pe=(b+(U=U+Math.imul(xe,st)|0)|0)+((8191&(N=(N=N+Math.imul(xe,At)|0)+Math.imul(Re,st)|0))<<13)|0;b=((z=z+Math.imul(Re,At)|0)+(N>>>13)|0)+(pe>>>26)|0,pe&=67108863,U=Math.imul(nt,jt),N=(N=Math.imul(nt,ei))+Math.imul(ft,jt)|0,z=Math.imul(ft,ei),U=U+Math.imul(Me,ai)|0,N=(N=N+Math.imul(Me,hi)|0)+Math.imul(Ue,ai)|0,z=z+Math.imul(Ue,hi)|0,U=U+Math.imul(q,Ee)|0,N=(N=N+Math.imul(q,G)|0)+Math.imul($,Ee)|0,z=z+Math.imul($,G)|0,U=U+Math.imul(ue,De)|0,N=(N=N+Math.imul(ue,et)|0)+Math.imul(Oe,De)|0,z=z+Math.imul(Oe,et)|0,U=U+Math.imul(vt,Nt)|0,N=(N=N+Math.imul(vt,Jt)|0)+Math.imul(Fe,Nt)|0,z=z+Math.imul(Fe,Jt)|0,U=U+Math.imul(Y,ke)|0,N=(N=N+Math.imul(Y,Be)|0)+Math.imul(ae,ke)|0,z=z+Math.imul(ae,Be)|0,U=U+Math.imul(Le,st)|0,N=(N=N+Math.imul(Le,At)|0)+Math.imul(K,st)|0,z=z+Math.imul(K,At)|0;var Je=(b+(U=U+Math.imul(xe,Bt)|0)|0)+((8191&(N=(N=N+Math.imul(xe,Rt)|0)+Math.imul(Re,Bt)|0))<<13)|0;b=((z=z+Math.imul(Re,Rt)|0)+(N>>>13)|0)+(Je>>>26)|0,Je&=67108863,U=Math.imul(rt,jt),N=(N=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,z=Math.imul(Mt,ei),U=U+Math.imul(nt,ai)|0,N=(N=N+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,z=z+Math.imul(ft,hi)|0,U=U+Math.imul(Me,Ee)|0,N=(N=N+Math.imul(Me,G)|0)+Math.imul(Ue,Ee)|0,z=z+Math.imul(Ue,G)|0,U=U+Math.imul(q,De)|0,N=(N=N+Math.imul(q,et)|0)+Math.imul($,De)|0,z=z+Math.imul($,et)|0,U=U+Math.imul(ue,Nt)|0,N=(N=N+Math.imul(ue,Jt)|0)+Math.imul(Oe,Nt)|0,z=z+Math.imul(Oe,Jt)|0,U=U+Math.imul(vt,ke)|0,N=(N=N+Math.imul(vt,Be)|0)+Math.imul(Fe,ke)|0,z=z+Math.imul(Fe,Be)|0,U=U+Math.imul(Y,st)|0,N=(N=N+Math.imul(Y,At)|0)+Math.imul(ae,st)|0,z=z+Math.imul(ae,At)|0,U=U+Math.imul(Le,Bt)|0,N=(N=N+Math.imul(Le,Rt)|0)+Math.imul(K,Bt)|0,z=z+Math.imul(K,Rt)|0;var St=(b+(U=U+Math.imul(xe,si)|0)|0)+((8191&(N=(N=N+Math.imul(xe,ci)|0)+Math.imul(Re,si)|0))<<13)|0;b=((z=z+Math.imul(Re,ci)|0)+(N>>>13)|0)+(St>>>26)|0,St&=67108863,U=Math.imul(Ft,jt),N=(N=Math.imul(Ft,ei))+Math.imul(Vt,jt)|0,z=Math.imul(Vt,ei),U=U+Math.imul(rt,ai)|0,N=(N=N+Math.imul(rt,hi)|0)+Math.imul(Mt,ai)|0,z=z+Math.imul(Mt,hi)|0,U=U+Math.imul(nt,Ee)|0,N=(N=N+Math.imul(nt,G)|0)+Math.imul(ft,Ee)|0,z=z+Math.imul(ft,G)|0,U=U+Math.imul(Me,De)|0,N=(N=N+Math.imul(Me,et)|0)+Math.imul(Ue,De)|0,z=z+Math.imul(Ue,et)|0,U=U+Math.imul(q,Nt)|0,N=(N=N+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,z=z+Math.imul($,Jt)|0,U=U+Math.imul(ue,ke)|0,N=(N=N+Math.imul(ue,Be)|0)+Math.imul(Oe,ke)|0,z=z+Math.imul(Oe,Be)|0,U=U+Math.imul(vt,st)|0,N=(N=N+Math.imul(vt,At)|0)+Math.imul(Fe,st)|0,z=z+Math.imul(Fe,At)|0,U=U+Math.imul(Y,Bt)|0,N=(N=N+Math.imul(Y,Rt)|0)+Math.imul(ae,Bt)|0,z=z+Math.imul(ae,Rt)|0,U=U+Math.imul(Le,si)|0,N=(N=N+Math.imul(Le,ci)|0)+Math.imul(K,si)|0,z=z+Math.imul(K,ci)|0;var kt=(b+(U=U+Math.imul(xe,Ui)|0)|0)+((8191&(N=(N=N+Math.imul(xe,Di)|0)+Math.imul(Re,Ui)|0))<<13)|0;b=((z=z+Math.imul(Re,Di)|0)+(N>>>13)|0)+(kt>>>26)|0,kt&=67108863,U=Math.imul(Ft,ai),N=(N=Math.imul(Ft,hi))+Math.imul(Vt,ai)|0,z=Math.imul(Vt,hi),U=U+Math.imul(rt,Ee)|0,N=(N=N+Math.imul(rt,G)|0)+Math.imul(Mt,Ee)|0,z=z+Math.imul(Mt,G)|0,U=U+Math.imul(nt,De)|0,N=(N=N+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,z=z+Math.imul(ft,et)|0,U=U+Math.imul(Me,Nt)|0,N=(N=N+Math.imul(Me,Jt)|0)+Math.imul(Ue,Nt)|0,z=z+Math.imul(Ue,Jt)|0,U=U+Math.imul(q,ke)|0,N=(N=N+Math.imul(q,Be)|0)+Math.imul($,ke)|0,z=z+Math.imul($,Be)|0,U=U+Math.imul(ue,st)|0,N=(N=N+Math.imul(ue,At)|0)+Math.imul(Oe,st)|0,z=z+Math.imul(Oe,At)|0,U=U+Math.imul(vt,Bt)|0,N=(N=N+Math.imul(vt,Rt)|0)+Math.imul(Fe,Bt)|0,z=z+Math.imul(Fe,Rt)|0,U=U+Math.imul(Y,si)|0,N=(N=N+Math.imul(Y,ci)|0)+Math.imul(ae,si)|0,z=z+Math.imul(ae,ci)|0;var yi=(b+(U=U+Math.imul(Le,Ui)|0)|0)+((8191&(N=(N=N+Math.imul(Le,Di)|0)+Math.imul(K,Ui)|0))<<13)|0;b=((z=z+Math.imul(K,Di)|0)+(N>>>13)|0)+(yi>>>26)|0,yi&=67108863,U=Math.imul(Ft,Ee),N=(N=Math.imul(Ft,G))+Math.imul(Vt,Ee)|0,z=Math.imul(Vt,G),U=U+Math.imul(rt,De)|0,N=(N=N+Math.imul(rt,et)|0)+Math.imul(Mt,De)|0,z=z+Math.imul(Mt,et)|0,U=U+Math.imul(nt,Nt)|0,N=(N=N+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,z=z+Math.imul(ft,Jt)|0,U=U+Math.imul(Me,ke)|0,N=(N=N+Math.imul(Me,Be)|0)+Math.imul(Ue,ke)|0,z=z+Math.imul(Ue,Be)|0,U=U+Math.imul(q,st)|0,N=(N=N+Math.imul(q,At)|0)+Math.imul($,st)|0,z=z+Math.imul($,At)|0,U=U+Math.imul(ue,Bt)|0,N=(N=N+Math.imul(ue,Rt)|0)+Math.imul(Oe,Bt)|0,z=z+Math.imul(Oe,Rt)|0,U=U+Math.imul(vt,si)|0,N=(N=N+Math.imul(vt,ci)|0)+Math.imul(Fe,si)|0,z=z+Math.imul(Fe,ci)|0;var Ni=(b+(U=U+Math.imul(Y,Ui)|0)|0)+((8191&(N=(N=N+Math.imul(Y,Di)|0)+Math.imul(ae,Ui)|0))<<13)|0;b=((z=z+Math.imul(ae,Di)|0)+(N>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,U=Math.imul(Ft,De),N=(N=Math.imul(Ft,et))+Math.imul(Vt,De)|0,z=Math.imul(Vt,et),U=U+Math.imul(rt,Nt)|0,N=(N=N+Math.imul(rt,Jt)|0)+Math.imul(Mt,Nt)|0,z=z+Math.imul(Mt,Jt)|0,U=U+Math.imul(nt,ke)|0,N=(N=N+Math.imul(nt,Be)|0)+Math.imul(ft,ke)|0,z=z+Math.imul(ft,Be)|0,U=U+Math.imul(Me,st)|0,N=(N=N+Math.imul(Me,At)|0)+Math.imul(Ue,st)|0,z=z+Math.imul(Ue,At)|0,U=U+Math.imul(q,Bt)|0,N=(N=N+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,z=z+Math.imul($,Rt)|0,U=U+Math.imul(ue,si)|0,N=(N=N+Math.imul(ue,ci)|0)+Math.imul(Oe,si)|0,z=z+Math.imul(Oe,ci)|0;var Si=(b+(U=U+Math.imul(vt,Ui)|0)|0)+((8191&(N=(N=N+Math.imul(vt,Di)|0)+Math.imul(Fe,Ui)|0))<<13)|0;b=((z=z+Math.imul(Fe,Di)|0)+(N>>>13)|0)+(Si>>>26)|0,Si&=67108863,U=Math.imul(Ft,Nt),N=(N=Math.imul(Ft,Jt))+Math.imul(Vt,Nt)|0,z=Math.imul(Vt,Jt),U=U+Math.imul(rt,ke)|0,N=(N=N+Math.imul(rt,Be)|0)+Math.imul(Mt,ke)|0,z=z+Math.imul(Mt,Be)|0,U=U+Math.imul(nt,st)|0,N=(N=N+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,z=z+Math.imul(ft,At)|0,U=U+Math.imul(Me,Bt)|0,N=(N=N+Math.imul(Me,Rt)|0)+Math.imul(Ue,Bt)|0,z=z+Math.imul(Ue,Rt)|0,U=U+Math.imul(q,si)|0,N=(N=N+Math.imul(q,ci)|0)+Math.imul($,si)|0,z=z+Math.imul($,ci)|0;var qi=(b+(U=U+Math.imul(ue,Ui)|0)|0)+((8191&(N=(N=N+Math.imul(ue,Di)|0)+Math.imul(Oe,Ui)|0))<<13)|0;b=((z=z+Math.imul(Oe,Di)|0)+(N>>>13)|0)+(qi>>>26)|0,qi&=67108863,U=Math.imul(Ft,ke),N=(N=Math.imul(Ft,Be))+Math.imul(Vt,ke)|0,z=Math.imul(Vt,Be),U=U+Math.imul(rt,st)|0,N=(N=N+Math.imul(rt,At)|0)+Math.imul(Mt,st)|0,z=z+Math.imul(Mt,At)|0,U=U+Math.imul(nt,Bt)|0,N=(N=N+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,z=z+Math.imul(ft,Rt)|0,U=U+Math.imul(Me,si)|0,N=(N=N+Math.imul(Me,ci)|0)+Math.imul(Ue,si)|0,z=z+Math.imul(Ue,ci)|0;var ot=(b+(U=U+Math.imul(q,Ui)|0)|0)+((8191&(N=(N=N+Math.imul(q,Di)|0)+Math.imul($,Ui)|0))<<13)|0;b=((z=z+Math.imul($,Di)|0)+(N>>>13)|0)+(ot>>>26)|0,ot&=67108863,U=Math.imul(Ft,st),N=(N=Math.imul(Ft,At))+Math.imul(Vt,st)|0,z=Math.imul(Vt,At),U=U+Math.imul(rt,Bt)|0,N=(N=N+Math.imul(rt,Rt)|0)+Math.imul(Mt,Bt)|0,z=z+Math.imul(Mt,Rt)|0,U=U+Math.imul(nt,si)|0,N=(N=N+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0,z=z+Math.imul(ft,ci)|0;var Kt=(b+(U=U+Math.imul(Me,Ui)|0)|0)+((8191&(N=(N=N+Math.imul(Me,Di)|0)+Math.imul(Ue,Ui)|0))<<13)|0;b=((z=z+Math.imul(Ue,Di)|0)+(N>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,U=Math.imul(Ft,Bt),N=(N=Math.imul(Ft,Rt))+Math.imul(Vt,Bt)|0,z=Math.imul(Vt,Rt),U=U+Math.imul(rt,si)|0,N=(N=N+Math.imul(rt,ci)|0)+Math.imul(Mt,si)|0,z=z+Math.imul(Mt,ci)|0;var gt=(b+(U=U+Math.imul(nt,Ui)|0)|0)+((8191&(N=(N=N+Math.imul(nt,Di)|0)+Math.imul(ft,Ui)|0))<<13)|0;b=((z=z+Math.imul(ft,Di)|0)+(N>>>13)|0)+(gt>>>26)|0,gt&=67108863,U=Math.imul(Ft,si),N=(N=Math.imul(Ft,ci))+Math.imul(Vt,si)|0,z=Math.imul(Vt,ci);var Lt=(b+(U=U+Math.imul(rt,Ui)|0)|0)+((8191&(N=(N=N+Math.imul(rt,Di)|0)+Math.imul(Mt,Ui)|0))<<13)|0;b=((z=z+Math.imul(Mt,Di)|0)+(N>>>13)|0)+(Lt>>>26)|0,Lt&=67108863;var ui=(b+(U=Math.imul(Ft,Ui))|0)+((8191&(N=(N=Math.imul(Ft,Di))+Math.imul(Vt,Ui)|0))<<13)|0;return b=((z=Math.imul(Vt,Di))+(N>>>13)|0)+(ui>>>26)|0,ui&=67108863,r[0]=Xi,r[1]=Ke,r[2]=_t,r[3]=ye,r[4]=qe,r[5]=yt,r[6]=pe,r[7]=Je,r[8]=St,r[9]=kt,r[10]=yi,r[11]=Ni,r[12]=Si,r[13]=qi,r[14]=ot,r[15]=Kt,r[16]=gt,r[17]=Lt,r[18]=ui,0!==b&&(r[19]=b,D.length++),D};function ie(p,u,_){_.negative=u.negative^p.negative,_.length=p.length+u.length;for(var D=0,I=0,x=0;x<_.length-1;x++){var r=I;I=0;for(var b=67108863&D,U=Math.min(x,u.length-1),N=Math.max(0,x-p.length+1);N<=U;N++){var Re=(0|p.words[x-N])*(0|u.words[N]),ze=67108863ℜb=67108863&(ze=ze+b|0),I+=(r=(r=r+(Re/67108864|0)|0)+(ze>>>26)|0)>>>26,r&=67108863}_.words[x]=b,D=r,r=I}return 0!==D?_.words[x]=D:_.length--,_._strip()}function ee(p,u,_){return ie(p,u,_)}function ve(p,u){this.x=p,this.y=u}Math.imul||(W=j),o.prototype.mulTo=function(u,_){var I=this.length+u.length;return 10===this.length&&10===u.length?W(this,u,_):I<63?j(this,u,_):I<1024?ie(this,u,_):ee(this,u,_)},ve.prototype.makeRBT=function(u){for(var _=new Array(u),D=o.prototype._countBits(u)-1,I=0;I>=1;return I},ve.prototype.permute=function(u,_,D,I,x,r){for(var b=0;b>>=1)x++;return 1<>>=13),x>>>=13;for(r=2*_;r>=26,D+=x/67108864|0,D+=r>>>26,this.words[I]=67108863&r}return 0!==D&&(this.words[I]=D,this.length++),_?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(p){for(var u=new Array(p.bitLength()),_=0;_>>_%26&1;return u}(u);if(0===_.length)return new o(1);for(var D=this,I=0;I<_.length&&0===_[I];I++,D=D.sqr());if(++I<_.length)for(var x=D.sqr();I<_.length;I++,x=x.sqr())0!==_[I]&&(D=D.mul(x));return D},o.prototype.iushln=function(u){v("number"==typeof u&&u>=0);var x,_=u%26,D=(u-_)/26,I=67108863>>>26-_<<26-_;if(0!==_){var r=0;for(x=0;x>>26-_}r&&(this.words[x]=r,this.length++)}if(0!==D){for(x=this.length-1;x>=0;x--)this.words[x+D]=this.words[x];for(x=0;x=0),I=_?(_-_%26)/26:0;var x=u%26,r=Math.min((u-x)/26,this.length),b=67108863^67108863>>>x<r)for(this.length-=r,N=0;N=0&&(0!==z||N>=I);N--){var be=0|this.words[N];this.words[N]=z<<26-x|be>>>x,z=be&b}return U&&0!==z&&(U.words[U.length++]=z),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(u,_,D){return v(0===this.negative),this.iushrn(u,_,D)},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){v("number"==typeof u&&u>=0);var _=u%26,D=(u-_)/26;return!(this.length<=D||!(this.words[D]&1<<_))},o.prototype.imaskn=function(u){v("number"==typeof u&&u>=0);var _=u%26,D=(u-_)/26;return v(0===this.negative,"imaskn works only with positive numbers"),this.length<=D?this:(0!==_&&D++,this.length=Math.min(D,this.length),0!==_&&(this.words[this.length-1]&=67108863^67108863>>>_<<_),this._strip())},o.prototype.maskn=function(u){return this.clone().imaskn(u)},o.prototype.iaddn=function(u){return v("number"==typeof u),v(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(v("number"==typeof u),v(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)-(U/67108864|0),this.words[x+D]=67108863&r}for(;x>26,this.words[x+D]=67108863&r;if(0===b)return this._strip();for(v(-1===b),b=0,x=0;x>26,this.words[x]=67108863&r;return this.negative=1,this._strip()},o.prototype._wordDiv=function(u,_){var D,I=this.clone(),x=u,r=0|x.words[x.length-1];0!=(D=26-this._countBits(r))&&(x=x.ushln(D),I.iushln(D),r=0|x.words[x.length-1]);var N,U=I.length-x.length;if("mod"!==_){(N=new o(null)).length=U+1,N.words=new Array(N.length);for(var z=0;z=0;xe--){var Re=67108864*(0|I.words[x.length+xe])+(0|I.words[x.length+xe-1]);for(Re=Math.min(Re/r|0,67108863),I._ishlnsubmul(x,Re,xe);0!==I.negative;)Re--,I.negative=0,I._ishlnsubmul(x,1,xe),I.isZero()||(I.negative^=1);N&&(N.words[xe]=Re)}return N&&N._strip(),I._strip(),"div"!==_&&0!==D&&I.iushrn(D),{div:N||null,mod:I}},o.prototype.divmod=function(u,_,D){return v(!u.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===u.negative?(r=this.neg().divmod(u,_),"mod"!==_&&(I=r.div.neg()),"div"!==_&&(x=r.mod.neg(),D&&0!==x.negative&&x.iadd(u)),{div:I,mod:x}):0===this.negative&&0!==u.negative?(r=this.divmod(u.neg(),_),"mod"!==_&&(I=r.div.neg()),{div:I,mod:r.mod}):0!=(this.negative&u.negative)?(r=this.neg().divmod(u.neg(),_),"div"!==_&&(x=r.mod.neg(),D&&0!==x.negative&&x.isub(u)),{div:r.div,mod:x}):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 I,x,r},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 D=0!==_.div.negative?_.mod.isub(u):_.mod,I=u.ushrn(1),x=u.andln(1),r=D.cmp(I);return r<0||1===x&&0===r?_.div:0!==_.div.negative?_.div.isubn(1):_.div.iaddn(1)},o.prototype.modrn=function(u){var _=u<0;_&&(u=-u),v(u<=67108863);for(var D=(1<<26)%u,I=0,x=this.length-1;x>=0;x--)I=(D*I+(0|this.words[x]))%u;return _?-I:I},o.prototype.modn=function(u){return this.modrn(u)},o.prototype.idivn=function(u){var _=u<0;_&&(u=-u),v(u<=67108863);for(var D=0,I=this.length-1;I>=0;I--){var x=(0|this.words[I])+67108864*D;this.words[I]=x/u|0,D=x%u}return this._strip(),_?this.ineg():this},o.prototype.divn=function(u){return this.clone().idivn(u)},o.prototype.egcd=function(u){v(0===u.negative),v(!u.isZero());var _=this,D=u.clone();_=0!==_.negative?_.umod(u):_.clone();for(var I=new o(1),x=new o(0),r=new o(0),b=new o(1),U=0;_.isEven()&&D.isEven();)_.iushrn(1),D.iushrn(1),++U;for(var N=D.clone(),z=_.clone();!_.isZero();){for(var be=0,xe=1;0==(_.words[0]&xe)&&be<26;++be,xe<<=1);if(be>0)for(_.iushrn(be);be-- >0;)(I.isOdd()||x.isOdd())&&(I.iadd(N),x.isub(z)),I.iushrn(1),x.iushrn(1);for(var Re=0,ze=1;0==(D.words[0]&ze)&&Re<26;++Re,ze<<=1);if(Re>0)for(D.iushrn(Re);Re-- >0;)(r.isOdd()||b.isOdd())&&(r.iadd(N),b.isub(z)),r.iushrn(1),b.iushrn(1);_.cmp(D)>=0?(_.isub(D),I.isub(r),x.isub(b)):(D.isub(_),r.isub(I),b.isub(x))}return{a:r,b,gcd:D.iushln(U)}},o.prototype._invmp=function(u){v(0===u.negative),v(!u.isZero());var be,_=this,D=u.clone();_=0!==_.negative?_.umod(u):_.clone();for(var I=new o(1),x=new o(0),r=D.clone();_.cmpn(1)>0&&D.cmpn(1)>0;){for(var b=0,U=1;0==(_.words[0]&U)&&b<26;++b,U<<=1);if(b>0)for(_.iushrn(b);b-- >0;)I.isOdd()&&I.iadd(r),I.iushrn(1);for(var N=0,z=1;0==(D.words[0]&z)&&N<26;++N,z<<=1);if(N>0)for(D.iushrn(N);N-- >0;)x.isOdd()&&x.iadd(r),x.iushrn(1);_.cmp(D)>=0?(_.isub(D),I.isub(x)):(D.isub(_),x.isub(I))}return(be=0===_.cmpn(1)?I:x).cmpn(0)<0&&be.iadd(u),be},o.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var _=this.clone(),D=u.clone();_.negative=0,D.negative=0;for(var I=0;_.isEven()&&D.isEven();I++)_.iushrn(1),D.iushrn(1);for(;;){for(;_.isEven();)_.iushrn(1);for(;D.isEven();)D.iushrn(1);var x=_.cmp(D);if(x<0){var r=_;_=D,D=r}else if(0===x||0===D.cmpn(1))break;_.isub(D)}return D.iushln(I)},o.prototype.invm=function(u){return this.egcd(u).a.umod(u)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(u){return this.words[0]&u},o.prototype.bincn=function(u){v("number"==typeof u);var _=u%26,D=(u-_)/26,I=1<<_;if(this.length<=D)return this._expand(D+1),this.words[D]|=I,this;for(var x=I,r=D;0!==x&&r>>26,this.words[r]=b&=67108863}return 0!==x&&(this.words[r]=x,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(u){var D,_=u<0;if(0!==this.negative&&!_)return-1;if(0===this.negative&&_)return 1;if(this._strip(),this.length>1)D=1;else{_&&(u=-u),v(u<=67108863,"Number is too big");var I=0|this.words[0];D=I===u?0:Iu.length)return 1;if(this.length=0;D--){var I=0|this.words[D],x=0|u.words[D];if(I!==x){Ix&&(_=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 i(u)},o.prototype.toRed=function(u){return v(!this.red,"Already a number in reduction context"),v(0===this.negative,"red works only with positives"),u.convertTo(this)._forceRed(u)},o.prototype.fromRed=function(){return v(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 v(!this.red,"Already a number in reduction context"),this._forceRed(u)},o.prototype.redAdd=function(u){return v(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},o.prototype.redIAdd=function(u){return v(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},o.prototype.redSub=function(u){return v(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},o.prototype.redISub=function(u){return v(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},o.prototype.redShl=function(u){return v(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},o.prototype.redMul=function(u){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},o.prototype.redIMul=function(u){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},o.prototype.redSqr=function(){return v(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return v(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return v(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return v(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return v(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(u){return v(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var he={k256:null,p224:null,p192:null,p25519:null};function re(p,u){this.name=p,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 de(){re.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function le(){re.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function se(){re.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function y(){re.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function i(p){if("string"==typeof p){var u=o._prime(p);this.m=u.p,this.prime=u}else v(p.gtn(1),"modulus must be greater than 1"),this.m=p,this.prime=null}function a(p){i.call(this,p),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)}re.prototype._tmp=function(){var u=new o(null);return u.words=new Array(Math.ceil(this.n/13)),u},re.prototype.ireduce=function(u){var D,_=u;do{this.split(_,this.tmp),D=(_=(_=this.imulK(_)).iadd(this.tmp)).bitLength()}while(D>this.n);var I=D0?_.isub(this.p):void 0!==_.strip?_.strip():_._strip(),_},re.prototype.split=function(u,_){u.iushrn(this.n,0,_)},re.prototype.imulK=function(u){return u.imul(this.k)},C(de,re),de.prototype.split=function(u,_){for(var D=4194303,I=Math.min(u.length,9),x=0;x>>22,r=b}u.words[x-10]=r>>>=22,u.length-=0===r&&u.length>10?10:9},de.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var _=0,D=0;D>>=26,u.words[D]=x,_=I}return 0!==_&&(u.words[u.length++]=_),u},o._prime=function(u){if(he[u])return he[u];var _;if("k256"===u)_=new de;else if("p224"===u)_=new le;else if("p192"===u)_=new se;else{if("p25519"!==u)throw new Error("Unknown prime "+u);_=new y}return he[u]=_,_},i.prototype._verify1=function(u){v(0===u.negative,"red works only with positives"),v(u.red,"red works only with red numbers")},i.prototype._verify2=function(u,_){v(0==(u.negative|_.negative),"red works only with positives"),v(u.red&&u.red===_.red,"red works only with red numbers")},i.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):(L(u,u.umod(this.m)._forceRed(this)),u)},i.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},i.prototype.add=function(u,_){this._verify2(u,_);var D=u.add(_);return D.cmp(this.m)>=0&&D.isub(this.m),D._forceRed(this)},i.prototype.iadd=function(u,_){this._verify2(u,_);var D=u.iadd(_);return D.cmp(this.m)>=0&&D.isub(this.m),D},i.prototype.sub=function(u,_){this._verify2(u,_);var D=u.sub(_);return D.cmpn(0)<0&&D.iadd(this.m),D._forceRed(this)},i.prototype.isub=function(u,_){this._verify2(u,_);var D=u.isub(_);return D.cmpn(0)<0&&D.iadd(this.m),D},i.prototype.shl=function(u,_){return this._verify1(u),this.imod(u.ushln(_))},i.prototype.imul=function(u,_){return this._verify2(u,_),this.imod(u.imul(_))},i.prototype.mul=function(u,_){return this._verify2(u,_),this.imod(u.mul(_))},i.prototype.isqr=function(u){return this.imul(u,u.clone())},i.prototype.sqr=function(u){return this.mul(u,u)},i.prototype.sqrt=function(u){if(u.isZero())return u.clone();var _=this.m.andln(3);if(v(_%2==1),3===_){var D=this.m.add(new o(1)).iushrn(2);return this.pow(u,D)}for(var I=this.m.subn(1),x=0;!I.isZero()&&0===I.andln(1);)x++,I.iushrn(1);v(!I.isZero());var r=new o(1).toRed(this),b=r.redNeg(),U=this.m.subn(1).iushrn(1),N=this.m.bitLength();for(N=new o(2*N*N).toRed(this);0!==this.pow(N,U).cmp(b);)N.redIAdd(b);for(var z=this.pow(N,I),be=this.pow(u,I.addn(1).iushrn(1)),xe=this.pow(u,I),Re=x;0!==xe.cmp(r);){for(var ze=xe,Le=0;0!==ze.cmp(r);Le++)ze=ze.redSqr();v(Le=0;x--){for(var z=_.words[x],be=N-1;be>=0;be--){var xe=z>>be&1;r!==I[0]&&(r=this.sqr(r)),0!==xe||0!==b?(b<<=1,b|=xe,(4==++U||0===x&&0===be)&&(r=this.mul(r,I[b]),U=0,b=0)):U=0}N=26}return r},i.prototype.convertTo=function(u){var _=u.umod(this.m);return _===u?_.clone():_},i.prototype.convertFrom=function(u){var _=u.clone();return _.red=null,_},o.mont=function(u){return new a(u)},C(a,i),a.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},a.prototype.convertFrom=function(u){var _=this.imod(u.mul(this.rinv));return _.red=null,_},a.prototype.imul=function(u,_){if(u.isZero()||_.isZero())return u.words[0]=0,u.length=1,u;var D=u.imul(_),I=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=D.isub(I).iushrn(this.shift),r=x;return x.cmp(this.m)>=0?r=x.isub(this.m):x.cmpn(0)<0&&(r=x.iadd(this.m)),r._forceRed(this)},a.prototype.mul=function(u,_){if(u.isZero()||_.isZero())return new o(0)._forceRed(this);var D=u.mul(_),I=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=D.isub(I).iushrn(this.shift),r=x;return x.cmp(this.m)>=0?r=x.isub(this.m):x.cmpn(0)<0&&(r=x.iadd(this.m)),r._forceRed(this)},a.prototype.invm=function(u){return this.imod(u._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ve=m.nmd(Ve),this)},7950:(Ve,Q,m)=>{var e;function t(C){this.rand=C}if(Ve.exports=function(o){return e||(e=new t(null)),e.generate(o)},Ve.exports.Rand=t,t.prototype.generate=function(o){return this._rand(o)},t.prototype._rand=function(o){if(this.rand.getBytes)return this.rand.getBytes(o);for(var M=new Uint8Array(o),l=0;l{var e=m(3502).Buffer;function t(R){e.isBuffer(R)||(R=e.from(R));for(var s=R.length/4|0,L=new Array(s),O=0;O>>24]^P[W>>>16&255]^w[ie>>>8&255]^Z[255&ee]^s[le++],he=E[W>>>24]^P[ie>>>16&255]^w[ee>>>8&255]^Z[255&j]^s[le++],re=E[ie>>>24]^P[ee>>>16&255]^w[j>>>8&255]^Z[255&W]^s[le++],de=E[ee>>>24]^P[j>>>16&255]^w[W>>>8&255]^Z[255&ie]^s[le++],j=ve,W=he,ie=re,ee=de;return ve=(O[j>>>24]<<24|O[W>>>16&255]<<16|O[ie>>>8&255]<<8|O[255&ee])^s[le++],he=(O[W>>>24]<<24|O[ie>>>16&255]<<16|O[ee>>>8&255]<<8|O[255&j])^s[le++],re=(O[ie>>>24]<<24|O[ee>>>16&255]<<16|O[j>>>8&255]<<8|O[255&W])^s[le++],de=(O[ee>>>24]<<24|O[j>>>16&255]<<16|O[W>>>8&255]<<8|O[255&ie])^s[le++],[ve>>>=0,he>>>=0,re>>>=0,de>>>=0]}var o=[0,1,2,4,8,16,32,64,128,27,54],M=function(){for(var R=new Array(256),s=0;s<256;s++)R[s]=s<128?s<<1:s<<1^283;for(var L=[],O=[],A=[[],[],[],[]],E=[[],[],[],[]],P=0,w=0,Z=0;Z<256;++Z){var j=w^w<<1^w<<2^w<<3^w<<4;L[P]=j=j>>>8^255&j^99,O[j]=P;var W=R[P],ie=R[W],ee=R[ie],ve=257*R[j]^16843008*j;A[0][P]=ve<<24|ve>>>8,A[1][P]=ve<<16|ve>>>16,A[2][P]=ve<<8|ve>>>24,A[3][P]=ve,E[0][j]=(ve=16843009*ee^65537*ie^257*W^16843008*P)<<24|ve>>>8,E[1][j]=ve<<16|ve>>>16,E[2][j]=ve<<8|ve>>>24,E[3][j]=ve,0===P?P=w=1:(P=W^R[R[R[ee^W]]],w^=R[R[w]])}return{SBOX:L,INV_SBOX:O,SUB_MIX:A,INV_SUB_MIX:E}}();function l(R){this._key=t(R),this._reset()}l.blockSize=16,l.keySize=32,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var R=this._key,s=R.length,L=s+6,O=4*(L+1),A=[],E=0;E>>24)>>>24]<<24|M.SBOX[P>>>16&255]<<16|M.SBOX[P>>>8&255]<<8|M.SBOX[255&P],P^=o[E/s|0]<<24):s>6&&E%s==4&&(P=M.SBOX[P>>>24]<<24|M.SBOX[P>>>16&255]<<16|M.SBOX[P>>>8&255]<<8|M.SBOX[255&P]),A[E]=A[E-s]^P}for(var w=[],Z=0;Z>>24]]^M.INV_SUB_MIX[1][M.SBOX[W>>>16&255]]^M.INV_SUB_MIX[2][M.SBOX[W>>>8&255]]^M.INV_SUB_MIX[3][M.SBOX[255&W]]}this._nRounds=L,this._keySchedule=A,this._invKeySchedule=w},l.prototype.encryptBlockRaw=function(R){return C(R=t(R),this._keySchedule,M.SUB_MIX,M.SBOX,this._nRounds)},l.prototype.encryptBlock=function(R){var s=this.encryptBlockRaw(R),L=e.allocUnsafe(16);return L.writeUInt32BE(s[0],0),L.writeUInt32BE(s[1],4),L.writeUInt32BE(s[2],8),L.writeUInt32BE(s[3],12),L},l.prototype.decryptBlock=function(R){var s=(R=t(R))[1];R[1]=R[3],R[3]=s;var L=C(R,this._invKeySchedule,M.INV_SUB_MIX,M.INV_SBOX,this._nRounds),O=e.allocUnsafe(16);return O.writeUInt32BE(L[0],0),O.writeUInt32BE(L[3],4),O.writeUInt32BE(L[2],8),O.writeUInt32BE(L[1],12),O},l.prototype.scrub=function(){v(this._keySchedule),v(this._invKeySchedule),v(this._key)},Ve.exports.AES=l},9382:(Ve,Q,m)=>{var e=m(1899),t=m(3502).Buffer,v=m(1052),C=m(3894),o=m(8857),M=m(8789),l=m(7968);function L(O,A,E,P){v.call(this);var w=t.alloc(4,0);this._cipher=new e.AES(A);var Z=this._cipher.encryptBlock(w);this._ghash=new o(Z),E=function s(O,A,E){if(12===A.length)return O._finID=t.concat([A,t.from([0,0,0,1])]),t.concat([A,t.from([0,0,0,2])]);var P=new o(E),w=A.length,Z=w%16;P.update(A),Z&&P.update(t.alloc(Z=16-Z,0)),P.update(t.alloc(8,0));var j=8*w,W=t.alloc(8);W.writeUIntBE(j,0,8),P.update(W),O._finID=P.state;var ie=t.from(O._finID);return l(ie),ie}(this,E,Z),this._prev=t.from(E),this._cache=t.allocUnsafe(0),this._secCache=t.allocUnsafe(0),this._decrypt=P,this._alen=0,this._len=0,this._mode=O,this._authTag=null,this._called=!1}C(L,v),L.prototype._update=function(O){if(!this._called&&this._alen){var A=16-this._alen%16;A<16&&(A=t.alloc(A,0),this._ghash.update(A))}this._called=!0;var E=this._mode.encrypt(this,O);return this._ghash.update(this._decrypt?O:E),this._len+=O.length,E},L.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var O=M(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function R(O,A){var E=0;O.length!==A.length&&E++;for(var P=Math.min(O.length,A.length),w=0;w{var e=m(6900),t=m(856),v=m(4946);Q.createCipher=Q.Cipher=e.createCipher,Q.createCipheriv=Q.Cipheriv=e.createCipheriv,Q.createDecipher=Q.Decipher=t.createDecipher,Q.createDecipheriv=Q.Decipheriv=t.createDecipheriv,Q.listCiphers=Q.getCiphers=function C(){return Object.keys(v)}},856:(Ve,Q,m)=>{var e=m(9382),t=m(3502).Buffer,v=m(9171),C=m(8441),o=m(1052),M=m(1899),l=m(347);function s(P,w,Z){o.call(this),this._cache=new L,this._last=void 0,this._cipher=new M.AES(w),this._prev=t.from(Z),this._mode=P,this._autopadding=!0}function L(){this.cache=t.allocUnsafe(0)}function A(P,w,Z){var j=v[P.toLowerCase()];if(!j)throw new TypeError("invalid suite type");if("string"==typeof Z&&(Z=t.from(Z)),"GCM"!==j.mode&&Z.length!==j.iv)throw new TypeError("invalid iv length "+Z.length);if("string"==typeof w&&(w=t.from(w)),w.length!==j.key/8)throw new TypeError("invalid key length "+w.length);return"stream"===j.type?new C(j.module,w,Z,!0):"auth"===j.type?new e(j.module,w,Z,!0):new s(j.module,w,Z)}m(3894)(s,o),s.prototype._update=function(P){this._cache.add(P);for(var w,Z,j=[];w=this._cache.get(this._autopadding);)Z=this._mode.decrypt(this,w),j.push(Z);return t.concat(j)},s.prototype._final=function(){var P=this._cache.flush();if(this._autopadding)return function O(P){var w=P[15];if(w<1||w>16)throw new Error("unable to decrypt data");for(var Z=-1;++Z16)return w=this.cache.slice(0,16),this.cache=this.cache.slice(16),w}else if(this.cache.length>=16)return w=this.cache.slice(0,16),this.cache=this.cache.slice(16),w;return null},L.prototype.flush=function(){if(this.cache.length)return this.cache},Q.createDecipher=function E(P,w){var Z=v[P.toLowerCase()];if(!Z)throw new TypeError("invalid suite type");var j=l(w,!1,Z.key,Z.iv);return A(P,j.key,j.iv)},Q.createDecipheriv=A},6900:(Ve,Q,m)=>{var e=m(9171),t=m(9382),v=m(3502).Buffer,C=m(8441),o=m(1052),M=m(1899),l=m(347);function s(P,w,Z){o.call(this),this._cache=new O,this._cipher=new M.AES(w),this._prev=v.from(Z),this._mode=P,this._autopadding=!0}m(3894)(s,o),s.prototype._update=function(P){this._cache.add(P);for(var w,Z,j=[];w=this._cache.get();)Z=this._mode.encrypt(this,w),j.push(Z);return v.concat(j)};var L=v.alloc(16,16);function O(){this.cache=v.allocUnsafe(0)}function A(P,w,Z){var j=e[P.toLowerCase()];if(!j)throw new TypeError("invalid suite type");if("string"==typeof w&&(w=v.from(w)),w.length!==j.key/8)throw new TypeError("invalid key length "+w.length);if("string"==typeof Z&&(Z=v.from(Z)),"GCM"!==j.mode&&Z.length!==j.iv)throw new TypeError("invalid iv length "+Z.length);return"stream"===j.type?new C(j.module,w,Z):"auth"===j.type?new t(j.module,w,Z):new s(j.module,w,Z)}s.prototype._final=function(){var P=this._cache.flush();if(this._autopadding)return P=this._mode.encrypt(this,P),this._cipher.scrub(),P;if(!P.equals(L))throw this._cipher.scrub(),new Error("data not multiple of block length")},s.prototype.setAutoPadding=function(P){return this._autopadding=!!P,this},O.prototype.add=function(P){this.cache=v.concat([this.cache,P])},O.prototype.get=function(){if(this.cache.length>15){var P=this.cache.slice(0,16);return this.cache=this.cache.slice(16),P}return null},O.prototype.flush=function(){for(var P=16-this.cache.length,w=v.allocUnsafe(P),Z=-1;++Z{var e=m(3502).Buffer,t=e.alloc(16,0);function C(M){var l=e.allocUnsafe(16);return l.writeUInt32BE(M[0]>>>0,0),l.writeUInt32BE(M[1]>>>0,4),l.writeUInt32BE(M[2]>>>0,8),l.writeUInt32BE(M[3]>>>0,12),l}function o(M){this.h=M,this.state=e.alloc(16,0),this.cache=e.allocUnsafe(0)}o.prototype.ghash=function(M){for(var l=-1;++l0;R--)M[R]=M[R]>>>1|(1&M[R-1])<<31;M[0]=M[0]>>>1,L&&(M[0]=M[0]^225<<24)}this.state=C(l)},o.prototype.update=function(M){this.cache=e.concat([this.cache,M]);for(var l;this.cache.length>=16;)l=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(l)},o.prototype.final=function(M,l){return this.cache.length&&this.ghash(e.concat([this.cache,t],16)),this.ghash(C([0,M,0,l])),this.state},Ve.exports=o},7968:Ve=>{Ve.exports=function Q(m){for(var t,e=m.length;e--;){if(255!==(t=m.readUInt8(e))){t++,m.writeUInt8(t,e);break}m.writeUInt8(0,e)}}},4903:(Ve,Q,m)=>{var e=m(8789);Q.encrypt=function(t,v){var C=e(v,t._prev);return t._prev=t._cipher.encryptBlock(C),t._prev},Q.decrypt=function(t,v){var C=t._prev;t._prev=v;var o=t._cipher.decryptBlock(v);return e(o,C)}},9885:(Ve,Q,m)=>{var e=m(3502).Buffer,t=m(8789);function v(C,o,M){var l=o.length,R=t(o,C._cache);return C._cache=C._cache.slice(l),C._prev=e.concat([C._prev,M?o:R]),R}Q.encrypt=function(C,o,M){for(var R,l=e.allocUnsafe(0);o.length;){if(0===C._cache.length&&(C._cache=C._cipher.encryptBlock(C._prev),C._prev=e.allocUnsafe(0)),!(C._cache.length<=o.length)){l=e.concat([l,v(C,o,M)]);break}l=e.concat([l,v(C,o.slice(0,R=C._cache.length),M)]),o=o.slice(R)}return l}},6531:(Ve,Q,m)=>{var e=m(3502).Buffer;function t(C,o,M){for(var O,A,R=-1,L=0;++R<8;)L+=(128&(A=C._cipher.encryptBlock(C._prev)[0]^(O=o&1<<7-R?128:0)))>>R%8,C._prev=v(C._prev,M?O:A);return L}function v(C,o){var M=C.length,l=-1,R=e.allocUnsafe(C.length);for(C=e.concat([C,e.from([o])]);++l>7;return R}Q.encrypt=function(C,o,M){for(var l=o.length,R=e.allocUnsafe(l),s=-1;++s{var e=m(3502).Buffer;function t(v,C,o){var l=v._cipher.encryptBlock(v._prev)[0]^C;return v._prev=e.concat([v._prev.slice(1),e.from([o?C:l])]),l}Q.encrypt=function(v,C,o){for(var M=C.length,l=e.allocUnsafe(M),R=-1;++R{var e=m(8789),t=m(3502).Buffer,v=m(7968);function C(M){var l=M._cipher.encryptBlockRaw(M._prev);return v(M._prev),l}Q.encrypt=function(M,l){var R=Math.ceil(l.length/16),s=M._cache.length;M._cache=t.concat([M._cache,t.allocUnsafe(16*R)]);for(var L=0;L{Q.encrypt=function(m,e){return m._cipher.encryptBlock(e)},Q.decrypt=function(m,e){return m._cipher.decryptBlock(e)}},9171:(Ve,Q,m)=>{var e={ECB:m(1704),CBC:m(4903),CFB:m(9885),CFB8:m(1641),CFB1:m(6531),OFB:m(6816),CTR:m(1150),GCM:m(1150)},t=m(4946);for(var v in t)t[v].module=e[t[v].mode];Ve.exports=t},6816:(Ve,Q,m)=>{var e=m(8789);function t(v){return v._prev=v._cipher.encryptBlock(v._prev),v._prev}Q.encrypt=function(v,C){for(;v._cache.length{var e=m(1899),t=m(3502).Buffer,v=m(1052);function o(M,l,R,s){v.call(this),this._cipher=new e.AES(l),this._prev=t.from(R),this._cache=t.allocUnsafe(0),this._secCache=t.allocUnsafe(0),this._decrypt=s,this._mode=M}m(3894)(o,v),o.prototype._update=function(M){return this._mode.encrypt(this,M,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},Ve.exports=o},5255:(Ve,Q,m)=>{var e=m(9004),t=m(4330),v=m(9171),C=m(1115),o=m(347);function R(O,A,E){if(O=O.toLowerCase(),v[O])return t.createCipheriv(O,A,E);if(C[O])return new e({key:A,iv:E,mode:O});throw new TypeError("invalid suite type")}function s(O,A,E){if(O=O.toLowerCase(),v[O])return t.createDecipheriv(O,A,E);if(C[O])return new e({key:A,iv:E,mode:O,decrypt:!0});throw new TypeError("invalid suite type")}Q.createCipher=Q.Cipher=function M(O,A){var E,P;if(O=O.toLowerCase(),v[O])E=v[O].key,P=v[O].iv;else{if(!C[O])throw new TypeError("invalid suite type");E=8*C[O].key,P=C[O].iv}var w=o(A,!1,E,P);return R(O,w.key,w.iv)},Q.createCipheriv=Q.Cipheriv=R,Q.createDecipher=Q.Decipher=function l(O,A){var E,P;if(O=O.toLowerCase(),v[O])E=v[O].key,P=v[O].iv;else{if(!C[O])throw new TypeError("invalid suite type");E=8*C[O].key,P=C[O].iv}var w=o(A,!1,E,P);return s(O,w.key,w.iv)},Q.createDecipheriv=Q.Decipheriv=s,Q.listCiphers=Q.getCiphers=function L(){return Object.keys(C).concat(t.getCiphers())}},9004:(Ve,Q,m)=>{var e=m(1052),t=m(3684),v=m(3894),C=m(3502).Buffer,o={"des-ede3-cbc":t.CBC.instantiate(t.EDE),"des-ede3":t.EDE,"des-ede-cbc":t.CBC.instantiate(t.EDE),"des-ede":t.EDE,"des-cbc":t.CBC.instantiate(t.DES),"des-ecb":t.DES};function M(l){e.call(this);var L,R=l.mode.toLowerCase(),s=o[R];L=l.decrypt?"decrypt":"encrypt";var O=l.key;C.isBuffer(O)||(O=C.from(O)),("des-ede"===R||"des-ede-cbc"===R)&&(O=C.concat([O,O.slice(0,8)]));var A=l.iv;C.isBuffer(A)||(A=C.from(A)),this._des=s.create({key:O,iv:A,type:L})}o.des=o["des-cbc"],o.des3=o["des-ede3-cbc"],Ve.exports=M,v(M,e),M.prototype._update=function(l){return C.from(this._des.update(l))},M.prototype._final=function(){return C.from(this._des.final())}},1115:(Ve,Q)=>{Q["des-ecb"]={key:8,iv:0},Q["des-cbc"]=Q.des={key:8,iv:8},Q["des-ede3-cbc"]=Q.des3={key:24,iv:8},Q["des-ede3"]={key:24,iv:0},Q["des-ede-cbc"]={key:16,iv:8},Q["des-ede"]={key:16,iv:0}},8466:(Ve,Q,m)=>{var e=m(8538),t=m(3753);function C(M){var R,l=M.modulus.byteLength();do{R=new e(t(l))}while(R.cmp(M.modulus)>=0||!R.umod(M.prime1)||!R.umod(M.prime2));return R}function o(M,l){var R=function v(M){var l=C(M);return{blinder:l.toRed(e.mont(M.modulus)).redPow(new e(M.publicExponent)).fromRed(),unblinder:l.invm(M.modulus)}}(l),s=l.modulus.byteLength(),L=new e(M).mul(R.blinder).umod(l.modulus),O=L.toRed(e.mont(l.prime1)),A=L.toRed(e.mont(l.prime2)),E=l.coefficient,P=l.prime1,w=l.prime2,Z=O.redPow(l.exponent1).fromRed(),j=A.redPow(l.exponent2).fromRed(),W=Z.isub(j).imul(E).umod(P).imul(w);return j.iadd(W).imul(R.unblinder).umod(l.modulus).toArrayLike(Buffer,"be",s)}o.getr=C,Ve.exports=o},7793:(Ve,Q,m)=>{Ve.exports=m(5207)},3923:(Ve,Q,m)=>{var e=m(8446).Buffer,t=m(6386),v=m(5685),C=m(3894),o=m(9947),M=m(3946),l=m(5207);function R(A){v.Writable.call(this);var E=l[A];if(!E)throw new Error("Unknown message digest");this._hashType=E.hash,this._hash=t(E.hash),this._tag=E.id,this._signType=E.sign}function s(A){v.Writable.call(this);var E=l[A];if(!E)throw new Error("Unknown message digest");this._hash=t(E.hash),this._tag=E.id,this._signType=E.sign}function L(A){return new R(A)}function O(A){return new s(A)}Object.keys(l).forEach(function(A){l[A].id=e.from(l[A].id,"hex"),l[A.toLowerCase()]=l[A]}),C(R,v.Writable),R.prototype._write=function(E,P,w){this._hash.update(E),w()},R.prototype.update=function(E,P){return"string"==typeof E&&(E=e.from(E,P)),this._hash.update(E),this},R.prototype.sign=function(E,P){this.end();var w=this._hash.digest(),Z=o(w,E,this._hashType,this._signType,this._tag);return P?Z.toString(P):Z},C(s,v.Writable),s.prototype._write=function(E,P,w){this._hash.update(E),w()},s.prototype.update=function(E,P){return"string"==typeof E&&(E=e.from(E,P)),this._hash.update(E),this},s.prototype.verify=function(E,P,w){"string"==typeof P&&(P=e.from(P,w)),this.end();var Z=this._hash.digest();return M(P,Z,E,this._signType,this._tag)},Ve.exports={Sign:L,Verify:O,createSign:L,createVerify:O}},9947:(Ve,Q,m)=>{var e=m(8446).Buffer,t=m(4529),v=m(8466),C=m(7715).ec,o=m(8538),M=m(2772),l=m(1308);function A(j,W,ie,ee){if((j=e.from(j.toArray())).length0&&ie.ishrn(ee),ie}function w(j,W,ie){var ee,ve;do{for(ee=e.alloc(0);8*ee.length{var e=m(8446).Buffer,t=m(8538),v=m(7715).ec,C=m(2772),o=m(1308);function s(L,O){if(L.cmpn(0)<=0)throw new Error("invalid sig");if(L.cmp(O)>=O)throw new Error("invalid sig")}Ve.exports=function M(L,O,A,E,P){var w=C(A);if("ec"===w.type){if("ecdsa"!==E&&"ecdsa/rsa"!==E)throw new Error("wrong public key type");return function l(L,O,A){var E=o[A.data.algorithm.curve.join(".")];if(!E)throw new Error("unknown curve "+A.data.algorithm.curve.join("."));return new v(E).verify(O,L,A.data.subjectPrivateKey.data)}(L,O,w)}if("dsa"===w.type){if("dsa"!==E)throw new Error("wrong public key type");return function R(L,O,A){var E=A.data.p,P=A.data.q,w=A.data.g,Z=A.data.pub_key,j=C.signature.decode(L,"der"),W=j.s,ie=j.r;s(W,P),s(ie,P);var ee=t.mont(E),ve=W.invm(P);return 0===w.toRed(ee).redPow(new t(O).mul(ve).mod(P)).fromRed().mul(Z.toRed(ee).redPow(ie.mul(ve).mod(P)).fromRed()).mod(E).mod(P).cmp(ie)}(L,O,w)}if("rsa"!==E&&"ecdsa/rsa"!==E)throw new Error("wrong public key type");O=e.concat([P,O]);for(var Z=w.modulus.byteLength(),j=[1],W=0;O.length+j.length+2{var e=m(3172),t=e.Buffer;function v(o,M){for(var l in o)M[l]=o[l]}function C(o,M,l){return t(o,M,l)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?Ve.exports=e:(v(e,Q),Q.Buffer=C),C.prototype=Object.create(t.prototype),v(t,C),C.from=function(o,M,l){if("number"==typeof o)throw new TypeError("Argument must not be a number");return t(o,M,l)},C.alloc=function(o,M,l){if("number"!=typeof o)throw new TypeError("Argument must be a number");var R=t(o);return void 0!==M?"string"==typeof l?R.fill(M,l):R.fill(M):R.fill(0),R},C.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return t(o)},C.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return e.SlowBuffer(o)}},8789:Ve=>{Ve.exports=function(m,e){for(var t=Math.min(m.length,e.length),v=new Buffer(t),C=0;C{"use strict";var e=m(5343),t=m(8461),v="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Q.Buffer=l,Q.SlowBuffer=function W(Fe){return+Fe!=Fe&&(Fe=0),l.alloc(+Fe)},Q.INSPECT_MAX_BYTES=50;var C=2147483647;function M(Fe){if(Fe>C)throw new RangeError('The value "'+Fe+'" is invalid for option "size"');var Ne=new Uint8Array(Fe);return Object.setPrototypeOf(Ne,l.prototype),Ne}function l(Fe,Ne,ue){if("number"==typeof Fe){if("string"==typeof Ne)throw new TypeError('The "string" argument must be of type string. Received type number');return O(Fe)}return R(Fe,Ne,ue)}function R(Fe,Ne,ue){if("string"==typeof Fe)return function A(Fe,Ne){if(("string"!=typeof Ne||""===Ne)&&(Ne="utf8"),!l.isEncoding(Ne))throw new TypeError("Unknown encoding: "+Ne);var ue=0|ie(Fe,Ne),Oe=M(ue),Pe=Oe.write(Fe,Ne);return Pe!==ue&&(Oe=Oe.slice(0,Pe)),Oe}(Fe,Ne);if(ArrayBuffer.isView(Fe))return function P(Fe){if(ae(Fe,Uint8Array)){var Ne=new Uint8Array(Fe);return w(Ne.buffer,Ne.byteOffset,Ne.byteLength)}return E(Fe)}(Fe);if(null==Fe)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Fe);if(ae(Fe,ArrayBuffer)||Fe&&ae(Fe.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(ae(Fe,SharedArrayBuffer)||Fe&&ae(Fe.buffer,SharedArrayBuffer)))return w(Fe,Ne,ue);if("number"==typeof Fe)throw new TypeError('The "value" argument must not be of type number. Received type number');var Oe=Fe.valueOf&&Fe.valueOf();if(null!=Oe&&Oe!==Fe)return l.from(Oe,Ne,ue);var Pe=function Z(Fe){if(l.isBuffer(Fe)){var Ne=0|j(Fe.length),ue=M(Ne);return 0===ue.length||Fe.copy(ue,0,0,Ne),ue}return void 0!==Fe.length?"number"!=typeof Fe.length||Ge(Fe.length)?M(0):E(Fe):"Buffer"===Fe.type&&Array.isArray(Fe.data)?E(Fe.data):void 0}(Fe);if(Pe)return Pe;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof Fe[Symbol.toPrimitive])return l.from(Fe[Symbol.toPrimitive]("string"),Ne,ue);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Fe)}function s(Fe){if("number"!=typeof Fe)throw new TypeError('"size" argument must be of type number');if(Fe<0)throw new RangeError('The value "'+Fe+'" is invalid for option "size"')}function O(Fe){return s(Fe),M(Fe<0?0:0|j(Fe))}function E(Fe){for(var Ne=Fe.length<0?0:0|j(Fe.length),ue=M(Ne),Oe=0;Oe=C)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+C.toString(16)+" bytes");return 0|Fe}function ie(Fe,Ne){if(l.isBuffer(Fe))return Fe.length;if(ArrayBuffer.isView(Fe)||ae(Fe,ArrayBuffer))return Fe.byteLength;if("string"!=typeof Fe)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Fe);var ue=Fe.length,Oe=arguments.length>2&&!0===arguments[2];if(!Oe&&0===ue)return 0;for(var Pe=!1;;)switch(Ne){case"ascii":case"latin1":case"binary":return ue;case"utf8":case"utf-8":return ze(Fe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ue;case"hex":return ue>>>1;case"base64":return we(Fe).length;default:if(Pe)return Oe?-1:ze(Fe).length;Ne=(""+Ne).toLowerCase(),Pe=!0}}function ee(Fe,Ne,ue){var Oe=!1;if((void 0===Ne||Ne<0)&&(Ne=0),Ne>this.length||((void 0===ue||ue>this.length)&&(ue=this.length),ue<=0)||(ue>>>=0)<=(Ne>>>=0))return"";for(Fe||(Fe="utf8");;)switch(Fe){case"hex":return x(this,Ne,ue);case"utf8":case"utf-8":return p(this,Ne,ue);case"ascii":return D(this,Ne,ue);case"latin1":case"binary":return I(this,Ne,ue);case"base64":return a(this,Ne,ue);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r(this,Ne,ue);default:if(Oe)throw new TypeError("Unknown encoding: "+Fe);Fe=(Fe+"").toLowerCase(),Oe=!0}}function ve(Fe,Ne,ue){var Oe=Fe[Ne];Fe[Ne]=Fe[ue],Fe[ue]=Oe}function he(Fe,Ne,ue,Oe,Pe){if(0===Fe.length)return-1;if("string"==typeof ue?(Oe=ue,ue=0):ue>2147483647?ue=2147483647:ue<-2147483648&&(ue=-2147483648),Ge(ue=+ue)&&(ue=Pe?0:Fe.length-1),ue<0&&(ue=Fe.length+ue),ue>=Fe.length){if(Pe)return-1;ue=Fe.length-1}else if(ue<0){if(!Pe)return-1;ue=0}if("string"==typeof Ne&&(Ne=l.from(Ne,Oe)),l.isBuffer(Ne))return 0===Ne.length?-1:re(Fe,Ne,ue,Oe,Pe);if("number"==typeof Ne)return Ne&=255,"function"==typeof Uint8Array.prototype.indexOf?Pe?Uint8Array.prototype.indexOf.call(Fe,Ne,ue):Uint8Array.prototype.lastIndexOf.call(Fe,Ne,ue):re(Fe,[Ne],ue,Oe,Pe);throw new TypeError("val must be string, number or Buffer")}function re(Fe,Ne,ue,Oe,Pe){var Ue,q=1,$=Fe.length,ce=Ne.length;if(void 0!==Oe&&("ucs2"===(Oe=String(Oe).toLowerCase())||"ucs-2"===Oe||"utf16le"===Oe||"utf-16le"===Oe)){if(Fe.length<2||Ne.length<2)return-1;q=2,$/=2,ce/=2,ue/=2}function Me(it,rt){return 1===q?it[rt]:it.readUInt16BE(rt*q)}if(Pe){var lt=-1;for(Ue=ue;Ue<$;Ue++)if(Me(Fe,Ue)===Me(Ne,-1===lt?0:Ue-lt)){if(-1===lt&&(lt=Ue),Ue-lt+1===ce)return lt*q}else-1!==lt&&(Ue-=Ue-lt),lt=-1}else for(ue+ce>$&&(ue=$-ce),Ue=ue;Ue>=0;Ue--){for(var nt=!0,ft=0;ftPe&&(Oe=Pe):Oe=Pe;var q=Ne.length;Oe>q/2&&(Oe=q/2);for(var $=0;$>8,q.push(ue%256),q.push(Oe);return q}(Ne,Fe.length-ue),Fe,ue,Oe)}function a(Fe,Ne,ue){return e.fromByteArray(0===Ne&&ue===Fe.length?Fe:Fe.slice(Ne,ue))}function p(Fe,Ne,ue){ue=Math.min(Fe.length,ue);for(var Oe=[],Pe=Ne;Pe239?4:q>223?3:q>191?2:1;if(Pe+ce<=ue)switch(ce){case 1:q<128&&($=q);break;case 2:128==(192&(Me=Fe[Pe+1]))&&(nt=(31&q)<<6|63&Me)>127&&($=nt);break;case 3:Ue=Fe[Pe+2],128==(192&(Me=Fe[Pe+1]))&&128==(192&Ue)&&(nt=(15&q)<<12|(63&Me)<<6|63&Ue)>2047&&(nt<55296||nt>57343)&&($=nt);break;case 4:Ue=Fe[Pe+2],lt=Fe[Pe+3],128==(192&(Me=Fe[Pe+1]))&&128==(192&Ue)&&128==(192<)&&(nt=(15&q)<<18|(63&Me)<<12|(63&Ue)<<6|63<)>65535&&nt<1114112&&($=nt)}null===$?($=65533,ce=1):$>65535&&(Oe.push(($-=65536)>>>10&1023|55296),$=56320|1023&$),Oe.push($),Pe+=ce}return function _(Fe){var Ne=Fe.length;if(Ne<=u)return String.fromCharCode.apply(String,Fe);for(var ue="",Oe=0;OePe.length?l.from($).copy(Pe,q):Uint8Array.prototype.set.call(Pe,$,q);else{if(!l.isBuffer($))throw new TypeError('"list" argument must be an Array of Buffers');$.copy(Pe,q)}q+=$.length}return Pe},l.byteLength=ie,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var Ne=this.length;if(Ne%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ue=0;ueue&&(Ne+=" ... "),""},v&&(l.prototype[v]=l.prototype.inspect),l.prototype.compare=function(Ne,ue,Oe,Pe,q){if(ae(Ne,Uint8Array)&&(Ne=l.from(Ne,Ne.offset,Ne.byteLength)),!l.isBuffer(Ne))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Ne);if(void 0===ue&&(ue=0),void 0===Oe&&(Oe=Ne?Ne.length:0),void 0===Pe&&(Pe=0),void 0===q&&(q=this.length),ue<0||Oe>Ne.length||Pe<0||q>this.length)throw new RangeError("out of range index");if(Pe>=q&&ue>=Oe)return 0;if(Pe>=q)return-1;if(ue>=Oe)return 1;if(this===Ne)return 0;for(var $=(q>>>=0)-(Pe>>>=0),ce=(Oe>>>=0)-(ue>>>=0),Me=Math.min($,ce),Ue=this.slice(Pe,q),lt=Ne.slice(ue,Oe),nt=0;nt>>=0,isFinite(Oe)?(Oe>>>=0,void 0===Pe&&(Pe="utf8")):(Pe=Oe,Oe=void 0)}var q=this.length-ue;if((void 0===Oe||Oe>q)&&(Oe=q),Ne.length>0&&(Oe<0||ue<0)||ue>this.length)throw new RangeError("Attempt to write outside buffer bounds");Pe||(Pe="utf8");for(var $=!1;;)switch(Pe){case"hex":return de(this,Ne,ue,Oe);case"utf8":case"utf-8":return le(this,Ne,ue,Oe);case"ascii":case"latin1":case"binary":return se(this,Ne,ue,Oe);case"base64":return y(this,Ne,ue,Oe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i(this,Ne,ue,Oe);default:if($)throw new TypeError("Unknown encoding: "+Pe);Pe=(""+Pe).toLowerCase(),$=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var u=4096;function D(Fe,Ne,ue){var Oe="";ue=Math.min(Fe.length,ue);for(var Pe=Ne;PeOe)&&(ue=Oe);for(var Pe="",q=Ne;que)throw new RangeError("Trying to access beyond buffer length")}function U(Fe,Ne,ue,Oe,Pe,q){if(!l.isBuffer(Fe))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ne>Pe||NeFe.length)throw new RangeError("Index out of range")}function N(Fe,Ne,ue,Oe,Pe,q){if(ue+Oe>Fe.length)throw new RangeError("Index out of range");if(ue<0)throw new RangeError("Index out of range")}function z(Fe,Ne,ue,Oe,Pe){return Ne=+Ne,ue>>>=0,Pe||N(Fe,0,ue,4),t.write(Fe,Ne,ue,Oe,23,4),ue+4}function be(Fe,Ne,ue,Oe,Pe){return Ne=+Ne,ue>>>=0,Pe||N(Fe,0,ue,8),t.write(Fe,Ne,ue,Oe,52,8),ue+8}l.prototype.slice=function(Ne,ue){var Oe=this.length;(Ne=~~Ne)<0?(Ne+=Oe)<0&&(Ne=0):Ne>Oe&&(Ne=Oe),(ue=void 0===ue?Oe:~~ue)<0?(ue+=Oe)<0&&(ue=0):ue>Oe&&(ue=Oe),ue>>=0,ue>>>=0,Oe||b(Ne,ue,this.length);for(var Pe=this[Ne],q=1,$=0;++$>>=0,ue>>>=0,Oe||b(Ne,ue,this.length);for(var Pe=this[Ne+--ue],q=1;ue>0&&(q*=256);)Pe+=this[Ne+--ue]*q;return Pe},l.prototype.readUint8=l.prototype.readUInt8=function(Ne,ue){return Ne>>>=0,ue||b(Ne,1,this.length),this[Ne]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(Ne,ue){return Ne>>>=0,ue||b(Ne,2,this.length),this[Ne]|this[Ne+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(Ne,ue){return Ne>>>=0,ue||b(Ne,2,this.length),this[Ne]<<8|this[Ne+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(Ne,ue){return Ne>>>=0,ue||b(Ne,4,this.length),(this[Ne]|this[Ne+1]<<8|this[Ne+2]<<16)+16777216*this[Ne+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(Ne,ue){return Ne>>>=0,ue||b(Ne,4,this.length),16777216*this[Ne]+(this[Ne+1]<<16|this[Ne+2]<<8|this[Ne+3])},l.prototype.readIntLE=function(Ne,ue,Oe){Ne>>>=0,ue>>>=0,Oe||b(Ne,ue,this.length);for(var Pe=this[Ne],q=1,$=0;++$=(q*=128)&&(Pe-=Math.pow(2,8*ue)),Pe},l.prototype.readIntBE=function(Ne,ue,Oe){Ne>>>=0,ue>>>=0,Oe||b(Ne,ue,this.length);for(var Pe=ue,q=1,$=this[Ne+--Pe];Pe>0&&(q*=256);)$+=this[Ne+--Pe]*q;return $>=(q*=128)&&($-=Math.pow(2,8*ue)),$},l.prototype.readInt8=function(Ne,ue){return Ne>>>=0,ue||b(Ne,1,this.length),128&this[Ne]?-1*(255-this[Ne]+1):this[Ne]},l.prototype.readInt16LE=function(Ne,ue){Ne>>>=0,ue||b(Ne,2,this.length);var Oe=this[Ne]|this[Ne+1]<<8;return 32768&Oe?4294901760|Oe:Oe},l.prototype.readInt16BE=function(Ne,ue){Ne>>>=0,ue||b(Ne,2,this.length);var Oe=this[Ne+1]|this[Ne]<<8;return 32768&Oe?4294901760|Oe:Oe},l.prototype.readInt32LE=function(Ne,ue){return Ne>>>=0,ue||b(Ne,4,this.length),this[Ne]|this[Ne+1]<<8|this[Ne+2]<<16|this[Ne+3]<<24},l.prototype.readInt32BE=function(Ne,ue){return Ne>>>=0,ue||b(Ne,4,this.length),this[Ne]<<24|this[Ne+1]<<16|this[Ne+2]<<8|this[Ne+3]},l.prototype.readFloatLE=function(Ne,ue){return Ne>>>=0,ue||b(Ne,4,this.length),t.read(this,Ne,!0,23,4)},l.prototype.readFloatBE=function(Ne,ue){return Ne>>>=0,ue||b(Ne,4,this.length),t.read(this,Ne,!1,23,4)},l.prototype.readDoubleLE=function(Ne,ue){return Ne>>>=0,ue||b(Ne,8,this.length),t.read(this,Ne,!0,52,8)},l.prototype.readDoubleBE=function(Ne,ue){return Ne>>>=0,ue||b(Ne,8,this.length),t.read(this,Ne,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(Ne,ue,Oe,Pe){Ne=+Ne,ue>>>=0,Oe>>>=0,Pe||U(this,Ne,ue,Oe,Math.pow(2,8*Oe)-1,0);var $=1,ce=0;for(this[ue]=255&Ne;++ce>>=0,Oe>>>=0,Pe||U(this,Ne,ue,Oe,Math.pow(2,8*Oe)-1,0);var $=Oe-1,ce=1;for(this[ue+$]=255&Ne;--$>=0&&(ce*=256);)this[ue+$]=Ne/ce&255;return ue+Oe},l.prototype.writeUint8=l.prototype.writeUInt8=function(Ne,ue,Oe){return Ne=+Ne,ue>>>=0,Oe||U(this,Ne,ue,1,255,0),this[ue]=255&Ne,ue+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(Ne,ue,Oe){return Ne=+Ne,ue>>>=0,Oe||U(this,Ne,ue,2,65535,0),this[ue]=255&Ne,this[ue+1]=Ne>>>8,ue+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(Ne,ue,Oe){return Ne=+Ne,ue>>>=0,Oe||U(this,Ne,ue,2,65535,0),this[ue]=Ne>>>8,this[ue+1]=255&Ne,ue+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(Ne,ue,Oe){return Ne=+Ne,ue>>>=0,Oe||U(this,Ne,ue,4,4294967295,0),this[ue+3]=Ne>>>24,this[ue+2]=Ne>>>16,this[ue+1]=Ne>>>8,this[ue]=255&Ne,ue+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(Ne,ue,Oe){return Ne=+Ne,ue>>>=0,Oe||U(this,Ne,ue,4,4294967295,0),this[ue]=Ne>>>24,this[ue+1]=Ne>>>16,this[ue+2]=Ne>>>8,this[ue+3]=255&Ne,ue+4},l.prototype.writeIntLE=function(Ne,ue,Oe,Pe){if(Ne=+Ne,ue>>>=0,!Pe){var q=Math.pow(2,8*Oe-1);U(this,Ne,ue,Oe,q-1,-q)}var $=0,ce=1,Me=0;for(this[ue]=255&Ne;++$>0)-Me&255;return ue+Oe},l.prototype.writeIntBE=function(Ne,ue,Oe,Pe){if(Ne=+Ne,ue>>>=0,!Pe){var q=Math.pow(2,8*Oe-1);U(this,Ne,ue,Oe,q-1,-q)}var $=Oe-1,ce=1,Me=0;for(this[ue+$]=255&Ne;--$>=0&&(ce*=256);)Ne<0&&0===Me&&0!==this[ue+$+1]&&(Me=1),this[ue+$]=(Ne/ce>>0)-Me&255;return ue+Oe},l.prototype.writeInt8=function(Ne,ue,Oe){return Ne=+Ne,ue>>>=0,Oe||U(this,Ne,ue,1,127,-128),Ne<0&&(Ne=255+Ne+1),this[ue]=255&Ne,ue+1},l.prototype.writeInt16LE=function(Ne,ue,Oe){return Ne=+Ne,ue>>>=0,Oe||U(this,Ne,ue,2,32767,-32768),this[ue]=255&Ne,this[ue+1]=Ne>>>8,ue+2},l.prototype.writeInt16BE=function(Ne,ue,Oe){return Ne=+Ne,ue>>>=0,Oe||U(this,Ne,ue,2,32767,-32768),this[ue]=Ne>>>8,this[ue+1]=255&Ne,ue+2},l.prototype.writeInt32LE=function(Ne,ue,Oe){return Ne=+Ne,ue>>>=0,Oe||U(this,Ne,ue,4,2147483647,-2147483648),this[ue]=255&Ne,this[ue+1]=Ne>>>8,this[ue+2]=Ne>>>16,this[ue+3]=Ne>>>24,ue+4},l.prototype.writeInt32BE=function(Ne,ue,Oe){return Ne=+Ne,ue>>>=0,Oe||U(this,Ne,ue,4,2147483647,-2147483648),Ne<0&&(Ne=4294967295+Ne+1),this[ue]=Ne>>>24,this[ue+1]=Ne>>>16,this[ue+2]=Ne>>>8,this[ue+3]=255&Ne,ue+4},l.prototype.writeFloatLE=function(Ne,ue,Oe){return z(this,Ne,ue,!0,Oe)},l.prototype.writeFloatBE=function(Ne,ue,Oe){return z(this,Ne,ue,!1,Oe)},l.prototype.writeDoubleLE=function(Ne,ue,Oe){return be(this,Ne,ue,!0,Oe)},l.prototype.writeDoubleBE=function(Ne,ue,Oe){return be(this,Ne,ue,!1,Oe)},l.prototype.copy=function(Ne,ue,Oe,Pe){if(!l.isBuffer(Ne))throw new TypeError("argument should be a Buffer");if(Oe||(Oe=0),!Pe&&0!==Pe&&(Pe=this.length),ue>=Ne.length&&(ue=Ne.length),ue||(ue=0),Pe>0&&Pe=this.length)throw new RangeError("Index out of range");if(Pe<0)throw new RangeError("sourceEnd out of bounds");Pe>this.length&&(Pe=this.length),Ne.length-ue>>=0,Oe=void 0===Oe?this.length:Oe>>>0,Ne||(Ne=0),"number"==typeof Ne)for($=ue;$55295&&ue<57344){if(!Pe){if(ue>56319){(Ne-=3)>-1&&q.push(239,191,189);continue}if($+1===Oe){(Ne-=3)>-1&&q.push(239,191,189);continue}Pe=ue;continue}if(ue<56320){(Ne-=3)>-1&&q.push(239,191,189),Pe=ue;continue}ue=65536+(Pe-55296<<10|ue-56320)}else Pe&&(Ne-=3)>-1&&q.push(239,191,189);if(Pe=null,ue<128){if((Ne-=1)<0)break;q.push(ue)}else if(ue<2048){if((Ne-=2)<0)break;q.push(ue>>6|192,63&ue|128)}else if(ue<65536){if((Ne-=3)<0)break;q.push(ue>>12|224,ue>>6&63|128,63&ue|128)}else{if(!(ue<1114112))throw new Error("Invalid code point");if((Ne-=4)<0)break;q.push(ue>>18|240,ue>>12&63|128,ue>>6&63|128,63&ue|128)}}return q}function we(Fe){return e.toByteArray(function Re(Fe){if((Fe=(Fe=Fe.split("=")[0]).trim().replace(xe,"")).length<2)return"";for(;Fe.length%4!=0;)Fe+="=";return Fe}(Fe))}function Y(Fe,Ne,ue,Oe){for(var Pe=0;Pe=Ne.length||Pe>=Fe.length);++Pe)Ne[Pe+ue]=Fe[Pe];return Pe}function ae(Fe,Ne){return Fe instanceof Ne||null!=Fe&&null!=Fe.constructor&&null!=Fe.constructor.name&&Fe.constructor.name===Ne.name}function Ge(Fe){return Fe!=Fe}var vt=function(){for(var Fe="0123456789abcdef",Ne=new Array(256),ue=0;ue<16;++ue)for(var Oe=16*ue,Pe=0;Pe<16;++Pe)Ne[Oe+Pe]=Fe[ue]+Fe[Pe];return Ne}()},1052:(Ve,Q,m)=>{var e=m(3502).Buffer,t=m(295).Transform,v=m(3054).s;function o(M){t.call(this),this.hashMode="string"==typeof M,this.hashMode?this[M]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}m(3894)(o,t),o.prototype.update=function(M,l,R){"string"==typeof M&&(M=e.from(M,l));var s=this._update(M);return this.hashMode?this:(R&&(s=this._toString(s,R)),s)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(M,l,R){var s;try{this.hashMode?this._update(M):this.push(this._update(M))}catch(L){s=L}finally{R(s)}},o.prototype._flush=function(M){var l;try{this.push(this.__final())}catch(R){l=R}M(l)},o.prototype._finalOrDigest=function(M){var l=this.__final()||e.alloc(0);return M&&(l=this._toString(l,M,!0)),l},o.prototype._toString=function(M,l,R){if(this._decoder||(this._decoder=new v(l),this._encoding=l),this._encoding!==l)throw new Error("can't switch encodings");var s=this._decoder.write(M);return R&&(s+=this._decoder.end()),s},Ve.exports=o},7293:(Ve,Q,m)=>{"use strict";const e=m(4315),t=m(2872),v=m(717);Ve.exports=function C(l,R){switch(t(l)){case"object":return function o(l,R){if("function"==typeof R)return R(l);if(R||v(l)){const s=new l.constructor;for(let L in l)s[L]=C(l[L],R);return s}return l}(l,R);case"array":return function M(l,R){const s=new l.constructor(l.length);for(let L=0;LC?v:Array(C-v.length+1).join("0")+v}(C.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(C){return parseInt(C,16)})}};Ve.exports?Ve.exports=m:Q.convertHex=m}(this)},5612:function(Ve){!function(Q){"use strict";var m={bytesToString:function(e){return e.map(function(t){return String.fromCharCode(t)}).join("")},stringToBytes:function(e){return e.split("").map(function(t){return t.charCodeAt(0)})}};m.UTF8={bytesToString:function(e){return decodeURIComponent(escape(m.bytesToString(e)))},stringToBytes:function(e){return m.stringToBytes(unescape(encodeURIComponent(e)))}},Ve.exports?Ve.exports=m:Q.convertString=m}(this)},4746:(Ve,Q,m)=>{var e=m(7715),t=m(6422);Ve.exports=function(l){return new C(l)};var v={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 C(M){this.curveType=v[M],this.curveType||(this.curveType={name:M}),this.curve=new e.ec(this.curveType.name),this.keys=void 0}function o(M,l,R){Array.isArray(M)||(M=M.toArray());var s=new Buffer(M);if(R&&s.length=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function R(y,i,a){var p=l(y,a);return a-1>=i&&(p|=l(y,a-1)<<4),p}function s(y,i,a,p){for(var u=0,_=Math.min(y.length,a),D=i;D<_;D++){var I=y.charCodeAt(D)-48;u*=p,u+=I>=49?I-49+10:I>=17?I-17+10:I}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),v(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(D=i[u]|i[u-1]<<8|i[u-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u=a;u-=2)I=R(i,a,u)<<_,this.words[D]|=67108863&I,_>=18?(_-=18,this.words[D+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u=18?(_-=18,this.words[D+=1]|=I>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var D=i.length-p,I=D%u,x=Math.min(D,D-I)+p,r=0,b=p;b1&&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 L=["","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"],O=[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],A=[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 P(y,i,a){a.negative=i.negative^y.negative;var p=y.length+i.length|0;a.length=p,p=p-1|0;var u=0|y.words[0],_=0|i.words[0],D=u*_,x=D/67108864|0;a.words[0]=67108863&D;for(var r=1;r>>26,U=67108863&x,N=Math.min(r,i.length-1),z=Math.max(0,r-y.length+1);z<=N;z++)b+=(D=(u=0|y.words[r-z|0])*(_=0|i.words[z])+U)/67108864|0,U=67108863&D;a.words[r]=0|U,x=0|b}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,D=0;D>>24-u&16777215)||D!==this.length-1?L[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,D--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=O[i],b=A[i];p="";var U=this.clone();for(U.negative=0;!U.isZero();){var N=U.modn(b).toString(i);p=(U=U.idivn(b)).isZero()?N+p:L[r-N.length]+N+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}v(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&v(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return v(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);v(u<=_,"byte array longer than desired length"),v(_>0,"Requested array length <= 0"),this.strip();var x,r,D="le"===a,I=new i(_),b=this.clone();if(D){for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),I[r]=x;for(;r<_;r++)I[r]=0}else{for(r=0;r<_-u;r++)I[r]=0;for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),I[_-r-1]=x}return I},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;pi.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;ui.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){v("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){v("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<i.length?(p=this,u=i):(p=i,u=this);for(var _=0,D=0;D>>26;for(;0!==_&&D>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;Di.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var D=0,I=0;I<_.length;I++)D=(a=(0|u.words[I])-(0|_.words[I])+D)>>26,this.words[I]=67108863&a;for(;0!==D&&I>26,this.words[I]=67108863&a;if(0===D&&I>>13,be=0|u[1],xe=8191&be,Re=be>>>13,ze=0|u[2],Le=8191&ze,K=ze>>>13,we=0|u[3],Y=8191&we,ae=we>>>13,Ge=0|u[4],vt=8191&Ge,Fe=Ge>>>13,Ne=0|u[5],ue=8191&Ne,Oe=Ne>>>13,Pe=0|u[6],q=8191&Pe,$=Pe>>>13,ce=0|u[7],Me=8191&ce,Ue=ce>>>13,lt=0|u[8],nt=8191<,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,ki=0|_[2],ai=8191&ki,hi=ki>>>13,Ze=0|_[3],Ee=8191&Ze,G=Ze>>>13,ge=0|_[4],De=8191&ge,et=ge>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],ke=8191&ct,Be=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(I+(x=Math.imul(N,Ft))|0)+((8191&(r=(r=Math.imul(N,Vt))+Math.imul(z,Ft)|0))<<13)|0;I=((b=Math.imul(z,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(xe,Ft),r=(r=Math.imul(xe,Vt))+Math.imul(Re,Ft)|0,b=Math.imul(Re,Vt);var Ui=(I+(x=x+Math.imul(N,jt)|0)|0)+((8191&(r=(r=r+Math.imul(N,ei)|0)+Math.imul(z,jt)|0))<<13)|0;I=((b=b+Math.imul(z,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Le,Ft),r=(r=Math.imul(Le,Vt))+Math.imul(K,Ft)|0,b=Math.imul(K,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ei)|0)+Math.imul(Re,jt)|0,b=b+Math.imul(Re,ei)|0;var Di=(I+(x=x+Math.imul(N,ai)|0)|0)+((8191&(r=(r=r+Math.imul(N,hi)|0)+Math.imul(z,ai)|0))<<13)|0;I=((b=b+Math.imul(z,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(Y,Ft),r=(r=Math.imul(Y,Vt))+Math.imul(ae,Ft)|0,b=Math.imul(ae,Vt),x=x+Math.imul(Le,jt)|0,r=(r=r+Math.imul(Le,ei)|0)+Math.imul(K,jt)|0,b=b+Math.imul(K,ei)|0,x=x+Math.imul(xe,ai)|0,r=(r=r+Math.imul(xe,hi)|0)+Math.imul(Re,ai)|0,b=b+Math.imul(Re,hi)|0;var Xi=(I+(x=x+Math.imul(N,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(N,G)|0)+Math.imul(z,Ee)|0))<<13)|0;I=((b=b+Math.imul(z,G)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Fe,Ft)|0,b=Math.imul(Fe,Vt),x=x+Math.imul(Y,jt)|0,r=(r=r+Math.imul(Y,ei)|0)+Math.imul(ae,jt)|0,b=b+Math.imul(ae,ei)|0,x=x+Math.imul(Le,ai)|0,r=(r=r+Math.imul(Le,hi)|0)+Math.imul(K,ai)|0,b=b+Math.imul(K,hi)|0,x=x+Math.imul(xe,Ee)|0,r=(r=r+Math.imul(xe,G)|0)+Math.imul(Re,Ee)|0,b=b+Math.imul(Re,G)|0;var Ke=(I+(x=x+Math.imul(N,De)|0)|0)+((8191&(r=(r=r+Math.imul(N,et)|0)+Math.imul(z,De)|0))<<13)|0;I=((b=b+Math.imul(z,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(ue,Ft),r=(r=Math.imul(ue,Vt))+Math.imul(Oe,Ft)|0,b=Math.imul(Oe,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Fe,jt)|0,b=b+Math.imul(Fe,ei)|0,x=x+Math.imul(Y,ai)|0,r=(r=r+Math.imul(Y,hi)|0)+Math.imul(ae,ai)|0,b=b+Math.imul(ae,hi)|0,x=x+Math.imul(Le,Ee)|0,r=(r=r+Math.imul(Le,G)|0)+Math.imul(K,Ee)|0,b=b+Math.imul(K,G)|0,x=x+Math.imul(xe,De)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Re,De)|0,b=b+Math.imul(Re,et)|0;var _t=(I+(x=x+Math.imul(N,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Jt)|0)+Math.imul(z,Nt)|0))<<13)|0;I=((b=b+Math.imul(z,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,b=Math.imul($,Vt),x=x+Math.imul(ue,jt)|0,r=(r=r+Math.imul(ue,ei)|0)+Math.imul(Oe,jt)|0,b=b+Math.imul(Oe,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Fe,ai)|0,b=b+Math.imul(Fe,hi)|0,x=x+Math.imul(Y,Ee)|0,r=(r=r+Math.imul(Y,G)|0)+Math.imul(ae,Ee)|0,b=b+Math.imul(ae,G)|0,x=x+Math.imul(Le,De)|0,r=(r=r+Math.imul(Le,et)|0)+Math.imul(K,De)|0,b=b+Math.imul(K,et)|0,x=x+Math.imul(xe,Nt)|0,r=(r=r+Math.imul(xe,Jt)|0)+Math.imul(Re,Nt)|0,b=b+Math.imul(Re,Jt)|0;var ye=(I+(x=x+Math.imul(N,ke)|0)|0)+((8191&(r=(r=r+Math.imul(N,Be)|0)+Math.imul(z,ke)|0))<<13)|0;I=((b=b+Math.imul(z,Be)|0)+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,x=Math.imul(Me,Ft),r=(r=Math.imul(Me,Vt))+Math.imul(Ue,Ft)|0,b=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,b=b+Math.imul($,ei)|0,x=x+Math.imul(ue,ai)|0,r=(r=r+Math.imul(ue,hi)|0)+Math.imul(Oe,ai)|0,b=b+Math.imul(Oe,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,G)|0)+Math.imul(Fe,Ee)|0,b=b+Math.imul(Fe,G)|0,x=x+Math.imul(Y,De)|0,r=(r=r+Math.imul(Y,et)|0)+Math.imul(ae,De)|0,b=b+Math.imul(ae,et)|0,x=x+Math.imul(Le,Nt)|0,r=(r=r+Math.imul(Le,Jt)|0)+Math.imul(K,Nt)|0,b=b+Math.imul(K,Jt)|0,x=x+Math.imul(xe,ke)|0,r=(r=r+Math.imul(xe,Be)|0)+Math.imul(Re,ke)|0,b=b+Math.imul(Re,Be)|0;var qe=(I+(x=x+Math.imul(N,st)|0)|0)+((8191&(r=(r=r+Math.imul(N,At)|0)+Math.imul(z,st)|0))<<13)|0;I=((b=b+Math.imul(z,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Me,jt)|0,r=(r=r+Math.imul(Me,ei)|0)+Math.imul(Ue,jt)|0,b=b+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,b=b+Math.imul($,hi)|0,x=x+Math.imul(ue,Ee)|0,r=(r=r+Math.imul(ue,G)|0)+Math.imul(Oe,Ee)|0,b=b+Math.imul(Oe,G)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Fe,De)|0,b=b+Math.imul(Fe,et)|0,x=x+Math.imul(Y,Nt)|0,r=(r=r+Math.imul(Y,Jt)|0)+Math.imul(ae,Nt)|0,b=b+Math.imul(ae,Jt)|0,x=x+Math.imul(Le,ke)|0,r=(r=r+Math.imul(Le,Be)|0)+Math.imul(K,ke)|0,b=b+Math.imul(K,Be)|0,x=x+Math.imul(xe,st)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Re,st)|0,b=b+Math.imul(Re,At)|0;var yt=(I+(x=x+Math.imul(N,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Rt)|0)+Math.imul(z,Bt)|0))<<13)|0;I=((b=b+Math.imul(z,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,b=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,b=b+Math.imul(ft,ei)|0,x=x+Math.imul(Me,ai)|0,r=(r=r+Math.imul(Me,hi)|0)+Math.imul(Ue,ai)|0,b=b+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,G)|0)+Math.imul($,Ee)|0,b=b+Math.imul($,G)|0,x=x+Math.imul(ue,De)|0,r=(r=r+Math.imul(ue,et)|0)+Math.imul(Oe,De)|0,b=b+Math.imul(Oe,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Fe,Nt)|0,b=b+Math.imul(Fe,Jt)|0,x=x+Math.imul(Y,ke)|0,r=(r=r+Math.imul(Y,Be)|0)+Math.imul(ae,ke)|0,b=b+Math.imul(ae,Be)|0,x=x+Math.imul(Le,st)|0,r=(r=r+Math.imul(Le,At)|0)+Math.imul(K,st)|0,b=b+Math.imul(K,At)|0,x=x+Math.imul(xe,Bt)|0,r=(r=r+Math.imul(xe,Rt)|0)+Math.imul(Re,Bt)|0,b=b+Math.imul(Re,Rt)|0;var pe=(I+(x=x+Math.imul(N,si)|0)|0)+((8191&(r=(r=r+Math.imul(N,ci)|0)+Math.imul(z,si)|0))<<13)|0;I=((b=b+Math.imul(z,ci)|0)+(r>>>13)|0)+(pe>>>26)|0,pe&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,b=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,b=b+Math.imul(ft,hi)|0,x=x+Math.imul(Me,Ee)|0,r=(r=r+Math.imul(Me,G)|0)+Math.imul(Ue,Ee)|0,b=b+Math.imul(Ue,G)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,b=b+Math.imul($,et)|0,x=x+Math.imul(ue,Nt)|0,r=(r=r+Math.imul(ue,Jt)|0)+Math.imul(Oe,Nt)|0,b=b+Math.imul(Oe,Jt)|0,x=x+Math.imul(vt,ke)|0,r=(r=r+Math.imul(vt,Be)|0)+Math.imul(Fe,ke)|0,b=b+Math.imul(Fe,Be)|0,x=x+Math.imul(Y,st)|0,r=(r=r+Math.imul(Y,At)|0)+Math.imul(ae,st)|0,b=b+Math.imul(ae,At)|0,x=x+Math.imul(Le,Bt)|0,r=(r=r+Math.imul(Le,Rt)|0)+Math.imul(K,Bt)|0,b=b+Math.imul(K,Rt)|0;var Je=(I+(x=x+Math.imul(xe,si)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Re,si)|0))<<13)|0;I=((b=b+Math.imul(Re,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,b=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,G)|0)+Math.imul(ft,Ee)|0,b=b+Math.imul(ft,G)|0,x=x+Math.imul(Me,De)|0,r=(r=r+Math.imul(Me,et)|0)+Math.imul(Ue,De)|0,b=b+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,b=b+Math.imul($,Jt)|0,x=x+Math.imul(ue,ke)|0,r=(r=r+Math.imul(ue,Be)|0)+Math.imul(Oe,ke)|0,b=b+Math.imul(Oe,Be)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Fe,st)|0,b=b+Math.imul(Fe,At)|0,x=x+Math.imul(Y,Bt)|0,r=(r=r+Math.imul(Y,Rt)|0)+Math.imul(ae,Bt)|0,b=b+Math.imul(ae,Rt)|0;var St=(I+(x=x+Math.imul(Le,si)|0)|0)+((8191&(r=(r=r+Math.imul(Le,ci)|0)+Math.imul(K,si)|0))<<13)|0;I=((b=b+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,G))+Math.imul(Mt,Ee)|0,b=Math.imul(Mt,G),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Me,Nt)|0,r=(r=r+Math.imul(Me,Jt)|0)+Math.imul(Ue,Nt)|0,b=b+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,ke)|0,r=(r=r+Math.imul(q,Be)|0)+Math.imul($,ke)|0,b=b+Math.imul($,Be)|0,x=x+Math.imul(ue,st)|0,r=(r=r+Math.imul(ue,At)|0)+Math.imul(Oe,st)|0,b=b+Math.imul(Oe,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Fe,Bt)|0,b=b+Math.imul(Fe,Rt)|0;var kt=(I+(x=x+Math.imul(Y,si)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ci)|0)+Math.imul(ae,si)|0))<<13)|0;I=((b=b+Math.imul(ae,ci)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,b=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,b=b+Math.imul(ft,Jt)|0,x=x+Math.imul(Me,ke)|0,r=(r=r+Math.imul(Me,Be)|0)+Math.imul(Ue,ke)|0,b=b+Math.imul(Ue,Be)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,b=b+Math.imul($,At)|0,x=x+Math.imul(ue,Bt)|0,r=(r=r+Math.imul(ue,Rt)|0)+Math.imul(Oe,Bt)|0,b=b+Math.imul(Oe,Rt)|0;var yi=(I+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Fe,si)|0))<<13)|0;I=((b=b+Math.imul(Fe,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,b=Math.imul(Mt,Jt),x=x+Math.imul(nt,ke)|0,r=(r=r+Math.imul(nt,Be)|0)+Math.imul(ft,ke)|0,b=b+Math.imul(ft,Be)|0,x=x+Math.imul(Me,st)|0,r=(r=r+Math.imul(Me,At)|0)+Math.imul(Ue,st)|0,b=b+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,b=b+Math.imul($,Rt)|0;var Ni=(I+(x=x+Math.imul(ue,si)|0)|0)+((8191&(r=(r=r+Math.imul(ue,ci)|0)+Math.imul(Oe,si)|0))<<13)|0;I=((b=b+Math.imul(Oe,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,ke),r=(r=Math.imul(rt,Be))+Math.imul(Mt,ke)|0,b=Math.imul(Mt,Be),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,b=b+Math.imul(ft,At)|0,x=x+Math.imul(Me,Bt)|0,r=(r=r+Math.imul(Me,Rt)|0)+Math.imul(Ue,Bt)|0,b=b+Math.imul(Ue,Rt)|0;var Si=(I+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;I=((b=b+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,b=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,b=b+Math.imul(ft,Rt)|0;var qi=(I+(x=x+Math.imul(Me,si)|0)|0)+((8191&(r=(r=r+Math.imul(Me,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;I=((b=b+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,b=Math.imul(Mt,Rt);var ot=(I+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;I=((b=b+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(I+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return I=((b=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,D[0]=sn,D[1]=Ui,D[2]=Di,D[3]=Xi,D[4]=Ke,D[5]=_t,D[6]=ye,D[7]=qe,D[8]=yt,D[9]=pe,D[10]=Je,D[11]=St,D[12]=kt,D[13]=yi,D[14]=Ni,D[15]=Si,D[16]=qi,D[17]=ot,D[18]=Kt,0!==I&&(D[19]=I,p.length++),p};function j(y,i,a){return(new W).mulp(y,i,a)}function W(y,i){this.x=y,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function Z(y,i,a){a.negative=i.negative^y.negative,a.length=y.length+i.length;for(var p=0,u=0,_=0;_>>26)|0)>>>26,D&=67108863}a.words[_]=I,p=D,D=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u>=1;return u},W.prototype.permute=function(i,a,p,u,_,D){for(var I=0;I>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u

>>=13),_>>>=13;for(D=2*a;D>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(y){for(var i=new Array(y.bitLength()),a=0;a>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var D=0;for(_=0;_>>26-a}D&&(this.words[_]=D,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_=0),u=a?(a-a%26)/26:0;var _=i%26,D=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=D,u=Math.max(0,u),x){for(var r=0;rD)for(this.length-=D,r=0;r=0&&(0!==b||r>=u);r--){var U=0|this.words[r];this.words[r]=b<<26-_|U>>>_,b=U&I}return x&&0!==b&&(x.words[x.length++]=b),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return v(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){v("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<=0);var a=i%26,p=(i-a)/26;return v(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(v("number"==typeof i),v(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a>26)-(x/67108864|0),this.words[_+p]=67108863&D}for(;_>26,this.words[_+p]=67108863&D;if(0===I)return this.strip();for(v(-1===I),I=0,_=0;_>26,this.words[_]=67108863&D;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,D=0|_.words[_.length-1];0!=(p=26-this._countBits(D))&&(_=_.ushln(p),u.iushln(p),D=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var b=0;b=0;N--){var z=67108864*(0|u.words[_.length+N])+(0|u.words[_.length+N-1]);for(z=Math.min(z/D|0,67108863),u._ishlnsubmul(_,z,N);0!==u.negative;)z--,u.negative=0,u._ishlnsubmul(_,1,N),u.isZero()||(u.negative^=1);r&&(r.words[N]=z)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return v(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,a),"mod"!==a&&(u=D.div.neg()),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),a),"mod"!==a&&(u=D.div.neg()),{div:u,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),a),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:D.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,D},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),D=p.cmp(u);return D<0||1===_&&0===D?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){v(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){v(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){v(0===i.negative),v(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=new o(0),I=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),b=a.clone();!a.isZero();){for(var U=0,N=1;0==(a.words[0]&N)&&U<26;++U,N<<=1);if(U>0)for(a.iushrn(U);U-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var z=0,be=1;0==(p.words[0]&be)&&z<26;++z,be<<=1);if(z>0)for(p.iushrn(z);z-- >0;)(D.isOdd()||I.isOdd())&&(D.iadd(r),I.isub(b)),D.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(D),_.isub(I)):(p.isub(a),D.isub(u),I.isub(_))}return{a:D,b:I,gcd:p.iushln(x)}},o.prototype._invmp=function(i){v(0===i.negative),v(!i.isZero());var U,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var I=0,x=1;0==(a.words[0]&x)&&I<26;++I,x<<=1);if(I>0)for(a.iushrn(I);I-- >0;)u.isOdd()&&u.iadd(D),u.iushrn(1);for(var r=0,b=1;0==(p.words[0]&b)&&r<26;++r,b<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(D),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(U=0===a.cmpn(1)?u:_).cmpn(0)<0&&U.iadd(i),U},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var D=a;a=p,p=D}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){v("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<>>26,this.words[D]=I&=67108863}return 0!==_&&(this.words[D]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),v(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:ui.length)return 1;if(this.length=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new le(i)},o.prototype.toRed=function(i){return v(!this.red,"Already a number in reduction context"),v(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return v(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return v(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return v(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return v(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return v(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return v(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return v(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return v(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return v(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return v(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return v(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return v(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return v(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ie={k256:null,p224:null,p192:null,p25519:null};function ee(y,i){this.name=y,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ve(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function he(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function le(y){if("string"==typeof y){var i=o._prime(y);this.m=i.p,this.prime=i}else v(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}function se(y){le.call(this,y),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)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(ve,ee),ve.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_>>22,D=I}i.words[_-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},ve.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(ie[i])return ie[i];var a;if("k256"===i)a=new ve;else if("p224"===i)a=new he;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return ie[i]=a,a},le.prototype._verify1=function(i){v(0===i.negative,"red works only with positives"),v(i.red,"red works only with red numbers")},le.prototype._verify2=function(i,a){v(0==(i.negative|a.negative),"red works only with positives"),v(i.red&&i.red===a.red,"red works only with red numbers")},le.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},le.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},le.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},le.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},le.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},le.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},le.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},le.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},le.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},le.prototype.isqr=function(i){return this.imul(i,i.clone())},le.prototype.sqr=function(i){return this.mul(i,i)},le.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(v(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);v(!u.isZero());var D=new o(1).toRed(this),I=D.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(I);)r.redIAdd(I);for(var b=this.pow(r,u),U=this.pow(i,u.addn(1).iushrn(1)),N=this.pow(i,u),z=_;0!==N.cmp(D);){for(var be=N,xe=0;0!==be.cmp(D);xe++)be=be.redSqr();v(xe=0;_--){for(var b=a.words[_],U=r-1;U>=0;U--){var N=b>>U&1;D!==u[0]&&(D=this.sqr(D)),0!==N||0!==I?(I<<=1,I|=N,(4==++x||0===_&&0===U)&&(D=this.mul(D,u[I]),x=0,I=0)):x=0}r=26}return D},le.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},le.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new se(i)},C(se,le),se.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},se.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},se.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},se.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},se.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ve=m.nmd(Ve),this)},6386:(Ve,Q,m)=>{"use strict";var e=m(3894),t=m(8095),v=m(5634),C=m(5244),o=m(1052);function M(l){o.call(this,"digest"),this._hash=l}e(M,o),M.prototype._update=function(l){this._hash.update(l)},M.prototype._final=function(){return this._hash.digest()},Ve.exports=function(R){return"md5"===(R=R.toLowerCase())?new t:"rmd160"===R||"ripemd160"===R?new v:new M(C(R))}},5640:(Ve,Q,m)=>{var e=m(8095);Ve.exports=function(t){return(new e).update(t).digest()}},4529:(Ve,Q,m)=>{"use strict";var e=m(3894),t=m(7309),v=m(1052),C=m(3502).Buffer,o=m(5640),M=m(5634),l=m(5244),R=C.alloc(128);function s(L,O){v.call(this,"digest"),"string"==typeof O&&(O=C.from(O));var A="sha512"===L||"sha384"===L?128:64;this._alg=L,this._key=O,O.length>A?O=("rmd160"===L?new M:l(L)).update(O).digest():O.length{"use strict";var e=m(3894),t=m(3502).Buffer,v=m(1052),C=t.alloc(128),o=64;function M(l,R){v.call(this,"digest"),"string"==typeof R&&(R=t.from(R)),this._alg=l,this._key=R,R.length>o?R=l(R):R.length{"use strict";Q.randomBytes=Q.rng=Q.pseudoRandomBytes=Q.prng=m(3753),Q.createHash=Q.Hash=m(6386),Q.createHmac=Q.Hmac=m(4529);var e=m(7793),t=Object.keys(e),v=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(t);Q.getHashes=function(){return v};var C=m(9357);Q.pbkdf2=C.pbkdf2,Q.pbkdf2Sync=C.pbkdf2Sync;var o=m(5255);Q.Cipher=o.Cipher,Q.createCipher=o.createCipher,Q.Cipheriv=o.Cipheriv,Q.createCipheriv=o.createCipheriv,Q.Decipher=o.Decipher,Q.createDecipher=o.createDecipher,Q.Decipheriv=o.Decipheriv,Q.createDecipheriv=o.createDecipheriv,Q.getCiphers=o.getCiphers,Q.listCiphers=o.listCiphers;var M=m(8829);Q.DiffieHellmanGroup=M.DiffieHellmanGroup,Q.createDiffieHellmanGroup=M.createDiffieHellmanGroup,Q.getDiffieHellman=M.getDiffieHellman,Q.createDiffieHellman=M.createDiffieHellman,Q.DiffieHellman=M.DiffieHellman;var l=m(3923);Q.createSign=l.createSign,Q.Sign=l.Sign,Q.createVerify=l.createVerify,Q.Verify=l.Verify,Q.createECDH=m(4746);var R=m(3701);Q.publicEncrypt=R.publicEncrypt,Q.privateEncrypt=R.privateEncrypt,Q.publicDecrypt=R.publicDecrypt,Q.privateDecrypt=R.privateDecrypt;var s=m(4275);Q.randomFill=s.randomFill,Q.randomFillSync=s.randomFillSync,Q.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},Q.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},3684:(Ve,Q,m)=>{"use strict";Q.utils=m(7451),Q.Cipher=m(8170),Q.DES=m(4631),Q.CBC=m(9454),Q.EDE=m(1862)},9454:(Ve,Q,m)=>{"use strict";var e=m(2391),t=m(3894),v={};function C(M){e.equal(M.length,8,"Invalid IV length"),this.iv=new Array(8);for(var l=0;l{"use strict";var e=m(2391);function t(v){this.options=v,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}Ve.exports=t,t.prototype._init=function(){},t.prototype.update=function(C){return 0===C.length?[]:"decrypt"===this.type?this._updateDecrypt(C):this._updateEncrypt(C)},t.prototype._buffer=function(C,o){for(var M=Math.min(this.buffer.length-this.bufferOff,C.length-o),l=0;l0;l--)o+=this._buffer(C,o),M+=this._flushBuffer(R,M);return o+=this._buffer(C,o),R},t.prototype.final=function(C){var o,M;return C&&(o=this.update(C)),M="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),o?o.concat(M):M},t.prototype._pad=function(C,o){if(0===o)return!1;for(;o{"use strict";var e=m(2391),t=m(3894),v=m(7451),C=m(8170);function o(){this.tmp=new Array(2),this.keys=null}function M(R){C.call(this,R);var s=new o;this._desState=s,this.deriveKeys(s,R.key)}t(M,C),Ve.exports=M,M.create=function(s){return new M(s)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];M.prototype.deriveKeys=function(s,L){s.keys=new Array(32),e.equal(L.length,this.blockSize,"Invalid key length");var O=v.readUInt32BE(L,0),A=v.readUInt32BE(L,4);v.pc1(O,A,s.tmp,0),O=s.tmp[0],A=s.tmp[1];for(var E=0;E>>1];O=v.r28shl(O,P),A=v.r28shl(A,P),v.pc2(O,A,s.keys,E)}},M.prototype._update=function(s,L,O,A){var E=this._desState,P=v.readUInt32BE(s,L),w=v.readUInt32BE(s,L+4);v.ip(P,w,E.tmp,0),P=E.tmp[0],w=E.tmp[1],"encrypt"===this.type?this._encrypt(E,P,w,E.tmp,0):this._decrypt(E,P,w,E.tmp,0),w=E.tmp[1],v.writeUInt32BE(O,P=E.tmp[0],A),v.writeUInt32BE(O,w,A+4)},M.prototype._pad=function(s,L){for(var O=s.length-L,A=L;A>>0,P=ve}v.rip(w,P,A,E)},M.prototype._decrypt=function(s,L,O,A,E){for(var P=O,w=L,Z=s.keys.length-2;Z>=0;Z-=2){var j=s.keys[Z],W=s.keys[Z+1];v.expand(P,s.tmp,0);var ie=v.substitute(j^=s.tmp[0],W^=s.tmp[1]),ve=P;P=(w^v.permute(ie))>>>0,w=ve}v.rip(P,w,A,E)}},1862:(Ve,Q,m)=>{"use strict";var e=m(2391),t=m(3894),v=m(8170),C=m(4631);function o(l,R){e.equal(R.length,24,"Invalid key length");var s=R.slice(0,8),L=R.slice(8,16),O=R.slice(16,24);this.ciphers="encrypt"===l?[C.create({type:"encrypt",key:s}),C.create({type:"decrypt",key:L}),C.create({type:"encrypt",key:O})]:[C.create({type:"decrypt",key:O}),C.create({type:"encrypt",key:L}),C.create({type:"decrypt",key:s})]}function M(l){v.call(this,l);var R=new o(this.type,this.options.key);this._edeState=R}t(M,v),Ve.exports=M,M.create=function(R){return new M(R)},M.prototype._update=function(R,s,L,O){var A=this._edeState;A.ciphers[0]._update(R,s,L,O),A.ciphers[1]._update(L,O,L,O),A.ciphers[2]._update(L,O,L,O)},M.prototype._pad=C.prototype._pad,M.prototype._unpad=C.prototype._unpad},7451:(Ve,Q)=>{"use strict";Q.readUInt32BE=function(C,o){return(C[0+o]<<24|C[1+o]<<16|C[2+o]<<8|C[3+o])>>>0},Q.writeUInt32BE=function(C,o,M){C[0+M]=o>>>24,C[1+M]=o>>>16&255,C[2+M]=o>>>8&255,C[3+M]=255&o},Q.ip=function(C,o,M,l){for(var R=0,s=0,L=6;L>=0;L-=2){for(var O=0;O<=24;O+=8)R<<=1,R|=o>>>O+L&1;for(O=0;O<=24;O+=8)R<<=1,R|=C>>>O+L&1}for(L=6;L>=0;L-=2){for(O=1;O<=25;O+=8)s<<=1,s|=o>>>O+L&1;for(O=1;O<=25;O+=8)s<<=1,s|=C>>>O+L&1}M[l+0]=R>>>0,M[l+1]=s>>>0},Q.rip=function(C,o,M,l){for(var R=0,s=0,L=0;L<4;L++)for(var O=24;O>=0;O-=8)R<<=1,R|=o>>>O+L&1,R<<=1,R|=C>>>O+L&1;for(L=4;L<8;L++)for(O=24;O>=0;O-=8)s<<=1,s|=o>>>O+L&1,s<<=1,s|=C>>>O+L&1;M[l+0]=R>>>0,M[l+1]=s>>>0},Q.pc1=function(C,o,M,l){for(var R=0,s=0,L=7;L>=5;L--){for(var O=0;O<=24;O+=8)R<<=1,R|=o>>O+L&1;for(O=0;O<=24;O+=8)R<<=1,R|=C>>O+L&1}for(O=0;O<=24;O+=8)R<<=1,R|=o>>O+L&1;for(L=1;L<=3;L++){for(O=0;O<=24;O+=8)s<<=1,s|=o>>O+L&1;for(O=0;O<=24;O+=8)s<<=1,s|=C>>O+L&1}for(O=0;O<=24;O+=8)s<<=1,s|=C>>O+L&1;M[l+0]=R>>>0,M[l+1]=s>>>0},Q.r28shl=function(C,o){return C<>>28-o};var m=[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(C,o,M,l){for(var R=0,s=0,L=m.length>>>1,O=0;O>>m[O]&1;for(O=L;O>>m[O]&1;M[l+0]=R>>>0,M[l+1]=s>>>0},Q.expand=function(C,o,M){var l=0,R=0;l=(1&C)<<5|C>>>27;for(var s=23;s>=15;s-=4)l<<=6,l|=C>>>s&63;for(s=11;s>=3;s-=4)R|=C>>>s&63,R<<=6;R|=(31&C)<<1|C>>>31,o[M+0]=l>>>0,o[M+1]=R>>>0};var e=[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(C,o){for(var M=0,l=0;l<4;l++)M<<=4,M|=e[64*l+(C>>>18-6*l&63)];for(l=0;l<4;l++)M<<=4,M|=e[256+64*l+(o>>>18-6*l&63)];return M>>>0};var t=[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(C){for(var o=0,M=0;M>>t[M]&1;return o>>>0},Q.padSplit=function(C,o,M){for(var l=C.toString(2);l.length{var e=m(5563),t=m(9799),v=m(1419),o={binary:!0,hex:!0,base64:!0};Q.DiffieHellmanGroup=Q.createDiffieHellmanGroup=Q.getDiffieHellman=function C(l){var R=new Buffer(t[l].prime,"hex"),s=new Buffer(t[l].gen,"hex");return new v(R,s)},Q.createDiffieHellman=Q.DiffieHellman=function M(l,R,s,L){return Buffer.isBuffer(R)||void 0===o[R]?M(l,"binary",R,s):(R=R||"binary",L=L||"binary",s=s||new Buffer([2]),Buffer.isBuffer(s)||(s=new Buffer(s,L)),"number"==typeof l?new v(e(l,s),s,!0):(Buffer.isBuffer(l)||(l=new Buffer(l,R)),new v(l,s,!0)))}},1419:(Ve,Q,m)=>{var e=m(8313),v=new(m(7079)),C=new e(24),o=new e(11),M=new e(10),l=new e(3),R=new e(7),s=m(5563),L=m(3753);function O(j,W){return W=W||"utf8",Buffer.isBuffer(j)||(j=new Buffer(j,W)),this._pub=new e(j),this}function A(j,W){return W=W||"utf8",Buffer.isBuffer(j)||(j=new Buffer(j,W)),this._priv=new e(j),this}Ve.exports=w;var E={};function w(j,W,ie){this.setGenerator(W),this.__prime=new e(j),this._prime=e.mont(this.__prime),this._primeLen=j.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,ie?(this.setPublicKey=O,this.setPrivateKey=A):this._primeCode=8}function Z(j,W){var ie=new Buffer(j.toArray());return W?ie.toString(W):ie}Object.defineProperty(w.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function P(j,W){var ie=W.toString("hex"),ee=[ie,j.toString(16)].join("_");if(ee in E)return E[ee];var he,ve=0;if(j.isEven()||!s.simpleSieve||!s.fermatTest(j)||!v.test(j))return ve+=1,E[ee]=ve+="02"===ie||"05"===ie?8:4,ve;switch(v.test(j.shrn(1))||(ve+=2),ie){case"02":j.mod(C).cmp(o)&&(ve+=8);break;case"05":(he=j.mod(M)).cmp(l)&&he.cmp(R)&&(ve+=8);break;default:ve+=4}return E[ee]=ve,ve}(this.__prime,this.__gen)),this._primeCode}}),w.prototype.generateKeys=function(){return this._priv||(this._priv=new e(L(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},w.prototype.computeSecret=function(j){var W=(j=(j=new e(j)).toRed(this._prime)).redPow(this._priv).fromRed(),ie=new Buffer(W.toArray()),ee=this.getPrime();if(ie.length{var e=m(3753);Ve.exports=ve,ve.simpleSieve=ie,ve.fermatTest=ee;var t=m(8313),v=new t(24),o=new(m(7079)),M=new t(1),l=new t(2),R=new t(5),O=(new t(16),new t(8),new t(10)),A=new t(3),P=(new t(7),new t(11)),w=new t(4),j=(new t(12),null);function ie(he){for(var re=function W(){if(null!==j)return j;var re=[];re[0]=2;for(var de=1,le=3;le<1048576;le+=2){for(var se=Math.ceil(Math.sqrt(le)),y=0;yhe;)de.ishrn(1);if(de.isEven()&&de.iadd(M),de.testn(1)||de.iadd(l),re.cmp(l)){if(!re.cmp(R))for(;de.mod(O).cmp(A);)de.iadd(w)}else for(;de.mod(v).cmp(P);)de.iadd(w);if(ie(le=de.shrn(1))&&ie(de)&&ee(le)&&ee(de)&&o.test(le)&&o.test(de))return de}}},8313:function(Ve,Q,m){!function(e,t){"use strict";function v(y,i){if(!y)throw new Error(i||"Assertion failed")}function C(y,i){y.super_=i;var a=function(){};a.prototype=i.prototype,y.prototype=new a,y.prototype.constructor=y}function o(y,i,a){if(o.isBN(y))return y;this.negative=0,this.words=null,this.length=0,this.red=null,null!==y&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(y||0,i||10,a||"be"))}var M;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{M="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:m(7748).Buffer}catch(y){}function l(y,i){var a=y.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function R(y,i,a){var p=l(y,a);return a-1>=i&&(p|=l(y,a-1)<<4),p}function s(y,i,a,p){for(var u=0,_=Math.min(y.length,a),D=i;D<_;D++){var I=y.charCodeAt(D)-48;u*=p,u+=I>=49?I-49+10:I>=17?I-17+10:I}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),v(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(D=i[u]|i[u-1]<<8|i[u-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u=a;u-=2)I=R(i,a,u)<<_,this.words[D]|=67108863&I,_>=18?(_-=18,this.words[D+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u=18?(_-=18,this.words[D+=1]|=I>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var D=i.length-p,I=D%u,x=Math.min(D,D-I)+p,r=0,b=p;b1&&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 L=["","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"],O=[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],A=[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 P(y,i,a){a.negative=i.negative^y.negative;var p=y.length+i.length|0;a.length=p,p=p-1|0;var u=0|y.words[0],_=0|i.words[0],D=u*_,x=D/67108864|0;a.words[0]=67108863&D;for(var r=1;r>>26,U=67108863&x,N=Math.min(r,i.length-1),z=Math.max(0,r-y.length+1);z<=N;z++)b+=(D=(u=0|y.words[r-z|0])*(_=0|i.words[z])+U)/67108864|0,U=67108863&D;a.words[r]=0|U,x=0|b}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,D=0;D>>24-u&16777215)||D!==this.length-1?L[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,D--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=O[i],b=A[i];p="";var U=this.clone();for(U.negative=0;!U.isZero();){var N=U.modn(b).toString(i);p=(U=U.idivn(b)).isZero()?N+p:L[r-N.length]+N+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}v(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&v(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return v(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);v(u<=_,"byte array longer than desired length"),v(_>0,"Requested array length <= 0"),this.strip();var x,r,D="le"===a,I=new i(_),b=this.clone();if(D){for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),I[r]=x;for(;r<_;r++)I[r]=0}else{for(r=0;r<_-u;r++)I[r]=0;for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),I[_-r-1]=x}return I},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;pi.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;ui.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){v("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){v("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<i.length?(p=this,u=i):(p=i,u=this);for(var _=0,D=0;D>>26;for(;0!==_&&D>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;Di.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var D=0,I=0;I<_.length;I++)D=(a=(0|u.words[I])-(0|_.words[I])+D)>>26,this.words[I]=67108863&a;for(;0!==D&&I>26,this.words[I]=67108863&a;if(0===D&&I>>13,be=0|u[1],xe=8191&be,Re=be>>>13,ze=0|u[2],Le=8191&ze,K=ze>>>13,we=0|u[3],Y=8191&we,ae=we>>>13,Ge=0|u[4],vt=8191&Ge,Fe=Ge>>>13,Ne=0|u[5],ue=8191&Ne,Oe=Ne>>>13,Pe=0|u[6],q=8191&Pe,$=Pe>>>13,ce=0|u[7],Me=8191&ce,Ue=ce>>>13,lt=0|u[8],nt=8191<,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,ki=0|_[2],ai=8191&ki,hi=ki>>>13,Ze=0|_[3],Ee=8191&Ze,G=Ze>>>13,ge=0|_[4],De=8191&ge,et=ge>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],ke=8191&ct,Be=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(I+(x=Math.imul(N,Ft))|0)+((8191&(r=(r=Math.imul(N,Vt))+Math.imul(z,Ft)|0))<<13)|0;I=((b=Math.imul(z,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(xe,Ft),r=(r=Math.imul(xe,Vt))+Math.imul(Re,Ft)|0,b=Math.imul(Re,Vt);var Ui=(I+(x=x+Math.imul(N,jt)|0)|0)+((8191&(r=(r=r+Math.imul(N,ei)|0)+Math.imul(z,jt)|0))<<13)|0;I=((b=b+Math.imul(z,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Le,Ft),r=(r=Math.imul(Le,Vt))+Math.imul(K,Ft)|0,b=Math.imul(K,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ei)|0)+Math.imul(Re,jt)|0,b=b+Math.imul(Re,ei)|0;var Di=(I+(x=x+Math.imul(N,ai)|0)|0)+((8191&(r=(r=r+Math.imul(N,hi)|0)+Math.imul(z,ai)|0))<<13)|0;I=((b=b+Math.imul(z,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(Y,Ft),r=(r=Math.imul(Y,Vt))+Math.imul(ae,Ft)|0,b=Math.imul(ae,Vt),x=x+Math.imul(Le,jt)|0,r=(r=r+Math.imul(Le,ei)|0)+Math.imul(K,jt)|0,b=b+Math.imul(K,ei)|0,x=x+Math.imul(xe,ai)|0,r=(r=r+Math.imul(xe,hi)|0)+Math.imul(Re,ai)|0,b=b+Math.imul(Re,hi)|0;var Xi=(I+(x=x+Math.imul(N,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(N,G)|0)+Math.imul(z,Ee)|0))<<13)|0;I=((b=b+Math.imul(z,G)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Fe,Ft)|0,b=Math.imul(Fe,Vt),x=x+Math.imul(Y,jt)|0,r=(r=r+Math.imul(Y,ei)|0)+Math.imul(ae,jt)|0,b=b+Math.imul(ae,ei)|0,x=x+Math.imul(Le,ai)|0,r=(r=r+Math.imul(Le,hi)|0)+Math.imul(K,ai)|0,b=b+Math.imul(K,hi)|0,x=x+Math.imul(xe,Ee)|0,r=(r=r+Math.imul(xe,G)|0)+Math.imul(Re,Ee)|0,b=b+Math.imul(Re,G)|0;var Ke=(I+(x=x+Math.imul(N,De)|0)|0)+((8191&(r=(r=r+Math.imul(N,et)|0)+Math.imul(z,De)|0))<<13)|0;I=((b=b+Math.imul(z,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(ue,Ft),r=(r=Math.imul(ue,Vt))+Math.imul(Oe,Ft)|0,b=Math.imul(Oe,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Fe,jt)|0,b=b+Math.imul(Fe,ei)|0,x=x+Math.imul(Y,ai)|0,r=(r=r+Math.imul(Y,hi)|0)+Math.imul(ae,ai)|0,b=b+Math.imul(ae,hi)|0,x=x+Math.imul(Le,Ee)|0,r=(r=r+Math.imul(Le,G)|0)+Math.imul(K,Ee)|0,b=b+Math.imul(K,G)|0,x=x+Math.imul(xe,De)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Re,De)|0,b=b+Math.imul(Re,et)|0;var _t=(I+(x=x+Math.imul(N,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Jt)|0)+Math.imul(z,Nt)|0))<<13)|0;I=((b=b+Math.imul(z,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,b=Math.imul($,Vt),x=x+Math.imul(ue,jt)|0,r=(r=r+Math.imul(ue,ei)|0)+Math.imul(Oe,jt)|0,b=b+Math.imul(Oe,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Fe,ai)|0,b=b+Math.imul(Fe,hi)|0,x=x+Math.imul(Y,Ee)|0,r=(r=r+Math.imul(Y,G)|0)+Math.imul(ae,Ee)|0,b=b+Math.imul(ae,G)|0,x=x+Math.imul(Le,De)|0,r=(r=r+Math.imul(Le,et)|0)+Math.imul(K,De)|0,b=b+Math.imul(K,et)|0,x=x+Math.imul(xe,Nt)|0,r=(r=r+Math.imul(xe,Jt)|0)+Math.imul(Re,Nt)|0,b=b+Math.imul(Re,Jt)|0;var ye=(I+(x=x+Math.imul(N,ke)|0)|0)+((8191&(r=(r=r+Math.imul(N,Be)|0)+Math.imul(z,ke)|0))<<13)|0;I=((b=b+Math.imul(z,Be)|0)+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,x=Math.imul(Me,Ft),r=(r=Math.imul(Me,Vt))+Math.imul(Ue,Ft)|0,b=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,b=b+Math.imul($,ei)|0,x=x+Math.imul(ue,ai)|0,r=(r=r+Math.imul(ue,hi)|0)+Math.imul(Oe,ai)|0,b=b+Math.imul(Oe,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,G)|0)+Math.imul(Fe,Ee)|0,b=b+Math.imul(Fe,G)|0,x=x+Math.imul(Y,De)|0,r=(r=r+Math.imul(Y,et)|0)+Math.imul(ae,De)|0,b=b+Math.imul(ae,et)|0,x=x+Math.imul(Le,Nt)|0,r=(r=r+Math.imul(Le,Jt)|0)+Math.imul(K,Nt)|0,b=b+Math.imul(K,Jt)|0,x=x+Math.imul(xe,ke)|0,r=(r=r+Math.imul(xe,Be)|0)+Math.imul(Re,ke)|0,b=b+Math.imul(Re,Be)|0;var qe=(I+(x=x+Math.imul(N,st)|0)|0)+((8191&(r=(r=r+Math.imul(N,At)|0)+Math.imul(z,st)|0))<<13)|0;I=((b=b+Math.imul(z,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Me,jt)|0,r=(r=r+Math.imul(Me,ei)|0)+Math.imul(Ue,jt)|0,b=b+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,b=b+Math.imul($,hi)|0,x=x+Math.imul(ue,Ee)|0,r=(r=r+Math.imul(ue,G)|0)+Math.imul(Oe,Ee)|0,b=b+Math.imul(Oe,G)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Fe,De)|0,b=b+Math.imul(Fe,et)|0,x=x+Math.imul(Y,Nt)|0,r=(r=r+Math.imul(Y,Jt)|0)+Math.imul(ae,Nt)|0,b=b+Math.imul(ae,Jt)|0,x=x+Math.imul(Le,ke)|0,r=(r=r+Math.imul(Le,Be)|0)+Math.imul(K,ke)|0,b=b+Math.imul(K,Be)|0,x=x+Math.imul(xe,st)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Re,st)|0,b=b+Math.imul(Re,At)|0;var yt=(I+(x=x+Math.imul(N,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Rt)|0)+Math.imul(z,Bt)|0))<<13)|0;I=((b=b+Math.imul(z,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,b=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,b=b+Math.imul(ft,ei)|0,x=x+Math.imul(Me,ai)|0,r=(r=r+Math.imul(Me,hi)|0)+Math.imul(Ue,ai)|0,b=b+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,G)|0)+Math.imul($,Ee)|0,b=b+Math.imul($,G)|0,x=x+Math.imul(ue,De)|0,r=(r=r+Math.imul(ue,et)|0)+Math.imul(Oe,De)|0,b=b+Math.imul(Oe,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Fe,Nt)|0,b=b+Math.imul(Fe,Jt)|0,x=x+Math.imul(Y,ke)|0,r=(r=r+Math.imul(Y,Be)|0)+Math.imul(ae,ke)|0,b=b+Math.imul(ae,Be)|0,x=x+Math.imul(Le,st)|0,r=(r=r+Math.imul(Le,At)|0)+Math.imul(K,st)|0,b=b+Math.imul(K,At)|0,x=x+Math.imul(xe,Bt)|0,r=(r=r+Math.imul(xe,Rt)|0)+Math.imul(Re,Bt)|0,b=b+Math.imul(Re,Rt)|0;var pe=(I+(x=x+Math.imul(N,si)|0)|0)+((8191&(r=(r=r+Math.imul(N,ci)|0)+Math.imul(z,si)|0))<<13)|0;I=((b=b+Math.imul(z,ci)|0)+(r>>>13)|0)+(pe>>>26)|0,pe&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,b=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,b=b+Math.imul(ft,hi)|0,x=x+Math.imul(Me,Ee)|0,r=(r=r+Math.imul(Me,G)|0)+Math.imul(Ue,Ee)|0,b=b+Math.imul(Ue,G)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,b=b+Math.imul($,et)|0,x=x+Math.imul(ue,Nt)|0,r=(r=r+Math.imul(ue,Jt)|0)+Math.imul(Oe,Nt)|0,b=b+Math.imul(Oe,Jt)|0,x=x+Math.imul(vt,ke)|0,r=(r=r+Math.imul(vt,Be)|0)+Math.imul(Fe,ke)|0,b=b+Math.imul(Fe,Be)|0,x=x+Math.imul(Y,st)|0,r=(r=r+Math.imul(Y,At)|0)+Math.imul(ae,st)|0,b=b+Math.imul(ae,At)|0,x=x+Math.imul(Le,Bt)|0,r=(r=r+Math.imul(Le,Rt)|0)+Math.imul(K,Bt)|0,b=b+Math.imul(K,Rt)|0;var Je=(I+(x=x+Math.imul(xe,si)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Re,si)|0))<<13)|0;I=((b=b+Math.imul(Re,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,b=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,G)|0)+Math.imul(ft,Ee)|0,b=b+Math.imul(ft,G)|0,x=x+Math.imul(Me,De)|0,r=(r=r+Math.imul(Me,et)|0)+Math.imul(Ue,De)|0,b=b+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,b=b+Math.imul($,Jt)|0,x=x+Math.imul(ue,ke)|0,r=(r=r+Math.imul(ue,Be)|0)+Math.imul(Oe,ke)|0,b=b+Math.imul(Oe,Be)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Fe,st)|0,b=b+Math.imul(Fe,At)|0,x=x+Math.imul(Y,Bt)|0,r=(r=r+Math.imul(Y,Rt)|0)+Math.imul(ae,Bt)|0,b=b+Math.imul(ae,Rt)|0;var St=(I+(x=x+Math.imul(Le,si)|0)|0)+((8191&(r=(r=r+Math.imul(Le,ci)|0)+Math.imul(K,si)|0))<<13)|0;I=((b=b+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,G))+Math.imul(Mt,Ee)|0,b=Math.imul(Mt,G),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Me,Nt)|0,r=(r=r+Math.imul(Me,Jt)|0)+Math.imul(Ue,Nt)|0,b=b+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,ke)|0,r=(r=r+Math.imul(q,Be)|0)+Math.imul($,ke)|0,b=b+Math.imul($,Be)|0,x=x+Math.imul(ue,st)|0,r=(r=r+Math.imul(ue,At)|0)+Math.imul(Oe,st)|0,b=b+Math.imul(Oe,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Fe,Bt)|0,b=b+Math.imul(Fe,Rt)|0;var kt=(I+(x=x+Math.imul(Y,si)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ci)|0)+Math.imul(ae,si)|0))<<13)|0;I=((b=b+Math.imul(ae,ci)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,b=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,b=b+Math.imul(ft,Jt)|0,x=x+Math.imul(Me,ke)|0,r=(r=r+Math.imul(Me,Be)|0)+Math.imul(Ue,ke)|0,b=b+Math.imul(Ue,Be)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,b=b+Math.imul($,At)|0,x=x+Math.imul(ue,Bt)|0,r=(r=r+Math.imul(ue,Rt)|0)+Math.imul(Oe,Bt)|0,b=b+Math.imul(Oe,Rt)|0;var yi=(I+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Fe,si)|0))<<13)|0;I=((b=b+Math.imul(Fe,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,b=Math.imul(Mt,Jt),x=x+Math.imul(nt,ke)|0,r=(r=r+Math.imul(nt,Be)|0)+Math.imul(ft,ke)|0,b=b+Math.imul(ft,Be)|0,x=x+Math.imul(Me,st)|0,r=(r=r+Math.imul(Me,At)|0)+Math.imul(Ue,st)|0,b=b+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,b=b+Math.imul($,Rt)|0;var Ni=(I+(x=x+Math.imul(ue,si)|0)|0)+((8191&(r=(r=r+Math.imul(ue,ci)|0)+Math.imul(Oe,si)|0))<<13)|0;I=((b=b+Math.imul(Oe,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,ke),r=(r=Math.imul(rt,Be))+Math.imul(Mt,ke)|0,b=Math.imul(Mt,Be),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,b=b+Math.imul(ft,At)|0,x=x+Math.imul(Me,Bt)|0,r=(r=r+Math.imul(Me,Rt)|0)+Math.imul(Ue,Bt)|0,b=b+Math.imul(Ue,Rt)|0;var Si=(I+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;I=((b=b+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,b=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,b=b+Math.imul(ft,Rt)|0;var qi=(I+(x=x+Math.imul(Me,si)|0)|0)+((8191&(r=(r=r+Math.imul(Me,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;I=((b=b+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,b=Math.imul(Mt,Rt);var ot=(I+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;I=((b=b+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(I+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return I=((b=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,D[0]=sn,D[1]=Ui,D[2]=Di,D[3]=Xi,D[4]=Ke,D[5]=_t,D[6]=ye,D[7]=qe,D[8]=yt,D[9]=pe,D[10]=Je,D[11]=St,D[12]=kt,D[13]=yi,D[14]=Ni,D[15]=Si,D[16]=qi,D[17]=ot,D[18]=Kt,0!==I&&(D[19]=I,p.length++),p};function j(y,i,a){return(new W).mulp(y,i,a)}function W(y,i){this.x=y,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function Z(y,i,a){a.negative=i.negative^y.negative,a.length=y.length+i.length;for(var p=0,u=0,_=0;_>>26)|0)>>>26,D&=67108863}a.words[_]=I,p=D,D=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u>=1;return u},W.prototype.permute=function(i,a,p,u,_,D){for(var I=0;I>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u

>>=13),_>>>=13;for(D=2*a;D>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(y){for(var i=new Array(y.bitLength()),a=0;a>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var D=0;for(_=0;_>>26-a}D&&(this.words[_]=D,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_=0),u=a?(a-a%26)/26:0;var _=i%26,D=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=D,u=Math.max(0,u),x){for(var r=0;rD)for(this.length-=D,r=0;r=0&&(0!==b||r>=u);r--){var U=0|this.words[r];this.words[r]=b<<26-_|U>>>_,b=U&I}return x&&0!==b&&(x.words[x.length++]=b),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return v(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){v("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<=0);var a=i%26,p=(i-a)/26;return v(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(v("number"==typeof i),v(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a>26)-(x/67108864|0),this.words[_+p]=67108863&D}for(;_>26,this.words[_+p]=67108863&D;if(0===I)return this.strip();for(v(-1===I),I=0,_=0;_>26,this.words[_]=67108863&D;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,D=0|_.words[_.length-1];0!=(p=26-this._countBits(D))&&(_=_.ushln(p),u.iushln(p),D=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var b=0;b=0;N--){var z=67108864*(0|u.words[_.length+N])+(0|u.words[_.length+N-1]);for(z=Math.min(z/D|0,67108863),u._ishlnsubmul(_,z,N);0!==u.negative;)z--,u.negative=0,u._ishlnsubmul(_,1,N),u.isZero()||(u.negative^=1);r&&(r.words[N]=z)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return v(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,a),"mod"!==a&&(u=D.div.neg()),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),a),"mod"!==a&&(u=D.div.neg()),{div:u,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),a),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:D.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,D},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),D=p.cmp(u);return D<0||1===_&&0===D?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){v(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){v(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){v(0===i.negative),v(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=new o(0),I=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),b=a.clone();!a.isZero();){for(var U=0,N=1;0==(a.words[0]&N)&&U<26;++U,N<<=1);if(U>0)for(a.iushrn(U);U-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var z=0,be=1;0==(p.words[0]&be)&&z<26;++z,be<<=1);if(z>0)for(p.iushrn(z);z-- >0;)(D.isOdd()||I.isOdd())&&(D.iadd(r),I.isub(b)),D.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(D),_.isub(I)):(p.isub(a),D.isub(u),I.isub(_))}return{a:D,b:I,gcd:p.iushln(x)}},o.prototype._invmp=function(i){v(0===i.negative),v(!i.isZero());var U,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var I=0,x=1;0==(a.words[0]&x)&&I<26;++I,x<<=1);if(I>0)for(a.iushrn(I);I-- >0;)u.isOdd()&&u.iadd(D),u.iushrn(1);for(var r=0,b=1;0==(p.words[0]&b)&&r<26;++r,b<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(D),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(U=0===a.cmpn(1)?u:_).cmpn(0)<0&&U.iadd(i),U},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var D=a;a=p,p=D}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){v("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<>>26,this.words[D]=I&=67108863}return 0!==_&&(this.words[D]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),v(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:ui.length)return 1;if(this.length=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new le(i)},o.prototype.toRed=function(i){return v(!this.red,"Already a number in reduction context"),v(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return v(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return v(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return v(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return v(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return v(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return v(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return v(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return v(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return v(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return v(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return v(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return v(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return v(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ie={k256:null,p224:null,p192:null,p25519:null};function ee(y,i){this.name=y,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ve(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function he(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function le(y){if("string"==typeof y){var i=o._prime(y);this.m=i.p,this.prime=i}else v(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}function se(y){le.call(this,y),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)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(ve,ee),ve.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_>>22,D=I}i.words[_-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},ve.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(ie[i])return ie[i];var a;if("k256"===i)a=new ve;else if("p224"===i)a=new he;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return ie[i]=a,a},le.prototype._verify1=function(i){v(0===i.negative,"red works only with positives"),v(i.red,"red works only with red numbers")},le.prototype._verify2=function(i,a){v(0==(i.negative|a.negative),"red works only with positives"),v(i.red&&i.red===a.red,"red works only with red numbers")},le.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},le.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},le.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},le.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},le.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},le.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},le.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},le.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},le.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},le.prototype.isqr=function(i){return this.imul(i,i.clone())},le.prototype.sqr=function(i){return this.mul(i,i)},le.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(v(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);v(!u.isZero());var D=new o(1).toRed(this),I=D.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(I);)r.redIAdd(I);for(var b=this.pow(r,u),U=this.pow(i,u.addn(1).iushrn(1)),N=this.pow(i,u),z=_;0!==N.cmp(D);){for(var be=N,xe=0;0!==be.cmp(D);xe++)be=be.redSqr();v(xe=0;_--){for(var b=a.words[_],U=r-1;U>=0;U--){var N=b>>U&1;D!==u[0]&&(D=this.sqr(D)),0!==N||0!==I?(I<<=1,I|=N,(4==++x||0===_&&0===U)&&(D=this.mul(D,u[I]),x=0,I=0)):x=0}r=26}return D},le.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},le.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new se(i)},C(se,le),se.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},se.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},se.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},se.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},se.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ve=m.nmd(Ve),this)},4901:Ve=>{"use strict";var Q={single_source_shortest_paths:function(m,e,t){var v={},C={};C[e]=0;var M,l,R,s,L,A,o=Q.PriorityQueue.make();for(o.push(e,0);!o.empty();)for(R in s=(M=o.pop()).cost,L=m[l=M.value]||{})L.hasOwnProperty(R)&&(A=s+L[R],(void 0===C[R]||C[R]>A)&&(C[R]=A,o.push(R,A),v[R]=l));if(void 0!==t&&void 0===C[t]){var w=["Could not find a path from ",e," to ",t,"."].join("");throw new Error(w)}return v},extract_shortest_path_from_predecessor_list:function(m,e){for(var t=[],v=e;v;)t.push(v),v=m[v];return t.reverse(),t},find_path:function(m,e,t){var v=Q.single_source_shortest_paths(m,e,t);return Q.extract_shortest_path_from_predecessor_list(v,t)},PriorityQueue:{make:function(m){var v,e=Q.PriorityQueue,t={};for(v in m=m||{},e)e.hasOwnProperty(v)&&(t[v]=e[v]);return t.queue=[],t.sorter=m.sorter||e.default_sorter,t},default_sorter:function(m,e){return m.cost-e.cost},push:function(m,e){this.queue.push({value:m,cost:e}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};Ve.exports=Q},7715:(Ve,Q,m)=>{"use strict";var e=Q;e.version=m(8597).i8,e.utils=m(1970),e.rand=m(7950),e.curve=m(6270),e.curves=m(2916),e.ec=m(7626),e.eddsa=m(1885)},7902:(Ve,Q,m)=>{"use strict";var e=m(7433),t=m(1970),v=t.getNAF,C=t.getJSF,o=t.assert;function M(R,s){this.type=R,this.p=new e(s.p,16),this.red=s.prime?e.red(s.prime):e.mont(this.p),this.zero=new e(0).toRed(this.red),this.one=new e(1).toRed(this.red),this.two=new e(2).toRed(this.red),this.n=s.n&&new e(s.n,16),this.g=s.g&&this.pointFromJSON(s.g,s.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 L=this.n&&this.p.div(this.n);!L||L.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function l(R,s){this.curve=R,this.type=s,this.precomputed=null}Ve.exports=M,M.prototype.point=function(){throw new Error("Not implemented")},M.prototype.validate=function(){throw new Error("Not implemented")},M.prototype._fixedNafMul=function(s,L){o(s.precomputed);var O=s._getDoubles(),A=v(L,1,this._bitLength),E=(1<=w;j--)Z=(Z<<1)+A[j];P.push(Z)}for(var W=this.jpoint(null,null,null),ie=this.jpoint(null,null,null),ee=E;ee>0;ee--){for(w=0;w=0;Z--){for(var j=0;Z>=0&&0===P[Z];Z--)j++;if(Z>=0&&j++,w=w.dblp(j),Z<0)break;var W=P[Z];o(0!==W),w="affine"===s.type?w.mixedAdd(W>0?E[W-1>>1]:E[-W-1>>1].neg()):w.add(W>0?E[W-1>>1]:E[-W-1>>1].neg())}return"affine"===s.type?w.toP():w},M.prototype._wnafMulAdd=function(s,L,O,A,E){var W,ie,ee,P=this._wnafT1,w=this._wnafT2,Z=this._wnafT3,j=0;for(W=0;W=1;W-=2){var he=W-1,re=W;if(1===P[he]&&1===P[re]){var de=[L[he],null,null,L[re]];0===L[he].y.cmp(L[re].y)?(de[1]=L[he].add(L[re]),de[2]=L[he].toJ().mixedAdd(L[re].neg())):0===L[he].y.cmp(L[re].y.redNeg())?(de[1]=L[he].toJ().mixedAdd(L[re]),de[2]=L[he].add(L[re].neg())):(de[1]=L[he].toJ().mixedAdd(L[re]),de[2]=L[he].toJ().mixedAdd(L[re].neg()));var le=[-3,-1,-5,-7,0,7,5,1,3],se=C(O[he],O[re]);for(j=Math.max(se[0].length,j),Z[he]=new Array(j),Z[re]=new Array(j),ie=0;ie=0;W--){for(var u=0;W>=0;){var _=!0;for(ie=0;ie=0&&u++,a=a.dblp(u),W<0)break;for(ie=0;ie0?ee=w[ie][D-1>>1]:D<0&&(ee=w[ie][-D-1>>1].neg()),a="affine"===ee.type?a.mixedAdd(ee):a.add(ee))}}for(W=0;W=Math.ceil((s.bitLength()+1)/L.step)},l.prototype._getDoubles=function(s,L){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var O=[this],A=this,E=0;E{"use strict";var e=m(1970),t=m(7433),v=m(3894),C=m(7902),o=e.assert;function M(R){this.twisted=1!=(0|R.a),this.mOneA=this.twisted&&-1==(0|R.a),this.extended=this.mOneA,C.call(this,"edwards",R),this.a=new t(R.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new t(R.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new t(R.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),o(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|R.c)}function l(R,s,L,O,A){C.BasePoint.call(this,R,"projective"),null===s&&null===L&&null===O?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new t(s,16),this.y=new t(L,16),this.z=O?new t(O,16):this.curve.one,this.t=A&&new t(A,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}v(M,C),Ve.exports=M,M.prototype._mulA=function(s){return this.mOneA?s.redNeg():this.a.redMul(s)},M.prototype._mulC=function(s){return this.oneC?s:this.c.redMul(s)},M.prototype.jpoint=function(s,L,O,A){return this.point(s,L,O,A)},M.prototype.pointFromX=function(s,L){(s=new t(s,16)).red||(s=s.toRed(this.red));var O=s.redSqr(),A=this.c2.redSub(this.a.redMul(O)),E=this.one.redSub(this.c2.redMul(this.d).redMul(O)),P=A.redMul(E.redInvm()),w=P.redSqrt();if(0!==w.redSqr().redSub(P).cmp(this.zero))throw new Error("invalid point");var Z=w.fromRed().isOdd();return(L&&!Z||!L&&Z)&&(w=w.redNeg()),this.point(s,w)},M.prototype.pointFromY=function(s,L){(s=new t(s,16)).red||(s=s.toRed(this.red));var O=s.redSqr(),A=O.redSub(this.c2),E=O.redMul(this.d).redMul(this.c2).redSub(this.a),P=A.redMul(E.redInvm());if(0===P.cmp(this.zero)){if(L)throw new Error("invalid point");return this.point(this.zero,s)}var w=P.redSqrt();if(0!==w.redSqr().redSub(P).cmp(this.zero))throw new Error("invalid point");return w.fromRed().isOdd()!==L&&(w=w.redNeg()),this.point(w,s)},M.prototype.validate=function(s){if(s.isInfinity())return!0;s.normalize();var L=s.x.redSqr(),O=s.y.redSqr(),A=L.redMul(this.a).redAdd(O),E=this.c2.redMul(this.one.redAdd(this.d.redMul(L).redMul(O)));return 0===A.cmp(E)},v(l,C.BasePoint),M.prototype.pointFromJSON=function(s){return l.fromJSON(this,s)},M.prototype.point=function(s,L,O,A){return new l(this,s,L,O,A)},l.fromJSON=function(s,L){return new l(s,L[0],L[1],L[2])},l.prototype.inspect=function(){return this.isInfinity()?"":""},l.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},l.prototype._extDbl=function(){var s=this.x.redSqr(),L=this.y.redSqr(),O=this.z.redSqr();O=O.redIAdd(O);var A=this.curve._mulA(s),E=this.x.redAdd(this.y).redSqr().redISub(s).redISub(L),P=A.redAdd(L),w=P.redSub(O),Z=A.redSub(L),j=E.redMul(w),W=P.redMul(Z),ie=E.redMul(Z),ee=w.redMul(P);return this.curve.point(j,W,ee,ie)},l.prototype._projDbl=function(){var A,E,P,w,Z,j,s=this.x.redAdd(this.y).redSqr(),L=this.x.redSqr(),O=this.y.redSqr();if(this.curve.twisted){var W=(w=this.curve._mulA(L)).redAdd(O);this.zOne?(A=s.redSub(L).redSub(O).redMul(W.redSub(this.curve.two)),E=W.redMul(w.redSub(O)),P=W.redSqr().redSub(W).redSub(W)):(Z=this.z.redSqr(),j=W.redSub(Z).redISub(Z),A=s.redSub(L).redISub(O).redMul(j),E=W.redMul(w.redSub(O)),P=W.redMul(j))}else w=L.redAdd(O),Z=this.curve._mulC(this.z).redSqr(),j=w.redSub(Z).redSub(Z),A=this.curve._mulC(s.redISub(w)).redMul(j),E=this.curve._mulC(w).redMul(L.redISub(O)),P=w.redMul(j);return this.curve.point(A,E,P)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(s){var L=this.y.redSub(this.x).redMul(s.y.redSub(s.x)),O=this.y.redAdd(this.x).redMul(s.y.redAdd(s.x)),A=this.t.redMul(this.curve.dd).redMul(s.t),E=this.z.redMul(s.z.redAdd(s.z)),P=O.redSub(L),w=E.redSub(A),Z=E.redAdd(A),j=O.redAdd(L),W=P.redMul(w),ie=Z.redMul(j),ee=P.redMul(j),ve=w.redMul(Z);return this.curve.point(W,ie,ve,ee)},l.prototype._projAdd=function(s){var ie,ee,L=this.z.redMul(s.z),O=L.redSqr(),A=this.x.redMul(s.x),E=this.y.redMul(s.y),P=this.curve.d.redMul(A).redMul(E),w=O.redSub(P),Z=O.redAdd(P),j=this.x.redAdd(this.y).redMul(s.x.redAdd(s.y)).redISub(A).redISub(E),W=L.redMul(w).redMul(j);return this.curve.twisted?(ie=L.redMul(Z).redMul(E.redSub(this.curve._mulA(A))),ee=w.redMul(Z)):(ie=L.redMul(Z).redMul(E.redSub(A)),ee=this.curve._mulC(w).redMul(Z)),this.curve.point(W,ie,ee)},l.prototype.add=function(s){return this.isInfinity()?s:s.isInfinity()?this:this.curve.extended?this._extAdd(s):this._projAdd(s)},l.prototype.mul=function(s){return this._hasDoubles(s)?this.curve._fixedNafMul(this,s):this.curve._wnafMul(this,s)},l.prototype.mulAdd=function(s,L,O){return this.curve._wnafMulAdd(1,[this,L],[s,O],2,!1)},l.prototype.jmulAdd=function(s,L,O){return this.curve._wnafMulAdd(1,[this,L],[s,O],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var s=this.z.redInvm();return this.x=this.x.redMul(s),this.y=this.y.redMul(s),this.t&&(this.t=this.t.redMul(s)),this.z=this.curve.one,this.zOne=!0,this},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(s){return this===s||0===this.getX().cmp(s.getX())&&0===this.getY().cmp(s.getY())},l.prototype.eqXToP=function(s){var L=s.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(L))return!0;for(var O=s.clone(),A=this.curve.redN.redMul(this.z);;){if(O.iadd(this.curve.n),O.cmp(this.curve.p)>=0)return!1;if(L.redIAdd(A),0===this.x.cmp(L))return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},6270:(Ve,Q,m)=>{"use strict";var e=Q;e.base=m(7902),e.short=m(1781),e.mont=m(7064),e.edwards=m(3835)},7064:(Ve,Q,m)=>{"use strict";var e=m(7433),t=m(3894),v=m(7902),C=m(1970);function o(l){v.call(this,"mont",l),this.a=new e(l.a,16).toRed(this.red),this.b=new e(l.b,16).toRed(this.red),this.i4=new e(4).toRed(this.red).redInvm(),this.two=new e(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function M(l,R,s){v.BasePoint.call(this,l,"projective"),null===R&&null===s?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new e(R,16),this.z=new e(s,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}t(o,v),Ve.exports=o,o.prototype.validate=function(R){var s=R.normalize().x,L=s.redSqr(),O=L.redMul(s).redAdd(L.redMul(this.a)).redAdd(s);return 0===O.redSqrt().redSqr().cmp(O)},t(M,v.BasePoint),o.prototype.decodePoint=function(R,s){return this.point(C.toArray(R,s),1)},o.prototype.point=function(R,s){return new M(this,R,s)},o.prototype.pointFromJSON=function(R){return M.fromJSON(this,R)},M.prototype.precompute=function(){},M.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},M.fromJSON=function(R,s){return new M(R,s[0],s[1]||R.one)},M.prototype.inspect=function(){return this.isInfinity()?"":""},M.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},M.prototype.dbl=function(){var s=this.x.redAdd(this.z).redSqr(),O=this.x.redSub(this.z).redSqr(),A=s.redSub(O),E=s.redMul(O),P=A.redMul(O.redAdd(this.curve.a24.redMul(A)));return this.curve.point(E,P)},M.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},M.prototype.diffAdd=function(R,s){var L=this.x.redAdd(this.z),O=this.x.redSub(this.z),A=R.x.redAdd(R.z),P=R.x.redSub(R.z).redMul(L),w=A.redMul(O),Z=s.z.redMul(P.redAdd(w).redSqr()),j=s.x.redMul(P.redISub(w).redSqr());return this.curve.point(Z,j)},M.prototype.mul=function(R){for(var s=R.clone(),L=this,O=this.curve.point(null,null),E=[];0!==s.cmpn(0);s.iushrn(1))E.push(s.andln(1));for(var P=E.length-1;P>=0;P--)0===E[P]?(L=L.diffAdd(O,this),O=O.dbl()):(O=L.diffAdd(O,this),L=L.dbl());return O},M.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},M.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},M.prototype.eq=function(R){return 0===this.getX().cmp(R.getX())},M.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},M.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},1781:(Ve,Q,m)=>{"use strict";var e=m(1970),t=m(7433),v=m(3894),C=m(7902),o=e.assert;function M(s){C.call(this,"short",s),this.a=new t(s.a,16).toRed(this.red),this.b=new t(s.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(s),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function l(s,L,O,A){C.BasePoint.call(this,s,"affine"),null===L&&null===O?(this.x=null,this.y=null,this.inf=!0):(this.x=new t(L,16),this.y=new t(O,16),A&&(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 R(s,L,O,A){C.BasePoint.call(this,s,"jacobian"),null===L&&null===O&&null===A?(this.x=this.curve.one,this.y=this.curve.one,this.z=new t(0)):(this.x=new t(L,16),this.y=new t(O,16),this.z=new t(A,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}v(M,C),Ve.exports=M,M.prototype._getEndomorphism=function(L){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var O,A;if(L.beta)O=new t(L.beta,16).toRed(this.red);else{var E=this._getEndoRoots(this.p);O=(O=E[0].cmp(E[1])<0?E[0]:E[1]).toRed(this.red)}if(L.lambda)A=new t(L.lambda,16);else{var P=this._getEndoRoots(this.n);0===this.g.mul(P[0]).x.cmp(this.g.x.redMul(O))?A=P[0]:o(0===this.g.mul(A=P[1]).x.cmp(this.g.x.redMul(O)))}return{beta:O,lambda:A,basis:L.basis?L.basis.map(function(Z){return{a:new t(Z.a,16),b:new t(Z.b,16)}}):this._getEndoBasis(A)}}},M.prototype._getEndoRoots=function(L){var O=L===this.p?this.red:t.mont(L),A=new t(2).toRed(O).redInvm(),E=A.redNeg(),P=new t(3).toRed(O).redNeg().redSqrt().redMul(A);return[E.redAdd(P).fromRed(),E.redSub(P).fromRed()]},M.prototype._getEndoBasis=function(L){for(var W,ie,ee,ve,he,re,de,se,y,O=this.n.ushrn(Math.floor(this.n.bitLength()/2)),A=L,E=this.n.clone(),P=new t(1),w=new t(0),Z=new t(0),j=new t(1),le=0;0!==A.cmpn(0);){var i=E.div(A);se=E.sub(i.mul(A)),y=Z.sub(i.mul(P));var a=j.sub(i.mul(w));if(!ee&&se.cmp(O)<0)W=de.neg(),ie=P,ee=se.neg(),ve=y;else if(ee&&2==++le)break;de=se,E=A,A=se,Z=P,P=y,j=w,w=a}he=se.neg(),re=y;var p=ee.sqr().add(ve.sqr());return he.sqr().add(re.sqr()).cmp(p)>=0&&(he=W,re=ie),ee.negative&&(ee=ee.neg(),ve=ve.neg()),he.negative&&(he=he.neg(),re=re.neg()),[{a:ee,b:ve},{a:he,b:re}]},M.prototype._endoSplit=function(L){var O=this.endo.basis,A=O[0],E=O[1],P=E.b.mul(L).divRound(this.n),w=A.b.neg().mul(L).divRound(this.n),Z=P.mul(A.a),j=w.mul(E.a),W=P.mul(A.b),ie=w.mul(E.b);return{k1:L.sub(Z).sub(j),k2:W.add(ie).neg()}},M.prototype.pointFromX=function(L,O){(L=new t(L,16)).red||(L=L.toRed(this.red));var A=L.redSqr().redMul(L).redIAdd(L.redMul(this.a)).redIAdd(this.b),E=A.redSqrt();if(0!==E.redSqr().redSub(A).cmp(this.zero))throw new Error("invalid point");var P=E.fromRed().isOdd();return(O&&!P||!O&&P)&&(E=E.redNeg()),this.point(L,E)},M.prototype.validate=function(L){if(L.inf)return!0;var O=L.x,A=L.y,E=this.a.redMul(O),P=O.redSqr().redMul(O).redIAdd(E).redIAdd(this.b);return 0===A.redSqr().redISub(P).cmpn(0)},M.prototype._endoWnafMulAdd=function(L,O,A){for(var E=this._endoWnafT1,P=this._endoWnafT2,w=0;w":""},l.prototype.isInfinity=function(){return this.inf},l.prototype.add=function(L){if(this.inf)return L;if(L.inf)return this;if(this.eq(L))return this.dbl();if(this.neg().eq(L))return this.curve.point(null,null);if(0===this.x.cmp(L.x))return this.curve.point(null,null);var O=this.y.redSub(L.y);0!==O.cmpn(0)&&(O=O.redMul(this.x.redSub(L.x).redInvm()));var A=O.redSqr().redISub(this.x).redISub(L.x),E=O.redMul(this.x.redSub(A)).redISub(this.y);return this.curve.point(A,E)},l.prototype.dbl=function(){if(this.inf)return this;var L=this.y.redAdd(this.y);if(0===L.cmpn(0))return this.curve.point(null,null);var O=this.curve.a,A=this.x.redSqr(),E=L.redInvm(),P=A.redAdd(A).redIAdd(A).redIAdd(O).redMul(E),w=P.redSqr().redISub(this.x.redAdd(this.x)),Z=P.redMul(this.x.redSub(w)).redISub(this.y);return this.curve.point(w,Z)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(L){return L=new t(L,16),this.isInfinity()?this:this._hasDoubles(L)?this.curve._fixedNafMul(this,L):this.curve.endo?this.curve._endoWnafMulAdd([this],[L]):this.curve._wnafMul(this,L)},l.prototype.mulAdd=function(L,O,A){var E=[this,O],P=[L,A];return this.curve.endo?this.curve._endoWnafMulAdd(E,P):this.curve._wnafMulAdd(1,E,P,2)},l.prototype.jmulAdd=function(L,O,A){var E=[this,O],P=[L,A];return this.curve.endo?this.curve._endoWnafMulAdd(E,P,!0):this.curve._wnafMulAdd(1,E,P,2,!0)},l.prototype.eq=function(L){return this===L||this.inf===L.inf&&(this.inf||0===this.x.cmp(L.x)&&0===this.y.cmp(L.y))},l.prototype.neg=function(L){if(this.inf)return this;var O=this.curve.point(this.x,this.y.redNeg());if(L&&this.precomputed){var A=this.precomputed,E=function(P){return P.neg()};O.precomputed={naf:A.naf&&{wnd:A.naf.wnd,points:A.naf.points.map(E)},doubles:A.doubles&&{step:A.doubles.step,points:A.doubles.points.map(E)}}}return O},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},v(R,C.BasePoint),M.prototype.jpoint=function(L,O,A){return new R(this,L,O,A)},R.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var L=this.z.redInvm(),O=L.redSqr(),A=this.x.redMul(O),E=this.y.redMul(O).redMul(L);return this.curve.point(A,E)},R.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},R.prototype.add=function(L){if(this.isInfinity())return L;if(L.isInfinity())return this;var O=L.z.redSqr(),A=this.z.redSqr(),E=this.x.redMul(O),P=L.x.redMul(A),w=this.y.redMul(O.redMul(L.z)),Z=L.y.redMul(A.redMul(this.z)),j=E.redSub(P),W=w.redSub(Z);if(0===j.cmpn(0))return 0!==W.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var ie=j.redSqr(),ee=ie.redMul(j),ve=E.redMul(ie),he=W.redSqr().redIAdd(ee).redISub(ve).redISub(ve),re=W.redMul(ve.redISub(he)).redISub(w.redMul(ee)),de=this.z.redMul(L.z).redMul(j);return this.curve.jpoint(he,re,de)},R.prototype.mixedAdd=function(L){if(this.isInfinity())return L.toJ();if(L.isInfinity())return this;var O=this.z.redSqr(),A=this.x,E=L.x.redMul(O),P=this.y,w=L.y.redMul(O).redMul(this.z),Z=A.redSub(E),j=P.redSub(w);if(0===Z.cmpn(0))return 0!==j.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var W=Z.redSqr(),ie=W.redMul(Z),ee=A.redMul(W),ve=j.redSqr().redIAdd(ie).redISub(ee).redISub(ee),he=j.redMul(ee.redISub(ve)).redISub(P.redMul(ie)),re=this.z.redMul(Z);return this.curve.jpoint(ve,he,re)},R.prototype.dblp=function(L){if(0===L)return this;if(this.isInfinity())return this;if(!L)return this.dbl();var O;if(this.curve.zeroA||this.curve.threeA){var A=this;for(O=0;O=0)return!1;if(A.redIAdd(P),0===this.x.cmp(A))return!0}},R.prototype.inspect=function(){return this.isInfinity()?"":""},R.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},2916:(Ve,Q,m)=>{"use strict";var R,e=Q,t=m(7084),v=m(6270),o=m(1970).assert;function M(s){this.curve="short"===s.type?new v.short(s):"edwards"===s.type?new v.edwards(s):new v.mont(s),this.g=this.curve.g,this.n=this.curve.n,this.hash=s.hash,o(this.g.validate(),"Invalid curve"),o(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(s,L){Object.defineProperty(e,s,{configurable:!0,enumerable:!0,get:function(){var O=new M(L);return Object.defineProperty(e,s,{configurable:!0,enumerable:!0,value:O}),O}})}e.PresetCurve=M,l("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:t.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("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:t.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("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:t.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("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:t.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"]}),l("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:t.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"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:t.sha256,gRed:!1,g:["9"]}),l("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:t.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{R=m(5150)}catch(s){R=void 0}l("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:t.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",R]})},7626:(Ve,Q,m)=>{"use strict";var e=m(7433),t=m(2438),v=m(1970),C=m(2916),o=m(7950),M=v.assert,l=m(1259),R=m(5957);function s(L){if(!(this instanceof s))return new s(L);"string"==typeof L&&(M(Object.prototype.hasOwnProperty.call(C,L),"Unknown curve "+L),L=C[L]),L instanceof C.PresetCurve&&(L={curve:L}),this.curve=L.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=L.curve.g,this.g.precompute(L.curve.n.bitLength()+1),this.hash=L.hash||L.curve.hash}Ve.exports=s,s.prototype.keyPair=function(O){return new l(this,O)},s.prototype.keyFromPrivate=function(O,A){return l.fromPrivate(this,O,A)},s.prototype.keyFromPublic=function(O,A){return l.fromPublic(this,O,A)},s.prototype.genKeyPair=function(O){O||(O={});for(var A=new t({hash:this.hash,pers:O.pers,persEnc:O.persEnc||"utf8",entropy:O.entropy||o(this.hash.hmacStrength),entropyEnc:O.entropy&&O.entropyEnc||"utf8",nonce:this.n.toArray()}),E=this.n.byteLength(),P=this.n.sub(new e(2));;){var w=new e(A.generate(E));if(!(w.cmp(P)>0))return w.iaddn(1),this.keyFromPrivate(w)}},s.prototype._truncateToN=function(O,A){var E=8*O.byteLength()-this.n.bitLength();return E>0&&(O=O.ushrn(E)),!A&&O.cmp(this.n)>=0?O.sub(this.n):O},s.prototype.sign=function(O,A,E,P){"object"==typeof E&&(P=E,E=null),P||(P={}),A=this.keyFromPrivate(A,E),O=this._truncateToN(new e(O,16));for(var w=this.n.byteLength(),Z=A.getPrivate().toArray("be",w),j=O.toArray("be",w),W=new t({hash:this.hash,entropy:Z,nonce:j,pers:P.pers,persEnc:P.persEnc||"utf8"}),ie=this.n.sub(new e(1)),ee=0;;ee++){var ve=P.k?P.k(ee):new e(W.generate(this.n.byteLength()));if(!((ve=this._truncateToN(ve,!0)).cmpn(1)<=0||ve.cmp(ie)>=0)){var he=this.g.mul(ve);if(!he.isInfinity()){var re=he.getX(),de=re.umod(this.n);if(0!==de.cmpn(0)){var le=ve.invm(this.n).mul(de.mul(A.getPrivate()).iadd(O));if(0!==(le=le.umod(this.n)).cmpn(0)){var se=(he.getY().isOdd()?1:0)|(0!==re.cmp(de)?2:0);return P.canonical&&le.cmp(this.nh)>0&&(le=this.n.sub(le),se^=1),new R({r:de,s:le,recoveryParam:se})}}}}}},s.prototype.verify=function(O,A,E,P){O=this._truncateToN(new e(O,16)),E=this.keyFromPublic(E,P);var w=(A=new R(A,"hex")).r,Z=A.s;if(w.cmpn(1)<0||w.cmp(this.n)>=0||Z.cmpn(1)<0||Z.cmp(this.n)>=0)return!1;var ee,j=Z.invm(this.n),W=j.mul(O).umod(this.n),ie=j.mul(w).umod(this.n);return this.curve._maxwellTrick?!(ee=this.g.jmulAdd(W,E.getPublic(),ie)).isInfinity()&&ee.eqXToP(w):!(ee=this.g.mulAdd(W,E.getPublic(),ie)).isInfinity()&&0===ee.getX().umod(this.n).cmp(w)},s.prototype.recoverPubKey=function(L,O,A,E){M((3&A)===A,"The recovery param is more than two bits"),O=new R(O,E);var P=this.n,w=new e(L),Z=O.r,j=O.s,W=1&A,ie=A>>1;if(Z.cmp(this.curve.p.umod(this.curve.n))>=0&&ie)throw new Error("Unable to find sencond key candinate");Z=this.curve.pointFromX(ie?Z.add(this.curve.n):Z,W);var ee=O.r.invm(P),ve=P.sub(w).mul(ee).umod(P),he=j.mul(ee).umod(P);return this.g.mulAdd(ve,Z,he)},s.prototype.getKeyRecoveryParam=function(L,O,A,E){if(null!==(O=new R(O,E)).recoveryParam)return O.recoveryParam;for(var P=0;P<4;P++){var w;try{w=this.recoverPubKey(L,O,P)}catch(Z){continue}if(w.eq(A))return P}throw new Error("Unable to find valid recovery factor")}},1259:(Ve,Q,m)=>{"use strict";var e=m(7433),v=m(1970).assert;function C(o,M){this.ec=o,this.priv=null,this.pub=null,M.priv&&this._importPrivate(M.priv,M.privEnc),M.pub&&this._importPublic(M.pub,M.pubEnc)}Ve.exports=C,C.fromPublic=function(M,l,R){return l instanceof C?l:new C(M,{pub:l,pubEnc:R})},C.fromPrivate=function(M,l,R){return l instanceof C?l:new C(M,{priv:l,privEnc:R})},C.prototype.validate=function(){var M=this.getPublic();return M.isInfinity()?{result:!1,reason:"Invalid public key"}:M.validate()?M.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"}},C.prototype.getPublic=function(M,l){return"string"==typeof M&&(l=M,M=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),l?this.pub.encode(l,M):this.pub},C.prototype.getPrivate=function(M){return"hex"===M?this.priv.toString(16,2):this.priv},C.prototype._importPrivate=function(M,l){this.priv=new e(M,l||16),this.priv=this.priv.umod(this.ec.curve.n)},C.prototype._importPublic=function(M,l){if(M.x||M.y)return"mont"===this.ec.curve.type?v(M.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&v(M.x&&M.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(M.x,M.y));this.pub=this.ec.curve.decodePoint(M,l)},C.prototype.derive=function(M){return M.validate()||v(M.validate(),"public point not validated"),M.mul(this.priv).getX()},C.prototype.sign=function(M,l,R){return this.ec.sign(M,this,l,R)},C.prototype.verify=function(M,l){return this.ec.verify(M,l,this)},C.prototype.inspect=function(){return""}},5957:(Ve,Q,m)=>{"use strict";var e=m(7433),t=m(1970),v=t.assert;function C(s,L){if(s instanceof C)return s;this._importDER(s,L)||(v(s.r&&s.s,"Signature without r or s"),this.r=new e(s.r,16),this.s=new e(s.s,16),this.recoveryParam=void 0===s.recoveryParam?null:s.recoveryParam)}function o(){this.place=0}function M(s,L){var O=s[L.place++];if(!(128&O))return O;var A=15&O;if(0===A||A>4)return!1;for(var E=0,P=0,w=L.place;P>>=0;return!(E<=127)&&(L.place=w,E)}function l(s){for(var L=0,O=s.length-1;!s[L]&&!(128&s[L+1])&&L>>3);for(s.push(128|O);--O;)s.push(L>>>(O<<3)&255);s.push(L)}}Ve.exports=C,C.prototype._importDER=function(L,O){L=t.toArray(L,O);var A=new o;if(48!==L[A.place++])return!1;var E=M(L,A);if(!1===E||E+A.place!==L.length||2!==L[A.place++])return!1;var P=M(L,A);if(!1===P)return!1;var w=L.slice(A.place,P+A.place);if(A.place+=P,2!==L[A.place++])return!1;var Z=M(L,A);if(!1===Z||L.length!==Z+A.place)return!1;var j=L.slice(A.place,Z+A.place);if(0===w[0]){if(!(128&w[1]))return!1;w=w.slice(1)}if(0===j[0]){if(!(128&j[1]))return!1;j=j.slice(1)}return this.r=new e(w),this.s=new e(j),this.recoveryParam=null,!0},C.prototype.toDER=function(L){var O=this.r.toArray(),A=this.s.toArray();for(128&O[0]&&(O=[0].concat(O)),128&A[0]&&(A=[0].concat(A)),O=l(O),A=l(A);!(A[0]||128&A[1]);)A=A.slice(1);var E=[2];R(E,O.length),(E=E.concat(O)).push(2),R(E,A.length);var P=E.concat(A),w=[48];return R(w,P.length),w=w.concat(P),t.encode(w,L)}},1885:(Ve,Q,m)=>{"use strict";var e=m(7084),t=m(2916),v=m(1970),C=v.assert,o=v.parseBytes,M=m(7535),l=m(8241);function R(s){if(C("ed25519"===s,"only tested with ed25519 so far"),!(this instanceof R))return new R(s);this.curve=s=t[s].curve,this.g=s.g,this.g.precompute(s.n.bitLength()+1),this.pointClass=s.point().constructor,this.encodingLength=Math.ceil(s.n.bitLength()/8),this.hash=e.sha512}Ve.exports=R,R.prototype.sign=function(L,O){L=o(L);var A=this.keyFromSecret(O),E=this.hashInt(A.messagePrefix(),L),P=this.g.mul(E),w=this.encodePoint(P),Z=this.hashInt(w,A.pubBytes(),L).mul(A.priv()),j=E.add(Z).umod(this.curve.n);return this.makeSignature({R:P,S:j,Rencoded:w})},R.prototype.verify=function(L,O,A){L=o(L),O=this.makeSignature(O);var E=this.keyFromPublic(A),P=this.hashInt(O.Rencoded(),E.pubBytes(),L),w=this.g.mul(O.S());return O.R().add(E.pub().mul(P)).eq(w)},R.prototype.hashInt=function(){for(var L=this.hash(),O=0;O{"use strict";var e=m(1970),t=e.assert,v=e.parseBytes,C=e.cachedProperty;function o(M,l){this.eddsa=M,this._secret=v(l.secret),M.isPoint(l.pub)?this._pub=l.pub:this._pubBytes=v(l.pub)}o.fromPublic=function(l,R){return R instanceof o?R:new o(l,{pub:R})},o.fromSecret=function(l,R){return R instanceof o?R:new o(l,{secret:R})},o.prototype.secret=function(){return this._secret},C(o,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),C(o,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),C(o,"privBytes",function(){var l=this.eddsa,R=this.hash(),s=l.encodingLength-1,L=R.slice(0,l.encodingLength);return L[0]&=248,L[s]&=127,L[s]|=64,L}),C(o,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),C(o,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),C(o,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),o.prototype.sign=function(l){return t(this._secret,"KeyPair can only verify"),this.eddsa.sign(l,this)},o.prototype.verify=function(l,R){return this.eddsa.verify(l,R,this)},o.prototype.getSecret=function(l){return t(this._secret,"KeyPair is public only"),e.encode(this.secret(),l)},o.prototype.getPublic=function(l){return e.encode(this.pubBytes(),l)},Ve.exports=o},8241:(Ve,Q,m)=>{"use strict";var e=m(7433),t=m(1970),v=t.assert,C=t.cachedProperty,o=t.parseBytes;function M(l,R){this.eddsa=l,"object"!=typeof R&&(R=o(R)),Array.isArray(R)&&(R={R:R.slice(0,l.encodingLength),S:R.slice(l.encodingLength)}),v(R.R&&R.S,"Signature without R or S"),l.isPoint(R.R)&&(this._R=R.R),R.S instanceof e&&(this._S=R.S),this._Rencoded=Array.isArray(R.R)?R.R:R.Rencoded,this._Sencoded=Array.isArray(R.S)?R.S:R.Sencoded}C(M,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),C(M,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),C(M,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),C(M,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),M.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},M.prototype.toHex=function(){return t.encode(this.toBytes(),"hex").toUpperCase()},Ve.exports=M},5150:Ve=>{Ve.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},1970:(Ve,Q,m)=>{"use strict";var e=Q,t=m(7433),v=m(2391),C=m(8195);e.assert=v,e.toArray=C.toArray,e.zero2=C.zero2,e.toHex=C.toHex,e.encode=C.encode,e.getNAF=function o(L,O,A){var E=new Array(Math.max(L.bitLength(),A)+1);E.fill(0);for(var P=1<(P>>1)-1?(P>>1)-W:W):j=0,E[Z]=j,w.iushrn(1)}return E},e.getJSF=function M(L,O){var A=[[],[]];L=L.clone(),O=O.clone();for(var w,E=0,P=0;L.cmpn(-E)>0||O.cmpn(-P)>0;){var W,ie,Z=L.andln(3)+E&3,j=O.andln(3)+P&3;3===Z&&(Z=-1),3===j&&(j=-1),W=0==(1&Z)?0:3!=(w=L.andln(7)+E&7)&&5!==w||2!==j?Z:-Z,A[0].push(W),ie=0==(1&j)?0:3!=(w=O.andln(7)+P&7)&&5!==w||2!==Z?j:-j,A[1].push(ie),2*E===W+1&&(E=1-E),2*P===ie+1&&(P=1-P),L.iushrn(1),O.iushrn(1)}return A},e.cachedProperty=function l(L,O,A){var E="_"+O;L.prototype[O]=function(){return void 0!==this[E]?this[E]:this[E]=A.call(this)}},e.parseBytes=function R(L){return"string"==typeof L?e.toArray(L,"hex"):L},e.intFromLE=function s(L){return new t(L,"hex","le")}},7433:function(Ve,Q,m){!function(e,t){"use strict";function v(y,i){if(!y)throw new Error(i||"Assertion failed")}function C(y,i){y.super_=i;var a=function(){};a.prototype=i.prototype,y.prototype=new a,y.prototype.constructor=y}function o(y,i,a){if(o.isBN(y))return y;this.negative=0,this.words=null,this.length=0,this.red=null,null!==y&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(y||0,i||10,a||"be"))}var M;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{M="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:m(5568).Buffer}catch(y){}function l(y,i){var a=y.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function R(y,i,a){var p=l(y,a);return a-1>=i&&(p|=l(y,a-1)<<4),p}function s(y,i,a,p){for(var u=0,_=Math.min(y.length,a),D=i;D<_;D++){var I=y.charCodeAt(D)-48;u*=p,u+=I>=49?I-49+10:I>=17?I-17+10:I}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),v(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(D=i[u]|i[u-1]<<8|i[u-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u=a;u-=2)I=R(i,a,u)<<_,this.words[D]|=67108863&I,_>=18?(_-=18,this.words[D+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u=18?(_-=18,this.words[D+=1]|=I>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var D=i.length-p,I=D%u,x=Math.min(D,D-I)+p,r=0,b=p;b1&&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 L=["","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"],O=[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],A=[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 P(y,i,a){a.negative=i.negative^y.negative;var p=y.length+i.length|0;a.length=p,p=p-1|0;var u=0|y.words[0],_=0|i.words[0],D=u*_,x=D/67108864|0;a.words[0]=67108863&D;for(var r=1;r>>26,U=67108863&x,N=Math.min(r,i.length-1),z=Math.max(0,r-y.length+1);z<=N;z++)b+=(D=(u=0|y.words[r-z|0])*(_=0|i.words[z])+U)/67108864|0,U=67108863&D;a.words[r]=0|U,x=0|b}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,D=0;D>>24-u&16777215)||D!==this.length-1?L[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,D--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=O[i],b=A[i];p="";var U=this.clone();for(U.negative=0;!U.isZero();){var N=U.modn(b).toString(i);p=(U=U.idivn(b)).isZero()?N+p:L[r-N.length]+N+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}v(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&v(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return v(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);v(u<=_,"byte array longer than desired length"),v(_>0,"Requested array length <= 0"),this.strip();var x,r,D="le"===a,I=new i(_),b=this.clone();if(D){for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),I[r]=x;for(;r<_;r++)I[r]=0}else{for(r=0;r<_-u;r++)I[r]=0;for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),I[_-r-1]=x}return I},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;pi.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;ui.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){v("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){v("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<i.length?(p=this,u=i):(p=i,u=this);for(var _=0,D=0;D>>26;for(;0!==_&&D>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;Di.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var D=0,I=0;I<_.length;I++)D=(a=(0|u.words[I])-(0|_.words[I])+D)>>26,this.words[I]=67108863&a;for(;0!==D&&I>26,this.words[I]=67108863&a;if(0===D&&I>>13,be=0|u[1],xe=8191&be,Re=be>>>13,ze=0|u[2],Le=8191&ze,K=ze>>>13,we=0|u[3],Y=8191&we,ae=we>>>13,Ge=0|u[4],vt=8191&Ge,Fe=Ge>>>13,Ne=0|u[5],ue=8191&Ne,Oe=Ne>>>13,Pe=0|u[6],q=8191&Pe,$=Pe>>>13,ce=0|u[7],Me=8191&ce,Ue=ce>>>13,lt=0|u[8],nt=8191<,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,ki=0|_[2],ai=8191&ki,hi=ki>>>13,Ze=0|_[3],Ee=8191&Ze,G=Ze>>>13,ge=0|_[4],De=8191&ge,et=ge>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],ke=8191&ct,Be=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(I+(x=Math.imul(N,Ft))|0)+((8191&(r=(r=Math.imul(N,Vt))+Math.imul(z,Ft)|0))<<13)|0;I=((b=Math.imul(z,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(xe,Ft),r=(r=Math.imul(xe,Vt))+Math.imul(Re,Ft)|0,b=Math.imul(Re,Vt);var Ui=(I+(x=x+Math.imul(N,jt)|0)|0)+((8191&(r=(r=r+Math.imul(N,ei)|0)+Math.imul(z,jt)|0))<<13)|0;I=((b=b+Math.imul(z,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Le,Ft),r=(r=Math.imul(Le,Vt))+Math.imul(K,Ft)|0,b=Math.imul(K,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ei)|0)+Math.imul(Re,jt)|0,b=b+Math.imul(Re,ei)|0;var Di=(I+(x=x+Math.imul(N,ai)|0)|0)+((8191&(r=(r=r+Math.imul(N,hi)|0)+Math.imul(z,ai)|0))<<13)|0;I=((b=b+Math.imul(z,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(Y,Ft),r=(r=Math.imul(Y,Vt))+Math.imul(ae,Ft)|0,b=Math.imul(ae,Vt),x=x+Math.imul(Le,jt)|0,r=(r=r+Math.imul(Le,ei)|0)+Math.imul(K,jt)|0,b=b+Math.imul(K,ei)|0,x=x+Math.imul(xe,ai)|0,r=(r=r+Math.imul(xe,hi)|0)+Math.imul(Re,ai)|0,b=b+Math.imul(Re,hi)|0;var Xi=(I+(x=x+Math.imul(N,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(N,G)|0)+Math.imul(z,Ee)|0))<<13)|0;I=((b=b+Math.imul(z,G)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Fe,Ft)|0,b=Math.imul(Fe,Vt),x=x+Math.imul(Y,jt)|0,r=(r=r+Math.imul(Y,ei)|0)+Math.imul(ae,jt)|0,b=b+Math.imul(ae,ei)|0,x=x+Math.imul(Le,ai)|0,r=(r=r+Math.imul(Le,hi)|0)+Math.imul(K,ai)|0,b=b+Math.imul(K,hi)|0,x=x+Math.imul(xe,Ee)|0,r=(r=r+Math.imul(xe,G)|0)+Math.imul(Re,Ee)|0,b=b+Math.imul(Re,G)|0;var Ke=(I+(x=x+Math.imul(N,De)|0)|0)+((8191&(r=(r=r+Math.imul(N,et)|0)+Math.imul(z,De)|0))<<13)|0;I=((b=b+Math.imul(z,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(ue,Ft),r=(r=Math.imul(ue,Vt))+Math.imul(Oe,Ft)|0,b=Math.imul(Oe,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Fe,jt)|0,b=b+Math.imul(Fe,ei)|0,x=x+Math.imul(Y,ai)|0,r=(r=r+Math.imul(Y,hi)|0)+Math.imul(ae,ai)|0,b=b+Math.imul(ae,hi)|0,x=x+Math.imul(Le,Ee)|0,r=(r=r+Math.imul(Le,G)|0)+Math.imul(K,Ee)|0,b=b+Math.imul(K,G)|0,x=x+Math.imul(xe,De)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Re,De)|0,b=b+Math.imul(Re,et)|0;var _t=(I+(x=x+Math.imul(N,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Jt)|0)+Math.imul(z,Nt)|0))<<13)|0;I=((b=b+Math.imul(z,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,b=Math.imul($,Vt),x=x+Math.imul(ue,jt)|0,r=(r=r+Math.imul(ue,ei)|0)+Math.imul(Oe,jt)|0,b=b+Math.imul(Oe,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Fe,ai)|0,b=b+Math.imul(Fe,hi)|0,x=x+Math.imul(Y,Ee)|0,r=(r=r+Math.imul(Y,G)|0)+Math.imul(ae,Ee)|0,b=b+Math.imul(ae,G)|0,x=x+Math.imul(Le,De)|0,r=(r=r+Math.imul(Le,et)|0)+Math.imul(K,De)|0,b=b+Math.imul(K,et)|0,x=x+Math.imul(xe,Nt)|0,r=(r=r+Math.imul(xe,Jt)|0)+Math.imul(Re,Nt)|0,b=b+Math.imul(Re,Jt)|0;var ye=(I+(x=x+Math.imul(N,ke)|0)|0)+((8191&(r=(r=r+Math.imul(N,Be)|0)+Math.imul(z,ke)|0))<<13)|0;I=((b=b+Math.imul(z,Be)|0)+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,x=Math.imul(Me,Ft),r=(r=Math.imul(Me,Vt))+Math.imul(Ue,Ft)|0,b=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,b=b+Math.imul($,ei)|0,x=x+Math.imul(ue,ai)|0,r=(r=r+Math.imul(ue,hi)|0)+Math.imul(Oe,ai)|0,b=b+Math.imul(Oe,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,G)|0)+Math.imul(Fe,Ee)|0,b=b+Math.imul(Fe,G)|0,x=x+Math.imul(Y,De)|0,r=(r=r+Math.imul(Y,et)|0)+Math.imul(ae,De)|0,b=b+Math.imul(ae,et)|0,x=x+Math.imul(Le,Nt)|0,r=(r=r+Math.imul(Le,Jt)|0)+Math.imul(K,Nt)|0,b=b+Math.imul(K,Jt)|0,x=x+Math.imul(xe,ke)|0,r=(r=r+Math.imul(xe,Be)|0)+Math.imul(Re,ke)|0,b=b+Math.imul(Re,Be)|0;var qe=(I+(x=x+Math.imul(N,st)|0)|0)+((8191&(r=(r=r+Math.imul(N,At)|0)+Math.imul(z,st)|0))<<13)|0;I=((b=b+Math.imul(z,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Me,jt)|0,r=(r=r+Math.imul(Me,ei)|0)+Math.imul(Ue,jt)|0,b=b+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,b=b+Math.imul($,hi)|0,x=x+Math.imul(ue,Ee)|0,r=(r=r+Math.imul(ue,G)|0)+Math.imul(Oe,Ee)|0,b=b+Math.imul(Oe,G)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Fe,De)|0,b=b+Math.imul(Fe,et)|0,x=x+Math.imul(Y,Nt)|0,r=(r=r+Math.imul(Y,Jt)|0)+Math.imul(ae,Nt)|0,b=b+Math.imul(ae,Jt)|0,x=x+Math.imul(Le,ke)|0,r=(r=r+Math.imul(Le,Be)|0)+Math.imul(K,ke)|0,b=b+Math.imul(K,Be)|0,x=x+Math.imul(xe,st)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Re,st)|0,b=b+Math.imul(Re,At)|0;var yt=(I+(x=x+Math.imul(N,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Rt)|0)+Math.imul(z,Bt)|0))<<13)|0;I=((b=b+Math.imul(z,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,b=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,b=b+Math.imul(ft,ei)|0,x=x+Math.imul(Me,ai)|0,r=(r=r+Math.imul(Me,hi)|0)+Math.imul(Ue,ai)|0,b=b+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,G)|0)+Math.imul($,Ee)|0,b=b+Math.imul($,G)|0,x=x+Math.imul(ue,De)|0,r=(r=r+Math.imul(ue,et)|0)+Math.imul(Oe,De)|0,b=b+Math.imul(Oe,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Fe,Nt)|0,b=b+Math.imul(Fe,Jt)|0,x=x+Math.imul(Y,ke)|0,r=(r=r+Math.imul(Y,Be)|0)+Math.imul(ae,ke)|0,b=b+Math.imul(ae,Be)|0,x=x+Math.imul(Le,st)|0,r=(r=r+Math.imul(Le,At)|0)+Math.imul(K,st)|0,b=b+Math.imul(K,At)|0,x=x+Math.imul(xe,Bt)|0,r=(r=r+Math.imul(xe,Rt)|0)+Math.imul(Re,Bt)|0,b=b+Math.imul(Re,Rt)|0;var pe=(I+(x=x+Math.imul(N,si)|0)|0)+((8191&(r=(r=r+Math.imul(N,ci)|0)+Math.imul(z,si)|0))<<13)|0;I=((b=b+Math.imul(z,ci)|0)+(r>>>13)|0)+(pe>>>26)|0,pe&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,b=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,b=b+Math.imul(ft,hi)|0,x=x+Math.imul(Me,Ee)|0,r=(r=r+Math.imul(Me,G)|0)+Math.imul(Ue,Ee)|0,b=b+Math.imul(Ue,G)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,b=b+Math.imul($,et)|0,x=x+Math.imul(ue,Nt)|0,r=(r=r+Math.imul(ue,Jt)|0)+Math.imul(Oe,Nt)|0,b=b+Math.imul(Oe,Jt)|0,x=x+Math.imul(vt,ke)|0,r=(r=r+Math.imul(vt,Be)|0)+Math.imul(Fe,ke)|0,b=b+Math.imul(Fe,Be)|0,x=x+Math.imul(Y,st)|0,r=(r=r+Math.imul(Y,At)|0)+Math.imul(ae,st)|0,b=b+Math.imul(ae,At)|0,x=x+Math.imul(Le,Bt)|0,r=(r=r+Math.imul(Le,Rt)|0)+Math.imul(K,Bt)|0,b=b+Math.imul(K,Rt)|0;var Je=(I+(x=x+Math.imul(xe,si)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Re,si)|0))<<13)|0;I=((b=b+Math.imul(Re,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,b=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,G)|0)+Math.imul(ft,Ee)|0,b=b+Math.imul(ft,G)|0,x=x+Math.imul(Me,De)|0,r=(r=r+Math.imul(Me,et)|0)+Math.imul(Ue,De)|0,b=b+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,b=b+Math.imul($,Jt)|0,x=x+Math.imul(ue,ke)|0,r=(r=r+Math.imul(ue,Be)|0)+Math.imul(Oe,ke)|0,b=b+Math.imul(Oe,Be)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Fe,st)|0,b=b+Math.imul(Fe,At)|0,x=x+Math.imul(Y,Bt)|0,r=(r=r+Math.imul(Y,Rt)|0)+Math.imul(ae,Bt)|0,b=b+Math.imul(ae,Rt)|0;var St=(I+(x=x+Math.imul(Le,si)|0)|0)+((8191&(r=(r=r+Math.imul(Le,ci)|0)+Math.imul(K,si)|0))<<13)|0;I=((b=b+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,G))+Math.imul(Mt,Ee)|0,b=Math.imul(Mt,G),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Me,Nt)|0,r=(r=r+Math.imul(Me,Jt)|0)+Math.imul(Ue,Nt)|0,b=b+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,ke)|0,r=(r=r+Math.imul(q,Be)|0)+Math.imul($,ke)|0,b=b+Math.imul($,Be)|0,x=x+Math.imul(ue,st)|0,r=(r=r+Math.imul(ue,At)|0)+Math.imul(Oe,st)|0,b=b+Math.imul(Oe,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Fe,Bt)|0,b=b+Math.imul(Fe,Rt)|0;var kt=(I+(x=x+Math.imul(Y,si)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ci)|0)+Math.imul(ae,si)|0))<<13)|0;I=((b=b+Math.imul(ae,ci)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,b=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,b=b+Math.imul(ft,Jt)|0,x=x+Math.imul(Me,ke)|0,r=(r=r+Math.imul(Me,Be)|0)+Math.imul(Ue,ke)|0,b=b+Math.imul(Ue,Be)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,b=b+Math.imul($,At)|0,x=x+Math.imul(ue,Bt)|0,r=(r=r+Math.imul(ue,Rt)|0)+Math.imul(Oe,Bt)|0,b=b+Math.imul(Oe,Rt)|0;var yi=(I+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Fe,si)|0))<<13)|0;I=((b=b+Math.imul(Fe,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,b=Math.imul(Mt,Jt),x=x+Math.imul(nt,ke)|0,r=(r=r+Math.imul(nt,Be)|0)+Math.imul(ft,ke)|0,b=b+Math.imul(ft,Be)|0,x=x+Math.imul(Me,st)|0,r=(r=r+Math.imul(Me,At)|0)+Math.imul(Ue,st)|0,b=b+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,b=b+Math.imul($,Rt)|0;var Ni=(I+(x=x+Math.imul(ue,si)|0)|0)+((8191&(r=(r=r+Math.imul(ue,ci)|0)+Math.imul(Oe,si)|0))<<13)|0;I=((b=b+Math.imul(Oe,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,ke),r=(r=Math.imul(rt,Be))+Math.imul(Mt,ke)|0,b=Math.imul(Mt,Be),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,b=b+Math.imul(ft,At)|0,x=x+Math.imul(Me,Bt)|0,r=(r=r+Math.imul(Me,Rt)|0)+Math.imul(Ue,Bt)|0,b=b+Math.imul(Ue,Rt)|0;var Si=(I+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;I=((b=b+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,b=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,b=b+Math.imul(ft,Rt)|0;var qi=(I+(x=x+Math.imul(Me,si)|0)|0)+((8191&(r=(r=r+Math.imul(Me,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;I=((b=b+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,b=Math.imul(Mt,Rt);var ot=(I+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;I=((b=b+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(I+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return I=((b=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,D[0]=sn,D[1]=Ui,D[2]=Di,D[3]=Xi,D[4]=Ke,D[5]=_t,D[6]=ye,D[7]=qe,D[8]=yt,D[9]=pe,D[10]=Je,D[11]=St,D[12]=kt,D[13]=yi,D[14]=Ni,D[15]=Si,D[16]=qi,D[17]=ot,D[18]=Kt,0!==I&&(D[19]=I,p.length++),p};function j(y,i,a){return(new W).mulp(y,i,a)}function W(y,i){this.x=y,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function Z(y,i,a){a.negative=i.negative^y.negative,a.length=y.length+i.length;for(var p=0,u=0,_=0;_>>26)|0)>>>26,D&=67108863}a.words[_]=I,p=D,D=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u>=1;return u},W.prototype.permute=function(i,a,p,u,_,D){for(var I=0;I>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u

>>=13),_>>>=13;for(D=2*a;D>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(y){for(var i=new Array(y.bitLength()),a=0;a>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var D=0;for(_=0;_>>26-a}D&&(this.words[_]=D,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_=0),u=a?(a-a%26)/26:0;var _=i%26,D=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=D,u=Math.max(0,u),x){for(var r=0;rD)for(this.length-=D,r=0;r=0&&(0!==b||r>=u);r--){var U=0|this.words[r];this.words[r]=b<<26-_|U>>>_,b=U&I}return x&&0!==b&&(x.words[x.length++]=b),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return v(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){v("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<=0);var a=i%26,p=(i-a)/26;return v(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(v("number"==typeof i),v(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a>26)-(x/67108864|0),this.words[_+p]=67108863&D}for(;_>26,this.words[_+p]=67108863&D;if(0===I)return this.strip();for(v(-1===I),I=0,_=0;_>26,this.words[_]=67108863&D;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,D=0|_.words[_.length-1];0!=(p=26-this._countBits(D))&&(_=_.ushln(p),u.iushln(p),D=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var b=0;b=0;N--){var z=67108864*(0|u.words[_.length+N])+(0|u.words[_.length+N-1]);for(z=Math.min(z/D|0,67108863),u._ishlnsubmul(_,z,N);0!==u.negative;)z--,u.negative=0,u._ishlnsubmul(_,1,N),u.isZero()||(u.negative^=1);r&&(r.words[N]=z)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return v(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,a),"mod"!==a&&(u=D.div.neg()),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),a),"mod"!==a&&(u=D.div.neg()),{div:u,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),a),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:D.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,D},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),D=p.cmp(u);return D<0||1===_&&0===D?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){v(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){v(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){v(0===i.negative),v(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=new o(0),I=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),b=a.clone();!a.isZero();){for(var U=0,N=1;0==(a.words[0]&N)&&U<26;++U,N<<=1);if(U>0)for(a.iushrn(U);U-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var z=0,be=1;0==(p.words[0]&be)&&z<26;++z,be<<=1);if(z>0)for(p.iushrn(z);z-- >0;)(D.isOdd()||I.isOdd())&&(D.iadd(r),I.isub(b)),D.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(D),_.isub(I)):(p.isub(a),D.isub(u),I.isub(_))}return{a:D,b:I,gcd:p.iushln(x)}},o.prototype._invmp=function(i){v(0===i.negative),v(!i.isZero());var U,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var I=0,x=1;0==(a.words[0]&x)&&I<26;++I,x<<=1);if(I>0)for(a.iushrn(I);I-- >0;)u.isOdd()&&u.iadd(D),u.iushrn(1);for(var r=0,b=1;0==(p.words[0]&b)&&r<26;++r,b<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(D),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(U=0===a.cmpn(1)?u:_).cmpn(0)<0&&U.iadd(i),U},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var D=a;a=p,p=D}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){v("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<>>26,this.words[D]=I&=67108863}return 0!==_&&(this.words[D]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),v(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:ui.length)return 1;if(this.length=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new le(i)},o.prototype.toRed=function(i){return v(!this.red,"Already a number in reduction context"),v(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return v(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return v(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return v(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return v(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return v(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return v(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return v(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return v(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return v(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return v(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return v(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return v(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return v(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ie={k256:null,p224:null,p192:null,p25519:null};function ee(y,i){this.name=y,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ve(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function he(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function le(y){if("string"==typeof y){var i=o._prime(y);this.m=i.p,this.prime=i}else v(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}function se(y){le.call(this,y),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)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(ve,ee),ve.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_>>22,D=I}i.words[_-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},ve.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(ie[i])return ie[i];var a;if("k256"===i)a=new ve;else if("p224"===i)a=new he;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return ie[i]=a,a},le.prototype._verify1=function(i){v(0===i.negative,"red works only with positives"),v(i.red,"red works only with red numbers")},le.prototype._verify2=function(i,a){v(0==(i.negative|a.negative),"red works only with positives"),v(i.red&&i.red===a.red,"red works only with red numbers")},le.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},le.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},le.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},le.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},le.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},le.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},le.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},le.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},le.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},le.prototype.isqr=function(i){return this.imul(i,i.clone())},le.prototype.sqr=function(i){return this.mul(i,i)},le.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(v(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);v(!u.isZero());var D=new o(1).toRed(this),I=D.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(I);)r.redIAdd(I);for(var b=this.pow(r,u),U=this.pow(i,u.addn(1).iushrn(1)),N=this.pow(i,u),z=_;0!==N.cmp(D);){for(var be=N,xe=0;0!==be.cmp(D);xe++)be=be.redSqr();v(xe=0;_--){for(var b=a.words[_],U=r-1;U>=0;U--){var N=b>>U&1;D!==u[0]&&(D=this.sqr(D)),0!==N||0!==I?(I<<=1,I|=N,(4==++x||0===_&&0===U)&&(D=this.mul(D,u[I]),x=0,I=0)):x=0}r=26}return D},le.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},le.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new se(i)},C(se,le),se.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},se.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},se.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},se.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},se.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ve=m.nmd(Ve),this)},8419:Ve=>{"use strict";Ve.exports=function(m){for(var e=[],t=m.length,v=0;v=55296&&C<=56319&&t>v+1){var o=m.charCodeAt(v+1);o>=56320&&o<=57343&&(C=1024*(C-55296)+o-56320+65536,v+=1)}C<128?e.push(C):C<2048?(e.push(C>>6|192),e.push(63&C|128)):C<55296||C>=57344&&C<65536?(e.push(C>>12|224),e.push(C>>6&63|128),e.push(63&C|128)):C>=65536&&C<=1114111?(e.push(C>>18|240),e.push(C>>12&63|128),e.push(C>>6&63|128),e.push(63&C|128)):e.push(239,191,189)}return new Uint8Array(e).buffer}},9069:Ve=>{"use strict";var e,Q="object"==typeof Reflect?Reflect:null,m=Q&&"function"==typeof Q.apply?Q.apply:function(ee,ve,he){return Function.prototype.apply.call(ee,ve,he)};e=Q&&"function"==typeof Q.ownKeys?Q.ownKeys:Object.getOwnPropertySymbols?function(ee){return Object.getOwnPropertyNames(ee).concat(Object.getOwnPropertySymbols(ee))}:function(ee){return Object.getOwnPropertyNames(ee)};var v=Number.isNaN||function(ee){return ee!=ee};function C(){C.init.call(this)}Ve.exports=C,Ve.exports.once=function Z(ie,ee){return new Promise(function(ve,he){function re(le){ie.removeListener(ee,de),he(le)}function de(){"function"==typeof ie.removeListener&&ie.removeListener("error",re),ve([].slice.call(arguments))}W(ie,ee,de,{once:!0}),"error"!==ee&&function j(ie,ee,ve){"function"==typeof ie.on&&W(ie,"error",ee,ve)}(ie,re,{once:!0})})},C.EventEmitter=C,C.prototype._events=void 0,C.prototype._eventsCount=0,C.prototype._maxListeners=void 0;var o=10;function M(ie){if("function"!=typeof ie)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ie)}function l(ie){return void 0===ie._maxListeners?C.defaultMaxListeners:ie._maxListeners}function R(ie,ee,ve,he){var re,de,le;if(M(ve),void 0===(de=ie._events)?(de=ie._events=Object.create(null),ie._eventsCount=0):(void 0!==de.newListener&&(ie.emit("newListener",ee,ve.listener?ve.listener:ve),de=ie._events),le=de[ee]),void 0===le)le=de[ee]=ve,++ie._eventsCount;else if("function"==typeof le?le=de[ee]=he?[ve,le]:[le,ve]:he?le.unshift(ve):le.push(ve),(re=l(ie))>0&&le.length>re&&!le.warned){le.warned=!0;var se=new Error("Possible EventEmitter memory leak detected. "+le.length+" "+String(ee)+" listeners added. Use emitter.setMaxListeners() to increase limit");se.name="MaxListenersExceededWarning",se.emitter=ie,se.type=ee,se.count=le.length,function t(ie){console&&console.warn&&console.warn(ie)}(se)}return ie}function s(){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 L(ie,ee,ve){var he={fired:!1,wrapFn:void 0,target:ie,type:ee,listener:ve},re=s.bind(he);return re.listener=ve,he.wrapFn=re,re}function O(ie,ee,ve){var he=ie._events;if(void 0===he)return[];var re=he[ee];return void 0===re?[]:"function"==typeof re?ve?[re.listener||re]:[re]:ve?function w(ie){for(var ee=new Array(ie.length),ve=0;ve0&&(le=ve[0]),le instanceof Error)throw le;var se=new Error("Unhandled error."+(le?" ("+le.message+")":""));throw se.context=le,se}var y=de[ee];if(void 0===y)return!1;if("function"==typeof y)m(y,this,ve);else{var i=y.length,a=E(y,i);for(he=0;he=0;le--)if(he[le]===ve||he[le].listener===ve){se=he[le].listener,de=le;break}if(de<0)return this;0===de?he.shift():function P(ie,ee){for(;ee+1=0;re--)this.removeListener(ee,ve[re]);return this},C.prototype.listeners=function(ee){return O(this,ee,!0)},C.prototype.rawListeners=function(ee){return O(this,ee,!1)},C.listenerCount=function(ie,ee){return"function"==typeof ie.listenerCount?ie.listenerCount(ee):A.call(ie,ee)},C.prototype.listenerCount=A,C.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},347:(Ve,Q,m)=>{var e=m(3502).Buffer,t=m(8095);Ve.exports=function v(C,o,M,l){if(e.isBuffer(C)||(C=e.from(C,"binary")),o&&(e.isBuffer(o)||(o=e.from(o,"binary")),8!==o.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var R=M/8,s=e.alloc(R),L=e.alloc(l||0),O=e.alloc(0);R>0||l>0;){var A=new t;A.update(O),A.update(C),o&&A.update(o),O=A.digest();var E=0;if(R>0){var P=s.length-R;E=Math.min(R,O.length),O.copy(s,P,0,E),R-=E}if(E0){var w=L.length-l,Z=Math.min(l,O.length-E);O.copy(L,w,E,E+Z),l-=Z}}return O.fill(0),{key:s,iv:L}}},9650:(Ve,Q,m)=>{"use strict";var e=m(8444).Buffer,t=m(5685).Transform;function o(M){t.call(this),this._block=e.allocUnsafe(M),this._blockSize=M,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}m(3894)(o,t),o.prototype._transform=function(M,l,R){var s=null;try{this.update(M,l)}catch(L){s=L}R(s)},o.prototype._flush=function(M){var l=null;try{this.push(this.digest())}catch(R){l=R}M(l)},o.prototype.update=function(M,l){if(function C(M,l){if(!e.isBuffer(M)&&"string"!=typeof M)throw new TypeError(l+" must be a string or a buffer")}(M,"Data"),this._finalized)throw new Error("Digest already called");e.isBuffer(M)||(M=e.from(M,l));for(var R=this._block,s=0;this._blockOffset+M.length-s>=this._blockSize;){for(var L=this._blockOffset;L0;++O)this._length[O]+=A,(A=this._length[O]/4294967296|0)>0&&(this._length[O]-=4294967296*A);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(M){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var l=this._digest();void 0!==M&&(l=l.toString(M)),this._block.fill(0),this._blockOffset=0;for(var R=0;R<4;++R)this._length[R]=0;return l},o.prototype._digest=function(){throw new Error("_digest is not implemented")},Ve.exports=o},8444:(Ve,Q,m)=>{var e=m(3172),t=e.Buffer;function v(o,M){for(var l in o)M[l]=o[l]}function C(o,M,l){return t(o,M,l)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?Ve.exports=e:(v(e,Q),Q.Buffer=C),C.prototype=Object.create(t.prototype),v(t,C),C.from=function(o,M,l){if("number"==typeof o)throw new TypeError("Argument must not be a number");return t(o,M,l)},C.alloc=function(o,M,l){if("number"!=typeof o)throw new TypeError("Argument must be a number");var R=t(o);return void 0!==M?"string"==typeof l?R.fill(M,l):R.fill(M):R.fill(0),R},C.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return t(o)},C.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return e.SlowBuffer(o)}},7084:(Ve,Q,m)=>{var e=Q;e.utils=m(9299),e.common=m(3800),e.sha=m(4962),e.ripemd=m(9458),e.hmac=m(2194),e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160},3800:(Ve,Q,m)=>{"use strict";var e=m(9299),t=m(2391);function v(){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=v,v.prototype.update=function(o,M){if(o=e.toArray(o,M),this.pending=this.pending?this.pending.concat(o):o,this.pendingTotal+=o.length,this.pending.length>=this._delta8){var l=(o=this.pending).length%this._delta8;this.pending=o.slice(o.length-l,o.length),0===this.pending.length&&(this.pending=null),o=e.join32(o,0,o.length-l,this.endian);for(var R=0;R>>24&255,R[s++]=o>>>16&255,R[s++]=o>>>8&255,R[s++]=255&o}else for(R[s++]=255&o,R[s++]=o>>>8&255,R[s++]=o>>>16&255,R[s++]=o>>>24&255,R[s++]=0,R[s++]=0,R[s++]=0,R[s++]=0,L=8;L{"use strict";var e=m(9299),t=m(2391);function v(C,o,M){if(!(this instanceof v))return new v(C,o,M);this.Hash=C,this.blockSize=C.blockSize/8,this.outSize=C.outSize/8,this.inner=null,this.outer=null,this._init(e.toArray(o,M))}Ve.exports=v,v.prototype._init=function(o){o.length>this.blockSize&&(o=(new this.Hash).update(o).digest()),t(o.length<=this.blockSize);for(var M=o.length;M{"use strict";var e=m(9299),t=m(3800),v=e.rotl32,C=e.sum32,o=e.sum32_3,M=e.sum32_4,l=t.BlockHash;function R(){if(!(this instanceof R))return new R;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function s(Z,j,W,ie){return Z<=15?j^W^ie:Z<=31?j&W|~j&ie:Z<=47?(j|~W)^ie:Z<=63?j&ie|W&~ie:j^(W|~ie)}function O(Z){return Z<=15?1352829926:Z<=31?1548603684:Z<=47?1836072691:Z<=63?2053994217:0}e.inherits(R,l),Q.ripemd160=R,R.blockSize=512,R.outSize=160,R.hmacStrength=192,R.padLength=64,R.prototype._update=function(j,W){for(var ie=this.h[0],ee=this.h[1],ve=this.h[2],he=this.h[3],re=this.h[4],de=ie,le=ee,se=ve,y=he,i=re,a=0;a<80;a++){var p=C(v(M(ie,s(a,ee,ve,he),j[A[a]+W],(Z=a)<=15?0:Z<=31?1518500249:Z<=47?1859775393:Z<=63?2400959708:2840853838),P[a]),re);ie=re,re=he,he=v(ve,10),ve=ee,ee=p,p=C(v(M(de,s(79-a,le,se,y),j[E[a]+W],O(a)),w[a]),i),de=i,i=y,y=v(se,10),se=le,le=p}var Z;p=o(this.h[1],ve,y),this.h[1]=o(this.h[2],he,i),this.h[2]=o(this.h[3],re,de),this.h[3]=o(this.h[4],ie,le),this.h[4]=o(this.h[0],ee,se),this.h[0]=p},R.prototype._digest=function(j){return"hex"===j?e.toHex32(this.h,"little"):e.split32(this.h,"little")};var A=[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],P=[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],w=[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]},4962:(Ve,Q,m)=>{"use strict";Q.sha1=m(9007),Q.sha224=m(55),Q.sha256=m(9342),Q.sha384=m(8634),Q.sha512=m(39)},9007:(Ve,Q,m)=>{"use strict";var e=m(9299),t=m(3800),v=m(3113),C=e.rotl32,o=e.sum32,M=e.sum32_5,l=v.ft_1,R=t.BlockHash,s=[1518500249,1859775393,2400959708,3395469782];function L(){if(!(this instanceof L))return new L;R.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}e.inherits(L,R),Ve.exports=L,L.blockSize=512,L.outSize=160,L.hmacStrength=80,L.padLength=64,L.prototype._update=function(A,E){for(var P=this.W,w=0;w<16;w++)P[w]=A[E+w];for(;w{"use strict";var e=m(9299),t=m(9342);function v(){if(!(this instanceof v))return new v;t.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}e.inherits(v,t),Ve.exports=v,v.blockSize=512,v.outSize=224,v.hmacStrength=192,v.padLength=64,v.prototype._digest=function(o){return"hex"===o?e.toHex32(this.h.slice(0,7),"big"):e.split32(this.h.slice(0,7),"big")}},9342:(Ve,Q,m)=>{"use strict";var e=m(9299),t=m(3800),v=m(3113),C=m(2391),o=e.sum32,M=e.sum32_4,l=e.sum32_5,R=v.ch32,s=v.maj32,L=v.s0_256,O=v.s1_256,A=v.g0_256,E=v.g1_256,P=t.BlockHash,w=[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];function Z(){if(!(this instanceof Z))return new Z;P.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=w,this.W=new Array(64)}e.inherits(Z,P),Ve.exports=Z,Z.blockSize=512,Z.outSize=256,Z.hmacStrength=192,Z.padLength=64,Z.prototype._update=function(W,ie){for(var ee=this.W,ve=0;ve<16;ve++)ee[ve]=W[ie+ve];for(;ve{"use strict";var e=m(9299),t=m(39);function v(){if(!(this instanceof v))return new v;t.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}e.inherits(v,t),Ve.exports=v,v.blockSize=1024,v.outSize=384,v.hmacStrength=192,v.padLength=128,v.prototype._digest=function(o){return"hex"===o?e.toHex32(this.h.slice(0,12),"big"):e.split32(this.h.slice(0,12),"big")}},39:(Ve,Q,m)=>{"use strict";var e=m(9299),t=m(3800),v=m(2391),C=e.rotr64_hi,o=e.rotr64_lo,M=e.shr64_hi,l=e.shr64_lo,R=e.sum64,s=e.sum64_hi,L=e.sum64_lo,O=e.sum64_4_hi,A=e.sum64_4_lo,E=e.sum64_5_hi,P=e.sum64_5_lo,w=t.BlockHash,Z=[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];function j(){if(!(this instanceof j))return new j;w.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=Z,this.W=new Array(160)}function W(p,u,_,D,I){var x=p&_^~p&I;return x<0&&(x+=4294967296),x}function ie(p,u,_,D,I,x){var r=u&D^~u&x;return r<0&&(r+=4294967296),r}function ee(p,u,_,D,I){var x=p&_^p&I^_&I;return x<0&&(x+=4294967296),x}function ve(p,u,_,D,I,x){var r=u&D^u&x^D&x;return r<0&&(r+=4294967296),r}function he(p,u){var x=C(p,u,28)^C(u,p,2)^C(u,p,7);return x<0&&(x+=4294967296),x}function re(p,u){var x=o(p,u,28)^o(u,p,2)^o(u,p,7);return x<0&&(x+=4294967296),x}function de(p,u){var x=C(p,u,14)^C(p,u,18)^C(u,p,9);return x<0&&(x+=4294967296),x}function le(p,u){var x=o(p,u,14)^o(p,u,18)^o(u,p,9);return x<0&&(x+=4294967296),x}function se(p,u){var x=C(p,u,1)^C(p,u,8)^M(p,u,7);return x<0&&(x+=4294967296),x}function y(p,u){var x=o(p,u,1)^o(p,u,8)^l(p,u,7);return x<0&&(x+=4294967296),x}function i(p,u){var x=C(p,u,19)^C(u,p,29)^M(p,u,6);return x<0&&(x+=4294967296),x}function a(p,u){var x=o(p,u,19)^o(u,p,29)^l(p,u,6);return x<0&&(x+=4294967296),x}e.inherits(j,w),Ve.exports=j,j.blockSize=1024,j.outSize=512,j.hmacStrength=192,j.padLength=128,j.prototype._prepareBlock=function(u,_){for(var D=this.W,I=0;I<32;I++)D[I]=u[_+I];for(;I{"use strict";var t=m(9299).rotr32;function C(O,A,E){return O&A^~O&E}function o(O,A,E){return O&A^O&E^A&E}function M(O,A,E){return O^A^E}Q.ft_1=function v(O,A,E,P){return 0===O?C(A,E,P):1===O||3===O?M(A,E,P):2===O?o(A,E,P):void 0},Q.ch32=C,Q.maj32=o,Q.p32=M,Q.s0_256=function l(O){return t(O,2)^t(O,13)^t(O,22)},Q.s1_256=function R(O){return t(O,6)^t(O,11)^t(O,25)},Q.g0_256=function s(O){return t(O,7)^t(O,18)^O>>>3},Q.g1_256=function L(O){return t(O,17)^t(O,19)^O>>>10}},9299:(Ve,Q,m)=>{"use strict";var e=m(2391),t=m(3894);function v(a,p){return!(55296!=(64512&a.charCodeAt(p))||p<0||p+1>=a.length)&&56320==(64512&a.charCodeAt(p+1))}function M(a){return(a>>>24|a>>>8&65280|a<<8&16711680|(255&a)<<24)>>>0}function R(a){return 1===a.length?"0"+a:a}function s(a){return 7===a.length?"0"+a:6===a.length?"00"+a:5===a.length?"000"+a:4===a.length?"0000"+a:3===a.length?"00000"+a:2===a.length?"000000"+a:1===a.length?"0000000"+a:a}Q.inherits=t,Q.toArray=function C(a,p){if(Array.isArray(a))return a.slice();if(!a)return[];var u=[];if("string"==typeof a)if(p){if("hex"===p)for((a=a.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(a="0"+a),D=0;D>6|192,u[_++]=63&I|128):v(a,D)?(I=65536+((1023&I)<<10)+(1023&a.charCodeAt(++D)),u[_++]=I>>18|240,u[_++]=I>>12&63|128,u[_++]=I>>6&63|128,u[_++]=63&I|128):(u[_++]=I>>12|224,u[_++]=I>>6&63|128,u[_++]=63&I|128)}else for(D=0;D>>0;return I},Q.split32=function O(a,p){for(var u=new Array(4*a.length),_=0,D=0;_>>24,u[D+1]=I>>>16&255,u[D+2]=I>>>8&255,u[D+3]=255&I):(u[D+3]=I>>>24,u[D+2]=I>>>16&255,u[D+1]=I>>>8&255,u[D]=255&I)}return u},Q.rotr32=function A(a,p){return a>>>p|a<<32-p},Q.rotl32=function E(a,p){return a<>>32-p},Q.sum32=function P(a,p){return a+p>>>0},Q.sum32_3=function w(a,p,u){return a+p+u>>>0},Q.sum32_4=function Z(a,p,u,_){return a+p+u+_>>>0},Q.sum32_5=function j(a,p,u,_,D){return a+p+u+_+D>>>0},Q.sum64=function W(a,p,u,_){var x=_+a[p+1]>>>0;a[p]=(x<_?1:0)+u+a[p]>>>0,a[p+1]=x},Q.sum64_hi=function ie(a,p,u,_){return(p+_>>>0>>0},Q.sum64_lo=function ee(a,p,u,_){return p+_>>>0},Q.sum64_4_hi=function ve(a,p,u,_,D,I,x,r){var b=0,U=p;return b+=(U=U+_>>>0)>>0)>>0)>>0},Q.sum64_4_lo=function he(a,p,u,_,D,I,x,r){return p+_+I+r>>>0},Q.sum64_5_hi=function re(a,p,u,_,D,I,x,r,b,U){var N=0,z=p;return N+=(z=z+_>>>0)>>0)>>0)>>0)>>0},Q.sum64_5_lo=function de(a,p,u,_,D,I,x,r,b,U){return p+_+I+r+U>>>0},Q.rotr64_hi=function le(a,p,u){return(p<<32-u|a>>>u)>>>0},Q.rotr64_lo=function se(a,p,u){return(a<<32-u|p>>>u)>>>0},Q.shr64_hi=function y(a,p,u){return a>>>u},Q.shr64_lo=function i(a,p,u){return(a<<32-u|p>>>u)>>>0}},2438:(Ve,Q,m)=>{"use strict";var e=m(7084),t=m(8195),v=m(2391);function C(o){if(!(this instanceof C))return new C(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 M=t.toArray(o.entropy,o.entropyEnc||"hex"),l=t.toArray(o.nonce,o.nonceEnc||"hex"),R=t.toArray(o.pers,o.persEnc||"hex");v(M.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(M,l,R)}Ve.exports=C,C.prototype._init=function(M,l,R){var s=M.concat(l).concat(R);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var L=0;L=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(M.concat(R||[])),this._reseed=1},C.prototype.generate=function(M,l,R,s){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof l&&(s=R,R=l,l=null),R&&(R=t.toArray(R,s||"hex"),this._update(R));for(var L=[];L.length{Q.read=function(m,e,t,v,C){var o,M,l=8*C-v-1,R=(1<>1,L=-7,O=t?C-1:0,A=t?-1:1,E=m[e+O];for(O+=A,o=E&(1<<-L)-1,E>>=-L,L+=l;L>0;o=256*o+m[e+O],O+=A,L-=8);for(M=o&(1<<-L)-1,o>>=-L,L+=v;L>0;M=256*M+m[e+O],O+=A,L-=8);if(0===o)o=1-s;else{if(o===R)return M?NaN:1/0*(E?-1:1);M+=Math.pow(2,v),o-=s}return(E?-1:1)*M*Math.pow(2,o-v)},Q.write=function(m,e,t,v,C,o){var M,l,R,s=8*o-C-1,L=(1<>1,A=23===C?Math.pow(2,-24)-Math.pow(2,-77):0,E=v?0:o-1,P=v?1:-1,w=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,M=L):(M=Math.floor(Math.log(e)/Math.LN2),e*(R=Math.pow(2,-M))<1&&(M--,R*=2),(e+=M+O>=1?A/R:A*Math.pow(2,1-O))*R>=2&&(M++,R/=2),M+O>=L?(l=0,M=L):M+O>=1?(l=(e*R-1)*Math.pow(2,C),M+=O):(l=e*Math.pow(2,O-1)*Math.pow(2,C),M=0));C>=8;m[t+E]=255&l,E+=P,l/=256,C-=8);for(M=M<0;m[t+E]=255&M,E+=P,M/=256,s-=8);m[t+E-P]|=128*w}},3894:Ve=>{Ve.exports="function"==typeof Object.create?function(m,e){e&&(m.super_=e,m.prototype=Object.create(e.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}))}:function(m,e){if(e){m.super_=e;var t=function(){};t.prototype=e.prototype,m.prototype=new t,m.prototype.constructor=m}}},717:(Ve,Q,m)=>{"use strict";var e=m(623);function t(v){return!0===e(v)&&"[object Object]"===Object.prototype.toString.call(v)}Ve.exports=function(C){var o,M;return!(!1===t(C)||(o=C.constructor,"function"!=typeof o)||(M=o.prototype,!1===t(M))||!1===M.hasOwnProperty("isPrototypeOf"))}},623:Ve=>{"use strict";Ve.exports=function(m){return null!=m&&"object"==typeof m&&!1===Array.isArray(m)}},2872:Ve=>{var Q=Object.prototype.toString;function m(s){return"function"==typeof s.constructor?s.constructor.name:null}Ve.exports=function(L){if(void 0===L)return"undefined";if(null===L)return"null";var O=typeof L;if("boolean"===O)return"boolean";if("string"===O)return"string";if("number"===O)return"number";if("symbol"===O)return"symbol";if("function"===O)return function o(s,L){return"GeneratorFunction"===m(s)}(L)?"generatorfunction":"function";if(function e(s){return Array.isArray?Array.isArray(s):s instanceof Array}(L))return"array";if(function R(s){return!(!s.constructor||"function"!=typeof s.constructor.isBuffer)&&s.constructor.isBuffer(s)}(L))return"buffer";if(function l(s){try{if("number"==typeof s.length&&"function"==typeof s.callee)return!0}catch(L){if(-1!==L.message.indexOf("callee"))return!0}return!1}(L))return"arguments";if(function v(s){return s instanceof Date||"function"==typeof s.toDateString&&"function"==typeof s.getDate&&"function"==typeof s.setDate}(L))return"date";if(function t(s){return s instanceof Error||"string"==typeof s.message&&s.constructor&&"number"==typeof s.constructor.stackTraceLimit}(L))return"error";if(function C(s){return s instanceof RegExp||"string"==typeof s.flags&&"boolean"==typeof s.ignoreCase&&"boolean"==typeof s.multiline&&"boolean"==typeof s.global}(L))return"regexp";switch(m(L)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function M(s){return"function"==typeof s.throw&&"function"==typeof s.return&&"function"==typeof s.next}(L))return"generator";switch(O=Q.call(L)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return O.slice(8,-1).toLowerCase().replace(/\s/g,"")}},8095:(Ve,Q,m)=>{"use strict";var e=m(3894),t=m(9650),v=m(3502).Buffer,C=new Array(16);function o(){t.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function M(O,A){return O<>>32-A}function l(O,A,E,P,w,Z,j){return M(O+(A&E|~A&P)+w+Z|0,j)+A|0}function R(O,A,E,P,w,Z,j){return M(O+(A&P|E&~P)+w+Z|0,j)+A|0}function s(O,A,E,P,w,Z,j){return M(O+(A^E^P)+w+Z|0,j)+A|0}function L(O,A,E,P,w,Z,j){return M(O+(E^(A|~P))+w+Z|0,j)+A|0}e(o,t),o.prototype._update=function(){for(var O=C,A=0;A<16;++A)O[A]=this._block.readInt32LE(4*A);var E=this._a,P=this._b,w=this._c,Z=this._d;E=l(E,P,w,Z,O[0],3614090360,7),Z=l(Z,E,P,w,O[1],3905402710,12),w=l(w,Z,E,P,O[2],606105819,17),P=l(P,w,Z,E,O[3],3250441966,22),E=l(E,P,w,Z,O[4],4118548399,7),Z=l(Z,E,P,w,O[5],1200080426,12),w=l(w,Z,E,P,O[6],2821735955,17),P=l(P,w,Z,E,O[7],4249261313,22),E=l(E,P,w,Z,O[8],1770035416,7),Z=l(Z,E,P,w,O[9],2336552879,12),w=l(w,Z,E,P,O[10],4294925233,17),P=l(P,w,Z,E,O[11],2304563134,22),E=l(E,P,w,Z,O[12],1804603682,7),Z=l(Z,E,P,w,O[13],4254626195,12),w=l(w,Z,E,P,O[14],2792965006,17),E=R(E,P=l(P,w,Z,E,O[15],1236535329,22),w,Z,O[1],4129170786,5),Z=R(Z,E,P,w,O[6],3225465664,9),w=R(w,Z,E,P,O[11],643717713,14),P=R(P,w,Z,E,O[0],3921069994,20),E=R(E,P,w,Z,O[5],3593408605,5),Z=R(Z,E,P,w,O[10],38016083,9),w=R(w,Z,E,P,O[15],3634488961,14),P=R(P,w,Z,E,O[4],3889429448,20),E=R(E,P,w,Z,O[9],568446438,5),Z=R(Z,E,P,w,O[14],3275163606,9),w=R(w,Z,E,P,O[3],4107603335,14),P=R(P,w,Z,E,O[8],1163531501,20),E=R(E,P,w,Z,O[13],2850285829,5),Z=R(Z,E,P,w,O[2],4243563512,9),w=R(w,Z,E,P,O[7],1735328473,14),E=s(E,P=R(P,w,Z,E,O[12],2368359562,20),w,Z,O[5],4294588738,4),Z=s(Z,E,P,w,O[8],2272392833,11),w=s(w,Z,E,P,O[11],1839030562,16),P=s(P,w,Z,E,O[14],4259657740,23),E=s(E,P,w,Z,O[1],2763975236,4),Z=s(Z,E,P,w,O[4],1272893353,11),w=s(w,Z,E,P,O[7],4139469664,16),P=s(P,w,Z,E,O[10],3200236656,23),E=s(E,P,w,Z,O[13],681279174,4),Z=s(Z,E,P,w,O[0],3936430074,11),w=s(w,Z,E,P,O[3],3572445317,16),P=s(P,w,Z,E,O[6],76029189,23),E=s(E,P,w,Z,O[9],3654602809,4),Z=s(Z,E,P,w,O[12],3873151461,11),w=s(w,Z,E,P,O[15],530742520,16),E=L(E,P=s(P,w,Z,E,O[2],3299628645,23),w,Z,O[0],4096336452,6),Z=L(Z,E,P,w,O[7],1126891415,10),w=L(w,Z,E,P,O[14],2878612391,15),P=L(P,w,Z,E,O[5],4237533241,21),E=L(E,P,w,Z,O[12],1700485571,6),Z=L(Z,E,P,w,O[3],2399980690,10),w=L(w,Z,E,P,O[10],4293915773,15),P=L(P,w,Z,E,O[1],2240044497,21),E=L(E,P,w,Z,O[8],1873313359,6),Z=L(Z,E,P,w,O[15],4264355552,10),w=L(w,Z,E,P,O[6],2734768916,15),P=L(P,w,Z,E,O[13],1309151649,21),E=L(E,P,w,Z,O[4],4149444226,6),Z=L(Z,E,P,w,O[11],3174756917,10),w=L(w,Z,E,P,O[2],718787259,15),P=L(P,w,Z,E,O[9],3951481745,21),this._a=this._a+E|0,this._b=this._b+P|0,this._c=this._c+w|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 O=v.allocUnsafe(16);return O.writeInt32LE(this._a,0),O.writeInt32LE(this._b,4),O.writeInt32LE(this._c,8),O.writeInt32LE(this._d,12),O},Ve.exports=o},7079:(Ve,Q,m)=>{var e=m(1378),t=m(7950);function v(C){this.rand=C||new t.Rand}Ve.exports=v,v.create=function(o){return new v(o)},v.prototype._randbelow=function(o){var M=o.bitLength(),l=Math.ceil(M/8);do{var R=new e(this.rand.generate(l))}while(R.cmp(o)>=0);return R},v.prototype._randrange=function(o,M){var l=M.sub(o);return o.add(this._randbelow(l))},v.prototype.test=function(o,M,l){var R=o.bitLength(),s=e.mont(o),L=new e(1).toRed(s);M||(M=Math.max(1,R/48|0));for(var O=o.subn(1),A=0;!O.testn(A);A++);for(var E=o.shrn(A),P=O.toRed(s);M>0;M--){var Z=this._randrange(new e(2),O);l&&l(Z);var j=Z.toRed(s).redPow(E);if(0!==j.cmp(L)&&0!==j.cmp(P)){for(var W=1;W0;M--){var P=this._randrange(new e(2),L),w=o.gcd(P);if(0!==w.cmpn(1))return w;var Z=P.toRed(R).redPow(A);if(0!==Z.cmp(s)&&0!==Z.cmp(E)){for(var j=1;j=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function R(y,i,a){var p=l(y,a);return a-1>=i&&(p|=l(y,a-1)<<4),p}function s(y,i,a,p){for(var u=0,_=Math.min(y.length,a),D=i;D<_;D++){var I=y.charCodeAt(D)-48;u*=p,u+=I>=49?I-49+10:I>=17?I-17+10:I}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),v(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(D=i[u]|i[u-1]<<8|i[u-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u=a;u-=2)I=R(i,a,u)<<_,this.words[D]|=67108863&I,_>=18?(_-=18,this.words[D+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u=18?(_-=18,this.words[D+=1]|=I>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var D=i.length-p,I=D%u,x=Math.min(D,D-I)+p,r=0,b=p;b1&&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 L=["","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"],O=[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],A=[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 P(y,i,a){a.negative=i.negative^y.negative;var p=y.length+i.length|0;a.length=p,p=p-1|0;var u=0|y.words[0],_=0|i.words[0],D=u*_,x=D/67108864|0;a.words[0]=67108863&D;for(var r=1;r>>26,U=67108863&x,N=Math.min(r,i.length-1),z=Math.max(0,r-y.length+1);z<=N;z++)b+=(D=(u=0|y.words[r-z|0])*(_=0|i.words[z])+U)/67108864|0,U=67108863&D;a.words[r]=0|U,x=0|b}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,D=0;D>>24-u&16777215)||D!==this.length-1?L[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,D--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=O[i],b=A[i];p="";var U=this.clone();for(U.negative=0;!U.isZero();){var N=U.modn(b).toString(i);p=(U=U.idivn(b)).isZero()?N+p:L[r-N.length]+N+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}v(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&v(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return v(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);v(u<=_,"byte array longer than desired length"),v(_>0,"Requested array length <= 0"),this.strip();var x,r,D="le"===a,I=new i(_),b=this.clone();if(D){for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),I[r]=x;for(;r<_;r++)I[r]=0}else{for(r=0;r<_-u;r++)I[r]=0;for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),I[_-r-1]=x}return I},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;pi.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;ui.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){v("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){v("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<i.length?(p=this,u=i):(p=i,u=this);for(var _=0,D=0;D>>26;for(;0!==_&&D>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;Di.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var D=0,I=0;I<_.length;I++)D=(a=(0|u.words[I])-(0|_.words[I])+D)>>26,this.words[I]=67108863&a;for(;0!==D&&I>26,this.words[I]=67108863&a;if(0===D&&I>>13,be=0|u[1],xe=8191&be,Re=be>>>13,ze=0|u[2],Le=8191&ze,K=ze>>>13,we=0|u[3],Y=8191&we,ae=we>>>13,Ge=0|u[4],vt=8191&Ge,Fe=Ge>>>13,Ne=0|u[5],ue=8191&Ne,Oe=Ne>>>13,Pe=0|u[6],q=8191&Pe,$=Pe>>>13,ce=0|u[7],Me=8191&ce,Ue=ce>>>13,lt=0|u[8],nt=8191<,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,ki=0|_[2],ai=8191&ki,hi=ki>>>13,Ze=0|_[3],Ee=8191&Ze,G=Ze>>>13,ge=0|_[4],De=8191&ge,et=ge>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],ke=8191&ct,Be=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(I+(x=Math.imul(N,Ft))|0)+((8191&(r=(r=Math.imul(N,Vt))+Math.imul(z,Ft)|0))<<13)|0;I=((b=Math.imul(z,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(xe,Ft),r=(r=Math.imul(xe,Vt))+Math.imul(Re,Ft)|0,b=Math.imul(Re,Vt);var Ui=(I+(x=x+Math.imul(N,jt)|0)|0)+((8191&(r=(r=r+Math.imul(N,ei)|0)+Math.imul(z,jt)|0))<<13)|0;I=((b=b+Math.imul(z,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Le,Ft),r=(r=Math.imul(Le,Vt))+Math.imul(K,Ft)|0,b=Math.imul(K,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ei)|0)+Math.imul(Re,jt)|0,b=b+Math.imul(Re,ei)|0;var Di=(I+(x=x+Math.imul(N,ai)|0)|0)+((8191&(r=(r=r+Math.imul(N,hi)|0)+Math.imul(z,ai)|0))<<13)|0;I=((b=b+Math.imul(z,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(Y,Ft),r=(r=Math.imul(Y,Vt))+Math.imul(ae,Ft)|0,b=Math.imul(ae,Vt),x=x+Math.imul(Le,jt)|0,r=(r=r+Math.imul(Le,ei)|0)+Math.imul(K,jt)|0,b=b+Math.imul(K,ei)|0,x=x+Math.imul(xe,ai)|0,r=(r=r+Math.imul(xe,hi)|0)+Math.imul(Re,ai)|0,b=b+Math.imul(Re,hi)|0;var Xi=(I+(x=x+Math.imul(N,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(N,G)|0)+Math.imul(z,Ee)|0))<<13)|0;I=((b=b+Math.imul(z,G)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Fe,Ft)|0,b=Math.imul(Fe,Vt),x=x+Math.imul(Y,jt)|0,r=(r=r+Math.imul(Y,ei)|0)+Math.imul(ae,jt)|0,b=b+Math.imul(ae,ei)|0,x=x+Math.imul(Le,ai)|0,r=(r=r+Math.imul(Le,hi)|0)+Math.imul(K,ai)|0,b=b+Math.imul(K,hi)|0,x=x+Math.imul(xe,Ee)|0,r=(r=r+Math.imul(xe,G)|0)+Math.imul(Re,Ee)|0,b=b+Math.imul(Re,G)|0;var Ke=(I+(x=x+Math.imul(N,De)|0)|0)+((8191&(r=(r=r+Math.imul(N,et)|0)+Math.imul(z,De)|0))<<13)|0;I=((b=b+Math.imul(z,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(ue,Ft),r=(r=Math.imul(ue,Vt))+Math.imul(Oe,Ft)|0,b=Math.imul(Oe,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Fe,jt)|0,b=b+Math.imul(Fe,ei)|0,x=x+Math.imul(Y,ai)|0,r=(r=r+Math.imul(Y,hi)|0)+Math.imul(ae,ai)|0,b=b+Math.imul(ae,hi)|0,x=x+Math.imul(Le,Ee)|0,r=(r=r+Math.imul(Le,G)|0)+Math.imul(K,Ee)|0,b=b+Math.imul(K,G)|0,x=x+Math.imul(xe,De)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Re,De)|0,b=b+Math.imul(Re,et)|0;var _t=(I+(x=x+Math.imul(N,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Jt)|0)+Math.imul(z,Nt)|0))<<13)|0;I=((b=b+Math.imul(z,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,b=Math.imul($,Vt),x=x+Math.imul(ue,jt)|0,r=(r=r+Math.imul(ue,ei)|0)+Math.imul(Oe,jt)|0,b=b+Math.imul(Oe,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Fe,ai)|0,b=b+Math.imul(Fe,hi)|0,x=x+Math.imul(Y,Ee)|0,r=(r=r+Math.imul(Y,G)|0)+Math.imul(ae,Ee)|0,b=b+Math.imul(ae,G)|0,x=x+Math.imul(Le,De)|0,r=(r=r+Math.imul(Le,et)|0)+Math.imul(K,De)|0,b=b+Math.imul(K,et)|0,x=x+Math.imul(xe,Nt)|0,r=(r=r+Math.imul(xe,Jt)|0)+Math.imul(Re,Nt)|0,b=b+Math.imul(Re,Jt)|0;var ye=(I+(x=x+Math.imul(N,ke)|0)|0)+((8191&(r=(r=r+Math.imul(N,Be)|0)+Math.imul(z,ke)|0))<<13)|0;I=((b=b+Math.imul(z,Be)|0)+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,x=Math.imul(Me,Ft),r=(r=Math.imul(Me,Vt))+Math.imul(Ue,Ft)|0,b=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,b=b+Math.imul($,ei)|0,x=x+Math.imul(ue,ai)|0,r=(r=r+Math.imul(ue,hi)|0)+Math.imul(Oe,ai)|0,b=b+Math.imul(Oe,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,G)|0)+Math.imul(Fe,Ee)|0,b=b+Math.imul(Fe,G)|0,x=x+Math.imul(Y,De)|0,r=(r=r+Math.imul(Y,et)|0)+Math.imul(ae,De)|0,b=b+Math.imul(ae,et)|0,x=x+Math.imul(Le,Nt)|0,r=(r=r+Math.imul(Le,Jt)|0)+Math.imul(K,Nt)|0,b=b+Math.imul(K,Jt)|0,x=x+Math.imul(xe,ke)|0,r=(r=r+Math.imul(xe,Be)|0)+Math.imul(Re,ke)|0,b=b+Math.imul(Re,Be)|0;var qe=(I+(x=x+Math.imul(N,st)|0)|0)+((8191&(r=(r=r+Math.imul(N,At)|0)+Math.imul(z,st)|0))<<13)|0;I=((b=b+Math.imul(z,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Me,jt)|0,r=(r=r+Math.imul(Me,ei)|0)+Math.imul(Ue,jt)|0,b=b+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,b=b+Math.imul($,hi)|0,x=x+Math.imul(ue,Ee)|0,r=(r=r+Math.imul(ue,G)|0)+Math.imul(Oe,Ee)|0,b=b+Math.imul(Oe,G)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Fe,De)|0,b=b+Math.imul(Fe,et)|0,x=x+Math.imul(Y,Nt)|0,r=(r=r+Math.imul(Y,Jt)|0)+Math.imul(ae,Nt)|0,b=b+Math.imul(ae,Jt)|0,x=x+Math.imul(Le,ke)|0,r=(r=r+Math.imul(Le,Be)|0)+Math.imul(K,ke)|0,b=b+Math.imul(K,Be)|0,x=x+Math.imul(xe,st)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Re,st)|0,b=b+Math.imul(Re,At)|0;var yt=(I+(x=x+Math.imul(N,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Rt)|0)+Math.imul(z,Bt)|0))<<13)|0;I=((b=b+Math.imul(z,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,b=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,b=b+Math.imul(ft,ei)|0,x=x+Math.imul(Me,ai)|0,r=(r=r+Math.imul(Me,hi)|0)+Math.imul(Ue,ai)|0,b=b+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,G)|0)+Math.imul($,Ee)|0,b=b+Math.imul($,G)|0,x=x+Math.imul(ue,De)|0,r=(r=r+Math.imul(ue,et)|0)+Math.imul(Oe,De)|0,b=b+Math.imul(Oe,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Fe,Nt)|0,b=b+Math.imul(Fe,Jt)|0,x=x+Math.imul(Y,ke)|0,r=(r=r+Math.imul(Y,Be)|0)+Math.imul(ae,ke)|0,b=b+Math.imul(ae,Be)|0,x=x+Math.imul(Le,st)|0,r=(r=r+Math.imul(Le,At)|0)+Math.imul(K,st)|0,b=b+Math.imul(K,At)|0,x=x+Math.imul(xe,Bt)|0,r=(r=r+Math.imul(xe,Rt)|0)+Math.imul(Re,Bt)|0,b=b+Math.imul(Re,Rt)|0;var pe=(I+(x=x+Math.imul(N,si)|0)|0)+((8191&(r=(r=r+Math.imul(N,ci)|0)+Math.imul(z,si)|0))<<13)|0;I=((b=b+Math.imul(z,ci)|0)+(r>>>13)|0)+(pe>>>26)|0,pe&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,b=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,b=b+Math.imul(ft,hi)|0,x=x+Math.imul(Me,Ee)|0,r=(r=r+Math.imul(Me,G)|0)+Math.imul(Ue,Ee)|0,b=b+Math.imul(Ue,G)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,b=b+Math.imul($,et)|0,x=x+Math.imul(ue,Nt)|0,r=(r=r+Math.imul(ue,Jt)|0)+Math.imul(Oe,Nt)|0,b=b+Math.imul(Oe,Jt)|0,x=x+Math.imul(vt,ke)|0,r=(r=r+Math.imul(vt,Be)|0)+Math.imul(Fe,ke)|0,b=b+Math.imul(Fe,Be)|0,x=x+Math.imul(Y,st)|0,r=(r=r+Math.imul(Y,At)|0)+Math.imul(ae,st)|0,b=b+Math.imul(ae,At)|0,x=x+Math.imul(Le,Bt)|0,r=(r=r+Math.imul(Le,Rt)|0)+Math.imul(K,Bt)|0,b=b+Math.imul(K,Rt)|0;var Je=(I+(x=x+Math.imul(xe,si)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Re,si)|0))<<13)|0;I=((b=b+Math.imul(Re,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,b=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,G)|0)+Math.imul(ft,Ee)|0,b=b+Math.imul(ft,G)|0,x=x+Math.imul(Me,De)|0,r=(r=r+Math.imul(Me,et)|0)+Math.imul(Ue,De)|0,b=b+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,b=b+Math.imul($,Jt)|0,x=x+Math.imul(ue,ke)|0,r=(r=r+Math.imul(ue,Be)|0)+Math.imul(Oe,ke)|0,b=b+Math.imul(Oe,Be)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Fe,st)|0,b=b+Math.imul(Fe,At)|0,x=x+Math.imul(Y,Bt)|0,r=(r=r+Math.imul(Y,Rt)|0)+Math.imul(ae,Bt)|0,b=b+Math.imul(ae,Rt)|0;var St=(I+(x=x+Math.imul(Le,si)|0)|0)+((8191&(r=(r=r+Math.imul(Le,ci)|0)+Math.imul(K,si)|0))<<13)|0;I=((b=b+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,G))+Math.imul(Mt,Ee)|0,b=Math.imul(Mt,G),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Me,Nt)|0,r=(r=r+Math.imul(Me,Jt)|0)+Math.imul(Ue,Nt)|0,b=b+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,ke)|0,r=(r=r+Math.imul(q,Be)|0)+Math.imul($,ke)|0,b=b+Math.imul($,Be)|0,x=x+Math.imul(ue,st)|0,r=(r=r+Math.imul(ue,At)|0)+Math.imul(Oe,st)|0,b=b+Math.imul(Oe,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Fe,Bt)|0,b=b+Math.imul(Fe,Rt)|0;var kt=(I+(x=x+Math.imul(Y,si)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ci)|0)+Math.imul(ae,si)|0))<<13)|0;I=((b=b+Math.imul(ae,ci)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,b=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,b=b+Math.imul(ft,Jt)|0,x=x+Math.imul(Me,ke)|0,r=(r=r+Math.imul(Me,Be)|0)+Math.imul(Ue,ke)|0,b=b+Math.imul(Ue,Be)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,b=b+Math.imul($,At)|0,x=x+Math.imul(ue,Bt)|0,r=(r=r+Math.imul(ue,Rt)|0)+Math.imul(Oe,Bt)|0,b=b+Math.imul(Oe,Rt)|0;var yi=(I+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Fe,si)|0))<<13)|0;I=((b=b+Math.imul(Fe,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,b=Math.imul(Mt,Jt),x=x+Math.imul(nt,ke)|0,r=(r=r+Math.imul(nt,Be)|0)+Math.imul(ft,ke)|0,b=b+Math.imul(ft,Be)|0,x=x+Math.imul(Me,st)|0,r=(r=r+Math.imul(Me,At)|0)+Math.imul(Ue,st)|0,b=b+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,b=b+Math.imul($,Rt)|0;var Ni=(I+(x=x+Math.imul(ue,si)|0)|0)+((8191&(r=(r=r+Math.imul(ue,ci)|0)+Math.imul(Oe,si)|0))<<13)|0;I=((b=b+Math.imul(Oe,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,ke),r=(r=Math.imul(rt,Be))+Math.imul(Mt,ke)|0,b=Math.imul(Mt,Be),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,b=b+Math.imul(ft,At)|0,x=x+Math.imul(Me,Bt)|0,r=(r=r+Math.imul(Me,Rt)|0)+Math.imul(Ue,Bt)|0,b=b+Math.imul(Ue,Rt)|0;var Si=(I+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;I=((b=b+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,b=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,b=b+Math.imul(ft,Rt)|0;var qi=(I+(x=x+Math.imul(Me,si)|0)|0)+((8191&(r=(r=r+Math.imul(Me,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;I=((b=b+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,b=Math.imul(Mt,Rt);var ot=(I+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;I=((b=b+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(I+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return I=((b=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,D[0]=sn,D[1]=Ui,D[2]=Di,D[3]=Xi,D[4]=Ke,D[5]=_t,D[6]=ye,D[7]=qe,D[8]=yt,D[9]=pe,D[10]=Je,D[11]=St,D[12]=kt,D[13]=yi,D[14]=Ni,D[15]=Si,D[16]=qi,D[17]=ot,D[18]=Kt,0!==I&&(D[19]=I,p.length++),p};function j(y,i,a){return(new W).mulp(y,i,a)}function W(y,i){this.x=y,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function Z(y,i,a){a.negative=i.negative^y.negative,a.length=y.length+i.length;for(var p=0,u=0,_=0;_>>26)|0)>>>26,D&=67108863}a.words[_]=I,p=D,D=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u>=1;return u},W.prototype.permute=function(i,a,p,u,_,D){for(var I=0;I>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u

>>=13),_>>>=13;for(D=2*a;D>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(y){for(var i=new Array(y.bitLength()),a=0;a>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var D=0;for(_=0;_>>26-a}D&&(this.words[_]=D,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_=0),u=a?(a-a%26)/26:0;var _=i%26,D=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=D,u=Math.max(0,u),x){for(var r=0;rD)for(this.length-=D,r=0;r=0&&(0!==b||r>=u);r--){var U=0|this.words[r];this.words[r]=b<<26-_|U>>>_,b=U&I}return x&&0!==b&&(x.words[x.length++]=b),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return v(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){v("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<=0);var a=i%26,p=(i-a)/26;return v(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(v("number"==typeof i),v(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a>26)-(x/67108864|0),this.words[_+p]=67108863&D}for(;_>26,this.words[_+p]=67108863&D;if(0===I)return this.strip();for(v(-1===I),I=0,_=0;_>26,this.words[_]=67108863&D;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,D=0|_.words[_.length-1];0!=(p=26-this._countBits(D))&&(_=_.ushln(p),u.iushln(p),D=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var b=0;b=0;N--){var z=67108864*(0|u.words[_.length+N])+(0|u.words[_.length+N-1]);for(z=Math.min(z/D|0,67108863),u._ishlnsubmul(_,z,N);0!==u.negative;)z--,u.negative=0,u._ishlnsubmul(_,1,N),u.isZero()||(u.negative^=1);r&&(r.words[N]=z)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return v(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,a),"mod"!==a&&(u=D.div.neg()),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),a),"mod"!==a&&(u=D.div.neg()),{div:u,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),a),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:D.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,D},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),D=p.cmp(u);return D<0||1===_&&0===D?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){v(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){v(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){v(0===i.negative),v(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=new o(0),I=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),b=a.clone();!a.isZero();){for(var U=0,N=1;0==(a.words[0]&N)&&U<26;++U,N<<=1);if(U>0)for(a.iushrn(U);U-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var z=0,be=1;0==(p.words[0]&be)&&z<26;++z,be<<=1);if(z>0)for(p.iushrn(z);z-- >0;)(D.isOdd()||I.isOdd())&&(D.iadd(r),I.isub(b)),D.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(D),_.isub(I)):(p.isub(a),D.isub(u),I.isub(_))}return{a:D,b:I,gcd:p.iushln(x)}},o.prototype._invmp=function(i){v(0===i.negative),v(!i.isZero());var U,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var I=0,x=1;0==(a.words[0]&x)&&I<26;++I,x<<=1);if(I>0)for(a.iushrn(I);I-- >0;)u.isOdd()&&u.iadd(D),u.iushrn(1);for(var r=0,b=1;0==(p.words[0]&b)&&r<26;++r,b<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(D),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(U=0===a.cmpn(1)?u:_).cmpn(0)<0&&U.iadd(i),U},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var D=a;a=p,p=D}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){v("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<>>26,this.words[D]=I&=67108863}return 0!==_&&(this.words[D]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),v(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:ui.length)return 1;if(this.length=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new le(i)},o.prototype.toRed=function(i){return v(!this.red,"Already a number in reduction context"),v(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return v(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return v(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return v(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return v(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return v(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return v(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return v(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return v(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return v(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return v(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return v(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return v(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return v(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ie={k256:null,p224:null,p192:null,p25519:null};function ee(y,i){this.name=y,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ve(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function he(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function le(y){if("string"==typeof y){var i=o._prime(y);this.m=i.p,this.prime=i}else v(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}function se(y){le.call(this,y),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)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(ve,ee),ve.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_>>22,D=I}i.words[_-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},ve.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(ie[i])return ie[i];var a;if("k256"===i)a=new ve;else if("p224"===i)a=new he;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return ie[i]=a,a},le.prototype._verify1=function(i){v(0===i.negative,"red works only with positives"),v(i.red,"red works only with red numbers")},le.prototype._verify2=function(i,a){v(0==(i.negative|a.negative),"red works only with positives"),v(i.red&&i.red===a.red,"red works only with red numbers")},le.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},le.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},le.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},le.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},le.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},le.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},le.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},le.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},le.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},le.prototype.isqr=function(i){return this.imul(i,i.clone())},le.prototype.sqr=function(i){return this.mul(i,i)},le.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(v(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);v(!u.isZero());var D=new o(1).toRed(this),I=D.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(I);)r.redIAdd(I);for(var b=this.pow(r,u),U=this.pow(i,u.addn(1).iushrn(1)),N=this.pow(i,u),z=_;0!==N.cmp(D);){for(var be=N,xe=0;0!==be.cmp(D);xe++)be=be.redSqr();v(xe=0;_--){for(var b=a.words[_],U=r-1;U>=0;U--){var N=b>>U&1;D!==u[0]&&(D=this.sqr(D)),0!==N||0!==I?(I<<=1,I|=N,(4==++x||0===_&&0===U)&&(D=this.mul(D,u[I]),x=0,I=0)):x=0}r=26}return D},le.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},le.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new se(i)},C(se,le),se.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},se.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},se.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},se.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},se.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ve=m.nmd(Ve),this)},2391:Ve=>{function Q(m,e){if(!m)throw new Error(e||"Assertion failed")}Ve.exports=Q,Q.equal=function(e,t,v){if(e!=t)throw new Error(v||"Assertion failed: "+e+" != "+t)}},8195:(Ve,Q)=>{"use strict";var m=Q;function t(C){return 1===C.length?"0"+C:C}function v(C){for(var o="",M=0;M>8,L=255&R;s?M.push(s,L):M.push(L)}return M},m.zero2=t,m.toHex=v,m.encode=function(o,M){return"hex"===M?v(o):o}},644:(Ve,Q,m)=>{"use strict";m.d(Q,{op:()=>Ze,$V:()=>et,Xd:()=>Jt});var e=m(7579),t=m(4968),C=(m(6451),m(3601)),o=m(2722),R=(m(1884),m(9718),m(5e3)),s=m(9808);function L(ct){return getComputedStyle(ct)}function O(ct,ke){for(var Be in ke){var at=ke[Be];"number"==typeof at&&(at+="px"),ct.style[Be]=at}return ct}function A(ct){var ke=document.createElement("div");return ke.className=ct,ke}var E="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function P(ct,ke){if(!E)throw new Error("No element matching method supported");return E.call(ct,ke)}function w(ct){ct.remove?ct.remove():ct.parentNode&&ct.parentNode.removeChild(ct)}function Z(ct,ke){return Array.prototype.filter.call(ct.children,function(Be){return P(Be,ke)})}var j_element_thumb=function(ct){return"ps__thumb-"+ct},j_element_rail=function(ct){return"ps__rail-"+ct},j_element_consuming="ps__child--consume",j_state_focus="ps--focus",j_state_clicking="ps--clicking",j_state_active=function(ct){return"ps--active-"+ct},j_state_scrolling=function(ct){return"ps--scrolling-"+ct},W={x:null,y:null};function ie(ct,ke){var Be=ct.element.classList,at=j_state_scrolling(ke);Be.contains(at)?clearTimeout(W[ke]):Be.add(at)}function ee(ct,ke){W[ke]=setTimeout(function(){return ct.isAlive&&ct.element.classList.remove(j_state_scrolling(ke))},ct.settings.scrollingThreshold)}var he=function(ke){this.element=ke,this.handlers={}},re={isEmpty:{configurable:!0}};he.prototype.bind=function(ke,Be){void 0===this.handlers[ke]&&(this.handlers[ke]=[]),this.handlers[ke].push(Be),this.element.addEventListener(ke,Be,!1)},he.prototype.unbind=function(ke,Be){var at=this;this.handlers[ke]=this.handlers[ke].filter(function(st){return!(!Be||st===Be)||(at.element.removeEventListener(ke,st,!1),!1)})},he.prototype.unbindAll=function(){for(var ke in this.handlers)this.unbind(ke)},re.isEmpty.get=function(){var ct=this;return Object.keys(this.handlers).every(function(ke){return 0===ct.handlers[ke].length})},Object.defineProperties(he.prototype,re);var de=function(){this.eventElements=[]};function le(ct){if("function"==typeof window.CustomEvent)return new CustomEvent(ct);var ke=document.createEvent("CustomEvent");return ke.initCustomEvent(ct,!1,!1,void 0),ke}function se(ct,ke,Be,at,st){var At;if(void 0===at&&(at=!0),void 0===st&&(st=!1),"top"===ke)At=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==ke)throw new Error("A proper axis should be provided");At=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function y(ct,ke,Be,at,st){var At=Be[0],li=Be[1],Bt=Be[2],Rt=Be[3],Li=Be[4],si=Be[5];void 0===at&&(at=!0),void 0===st&&(st=!1);var ci=ct.element;ct.reach[Rt]=null,ci[Bt]<1&&(ct.reach[Rt]="start"),ci[Bt]>ct[At]-ct[li]-1&&(ct.reach[Rt]="end"),ke&&(ci.dispatchEvent(le("ps-scroll-"+Rt)),ke<0?ci.dispatchEvent(le("ps-scroll-"+Li)):ke>0&&ci.dispatchEvent(le("ps-scroll-"+si)),at&&function ve(ct,ke){ie(ct,ke),ee(ct,ke)}(ct,Rt)),ct.reach[Rt]&&(ke||st)&&ci.dispatchEvent(le("ps-"+Rt+"-reach-"+ct.reach[Rt]))}(ct,Be,At,at,st)}function i(ct){return parseInt(ct,10)||0}de.prototype.eventElement=function(ke){var Be=this.eventElements.filter(function(at){return at.element===ke})[0];return Be||(Be=new he(ke),this.eventElements.push(Be)),Be},de.prototype.bind=function(ke,Be,at){this.eventElement(ke).bind(Be,at)},de.prototype.unbind=function(ke,Be,at){var st=this.eventElement(ke);st.unbind(Be,at),st.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(st),1)},de.prototype.unbindAll=function(){this.eventElements.forEach(function(ke){return ke.unbindAll()}),this.eventElements=[]},de.prototype.once=function(ke,Be,at){var st=this.eventElement(ke),At=function(li){st.unbind(Be,At),at(li)};st.bind(Be,At)};var u={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function _(ct){var ke=ct.element,Be=Math.floor(ke.scrollTop),at=ke.getBoundingClientRect();ct.containerWidth=Math.ceil(at.width),ct.containerHeight=Math.ceil(at.height),ct.contentWidth=ke.scrollWidth,ct.contentHeight=ke.scrollHeight,ke.contains(ct.scrollbarXRail)||(Z(ke,j_element_rail("x")).forEach(function(st){return w(st)}),ke.appendChild(ct.scrollbarXRail)),ke.contains(ct.scrollbarYRail)||(Z(ke,j_element_rail("y")).forEach(function(st){return w(st)}),ke.appendChild(ct.scrollbarYRail)),!ct.settings.suppressScrollX&&ct.containerWidth+ct.settings.scrollXMarginOffset=ct.railXWidth-ct.scrollbarXWidth&&(ct.scrollbarXLeft=ct.railXWidth-ct.scrollbarXWidth),ct.scrollbarYTop>=ct.railYHeight-ct.scrollbarYHeight&&(ct.scrollbarYTop=ct.railYHeight-ct.scrollbarYHeight),function I(ct,ke){var Be={width:ke.railXWidth},at=Math.floor(ct.scrollTop);Be.left=ke.isRtl?ke.negativeScrollAdjustment+ct.scrollLeft+ke.containerWidth-ke.contentWidth:ct.scrollLeft,ke.isScrollbarXUsingBottom?Be.bottom=ke.scrollbarXBottom-at:Be.top=ke.scrollbarXTop+at,O(ke.scrollbarXRail,Be);var st={top:at,height:ke.railYHeight};ke.isScrollbarYUsingRight?st.right=ke.isRtl?ke.contentWidth-(ke.negativeScrollAdjustment+ct.scrollLeft)-ke.scrollbarYRight-ke.scrollbarYOuterWidth-9:ke.scrollbarYRight-ct.scrollLeft:st.left=ke.isRtl?ke.negativeScrollAdjustment+ct.scrollLeft+2*ke.containerWidth-ke.contentWidth-ke.scrollbarYLeft-ke.scrollbarYOuterWidth:ke.scrollbarYLeft+ct.scrollLeft,O(ke.scrollbarYRail,st),O(ke.scrollbarX,{left:ke.scrollbarXLeft,width:ke.scrollbarXWidth-ke.railBorderXWidth}),O(ke.scrollbarY,{top:ke.scrollbarYTop,height:ke.scrollbarYHeight-ke.railBorderYWidth})}(ke,ct),ct.scrollbarXActive?ke.classList.add(j_state_active("x")):(ke.classList.remove(j_state_active("x")),ct.scrollbarXWidth=0,ct.scrollbarXLeft=0,ke.scrollLeft=!0===ct.isRtl?ct.contentWidth:0),ct.scrollbarYActive?ke.classList.add(j_state_active("y")):(ke.classList.remove(j_state_active("y")),ct.scrollbarYHeight=0,ct.scrollbarYTop=0,ke.scrollTop=0)}function D(ct,ke){return ct.settings.minScrollbarLength&&(ke=Math.max(ke,ct.settings.minScrollbarLength)),ct.settings.maxScrollbarLength&&(ke=Math.min(ke,ct.settings.maxScrollbarLength)),ke}function b(ct,ke){var Be=ke[0],at=ke[1],st=ke[2],At=ke[3],li=ke[4],Bt=ke[5],Rt=ke[6],Li=ke[7],si=ke[8],ci=ct.element,sn=null,Ui=null,Di=null;function Xi(ye){ye.touches&&ye.touches[0]&&(ye[st]=ye.touches[0].pageY),ci[Rt]=sn+Di*(ye[st]-Ui),ie(ct,Li),_(ct),ye.stopPropagation(),ye.preventDefault()}function Ke(){ee(ct,Li),ct[si].classList.remove(j_state_clicking),ct.event.unbind(ct.ownerDocument,"mousemove",Xi)}function _t(ye,qe){sn=ci[Rt],qe&&ye.touches&&(ye[st]=ye.touches[0].pageY),Ui=ye[st],Di=(ct[at]-ct[Be])/(ct[At]-ct[Bt]),qe?ct.event.bind(ct.ownerDocument,"touchmove",Xi):(ct.event.bind(ct.ownerDocument,"mousemove",Xi),ct.event.once(ct.ownerDocument,"mouseup",Ke),ye.preventDefault()),ct[si].classList.add(j_state_clicking),ye.stopPropagation()}ct.event.bind(ct[li],"mousedown",function(ye){_t(ye)}),ct.event.bind(ct[li],"touchstart",function(ye){_t(ye,!0)})}var xe={"click-rail":function x(ct){ct.event.bind(ct.scrollbarY,"mousedown",function(Be){return Be.stopPropagation()}),ct.event.bind(ct.scrollbarYRail,"mousedown",function(Be){var at=Be.pageY-window.pageYOffset-ct.scrollbarYRail.getBoundingClientRect().top;ct.element.scrollTop+=(at>ct.scrollbarYTop?1:-1)*ct.containerHeight,_(ct),Be.stopPropagation()}),ct.event.bind(ct.scrollbarX,"mousedown",function(Be){return Be.stopPropagation()}),ct.event.bind(ct.scrollbarXRail,"mousedown",function(Be){var at=Be.pageX-window.pageXOffset-ct.scrollbarXRail.getBoundingClientRect().left;ct.element.scrollLeft+=(at>ct.scrollbarXLeft?1:-1)*ct.containerWidth,_(ct),Be.stopPropagation()})},"drag-thumb":function r(ct){b(ct,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),b(ct,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function U(ct){var ke=ct.element;ct.event.bind(ct.ownerDocument,"keydown",function(At){if(!(At.isDefaultPrevented&&At.isDefaultPrevented()||At.defaultPrevented)&&(P(ke,":hover")||P(ct.scrollbarX,":focus")||P(ct.scrollbarY,":focus"))){var li=document.activeElement?document.activeElement:ct.ownerDocument.activeElement;if(li){if("IFRAME"===li.tagName)li=li.contentDocument.activeElement;else for(;li.shadowRoot;)li=li.shadowRoot.activeElement;if(function a(ct){return P(ct,"input,[contenteditable]")||P(ct,"select,[contenteditable]")||P(ct,"textarea,[contenteditable]")||P(ct,"button,[contenteditable]")}(li))return}var Bt=0,Rt=0;switch(At.which){case 37:Bt=At.metaKey?-ct.contentWidth:At.altKey?-ct.containerWidth:-30;break;case 38:Rt=At.metaKey?ct.contentHeight:At.altKey?ct.containerHeight:30;break;case 39:Bt=At.metaKey?ct.contentWidth:At.altKey?ct.containerWidth:30;break;case 40:Rt=At.metaKey?-ct.contentHeight:At.altKey?-ct.containerHeight:-30;break;case 32:Rt=At.shiftKey?ct.containerHeight:-ct.containerHeight;break;case 33:Rt=ct.containerHeight;break;case 34:Rt=-ct.containerHeight;break;case 36:Rt=ct.contentHeight;break;case 35:Rt=-ct.contentHeight;break;default:return}ct.settings.suppressScrollX&&0!==Bt||ct.settings.suppressScrollY&&0!==Rt||(ke.scrollTop-=Rt,ke.scrollLeft+=Bt,_(ct),function st(At,li){var Bt=Math.floor(ke.scrollTop);if(0===At){if(!ct.scrollbarYActive)return!1;if(0===Bt&&li>0||Bt>=ct.contentHeight-ct.containerHeight&&li<0)return!ct.settings.wheelPropagation}var Rt=ke.scrollLeft;if(0===li){if(!ct.scrollbarXActive)return!1;if(0===Rt&&At<0||Rt>=ct.contentWidth-ct.containerWidth&&At>0)return!ct.settings.wheelPropagation}return!0}(Bt,Rt)&&At.preventDefault())}})},wheel:function N(ct){var ke=ct.element;function At(li){var Bt=function at(li){var Bt=li.deltaX,Rt=-1*li.deltaY;return(void 0===Bt||void 0===Rt)&&(Bt=-1*li.wheelDeltaX/6,Rt=li.wheelDeltaY/6),li.deltaMode&&1===li.deltaMode&&(Bt*=10,Rt*=10),Bt!=Bt&&Rt!=Rt&&(Bt=0,Rt=li.wheelDelta),li.shiftKey?[-Rt,-Bt]:[Bt,Rt]}(li),Rt=Bt[0],Li=Bt[1];if(!function st(li,Bt,Rt){if(!u.isWebKit&&ke.querySelector("select:focus"))return!0;if(!ke.contains(li))return!1;for(var Li=li;Li&&Li!==ke;){if(Li.classList.contains(j_element_consuming))return!0;var si=L(Li);if(Rt&&si.overflowY.match(/(scroll|auto)/)){var ci=Li.scrollHeight-Li.clientHeight;if(ci>0&&(Li.scrollTop>0&&Rt<0||Li.scrollTop0))return!0}if(Bt&&si.overflowX.match(/(scroll|auto)/)){var sn=Li.scrollWidth-Li.clientWidth;if(sn>0&&(Li.scrollLeft>0&&Bt<0||Li.scrollLeft0))return!0}Li=Li.parentNode}return!1}(li.target,Rt,Li)){var si=!1;ct.settings.useBothWheelAxes?ct.scrollbarYActive&&!ct.scrollbarXActive?(Li?ke.scrollTop-=Li*ct.settings.wheelSpeed:ke.scrollTop+=Rt*ct.settings.wheelSpeed,si=!0):ct.scrollbarXActive&&!ct.scrollbarYActive&&(Rt?ke.scrollLeft+=Rt*ct.settings.wheelSpeed:ke.scrollLeft-=Li*ct.settings.wheelSpeed,si=!0):(ke.scrollTop-=Li*ct.settings.wheelSpeed,ke.scrollLeft+=Rt*ct.settings.wheelSpeed),_(ct),si=si||function Be(li,Bt){var Rt=Math.floor(ke.scrollTop),Li=0===ke.scrollTop,si=Rt+ke.offsetHeight===ke.scrollHeight,ci=0===ke.scrollLeft,sn=ke.scrollLeft+ke.offsetWidth===ke.scrollWidth;return!(Math.abs(Bt)>Math.abs(li)?Li||si:ci||sn)||!ct.settings.wheelPropagation}(Rt,Li),si&&!li.ctrlKey&&(li.stopPropagation(),li.preventDefault())}}void 0!==window.onwheel?ct.event.bind(ke,"wheel",At):void 0!==window.onmousewheel&&ct.event.bind(ke,"mousewheel",At)},touch:function z(ct){if(u.supportsTouch||u.supportsIePointer){var ke=ct.element,st={},At=0,li={},Bt=null;u.supportsTouch?(ct.event.bind(ke,"touchstart",si),ct.event.bind(ke,"touchmove",sn),ct.event.bind(ke,"touchend",Ui)):u.supportsIePointer&&(window.PointerEvent?(ct.event.bind(ke,"pointerdown",si),ct.event.bind(ke,"pointermove",sn),ct.event.bind(ke,"pointerup",Ui)):window.MSPointerEvent&&(ct.event.bind(ke,"MSPointerDown",si),ct.event.bind(ke,"MSPointerMove",sn),ct.event.bind(ke,"MSPointerUp",Ui)))}function at(Di,Xi){ke.scrollTop-=Xi,ke.scrollLeft-=Di,_(ct)}function Rt(Di){return Di.targetTouches?Di.targetTouches[0]:Di}function Li(Di){return!(Di.pointerType&&"pen"===Di.pointerType&&0===Di.buttons||!(Di.targetTouches&&1===Di.targetTouches.length||Di.pointerType&&"mouse"!==Di.pointerType&&Di.pointerType!==Di.MSPOINTER_TYPE_MOUSE))}function si(Di){if(Li(Di)){var Xi=Rt(Di);st.pageX=Xi.pageX,st.pageY=Xi.pageY,At=(new Date).getTime(),null!==Bt&&clearInterval(Bt)}}function sn(Di){if(Li(Di)){var Xi=Rt(Di),Ke={pageX:Xi.pageX,pageY:Xi.pageY},_t=Ke.pageX-st.pageX,ye=Ke.pageY-st.pageY;if(function ci(Di,Xi,Ke){if(!ke.contains(Di))return!1;for(var _t=Di;_t&&_t!==ke;){if(_t.classList.contains(j_element_consuming))return!0;var ye=L(_t);if(Ke&&ye.overflowY.match(/(scroll|auto)/)){var qe=_t.scrollHeight-_t.clientHeight;if(qe>0&&(_t.scrollTop>0&&Ke<0||_t.scrollTop0))return!0}if(Xi&&ye.overflowX.match(/(scroll|auto)/)){var yt=_t.scrollWidth-_t.clientWidth;if(yt>0&&(_t.scrollLeft>0&&Xi<0||_t.scrollLeft0))return!0}_t=_t.parentNode}return!1}(Di.target,_t,ye))return;at(_t,ye),st=Ke;var qe=(new Date).getTime(),yt=qe-At;yt>0&&(li.x=_t/yt,li.y=ye/yt,At=qe),function Be(Di,Xi){var Ke=Math.floor(ke.scrollTop),_t=ke.scrollLeft,ye=Math.abs(Di),qe=Math.abs(Xi);if(qe>ye){if(Xi<0&&Ke===ct.contentHeight-ct.containerHeight||Xi>0&&0===Ke)return 0===window.scrollY&&Xi>0&&u.isChrome}else if(ye>qe&&(Di<0&&_t===ct.contentWidth-ct.containerWidth||Di>0&&0===_t))return!0;return!0}(_t,ye)&&Di.preventDefault()}}function Ui(){ct.settings.swipeEasing&&(clearInterval(Bt),Bt=setInterval(function(){ct.isInitialized?clearInterval(Bt):li.x||li.y?Math.abs(li.x)<.01&&Math.abs(li.y)<.01?clearInterval(Bt):(at(30*li.x,30*li.y),li.x*=.8,li.y*=.8):clearInterval(Bt)},10))}}},Re=function(ke,Be){var at=this;if(void 0===Be&&(Be={}),"string"==typeof ke&&(ke=document.querySelector(ke)),!ke||!ke.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var st in this.element=ke,ke.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},Be)this.settings[st]=Be[st];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var si,Li,At=function(){return ke.classList.add(j_state_focus)},li=function(){return ke.classList.remove(j_state_focus)};this.isRtl="rtl"===L(ke).direction,!0===this.isRtl&&ke.classList.add("ps__rtl"),this.isNegativeScroll=(Li=ke.scrollLeft,ke.scrollLeft=-1,si=ke.scrollLeft<0,ke.scrollLeft=Li,si),this.negativeScrollAdjustment=this.isNegativeScroll?ke.scrollWidth-ke.clientWidth:0,this.event=new de,this.ownerDocument=ke.ownerDocument||document,this.scrollbarXRail=A(j_element_rail("x")),ke.appendChild(this.scrollbarXRail),this.scrollbarX=A(j_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",At),this.event.bind(this.scrollbarX,"blur",li),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var Bt=L(this.scrollbarXRail);this.scrollbarXBottom=parseInt(Bt.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=i(Bt.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=i(Bt.borderLeftWidth)+i(Bt.borderRightWidth),O(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=i(Bt.marginLeft)+i(Bt.marginRight),O(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=A(j_element_rail("y")),ke.appendChild(this.scrollbarYRail),this.scrollbarY=A(j_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",At),this.event.bind(this.scrollbarY,"blur",li),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var Rt=L(this.scrollbarYRail);this.scrollbarYRight=parseInt(Rt.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=i(Rt.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function p(ct){var ke=L(ct);return i(ke.width)+i(ke.paddingLeft)+i(ke.paddingRight)+i(ke.borderLeftWidth)+i(ke.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=i(Rt.borderTopWidth)+i(Rt.borderBottomWidth),O(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=i(Rt.marginTop)+i(Rt.marginBottom),O(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:ke.scrollLeft<=0?"start":ke.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:ke.scrollTop<=0?"start":ke.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(Li){return xe[Li](at)}),this.lastScrollTop=Math.floor(ke.scrollTop),this.lastScrollLeft=ke.scrollLeft,this.event.bind(this.element,"scroll",function(Li){return at.onScroll(Li)}),_(this)};Re.prototype.update=function(){!this.isAlive||(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,O(this.scrollbarXRail,{display:"block"}),O(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=i(L(this.scrollbarXRail).marginLeft)+i(L(this.scrollbarXRail).marginRight),this.railYMarginHeight=i(L(this.scrollbarYRail).marginTop)+i(L(this.scrollbarYRail).marginBottom),O(this.scrollbarXRail,{display:"none"}),O(this.scrollbarYRail,{display:"none"}),_(this),se(this,"top",0,!1,!0),se(this,"left",0,!1,!0),O(this.scrollbarXRail,{display:""}),O(this.scrollbarYRail,{display:""}))},Re.prototype.onScroll=function(ke){!this.isAlive||(_(this),se(this,"top",this.element.scrollTop-this.lastScrollTop),se(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Re.prototype.destroy=function(){!this.isAlive||(this.event.unbindAll(),w(this.scrollbarX),w(this.scrollbarY),w(this.scrollbarXRail),w(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Re.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(ke){return!ke.match(/^ps([-_].+|)$/)}).join(" ")};const ze=Re;var Le=function(){if("undefined"!=typeof Map)return Map;function ct(ke,Be){var at=-1;return ke.some(function(st,At){return st[0]===Be&&(at=At,!0)}),at}return function(){function ke(){this.__entries__=[]}return Object.defineProperty(ke.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),ke.prototype.get=function(Be){var at=ct(this.__entries__,Be),st=this.__entries__[at];return st&&st[1]},ke.prototype.set=function(Be,at){var st=ct(this.__entries__,Be);~st?this.__entries__[st][1]=at:this.__entries__.push([Be,at])},ke.prototype.delete=function(Be){var at=this.__entries__,st=ct(at,Be);~st&&at.splice(st,1)},ke.prototype.has=function(Be){return!!~ct(this.__entries__,Be)},ke.prototype.clear=function(){this.__entries__.splice(0)},ke.prototype.forEach=function(Be,at){void 0===at&&(at=null);for(var st=0,At=this.__entries__;st0},ct.prototype.connect_=function(){!K||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ne?(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)},ct.prototype.disconnect_=function(){!K||!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)},ct.prototype.onTransitionEnd_=function(ke){var Be=ke.propertyName,at=void 0===Be?"":Be;Fe.some(function(At){return!!~at.indexOf(At)})&&this.refresh()},ct.getInstance=function(){return this.instance_||(this.instance_=new ct),this.instance_},ct.instance_=null,ct}(),Oe=function(ct,ke){for(var Be=0,at=Object.keys(ke);Be0},ct}(),Ii="undefined"!=typeof WeakMap?new WeakMap:new Le,jt=function ct(ke){if(!(this instanceof ct))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var Be=ue.getInstance(),at=new Vt(ke,Be,this);Ii.set(this,at)};["observe","unobserve","disconnect"].forEach(function(ct){jt.prototype[ct]=function(){var ke;return(ke=Ii.get(this))[ct].apply(ke,arguments)}});const ki=void 0!==we.ResizeObserver?we.ResizeObserver:jt,Ze=new R.OlP("PERFECT_SCROLLBAR_CONFIG");class Ee{constructor(ke,Be,at,st){this.x=ke,this.y=Be,this.w=at,this.h=st}}class G{constructor(ke,Be){this.x=ke,this.y=Be}}const ge=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class De{constructor(ke={}){this.assign(ke)}assign(ke={}){for(const Be in ke)this[Be]=ke[Be]}}let et=(()=>{class ct{constructor(Be,at,st,At,li){this.zone=Be,this.differs=at,this.elementRef=st,this.platformId=At,this.defaults=li,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new e.x,this.disabled=!1,this.psScrollY=new R.vpe,this.psScrollX=new R.vpe,this.psScrollUp=new R.vpe,this.psScrollDown=new R.vpe,this.psScrollLeft=new R.vpe,this.psScrollRight=new R.vpe,this.psYReachEnd=new R.vpe,this.psYReachStart=new R.vpe,this.psXReachEnd=new R.vpe,this.psXReachStart=new R.vpe}ngOnInit(){if(!this.disabled&&(0,s.NF)(this.platformId)){const Be=new De(this.defaults);Be.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new ze(this.elementRef.nativeElement,Be)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new ki(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{ge.forEach(at=>{const st=at.replace(/([A-Z])/g,At=>`-${At.toLowerCase()}`);(0,t.R)(this.elementRef.nativeElement,st).pipe((0,C.e)(20),(0,o.R)(this.ngDestroy)).subscribe(At=>{this[at].emit(At)})})})}}ngOnDestroy(){(0,s.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&(0,s.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(Be){Be.disabled&&!Be.disabled.isFirstChange()&&(0,s.NF)(this.platformId)&&Be.disabled.currentValue!==Be.disabled.previousValue&&(!0===Be.disabled.currentValue?this.ngOnDestroy():!1===Be.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){"undefined"!=typeof window&&(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(Be){}},0))}geometry(Be="scroll"){return new Ee(this.elementRef.nativeElement[Be+"Left"],this.elementRef.nativeElement[Be+"Top"],this.elementRef.nativeElement[Be+"Width"],this.elementRef.nativeElement[Be+"Height"])}position(Be=!1){return!Be&&this.instance?new G(this.instance.reach.x||0,this.instance.reach.y||0):new G(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(Be="any"){const at=this.elementRef.nativeElement;return"any"===Be?at.classList.contains("ps--active-x")||at.classList.contains("ps--active-y"):"both"===Be?at.classList.contains("ps--active-x")&&at.classList.contains("ps--active-y"):at.classList.contains("ps--active-"+Be)}scrollTo(Be,at,st){this.disabled||(null==at&&null==st?this.animateScrolling("scrollTop",Be,st):(null!=Be&&this.animateScrolling("scrollLeft",Be,st),null!=at&&this.animateScrolling("scrollTop",at,st)))}scrollToX(Be,at){this.animateScrolling("scrollLeft",Be,at)}scrollToY(Be,at){this.animateScrolling("scrollTop",Be,at)}scrollToTop(Be,at){this.animateScrolling("scrollTop",Be||0,at)}scrollToLeft(Be,at){this.animateScrolling("scrollLeft",Be||0,at)}scrollToRight(Be,at){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(Be||0),at)}scrollToBottom(Be,at){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(Be||0),at)}scrollToElement(Be,at,st){if("string"==typeof Be&&(Be=this.elementRef.nativeElement.querySelector(Be)),Be){const At=Be.getBoundingClientRect(),li=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",At.left-li.left+this.elementRef.nativeElement.scrollLeft+(at||0),st),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",At.top-li.top+this.elementRef.nativeElement.scrollTop+(at||0),st)}}animateScrolling(Be,at,st){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),st&&"undefined"!=typeof window){if(at!==this.elementRef.nativeElement[Be]){let At=0,li=0,Bt=performance.now(),Rt=this.elementRef.nativeElement[Be];const Li=(Rt-at)/2,si=ci=>{li+=Math.PI/(st/(ci-Bt)),At=Math.round(at+Li+Li*Math.cos(li)),this.elementRef.nativeElement[Be]===Rt&&(li>=Math.PI?this.animateScrolling(Be,at,0):(this.elementRef.nativeElement[Be]=At,Rt=this.elementRef.nativeElement[Be],Bt=ci,this.animation=window.requestAnimationFrame(si)))};window.requestAnimationFrame(si)}}else this.elementRef.nativeElement[Be]=at}}return ct.\u0275fac=function(Be){return new(Be||ct)(R.Y36(R.R0b),R.Y36(R.aQg),R.Y36(R.SBq),R.Y36(R.Lbi),R.Y36(Ze,8))},ct.\u0275dir=R.lG2({type:ct,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["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"],features:[R.TTD]}),ct})(),Jt=(()=>{class ct{}return ct.\u0275fac=function(Be){return new(Be||ct)},ct.\u0275mod=R.oAB({type:ct}),ct.\u0275inj=R.cJS({imports:[[s.ez],s.ez]}),ct})()},5768:(Ve,Q,m)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var e=m(842);Object.keys(e).forEach(function(t){"default"!==t&&Object.defineProperty(Q,t,{enumerable:!0,get:function(){return e[t]}})})},2999:(Ve,Q,m)=>{"use strict";var e=m(7977);Q.certificate=m(2390);var t=e.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=t;var v=e.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});Q.RSAPublicKey=v;var C=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())});Q.PublicKey=C;var o=e.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())}),M=e.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(o),this.key("subjectPrivateKey").octstr())});Q.PrivateKey=M;var l=e.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=l;var R=e.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=R,Q.DSAparam=e.define("DSAparam",function(){this.int()});var s=e.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(L),this.key("publicKey").optional().explicit(1).bitstr())});Q.ECPrivateKey=s;var L=e.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});Q.signature=e.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},2390:(Ve,Q,m)=>{"use strict";var e=m(7977),t=e.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),v=e.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),C=e.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),o=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(C),this.key("subjectPublicKey").bitstr())}),M=e.define("RelativeDistinguishedName",function(){this.setof(v)}),l=e.define("RDNSequence",function(){this.seqof(M)}),R=e.define("Name",function(){this.choice({rdnSequence:this.use(l)})}),s=e.define("Validity",function(){this.seq().obj(this.key("notBefore").use(t),this.key("notAfter").use(t))}),L=e.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),O=e.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(C),this.key("issuer").use(R),this.key("validity").use(s),this.key("subject").use(R),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(L).optional())}),A=e.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(O),this.key("signatureAlgorithm").use(C),this.key("signatureValue").bitstr())});Ve.exports=A},5269:(Ve,Q,m)=>{var e=/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,t=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,v=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,C=m(347),o=m(4330),M=m(3502).Buffer;Ve.exports=function(l,R){var O,s=l.toString(),L=s.match(e);if(L){var E="aes"+L[1],P=M.from(L[2],"hex"),w=M.from(L[3].replace(/[\r\n]/g,""),"base64"),Z=C(R,P.slice(0,8),parseInt(L[1],10)).key,j=[],W=o.createDecipheriv(E,Z,P);j.push(W.update(w)),j.push(W.final()),O=M.concat(j)}else{var A=s.match(v);O=M.from(A[2].replace(/[\r\n]/g,""),"base64")}return{tag:s.match(t)[1],data:O}}},2772:(Ve,Q,m)=>{var e=m(2999),t=m(2562),v=m(5269),C=m(4330),o=m(9357),M=m(3502).Buffer;function l(s){var L;"object"==typeof s&&!M.isBuffer(s)&&(L=s.passphrase,s=s.key),"string"==typeof s&&(s=M.from(s));var P,w,O=v(s,L),A=O.tag,E=O.data;switch(A){case"CERTIFICATE":w=e.certificate.decode(E,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(w||(w=e.PublicKey.decode(E,"der")),P=w.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return e.RSAPublicKey.decode(w.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return w.subjectPrivateKey=w.subjectPublicKey,{type:"ec",data:w};case"1.2.840.10040.4.1":return w.algorithm.params.pub_key=e.DSAparam.decode(w.subjectPublicKey.data,"der"),{type:"dsa",data:w.algorithm.params};default:throw new Error("unknown key id "+P)}case"ENCRYPTED PRIVATE KEY":E=function R(s,L){var O=s.algorithm.decrypt.kde.kdeparams.salt,A=parseInt(s.algorithm.decrypt.kde.kdeparams.iters.toString(),10),E=t[s.algorithm.decrypt.cipher.algo.join(".")],P=s.algorithm.decrypt.cipher.iv,w=s.subjectPrivateKey,Z=parseInt(E.split("-")[1],10)/8,j=o.pbkdf2Sync(L,O,A,Z,"sha1"),W=C.createDecipheriv(E,j,P),ie=[];return ie.push(W.update(w)),ie.push(W.final()),M.concat(ie)}(E=e.EncryptedPrivateKey.decode(E,"der"),L);case"PRIVATE KEY":switch(P=(w=e.PrivateKey.decode(E,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return e.RSAPrivateKey.decode(w.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:w.algorithm.curve,privateKey:e.ECPrivateKey.decode(w.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return w.algorithm.params.priv_key=e.DSAparam.decode(w.subjectPrivateKey,"der"),{type:"dsa",params:w.algorithm.params};default:throw new Error("unknown key id "+P)}case"RSA PUBLIC KEY":return e.RSAPublicKey.decode(E,"der");case"RSA PRIVATE KEY":return e.RSAPrivateKey.decode(E,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:e.DSAPrivateKey.decode(E,"der")};case"EC PRIVATE KEY":return{curve:(E=e.ECPrivateKey.decode(E,"der")).parameters.value,privateKey:E.privateKey};default:throw new Error("unknown key type "+A)}}Ve.exports=l,l.signature=e.signature},9357:(Ve,Q,m)=>{Q.pbkdf2=m(415),Q.pbkdf2Sync=m(7472)},415:(Ve,Q,m)=>{var M,O,e=m(3502).Buffer,t=m(2697),v=m(8867),C=m(7472),o=m(4566),l=global.crypto&&global.crypto.subtle,R={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"},s=[];function A(){return O||(O=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function E(w,Z,j,W,ie){return l.importKey("raw",w,{name:"PBKDF2"},!1,["deriveBits"]).then(function(ee){return l.deriveBits({name:"PBKDF2",salt:Z,iterations:j,hash:{name:ie}},ee,W<<3)}).then(function(ee){return e.from(ee)})}Ve.exports=function(w,Z,j,W,ie,ee){"function"==typeof ie&&(ee=ie,ie=void 0);var ve=R[(ie=ie||"sha1").toLowerCase()];if(ve&&"function"==typeof global.Promise){if(t(j,W),w=o(w,v,"Password"),Z=o(Z,v,"Salt"),"function"!=typeof ee)throw new Error("No callback provided to pbkdf2");!function P(w,Z){w.then(function(j){A()(function(){Z(null,j)})},function(j){A()(function(){Z(j)})})}(function L(w){if(global.process&&!global.process.browser||!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(void 0!==s[w])return s[w];var Z=E(M=M||e.alloc(8),M,10,128,w).then(function(){return!0}).catch(function(){return!1});return s[w]=Z,Z}(ve).then(function(he){return he?E(w,Z,j,W,ve):C(w,Z,j,W,ie)}),ee)}else A()(function(){var he;try{he=C(w,Z,j,W,ie)}catch(re){return ee(re)}ee(null,he)})}},8867:Ve=>{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",Ve.exports=Q},2697:Ve=>{var Q=Math.pow(2,30)-1;Ve.exports=function(m,e){if("number"!=typeof m)throw new TypeError("Iterations not a number");if(m<0)throw new TypeError("Bad iterations");if("number"!=typeof e)throw new TypeError("Key length not a number");if(e<0||e>Q||e!=e)throw new TypeError("Bad key length")}},7472:(Ve,Q,m)=>{var e=m(5640),t=m(5634),v=m(5244),C=m(3502).Buffer,o=m(2697),M=m(8867),l=m(4566),R=C.alloc(128),s={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function L(E,P,w){var Z=function O(E){return"rmd160"===E||"ripemd160"===E?function w(Z){return(new t).update(Z).digest()}:"md5"===E?e:function P(Z){return v(E).update(Z).digest()}}(E),j="sha512"===E||"sha384"===E?128:64;P.length>j?P=Z(P):P.length{var e=m(3502).Buffer;Ve.exports=function(t,v,C){if(e.isBuffer(t))return t;if("string"==typeof t)return e.from(t,v);if(ArrayBuffer.isView(t))return e.from(t.buffer);throw new TypeError(C+" must be a string, a Buffer, a typed array or a DataView")}},3701:(Ve,Q,m)=>{Q.publicEncrypt=m(6562),Q.privateDecrypt=m(6705),Q.privateEncrypt=function(t,v){return Q.publicEncrypt(t,v,!0)},Q.publicDecrypt=function(t,v){return Q.privateDecrypt(t,v,!0)}},6945:(Ve,Q,m)=>{var e=m(6386),t=m(3502).Buffer;function v(C){var o=t.allocUnsafe(4);return o.writeUInt32BE(C,0),o}Ve.exports=function(C,o){for(var R,M=t.alloc(0),l=0;M.length=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function R(y,i,a){var p=l(y,a);return a-1>=i&&(p|=l(y,a-1)<<4),p}function s(y,i,a,p){for(var u=0,_=Math.min(y.length,a),D=i;D<_;D++){var I=y.charCodeAt(D)-48;u*=p,u+=I>=49?I-49+10:I>=17?I-17+10:I}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),v(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(D=i[u]|i[u-1]<<8|i[u-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u=a;u-=2)I=R(i,a,u)<<_,this.words[D]|=67108863&I,_>=18?(_-=18,this.words[D+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u=18?(_-=18,this.words[D+=1]|=I>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var D=i.length-p,I=D%u,x=Math.min(D,D-I)+p,r=0,b=p;b1&&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 L=["","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"],O=[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],A=[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 P(y,i,a){a.negative=i.negative^y.negative;var p=y.length+i.length|0;a.length=p,p=p-1|0;var u=0|y.words[0],_=0|i.words[0],D=u*_,x=D/67108864|0;a.words[0]=67108863&D;for(var r=1;r>>26,U=67108863&x,N=Math.min(r,i.length-1),z=Math.max(0,r-y.length+1);z<=N;z++)b+=(D=(u=0|y.words[r-z|0])*(_=0|i.words[z])+U)/67108864|0,U=67108863&D;a.words[r]=0|U,x=0|b}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,D=0;D>>24-u&16777215)||D!==this.length-1?L[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,D--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=O[i],b=A[i];p="";var U=this.clone();for(U.negative=0;!U.isZero();){var N=U.modn(b).toString(i);p=(U=U.idivn(b)).isZero()?N+p:L[r-N.length]+N+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}v(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&v(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return v(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);v(u<=_,"byte array longer than desired length"),v(_>0,"Requested array length <= 0"),this.strip();var x,r,D="le"===a,I=new i(_),b=this.clone();if(D){for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),I[r]=x;for(;r<_;r++)I[r]=0}else{for(r=0;r<_-u;r++)I[r]=0;for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),I[_-r-1]=x}return I},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;pi.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;ui.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){v("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){v("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<i.length?(p=this,u=i):(p=i,u=this);for(var _=0,D=0;D>>26;for(;0!==_&&D>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;Di.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var D=0,I=0;I<_.length;I++)D=(a=(0|u.words[I])-(0|_.words[I])+D)>>26,this.words[I]=67108863&a;for(;0!==D&&I>26,this.words[I]=67108863&a;if(0===D&&I>>13,be=0|u[1],xe=8191&be,Re=be>>>13,ze=0|u[2],Le=8191&ze,K=ze>>>13,we=0|u[3],Y=8191&we,ae=we>>>13,Ge=0|u[4],vt=8191&Ge,Fe=Ge>>>13,Ne=0|u[5],ue=8191&Ne,Oe=Ne>>>13,Pe=0|u[6],q=8191&Pe,$=Pe>>>13,ce=0|u[7],Me=8191&ce,Ue=ce>>>13,lt=0|u[8],nt=8191<,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,ki=0|_[2],ai=8191&ki,hi=ki>>>13,Ze=0|_[3],Ee=8191&Ze,G=Ze>>>13,ge=0|_[4],De=8191&ge,et=ge>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],ke=8191&ct,Be=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(I+(x=Math.imul(N,Ft))|0)+((8191&(r=(r=Math.imul(N,Vt))+Math.imul(z,Ft)|0))<<13)|0;I=((b=Math.imul(z,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(xe,Ft),r=(r=Math.imul(xe,Vt))+Math.imul(Re,Ft)|0,b=Math.imul(Re,Vt);var Ui=(I+(x=x+Math.imul(N,jt)|0)|0)+((8191&(r=(r=r+Math.imul(N,ei)|0)+Math.imul(z,jt)|0))<<13)|0;I=((b=b+Math.imul(z,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Le,Ft),r=(r=Math.imul(Le,Vt))+Math.imul(K,Ft)|0,b=Math.imul(K,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ei)|0)+Math.imul(Re,jt)|0,b=b+Math.imul(Re,ei)|0;var Di=(I+(x=x+Math.imul(N,ai)|0)|0)+((8191&(r=(r=r+Math.imul(N,hi)|0)+Math.imul(z,ai)|0))<<13)|0;I=((b=b+Math.imul(z,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(Y,Ft),r=(r=Math.imul(Y,Vt))+Math.imul(ae,Ft)|0,b=Math.imul(ae,Vt),x=x+Math.imul(Le,jt)|0,r=(r=r+Math.imul(Le,ei)|0)+Math.imul(K,jt)|0,b=b+Math.imul(K,ei)|0,x=x+Math.imul(xe,ai)|0,r=(r=r+Math.imul(xe,hi)|0)+Math.imul(Re,ai)|0,b=b+Math.imul(Re,hi)|0;var Xi=(I+(x=x+Math.imul(N,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(N,G)|0)+Math.imul(z,Ee)|0))<<13)|0;I=((b=b+Math.imul(z,G)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Fe,Ft)|0,b=Math.imul(Fe,Vt),x=x+Math.imul(Y,jt)|0,r=(r=r+Math.imul(Y,ei)|0)+Math.imul(ae,jt)|0,b=b+Math.imul(ae,ei)|0,x=x+Math.imul(Le,ai)|0,r=(r=r+Math.imul(Le,hi)|0)+Math.imul(K,ai)|0,b=b+Math.imul(K,hi)|0,x=x+Math.imul(xe,Ee)|0,r=(r=r+Math.imul(xe,G)|0)+Math.imul(Re,Ee)|0,b=b+Math.imul(Re,G)|0;var Ke=(I+(x=x+Math.imul(N,De)|0)|0)+((8191&(r=(r=r+Math.imul(N,et)|0)+Math.imul(z,De)|0))<<13)|0;I=((b=b+Math.imul(z,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(ue,Ft),r=(r=Math.imul(ue,Vt))+Math.imul(Oe,Ft)|0,b=Math.imul(Oe,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Fe,jt)|0,b=b+Math.imul(Fe,ei)|0,x=x+Math.imul(Y,ai)|0,r=(r=r+Math.imul(Y,hi)|0)+Math.imul(ae,ai)|0,b=b+Math.imul(ae,hi)|0,x=x+Math.imul(Le,Ee)|0,r=(r=r+Math.imul(Le,G)|0)+Math.imul(K,Ee)|0,b=b+Math.imul(K,G)|0,x=x+Math.imul(xe,De)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Re,De)|0,b=b+Math.imul(Re,et)|0;var _t=(I+(x=x+Math.imul(N,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Jt)|0)+Math.imul(z,Nt)|0))<<13)|0;I=((b=b+Math.imul(z,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,b=Math.imul($,Vt),x=x+Math.imul(ue,jt)|0,r=(r=r+Math.imul(ue,ei)|0)+Math.imul(Oe,jt)|0,b=b+Math.imul(Oe,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Fe,ai)|0,b=b+Math.imul(Fe,hi)|0,x=x+Math.imul(Y,Ee)|0,r=(r=r+Math.imul(Y,G)|0)+Math.imul(ae,Ee)|0,b=b+Math.imul(ae,G)|0,x=x+Math.imul(Le,De)|0,r=(r=r+Math.imul(Le,et)|0)+Math.imul(K,De)|0,b=b+Math.imul(K,et)|0,x=x+Math.imul(xe,Nt)|0,r=(r=r+Math.imul(xe,Jt)|0)+Math.imul(Re,Nt)|0,b=b+Math.imul(Re,Jt)|0;var ye=(I+(x=x+Math.imul(N,ke)|0)|0)+((8191&(r=(r=r+Math.imul(N,Be)|0)+Math.imul(z,ke)|0))<<13)|0;I=((b=b+Math.imul(z,Be)|0)+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,x=Math.imul(Me,Ft),r=(r=Math.imul(Me,Vt))+Math.imul(Ue,Ft)|0,b=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,b=b+Math.imul($,ei)|0,x=x+Math.imul(ue,ai)|0,r=(r=r+Math.imul(ue,hi)|0)+Math.imul(Oe,ai)|0,b=b+Math.imul(Oe,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,G)|0)+Math.imul(Fe,Ee)|0,b=b+Math.imul(Fe,G)|0,x=x+Math.imul(Y,De)|0,r=(r=r+Math.imul(Y,et)|0)+Math.imul(ae,De)|0,b=b+Math.imul(ae,et)|0,x=x+Math.imul(Le,Nt)|0,r=(r=r+Math.imul(Le,Jt)|0)+Math.imul(K,Nt)|0,b=b+Math.imul(K,Jt)|0,x=x+Math.imul(xe,ke)|0,r=(r=r+Math.imul(xe,Be)|0)+Math.imul(Re,ke)|0,b=b+Math.imul(Re,Be)|0;var qe=(I+(x=x+Math.imul(N,st)|0)|0)+((8191&(r=(r=r+Math.imul(N,At)|0)+Math.imul(z,st)|0))<<13)|0;I=((b=b+Math.imul(z,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Me,jt)|0,r=(r=r+Math.imul(Me,ei)|0)+Math.imul(Ue,jt)|0,b=b+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,b=b+Math.imul($,hi)|0,x=x+Math.imul(ue,Ee)|0,r=(r=r+Math.imul(ue,G)|0)+Math.imul(Oe,Ee)|0,b=b+Math.imul(Oe,G)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Fe,De)|0,b=b+Math.imul(Fe,et)|0,x=x+Math.imul(Y,Nt)|0,r=(r=r+Math.imul(Y,Jt)|0)+Math.imul(ae,Nt)|0,b=b+Math.imul(ae,Jt)|0,x=x+Math.imul(Le,ke)|0,r=(r=r+Math.imul(Le,Be)|0)+Math.imul(K,ke)|0,b=b+Math.imul(K,Be)|0,x=x+Math.imul(xe,st)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Re,st)|0,b=b+Math.imul(Re,At)|0;var yt=(I+(x=x+Math.imul(N,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(N,Rt)|0)+Math.imul(z,Bt)|0))<<13)|0;I=((b=b+Math.imul(z,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,b=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,b=b+Math.imul(ft,ei)|0,x=x+Math.imul(Me,ai)|0,r=(r=r+Math.imul(Me,hi)|0)+Math.imul(Ue,ai)|0,b=b+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,G)|0)+Math.imul($,Ee)|0,b=b+Math.imul($,G)|0,x=x+Math.imul(ue,De)|0,r=(r=r+Math.imul(ue,et)|0)+Math.imul(Oe,De)|0,b=b+Math.imul(Oe,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Fe,Nt)|0,b=b+Math.imul(Fe,Jt)|0,x=x+Math.imul(Y,ke)|0,r=(r=r+Math.imul(Y,Be)|0)+Math.imul(ae,ke)|0,b=b+Math.imul(ae,Be)|0,x=x+Math.imul(Le,st)|0,r=(r=r+Math.imul(Le,At)|0)+Math.imul(K,st)|0,b=b+Math.imul(K,At)|0,x=x+Math.imul(xe,Bt)|0,r=(r=r+Math.imul(xe,Rt)|0)+Math.imul(Re,Bt)|0,b=b+Math.imul(Re,Rt)|0;var pe=(I+(x=x+Math.imul(N,si)|0)|0)+((8191&(r=(r=r+Math.imul(N,ci)|0)+Math.imul(z,si)|0))<<13)|0;I=((b=b+Math.imul(z,ci)|0)+(r>>>13)|0)+(pe>>>26)|0,pe&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,b=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,b=b+Math.imul(ft,hi)|0,x=x+Math.imul(Me,Ee)|0,r=(r=r+Math.imul(Me,G)|0)+Math.imul(Ue,Ee)|0,b=b+Math.imul(Ue,G)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,b=b+Math.imul($,et)|0,x=x+Math.imul(ue,Nt)|0,r=(r=r+Math.imul(ue,Jt)|0)+Math.imul(Oe,Nt)|0,b=b+Math.imul(Oe,Jt)|0,x=x+Math.imul(vt,ke)|0,r=(r=r+Math.imul(vt,Be)|0)+Math.imul(Fe,ke)|0,b=b+Math.imul(Fe,Be)|0,x=x+Math.imul(Y,st)|0,r=(r=r+Math.imul(Y,At)|0)+Math.imul(ae,st)|0,b=b+Math.imul(ae,At)|0,x=x+Math.imul(Le,Bt)|0,r=(r=r+Math.imul(Le,Rt)|0)+Math.imul(K,Bt)|0,b=b+Math.imul(K,Rt)|0;var Je=(I+(x=x+Math.imul(xe,si)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Re,si)|0))<<13)|0;I=((b=b+Math.imul(Re,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,b=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,G)|0)+Math.imul(ft,Ee)|0,b=b+Math.imul(ft,G)|0,x=x+Math.imul(Me,De)|0,r=(r=r+Math.imul(Me,et)|0)+Math.imul(Ue,De)|0,b=b+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,b=b+Math.imul($,Jt)|0,x=x+Math.imul(ue,ke)|0,r=(r=r+Math.imul(ue,Be)|0)+Math.imul(Oe,ke)|0,b=b+Math.imul(Oe,Be)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Fe,st)|0,b=b+Math.imul(Fe,At)|0,x=x+Math.imul(Y,Bt)|0,r=(r=r+Math.imul(Y,Rt)|0)+Math.imul(ae,Bt)|0,b=b+Math.imul(ae,Rt)|0;var St=(I+(x=x+Math.imul(Le,si)|0)|0)+((8191&(r=(r=r+Math.imul(Le,ci)|0)+Math.imul(K,si)|0))<<13)|0;I=((b=b+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,G))+Math.imul(Mt,Ee)|0,b=Math.imul(Mt,G),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Me,Nt)|0,r=(r=r+Math.imul(Me,Jt)|0)+Math.imul(Ue,Nt)|0,b=b+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,ke)|0,r=(r=r+Math.imul(q,Be)|0)+Math.imul($,ke)|0,b=b+Math.imul($,Be)|0,x=x+Math.imul(ue,st)|0,r=(r=r+Math.imul(ue,At)|0)+Math.imul(Oe,st)|0,b=b+Math.imul(Oe,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Fe,Bt)|0,b=b+Math.imul(Fe,Rt)|0;var kt=(I+(x=x+Math.imul(Y,si)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ci)|0)+Math.imul(ae,si)|0))<<13)|0;I=((b=b+Math.imul(ae,ci)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,b=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,b=b+Math.imul(ft,Jt)|0,x=x+Math.imul(Me,ke)|0,r=(r=r+Math.imul(Me,Be)|0)+Math.imul(Ue,ke)|0,b=b+Math.imul(Ue,Be)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,b=b+Math.imul($,At)|0,x=x+Math.imul(ue,Bt)|0,r=(r=r+Math.imul(ue,Rt)|0)+Math.imul(Oe,Bt)|0,b=b+Math.imul(Oe,Rt)|0;var yi=(I+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Fe,si)|0))<<13)|0;I=((b=b+Math.imul(Fe,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,b=Math.imul(Mt,Jt),x=x+Math.imul(nt,ke)|0,r=(r=r+Math.imul(nt,Be)|0)+Math.imul(ft,ke)|0,b=b+Math.imul(ft,Be)|0,x=x+Math.imul(Me,st)|0,r=(r=r+Math.imul(Me,At)|0)+Math.imul(Ue,st)|0,b=b+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,b=b+Math.imul($,Rt)|0;var Ni=(I+(x=x+Math.imul(ue,si)|0)|0)+((8191&(r=(r=r+Math.imul(ue,ci)|0)+Math.imul(Oe,si)|0))<<13)|0;I=((b=b+Math.imul(Oe,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,ke),r=(r=Math.imul(rt,Be))+Math.imul(Mt,ke)|0,b=Math.imul(Mt,Be),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,b=b+Math.imul(ft,At)|0,x=x+Math.imul(Me,Bt)|0,r=(r=r+Math.imul(Me,Rt)|0)+Math.imul(Ue,Bt)|0,b=b+Math.imul(Ue,Rt)|0;var Si=(I+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;I=((b=b+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,b=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,b=b+Math.imul(ft,Rt)|0;var qi=(I+(x=x+Math.imul(Me,si)|0)|0)+((8191&(r=(r=r+Math.imul(Me,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;I=((b=b+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,b=Math.imul(Mt,Rt);var ot=(I+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;I=((b=b+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(I+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return I=((b=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,D[0]=sn,D[1]=Ui,D[2]=Di,D[3]=Xi,D[4]=Ke,D[5]=_t,D[6]=ye,D[7]=qe,D[8]=yt,D[9]=pe,D[10]=Je,D[11]=St,D[12]=kt,D[13]=yi,D[14]=Ni,D[15]=Si,D[16]=qi,D[17]=ot,D[18]=Kt,0!==I&&(D[19]=I,p.length++),p};function j(y,i,a){return(new W).mulp(y,i,a)}function W(y,i){this.x=y,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function Z(y,i,a){a.negative=i.negative^y.negative,a.length=y.length+i.length;for(var p=0,u=0,_=0;_>>26)|0)>>>26,D&=67108863}a.words[_]=I,p=D,D=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u>=1;return u},W.prototype.permute=function(i,a,p,u,_,D){for(var I=0;I>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u

>>=13),_>>>=13;for(D=2*a;D>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(y){for(var i=new Array(y.bitLength()),a=0;a>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var D=0;for(_=0;_>>26-a}D&&(this.words[_]=D,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_=0),u=a?(a-a%26)/26:0;var _=i%26,D=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=D,u=Math.max(0,u),x){for(var r=0;rD)for(this.length-=D,r=0;r=0&&(0!==b||r>=u);r--){var U=0|this.words[r];this.words[r]=b<<26-_|U>>>_,b=U&I}return x&&0!==b&&(x.words[x.length++]=b),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return v(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){v("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<=0);var a=i%26,p=(i-a)/26;return v(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(v("number"==typeof i),v(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a>26)-(x/67108864|0),this.words[_+p]=67108863&D}for(;_>26,this.words[_+p]=67108863&D;if(0===I)return this.strip();for(v(-1===I),I=0,_=0;_>26,this.words[_]=67108863&D;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,D=0|_.words[_.length-1];0!=(p=26-this._countBits(D))&&(_=_.ushln(p),u.iushln(p),D=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var b=0;b=0;N--){var z=67108864*(0|u.words[_.length+N])+(0|u.words[_.length+N-1]);for(z=Math.min(z/D|0,67108863),u._ishlnsubmul(_,z,N);0!==u.negative;)z--,u.negative=0,u._ishlnsubmul(_,1,N),u.isZero()||(u.negative^=1);r&&(r.words[N]=z)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return v(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,a),"mod"!==a&&(u=D.div.neg()),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),a),"mod"!==a&&(u=D.div.neg()),{div:u,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),a),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:D.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,D},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),D=p.cmp(u);return D<0||1===_&&0===D?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){v(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){v(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){v(0===i.negative),v(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=new o(0),I=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),b=a.clone();!a.isZero();){for(var U=0,N=1;0==(a.words[0]&N)&&U<26;++U,N<<=1);if(U>0)for(a.iushrn(U);U-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var z=0,be=1;0==(p.words[0]&be)&&z<26;++z,be<<=1);if(z>0)for(p.iushrn(z);z-- >0;)(D.isOdd()||I.isOdd())&&(D.iadd(r),I.isub(b)),D.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(D),_.isub(I)):(p.isub(a),D.isub(u),I.isub(_))}return{a:D,b:I,gcd:p.iushln(x)}},o.prototype._invmp=function(i){v(0===i.negative),v(!i.isZero());var U,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),D=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var I=0,x=1;0==(a.words[0]&x)&&I<26;++I,x<<=1);if(I>0)for(a.iushrn(I);I-- >0;)u.isOdd()&&u.iadd(D),u.iushrn(1);for(var r=0,b=1;0==(p.words[0]&b)&&r<26;++r,b<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(D),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(U=0===a.cmpn(1)?u:_).cmpn(0)<0&&U.iadd(i),U},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var D=a;a=p,p=D}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){v("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<>>26,this.words[D]=I&=67108863}return 0!==_&&(this.words[D]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),v(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:ui.length)return 1;if(this.length=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new le(i)},o.prototype.toRed=function(i){return v(!this.red,"Already a number in reduction context"),v(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return v(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return v(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return v(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return v(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return v(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return v(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return v(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return v(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return v(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return v(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return v(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return v(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return v(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ie={k256:null,p224:null,p192:null,p25519:null};function ee(y,i){this.name=y,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ve(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function he(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function le(y){if("string"==typeof y){var i=o._prime(y);this.m=i.p,this.prime=i}else v(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}function se(y){le.call(this,y),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)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(ve,ee),ve.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_>>22,D=I}i.words[_-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},ve.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(ie[i])return ie[i];var a;if("k256"===i)a=new ve;else if("p224"===i)a=new he;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return ie[i]=a,a},le.prototype._verify1=function(i){v(0===i.negative,"red works only with positives"),v(i.red,"red works only with red numbers")},le.prototype._verify2=function(i,a){v(0==(i.negative|a.negative),"red works only with positives"),v(i.red&&i.red===a.red,"red works only with red numbers")},le.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},le.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},le.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},le.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},le.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},le.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},le.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},le.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},le.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},le.prototype.isqr=function(i){return this.imul(i,i.clone())},le.prototype.sqr=function(i){return this.mul(i,i)},le.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(v(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);v(!u.isZero());var D=new o(1).toRed(this),I=D.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(I);)r.redIAdd(I);for(var b=this.pow(r,u),U=this.pow(i,u.addn(1).iushrn(1)),N=this.pow(i,u),z=_;0!==N.cmp(D);){for(var be=N,xe=0;0!==be.cmp(D);xe++)be=be.redSqr();v(xe=0;_--){for(var b=a.words[_],U=r-1;U>=0;U--){var N=b>>U&1;D!==u[0]&&(D=this.sqr(D)),0!==N||0!==I?(I<<=1,I|=N,(4==++x||0===_&&0===U)&&(D=this.mul(D,u[I]),x=0,I=0)):x=0}r=26}return D},le.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},le.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new se(i)},C(se,le),se.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},se.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},se.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},se.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},se.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ve=m.nmd(Ve),this)},6705:(Ve,Q,m)=>{var e=m(2772),t=m(6945),v=m(9401),C=m(2057),o=m(8466),M=m(6386),l=m(8651),R=m(3502).Buffer;Ve.exports=function(E,P,w){var Z;Z=E.padding?E.padding:w?1:4;var ie,j=e(E),W=j.modulus.byteLength();if(P.length>W||new C(P).cmp(j.modulus)>=0)throw new Error("decryption error");ie=w?l(new C(P),j):o(P,j);var ee=R.alloc(W-ie.length);if(ie=R.concat([ee,ie],W),4===Z)return function s(A,E){var P=A.modulus.byteLength(),w=M("sha1").update(R.alloc(0)).digest(),Z=w.length;if(0!==E[0])throw new Error("decryption error");var j=E.slice(1,Z+1),W=E.slice(Z+1),ie=v(j,t(W,Z)),ee=v(W,t(ie,P-Z-1));if(function O(A,E){A=R.from(A),E=R.from(E);var P=0,w=A.length;A.length!==E.length&&(P++,w=Math.min(A.length,E.length));for(var Z=-1;++Z=E.length){j++;break}var W=E.slice(2,Z-1);if(("0002"!==w.toString("hex")&&!P||"0001"!==w.toString("hex")&&P)&&j++,W.length<8&&j++,j)throw new Error("decryption error");return E.slice(Z)}(0,ie,w);if(3===Z)return ie;throw new Error("unknown padding")}},6562:(Ve,Q,m)=>{var e=m(2772),t=m(3753),v=m(6386),C=m(6945),o=m(9401),M=m(2057),l=m(8651),R=m(8466),s=m(3502).Buffer;Ve.exports=function(P,w,Z){var j;j=P.padding?P.padding:Z?1:4;var ie,W=e(P);if(4===j)ie=function L(E,P){var w=E.modulus.byteLength(),Z=P.length,j=v("sha1").update(s.alloc(0)).digest(),W=j.length,ie=2*W;if(Z>w-ie-2)throw new Error("message too long");var ee=s.alloc(w-Z-ie-2),ve=w-W-1,he=t(W),re=o(s.concat([j,ee,s.alloc(1,1),P],ve),C(he,ve)),de=o(he,C(re,W));return new M(s.concat([s.alloc(1),de,re],w))}(W,w);else if(1===j)ie=function O(E,P,w){var W,Z=P.length,j=E.modulus.byteLength();if(Z>j-11)throw new Error("message too long");return W=w?s.alloc(j-Z-3,255):function A(E){for(var W,P=s.allocUnsafe(E),w=0,Z=t(2*E),j=0;w=0)throw new Error("data too long for modulus")}return Z?R(ie,W):l(ie,W)}},8651:(Ve,Q,m)=>{var e=m(2057),t=m(3502).Buffer;Ve.exports=function v(C,o){return t.from(C.toRed(e.mont(o.modulus)).redPow(new e(o.publicExponent)).fromRed().toArray())}},9401:Ve=>{Ve.exports=function(m,e){for(var t=m.length,v=-1;++v{const e=m(8695),t=m(1465),v=m(3210),C=m(2334);function o(M,l,R,s,L){const O=[].slice.call(arguments,1),A=O.length,E="function"==typeof O[A-1];if(!E&&!e())throw new Error("Callback required as last argument");if(!E){if(A<1)throw new Error("Too few arguments provided");return 1===A?(R=l,l=s=void 0):2===A&&!l.getContext&&(s=R,R=l,l=void 0),new Promise(function(P,w){try{const Z=t.create(R,s);P(M(Z,l,s))}catch(Z){w(Z)}})}if(A<2)throw new Error("Too few arguments provided");2===A?(L=R,R=l,l=s=void 0):3===A&&(l.getContext&&void 0===L?(L=s,s=void 0):(L=s,s=R,R=l,l=void 0));try{const P=t.create(R,s);L(null,M(P,l,s))}catch(P){L(P)}}Q.create=t.create,Q.toCanvas=o.bind(null,v.render),Q.toDataURL=o.bind(null,v.renderToDataURL),Q.toString=o.bind(null,function(M,l,R){return C.render(M,R)})},8695:Ve=>{Ve.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6221:(Ve,Q,m)=>{const e=m(4792).getSymbolSize;Q.getRowColCoords=function(v){if(1===v)return[];const C=Math.floor(v/7)+2,o=e(v),M=145===o?26:2*Math.ceil((o-13)/(2*C-2)),l=[o-7];for(let R=1;R{const e=m(4016),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function v(C){this.mode=e.ALPHANUMERIC,this.data=C}v.getBitsLength=function(o){return 11*Math.floor(o/2)+o%2*6},v.prototype.getLength=function(){return this.data.length},v.prototype.getBitsLength=function(){return v.getBitsLength(this.data.length)},v.prototype.write=function(o){let M;for(M=0;M+2<=this.data.length;M+=2){let l=45*t.indexOf(this.data[M]);l+=t.indexOf(this.data[M+1]),o.put(l,11)}this.data.length%2&&o.put(t.indexOf(this.data[M]),6)},Ve.exports=v},2118:Ve=>{function Q(){this.buffer=[],this.length=0}Q.prototype={get:function(m){const e=Math.floor(m/8);return 1==(this.buffer[e]>>>7-m%8&1)},put:function(m,e){for(let t=0;t>>e-t-1&1))},getLengthInBits:function(){return this.length},putBit:function(m){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),m&&(this.buffer[e]|=128>>>this.length%8),this.length++}},Ve.exports=Q},4425:Ve=>{function Q(m){if(!m||m<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=m,this.data=new Uint8Array(m*m),this.reservedBit=new Uint8Array(m*m)}Q.prototype.set=function(m,e,t,v){const C=m*this.size+e;this.data[C]=t,v&&(this.reservedBit[C]=!0)},Q.prototype.get=function(m,e){return this.data[m*this.size+e]},Q.prototype.xor=function(m,e,t){this.data[m*this.size+e]^=t},Q.prototype.isReserved=function(m,e){return this.reservedBit[m*this.size+e]},Ve.exports=Q},5663:(Ve,Q,m)=>{const e=m(8419),t=m(4016);function v(C){this.mode=t.BYTE,this.data=new Uint8Array(e(C))}v.getBitsLength=function(o){return 8*o},v.prototype.getLength=function(){return this.data.length},v.prototype.getBitsLength=function(){return v.getBitsLength(this.data.length)},v.prototype.write=function(C){for(let o=0,M=this.data.length;o{const e=m(2259),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],v=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Q.getBlocksCount=function(o,M){switch(M){case e.L:return t[4*(o-1)+0];case e.M:return t[4*(o-1)+1];case e.Q:return t[4*(o-1)+2];case e.H:return t[4*(o-1)+3];default:return}},Q.getTotalCodewordsCount=function(o,M){switch(M){case e.L:return v[4*(o-1)+0];case e.M:return v[4*(o-1)+1];case e.Q:return v[4*(o-1)+2];case e.H:return v[4*(o-1)+3];default:return}}},2259:(Ve,Q)=>{Q.L={bit:1},Q.M={bit:0},Q.Q={bit:3},Q.H={bit:2},Q.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},Q.from=function(t,v){if(Q.isValid(t))return t;try{return function m(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.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: "+e)}}(t)}catch(C){return v}}},3114:(Ve,Q,m)=>{const e=m(4792).getSymbolSize;Q.getPositions=function(C){const o=e(C);return[[0,0],[o-7,0],[0,o-7]]}},7078:(Ve,Q,m)=>{const e=m(4792),C=e.getBCHDigit(1335);Q.getEncodedBits=function(M,l){const R=M.bit<<3|l;let s=R<<10;for(;e.getBCHDigit(s)-C>=0;)s^=1335<{const m=new Uint8Array(512),e=new Uint8Array(256);(function(){let v=1;for(let C=0;C<255;C++)m[C]=v,e[v]=C,v<<=1,256&v&&(v^=285);for(let C=255;C<512;C++)m[C]=m[C-255]})(),Q.log=function(v){if(v<1)throw new Error("log("+v+")");return e[v]},Q.exp=function(v){return m[v]},Q.mul=function(v,C){return 0===v||0===C?0:m[e[v]+e[C]]}},4388:(Ve,Q,m)=>{const e=m(4016),t=m(4792);function v(C){this.mode=e.KANJI,this.data=C}v.getBitsLength=function(o){return 13*o},v.prototype.getLength=function(){return this.data.length},v.prototype.getBitsLength=function(){return v.getBitsLength(this.data.length)},v.prototype.write=function(C){let o;for(o=0;o=33088&&M<=40956)M-=33088;else{if(!(M>=57408&&M<=60351))throw new Error("Invalid SJIS character: "+this.data[o]+"\nMake sure your charset is UTF-8");M-=49472}M=192*(M>>>8&255)+(255&M),C.put(M,13)}},Ve.exports=v},3667:(Ve,Q)=>{Q.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function e(t,v,C){switch(t){case Q.Patterns.PATTERN000:return(v+C)%2==0;case Q.Patterns.PATTERN001:return v%2==0;case Q.Patterns.PATTERN010:return C%3==0;case Q.Patterns.PATTERN011:return(v+C)%3==0;case Q.Patterns.PATTERN100:return(Math.floor(v/2)+Math.floor(C/3))%2==0;case Q.Patterns.PATTERN101:return v*C%2+v*C%3==0;case Q.Patterns.PATTERN110:return(v*C%2+v*C%3)%2==0;case Q.Patterns.PATTERN111:return(v*C%3+(v+C)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}Q.isValid=function(v){return null!=v&&""!==v&&!isNaN(v)&&v>=0&&v<=7},Q.from=function(v){return Q.isValid(v)?parseInt(v,10):void 0},Q.getPenaltyN1=function(v){const C=v.size;let o=0,M=0,l=0,R=null,s=null;for(let L=0;L=5&&(o+=M-5+3),R=A,M=1),A=v.get(O,L),A===s?l++:(l>=5&&(o+=l-5+3),s=A,l=1)}M>=5&&(o+=M-5+3),l>=5&&(o+=l-5+3)}return o},Q.getPenaltyN2=function(v){const C=v.size;let o=0;for(let M=0;M=10&&(1488===M||93===M)&&o++,l=l<<1&2047|v.get(s,R),s>=10&&(1488===l||93===l)&&o++}return 40*o},Q.getPenaltyN4=function(v){let C=0;const o=v.data.length;for(let l=0;l{const e=m(4406),t=m(2699);Q.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},Q.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},Q.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},Q.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},Q.MIXED={bit:-1},Q.getCharCountIndicator=function(o,M){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!e.isValid(M))throw new Error("Invalid version: "+M);return M>=1&&M<10?o.ccBits[0]:M<27?o.ccBits[1]:o.ccBits[2]},Q.getBestModeForData=function(o){return t.testNumeric(o)?Q.NUMERIC:t.testAlphanumeric(o)?Q.ALPHANUMERIC:t.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,M){if(Q.isValid(o))return o;try{return function v(C){if("string"!=typeof C)throw new Error("Param is not a string");switch(C.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: "+C)}}(o)}catch(l){return M}}},7783:(Ve,Q,m)=>{const e=m(4016);function t(v){this.mode=e.NUMERIC,this.data=v.toString()}t.getBitsLength=function(C){return 10*Math.floor(C/3)+(C%3?C%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(C){let o,M,l;for(o=0;o+3<=this.data.length;o+=3)M=this.data.substr(o,3),l=parseInt(M,10),C.put(l,10);const R=this.data.length-o;R>0&&(M=this.data.substr(o),l=parseInt(M,10),C.put(l,3*R+1))},Ve.exports=t},1106:(Ve,Q,m)=>{const e=m(5339);Q.mul=function(v,C){const o=new Uint8Array(v.length+C.length-1);for(let M=0;M=0;){const M=o[0];for(let R=0;R{const e=m(4792),t=m(2259),v=m(2118),C=m(4425),o=m(6221),M=m(3114),l=m(3667),R=m(4655),s=m(2636),L=m(2088),O=m(7078),A=m(4016),E=m(2033);function W(re,de,le){const se=re.size,y=O.getEncodedBits(de,le);let i,a;for(i=0;i<15;i++)a=1==(y>>i&1),re.set(i<6?i:i<8?i+1:se-15+i,8,a,!0),re.set(8,i<8?se-i-1:i<9?15-i-1+1:15-i-1,a,!0);re.set(se-8,8,1,!0)}function he(re,de,le,se){let y;if(Array.isArray(re))y=E.fromArray(re);else{if("string"!=typeof re)throw new Error("Invalid data");{let _=de;if(!_){const D=E.rawSplit(re);_=L.getBestVersionForData(D,le)}y=E.fromString(re,_||40)}}const i=L.getBestVersionForData(y,le);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(de){if(de=0&&p<=6&&(0===u||6===u)||u>=0&&u<=6&&(0===p||6===p)||p>=2&&p<=4&&u>=2&&u<=4,!0)}}(u,de),function w(re){const de=re.size;for(let le=8;le=7&&function j(re,de){const le=re.size,se=L.getEncodedBits(de);let y,i,a;for(let p=0;p<18;p++)y=Math.floor(p/3),i=p%3+le-8-3,a=1==(se>>p&1),re.set(y,i,a,!0),re.set(i,y,a,!0)}(u,de),function ie(re,de){const le=re.size;let se=-1,y=le-1,i=7,a=0;for(let p=le-1;p>0;p-=2)for(6===p&&p--;;){for(let u=0;u<2;u++)if(!re.isReserved(y,p-u)){let _=!1;a>>i&1)),re.set(y,p-u,_),i--,-1===i&&(a++,i=7)}if(y+=se,y<0||le<=y){y-=se,se=-se;break}}}(u,a),isNaN(se)&&(se=l.getBestMask(u,W.bind(null,u,le))),l.applyMask(se,u),W(u,le,se),{modules:u,version:de,errorCorrectionLevel:le,maskPattern:se,segments:y}}Q.create=function(de,le){if(void 0===de||""===de)throw new Error("No input text");let y,i,se=t.M;return void 0!==le&&(se=t.from(le.errorCorrectionLevel,t.M),y=L.from(le.version),i=l.from(le.maskPattern),le.toSJISFunc&&e.setToSJISFunction(le.toSJISFunc)),he(de,y,se,i)}},2636:(Ve,Q,m)=>{const e=m(1106);function t(v){this.genPoly=void 0,this.degree=v,this.degree&&this.initialize(this.degree)}t.prototype.initialize=function(C){this.degree=C,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(C){if(!this.genPoly)throw new Error("Encoder not initialized");const o=new Uint8Array(C.length+this.degree);o.set(C);const M=e.mod(o,this.genPoly),l=this.degree-M.length;if(l>0){const R=new Uint8Array(this.degree);return R.set(M,l),R}return M},Ve.exports=t},2699:(Ve,Q)=>{const m="[0-9]+";let t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");const v="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+")(?:.|[\r\n]))+";Q.KANJI=new RegExp(t,"g"),Q.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Q.BYTE=new RegExp(v,"g"),Q.NUMERIC=new RegExp(m,"g"),Q.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const C=new RegExp("^"+t+"$"),o=new RegExp("^"+m+"$"),M=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Q.testKanji=function(R){return C.test(R)},Q.testNumeric=function(R){return o.test(R)},Q.testAlphanumeric=function(R){return M.test(R)}},2033:(Ve,Q,m)=>{const e=m(4016),t=m(7783),v=m(2424),C=m(5663),o=m(4388),M=m(2699),l=m(4792),R=m(4901);function s(j){return unescape(encodeURIComponent(j)).length}function L(j,W,ie){const ee=[];let ve;for(;null!==(ve=j.exec(ie));)ee.push({data:ve[0],index:ve.index,mode:W,length:ve[0].length});return ee}function O(j){const W=L(M.NUMERIC,e.NUMERIC,j),ie=L(M.ALPHANUMERIC,e.ALPHANUMERIC,j);let ee,ve;return l.isKanjiModeEnabled()?(ee=L(M.BYTE,e.BYTE,j),ve=L(M.KANJI,e.KANJI,j)):(ee=L(M.BYTE_KANJI,e.BYTE,j),ve=[]),W.concat(ie,ee,ve).sort(function(re,de){return re.index-de.index}).map(function(re){return{data:re.data,mode:re.mode,length:re.length}})}function A(j,W){switch(W){case e.NUMERIC:return t.getBitsLength(j);case e.ALPHANUMERIC:return v.getBitsLength(j);case e.KANJI:return o.getBitsLength(j);case e.BYTE:return C.getBitsLength(j)}}function Z(j,W){let ie;const ee=e.getBestModeForData(j);if(ie=e.from(W,ee),ie!==e.BYTE&&ie.bit=0?W[W.length-1]:null;return ee&&ee.mode===ie.mode?(W[W.length-1].data+=ie.data,W):(W.push(ie),W)},[])}(de))},Q.rawSplit=function(W){return Q.fromArray(O(W,l.isKanjiModeEnabled()))}},4792:(Ve,Q)=>{let m;const e=[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(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},Q.getSymbolTotalCodewords=function(v){return e[v]},Q.getBCHDigit=function(t){let v=0;for(;0!==t;)v++,t>>>=1;return v},Q.setToSJISFunction=function(v){if("function"!=typeof v)throw new Error('"toSJISFunc" is not a valid function.');m=v},Q.isKanjiModeEnabled=function(){return void 0!==m},Q.toSJIS=function(v){return m(v)}},4406:(Ve,Q)=>{Q.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},2088:(Ve,Q,m)=>{const e=m(4792),t=m(4655),v=m(2259),C=m(4016),o=m(4406),l=e.getBCHDigit(7973);function s(A,E){return C.getCharCountIndicator(A,E)+4}function L(A,E){let P=0;return A.forEach(function(w){P+=s(w.mode,E)+w.getBitsLength()}),P}Q.from=function(E,P){return o.isValid(E)?parseInt(E,10):P},Q.getCapacity=function(E,P,w){if(!o.isValid(E))throw new Error("Invalid QR Code version");void 0===w&&(w=C.BYTE);const W=8*(e.getSymbolTotalCodewords(E)-t.getTotalCodewordsCount(E,P));if(w===C.MIXED)return W;const ie=W-s(w,E);switch(w){case C.NUMERIC:return Math.floor(ie/10*3);case C.ALPHANUMERIC:return Math.floor(ie/11*2);case C.KANJI:return Math.floor(ie/13);default:return Math.floor(ie/8)}},Q.getBestVersionForData=function(E,P){let w;const Z=v.from(P,v.M);if(Array.isArray(E)){if(E.length>1)return function O(A,E){for(let P=1;P<=40;P++)if(L(A,P)<=Q.getCapacity(P,E,C.MIXED))return P}(E,Z);if(0===E.length)return 1;w=E[0]}else w=E;return function R(A,E,P){for(let w=1;w<=40;w++)if(E<=Q.getCapacity(w,P,A))return w}(w.mode,w.getLength(),Z)},Q.getEncodedBits=function(E){if(!o.isValid(E)||E<7)throw new Error("Invalid QR Code version");let P=E<<12;for(;e.getBCHDigit(P)-l>=0;)P^=7973<{const e=m(6355);Q.render=function(o,M,l){let R=l,s=M;void 0===R&&(!M||!M.getContext)&&(R=M,M=void 0),M||(s=function v(){try{return document.createElement("canvas")}catch(C){throw new Error("You need to specify a canvas element")}}()),R=e.getOptions(R);const L=e.getImageWidth(o.modules.size,R),O=s.getContext("2d"),A=O.createImageData(L,L);return e.qrToImageData(A.data,o,R),function t(C,o,M){C.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=M,o.width=M,o.style.height=M+"px",o.style.width=M+"px"}(O,s,L),O.putImageData(A,0,0),s},Q.renderToDataURL=function(o,M,l){let R=l;return void 0===R&&(!M||!M.getContext)&&(R=M,M=void 0),R||(R={}),Q.render(o,M,R).toDataURL(R.type||"image/png",(R.rendererOpts||{}).quality)}},2334:(Ve,Q,m)=>{const e=m(6355);function t(o,M){const l=o.a/255,R=M+'="'+o.hex+'"';return l<1?R+" "+M+'-opacity="'+l.toFixed(2).slice(1)+'"':R}function v(o,M,l){let R=o+M;return void 0!==l&&(R+=" "+l),R}Q.render=function(M,l,R){const s=e.getOptions(l),L=M.modules.size,O=M.modules.data,A=L+2*s.margin,E=s.color.light.a?"':"",P="0&&E>0&&o[A-1]||(R+=L?v("M",E+l,.5+P+l):v("m",s,0),s=0,L=!1),E+1',j=''+E+P+"\n";return"function"==typeof R&&R(null,j),j}},6355:(Ve,Q)=>{function m(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);(3===t.length||4===t.length)&&(t=Array.prototype.concat.apply([],t.map(function(C){return[C,C]}))),6===t.length&&t.push("F","F");const v=parseInt(t.join(""),16);return{r:v>>24&255,g:v>>16&255,b:v>>8&255,a:255&v,hex:"#"+t.slice(0,6).join("")}}Q.getOptions=function(t){t||(t={}),t.color||(t.color={});const C=t.width&&t.width>=21?t.width:void 0;return{width:C,scale:C?4:t.scale||4,margin:null==t.margin||t.margin<0?4:t.margin,color:{dark:m(t.color.dark||"#000000ff"),light:m(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},Q.getScale=function(t,v){return v.width&&v.width>=t+2*v.margin?v.width/(t+2*v.margin):v.scale},Q.getImageWidth=function(t,v){const C=Q.getScale(t,v);return Math.floor((t+2*v.margin)*C)},Q.qrToImageData=function(t,v,C){const o=v.modules.size,M=v.modules.data,l=Q.getScale(o,C),R=Math.floor((o+2*C.margin)*l),s=C.margin*l,L=[C.color.light,C.color.dark];for(let O=0;O=s&&A>=s&&O{"use strict";var e=65536,C=m(3502).Buffer,o=global.crypto||global.msCrypto;Ve.exports=o&&o.getRandomValues?function M(l,R){if(l>4294967295)throw new RangeError("requested too many random bytes");var s=C.allocUnsafe(l);if(l>0)if(l>e)for(var L=0;L{"use strict";function e(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var t=m(3502),v=m(3753),C=t.Buffer,o=t.kMaxLength,M=global.crypto||global.msCrypto,l=Math.pow(2,32)-1;function R(E,P){if("number"!=typeof E||E!=E)throw new TypeError("offset must be a number");if(E>l||E<0)throw new TypeError("offset must be a uint32");if(E>o||E>P)throw new RangeError("offset out of range")}function s(E,P,w){if("number"!=typeof E||E!=E)throw new TypeError("size must be a number");if(E>l||E<0)throw new TypeError("size must be a uint32");if(E+P>w||E>o)throw new RangeError("buffer too small")}function O(E,P,w,Z){if(process.browser){var W=new Uint8Array(E.buffer,P,w);return M.getRandomValues(W),Z?void process.nextTick(function(){Z(null,E)}):E}if(!Z)return v(w).copy(E,P),E;v(w,function(ee,ve){if(ee)return Z(ee);ve.copy(E,P),Z(null,E)})}M&&M.getRandomValues||!process.browser?(Q.randomFill=function L(E,P,w,Z){if(!(C.isBuffer(E)||E instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof P)Z=P,P=0,w=E.length;else if("function"==typeof w)Z=w,w=E.length-P;else if("function"!=typeof Z)throw new TypeError('"cb" argument must be a function');return R(P,E.length),s(w,P,E.length),O(E,P,w,Z)},Q.randomFillSync=function A(E,P,w){if(void 0===P&&(P=0),!(C.isBuffer(E)||E instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return R(P,E.length),void 0===w&&(w=E.length-P),s(w,P,E.length),O(E,P,w)}):(Q.randomFill=e,Q.randomFillSync=e)},891:Ve=>{"use strict";var m={};function e(M,l,R){R||(R=Error);var L=function(O){function A(E,P,w){return O.call(this,function s(O,A,E){return"string"==typeof l?l:l(O,A,E)}(E,P,w))||this}return function Q(M,l){M.prototype=Object.create(l.prototype),M.prototype.constructor=M,M.__proto__=l}(A,O),A}(R);L.prototype.name=R.name,L.prototype.code=M,m[M]=L}function t(M,l){if(Array.isArray(M)){var R=M.length;return M=M.map(function(s){return String(s)}),R>2?"one of ".concat(l," ").concat(M.slice(0,R-1).join(", "),", or ")+M[R-1]:2===R?"one of ".concat(l," ").concat(M[0]," or ").concat(M[1]):"of ".concat(l," ").concat(M[0])}return"of ".concat(l," ").concat(String(M))}e("ERR_INVALID_OPT_VALUE",function(M,l){return'The value "'+l+'" is invalid for option "'+M+'"'},TypeError),e("ERR_INVALID_ARG_TYPE",function(M,l,R){var s,L;if("string"==typeof l&&function v(M,l,R){return M.substr(!R||R<0?0:+R,l.length)===l}(l,"not ")?(s="must not be",l=l.replace(/^not /,"")):s="must be",function C(M,l,R){return(void 0===R||R>M.length)&&(R=M.length),M.substring(R-l.length,R)===l}(M," argument"))L="The ".concat(M," ").concat(s," ").concat(t(l,"type"));else{var O=function o(M,l,R){return"number"!=typeof R&&(R=0),!(R+l.length>M.length)&&-1!==M.indexOf(l,R)}(M,".")?"property":"argument";L='The "'.concat(M,'" ').concat(O," ").concat(s," ").concat(t(l,"type"))}return L+". Received type ".concat(typeof R)},TypeError),e("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),e("ERR_METHOD_NOT_IMPLEMENTED",function(M){return"The "+M+" method is not implemented"}),e("ERR_STREAM_PREMATURE_CLOSE","Premature close"),e("ERR_STREAM_DESTROYED",function(M){return"Cannot call "+M+" after a stream was destroyed"}),e("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),e("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),e("ERR_STREAM_WRITE_AFTER_END","write after end"),e("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),e("ERR_UNKNOWN_ENCODING",function(M){return"Unknown encoding: "+M},TypeError),e("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Ve.exports.q=m},1339:(Ve,Q,m)=>{"use strict";var e=Object.keys||function(L){var O=[];for(var A in L)O.push(A);return O};Ve.exports=l;var t=m(3154),v=m(520);m(3894)(l,t);for(var C=e(v.prototype),o=0;o{"use strict";Ve.exports=t;var e=m(6025);function t(v){if(!(this instanceof t))return new t(v);e.call(this,v)}m(3894)(t,e),t.prototype._transform=function(v,C,o){o(null,v)}},3154:(Ve,Q,m)=>{"use strict";var e;Ve.exports=y,y.ReadableState=se,m(9069);var L,v=function(Ge,vt){return Ge.listeners(vt).length},C=m(4970),o=m(3172).Buffer,M=global.Uint8Array||function(){},s=m(4616);L=s&&s.debuglog?s.debuglog("stream"):function(){};var ee,ve,he,O=m(5019),A=m(1920),P=m(7102).getHighWaterMark,w=m(891).q,Z=w.ERR_INVALID_ARG_TYPE,j=w.ERR_STREAM_PUSH_AFTER_EOF,W=w.ERR_METHOD_NOT_IMPLEMENTED,ie=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;m(3894)(y,C);var re=A.errorOrDestroy,de=["error","close","destroy","pause","resume"];function se(ae,Ge,vt){e=e||m(1339),"boolean"!=typeof vt&&(vt=Ge instanceof e),this.objectMode=!!(ae=ae||{}).objectMode,vt&&(this.objectMode=this.objectMode||!!ae.readableObjectMode),this.highWaterMark=P(this,ae,"readableHighWaterMark",vt),this.buffer=new O,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==ae.emitClose,this.autoDestroy=!!ae.autoDestroy,this.destroyed=!1,this.defaultEncoding=ae.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,ae.encoding&&(ee||(ee=m(3054).s),this.decoder=new ee(ae.encoding),this.encoding=ae.encoding)}function y(ae){if(e=e||m(1339),!(this instanceof y))return new y(ae);this._readableState=new se(ae,this,this instanceof e),this.readable=!0,ae&&("function"==typeof ae.read&&(this._read=ae.read),"function"==typeof ae.destroy&&(this._destroy=ae.destroy)),C.call(this)}function i(ae,Ge,vt,Fe,Ne){L("readableAddChunk",Ge);var Oe,ue=ae._readableState;if(null===Ge)ue.reading=!1,function I(ae,Ge){if(L("onEofChunk"),!Ge.ended){if(Ge.decoder){var vt=Ge.decoder.end();vt&&vt.length&&(Ge.buffer.push(vt),Ge.length+=Ge.objectMode?1:vt.length)}Ge.ended=!0,Ge.sync?x(ae):(Ge.needReadable=!1,Ge.emittedReadable||(Ge.emittedReadable=!0,r(ae)))}}(ae,ue);else if(Ne||(Oe=function p(ae,Ge){var vt;return!function R(ae){return o.isBuffer(ae)||ae instanceof M}(Ge)&&"string"!=typeof Ge&&void 0!==Ge&&!ae.objectMode&&(vt=new Z("chunk",["string","Buffer","Uint8Array"],Ge)),vt}(ue,Ge)),Oe)re(ae,Oe);else if(ue.objectMode||Ge&&Ge.length>0)if("string"!=typeof Ge&&!ue.objectMode&&Object.getPrototypeOf(Ge)!==o.prototype&&(Ge=function l(ae){return o.from(ae)}(Ge)),Fe)ue.endEmitted?re(ae,new ie):a(ae,ue,Ge,!0);else if(ue.ended)re(ae,new j);else{if(ue.destroyed)return!1;ue.reading=!1,ue.decoder&&!vt?(Ge=ue.decoder.write(Ge),ue.objectMode||0!==Ge.length?a(ae,ue,Ge,!1):b(ae,ue)):a(ae,ue,Ge,!1)}else Fe||(ue.reading=!1,b(ae,ue));return!ue.ended&&(ue.lengthGe.highWaterMark&&(Ge.highWaterMark=function _(ae){return ae>=u?ae=u:(ae--,ae|=ae>>>1,ae|=ae>>>2,ae|=ae>>>4,ae|=ae>>>8,ae|=ae>>>16,ae++),ae}(ae)),ae<=Ge.length?ae:Ge.ended?Ge.length:(Ge.needReadable=!0,0))}function x(ae){var Ge=ae._readableState;L("emitReadable",Ge.needReadable,Ge.emittedReadable),Ge.needReadable=!1,Ge.emittedReadable||(L("emitReadable",Ge.flowing),Ge.emittedReadable=!0,process.nextTick(r,ae))}function r(ae){var Ge=ae._readableState;L("emitReadable_",Ge.destroyed,Ge.length,Ge.ended),!Ge.destroyed&&(Ge.length||Ge.ended)&&(ae.emit("readable"),Ge.emittedReadable=!1),Ge.needReadable=!Ge.flowing&&!Ge.ended&&Ge.length<=Ge.highWaterMark,ze(ae)}function b(ae,Ge){Ge.readingMore||(Ge.readingMore=!0,process.nextTick(U,ae,Ge))}function U(ae,Ge){for(;!Ge.reading&&!Ge.ended&&(Ge.length0,Ge.resumeScheduled&&!Ge.paused?Ge.flowing=!0:ae.listenerCount("data")>0&&ae.resume()}function be(ae){L("readable nexttick read 0"),ae.read(0)}function Re(ae,Ge){L("resume",Ge.reading),Ge.reading||ae.read(0),Ge.resumeScheduled=!1,ae.emit("resume"),ze(ae),Ge.flowing&&!Ge.reading&&ae.read(0)}function ze(ae){var Ge=ae._readableState;for(L("flow",Ge.flowing);Ge.flowing&&null!==ae.read(););}function Le(ae,Ge){return 0===Ge.length?null:(Ge.objectMode?vt=Ge.buffer.shift():!ae||ae>=Ge.length?(vt=Ge.decoder?Ge.buffer.join(""):1===Ge.buffer.length?Ge.buffer.first():Ge.buffer.concat(Ge.length),Ge.buffer.clear()):vt=Ge.buffer.consume(ae,Ge.decoder),vt);var vt}function K(ae){var Ge=ae._readableState;L("endReadable",Ge.endEmitted),Ge.endEmitted||(Ge.ended=!0,process.nextTick(we,Ge,ae))}function we(ae,Ge){if(L("endReadableNT",ae.endEmitted,ae.length),!ae.endEmitted&&0===ae.length&&(ae.endEmitted=!0,Ge.readable=!1,Ge.emit("end"),ae.autoDestroy)){var vt=Ge._writableState;(!vt||vt.autoDestroy&&vt.finished)&&Ge.destroy()}}function Y(ae,Ge){for(var vt=0,Fe=ae.length;vt=Ge.highWaterMark:Ge.length>0)||Ge.ended))return L("read: emitReadable",Ge.length,Ge.ended),0===Ge.length&&Ge.ended?K(this):x(this),null;if(0===(ae=D(ae,Ge))&&Ge.ended)return 0===Ge.length&&K(this),null;var Ne,Fe=Ge.needReadable;return L("need readable",Fe),(0===Ge.length||Ge.length-ae0?Le(ae,Ge):null)?(Ge.needReadable=Ge.length<=Ge.highWaterMark,ae=0):(Ge.length-=ae,Ge.awaitDrain=0),0===Ge.length&&(Ge.ended||(Ge.needReadable=!0),vt!==ae&&Ge.ended&&K(this)),null!==Ne&&this.emit("data",Ne),Ne},y.prototype._read=function(ae){re(this,new W("_read()"))},y.prototype.pipe=function(ae,Ge){var vt=this,Fe=this._readableState;switch(Fe.pipesCount){case 0:Fe.pipes=ae;break;case 1:Fe.pipes=[Fe.pipes,ae];break;default:Fe.pipes.push(ae)}Fe.pipesCount+=1,L("pipe count=%d opts=%j",Fe.pipesCount,Ge);var ue=Ge&&!1===Ge.end||ae===process.stdout||ae===process.stderr?ft:Pe;function Pe(){L("onend"),ae.end()}Fe.endEmitted?process.nextTick(ue):vt.once("end",ue),ae.on("unpipe",function Oe(it,rt){L("onunpipe"),it===vt&&rt&&!1===rt.hasUnpiped&&(rt.hasUnpiped=!0,function ce(){L("cleanup"),ae.removeListener("close",lt),ae.removeListener("finish",nt),ae.removeListener("drain",q),ae.removeListener("error",Ue),ae.removeListener("unpipe",Oe),vt.removeListener("end",Pe),vt.removeListener("end",ft),vt.removeListener("data",Me),$=!0,Fe.awaitDrain&&(!ae._writableState||ae._writableState.needDrain)&&q()}())});var q=function N(ae){return function(){var vt=ae._readableState;L("pipeOnDrain",vt.awaitDrain),vt.awaitDrain&&vt.awaitDrain--,0===vt.awaitDrain&&v(ae,"data")&&(vt.flowing=!0,ze(ae))}}(vt);ae.on("drain",q);var $=!1;function Me(it){L("ondata");var rt=ae.write(it);L("dest.write",rt),!1===rt&&((1===Fe.pipesCount&&Fe.pipes===ae||Fe.pipesCount>1&&-1!==Y(Fe.pipes,ae))&&!$&&(L("false write response, pause",Fe.awaitDrain),Fe.awaitDrain++),vt.pause())}function Ue(it){L("onerror",it),ft(),ae.removeListener("error",Ue),0===v(ae,"error")&&re(ae,it)}function lt(){ae.removeListener("finish",nt),ft()}function nt(){L("onfinish"),ae.removeListener("close",lt),ft()}function ft(){L("unpipe"),vt.unpipe(ae)}return vt.on("data",Me),function le(ae,Ge,vt){if("function"==typeof ae.prependListener)return ae.prependListener(Ge,vt);ae._events&&ae._events[Ge]?Array.isArray(ae._events[Ge])?ae._events[Ge].unshift(vt):ae._events[Ge]=[vt,ae._events[Ge]]:ae.on(Ge,vt)}(ae,"error",Ue),ae.once("close",lt),ae.once("finish",nt),ae.emit("pipe",vt),Fe.flowing||(L("pipe resume"),vt.resume()),ae},y.prototype.unpipe=function(ae){var Ge=this._readableState,vt={hasUnpiped:!1};if(0===Ge.pipesCount)return this;if(1===Ge.pipesCount)return ae&&ae!==Ge.pipes||(ae||(ae=Ge.pipes),Ge.pipes=null,Ge.pipesCount=0,Ge.flowing=!1,ae&&ae.emit("unpipe",this,vt)),this;if(!ae){var Fe=Ge.pipes,Ne=Ge.pipesCount;Ge.pipes=null,Ge.pipesCount=0,Ge.flowing=!1;for(var ue=0;ue0,!1!==Fe.flowing&&this.resume()):"readable"===ae&&!Fe.endEmitted&&!Fe.readableListening&&(Fe.readableListening=Fe.needReadable=!0,Fe.flowing=!1,Fe.emittedReadable=!1,L("on readable",Fe.length,Fe.reading),Fe.length?x(this):Fe.reading||process.nextTick(be,this)),vt},y.prototype.removeListener=function(ae,Ge){var vt=C.prototype.removeListener.call(this,ae,Ge);return"readable"===ae&&process.nextTick(z,this),vt},y.prototype.removeAllListeners=function(ae){var Ge=C.prototype.removeAllListeners.apply(this,arguments);return("readable"===ae||void 0===ae)&&process.nextTick(z,this),Ge},y.prototype.resume=function(){var ae=this._readableState;return ae.flowing||(L("resume"),ae.flowing=!ae.readableListening,function xe(ae,Ge){Ge.resumeScheduled||(Ge.resumeScheduled=!0,process.nextTick(Re,ae,Ge))}(this,ae)),ae.paused=!1,this},y.prototype.pause=function(){return L("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(L("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},y.prototype.wrap=function(ae){var Ge=this,vt=this._readableState,Fe=!1;for(var Ne in ae.on("end",function(){if(L("wrapped end"),vt.decoder&&!vt.ended){var Oe=vt.decoder.end();Oe&&Oe.length&&Ge.push(Oe)}Ge.push(null)}),ae.on("data",function(Oe){L("wrapped data"),vt.decoder&&(Oe=vt.decoder.write(Oe)),vt.objectMode&&null==Oe||!(vt.objectMode||Oe&&Oe.length)||Ge.push(Oe)||(Fe=!0,ae.pause())}),ae)void 0===this[Ne]&&"function"==typeof ae[Ne]&&(this[Ne]=function(Pe){return function(){return ae[Pe].apply(ae,arguments)}}(Ne));for(var ue=0;ue{"use strict";Ve.exports=R;var e=m(891).q,t=e.ERR_METHOD_NOT_IMPLEMENTED,v=e.ERR_MULTIPLE_CALLBACK,C=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=e.ERR_TRANSFORM_WITH_LENGTH_0,M=m(1339);function l(O,A){var E=this._transformState;E.transforming=!1;var P=E.writecb;if(null===P)return this.emit("error",new v);E.writechunk=null,E.writecb=null,null!=A&&this.push(A),P(O);var w=this._readableState;w.reading=!1,(w.needReadable||w.length{"use strict";function t(ze){var Le=this;this.next=null,this.entry=null,this.finish=function(){!function Re(ze,Le,K){var we=ze.entry;for(ze.entry=null;we;){var Y=we.callback;Le.pendingcb--,Y(K),we=we.next}Le.corkedRequestsFree.next=ze}(Le,ze)}}var v;Ve.exports=se,se.WritableState=de;var le,C={deprecate:m(4364)},o=m(4970),M=m(3172).Buffer,l=global.Uint8Array||function(){},L=m(1920),A=m(7102).getHighWaterMark,E=m(891).q,P=E.ERR_INVALID_ARG_TYPE,w=E.ERR_METHOD_NOT_IMPLEMENTED,Z=E.ERR_MULTIPLE_CALLBACK,j=E.ERR_STREAM_CANNOT_PIPE,W=E.ERR_STREAM_DESTROYED,ie=E.ERR_STREAM_NULL_VALUES,ee=E.ERR_STREAM_WRITE_AFTER_END,ve=E.ERR_UNKNOWN_ENCODING,he=L.errorOrDestroy;function re(){}function de(ze,Le,K){v=v||m(1339),"boolean"!=typeof K&&(K=Le instanceof v),this.objectMode=!!(ze=ze||{}).objectMode,K&&(this.objectMode=this.objectMode||!!ze.writableObjectMode),this.highWaterMark=A(this,ze,"writableHighWaterMark",K),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===ze.decodeStrings),this.defaultEncoding=ze.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Y){!function I(ze,Le){var K=ze._writableState,we=K.sync,Y=K.writecb;if("function"!=typeof Y)throw new Z;if(function D(ze){ze.writing=!1,ze.writecb=null,ze.length-=ze.writelen,ze.writelen=0}(K),Le)!function _(ze,Le,K,we,Y){--Le.pendingcb,K?(process.nextTick(Y,we),process.nextTick(be,ze,Le),ze._writableState.errorEmitted=!0,he(ze,we)):(Y(we),ze._writableState.errorEmitted=!0,he(ze,we),be(ze,Le))}(ze,K,we,Le,Y);else{var ae=U(K)||ze.destroyed;!ae&&!K.corked&&!K.bufferProcessing&&K.bufferedRequest&&b(ze,K),we?process.nextTick(x,ze,K,ae,Y):x(ze,K,ae,Y)}}(Le,Y)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==ze.emitClose,this.autoDestroy=!!ze.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}function se(ze){var Le=this instanceof(v=v||m(1339));if(!Le&&!le.call(se,this))return new se(ze);this._writableState=new de(ze,this,Le),this.writable=!0,ze&&("function"==typeof ze.write&&(this._write=ze.write),"function"==typeof ze.writev&&(this._writev=ze.writev),"function"==typeof ze.destroy&&(this._destroy=ze.destroy),"function"==typeof ze.final&&(this._final=ze.final)),o.call(this)}function u(ze,Le,K,we,Y,ae,Ge){Le.writelen=we,Le.writecb=Ge,Le.writing=!0,Le.sync=!0,Le.destroyed?Le.onwrite(new W("write")):K?ze._writev(Y,Le.onwrite):ze._write(Y,ae,Le.onwrite),Le.sync=!1}function x(ze,Le,K,we){K||function r(ze,Le){0===Le.length&&Le.needDrain&&(Le.needDrain=!1,ze.emit("drain"))}(ze,Le),Le.pendingcb--,we(),be(ze,Le)}function b(ze,Le){Le.bufferProcessing=!0;var K=Le.bufferedRequest;if(ze._writev&&K&&K.next){var Y=new Array(Le.bufferedRequestCount),ae=Le.corkedRequestsFree;ae.entry=K;for(var Ge=0,vt=!0;K;)Y[Ge]=K,K.isBuf||(vt=!1),K=K.next,Ge+=1;Y.allBuffers=vt,u(ze,Le,!0,Le.length,Y,"",ae.finish),Le.pendingcb++,Le.lastBufferedRequest=null,ae.next?(Le.corkedRequestsFree=ae.next,ae.next=null):Le.corkedRequestsFree=new t(Le),Le.bufferedRequestCount=0}else{for(;K;){var Fe=K.chunk;if(u(ze,Le,!1,Le.objectMode?1:Fe.length,Fe,K.encoding,K.callback),K=K.next,Le.bufferedRequestCount--,Le.writing)break}null===K&&(Le.lastBufferedRequest=null)}Le.bufferedRequest=K,Le.bufferProcessing=!1}function U(ze){return ze.ending&&0===ze.length&&null===ze.bufferedRequest&&!ze.finished&&!ze.writing}function N(ze,Le){ze._final(function(K){Le.pendingcb--,K&&he(ze,K),Le.prefinished=!0,ze.emit("prefinish"),be(ze,Le)})}function be(ze,Le){var K=U(Le);if(K&&(function z(ze,Le){!Le.prefinished&&!Le.finalCalled&&("function"!=typeof ze._final||Le.destroyed?(Le.prefinished=!0,ze.emit("prefinish")):(Le.pendingcb++,Le.finalCalled=!0,process.nextTick(N,ze,Le)))}(ze,Le),0===Le.pendingcb&&(Le.finished=!0,ze.emit("finish"),Le.autoDestroy))){var we=ze._readableState;(!we||we.autoDestroy&&we.endEmitted)&&ze.destroy()}return K}m(3894)(se,o),de.prototype.getBuffer=function(){for(var Le=this.bufferedRequest,K=[];Le;)K.push(Le),Le=Le.next;return K},function(){try{Object.defineProperty(de.prototype,"buffer",{get:C.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(ze){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(le=Function.prototype[Symbol.hasInstance],Object.defineProperty(se,Symbol.hasInstance,{value:function(Le){return!!le.call(this,Le)||this===se&&Le&&Le._writableState instanceof de}})):le=function(Le){return Le instanceof this},se.prototype.pipe=function(){he(this,new j)},se.prototype.write=function(ze,Le,K){var we=this._writableState,Y=!1,ae=!we.objectMode&&function s(ze){return M.isBuffer(ze)||ze instanceof l}(ze);return ae&&!M.isBuffer(ze)&&(ze=function R(ze){return M.from(ze)}(ze)),"function"==typeof Le&&(K=Le,Le=null),ae?Le="buffer":Le||(Le=we.defaultEncoding),"function"!=typeof K&&(K=re),we.ending?function y(ze,Le){var K=new ee;he(ze,K),process.nextTick(Le,K)}(this,K):(ae||function i(ze,Le,K,we){var Y;return null===K?Y=new ie:"string"!=typeof K&&!Le.objectMode&&(Y=new P("chunk",["string","Buffer"],K)),!Y||(he(ze,Y),process.nextTick(we,Y),!1)}(this,we,ze,K))&&(we.pendingcb++,Y=function p(ze,Le,K,we,Y,ae){if(!K){var Ge=function a(ze,Le,K){return!ze.objectMode&&!1!==ze.decodeStrings&&"string"==typeof Le&&(Le=M.from(Le,K)),Le}(Le,we,Y);we!==Ge&&(K=!0,Y="buffer",we=Ge)}var vt=Le.objectMode?1:we.length;Le.length+=vt;var Fe=Le.length-1))throw new ve(Le);return this._writableState.defaultEncoding=Le,this},Object.defineProperty(se.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(se.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),se.prototype._write=function(ze,Le,K){K(new w("_write()"))},se.prototype._writev=null,se.prototype.end=function(ze,Le,K){var we=this._writableState;return"function"==typeof ze?(K=ze,ze=null,Le=null):"function"==typeof Le&&(K=Le,Le=null),null!=ze&&this.write(ze,Le),we.corked&&(we.corked=1,this.uncork()),we.ending||function xe(ze,Le,K){Le.ending=!0,be(ze,Le),K&&(Le.finished?process.nextTick(K):ze.once("finish",K)),Le.ended=!0,ze.writable=!1}(this,we,K),this},Object.defineProperty(se.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(se.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(Le){!this._writableState||(this._writableState.destroyed=Le)}}),se.prototype.destroy=L.destroy,se.prototype._undestroy=L.undestroy,se.prototype._destroy=function(ze,Le){Le(ze)}},3872:(Ve,Q,m)=>{"use strict";var e;function t(W,ie,ee){return ie in W?Object.defineProperty(W,ie,{value:ee,enumerable:!0,configurable:!0,writable:!0}):W[ie]=ee,W}var v=m(7542),C=Symbol("lastResolve"),o=Symbol("lastReject"),M=Symbol("error"),l=Symbol("ended"),R=Symbol("lastPromise"),s=Symbol("handlePromise"),L=Symbol("stream");function O(W,ie){return{value:W,done:ie}}function A(W){var ie=W[C];if(null!==ie){var ee=W[L].read();null!==ee&&(W[R]=null,W[C]=null,W[o]=null,ie(O(ee,!1)))}}function E(W){process.nextTick(A,W)}var w=Object.getPrototypeOf(function(){}),Z=Object.setPrototypeOf((t(e={get stream(){return this[L]},next:function(){var ie=this,ee=this[M];if(null!==ee)return Promise.reject(ee);if(this[l])return Promise.resolve(O(void 0,!0));if(this[L].destroyed)return new Promise(function(de,le){process.nextTick(function(){ie[M]?le(ie[M]):de(O(void 0,!0))})});var he,ve=this[R];if(ve)he=new Promise(function P(W,ie){return function(ee,ve){W.then(function(){ie[l]?ee(O(void 0,!0)):ie[s](ee,ve)},ve)}}(ve,this));else{var re=this[L].read();if(null!==re)return Promise.resolve(O(re,!1));he=new Promise(this[s])}return this[R]=he,he}},Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var ie=this;return new Promise(function(ee,ve){ie[L].destroy(null,function(he){he?ve(he):ee(O(void 0,!0))})})}),e),w);Ve.exports=function(ie){var ee,ve=Object.create(Z,(t(ee={},L,{value:ie,writable:!0}),t(ee,C,{value:null,writable:!0}),t(ee,o,{value:null,writable:!0}),t(ee,M,{value:null,writable:!0}),t(ee,l,{value:ie._readableState.endEmitted,writable:!0}),t(ee,s,{value:function(re,de){var le=ve[L].read();le?(ve[R]=null,ve[C]=null,ve[o]=null,re(O(le,!1))):(ve[C]=re,ve[o]=de)},writable:!0}),ee));return ve[R]=null,v(ie,function(he){if(he&&"ERR_STREAM_PREMATURE_CLOSE"!==he.code){var re=ve[o];return null!==re&&(ve[R]=null,ve[C]=null,ve[o]=null,re(he)),void(ve[M]=he)}var de=ve[C];null!==de&&(ve[R]=null,ve[C]=null,ve[o]=null,de(O(void 0,!0))),ve[l]=!0}),ie.on("readable",E.bind(null,ve)),ve}},5019:(Ve,Q,m)=>{"use strict";function e(E,P){var w=Object.keys(E);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(E);P&&(Z=Z.filter(function(j){return Object.getOwnPropertyDescriptor(E,j).enumerable})),w.push.apply(w,Z)}return w}function v(E,P,w){return P in E?Object.defineProperty(E,P,{value:w,enumerable:!0,configurable:!0,writable:!0}):E[P]=w,E}function o(E,P){for(var w=0;w0?this.tail.next=Z:this.head=Z,this.tail=Z,++this.length}},{key:"unshift",value:function(w){var Z={data:w,next:this.head};0===this.length&&(this.tail=Z),this.head=Z,++this.length}},{key:"shift",value:function(){if(0!==this.length){var w=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,w}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(w){if(0===this.length)return"";for(var Z=this.head,j=""+Z.data;Z=Z.next;)j+=w+Z.data;return j}},{key:"concat",value:function(w){if(0===this.length)return R.alloc(0);for(var Z=R.allocUnsafe(w>>>0),j=this.head,W=0;j;)A(j.data,Z,W),W+=j.data.length,j=j.next;return Z}},{key:"consume",value:function(w,Z){var j;return wie.length?ie.length:w;if(W+=ee===ie.length?ie:ie.slice(0,w),0==(w-=ee)){ee===ie.length?(++j,this.head=Z.next?Z.next:this.tail=null):(this.head=Z,Z.data=ie.slice(ee));break}++j}return this.length-=j,W}},{key:"_getBuffer",value:function(w){var Z=R.allocUnsafe(w),j=this.head,W=1;for(j.data.copy(Z),w-=j.data.length;j=j.next;){var ie=j.data,ee=w>ie.length?ie.length:w;if(ie.copy(Z,Z.length-w,0,ee),0==(w-=ee)){ee===ie.length?(++W,this.head=j.next?j.next:this.tail=null):(this.head=j,j.data=ie.slice(ee));break}++W}return this.length-=W,Z}},{key:O,value:function(w,Z){return L(this,function t(E){for(var P=1;P{"use strict";function m(o,M){v(o,M),e(o)}function e(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function v(o,M){o.emit("error",M)}Ve.exports={destroy:function Q(o,M){var l=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(M?M(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(v,this,o)):process.nextTick(v,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(L){!M&&L?l._writableState?l._writableState.errorEmitted?process.nextTick(e,l):(l._writableState.errorEmitted=!0,process.nextTick(m,l,L)):process.nextTick(m,l,L):M?(process.nextTick(e,l),M(L)):process.nextTick(e,l)}),this)},undestroy:function t(){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 C(o,M){var l=o._readableState,R=o._writableState;l&&l.autoDestroy||R&&R.autoDestroy?o.destroy(M):o.emit("error",M)}}},7542:(Ve,Q,m)=>{"use strict";var e=m(891).q.ERR_STREAM_PREMATURE_CLOSE;function v(){}Ve.exports=function o(M,l,R){if("function"==typeof l)return o(M,null,l);l||(l={}),R=function t(M){var l=!1;return function(){if(!l){l=!0;for(var R=arguments.length,s=new Array(R),L=0;L{Ve.exports=function(){throw new Error("Readable.from is not available in the browser")}},954:(Ve,Q,m)=>{"use strict";var e,v=m(891).q,C=v.ERR_MISSING_ARGS,o=v.ERR_STREAM_DESTROYED;function M(E){if(E)throw E}function R(E,P,w,Z){Z=function t(E){var P=!1;return function(){P||(P=!0,E.apply(void 0,arguments))}}(Z);var j=!1;E.on("close",function(){j=!0}),void 0===e&&(e=m(7542)),e(E,{readable:P,writable:w},function(ie){if(ie)return Z(ie);j=!0,Z()});var W=!1;return function(ie){if(!j&&!W){if(W=!0,function l(E){return E.setHeader&&"function"==typeof E.abort}(E))return E.abort();if("function"==typeof E.destroy)return E.destroy();Z(ie||new o("pipe"))}}}function s(E){E()}function L(E,P){return E.pipe(P)}function O(E){return E.length&&"function"==typeof E[E.length-1]?E.pop():M}Ve.exports=function A(){for(var E=arguments.length,P=new Array(E),w=0;w0,function(re){j||(j=re),re&&W.forEach(s),!ve&&(W.forEach(s),Z(j))})});return P.reduce(L)}},7102:(Ve,Q,m)=>{"use strict";var e=m(891).q.ERR_INVALID_OPT_VALUE;Ve.exports={getHighWaterMark:function v(C,o,M,l){var R=function t(C,o,M){return null!=C.highWaterMark?C.highWaterMark:o?C[M]:null}(o,l,M);if(null!=R){if(!isFinite(R)||Math.floor(R)!==R||R<0)throw new e(l?M:"highWaterMark",R);return Math.floor(R)}return C.objectMode?16:16384}}},4970:(Ve,Q,m)=>{Ve.exports=m(9069).EventEmitter},5685:(Ve,Q,m)=>{(Q=Ve.exports=m(3154)).Stream=Q,Q.Readable=Q,Q.Writable=m(520),Q.Duplex=m(1339),Q.Transform=m(6025),Q.PassThrough=m(6071),Q.finished=m(7542),Q.pipeline=m(954)},5634:(Ve,Q,m)=>{"use strict";var e=m(3172).Buffer,t=m(3894),v=m(9650),C=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],M=[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],l=[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],R=[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],s=[0,1518500249,1859775393,2400959708,2840853838],L=[1352829926,1548603684,1836072691,2053994217,0];function O(){v.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function A(W,ie){return W<>>32-ie}function E(W,ie,ee,ve,he,re,de,le){return A(W+(ie^ee^ve)+re+de|0,le)+he|0}function P(W,ie,ee,ve,he,re,de,le){return A(W+(ie&ee|~ie&ve)+re+de|0,le)+he|0}function w(W,ie,ee,ve,he,re,de,le){return A(W+((ie|~ee)^ve)+re+de|0,le)+he|0}function Z(W,ie,ee,ve,he,re,de,le){return A(W+(ie&ve|ee&~ve)+re+de|0,le)+he|0}function j(W,ie,ee,ve,he,re,de,le){return A(W+(ie^(ee|~ve))+re+de|0,le)+he|0}t(O,v),O.prototype._update=function(){for(var W=C,ie=0;ie<16;++ie)W[ie]=this._block.readInt32LE(4*ie);for(var ee=0|this._a,ve=0|this._b,he=0|this._c,re=0|this._d,de=0|this._e,le=0|this._a,se=0|this._b,y=0|this._c,i=0|this._d,a=0|this._e,p=0;p<80;p+=1){var u,_;p<16?(u=E(ee,ve,he,re,de,W[o[p]],s[0],l[p]),_=j(le,se,y,i,a,W[M[p]],L[0],R[p])):p<32?(u=P(ee,ve,he,re,de,W[o[p]],s[1],l[p]),_=Z(le,se,y,i,a,W[M[p]],L[1],R[p])):p<48?(u=w(ee,ve,he,re,de,W[o[p]],s[2],l[p]),_=w(le,se,y,i,a,W[M[p]],L[2],R[p])):p<64?(u=Z(ee,ve,he,re,de,W[o[p]],s[3],l[p]),_=P(le,se,y,i,a,W[M[p]],L[3],R[p])):(u=j(ee,ve,he,re,de,W[o[p]],s[4],l[p]),_=E(le,se,y,i,a,W[M[p]],L[4],R[p])),ee=de,de=re,re=A(he,10),he=ve,ve=u,le=a,a=i,i=A(y,10),y=se,se=_}var D=this._b+he+i|0;this._b=this._c+re+a|0,this._c=this._d+de+le|0,this._d=this._e+ee+se|0,this._e=this._a+ve+y|0,this._a=D},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 W=e.alloc?e.alloc(20):new e(20);return W.writeInt32LE(this._a,0),W.writeInt32LE(this._b,4),W.writeInt32LE(this._c,8),W.writeInt32LE(this._d,12),W.writeInt32LE(this._e,16),W},Ve.exports=O},1135:(Ve,Q,m)=>{"use strict";m.d(Q,{X:()=>t});var e=m(7579);class t extends e.x{constructor(C){super(),this._value=C}get value(){return this.getValue()}_subscribe(C){const o=super._subscribe(C);return!o.closed&&C.next(this._value),o}getValue(){const{hasError:C,thrownError:o,_value:M}=this;if(C)throw o;return this._throwIfClosed(),M}next(C){super.next(this._value=C)}}},8306:(Ve,Q,m)=>{"use strict";m.d(Q,{y:()=>L});var e=m(930),t=m(727),v=m(8822),C=m(4671);var l=m(2416),R=m(576),s=m(2806);let L=(()=>{class P{constructor(Z){Z&&(this._subscribe=Z)}lift(Z){const j=new P;return j.source=this,j.operator=Z,j}subscribe(Z,j,W){const ie=function E(P){return P&&P instanceof e.Lv||function A(P){return P&&(0,R.m)(P.next)&&(0,R.m)(P.error)&&(0,R.m)(P.complete)}(P)&&(0,t.Nn)(P)}(Z)?Z:new e.Hp(Z,j,W);return(0,s.x)(()=>{const{operator:ee,source:ve}=this;ie.add(ee?ee.call(ie,ve):ve?this._subscribe(ie):this._trySubscribe(ie))}),ie}_trySubscribe(Z){try{return this._subscribe(Z)}catch(j){Z.error(j)}}forEach(Z,j){return new(j=O(j))((W,ie)=>{let ee;ee=this.subscribe(ve=>{try{Z(ve)}catch(he){ie(he),null==ee||ee.unsubscribe()}},ie,W)})}_subscribe(Z){var j;return null===(j=this.source)||void 0===j?void 0:j.subscribe(Z)}[v.L](){return this}pipe(...Z){return function M(P){return 0===P.length?C.y:1===P.length?P[0]:function(Z){return P.reduce((j,W)=>W(j),Z)}}(Z)(this)}toPromise(Z){return new(Z=O(Z))((j,W)=>{let ie;this.subscribe(ee=>ie=ee,ee=>W(ee),()=>j(ie))})}}return P.create=w=>new P(w),P})();function O(P){var w;return null!==(w=null!=P?P:l.v.Promise)&&void 0!==w?w:Promise}},4707:(Ve,Q,m)=>{"use strict";m.d(Q,{t:()=>v});var e=m(7579),t=m(6063);class v extends e.x{constructor(o=1/0,M=1/0,l=t.l){super(),this._bufferSize=o,this._windowTime=M,this._timestampProvider=l,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=M===1/0,this._bufferSize=Math.max(1,o),this._windowTime=Math.max(1,M)}next(o){const{isStopped:M,_buffer:l,_infiniteTimeWindow:R,_timestampProvider:s,_windowTime:L}=this;M||(l.push(o),!R&&l.push(s.now()+L)),this._trimBuffer(),super.next(o)}_subscribe(o){this._throwIfClosed(),this._trimBuffer();const M=this._innerSubscribe(o),{_infiniteTimeWindow:l,_buffer:R}=this,s=R.slice();for(let L=0;L{"use strict";m.d(Q,{u:()=>R,x:()=>l});var e=m(8306),t=m(727);const C=(0,m(3888).d)(s=>function(){s(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var o=m(8737),M=m(2806);let l=(()=>{class s extends e.y{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(O){const A=new R(this,this);return A.operator=O,A}_throwIfClosed(){if(this.closed)throw new C}next(O){(0,M.x)(()=>{if(this._throwIfClosed(),!this.isStopped){const A=this.observers.slice();for(const E of A)E.next(O)}})}error(O){(0,M.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=O;const{observers:A}=this;for(;A.length;)A.shift().error(O)}})}complete(){(0,M.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:O}=this;for(;O.length;)O.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var O;return(null===(O=this.observers)||void 0===O?void 0:O.length)>0}_trySubscribe(O){return this._throwIfClosed(),super._trySubscribe(O)}_subscribe(O){return this._throwIfClosed(),this._checkFinalizedStatuses(O),this._innerSubscribe(O)}_innerSubscribe(O){const{hasError:A,isStopped:E,observers:P}=this;return A||E?t.Lc:(P.push(O),new t.w0(()=>(0,o.P)(P,O)))}_checkFinalizedStatuses(O){const{hasError:A,thrownError:E,isStopped:P}=this;A?O.error(E):P&&O.complete()}asObservable(){const O=new e.y;return O.source=this,O}}return s.create=(L,O)=>new R(L,O),s})();class R extends l{constructor(L,O){super(),this.destination=L,this.source=O}next(L){var O,A;null===(A=null===(O=this.destination)||void 0===O?void 0:O.next)||void 0===A||A.call(O,L)}error(L){var O,A;null===(A=null===(O=this.destination)||void 0===O?void 0:O.error)||void 0===A||A.call(O,L)}complete(){var L,O;null===(O=null===(L=this.destination)||void 0===L?void 0:L.complete)||void 0===O||O.call(L)}_subscribe(L){var O,A;return null!==(A=null===(O=this.source)||void 0===O?void 0:O.subscribe(L))&&void 0!==A?A:t.Lc}}},930:(Ve,Q,m)=>{"use strict";m.d(Q,{Hp:()=>E,Lv:()=>A});var e=m(576),t=m(727),v=m(2416),C=m(7849),o=m(5032);const M=s("C",void 0,void 0);function s(W,ie,ee){return{kind:W,value:ie,error:ee}}var L=m(3410),O=m(2806);class A extends t.w0{constructor(ie){super(),this.isStopped=!1,ie?(this.destination=ie,(0,t.Nn)(ie)&&ie.add(this)):this.destination=j}static create(ie,ee,ve){return new E(ie,ee,ve)}next(ie){this.isStopped?Z(function R(W){return s("N",W,void 0)}(ie),this):this._next(ie)}error(ie){this.isStopped?Z(function l(W){return s("E",void 0,W)}(ie),this):(this.isStopped=!0,this._error(ie))}complete(){this.isStopped?Z(M,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(ie){this.destination.next(ie)}_error(ie){try{this.destination.error(ie)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}class E extends A{constructor(ie,ee,ve){let he;if(super(),(0,e.m)(ie))he=ie;else if(ie){let re;({next:he,error:ee,complete:ve}=ie),this&&v.v.useDeprecatedNextContext?(re=Object.create(ie),re.unsubscribe=()=>this.unsubscribe()):re=ie,he=null==he?void 0:he.bind(re),ee=null==ee?void 0:ee.bind(re),ve=null==ve?void 0:ve.bind(re)}this.destination={next:he?P(he):o.Z,error:P(null!=ee?ee:w),complete:ve?P(ve):o.Z}}}function P(W,ie){return(...ee)=>{try{W(...ee)}catch(ve){v.v.useDeprecatedSynchronousErrorHandling?(0,O.O)(ve):(0,C.h)(ve)}}}function w(W){throw W}function Z(W,ie){const{onStoppedNotification:ee}=v.v;ee&&L.z.setTimeout(()=>ee(W,ie))}const j={closed:!0,next:o.Z,error:w,complete:o.Z}},727:(Ve,Q,m)=>{"use strict";m.d(Q,{Lc:()=>M,w0:()=>o,Nn:()=>l});var e=m(576);const v=(0,m(3888).d)(s=>function(O){s(this),this.message=O?`${O.length} errors occurred during unsubscription:\n${O.map((A,E)=>`${E+1}) ${A.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=O});var C=m(8737);class o{constructor(L){this.initialTeardown=L,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let L;if(!this.closed){this.closed=!0;const{_parentage:O}=this;if(O)if(this._parentage=null,Array.isArray(O))for(const P of O)P.remove(this);else O.remove(this);const{initialTeardown:A}=this;if((0,e.m)(A))try{A()}catch(P){L=P instanceof v?P.errors:[P]}const{_teardowns:E}=this;if(E){this._teardowns=null;for(const P of E)try{R(P)}catch(w){L=null!=L?L:[],w instanceof v?L=[...L,...w.errors]:L.push(w)}}if(L)throw new v(L)}}add(L){var O;if(L&&L!==this)if(this.closed)R(L);else{if(L instanceof o){if(L.closed||L._hasParent(this))return;L._addParent(this)}(this._teardowns=null!==(O=this._teardowns)&&void 0!==O?O:[]).push(L)}}_hasParent(L){const{_parentage:O}=this;return O===L||Array.isArray(O)&&O.includes(L)}_addParent(L){const{_parentage:O}=this;this._parentage=Array.isArray(O)?(O.push(L),O):O?[O,L]:L}_removeParent(L){const{_parentage:O}=this;O===L?this._parentage=null:Array.isArray(O)&&(0,C.P)(O,L)}remove(L){const{_teardowns:O}=this;O&&(0,C.P)(O,L),L instanceof o&&L._removeParent(this)}}o.EMPTY=(()=>{const s=new o;return s.closed=!0,s})();const M=o.EMPTY;function l(s){return s instanceof o||s&&"closed"in s&&(0,e.m)(s.remove)&&(0,e.m)(s.add)&&(0,e.m)(s.unsubscribe)}function R(s){(0,e.m)(s)?s():s.unsubscribe()}},2416:(Ve,Q,m)=>{"use strict";m.d(Q,{v:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(Ve,Q,m)=>{"use strict";m.d(Q,{a:()=>L});var e=m(8306),t=m(4742),v=m(457),C=m(4671),o=m(3268),M=m(3269),l=m(1810),R=m(5403),s=m(9672);function L(...E){const P=(0,M.yG)(E),w=(0,M.jO)(E),{args:Z,keys:j}=(0,t.D)(E);if(0===Z.length)return(0,v.D)([],P);const W=new e.y(function O(E,P,w=C.y){return Z=>{A(P,()=>{const{length:j}=E,W=new Array(j);let ie=j,ee=j;for(let ve=0;ve{const he=(0,v.D)(E[ve],P);let re=!1;he.subscribe(new R.Q(Z,de=>{W[ve]=de,re||(re=!0,ee--),ee||Z.next(w(W.slice()))},()=>{--ie||Z.complete()}))},Z)},Z)}}(Z,P,j?ie=>(0,l.n)(j,ie):C.y));return w?W.pipe((0,o.Z)(w)):W}function A(E,P,w){E?(0,s.f)(w,E,P):P()}},7272:(Ve,Q,m)=>{"use strict";m.d(Q,{z:()=>o});var e=m(8189),v=m(3269),C=m(457);function o(...M){return function t(){return(0,e.J)(1)}()((0,C.D)(M,(0,v.yG)(M)))}},9770:(Ve,Q,m)=>{"use strict";m.d(Q,{P:()=>v});var e=m(8306),t=m(8421);function v(C){return new e.y(o=>{(0,t.Xf)(C()).subscribe(o)})}},515:(Ve,Q,m)=>{"use strict";m.d(Q,{E:()=>t});const t=new(m(8306).y)(o=>o.complete())},4128:(Ve,Q,m)=>{"use strict";m.d(Q,{D:()=>R});var e=m(8306),t=m(4742),v=m(8421),C=m(3269),o=m(5403),M=m(3268),l=m(1810);function R(...s){const L=(0,C.jO)(s),{args:O,keys:A}=(0,t.D)(s),E=new e.y(P=>{const{length:w}=O;if(!w)return void P.complete();const Z=new Array(w);let j=w,W=w;for(let ie=0;ie{ee||(ee=!0,W--),Z[ie]=ve},()=>j--,void 0,()=>{(!j||!ee)&&(W||P.next(A?(0,l.n)(A,Z):Z),P.complete())}))}});return L?E.pipe((0,M.Z)(L)):E}},457:(Ve,Q,m)=>{"use strict";m.d(Q,{D:()=>re});var e=m(8421),t=m(5363),v=m(4482);function C(de,le=0){return(0,v.e)((se,y)=>{y.add(de.schedule(()=>se.subscribe(y),le))})}var l=m(8306),s=m(2202),L=m(576),O=m(9672);function E(de,le){if(!de)throw new Error("Iterable cannot be null");return new l.y(se=>{(0,O.f)(se,le,()=>{const y=de[Symbol.asyncIterator]();(0,O.f)(se,le,()=>{y.next().then(i=>{i.done?se.complete():se.next(i.value)})},0,!0)})})}var P=m(3670),w=m(8239),Z=m(1144),j=m(6495),W=m(2206),ie=m(4532),ee=m(3260);function re(de,le){return le?function he(de,le){if(null!=de){if((0,P.c)(de))return function o(de,le){return(0,e.Xf)(de).pipe(C(le),(0,t.Q)(le))}(de,le);if((0,Z.z)(de))return function R(de,le){return new l.y(se=>{let y=0;return le.schedule(function(){y===de.length?se.complete():(se.next(de[y++]),se.closed||this.schedule())})})}(de,le);if((0,w.t)(de))return function M(de,le){return(0,e.Xf)(de).pipe(C(le),(0,t.Q)(le))}(de,le);if((0,W.D)(de))return E(de,le);if((0,j.T)(de))return function A(de,le){return new l.y(se=>{let y;return(0,O.f)(se,le,()=>{y=de[s.h](),(0,O.f)(se,le,()=>{let i,a;try{({value:i,done:a}=y.next())}catch(p){return void se.error(p)}a?se.complete():se.next(i)},0,!0)}),()=>(0,L.m)(null==y?void 0:y.return)&&y.return()})}(de,le);if((0,ee.L)(de))return function ve(de,le){return E((0,ee.Q)(de),le)}(de,le)}throw(0,ie.z)(de)}(de,le):(0,e.Xf)(de)}},4968:(Ve,Q,m)=>{"use strict";m.d(Q,{R:()=>L});var e=m(8421),t=m(8306),v=m(5577),C=m(1144),o=m(576),M=m(3268);const l=["addListener","removeListener"],R=["addEventListener","removeEventListener"],s=["on","off"];function L(w,Z,j,W){if((0,o.m)(j)&&(W=j,j=void 0),W)return L(w,Z,j).pipe((0,M.Z)(W));const[ie,ee]=function P(w){return(0,o.m)(w.addEventListener)&&(0,o.m)(w.removeEventListener)}(w)?R.map(ve=>he=>w[ve](Z,he,j)):function A(w){return(0,o.m)(w.addListener)&&(0,o.m)(w.removeListener)}(w)?l.map(O(w,Z)):function E(w){return(0,o.m)(w.on)&&(0,o.m)(w.off)}(w)?s.map(O(w,Z)):[];if(!ie&&(0,C.z)(w))return(0,v.z)(ve=>L(ve,Z,j))((0,e.Xf)(w));if(!ie)throw new TypeError("Invalid event target");return new t.y(ve=>{const he=(...re)=>ve.next(1ee(he)})}function O(w,Z){return j=>W=>w[j](Z,W)}},8421:(Ve,Q,m)=>{"use strict";m.d(Q,{Xf:()=>E});var e=m(5987),t=m(1144),v=m(8239),C=m(8306),o=m(3670),M=m(2206),l=m(4532),R=m(6495),s=m(3260),L=m(576),O=m(7849),A=m(8822);function E(ve){if(ve instanceof C.y)return ve;if(null!=ve){if((0,o.c)(ve))return function P(ve){return new C.y(he=>{const re=ve[A.L]();if((0,L.m)(re.subscribe))return re.subscribe(he);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ve);if((0,t.z)(ve))return function w(ve){return new C.y(he=>{for(let re=0;re{ve.then(re=>{he.closed||(he.next(re),he.complete())},re=>he.error(re)).then(null,O.h)})}(ve);if((0,M.D)(ve))return W(ve);if((0,R.T)(ve))return function j(ve){return new C.y(he=>{for(const re of ve)if(he.next(re),he.closed)return;he.complete()})}(ve);if((0,s.L)(ve))return function ie(ve){return W((0,s.Q)(ve))}(ve)}throw(0,l.z)(ve)}function W(ve){return new C.y(he=>{(function ee(ve,he){var re,de,le,se;return(0,e.mG)(this,void 0,void 0,function*(){try{for(re=(0,e.KL)(ve);!(de=yield re.next()).done;)if(he.next(de.value),he.closed)return}catch(y){le={error:y}}finally{try{de&&!de.done&&(se=re.return)&&(yield se.call(re))}finally{if(le)throw le.error}}he.complete()})})(ve,he).catch(re=>he.error(re))})}},6451:(Ve,Q,m)=>{"use strict";m.d(Q,{T:()=>M});var e=m(8189),t=m(8421),v=m(515),C=m(3269),o=m(457);function M(...l){const R=(0,C.yG)(l),s=(0,C._6)(l,1/0),L=l;return L.length?1===L.length?(0,t.Xf)(L[0]):(0,e.J)(s)((0,o.D)(L,R)):v.E}},9646:(Ve,Q,m)=>{"use strict";m.d(Q,{of:()=>v});var e=m(3269),t=m(457);function v(...C){const o=(0,e.yG)(C);return(0,t.D)(C,o)}},2843:(Ve,Q,m)=>{"use strict";m.d(Q,{_:()=>v});var e=m(8306),t=m(576);function v(C,o){const M=(0,t.m)(C)?C:()=>C,l=R=>R.error(M());return new e.y(o?R=>o.schedule(l,0,R):l)}},2805:(Ve,Q,m)=>{"use strict";m.d(Q,{H:()=>o});var e=m(8306),t=m(4986),v=m(3532),C=m(1165);function o(M=0,l,R=t.P){let s=-1;return null!=l&&((0,v.K)(l)?R=l:s=l),new e.y(L=>{let O=(0,C.q)(M)?+M-R.now():M;O<0&&(O=0);let A=0;return R.schedule(function(){L.closed||(L.next(A++),0<=s?this.schedule(void 0,s):L.complete())},O)})}},5403:(Ve,Q,m)=>{"use strict";m.d(Q,{Q:()=>t});var e=m(930);class t extends e.Lv{constructor(C,o,M,l,R){super(C),this.onFinalize=R,this._next=o?function(s){try{o(s)}catch(L){C.error(L)}}:super._next,this._error=l?function(s){try{l(s)}catch(L){C.error(L)}finally{this.unsubscribe()}}:super._error,this._complete=M?function(){try{M()}catch(s){C.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var C;const{closed:o}=this;super.unsubscribe(),!o&&(null===(C=this.onFinalize)||void 0===C||C.call(this))}}},3601:(Ve,Q,m)=>{"use strict";m.d(Q,{e:()=>l});var e=m(4986),t=m(4482),v=m(8421),C=m(5403),M=m(2805);function l(R,s=e.P){return function o(R){return(0,t.e)((s,L)=>{let O=!1,A=null,E=null,P=!1;const w=()=>{if(null==E||E.unsubscribe(),E=null,O){O=!1;const j=A;A=null,L.next(j)}P&&L.complete()},Z=()=>{E=null,P&&L.complete()};s.subscribe(new C.Q(L,j=>{O=!0,A=j,E||(0,v.Xf)(R(j)).subscribe(E=new C.Q(L,w,Z))},()=>{P=!0,(!O||!E||E.closed)&&L.complete()}))})}(()=>(0,M.H)(R,s))}},262:(Ve,Q,m)=>{"use strict";m.d(Q,{K:()=>C});var e=m(8421),t=m(5403),v=m(4482);function C(o){return(0,v.e)((M,l)=>{let L,R=null,s=!1;R=M.subscribe(new t.Q(l,void 0,void 0,O=>{L=(0,e.Xf)(o(O,C(o)(M))),R?(R.unsubscribe(),R=null,L.subscribe(l)):s=!0})),s&&(R.unsubscribe(),R=null,L.subscribe(l))})}},4351:(Ve,Q,m)=>{"use strict";m.d(Q,{b:()=>v});var e=m(5577),t=m(576);function v(C,o){return(0,t.m)(o)?(0,e.z)(C,o,1):(0,e.z)(C,1)}},8372:(Ve,Q,m)=>{"use strict";m.d(Q,{b:()=>C});var e=m(4986),t=m(4482),v=m(5403);function C(o,M=e.z){return(0,t.e)((l,R)=>{let s=null,L=null,O=null;const A=()=>{if(s){s.unsubscribe(),s=null;const P=L;L=null,R.next(P)}};function E(){const P=O+o,w=M.now();if(w{L=P,O=M.now(),s||(s=M.schedule(E,o),R.add(s))},()=>{A(),R.complete()},void 0,()=>{L=s=null}))})}},6590:(Ve,Q,m)=>{"use strict";m.d(Q,{d:()=>v});var e=m(4482),t=m(5403);function v(C){return(0,e.e)((o,M)=>{let l=!1;o.subscribe(new t.Q(M,R=>{l=!0,M.next(R)},()=>{l||M.next(C),M.complete()}))})}},4086:(Ve,Q,m)=>{"use strict";m.d(Q,{g:()=>s});var e=m(4986),t=m(7272),v=m(5698),C=m(8502),o=m(9718),M=m(5577);function l(L,O){return O?A=>(0,t.z)(O.pipe((0,v.q)(1),(0,C.l)()),A.pipe(l(L))):(0,M.z)((A,E)=>L(A,E).pipe((0,v.q)(1),(0,o.h)(A)))}var R=m(2805);function s(L,O=e.z){const A=(0,R.H)(L,O);return l(()=>A)}},1884:(Ve,Q,m)=>{"use strict";m.d(Q,{x:()=>C});var e=m(4671),t=m(4482),v=m(5403);function C(M,l=e.y){return M=null!=M?M:o,(0,t.e)((R,s)=>{let L,O=!0;R.subscribe(new v.Q(s,A=>{const E=l(A);(O||!M(L,E))&&(O=!1,L=E,s.next(A))}))})}function o(M,l){return M===l}},9300:(Ve,Q,m)=>{"use strict";m.d(Q,{h:()=>v});var e=m(4482),t=m(5403);function v(C,o){return(0,e.e)((M,l)=>{let R=0;M.subscribe(new t.Q(l,s=>C.call(o,s,R++)&&l.next(s)))})}},8746:(Ve,Q,m)=>{"use strict";m.d(Q,{x:()=>t});var e=m(4482);function t(v){return(0,e.e)((C,o)=>{try{C.subscribe(o)}finally{o.add(v)}})}},590:(Ve,Q,m)=>{"use strict";m.d(Q,{P:()=>l});var e=m(6805),t=m(9300),v=m(5698),C=m(6590),o=m(8068),M=m(4671);function l(R,s){const L=arguments.length>=2;return O=>O.pipe(R?(0,t.h)((A,E)=>R(A,E,O)):M.y,(0,v.q)(1),L?(0,C.d)(s):(0,o.T)(()=>new e.K))}},8502:(Ve,Q,m)=>{"use strict";m.d(Q,{l:()=>C});var e=m(4482),t=m(5403),v=m(5032);function C(){return(0,e.e)((o,M)=>{o.subscribe(new t.Q(M,v.Z))})}},4004:(Ve,Q,m)=>{"use strict";m.d(Q,{U:()=>v});var e=m(4482),t=m(5403);function v(C,o){return(0,e.e)((M,l)=>{let R=0;M.subscribe(new t.Q(l,s=>{l.next(C.call(o,s,R++))}))})}},9718:(Ve,Q,m)=>{"use strict";m.d(Q,{h:()=>t});var e=m(4004);function t(v){return(0,e.U)(()=>v)}},8189:(Ve,Q,m)=>{"use strict";m.d(Q,{J:()=>v});var e=m(5577),t=m(4671);function v(C=1/0){return(0,e.z)(t.y,C)}},5577:(Ve,Q,m)=>{"use strict";m.d(Q,{z:()=>R});var e=m(4004),t=m(8421),v=m(4482),C=m(9672),o=m(5403),l=m(576);function R(s,L,O=1/0){return(0,l.m)(L)?R((A,E)=>(0,e.U)((P,w)=>L(A,P,E,w))((0,t.Xf)(s(A,E))),O):("number"==typeof L&&(O=L),(0,v.e)((A,E)=>function M(s,L,O,A,E,P,w,Z){const j=[];let W=0,ie=0,ee=!1;const ve=()=>{ee&&!j.length&&!W&&L.complete()},he=de=>W{P&&L.next(de),W++;let le=!1;(0,t.Xf)(O(de,ie++)).subscribe(new o.Q(L,se=>{null==E||E(se),P?he(se):L.next(se)},()=>{le=!0},void 0,()=>{if(le)try{for(W--;j.length&&Wre(se)):re(se)}ve()}catch(se){L.error(se)}}))};return s.subscribe(new o.Q(L,he,()=>{ee=!0,ve()})),()=>{null==Z||Z()}}(A,E,s,O)))}},5363:(Ve,Q,m)=>{"use strict";m.d(Q,{Q:()=>C});var e=m(9672),t=m(4482),v=m(5403);function C(o,M=0){return(0,t.e)((l,R)=>{l.subscribe(new v.Q(R,s=>(0,e.f)(R,o,()=>R.next(s),M),()=>(0,e.f)(R,o,()=>R.complete(),M),s=>(0,e.f)(R,o,()=>R.error(s),M)))})}},5026:(Ve,Q,m)=>{"use strict";m.d(Q,{R:()=>C});var e=m(4482),t=m(5403);function v(o,M,l,R,s){return(L,O)=>{let A=l,E=M,P=0;L.subscribe(new t.Q(O,w=>{const Z=P++;E=A?o(E,w,Z):(A=!0,w),R&&O.next(E)},s&&(()=>{A&&O.next(E),O.complete()})))}}function C(o,M){return(0,e.e)(v(o,M,arguments.length>=2,!0))}},3099:(Ve,Q,m)=>{"use strict";m.d(Q,{B:()=>M});var e=m(457),t=m(5698),v=m(7579),C=m(930),o=m(4482);function M(R={}){const{connector:s=(()=>new v.x),resetOnError:L=!0,resetOnComplete:O=!0,resetOnRefCountZero:A=!0}=R;return E=>{let P=null,w=null,Z=null,j=0,W=!1,ie=!1;const ee=()=>{null==w||w.unsubscribe(),w=null},ve=()=>{ee(),P=Z=null,W=ie=!1},he=()=>{const re=P;ve(),null==re||re.unsubscribe()};return(0,o.e)((re,de)=>{j++,!ie&&!W&&ee();const le=Z=null!=Z?Z:s();de.add(()=>{j--,0===j&&!ie&&!W&&(w=l(he,A))}),le.subscribe(de),P||(P=new C.Hp({next:se=>le.next(se),error:se=>{ie=!0,ee(),w=l(ve,L,se),le.error(se)},complete:()=>{W=!0,ee(),w=l(ve,O),le.complete()}}),(0,e.D)(re).subscribe(P))})(E)}}function l(R,s,...L){return!0===s?(R(),null):!1===s?null:s(...L).pipe((0,t.q)(1)).subscribe(()=>R())}},5684:(Ve,Q,m)=>{"use strict";m.d(Q,{T:()=>t});var e=m(9300);function t(v){return(0,e.h)((C,o)=>v<=o)}},8675:(Ve,Q,m)=>{"use strict";m.d(Q,{O:()=>C});var e=m(7272),t=m(3269),v=m(4482);function C(...o){const M=(0,t.yG)(o);return(0,v.e)((l,R)=>{(M?(0,e.z)(o,l,M):(0,e.z)(o,l)).subscribe(R)})}},3900:(Ve,Q,m)=>{"use strict";m.d(Q,{w:()=>C});var e=m(8421),t=m(4482),v=m(5403);function C(o,M){return(0,t.e)((l,R)=>{let s=null,L=0,O=!1;const A=()=>O&&!s&&R.complete();l.subscribe(new v.Q(R,E=>{null==s||s.unsubscribe();let P=0;const w=L++;(0,e.Xf)(o(E,w)).subscribe(s=new v.Q(R,Z=>R.next(M?M(E,Z,w,P++):Z),()=>{s=null,A()}))},()=>{O=!0,A()}))})}},5698:(Ve,Q,m)=>{"use strict";m.d(Q,{q:()=>C});var e=m(515),t=m(4482),v=m(5403);function C(o){return o<=0?()=>e.E:(0,t.e)((M,l)=>{let R=0;M.subscribe(new v.Q(l,s=>{++R<=o&&(l.next(s),o<=R&&l.complete())}))})}},2722:(Ve,Q,m)=>{"use strict";m.d(Q,{R:()=>o});var e=m(4482),t=m(5403),v=m(8421),C=m(5032);function o(M){return(0,e.e)((l,R)=>{(0,v.Xf)(M).subscribe(new t.Q(R,()=>R.complete(),C.Z)),!R.closed&&l.subscribe(R)})}},8505:(Ve,Q,m)=>{"use strict";m.d(Q,{b:()=>o});var e=m(576),t=m(4482),v=m(5403),C=m(4671);function o(M,l,R){const s=(0,e.m)(M)||l||R?{next:M,error:l,complete:R}:M;return s?(0,t.e)((L,O)=>{var A;null===(A=s.subscribe)||void 0===A||A.call(s);let E=!0;L.subscribe(new v.Q(O,P=>{var w;null===(w=s.next)||void 0===w||w.call(s,P),O.next(P)},()=>{var P;E=!1,null===(P=s.complete)||void 0===P||P.call(s),O.complete()},P=>{var w;E=!1,null===(w=s.error)||void 0===w||w.call(s,P),O.error(P)},()=>{var P,w;E&&(null===(P=s.unsubscribe)||void 0===P||P.call(s)),null===(w=s.finalize)||void 0===w||w.call(s)}))}):C.y}},8068:(Ve,Q,m)=>{"use strict";m.d(Q,{T:()=>C});var e=m(6805),t=m(4482),v=m(5403);function C(M=o){return(0,t.e)((l,R)=>{let s=!1;l.subscribe(new v.Q(R,L=>{s=!0,R.next(L)},()=>s?R.complete():R.error(M())))})}function o(){return new e.K}},7414:(Ve,Q,m)=>{"use strict";m.d(Q,{V:()=>s});var e=m(4986),t=m(1165),v=m(4482),C=m(8421),o=m(3888),M=m(5403),l=m(9672);const R=(0,o.d)(O=>function(E=null){O(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=E});function s(O,A){const{first:E,each:P,with:w=L,scheduler:Z=(null!=A?A:e.z),meta:j=null}=(0,t.q)(O)?{first:O}:"number"==typeof O?{each:O}:O;if(null==E&&null==P)throw new TypeError("No timeout provided.");return(0,v.e)((W,ie)=>{let ee,ve,he=null,re=0;const de=le=>{ve=(0,l.f)(ie,Z,()=>{try{ee.unsubscribe(),(0,C.Xf)(w({meta:j,lastValue:he,seen:re})).subscribe(ie)}catch(se){ie.error(se)}},le)};ee=W.subscribe(new M.Q(ie,le=>{null==ve||ve.unsubscribe(),re++,ie.next(he=le),P>0&&de(P)},void 0,void 0,()=>{(null==ve?void 0:ve.closed)||null==ve||ve.unsubscribe(),he=null})),de(null!=E?"number"==typeof E?E:+E-Z.now():P)})}function L(O){throw new R(O)}},1365:(Ve,Q,m)=>{"use strict";m.d(Q,{M:()=>l});var e=m(4482),t=m(5403),v=m(8421),C=m(4671),o=m(5032),M=m(3269);function l(...R){const s=(0,M.jO)(R);return(0,e.e)((L,O)=>{const A=R.length,E=new Array(A);let P=R.map(()=>!1),w=!1;for(let Z=0;Z{E[Z]=j,!w&&!P[Z]&&(P[Z]=!0,(w=P.every(C.y))&&(P=null))},o.Z));L.subscribe(new t.Q(O,Z=>{if(w){const j=[Z,...E];O.next(s?s(...j):j)}}))})}},4408:(Ve,Q,m)=>{"use strict";m.d(Q,{o:()=>o});var e=m(727);class t extends e.w0{constructor(l,R){super()}schedule(l,R=0){return this}}const v={setInterval(...M){const{delegate:l}=v;return((null==l?void 0:l.setInterval)||setInterval)(...M)},clearInterval(M){const{delegate:l}=v;return((null==l?void 0:l.clearInterval)||clearInterval)(M)},delegate:void 0};var C=m(8737);class o extends t{constructor(l,R){super(l,R),this.scheduler=l,this.work=R,this.pending=!1}schedule(l,R=0){if(this.closed)return this;this.state=l;const s=this.id,L=this.scheduler;return null!=s&&(this.id=this.recycleAsyncId(L,s,R)),this.pending=!0,this.delay=R,this.id=this.id||this.requestAsyncId(L,this.id,R),this}requestAsyncId(l,R,s=0){return v.setInterval(l.flush.bind(l,this),s)}recycleAsyncId(l,R,s=0){if(null!=s&&this.delay===s&&!1===this.pending)return R;v.clearInterval(R)}execute(l,R){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const s=this._execute(l,R);if(s)return s;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(l,R){let L,s=!1;try{this.work(l)}catch(O){s=!0,L=O||new Error("Scheduled action threw falsy error")}if(s)return this.unsubscribe(),L}unsubscribe(){if(!this.closed){const{id:l,scheduler:R}=this,{actions:s}=R;this.work=this.state=this.scheduler=null,this.pending=!1,(0,C.P)(s,this),null!=l&&(this.id=this.recycleAsyncId(R,l,null)),this.delay=null,super.unsubscribe()}}}},7565:(Ve,Q,m)=>{"use strict";m.d(Q,{v:()=>v});var e=m(6063);class t{constructor(o,M=t.now){this.schedulerActionCtor=o,this.now=M}schedule(o,M=0,l){return new this.schedulerActionCtor(this,o).schedule(l,M)}}t.now=e.l.now;class v extends t{constructor(o,M=t.now){super(o,M),this.actions=[],this._active=!1,this._scheduled=void 0}flush(o){const{actions:M}=this;if(this._active)return void M.push(o);let l;this._active=!0;do{if(l=o.execute(o.state,o.delay))break}while(o=M.shift());if(this._active=!1,l){for(;o=M.shift();)o.unsubscribe();throw l}}}},3101:(Ve,Q,m)=>{"use strict";m.d(Q,{E:()=>P});var e=m(4408);let v,t=1;const C={};function o(Z){return Z in C&&(delete C[Z],!0)}const M={setImmediate(Z){const j=t++;return C[j]=!0,v||(v=Promise.resolve()),v.then(()=>o(j)&&Z()),j},clearImmediate(Z){o(Z)}},{setImmediate:R,clearImmediate:s}=M,L={setImmediate(...Z){const{delegate:j}=L;return((null==j?void 0:j.setImmediate)||R)(...Z)},clearImmediate(Z){const{delegate:j}=L;return((null==j?void 0:j.clearImmediate)||s)(Z)},delegate:void 0};var A=m(7565);const P=new class E extends A.v{flush(j){this._active=!0,this._scheduled=void 0;const{actions:W}=this;let ie,ee=-1;j=j||W.shift();const ve=W.length;do{if(ie=j.execute(j.state,j.delay))break}while(++ee0?super.requestAsyncId(j,W,ie):(j.actions.push(this),j._scheduled||(j._scheduled=L.setImmediate(j.flush.bind(j,void 0))))}recycleAsyncId(j,W,ie=0){if(null!=ie&&ie>0||null==ie&&this.delay>0)return super.recycleAsyncId(j,W,ie);0===j.actions.length&&(L.clearImmediate(W),j._scheduled=void 0)}})},4986:(Ve,Q,m)=>{"use strict";m.d(Q,{z:()=>v,P:()=>C});var e=m(4408);const v=new(m(7565).v)(e.o),C=v},6063:(Ve,Q,m)=>{"use strict";m.d(Q,{l:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},233:(Ve,Q,m)=>{"use strict";m.d(Q,{N:()=>o});var e=m(4408),v=m(7565);const o=new class C extends v.v{}(class t extends e.o{constructor(R,s){super(R,s),this.scheduler=R,this.work=s}schedule(R,s=0){return s>0?super.schedule(R,s):(this.delay=s,this.state=R,this.scheduler.flush(this),this)}execute(R,s){return s>0||this.closed?super.execute(R,s):this._execute(R,s)}requestAsyncId(R,s,L=0){return null!=L&&L>0||null==L&&this.delay>0?super.requestAsyncId(R,s,L):R.flush(this)}})},3410:(Ve,Q,m)=>{"use strict";m.d(Q,{z:()=>e});const e={setTimeout(...t){const{delegate:v}=e;return((null==v?void 0:v.setTimeout)||setTimeout)(...t)},clearTimeout(t){const{delegate:v}=e;return((null==v?void 0:v.clearTimeout)||clearTimeout)(t)},delegate:void 0}},2202:(Ve,Q,m)=>{"use strict";m.d(Q,{h:()=>t});const t=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(Ve,Q,m)=>{"use strict";m.d(Q,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(Ve,Q,m)=>{"use strict";m.d(Q,{K:()=>t});const t=(0,m(3888).d)(v=>function(){v(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(Ve,Q,m)=>{"use strict";m.d(Q,{jO:()=>C,yG:()=>o,_6:()=>M});var e=m(576),t=m(3532);function v(l){return l[l.length-1]}function C(l){return(0,e.m)(v(l))?l.pop():void 0}function o(l){return(0,t.K)(v(l))?l.pop():void 0}function M(l,R){return"number"==typeof v(l)?l.pop():R}},4742:(Ve,Q,m)=>{"use strict";m.d(Q,{D:()=>o});const{isArray:e}=Array,{getPrototypeOf:t,prototype:v,keys:C}=Object;function o(l){if(1===l.length){const R=l[0];if(e(R))return{args:R,keys:null};if(function M(l){return l&&"object"==typeof l&&t(l)===v}(R)){const s=C(R);return{args:s.map(L=>R[L]),keys:s}}}return{args:l,keys:null}}},8737:(Ve,Q,m)=>{"use strict";function e(t,v){if(t){const C=t.indexOf(v);0<=C&&t.splice(C,1)}}m.d(Q,{P:()=>e})},3888:(Ve,Q,m)=>{"use strict";function e(t){const C=t(o=>{Error.call(o),o.stack=(new Error).stack});return C.prototype=Object.create(Error.prototype),C.prototype.constructor=C,C}m.d(Q,{d:()=>e})},1810:(Ve,Q,m)=>{"use strict";function e(t,v){return t.reduce((C,o,M)=>(C[o]=v[M],C),{})}m.d(Q,{n:()=>e})},2806:(Ve,Q,m)=>{"use strict";m.d(Q,{x:()=>v,O:()=>C});var e=m(2416);let t=null;function v(o){if(e.v.useDeprecatedSynchronousErrorHandling){const M=!t;if(M&&(t={errorThrown:!1,error:null}),o(),M){const{errorThrown:l,error:R}=t;if(t=null,l)throw R}}else o()}function C(o){e.v.useDeprecatedSynchronousErrorHandling&&t&&(t.errorThrown=!0,t.error=o)}},9672:(Ve,Q,m)=>{"use strict";function e(t,v,C,o=0,M=!1){const l=v.schedule(function(){C(),M?t.add(this.schedule(null,o)):this.unsubscribe()},o);if(t.add(l),!M)return l}m.d(Q,{f:()=>e})},4671:(Ve,Q,m)=>{"use strict";function e(t){return t}m.d(Q,{y:()=>e})},1144:(Ve,Q,m)=>{"use strict";m.d(Q,{z:()=>e});const e=t=>t&&"number"==typeof t.length&&"function"!=typeof t},2206:(Ve,Q,m)=>{"use strict";m.d(Q,{D:()=>t});var e=m(576);function t(v){return Symbol.asyncIterator&&(0,e.m)(null==v?void 0:v[Symbol.asyncIterator])}},1165:(Ve,Q,m)=>{"use strict";function e(t){return t instanceof Date&&!isNaN(t)}m.d(Q,{q:()=>e})},576:(Ve,Q,m)=>{"use strict";function e(t){return"function"==typeof t}m.d(Q,{m:()=>e})},3670:(Ve,Q,m)=>{"use strict";m.d(Q,{c:()=>v});var e=m(8822),t=m(576);function v(C){return(0,t.m)(C[e.L])}},6495:(Ve,Q,m)=>{"use strict";m.d(Q,{T:()=>v});var e=m(2202),t=m(576);function v(C){return(0,t.m)(null==C?void 0:C[e.h])}},5191:(Ve,Q,m)=>{"use strict";m.d(Q,{b:()=>v});var e=m(8306),t=m(576);function v(C){return!!C&&(C instanceof e.y||(0,t.m)(C.lift)&&(0,t.m)(C.subscribe))}},8239:(Ve,Q,m)=>{"use strict";m.d(Q,{t:()=>t});var e=m(576);function t(v){return(0,e.m)(null==v?void 0:v.then)}},3260:(Ve,Q,m)=>{"use strict";m.d(Q,{Q:()=>v,L:()=>C});var e=m(5987),t=m(576);function v(o){return(0,e.FC)(this,arguments,function*(){const l=o.getReader();try{for(;;){const{value:R,done:s}=yield(0,e.qq)(l.read());if(s)return yield(0,e.qq)(void 0);yield yield(0,e.qq)(R)}}finally{l.releaseLock()}})}function C(o){return(0,t.m)(null==o?void 0:o.getReader)}},3532:(Ve,Q,m)=>{"use strict";m.d(Q,{K:()=>t});var e=m(576);function t(v){return v&&(0,e.m)(v.schedule)}},4482:(Ve,Q,m)=>{"use strict";m.d(Q,{A:()=>t,e:()=>v});var e=m(576);function t(C){return(0,e.m)(null==C?void 0:C.lift)}function v(C){return o=>{if(t(o))return o.lift(function(M){try{return C(M,this)}catch(l){this.error(l)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Ve,Q,m)=>{"use strict";m.d(Q,{Z:()=>C});var e=m(4004);const{isArray:t}=Array;function C(o){return(0,e.U)(M=>function v(o,M){return t(M)?o(...M):o(M)}(o,M))}},5032:(Ve,Q,m)=>{"use strict";function e(){}m.d(Q,{Z:()=>e})},7849:(Ve,Q,m)=>{"use strict";m.d(Q,{h:()=>v});var e=m(2416),t=m(3410);function v(C){t.z.setTimeout(()=>{const{onUnhandledError:o}=e.v;if(!o)throw C;o(C)})}},4532:(Ve,Q,m)=>{"use strict";function e(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}m.d(Q,{z:()=>e})},3502:(Ve,Q,m)=>{var e=m(3172),t=e.Buffer;function v(o,M){for(var l in o)M[l]=o[l]}function C(o,M,l){return t(o,M,l)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?Ve.exports=e:(v(e,Q),Q.Buffer=C),v(t,C),C.from=function(o,M,l){if("number"==typeof o)throw new TypeError("Argument must not be a number");return t(o,M,l)},C.alloc=function(o,M,l){if("number"!=typeof o)throw new TypeError("Argument must be a number");var R=t(o);return void 0!==M?"string"==typeof l?R.fill(M,l):R.fill(M):R.fill(0),R},C.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return t(o)},C.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return e.SlowBuffer(o)}},2038:(Ve,Q,m)=>{"use strict";var C,e=m(3172),t=e.Buffer,v={};for(C in e)!e.hasOwnProperty(C)||"SlowBuffer"===C||"Buffer"===C||(v[C]=e[C]);var o=v.Buffer={};for(C in t)!t.hasOwnProperty(C)||"allocUnsafe"===C||"allocUnsafeSlow"===C||(o[C]=t[C]);if(v.Buffer.prototype=t.prototype,(!o.from||o.from===Uint8Array.from)&&(o.from=function(M,l,R){if("number"==typeof M)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof M);if(M&&void 0===M.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof M);return t(M,l,R)}),o.alloc||(o.alloc=function(M,l,R){if("number"!=typeof M)throw new TypeError('The "size" argument must be of type number. Received type '+typeof M);if(M<0||M>=2*(1<<30))throw new RangeError('The value "'+M+'" is invalid for option "size"');var s=t(M);return l&&0!==l.length?"string"==typeof R?s.fill(l,R):s.fill(l):s.fill(0),s}),!v.kStringMaxLength)try{v.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(M){}v.constants||(v.constants={MAX_LENGTH:v.kMaxLength},v.kStringMaxLength&&(v.constants.MAX_STRING_LENGTH=v.kStringMaxLength)),Ve.exports=v},6692:(Ve,Q,m)=>{var e=m(3502).Buffer;function t(v,C){this._block=e.alloc(v),this._finalSize=C,this._blockSize=v,this._len=0}t.prototype.update=function(v,C){"string"==typeof v&&(v=e.from(v,C=C||"utf8"));for(var o=this._block,M=this._blockSize,l=v.length,R=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var o=8*this._len;if(o<=4294967295)this._block.writeUInt32BE(o,this._blockSize-4);else{var M=(4294967295&o)>>>0;this._block.writeUInt32BE((o-M)/4294967296,this._blockSize-8),this._block.writeUInt32BE(M,this._blockSize-4)}this._update(this._block);var R=this._hash();return v?R.toString(v):R},t.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Ve.exports=t},5244:(Ve,Q,m)=>{var e=Ve.exports=function(v){v=v.toLowerCase();var C=e[v];if(!C)throw new Error(v+" is not supported (we accept pull requests)");return new C};e.sha=m(8932),e.sha1=m(7736),e.sha224=m(5044),e.sha256=m(5014),e.sha384=m(6540),e.sha512=m(117)},8932:(Ve,Q,m)=>{var e=m(3894),t=m(6692),v=m(3502).Buffer,C=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function M(){this.init(),this._w=o,t.call(this,64,56)}function l(L){return L<<5|L>>>27}function R(L){return L<<30|L>>>2}function s(L,O,A,E){return 0===L?O&A|~O&E:2===L?O&A|O&E|A&E:O^A^E}e(M,t),M.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},M.prototype._update=function(L){for(var O=this._w,A=0|this._a,E=0|this._b,P=0|this._c,w=0|this._d,Z=0|this._e,j=0;j<16;++j)O[j]=L.readInt32BE(4*j);for(;j<80;++j)O[j]=O[j-3]^O[j-8]^O[j-14]^O[j-16];for(var W=0;W<80;++W){var ie=~~(W/20),ee=l(A)+s(ie,E,P,w)+Z+O[W]+C[ie]|0;Z=w,w=P,P=R(E),E=A,A=ee}this._a=A+this._a|0,this._b=E+this._b|0,this._c=P+this._c|0,this._d=w+this._d|0,this._e=Z+this._e|0},M.prototype._hash=function(){var L=v.allocUnsafe(20);return L.writeInt32BE(0|this._a,0),L.writeInt32BE(0|this._b,4),L.writeInt32BE(0|this._c,8),L.writeInt32BE(0|this._d,12),L.writeInt32BE(0|this._e,16),L},Ve.exports=M},7736:(Ve,Q,m)=>{var e=m(3894),t=m(6692),v=m(3502).Buffer,C=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function M(){this.init(),this._w=o,t.call(this,64,56)}function l(O){return O<<1|O>>>31}function R(O){return O<<5|O>>>27}function s(O){return O<<30|O>>>2}function L(O,A,E,P){return 0===O?A&E|~A&P:2===O?A&E|A&P|E&P:A^E^P}e(M,t),M.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},M.prototype._update=function(O){for(var A=this._w,E=0|this._a,P=0|this._b,w=0|this._c,Z=0|this._d,j=0|this._e,W=0;W<16;++W)A[W]=O.readInt32BE(4*W);for(;W<80;++W)A[W]=l(A[W-3]^A[W-8]^A[W-14]^A[W-16]);for(var ie=0;ie<80;++ie){var ee=~~(ie/20),ve=R(E)+L(ee,P,w,Z)+j+A[ie]+C[ee]|0;j=Z,Z=w,w=s(P),P=E,E=ve}this._a=E+this._a|0,this._b=P+this._b|0,this._c=w+this._c|0,this._d=Z+this._d|0,this._e=j+this._e|0},M.prototype._hash=function(){var O=v.allocUnsafe(20);return O.writeInt32BE(0|this._a,0),O.writeInt32BE(0|this._b,4),O.writeInt32BE(0|this._c,8),O.writeInt32BE(0|this._d,12),O.writeInt32BE(0|this._e,16),O},Ve.exports=M},5044:(Ve,Q,m)=>{var e=m(3894),t=m(5014),v=m(6692),C=m(3502).Buffer,o=new Array(64);function M(){this.init(),this._w=o,v.call(this,64,56)}e(M,t),M.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},M.prototype._hash=function(){var l=C.allocUnsafe(28);return l.writeInt32BE(this._a,0),l.writeInt32BE(this._b,4),l.writeInt32BE(this._c,8),l.writeInt32BE(this._d,12),l.writeInt32BE(this._e,16),l.writeInt32BE(this._f,20),l.writeInt32BE(this._g,24),l},Ve.exports=M},5014:(Ve,Q,m)=>{var e=m(3894),t=m(6692),v=m(3502).Buffer,C=[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 M(){this.init(),this._w=o,t.call(this,64,56)}function l(E,P,w){return w^E&(P^w)}function R(E,P,w){return E&P|w&(E|P)}function s(E){return(E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10)}function L(E){return(E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7)}function O(E){return(E>>>7|E<<25)^(E>>>18|E<<14)^E>>>3}function A(E){return(E>>>17|E<<15)^(E>>>19|E<<13)^E>>>10}e(M,t),M.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},M.prototype._update=function(E){for(var P=this._w,w=0|this._a,Z=0|this._b,j=0|this._c,W=0|this._d,ie=0|this._e,ee=0|this._f,ve=0|this._g,he=0|this._h,re=0;re<16;++re)P[re]=E.readInt32BE(4*re);for(;re<64;++re)P[re]=A(P[re-2])+P[re-7]+O(P[re-15])+P[re-16]|0;for(var de=0;de<64;++de){var le=he+L(ie)+l(ie,ee,ve)+C[de]+P[de]|0,se=s(w)+R(w,Z,j)|0;he=ve,ve=ee,ee=ie,ie=W+le|0,W=j,j=Z,Z=w,w=le+se|0}this._a=w+this._a|0,this._b=Z+this._b|0,this._c=j+this._c|0,this._d=W+this._d|0,this._e=ie+this._e|0,this._f=ee+this._f|0,this._g=ve+this._g|0,this._h=he+this._h|0},M.prototype._hash=function(){var E=v.allocUnsafe(32);return E.writeInt32BE(this._a,0),E.writeInt32BE(this._b,4),E.writeInt32BE(this._c,8),E.writeInt32BE(this._d,12),E.writeInt32BE(this._e,16),E.writeInt32BE(this._f,20),E.writeInt32BE(this._g,24),E.writeInt32BE(this._h,28),E},Ve.exports=M},6540:(Ve,Q,m)=>{var e=m(3894),t=m(117),v=m(6692),C=m(3502).Buffer,o=new Array(160);function M(){this.init(),this._w=o,v.call(this,128,112)}e(M,t),M.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},M.prototype._hash=function(){var l=C.allocUnsafe(48);function R(s,L,O){l.writeInt32BE(s,O),l.writeInt32BE(L,O+4)}return R(this._ah,this._al,0),R(this._bh,this._bl,8),R(this._ch,this._cl,16),R(this._dh,this._dl,24),R(this._eh,this._el,32),R(this._fh,this._fl,40),l},Ve.exports=M},117:(Ve,Q,m)=>{var e=m(3894),t=m(6692),v=m(3502).Buffer,C=[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 M(){this.init(),this._w=o,t.call(this,128,112)}function l(Z,j,W){return W^Z&(j^W)}function R(Z,j,W){return Z&j|W&(Z|j)}function s(Z,j){return(Z>>>28|j<<4)^(j>>>2|Z<<30)^(j>>>7|Z<<25)}function L(Z,j){return(Z>>>14|j<<18)^(Z>>>18|j<<14)^(j>>>9|Z<<23)}function O(Z,j){return(Z>>>1|j<<31)^(Z>>>8|j<<24)^Z>>>7}function A(Z,j){return(Z>>>1|j<<31)^(Z>>>8|j<<24)^(Z>>>7|j<<25)}function E(Z,j){return(Z>>>19|j<<13)^(j>>>29|Z<<3)^Z>>>6}function P(Z,j){return(Z>>>19|j<<13)^(j>>>29|Z<<3)^(Z>>>6|j<<26)}function w(Z,j){return Z>>>0>>0?1:0}e(M,t),M.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},M.prototype._update=function(Z){for(var j=this._w,W=0|this._ah,ie=0|this._bh,ee=0|this._ch,ve=0|this._dh,he=0|this._eh,re=0|this._fh,de=0|this._gh,le=0|this._hh,se=0|this._al,y=0|this._bl,i=0|this._cl,a=0|this._dl,p=0|this._el,u=0|this._fl,_=0|this._gl,D=0|this._hl,I=0;I<32;I+=2)j[I]=Z.readInt32BE(4*I),j[I+1]=Z.readInt32BE(4*I+4);for(;I<160;I+=2){var x=j[I-30],r=j[I-30+1],b=O(x,r),U=A(r,x),N=E(x=j[I-4],r=j[I-4+1]),z=P(r,x),Re=j[I-32],ze=j[I-32+1],Le=U+j[I-14+1]|0,K=b+j[I-14]+w(Le,U)|0;K=(K=K+N+w(Le=Le+z|0,z)|0)+Re+w(Le=Le+ze|0,ze)|0,j[I]=K,j[I+1]=Le}for(var we=0;we<160;we+=2){K=j[we],Le=j[we+1];var Y=R(W,ie,ee),ae=R(se,y,i),Ge=s(W,se),vt=s(se,W),Fe=L(he,p),Ne=L(p,he),ue=C[we],Oe=C[we+1],Pe=l(he,re,de),q=l(p,u,_),$=D+Ne|0,ce=le+Fe+w($,D)|0;ce=(ce=(ce=ce+Pe+w($=$+q|0,q)|0)+ue+w($=$+Oe|0,Oe)|0)+K+w($=$+Le|0,Le)|0;var Me=vt+ae|0,Ue=Ge+Y+w(Me,vt)|0;le=de,D=_,de=re,_=u,re=he,u=p,he=ve+ce+w(p=a+$|0,a)|0,ve=ee,a=i,ee=ie,i=y,ie=W,y=se,W=ce+Ue+w(se=$+Me|0,$)|0}this._al=this._al+se|0,this._bl=this._bl+y|0,this._cl=this._cl+i|0,this._dl=this._dl+a|0,this._el=this._el+p|0,this._fl=this._fl+u|0,this._gl=this._gl+_|0,this._hl=this._hl+D|0,this._ah=this._ah+W+w(this._al,se)|0,this._bh=this._bh+ie+w(this._bl,y)|0,this._ch=this._ch+ee+w(this._cl,i)|0,this._dh=this._dh+ve+w(this._dl,a)|0,this._eh=this._eh+he+w(this._el,p)|0,this._fh=this._fh+re+w(this._fl,u)|0,this._gh=this._gh+de+w(this._gl,_)|0,this._hh=this._hh+le+w(this._hl,D)|0},M.prototype._hash=function(){var Z=v.allocUnsafe(64);function j(W,ie,ee){Z.writeInt32BE(W,ee),Z.writeInt32BE(ie,ee+4)}return j(this._ah,this._al,0),j(this._bh,this._bl,8),j(this._ch,this._cl,16),j(this._dh,this._dl,24),j(this._eh,this._el,32),j(this._fh,this._fl,40),j(this._gh,this._gl,48),j(this._hh,this._hl,56),Z},Ve.exports=M},8012:function(Ve,Q,m){!function(e){"use strict";var t={};Ve.exports?(t.bytesToHex=m(6128).bytesToHex,t.convertString=m(5612),Ve.exports=R):(t.bytesToHex=e.convertHex.bytesToHex,t.convertString=e.convertString,e.sha256=R);var v=[];!function(){function s(E){for(var P=Math.sqrt(E),w=2;w<=P;w++)if(!(E%w))return!1;return!0}for(var O=2,A=0;A<64;)s(O)&&(v[A]=4294967296*((E=Math.pow(O,1/3))-(0|E))|0,A++),O++;var E}();var M=[],l=function(s,L,O){for(var A=s[0],E=s[1],P=s[2],w=s[3],Z=s[4],j=s[5],W=s[6],ie=s[7],ee=0;ee<64;ee++){if(ee<16)M[ee]=0|L[O+ee];else{var ve=M[ee-15],re=M[ee-2];M[ee]=((ve<<25|ve>>>7)^(ve<<14|ve>>>18)^ve>>>3)+M[ee-7]+((re<<15|re>>>17)^(re<<13|re>>>19)^re>>>10)+M[ee-16]}var se=A&E^A&P^E&P,a=ie+((Z<<26|Z>>>6)^(Z<<21|Z>>>11)^(Z<<7|Z>>>25))+(Z&j^~Z&W)+v[ee]+M[ee];ie=W,W=j,j=Z,Z=w+a|0,w=P,P=E,E=A,A=a+(((A<<30|A>>>2)^(A<<19|A>>>13)^(A<<10|A>>>22))+se)|0}s[0]=s[0]+A|0,s[1]=s[1]+E|0,s[2]=s[2]+P|0,s[3]=s[3]+w|0,s[4]=s[4]+Z|0,s[5]=s[5]+j|0,s[6]=s[6]+W|0,s[7]=s[7]+ie|0};function R(s,L){s.constructor===String&&(s=t.convertString.UTF8.stringToBytes(s));var O=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],A=function(s){for(var L=[],O=0,A=0;O>>5]|=s[O]<<24-A%32;return L}(s),E=8*s.length;A[E>>5]|=128<<24-E%32,A[15+(E+64>>9<<4)]=E;for(var P=0;P>>5]>>>24-O%32&255);return L}(O);return L&&L.asBytes?w:L&&L.asString?t.convertString.bytesToString(w):t.bytesToHex(w)}R.x2=function(s,L){return R(R(s,{asBytes:!0}),L)}}(this)},4315:(Ve,Q,m)=>{"use strict";const e=Symbol.prototype.valueOf,t=m(2872);Ve.exports=function v(s,L){switch(t(s)){case"array":return s.slice();case"object":return Object.assign({},s);case"date":return new s.constructor(Number(s));case"map":return new Map(s);case"set":return new Set(s);case"buffer":return function l(s){const L=s.length,O=Buffer.allocUnsafe?Buffer.allocUnsafe(L):Buffer.from(L);return s.copy(O),O}(s);case"symbol":return function R(s){return e?Object(e.call(s)):{}}(s);case"arraybuffer":return function o(s){const L=new s.constructor(s.byteLength);return new Uint8Array(L).set(new Uint8Array(s)),L}(s);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function M(s,L){return new s.constructor(s.buffer,s.byteOffset,s.length)}(s);case"regexp":return function C(s){const L=void 0!==s.flags?s.flags:/\w+$/.exec(s)||void 0,O=new s.constructor(s.source,L);return O.lastIndex=s.lastIndex,O}(s);case"error":return Object.create(s);default:return s}}},295:(Ve,Q,m)=>{Ve.exports=v;var e=m(9069).EventEmitter;function v(){e.call(this)}m(3894)(v,e),v.Readable=m(3154),v.Writable=m(520),v.Duplex=m(1339),v.Transform=m(6025),v.PassThrough=m(6071),v.finished=m(7542),v.pipeline=m(954),v.Stream=v,v.prototype.pipe=function(C,o){var M=this;function l(P){C.writable&&!1===C.write(P)&&M.pause&&M.pause()}function R(){M.readable&&M.resume&&M.resume()}M.on("data",l),C.on("drain",R),!C._isStdio&&(!o||!1!==o.end)&&(M.on("end",L),M.on("close",O));var s=!1;function L(){s||(s=!0,C.end())}function O(){s||(s=!0,"function"==typeof C.destroy&&C.destroy())}function A(P){if(E(),0===e.listenerCount(this,"error"))throw P}function E(){M.removeListener("data",l),C.removeListener("drain",R),M.removeListener("end",L),M.removeListener("close",O),M.removeListener("error",A),C.removeListener("error",A),M.removeListener("end",E),M.removeListener("close",E),C.removeListener("close",E)}return M.on("error",A),C.on("error",A),M.on("end",E),M.on("close",E),C.on("close",E),C.emit("pipe",M),C}},3054:(Ve,Q,m)=>{"use strict";var e=m(858).Buffer,t=e.isEncoding||function(W){switch((W=""+W)&&W.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(W){var ie;switch(this.encoding=function C(W){var ie=function v(W){if(!W)return"utf8";for(var ie;;)switch(W){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 W;default:if(ie)return;W=(""+W).toLowerCase(),ie=!0}}(W);if("string"!=typeof ie&&(e.isEncoding===t||!t(W)))throw new Error("Unknown encoding: "+W);return ie||W}(W),this.encoding){case"utf16le":this.text=A,this.end=E,ie=4;break;case"utf8":this.fillLast=s,ie=4;break;case"base64":this.text=P,this.end=w,ie=3;break;default:return this.write=Z,void(this.end=j)}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(ie)}function M(W){return W<=127?0:W>>5==6?2:W>>4==14?3:W>>3==30?4:W>>6==2?-1:-2}function s(W){var ie=this.lastTotal-this.lastNeed,ee=function R(W,ie,ee){if(128!=(192&ie[0]))return W.lastNeed=0,"\ufffd";if(W.lastNeed>1&&ie.length>1){if(128!=(192&ie[1]))return W.lastNeed=1,"\ufffd";if(W.lastNeed>2&&ie.length>2&&128!=(192&ie[2]))return W.lastNeed=2,"\ufffd"}}(this,W);return void 0!==ee?ee:this.lastNeed<=W.length?(W.copy(this.lastChar,ie,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(W.copy(this.lastChar,ie,0,W.length),void(this.lastNeed-=W.length))}function A(W,ie){if((W.length-ie)%2==0){var ee=W.toString("utf16le",ie);if(ee){var ve=ee.charCodeAt(ee.length-1);if(ve>=55296&&ve<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1],ee.slice(0,-1)}return ee}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=W[W.length-1],W.toString("utf16le",ie,W.length-1)}function E(W){var ie=W&&W.length?this.write(W):"";return this.lastNeed?ie+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):ie}function P(W,ie){var ee=(W.length-ie)%3;return 0===ee?W.toString("base64",ie):(this.lastNeed=3-ee,this.lastTotal=3,1===ee?this.lastChar[0]=W[W.length-1]:(this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1]),W.toString("base64",ie,W.length-ee))}function w(W){var ie=W&&W.length?this.write(W):"";return this.lastNeed?ie+this.lastChar.toString("base64",0,3-this.lastNeed):ie}function Z(W){return W.toString(this.encoding)}function j(W){return W&&W.length?this.write(W):""}Q.s=o,o.prototype.write=function(W){if(0===W.length)return"";var ie,ee;if(this.lastNeed){if(void 0===(ie=this.fillLast(W)))return"";ee=this.lastNeed,this.lastNeed=0}else ee=0;return ee=0?(he>0&&(W.lastNeed=he-1),he):--ve=0?(he>0&&(W.lastNeed=he-2),he):--ve=0?(he>0&&(2===he?he=0:W.lastNeed=he-3),he):0}(this,W,ie);if(!this.lastNeed)return W.toString("utf8",ie);this.lastTotal=ee;var ve=W.length-(ee-this.lastNeed);return W.copy(this.lastChar,0,ve),W.toString("utf8",ie,ve)},o.prototype.fillLast=function(W){if(this.lastNeed<=W.length)return W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,W.length),this.lastNeed-=W.length}},858:(Ve,Q,m)=>{var e=m(3172),t=e.Buffer;function v(o,M){for(var l in o)M[l]=o[l]}function C(o,M,l){return t(o,M,l)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?Ve.exports=e:(v(e,Q),Q.Buffer=C),C.prototype=Object.create(t.prototype),v(t,C),C.from=function(o,M,l){if("number"==typeof o)throw new TypeError("Argument must not be a number");return t(o,M,l)},C.alloc=function(o,M,l){if("number"!=typeof o)throw new TypeError("Argument must be a number");var R=t(o);return void 0!==M?"string"==typeof l?R.fill(M,l):R.fill(M):R.fill(0),R},C.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return t(o)},C.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return e.SlowBuffer(o)}},2167:(Ve,Q,m)=>{var e=m(4606);Q.encode=e.encode,Q.decode=e.decode},4606:(Ve,Q)=>{"use strict";var e=[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(v){Buffer.isBuffer(v)||(v=new Buffer(v));for(var C=0,o=0,M=0,l=0,R=new Buffer(8*function t(v){var C=Math.floor(v.length/5);return v.length%5==0?C:C+1}(v));C3?(l=(l=s&255>>M)<<(M=(M+5)%8)|(C+1>8-M,C++):(l=s>>8-(M+5)&31,0==(M=(M+5)%8)&&C++),R[o]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(l),o++}for(C=o;C>>(C=(C+5)%8),l++,M=255&o<<8-C)}return R.slice(0,l)}},4364:Ve=>{function m(e){try{if(!global.localStorage)return!1}catch(v){return!1}var t=global.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}Ve.exports=function Q(e,t){if(m("noDeprecation"))return e;var v=!1;return function C(){if(!v){if(m("throwDeprecation"))throw new Error(t);m("traceDeprecation")?console.trace(t):console.warn(t),v=!0}return e.apply(this,arguments)}}},5987:(Ve,Q,m)=>{"use strict";function R(y,i,a,p){return new(a||(a=Promise))(function(_,D){function I(b){try{r(p.next(b))}catch(U){D(U)}}function x(b){try{r(p.throw(b))}catch(U){D(U)}}function r(b){b.done?_(b.value):function u(_){return _ instanceof a?_:new a(function(D){D(_)})}(b.value).then(I,x)}r((p=p.apply(y,i||[])).next())})}function j(y){return this instanceof j?(this.v=y,this):new j(y)}function W(y,i,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u,p=a.apply(y,i||[]),_=[];return u={},D("next"),D("throw"),D("return"),u[Symbol.asyncIterator]=function(){return this},u;function D(N){p[N]&&(u[N]=function(z){return new Promise(function(be,xe){_.push([N,z,be,xe])>1||I(N,z)})})}function I(N,z){try{!function x(N){N.value instanceof j?Promise.resolve(N.value.v).then(r,b):U(_[0][2],N)}(p[N](z))}catch(be){U(_[0][3],be)}}function r(N){I("next",N)}function b(N){I("throw",N)}function U(N,z){N(z),_.shift(),_.length&&I(_[0][0],_[0][1])}}function ee(y){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a,i=y[Symbol.asyncIterator];return i?i.call(y):(y=function A(y){var i="function"==typeof Symbol&&Symbol.iterator,a=i&&y[i],p=0;if(a)return a.call(y);if(y&&"number"==typeof y.length)return{next:function(){return y&&p>=y.length&&(y=void 0),{value:y&&y[p++],done:!y}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(y),a={},p("next"),p("throw"),p("return"),a[Symbol.asyncIterator]=function(){return this},a);function p(_){a[_]=y[_]&&function(D){return new Promise(function(I,x){!function u(_,D,I,x){Promise.resolve(x).then(function(r){_({value:r,done:I})},D)}(I,x,(D=y[_](D)).done,D.value)})}}}m.d(Q,{mG:()=>R,qq:()=>j,FC:()=>W,KL:()=>ee})},655:(Ve,Q,m)=>{"use strict";function o(y,i,a,p){var D,u=arguments.length,_=u<3?i:null===p?p=Object.getOwnPropertyDescriptor(i,a):p;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_=Reflect.decorate(y,i,a,p);else for(var I=y.length-1;I>=0;I--)(D=y[I])&&(_=(u<3?D(_):u>3?D(i,a,_):D(i,a))||_);return u>3&&_&&Object.defineProperty(i,a,_),_}function R(y,i,a,p){return new(a||(a=Promise))(function(_,D){function I(b){try{r(p.next(b))}catch(U){D(U)}}function x(b){try{r(p.throw(b))}catch(U){D(U)}}function r(b){b.done?_(b.value):function u(_){return _ instanceof a?_:new a(function(D){D(_)})}(b.value).then(I,x)}r((p=p.apply(y,i||[])).next())})}m.d(Q,{gn:()=>o,mG:()=>R})},950:()=>{},6601:()=>{},8623:()=>{},7748:()=>{},5568:()=>{},6619:()=>{},7108:()=>{},2361:()=>{},4616:()=>{},1777:(Ve,Q,m)=>{"use strict";m.d(Q,{l3:()=>v,_j:()=>e,LC:()=>t,ZN:()=>W,jt:()=>o,pV:()=>E,ru:()=>M,F4:()=>L,IO:()=>w,vP:()=>l,SB:()=>s,oB:()=>R,eR:()=>O,X$:()=>C,ZE:()=>ie,k1:()=>ee});class e{}class t{}const v="*";function C(ve,he){return{type:7,name:ve,definitions:he,options:{}}}function o(ve,he=null){return{type:4,styles:he,timings:ve}}function M(ve,he=null){return{type:3,steps:ve,options:he}}function l(ve,he=null){return{type:2,steps:ve,options:he}}function R(ve){return{type:6,styles:ve,offset:null}}function s(ve,he,re){return{type:0,name:ve,styles:he,options:re}}function L(ve){return{type:5,steps:ve}}function O(ve,he,re=null){return{type:1,expr:ve,animation:he,options:re}}function E(ve=null){return{type:9,options:ve}}function w(ve,he,re=null){return{type:11,selector:ve,animation:he,options:re}}function j(ve){Promise.resolve(null).then(ve)}class W{constructor(he=0,re=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=he+re}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(he=>he()),this._onDoneFns=[])}onStart(he){this._onStartFns.push(he)}onDone(he){this._onDoneFns.push(he)}onDestroy(he){this._onDestroyFns.push(he)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){j(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(he=>he()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(he=>he()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(he){this._position=this.totalTime?he*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(he){const re="start"==he?this._onStartFns:this._onDoneFns;re.forEach(de=>de()),re.length=0}}class ie{constructor(he){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=he;let re=0,de=0,le=0;const se=this.players.length;0==se?j(()=>this._onFinish()):this.players.forEach(y=>{y.onDone(()=>{++re==se&&this._onFinish()}),y.onDestroy(()=>{++de==se&&this._onDestroy()}),y.onStart(()=>{++le==se&&this._onStart()})}),this.totalTime=this.players.reduce((y,i)=>Math.max(y,i.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(he=>he()),this._onDoneFns=[])}init(){this.players.forEach(he=>he.init())}onStart(he){this._onStartFns.push(he)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(he=>he()),this._onStartFns=[])}onDone(he){this._onDoneFns.push(he)}onDestroy(he){this._onDestroyFns.push(he)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(he=>he.play())}pause(){this.players.forEach(he=>he.pause())}restart(){this.players.forEach(he=>he.restart())}finish(){this._onFinish(),this.players.forEach(he=>he.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(he=>he.destroy()),this._onDestroyFns.forEach(he=>he()),this._onDestroyFns=[])}reset(){this.players.forEach(he=>he.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(he){const re=he*this.totalTime;this.players.forEach(de=>{const le=de.totalTime?Math.min(1,re/de.totalTime):1;de.setPosition(le)})}getPosition(){const he=this.players.reduce((re,de)=>null===re||de.totalTime>re.totalTime?de:re,null);return null!=he?he.getPosition():0}beforeDestroy(){this.players.forEach(he=>{he.beforeDestroy&&he.beforeDestroy()})}triggerCallback(he){const re="start"==he?this._onStartFns:this._onDoneFns;re.forEach(de=>de()),re.length=0}}const ee="!"},5664:(Ve,Q,m)=>{"use strict";m.d(Q,{rt:()=>Ze,s1:()=>D,$s:()=>a,Qr:()=>Zt,kH:()=>jt,mK:()=>vt,Em:()=>I,tE:()=>Ii,qV:()=>Ge,qm:()=>hi,ic:()=>r,Kd:()=>Mt,X6:()=>q,yG:()=>$});var e=m(9808),t=m(5e3),v=m(7579),C=m(727),o=m(1135),M=m(9646),l=m(1159),R=m(8505),s=m(8372),L=m(9300),O=m(4004),A=m(5698),E=m(5684),P=m(1884),w=m(2722),Z=m(3191),j=m(925),W=m(7144);function he(Ee,G){return(Ee.getAttribute(G)||"").match(/\S+/g)||[]}const re="cdk-describedby-message-container",de="cdk-describedby-message",le="cdk-describedby-host";let se=0;const y=new Map;let i=null,a=(()=>{class Ee{constructor(ge){this._document=ge}describe(ge,De,et){if(!this._canBeDescribed(ge,De))return;const $t=p(De,et);"string"!=typeof De?(u(De),y.set($t,{messageElement:De,referenceCount:0})):y.has($t)||this._createMessageElement(De,et),this._isElementDescribedByMessage(ge,$t)||this._addMessageReference(ge,$t)}removeDescription(ge,De,et){if(!De||!this._isElementNode(ge))return;const $t=p(De,et);if(this._isElementDescribedByMessage(ge,$t)&&this._removeMessageReference(ge,$t),"string"==typeof De){const Nt=y.get($t);Nt&&0===Nt.referenceCount&&this._deleteMessageElement($t)}i&&0===i.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const ge=this._document.querySelectorAll(`[${le}]`);for(let De=0;De0!=et.indexOf(de));ge.setAttribute("aria-describedby",De.join(" "))}_addMessageReference(ge,De){const et=y.get(De);(function ee(Ee,G,ge){const De=he(Ee,G);De.some(et=>et.trim()==ge.trim())||(De.push(ge.trim()),Ee.setAttribute(G,De.join(" ")))})(ge,"aria-describedby",et.messageElement.id),ge.setAttribute(le,""),et.referenceCount++}_removeMessageReference(ge,De){const et=y.get(De);et.referenceCount--,function ve(Ee,G,ge){const et=he(Ee,G).filter($t=>$t!=ge.trim());et.length?Ee.setAttribute(G,et.join(" ")):Ee.removeAttribute(G)}(ge,"aria-describedby",et.messageElement.id),ge.removeAttribute(le)}_isElementDescribedByMessage(ge,De){const et=he(ge,"aria-describedby"),$t=y.get(De),Nt=$t&&$t.messageElement.id;return!!Nt&&-1!=et.indexOf(Nt)}_canBeDescribed(ge,De){if(!this._isElementNode(ge))return!1;if(De&&"object"==typeof De)return!0;const et=null==De?"":`${De}`.trim(),$t=ge.getAttribute("aria-label");return!(!et||$t&&$t.trim()===et)}_isElementNode(ge){return ge.nodeType===this._document.ELEMENT_NODE}}return Ee.\u0275fac=function(ge){return new(ge||Ee)(t.LFG(e.K0))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();function p(Ee,G){return"string"==typeof Ee?`${G||""}/${Ee}`:Ee}function u(Ee){Ee.id||(Ee.id=`${de}-${se++}`)}class _{constructor(G){this._items=G,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new v.x,this._typeaheadSubscription=C.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=ge=>ge.disabled,this._pressedLetters=[],this.tabOut=new v.x,this.change=new v.x,G instanceof t.n_E&&G.changes.subscribe(ge=>{if(this._activeItem){const et=ge.toArray().indexOf(this._activeItem);et>-1&&et!==this._activeItemIndex&&(this._activeItemIndex=et)}})}skipPredicate(G){return this._skipPredicateFn=G,this}withWrap(G=!0){return this._wrap=G,this}withVerticalOrientation(G=!0){return this._vertical=G,this}withHorizontalOrientation(G){return this._horizontal=G,this}withAllowedModifierKeys(G){return this._allowedModifierKeys=G,this}withTypeAhead(G=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,R.b)(ge=>this._pressedLetters.push(ge)),(0,s.b)(G),(0,L.h)(()=>this._pressedLetters.length>0),(0,O.U)(()=>this._pressedLetters.join(""))).subscribe(ge=>{const De=this._getItemsArray();for(let et=1;et!G[$t]||this._allowedModifierKeys.indexOf($t)>-1);switch(ge){case l.Mf:return void this.tabOut.next();case l.JH:if(this._vertical&&et){this.setNextItemActive();break}return;case l.LH:if(this._vertical&&et){this.setPreviousItemActive();break}return;case l.SV:if(this._horizontal&&et){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case l.oh:if(this._horizontal&&et){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case l.Sd:if(this._homeAndEnd&&et){this.setFirstItemActive();break}return;case l.uR:if(this._homeAndEnd&&et){this.setLastItemActive();break}return;default:return void((et||(0,l.Vb)(G,"shiftKey"))&&(G.key&&1===G.key.length?this._letterKeyStream.next(G.key.toLocaleUpperCase()):(ge>=l.A&&ge<=l.Z||ge>=l.xE&&ge<=l.aO)&&this._letterKeyStream.next(String.fromCharCode(ge))))}this._pressedLetters=[],G.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(G){const ge=this._getItemsArray(),De="number"==typeof G?G:ge.indexOf(G),et=ge[De];this._activeItem=null==et?null:et,this._activeItemIndex=De}_setActiveItemByDelta(G){this._wrap?this._setActiveInWrapMode(G):this._setActiveInDefaultMode(G)}_setActiveInWrapMode(G){const ge=this._getItemsArray();for(let De=1;De<=ge.length;De++){const et=(this._activeItemIndex+G*De+ge.length)%ge.length;if(!this._skipPredicateFn(ge[et]))return void this.setActiveItem(et)}}_setActiveInDefaultMode(G){this._setActiveItemByIndex(this._activeItemIndex+G,G)}_setActiveItemByIndex(G,ge){const De=this._getItemsArray();if(De[G]){for(;this._skipPredicateFn(De[G]);)if(!De[G+=ge])return;this.setActiveItem(G)}}_getItemsArray(){return this._items instanceof t.n_E?this._items.toArray():this._items}}class D extends _{setActiveItem(G){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(G),this.activeItem&&this.activeItem.setActiveStyles()}}class I extends _{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(G){return this._origin=G,this}setActiveItem(G){super.setActiveItem(G),this.activeItem&&this.activeItem.focus(this._origin)}}let r=(()=>{class Ee{constructor(ge){this._platform=ge}isDisabled(ge){return ge.hasAttribute("disabled")}isVisible(ge){return function U(Ee){return!!(Ee.offsetWidth||Ee.offsetHeight||"function"==typeof Ee.getClientRects&&Ee.getClientRects().length)}(ge)&&"visible"===getComputedStyle(ge).visibility}isTabbable(ge){if(!this._platform.isBrowser)return!1;const De=function b(Ee){try{return Ee.frameElement}catch(G){return null}}(function Y(Ee){return Ee.ownerDocument&&Ee.ownerDocument.defaultView||window}(ge));if(De&&(-1===Le(De)||!this.isVisible(De)))return!1;let et=ge.nodeName.toLowerCase(),$t=Le(ge);return ge.hasAttribute("contenteditable")?-1!==$t:!("iframe"===et||"object"===et||this._platform.WEBKIT&&this._platform.IOS&&!function K(Ee){let G=Ee.nodeName.toLowerCase(),ge="input"===G&&Ee.type;return"text"===ge||"password"===ge||"select"===G||"textarea"===G}(ge))&&("audio"===et?!!ge.hasAttribute("controls")&&-1!==$t:"video"===et?-1!==$t&&(null!==$t||this._platform.FIREFOX||ge.hasAttribute("controls")):ge.tabIndex>=0)}isFocusable(ge,De){return function we(Ee){return!function z(Ee){return function xe(Ee){return"input"==Ee.nodeName.toLowerCase()}(Ee)&&"hidden"==Ee.type}(Ee)&&(function N(Ee){let G=Ee.nodeName.toLowerCase();return"input"===G||"select"===G||"button"===G||"textarea"===G}(Ee)||function be(Ee){return function Re(Ee){return"a"==Ee.nodeName.toLowerCase()}(Ee)&&Ee.hasAttribute("href")}(Ee)||Ee.hasAttribute("contenteditable")||ze(Ee))}(ge)&&!this.isDisabled(ge)&&((null==De?void 0:De.ignoreVisibility)||this.isVisible(ge))}}return Ee.\u0275fac=function(ge){return new(ge||Ee)(t.LFG(j.t4))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();function ze(Ee){if(!Ee.hasAttribute("tabindex")||void 0===Ee.tabIndex)return!1;let G=Ee.getAttribute("tabindex");return!(!G||isNaN(parseInt(G,10)))}function Le(Ee){if(!ze(Ee))return null;const G=parseInt(Ee.getAttribute("tabindex")||"",10);return isNaN(G)?-1:G}class ae{constructor(G,ge,De,et,$t=!1){this._element=G,this._checker=ge,this._ngZone=De,this._document=et,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,$t||this.attachAnchors()}get enabled(){return this._enabled}set enabled(G){this._enabled=G,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(G,this._startAnchor),this._toggleAnchorTabIndex(G,this._endAnchor))}destroy(){const G=this._startAnchor,ge=this._endAnchor;G&&(G.removeEventListener("focus",this.startAnchorListener),G.remove()),ge&&(ge.removeEventListener("focus",this.endAnchorListener),ge.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(G){return new Promise(ge=>{this._executeOnStable(()=>ge(this.focusInitialElement(G)))})}focusFirstTabbableElementWhenReady(G){return new Promise(ge=>{this._executeOnStable(()=>ge(this.focusFirstTabbableElement(G)))})}focusLastTabbableElementWhenReady(G){return new Promise(ge=>{this._executeOnStable(()=>ge(this.focusLastTabbableElement(G)))})}_getRegionBoundary(G){const ge=this._element.querySelectorAll(`[cdk-focus-region-${G}], [cdkFocusRegion${G}], [cdk-focus-${G}]`);return"start"==G?ge.length?ge[0]:this._getFirstTabbableElement(this._element):ge.length?ge[ge.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(G){const ge=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(ge){if(!this._checker.isFocusable(ge)){const De=this._getFirstTabbableElement(ge);return null==De||De.focus(G),!!De}return ge.focus(G),!0}return this.focusFirstTabbableElement(G)}focusFirstTabbableElement(G){const ge=this._getRegionBoundary("start");return ge&&ge.focus(G),!!ge}focusLastTabbableElement(G){const ge=this._getRegionBoundary("end");return ge&&ge.focus(G),!!ge}hasAttached(){return this._hasAttached}_getFirstTabbableElement(G){if(this._checker.isFocusable(G)&&this._checker.isTabbable(G))return G;const ge=G.children;for(let De=0;De=0;De--){const et=ge[De].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(ge[De]):null;if(et)return et}return null}_createAnchor(){const G=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,G),G.classList.add("cdk-visually-hidden"),G.classList.add("cdk-focus-trap-anchor"),G.setAttribute("aria-hidden","true"),G}_toggleAnchorTabIndex(G,ge){G?ge.setAttribute("tabindex","0"):ge.removeAttribute("tabindex")}toggleAnchors(G){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(G,this._startAnchor),this._toggleAnchorTabIndex(G,this._endAnchor))}_executeOnStable(G){this._ngZone.isStable?G():this._ngZone.onStable.pipe((0,A.q)(1)).subscribe(G)}}let Ge=(()=>{class Ee{constructor(ge,De,et){this._checker=ge,this._ngZone=De,this._document=et}create(ge,De=!1){return new ae(ge,this._checker,this._ngZone,this._document,De)}}return Ee.\u0275fac=function(ge){return new(ge||Ee)(t.LFG(r),t.LFG(t.R0b),t.LFG(e.K0))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),vt=(()=>{class Ee{constructor(ge,De,et){this._elementRef=ge,this._focusTrapFactory=De,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(ge){this.focusTrap.enabled=(0,Z.Ig)(ge)}get autoCapture(){return this._autoCapture}set autoCapture(ge){this._autoCapture=(0,Z.Ig)(ge)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(ge){const De=ge.autoCapture;De&&!De.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,j.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Ee.\u0275fac=function(ge){return new(ge||Ee)(t.Y36(t.SBq),t.Y36(Ge),t.Y36(e.K0))},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[t.TTD]}),Ee})();function q(Ee){return 0===Ee.offsetX&&0===Ee.offsetY}function $(Ee){const G=Ee.touches&&Ee.touches[0]||Ee.changedTouches&&Ee.changedTouches[0];return!(!G||-1!==G.identifier||null!=G.radiusX&&1!==G.radiusX||null!=G.radiusY&&1!==G.radiusY)}const ce=new t.OlP("cdk-input-modality-detector-options"),Me={ignoreKeys:[l.zL,l.jx,l.b2,l.MW,l.JU]},lt=(0,j.i$)({passive:!0,capture:!0});let nt=(()=>{class Ee{constructor(ge,De,et,$t){this._platform=ge,this._mostRecentTarget=null,this._modality=new o.X(null),this._lastTouchMs=0,this._onKeydown=Nt=>{var Jt,ct;(null===(ct=null===(Jt=this._options)||void 0===Jt?void 0:Jt.ignoreKeys)||void 0===ct?void 0:ct.some(ke=>ke===Nt.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,j.sA)(Nt))},this._onMousedown=Nt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(q(Nt)?"keyboard":"mouse"),this._mostRecentTarget=(0,j.sA)(Nt))},this._onTouchstart=Nt=>{$(Nt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,j.sA)(Nt))},this._options=Object.assign(Object.assign({},Me),$t),this.modalityDetected=this._modality.pipe((0,E.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,P.x)()),ge.isBrowser&&De.runOutsideAngular(()=>{et.addEventListener("keydown",this._onKeydown,lt),et.addEventListener("mousedown",this._onMousedown,lt),et.addEventListener("touchstart",this._onTouchstart,lt)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,lt),document.removeEventListener("mousedown",this._onMousedown,lt),document.removeEventListener("touchstart",this._onTouchstart,lt))}}return Ee.\u0275fac=function(ge){return new(ge||Ee)(t.LFG(j.t4),t.LFG(t.R0b),t.LFG(e.K0),t.LFG(ce,8))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();const ft=new t.OlP("liveAnnouncerElement",{providedIn:"root",factory:function it(){return null}}),rt=new t.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Mt=(()=>{class Ee{constructor(ge,De,et,$t){this._ngZone=De,this._defaultOptions=$t,this._document=et,this._liveElement=ge||this._createLiveElement()}announce(ge,...De){const et=this._defaultOptions;let $t,Nt;return 1===De.length&&"number"==typeof De[0]?Nt=De[0]:[$t,Nt]=De,this.clear(),clearTimeout(this._previousTimeout),$t||($t=et&&et.politeness?et.politeness:"polite"),null==Nt&&et&&(Nt=et.duration),this._liveElement.setAttribute("aria-live",$t),this._ngZone.runOutsideAngular(()=>new Promise(Jt=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=ge,Jt(),"number"==typeof Nt&&(this._previousTimeout=setTimeout(()=>this.clear(),Nt))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var ge;clearTimeout(this._previousTimeout),null===(ge=this._liveElement)||void 0===ge||ge.remove(),this._liveElement=null}_createLiveElement(){const ge="cdk-live-announcer-element",De=this._document.getElementsByClassName(ge),et=this._document.createElement("div");for(let $t=0;$t{class Ee{constructor(ge,De,et,$t){this._elementRef=ge,this._liveAnnouncer=De,this._contentObserver=et,this._ngZone=$t,this._politeness="polite"}get politeness(){return this._politeness}set politeness(ge){this._politeness="off"===ge||"assertive"===ge?ge:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const De=this._elementRef.nativeElement.textContent;De!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(De,this._politeness),this._previousAnnouncedText=De)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return Ee.\u0275fac=function(ge){return new(ge||Ee)(t.Y36(t.SBq),t.Y36(Mt),t.Y36(W.yq),t.Y36(t.R0b))},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),Ee})();const Ft=new t.OlP("cdk-focus-monitor-default-options"),Vt=(0,j.i$)({passive:!0,capture:!0});let Ii=(()=>{class Ee{constructor(ge,De,et,$t,Nt){this._ngZone=ge,this._platform=De,this._inputModalityDetector=et,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new v.x,this._rootNodeFocusAndBlurListener=Jt=>{const ct=(0,j.sA)(Jt),ke="focus"===Jt.type?this._onFocus:this._onBlur;for(let Be=ct;Be;Be=Be.parentElement)ke.call(this,Jt,Be)},this._document=$t,this._detectionMode=(null==Nt?void 0:Nt.detectionMode)||0}monitor(ge,De=!1){const et=(0,Z.fI)(ge);if(!this._platform.isBrowser||1!==et.nodeType)return(0,M.of)(null);const $t=(0,j.kV)(et)||this._getDocument(),Nt=this._elementInfo.get(et);if(Nt)return De&&(Nt.checkChildren=!0),Nt.subject;const Jt={checkChildren:De,subject:new v.x,rootNode:$t};return this._elementInfo.set(et,Jt),this._registerGlobalListeners(Jt),Jt.subject}stopMonitoring(ge){const De=(0,Z.fI)(ge),et=this._elementInfo.get(De);et&&(et.subject.complete(),this._setClasses(De),this._elementInfo.delete(De),this._removeGlobalListeners(et))}focusVia(ge,De,et){const $t=(0,Z.fI)(ge);$t===this._getDocument().activeElement?this._getClosestElementsInfo($t).forEach(([Jt,ct])=>this._originChanged(Jt,De,ct)):(this._setOrigin(De),"function"==typeof $t.focus&&$t.focus(et))}ngOnDestroy(){this._elementInfo.forEach((ge,De)=>this.stopMonitoring(De))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(ge){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(ge)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(ge){return 1===this._detectionMode||!!(null==ge?void 0:ge.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(ge,De){ge.classList.toggle("cdk-focused",!!De),ge.classList.toggle("cdk-touch-focused","touch"===De),ge.classList.toggle("cdk-keyboard-focused","keyboard"===De),ge.classList.toggle("cdk-mouse-focused","mouse"===De),ge.classList.toggle("cdk-program-focused","program"===De)}_setOrigin(ge,De=!1){this._ngZone.runOutsideAngular(()=>{this._origin=ge,this._originFromTouchInteraction="touch"===ge&&De,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(ge,De){const et=this._elementInfo.get(De),$t=(0,j.sA)(ge);!et||!et.checkChildren&&De!==$t||this._originChanged(De,this._getFocusOrigin($t),et)}_onBlur(ge,De){const et=this._elementInfo.get(De);!et||et.checkChildren&&ge.relatedTarget instanceof Node&&De.contains(ge.relatedTarget)||(this._setClasses(De),this._emitOrigin(et.subject,null))}_emitOrigin(ge,De){this._ngZone.run(()=>ge.next(De))}_registerGlobalListeners(ge){if(!this._platform.isBrowser)return;const De=ge.rootNode,et=this._rootNodeFocusListenerCount.get(De)||0;et||this._ngZone.runOutsideAngular(()=>{De.addEventListener("focus",this._rootNodeFocusAndBlurListener,Vt),De.addEventListener("blur",this._rootNodeFocusAndBlurListener,Vt)}),this._rootNodeFocusListenerCount.set(De,et+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,w.R)(this._stopInputModalityDetector)).subscribe($t=>{this._setOrigin($t,!0)}))}_removeGlobalListeners(ge){const De=ge.rootNode;if(this._rootNodeFocusListenerCount.has(De)){const et=this._rootNodeFocusListenerCount.get(De);et>1?this._rootNodeFocusListenerCount.set(De,et-1):(De.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Vt),De.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Vt),this._rootNodeFocusListenerCount.delete(De))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(ge,De,et){this._setClasses(ge,De),this._emitOrigin(et.subject,De),this._lastFocusOrigin=De}_getClosestElementsInfo(ge){const De=[];return this._elementInfo.forEach((et,$t)=>{($t===ge||et.checkChildren&&$t.contains(ge))&&De.push([$t,et])}),De}}return Ee.\u0275fac=function(ge){return new(ge||Ee)(t.LFG(t.R0b),t.LFG(j.t4),t.LFG(nt),t.LFG(e.K0,8),t.LFG(Ft,8))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),jt=(()=>{class Ee{constructor(ge,De){this._elementRef=ge,this._focusMonitor=De,this.cdkFocusChange=new t.vpe}ngAfterViewInit(){const ge=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(ge,1===ge.nodeType&&ge.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(De=>this.cdkFocusChange.emit(De))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Ee.\u0275fac=function(ge){return new(ge||Ee)(t.Y36(t.SBq),t.Y36(Ii))},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Ee})();const ei="cdk-high-contrast-black-on-white",ki="cdk-high-contrast-white-on-black",ai="cdk-high-contrast-active";let hi=(()=>{class Ee{constructor(ge,De){this._platform=ge,this._document=De}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const ge=this._document.createElement("div");ge.style.backgroundColor="rgb(1,2,3)",ge.style.position="absolute",this._document.body.appendChild(ge);const De=this._document.defaultView||window,et=De&&De.getComputedStyle?De.getComputedStyle(ge):null,$t=(et&&et.backgroundColor||"").replace(/ /g,"");switch(ge.remove(),$t){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const ge=this._document.body.classList;ge.remove(ai),ge.remove(ei),ge.remove(ki),this._hasCheckedHighContrastMode=!0;const De=this.getHighContrastMode();1===De?(ge.add(ai),ge.add(ei)):2===De&&(ge.add(ai),ge.add(ki))}}}return Ee.\u0275fac=function(ge){return new(ge||Ee)(t.LFG(j.t4),t.LFG(e.K0))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),Ze=(()=>{class Ee{constructor(ge){ge._applyBodyHighContrastModeCssClasses()}}return Ee.\u0275fac=function(ge){return new(ge||Ee)(t.LFG(hi))},Ee.\u0275mod=t.oAB({type:Ee}),Ee.\u0275inj=t.cJS({imports:[[j.ud,W.Q8]]}),Ee})()},226:(Ve,Q,m)=>{"use strict";m.d(Q,{vT:()=>s,Is:()=>l});var e=m(5e3),t=m(9808);const v=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function C(){return(0,e.f3M)(t.K0)}}),o=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let l=(()=>{class L{constructor(A){if(this.value="ltr",this.change=new e.vpe,A){const P=A.documentElement?A.documentElement.dir:null;this.value=function M(L){const O=(null==L?void 0:L.toLowerCase())||"";return"auto"===O&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?o.test(navigator.language)?"rtl":"ltr":"rtl"===O?"rtl":"ltr"}((A.body?A.body.dir:null)||P||"ltr")}}ngOnDestroy(){this.change.complete()}}return L.\u0275fac=function(A){return new(A||L)(e.LFG(v,8))},L.\u0275prov=e.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),s=(()=>{class L{}return L.\u0275fac=function(A){return new(A||L)},L.\u0275mod=e.oAB({type:L}),L.\u0275inj=e.cJS({}),L})()},3191:(Ve,Q,m)=>{"use strict";m.d(Q,{t6:()=>C,Eq:()=>o,Ig:()=>t,HM:()=>M,fI:()=>l,su:()=>v,du:()=>R});var e=m(5e3);function t(s){return null!=s&&"false"!=`${s}`}function v(s,L=0){return C(s)?Number(s):L}function C(s){return!isNaN(parseFloat(s))&&!isNaN(Number(s))}function o(s){return Array.isArray(s)?s:[s]}function M(s){return null==s?"":"string"==typeof s?s:`${s}px`}function l(s){return s instanceof e.SBq?s.nativeElement:s}function R(s,L=/\s+/){const O=[];if(null!=s){const A=Array.isArray(s)?s:`${s}`.split(L);for(const E of A){const P=`${E}`.trim();P&&O.push(P)}}return O}},449:(Ve,Q,m)=>{"use strict";m.d(Q,{o2:()=>v,Ov:()=>R,A8:()=>L,yy:()=>M,eX:()=>l,k:()=>O,Z9:()=>C});var e=m(7579),t=m(5e3);class v{}function C(A){return A&&"function"==typeof A.connect}class M{applyChanges(E,P,w,Z,j){E.forEachOperation((W,ie,ee)=>{let ve,he;if(null==W.previousIndex){const re=w(W,ie,ee);ve=P.createEmbeddedView(re.templateRef,re.context,re.index),he=1}else null==ee?(P.remove(ie),he=3):(ve=P.get(ie),P.move(ve,ee),he=2);j&&j({context:null==ve?void 0:ve.context,operation:he,record:W})})}detach(){}}class l{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(E,P,w,Z,j){E.forEachOperation((W,ie,ee)=>{let ve,he;null==W.previousIndex?(ve=this._insertView(()=>w(W,ie,ee),ee,P,Z(W)),he=ve?1:0):null==ee?(this._detachAndCacheView(ie,P),he=3):(ve=this._moveView(ie,ee,P,Z(W)),he=2),j&&j({context:null==ve?void 0:ve.context,operation:he,record:W})})}detach(){for(const E of this._viewCache)E.destroy();this._viewCache=[]}_insertView(E,P,w,Z){const j=this._insertViewFromCache(P,w);if(j)return void(j.context.$implicit=Z);const W=E();return w.createEmbeddedView(W.templateRef,W.context,W.index)}_detachAndCacheView(E,P){const w=P.detach(E);this._maybeCacheView(w,P)}_moveView(E,P,w,Z){const j=w.get(E);return w.move(j,P),j.context.$implicit=Z,j}_maybeCacheView(E,P){if(this._viewCache.lengththis._markSelected(Z)):this._markSelected(P[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...E){this._verifyValueAssignment(E),E.forEach(P=>this._markSelected(P)),this._emitChangeEvent()}deselect(...E){this._verifyValueAssignment(E),E.forEach(P=>this._unmarkSelected(P)),this._emitChangeEvent()}toggle(E){this.isSelected(E)?this.deselect(E):this.select(E)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(E){return this._selection.has(E)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(E){this._multiple&&this.selected&&this._selected.sort(E)}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(E){this.isSelected(E)||(this._multiple||this._unmarkAll(),this._selection.add(E),this._emitChanges&&this._selectedToEmit.push(E))}_unmarkSelected(E){this.isSelected(E)&&(this._selection.delete(E),this._emitChanges&&this._deselectedToEmit.push(E))}_unmarkAll(){this.isEmpty()||this._selection.forEach(E=>this._unmarkSelected(E))}_verifyValueAssignment(E){}}let L=(()=>{class A{constructor(){this._listeners=[]}notify(P,w){for(let Z of this._listeners)Z(P,w)}listen(P){return this._listeners.push(P),()=>{this._listeners=this._listeners.filter(w=>P!==w)}}ngOnDestroy(){this._listeners=[]}}return A.\u0275fac=function(P){return new(P||A)},A.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();const O=new t.OlP("_ViewRepeater")},1159:(Ve,Q,m)=>{"use strict";m.d(Q,{A:()=>N,zL:()=>R,jx:()=>l,JH:()=>ee,uR:()=>w,K5:()=>o,hY:()=>O,Sd:()=>Z,oh:()=>j,b2:()=>ui,MW:()=>it,aO:()=>I,VM:()=>P,Ku:()=>E,SV:()=>ie,JU:()=>M,L_:()=>A,Mf:()=>v,LH:()=>W,Z:()=>ft,xE:()=>le,Vb:()=>Ci});const v=9,o=13,M=16,l=17,R=18,O=27,A=32,E=33,P=34,w=35,Z=36,j=37,W=38,ie=39,ee=40,le=48,I=57,N=65,ft=90,it=91,ui=224;function Ci(Yi,...$i){return $i.length?$i.some(Cn=>Yi[Cn]):Yi.altKey||Yi.shiftKey||Yi.ctrlKey||Yi.metaKey}},5113:(Ve,Q,m)=>{"use strict";m.d(Q,{Yg:()=>ee,u3:()=>he,xu:()=>P});var e=m(5e3),t=m(3191),v=m(7579),C=m(9841),o=m(7272),M=m(8306),l=m(5698),R=m(5684),s=m(8372),L=m(4004),O=m(8675),A=m(2722),E=m(925);let P=(()=>{class re{}return re.\u0275fac=function(le){return new(le||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({}),re})();const w=new Set;let Z,j=(()=>{class re{constructor(le){this._platform=le,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ie}matchMedia(le){return(this._platform.WEBKIT||this._platform.BLINK)&&function W(re){if(!w.has(re))try{Z||(Z=document.createElement("style"),Z.setAttribute("type","text/css"),document.head.appendChild(Z)),Z.sheet&&(Z.sheet.insertRule(`@media ${re} {body{ }}`,0),w.add(re))}catch(de){console.error(de)}}(le),this._matchMedia(le)}}return re.\u0275fac=function(le){return new(le||re)(e.LFG(E.t4))},re.\u0275prov=e.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})();function ie(re){return{matches:"all"===re||""===re,media:re,addListener:()=>{},removeListener:()=>{}}}let ee=(()=>{class re{constructor(le,se){this._mediaMatcher=le,this._zone=se,this._queries=new Map,this._destroySubject=new v.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(le){return ve((0,t.Eq)(le)).some(y=>this._registerQuery(y).mql.matches)}observe(le){const y=ve((0,t.Eq)(le)).map(a=>this._registerQuery(a).observable);let i=(0,C.a)(y);return i=(0,o.z)(i.pipe((0,l.q)(1)),i.pipe((0,R.T)(1),(0,s.b)(0))),i.pipe((0,L.U)(a=>{const p={matches:!1,breakpoints:{}};return a.forEach(({matches:u,query:_})=>{p.matches=p.matches||u,p.breakpoints[_]=u}),p}))}_registerQuery(le){if(this._queries.has(le))return this._queries.get(le);const se=this._mediaMatcher.matchMedia(le),i={observable:new M.y(a=>{const p=u=>this._zone.run(()=>a.next(u));return se.addListener(p),()=>{se.removeListener(p)}}).pipe((0,O.O)(se),(0,L.U)(({matches:a})=>({query:le,matches:a})),(0,A.R)(this._destroySubject)),mql:se};return this._queries.set(le,i),i}}return re.\u0275fac=function(le){return new(le||re)(e.LFG(j),e.LFG(e.R0b))},re.\u0275prov=e.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})();function ve(re){return re.map(de=>de.split(",")).reduce((de,le)=>de.concat(le)).map(de=>de.trim())}const he={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)"}},7144:(Ve,Q,m)=>{"use strict";m.d(Q,{wD:()=>R,yq:()=>l,Q8:()=>s});var e=m(3191),t=m(5e3),v=m(8306),C=m(7579),o=m(8372);let M=(()=>{class L{create(A){return"undefined"==typeof MutationObserver?null:new MutationObserver(A)}}return L.\u0275fac=function(A){return new(A||L)},L.\u0275prov=t.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),l=(()=>{class L{constructor(A){this._mutationObserverFactory=A,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((A,E)=>this._cleanupObserver(E))}observe(A){const E=(0,e.fI)(A);return new v.y(P=>{const Z=this._observeElement(E).subscribe(P);return()=>{Z.unsubscribe(),this._unobserveElement(E)}})}_observeElement(A){if(this._observedElements.has(A))this._observedElements.get(A).count++;else{const E=new C.x,P=this._mutationObserverFactory.create(w=>E.next(w));P&&P.observe(A,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(A,{observer:P,stream:E,count:1})}return this._observedElements.get(A).stream}_unobserveElement(A){this._observedElements.has(A)&&(this._observedElements.get(A).count--,this._observedElements.get(A).count||this._cleanupObserver(A))}_cleanupObserver(A){if(this._observedElements.has(A)){const{observer:E,stream:P}=this._observedElements.get(A);E&&E.disconnect(),P.complete(),this._observedElements.delete(A)}}}return L.\u0275fac=function(A){return new(A||L)(t.LFG(M))},L.\u0275prov=t.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),R=(()=>{class L{constructor(A,E,P){this._contentObserver=A,this._elementRef=E,this._ngZone=P,this.event=new t.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(A){this._disabled=(0,e.Ig)(A),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(A){this._debounce=(0,e.su)(A),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const A=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?A.pipe((0,o.b)(this.debounce)):A).subscribe(this.event)})}_unsubscribe(){var A;null===(A=this._currentSubscription)||void 0===A||A.unsubscribe()}}return L.\u0275fac=function(A){return new(A||L)(t.Y36(l),t.Y36(t.SBq),t.Y36(t.R0b))},L.\u0275dir=t.lG2({type:L,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),L})(),s=(()=>{class L{}return L.\u0275fac=function(A){return new(A||L)},L.\u0275mod=t.oAB({type:L}),L.\u0275inj=t.cJS({providers:[M]}),L})()},9776:(Ve,Q,m)=>{"use strict";m.d(Q,{pI:()=>vt,xu:()=>Ge,_G:()=>r,aV:()=>we,X_:()=>se,Xj:()=>D,U8:()=>ue});var e=m(5303),t=m(9808),v=m(5e3),C=m(3191),o=m(925),M=m(226),l=m(7429),R=m(7579),s=m(727),L=m(6451),O=m(4482),A=m(5403),P=m(5698),w=m(2722),Z=m(1159);const j=(0,o.Mq)();class W{constructor(q,$){this._viewportRuler=q,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=$}attach(){}enable(){if(this._canBeEnabled()){const q=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=q.style.left||"",this._previousHTMLStyles.top=q.style.top||"",q.style.left=(0,C.HM)(-this._previousScrollPosition.left),q.style.top=(0,C.HM)(-this._previousScrollPosition.top),q.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const q=this._document.documentElement,ce=q.style,Me=this._document.body.style,Ue=ce.scrollBehavior||"",lt=Me.scrollBehavior||"";this._isEnabled=!1,ce.left=this._previousHTMLStyles.left,ce.top=this._previousHTMLStyles.top,q.classList.remove("cdk-global-scrollblock"),j&&(ce.scrollBehavior=Me.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),j&&(ce.scrollBehavior=Ue,Me.scrollBehavior=lt)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const $=this._document.body,ce=this._viewportRuler.getViewportSize();return $.scrollHeight>ce.height||$.scrollWidth>ce.width}}class ee{constructor(q,$,ce,Me){this._scrollDispatcher=q,this._ngZone=$,this._viewportRuler=ce,this._config=Me,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(q){this._overlayRef=q}enable(){if(this._scrollSubscription)return;const q=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=q.subscribe(()=>{const $=this._viewportRuler.getViewportScrollPosition().top;Math.abs($-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=q.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ve{enable(){}disable(){}attach(){}}function he(Pe,q){return q.some($=>Pe.bottom<$.top||Pe.top>$.bottom||Pe.right<$.left||Pe.left>$.right)}function re(Pe,q){return q.some($=>Pe.top<$.top||Pe.bottom>$.bottom||Pe.left<$.left||Pe.right>$.right)}class de{constructor(q,$,ce,Me){this._scrollDispatcher=q,this._viewportRuler=$,this._ngZone=ce,this._config=Me,this._scrollSubscription=null}attach(q){this._overlayRef=q}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 $=this._overlayRef.overlayElement.getBoundingClientRect(),{width:ce,height:Me}=this._viewportRuler.getViewportSize();he($,[{width:ce,height:Me,bottom:Me,right:ce,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 le=(()=>{class Pe{constructor($,ce,Me,Ue){this._scrollDispatcher=$,this._viewportRuler=ce,this._ngZone=Me,this.noop=()=>new ve,this.close=lt=>new ee(this._scrollDispatcher,this._ngZone,this._viewportRuler,lt),this.block=()=>new W(this._viewportRuler,this._document),this.reposition=lt=>new de(this._scrollDispatcher,this._viewportRuler,this._ngZone,lt),this._document=Ue}}return Pe.\u0275fac=function($){return new($||Pe)(v.LFG(e.mF),v.LFG(e.rL),v.LFG(v.R0b),v.LFG(t.K0))},Pe.\u0275prov=v.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();class se{constructor(q){if(this.scrollStrategy=new ve,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,q){const $=Object.keys(q);for(const ce of $)void 0!==q[ce]&&(this[ce]=q[ce])}}}class a{constructor(q,$){this.connectionPair=q,this.scrollableViewProperties=$}}class _{constructor(q,$,ce,Me,Ue,lt,nt,ft,it){this._portalOutlet=q,this._host=$,this._pane=ce,this._config=Me,this._ngZone=Ue,this._keyboardDispatcher=lt,this._document=nt,this._location=ft,this._outsideClickDispatcher=it,this._backdropElement=null,this._backdropClick=new R.x,this._attachments=new R.x,this._detachments=new R.x,this._locationChanges=s.w0.EMPTY,this._backdropClickHandler=rt=>this._backdropClick.next(rt),this._keydownEvents=new R.x,this._outsidePointerEvents=new R.x,Me.scrollStrategy&&(this._scrollStrategy=Me.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Me.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(q){let $=this._portalOutlet.attach(q);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),$}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const q=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),q}dispose(){var q;const $=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),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),null===(q=this._host)||void 0===q||q.remove(),this._previousHostParent=this._pane=this._host=null,$&&this._detachments.next(),this._detachments.complete()}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(q){q!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=q,this.hasAttached()&&(q.attach(this),this.updatePosition()))}updateSize(q){this._config=Object.assign(Object.assign({},this._config),q),this._updateElementSize()}setDirection(q){this._config=Object.assign(Object.assign({},this._config),{direction:q}),this._updateElementDirection()}addPanelClass(q){this._pane&&this._toggleClasses(this._pane,q,!0)}removePanelClass(q){this._pane&&this._toggleClasses(this._pane,q,!1)}getDirection(){const q=this._config.direction;return q?"string"==typeof q?q:q.value:"ltr"}updateScrollStrategy(q){q!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=q,this.hasAttached()&&(q.attach(this),q.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const q=this._pane.style;q.width=(0,C.HM)(this._config.width),q.height=(0,C.HM)(this._config.height),q.minWidth=(0,C.HM)(this._config.minWidth),q.minHeight=(0,C.HM)(this._config.minHeight),q.maxWidth=(0,C.HM)(this._config.maxWidth),q.maxHeight=(0,C.HM)(this._config.maxHeight)}_togglePointerEvents(q){this._pane.style.pointerEvents=q?"":"none"}_attachBackdrop(){const q="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(q)})}):this._backdropElement.classList.add(q)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const q=this._backdropElement;if(!q)return;let $;const ce=()=>{q&&(q.removeEventListener("click",this._backdropClickHandler),q.removeEventListener("transitionend",ce),this._disposeBackdrop(q)),this._config.backdropClass&&this._toggleClasses(q,this._config.backdropClass,!1),clearTimeout($)};q.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{q.addEventListener("transitionend",ce)}),q.style.pointerEvents="none",$=this._ngZone.runOutsideAngular(()=>setTimeout(ce,500))}_toggleClasses(q,$,ce){const Me=(0,C.Eq)($||[]).filter(Ue=>!!Ue);Me.length&&(ce?q.classList.add(...Me):q.classList.remove(...Me))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const q=this._ngZone.onStable.pipe((0,w.R)((0,L.T)(this._attachments,this._detachments))).subscribe(()=>{(!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()),q.unsubscribe())})})}_disposeScrollStrategy(){const q=this._scrollStrategy;q&&(q.disable(),q.detach&&q.detach())}_disposeBackdrop(q){q&&(q.remove(),this._backdropElement===q&&(this._backdropElement=null))}}let D=(()=>{class Pe{constructor($,ce){this._platform=ce,this._document=$}ngOnDestroy(){var $;null===($=this._containerElement)||void 0===$||$.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const $="cdk-overlay-container";if(this._platform.isBrowser||(0,o.Oy)()){const Me=this._document.querySelectorAll(`.${$}[platform="server"], .${$}[platform="test"]`);for(let Ue=0;Ue{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();const q=this._originRect,$=this._overlayRect,ce=this._viewportRect,Me=[];let Ue;for(let lt of this._preferredPositions){let nt=this._getOriginPoint(q,lt),ft=this._getOverlayPoint(nt,$,lt),it=this._getOverlayFit(ft,$,ce,lt);if(it.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(lt,nt);this._canFitWithFlexibleDimensions(it,ft,ce)?Me.push({position:lt,origin:nt,overlayRect:$,boundingBoxRect:this._calculateBoundingBoxRect(nt,lt)}):(!Ue||Ue.overlayFit.visibleAreant&&(nt=it,lt=ft)}return this._isPushed=!1,void this._applyPosition(lt.position,lt.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Ue.position,Ue.originPoint);this._applyPosition(Ue.position,Ue.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&b(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(I),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const q=this._lastPosition||this._preferredPositions[0],$=this._getOriginPoint(this._originRect,q);this._applyPosition(q,$)}}withScrollableContainers(q){return this._scrollables=q,this}withPositions(q){return this._preferredPositions=q,-1===q.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(q){return this._viewportMargin=q,this}withFlexibleDimensions(q=!0){return this._hasFlexibleDimensions=q,this}withGrowAfterOpen(q=!0){return this._growAfterOpen=q,this}withPush(q=!0){return this._canPush=q,this}withLockedPosition(q=!0){return this._positionLocked=q,this}setOrigin(q){return this._origin=q,this}withDefaultOffsetX(q){return this._offsetX=q,this}withDefaultOffsetY(q){return this._offsetY=q,this}withTransformOriginOn(q){return this._transformOriginSelector=q,this}_getOriginPoint(q,$){let ce,Me;if("center"==$.originX)ce=q.left+q.width/2;else{const Ue=this._isRtl()?q.right:q.left,lt=this._isRtl()?q.left:q.right;ce="start"==$.originX?Ue:lt}return Me="center"==$.originY?q.top+q.height/2:"top"==$.originY?q.top:q.bottom,{x:ce,y:Me}}_getOverlayPoint(q,$,ce){let Me,Ue;return Me="center"==ce.overlayX?-$.width/2:"start"===ce.overlayX?this._isRtl()?-$.width:0:this._isRtl()?0:-$.width,Ue="center"==ce.overlayY?-$.height/2:"top"==ce.overlayY?0:-$.height,{x:q.x+Me,y:q.y+Ue}}_getOverlayFit(q,$,ce,Me){const Ue=N($);let{x:lt,y:nt}=q,ft=this._getOffset(Me,"x"),it=this._getOffset(Me,"y");ft&&(lt+=ft),it&&(nt+=it);let Zt=0-nt,Ft=nt+Ue.height-ce.height,Vt=this._subtractOverflows(Ue.width,0-lt,lt+Ue.width-ce.width),Ii=this._subtractOverflows(Ue.height,Zt,Ft),jt=Vt*Ii;return{visibleArea:jt,isCompletelyWithinViewport:Ue.width*Ue.height===jt,fitsInViewportVertically:Ii===Ue.height,fitsInViewportHorizontally:Vt==Ue.width}}_canFitWithFlexibleDimensions(q,$,ce){if(this._hasFlexibleDimensions){const Me=ce.bottom-$.y,Ue=ce.right-$.x,lt=U(this._overlayRef.getConfig().minHeight),nt=U(this._overlayRef.getConfig().minWidth),it=q.fitsInViewportHorizontally||null!=nt&&nt<=Ue;return(q.fitsInViewportVertically||null!=lt&<<=Me)&&it}return!1}_pushOverlayOnScreen(q,$,ce){if(this._previousPushAmount&&this._positionLocked)return{x:q.x+this._previousPushAmount.x,y:q.y+this._previousPushAmount.y};const Me=N($),Ue=this._viewportRect,lt=Math.max(q.x+Me.width-Ue.width,0),nt=Math.max(q.y+Me.height-Ue.height,0),ft=Math.max(Ue.top-ce.top-q.y,0),it=Math.max(Ue.left-ce.left-q.x,0);let rt=0,Mt=0;return rt=Me.width<=Ue.width?it||-lt:q.xVt&&!this._isInitialRender&&!this._growAfterOpen&&(lt=q.y-Vt/2)}if("end"===$.overlayX&&!Me||"start"===$.overlayX&&Me)Zt=ce.width-q.x+this._viewportMargin,rt=q.x-this._viewportMargin;else if("start"===$.overlayX&&!Me||"end"===$.overlayX&&Me)Mt=q.x,rt=ce.right-q.x;else{const Ft=Math.min(ce.right-q.x+ce.left,q.x),Vt=this._lastBoundingBoxSize.width;rt=2*Ft,Mt=q.x-Ft,rt>Vt&&!this._isInitialRender&&!this._growAfterOpen&&(Mt=q.x-Vt/2)}return{top:lt,left:Mt,bottom:nt,right:Zt,width:rt,height:Ue}}_setBoundingBoxStyles(q,$){const ce=this._calculateBoundingBoxRect(q,$);!this._isInitialRender&&!this._growAfterOpen&&(ce.height=Math.min(ce.height,this._lastBoundingBoxSize.height),ce.width=Math.min(ce.width,this._lastBoundingBoxSize.width));const Me={};if(this._hasExactPosition())Me.top=Me.left="0",Me.bottom=Me.right=Me.maxHeight=Me.maxWidth="",Me.width=Me.height="100%";else{const Ue=this._overlayRef.getConfig().maxHeight,lt=this._overlayRef.getConfig().maxWidth;Me.height=(0,C.HM)(ce.height),Me.top=(0,C.HM)(ce.top),Me.bottom=(0,C.HM)(ce.bottom),Me.width=(0,C.HM)(ce.width),Me.left=(0,C.HM)(ce.left),Me.right=(0,C.HM)(ce.right),Me.alignItems="center"===$.overlayX?"center":"end"===$.overlayX?"flex-end":"flex-start",Me.justifyContent="center"===$.overlayY?"center":"bottom"===$.overlayY?"flex-end":"flex-start",Ue&&(Me.maxHeight=(0,C.HM)(Ue)),lt&&(Me.maxWidth=(0,C.HM)(lt))}this._lastBoundingBoxSize=ce,b(this._boundingBox.style,Me)}_resetBoundingBoxStyles(){b(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){b(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(q,$){const ce={},Me=this._hasExactPosition(),Ue=this._hasFlexibleDimensions,lt=this._overlayRef.getConfig();if(Me){const rt=this._viewportRuler.getViewportScrollPosition();b(ce,this._getExactOverlayY($,q,rt)),b(ce,this._getExactOverlayX($,q,rt))}else ce.position="static";let nt="",ft=this._getOffset($,"x"),it=this._getOffset($,"y");ft&&(nt+=`translateX(${ft}px) `),it&&(nt+=`translateY(${it}px)`),ce.transform=nt.trim(),lt.maxHeight&&(Me?ce.maxHeight=(0,C.HM)(lt.maxHeight):Ue&&(ce.maxHeight="")),lt.maxWidth&&(Me?ce.maxWidth=(0,C.HM)(lt.maxWidth):Ue&&(ce.maxWidth="")),b(this._pane.style,ce)}_getExactOverlayY(q,$,ce){let Me={top:"",bottom:""},Ue=this._getOverlayPoint($,this._overlayRect,q);this._isPushed&&(Ue=this._pushOverlayOnScreen(Ue,this._overlayRect,ce));let lt=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return Ue.y-=lt,"bottom"===q.overlayY?Me.bottom=this._document.documentElement.clientHeight-(Ue.y+this._overlayRect.height)+"px":Me.top=(0,C.HM)(Ue.y),Me}_getExactOverlayX(q,$,ce){let lt,Me={left:"",right:""},Ue=this._getOverlayPoint($,this._overlayRect,q);return this._isPushed&&(Ue=this._pushOverlayOnScreen(Ue,this._overlayRect,ce)),lt=this._isRtl()?"end"===q.overlayX?"left":"right":"end"===q.overlayX?"right":"left","right"===lt?Me.right=this._document.documentElement.clientWidth-(Ue.x+this._overlayRect.width)+"px":Me.left=(0,C.HM)(Ue.x),Me}_getScrollVisibility(){const q=this._getOriginRect(),$=this._pane.getBoundingClientRect(),ce=this._scrollables.map(Me=>Me.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:re(q,ce),isOriginOutsideView:he(q,ce),isOverlayClipped:re($,ce),isOverlayOutsideView:he($,ce)}}_subtractOverflows(q,...$){return $.reduce((ce,Me)=>ce-Math.max(Me,0),q)}_getNarrowedViewportRect(){const q=this._document.documentElement.clientWidth,$=this._document.documentElement.clientHeight,ce=this._viewportRuler.getViewportScrollPosition();return{top:ce.top+this._viewportMargin,left:ce.left+this._viewportMargin,right:ce.left+q-this._viewportMargin,bottom:ce.top+$-this._viewportMargin,width:q-2*this._viewportMargin,height:$-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(q,$){return"x"===$?null==q.offsetX?this._offsetX:q.offsetX:null==q.offsetY?this._offsetY:q.offsetY}_validatePositions(){}_addPanelClasses(q){this._pane&&(0,C.Eq)(q).forEach($=>{""!==$&&-1===this._appliedPanelClasses.indexOf($)&&(this._appliedPanelClasses.push($),this._pane.classList.add($))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(q=>{this._pane.classList.remove(q)}),this._appliedPanelClasses=[])}_getOriginRect(){const q=this._origin;if(q instanceof v.SBq)return q.nativeElement.getBoundingClientRect();if(q instanceof Element)return q.getBoundingClientRect();const $=q.width||0,ce=q.height||0;return{top:q.y,bottom:q.y+ce,left:q.x,right:q.x+$,height:ce,width:$}}}function b(Pe,q){for(let $ in q)q.hasOwnProperty($)&&(Pe[$]=q[$]);return Pe}function U(Pe){if("number"!=typeof Pe&&null!=Pe){const[q,$]=Pe.split(x);return $&&"px"!==$?null:parseFloat(q)}return Pe||null}function N(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 z="cdk-global-overlay-wrapper";class be{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(q){const $=q.getConfig();this._overlayRef=q,this._width&&!$.width&&q.updateSize({width:this._width}),this._height&&!$.height&&q.updateSize({height:this._height}),q.hostElement.classList.add(z),this._isDisposed=!1}top(q=""){return this._bottomOffset="",this._topOffset=q,this._alignItems="flex-start",this}left(q=""){return this._rightOffset="",this._leftOffset=q,this._justifyContent="flex-start",this}bottom(q=""){return this._topOffset="",this._bottomOffset=q,this._alignItems="flex-end",this}right(q=""){return this._leftOffset="",this._rightOffset=q,this._justifyContent="flex-end",this}width(q=""){return this._overlayRef?this._overlayRef.updateSize({width:q}):this._width=q,this}height(q=""){return this._overlayRef?this._overlayRef.updateSize({height:q}):this._height=q,this}centerHorizontally(q=""){return this.left(q),this._justifyContent="center",this}centerVertically(q=""){return this.top(q),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const q=this._overlayRef.overlayElement.style,$=this._overlayRef.hostElement.style,ce=this._overlayRef.getConfig(),{width:Me,height:Ue,maxWidth:lt,maxHeight:nt}=ce,ft=!("100%"!==Me&&"100vw"!==Me||lt&&"100%"!==lt&&"100vw"!==lt),it=!("100%"!==Ue&&"100vh"!==Ue||nt&&"100%"!==nt&&"100vh"!==nt);q.position=this._cssPosition,q.marginLeft=ft?"0":this._leftOffset,q.marginTop=it?"0":this._topOffset,q.marginBottom=this._bottomOffset,q.marginRight=this._rightOffset,ft?$.justifyContent="flex-start":"center"===this._justifyContent?$.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?$.justifyContent="flex-end":"flex-end"===this._justifyContent&&($.justifyContent="flex-start"):$.justifyContent=this._justifyContent,$.alignItems=it?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const q=this._overlayRef.overlayElement.style,$=this._overlayRef.hostElement,ce=$.style;$.classList.remove(z),ce.justifyContent=ce.alignItems=q.marginTop=q.marginBottom=q.marginLeft=q.marginRight=q.position="",this._overlayRef=null,this._isDisposed=!0}}let xe=(()=>{class Pe{constructor($,ce,Me,Ue){this._viewportRuler=$,this._document=ce,this._platform=Me,this._overlayContainer=Ue}global(){return new be}flexibleConnectedTo($){return new r($,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Pe.\u0275fac=function($){return new($||Pe)(v.LFG(e.rL),v.LFG(t.K0),v.LFG(o.t4),v.LFG(D))},Pe.\u0275prov=v.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),Re=(()=>{class Pe{constructor($){this._attachedOverlays=[],this._document=$}ngOnDestroy(){this.detach()}add($){this.remove($),this._attachedOverlays.push($)}remove($){const ce=this._attachedOverlays.indexOf($);ce>-1&&this._attachedOverlays.splice(ce,1),0===this._attachedOverlays.length&&this.detach()}}return Pe.\u0275fac=function($){return new($||Pe)(v.LFG(t.K0))},Pe.\u0275prov=v.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),ze=(()=>{class Pe extends Re{constructor($){super($),this._keydownListener=ce=>{const Me=this._attachedOverlays;for(let Ue=Me.length-1;Ue>-1;Ue--)if(Me[Ue]._keydownEvents.observers.length>0){Me[Ue]._keydownEvents.next(ce);break}}}add($){super.add($),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return Pe.\u0275fac=function($){return new($||Pe)(v.LFG(t.K0))},Pe.\u0275prov=v.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),Le=(()=>{class Pe extends Re{constructor($,ce){super($),this._platform=ce,this._cursorStyleIsSet=!1,this._pointerDownListener=Me=>{this._pointerDownEventTarget=(0,o.sA)(Me)},this._clickListener=Me=>{const Ue=(0,o.sA)(Me),lt="click"===Me.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Ue;this._pointerDownEventTarget=null;const nt=this._attachedOverlays.slice();for(let ft=nt.length-1;ft>-1;ft--){const it=nt[ft];if(!(it._outsidePointerEvents.observers.length<1)&&it.hasAttached()){if(it.overlayElement.contains(Ue)||it.overlayElement.contains(lt))break;it._outsidePointerEvents.next(Me)}}}}add($){if(super.add($),!this._isAttached){const ce=this._document.body;ce.addEventListener("pointerdown",this._pointerDownListener,!0),ce.addEventListener("click",this._clickListener,!0),ce.addEventListener("auxclick",this._clickListener,!0),ce.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=ce.style.cursor,ce.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const $=this._document.body;$.removeEventListener("pointerdown",this._pointerDownListener,!0),$.removeEventListener("click",this._clickListener,!0),$.removeEventListener("auxclick",this._clickListener,!0),$.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&($.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return Pe.\u0275fac=function($){return new($||Pe)(v.LFG(t.K0),v.LFG(o.t4))},Pe.\u0275prov=v.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),K=0,we=(()=>{class Pe{constructor($,ce,Me,Ue,lt,nt,ft,it,rt,Mt,Zt){this.scrollStrategies=$,this._overlayContainer=ce,this._componentFactoryResolver=Me,this._positionBuilder=Ue,this._keyboardDispatcher=lt,this._injector=nt,this._ngZone=ft,this._document=it,this._directionality=rt,this._location=Mt,this._outsideClickDispatcher=Zt}create($){const ce=this._createHostElement(),Me=this._createPaneElement(ce),Ue=this._createPortalOutlet(Me),lt=new se($);return lt.direction=lt.direction||this._directionality.value,new _(Ue,ce,Me,lt,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement($){const ce=this._document.createElement("div");return ce.id="cdk-overlay-"+K++,ce.classList.add("cdk-overlay-pane"),$.appendChild(ce),ce}_createHostElement(){const $=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild($),$}_createPortalOutlet($){return this._appRef||(this._appRef=this._injector.get(v.z2F)),new l.u0($,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Pe.\u0275fac=function($){return new($||Pe)(v.LFG(le),v.LFG(D),v.LFG(v._Vd),v.LFG(xe),v.LFG(ze),v.LFG(v.zs3),v.LFG(v.R0b),v.LFG(t.K0),v.LFG(M.Is),v.LFG(t.Ye),v.LFG(Le))},Pe.\u0275prov=v.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const Y=[{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"}],ae=new v.OlP("cdk-connected-overlay-scroll-strategy");let Ge=(()=>{class Pe{constructor($){this.elementRef=$}}return Pe.\u0275fac=function($){return new($||Pe)(v.Y36(v.SBq))},Pe.\u0275dir=v.lG2({type:Pe,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),Pe})(),vt=(()=>{class Pe{constructor($,ce,Me,Ue,lt){this._overlay=$,this._dir=lt,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=s.w0.EMPTY,this._attachSubscription=s.w0.EMPTY,this._detachSubscription=s.w0.EMPTY,this._positionSubscription=s.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new v.vpe,this.positionChange=new v.vpe,this.attach=new v.vpe,this.detach=new v.vpe,this.overlayKeydown=new v.vpe,this.overlayOutsideClick=new v.vpe,this._templatePortal=new l.UE(ce,Me),this._scrollStrategyFactory=Ue,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX($){this._offsetX=$,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY($){this._offsetY=$,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop($){this._hasBackdrop=(0,C.Ig)($)}get lockPosition(){return this._lockPosition}set lockPosition($){this._lockPosition=(0,C.Ig)($)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions($){this._flexibleDimensions=(0,C.Ig)($)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen($){this._growAfterOpen=(0,C.Ig)($)}get push(){return this._push}set push($){this._push=(0,C.Ig)($)}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&&this._overlayRef.dispose()}ngOnChanges($){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),$.origin&&this.open&&this._position.apply()),$.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Y);const $=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=$.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=$.detachments().subscribe(()=>this.detach.emit()),$.keydownEvents().subscribe(ce=>{this.overlayKeydown.next(ce),ce.keyCode===Z.hY&&!this.disableClose&&!(0,Z.Vb)(ce)&&(ce.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(ce=>{this.overlayOutsideClick.next(ce)})}_buildConfig(){const $=this._position=this.positionStrategy||this._createPositionStrategy(),ce=new se({direction:this._dir,positionStrategy:$,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(ce.width=this.width),(this.height||0===this.height)&&(ce.height=this.height),(this.minWidth||0===this.minWidth)&&(ce.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(ce.minHeight=this.minHeight),this.backdropClass&&(ce.backdropClass=this.backdropClass),this.panelClass&&(ce.panelClass=this.panelClass),ce}_updatePositionStrategy($){const ce=this.positions.map(Me=>({originX:Me.originX,originY:Me.originY,overlayX:Me.overlayX,overlayY:Me.overlayY,offsetX:Me.offsetX||this.offsetX,offsetY:Me.offsetY||this.offsetY,panelClass:Me.panelClass||void 0}));return $.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(ce).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const $=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy($),$}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Ge?this.origin.elementRef:this.origin}_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($=>{this.backdropClick.emit($)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function E(Pe,q=!1){return(0,O.e)(($,ce)=>{let Me=0;$.subscribe(new A.Q(ce,Ue=>{const lt=Pe(Ue,Me++);(lt||q)&&ce.next(Ue),!lt&&ce.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe($=>{this.positionChange.emit($),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return Pe.\u0275fac=function($){return new($||Pe)(v.Y36(we),v.Y36(v.Rgc),v.Y36(v.s_b),v.Y36(ae),v.Y36(M.Is,8))},Pe.\u0275dir=v.lG2({type:Pe,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[v.TTD]}),Pe})();const Ne={provide:ae,deps:[we],useFactory:function Fe(Pe){return()=>Pe.scrollStrategies.reposition()}};let ue=(()=>{class Pe{}return Pe.\u0275fac=function($){return new($||Pe)},Pe.\u0275mod=v.oAB({type:Pe}),Pe.\u0275inj=v.cJS({providers:[we,Ne],imports:[[M.vT,l.eL,e.Cl],e.Cl]}),Pe})()},925:(Ve,Q,m)=>{"use strict";m.d(Q,{t4:()=>C,ud:()=>o,sA:()=>ee,ht:()=>ie,kV:()=>W,Oy:()=>ve,_i:()=>w,qK:()=>R,i$:()=>O,Mq:()=>P});var e=m(5e3),t=m(9808);let v;try{v="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(he){v=!1}let M,C=(()=>{class he{constructor(de){this._platformId=de,this.isBrowser=this._platformId?(0,t.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!v)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return he.\u0275fac=function(de){return new(de||he)(e.LFG(e.Lbi))},he.\u0275prov=e.Yz7({token:he,factory:he.\u0275fac,providedIn:"root"}),he})(),o=(()=>{class he{}return he.\u0275fac=function(de){return new(de||he)},he.\u0275mod=e.oAB({type:he}),he.\u0275inj=e.cJS({}),he})();const l=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function R(){if(M)return M;if("object"!=typeof document||!document)return M=new Set(l),M;let he=document.createElement("input");return M=new Set(l.filter(re=>(he.setAttribute("type",re),he.type===re))),M}let s,A,E,Z;function O(he){return function L(){if(null==s&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>s=!0}))}finally{s=s||!1}return s}()?he:!!he.capture}function P(){if(null==E){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return E=!1,E;if("scrollBehavior"in document.documentElement.style)E=!0;else{const he=Element.prototype.scrollTo;E=!!he&&!/\{\s*\[native code\]\s*\}/.test(he.toString())}}return E}function w(){if("object"!=typeof document||!document)return 0;if(null==A){const he=document.createElement("div"),re=he.style;he.dir="rtl",re.width="1px",re.overflow="auto",re.visibility="hidden",re.pointerEvents="none",re.position="absolute";const de=document.createElement("div"),le=de.style;le.width="2px",le.height="1px",he.appendChild(de),document.body.appendChild(he),A=0,0===he.scrollLeft&&(he.scrollLeft=1,A=0===he.scrollLeft?1:2),he.remove()}return A}function W(he){if(function j(){if(null==Z){const he="undefined"!=typeof document?document.head:null;Z=!(!he||!he.createShadowRoot&&!he.attachShadow)}return Z}()){const re=he.getRootNode?he.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&re instanceof ShadowRoot)return re}return null}function ie(){let he="undefined"!=typeof document&&document?document.activeElement:null;for(;he&&he.shadowRoot;){const re=he.shadowRoot.activeElement;if(re===he)break;he=re}return he}function ee(he){return he.composedPath?he.composedPath()[0]:he.target}function ve(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(Ve,Q,m)=>{"use strict";m.d(Q,{en:()=>E,ig:()=>j,Pl:()=>ie,C5:()=>L,u0:()=>w,eL:()=>ve,UE:()=>O});var e=m(5e3),t=m(9808);class s{attach(de){return this._attachedHost=de,de.attach(this)}detach(){let de=this._attachedHost;null!=de&&(this._attachedHost=null,de.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(de){this._attachedHost=de}}class L extends s{constructor(de,le,se,y){super(),this.component=de,this.viewContainerRef=le,this.injector=se,this.componentFactoryResolver=y}}class O extends s{constructor(de,le,se){super(),this.templateRef=de,this.viewContainerRef=le,this.context=se}get origin(){return this.templateRef.elementRef}attach(de,le=this.context){return this.context=le,super.attach(de)}detach(){return this.context=void 0,super.detach()}}class A extends s{constructor(de){super(),this.element=de instanceof e.SBq?de.nativeElement:de}}class E{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(de){return de instanceof L?(this._attachedPortal=de,this.attachComponentPortal(de)):de instanceof O?(this._attachedPortal=de,this.attachTemplatePortal(de)):this.attachDomPortal&&de instanceof A?(this._attachedPortal=de,this.attachDomPortal(de)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(de){this._disposeFn=de}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class w extends E{constructor(de,le,se,y,i){super(),this.outletElement=de,this._componentFactoryResolver=le,this._appRef=se,this._defaultInjector=y,this.attachDomPortal=a=>{const p=a.element,u=this._document.createComment("dom-portal");p.parentNode.insertBefore(u,p),this.outletElement.appendChild(p),this._attachedPortal=a,super.setDisposeFn(()=>{u.parentNode&&u.parentNode.replaceChild(p,u)})},this._document=i}attachComponentPortal(de){const se=(de.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(de.component);let y;return de.viewContainerRef?(y=de.viewContainerRef.createComponent(se,de.viewContainerRef.length,de.injector||de.viewContainerRef.injector),this.setDisposeFn(()=>y.destroy())):(y=se.create(de.injector||this._defaultInjector),this._appRef.attachView(y.hostView),this.setDisposeFn(()=>{this._appRef.detachView(y.hostView),y.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(y)),this._attachedPortal=de,y}attachTemplatePortal(de){let le=de.viewContainerRef,se=le.createEmbeddedView(de.templateRef,de.context);return se.rootNodes.forEach(y=>this.outletElement.appendChild(y)),se.detectChanges(),this.setDisposeFn(()=>{let y=le.indexOf(se);-1!==y&&le.remove(y)}),this._attachedPortal=de,se}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(de){return de.hostView.rootNodes[0]}}let j=(()=>{class re extends O{constructor(le,se){super(le,se)}}return re.\u0275fac=function(le){return new(le||re)(e.Y36(e.Rgc),e.Y36(e.s_b))},re.\u0275dir=e.lG2({type:re,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.qOj]}),re})(),ie=(()=>{class re extends E{constructor(le,se,y){super(),this._componentFactoryResolver=le,this._viewContainerRef=se,this._isInitialized=!1,this.attached=new e.vpe,this.attachDomPortal=i=>{const a=i.element,p=this._document.createComment("dom-portal");i.setAttachedHost(this),a.parentNode.insertBefore(p,a),this._getRootNode().appendChild(a),this._attachedPortal=i,super.setDisposeFn(()=>{p.parentNode&&p.parentNode.replaceChild(a,p)})},this._document=y}get portal(){return this._attachedPortal}set portal(le){this.hasAttached()&&!le&&!this._isInitialized||(this.hasAttached()&&super.detach(),le&&super.attach(le),this._attachedPortal=le)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(le){le.setAttachedHost(this);const se=null!=le.viewContainerRef?le.viewContainerRef:this._viewContainerRef,i=(le.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(le.component),a=se.createComponent(i,se.length,le.injector||se.injector);return se!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=le,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(le){le.setAttachedHost(this);const se=this._viewContainerRef.createEmbeddedView(le.templateRef,le.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=le,this._attachedRef=se,this.attached.emit(se),se}_getRootNode(){const le=this._viewContainerRef.element.nativeElement;return le.nodeType===le.ELEMENT_NODE?le:le.parentNode}}return re.\u0275fac=function(le){return new(le||re)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(t.K0))},re.\u0275dir=e.lG2({type:re,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.qOj]}),re})(),ve=(()=>{class re{}return re.\u0275fac=function(le){return new(le||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({}),re})()},5303:(Ve,Q,m)=>{"use strict";m.d(Q,{PQ:()=>p,ZD:()=>U,mF:()=>a,Cl:()=>N,rL:()=>_});var e=m(3191),t=m(5e3),v=m(4408),C=m(727);const o={schedule(z){let be=requestAnimationFrame,xe=cancelAnimationFrame;const{delegate:Re}=o;Re&&(be=Re.requestAnimationFrame,xe=Re.cancelAnimationFrame);const ze=be(Le=>{xe=void 0,z(Le)});return new C.w0(()=>null==xe?void 0:xe(ze))},requestAnimationFrame(...z){const{delegate:be}=o;return((null==be?void 0:be.requestAnimationFrame)||requestAnimationFrame)(...z)},cancelAnimationFrame(...z){const{delegate:be}=o;return((null==be?void 0:be.cancelAnimationFrame)||cancelAnimationFrame)(...z)},delegate:void 0};var l=m(7565);new class R extends l.v{flush(be){this._active=!0,this._scheduled=void 0;const{actions:xe}=this;let Re,ze=-1;be=be||xe.shift();const Le=xe.length;do{if(Re=be.execute(be.state,be.delay))break}while(++ze0?super.requestAsyncId(be,xe,Re):(be.actions.push(this),be._scheduled||(be._scheduled=o.requestAnimationFrame(()=>be.flush(void 0))))}recycleAsyncId(be,xe,Re=0){if(null!=Re&&Re>0||null==Re&&this.delay>0)return super.recycleAsyncId(be,xe,Re);0===be.actions.length&&(o.cancelAnimationFrame(xe),be._scheduled=void 0)}});var O=m(7579),A=m(9646),E=m(8306),P=m(4968),Z=(m(3101),m(3601)),j=m(9300),W=m(2722),ie=m(9808),ee=m(925),ve=m(226);let a=(()=>{class z{constructor(xe,Re,ze){this._ngZone=xe,this._platform=Re,this._scrolled=new O.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ze}register(xe){this.scrollContainers.has(xe)||this.scrollContainers.set(xe,xe.elementScrolled().subscribe(()=>this._scrolled.next(xe)))}deregister(xe){const Re=this.scrollContainers.get(xe);Re&&(Re.unsubscribe(),this.scrollContainers.delete(xe))}scrolled(xe=20){return this._platform.isBrowser?new E.y(Re=>{this._globalSubscription||this._addGlobalListener();const ze=xe>0?this._scrolled.pipe((0,Z.e)(xe)).subscribe(Re):this._scrolled.subscribe(Re);return this._scrolledCount++,()=>{ze.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,A.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((xe,Re)=>this.deregister(Re)),this._scrolled.complete()}ancestorScrolled(xe,Re){const ze=this.getAncestorScrollContainers(xe);return this.scrolled(Re).pipe((0,j.h)(Le=>!Le||ze.indexOf(Le)>-1))}getAncestorScrollContainers(xe){const Re=[];return this.scrollContainers.forEach((ze,Le)=>{this._scrollableContainsElement(Le,xe)&&Re.push(Le)}),Re}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(xe,Re){let ze=(0,e.fI)(Re),Le=xe.getElementRef().nativeElement;do{if(ze==Le)return!0}while(ze=ze.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const xe=this._getWindow();return(0,P.R)(xe.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return z.\u0275fac=function(xe){return new(xe||z)(t.LFG(t.R0b),t.LFG(ee.t4),t.LFG(ie.K0,8))},z.\u0275prov=t.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})(),p=(()=>{class z{constructor(xe,Re,ze,Le){this.elementRef=xe,this.scrollDispatcher=Re,this.ngZone=ze,this.dir=Le,this._destroyed=new O.x,this._elementScrolled=new E.y(K=>this.ngZone.runOutsideAngular(()=>(0,P.R)(this.elementRef.nativeElement,"scroll").pipe((0,W.R)(this._destroyed)).subscribe(K)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(xe){const Re=this.elementRef.nativeElement,ze=this.dir&&"rtl"==this.dir.value;null==xe.left&&(xe.left=ze?xe.end:xe.start),null==xe.right&&(xe.right=ze?xe.start:xe.end),null!=xe.bottom&&(xe.top=Re.scrollHeight-Re.clientHeight-xe.bottom),ze&&0!=(0,ee._i)()?(null!=xe.left&&(xe.right=Re.scrollWidth-Re.clientWidth-xe.left),2==(0,ee._i)()?xe.left=xe.right:1==(0,ee._i)()&&(xe.left=xe.right?-xe.right:xe.right)):null!=xe.right&&(xe.left=Re.scrollWidth-Re.clientWidth-xe.right),this._applyScrollToOptions(xe)}_applyScrollToOptions(xe){const Re=this.elementRef.nativeElement;(0,ee.Mq)()?Re.scrollTo(xe):(null!=xe.top&&(Re.scrollTop=xe.top),null!=xe.left&&(Re.scrollLeft=xe.left))}measureScrollOffset(xe){const Re="left",Le=this.elementRef.nativeElement;if("top"==xe)return Le.scrollTop;if("bottom"==xe)return Le.scrollHeight-Le.clientHeight-Le.scrollTop;const K=this.dir&&"rtl"==this.dir.value;return"start"==xe?xe=K?"right":Re:"end"==xe&&(xe=K?Re:"right"),K&&2==(0,ee._i)()?xe==Re?Le.scrollWidth-Le.clientWidth-Le.scrollLeft:Le.scrollLeft:K&&1==(0,ee._i)()?xe==Re?Le.scrollLeft+Le.scrollWidth-Le.clientWidth:-Le.scrollLeft:xe==Re?Le.scrollLeft:Le.scrollWidth-Le.clientWidth-Le.scrollLeft}}return z.\u0275fac=function(xe){return new(xe||z)(t.Y36(t.SBq),t.Y36(a),t.Y36(t.R0b),t.Y36(ve.Is,8))},z.\u0275dir=t.lG2({type:z,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),z})(),_=(()=>{class z{constructor(xe,Re,ze){this._platform=xe,this._change=new O.x,this._changeListener=Le=>{this._change.next(Le)},this._document=ze,Re.runOutsideAngular(()=>{if(xe.isBrowser){const Le=this._getWindow();Le.addEventListener("resize",this._changeListener),Le.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const xe=this._getWindow();xe.removeEventListener("resize",this._changeListener),xe.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const xe={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),xe}getViewportRect(){const xe=this.getViewportScrollPosition(),{width:Re,height:ze}=this.getViewportSize();return{top:xe.top,left:xe.left,bottom:xe.top+ze,right:xe.left+Re,height:ze,width:Re}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const xe=this._document,Re=this._getWindow(),ze=xe.documentElement,Le=ze.getBoundingClientRect();return{top:-Le.top||xe.body.scrollTop||Re.scrollY||ze.scrollTop||0,left:-Le.left||xe.body.scrollLeft||Re.scrollX||ze.scrollLeft||0}}change(xe=20){return xe>0?this._change.pipe((0,Z.e)(xe)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const xe=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:xe.innerWidth,height:xe.innerHeight}:{width:0,height:0}}}return z.\u0275fac=function(xe){return new(xe||z)(t.LFG(ee.t4),t.LFG(t.R0b),t.LFG(ie.K0,8))},z.\u0275prov=t.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})(),U=(()=>{class z{}return z.\u0275fac=function(xe){return new(xe||z)},z.\u0275mod=t.oAB({type:z}),z.\u0275inj=t.cJS({}),z})(),N=(()=>{class z{}return z.\u0275fac=function(xe){return new(xe||z)},z.\u0275mod=t.oAB({type:z}),z.\u0275inj=t.cJS({imports:[[ve.vT,ee.ud,U],ve.vT,U]}),z})()},1555:(Ve,Q,m)=>{"use strict";m.d(Q,{be:()=>ee,KL:()=>P,u6:()=>w,B8:()=>ve,U5:()=>de,st:()=>he,po:()=>re,gx:()=>ie});var e=m(5664),t=m(3191),v=m(1159),C=m(9808),o=m(5e3),M=m(925),l=m(7579),R=m(9646),s=m(8675),L=m(2722),O=m(226);function A(le,se){1&le&&o.Hsn(0)}const E=["*"];let P=(()=>{class le{constructor(y){this._elementRef=y}focus(){this._elementRef.nativeElement.focus()}}return le.\u0275fac=function(y){return new(y||le)(o.Y36(o.SBq))},le.\u0275dir=o.lG2({type:le,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),le})(),w=(()=>{class le{constructor(y){this.template=y}}return le.\u0275fac=function(y){return new(y||le)(o.Y36(o.Rgc))},le.\u0275dir=o.lG2({type:le,selectors:[["","cdkStepLabel",""]]}),le})(),Z=0;const ie=new o.OlP("STEPPER_GLOBAL_OPTIONS");let ee=(()=>{class le{constructor(y,i){this._stepper=y,this.interacted=!1,this.interactedStream=new o.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=i||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(y){this._editable=(0,t.Ig)(y)}get optional(){return this._optional}set optional(y){this._optional=(0,t.Ig)(y)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(y){this._completedOverride=(0,t.Ig)(y)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(y){this._customError=(0,t.Ig)(y)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){var y;return null!==(y=this._stepperOptions.showError)&&void 0!==y?y:null!=this._customError}}return le.\u0275fac=function(y){return new(y||le)(o.Y36((0,o.Gpc)(()=>ve)),o.Y36(ie,8))},le.\u0275cmp=o.Xpm({type:le,selectors:[["cdk-step"]],contentQueries:function(y,i,a){if(1&y&&o.Suo(a,w,5),2&y){let p;o.iGM(p=o.CRH())&&(i.stepLabel=p.first)}},viewQuery:function(y,i){if(1&y&&o.Gf(o.Rgc,7),2&y){let a;o.iGM(a=o.CRH())&&(i.content=a.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[o.TTD],ngContentSelectors:E,decls:1,vars:0,template:function(y,i){1&y&&(o.F$t(),o.YNc(0,A,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),le})(),ve=(()=>{class le{constructor(y,i,a,p){this._dir=y,this._changeDetectorRef=i,this._elementRef=a,this._destroyed=new l.x,this.steps=new o.n_E,this._sortedHeaders=new o.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new o.vpe,this._orientation="horizontal",this._groupId=Z++}get linear(){return this._linear}set linear(y){this._linear=(0,t.Ig)(y)}get selectedIndex(){return this._selectedIndex}set selectedIndex(y){var i;const a=(0,t.su)(y);this.steps&&this._steps?(this._isValidIndex(y),null===(i=this.selected)||void 0===i||i._markAsInteracted(),this._selectedIndex!==a&&!this._anyControlsInvalidOrPending(a)&&(a>=this._selectedIndex||this.steps.toArray()[a].editable)&&this._updateSelectedItemIndex(y)):this._selectedIndex=a}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(y){this.selectedIndex=y&&this.steps?this.steps.toArray().indexOf(y):-1}get orientation(){return this._orientation}set orientation(y){this._orientation=y,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===y)}ngAfterContentInit(){this._steps.changes.pipe((0,s.O)(this._steps),(0,L.R)(this._destroyed)).subscribe(y=>{this.steps.reset(y.filter(i=>i._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,s.O)(this._stepHeader),(0,L.R)(this._destroyed)).subscribe(y=>{this._sortedHeaders.reset(y.toArray().sort((i,a)=>i._elementRef.nativeElement.compareDocumentPosition(a._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new e.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,R.of)()).pipe((0,s.O)(this._layoutDirection()),(0,L.R)(this._destroyed)).subscribe(y=>this._keyManager.withHorizontalOrientation(y)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){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(y=>y.reset()),this._stateChanged()}_getStepLabelId(y){return`cdk-step-label-${this._groupId}-${y}`}_getStepContentId(y){return`cdk-step-content-${this._groupId}-${y}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(y){const i=y-this._selectedIndex;return i<0?"rtl"===this._layoutDirection()?"next":"previous":i>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(y,i="number"){const a=this.steps.toArray()[y],p=this._isCurrentStep(y);return a._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(a,p):this._getGuidelineLogic(a,p,i)}_getDefaultIndicatorLogic(y,i){return y._showError()&&y.hasError&&!i?"error":!y.completed||i?"number":y.editable?"edit":"done"}_getGuidelineLogic(y,i,a="number"){return y._showError()&&y.hasError&&!i?"error":y.completed&&!i?"done":y.completed&&i?a:y.editable&&i?"edit":a}_isCurrentStep(y){return this._selectedIndex===y}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(y){const i=this.steps.toArray();this.selectionChange.emit({selectedIndex:y,previouslySelectedIndex:this._selectedIndex,selectedStep:i[y],previouslySelectedStep:i[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(y):this._keyManager.updateActiveItem(y),this._selectedIndex=y,this._stateChanged()}_onKeydown(y){const i=(0,v.Vb)(y),a=y.keyCode,p=this._keyManager;null==p.activeItemIndex||i||a!==v.L_&&a!==v.K5?p.onKeydown(y):(this.selectedIndex=p.activeItemIndex,y.preventDefault())}_anyControlsInvalidOrPending(y){return!!(this._linear&&y>=0)&&this.steps.toArray().slice(0,y).some(i=>{const a=i.stepControl;return(a?a.invalid||a.pending||!i.interacted:!i.completed)&&!i.optional&&!i._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const y=this._elementRef.nativeElement,i=(0,M.ht)();return y===i||y.contains(i)}_isValidIndex(y){return y>-1&&(!this.steps||y{class le{constructor(y){this._stepper=y,this.type="submit"}}return le.\u0275fac=function(y){return new(y||le)(o.Y36(ve))},le.\u0275dir=o.lG2({type:le,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(y,i){1&y&&o.NdJ("click",function(){return i._stepper.next()}),2&y&&o.Ikx("type",i.type)},inputs:{type:"type"}}),le})(),re=(()=>{class le{constructor(y){this._stepper=y,this.type="button"}}return le.\u0275fac=function(y){return new(y||le)(o.Y36(ve))},le.\u0275dir=o.lG2({type:le,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(y,i){1&y&&o.NdJ("click",function(){return i._stepper.previous()}),2&y&&o.Ikx("type",i.type)},inputs:{type:"type"}}),le})(),de=(()=>{class le{}return le.\u0275fac=function(y){return new(y||le)},le.\u0275mod=o.oAB({type:le}),le.\u0275inj=o.cJS({imports:[[O.vT]]}),le})()},8258:(Ve,Q,m)=>{"use strict";m.d(Q,{HI:()=>w,Xx:()=>i,_0:()=>de,nZ:()=>D,Hs:()=>le,rO:()=>W,cu:()=>Z,XJ:()=>p,Ud:()=>u,VY:()=>P});var e=m(449),t=m(5191),v=m(7579),C=m(1135),o=m(9646),M=m(5698),l=m(9300),R=m(2722),s=m(5e3),L=m(3191),O=m(226);class P extends class A{constructor(){this.expansionModel=new e.Ov(!0)}toggle(x){this.expansionModel.toggle(this._trackByValue(x))}expand(x){this.expansionModel.select(this._trackByValue(x))}collapse(x){this.expansionModel.deselect(this._trackByValue(x))}isExpanded(x){return this.expansionModel.isSelected(this._trackByValue(x))}toggleDescendants(x){this.expansionModel.isSelected(this._trackByValue(x))?this.collapseDescendants(x):this.expandDescendants(x)}collapseAll(){this.expansionModel.clear()}expandDescendants(x){let r=[x];r.push(...this.getDescendants(x)),this.expansionModel.select(...r.map(b=>this._trackByValue(b)))}collapseDescendants(x){let r=[x];r.push(...this.getDescendants(x)),this.expansionModel.deselect(...r.map(b=>this._trackByValue(b)))}_trackByValue(x){return this.trackBy?this.trackBy(x):x}}{constructor(x,r){super(),this.getChildren=x,this.options=r,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const x=this.dataNodes.reduce((r,b)=>[...r,...this.getDescendants(b),b],[]);this.expansionModel.select(...x.map(r=>this._trackByValue(r)))}getDescendants(x){const r=[];return this._getDescendants(r,x),r.splice(1)}_getDescendants(x,r){x.push(r);const b=this.getChildren(r);Array.isArray(b)?b.forEach(U=>this._getDescendants(x,U)):(0,t.b)(b)&&b.pipe((0,M.q)(1),(0,l.h)(Boolean)).subscribe(U=>{for(const N of U)this._getDescendants(x,N)})}}const w=new s.OlP("CDK_TREE_NODE_OUTLET_NODE");let Z=(()=>{class I{constructor(r,b){this.viewContainer=r,this._node=b}}return I.\u0275fac=function(r){return new(r||I)(s.Y36(s.s_b),s.Y36(w,8))},I.\u0275dir=s.lG2({type:I,selectors:[["","cdkTreeNodeOutlet",""]]}),I})();class j{constructor(x){this.$implicit=x}}let W=(()=>{class I{constructor(r){this.template=r}}return I.\u0275fac=function(r){return new(r||I)(s.Y36(s.Rgc))},I.\u0275dir=s.lG2({type:I,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),I})(),de=(()=>{class I{constructor(r,b){this._differs=r,this._changeDetectorRef=b,this._onDestroy=new v.x,this._levels=new Map,this.viewChange=new C.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(r){this._dataSource!==r&&this._switchDataSource(r)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),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)}ngAfterContentChecked(){const r=this._nodeDefs.filter(b=>!b.when);this._defaultNodeDef=r[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(r){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),r||this._nodeOutlet.viewContainer.clear(),this._dataSource=r,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let r;(0,e.Z9)(this._dataSource)?r=this._dataSource.connect(this):(0,t.b)(this._dataSource)?r=this._dataSource:Array.isArray(this._dataSource)&&(r=(0,o.of)(this._dataSource)),r&&(this._dataSubscription=r.pipe((0,R.R)(this._onDestroy)).subscribe(b=>this.renderNodeChanges(b)))}renderNodeChanges(r,b=this._dataDiffer,U=this._nodeOutlet.viewContainer,N){const z=b.diff(r);!z||(z.forEachOperation((be,xe,Re)=>{if(null==be.previousIndex)this.insertNode(r[Re],Re,U,N);else if(null==Re)U.remove(xe),this._levels.delete(be.item);else{const ze=U.get(xe);U.move(ze,Re)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(r,b){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(N=>N.when&&N.when(b,r))||this._defaultNodeDef}insertNode(r,b,U,N){const z=this._getNodeDef(r,b),be=new j(r);be.level=this.treeControl.getLevel?this.treeControl.getLevel(r):void 0!==N&&this._levels.has(N)?this._levels.get(N)+1:0,this._levels.set(r,be.level),(U||this._nodeOutlet.viewContainer).createEmbeddedView(z.template,be,b),le.mostRecentTreeNode&&(le.mostRecentTreeNode.data=r)}}return I.\u0275fac=function(r){return new(r||I)(s.Y36(s.ZZ4),s.Y36(s.sBO))},I.\u0275cmp=s.Xpm({type:I,selectors:[["cdk-tree"]],contentQueries:function(r,b,U){if(1&r&&s.Suo(U,W,5),2&r){let N;s.iGM(N=s.CRH())&&(b._nodeDefs=N)}},viewQuery:function(r,b){if(1&r&&s.Gf(Z,7),2&r){let U;s.iGM(U=s.CRH())&&(b._nodeOutlet=U.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(r,b){1&r&&s.GkF(0,0)},directives:[Z],encapsulation:2}),I})(),le=(()=>{class I{constructor(r,b){this._elementRef=r,this._tree=b,this._destroyed=new v.x,this._dataChanges=new v.x,I.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(r){this._elementRef.nativeElement.setAttribute("role",r)}get data(){return this._data}set data(r){r!==this._data&&(this._data=r,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function se(I){let x=I.parentElement;for(;x&&!y(x);)x=x.parentElement;return x?x.classList.contains("cdk-nested-tree-node")?(0,L.su)(x.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){I.mostRecentTreeNode===this&&(I.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return I.mostRecentTreeNode=null,I.\u0275fac=function(r){return new(r||I)(s.Y36(s.SBq),s.Y36(de))},I.\u0275dir=s.lG2({type:I,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(r,b){2&r&&s.uIk("aria-expanded",b.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),I})();function y(I){const x=I.classList;return!(!(null==x?void 0:x.contains("cdk-nested-tree-node"))&&!(null==x?void 0:x.contains("cdk-tree")))}let i=(()=>{class I extends le{constructor(r,b,U){super(r,b),this._differs=U}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const r=this._tree.treeControl.getChildren(this.data);Array.isArray(r)?this.updateChildrenNodes(r):(0,t.b)(r)&&r.pipe((0,R.R)(this._destroyed)).subscribe(b=>this.updateChildrenNodes(b)),this.nodeOutlet.changes.pipe((0,R.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(r){const b=this._getNodeOutlet();r&&(this._children=r),b&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,b.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const r=this._getNodeOutlet();r&&(r.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const r=this.nodeOutlet;return r&&r.find(b=>!b._node||b._node===this)}}return I.\u0275fac=function(r){return new(r||I)(s.Y36(s.SBq),s.Y36(de),s.Y36(s.ZZ4))},I.\u0275dir=s.lG2({type:I,selectors:[["cdk-nested-tree-node"]],contentQueries:function(r,b,U){if(1&r&&s.Suo(U,Z,5),2&r){let N;s.iGM(N=s.CRH())&&(b.nodeOutlet=N)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[s._Bn([{provide:le,useExisting:I},{provide:w,useExisting:I}]),s.qOj]}),I})();const a=/([A-Za-z%]+)$/;let p=(()=>{class I{constructor(r,b,U,N){this._treeNode=r,this._tree=b,this._element=U,this._dir=N,this._destroyed=new v.x,this.indentUnits="px",this._indent=40,this._setPadding(),N&&N.change.pipe((0,R.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),r._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(r){this._setLevelInput(r)}get indent(){return this._indent}set indent(r){this._setIndentInput(r)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const r=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,b=null==this._level?r:this._level;return"number"==typeof b?`${b*this._indent}${this.indentUnits}`:null}_setPadding(r=!1){const b=this._paddingIndent();if(b!==this._currentPadding||r){const U=this._element.nativeElement,N=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",z="paddingLeft"===N?"paddingRight":"paddingLeft";U.style[N]=b||"",U.style[z]="",this._currentPadding=b}}_setLevelInput(r){this._level=(0,L.su)(r,null),this._setPadding()}_setIndentInput(r){let b=r,U="px";if("string"==typeof r){const N=r.split(a);b=N[0],U=N[1]||U}this.indentUnits=U,this._indent=(0,L.su)(b),this._setPadding()}}return I.\u0275fac=function(r){return new(r||I)(s.Y36(le),s.Y36(de),s.Y36(s.SBq),s.Y36(O.Is,8))},I.\u0275dir=s.lG2({type:I,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),I})(),u=(()=>{class I{constructor(r,b){this._tree=r,this._treeNode=b,this._recursive=!1}get recursive(){return this._recursive}set recursive(r){this._recursive=(0,L.Ig)(r)}_toggle(r){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),r.stopPropagation()}}return I.\u0275fac=function(r){return new(r||I)(s.Y36(de),s.Y36(le))},I.\u0275dir=s.lG2({type:I,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(r,b){1&r&&s.NdJ("click",function(N){return b._toggle(N)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),I})(),D=(()=>{class I{}return I.\u0275fac=function(r){return new(r||I)},I.\u0275mod=s.oAB({type:I}),I.\u0275inj=s.cJS({}),I})()},9808:(Ve,Q,m)=>{"use strict";m.d(Q,{mr:()=>ie,Ov:()=>xr,ez:()=>wa,K0:()=>l,uU:()=>Ga,JJ:()=>Ba,Do:()=>ve,Ts:()=>Kn,Nd:()=>Qn,V_:()=>L,Ye:()=>he,S$:()=>j,i8:()=>hs,mk:()=>qi,sg:()=>gt,O5:()=>Ci,PC:()=>dn,RF:()=>Ln,n9:()=>_n,ED:()=>kn,tP:()=>Lr,b0:()=>ee,lw:()=>R,OU:()=>ga,rS:()=>pa,gd:()=>ma,EM:()=>ra,JF:()=>ja,NF:()=>ha,PM:()=>pr,w_:()=>M,bD:()=>Nr,q:()=>v,Mx:()=>Si,HT:()=>o});var e=m(5e3);let t=null;function v(){return t}function o(Xe){t||(t=Xe)}class M{}const l=new e.OlP("DocumentToken");let R=(()=>{class Xe{historyGo(J){throw new Error("Not implemented")}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275prov=e.Yz7({token:Xe,factory:function(){return function s(){return(0,e.LFG)(O)}()},providedIn:"platform"}),Xe})();const L=new e.OlP("Location Initialized");let O=(()=>{class Xe extends R{constructor(J){super(),this._doc=J,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return v().getBaseHref(this._doc)}onPopState(J){const ne=v().getGlobalEventTarget(this._doc,"window");return ne.addEventListener("popstate",J,!1),()=>ne.removeEventListener("popstate",J)}onHashChange(J){const ne=v().getGlobalEventTarget(this._doc,"window");return ne.addEventListener("hashchange",J,!1),()=>ne.removeEventListener("hashchange",J)}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(J){this.location.pathname=J}pushState(J,ne,Qe){A()?this._history.pushState(J,ne,Qe):this.location.hash=Qe}replaceState(J,ne,Qe){A()?this._history.replaceState(J,ne,Qe):this.location.hash=Qe}forward(){this._history.forward()}back(){this._history.back()}historyGo(J=0){this._history.go(J)}getState(){return this._history.state}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.LFG(l))},Xe.\u0275prov=e.Yz7({token:Xe,factory:function(){return function E(){return new O((0,e.LFG)(l))}()},providedIn:"platform"}),Xe})();function A(){return!!window.history.pushState}function P(Xe,_e){if(0==Xe.length)return _e;if(0==_e.length)return Xe;let J=0;return Xe.endsWith("/")&&J++,_e.startsWith("/")&&J++,2==J?Xe+_e.substring(1):1==J?Xe+_e:Xe+"/"+_e}function w(Xe){const _e=Xe.match(/#|\?|$/),J=_e&&_e.index||Xe.length;return Xe.slice(0,J-("/"===Xe[J-1]?1:0))+Xe.slice(J)}function Z(Xe){return Xe&&"?"!==Xe[0]?"?"+Xe:Xe}let j=(()=>{class Xe{historyGo(J){throw new Error("Not implemented")}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275prov=e.Yz7({token:Xe,factory:function(){return function W(Xe){const _e=(0,e.LFG)(l).location;return new ee((0,e.LFG)(R),_e&&_e.origin||"")}()},providedIn:"root"}),Xe})();const ie=new e.OlP("appBaseHref");let ee=(()=>{class Xe extends j{constructor(J,ne){if(super(),this._platformLocation=J,this._removeListenerFns=[],null==ne&&(ne=this._platformLocation.getBaseHrefFromDOM()),null==ne)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=ne}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(J){this._removeListenerFns.push(this._platformLocation.onPopState(J),this._platformLocation.onHashChange(J))}getBaseHref(){return this._baseHref}prepareExternalUrl(J){return P(this._baseHref,J)}path(J=!1){const ne=this._platformLocation.pathname+Z(this._platformLocation.search),Qe=this._platformLocation.hash;return Qe&&J?`${ne}${Qe}`:ne}pushState(J,ne,Qe,Wt){const mi=this.prepareExternalUrl(Qe+Z(Wt));this._platformLocation.pushState(J,ne,mi)}replaceState(J,ne,Qe,Wt){const mi=this.prepareExternalUrl(Qe+Z(Wt));this._platformLocation.replaceState(J,ne,mi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(J=0){var ne,Qe;null===(Qe=(ne=this._platformLocation).historyGo)||void 0===Qe||Qe.call(ne,J)}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.LFG(R),e.LFG(ie,8))},Xe.\u0275prov=e.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})(),ve=(()=>{class Xe extends j{constructor(J,ne){super(),this._platformLocation=J,this._baseHref="",this._removeListenerFns=[],null!=ne&&(this._baseHref=ne)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(J){this._removeListenerFns.push(this._platformLocation.onPopState(J),this._platformLocation.onHashChange(J))}getBaseHref(){return this._baseHref}path(J=!1){let ne=this._platformLocation.hash;return null==ne&&(ne="#"),ne.length>0?ne.substring(1):ne}prepareExternalUrl(J){const ne=P(this._baseHref,J);return ne.length>0?"#"+ne:ne}pushState(J,ne,Qe,Wt){let mi=this.prepareExternalUrl(Qe+Z(Wt));0==mi.length&&(mi=this._platformLocation.pathname),this._platformLocation.pushState(J,ne,mi)}replaceState(J,ne,Qe,Wt){let mi=this.prepareExternalUrl(Qe+Z(Wt));0==mi.length&&(mi=this._platformLocation.pathname),this._platformLocation.replaceState(J,ne,mi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(J=0){var ne,Qe;null===(Qe=(ne=this._platformLocation).historyGo)||void 0===Qe||Qe.call(ne,J)}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.LFG(R),e.LFG(ie,8))},Xe.\u0275prov=e.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})(),he=(()=>{class Xe{constructor(J,ne){this._subject=new e.vpe,this._urlChangeListeners=[],this._platformStrategy=J;const Qe=this._platformStrategy.getBaseHref();this._platformLocation=ne,this._baseHref=w(le(Qe)),this._platformStrategy.onPopState(Wt=>{this._subject.emit({url:this.path(!0),pop:!0,state:Wt.state,type:Wt.type})})}path(J=!1){return this.normalize(this._platformStrategy.path(J))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(J,ne=""){return this.path()==this.normalize(J+Z(ne))}normalize(J){return Xe.stripTrailingSlash(function de(Xe,_e){return Xe&&_e.startsWith(Xe)?_e.substring(Xe.length):_e}(this._baseHref,le(J)))}prepareExternalUrl(J){return J&&"/"!==J[0]&&(J="/"+J),this._platformStrategy.prepareExternalUrl(J)}go(J,ne="",Qe=null){this._platformStrategy.pushState(Qe,"",J,ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(J+Z(ne)),Qe)}replaceState(J,ne="",Qe=null){this._platformStrategy.replaceState(Qe,"",J,ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(J+Z(ne)),Qe)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(J=0){var ne,Qe;null===(Qe=(ne=this._platformStrategy).historyGo)||void 0===Qe||Qe.call(ne,J)}onUrlChange(J){this._urlChangeListeners.push(J),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(ne=>{this._notifyUrlChangeListeners(ne.url,ne.state)}))}_notifyUrlChangeListeners(J="",ne){this._urlChangeListeners.forEach(Qe=>Qe(J,ne))}subscribe(J,ne,Qe){return this._subject.subscribe({next:J,error:ne,complete:Qe})}}return Xe.normalizeQueryParams=Z,Xe.joinWithSlash=P,Xe.stripTrailingSlash=w,Xe.\u0275fac=function(J){return new(J||Xe)(e.LFG(j),e.LFG(R))},Xe.\u0275prov=e.Yz7({token:Xe,factory:function(){return function re(){return new he((0,e.LFG)(j),(0,e.LFG)(R))}()},providedIn:"root"}),Xe})();function le(Xe){return Xe.replace(/\/index.html$/,"")}var y=(()=>((y=y||{})[y.Decimal=0]="Decimal",y[y.Percent=1]="Percent",y[y.Currency=2]="Currency",y[y.Scientific=3]="Scientific",y))(),i=(()=>((i=i||{})[i.Zero=0]="Zero",i[i.One=1]="One",i[i.Two=2]="Two",i[i.Few=3]="Few",i[i.Many=4]="Many",i[i.Other=5]="Other",i))(),a=(()=>((a=a||{})[a.Format=0]="Format",a[a.Standalone=1]="Standalone",a))(),p=(()=>((p=p||{})[p.Narrow=0]="Narrow",p[p.Abbreviated=1]="Abbreviated",p[p.Wide=2]="Wide",p[p.Short=3]="Short",p))(),u=(()=>((u=u||{})[u.Short=0]="Short",u[u.Medium=1]="Medium",u[u.Long=2]="Long",u[u.Full=3]="Full",u))(),_=(()=>((_=_||{})[_.Decimal=0]="Decimal",_[_.Group=1]="Group",_[_.List=2]="List",_[_.PercentSign=3]="PercentSign",_[_.PlusSign=4]="PlusSign",_[_.MinusSign=5]="MinusSign",_[_.Exponential=6]="Exponential",_[_.SuperscriptingExponent=7]="SuperscriptingExponent",_[_.PerMille=8]="PerMille",_[_.Infinity=9]="Infinity",_[_.NaN=10]="NaN",_[_.TimeSeparator=11]="TimeSeparator",_[_.CurrencyDecimal=12]="CurrencyDecimal",_[_.CurrencyGroup=13]="CurrencyGroup",_))();function be(Xe,_e){return Oe((0,e.cg1)(Xe)[e.wAp.DateFormat],_e)}function xe(Xe,_e){return Oe((0,e.cg1)(Xe)[e.wAp.TimeFormat],_e)}function Re(Xe,_e){return Oe((0,e.cg1)(Xe)[e.wAp.DateTimeFormat],_e)}function ze(Xe,_e){const J=(0,e.cg1)(Xe),ne=J[e.wAp.NumberSymbols][_e];if(void 0===ne){if(_e===_.CurrencyDecimal)return J[e.wAp.NumberSymbols][_.Decimal];if(_e===_.CurrencyGroup)return J[e.wAp.NumberSymbols][_.Group]}return ne}const Ge=e.kL8;function vt(Xe){if(!Xe[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Xe[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Oe(Xe,_e){for(let J=_e;J>-1;J--)if(void 0!==Xe[J])return Xe[J];throw new Error("Locale data API: locale data undefined")}function Pe(Xe){const[_e,J]=Xe.split(":");return{hours:+_e,minutes:+J}}const Me=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ue={},lt=/((?:[^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]*)/;var nt=(()=>((nt=nt||{})[nt.Short=0]="Short",nt[nt.ShortGMT=1]="ShortGMT",nt[nt.Long=2]="Long",nt[nt.Extended=3]="Extended",nt))(),ft=(()=>((ft=ft||{})[ft.FullYear=0]="FullYear",ft[ft.Month=1]="Month",ft[ft.Date=2]="Date",ft[ft.Hours=3]="Hours",ft[ft.Minutes=4]="Minutes",ft[ft.Seconds=5]="Seconds",ft[ft.FractionalSeconds=6]="FractionalSeconds",ft[ft.Day=7]="Day",ft))(),it=(()=>((it=it||{})[it.DayPeriods=0]="DayPeriods",it[it.Days=1]="Days",it[it.Months=2]="Months",it[it.Eras=3]="Eras",it))();function rt(Xe,_e,J,ne){let Qe=function Be(Xe){if(st(Xe))return Xe;if("number"==typeof Xe&&!isNaN(Xe))return new Date(Xe);if("string"==typeof Xe){if(Xe=Xe.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Xe)){const[Qe,Wt=1,mi=1]=Xe.split("-").map(Ct=>+Ct);return Mt(Qe,Wt-1,mi)}const J=parseFloat(Xe);if(!isNaN(Xe-J))return new Date(J);let ne;if(ne=Xe.match(Me))return function at(Xe){const _e=new Date(0);let J=0,ne=0;const Qe=Xe[8]?_e.setUTCFullYear:_e.setFullYear,Wt=Xe[8]?_e.setUTCHours:_e.setHours;Xe[9]&&(J=Number(Xe[9]+Xe[10]),ne=Number(Xe[9]+Xe[11])),Qe.call(_e,Number(Xe[1]),Number(Xe[2])-1,Number(Xe[3]));const mi=Number(Xe[4]||0)-J,Ct=Number(Xe[5]||0)-ne,ti=Number(Xe[6]||0),bt=Math.floor(1e3*parseFloat("0."+(Xe[7]||0)));return Wt.call(_e,mi,Ct,ti,bt),_e}(ne)}const _e=new Date(Xe);if(!st(_e))throw new Error(`Unable to convert "${Xe}" into a date`);return _e}(Xe);_e=Zt(J,_e)||_e;let Ct,mi=[];for(;_e;){if(Ct=lt.exec(_e),!Ct){mi.push(_e);break}{mi=mi.concat(Ct.slice(1));const Yt=mi.pop();if(!Yt)break;_e=Yt}}let ti=Qe.getTimezoneOffset();ne&&(ti=Jt(ne,ti),Qe=function ke(Xe,_e,J){const ne=J?-1:1,Qe=Xe.getTimezoneOffset();return function ct(Xe,_e){return(Xe=new Date(Xe.getTime())).setMinutes(Xe.getMinutes()+_e),Xe}(Xe,ne*(Jt(_e,Qe)-Qe))}(Qe,ne,!0));let bt="";return mi.forEach(Yt=>{const xi=function Nt(Xe){if($t[Xe])return $t[Xe];let _e;switch(Xe){case"G":case"GG":case"GGG":_e=ki(it.Eras,p.Abbreviated);break;case"GGGG":_e=ki(it.Eras,p.Wide);break;case"GGGGG":_e=ki(it.Eras,p.Narrow);break;case"y":_e=jt(ft.FullYear,1,0,!1,!0);break;case"yy":_e=jt(ft.FullYear,2,0,!0,!0);break;case"yyy":_e=jt(ft.FullYear,3,0,!1,!0);break;case"yyyy":_e=jt(ft.FullYear,4,0,!1,!0);break;case"Y":_e=et(1);break;case"YY":_e=et(2,!0);break;case"YYY":_e=et(3);break;case"YYYY":_e=et(4);break;case"M":case"L":_e=jt(ft.Month,1,1);break;case"MM":case"LL":_e=jt(ft.Month,2,1);break;case"MMM":_e=ki(it.Months,p.Abbreviated);break;case"MMMM":_e=ki(it.Months,p.Wide);break;case"MMMMM":_e=ki(it.Months,p.Narrow);break;case"LLL":_e=ki(it.Months,p.Abbreviated,a.Standalone);break;case"LLLL":_e=ki(it.Months,p.Wide,a.Standalone);break;case"LLLLL":_e=ki(it.Months,p.Narrow,a.Standalone);break;case"w":_e=De(1);break;case"ww":_e=De(2);break;case"W":_e=De(1,!0);break;case"d":_e=jt(ft.Date,1);break;case"dd":_e=jt(ft.Date,2);break;case"c":case"cc":_e=jt(ft.Day,1);break;case"ccc":_e=ki(it.Days,p.Abbreviated,a.Standalone);break;case"cccc":_e=ki(it.Days,p.Wide,a.Standalone);break;case"ccccc":_e=ki(it.Days,p.Narrow,a.Standalone);break;case"cccccc":_e=ki(it.Days,p.Short,a.Standalone);break;case"E":case"EE":case"EEE":_e=ki(it.Days,p.Abbreviated);break;case"EEEE":_e=ki(it.Days,p.Wide);break;case"EEEEE":_e=ki(it.Days,p.Narrow);break;case"EEEEEE":_e=ki(it.Days,p.Short);break;case"a":case"aa":case"aaa":_e=ki(it.DayPeriods,p.Abbreviated);break;case"aaaa":_e=ki(it.DayPeriods,p.Wide);break;case"aaaaa":_e=ki(it.DayPeriods,p.Narrow);break;case"b":case"bb":case"bbb":_e=ki(it.DayPeriods,p.Abbreviated,a.Standalone,!0);break;case"bbbb":_e=ki(it.DayPeriods,p.Wide,a.Standalone,!0);break;case"bbbbb":_e=ki(it.DayPeriods,p.Narrow,a.Standalone,!0);break;case"B":case"BB":case"BBB":_e=ki(it.DayPeriods,p.Abbreviated,a.Format,!0);break;case"BBBB":_e=ki(it.DayPeriods,p.Wide,a.Format,!0);break;case"BBBBB":_e=ki(it.DayPeriods,p.Narrow,a.Format,!0);break;case"h":_e=jt(ft.Hours,1,-12);break;case"hh":_e=jt(ft.Hours,2,-12);break;case"H":_e=jt(ft.Hours,1);break;case"HH":_e=jt(ft.Hours,2);break;case"m":_e=jt(ft.Minutes,1);break;case"mm":_e=jt(ft.Minutes,2);break;case"s":_e=jt(ft.Seconds,1);break;case"ss":_e=jt(ft.Seconds,2);break;case"S":_e=jt(ft.FractionalSeconds,1);break;case"SS":_e=jt(ft.FractionalSeconds,2);break;case"SSS":_e=jt(ft.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":_e=hi(nt.Short);break;case"ZZZZZ":_e=hi(nt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":_e=hi(nt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":_e=hi(nt.Long);break;default:return null}return $t[Xe]=_e,_e}(Yt);bt+=xi?xi(Qe,J,ti):"''"===Yt?"'":Yt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),bt}function Mt(Xe,_e,J){const ne=new Date(0);return ne.setFullYear(Xe,_e,J),ne.setHours(0,0,0),ne}function Zt(Xe,_e){const J=function I(Xe){return(0,e.cg1)(Xe)[e.wAp.LocaleId]}(Xe);if(Ue[J]=Ue[J]||{},Ue[J][_e])return Ue[J][_e];let ne="";switch(_e){case"shortDate":ne=be(Xe,u.Short);break;case"mediumDate":ne=be(Xe,u.Medium);break;case"longDate":ne=be(Xe,u.Long);break;case"fullDate":ne=be(Xe,u.Full);break;case"shortTime":ne=xe(Xe,u.Short);break;case"mediumTime":ne=xe(Xe,u.Medium);break;case"longTime":ne=xe(Xe,u.Long);break;case"fullTime":ne=xe(Xe,u.Full);break;case"short":const Qe=Zt(Xe,"shortTime"),Wt=Zt(Xe,"shortDate");ne=Ft(Re(Xe,u.Short),[Qe,Wt]);break;case"medium":const mi=Zt(Xe,"mediumTime"),Ct=Zt(Xe,"mediumDate");ne=Ft(Re(Xe,u.Medium),[mi,Ct]);break;case"long":const ti=Zt(Xe,"longTime"),bt=Zt(Xe,"longDate");ne=Ft(Re(Xe,u.Long),[ti,bt]);break;case"full":const Yt=Zt(Xe,"fullTime"),xi=Zt(Xe,"fullDate");ne=Ft(Re(Xe,u.Full),[Yt,xi])}return ne&&(Ue[J][_e]=ne),ne}function Ft(Xe,_e){return _e&&(Xe=Xe.replace(/\{([^}]+)}/g,function(J,ne){return null!=_e&&ne in _e?_e[ne]:J})),Xe}function Vt(Xe,_e,J="-",ne,Qe){let Wt="";(Xe<0||Qe&&Xe<=0)&&(Qe?Xe=1-Xe:(Xe=-Xe,Wt=J));let mi=String(Xe);for(;mi.length<_e;)mi="0"+mi;return ne&&(mi=mi.substr(mi.length-_e)),Wt+mi}function jt(Xe,_e,J=0,ne=!1,Qe=!1){return function(Wt,mi){let Ct=function ei(Xe,_e){switch(Xe){case ft.FullYear:return _e.getFullYear();case ft.Month:return _e.getMonth();case ft.Date:return _e.getDate();case ft.Hours:return _e.getHours();case ft.Minutes:return _e.getMinutes();case ft.Seconds:return _e.getSeconds();case ft.FractionalSeconds:return _e.getMilliseconds();case ft.Day:return _e.getDay();default:throw new Error(`Unknown DateType value "${Xe}".`)}}(Xe,Wt);if((J>0||Ct>-J)&&(Ct+=J),Xe===ft.Hours)0===Ct&&-12===J&&(Ct=12);else if(Xe===ft.FractionalSeconds)return function Ii(Xe,_e){return Vt(Xe,3).substr(0,_e)}(Ct,_e);const ti=ze(mi,_.MinusSign);return Vt(Ct,_e,ti,ne,Qe)}}function ki(Xe,_e,J=a.Format,ne=!1){return function(Qe,Wt){return function ai(Xe,_e,J,ne,Qe,Wt){switch(J){case it.Months:return function b(Xe,_e,J){const ne=(0,e.cg1)(Xe),Wt=Oe([ne[e.wAp.MonthsFormat],ne[e.wAp.MonthsStandalone]],_e);return Oe(Wt,J)}(_e,Qe,ne)[Xe.getMonth()];case it.Days:return function r(Xe,_e,J){const ne=(0,e.cg1)(Xe),Wt=Oe([ne[e.wAp.DaysFormat],ne[e.wAp.DaysStandalone]],_e);return Oe(Wt,J)}(_e,Qe,ne)[Xe.getDay()];case it.DayPeriods:const mi=Xe.getHours(),Ct=Xe.getMinutes();if(Wt){const bt=function Fe(Xe){const _e=(0,e.cg1)(Xe);return vt(_e),(_e[e.wAp.ExtraData][2]||[]).map(ne=>"string"==typeof ne?Pe(ne):[Pe(ne[0]),Pe(ne[1])])}(_e),Yt=function Ne(Xe,_e,J){const ne=(0,e.cg1)(Xe);vt(ne);const Wt=Oe([ne[e.wAp.ExtraData][0],ne[e.wAp.ExtraData][1]],_e)||[];return Oe(Wt,J)||[]}(_e,Qe,ne),xi=bt.findIndex(Bi=>{if(Array.isArray(Bi)){const[yn,An]=Bi,Wi=mi>=yn.hours&&Ct>=yn.minutes,Cr=mi0?Math.floor(Qe/60):Math.ceil(Qe/60);switch(Xe){case nt.Short:return(Qe>=0?"+":"")+Vt(mi,2,Wt)+Vt(Math.abs(Qe%60),2,Wt);case nt.ShortGMT:return"GMT"+(Qe>=0?"+":"")+Vt(mi,1,Wt);case nt.Long:return"GMT"+(Qe>=0?"+":"")+Vt(mi,2,Wt)+":"+Vt(Math.abs(Qe%60),2,Wt);case nt.Extended:return 0===ne?"Z":(Qe>=0?"+":"")+Vt(mi,2,Wt)+":"+Vt(Math.abs(Qe%60),2,Wt);default:throw new Error(`Unknown zone width "${Xe}"`)}}}function ge(Xe){return Mt(Xe.getFullYear(),Xe.getMonth(),Xe.getDate()+(4-Xe.getDay()))}function De(Xe,_e=!1){return function(J,ne){let Qe;if(_e){const Wt=new Date(J.getFullYear(),J.getMonth(),1).getDay()-1,mi=J.getDate();Qe=1+Math.floor((mi+Wt)/7)}else{const Wt=ge(J),mi=function G(Xe){const _e=Mt(Xe,0,1).getDay();return Mt(Xe,0,1+(_e<=4?4:11)-_e)}(Wt.getFullYear()),Ct=Wt.getTime()-mi.getTime();Qe=1+Math.round(Ct/6048e5)}return Vt(Qe,Xe,ze(ne,_.MinusSign))}}function et(Xe,_e=!1){return function(J,ne){return Vt(ge(J).getFullYear(),Xe,ze(ne,_.MinusSign),_e)}}const $t={};function Jt(Xe,_e){Xe=Xe.replace(/:/g,"");const J=Date.parse("Jan 01, 1970 00:00:00 "+Xe)/6e4;return isNaN(J)?_e:J}function st(Xe){return Xe instanceof Date&&!isNaN(Xe.valueOf())}const At=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Je(Xe){const _e=parseInt(Xe);if(isNaN(_e))throw new Error("Invalid integer literal when parsing "+Xe);return _e}class St{}let yi=(()=>{class Xe extends St{constructor(J){super(),this.locale=J}getPluralCategory(J,ne){switch(Ge(ne||this.locale)(J)){case i.Zero:return"zero";case i.One:return"one";case i.Two:return"two";case i.Few:return"few";case i.Many:return"many";default:return"other"}}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.LFG(e.soG))},Xe.\u0275prov=e.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})();function Si(Xe,_e){_e=encodeURIComponent(_e);for(const J of Xe.split(";")){const ne=J.indexOf("="),[Qe,Wt]=-1==ne?[J,""]:[J.slice(0,ne),J.slice(ne+1)];if(Qe.trim()===_e)return decodeURIComponent(Wt)}return null}let qi=(()=>{class Xe{constructor(J,ne,Qe,Wt){this._iterableDiffers=J,this._keyValueDiffers=ne,this._ngEl=Qe,this._renderer=Wt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(J){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof J?J.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(J){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof J?J.split(/\s+/):J,this._rawClass&&((0,e.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const J=this._iterableDiffer.diff(this._rawClass);J&&this._applyIterableChanges(J)}else if(this._keyValueDiffer){const J=this._keyValueDiffer.diff(this._rawClass);J&&this._applyKeyValueChanges(J)}}_applyKeyValueChanges(J){J.forEachAddedItem(ne=>this._toggleClass(ne.key,ne.currentValue)),J.forEachChangedItem(ne=>this._toggleClass(ne.key,ne.currentValue)),J.forEachRemovedItem(ne=>{ne.previousValue&&this._toggleClass(ne.key,!1)})}_applyIterableChanges(J){J.forEachAddedItem(ne=>{if("string"!=typeof ne.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,e.AaK)(ne.item)}`);this._toggleClass(ne.item,!0)}),J.forEachRemovedItem(ne=>this._toggleClass(ne.item,!1))}_applyClasses(J){J&&(Array.isArray(J)||J instanceof Set?J.forEach(ne=>this._toggleClass(ne,!0)):Object.keys(J).forEach(ne=>this._toggleClass(ne,!!J[ne])))}_removeClasses(J){J&&(Array.isArray(J)||J instanceof Set?J.forEach(ne=>this._toggleClass(ne,!1)):Object.keys(J).forEach(ne=>this._toggleClass(ne,!1)))}_toggleClass(J,ne){(J=J.trim())&&J.split(/\s+/g).forEach(Qe=>{ne?this._renderer.addClass(this._ngEl.nativeElement,Qe):this._renderer.removeClass(this._ngEl.nativeElement,Qe)})}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),Xe})();class Kt{constructor(_e,J,ne,Qe){this.$implicit=_e,this.ngForOf=J,this.index=ne,this.count=Qe}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 gt=(()=>{class Xe{constructor(J,ne,Qe){this._viewContainer=J,this._template=ne,this._differs=Qe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(J){this._ngForOf=J,this._ngForOfDirty=!0}set ngForTrackBy(J){this._trackByFn=J}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(J){J&&(this._template=J)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const J=this._ngForOf;if(!this._differ&&J)try{this._differ=this._differs.find(J).create(this.ngForTrackBy)}catch(ne){throw new Error(`Cannot find a differ supporting object '${J}' of type '${function ui(Xe){return Xe.name||typeof Xe}(J)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const J=this._differ.diff(this._ngForOf);J&&this._applyChanges(J)}}_applyChanges(J){const ne=[];J.forEachOperation((Qe,Wt,mi)=>{if(null==Qe.previousIndex){const Ct=this._viewContainer.createEmbeddedView(this._template,new Kt(null,this._ngForOf,-1,-1),null===mi?void 0:mi),ti=new Lt(Qe,Ct);ne.push(ti)}else if(null==mi)this._viewContainer.remove(null===Wt?void 0:Wt);else if(null!==Wt){const Ct=this._viewContainer.get(Wt);this._viewContainer.move(Ct,mi);const ti=new Lt(Qe,Ct);ne.push(ti)}});for(let Qe=0;Qe{this._viewContainer.get(Qe.currentIndex).context.$implicit=Qe.item})}_perViewChange(J,ne){J.context.$implicit=ne.item}static ngTemplateContextGuard(J,ne){return!0}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),Xe})();class Lt{constructor(_e,J){this.record=_e,this.view=J}}let Ci=(()=>{class Xe{constructor(J,ne){this._viewContainer=J,this._context=new Yi,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ne}set ngIf(J){this._context.$implicit=this._context.ngIf=J,this._updateView()}set ngIfThen(J){$i("ngIfThen",J),this._thenTemplateRef=J,this._thenViewRef=null,this._updateView()}set ngIfElse(J){$i("ngIfElse",J),this._elseTemplateRef=J,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 ngTemplateContextGuard(J,ne){return!0}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.s_b),e.Y36(e.Rgc))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),Xe})();class Yi{constructor(){this.$implicit=null,this.ngIf=null}}function $i(Xe,_e){if(_e&&!_e.createEmbeddedView)throw new Error(`${Xe} must be a TemplateRef, but received '${(0,e.AaK)(_e)}'.`)}class Cn{constructor(_e,J){this._viewContainerRef=_e,this._templateRef=J,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(_e){_e&&!this._created?this.create():!_e&&this._created&&this.destroy()}}let Ln=(()=>{class Xe{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(J){this._ngSwitch=J,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(J){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(J)}_matchCase(J){const ne=J==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||ne,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),ne}_updateDefaultCases(J){if(this._defaultViews&&J!==this._defaultUsed){this._defaultUsed=J;for(let ne=0;ne{class Xe{constructor(J,ne,Qe){this.ngSwitch=Qe,Qe._addCase(),this._view=new Cn(J,ne)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Ln,9))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),Xe})(),kn=(()=>{class Xe{constructor(J,ne,Qe){Qe._addDefault(new Cn(J,ne))}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Ln,9))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngSwitchDefault",""]]}),Xe})(),dn=(()=>{class Xe{constructor(J,ne,Qe){this._ngEl=J,this._differs=ne,this._renderer=Qe,this._ngStyle=null,this._differ=null}set ngStyle(J){this._ngStyle=J,!this._differ&&J&&(this._differ=this._differs.find(J).create())}ngDoCheck(){if(this._differ){const J=this._differ.diff(this._ngStyle);J&&this._applyChanges(J)}}_setStyle(J,ne){const[Qe,Wt]=J.split(".");null!=(ne=null!=ne&&Wt?`${ne}${Wt}`:ne)?this._renderer.setStyle(this._ngEl.nativeElement,Qe,ne):this._renderer.removeStyle(this._ngEl.nativeElement,Qe)}_applyChanges(J){J.forEachRemovedItem(ne=>this._setStyle(ne.key,null)),J.forEachAddedItem(ne=>this._setStyle(ne.key,ne.currentValue)),J.forEachChangedItem(ne=>this._setStyle(ne.key,ne.currentValue))}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),Xe})(),Lr=(()=>{class Xe{constructor(J){this._viewContainerRef=J,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(J){if(J.ngTemplateOutlet){const ne=this._viewContainerRef;this._viewRef&&ne.remove(ne.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?ne.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&J.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.s_b))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[e.TTD]}),Xe})();function Gn(Xe,_e){return Error(`InvalidPipeArgument: '${_e}' for pipe '${(0,e.AaK)(Xe)}'`)}class Or{createSubscription(_e,J){return _e.subscribe({next:J,error:ne=>{throw ne}})}dispose(_e){_e.unsubscribe()}onDestroy(_e){_e.unsubscribe()}}class Ra{createSubscription(_e,J){return _e.then(J,ne=>{throw ne})}dispose(_e){}onDestroy(_e){}}const Ma=new Ra,Fa=new Or;let xr=(()=>{class Xe{constructor(J){this._ref=J,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(J){return this._obj?J!==this._obj?(this._dispose(),this.transform(J)):this._latestValue:(J&&this._subscribe(J),this._latestValue)}_subscribe(J){this._obj=J,this._strategy=this._selectStrategy(J),this._subscription=this._strategy.createSubscription(J,ne=>this._updateLatestValue(J,ne))}_selectStrategy(J){if((0,e.QGY)(J))return Ma;if((0,e.F4k)(J))return Fa;throw Gn(Xe,J)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(J,ne){J===this._obj&&(this._latestValue=ne,this._ref.markForCheck())}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.sBO,16))},Xe.\u0275pipe=e.Yjl({name:"async",type:Xe,pure:!1}),Xe})(),hs=(()=>{class Xe{transform(J){if(null==J)return null;if("string"!=typeof J)throw Gn(Xe,J);return J.toLowerCase()}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275pipe=e.Yjl({name:"lowercase",type:Xe,pure:!0}),Xe})();const ur=/(?:[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 pa=(()=>{class Xe{transform(J){if(null==J)return null;if("string"!=typeof J)throw Gn(Xe,J);return J.replace(ur,ne=>ne[0].toUpperCase()+ne.substr(1).toLowerCase())}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275pipe=e.Yjl({name:"titlecase",type:Xe,pure:!0}),Xe})(),ma=(()=>{class Xe{transform(J){if(null==J)return null;if("string"!=typeof J)throw Gn(Xe,J);return J.toUpperCase()}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275pipe=e.Yjl({name:"uppercase",type:Xe,pure:!0}),Xe})();const Ir=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Ga=(()=>{class Xe{constructor(J,ne){this.locale=J,this.defaultTimezone=ne}transform(J,ne="mediumDate",Qe,Wt){var mi;if(null==J||""===J||J!=J)return null;try{return rt(J,ne,Wt||this.locale,null!==(mi=null!=Qe?Qe:this.defaultTimezone)&&void 0!==mi?mi:void 0)}catch(Ct){throw Gn(Xe,Ct.message)}}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.soG,16),e.Y36(Ir,24))},Xe.\u0275pipe=e.Yjl({name:"date",type:Xe,pure:!0}),Xe})(),Kn=(()=>{class Xe{transform(J){return JSON.stringify(J,null,2)}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275pipe=e.Yjl({name:"json",type:Xe,pure:!1}),Xe})(),Qn=(()=>{class Xe{constructor(J){this.differs=J,this.keyValues=[],this.compareFn=Tr}transform(J,ne=Tr){if(!J||!(J instanceof Map)&&"object"!=typeof J)return null;this.differ||(this.differ=this.differs.find(J).create());const Qe=this.differ.diff(J),Wt=ne!==this.compareFn;return Qe&&(this.keyValues=[],Qe.forEachItem(mi=>{this.keyValues.push(function vn(Xe,_e){return{key:Xe,value:_e}}(mi.key,mi.currentValue))})),(Qe||Wt)&&(this.keyValues.sort(ne),this.compareFn=ne),this.keyValues}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.aQg,16))},Xe.\u0275pipe=e.Yjl({name:"keyvalue",type:Xe,pure:!1}),Xe})();function Tr(Xe,_e){const J=Xe.key,ne=_e.key;if(J===ne)return 0;if(void 0===J)return 1;if(void 0===ne)return-1;if(null===J)return 1;if(null===ne)return-1;if("string"==typeof J&&"string"==typeof ne)return J{class Xe{constructor(J){this._locale=J}transform(J,ne,Qe){if(!function la(Xe){return!(null==Xe||""===Xe||Xe!=Xe)}(J))return null;Qe=Qe||this._locale;try{return function _t(Xe,_e,J){return function Di(Xe,_e,J,ne,Qe,Wt,mi=!1){let Ct="",ti=!1;if(isFinite(Xe)){let bt=function yt(Xe){let ne,Qe,Wt,mi,Ct,_e=Math.abs(Xe)+"",J=0;for((Qe=_e.indexOf("."))>-1&&(_e=_e.replace(".","")),(Wt=_e.search(/e/i))>0?(Qe<0&&(Qe=Wt),Qe+=+_e.slice(Wt+1),_e=_e.substring(0,Wt)):Qe<0&&(Qe=_e.length),Wt=0;"0"===_e.charAt(Wt);Wt++);if(Wt===(Ct=_e.length))ne=[0],Qe=1;else{for(Ct--;"0"===_e.charAt(Ct);)Ct--;for(Qe-=Wt,ne=[],mi=0;Wt<=Ct;Wt++,mi++)ne[mi]=Number(_e.charAt(Wt))}return Qe>22&&(ne=ne.splice(0,21),J=Qe-1,Qe=1),{digits:ne,exponent:J,integerLen:Qe}}(Xe);mi&&(bt=function qe(Xe){if(0===Xe.digits[0])return Xe;const _e=Xe.digits.length-Xe.integerLen;return Xe.exponent?Xe.exponent+=2:(0===_e?Xe.digits.push(0,0):1===_e&&Xe.digits.push(0),Xe.integerLen+=2),Xe}(bt));let Yt=_e.minInt,xi=_e.minFrac,Bi=_e.maxFrac;if(Wt){const Rn=Wt.match(At);if(null===Rn)throw new Error(`${Wt} is not a valid digit info`);const _a=Rn[1],Mr=Rn[3],ds=Rn[5];null!=_a&&(Yt=Je(_a)),null!=Mr&&(xi=Je(Mr)),null!=ds?Bi=Je(ds):null!=Mr&&xi>Bi&&(Bi=xi)}!function pe(Xe,_e,J){if(_e>J)throw new Error(`The minimum number of digits after fraction (${_e}) is higher than the maximum (${J}).`);let ne=Xe.digits,Qe=ne.length-Xe.integerLen;const Wt=Math.min(Math.max(_e,Qe),J);let mi=Wt+Xe.integerLen,Ct=ne[mi];if(mi>0){ne.splice(Math.max(Xe.integerLen,mi));for(let xi=mi;xi=5)if(mi-1<0){for(let xi=0;xi>mi;xi--)ne.unshift(0),Xe.integerLen++;ne.unshift(1),Xe.integerLen++}else ne[mi-1]++;for(;Qe=bt?An.pop():ti=!1),Bi>=10?1:0},0);Yt&&(ne.unshift(Yt),Xe.integerLen++)}(bt,xi,Bi);let yn=bt.digits,An=bt.integerLen;const Wi=bt.exponent;let Cr=[];for(ti=yn.every(Rn=>!Rn);An0?Cr=yn.splice(An,yn.length):(Cr=yn,yn=[0]);const Un=[];for(yn.length>=_e.lgSize&&Un.unshift(yn.splice(-_e.lgSize,yn.length).join(""));yn.length>_e.gSize;)Un.unshift(yn.splice(-_e.gSize,yn.length).join(""));yn.length&&Un.unshift(yn.join("")),Ct=Un.join(ze(J,ne)),Cr.length&&(Ct+=ze(J,Qe)+Cr.join("")),Wi&&(Ct+=ze(J,_.Exponential)+"+"+Wi)}else Ct=ze(J,_.Infinity);return Ct=Xe<0&&!ti?_e.negPre+Ct+_e.negSuf:_e.posPre+Ct+_e.posSuf,Ct}(Xe,function ye(Xe,_e="-"){const J={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},ne=Xe.split(";"),Qe=ne[0],Wt=ne[1],mi=-1!==Qe.indexOf(".")?Qe.split("."):[Qe.substring(0,Qe.lastIndexOf("0")+1),Qe.substring(Qe.lastIndexOf("0")+1)],Ct=mi[0],ti=mi[1]||"";J.posPre=Ct.substr(0,Ct.indexOf("#"));for(let Yt=0;Yt{class Xe{transform(J,ne,Qe){if(null==J)return null;if(!this.supports(J))throw Gn(Xe,J);return J.slice(ne,Qe)}supports(J){return"string"==typeof J||Array.isArray(J)}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275pipe=e.Yjl({name:"slice",type:Xe,pure:!1}),Xe})(),wa=(()=>{class Xe{}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275mod=e.oAB({type:Xe}),Xe.\u0275inj=e.cJS({providers:[{provide:St,useClass:yi}]}),Xe})();const Nr="browser";function ha(Xe){return Xe===Nr}function pr(Xe){return"server"===Xe}let ra=(()=>{class Xe{}return Xe.\u0275prov=(0,e.Yz7)({token:Xe,providedIn:"root",factory:()=>new Gr((0,e.LFG)(l),window)}),Xe})();class Gr{constructor(_e,J){this.document=_e,this.window=J,this.offset=()=>[0,0]}setOffset(_e){this.offset=Array.isArray(_e)?()=>_e:_e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(_e){this.supportsScrolling()&&this.window.scrollTo(_e[0],_e[1])}scrollToAnchor(_e){if(!this.supportsScrolling())return;const J=function Zn(Xe,_e){const J=Xe.getElementById(_e)||Xe.getElementsByName(_e)[0];if(J)return J;if("function"==typeof Xe.createTreeWalker&&Xe.body&&(Xe.body.createShadowRoot||Xe.body.attachShadow)){const ne=Xe.createTreeWalker(Xe.body,NodeFilter.SHOW_ELEMENT);let Qe=ne.currentNode;for(;Qe;){const Wt=Qe.shadowRoot;if(Wt){const mi=Wt.getElementById(_e)||Wt.querySelector(`[name="${_e}"]`);if(mi)return mi}Qe=ne.nextNode()}}return null}(this.document,_e);J&&(this.scrollToElement(J),this.attemptFocus(J))}setHistoryScrollRestoration(_e){if(this.supportScrollRestoration()){const J=this.window.history;J&&J.scrollRestoration&&(J.scrollRestoration=_e)}}scrollToElement(_e){const J=_e.getBoundingClientRect(),ne=J.left+this.window.pageXOffset,Qe=J.top+this.window.pageYOffset,Wt=this.offset();this.window.scrollTo(ne-Wt[0],Qe-Wt[1])}attemptFocus(_e){return _e.focus(),this.document.activeElement===_e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const _e=Ha(this.window.history)||Ha(Object.getPrototypeOf(this.window.history));return!(!_e||!_e.writable&&!_e.set)}catch(_e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(_e){return!1}}}function Ha(Xe){return Object.getOwnPropertyDescriptor(Xe,"scrollRestoration")}class ja{}},8138:(Ve,Q,m)=>{"use strict";m.d(Q,{TP:()=>I,eN:()=>_,JF:()=>Oe,LE:()=>j});var e=m(9808),t=m(5e3),v=m(9646),C=m(8306),o=m(4351),M=m(9300),l=m(4004);class R{}class s{}class L{constructor(ce){this.normalizedNames=new Map,this.lazyUpdate=null,ce?this.lazyInit="string"==typeof ce?()=>{this.headers=new Map,ce.split("\n").forEach(Me=>{const Ue=Me.indexOf(":");if(Ue>0){const lt=Me.slice(0,Ue),nt=lt.toLowerCase(),ft=Me.slice(Ue+1).trim();this.maybeSetNormalizedName(lt,nt),this.headers.has(nt)?this.headers.get(nt).push(ft):this.headers.set(nt,[ft])}})}:()=>{this.headers=new Map,Object.keys(ce).forEach(Me=>{let Ue=ce[Me];const lt=Me.toLowerCase();"string"==typeof Ue&&(Ue=[Ue]),Ue.length>0&&(this.headers.set(lt,Ue),this.maybeSetNormalizedName(Me,lt))})}:this.headers=new Map}has(ce){return this.init(),this.headers.has(ce.toLowerCase())}get(ce){this.init();const Me=this.headers.get(ce.toLowerCase());return Me&&Me.length>0?Me[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ce){return this.init(),this.headers.get(ce.toLowerCase())||null}append(ce,Me){return this.clone({name:ce,value:Me,op:"a"})}set(ce,Me){return this.clone({name:ce,value:Me,op:"s"})}delete(ce,Me){return this.clone({name:ce,value:Me,op:"d"})}maybeSetNormalizedName(ce,Me){this.normalizedNames.has(Me)||this.normalizedNames.set(Me,ce)}init(){this.lazyInit&&(this.lazyInit instanceof L?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ce=>this.applyUpdate(ce)),this.lazyUpdate=null))}copyFrom(ce){ce.init(),Array.from(ce.headers.keys()).forEach(Me=>{this.headers.set(Me,ce.headers.get(Me)),this.normalizedNames.set(Me,ce.normalizedNames.get(Me))})}clone(ce){const Me=new L;return Me.lazyInit=this.lazyInit&&this.lazyInit instanceof L?this.lazyInit:this,Me.lazyUpdate=(this.lazyUpdate||[]).concat([ce]),Me}applyUpdate(ce){const Me=ce.name.toLowerCase();switch(ce.op){case"a":case"s":let Ue=ce.value;if("string"==typeof Ue&&(Ue=[Ue]),0===Ue.length)return;this.maybeSetNormalizedName(ce.name,Me);const lt=("a"===ce.op?this.headers.get(Me):void 0)||[];lt.push(...Ue),this.headers.set(Me,lt);break;case"d":const nt=ce.value;if(nt){let ft=this.headers.get(Me);if(!ft)return;ft=ft.filter(it=>-1===nt.indexOf(it)),0===ft.length?(this.headers.delete(Me),this.normalizedNames.delete(Me)):this.headers.set(Me,ft)}else this.headers.delete(Me),this.normalizedNames.delete(Me)}}forEach(ce){this.init(),Array.from(this.normalizedNames.keys()).forEach(Me=>ce(this.normalizedNames.get(Me),this.headers.get(Me)))}}class O{encodeKey(ce){return w(ce)}encodeValue(ce){return w(ce)}decodeKey(ce){return decodeURIComponent(ce)}decodeValue(ce){return decodeURIComponent(ce)}}const E=/%(\d[a-f0-9])/gi,P={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function w($){return encodeURIComponent($).replace(E,(ce,Me)=>{var Ue;return null!==(Ue=P[Me])&&void 0!==Ue?Ue:ce})}function Z($){return`${$}`}class j{constructor(ce={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ce.encoder||new O,ce.fromString){if(ce.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function A($,ce){const Me=new Map;return $.length>0&&$.replace(/^\?/,"").split("&").forEach(lt=>{const nt=lt.indexOf("="),[ft,it]=-1==nt?[ce.decodeKey(lt),""]:[ce.decodeKey(lt.slice(0,nt)),ce.decodeValue(lt.slice(nt+1))],rt=Me.get(ft)||[];rt.push(it),Me.set(ft,rt)}),Me}(ce.fromString,this.encoder)}else ce.fromObject?(this.map=new Map,Object.keys(ce.fromObject).forEach(Me=>{const Ue=ce.fromObject[Me];this.map.set(Me,Array.isArray(Ue)?Ue:[Ue])})):this.map=null}has(ce){return this.init(),this.map.has(ce)}get(ce){this.init();const Me=this.map.get(ce);return Me?Me[0]:null}getAll(ce){return this.init(),this.map.get(ce)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ce,Me){return this.clone({param:ce,value:Me,op:"a"})}appendAll(ce){const Me=[];return Object.keys(ce).forEach(Ue=>{const lt=ce[Ue];Array.isArray(lt)?lt.forEach(nt=>{Me.push({param:Ue,value:nt,op:"a"})}):Me.push({param:Ue,value:lt,op:"a"})}),this.clone(Me)}set(ce,Me){return this.clone({param:ce,value:Me,op:"s"})}delete(ce,Me){return this.clone({param:ce,value:Me,op:"d"})}toString(){return this.init(),this.keys().map(ce=>{const Me=this.encoder.encodeKey(ce);return this.map.get(ce).map(Ue=>Me+"="+this.encoder.encodeValue(Ue)).join("&")}).filter(ce=>""!==ce).join("&")}clone(ce){const Me=new j({encoder:this.encoder});return Me.cloneFrom=this.cloneFrom||this,Me.updates=(this.updates||[]).concat(ce),Me}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ce=>this.map.set(ce,this.cloneFrom.map.get(ce))),this.updates.forEach(ce=>{switch(ce.op){case"a":case"s":const Me=("a"===ce.op?this.map.get(ce.param):void 0)||[];Me.push(Z(ce.value)),this.map.set(ce.param,Me);break;case"d":if(void 0===ce.value){this.map.delete(ce.param);break}{let Ue=this.map.get(ce.param)||[];const lt=Ue.indexOf(Z(ce.value));-1!==lt&&Ue.splice(lt,1),Ue.length>0?this.map.set(ce.param,Ue):this.map.delete(ce.param)}}}),this.cloneFrom=this.updates=null)}}class ie{constructor(){this.map=new Map}set(ce,Me){return this.map.set(ce,Me),this}get(ce){return this.map.has(ce)||this.map.set(ce,ce.defaultValue()),this.map.get(ce)}delete(ce){return this.map.delete(ce),this}keys(){return this.map.keys()}}function ve($){return"undefined"!=typeof ArrayBuffer&&$ instanceof ArrayBuffer}function he($){return"undefined"!=typeof Blob&&$ instanceof Blob}function re($){return"undefined"!=typeof FormData&&$ instanceof FormData}class le{constructor(ce,Me,Ue,lt){let nt;if(this.url=Me,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ce.toUpperCase(),function ee($){switch($){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||lt?(this.body=void 0!==Ue?Ue:null,nt=lt):nt=Ue,nt&&(this.reportProgress=!!nt.reportProgress,this.withCredentials=!!nt.withCredentials,nt.responseType&&(this.responseType=nt.responseType),nt.headers&&(this.headers=nt.headers),nt.context&&(this.context=nt.context),nt.params&&(this.params=nt.params)),this.headers||(this.headers=new L),this.context||(this.context=new ie),this.params){const ft=this.params.toString();if(0===ft.length)this.urlWithParams=Me;else{const it=Me.indexOf("?");this.urlWithParams=Me+(-1===it?"?":itVt.set(Ii,ce.setHeaders[Ii]),Mt)),ce.setParams&&(Zt=Object.keys(ce.setParams).reduce((Vt,Ii)=>Vt.set(Ii,ce.setParams[Ii]),Zt)),new le(Ue,lt,ft,{params:Zt,headers:Mt,context:Ft,reportProgress:rt,responseType:nt,withCredentials:it})}}var se=(()=>((se=se||{})[se.Sent=0]="Sent",se[se.UploadProgress=1]="UploadProgress",se[se.ResponseHeader=2]="ResponseHeader",se[se.DownloadProgress=3]="DownloadProgress",se[se.Response=4]="Response",se[se.User=5]="User",se))();class y{constructor(ce,Me=200,Ue="OK"){this.headers=ce.headers||new L,this.status=void 0!==ce.status?ce.status:Me,this.statusText=ce.statusText||Ue,this.url=ce.url||null,this.ok=this.status>=200&&this.status<300}}class i extends y{constructor(ce={}){super(ce),this.type=se.ResponseHeader}clone(ce={}){return new i({headers:ce.headers||this.headers,status:void 0!==ce.status?ce.status:this.status,statusText:ce.statusText||this.statusText,url:ce.url||this.url||void 0})}}class a extends y{constructor(ce={}){super(ce),this.type=se.Response,this.body=void 0!==ce.body?ce.body:null}clone(ce={}){return new a({body:void 0!==ce.body?ce.body:this.body,headers:ce.headers||this.headers,status:void 0!==ce.status?ce.status:this.status,statusText:ce.statusText||this.statusText,url:ce.url||this.url||void 0})}}class p extends y{constructor(ce){super(ce,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ce.url||"(unknown url)"}`:`Http failure response for ${ce.url||"(unknown url)"}: ${ce.status} ${ce.statusText}`,this.error=ce.error||null}}function u($,ce){return{body:ce,headers:$.headers,context:$.context,observe:$.observe,params:$.params,reportProgress:$.reportProgress,responseType:$.responseType,withCredentials:$.withCredentials}}let _=(()=>{class ${constructor(Me){this.handler=Me}request(Me,Ue,lt={}){let nt;if(Me instanceof le)nt=Me;else{let rt,Mt;rt=lt.headers instanceof L?lt.headers:new L(lt.headers),lt.params&&(Mt=lt.params instanceof j?lt.params:new j({fromObject:lt.params})),nt=new le(Me,Ue,void 0!==lt.body?lt.body:null,{headers:rt,context:lt.context,params:Mt,reportProgress:lt.reportProgress,responseType:lt.responseType||"json",withCredentials:lt.withCredentials})}const ft=(0,v.of)(nt).pipe((0,o.b)(rt=>this.handler.handle(rt)));if(Me instanceof le||"events"===lt.observe)return ft;const it=ft.pipe((0,M.h)(rt=>rt instanceof a));switch(lt.observe||"body"){case"body":switch(nt.responseType){case"arraybuffer":return it.pipe((0,l.U)(rt=>{if(null!==rt.body&&!(rt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return rt.body}));case"blob":return it.pipe((0,l.U)(rt=>{if(null!==rt.body&&!(rt.body instanceof Blob))throw new Error("Response is not a Blob.");return rt.body}));case"text":return it.pipe((0,l.U)(rt=>{if(null!==rt.body&&"string"!=typeof rt.body)throw new Error("Response is not a string.");return rt.body}));default:return it.pipe((0,l.U)(rt=>rt.body))}case"response":return it;default:throw new Error(`Unreachable: unhandled observe type ${lt.observe}}`)}}delete(Me,Ue={}){return this.request("DELETE",Me,Ue)}get(Me,Ue={}){return this.request("GET",Me,Ue)}head(Me,Ue={}){return this.request("HEAD",Me,Ue)}jsonp(Me,Ue){return this.request("JSONP",Me,{params:(new j).append(Ue,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Me,Ue={}){return this.request("OPTIONS",Me,Ue)}patch(Me,Ue,lt={}){return this.request("PATCH",Me,u(lt,Ue))}post(Me,Ue,lt={}){return this.request("POST",Me,u(lt,Ue))}put(Me,Ue,lt={}){return this.request("PUT",Me,u(lt,Ue))}}return $.\u0275fac=function(Me){return new(Me||$)(t.LFG(R))},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})();class D{constructor(ce,Me){this.next=ce,this.interceptor=Me}handle(ce){return this.interceptor.intercept(ce,this.next)}}const I=new t.OlP("HTTP_INTERCEPTORS");let x=(()=>{class ${intercept(Me,Ue){return Ue.handle(Me)}}return $.\u0275fac=function(Me){return new(Me||$)},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})();const Re=/^\)\]\}',?\n/;let Le=(()=>{class ${constructor(Me){this.xhrFactory=Me}handle(Me){if("JSONP"===Me.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new C.y(Ue=>{const lt=this.xhrFactory.build();if(lt.open(Me.method,Me.urlWithParams),Me.withCredentials&&(lt.withCredentials=!0),Me.headers.forEach((Ii,jt)=>lt.setRequestHeader(Ii,jt.join(","))),Me.headers.has("Accept")||lt.setRequestHeader("Accept","application/json, text/plain, */*"),!Me.headers.has("Content-Type")){const Ii=Me.detectContentTypeHeader();null!==Ii&<.setRequestHeader("Content-Type",Ii)}if(Me.responseType){const Ii=Me.responseType.toLowerCase();lt.responseType="json"!==Ii?Ii:"text"}const nt=Me.serializeBody();let ft=null;const it=()=>{if(null!==ft)return ft;const Ii=1223===lt.status?204:lt.status,jt=lt.statusText||"OK",ei=new L(lt.getAllResponseHeaders()),ki=function ze($){return"responseURL"in $&&$.responseURL?$.responseURL:/^X-Request-URL:/m.test($.getAllResponseHeaders())?$.getResponseHeader("X-Request-URL"):null}(lt)||Me.url;return ft=new i({headers:ei,status:Ii,statusText:jt,url:ki}),ft},rt=()=>{let{headers:Ii,status:jt,statusText:ei,url:ki}=it(),ai=null;204!==jt&&(ai=void 0===lt.response?lt.responseText:lt.response),0===jt&&(jt=ai?200:0);let hi=jt>=200&&jt<300;if("json"===Me.responseType&&"string"==typeof ai){const Ze=ai;ai=ai.replace(Re,"");try{ai=""!==ai?JSON.parse(ai):null}catch(Ee){ai=Ze,hi&&(hi=!1,ai={error:Ee,text:ai})}}hi?(Ue.next(new a({body:ai,headers:Ii,status:jt,statusText:ei,url:ki||void 0})),Ue.complete()):Ue.error(new p({error:ai,headers:Ii,status:jt,statusText:ei,url:ki||void 0}))},Mt=Ii=>{const{url:jt}=it(),ei=new p({error:Ii,status:lt.status||0,statusText:lt.statusText||"Unknown Error",url:jt||void 0});Ue.error(ei)};let Zt=!1;const Ft=Ii=>{Zt||(Ue.next(it()),Zt=!0);let jt={type:se.DownloadProgress,loaded:Ii.loaded};Ii.lengthComputable&&(jt.total=Ii.total),"text"===Me.responseType&&!!lt.responseText&&(jt.partialText=lt.responseText),Ue.next(jt)},Vt=Ii=>{let jt={type:se.UploadProgress,loaded:Ii.loaded};Ii.lengthComputable&&(jt.total=Ii.total),Ue.next(jt)};return lt.addEventListener("load",rt),lt.addEventListener("error",Mt),lt.addEventListener("timeout",Mt),lt.addEventListener("abort",Mt),Me.reportProgress&&(lt.addEventListener("progress",Ft),null!==nt&<.upload&<.upload.addEventListener("progress",Vt)),lt.send(nt),Ue.next({type:se.Sent}),()=>{lt.removeEventListener("error",Mt),lt.removeEventListener("abort",Mt),lt.removeEventListener("load",rt),lt.removeEventListener("timeout",Mt),Me.reportProgress&&(lt.removeEventListener("progress",Ft),null!==nt&<.upload&<.upload.removeEventListener("progress",Vt)),lt.readyState!==lt.DONE&<.abort()}})}}return $.\u0275fac=function(Me){return new(Me||$)(t.LFG(e.JF))},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})();const K=new t.OlP("XSRF_COOKIE_NAME"),we=new t.OlP("XSRF_HEADER_NAME");class Y{}let ae=(()=>{class ${constructor(Me,Ue,lt){this.doc=Me,this.platform=Ue,this.cookieName=lt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Me=this.doc.cookie||"";return Me!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,e.Mx)(Me,this.cookieName),this.lastCookieString=Me),this.lastToken}}return $.\u0275fac=function(Me){return new(Me||$)(t.LFG(e.K0),t.LFG(t.Lbi),t.LFG(K))},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})(),Ge=(()=>{class ${constructor(Me,Ue){this.tokenService=Me,this.headerName=Ue}intercept(Me,Ue){const lt=Me.url.toLowerCase();if("GET"===Me.method||"HEAD"===Me.method||lt.startsWith("http://")||lt.startsWith("https://"))return Ue.handle(Me);const nt=this.tokenService.getToken();return null!==nt&&!Me.headers.has(this.headerName)&&(Me=Me.clone({headers:Me.headers.set(this.headerName,nt)})),Ue.handle(Me)}}return $.\u0275fac=function(Me){return new(Me||$)(t.LFG(Y),t.LFG(we))},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})(),vt=(()=>{class ${constructor(Me,Ue){this.backend=Me,this.injector=Ue,this.chain=null}handle(Me){if(null===this.chain){const Ue=this.injector.get(I,[]);this.chain=Ue.reduceRight((lt,nt)=>new D(lt,nt),this.backend)}return this.chain.handle(Me)}}return $.\u0275fac=function(Me){return new(Me||$)(t.LFG(s),t.LFG(t.zs3))},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})(),ue=(()=>{class ${static disable(){return{ngModule:$,providers:[{provide:Ge,useClass:x}]}}static withOptions(Me={}){return{ngModule:$,providers:[Me.cookieName?{provide:K,useValue:Me.cookieName}:[],Me.headerName?{provide:we,useValue:Me.headerName}:[]]}}}return $.\u0275fac=function(Me){return new(Me||$)},$.\u0275mod=t.oAB({type:$}),$.\u0275inj=t.cJS({providers:[Ge,{provide:I,useExisting:Ge,multi:!0},{provide:Y,useClass:ae},{provide:K,useValue:"XSRF-TOKEN"},{provide:we,useValue:"X-XSRF-TOKEN"}]}),$})(),Oe=(()=>{class ${}return $.\u0275fac=function(Me){return new(Me||$)},$.\u0275mod=t.oAB({type:$}),$.\u0275inj=t.cJS({providers:[_,{provide:R,useClass:vt},Le,{provide:s,useExisting:Le}],imports:[[ue.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),$})()},5e3:(Ve,Q,m)=>{"use strict";m.d(Q,{deG:()=>fc,tb:()=>Vm,AFp:()=>zm,ip1:()=>_p,CZH:()=>$u,hGG:()=>x5,z2F:()=>k4,sBO:()=>Qg,Sil:()=>yp,_Vd:()=>T4,EJc:()=>Ym,SBq:()=>S4,qLn:()=>Ec,vpe:()=>lc,tBr:()=>Ho,XFs:()=>ue,OlP:()=>Yr,zs3:()=>Fs,ZZ4:()=>W3,aQg:()=>j3,soG:()=>G3,YKP:()=>qp,h0i:()=>Qu,PXZ:()=>Zg,R0b:()=>So,FiY:()=>zo,Lbi:()=>Zm,g9A:()=>Um,n_E:()=>B3,Qsj:()=>D8,FYo:()=>Gp,JOm:()=>os,q3G:()=>ua,PiD:()=>Bl,tp0:()=>Ks,Rgc:()=>I4,dDg:()=>qm,GfV:()=>Yp,s_b:()=>z3,ifc:()=>ft,eFA:()=>Jm,Ez6:()=>Re,G48:()=>Kg,Gpc:()=>O,f3M:()=>cl,X6Q:()=>qg,_c5:()=>p5,VLi:()=>Hg,c2e:()=>Gm,zSh:()=>y2,wAp:()=>wn,vHH:()=>w,EiD:()=>Eh,mCW:()=>hl,qzn:()=>sr,JVY:()=>Wo,pB0:()=>w0,eBb:()=>xc,L6k:()=>fo,LAX:()=>jo,cg1:()=>l0,kL8:()=>Gu,yhl:()=>Na,dqk:()=>Ft,sIi:()=>zc,CqO:()=>xu,QGY:()=>H2,F4k:()=>bu,RDi:()=>ra,AaK:()=>R,z3N:()=>ya,qOj:()=>A2,TTD:()=>Jr,_Bn:()=>Up,xp6:()=>R1,uIk:()=>S2,Tol:()=>e0,Gre:()=>a0,ekj:()=>rc,Suo:()=>vm,Xpm:()=>De,lG2:()=>at,Yz7:()=>xe,cJS:()=>ze,oAB:()=>ct,Yjl:()=>st,Y36:()=>Zc,_UZ:()=>R2,GkF:()=>vu,BQk:()=>B2,ynx:()=>F2,qZA:()=>J1,TgZ:()=>N2,EpF:()=>yu,n5z:()=>oo,Ikx:()=>ih,LFG:()=>ka,$8M:()=>t1,$Z:()=>_u,NdJ:()=>X1,CRH:()=>ym,kcU:()=>Pn,O4$:()=>on,oxw:()=>U2,ALo:()=>om,lcZ:()=>lm,xi3:()=>cm,Dn7:()=>hm,Hsn:()=>Mu,F$t:()=>Cu,Q6J:()=>P2,s9C:()=>Vc,MGl:()=>yr,DdM:()=>Xp,VKq:()=>$p,WLB:()=>em,kEZ:()=>tm,iGM:()=>gm,MAs:()=>au,Jf7:()=>Hh,CHM:()=>Us,oJD:()=>T0,LSH:()=>S0,kYT:()=>ke,Udp:()=>wl,WFA:()=>z2,d8E:()=>Zu,YNc:()=>ru,W1O:()=>Mm,_uU:()=>X2,Oqu:()=>Kr,hij:()=>Al,AsE:()=>eo,lnq:()=>Iu,HOy:()=>$2,Gf:()=>_m});var e=m(7579),t=m(727),v=m(8306),C=m(6451),o=m(3099);function M(c){for(let h in c)if(c[h]===M)return h;throw Error("Could not find renamed property on target object.")}function l(c,h){for(const g in h)h.hasOwnProperty(g)&&!c.hasOwnProperty(g)&&(c[g]=h[g])}function R(c){if("string"==typeof c)return c;if(Array.isArray(c))return"["+c.map(R).join(", ")+"]";if(null==c)return""+c;if(c.overriddenName)return`${c.overriddenName}`;if(c.name)return`${c.name}`;const h=c.toString();if(null==h)return""+h;const g=h.indexOf("\n");return-1===g?h:h.substring(0,g)}function s(c,h){return null==c||""===c?null===h?"":h:null==h||""===h?c:c+" "+h}const L=M({__forward_ref__:M});function O(c){return c.__forward_ref__=O,c.toString=function(){return R(this())},c}function A(c){return E(c)?c():c}function E(c){return"function"==typeof c&&c.hasOwnProperty(L)&&c.__forward_ref__===O}class w extends Error{constructor(h,g){super(function j(c,h){return`${c?`NG0${c}: `:""}${h}`}(h,g)),this.code=h}}function W(c){return"string"==typeof c?c:null==c?"":String(c)}function ie(c){return"function"==typeof c?c.name||c.toString():"object"==typeof c&&null!=c&&"function"==typeof c.type?c.type.name||c.type.toString():W(c)}function re(c,h){const g=h?` in ${h}`:"";throw new w("201",`No provider for ${ie(c)} found${g}`)}function b(c,h){null==c&&function U(c,h,g,S){throw new Error(`ASSERTION ERROR: ${c}`+(null==S?"":` [Expected=> ${g} ${S} ${h} <=Actual]`))}(h,c,null,"!=")}function xe(c){return{token:c.token,providedIn:c.providedIn||null,factory:c.factory,value:void 0}}const Re=xe;function ze(c){return{providers:c.providers||[],imports:c.imports||[]}}function Le(c){return K(c,Ge)||K(c,Fe)}function K(c,h){return c.hasOwnProperty(h)?c[h]:null}function ae(c){return c&&(c.hasOwnProperty(vt)||c.hasOwnProperty(Ne))?c[vt]:null}const Ge=M({\u0275prov:M}),vt=M({\u0275inj:M}),Fe=M({ngInjectableDef:M}),Ne=M({ngInjectorDef:M});var ue=(()=>((ue=ue||{})[ue.Default=0]="Default",ue[ue.Host=1]="Host",ue[ue.Self=2]="Self",ue[ue.SkipSelf=4]="SkipSelf",ue[ue.Optional=8]="Optional",ue))();let Oe;function q(c){const h=Oe;return Oe=c,h}function $(c,h,g){const S=Le(c);return S&&"root"==S.providedIn?void 0===S.value?S.value=S.factory():S.value:g&ue.Optional?null:void 0!==h?h:void re(R(c),"Injector")}function Me(c){return{toString:c}.toString()}var Ue=(()=>((Ue=Ue||{})[Ue.OnPush=0]="OnPush",Ue[Ue.Default=1]="Default",Ue))(),ft=(()=>{return(c=ft||(ft={}))[c.Emulated=0]="Emulated",c[c.None=2]="None",c[c.ShadowDom=3]="ShadowDom",ft;var c})();const it="undefined"!=typeof globalThis&&globalThis,rt="undefined"!=typeof window&&window,Mt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ft=it||"undefined"!=typeof global&&global||rt||Mt,jt={},ei=[],ki=M({\u0275cmp:M}),ai=M({\u0275dir:M}),hi=M({\u0275pipe:M}),Ze=M({\u0275mod:M}),Ee=M({\u0275fac:M}),G=M({__NG_ELEMENT_ID__:M});let ge=0;function De(c){return Me(()=>{const g={},S={type:c.type,providersResolver:null,decls:c.decls,vars:c.vars,factory:null,template:c.template||null,consts:c.consts||null,ngContentSelectors:c.ngContentSelectors,hostBindings:c.hostBindings||null,hostVars:c.hostVars||0,hostAttrs:c.hostAttrs||null,contentQueries:c.contentQueries||null,declaredInputs:g,inputs:null,outputs:null,exportAs:c.exportAs||null,onPush:c.changeDetection===Ue.OnPush,directiveDefs:null,pipeDefs:null,selectors:c.selectors||ei,viewQuery:c.viewQuery||null,features:c.features||null,data:c.data||{},encapsulation:c.encapsulation||ft.Emulated,id:"c",styles:c.styles||ei,_:null,setInput:null,schemas:c.schemas||null,tView:null},F=c.directives,V=c.features,me=c.pipes;return S.id+=ge++,S.inputs=Be(c.inputs,g),S.outputs=Be(c.outputs),V&&V.forEach(Ie=>Ie(S)),S.directiveDefs=F?()=>("function"==typeof F?F():F).map($t):null,S.pipeDefs=me?()=>("function"==typeof me?me():me).map(Nt):null,S})}function $t(c){return At(c)||function li(c){return c[ai]||null}(c)}function Nt(c){return function Bt(c){return c[hi]||null}(c)}const Jt={};function ct(c){return Me(()=>{const h={type:c.type,bootstrap:c.bootstrap||ei,declarations:c.declarations||ei,imports:c.imports||ei,exports:c.exports||ei,transitiveCompileScopes:null,schemas:c.schemas||null,id:c.id||null};return null!=c.id&&(Jt[c.id]=c.type),h})}function ke(c,h){return Me(()=>{const g=Rt(c,!0);g.declarations=h.declarations||ei,g.imports=h.imports||ei,g.exports=h.exports||ei})}function Be(c,h){if(null==c)return jt;const g={};for(const S in c)if(c.hasOwnProperty(S)){let F=c[S],V=F;Array.isArray(F)&&(V=F[1],F=F[0]),g[F]=S,h&&(h[F]=V)}return g}const at=De;function st(c){return{type:c.type,name:c.name,factory:null,pure:!1!==c.pure,onDestroy:c.type.prototype.ngOnDestroy||null}}function At(c){return c[ki]||null}function Rt(c,h){const g=c[Ze]||null;if(!g&&!0===h)throw new Error(`Type ${R(c)} does not have '\u0275mod' property.`);return g}function _n(c){return Array.isArray(c)&&"object"==typeof c[1]}function kn(c){return Array.isArray(c)&&!0===c[1]}function dr(c){return 0!=(8&c.flags)}function wi(c){return 2==(2&c.flags)}function Fi(c){return 1==(1&c.flags)}function dn(c){return null!==c.template}function Lr(c){return 0!=(512&c[2])}function kr(c,h){return c.hasOwnProperty(Ee)?c[Ee]:null}class la{constructor(h,g,S){this.previousValue=h,this.currentValue=g,this.firstChange=S}isFirstChange(){return this.firstChange}}function Jr(){return ga}function ga(c){return c.type.prototype.ngOnChanges&&(c.setInput=wa),$n}function $n(){const c=ca(this),h=null==c?void 0:c.current;if(h){const g=c.previous;if(g===jt)c.previous=h;else for(let S in h)g[S]=h[S];c.current=null,this.ngOnChanges(h)}}function wa(c,h,g,S){const F=ca(c)||function Aa(c,h){return c[Nr]=h}(c,{previous:jt,current:null}),V=F.current||(F.current={}),me=F.previous,Ie=this.declaredInputs[g],We=me[Ie];V[Ie]=new la(We&&We.currentValue,h,me===jt),c[S]=h}Jr.ngInherit=!0;const Nr="__ngSimpleChanges__";function ca(c){return c[Nr]||null}const Sr="http://www.w3.org/2000/svg";let Oa;function ra(c){Oa=c}function Gr(){return void 0!==Oa?Oa:"undefined"!=typeof document?document:void 0}function Zn(c){return!!c.listen}const ns={createRenderer:(c,h)=>Gr()};function Xe(c){for(;Array.isArray(c);)c=c[0];return c}function ne(c,h){return Xe(h[c])}function Qe(c,h){return Xe(h[c.index])}function mi(c,h){return c.data[h]}function Ct(c,h){return c[h]}function ti(c,h){const g=h[c];return _n(g)?g:g[0]}function bt(c){return 4==(4&c[2])}function Yt(c){return 128==(128&c[2])}function Bi(c,h){return null==h?null:c[h]}function yn(c){c[18]=0}function An(c,h){c[5]+=h;let g=c,S=c[3];for(;null!==S&&(1===h&&1===g[5]||-1===h&&0===g[5]);)S[5]+=h,g=S,S=S[3]}const Wi={lFrame:gn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Mr(){return Wi.bindingsEnabled}function Pi(){return Wi.lFrame.lView}function Nn(){return Wi.lFrame.tView}function Us(c){return Wi.lFrame.contextLView=c,c[8]}function fr(){let c=Zs();for(;null!==c&&64===c.type;)c=c.parent;return c}function Zs(){return Wi.lFrame.currentTNode}function xt(c,h){const g=Wi.lFrame;g.currentTNode=c,g.isParent=h}function te(){return Wi.lFrame.isParent}function fe(){Wi.lFrame.isParent=!1}function Pt(){return Wi.isInCheckNoChangesMode}function Qt(c){Wi.isInCheckNoChangesMode=c}function Xt(){const c=Wi.lFrame;let h=c.bindingRootIndex;return-1===h&&(h=c.bindingRootIndex=c.tView.bindingStartIndex),h}function pi(){return Wi.lFrame.bindingIndex}function Zi(){return Wi.lFrame.bindingIndex++}function tn(c){const h=Wi.lFrame,g=h.bindingIndex;return h.bindingIndex=h.bindingIndex+c,g}function tt(c,h){const g=Wi.lFrame;g.bindingIndex=g.bindingRootIndex=c,It(h)}function It(c){Wi.lFrame.currentDirectiveIndex=c}function zt(c){const h=Wi.lFrame.currentDirectiveIndex;return-1===h?null:c[h]}function ri(){return Wi.lFrame.currentQueryIndex}function vi(c){Wi.lFrame.currentQueryIndex=c}function Mi(c){const h=c[1];return 2===h.type?h.declTNode:1===h.type?c[6]:null}function Ai(c,h,g){if(g&ue.SkipSelf){let F=h,V=c;for(;!(F=F.parent,null!==F||g&ue.Host||(F=Mi(V),null===F||(V=V[15],10&F.type))););if(null===F)return!1;h=F,c=V}const S=Wi.lFrame=un();return S.currentTNode=h,S.lView=c,!0}function Ki(c){const h=un(),g=c[1];Wi.lFrame=h,h.currentTNode=g.firstChild,h.lView=c,h.tView=g,h.contextLView=c,h.bindingIndex=g.bindingStartIndex,h.inI18n=!1}function un(){const c=Wi.lFrame,h=null===c?null:c.child;return null===h?gn(c):h}function gn(c){const h={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:c,child:null,inI18n:!1};return null!==c&&(c.child=h),h}function En(){const c=Wi.lFrame;return Wi.lFrame=c.parent,c.currentTNode=null,c.lView=null,c}const zn=En;function Rr(){const c=En();c.isParent=!0,c.tView=null,c.selectedIndex=-1,c.contextLView=null,c.elementDepthCount=0,c.currentDirectiveIndex=-1,c.currentNamespace=null,c.bindingRootIndex=-1,c.bindingIndex=-1,c.currentQueryIndex=0}function Vn(){return Wi.lFrame.selectedIndex}function mr(c){Wi.lFrame.selectedIndex=c}function Hi(){const c=Wi.lFrame;return mi(c.tView,c.selectedIndex)}function on(){Wi.lFrame.currentNamespace=Sr}function Pn(){!function jn(){Wi.lFrame.currentNamespace=null}()}function $r(c,h){for(let g=h.directiveStart,S=h.directiveEnd;g=S)break}else h[We]<0&&(c[18]+=65536),(Ie>11>16&&(3&c[2])===h){c[2]+=2048;try{V.call(Ie)}finally{}}}else try{V.call(Ie)}finally{}}class us{constructor(h,g,S){this.factory=h,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=S}}function Lo(c,h,g){const S=Zn(c);let F=0;for(;Fh){me=V-1;break}}}for(;V>16}(c),S=h;for(;g>0;)S=S[15],g--;return S}let rl=!0;function al(c){const h=rl;return rl=c,h}let $e=0;function Ot(c,h){const g=ii(c,h);if(-1!==g)return g;const S=h[1];S.firstCreatePass&&(c.injectorIndex=h.length,qt(S.data,c),qt(h,null),qt(S.blueprint,null));const F=Ei(c,h),V=c.injectorIndex;if(Io(F)){const me=ao(F),Ie=Ys(F,h),We=Ie[1].data;for(let ut=0;ut<8;ut++)h[V+ut]=Ie[me+ut]|We[me+ut]}return h[V+8]=F,V}function qt(c,h){c.push(0,0,0,0,0,0,0,0,h)}function ii(c,h){return-1===c.injectorIndex||c.parent&&c.parent.injectorIndex===c.injectorIndex||null===h[c.injectorIndex+8]?-1:c.injectorIndex}function Ei(c,h){if(c.parent&&-1!==c.parent.injectorIndex)return c.parent.injectorIndex;let g=0,S=null,F=h;for(;null!==F;){const V=F[1],me=V.type;if(S=2===me?V.declTNode:1===me?F[6]:null,null===S)return-1;if(g++,F=F[15],-1!==S.injectorIndex)return S.injectorIndex|g<<16}return-1}function an(c,h,g){!function dt(c,h,g){let S;"string"==typeof g?S=g.charCodeAt(0)||0:g.hasOwnProperty(G)&&(S=g[G]),null==S&&(S=g[G]=$e++);const F=255&S;h.data[c+(F>>5)]|=1<=0?255&h:ea:h}(g);if("function"==typeof V){if(!Ai(h,c,S))return S&ue.Host?xn(F,g,S):er(h,g,S,F);try{const me=V(S);if(null!=me||S&ue.Optional)return me;re(g)}finally{zn()}}else if("number"==typeof V){let me=null,Ie=ii(c,h),We=-1,ut=S&ue.Host?h[16][6]:null;for((-1===Ie||S&ue.SkipSelf)&&(We=-1===Ie?Ei(c,h):h[Ie+8],-1!==We&&Ol(S,!1)?(me=h[1],Ie=ao(We),h=Ys(We,h)):Ie=-1);-1!==Ie;){const Tt=h[1];if(Ea(V,Ie,Tt.data)){const Gt=ys(Ie,h,g,me,S,ut);if(Gt!==so)return Gt}We=h[Ie+8],-1!==We&&Ol(S,h[1].data[Ie+8]===ut)&&Ea(V,Ie,h)?(me=Tt,Ie=ao(We),h=Ys(We,h)):Ie=-1}}}return er(h,g,S,F)}const so={};function ea(){return new yo(fr(),Pi())}function ys(c,h,g,S,F,V){const me=h[1],Ie=me.data[c+8],Tt=fs(Ie,me,g,null==S?wi(Ie)&&rl:S!=me&&0!=(3&Ie.type),F&ue.Host&&V===Ie);return null!==Tt?ks(h,me,Tt,Ie):so}function fs(c,h,g,S,F){const V=c.providerIndexes,me=h.data,Ie=1048575&V,We=c.directiveStart,Tt=V>>20,oi=F?Ie+Tt:c.directiveEnd;for(let gi=S?Ie:Ie+Tt;gi=We&&Oi.type===g)return gi}if(F){const gi=me[We];if(gi&&dn(gi)&&gi.type===g)return We}return null}function ks(c,h,g,S){let F=c[g];const V=h.data;if(function Jc(c){return c instanceof us}(F)){const me=F;me.resolving&&function ee(c,h){const g=h?`. Dependency path: ${h.join(" > ")} > ${c}`:"";throw new w("200",`Circular dependency in DI detected for ${c}${g}`)}(ie(V[g]));const Ie=al(me.canSeeViewProviders);me.resolving=!0;const We=me.injectImpl?q(me.injectImpl):null;Ai(c,S,ue.Default);try{F=c[g]=me.factory(void 0,V,c,S),h.firstCreatePass&&g>=S.directiveStart&&function Xr(c,h,g){const{ngOnChanges:S,ngOnInit:F,ngDoCheck:V}=h.type.prototype;if(S){const me=ga(h);(g.preOrderHooks||(g.preOrderHooks=[])).push(c,me),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(c,me)}F&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-c,F),V&&((g.preOrderHooks||(g.preOrderHooks=[])).push(c,V),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(c,V))}(g,V[g],h)}finally{null!==We&&q(We),al(Ie),me.resolving=!1,zn()}}return F}function Ea(c,h,g){return!!(g[h+(c>>5)]&1<{const h=c.prototype.constructor,g=h[Ee]||e1(h),S=Object.prototype;let F=Object.getPrototypeOf(c.prototype).constructor;for(;F&&F!==S;){const V=F[Ee]||e1(F);if(V&&V!==g)return V;F=Object.getPrototypeOf(F)}return V=>new V})}function e1(c){return E(c)?()=>{const h=e1(A(c));return h&&h()}:kr(c)}function t1(c){return function Wn(c,h){if("class"===h)return c.classes;if("style"===h)return c.styles;const g=c.attrs;if(g){const S=g.length;let F=0;for(;F{const S=function uc(c){return function(...g){if(c){const S=c(...g);for(const F in S)this[F]=S[F]}}}(h);function F(...V){if(this instanceof F)return S.apply(this,V),this;const me=new F(...V);return Ie.annotation=me,Ie;function Ie(We,ut,Tt){const Gt=We.hasOwnProperty(ko)?We[ko]:Object.defineProperty(We,ko,{value:[]})[ko];for(;Gt.length<=Tt;)Gt.push(null);return(Gt[Tt]=Gt[Tt]||[]).push(me),We}}return g&&(F.prototype=Object.create(g.prototype)),F.prototype.ngMetadataName=c,F.annotationCls=F,F})}class Yr{constructor(h,g){this._desc=h,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof g?this.__NG_ELEMENT_ID__=g:void 0!==g&&(this.\u0275prov=xe({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}toString(){return`InjectionToken ${this._desc}`}}const fc=new Yr("AnalyzeForEntryComponents");function ps(c,h){void 0===h&&(h=c);for(let g=0;gArray.isArray(g)?xs(g,h):h(g))}function s1(c,h,g){h>=c.length?c.push(g):c.splice(h,0,g)}function Il(c,h){return h>=c.length-1?c.pop():c.splice(h,1)[0]}function js(c,h){const g=[];for(let S=0;S=0?c[1|S]=g:(S=~S,function m0(c,h,g,S){let F=c.length;if(F==h)c.push(g,S);else if(1===F)c.push(S,c[0]),c[0]=g;else{for(F--,c.push(c[F-1],c[F]);F>h;)c[F]=c[F-2],F--;c[h]=g,c[h+1]=S}}(c,S,h,g)),S}function kl(c,h){const g=as(c,h);if(g>=0)return c[1|g]}function as(c,h){return function Nl(c,h,g){let S=0,F=c.length>>g;for(;F!==S;){const V=S+(F-S>>1),me=c[V<h?F=V:S=V+1}return~(F<({token:c})),-1),zo=Bo(bo("Optional"),8),Bl=Bo(bo("Self"),2),Ks=Bo(bo("SkipSelf"),4);let Yo,Hl;function Rs(c){var h;return(null===(h=function g1(){if(void 0===Yo&&(Yo=null,Ft.trustedTypes))try{Yo=Ft.trustedTypes.createPolicy("angular",{createHTML:c=>c,createScript:c=>c,createScriptURL:c=>c})}catch(c){}return Yo}())||void 0===h?void 0:h.createHTML(c))||c}function He(c){var h;return(null===(h=function X(){if(void 0===Hl&&(Hl=null,Ft.trustedTypes))try{Hl=Ft.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:c=>c,createScript:c=>c,createScriptURL:c=>c})}catch(c){}return Hl}())||void 0===h?void 0:h.createHTML(c))||c}class mt{constructor(h){this.changingThisBreaksApplicationSecurity=h}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class fi extends mt{getTypeName(){return"HTML"}}class In extends mt{getTypeName(){return"Style"}}class tr extends mt{getTypeName(){return"Script"}}class Fn extends mt{getTypeName(){return"URL"}}class Br extends mt{getTypeName(){return"ResourceURL"}}function ya(c){return c instanceof mt?c.changingThisBreaksApplicationSecurity:c}function sr(c,h){const g=Na(c);if(null!=g&&g!==h){if("ResourceURL"===g&&"URL"===h)return!0;throw new Error(`Required a safe ${h}, got a ${g} (see https://g.co/ng/security#xss)`)}return g===h}function Na(c){return c instanceof mt&&c.getTypeName()||null}function Wo(c){return new fi(c)}function fo(c){return new In(c)}function xc(c){return new tr(c)}function jo(c){return new Fn(c)}function w0(c){return new Br(c)}class N4{constructor(h){this.inertDocumentHelper=h}getInertBodyElement(h){h=""+h;try{const g=(new window.DOMParser).parseFromString(Rs(h),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(h):(g.removeChild(g.firstChild),g)}catch(g){return null}}}class R4{constructor(h){if(this.defaultDoc=h,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const g=this.inertDocument.createElement("html");this.inertDocument.appendChild(g);const S=this.inertDocument.createElement("body");g.appendChild(S)}}getInertBodyElement(h){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=Rs(h),g;const S=this.inertDocument.createElement("body");return S.innerHTML=Rs(h),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(S),S}stripCustomNsAttrs(h){const g=h.attributes;for(let F=g.length-1;0hl(h.trim())).join(", ")),this.buf.push(" ",me,'="',Ah(We),'"')}var c;return this.buf.push(">"),!0}endElement(h){const g=h.nodeName.toLowerCase();ul.hasOwnProperty(g)&&!tf.hasOwnProperty(g)&&(this.buf.push(""))}chars(h){this.buf.push(Ah(h))}checkClobberedElement(h,g){if(g&&(h.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${h.outerHTML}`);return g}}const Cc=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Mc=/([^\#-~ |!])/g;function Ah(c){return c.replace(/&/g,"&").replace(Cc,function(h){return"&#"+(1024*(h.charCodeAt(0)-55296)+(h.charCodeAt(1)-56320)+65536)+";"}).replace(Mc,function(h){return"&#"+h.charCodeAt(0)+";"}).replace(//g,">")}let y1;function Eh(c,h){let g=null;try{y1=y1||function ef(c){const h=new R4(c);return function F4(){try{return!!(new window.DOMParser).parseFromString(Rs(""),"text/html")}catch(c){return!1}}()?new N4(h):h}(c);let S=h?String(h):"";g=y1.getInertBodyElement(S);let F=5,V=S;do{if(0===F)throw new Error("Failed to sanitize html because the input is unstable");F--,S=V,V=g.innerHTML,g=y1.getInertBodyElement(S)}while(S!==V);return Rs((new rf).sanitizeChildren(E0(g)||g))}finally{if(g){const S=E0(g)||g;for(;S.firstChild;)S.removeChild(S.firstChild)}}}function E0(c){return"content"in c&&function af(c){return c.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===c.nodeName}(c)?c.content:null}var ua=(()=>((ua=ua||{})[ua.NONE=0]="NONE",ua[ua.HTML=1]="HTML",ua[ua.STYLE=2]="STYLE",ua[ua.SCRIPT=3]="SCRIPT",ua[ua.URL=4]="URL",ua[ua.RESOURCE_URL=5]="RESOURCE_URL",ua))();function T0(c){const h=wc();return h?He(h.sanitize(ua.HTML,c)||""):sr(c,"HTML")?He(ya(c)):Eh(Gr(),W(c))}function S0(c){const h=wc();return h?h.sanitize(ua.URL,c)||"":sr(c,"URL")?ya(c):hl(W(c))}function wc(){const c=Pi();return c&&c[12]}const Lh="__ngContext__";function ss(c,h){c[Lh]=h}function b1(c){const h=function Ac(c){return c[Lh]||null}(c);return h?Array.isArray(h)?h:h.lView:null}function P0(c){return c.ngOriginalError}function yf(c,...h){c.error(...h)}class Ec{constructor(){this._console=console}handleError(h){const g=this._findOriginalError(h),S=function kh(c){return c&&c.ngErrorLogger||yf}(h);S(this._console,"ERROR",h),g&&S(this._console,"ORIGINAL ERROR",g)}_findOriginalError(h){let g=h&&P0(h);for(;g&&P0(g);)g=P0(g);return g||null}}const Bh=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ft))();function Hh(c){return c.ownerDocument.defaultView}function po(c){return c instanceof Function?c():c}var os=(()=>((os=os||{})[os.Important=1]="Important",os[os.DashCase=2]="DashCase",os))();function C1(c,h){return undefined(c,h)}function Tc(c){const h=c[3];return kn(h)?h[3]:h}function M1(c){return If(c[13])}function R0(c){return If(c[4])}function If(c){for(;null!==c&&!kn(c);)c=c[4];return c}function fl(c,h,g,S,F){if(null!=S){let V,me=!1;kn(S)?V=S:_n(S)&&(me=!0,S=S[0]);const Ie=Xe(S);0===c&&null!==g?null==F?z0(h,g,Ie):Ms(h,g,Ie,F||null,!0):1===c&&null!==g?Ms(h,g,Ie,F||null,!0):2===c?function G0(c,h,g){const S=T1(c,h);S&&function E1(c,h,g,S){Zn(c)?c.removeChild(h,g,S):h.removeChild(g)}(c,S,h,g)}(h,Ie,me):3===c&&h.destroyNode(Ie),null!=V&&function Y0(c,h,g,S,F){const V=g[7];V!==Xe(g)&&fl(h,c,S,V,F);for(let Ie=10;Ie0&&(c[g-1][4]=S[4]);const V=Il(c,10+h);!function Zl(c,h){Vl(c,h,h[11],2,null,null),h[0]=null,h[6]=null}(S[1],S);const me=V[19];null!==me&&me.detachView(V[1]),S[3]=null,S[4]=null,S[2]&=-129}return S}function pl(c,h){if(!(256&h[2])){const g=h[11];Zn(g)&&g.destroyNode&&Vl(c,h,g,3,null,null),function Nf(c){let h=c[13];if(!h)return Yh(c[1],c);for(;h;){let g=null;if(_n(h))g=h[13];else{const S=h[10];S&&(g=S)}if(!g){for(;h&&!h[4]&&h!==c;)_n(h)&&Yh(h[1],h),h=h[3];null===h&&(h=c),_n(h)&&Yh(h[1],h),g=h&&h[4]}h=g}}(h)}}function Yh(c,h){if(!(256&h[2])){h[2]&=-129,h[2]|=256,function Bf(c,h){let g;if(null!=c&&null!=(g=c.destroyHooks))for(let S=0;S=0?S[F=ut]():S[F=-ut].unsubscribe(),V+=2}else{const me=S[F=g[V+1]];g[V].call(me)}if(null!==S){for(let V=F+1;VV?"":F[Gt+1].toLowerCase();const gi=8&S?oi:null;if(gi&&-1!==Jh(gi,ut,0)||2&S&&ut!==oi){if(Er(S))return!1;me=!0}}}}else{if(!me&&!Er(S)&&!Er(We))return!1;if(me&&Er(We))continue;me=!1,S=We|1&S}}return Er(S)||me}function Er(c){return 0==(1&c)}function ed(c,h,g,S){if(null===h)return-1;let F=0;if(S||!g){let V=!1;for(;F-1)for(g++;g0?'="'+Ie+'"':"")+"]"}else 8&S?F+="."+me:4&S&&(F+=" "+me);else""!==F&&!Er(me)&&(h+=N1(V,F),F=""),S=me,V=V||!Er(S);g++}return""!==F&&(h+=N1(V,F)),h}const Sn={};function R1(c){F1(Nn(),Pi(),Vn()+c,Pt())}function F1(c,h,g,S){if(!S)if(3==(3&h[2])){const V=c.preOrderCheckHooks;null!==V&&Yn(h,V,g)}else{const V=c.preOrderHooks;null!==V&&no(h,V,0,g)}mr(g)}function B1(c,h){return c<<17|h<<2}function ws(c){return c>>17&32767}function rd(c){return 2|c}function Qs(c){return(131068&c)>>2}function Jn(c,h){return-131069&c|h<<2}function H1(c){return 1|c}function hd(c,h){const g=c.contentQueries;if(null!==g)for(let S=0;S20&&F1(c,h,20,Pt()),g(S,F)}finally{mr(V)}}function ud(c,h,g){if(dr(h)){const F=h.directiveEnd;for(let V=h.directiveStart;V0;){const g=c[--h];if("number"==typeof g&&g<0)return g}return 0})(Ie)!=We&&Ie.push(We),Ie.push(S,F,me)}}function xd(c,h){null!==c.hostBindings&&c.hostBindings(1,h)}function Cd(c,h){h.flags|=2,(c.components||(c.components=[])).push(h.index)}function a6(c,h,g){if(g){if(h.exportAs)for(let S=0;S0&&f2(g)}}function f2(c){for(let S=M1(c);null!==S;S=R0(S))for(let F=10;F0&&f2(V)}const g=c[1].components;if(null!==g)for(let S=0;S0&&f2(F)}}function h6(c,h){const g=ti(h,c),S=g[1];(function d6(c,h){for(let g=h.length;gPromise.resolve(null))();function _2(c){return c[7]||(c[7]=[])}function Dd(c){return c.cleanup||(c.cleanup=[])}function Ld(c,h,g){return(null===c||dn(c))&&(g=function _e(c){for(;Array.isArray(c);){if("object"==typeof c[1])return c;c=c[0]}return null}(g[h.index])),g[11]}function Od(c,h){const g=c[9],S=g?g.get(Ec,null):null;S&&S.handleError(h)}function Id(c,h,g,S,F){for(let V=0;Vthis.processProvider(Ie,h,g)),xs([h],Ie=>this.processInjectorType(Ie,[],V)),this.records.set(v2,jl(void 0,this));const me=this.records.get(y2);this.scope=null!=me?me.value:null,this.source=F||("object"==typeof h?null:R(h))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(h=>h.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(h,g=za,S=ue.Default){this.assertNotDestroyed();const F=ll(this),V=q(void 0);try{if(!(S&ue.SkipSelf)){let Ie=this.records.get(h);if(void 0===Ie){const We=function E6(c){return"function"==typeof c||"object"==typeof c&&c instanceof Yr}(h)&&Le(h);Ie=We&&this.injectableDefInScope(We)?jl(C2(h),Hc):null,this.records.set(h,Ie)}if(null!=Ie)return this.hydrate(h,Ie)}return(S&ue.Self?kd():this.parent).get(h,g=S&ue.Optional&&g===za?null:g)}catch(me){if("NullInjectorError"===me.name){if((me[Ns]=me[Ns]||[]).unshift(R(h)),F)throw me;return function ph(c,h,g,S){const F=c[Ns];throw h[Fl]&&F.unshift(h[Fl]),c.message=function f1(c,h,g,S=null){c=c&&"\n"===c.charAt(0)&&"\u0275"==c.charAt(1)?c.substr(2):c;let F=R(h);if(Array.isArray(h))F=h.map(R).join(" -> ");else if("object"==typeof h){let V=[];for(let me in h)if(h.hasOwnProperty(me)){let Ie=h[me];V.push(me+":"+("string"==typeof Ie?JSON.stringify(Ie):R(Ie)))}F=`{${V.join(", ")}}`}return`${g}${S?"("+S+")":""}[${F}]: ${c.replace(h1,"\n ")}`}("\n"+c.message,F,g,S),c.ngTokenPath=F,c[Ns]=null,c}(me,h,"R3InjectorError",this.source)}throw me}finally{q(V),ll(F)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(h=>this.get(h))}toString(){const h=[];return this.records.forEach((S,F)=>h.push(R(F))),`R3Injector[${h.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(h,g,S){if(!(h=A(h)))return!1;let F=ae(h);const V=null==F&&h.ngModule||void 0,me=void 0===V?h:V,Ie=-1!==S.indexOf(me);if(void 0!==V&&(F=ae(V)),null==F)return!1;if(null!=F.imports&&!Ie){let Tt;S.push(me);try{xs(F.imports,Gt=>{this.processInjectorType(Gt,g,S)&&(void 0===Tt&&(Tt=[]),Tt.push(Gt))})}finally{}if(void 0!==Tt)for(let Gt=0;Gtthis.processProvider(Oi,oi,gi||ei))}}this.injectorDefTypes.add(me);const We=kr(me)||(()=>new me);this.records.set(me,jl(We,Hc));const ut=F.providers;if(null!=ut&&!Ie){const Tt=h;xs(ut,Gt=>this.processProvider(Gt,Tt,ut))}return void 0!==V&&void 0!==h.providers}processProvider(h,g,S){let F=Hr(h=A(h))?h:A(h&&h.provide);const V=function x6(c,h,g){return Fd(c)?jl(void 0,c.useValue):jl(Rd(c),Hc)}(h);if(Hr(h)||!0!==h.multi)this.records.get(F);else{let me=this.records.get(F);me||(me=jl(void 0,Hc,!0),me.factory=()=>d1(me.multi),this.records.set(F,me)),F=h,me.multi.push(h)}this.records.set(F,V)}hydrate(h,g){return g.value===Hc&&(g.value=v6,g.value=g.factory()),"object"==typeof g.value&&g.value&&function A6(c){return null!==c&&"object"==typeof c&&"function"==typeof c.ngOnDestroy}(g.value)&&this.onDestroy.add(g.value),g.value}injectableDefInScope(h){if(!h.providedIn)return!1;const g=A(h.providedIn);return"string"==typeof g?"any"===g||g===this.scope:this.injectorDefTypes.has(g)}}function C2(c){const h=Le(c),g=null!==h?h.factory:kr(c);if(null!==g)return g;if(c instanceof Yr)throw new Error(`Token ${R(c)} is missing a \u0275prov definition.`);if(c instanceof Function)return function b6(c){const h=c.length;if(h>0){const S=js(h,"?");throw new Error(`Can't resolve all parameters for ${R(c)}: (${S.join(", ")}).`)}const g=function we(c){const h=c&&(c[Ge]||c[Fe]);if(h){const g=function Y(c){if(c.hasOwnProperty("name"))return c.name;const h=(""+c).match(/^function\s*([^\s(]+)/);return null===h?"":h[1]}(c);return console.warn(`DEPRECATED: DI is instantiating a token "${g}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${g}" class.`),h}return null}(c);return null!==g?()=>g.factory(c):()=>new c}(c);throw new Error("unreachable")}function Rd(c,h,g){let S;if(Hr(c)){const F=A(c);return kr(F)||C2(F)}if(Fd(c))S=()=>A(c.useValue);else if(function M6(c){return!(!c||!c.useFactory)}(c))S=()=>c.useFactory(...d1(c.deps||[]));else if(function C6(c){return!(!c||!c.useExisting)}(c))S=()=>ka(A(c.useExisting));else{const F=A(c&&(c.useClass||c.provide));if(!function w6(c){return!!c.deps}(c))return kr(F)||C2(F);S=()=>new F(...d1(c.deps))}return S}function jl(c,h,g=!1){return{factory:c,value:h,multi:g?[]:void 0}}function Fd(c){return null!==c&&"object"==typeof c&&yc in c}function Hr(c){return"function"==typeof c}let Fs=(()=>{class c{static create(g,S){var F;if(Array.isArray(g))return x2({name:""},S,g,"");{const V=null!==(F=g.name)&&void 0!==F?F:"";return x2({name:V},g.parent,g.providers,V)}}}return c.THROW_IF_NOT_FOUND=za,c.NULL=new Pd,c.\u0275prov=xe({token:c,providedIn:"any",factory:()=>ka(v2)}),c.__NG_ELEMENT_ID__=-1,c})();function P6(c,h){$r(b1(c)[1],fr())}function A2(c){let h=function qd(c){return Object.getPrototypeOf(c.prototype).constructor}(c.type),g=!0;const S=[c];for(;h;){let F;if(dn(c))F=h.\u0275cmp||h.\u0275dir;else{if(h.\u0275cmp)throw new Error("Directives cannot inherit Components");F=h.\u0275dir}if(F){if(g){S.push(F);const me=c;me.inputs=E2(c.inputs),me.declaredInputs=E2(c.declaredInputs),me.outputs=E2(c.outputs);const Ie=F.hostBindings;Ie&&F6(c,Ie);const We=F.viewQuery,ut=F.contentQueries;if(We&&N6(c,We),ut&&R6(c,ut),l(c.inputs,F.inputs),l(c.declaredInputs,F.declaredInputs),l(c.outputs,F.outputs),dn(F)&&F.data.animation){const Tt=c.data;Tt.animation=(Tt.animation||[]).concat(F.data.animation)}}const V=F.features;if(V)for(let me=0;me=0;S--){const F=c[S];F.hostVars=h+=F.hostVars,F.hostAttrs=Oo(F.hostAttrs,g=Oo(g,F.hostAttrs))}}(S)}function E2(c){return c===jt?{}:c===ei?[]:c}function N6(c,h){const g=c.viewQuery;c.viewQuery=g?(S,F)=>{h(S,F),g(S,F)}:h}function R6(c,h){const g=c.contentQueries;c.contentQueries=g?(S,F,V)=>{h(S,F,V),g(S,F,V)}:h}function F6(c,h){const g=c.hostBindings;c.hostBindings=g?(S,F)=>{h(S,F),g(S,F)}:h}let q1=null;function ql(){if(!q1){const c=Ft.Symbol;if(c&&c.iterator)q1=c.iterator;else{const h=Object.getOwnPropertyNames(Map.prototype);for(let g=0;gIe(Xe(rr[S.index])):S.index;if(Zn(g)){let rr=null;if(!Ie&&We&&(rr=function f4(c,h,g,S){const F=c.cleanup;if(null!=F)for(let V=0;VWe?Ie[We]:null}"string"==typeof me&&(V+=2)}return null}(c,h,F,S.index)),null!==rr)(rr.__ngLastListenerFn__||rr).__ngNextListenerFn__=V,rr.__ngLastListenerFn__=V,gi=!1;else{V=$1(S,h,Gt,V,!1);const Ur=g.listen(pn,F,V);oi.push(V,Ur),Tt&&Tt.push(F,Tn,Ri,Ri+1)}}else V=$1(S,h,Gt,V,!0),pn.addEventListener(F,V,me),oi.push(V),Tt&&Tt.push(F,Tn,Ri,me)}else V=$1(S,h,Gt,V,!1);const Oi=S.outputs;let Ji;if(gi&&null!==Oi&&(Ji=Oi[F])){const rn=Ji.length;if(rn)for(let pn=0;pn0;)h=h[15],c--;return h}(c,Wi.lFrame.contextLView))[8]}(c)}function Es(c,h){let g=null;const S=function P1(c){const h=c.attrs;if(null!=h){const g=h.indexOf(5);if(0==(1&g))return h[g+1]}return null}(c);for(let F=0;F=0}const ir={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Hs(c){return c.substring(ir.key,ir.keyEnd)}function V2(c,h){const g=ir.textEnd;return g===h?-1:(h=ir.keyEnd=function Ua(c,h,g){for(;h32;)h++;return h}(c,ir.key=h,g),Cl(c,h,g))}function Cl(c,h,g){for(;h=0;g=V2(h,g))Ka(c,Hs(h),!0)}function Ss(c,h,g,S){const F=Pi(),V=Nn(),me=tn(2);V.firstUpdatePass&&W2(V,c,me,S),h!==Sn&&ls(F,me,h)&&K2(V,V.data[Vn()],F,F[11],c,F[me+1]=function zs(c,h){return null==c||("string"==typeof h?c+=h:"object"==typeof c&&(c=R(ya(c)))),c}(h,g),S,me)}function Ds(c,h,g,S){const F=Nn(),V=tn(2);F.firstUpdatePass&&W2(F,null,V,S);const me=Pi();if(g!==Sn&&ls(me,V,g)){const Ie=F.data[Vn()];if(qr(Ie,S)&&!Y2(F,V)){let We=S?Ie.classesWithoutHost:Ie.stylesWithoutHost;null!==We&&(g=s(We,g||"")),k2(F,Ie,me,g,S)}else!function Ou(c,h,g,S,F,V,me,Ie){F===Sn&&(F=ei);let We=0,ut=0,Tt=0=c.expandoStartIndex}function W2(c,h,g,S){const F=c.data;if(null===F[g+1]){const V=F[Vn()],me=Y2(c,g);qr(V,S)&&null===h&&!me&&(h=!1),h=function Du(c,h,g,S){const F=zt(c);let V=S?h.residualClasses:h.residualStyles;if(null===F)0===(S?h.classBindings:h.styleBindings)&&(g=Eo(g=Yc(null,c,h,g,S),h.attrs,S),V=null);else{const me=h.directiveStylingLast;if(-1===me||c[me]!==F)if(g=Yc(F,c,h,g,S),null===V){let We=function t0(c,h,g){const S=g?h.classBindings:h.styleBindings;if(0!==Qs(S))return c[ws(S)]}(c,h,S);void 0!==We&&Array.isArray(We)&&(We=Yc(null,c,h,We[1],S),We=Eo(We,h.attrs,S),function j2(c,h,g,S){c[ws(g?h.classBindings:h.styleBindings)]=S}(c,h,S,We))}else V=function Lu(c,h,g){let S;const F=h.directiveEnd;for(let V=1+h.directiveStylingLast;V0)&&(ut=!0)}else Tt=g;if(F)if(0!==We){const oi=ws(c[Ie+1]);c[S+1]=B1(oi,Ie),0!==oi&&(c[oi+1]=Jn(c[oi+1],S)),c[Ie+1]=function K0(c,h){return 131071&c|h<<17}(c[Ie+1],S)}else c[S+1]=B1(Ie,0),0!==Ie&&(c[Ie+1]=Jn(c[Ie+1],S)),Ie=S;else c[S+1]=B1(We,0),0===Ie?Ie=S:c[We+1]=Jn(c[We+1],S),We=S;ut&&(c[S+1]=rd(c[S+1])),Xa(c,Tt,S,!0),Xa(c,Tt,S,!1),function Eu(c,h,g,S,F){const V=F?c.residualClasses:c.residualStyles;null!=V&&"string"==typeof h&&as(V,h)>=0&&(g[S+1]=H1(g[S+1]))}(h,Tt,c,S,V),me=B1(Ie,We),V?h.classBindings=me:h.styleBindings=me}(F,V,h,g,me,S)}}function Yc(c,h,g,S,F){let V=null;const me=g.directiveEnd;let Ie=g.directiveStylingLast;for(-1===Ie?Ie=g.directiveStart:Ie++;Ie0;){const We=c[F],ut=Array.isArray(We),Tt=ut?We[1]:We,Gt=null===Tt;let oi=g[F+1];oi===Sn&&(oi=Gt?ei:void 0);let gi=Gt?kl(oi,S):Tt===S?oi:void 0;if(ut&&!J2(gi)&&(gi=kl(We,S)),J2(gi)&&(Ie=gi,me))return Ie;const Oi=c[F+1];F=me?ws(Oi):Qs(Oi)}if(null!==h){let We=V?h.residualClasses:h.residualStyles;null!=We&&(Ie=kl(We,S))}return Ie}function J2(c){return void 0!==c}function qr(c,h){return 0!=(c.flags&(h?16:32))}function X2(c,h=""){const g=Pi(),S=Nn(),F=c+20,V=S.firstCreatePass?Wl(S,F,1,h,null):S.data[F],me=g[F]=function F0(c,h){return Zn(c)?c.createText(h):c.createTextNode(h)}(g[11],h);Dc(S,g,me,V),xt(V,!1)}function Kr(c){return Al("",c,""),Kr}function Al(c,h,g){const S=Pi(),F=Ql(S,c,h,g);return F!==Sn&&Mo(S,Vn(),F),Al}function eo(c,h,g,S,F){const V=Pi(),me=function Jl(c,h,g,S,F,V){const Ie=bl(c,pi(),g,F);return tn(2),Ie?h+W(g)+S+W(F)+V:Sn}(V,c,h,g,S,F);return me!==Sn&&Mo(V,Vn(),me),eo}function Iu(c,h,g,S,F,V,me){const Ie=Pi(),We=function Xl(c,h,g,S,F,V,me,Ie){const ut=K1(c,pi(),g,F,me);return tn(3),ut?h+W(g)+S+W(F)+V+W(me)+Ie:Sn}(Ie,c,h,g,S,F,V,me);return We!==Sn&&Mo(Ie,Vn(),We),Iu}function $2(c,h,g,S,F,V,me,Ie,We){const ut=Pi(),Tt=$l(ut,c,h,g,S,F,V,me,Ie,We);return Tt!==Sn&&Mo(ut,Vn(),Tt),$2}function a0(c,h,g){Ds(Ka,ts,Ql(Pi(),c,h,g),!0)}function ih(c,h,g){const S=Pi();return ls(S,Zi(),h)&&As(Nn(),Hi(),S,c,h,S[11],g,!0),ih}function Zu(c,h,g){const S=Pi();if(ls(S,Zi(),h)){const V=Nn(),me=Hi();As(V,me,S,c,h,Ld(zt(V.data),me,S),g,!0)}return Zu}const El=void 0;var D3=["en",[["a","p"],["AM","PM"],El],[["AM","PM"],El,El],[["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"]],El,[["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"]],El,[["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}",El,"{1} 'at' {0}",El],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Vu(c){const g=Math.floor(Math.abs(c)),S=c.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===S?1:5}];let sc={};function l0(c){const h=function L3(c){return c.toLowerCase().replace(/_/g,"-")}(c);let g=b4(h);if(g)return g;const S=h.split("-")[0];if(g=b4(S),g)return g;if("en"===S)return D3;throw new Error(`Missing locale data for the locale "${c}".`)}function Gu(c){return l0(c)[wn.PluralCase]}function b4(c){return c in sc||(sc[c]=Ft.ng&&Ft.ng.common&&Ft.ng.common.locales&&Ft.ng.common.locales[c]),sc[c]}var wn=(()=>((wn=wn||{})[wn.LocaleId=0]="LocaleId",wn[wn.DayPeriodsFormat=1]="DayPeriodsFormat",wn[wn.DayPeriodsStandalone=2]="DayPeriodsStandalone",wn[wn.DaysFormat=3]="DaysFormat",wn[wn.DaysStandalone=4]="DaysStandalone",wn[wn.MonthsFormat=5]="MonthsFormat",wn[wn.MonthsStandalone=6]="MonthsStandalone",wn[wn.Eras=7]="Eras",wn[wn.FirstDayOfWeek=8]="FirstDayOfWeek",wn[wn.WeekendRange=9]="WeekendRange",wn[wn.DateFormat=10]="DateFormat",wn[wn.TimeFormat=11]="TimeFormat",wn[wn.DateTimeFormat=12]="DateTimeFormat",wn[wn.NumberSymbols=13]="NumberSymbols",wn[wn.NumberFormats=14]="NumberFormats",wn[wn.CurrencyCode=15]="CurrencyCode",wn[wn.CurrencySymbol=16]="CurrencySymbol",wn[wn.CurrencyName=17]="CurrencyName",wn[wn.Currencies=18]="Currencies",wn[wn.Directionality=19]="Directionality",wn[wn.PluralCase=20]="PluralCase",wn[wn.ExtraData=21]="ExtraData",wn))();const c0="en-US";let rh=c0;function X3(c,h,g,S,F){if(c=A(c),Array.isArray(c))for(let V=0;V>20;if(Hr(c)||!c.multi){const gi=new us(We,F,Zc),Oi=ep(Ie,h,F?Tt:Tt+oi,Gt);-1===Oi?(an(Ot(ut,me),V,Ie),$3(V,c,h.length),h.push(Ie),ut.directiveStart++,ut.directiveEnd++,F&&(ut.providerIndexes+=1048576),g.push(gi),me.push(gi)):(g[Oi]=gi,me[Oi]=gi)}else{const gi=ep(Ie,h,Tt+oi,Gt),Oi=ep(Ie,h,Tt,Tt+oi),Ji=gi>=0&&g[gi],rn=Oi>=0&&g[Oi];if(F&&!rn||!F&&!Ji){an(Ot(ut,me),V,Ie);const pn=function M8(c,h,g,S,F){const V=new us(c,g,Zc);return V.multi=[],V.index=h,V.componentProviders=0,zp(V,F,S&&!g),V}(F?C8:x8,g.length,F,S,We);!F&&rn&&(g[Oi].providerFactory=pn),$3(V,c,h.length,0),h.push(Ie),ut.directiveStart++,ut.directiveEnd++,F&&(ut.providerIndexes+=1048576),g.push(pn),me.push(pn)}else $3(V,c,gi>-1?gi:Oi,zp(g[F?Oi:gi],We,!F&&S));!F&&S&&rn&&g[Oi].componentProviders++}}}function $3(c,h,g,S){const F=Hr(h),V=function j1(c){return!!c.useClass}(h);if(F||V){const We=(V?A(h.useClass):h).prototype.ngOnDestroy;if(We){const ut=c.destroyHooks||(c.destroyHooks=[]);if(!F&&h.multi){const Tt=ut.indexOf(g);-1===Tt?ut.push(g,[S,We]):ut[Tt+1].push(S,We)}else ut.push(g,We)}}}function zp(c,h,g){return g&&c.componentProviders++,c.multi.push(h)-1}function ep(c,h,g,S){for(let F=g;F{g.providersResolver=(S,F)=>function b8(c,h,g){const S=Nn();if(S.firstCreatePass){const F=dn(c);X3(g,S.data,S.blueprint,F,!0),X3(h,S.data,S.blueprint,F,!1)}}(S,F?F(c):c,h)}}class Zp{}class E8{resolveComponentFactory(h){throw function A8(c){const h=Error(`No component factory found for ${R(c)}. Did you add it to @NgModule.entryComponents?`);return h.ngComponent=c,h}(h)}}let T4=(()=>{class c{}return c.NULL=new E8,c})();function T8(){return Ku(fr(),Pi())}function Ku(c,h){return new S4(Qe(c,h))}let S4=(()=>{class c{constructor(g){this.nativeElement=g}}return c.__NG_ELEMENT_ID__=T8,c})();function S8(c){return c instanceof S4?c.nativeElement:c}class Gp{}let D8=(()=>{class c{}return c.__NG_ELEMENT_ID__=()=>function O8(){const c=Pi(),g=ti(fr().index,c);return function L8(c){return c[11]}(_n(g)?g:c)}(),c})(),I8=(()=>{class c{}return c.\u0275prov=xe({token:c,providedIn:"root",factory:()=>null}),c})();class Yp{constructor(h){this.full=h,this.major=h.split(".")[0],this.minor=h.split(".")[1],this.patch=h.split(".").slice(2).join(".")}}const P8=new Yp("13.0.3"),ip={};function F3(c,h,g,S,F=!1){for(;null!==g;){const V=h[g.index];if(null!==V&&S.push(Xe(V)),kn(V))for(let Ie=10;Ie-1&&(A1(h,S),Il(g,S))}this._attachedToViewContainer=!1}pl(this._lView[1],this._lView)}onDestroy(h){gd(this._lView[1],this._lView,null,h)}markForCheck(){Y1(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){m2(this._lView[1],this._lView,this.context)}checkNoChanges(){!function f6(c,h,g){Qt(!0);try{m2(c,h,g)}finally{Qt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function kf(c,h){Vl(c,h,h[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(h){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=h}}class k8 extends D4{constructor(h){super(h),this._view=h}detectChanges(){Sd(this._view)}checkNoChanges(){!function p6(c){Qt(!0);try{Sd(c)}finally{Qt(!1)}}(this._view)}get context(){return null}}class Wp extends T4{constructor(h){super(),this.ngModule=h}resolveComponentFactory(h){const g=At(h);return new np(g,this.ngModule)}}function jp(c){const h=[];for(let g in c)c.hasOwnProperty(g)&&h.push({propName:c[g],templateName:g});return h}const R8=new Yr("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Bh});class np extends Zp{constructor(h,g){super(),this.componentDef=h,this.ngModule=g,this.componentType=h.type,this.selector=function id(c){return c.map(zf).join(",")}(h.selectors),this.ngContentSelectors=h.ngContentSelectors?h.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return jp(this.componentDef.inputs)}get outputs(){return jp(this.componentDef.outputs)}create(h,g,S,F){const V=(F=F||this.ngModule)?function F8(c,h){return{get:(g,S,F)=>{const V=c.get(g,ip,F);return V!==ip||S===ip?V:h.get(g,S,F)}}}(h,F.injector):h,me=V.get(Gp,ns),Ie=V.get(I8,null),We=me.createRenderer(null,this.componentDef),ut=this.componentDef.selectors[0][0]||"div",Tt=S?function md(c,h,g){if(Zn(c))return c.selectRootElement(h,g===ft.ShadowDom);let S="string"==typeof h?c.querySelector(h):h;return S.textContent="",S}(We,S,this.componentDef.encapsulation):w1(me.createRenderer(null,this.componentDef),ut,function N8(c){const h=c.toLowerCase();return"svg"===h?Sr:"math"===h?"http://www.w3.org/1998/MathML/":null}(ut)),Gt=this.componentDef.onPush?576:528,oi=function jd(c,h){return{components:[],scheduler:c||Bh,clean:m6,playerHandler:h||null,flags:0}}(),gi=Fc(0,null,null,1,0,null,null,null,null,null),Oi=kc(null,gi,oi,Gt,null,null,me,We,Ie,V);let Ji,rn;Ki(Oi);try{const pn=function Yd(c,h,g,S,F,V){const me=g[1];g[20]=c;const We=Wl(me,20,2,"#host",null),ut=We.mergedAttrs=h.hostAttrs;null!==ut&&(W1(We,ut,!0),null!==c&&(Lo(F,c,ut),null!==We.classes&&W0(F,c,We.classes),null!==We.styles&&Qh(F,c,We.styles)));const Tt=S.createRenderer(c,h),Gt=kc(g,fd(h),null,h.onPush?64:16,g[20],We,S,Tt,V||null,null);return me.firstCreatePass&&(an(Ot(We,g),me,h.type),Cd(me,We),Md(We,g.length,1)),G1(g,Gt),g[20]=Gt}(Tt,this.componentDef,Oi,me,We);if(Tt)if(S)Lo(We,Tt,["ng-version",P8.full]);else{const{attrs:Ri,classes:Tn}=function nd(c){const h=[],g=[];let S=1,F=2;for(;S0&&W0(We,Tt,Tn.join(" "))}if(rn=mi(gi,20),void 0!==g){const Ri=rn.projection=[];for(let Tn=0;TnWe(me,h)),h.contentQueries){const We=fr();h.contentQueries(1,me,We.directiveStart)}const Ie=fr();return!V.firstCreatePass||null===h.hostBindings&&null===h.hostAttrs||(mr(Ie.index),u2(g[1],Ie,0,Ie.directiveStart,Ie.directiveEnd,h),xd(h,me)),me}(pn,this.componentDef,Oi,oi,[P6]),Jo(gi,Oi,null)}finally{Rr()}return new H8(this.componentType,Ji,Ku(rn,Oi),Oi,rn)}}class H8 extends class w8{}{constructor(h,g,S,F,V){super(),this.location=S,this._rootLView=F,this._tNode=V,this.instance=g,this.hostView=this.changeDetectorRef=new k8(F),this.componentType=h}get injector(){return new yo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(h){this.hostView.onDestroy(h)}}class Qu{}class qp{}const Ju=new Map;class Jp extends Qu{constructor(h,g){super(),this._parent=g,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Wp(this);const S=Rt(h);this._bootstrapComponents=po(S.bootstrap),this._r3Injector=Nd(h,g,[{provide:Qu,useValue:this},{provide:T4,useValue:this.componentFactoryResolver}],R(h)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(h)}get(h,g=Fs.THROW_IF_NOT_FOUND,S=ue.Default){return h===Fs||h===Qu||h===v2?this:this._r3Injector.get(h,g,S)}destroy(){const h=this._r3Injector;!h.destroyed&&h.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(h){this.destroyCbs.push(h)}}class rp extends qp{constructor(h){super(),this.moduleType=h,null!==Rt(h)&&function U8(c){const h=new Set;!function g(S){const F=Rt(S,!0),V=F.id;null!==V&&(function Kp(c,h,g){if(h&&h!==g)throw new Error(`Duplicate module registered for ${c} - ${R(h)} vs ${R(h.name)}`)}(V,Ju.get(V),S),Ju.set(V,S));const me=po(F.imports);for(const Ie of me)h.has(Ie)||(h.add(Ie),g(Ie))}(c)}(h)}create(h){return new Jp(this.moduleType,h)}}function Xp(c,h,g){const S=Xt()+c,F=Pi();return F[S]===Sn?_o(F,S,g?h.call(g):h()):function Uc(c,h){return c[h]}(F,S)}function $p(c,h,g,S){return im(Pi(),Xt(),c,h,g,S)}function em(c,h,g,S,F){return nm(Pi(),Xt(),c,h,g,S,F)}function tm(c,h,g,S,F,V){return rm(Pi(),Xt(),c,h,g,S,F,V)}function L4(c,h){const g=c[h];return g===Sn?void 0:g}function im(c,h,g,S,F,V){const me=h+g;return ls(c,me,F)?_o(c,me+1,V?S.call(V,F):S(F)):L4(c,me+1)}function nm(c,h,g,S,F,V,me){const Ie=h+g;return bl(c,Ie,F,V)?_o(c,Ie+2,me?S.call(me,F,V):S(F,V)):L4(c,Ie+2)}function rm(c,h,g,S,F,V,me,Ie){const We=h+g;return K1(c,We,F,V,me)?_o(c,We+3,Ie?S.call(Ie,F,V,me):S(F,V,me)):L4(c,We+3)}function om(c,h){const g=Nn();let S;const F=c+20;g.firstCreatePass?(S=function q8(c,h){if(h)for(let g=h.length-1;g>=0;g--){const S=h[g];if(c===S.name)return S}}(h,g.pipeRegistry),g.data[F]=S,S.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(F,S.onDestroy)):S=g.data[F];const V=S.factory||(S.factory=kr(S.type)),me=q(Zc);try{const Ie=al(!1),We=V();return al(Ie),function Y6(c,h,g,S){g>=c.data.length&&(c.data[g]=null,c.blueprint[g]=null),h[g]=S}(g,Pi(),F,We),We}finally{q(me)}}function lm(c,h,g){const S=c+20,F=Pi(),V=Ct(F,S);return O4(F,S)?im(F,Xt(),h,V.transform,g,V):V.transform(g)}function cm(c,h,g,S){const F=c+20,V=Pi(),me=Ct(V,F);return O4(V,F)?nm(V,Xt(),h,me.transform,g,S,me):me.transform(g,S)}function hm(c,h,g,S,F){const V=c+20,me=Pi(),Ie=Ct(me,V);return O4(me,V)?rm(me,Xt(),h,Ie.transform,g,S,F,Ie):Ie.transform(g,S,F)}function O4(c,h){return c[1].data[h].pure}function ap(c){return h=>{setTimeout(c,void 0,h)}}const lc=class J8 extends e.x{constructor(h=!1){super(),this.__isAsync=h}emit(h){super.next(h)}subscribe(h,g,S){var F,V,me;let Ie=h,We=g||(()=>null),ut=S;if(h&&"object"==typeof h){const Gt=h;Ie=null===(F=Gt.next)||void 0===F?void 0:F.bind(Gt),We=null===(V=Gt.error)||void 0===V?void 0:V.bind(Gt),ut=null===(me=Gt.complete)||void 0===me?void 0:me.bind(Gt)}this.__isAsync&&(We=ap(We),Ie&&(Ie=ap(Ie)),ut&&(ut=ap(ut)));const Tt=super.subscribe({next:Ie,error:We,complete:ut});return h instanceof t.w0&&h.add(Tt),Tt}};function X8(){return this._results[ql()]()}class B3{constructor(h=!1){this._emitDistinctChangesOnly=h,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const g=ql(),S=B3.prototype;S[g]||(S[g]=X8)}get changes(){return this._changes||(this._changes=new lc)}get(h){return this._results[h]}map(h){return this._results.map(h)}filter(h){return this._results.filter(h)}find(h){return this._results.find(h)}reduce(h,g){return this._results.reduce(h,g)}forEach(h){this._results.forEach(h)}some(h){return this._results.some(h)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(h,g){const S=this;S.dirty=!1;const F=ps(h);(this._changesDetected=!function Ws(c,h,g){if(c.length!==h.length)return!1;for(let S=0;S{class c{}return c.__NG_ELEMENT_ID__=tg,c})();const $8=I4,eg=class extends $8{constructor(h,g,S){super(),this._declarationLView=h,this._declarationTContainer=g,this.elementRef=S}createEmbeddedView(h){const g=this._declarationTContainer.tViews,S=kc(this._declarationLView,g,h,16,null,g.declTNode,null,null,null,null);S[17]=this._declarationLView[this._declarationTContainer.index];const V=this._declarationLView[19];return null!==V&&(S[19]=V.createEmbeddedView(g)),Jo(g,S,h),new D4(S)}};function tg(){return H3(fr(),Pi())}function H3(c,h){return 4&c.type?new eg(h,c,Ku(c,h)):null}let z3=(()=>{class c{}return c.__NG_ELEMENT_ID__=ig,c})();function ig(){return fm(fr(),Pi())}const ng=z3,dm=class extends ng{constructor(h,g,S){super(),this._lContainer=h,this._hostTNode=g,this._hostLView=S}get element(){return Ku(this._hostTNode,this._hostLView)}get injector(){return new yo(this._hostTNode,this._hostLView)}get parentInjector(){const h=Ei(this._hostTNode,this._hostLView);if(Io(h)){const g=Ys(h,this._hostLView),S=ao(h);return new yo(g[1].data[S+8],g)}return new yo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(h){const g=um(this._lContainer);return null!==g&&g[h]||null}get length(){return this._lContainer.length-10}createEmbeddedView(h,g,S){const F=h.createEmbeddedView(g||{});return this.insert(F,S),F}createComponent(h,g,S,F,V){const me=h&&!function lo(c){return"function"==typeof c}(h);let Ie;if(me)Ie=g;else{const Gt=g||{};Ie=Gt.index,S=Gt.injector,F=Gt.projectableNodes,V=Gt.ngModuleRef}const We=me?h:new np(At(h)),ut=S||this.parentInjector;if(!V&&null==We.ngModule&&ut){const Gt=ut.get(Qu,null);Gt&&(V=Gt)}const Tt=We.create(ut,F,void 0,V);return this.insert(Tt.hostView,Ie),Tt}insert(h,g){const S=h._lView,F=S[1];if(function xi(c){return kn(c[3])}(S)){const Tt=this.indexOf(h);if(-1!==Tt)this.detach(Tt);else{const Gt=S[3],oi=new dm(Gt,Gt[6],Gt[3]);oi.detach(oi.indexOf(h))}}const V=this._adjustIndex(g),me=this._lContainer;!function Rf(c,h,g,S){const F=10+S,V=g.length;S>0&&(g[F-1][4]=h),S0)S.push(me[Ie/2]);else{const ut=V[Ie+1],Tt=h[-We];for(let Gt=10;Gt{class c{constructor(g){this.appInits=g,this.resolve=V3,this.reject=V3,this.initialized=!1,this.done=!1,this.donePromise=new Promise((S,F)=>{this.resolve=S,this.reject=F})}runInitializers(){if(this.initialized)return;const g=[],S=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let F=0;F{V.subscribe({complete:Ie,error:We})});g.push(me)}}Promise.all(g).then(()=>{S()}).catch(F=>{this.reject(F)}),0===g.length&&S(),this.initialized=!0}}return c.\u0275fac=function(g){return new(g||c)(ka(_p,8))},c.\u0275prov=xe({token:c,factory:c.\u0275fac}),c})();const zm=new Yr("AppId"),Dg={provide:zm,useFactory:function Sg(){return`${vp()}${vp()}${vp()}`},deps:[]};function vp(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Um=new Yr("Platform Initializer"),Zm=new Yr("Platform ID"),Vm=new Yr("appBootstrapListener");let Gm=(()=>{class c{log(g){console.log(g)}warn(g){console.warn(g)}}return c.\u0275fac=function(g){return new(g||c)},c.\u0275prov=xe({token:c,factory:c.\u0275fac}),c})();const G3=new Yr("LocaleId"),Ym=new Yr("DefaultCurrencyCode");class Lg{constructor(h,g){this.ngModuleFactory=h,this.componentFactories=g}}let yp=(()=>{class c{compileModuleSync(g){return new rp(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const S=this.compileModuleSync(g),V=po(Rt(g).declarations).reduce((me,Ie)=>{const We=At(Ie);return We&&me.push(new np(We)),me},[]);return new Lg(S,V)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return c.\u0275fac=function(g){return new(g||c)},c.\u0275prov=xe({token:c,factory:c.\u0275fac}),c})();const Ig=(()=>Promise.resolve(0))();function bp(c){"undefined"==typeof Zone?Ig.then(()=>{c&&c.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",c)}class So{constructor({enableLongStackTrace:h=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:S=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new lc(!1),this.onMicrotaskEmpty=new lc(!1),this.onStable=new lc(!1),this.onError=new lc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const F=this;F._nesting=0,F._outer=F._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(F._inner=F._inner.fork(new Zone.TaskTrackingZoneSpec)),h&&Zone.longStackTraceZoneSpec&&(F._inner=F._inner.fork(Zone.longStackTraceZoneSpec)),F.shouldCoalesceEventChangeDetection=!S&&g,F.shouldCoalesceRunChangeDetection=S,F.lastRequestAnimationFrameId=-1,F.nativeRequestAnimationFrame=function Pg(){let c=Ft.requestAnimationFrame,h=Ft.cancelAnimationFrame;if("undefined"!=typeof Zone&&c&&h){const g=c[Zone.__symbol__("OriginalDelegate")];g&&(c=g);const S=h[Zone.__symbol__("OriginalDelegate")];S&&(h=S)}return{nativeRequestAnimationFrame:c,nativeCancelAnimationFrame:h}}().nativeRequestAnimationFrame,function Rg(c){const h=()=>{!function Ng(c){c.isCheckStableRunning||-1!==c.lastRequestAnimationFrameId||(c.lastRequestAnimationFrameId=c.nativeRequestAnimationFrame.call(Ft,()=>{c.fakeTopEventTask||(c.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{c.lastRequestAnimationFrameId=-1,Cp(c),c.isCheckStableRunning=!0,xp(c),c.isCheckStableRunning=!1},void 0,()=>{},()=>{})),c.fakeTopEventTask.invoke()}),Cp(c))}(c)};c._inner=c._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,S,F,V,me,Ie)=>{try{return Wm(c),g.invokeTask(F,V,me,Ie)}finally{(c.shouldCoalesceEventChangeDetection&&"eventTask"===V.type||c.shouldCoalesceRunChangeDetection)&&h(),jm(c)}},onInvoke:(g,S,F,V,me,Ie,We)=>{try{return Wm(c),g.invoke(F,V,me,Ie,We)}finally{c.shouldCoalesceRunChangeDetection&&h(),jm(c)}},onHasTask:(g,S,F,V)=>{g.hasTask(F,V),S===F&&("microTask"==V.change?(c._hasPendingMicrotasks=V.microTask,Cp(c),xp(c)):"macroTask"==V.change&&(c.hasPendingMacrotasks=V.macroTask))},onHandleError:(g,S,F,V)=>(g.handleError(F,V),c.runOutsideAngular(()=>c.onError.emit(V)),!1)})}(F)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!So.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(So.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(h,g,S){return this._inner.run(h,g,S)}runTask(h,g,S,F){const V=this._inner,me=V.scheduleEventTask("NgZoneEvent: "+F,h,kg,V3,V3);try{return V.runTask(me,g,S)}finally{V.cancelTask(me)}}runGuarded(h,g,S){return this._inner.runGuarded(h,g,S)}runOutsideAngular(h){return this._outer.run(h)}}const kg={};function xp(c){if(0==c._nesting&&!c.hasPendingMicrotasks&&!c.isStable)try{c._nesting++,c.onMicrotaskEmpty.emit(null)}finally{if(c._nesting--,!c.hasPendingMicrotasks)try{c.runOutsideAngular(()=>c.onStable.emit(null))}finally{c.isStable=!0}}}function Cp(c){c.hasPendingMicrotasks=!!(c._hasPendingMicrotasks||(c.shouldCoalesceEventChangeDetection||c.shouldCoalesceRunChangeDetection)&&-1!==c.lastRequestAnimationFrameId)}function Wm(c){c._nesting++,c.isStable&&(c.isStable=!1,c.onUnstable.emit(null))}function jm(c){c._nesting--,xp(c)}class Fg{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new lc,this.onMicrotaskEmpty=new lc,this.onStable=new lc,this.onError=new lc}run(h,g,S){return h.apply(g,S)}runGuarded(h,g,S){return h.apply(g,S)}runOutsideAngular(h){return h()}runTask(h,g,S,F){return h.apply(g,S)}}let qm=(()=>{class c{constructor(g){this._ngZone=g,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),g.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{So.assertNotInAngularZone(),bp(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())bp(()=>{for(;0!==this._callbacks.length;){let g=this._callbacks.pop();clearTimeout(g.timeoutId),g.doneCb(this._didWork)}this._didWork=!1});else{let g=this.getPendingTasks();this._callbacks=this._callbacks.filter(S=>!S.updateCb||!S.updateCb(g)||(clearTimeout(S.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(g=>({source:g.source,creationLocation:g.creationLocation,data:g.data})):[]}addCallback(g,S,F){let V=-1;S&&S>0&&(V=setTimeout(()=>{this._callbacks=this._callbacks.filter(me=>me.timeoutId!==V),g(this._didWork,this.getPendingTasks())},S)),this._callbacks.push({doneCb:g,timeoutId:V,updateCb:F})}whenStable(g,S,F){if(F&&!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(g,S,F),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(g,S,F){return[]}}return c.\u0275fac=function(g){return new(g||c)(ka(So))},c.\u0275prov=xe({token:c,factory:c.\u0275fac}),c})(),Km=(()=>{class c{constructor(){this._applications=new Map,Mp.addToWindow(this)}registerApplication(g,S){this._applications.set(g,S)}unregisterApplication(g){this._applications.delete(g)}unregisterAllApplications(){this._applications.clear()}getTestability(g){return this._applications.get(g)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(g,S=!0){return Mp.findTestabilityInTree(this,g,S)}}return c.\u0275fac=function(g){return new(g||c)},c.\u0275prov=xe({token:c,factory:c.\u0275fac}),c})();class Bg{addToWindow(h){}findTestabilityInTree(h,g,S){return null}}function Hg(c){Mp=c}let Dl,Mp=new Bg;const Qm=new Yr("AllowMultipleToken");class Zg{constructor(h,g){this.name=h,this.token=g}}function Jm(c,h,g=[]){const S=`Platform: ${h}`,F=new Yr(S);return(V=[])=>{let me=Xm();if(!me||me.injector.get(Qm,!1))if(c)c(g.concat(V).concat({provide:F,useValue:!0}));else{const Ie=g.concat(V).concat({provide:F,useValue:!0},{provide:y2,useValue:"platform"});!function Vg(c){if(Dl&&!Dl.destroyed&&!Dl.injector.get(Qm,!1))throw new w("400","");Dl=c.get($m);const h=c.get(Um,null);h&&h.forEach(g=>g())}(Fs.create({providers:Ie,name:S}))}return function Gg(c){const h=Xm();if(!h)throw new w("401","");return h}()}}function Xm(){return Dl&&!Dl.destroyed?Dl:null}let $m=(()=>{class c{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,S){const Ie=function Yg(c,h){let g;return g="noop"===c?new Fg:("zone.js"===c?void 0:c)||new So({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==h?void 0:h.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==h?void 0:h.ngZoneRunCoalescing)}),g}(S?S.ngZone:void 0,{ngZoneEventCoalescing:S&&S.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:S&&S.ngZoneRunCoalescing||!1}),We=[{provide:So,useValue:Ie}];return Ie.run(()=>{const ut=Fs.create({providers:We,parent:this.injector,name:g.moduleType.name}),Tt=g.create(ut),Gt=Tt.injector.get(Ec,null);if(!Gt)throw new w("402","");return Ie.runOutsideAngular(()=>{const oi=Ie.onError.subscribe({next:gi=>{Gt.handleError(gi)}});Tt.onDestroy(()=>{wp(this._modules,Tt),oi.unsubscribe()})}),function Wg(c,h,g){try{const S=g();return H2(S)?S.catch(F=>{throw h.runOutsideAngular(()=>c.handleError(F)),F}):S}catch(S){throw h.runOutsideAngular(()=>c.handleError(S)),S}}(Gt,Ie,()=>{const oi=Tt.injector.get($u);return oi.runInitializers(),oi.donePromise.then(()=>(function Wu(c){b(c,"Expected localeId to be defined"),"string"==typeof c&&(rh=c.toLowerCase().replace(/_/g,"-"))}(Tt.injector.get(G3,c0)||c0),this._moduleDoBootstrap(Tt),Tt))})})}bootstrapModule(g,S=[]){const F=e8({},S);return function zg(c,h,g){const S=new rp(g);return Promise.resolve(S)}(0,0,g).then(V=>this.bootstrapModuleFactory(V,F))}_moduleDoBootstrap(g){const S=g.injector.get(k4);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(F=>S.bootstrap(F));else{if(!g.instance.ngDoBootstrap)throw new w("403","");g.instance.ngDoBootstrap(S)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new w("404","");this._modules.slice().forEach(g=>g.destroy()),this._destroyListeners.forEach(g=>g()),this._destroyed=!0}get destroyed(){return this._destroyed}}return c.\u0275fac=function(g){return new(g||c)(ka(Fs))},c.\u0275prov=xe({token:c,factory:c.\u0275fac}),c})();function e8(c,h){return Array.isArray(h)?h.reduce(e8,c):Object.assign(Object.assign({},c),h)}let k4=(()=>{class c{constructor(g,S,F,V,me){this._zone=g,this._injector=S,this._exceptionHandler=F,this._componentFactoryResolver=V,this._initStatus=me,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const Ie=new v.y(ut=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{ut.next(this._stable),ut.complete()})}),We=new v.y(ut=>{let Tt;this._zone.runOutsideAngular(()=>{Tt=this._zone.onStable.subscribe(()=>{So.assertNotInAngularZone(),bp(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,ut.next(!0))})})});const Gt=this._zone.onUnstable.subscribe(()=>{So.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{ut.next(!1)}))});return()=>{Tt.unsubscribe(),Gt.unsubscribe()}});this.isStable=(0,C.T)(Ie,We.pipe((0,o.B)()))}bootstrap(g,S){if(!this._initStatus.done)throw new w("405","");let F;F=g instanceof Zp?g:this._componentFactoryResolver.resolveComponentFactory(g),this.componentTypes.push(F.componentType);const V=function Ug(c){return c.isBoundToModule}(F)?void 0:this._injector.get(Qu),Ie=F.create(Fs.NULL,[],S||F.selector,V),We=Ie.location.nativeElement,ut=Ie.injector.get(qm,null),Tt=ut&&Ie.injector.get(Km);return ut&&Tt&&Tt.registerApplication(We,ut),Ie.onDestroy(()=>{this.detachView(Ie.hostView),wp(this.components,Ie),Tt&&Tt.unregisterApplication(We)}),this._loadComponent(Ie),Ie}tick(){if(this._runningTick)throw new w("101","");try{this._runningTick=!0;for(let g of this._views)g.detectChanges()}catch(g){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(g))}finally{this._runningTick=!1}}attachView(g){const S=g;this._views.push(S),S.attachToAppRef(this)}detachView(g){const S=g;wp(this._views,S),S.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(Vm,[]).concat(this._bootstrapListeners).forEach(F=>F(g))}ngOnDestroy(){this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return c.\u0275fac=function(g){return new(g||c)(ka(So),ka(Fs),ka(Ec),ka(T4),ka($u))},c.\u0275prov=xe({token:c,factory:c.\u0275fac}),c})();function wp(c,h){const g=c.indexOf(h);g>-1&&c.splice(g,1)}let i8=!0,n8=!1;function qg(){return n8=!0,i8}function Kg(){if(n8)throw new Error("Cannot enable prod mode after platform setup.");i8=!1}let Qg=(()=>{class c{}return c.__NG_ELEMENT_ID__=Jg,c})();function Jg(c){return function Xg(c,h,g){if(wi(c)&&!g){const S=ti(c.index,h);return new D4(S,S)}return 47&c.type?new D4(h[16],h):null}(fr(),Pi(),16==(16&c))}class c8{constructor(){}supports(h){return zc(h)}create(h){return new r5(h)}}const n5=(c,h)=>h;class r5{constructor(h){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=h||n5}forEachItem(h){let g;for(g=this._itHead;null!==g;g=g._next)h(g)}forEachOperation(h){let g=this._itHead,S=this._removalsHead,F=0,V=null;for(;g||S;){const me=!S||g&&g.currentIndex{me=this._trackByFn(F,Ie),null!==g&&Object.is(g.trackById,me)?(S&&(g=this._verifyReinsertion(g,Ie,me,F)),Object.is(g.item,Ie)||this._addIdentityChange(g,Ie)):(g=this._mismatch(g,Ie,me,F),S=!0),g=g._next,F++}),this.length=F;return this._truncate(g),this.collection=h,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let h;for(h=this._previousItHead=this._itHead;null!==h;h=h._next)h._nextPrevious=h._next;for(h=this._additionsHead;null!==h;h=h._nextAdded)h.previousIndex=h.currentIndex;for(this._additionsHead=this._additionsTail=null,h=this._movesHead;null!==h;h=h._nextMoved)h.previousIndex=h.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(h,g,S,F){let V;return null===h?V=this._itTail:(V=h._prev,this._remove(h)),null!==(h=null===this._unlinkedRecords?null:this._unlinkedRecords.get(S,null))?(Object.is(h.item,g)||this._addIdentityChange(h,g),this._reinsertAfter(h,V,F)):null!==(h=null===this._linkedRecords?null:this._linkedRecords.get(S,F))?(Object.is(h.item,g)||this._addIdentityChange(h,g),this._moveAfter(h,V,F)):h=this._addAfter(new a5(g,S),V,F),h}_verifyReinsertion(h,g,S,F){let V=null===this._unlinkedRecords?null:this._unlinkedRecords.get(S,null);return null!==V?h=this._reinsertAfter(V,h._prev,F):h.currentIndex!=F&&(h.currentIndex=F,this._addToMoves(h,F)),h}_truncate(h){for(;null!==h;){const g=h._next;this._addToRemovals(this._unlink(h)),h=g}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(h,g,S){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(h);const F=h._prevRemoved,V=h._nextRemoved;return null===F?this._removalsHead=V:F._nextRemoved=V,null===V?this._removalsTail=F:V._prevRemoved=F,this._insertAfter(h,g,S),this._addToMoves(h,S),h}_moveAfter(h,g,S){return this._unlink(h),this._insertAfter(h,g,S),this._addToMoves(h,S),h}_addAfter(h,g,S){return this._insertAfter(h,g,S),this._additionsTail=null===this._additionsTail?this._additionsHead=h:this._additionsTail._nextAdded=h,h}_insertAfter(h,g,S){const F=null===g?this._itHead:g._next;return h._next=F,h._prev=g,null===F?this._itTail=h:F._prev=h,null===g?this._itHead=h:g._next=h,null===this._linkedRecords&&(this._linkedRecords=new h8),this._linkedRecords.put(h),h.currentIndex=S,h}_remove(h){return this._addToRemovals(this._unlink(h))}_unlink(h){null!==this._linkedRecords&&this._linkedRecords.remove(h);const g=h._prev,S=h._next;return null===g?this._itHead=S:g._next=S,null===S?this._itTail=g:S._prev=g,h}_addToMoves(h,g){return h.previousIndex===g||(this._movesTail=null===this._movesTail?this._movesHead=h:this._movesTail._nextMoved=h),h}_addToRemovals(h){return null===this._unlinkedRecords&&(this._unlinkedRecords=new h8),this._unlinkedRecords.put(h),h.currentIndex=null,h._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=h,h._prevRemoved=null):(h._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=h),h}_addIdentityChange(h,g){return h.item=g,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=h:this._identityChangesTail._nextIdentityChange=h,h}}class a5{constructor(h,g){this.item=h,this.trackById=g,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class s5{constructor(){this._head=null,this._tail=null}add(h){null===this._head?(this._head=this._tail=h,h._nextDup=null,h._prevDup=null):(this._tail._nextDup=h,h._prevDup=this._tail,h._nextDup=null,this._tail=h)}get(h,g){let S;for(S=this._head;null!==S;S=S._nextDup)if((null===g||g<=S.currentIndex)&&Object.is(S.trackById,h))return S;return null}remove(h){const g=h._prevDup,S=h._nextDup;return null===g?this._head=S:g._nextDup=S,null===S?this._tail=g:S._prevDup=g,null===this._head}}class h8{constructor(){this.map=new Map}put(h){const g=h.trackById;let S=this.map.get(g);S||(S=new s5,this.map.set(g,S)),S.add(h)}get(h,g){const F=this.map.get(h);return F?F.get(h,g):null}remove(h){const g=h.trackById;return this.map.get(g).remove(h)&&this.map.delete(g),h}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function d8(c,h,g){const S=c.previousIndex;if(null===S)return S;let F=0;return g&&S{if(g&&g.key===F)this._maybeAddToChanges(g,S),this._appendAfter=g,g=g._next;else{const V=this._getOrCreateRecordForKey(F,S);g=this._insertBeforeOrAppend(g,V)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let S=g;null!==S;S=S._nextRemoved)S===this._mapHead&&(this._mapHead=null),this._records.delete(S.key),S._nextRemoved=S._next,S.previousValue=S.currentValue,S.currentValue=null,S._prev=null,S._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(h,g){if(h){const S=h._prev;return g._next=h,g._prev=S,h._prev=g,S&&(S._next=g),h===this._mapHead&&(this._mapHead=g),this._appendAfter=h,h}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}_getOrCreateRecordForKey(h,g){if(this._records.has(h)){const F=this._records.get(h);this._maybeAddToChanges(F,g);const V=F._prev,me=F._next;return V&&(V._next=me),me&&(me._prev=V),F._next=null,F._prev=null,F}const S=new l5(h);return this._records.set(h,S),S.currentValue=g,this._addToAdditions(S),S}_reset(){if(this.isDirty){let h;for(this._previousMapHead=this._mapHead,h=this._previousMapHead;null!==h;h=h._next)h._nextPrevious=h._next;for(h=this._changesHead;null!==h;h=h._nextChanged)h.previousValue=h.currentValue;for(h=this._additionsHead;null!=h;h=h._nextAdded)h.previousValue=h.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(h,g){Object.is(g,h.currentValue)||(h.previousValue=h.currentValue,h.currentValue=g,this._addToChanges(h))}_addToAdditions(h){null===this._additionsHead?this._additionsHead=this._additionsTail=h:(this._additionsTail._nextAdded=h,this._additionsTail=h)}_addToChanges(h){null===this._changesHead?this._changesHead=this._changesTail=h:(this._changesTail._nextChanged=h,this._changesTail=h)}_forEach(h,g){h instanceof Map?h.forEach(g):Object.keys(h).forEach(S=>g(h[S],S))}}class l5{constructor(h){this.key=h,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function f8(){return new W3([new c8])}let W3=(()=>{class c{constructor(g){this.factories=g}static create(g,S){if(null!=S){const F=S.factories.slice();g=g.concat(F)}return new c(g)}static extend(g){return{provide:c,useFactory:S=>c.create(g,S||f8()),deps:[[c,new Ks,new zo]]}}find(g){const S=this.factories.find(F=>F.supports(g));if(null!=S)return S;throw new Error(`Cannot find a differ supporting object '${g}' of type '${function c5(c){return c.name||typeof c}(g)}'`)}}return c.\u0275prov=xe({token:c,providedIn:"root",factory:f8}),c})();function p8(){return new j3([new u8])}let j3=(()=>{class c{constructor(g){this.factories=g}static create(g,S){if(S){const F=S.factories.slice();g=g.concat(F)}return new c(g)}static extend(g){return{provide:c,useFactory:S=>c.create(g,S||p8()),deps:[[c,new Ks,new zo]]}}find(g){const S=this.factories.find(F=>F.supports(g));if(S)return S;throw new Error(`Cannot find a differ supporting object '${g}'`)}}return c.\u0275prov=xe({token:c,providedIn:"root",factory:p8}),c})();const h5=[new u8],u5=new W3([new c8]),f5=new j3(h5),p5=Jm(null,"core",[{provide:Zm,useValue:"unknown"},{provide:$m,deps:[Fs]},{provide:Km,deps:[]},{provide:Gm,deps:[]}]),y5=[{provide:k4,useClass:k4,deps:[So,Fs,Ec,T4,$u]},{provide:R8,deps:[So],useFactory:function b5(c){let h=[];return c.onStable.subscribe(()=>{for(;h.length;)h.pop()()}),function(g){h.push(g)}}},{provide:$u,useClass:$u,deps:[[new zo,_p]]},{provide:yp,useClass:yp,deps:[]},Dg,{provide:W3,useFactory:function m5(){return u5},deps:[]},{provide:j3,useFactory:function g5(){return f5},deps:[]},{provide:G3,useFactory:function _5(c){return c||function v5(){return"undefined"!=typeof $localize&&$localize.locale||c0}()},deps:[[new Ho(G3),new zo,new Ks]]},{provide:Ym,useValue:"USD"}];let x5=(()=>{class c{constructor(g){}}return c.\u0275fac=function(g){return new(g||c)(ka(k4))},c.\u0275mod=ct({type:c}),c.\u0275inj=ze({providers:y5}),c})()},9042:(Ve,Q,m)=>{"use strict";function e(L){for(let O in L){let A=L[O]||"";switch(O){case"display":L.display="flex"===A?["-webkit-flex","flex"]:"inline-flex"===A?["-webkit-inline-flex","inline-flex"]:A;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-"+O]=A;break;case"flex-direction":A=A||"row",L["-webkit-flex-direction"]=A,L["flex-direction"]=A;break;case"order":L.order=L["-webkit-"+O]=isNaN(+A)?"0":A}}return L}m.d(Q,{iQ:()=>v,GK:()=>e,Ar:()=>C,kt:()=>s,tj:()=>M});const t="inline",v=["row","column","row-reverse","column-reverse"];function C(L){let[O,A,E]=o(L);return function R(L,O=null,A=!1){return{display:A?"inline-flex":"flex","box-sizing":"border-box","flex-direction":L,"flex-wrap":O||null}}(O,A,E)}function o(L){L=L?L.toLowerCase():"";let[O,A,E]=L.split(" ");return v.find(P=>P===O)||(O=v[0]),A===t&&(A=E!==t?E:"",E=t),[O,l(A),!!E]}function M(L){let[O]=o(L);return O.indexOf("row")>-1}function l(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 s(L,...O){if(null==L)throw TypeError("Cannot convert undefined or null to object");for(let A of O)if(null!=A)for(let E in A)A.hasOwnProperty(E)&&(L[E]=A[E]);return L}},3270:(Ve,Q,m)=>{"use strict";m.d(Q,{Bs:()=>ie,iR:()=>Fe,IR:()=>E,g5:()=>Z,WU:()=>j,yB:()=>Ge,wY:()=>W,QI:()=>ve,RK:()=>he,Ot:()=>Ue});var e=m(5e3),t=m(9808),v=m(1135),C=m(8306),o=m(6451),M=m(7579),l=m(9042),R=m(9300),s=m(8505);const O={provide:e.tb,useFactory:function L(nt,ft){return()=>{if((0,t.NF)(ft)){const it=Array.from(nt.querySelectorAll(`[class*=${A}]`)),rt=/\bflex-layout-.+?\b/g;it.forEach(Mt=>{Mt.classList.contains(`${A}ssr`)&&Mt.parentNode?Mt.parentNode.removeChild(Mt):Mt.className.replace(rt,"")})}}},deps:[t.K0,e.Lbi],multi:!0},A="flex-layout-";let E=(()=>{class nt{}return nt.\u0275fac=function(it){return new(it||nt)},nt.\u0275mod=e.oAB({type:nt}),nt.\u0275inj=e.cJS({providers:[O]}),nt})();class P{constructor(ft=!1,it="all",rt="",Mt="",Zt=0){this.matches=ft,this.mediaQuery=it,this.mqAlias=rt,this.suffix=Mt,this.priority=Zt,this.property=""}clone(){return new P(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let w=(()=>{class nt{constructor(){this.stylesheet=new Map}addStyleToElement(it,rt,Mt){const Zt=this.stylesheet.get(it);Zt?Zt.set(rt,Mt):this.stylesheet.set(it,new Map([[rt,Mt]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(it,rt){const Mt=this.stylesheet.get(it);let Zt="";if(Mt){const Ft=Mt.get(rt);("number"==typeof Ft||"string"==typeof Ft)&&(Zt=Ft+"")}return Zt}}return nt.\u0275fac=function(it){return new(it||nt)},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();const Z={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},j=new e.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>Z}),W=new e.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),ie=new e.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function ee(nt,ft){return nt=nt?nt.clone():new P,ft&&(nt.mqAlias=ft.alias,nt.mediaQuery=ft.mediaQuery,nt.suffix=ft.suffix,nt.priority=ft.priority),nt}class ve{constructor(){this.shouldCache=!0}sideEffect(ft,it,rt){}}let he=(()=>{class nt{constructor(it,rt,Mt,Zt){this._serverStylesheet=it,this._serverModuleLoaded=rt,this._platformId=Mt,this.layoutConfig=Zt}applyStyleToElement(it,rt,Mt=null){let Zt={};"string"==typeof rt&&(Zt[rt]=Mt,rt=Zt),Zt=this.layoutConfig.disableVendorPrefixes?rt:(0,l.GK)(rt),this._applyMultiValueStyleToElement(Zt,it)}applyStyleToElements(it,rt=[]){const Mt=this.layoutConfig.disableVendorPrefixes?it:(0,l.GK)(it);rt.forEach(Zt=>{this._applyMultiValueStyleToElement(Mt,Zt)})}getFlowDirection(it){const rt="flex-direction";let Mt=this.lookupStyle(it,rt);return[Mt||"row",this.lookupInlineStyle(it,rt)||(0,t.PM)(this._platformId)&&this._serverModuleLoaded?Mt:""]}hasWrap(it){return"wrap"===this.lookupStyle(it,"flex-wrap")}lookupAttributeValue(it,rt){return it.getAttribute(rt)||""}lookupInlineStyle(it,rt){return(0,t.NF)(this._platformId)?it.style.getPropertyValue(rt):this._getServerStyle(it,rt)}lookupStyle(it,rt,Mt=!1){let Zt="";return it&&((Zt=this.lookupInlineStyle(it,rt))||((0,t.NF)(this._platformId)?Mt||(Zt=getComputedStyle(it).getPropertyValue(rt)):this._serverModuleLoaded&&(Zt=this._serverStylesheet.getStyleForElement(it,rt)))),Zt?Zt.trim():""}_applyMultiValueStyleToElement(it,rt){Object.keys(it).sort().forEach(Mt=>{const Zt=it[Mt],Ft=Array.isArray(Zt)?Zt:[Zt];Ft.sort();for(let Vt of Ft)Vt=Vt?Vt+"":"",(0,t.NF)(this._platformId)||!this._serverModuleLoaded?(0,t.NF)(this._platformId)?rt.style.setProperty(Mt,Vt):this._setServerStyle(rt,Mt,Vt):this._serverStylesheet.addStyleToElement(rt,Mt,Vt)})}_setServerStyle(it,rt,Mt){rt=rt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const Zt=this._readStyleAttribute(it);Zt[rt]=Mt||"",this._writeStyleAttribute(it,Zt)}_getServerStyle(it,rt){return this._readStyleAttribute(it)[rt]||""}_readStyleAttribute(it){const rt={},Mt=it.getAttribute("style");if(Mt){const Zt=Mt.split(/;+/g);for(let Ft=0;Ft0){const Ii=Vt.indexOf(":");if(-1===Ii)throw new Error(`Invalid CSS style: ${Vt}`);rt[Vt.substr(0,Ii).trim()]=Vt.substr(Ii+1).trim()}}}return rt}_writeStyleAttribute(it,rt){let Mt="";for(const Zt in rt)rt[Zt]&&(Mt+=Zt+":"+rt[Zt]+";");it.setAttribute("style",Mt)}}return nt.\u0275fac=function(it){return new(it||nt)(e.LFG(w),e.LFG(W),e.LFG(e.Lbi),e.LFG(j))},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();function re(nt,ft){return(ft&&ft.priority||0)-(nt&&nt.priority||0)}function de(nt,ft){return(nt.priority||0)-(ft.priority||0)}let le=(()=>{class nt{constructor(it,rt,Mt){this._zone=it,this._platformId=rt,this._document=Mt,this.source=new v.X(new P(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const it=[];return this.registry.forEach((rt,Mt)=>{rt.matches&&it.push(Mt)}),it}isActive(it){const rt=this.registry.get(it);return rt?rt.matches:this.registerQuery(it).some(Mt=>Mt.matches)}observe(it,rt=!1){if(it&&it.length){const Mt=this._observable$.pipe((0,R.h)(Ft=>!rt||it.indexOf(Ft.mediaQuery)>-1)),Zt=new C.y(Ft=>{const Vt=this.registerQuery(it);if(Vt.length){const Ii=Vt.pop();Vt.forEach(jt=>{Ft.next(jt)}),this.source.next(Ii)}Ft.complete()});return(0,o.T)(Zt,Mt)}return this._observable$}registerQuery(it){const rt=Array.isArray(it)?it:[it],Mt=[];return function y(nt,ft){const it=nt.filter(rt=>!se[rt]);if(it.length>0){const rt=it.join(", ");try{const Mt=ft.createElement("style");Mt.setAttribute("type","text/css"),Mt.styleSheet||Mt.appendChild(ft.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${rt} {.fx-query-test{ }}\n`)),ft.head.appendChild(Mt),it.forEach(Zt=>se[Zt]=Mt)}catch(Mt){console.error(Mt)}}}(rt,this._document),rt.forEach(Zt=>{const Ft=Ii=>{this._zone.run(()=>this.source.next(new P(Ii.matches,Zt)))};let Vt=this.registry.get(Zt);Vt||(Vt=this.buildMQL(Zt),Vt.addListener(Ft),this.pendingRemoveListenerFns.push(()=>Vt.removeListener(Ft)),this.registry.set(Zt,Vt)),Vt.matches&&Mt.push(new P(!0,Zt))}),Mt}ngOnDestroy(){let it;for(;it=this.pendingRemoveListenerFns.pop();)it()}buildMQL(it){return function i(nt,ft){return ft&&window.matchMedia("all").addListener?window.matchMedia(nt):{matches:"all"===nt||""===nt,media:nt,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(it,(0,t.NF)(this._platformId))}}return nt.\u0275fac=function(it){return new(it||nt)(e.LFG(e.R0b),e.LFG(e.Lbi),e.LFG(t.K0))},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();const se={},a=[{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}],p="(orientation: portrait) and (max-width: 599.98px)",u="(orientation: landscape) and (max-width: 959.98px)",_="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",D="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",I="(orientation: portrait) and (min-width: 840px)",x="(orientation: landscape) and (min-width: 1280px)",r={HANDSET:`${p}, ${u}`,TABLET:`${_} , ${D}`,WEB:`${I}, ${x} `,HANDSET_PORTRAIT:`${p}`,TABLET_PORTRAIT:`${_} `,WEB_PORTRAIT:`${I}`,HANDSET_LANDSCAPE:`${u}`,TABLET_LANDSCAPE:`${D}`,WEB_LANDSCAPE:`${x}`},b=[{alias:"handset",priority:2e3,mediaQuery:r.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:r.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:r.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:r.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:r.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:r.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:r.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:r.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:r.WEB_PORTRAIT,overlapping:!0}],U=/(\.|-|_)/g;function N(nt){let ft=nt.length>0?nt.charAt(0):"",it=nt.length>1?nt.slice(1):"";return ft.toUpperCase()+it}const Re=new e.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const nt=(0,e.f3M)(ie),ft=(0,e.f3M)(j),it=[].concat.apply([],(nt||[]).map(Mt=>Array.isArray(Mt)?Mt:[Mt]));return function xe(nt,ft=[]){const it={};return nt.forEach(rt=>{it[rt.alias]=rt}),ft.forEach(rt=>{it[rt.alias]?(0,l.kt)(it[rt.alias],rt):it[rt.alias]=rt}),function be(nt){return nt.forEach(ft=>{ft.suffix||(ft.suffix=function z(nt){return nt.replace(U,"|").split("|").map(N).join("")}(ft.alias),ft.overlapping=!!ft.overlapping)}),nt}(Object.keys(it).map(rt=>it[rt]))}((ft.disableDefaultBps?[]:a).concat(ft.addOrientationBps?b:[]),it)}});let ze=(()=>{class nt{constructor(it){this.findByMap=new Map,this.items=[...it].sort(de)}findByAlias(it){return it?this.findWithPredicate(it,rt=>rt.alias==it):null}findByQuery(it){return this.findWithPredicate(it,rt=>rt.mediaQuery==it)}get overlappings(){return this.items.filter(it=>1==it.overlapping)}get aliases(){return this.items.map(it=>it.alias)}get suffixes(){return this.items.map(it=>it.suffix?it.suffix:"")}findWithPredicate(it,rt){let Mt=this.findByMap.get(it);return Mt||(Mt=this.items.find(rt)||null,this.findByMap.set(it,Mt)),Mt||null}}return nt.\u0275fac=function(it){return new(it||nt)(e.LFG(Re))},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();const Le="print",K={alias:Le,mediaQuery:Le,priority:1e3};let we=(()=>{class nt{constructor(it,rt,Mt){this.breakpoints=it,this.layoutConfig=rt,this._document=Mt,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new Y,this.deactivations=[]}withPrintQuery(it){return[...it,Le]}isPrintEvent(it){return it.mediaQuery.startsWith(Le)}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(it=>this.breakpoints.findByAlias(it)).filter(it=>null!==it)}getEventBreakpoints({mediaQuery:it}){const rt=this.breakpoints.findByQuery(it);return(rt?[...this.printBreakPoints,rt]:this.printBreakPoints).sort(re)}updateEvent(it){let rt=this.breakpoints.findByQuery(it.mediaQuery);return this.isPrintEvent(it)&&(rt=this.getEventBreakpoints(it)[0],it.mediaQuery=rt?rt.mediaQuery:""),ee(it,rt)}registerBeforeAfterPrintHooks(it){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const rt=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(it,this.getEventBreakpoints(new P(!0,Le))),it.updateStyles())},Mt=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(it),it.updateStyles())};this._document.defaultView.addEventListener("beforeprint",rt),this._document.defaultView.addEventListener("afterprint",Mt),this.beforePrintEventListeners.push(rt),this.afterPrintEventListeners.push(Mt)}interceptEvents(it){return this.registerBeforeAfterPrintHooks(it),rt=>{this.isPrintEvent(rt)?rt.matches&&!this.isPrinting?(this.startPrinting(it,this.getEventBreakpoints(rt)),it.updateStyles()):!rt.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(it),it.updateStyles()):this.collectActivations(rt)}}blockPropagation(){return it=>!(this.isPrinting||this.isPrintEvent(it))}startPrinting(it,rt){this.isPrinting=!0,it.activatedBreakpoints=this.queue.addPrintBreakpoints(rt)}stopPrinting(it){it.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(it){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(it.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const rt=this.breakpoints.findByQuery(it.mediaQuery);rt&&(this.deactivations.push(rt),this.deactivations.sort(re))}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(it=>this._document.defaultView.removeEventListener("beforeprint",it)),this.afterPrintEventListeners.forEach(it=>this._document.defaultView.removeEventListener("afterprint",it)))}}return nt.\u0275fac=function(it){return new(it||nt)(e.LFG(ze),e.LFG(j),e.LFG(t.K0))},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();class Y{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(ft){return ft.push(K),ft.sort(re),ft.forEach(it=>this.addBreakpoint(it)),this.printBreakpoints}addBreakpoint(ft){ft&&void 0===this.printBreakpoints.find(rt=>rt.mediaQuery===ft.mediaQuery)&&(this.printBreakpoints=function ae(nt){return!!nt&&nt.mediaQuery.startsWith(Le)}(ft)?[ft,...this.printBreakpoints]:[...this.printBreakpoints,ft])}clear(){this.printBreakpoints=[]}}let Ge=(()=>{class nt{constructor(it,rt,Mt){this.matchMedia=it,this.breakpoints=rt,this.hook=Mt,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 M.x,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(it){const rt=this.findByQuery(it.mediaQuery);rt&&((it=ee(it,rt)).matches&&-1===this.activatedBreakpoints.indexOf(rt)?(this.activatedBreakpoints.push(rt),this.activatedBreakpoints.sort(re),this.updateStyles()):!it.matches&&-1!==this.activatedBreakpoints.indexOf(rt)&&(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(rt),1),this.activatedBreakpoints.sort(re),this.updateStyles()))}init(it,rt,Mt,Zt,Ft=[]){vt(this.updateMap,it,rt,Mt),vt(this.clearMap,it,rt,Zt),this.buildElementKeyMap(it,rt),this.watchExtraTriggers(it,rt,Ft)}getValue(it,rt,Mt){const Zt=this.elementMap.get(it);if(Zt){const Ft=void 0!==Mt?Zt.get(Mt):this.getActivatedValues(Zt,rt);if(Ft)return Ft.get(rt)}}hasValue(it,rt){const Mt=this.elementMap.get(it);if(Mt){const Zt=this.getActivatedValues(Mt,rt);if(Zt)return void 0!==Zt.get(rt)||!1}return!1}setValue(it,rt,Mt,Zt){let Ft=this.elementMap.get(it);if(Ft){const Ii=(Ft.get(Zt)||new Map).set(rt,Mt);Ft.set(Zt,Ii),this.elementMap.set(it,Ft)}else Ft=(new Map).set(Zt,(new Map).set(rt,Mt)),this.elementMap.set(it,Ft);const Vt=this.getValue(it,rt);void 0!==Vt&&this.updateElement(it,rt,Vt)}trackValue(it,rt){return this.subject.asObservable().pipe((0,R.h)(Mt=>Mt.element===it&&Mt.key===rt))}updateStyles(){this.elementMap.forEach((it,rt)=>{const Mt=new Set(this.elementKeyMap.get(rt));let Zt=this.getActivatedValues(it);Zt&&Zt.forEach((Ft,Vt)=>{this.updateElement(rt,Vt,Ft),Mt.delete(Vt)}),Mt.forEach(Ft=>{if(Zt=this.getActivatedValues(it,Ft),Zt){const Vt=Zt.get(Ft);this.updateElement(rt,Ft,Vt)}else this.clearElement(rt,Ft)})})}clearElement(it,rt){const Mt=this.clearMap.get(it);if(Mt){const Zt=Mt.get(rt);Zt&&(Zt(),this.subject.next({element:it,key:rt,value:""}))}}updateElement(it,rt,Mt){const Zt=this.updateMap.get(it);if(Zt){const Ft=Zt.get(rt);Ft&&(Ft(Mt),this.subject.next({element:it,key:rt,value:Mt}))}}releaseElement(it){const rt=this.watcherMap.get(it);rt&&(rt.forEach(Zt=>Zt.unsubscribe()),this.watcherMap.delete(it));const Mt=this.elementMap.get(it);Mt&&(Mt.forEach((Zt,Ft)=>Mt.delete(Ft)),this.elementMap.delete(it))}triggerUpdate(it,rt){const Mt=this.elementMap.get(it);if(Mt){const Zt=this.getActivatedValues(Mt,rt);Zt&&(rt?this.updateElement(it,rt,Zt.get(rt)):Zt.forEach((Ft,Vt)=>this.updateElement(it,Vt,Ft)))}}buildElementKeyMap(it,rt){let Mt=this.elementKeyMap.get(it);Mt||(Mt=new Set,this.elementKeyMap.set(it,Mt)),Mt.add(rt)}watchExtraTriggers(it,rt,Mt){if(Mt&&Mt.length){let Zt=this.watcherMap.get(it);if(Zt||(Zt=new Map,this.watcherMap.set(it,Zt)),!Zt.get(rt)){const Vt=(0,o.T)(...Mt).subscribe(()=>{const Ii=this.getValue(it,rt);this.updateElement(it,rt,Ii)});Zt.set(rt,Vt)}}}findByQuery(it){return this.breakpoints.findByQuery(it)}getActivatedValues(it,rt){for(let Zt=0;ZtMt.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(rt)).pipe((0,s.b)(this.hook.interceptEvents(this)),(0,R.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return nt.\u0275fac=function(it){return new(it||nt)(e.LFG(le),e.LFG(ze),e.LFG(we))},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();function vt(nt,ft,it,rt){if(void 0!==rt){let Mt=nt.get(ft);Mt||(Mt=new Map,nt.set(ft,Mt)),Mt.set(it,rt)}}let Fe=(()=>{class nt{constructor(it,rt,Mt,Zt){this.elementRef=it,this.styleBuilder=rt,this.styler=Mt,this.marshal=Zt,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new M.x,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(it){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,it,this.marshal.activatedAlias)}ngOnChanges(it){Object.keys(it).forEach(rt=>{if(-1!==this.inputs.indexOf(rt)){const Mt=rt.split(".").slice(1).join(".");this.setValue(it[rt].currentValue,Mt)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(it=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),it)}addStyles(it,rt){const Mt=this.styleBuilder,Zt=Mt.shouldCache;let Ft=this.styleCache.get(it);(!Ft||!Zt)&&(Ft=Mt.buildStyles(it,rt),Zt&&this.styleCache.set(it,Ft)),this.mru=Object.assign({},Ft),this.applyStyleToElement(Ft),Mt.sideEffect(it,Ft,rt)}clearStyles(){Object.keys(this.mru).forEach(it=>{this.mru[it]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(it,rt=!1){if(it){const[Mt,Zt]=this.styler.getFlowDirection(it);if(!Zt&&rt){const Ft=(0,l.Ar)(Mt);this.styler.applyStyleToElements(Ft,[it])}return Mt.trim()}return"row"}hasWrap(it){return this.styler.hasWrap(it)}applyStyleToElement(it,rt,Mt=this.nativeElement){this.styler.applyStyleToElement(Mt,it,rt)}setValue(it,rt){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,it,rt)}updateWithValue(it){this.currentValue!==it&&(this.addStyles(it),this.currentValue=it)}}return nt.\u0275fac=function(it){return new(it||nt)(e.Y36(e.SBq),e.Y36(ve),e.Y36(he),e.Y36(Ge))},nt.\u0275dir=e.lG2({type:nt,features:[e.TTD]}),nt})();function Ue(nt,ft="1",it="1"){let rt=[ft,it,nt],Mt=nt.indexOf("calc");if(Mt>0){rt[2]=lt(nt.substring(Mt).trim());let Zt=nt.substr(0,Mt).trim().split(" ");2==Zt.length&&(rt[0]=Zt[0],rt[1]=Zt[1])}else if(0==Mt)rt[2]=lt(nt.trim());else{let Zt=nt.split(" ");rt=3===Zt.length?Zt:[ft,it,nt]}return rt}function lt(nt){return nt.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}},3322:(Ve,Q,m)=>{"use strict";m.d(Q,{oO:()=>Z,Zl:()=>D,aT:()=>r});var e=m(5e3),t=m(3270),v=m(9808),M=(m(3191),m(2722),m(2313));let E=(()=>{class b extends t.iR{constructor(N,z,be,xe,Re,ze,Le){super(N,null,z,be),this.ngClassInstance=Le,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new v.mk(xe,Re,N,ze)),this.init(),this.setValue("","")}set klass(N){this.ngClassInstance.klass=N,this.setValue(N,"")}updateWithValue(N){this.ngClassInstance.ngClass=N,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return b.\u0275fac=function(N){return new(N||b)(e.Y36(e.SBq),e.Y36(t.RK),e.Y36(t.yB),e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.Qsj),e.Y36(v.mk,10))},b.\u0275dir=e.lG2({type:b,inputs:{klass:["class","klass"]},features:[e.qOj]}),b})();const P=["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 Z=(()=>{class b extends E{constructor(){super(...arguments),this.inputs=P}}return b.\u0275fac=function(){let U;return function(z){return(U||(U=e.n5z(b)))(z||b)}}(),b.\u0275dir=e.lG2({type:b,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"},features:[e.qOj]}),b})();class re{constructor(U,N,z=!0){this.key=U,this.value=N,this.key=z?U.replace(/['"]/g,"").trim():U.trim(),this.value=z?N.replace(/['"]/g,"").trim():N.trim(),this.value=this.value.replace(/;/,"")}}function de(b){let U=typeof b;return"object"===U?b.constructor===Array?"array":b.constructor===Set?"set":"object":U}function i(b){const[U,...N]=b.split(":");return new re(U,N.join(":"))}function a(b,U){return U.key&&(b[U.key]=U.value),b}let p=(()=>{class b extends t.iR{constructor(N,z,be,xe,Re,ze,Le,K,we){super(N,null,z,be),this.sanitizer=xe,this.ngStyleInstance=Le,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new v.PC(N,Re,ze)),this.init();const Y=this.nativeElement.getAttribute("style")||"";this.fallbackStyles=this.buildStyleMap(Y),this.isServer=K&&(0,v.PM)(we)}updateWithValue(N){const z=this.buildStyleMap(N);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),z),this.isServer&&this.applyStyleToElement(z),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(N){const z=be=>this.sanitizer.sanitize(e.q3G.STYLE,be)||"";if(N)switch(de(N)){case"string":return I(function le(b,U=";"){return String(b).trim().split(U).map(N=>N.trim()).filter(N=>""!==N)}(N),z);case"array":return I(N,z);default:return function y(b,U){let N=[];return"set"===de(b)?b.forEach(z=>N.push(z)):Object.keys(b).forEach(z=>{N.push(`${z}:${b[z]}`)}),function se(b,U){return b.map(i).filter(z=>!!z).map(z=>(U&&(z.value=U(z.value)),z)).reduce(a,{})}(N,U)}(N,z)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return b.\u0275fac=function(N){return new(N||b)(e.Y36(e.SBq),e.Y36(t.RK),e.Y36(t.yB),e.Y36(M.H7),e.Y36(e.aQg),e.Y36(e.Qsj),e.Y36(v.PC,10),e.Y36(t.wY),e.Y36(e.Lbi))},b.\u0275dir=e.lG2({type:b,features:[e.qOj]}),b})();const u=["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 D=(()=>{class b extends p{constructor(){super(...arguments),this.inputs=u}}return b.\u0275fac=function(){let U;return function(z){return(U||(U=e.n5z(b)))(z||b)}}(),b.\u0275dir=e.lG2({type:b,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"},features:[e.qOj]}),b})();function I(b,U){return b.map(i).filter(z=>!!z).map(z=>(U&&(z.value=U(z.value)),z)).reduce(a,{})}let r=(()=>{class b{}return b.\u0275fac=function(N){return new(N||b)},b.\u0275mod=e.oAB({type:b}),b.\u0275inj=e.cJS({imports:[[t.IR]]}),b})()},7093:(Ve,Q,m)=>{"use strict";m.d(Q,{yH:()=>_,Wh:()=>rt,xw:()=>O,ae:()=>hi});var e=m(5e3),t=m(226),v=m(3270),C=m(9042),M=(m(7579),m(2722));let l=(()=>{class Ze extends v.QI{buildStyles(G){return(0,C.Ar)(G)}}return Ze.\u0275fac=function(){let Ee;return function(ge){return(Ee||(Ee=e.n5z(Ze)))(ge||Ze)}}(),Ze.\u0275prov=e.Yz7({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})();const R=["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 L=(()=>{class Ze extends v.iR{constructor(G,ge,De,et){super(G,De,ge,et),this.DIRECTIVE_KEY="layout",this.styleCache=A,this.init()}}return Ze.\u0275fac=function(G){return new(G||Ze)(e.Y36(e.SBq),e.Y36(v.RK),e.Y36(l),e.Y36(v.yB))},Ze.\u0275dir=e.lG2({type:Ze,features:[e.qOj]}),Ze})(),O=(()=>{class Ze extends L{constructor(){super(...arguments),this.inputs=R}}return Ze.\u0275fac=function(){let Ee;return function(ge){return(Ee||(Ee=e.n5z(Ze)))(ge||Ze)}}(),Ze.\u0275dir=e.lG2({type:Ze,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"},features:[e.qOj]}),Ze})();const A=new Map;let i=(()=>{class Ze extends v.QI{constructor(G){super(),this.layoutConfig=G}buildStyles(G,ge){let[De,et,...$t]=G.split(" "),Nt=$t.join(" ");const Jt=ge.direction.indexOf("column")>-1?"column":"row",ct=(0,C.tj)(Jt)?"max-width":"max-height",ke=(0,C.tj)(Jt)?"min-width":"min-height",Be=String(Nt).indexOf("calc")>-1,at=Be||"auto"===Nt,st=String(Nt).indexOf("%")>-1&&!Be,At=String(Nt).indexOf("px")>-1||String(Nt).indexOf("rem")>-1||String(Nt).indexOf("em")>-1||String(Nt).indexOf("vw")>-1||String(Nt).indexOf("vh")>-1;let li=Be||At;De="0"==De?0:De,et="0"==et?0:et;const Bt=!De&&!et;let Rt={};const Li={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(Nt||""){case"":const si=!1!==this.layoutConfig.useColumnBasisZero;Nt="row"===Jt?"0%":si?"0.000000001px":"auto";break;case"initial":case"nogrow":De=0,Nt="auto";break;case"grow":Nt="100%";break;case"noshrink":et=0,Nt="auto";break;case"auto":break;case"none":De=0,et=0,Nt="auto";break;default:!li&&!st&&!isNaN(Nt)&&(Nt+="%"),"0%"===Nt&&(li=!0),"0px"===Nt&&(Nt="0%"),Rt=(0,C.kt)(Li,Be?{"flex-grow":De,"flex-shrink":et,"flex-basis":li?Nt:"100%"}:{flex:`${De} ${et} ${li?Nt:"100%"}`})}return Rt.flex||Rt["flex-grow"]||(Rt=(0,C.kt)(Li,Be?{"flex-grow":De,"flex-shrink":et,"flex-basis":Nt}:{flex:`${De} ${et} ${Nt}`})),"0%"!==Nt&&"0px"!==Nt&&"0.000000001px"!==Nt&&"auto"!==Nt&&(Rt[ke]=Bt||li&&De?Nt:null,Rt[ct]=Bt||!at&&et?Nt:null),Rt[ke]||Rt[ct]?ge.hasWrap&&(Rt[Be?"flex-basis":"flex"]=Rt[ct]?Be?Rt[ct]:`${De} ${et} ${Rt[ct]}`:Be?Rt[ke]:`${De} ${et} ${Rt[ke]}`):Rt=(0,C.kt)(Li,Be?{"flex-grow":De,"flex-shrink":et,"flex-basis":Nt}:{flex:`${De} ${et} ${Nt}`}),(0,C.kt)(Rt,{"box-sizing":"border-box"})}}return Ze.\u0275fac=function(G){return new(G||Ze)(e.LFG(v.WU))},Ze.\u0275prov=e.Yz7({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})();const a=["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 u=(()=>{class Ze extends v.iR{constructor(G,ge,De,et,$t){super(G,et,ge,$t),this.layoutConfig=De,this.marshal=$t,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(G){this.flexShrink=G||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(G){this.flexGrow=G||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,M.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,M.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(G){const De=G.value.split(" ");this.direction=De[0],this.wrap=void 0!==De[1]&&"wrap"===De[1],this.triggerUpdate()}updateWithValue(G){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 De=this.direction,et=De.startsWith("row"),$t=this.wrap;et&&$t?this.styleCache=x:et&&!$t?this.styleCache=D:!et&&$t?this.styleCache=r:!et&&!$t&&(this.styleCache=I);const Nt=String(G).replace(";",""),Jt=(0,v.Ot)(Nt,this.flexGrow,this.flexShrink);this.addStyles(Jt.join(" "),{direction:De,hasWrap:$t})}triggerReflow(){const G=this.activatedValue;if(void 0!==G){const ge=(0,v.Ot)(G+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,ge.join(" "))}}}return Ze.\u0275fac=function(G){return new(G||Ze)(e.Y36(e.SBq),e.Y36(v.RK),e.Y36(v.WU),e.Y36(i),e.Y36(v.yB))},Ze.\u0275dir=e.lG2({type:Ze,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[e.qOj]}),Ze})(),_=(()=>{class Ze extends u{constructor(){super(...arguments),this.inputs=a}}return Ze.\u0275fac=function(){let Ee;return function(ge){return(Ee||(Ee=e.n5z(Ze)))(ge||Ze)}}(),Ze.\u0275dir=e.lG2({type:Ze,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"},features:[e.qOj]}),Ze})();const D=new Map,I=new Map,x=new Map,r=new Map;let lt=(()=>{class Ze extends v.QI{buildStyles(G,ge){const De={},[et,$t]=G.split(" ");switch(et){case"center":De["justify-content"]="center";break;case"space-around":De["justify-content"]="space-around";break;case"space-between":De["justify-content"]="space-between";break;case"space-evenly":De["justify-content"]="space-evenly";break;case"end":case"flex-end":De["justify-content"]="flex-end";break;default:De["justify-content"]="flex-start"}switch($t){case"start":case"flex-start":De["align-items"]=De["align-content"]="flex-start";break;case"center":De["align-items"]=De["align-content"]="center";break;case"end":case"flex-end":De["align-items"]=De["align-content"]="flex-end";break;case"space-between":De["align-content"]="space-between",De["align-items"]="stretch";break;case"space-around":De["align-content"]="space-around",De["align-items"]="stretch";break;case"baseline":De["align-content"]="stretch",De["align-items"]="baseline";break;default:De["align-items"]=De["align-content"]="stretch"}return(0,C.kt)(De,{display:ge.inline?"inline-flex":"flex","flex-direction":ge.layout,"box-sizing":"border-box","max-width":"stretch"===$t?(0,C.tj)(ge.layout)?null:"100%":null,"max-height":"stretch"===$t&&(0,C.tj)(ge.layout)?"100%":null})}}return Ze.\u0275fac=function(){let Ee;return function(ge){return(Ee||(Ee=e.n5z(Ze)))(ge||Ze)}}(),Ze.\u0275prov=e.Yz7({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})();const nt=["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 it=(()=>{class Ze extends v.iR{constructor(G,ge,De,et){super(G,De,ge,et),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,M.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(G){const ge=this.layout||"row",De=this.inline;"row"===ge&&De?this.styleCache=Ii:"row"!==ge||De?"row-reverse"===ge&&De?this.styleCache=ei:"row-reverse"!==ge||De?"column"===ge&&De?this.styleCache=jt:"column"!==ge||De?"column-reverse"===ge&&De?this.styleCache=ki:"column-reverse"===ge&&!De&&(this.styleCache=Vt):this.styleCache=Zt:this.styleCache=Ft:this.styleCache=Mt,this.addStyles(G,{layout:ge,inline:De})}onLayoutChange(G){const ge=G.value.split(" ");this.layout=ge[0],this.inline=G.value.includes("inline"),C.iQ.find(De=>De===this.layout)||(this.layout="row"),this.triggerUpdate()}}return Ze.\u0275fac=function(G){return new(G||Ze)(e.Y36(e.SBq),e.Y36(v.RK),e.Y36(lt),e.Y36(v.yB))},Ze.\u0275dir=e.lG2({type:Ze,features:[e.qOj]}),Ze})(),rt=(()=>{class Ze extends it{constructor(){super(...arguments),this.inputs=nt}}return Ze.\u0275fac=function(){let Ee;return function(ge){return(Ee||(Ee=e.n5z(Ze)))(ge||Ze)}}(),Ze.\u0275dir=e.lG2({type:Ze,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"},features:[e.qOj]}),Ze})();const Mt=new Map,Zt=new Map,Ft=new Map,Vt=new Map,Ii=new Map,jt=new Map,ei=new Map,ki=new Map;let hi=(()=>{class Ze{}return Ze.\u0275fac=function(G){return new(G||Ze)},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({imports:[[v.IR,t.vT]]}),Ze})()},3075:(Ve,Q,m)=>{"use strict";m.d(Q,{Zs:()=>$n,Fj:()=>P,qu:()=>ja,NI:()=>Ui,oH:()=>dr,u:()=>Ma,sg:()=>Fi,u5:()=>Ha,Fd:()=>Ba,qQ:()=>kr,Cf:()=>j,JU:()=>R,a5:()=>Y,JJ:()=>Ne,JL:()=>ue,F:()=>ye,On:()=>qi,wV:()=>gt,UX:()=>Zn,Q7:()=>ga,kI:()=>ee,_Y:()=>ot});var e=m(5e3),t=m(9808),v=m(457),C=m(4128),o=m(4004);let M=(()=>{class _e{constructor(ne,Qe){this._renderer=ne,this._elementRef=Qe,this.onChange=Wt=>{},this.onTouched=()=>{}}setProperty(ne,Qe){this._renderer.setProperty(this._elementRef.nativeElement,ne,Qe)}registerOnTouched(ne){this.onTouched=ne}registerOnChange(ne){this.onChange=ne}setDisabledState(ne){this.setProperty("disabled",ne)}}return _e.\u0275fac=function(ne){return new(ne||_e)(e.Y36(e.Qsj),e.Y36(e.SBq))},_e.\u0275dir=e.lG2({type:_e}),_e})(),l=(()=>{class _e extends M{}return _e.\u0275fac=function(){let J;return function(Qe){return(J||(J=e.n5z(_e)))(Qe||_e)}}(),_e.\u0275dir=e.lG2({type:_e,features:[e.qOj]}),_e})();const R=new e.OlP("NgValueAccessor"),O={provide:R,useExisting:(0,e.Gpc)(()=>P),multi:!0},E=new e.OlP("CompositionEventMode");let P=(()=>{class _e extends M{constructor(ne,Qe,Wt){super(ne,Qe),this._compositionMode=Wt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function A(){const _e=(0,t.q)()?(0,t.q)().getUserAgent():"";return/android (\d+)/.test(_e.toLowerCase())}())}writeValue(ne){this.setProperty("value",null==ne?"":ne)}_handleInput(ne){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(ne)}_compositionStart(){this._composing=!0}_compositionEnd(ne){this._composing=!1,this._compositionMode&&this.onChange(ne)}}return _e.\u0275fac=function(ne){return new(ne||_e)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(E,8))},_e.\u0275dir=e.lG2({type:_e,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(ne,Qe){1&ne&&e.NdJ("input",function(mi){return Qe._handleInput(mi.target.value)})("blur",function(){return Qe.onTouched()})("compositionstart",function(){return Qe._compositionStart()})("compositionend",function(mi){return Qe._compositionEnd(mi.target.value)})},features:[e._Bn([O]),e.qOj]}),_e})();function w(_e){return null==_e||0===_e.length}function Z(_e){return null!=_e&&"number"==typeof _e.length}const j=new e.OlP("NgValidators"),W=new e.OlP("NgAsyncValidators"),ie=/^(?=.{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(J){return ve(J)}static max(J){return he(J)}static required(J){return re(J)}static requiredTrue(J){return de(J)}static email(J){return function le(_e){return w(_e.value)||ie.test(_e.value)?null:{email:!0}}(J)}static minLength(J){return function se(_e){return J=>w(J.value)||!Z(J.value)?null:J.value.length<_e?{minlength:{requiredLength:_e,actualLength:J.value.length}}:null}(J)}static maxLength(J){return function y(_e){return J=>Z(J.value)&&J.value.length>_e?{maxlength:{requiredLength:_e,actualLength:J.value.length}}:null}(J)}static pattern(J){return function i(_e){if(!_e)return a;let J,ne;return"string"==typeof _e?(ne="","^"!==_e.charAt(0)&&(ne+="^"),ne+=_e,"$"!==_e.charAt(_e.length-1)&&(ne+="$"),J=new RegExp(ne)):(ne=_e.toString(),J=_e),Qe=>{if(w(Qe.value))return null;const Wt=Qe.value;return J.test(Wt)?null:{pattern:{requiredPattern:ne,actualValue:Wt}}}}(J)}static nullValidator(J){return null}static compose(J){return r(J)}static composeAsync(J){return U(J)}}function ve(_e){return J=>{if(w(J.value)||w(_e))return null;const ne=parseFloat(J.value);return!isNaN(ne)&&ne<_e?{min:{min:_e,actual:J.value}}:null}}function he(_e){return J=>{if(w(J.value)||w(_e))return null;const ne=parseFloat(J.value);return!isNaN(ne)&&ne>_e?{max:{max:_e,actual:J.value}}:null}}function re(_e){return w(_e.value)?{required:!0}:null}function de(_e){return!0===_e.value?null:{required:!0}}function a(_e){return null}function p(_e){return null!=_e}function u(_e){const J=(0,e.QGY)(_e)?(0,v.D)(_e):_e;return(0,e.CqO)(J),J}function _(_e){let J={};return _e.forEach(ne=>{J=null!=ne?Object.assign(Object.assign({},J),ne):J}),0===Object.keys(J).length?null:J}function D(_e,J){return J.map(ne=>ne(_e))}function x(_e){return _e.map(J=>function I(_e){return!_e.validate}(J)?J:ne=>J.validate(ne))}function r(_e){if(!_e)return null;const J=_e.filter(p);return 0==J.length?null:function(ne){return _(D(ne,J))}}function b(_e){return null!=_e?r(x(_e)):null}function U(_e){if(!_e)return null;const J=_e.filter(p);return 0==J.length?null:function(ne){const Qe=D(ne,J).map(u);return(0,C.D)(Qe).pipe((0,o.U)(_))}}function N(_e){return null!=_e?U(x(_e)):null}function z(_e,J){return null===_e?[J]:Array.isArray(_e)?[..._e,J]:[_e,J]}function be(_e){return _e._rawValidators}function xe(_e){return _e._rawAsyncValidators}function Re(_e){return _e?Array.isArray(_e)?_e:[_e]:[]}function ze(_e,J){return Array.isArray(_e)?_e.includes(J):_e===J}function Le(_e,J){const ne=Re(J);return Re(_e).forEach(Wt=>{ze(ne,Wt)||ne.push(Wt)}),ne}function K(_e,J){return Re(J).filter(ne=>!ze(_e,ne))}class we{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}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}_setValidators(J){this._rawValidators=J||[],this._composedValidatorFn=b(this._rawValidators)}_setAsyncValidators(J){this._rawAsyncValidators=J||[],this._composedAsyncValidatorFn=N(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(J){this._onDestroyCallbacks.push(J)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(J=>J()),this._onDestroyCallbacks=[]}reset(J){this.control&&this.control.reset(J)}hasError(J,ne){return!!this.control&&this.control.hasError(J,ne)}getError(J,ne){return this.control?this.control.getError(J,ne):null}}class Y extends we{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class ae extends we{get formDirective(){return null}get path(){return null}}class Ge{constructor(J){this._cd=J}is(J){var ne,Qe,Wt;return"submitted"===J?!!(null===(ne=this._cd)||void 0===ne?void 0:ne.submitted):!!(null===(Wt=null===(Qe=this._cd)||void 0===Qe?void 0:Qe.control)||void 0===Wt?void 0:Wt[J])}}let Ne=(()=>{class _e extends Ge{constructor(ne){super(ne)}}return _e.\u0275fac=function(ne){return new(ne||_e)(e.Y36(Y,2))},_e.\u0275dir=e.lG2({type:_e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(ne,Qe){2&ne&&e.ekj("ng-untouched",Qe.is("untouched"))("ng-touched",Qe.is("touched"))("ng-pristine",Qe.is("pristine"))("ng-dirty",Qe.is("dirty"))("ng-valid",Qe.is("valid"))("ng-invalid",Qe.is("invalid"))("ng-pending",Qe.is("pending"))},features:[e.qOj]}),_e})(),ue=(()=>{class _e extends Ge{constructor(ne){super(ne)}}return _e.\u0275fac=function(ne){return new(ne||_e)(e.Y36(ae,10))},_e.\u0275dir=e.lG2({type:_e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(ne,Qe){2&ne&&e.ekj("ng-untouched",Qe.is("untouched"))("ng-touched",Qe.is("touched"))("ng-pristine",Qe.is("pristine"))("ng-dirty",Qe.is("dirty"))("ng-valid",Qe.is("valid"))("ng-invalid",Qe.is("invalid"))("ng-pending",Qe.is("pending"))("ng-submitted",Qe.is("submitted"))},features:[e.qOj]}),_e})();function Mt(_e,J){return[...J.path,_e]}function Zt(_e,J){jt(_e,J),J.valueAccessor.writeValue(_e.value),function ki(_e,J){J.valueAccessor.registerOnChange(ne=>{_e._pendingValue=ne,_e._pendingChange=!0,_e._pendingDirty=!0,"change"===_e.updateOn&&hi(_e,J)})}(_e,J),function Ze(_e,J){const ne=(Qe,Wt)=>{J.valueAccessor.writeValue(Qe),Wt&&J.viewToModelUpdate(Qe)};_e.registerOnChange(ne),J._registerOnDestroy(()=>{_e._unregisterOnChange(ne)})}(_e,J),function ai(_e,J){J.valueAccessor.registerOnTouched(()=>{_e._pendingTouched=!0,"blur"===_e.updateOn&&_e._pendingChange&&hi(_e,J),"submit"!==_e.updateOn&&_e.markAsTouched()})}(_e,J),function Ii(_e,J){if(J.valueAccessor.setDisabledState){const ne=Qe=>{J.valueAccessor.setDisabledState(Qe)};_e.registerOnDisabledChange(ne),J._registerOnDestroy(()=>{_e._unregisterOnDisabledChange(ne)})}}(_e,J)}function Ft(_e,J,ne=!0){const Qe=()=>{};J.valueAccessor&&(J.valueAccessor.registerOnChange(Qe),J.valueAccessor.registerOnTouched(Qe)),ei(_e,J),_e&&(J._invokeOnDestroyCallbacks(),_e._registerOnCollectionChange(()=>{}))}function Vt(_e,J){_e.forEach(ne=>{ne.registerOnValidatorChange&&ne.registerOnValidatorChange(J)})}function jt(_e,J){const ne=be(_e);null!==J.validator?_e.setValidators(z(ne,J.validator)):"function"==typeof ne&&_e.setValidators([ne]);const Qe=xe(_e);null!==J.asyncValidator?_e.setAsyncValidators(z(Qe,J.asyncValidator)):"function"==typeof Qe&&_e.setAsyncValidators([Qe]);const Wt=()=>_e.updateValueAndValidity();Vt(J._rawValidators,Wt),Vt(J._rawAsyncValidators,Wt)}function ei(_e,J){let ne=!1;if(null!==_e){if(null!==J.validator){const Wt=be(_e);if(Array.isArray(Wt)&&Wt.length>0){const mi=Wt.filter(Ct=>Ct!==J.validator);mi.length!==Wt.length&&(ne=!0,_e.setValidators(mi))}}if(null!==J.asyncValidator){const Wt=xe(_e);if(Array.isArray(Wt)&&Wt.length>0){const mi=Wt.filter(Ct=>Ct!==J.asyncValidator);mi.length!==Wt.length&&(ne=!0,_e.setAsyncValidators(mi))}}}const Qe=()=>{};return Vt(J._rawValidators,Qe),Vt(J._rawAsyncValidators,Qe),ne}function hi(_e,J){_e._pendingDirty&&_e.markAsDirty(),_e.setValue(_e._pendingValue,{emitModelToViewChange:!1}),J.viewToModelUpdate(_e._pendingValue),_e._pendingChange=!1}function Ee(_e,J){jt(_e,J)}function et(_e,J){if(!_e.hasOwnProperty("model"))return!1;const ne=_e.model;return!!ne.isFirstChange()||!Object.is(J,ne.currentValue)}function Nt(_e,J){_e._syncPendingControls(),J.forEach(ne=>{const Qe=ne.control;"submit"===Qe.updateOn&&Qe._pendingChange&&(ne.viewToModelUpdate(Qe._pendingValue),Qe._pendingChange=!1)})}function Jt(_e,J){if(!J)return null;let ne,Qe,Wt;return Array.isArray(J),J.forEach(mi=>{mi.constructor===P?ne=mi:function $t(_e){return Object.getPrototypeOf(_e.constructor)===l}(mi)?Qe=mi:Wt=mi}),Wt||Qe||ne||null}function ct(_e,J){const ne=_e.indexOf(J);ne>-1&&_e.splice(ne,1)}const Be="VALID",at="INVALID",st="PENDING",At="DISABLED";function Bt(_e){return(ci(_e)?_e.validators:_e)||null}function Rt(_e){return Array.isArray(_e)?b(_e):_e||null}function Li(_e,J){return(ci(J)?J.asyncValidators:_e)||null}function si(_e){return Array.isArray(_e)?N(_e):_e||null}function ci(_e){return null!=_e&&!Array.isArray(_e)&&"object"==typeof _e}class sn{constructor(J,ne){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=J,this._rawAsyncValidators=ne,this._composedValidatorFn=Rt(this._rawValidators),this._composedAsyncValidatorFn=si(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(J){this._rawValidators=this._composedValidatorFn=J}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(J){this._rawAsyncValidators=this._composedAsyncValidatorFn=J}get parent(){return this._parent}get valid(){return this.status===Be}get invalid(){return this.status===at}get pending(){return this.status==st}get disabled(){return this.status===At}get enabled(){return this.status!==At}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(J){this._rawValidators=J,this._composedValidatorFn=Rt(J)}setAsyncValidators(J){this._rawAsyncValidators=J,this._composedAsyncValidatorFn=si(J)}addValidators(J){this.setValidators(Le(J,this._rawValidators))}addAsyncValidators(J){this.setAsyncValidators(Le(J,this._rawAsyncValidators))}removeValidators(J){this.setValidators(K(J,this._rawValidators))}removeAsyncValidators(J){this.setAsyncValidators(K(J,this._rawAsyncValidators))}hasValidator(J){return ze(this._rawValidators,J)}hasAsyncValidator(J){return ze(this._rawAsyncValidators,J)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(J={}){this.touched=!0,this._parent&&!J.onlySelf&&this._parent.markAsTouched(J)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(J=>J.markAllAsTouched())}markAsUntouched(J={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(ne=>{ne.markAsUntouched({onlySelf:!0})}),this._parent&&!J.onlySelf&&this._parent._updateTouched(J)}markAsDirty(J={}){this.pristine=!1,this._parent&&!J.onlySelf&&this._parent.markAsDirty(J)}markAsPristine(J={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(ne=>{ne.markAsPristine({onlySelf:!0})}),this._parent&&!J.onlySelf&&this._parent._updatePristine(J)}markAsPending(J={}){this.status=st,!1!==J.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!J.onlySelf&&this._parent.markAsPending(J)}disable(J={}){const ne=this._parentMarkedDirty(J.onlySelf);this.status=At,this.errors=null,this._forEachChild(Qe=>{Qe.disable(Object.assign(Object.assign({},J),{onlySelf:!0}))}),this._updateValue(),!1!==J.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},J),{skipPristineCheck:ne})),this._onDisabledChange.forEach(Qe=>Qe(!0))}enable(J={}){const ne=this._parentMarkedDirty(J.onlySelf);this.status=Be,this._forEachChild(Qe=>{Qe.enable(Object.assign(Object.assign({},J),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:J.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},J),{skipPristineCheck:ne})),this._onDisabledChange.forEach(Qe=>Qe(!1))}_updateAncestors(J){this._parent&&!J.onlySelf&&(this._parent.updateValueAndValidity(J),J.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(J){this._parent=J}updateValueAndValidity(J={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Be||this.status===st)&&this._runAsyncValidator(J.emitEvent)),!1!==J.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!J.onlySelf&&this._parent.updateValueAndValidity(J)}_updateTreeValidity(J={emitEvent:!0}){this._forEachChild(ne=>ne._updateTreeValidity(J)),this.updateValueAndValidity({onlySelf:!0,emitEvent:J.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?At:Be}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(J){if(this.asyncValidator){this.status=st,this._hasOwnPendingAsyncValidator=!0;const ne=u(this.asyncValidator(this));this._asyncValidationSubscription=ne.subscribe(Qe=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Qe,{emitEvent:J})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(J,ne={}){this.errors=J,this._updateControlsErrors(!1!==ne.emitEvent)}get(J){return function li(_e,J,ne){if(null==J||(Array.isArray(J)||(J=J.split(ne)),Array.isArray(J)&&0===J.length))return null;let Qe=_e;return J.forEach(Wt=>{Qe=Qe instanceof Di?Qe.controls.hasOwnProperty(Wt)?Qe.controls[Wt]:null:Qe instanceof Xi&&Qe.at(Wt)||null}),Qe}(this,J,".")}getError(J,ne){const Qe=ne?this.get(ne):this;return Qe&&Qe.errors?Qe.errors[J]:null}hasError(J,ne){return!!this.getError(J,ne)}get root(){let J=this;for(;J._parent;)J=J._parent;return J}_updateControlsErrors(J){this.status=this._calculateStatus(),J&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(J)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?At:this.errors?at:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(st)?st:this._anyControlsHaveStatus(at)?at:Be}_anyControlsHaveStatus(J){return this._anyControls(ne=>ne.status===J)}_anyControlsDirty(){return this._anyControls(J=>J.dirty)}_anyControlsTouched(){return this._anyControls(J=>J.touched)}_updatePristine(J={}){this.pristine=!this._anyControlsDirty(),this._parent&&!J.onlySelf&&this._parent._updatePristine(J)}_updateTouched(J={}){this.touched=this._anyControlsTouched(),this._parent&&!J.onlySelf&&this._parent._updateTouched(J)}_isBoxedValue(J){return"object"==typeof J&&null!==J&&2===Object.keys(J).length&&"value"in J&&"disabled"in J}_registerOnCollectionChange(J){this._onCollectionChange=J}_setUpdateStrategy(J){ci(J)&&null!=J.updateOn&&(this._updateOn=J.updateOn)}_parentMarkedDirty(J){return!J&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Ui extends sn{constructor(J=null,ne,Qe){super(Bt(ne),Li(Qe,ne)),this._onChange=[],this._applyFormState(J),this._setUpdateStrategy(ne),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(J,ne={}){this.value=this._pendingValue=J,this._onChange.length&&!1!==ne.emitModelToViewChange&&this._onChange.forEach(Qe=>Qe(this.value,!1!==ne.emitViewToModelChange)),this.updateValueAndValidity(ne)}patchValue(J,ne={}){this.setValue(J,ne)}reset(J=null,ne={}){this._applyFormState(J),this.markAsPristine(ne),this.markAsUntouched(ne),this.setValue(this.value,ne),this._pendingChange=!1}_updateValue(){}_anyControls(J){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(J){this._onChange.push(J)}_unregisterOnChange(J){ct(this._onChange,J)}registerOnDisabledChange(J){this._onDisabledChange.push(J)}_unregisterOnDisabledChange(J){ct(this._onDisabledChange,J)}_forEachChild(J){}_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(J){this._isBoxedValue(J)?(this.value=this._pendingValue=J.value,J.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=J}}class Di extends sn{constructor(J,ne,Qe){super(Bt(ne),Li(Qe,ne)),this.controls=J,this._initObservables(),this._setUpdateStrategy(ne),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(J,ne){return this.controls[J]?this.controls[J]:(this.controls[J]=ne,ne.setParent(this),ne._registerOnCollectionChange(this._onCollectionChange),ne)}addControl(J,ne,Qe={}){this.registerControl(J,ne),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}removeControl(J,ne={}){this.controls[J]&&this.controls[J]._registerOnCollectionChange(()=>{}),delete this.controls[J],this.updateValueAndValidity({emitEvent:ne.emitEvent}),this._onCollectionChange()}setControl(J,ne,Qe={}){this.controls[J]&&this.controls[J]._registerOnCollectionChange(()=>{}),delete this.controls[J],ne&&this.registerControl(J,ne),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}contains(J){return this.controls.hasOwnProperty(J)&&this.controls[J].enabled}setValue(J,ne={}){this._checkAllValuesPresent(J),Object.keys(J).forEach(Qe=>{this._throwIfControlMissing(Qe),this.controls[Qe].setValue(J[Qe],{onlySelf:!0,emitEvent:ne.emitEvent})}),this.updateValueAndValidity(ne)}patchValue(J,ne={}){null!=J&&(Object.keys(J).forEach(Qe=>{this.controls[Qe]&&this.controls[Qe].patchValue(J[Qe],{onlySelf:!0,emitEvent:ne.emitEvent})}),this.updateValueAndValidity(ne))}reset(J={},ne={}){this._forEachChild((Qe,Wt)=>{Qe.reset(J[Wt],{onlySelf:!0,emitEvent:ne.emitEvent})}),this._updatePristine(ne),this._updateTouched(ne),this.updateValueAndValidity(ne)}getRawValue(){return this._reduceChildren({},(J,ne,Qe)=>(J[Qe]=ne instanceof Ui?ne.value:ne.getRawValue(),J))}_syncPendingControls(){let J=this._reduceChildren(!1,(ne,Qe)=>!!Qe._syncPendingControls()||ne);return J&&this.updateValueAndValidity({onlySelf:!0}),J}_throwIfControlMissing(J){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[J])throw new Error(`Cannot find form control with name: ${J}.`)}_forEachChild(J){Object.keys(this.controls).forEach(ne=>{const Qe=this.controls[ne];Qe&&J(Qe,ne)})}_setUpControls(){this._forEachChild(J=>{J.setParent(this),J._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(J){for(const ne of Object.keys(this.controls)){const Qe=this.controls[ne];if(this.contains(ne)&&J(Qe))return!0}return!1}_reduceValue(){return this._reduceChildren({},(J,ne,Qe)=>((ne.enabled||this.disabled)&&(J[Qe]=ne.value),J))}_reduceChildren(J,ne){let Qe=J;return this._forEachChild((Wt,mi)=>{Qe=ne(Qe,Wt,mi)}),Qe}_allControlsDisabled(){for(const J of Object.keys(this.controls))if(this.controls[J].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(J){this._forEachChild((ne,Qe)=>{if(void 0===J[Qe])throw new Error(`Must supply a value for form control with name: '${Qe}'.`)})}}class Xi extends sn{constructor(J,ne,Qe){super(Bt(ne),Li(Qe,ne)),this.controls=J,this._initObservables(),this._setUpdateStrategy(ne),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(J){return this.controls[J]}push(J,ne={}){this.controls.push(J),this._registerControl(J),this.updateValueAndValidity({emitEvent:ne.emitEvent}),this._onCollectionChange()}insert(J,ne,Qe={}){this.controls.splice(J,0,ne),this._registerControl(ne),this.updateValueAndValidity({emitEvent:Qe.emitEvent})}removeAt(J,ne={}){this.controls[J]&&this.controls[J]._registerOnCollectionChange(()=>{}),this.controls.splice(J,1),this.updateValueAndValidity({emitEvent:ne.emitEvent})}setControl(J,ne,Qe={}){this.controls[J]&&this.controls[J]._registerOnCollectionChange(()=>{}),this.controls.splice(J,1),ne&&(this.controls.splice(J,0,ne),this._registerControl(ne)),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(J,ne={}){this._checkAllValuesPresent(J),J.forEach((Qe,Wt)=>{this._throwIfControlMissing(Wt),this.at(Wt).setValue(Qe,{onlySelf:!0,emitEvent:ne.emitEvent})}),this.updateValueAndValidity(ne)}patchValue(J,ne={}){null!=J&&(J.forEach((Qe,Wt)=>{this.at(Wt)&&this.at(Wt).patchValue(Qe,{onlySelf:!0,emitEvent:ne.emitEvent})}),this.updateValueAndValidity(ne))}reset(J=[],ne={}){this._forEachChild((Qe,Wt)=>{Qe.reset(J[Wt],{onlySelf:!0,emitEvent:ne.emitEvent})}),this._updatePristine(ne),this._updateTouched(ne),this.updateValueAndValidity(ne)}getRawValue(){return this.controls.map(J=>J instanceof Ui?J.value:J.getRawValue())}clear(J={}){this.controls.length<1||(this._forEachChild(ne=>ne._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:J.emitEvent}))}_syncPendingControls(){let J=this.controls.reduce((ne,Qe)=>!!Qe._syncPendingControls()||ne,!1);return J&&this.updateValueAndValidity({onlySelf:!0}),J}_throwIfControlMissing(J){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(J))throw new Error(`Cannot find form control at index ${J}`)}_forEachChild(J){this.controls.forEach((ne,Qe)=>{J(ne,Qe)})}_updateValue(){this.value=this.controls.filter(J=>J.enabled||this.disabled).map(J=>J.value)}_anyControls(J){return this.controls.some(ne=>ne.enabled&&J(ne))}_setUpControls(){this._forEachChild(J=>this._registerControl(J))}_checkAllValuesPresent(J){this._forEachChild((ne,Qe)=>{if(void 0===J[Qe])throw new Error(`Must supply a value for form control at index: ${Qe}.`)})}_allControlsDisabled(){for(const J of this.controls)if(J.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(J){J.setParent(this),J._registerOnCollectionChange(this._onCollectionChange)}}const Ke={provide:ae,useExisting:(0,e.Gpc)(()=>ye)},_t=(()=>Promise.resolve(null))();let ye=(()=>{class _e extends ae{constructor(ne,Qe){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new e.vpe,this.form=new Di({},b(ne),N(Qe))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(ne){_t.then(()=>{const Qe=this._findContainer(ne.path);ne.control=Qe.registerControl(ne.name,ne.control),Zt(ne.control,ne),ne.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(ne)})}getControl(ne){return this.form.get(ne.path)}removeControl(ne){_t.then(()=>{const Qe=this._findContainer(ne.path);Qe&&Qe.removeControl(ne.name),ct(this._directives,ne)})}addFormGroup(ne){_t.then(()=>{const Qe=this._findContainer(ne.path),Wt=new Di({});Ee(Wt,ne),Qe.registerControl(ne.name,Wt),Wt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(ne){_t.then(()=>{const Qe=this._findContainer(ne.path);Qe&&Qe.removeControl(ne.name)})}getFormGroup(ne){return this.form.get(ne.path)}updateModel(ne,Qe){_t.then(()=>{this.form.get(ne.path).setValue(Qe)})}setValue(ne){this.control.setValue(ne)}onSubmit(ne){return this.submitted=!0,Nt(this.form,this._directives),this.ngSubmit.emit(ne),!1}onReset(){this.resetForm()}resetForm(ne){this.form.reset(ne),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(ne){return ne.pop(),ne.length?this.form.get(ne):this.form}}return _e.\u0275fac=function(ne){return new(ne||_e)(e.Y36(j,10),e.Y36(W,10))},_e.\u0275dir=e.lG2({type:_e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(ne,Qe){1&ne&&e.NdJ("submit",function(mi){return Qe.onSubmit(mi)})("reset",function(){return Qe.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Ke]),e.qOj]}),_e})();const Ni={provide:Y,useExisting:(0,e.Gpc)(()=>qi)},Si=(()=>Promise.resolve(null))();let qi=(()=>{class _e extends Y{constructor(ne,Qe,Wt,mi){super(),this.control=new Ui,this._registered=!1,this.update=new e.vpe,this._parent=ne,this._setValidators(Qe),this._setAsyncValidators(Wt),this.valueAccessor=Jt(0,mi)}ngOnChanges(ne){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in ne&&this._updateDisabled(ne),et(ne,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Mt(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(ne){this.viewModel=ne,this.update.emit(ne)}_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(){Zt(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(ne){Si.then(()=>{this.control.setValue(ne,{emitViewToModelChange:!1})})}_updateDisabled(ne){const Qe=ne.isDisabled.currentValue,Wt=""===Qe||Qe&&"false"!==Qe;Si.then(()=>{Wt&&!this.control.disabled?this.control.disable():!Wt&&this.control.disabled&&this.control.enable()})}}return _e.\u0275fac=function(ne){return new(ne||_e)(e.Y36(ae,9),e.Y36(j,10),e.Y36(W,10),e.Y36(R,10))},_e.\u0275dir=e.lG2({type:_e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e._Bn([Ni]),e.qOj,e.TTD]}),_e})(),ot=(()=>{class _e{}return _e.\u0275fac=function(ne){return new(ne||_e)},_e.\u0275dir=e.lG2({type:_e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),_e})();const Kt={provide:R,useExisting:(0,e.Gpc)(()=>gt),multi:!0};let gt=(()=>{class _e extends l{writeValue(ne){this.setProperty("value",null==ne?"":ne)}registerOnChange(ne){this.onChange=Qe=>{ne(""==Qe?null:parseFloat(Qe))}}}return _e.\u0275fac=function(){let J;return function(Qe){return(J||(J=e.n5z(_e)))(Qe||_e)}}(),_e.\u0275dir=e.lG2({type:_e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(ne,Qe){1&ne&&e.NdJ("input",function(mi){return Qe.onChange(mi.target.value)})("blur",function(){return Qe.onTouched()})},features:[e._Bn([Kt]),e.qOj]}),_e})(),Ci=(()=>{class _e{}return _e.\u0275fac=function(ne){return new(ne||_e)},_e.\u0275mod=e.oAB({type:_e}),_e.\u0275inj=e.cJS({}),_e})();const _n=new e.OlP("NgModelWithFormControlWarning"),kn={provide:Y,useExisting:(0,e.Gpc)(()=>dr)};let dr=(()=>{class _e extends Y{constructor(ne,Qe,Wt,mi){super(),this._ngModelWarningConfig=mi,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(ne),this._setAsyncValidators(Qe),this.valueAccessor=Jt(0,Wt)}set isDisabled(ne){}ngOnChanges(ne){if(this._isControlChanged(ne)){const Qe=ne.form.previousValue;Qe&&Ft(Qe,this,!1),Zt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}et(ne,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ft(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(ne){this.viewModel=ne,this.update.emit(ne)}_isControlChanged(ne){return ne.hasOwnProperty("form")}}return _e._ngModelWarningSentOnce=!1,_e.\u0275fac=function(ne){return new(ne||_e)(e.Y36(j,10),e.Y36(W,10),e.Y36(R,10),e.Y36(_n,8))},_e.\u0275dir=e.lG2({type:_e,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([kn]),e.qOj,e.TTD]}),_e})();const wi={provide:ae,useExisting:(0,e.Gpc)(()=>Fi)};let Fi=(()=>{class _e extends ae{constructor(ne,Qe){super(),this.validators=ne,this.asyncValidators=Qe,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(ne),this._setAsyncValidators(Qe)}ngOnChanges(ne){this._checkFormPresent(),ne.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(ne){const Qe=this.form.get(ne.path);return Zt(Qe,ne),Qe.updateValueAndValidity({emitEvent:!1}),this.directives.push(ne),Qe}getControl(ne){return this.form.get(ne.path)}removeControl(ne){Ft(ne.control||null,ne,!1),ct(this.directives,ne)}addFormGroup(ne){this._setUpFormContainer(ne)}removeFormGroup(ne){this._cleanUpFormContainer(ne)}getFormGroup(ne){return this.form.get(ne.path)}addFormArray(ne){this._setUpFormContainer(ne)}removeFormArray(ne){this._cleanUpFormContainer(ne)}getFormArray(ne){return this.form.get(ne.path)}updateModel(ne,Qe){this.form.get(ne.path).setValue(Qe)}onSubmit(ne){return this.submitted=!0,Nt(this.form,this.directives),this.ngSubmit.emit(ne),!1}onReset(){this.resetForm()}resetForm(ne){this.form.reset(ne),this.submitted=!1}_updateDomValue(){this.directives.forEach(ne=>{const Qe=ne.control,Wt=this.form.get(ne.path);Qe!==Wt&&(Ft(Qe||null,ne),Wt instanceof Ui&&(Zt(Wt,ne),ne.control=Wt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(ne){const Qe=this.form.get(ne.path);Ee(Qe,ne),Qe.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(ne){if(this.form){const Qe=this.form.get(ne.path);Qe&&function G(_e,J){return ei(_e,J)}(Qe,ne)&&Qe.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){jt(this.form,this),this._oldForm&&ei(this._oldForm,this)}_checkFormPresent(){}}return _e.\u0275fac=function(ne){return new(ne||_e)(e.Y36(j,10),e.Y36(W,10))},_e.\u0275dir=e.lG2({type:_e,selectors:[["","formGroup",""]],hostBindings:function(ne,Qe){1&ne&&e.NdJ("submit",function(mi){return Qe.onSubmit(mi)})("reset",function(){return Qe.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([wi]),e.qOj,e.TTD]}),_e})();const Ra={provide:Y,useExisting:(0,e.Gpc)(()=>Ma)};let Ma=(()=>{class _e extends Y{constructor(ne,Qe,Wt,mi,Ct){super(),this._ngModelWarningConfig=Ct,this._added=!1,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=ne,this._setValidators(Qe),this._setAsyncValidators(Wt),this.valueAccessor=Jt(0,mi)}set isDisabled(ne){}ngOnChanges(ne){this._added||this._setUpControl(),et(ne,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(ne){this.viewModel=ne,this.update.emit(ne)}get path(){return Mt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return _e._ngModelWarningSentOnce=!1,_e.\u0275fac=function(ne){return new(ne||_e)(e.Y36(ae,13),e.Y36(j,10),e.Y36(W,10),e.Y36(R,10),e.Y36(_n,8))},_e.\u0275dir=e.lG2({type:_e,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([Ra]),e.qOj,e.TTD]}),_e})();function vn(_e){return"number"==typeof _e?_e:parseFloat(_e)}let Qn=(()=>{class _e{constructor(){this._validator=a}ngOnChanges(ne){if(this.inputName in ne){const Qe=this.normalizeInput(ne[this.inputName].currentValue);this._validator=this.enabled()?this.createValidator(Qe):a,this._onChange&&this._onChange()}}validate(ne){return this._validator(ne)}registerOnValidatorChange(ne){this._onChange=ne}enabled(){return null!=this[this.inputName]}}return _e.\u0275fac=function(ne){return new(ne||_e)},_e.\u0275dir=e.lG2({type:_e,features:[e.TTD]}),_e})();const Tr={provide:j,useExisting:(0,e.Gpc)(()=>Ba),multi:!0};let Ba=(()=>{class _e extends Qn{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=ne=>vn(ne),this.createValidator=ne=>he(ne)}}return _e.\u0275fac=function(){let J;return function(Qe){return(J||(J=e.n5z(_e)))(Qe||_e)}}(),_e.\u0275dir=e.lG2({type:_e,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(ne,Qe){2&ne&&e.uIk("max",Qe.enabled()?Qe.max:null)},inputs:{max:"max"},features:[e._Bn([Tr]),e.qOj]}),_e})();const Wa={provide:j,useExisting:(0,e.Gpc)(()=>kr),multi:!0};let kr=(()=>{class _e extends Qn{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=ne=>vn(ne),this.createValidator=ne=>ve(ne)}}return _e.\u0275fac=function(){let J;return function(Qe){return(J||(J=e.n5z(_e)))(Qe||_e)}}(),_e.\u0275dir=e.lG2({type:_e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(ne,Qe){2&ne&&e.uIk("min",Qe.enabled()?Qe.min:null)},inputs:{min:"min"},features:[e._Bn([Wa]),e.qOj]}),_e})();const la={provide:j,useExisting:(0,e.Gpc)(()=>ga),multi:!0},Jr={provide:j,useExisting:(0,e.Gpc)(()=>$n),multi:!0};let ga=(()=>{class _e{constructor(){this._required=!1}get required(){return this._required}set required(ne){this._required=null!=ne&&!1!==ne&&"false"!=`${ne}`,this._onChange&&this._onChange()}validate(ne){return this.required?re(ne):null}registerOnValidatorChange(ne){this._onChange=ne}}return _e.\u0275fac=function(ne){return new(ne||_e)},_e.\u0275dir=e.lG2({type:_e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(ne,Qe){2&ne&&e.uIk("required",Qe.required?"":null)},inputs:{required:"required"},features:[e._Bn([la])]}),_e})(),$n=(()=>{class _e extends ga{validate(ne){return this.required?de(ne):null}}return _e.\u0275fac=function(){let J;return function(Qe){return(J||(J=e.n5z(_e)))(Qe||_e)}}(),_e.\u0275dir=e.lG2({type:_e,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(ne,Qe){2&ne&&e.uIk("required",Qe.required?"":null)},features:[e._Bn([Jr]),e.qOj]}),_e})(),Gr=(()=>{class _e{}return _e.\u0275fac=function(ne){return new(ne||_e)},_e.\u0275mod=e.oAB({type:_e}),_e.\u0275inj=e.cJS({imports:[[Ci]]}),_e})(),Ha=(()=>{class _e{}return _e.\u0275fac=function(ne){return new(ne||_e)},_e.\u0275mod=e.oAB({type:_e}),_e.\u0275inj=e.cJS({imports:[Gr]}),_e})(),Zn=(()=>{class _e{static withConfig(ne){return{ngModule:_e,providers:[{provide:_n,useValue:ne.warnOnNgModelWithFormControl}]}}}return _e.\u0275fac=function(ne){return new(ne||_e)},_e.\u0275mod=e.oAB({type:_e}),_e.\u0275inj=e.cJS({imports:[Gr]}),_e})(),ja=(()=>{class _e{group(ne,Qe=null){const Wt=this._reduceControls(ne);let ti,mi=null,Ct=null;return null!=Qe&&(function ns(_e){return void 0!==_e.asyncValidators||void 0!==_e.validators||void 0!==_e.updateOn}(Qe)?(mi=null!=Qe.validators?Qe.validators:null,Ct=null!=Qe.asyncValidators?Qe.asyncValidators:null,ti=null!=Qe.updateOn?Qe.updateOn:void 0):(mi=null!=Qe.validator?Qe.validator:null,Ct=null!=Qe.asyncValidator?Qe.asyncValidator:null)),new Di(Wt,{asyncValidators:Ct,updateOn:ti,validators:mi})}control(ne,Qe,Wt){return new Ui(ne,Qe,Wt)}array(ne,Qe,Wt){const mi=ne.map(Ct=>this._createControl(Ct));return new Xi(mi,Qe,Wt)}_reduceControls(ne){const Qe={};return Object.keys(ne).forEach(Wt=>{Qe[Wt]=this._createControl(ne[Wt])}),Qe}_createControl(ne){return ne instanceof Ui||ne instanceof Di||ne instanceof Xi?ne:Array.isArray(ne)?this.control(ne[0],ne.length>1?ne[1]:null,ne.length>2?ne[2]:null):this.control(ne)}}return _e.\u0275fac=function(ne){return new(ne||_e)},_e.\u0275prov=e.Yz7({token:_e,factory:_e.\u0275fac,providedIn:Zn}),_e})()},1079:(Ve,Q,m)=>{"use strict";m.d(Q,{XC:()=>x,Bb:()=>Le,ZL:()=>xe});var e=m(5664),t=m(3191),v=m(5e3),C=m(508),o=m(727),M=m(7579),l=m(9770),R=m(6451),s=m(9646),L=m(4968),O=m(925),A=m(9808),E=m(9776),P=m(5303),w=m(1159),Z=m(7429),j=m(3075),W=m(7322),ie=m(5698),ee=m(3900),ve=m(9300),he=m(4004),re=m(8505),de=m(4086),le=m(226);const se=["panel"];function y(K,we){if(1&K&&(v.TgZ(0,"div",0,1),v.Hsn(2),v.qZA()),2&K){const Y=we.id,ae=v.oxw();v.Q6J("id",ae.id)("ngClass",ae._classList),v.uIk("aria-label",ae.ariaLabel||null)("aria-labelledby",ae._getPanelAriaLabelledby(Y))}}const i=["*"];let a=0;class p{constructor(we,Y){this.source=we,this.option=Y}}const u=(0,C.Kr)(class{}),_=new v.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function D(){return{autoActiveFirstOption:!1}}});let I=(()=>{class K extends u{constructor(Y,ae,Ge,vt){super(),this._changeDetectorRef=Y,this._elementRef=ae,this._activeOptionChanges=o.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new v.vpe,this.opened=new v.vpe,this.closed=new v.vpe,this.optionActivated=new v.vpe,this._classList={},this.id="mat-autocomplete-"+a++,this.inertGroups=(null==vt?void 0:vt.SAFARI)||!1,this._autoActiveFirstOption=!!Ge.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(Y){this._autoActiveFirstOption=(0,t.Ig)(Y)}set classList(Y){this._classList=Y&&Y.length?(0,t.du)(Y).reduce((ae,Ge)=>(ae[Ge]=!0,ae),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new e.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(Y=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[Y]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(Y){this.panel&&(this.panel.nativeElement.scrollTop=Y)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(Y){const ae=new p(this,Y);this.optionSelected.emit(ae)}_getPanelAriaLabelledby(Y){return this.ariaLabel?null:this.ariaLabelledby?(Y?Y+" ":"")+this.ariaLabelledby:Y}_setVisibilityClasses(Y){Y[this._visibleClass]=this.showPanel,Y[this._hiddenClass]=!this.showPanel}}return K.\u0275fac=function(Y){return new(Y||K)(v.Y36(v.sBO),v.Y36(v.SBq),v.Y36(_),v.Y36(O.t4))},K.\u0275dir=v.lG2({type:K,viewQuery:function(Y,ae){if(1&Y&&(v.Gf(v.Rgc,7),v.Gf(se,5)),2&Y){let Ge;v.iGM(Ge=v.CRH())&&(ae.template=Ge.first),v.iGM(Ge=v.CRH())&&(ae.panel=Ge.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[v.qOj]}),K})(),x=(()=>{class K extends I{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return K.\u0275fac=function(){let we;return function(ae){return(we||(we=v.n5z(K)))(ae||K)}}(),K.\u0275cmp=v.Xpm({type:K,selectors:[["mat-autocomplete"]],contentQueries:function(Y,ae,Ge){if(1&Y&&(v.Suo(Ge,C.K7,5),v.Suo(Ge,C.ey,5)),2&Y){let vt;v.iGM(vt=v.CRH())&&(ae.optionGroups=vt),v.iGM(vt=v.CRH())&&(ae.options=vt)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[v._Bn([{provide:C.HF,useExisting:K}]),v.qOj],ngContentSelectors:i,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(Y,ae){1&Y&&(v.F$t(),v.YNc(0,y,3,4,"ng-template"))},directives:[A.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),K})();const r=new v.OlP("mat-autocomplete-scroll-strategy"),U={provide:r,deps:[E.aV],useFactory:function b(K){return()=>K.scrollStrategies.reposition()}},N={provide:j.JU,useExisting:(0,v.Gpc)(()=>xe),multi:!0};let be=(()=>{class K{constructor(Y,ae,Ge,vt,Fe,Ne,ue,Oe,Pe,q,$){this._element=Y,this._overlay=ae,this._viewContainerRef=Ge,this._zone=vt,this._changeDetectorRef=Fe,this._dir=ue,this._formField=Oe,this._document=Pe,this._viewportRuler=q,this._defaults=$,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=o.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new M.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,l.P)(()=>this.autocomplete&&this.autocomplete.options?(0,R.T)(...this.autocomplete.options.map(ce=>ce.onSelectionChange)):this._zone.onStable.pipe((0,ie.q)(1),(0,ee.w)(()=>this.optionSelections))),this._scrollStrategy=Ne}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(Y){this._autocompleteDisabled=(0,t.Ig)(Y)}ngAfterViewInit(){const Y=this._getWindow();void 0!==Y&&this._zone.runOutsideAngular(()=>Y.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(Y){Y.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const Y=this._getWindow();void 0!==Y&&Y.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,R.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,ve.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,ve.h)(()=>this._overlayAttached)):(0,s.of)()).pipe((0,he.U)(Y=>Y instanceof C.rN?Y:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,R.T)((0,L.R)(this._document,"click"),(0,L.R)(this._document,"auxclick"),(0,L.R)(this._document,"touchend")).pipe((0,ve.h)(Y=>{const ae=(0,O.sA)(Y),Ge=this._formField?this._formField._elementRef.nativeElement:null,vt=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&ae!==this._element.nativeElement&&(!Ge||!Ge.contains(ae))&&(!vt||!vt.contains(ae))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(ae)}))}writeValue(Y){Promise.resolve(null).then(()=>this._setTriggerValue(Y))}registerOnChange(Y){this._onChange=Y}registerOnTouched(Y){this._onTouched=Y}setDisabledState(Y){this._element.nativeElement.disabled=Y}_handleKeydown(Y){const ae=Y.keyCode;if(ae===w.hY&&!(0,w.Vb)(Y)&&Y.preventDefault(),this.activeOption&&ae===w.K5&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),Y.preventDefault();else if(this.autocomplete){const Ge=this.autocomplete._keyManager.activeItem,vt=ae===w.LH||ae===w.JH;this.panelOpen||ae===w.Mf?this.autocomplete._keyManager.onKeydown(Y):vt&&this._canOpen()&&this.openPanel(),(vt||this.autocomplete._keyManager.activeItem!==Ge)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(Y){let ae=Y.target,Ge=ae.value;"number"===ae.type&&(Ge=""==Ge?null:parseFloat(Ge)),this._previousValue!==Ge&&(this._previousValue=Ge,this._onChange(Ge),this._canOpen()&&this._document.activeElement===Y.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(Y=!1){this._formField&&"auto"===this._formField.floatLabel&&(Y?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const Y=this._zone.onStable.pipe((0,ie.q)(1)),ae=this.autocomplete.options.changes.pipe((0,re.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,de.g)(0));return(0,R.T)(Y,ae).pipe((0,ee.w)(()=>{const Ge=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),Ge!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),(0,ie.q)(1)).subscribe(Ge=>this._setValueAndClose(Ge))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(Y){const ae=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(Y):Y,Ge=null!=ae?ae:"";this._formField?this._formField._control.value=Ge:this._element.nativeElement.value=Ge,this._previousValue=Ge}_setValueAndClose(Y){Y&&Y.source&&(this._clearPreviousSelectedOption(Y.source),this._setTriggerValue(Y.source.value),this._onChange(Y.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(Y.source)),this.closePanel()}_clearPreviousSelectedOption(Y){this.autocomplete.options.forEach(ae=>{ae!==Y&&ae.selected&&ae.deselect()})}_attachOverlay(){var Y;let ae=this._overlayRef;ae?(this._positionStrategy.setOrigin(this._getConnectedElement()),ae.updateSize({width:this._getPanelWidth()})):(this._portal=new Z.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(Y=this._formField)||void 0===Y?void 0:Y.getLabelId()}),ae=this._overlay.create(this._getOverlayConfig()),this._overlayRef=ae,ae.keydownEvents().subscribe(vt=>{(vt.keyCode===w.hY&&!(0,w.Vb)(vt)||vt.keyCode===w.LH&&(0,w.Vb)(vt,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),vt.stopPropagation(),vt.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&ae&&ae.updateSize({width:this._getPanelWidth()})})),ae&&!ae.hasAttached()&&(ae.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const Ge=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&Ge!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var Y;return new E.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(Y=this._defaults)||void 0===Y?void 0:Y.overlayPanelClass})}_getOverlayPosition(){const Y=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(Y),this._positionStrategy=Y,Y}_setStrategyPositions(Y){const ae=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Ge=this._aboveClass,vt=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Ge},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Ge}];let Fe;Fe="above"===this.position?vt:"below"===this.position?ae:[...ae,...vt],Y.withPositions(Fe)}_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 Y=this.autocomplete;Y.autoActiveFirstOption?Y._keyManager.setFirstItemActive():Y._keyManager.setActiveItem(-1)}_canOpen(){const Y=this._element.nativeElement;return!Y.readOnly&&!Y.disabled&&!this._autocompleteDisabled}_getWindow(){var Y;return(null===(Y=this._document)||void 0===Y?void 0:Y.defaultView)||window}_scrollToOption(Y){const ae=this.autocomplete,Ge=(0,C.CB)(Y,ae.options,ae.optionGroups);if(0===Y&&1===Ge)ae._setScrollTop(0);else if(ae.panel){const vt=ae.options.toArray()[Y];if(vt){const Fe=vt._getHostElement(),Ne=(0,C.jH)(Fe.offsetTop,Fe.offsetHeight,ae._getScrollTop(),ae.panel.nativeElement.offsetHeight);ae._setScrollTop(Ne)}}}}return K.\u0275fac=function(Y){return new(Y||K)(v.Y36(v.SBq),v.Y36(E.aV),v.Y36(v.s_b),v.Y36(v.R0b),v.Y36(v.sBO),v.Y36(r),v.Y36(le.Is,8),v.Y36(W.G_,9),v.Y36(A.K0,8),v.Y36(P.rL),v.Y36(_,8))},K.\u0275dir=v.lG2({type:K,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[v.TTD]}),K})(),xe=(()=>{class K extends be{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return K.\u0275fac=function(){let we;return function(ae){return(we||(we=v.n5z(K)))(ae||K)}}(),K.\u0275dir=v.lG2({type:K,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(Y,ae){1&Y&&v.NdJ("focusin",function(){return ae._handleFocus()})("blur",function(){return ae._onTouched()})("input",function(vt){return ae._handleInput(vt)})("keydown",function(vt){return ae._handleKeydown(vt)}),2&Y&&v.uIk("autocomplete",ae.autocompleteAttribute)("role",ae.autocompleteDisabled?null:"combobox")("aria-autocomplete",ae.autocompleteDisabled?null:"list")("aria-activedescendant",ae.panelOpen&&ae.activeOption?ae.activeOption.id:null)("aria-expanded",ae.autocompleteDisabled?null:ae.panelOpen.toString())("aria-owns",ae.autocompleteDisabled||!ae.panelOpen||null==ae.autocomplete?null:ae.autocomplete.id)("aria-haspopup",!ae.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[v._Bn([N]),v.qOj]}),K})(),Le=(()=>{class K{}return K.\u0275fac=function(Y){return new(Y||K)},K.\u0275mod=v.oAB({type:K}),K.\u0275inj=v.cJS({providers:[U],imports:[[E.U8,C.Ng,C.BQ,A.ez],P.ZD,C.Ng,C.BQ]}),K})()},7544:(Ve,Q,m)=>{"use strict";m.d(Q,{k:()=>s,g:()=>L});var e=m(5e3),t=m(508),v=m(5664),C=m(3191),o=m(6360);let M=0;const l=(0,t.Id)(class{}),R="mat-badge-content";let s=(()=>{class O extends l{constructor(E,P,w,Z,j){super(),this._ngZone=E,this._elementRef=P,this._ariaDescriber=w,this._renderer=Z,this._animationMode=j,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=M++,this._isInitialized=!1}get color(){return this._color}set color(E){this._setColor(E),this._color=E}get overlap(){return this._overlap}set overlap(E){this._overlap=(0,C.Ig)(E)}get content(){return this._content}set content(E){this._updateRenderedContent(E)}get description(){return this._description}set description(E){this._updateHostAriaDescription(E)}get hidden(){return this._hidden}set hidden(E){this._hidden=(0,C.Ig)(E)}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._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const E=this._renderer.createElement("span"),P="mat-badge-active";return E.setAttribute("id",`mat-badge-content-${this._id}`),E.setAttribute("aria-hidden","true"),E.classList.add(R),"NoopAnimations"===this._animationMode&&E.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(E),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{E.classList.add(P)})}):E.classList.add(P),E}_updateRenderedContent(E){const P=`${null!=E?E:""}`.trim();this._isInitialized&&P&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=P),this._content=P}_updateHostAriaDescription(E){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),E&&this._ariaDescriber.describe(this._elementRef.nativeElement,E),this._description=E}_setColor(E){const P=this._elementRef.nativeElement.classList;P.remove(`mat-badge-${this._color}`),E&&P.add(`mat-badge-${E}`)}_clearExistingBadges(){const E=this._elementRef.nativeElement.querySelectorAll(`:scope > .${R}`);for(const P of Array.from(E))P!==this._badgeElement&&P.remove()}}return O.\u0275fac=function(E){return new(E||O)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(v.$s),e.Y36(e.Qsj),e.Y36(o.Qb,8))},O.\u0275dir=e.lG2({type:O,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(E,P){2&E&&e.ekj("mat-badge-overlap",P.overlap)("mat-badge-above",P.isAbove())("mat-badge-below",!P.isAbove())("mat-badge-before",!P.isAfter())("mat-badge-after",P.isAfter())("mat-badge-small","small"===P.size)("mat-badge-medium","medium"===P.size)("mat-badge-large","large"===P.size)("mat-badge-hidden",P.hidden||!P.content)("mat-badge-disabled",P.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[e.qOj]}),O})(),L=(()=>{class O{}return O.\u0275fac=function(E){return new(E||O)},O.\u0275mod=e.oAB({type:O}),O.\u0275inj=e.cJS({imports:[[v.rt,t.BQ],t.BQ]}),O})()},7423:(Ve,Q,m)=>{"use strict";m.d(Q,{lW:()=>O,ot:()=>E});var e=m(5e3),t=m(508),v=m(6360),C=m(5664);const o=["mat-button",""],M=["*"],s=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],L=(0,t.pj)((0,t.Id)((0,t.Kr)(class{constructor(P){this._elementRef=P}})));let O=(()=>{class P extends L{constructor(Z,j,W){super(Z),this._focusMonitor=j,this._animationMode=W,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const ie of s)this._hasHostAttributes(ie)&&this._getHostElement().classList.add(ie);Z.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(Z,j){Z?this._focusMonitor.focusVia(this._getHostElement(),Z,j):this._getHostElement().focus(j)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...Z){return Z.some(j=>this._getHostElement().hasAttribute(j))}}return P.\u0275fac=function(Z){return new(Z||P)(e.Y36(e.SBq),e.Y36(C.tE),e.Y36(v.Qb,8))},P.\u0275cmp=e.Xpm({type:P,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(Z,j){if(1&Z&&e.Gf(t.wG,5),2&Z){let W;e.iGM(W=e.CRH())&&(j.ripple=W.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(Z,j){2&Z&&(e.uIk("disabled",j.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===j._animationMode)("mat-button-disabled",j.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:o,ngContentSelectors:M,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(Z,j){1&Z&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1),e._UZ(3,"span",2)),2&Z&&(e.xp6(2),e.ekj("mat-button-ripple-round",j.isRoundButton||j.isIconButton),e.Q6J("matRippleDisabled",j._isRippleDisabled())("matRippleCentered",j.isIconButton)("matRippleTrigger",j._getHostElement()))},directives:[t.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),P})(),E=(()=>{class P{}return P.\u0275fac=function(Z){return new(Z||P)},P.\u0275mod=e.oAB({type:P}),P.\u0275inj=e.cJS({imports:[[t.si,t.BQ],t.BQ]}),P})()},9224:(Ve,Q,m)=>{"use strict";m.d(Q,{a8:()=>ve,dn:()=>L,dk:()=>he,QW:()=>de,$j:()=>A,n5:()=>O});var e=m(5e3),t=m(6360),v=m(508);const C=["*",[["mat-card-footer"]]],o=["*","mat-card-footer"],M=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],l=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let L=(()=>{class le{}return le.\u0275fac=function(y){return new(y||le)},le.\u0275dir=e.lG2({type:le,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),le})(),O=(()=>{class le{}return le.\u0275fac=function(y){return new(y||le)},le.\u0275dir=e.lG2({type:le,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),le})(),A=(()=>{class le{}return le.\u0275fac=function(y){return new(y||le)},le.\u0275dir=e.lG2({type:le,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),le})(),ve=(()=>{class le{constructor(y){this._animationMode=y}}return le.\u0275fac=function(y){return new(y||le)(e.Y36(t.Qb,8))},le.\u0275cmp=e.Xpm({type:le,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(y,i){2&y&&e.ekj("_mat-animation-noopable","NoopAnimations"===i._animationMode)},exportAs:["matCard"],ngContentSelectors:o,decls:2,vars:0,template:function(y,i){1&y&&(e.F$t(C),e.Hsn(0),e.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),le})(),he=(()=>{class le{}return le.\u0275fac=function(y){return new(y||le)},le.\u0275cmp=e.Xpm({type:le,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:l,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(y,i){1&y&&(e.F$t(M),e.Hsn(0),e.TgZ(1,"div",0),e.Hsn(2,1),e.qZA(),e.Hsn(3,2))},encapsulation:2,changeDetection:0}),le})(),de=(()=>{class le{}return le.\u0275fac=function(y){return new(y||le)},le.\u0275mod=e.oAB({type:le}),le.\u0275inj=e.cJS({imports:[[v.BQ],v.BQ]}),le})()},7446:(Ve,Q,m)=>{"use strict";m.d(Q,{oG:()=>W,p9:()=>he});var e=m(3191),t=m(5e3),v=m(3075),C=m(508),o=m(6360),M=m(5664),l=m(7144);const R=["input"],s=function(re){return{enterDuration:re}},L=["*"],O=new t.OlP("mat-checkbox-default-options",{providedIn:"root",factory:A});function A(){return{color:"accent",clickAction:"check-indeterminate"}}let E=0;const P=A(),w={provide:v.JU,useExisting:(0,t.Gpc)(()=>W),multi:!0};class Z{}const j=(0,C.sb)((0,C.pj)((0,C.Kr)((0,C.Id)(class{constructor(re){this._elementRef=re}}))));let W=(()=>{class re extends j{constructor(le,se,y,i,a,p,u){super(le),this._changeDetectorRef=se,this._focusMonitor=y,this._ngZone=i,this._animationMode=p,this._options=u,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++E,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new t.vpe,this.indeterminateChange=new t.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||P,this.color=this.defaultColor=this._options.color||P.color,this.tabIndex=parseInt(a)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(le){this._required=(0,e.Ig)(le)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(le=>{le||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(le){le!=this.checked&&(this._checked=le,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(le){const se=(0,e.Ig)(le);se!==this.disabled&&(this._disabled=se,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(le){const se=le!=this._indeterminate;this._indeterminate=(0,e.Ig)(le),se&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(le){this.checked=!!le}registerOnChange(le){this._controlValueAccessorChangeFn=le}registerOnTouched(le){this._onTouched=le}setDisabledState(le){this.disabled=le}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(le){let se=this._currentCheckState,y=this._elementRef.nativeElement;if(se!==le&&(this._currentAnimationClass.length>0&&y.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(se,le),this._currentCheckState=le,this._currentAnimationClass.length>0)){y.classList.add(this._currentAnimationClass);const i=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{y.classList.remove(i)},1e3)})}}_emitChangeEvent(){const le=new Z;le.source=this,le.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(le),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(le){var se;const y=null===(se=this._options)||void 0===se?void 0:se.clickAction;le.stopPropagation(),this.disabled||"noop"===y?!this.disabled&&"noop"===y&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==y&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(le,se){le?this._focusMonitor.focusVia(this._inputElement,le,se):this._inputElement.nativeElement.focus(se)}_onInteractionEvent(le){le.stopPropagation()}_getAnimationClassForCheckStateTransition(le,se){if("NoopAnimations"===this._animationMode)return"";let y="";switch(le){case 0:if(1===se)y="unchecked-checked";else{if(3!=se)return"";y="unchecked-indeterminate"}break;case 2:y=1===se?"unchecked-checked":"unchecked-indeterminate";break;case 1:y=2===se?"checked-unchecked":"checked-indeterminate";break;case 3:y=1===se?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${y}`}_syncIndeterminate(le){const se=this._inputElement;se&&(se.nativeElement.indeterminate=le)}}return re.\u0275fac=function(le){return new(le||re)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(M.tE),t.Y36(t.R0b),t.$8M("tabindex"),t.Y36(o.Qb,8),t.Y36(O,8))},re.\u0275cmp=t.Xpm({type:re,selectors:[["mat-checkbox"]],viewQuery:function(le,se){if(1&le&&(t.Gf(R,5),t.Gf(C.wG,5)),2&le){let y;t.iGM(y=t.CRH())&&(se._inputElement=y.first),t.iGM(y=t.CRH())&&(se.ripple=y.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(le,se){2&le&&(t.Ikx("id",se.id),t.uIk("tabindex",null),t.ekj("mat-checkbox-indeterminate",se.indeterminate)("mat-checkbox-checked",se.checked)("mat-checkbox-disabled",se.disabled)("mat-checkbox-label-before","before"==se.labelPosition)("_mat-animation-noopable","NoopAnimations"===se._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[t._Bn([w]),t.qOj],ngContentSelectors:L,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(le,se){if(1&le&&(t.F$t(),t.TgZ(0,"label",0,1),t.TgZ(2,"span",2),t.TgZ(3,"input",3,4),t.NdJ("change",function(i){return se._onInteractionEvent(i)})("click",function(i){return se._onInputClick(i)}),t.qZA(),t.TgZ(5,"span",5),t._UZ(6,"span",6),t.qZA(),t._UZ(7,"span",7),t.TgZ(8,"span",8),t.O4$(),t.TgZ(9,"svg",9),t._UZ(10,"path",10),t.qZA(),t.kcU(),t._UZ(11,"span",11),t.qZA(),t.qZA(),t.TgZ(12,"span",12,13),t.NdJ("cdkObserveContent",function(){return se._onLabelTextChange()}),t.TgZ(14,"span",14),t._uU(15,"\xa0"),t.qZA(),t.Hsn(16),t.qZA(),t.qZA()),2&le){const y=t.MAs(1),i=t.MAs(13);t.uIk("for",se.inputId),t.xp6(2),t.ekj("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),t.xp6(1),t.Q6J("id",se.inputId)("required",se.required)("checked",se.checked)("disabled",se.disabled)("tabIndex",se.tabIndex),t.uIk("value",se.value)("name",se.name)("aria-label",se.ariaLabel||null)("aria-labelledby",se.ariaLabelledby)("aria-checked",se._getAriaChecked())("aria-describedby",se.ariaDescribedby),t.xp6(2),t.Q6J("matRippleTrigger",y)("matRippleDisabled",se._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",t.VKq(19,s,"NoopAnimations"===se._animationMode?0:150))}},directives:[C.wG,l.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-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 mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),re})(),ve=(()=>{class re{}return re.\u0275fac=function(le){return new(le||re)},re.\u0275mod=t.oAB({type:re}),re.\u0275inj=t.cJS({}),re})(),he=(()=>{class re{}return re.\u0275fac=function(le){return new(le||re)},re.\u0275mod=t.oAB({type:re}),re.\u0275inj=t.cJS({imports:[[C.si,C.BQ,l.Q8,ve],C.BQ,ve]}),re})()},508:(Ve,Q,m)=>{"use strict";m.d(Q,{yN:()=>ie,mZ:()=>ee,_A:()=>r,rD:()=>Le,sG:()=>b,K7:()=>Zt,HF:()=>ft,Y2:()=>ce,BQ:()=>de,X2:()=>K,uc:()=>ae,XK:()=>Re,ey:()=>ei,Ng:()=>hi,rN:()=>Ii,nP:()=>lt,us:()=>nt,wG:()=>Me,si:()=>Ue,LF:()=>z,IR:()=>Pe,CB:()=>ki,jH:()=>ai,pj:()=>a,Kr:()=>p,Id:()=>i,FD:()=>_,dB:()=>D,sb:()=>u,E0:()=>we});var e=m(5e3),t=m(226),C=m(9808),o=m(925),M=m(5664),l=m(3191),R=m(7579),s=m(8306),L=m(8675),O=m(6360),A=m(1159);function w(Ze,Ee){if(1&Ze&&e._UZ(0,"mat-pseudo-checkbox",4),2&Ze){const G=e.oxw();e.Q6J("state",G.selected?"checked":"unchecked")("disabled",G.disabled)}}function Z(Ze,Ee){if(1&Ze&&(e.TgZ(0,"span",5),e._uU(1),e.qZA()),2&Ze){const G=e.oxw();e.xp6(1),e.hij("(",G.group.label,")")}}const j=["*"];let ie=(()=>{class Ze{}return Ze.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Ze.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Ze.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Ze.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Ze})(),ee=(()=>{class Ze{}return Ze.COMPLEX="375ms",Ze.ENTERING="225ms",Ze.EXITING="195ms",Ze})();const re=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function he(){return!0}});let de=(()=>{class Ze{constructor(G,ge,De){this._sanityChecks=ge,this._document=De,this._hasDoneGlobalChecks=!1,G._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(G){return!(0,o.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[G])}}return Ze.\u0275fac=function(G){return new(G||Ze)(e.LFG(M.qm),e.LFG(re,8),e.LFG(C.K0))},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({imports:[[t.vT],t.vT]}),Ze})();function i(Ze){return class extends Ze{constructor(...Ee){super(...Ee),this._disabled=!1}get disabled(){return this._disabled}set disabled(Ee){this._disabled=(0,l.Ig)(Ee)}}}function a(Ze,Ee){return class extends Ze{constructor(...G){super(...G),this.defaultColor=Ee,this.color=Ee}get color(){return this._color}set color(G){const ge=G||this.defaultColor;ge!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),ge&&this._elementRef.nativeElement.classList.add(`mat-${ge}`),this._color=ge)}}}function p(Ze){return class extends Ze{constructor(...Ee){super(...Ee),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Ee){this._disableRipple=(0,l.Ig)(Ee)}}}function u(Ze,Ee=0){return class extends Ze{constructor(...G){super(...G),this._tabIndex=Ee,this.defaultTabIndex=Ee}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(G){this._tabIndex=null!=G?(0,l.su)(G):this.defaultTabIndex}}}function _(Ze){return class extends Ze{constructor(...Ee){super(...Ee),this.stateChanges=new R.x,this.errorState=!1}updateErrorState(){const Ee=this.errorState,et=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);et!==Ee&&(this.errorState=et,this.stateChanges.next())}}}function D(Ze){return class extends Ze{constructor(...Ee){super(...Ee),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new s.y(G=>{this._isInitialized?this._notifySubscriber(G):this._pendingSubscribers.push(G)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Ee){Ee.next(),Ee.complete()}}}const I=new e.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function x(){return(0,e.f3M)(e.soG)}});class r{constructor(){this._localeChanges=new R.x,this.localeChanges=this._localeChanges}getValidDateOrNull(Ee){return this.isDateInstance(Ee)&&this.isValid(Ee)?Ee:null}deserialize(Ee){return null==Ee||this.isDateInstance(Ee)&&this.isValid(Ee)?Ee:this.invalid()}setLocale(Ee){this.locale=Ee,this._localeChanges.next()}compareDate(Ee,G){return this.getYear(Ee)-this.getYear(G)||this.getMonth(Ee)-this.getMonth(G)||this.getDate(Ee)-this.getDate(G)}sameDate(Ee,G){if(Ee&&G){let ge=this.isValid(Ee),De=this.isValid(G);return ge&&De?!this.compareDate(Ee,G):ge==De}return Ee==G}clampDate(Ee,G,ge){return G&&this.compareDate(Ee,G)<0?G:ge&&this.compareDate(Ee,ge)>0?ge:Ee}}const b=new e.OlP("mat-date-formats"),U=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function N(Ze,Ee){const G=Array(Ze);for(let ge=0;ge{class Ze extends r{constructor(G,ge){super(),this.useUtcForDisplay=!1,super.setLocale(G)}getYear(G){return G.getFullYear()}getMonth(G){return G.getMonth()}getDate(G){return G.getDate()}getDayOfWeek(G){return G.getDay()}getMonthNames(G){const ge=new Intl.DateTimeFormat(this.locale,{month:G,timeZone:"utc"});return N(12,De=>this._format(ge,new Date(2017,De,1)))}getDateNames(){const G=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return N(31,ge=>this._format(G,new Date(2017,0,ge+1)))}getDayOfWeekNames(G){const ge=new Intl.DateTimeFormat(this.locale,{weekday:G,timeZone:"utc"});return N(7,De=>this._format(ge,new Date(2017,0,De+1)))}getYearName(G){const ge=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(ge,G)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(G){return this.getDate(this._createDateWithOverflow(this.getYear(G),this.getMonth(G)+1,0))}clone(G){return new Date(G.getTime())}createDate(G,ge,De){let et=this._createDateWithOverflow(G,ge,De);return et.getMonth(),et}today(){return new Date}parse(G){return"number"==typeof G?new Date(G):G?new Date(Date.parse(G)):null}format(G,ge){if(!this.isValid(G))throw Error("NativeDateAdapter: Cannot format invalid date.");const De=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},ge),{timeZone:"utc"}));return this._format(De,G)}addCalendarYears(G,ge){return this.addCalendarMonths(G,12*ge)}addCalendarMonths(G,ge){let De=this._createDateWithOverflow(this.getYear(G),this.getMonth(G)+ge,this.getDate(G));return this.getMonth(De)!=((this.getMonth(G)+ge)%12+12)%12&&(De=this._createDateWithOverflow(this.getYear(De),this.getMonth(De),0)),De}addCalendarDays(G,ge){return this._createDateWithOverflow(this.getYear(G),this.getMonth(G),this.getDate(G)+ge)}toIso8601(G){return[G.getUTCFullYear(),this._2digit(G.getUTCMonth()+1),this._2digit(G.getUTCDate())].join("-")}deserialize(G){if("string"==typeof G){if(!G)return null;if(U.test(G)){let ge=new Date(G);if(this.isValid(ge))return ge}}return super.deserialize(G)}isDateInstance(G){return G instanceof Date}isValid(G){return!isNaN(G.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(G,ge,De){const et=new Date;return et.setFullYear(G,ge,De),et.setHours(0,0,0,0),et}_2digit(G){return("00"+G).slice(-2)}_format(G,ge){const De=new Date;return De.setUTCFullYear(ge.getFullYear(),ge.getMonth(),ge.getDate()),De.setUTCHours(ge.getHours(),ge.getMinutes(),ge.getSeconds(),ge.getMilliseconds()),G.format(De)}}return Ze.\u0275fac=function(G){return new(G||Ze)(e.LFG(I,8),e.LFG(o.t4))},Ze.\u0275prov=e.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})();const be={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let xe=(()=>{class Ze{}return Ze.\u0275fac=function(G){return new(G||Ze)},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({providers:[{provide:r,useClass:z}],imports:[[o.ud]]}),Ze})(),Re=(()=>{class Ze{}return Ze.\u0275fac=function(G){return new(G||Ze)},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({providers:[{provide:b,useValue:be}],imports:[[xe]]}),Ze})(),Le=(()=>{class Ze{isErrorState(G,ge){return!!(G&&G.invalid&&(G.touched||ge&&ge.submitted))}}return Ze.\u0275fac=function(G){return new(G||Ze)},Ze.\u0275prov=e.Yz7({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})(),K=(()=>{class Ze{}return Ze.\u0275fac=function(G){return new(G||Ze)},Ze.\u0275dir=e.lG2({type:Ze,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Ze})();function we(Ze,Ee,G="mat"){Ze.changes.pipe((0,L.O)(Ze)).subscribe(({length:ge})=>{Y(Ee,`${G}-2-line`,!1),Y(Ee,`${G}-3-line`,!1),Y(Ee,`${G}-multi-line`,!1),2===ge||3===ge?Y(Ee,`${G}-${ge}-line`,!0):ge>3&&Y(Ee,`${G}-multi-line`,!0)})}function Y(Ze,Ee,G){Ze.nativeElement.classList.toggle(Ee,G)}let ae=(()=>{class Ze{}return Ze.\u0275fac=function(G){return new(G||Ze)},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({imports:[[de],de]}),Ze})();class Ge{constructor(Ee,G,ge){this._renderer=Ee,this.element=G,this.config=ge,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const vt={enterDuration:225,exitDuration:150},Ne=(0,o.i$)({passive:!0}),ue=["mousedown","touchstart"],Oe=["mouseup","mouseleave","touchend","touchcancel"];class Pe{constructor(Ee,G,ge,De){this._target=Ee,this._ngZone=G,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,De.isBrowser&&(this._containerElement=(0,l.fI)(ge))}fadeInRipple(Ee,G,ge={}){const De=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),et=Object.assign(Object.assign({},vt),ge.animation);ge.centered&&(Ee=De.left+De.width/2,G=De.top+De.height/2);const $t=ge.radius||function $(Ze,Ee,G){const ge=Math.max(Math.abs(Ze-G.left),Math.abs(Ze-G.right)),De=Math.max(Math.abs(Ee-G.top),Math.abs(Ee-G.bottom));return Math.sqrt(ge*ge+De*De)}(Ee,G,De),Nt=Ee-De.left,Jt=G-De.top,ct=et.enterDuration,ke=document.createElement("div");ke.classList.add("mat-ripple-element"),ke.style.left=Nt-$t+"px",ke.style.top=Jt-$t+"px",ke.style.height=2*$t+"px",ke.style.width=2*$t+"px",null!=ge.color&&(ke.style.backgroundColor=ge.color),ke.style.transitionDuration=`${ct}ms`,this._containerElement.appendChild(ke),function q(Ze){window.getComputedStyle(Ze).getPropertyValue("opacity")}(ke),ke.style.transform="scale(1)";const Be=new Ge(this,ke,ge);return Be.state=0,this._activeRipples.add(Be),ge.persistent||(this._mostRecentTransientRipple=Be),this._runTimeoutOutsideZone(()=>{const at=Be===this._mostRecentTransientRipple;Be.state=1,!ge.persistent&&(!at||!this._isPointerDown)&&Be.fadeOut()},ct),Be}fadeOutRipple(Ee){const G=this._activeRipples.delete(Ee);if(Ee===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!G)return;const ge=Ee.element,De=Object.assign(Object.assign({},vt),Ee.config.animation);ge.style.transitionDuration=`${De.exitDuration}ms`,ge.style.opacity="0",Ee.state=2,this._runTimeoutOutsideZone(()=>{Ee.state=3,ge.remove()},De.exitDuration)}fadeOutAll(){this._activeRipples.forEach(Ee=>Ee.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(Ee=>{Ee.config.persistent||Ee.fadeOut()})}setupTriggerEvents(Ee){const G=(0,l.fI)(Ee);!G||G===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=G,this._registerEvents(ue))}handleEvent(Ee){"mousedown"===Ee.type?this._onMousedown(Ee):"touchstart"===Ee.type?this._onTouchStart(Ee):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Oe),this._pointerUpEventsRegistered=!0)}_onMousedown(Ee){const G=(0,M.X6)(Ee),ge=this._lastTouchStartEvent&&Date.now(){!Ee.config.persistent&&(1===Ee.state||Ee.config.terminateOnPointerUp&&0===Ee.state)&&Ee.fadeOut()}))}_runTimeoutOutsideZone(Ee,G=0){this._ngZone.runOutsideAngular(()=>setTimeout(Ee,G))}_registerEvents(Ee){this._ngZone.runOutsideAngular(()=>{Ee.forEach(G=>{this._triggerElement.addEventListener(G,this,Ne)})})}_removeTriggerEvents(){this._triggerElement&&(ue.forEach(Ee=>{this._triggerElement.removeEventListener(Ee,this,Ne)}),this._pointerUpEventsRegistered&&Oe.forEach(Ee=>{this._triggerElement.removeEventListener(Ee,this,Ne)}))}}const ce=new e.OlP("mat-ripple-global-options");let Me=(()=>{class Ze{constructor(G,ge,De,et,$t){this._elementRef=G,this._animationMode=$t,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=et||{},this._rippleRenderer=new Pe(this,ge,G,De)}get disabled(){return this._disabled}set disabled(G){G&&this.fadeOutAllNonPersistent(),this._disabled=G,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(G){this._trigger=G,this._setupTriggerEventsIfEnabled()}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:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{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(G,ge=0,De){return"number"==typeof G?this._rippleRenderer.fadeInRipple(G,ge,Object.assign(Object.assign({},this.rippleConfig),De)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),G))}}return Ze.\u0275fac=function(G){return new(G||Ze)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(o.t4),e.Y36(ce,8),e.Y36(O.Qb,8))},Ze.\u0275dir=e.lG2({type:Ze,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(G,ge){2&G&&e.ekj("mat-ripple-unbounded",ge.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),Ze})(),Ue=(()=>{class Ze{}return Ze.\u0275fac=function(G){return new(G||Ze)},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({imports:[[de,o.ud],de]}),Ze})(),lt=(()=>{class Ze{constructor(G){this._animationMode=G,this.state="unchecked",this.disabled=!1}}return Ze.\u0275fac=function(G){return new(G||Ze)(e.Y36(O.Qb,8))},Ze.\u0275cmp=e.Xpm({type:Ze,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(G,ge){2&G&&e.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===ge.state)("mat-pseudo-checkbox-checked","checked"===ge.state)("mat-pseudo-checkbox-disabled",ge.disabled)("_mat-animation-noopable","NoopAnimations"===ge._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(G,ge){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;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-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),Ze})(),nt=(()=>{class Ze{}return Ze.\u0275fac=function(G){return new(G||Ze)},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({imports:[[de]]}),Ze})();const ft=new e.OlP("MAT_OPTION_PARENT_COMPONENT"),Zt=new e.OlP("MatOptgroup");let Vt=0;class Ii{constructor(Ee,G=!1){this.source=Ee,this.isUserInput=G}}let jt=(()=>{class Ze{constructor(G,ge,De,et){this._element=G,this._changeDetectorRef=ge,this._parent=De,this.group=et,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Vt++,this.onSelectionChange=new e.vpe,this._stateChanges=new R.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(G){this._disabled=(0,l.Ig)(G)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(G,ge){const De=this._getHostElement();"function"==typeof De.focus&&De.focus(ge)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(G){(G.keyCode===A.K5||G.keyCode===A.L_)&&!(0,A.Vb)(G)&&(this._selectViaInteraction(),G.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const G=this.viewValue;G!==this._mostRecentViewValue&&(this._mostRecentViewValue=G,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(G=!1){this.onSelectionChange.emit(new Ii(this,G))}}return Ze.\u0275fac=function(G){e.$Z()},Ze.\u0275dir=e.lG2({type:Ze,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Ze})(),ei=(()=>{class Ze extends jt{constructor(G,ge,De,et){super(G,ge,De,et)}}return Ze.\u0275fac=function(G){return new(G||Ze)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(ft,8),e.Y36(Zt,8))},Ze.\u0275cmp=e.Xpm({type:Ze,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(G,ge){1&G&&e.NdJ("click",function(){return ge._selectViaInteraction()})("keydown",function(et){return ge._handleKeydown(et)}),2&G&&(e.Ikx("id",ge.id),e.uIk("tabindex",ge._getTabIndex())("aria-selected",ge._getAriaSelected())("aria-disabled",ge.disabled.toString()),e.ekj("mat-selected",ge.selected)("mat-option-multiple",ge.multiple)("mat-active",ge.active)("mat-option-disabled",ge.disabled))},exportAs:["matOption"],features:[e.qOj],ngContentSelectors:j,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(G,ge){1&G&&(e.F$t(),e.YNc(0,w,1,2,"mat-pseudo-checkbox",0),e.TgZ(1,"span",1),e.Hsn(2),e.qZA(),e.YNc(3,Z,2,1,"span",2),e._UZ(4,"div",3)),2&G&&(e.Q6J("ngIf",ge.multiple),e.xp6(3),e.Q6J("ngIf",ge.group&&ge.group._inert),e.xp6(1),e.Q6J("matRippleTrigger",ge._getHostElement())("matRippleDisabled",ge.disabled||ge.disableRipple))},directives:[C.O5,Me,lt],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Ze})();function ki(Ze,Ee,G){if(G.length){let ge=Ee.toArray(),De=G.toArray(),et=0;for(let $t=0;$tG+ge?Math.max(0,Ze-ge+Ee):G}let hi=(()=>{class Ze{}return Ze.\u0275fac=function(G){return new(G||Ze)},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({imports:[[Ue,C.ez,de,nt]]}),Ze})()},6856:(Ve,Q,m)=>{"use strict";m.d(Q,{Mq:()=>Nt,hl:()=>st,FA:()=>ye,nW:()=>li});var e=m(5664),t=m(9776),v=m(7429),C=m(9808),o=m(5e3),M=m(7423),l=m(5303),R=m(508),s=m(7579),L=m(727),O=m(6451),A=m(9646),E=m(1159),P=m(5698),w=m(8675),Z=m(9300),j=m(226),W=m(3191),ie=m(925),ee=m(1777),ve=m(3075),he=m(7322),re=m(7531);const de=["mat-calendar-body",""];function le(qe,yt){if(1&qe&&(o.TgZ(0,"tr",2),o.TgZ(1,"td",3),o._uU(2),o.qZA(),o.qZA()),2&qe){const pe=o.oxw();o.xp6(1),o.Udp("padding-top",pe._cellPadding)("padding-bottom",pe._cellPadding),o.uIk("colspan",pe.numCols),o.xp6(1),o.hij(" ",pe.label," ")}}function se(qe,yt){if(1&qe&&(o.TgZ(0,"td",3),o._uU(1),o.qZA()),2&qe){const pe=o.oxw(2);o.Udp("padding-top",pe._cellPadding)("padding-bottom",pe._cellPadding),o.uIk("colspan",pe._firstRowOffset),o.xp6(1),o.hij(" ",pe._firstRowOffset>=pe.labelMinRequiredCells?pe.label:""," ")}}function y(qe,yt){if(1&qe){const pe=o.EpF();o.TgZ(0,"td",7),o.NdJ("click",function(St){const yi=o.CHM(pe).$implicit;return o.oxw(2)._cellClicked(yi,St)}),o.TgZ(1,"div",8),o._uU(2),o.qZA(),o._UZ(3,"div",9),o.qZA()}if(2&qe){const pe=yt.$implicit,Je=yt.index,St=o.oxw().index,kt=o.oxw();o.Udp("width",kt._cellWidth)("padding-top",kt._cellPadding)("padding-bottom",kt._cellPadding),o.ekj("mat-calendar-body-disabled",!pe.enabled)("mat-calendar-body-active",kt._isActiveCell(St,Je))("mat-calendar-body-range-start",kt._isRangeStart(pe.compareValue))("mat-calendar-body-range-end",kt._isRangeEnd(pe.compareValue))("mat-calendar-body-in-range",kt._isInRange(pe.compareValue))("mat-calendar-body-comparison-bridge-start",kt._isComparisonBridgeStart(pe.compareValue,St,Je))("mat-calendar-body-comparison-bridge-end",kt._isComparisonBridgeEnd(pe.compareValue,St,Je))("mat-calendar-body-comparison-start",kt._isComparisonStart(pe.compareValue))("mat-calendar-body-comparison-end",kt._isComparisonEnd(pe.compareValue))("mat-calendar-body-in-comparison-range",kt._isInComparisonRange(pe.compareValue))("mat-calendar-body-preview-start",kt._isPreviewStart(pe.compareValue))("mat-calendar-body-preview-end",kt._isPreviewEnd(pe.compareValue))("mat-calendar-body-in-preview",kt._isInPreview(pe.compareValue)),o.Q6J("ngClass",pe.cssClasses)("tabindex",kt._isActiveCell(St,Je)?0:-1),o.uIk("data-mat-row",St)("data-mat-col",Je)("aria-label",pe.ariaLabel)("aria-disabled",!pe.enabled||null)("aria-selected",kt._isSelected(pe.compareValue))("aria-current",kt.todayValue===pe.compareValue?"date":null),o.xp6(1),o.ekj("mat-calendar-body-selected",kt._isSelected(pe.compareValue))("mat-calendar-body-comparison-identical",kt._isComparisonIdentical(pe.compareValue))("mat-calendar-body-today",kt.todayValue===pe.compareValue),o.xp6(1),o.hij(" ",pe.displayValue," ")}}function i(qe,yt){if(1&qe&&(o.TgZ(0,"tr",4),o.YNc(1,se,2,6,"td",5),o.YNc(2,y,4,47,"td",6),o.qZA()),2&qe){const pe=yt.$implicit,Je=yt.index,St=o.oxw();o.xp6(1),o.Q6J("ngIf",0===Je&&St._firstRowOffset),o.xp6(1),o.Q6J("ngForOf",pe)}}function a(qe,yt){if(1&qe&&(o.TgZ(0,"th",5),o.TgZ(1,"abbr",6),o._uU(2),o.qZA(),o.qZA()),2&qe){const pe=yt.$implicit;o.uIk("aria-label",pe.long),o.xp6(1),o.uIk("title",pe.long),o.xp6(1),o.Oqu(pe.narrow)}}const p=["*"];function u(qe,yt){}function _(qe,yt){if(1&qe){const pe=o.EpF();o.TgZ(0,"mat-month-view",5),o.NdJ("activeDateChange",function(St){return o.CHM(pe),o.oxw().activeDate=St})("_userSelection",function(St){return o.CHM(pe),o.oxw()._dateSelected(St)}),o.qZA()}if(2&qe){const pe=o.oxw();o.Q6J("activeDate",pe.activeDate)("selected",pe.selected)("dateFilter",pe.dateFilter)("maxDate",pe.maxDate)("minDate",pe.minDate)("dateClass",pe.dateClass)("comparisonStart",pe.comparisonStart)("comparisonEnd",pe.comparisonEnd)}}function D(qe,yt){if(1&qe){const pe=o.EpF();o.TgZ(0,"mat-year-view",6),o.NdJ("activeDateChange",function(St){return o.CHM(pe),o.oxw().activeDate=St})("monthSelected",function(St){return o.CHM(pe),o.oxw()._monthSelectedInYearView(St)})("selectedChange",function(St){return o.CHM(pe),o.oxw()._goToDateInView(St,"month")}),o.qZA()}if(2&qe){const pe=o.oxw();o.Q6J("activeDate",pe.activeDate)("selected",pe.selected)("dateFilter",pe.dateFilter)("maxDate",pe.maxDate)("minDate",pe.minDate)("dateClass",pe.dateClass)}}function I(qe,yt){if(1&qe){const pe=o.EpF();o.TgZ(0,"mat-multi-year-view",7),o.NdJ("activeDateChange",function(St){return o.CHM(pe),o.oxw().activeDate=St})("yearSelected",function(St){return o.CHM(pe),o.oxw()._yearSelectedInMultiYearView(St)})("selectedChange",function(St){return o.CHM(pe),o.oxw()._goToDateInView(St,"year")}),o.qZA()}if(2&qe){const pe=o.oxw();o.Q6J("activeDate",pe.activeDate)("selected",pe.selected)("dateFilter",pe.dateFilter)("maxDate",pe.maxDate)("minDate",pe.minDate)("dateClass",pe.dateClass)}}function x(qe,yt){}const r=["button"];function b(qe,yt){1&qe&&(o.O4$(),o.TgZ(0,"svg",3),o._UZ(1,"path",4),o.qZA())}const U=[[["","matDatepickerToggleIcon",""]]],N=["[matDatepickerToggleIcon]"];class ze{constructor(yt,pe,Je,St,kt={},yi=yt,Ni){this.value=yt,this.displayValue=pe,this.ariaLabel=Je,this.enabled=St,this.cssClasses=kt,this.compareValue=yi,this.rawValue=Ni}}let Le=(()=>{class qe{constructor(pe,Je){this._elementRef=pe,this._ngZone=Je,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new o.vpe,this.previewChange=new o.vpe,this._enterHandler=St=>{if(this._skipNextFocus&&"focus"===St.type)this._skipNextFocus=!1;else if(St.target&&this.isRange){const kt=this._getCellFromElement(St.target);kt&&this._ngZone.run(()=>this.previewChange.emit({value:kt.enabled?kt:null,event:St}))}},this._leaveHandler=St=>{null!==this.previewEnd&&this.isRange&&St.target&&K(St.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:St}))},Je.runOutsideAngular(()=>{const St=pe.nativeElement;St.addEventListener("mouseenter",this._enterHandler,!0),St.addEventListener("focus",this._enterHandler,!0),St.addEventListener("mouseleave",this._leaveHandler,!0),St.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(pe,Je){pe.enabled&&this.selectedValueChange.emit({value:pe.value,event:Je})}_isSelected(pe){return this.startValue===pe||this.endValue===pe}ngOnChanges(pe){const Je=pe.numCols,{rows:St,numCols:kt}=this;(pe.rows||Je)&&(this._firstRowOffset=St&&St.length&&St[0].length?kt-St[0].length:0),(pe.cellAspectRatio||Je||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/kt+"%"),(Je||!this._cellWidth)&&(this._cellWidth=100/kt+"%")}ngOnDestroy(){const pe=this._elementRef.nativeElement;pe.removeEventListener("mouseenter",this._enterHandler,!0),pe.removeEventListener("focus",this._enterHandler,!0),pe.removeEventListener("mouseleave",this._leaveHandler,!0),pe.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(pe,Je){let St=pe*this.numCols+Je;return pe&&(St-=this._firstRowOffset),St==this.activeCell}_focusActiveCell(pe=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(()=>{const Je=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Je&&(pe||(this._skipNextFocus=!0),Je.focus())})})}_isRangeStart(pe){return we(pe,this.startValue,this.endValue)}_isRangeEnd(pe){return Y(pe,this.startValue,this.endValue)}_isInRange(pe){return ae(pe,this.startValue,this.endValue,this.isRange)}_isComparisonStart(pe){return we(pe,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(pe,Je,St){if(!this._isComparisonStart(pe)||this._isRangeStart(pe)||!this._isInRange(pe))return!1;let kt=this.rows[Je][St-1];if(!kt){const yi=this.rows[Je-1];kt=yi&&yi[yi.length-1]}return kt&&!this._isRangeEnd(kt.compareValue)}_isComparisonBridgeEnd(pe,Je,St){if(!this._isComparisonEnd(pe)||this._isRangeEnd(pe)||!this._isInRange(pe))return!1;let kt=this.rows[Je][St+1];if(!kt){const yi=this.rows[Je+1];kt=yi&&yi[0]}return kt&&!this._isRangeStart(kt.compareValue)}_isComparisonEnd(pe){return Y(pe,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(pe){return ae(pe,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(pe){return this.comparisonStart===this.comparisonEnd&&pe===this.comparisonStart}_isPreviewStart(pe){return we(pe,this.previewStart,this.previewEnd)}_isPreviewEnd(pe){return Y(pe,this.previewStart,this.previewEnd)}_isInPreview(pe){return ae(pe,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(pe){let Je;if(K(pe)?Je=pe:K(pe.parentNode)&&(Je=pe.parentNode),Je){const St=Je.getAttribute("data-mat-row"),kt=Je.getAttribute("data-mat-col");if(St&&kt)return this.rows[parseInt(St)][parseInt(kt)]}return null}}return qe.\u0275fac=function(pe){return new(pe||qe)(o.Y36(o.SBq),o.Y36(o.R0b))},qe.\u0275cmp=o.Xpm({type:qe,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"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[o.TTD],attrs:de,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(pe,Je){1&pe&&(o.YNc(0,le,3,6,"tr",0),o.YNc(1,i,3,2,"tr",1)),2&pe&&(o.Q6J("ngIf",Je._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],encapsulation:2,changeDetection:0}),qe})();function K(qe){return"TD"===qe.nodeName}function we(qe,yt,pe){return null!==pe&&yt!==pe&&qe=yt&&qe===pe}function ae(qe,yt,pe,Je){return Je&&null!==yt&&null!==pe&&yt!==pe&&qe>=yt&&qe<=pe}class Ge{constructor(yt,pe){this.start=yt,this.end=pe}}let vt=(()=>{class qe{constructor(pe,Je){this.selection=pe,this._adapter=Je,this._selectionChanged=new s.x,this.selectionChanged=this._selectionChanged,this.selection=pe}updateSelection(pe,Je){const St=this.selection;this.selection=pe,this._selectionChanged.next({selection:pe,source:Je,oldValue:St})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(pe){return this._adapter.isDateInstance(pe)&&this._adapter.isValid(pe)}}return qe.\u0275fac=function(pe){o.$Z()},qe.\u0275prov=o.Yz7({token:qe,factory:qe.\u0275fac}),qe})(),Fe=(()=>{class qe extends vt{constructor(pe){super(null,pe)}add(pe){super.updateSelection(pe,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const pe=new qe(this._adapter);return pe.updateSelection(this.selection,this),pe}}return qe.\u0275fac=function(pe){return new(pe||qe)(o.LFG(R._A))},qe.\u0275prov=o.Yz7({token:qe,factory:qe.\u0275fac}),qe})();const Oe={provide:vt,deps:[[new o.FiY,new o.tp0,vt],R._A],useFactory:function ue(qe,yt){return qe||new Fe(yt)}},$=new o.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let nt=(()=>{class qe{constructor(pe,Je,St,kt,yi){this._changeDetectorRef=pe,this._dateFormats=Je,this._dateAdapter=St,this._dir=kt,this._rangeStrategy=yi,this._rerenderSubscription=L.w0.EMPTY,this.selectedChange=new o.vpe,this._userSelection=new o.vpe,this.activeDateChange=new o.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(pe){const Je=this._activeDate,St=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(pe))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(St,this.minDate,this.maxDate),this._hasSameMonthAndYear(Je,this._activeDate)||this._init()}get selected(){return this._selected}set selected(pe){this._selected=pe instanceof Ge?pe:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(pe)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(pe){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(pe))}get maxDate(){return this._maxDate}set maxDate(pe){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(pe))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnChanges(pe){const Je=pe.comparisonStart||pe.comparisonEnd;Je&&!Je.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(pe){const Je=pe.value,St=this._dateAdapter.getYear(this.activeDate),kt=this._dateAdapter.getMonth(this.activeDate),yi=this._dateAdapter.createDate(St,kt,Je);let Ni,Si;this._selected instanceof Ge?(Ni=this._getDateInCurrentMonth(this._selected.start),Si=this._getDateInCurrentMonth(this._selected.end)):Ni=Si=this._getDateInCurrentMonth(this._selected),(Ni!==Je||Si!==Je)&&this.selectedChange.emit(yi),this._userSelection.emit({value:yi,event:pe.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(pe){const Je=this._activeDate,St=this._isRtl();switch(pe.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,St?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,St?-1:1);break;case E.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case E.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case E.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case E.Ku:this.activeDate=pe.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case E.VM:this.activeDate=pe.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case E.K5:case E.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&pe.preventDefault());case E.hY:return void(null!=this._previewEnd&&!(0,E.Vb)(pe)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:pe}),pe.preventDefault(),pe.stopPropagation()));default:return}this._dateAdapter.compareDate(Je,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),pe.preventDefault()}_handleCalendarBodyKeyup(pe){(pe.keyCode===E.L_||pe.keyCode===E.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:pe}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let pe=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(pe)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(pe){this._matCalendarBody._focusActiveCell(pe)}_previewChanged({event:pe,value:Je}){if(this._rangeStrategy){const kt=this._rangeStrategy.createPreview(Je?Je.rawValue:null,this.selected,pe);this._previewStart=this._getCellCompareValue(kt.start),this._previewEnd=this._getCellCompareValue(kt.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const pe=this._dateAdapter.getFirstDayOfWeek(),Je=this._dateAdapter.getDayOfWeekNames("narrow");let kt=this._dateAdapter.getDayOfWeekNames("long").map((yi,Ni)=>({long:yi,narrow:Je[Ni]}));this._weekdays=kt.slice(pe).concat(kt.slice(0,pe))}_createWeekCells(){const pe=this._dateAdapter.getNumDaysInMonth(this.activeDate),Je=this._dateAdapter.getDateNames();this._weeks=[[]];for(let St=0,kt=this._firstWeekOffset;St=0)&&(!this.maxDate||this._dateAdapter.compareDate(pe,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(pe))}_getDateInCurrentMonth(pe){return pe&&this._hasSameMonthAndYear(pe,this.activeDate)?this._dateAdapter.getDate(pe):null}_hasSameMonthAndYear(pe,Je){return!(!pe||!Je||this._dateAdapter.getMonth(pe)!=this._dateAdapter.getMonth(Je)||this._dateAdapter.getYear(pe)!=this._dateAdapter.getYear(Je))}_getCellCompareValue(pe){if(pe){const Je=this._dateAdapter.getYear(pe),St=this._dateAdapter.getMonth(pe),kt=this._dateAdapter.getDate(pe);return new Date(Je,St,kt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(pe){pe instanceof Ge?(this._rangeStart=this._getCellCompareValue(pe.start),this._rangeEnd=this._getCellCompareValue(pe.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(pe),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(pe){return!this.dateFilter||this.dateFilter(pe)}}return qe.\u0275fac=function(pe){return new(pe||qe)(o.Y36(o.sBO),o.Y36(R.sG,8),o.Y36(R._A,8),o.Y36(j.Is,8),o.Y36($,8))},qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-month-view"]],viewQuery:function(pe,Je){if(1&pe&&o.Gf(Le,5),2&pe){let St;o.iGM(St=o.CRH())&&(Je._matCalendarBody=St.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[o.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keyup","keydown"],["scope","col"],[1,"mat-calendar-abbr"]],template:function(pe,Je){1&pe&&(o.TgZ(0,"table",0),o.TgZ(1,"thead",1),o.TgZ(2,"tr"),o.YNc(3,a,3,3,"th",2),o.qZA(),o.TgZ(4,"tr"),o._UZ(5,"th",3),o.qZA(),o.qZA(),o.TgZ(6,"tbody",4),o.NdJ("selectedValueChange",function(kt){return Je._dateSelected(kt)})("previewChange",function(kt){return Je._previewChanged(kt)})("keyup",function(kt){return Je._handleCalendarBodyKeyup(kt)})("keydown",function(kt){return Je._handleCalendarBodyKeydown(kt)}),o.qZA(),o.qZA()),2&pe&&(o.xp6(3),o.Q6J("ngForOf",Je._weekdays),o.xp6(3),o.Q6J("label",Je._monthLabel)("rows",Je._weeks)("todayValue",Je._todayDate)("startValue",Je._rangeStart)("endValue",Je._rangeEnd)("comparisonStart",Je._comparisonRangeStart)("comparisonEnd",Je._comparisonRangeEnd)("previewStart",Je._previewStart)("previewEnd",Je._previewEnd)("isRange",Je._isRange)("labelMinRequiredCells",3)("activeCell",Je._dateAdapter.getDate(Je.activeDate)-1))},directives:[C.sg,Le],encapsulation:2,changeDetection:0}),qe})(),rt=(()=>{class qe{constructor(pe,Je,St){this._changeDetectorRef=pe,this._dateAdapter=Je,this._dir=St,this._rerenderSubscription=L.w0.EMPTY,this.selectedChange=new o.vpe,this.yearSelected=new o.vpe,this.activeDateChange=new o.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(pe){let Je=this._activeDate;const St=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(pe))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(St,this.minDate,this.maxDate),Mt(this._dateAdapter,Je,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(pe){this._selected=pe instanceof Ge?pe:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(pe)),this._setSelectedYear(pe)}get minDate(){return this._minDate}set minDate(pe){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(pe))}get maxDate(){return this._maxDate}set maxDate(pe){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(pe))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Je=this._dateAdapter.getYear(this._activeDate)-Zt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let St=0,kt=[];St<24;St++)kt.push(Je+St),4==kt.length&&(this._years.push(kt.map(yi=>this._createCellForYear(yi))),kt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(pe){const Je=pe.value;this.yearSelected.emit(this._dateAdapter.createDate(Je,0,1));let St=this._dateAdapter.getMonth(this.activeDate),kt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(Je,St,1));this.selectedChange.emit(this._dateAdapter.createDate(Je,St,Math.min(this._dateAdapter.getDate(this.activeDate),kt)))}_handleCalendarBodyKeydown(pe){const Je=this._activeDate,St=this._isRtl();switch(pe.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,St?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,St?-1:1);break;case E.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case E.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case E.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Zt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Zt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case E.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,pe.altKey?-240:-24);break;case E.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,pe.altKey?240:24);break;case E.K5:case E.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Je,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),pe.preventDefault()}_handleCalendarBodyKeyup(pe){(pe.keyCode===E.L_||pe.keyCode===E.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:pe}),this._selectionKeyPressed=!1)}_getActiveCell(){return Zt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(pe){const Je=this._dateAdapter.createDate(pe,0,1),St=this._dateAdapter.getYearName(Je),kt=this.dateClass?this.dateClass(Je,"multi-year"):void 0;return new ze(pe,St,St,this._shouldEnableYear(pe),kt)}_shouldEnableYear(pe){if(null==pe||this.maxDate&&pe>this._dateAdapter.getYear(this.maxDate)||this.minDate&&pe{class qe{constructor(pe,Je,St,kt){this._changeDetectorRef=pe,this._dateFormats=Je,this._dateAdapter=St,this._dir=kt,this._rerenderSubscription=L.w0.EMPTY,this.selectedChange=new o.vpe,this.monthSelected=new o.vpe,this.activeDateChange=new o.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(pe){let Je=this._activeDate;const St=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(pe))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(St,this.minDate,this.maxDate),this._dateAdapter.getYear(Je)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(pe){this._selected=pe instanceof Ge?pe:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(pe)),this._setSelectedMonth(pe)}get minDate(){return this._minDate}set minDate(pe){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(pe))}get maxDate(){return this._maxDate}set maxDate(pe){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(pe))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(pe){const Je=pe.value,St=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Je,1);this.monthSelected.emit(St);const kt=this._dateAdapter.getNumDaysInMonth(St);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Je,Math.min(this._dateAdapter.getDate(this.activeDate),kt)))}_handleCalendarBodyKeydown(pe){const Je=this._activeDate,St=this._isRtl();switch(pe.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,St?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,St?-1:1);break;case E.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case E.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case E.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case E.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,pe.altKey?-10:-1);break;case E.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,pe.altKey?10:1);break;case E.K5:case E.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Je,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),pe.preventDefault()}_handleCalendarBodyKeyup(pe){(pe.keyCode===E.L_||pe.keyCode===E.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:pe}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let pe=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Je=>Je.map(St=>this._createCellForMonth(St,pe[St]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(pe){return pe&&this._dateAdapter.getYear(pe)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(pe):null}_createCellForMonth(pe,Je){const St=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),pe,1),kt=this._dateAdapter.format(St,this._dateFormats.display.monthYearA11yLabel),yi=this.dateClass?this.dateClass(St,"year"):void 0;return new ze(pe,Je.toLocaleUpperCase(),kt,this._shouldEnableMonth(pe),yi)}_shouldEnableMonth(pe){const Je=this._dateAdapter.getYear(this.activeDate);if(null==pe||this._isYearAndMonthAfterMaxDate(Je,pe)||this._isYearAndMonthBeforeMinDate(Je,pe))return!1;if(!this.dateFilter)return!0;for(let kt=this._dateAdapter.createDate(Je,pe,1);this._dateAdapter.getMonth(kt)==pe;kt=this._dateAdapter.addCalendarDays(kt,1))if(this.dateFilter(kt))return!0;return!1}_isYearAndMonthAfterMaxDate(pe,Je){if(this.maxDate){const St=this._dateAdapter.getYear(this.maxDate),kt=this._dateAdapter.getMonth(this.maxDate);return pe>St||pe===St&&Je>kt}return!1}_isYearAndMonthBeforeMinDate(pe,Je){if(this.minDate){const St=this._dateAdapter.getYear(this.minDate),kt=this._dateAdapter.getMonth(this.minDate);return pe{class qe{constructor(){this.changes=new s.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(pe,Je){return`${pe} \u2013 ${Je}`}}return qe.\u0275fac=function(pe){return new(pe||qe)},qe.\u0275prov=o.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),ei=0,ki=(()=>{class qe{constructor(pe,Je,St,kt,yi){this._intl=pe,this.calendar=Je,this._dateAdapter=St,this._dateFormats=kt,this._buttonDescriptionId="mat-calendar-button-"+ei++,this.calendar.stateChanges.subscribe(()=>yi.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const Je=this._dateAdapter.getYear(this.calendar.activeDate)-Zt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),St=Je+24-1,kt=this._dateAdapter.getYearName(this._dateAdapter.createDate(Je,0,1)),yi=this._dateAdapter.getYearName(this._dateAdapter.createDate(St,0,1));return this._intl.formatYearRange(kt,yi)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){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.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)}_isSameView(pe,Je){return"month"==this.calendar.currentView?this._dateAdapter.getYear(pe)==this._dateAdapter.getYear(Je)&&this._dateAdapter.getMonth(pe)==this._dateAdapter.getMonth(Je):"year"==this.calendar.currentView?this._dateAdapter.getYear(pe)==this._dateAdapter.getYear(Je):Mt(this._dateAdapter,pe,Je,this.calendar.minDate,this.calendar.maxDate)}}return qe.\u0275fac=function(pe){return new(pe||qe)(o.Y36(jt),o.Y36((0,o.Gpc)(()=>ai)),o.Y36(R._A,8),o.Y36(R.sG,8),o.Y36(o.sBO))},qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:p,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(pe,Je){1&pe&&(o.F$t(),o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"button",2),o.NdJ("click",function(){return Je.currentPeriodClicked()}),o.TgZ(3,"span"),o._uU(4),o.qZA(),o.O4$(),o.TgZ(5,"svg",3),o._UZ(6,"polygon",4),o.qZA(),o.qZA(),o.kcU(),o._UZ(7,"div",5),o.Hsn(8),o.TgZ(9,"button",6),o.NdJ("click",function(){return Je.previousClicked()}),o.qZA(),o.TgZ(10,"button",7),o.NdJ("click",function(){return Je.nextClicked()}),o.qZA(),o.qZA(),o.qZA()),2&pe&&(o.xp6(2),o.uIk("aria-label",Je.periodButtonLabel)("aria-describedby",Je._buttonDescriptionId),o.xp6(1),o.uIk("id",Je._buttonDescriptionId),o.xp6(1),o.Oqu(Je.periodButtonText),o.xp6(1),o.ekj("mat-calendar-invert","month"!==Je.calendar.currentView),o.xp6(4),o.Q6J("disabled",!Je.previousEnabled()),o.uIk("aria-label",Je.prevButtonLabel),o.xp6(1),o.Q6J("disabled",!Je.nextEnabled()),o.uIk("aria-label",Je.nextButtonLabel))},directives:[M.lW,e.Qr],encapsulation:2,changeDetection:0}),qe})(),ai=(()=>{class qe{constructor(pe,Je,St,kt){this._dateAdapter=Je,this._dateFormats=St,this._changeDetectorRef=kt,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new o.vpe,this.yearSelected=new o.vpe,this.monthSelected=new o.vpe,this.viewChanged=new o.vpe(!0),this._userSelection=new o.vpe,this.stateChanges=new s.x,this._intlChanges=pe.changes.subscribe(()=>{kt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(pe){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(pe))}get selected(){return this._selected}set selected(pe){this._selected=pe instanceof Ge?pe:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(pe))}get minDate(){return this._minDate}set minDate(pe){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(pe))}get maxDate(){return this._maxDate}set maxDate(pe){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(pe))}get activeDate(){return this._clampedActiveDate}set activeDate(pe){this._clampedActiveDate=this._dateAdapter.clampDate(pe,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(pe){const Je=this._currentView!==pe?pe:null;this._currentView=pe,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Je&&this.viewChanged.emit(Je)}ngAfterContentInit(){this._calendarHeaderPortal=new v.C5(this.headerComponent||ki),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(pe){const Je=pe.minDate||pe.maxDate||pe.dateFilter;if(Je&&!Je.firstChange){const St=this._getCurrentViewComponent();St&&(this._changeDetectorRef.detectChanges(),St._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(pe){const Je=pe.value;(this.selected instanceof Ge||Je&&!this._dateAdapter.sameDate(Je,this.selected))&&this.selectedChange.emit(Je),this._userSelection.emit(pe)}_yearSelectedInMultiYearView(pe){this.yearSelected.emit(pe)}_monthSelectedInYearView(pe){this.monthSelected.emit(pe)}_goToDateInView(pe,Je){this.activeDate=pe,this.currentView=Je}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return qe.\u0275fac=function(pe){return new(pe||qe)(o.Y36(jt),o.Y36(R._A,8),o.Y36(R.sG,8),o.Y36(o.sBO))},qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-calendar"]],viewQuery:function(pe,Je){if(1&pe&&(o.Gf(nt,5),o.Gf(Ii,5),o.Gf(rt,5)),2&pe){let St;o.iGM(St=o.CRH())&&(Je.monthView=St.first),o.iGM(St=o.CRH())&&(Je.yearView=St.first),o.iGM(St=o.CRH())&&(Je.multiYearView=St.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"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[o._Bn([Oe]),o.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(pe,Je){1&pe&&(o.YNc(0,u,0,0,"ng-template",0),o.TgZ(1,"div",1),o.YNc(2,_,1,8,"mat-month-view",2),o.YNc(3,D,1,6,"mat-year-view",3),o.YNc(4,I,1,6,"mat-multi-year-view",4),o.qZA()),2&pe&&(o.Q6J("cdkPortalOutlet",Je._calendarHeaderPortal),o.xp6(1),o.Q6J("ngSwitch",Je.currentView),o.xp6(1),o.Q6J("ngSwitchCase","month"),o.xp6(1),o.Q6J("ngSwitchCase","year"),o.xp6(1),o.Q6J("ngSwitchCase","multi-year"))},directives:[v.Pl,e.kH,C.RF,C.n9,nt,Ii,rt],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.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}.mat-calendar-abbr{text-decoration:none}\n'],encapsulation:2,changeDetection:0}),qe})();const hi={transformPanel:(0,ee.X$)("transformPanel",[(0,ee.eR)("void => enter-dropdown",(0,ee.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.F4)([(0,ee.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,ee.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,ee.eR)("void => enter-dialog",(0,ee.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.F4)([(0,ee.oB)({opacity:0,transform:"scale(0.7)"}),(0,ee.oB)({transform:"none",opacity:1})]))),(0,ee.eR)("* => void",(0,ee.jt)("100ms linear",(0,ee.oB)({opacity:0})))]),fadeInCalendar:(0,ee.X$)("fadeInCalendar",[(0,ee.SB)("void",(0,ee.oB)({opacity:0})),(0,ee.SB)("enter",(0,ee.oB)({opacity:1})),(0,ee.eR)("void => *",(0,ee.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Ze=0;const Ee=new o.OlP("mat-datepicker-scroll-strategy"),ge={provide:Ee,deps:[t.aV],useFactory:function G(qe){return()=>qe.scrollStrategies.reposition()}},De=(0,R.pj)(class{constructor(qe){this._elementRef=qe}});let et=(()=>{class qe extends De{constructor(pe,Je,St,kt,yi,Ni){super(pe),this._changeDetectorRef=Je,this._globalModel=St,this._dateAdapter=kt,this._rangeSelectionStrategy=yi,this._subscriptions=new L.w0,this._animationDone=new s.x,this._actionsPortal=null,this._closeButtonText=Ni.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(pe){const Je=this._model.selection,St=pe.value,kt=Je instanceof Ge;if(kt&&this._rangeSelectionStrategy){const yi=this._rangeSelectionStrategy.selectionFinished(St,Je,pe.event);this._model.updateSelection(yi,this)}else St&&(kt||!this._dateAdapter.sameDate(St,Je))&&this._model.add(St);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return qe.\u0275fac=function(pe){return new(pe||qe)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(vt),o.Y36(R._A),o.Y36($,8),o.Y36(jt))},qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-datepicker-content"]],viewQuery:function(pe,Je){if(1&pe&&o.Gf(ai,5),2&pe){let St;o.iGM(St=o.CRH())&&(Je._calendar=St.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(pe,Je){1&pe&&o.WFA("@transformPanel.done",function(){return Je._animationDone.next()}),2&pe&&(o.d8E("@transformPanel",Je._animationState),o.ekj("mat-datepicker-content-touch",Je.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[o.qOj],decls:5,vars:20,consts:[["cdkTrapFocus","",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(pe,Je){1&pe&&(o.TgZ(0,"div",0),o.TgZ(1,"mat-calendar",1),o.NdJ("yearSelected",function(kt){return Je.datepicker._selectYear(kt)})("monthSelected",function(kt){return Je.datepicker._selectMonth(kt)})("viewChanged",function(kt){return Je.datepicker._viewChanged(kt)})("_userSelection",function(kt){return Je._handleUserSelection(kt)}),o.qZA(),o.YNc(2,x,0,0,"ng-template",2),o.TgZ(3,"button",3),o.NdJ("focus",function(){return Je._closeButtonFocused=!0})("blur",function(){return Je._closeButtonFocused=!1})("click",function(){return Je.datepicker.close()}),o._uU(4),o.qZA(),o.qZA()),2&pe&&(o.ekj("mat-datepicker-content-container-with-actions",Je._actionsPortal),o.xp6(1),o.Q6J("id",Je.datepicker.id)("ngClass",Je.datepicker.panelClass)("startAt",Je.datepicker.startAt)("startView",Je.datepicker.startView)("minDate",Je.datepicker._getMinDate())("maxDate",Je.datepicker._getMaxDate())("dateFilter",Je.datepicker._getDateFilter())("headerComponent",Je.datepicker.calendarHeaderComponent)("selected",Je._getSelected())("dateClass",Je.datepicker.dateClass)("comparisonStart",Je.comparisonStart)("comparisonEnd",Je.comparisonEnd)("@fadeInCalendar","enter"),o.xp6(1),o.Q6J("cdkPortalOutlet",Je._actionsPortal),o.xp6(1),o.ekj("cdk-visually-hidden",!Je._closeButtonFocused),o.Q6J("color",Je.color||"primary"),o.xp6(1),o.Oqu(Je._closeButtonText))},directives:[e.mK,ai,C.mk,v.Pl,M.lW],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-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;position:relative;overflow:visible}.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}@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,data:{animation:[hi.transformPanel,hi.fadeInCalendar]},changeDetection:0}),qe})(),$t=(()=>{class qe{constructor(pe,Je,St,kt,yi,Ni,Si){this._overlay=pe,this._ngZone=Je,this._viewContainerRef=St,this._dateAdapter=yi,this._dir=Ni,this._model=Si,this._inputStateChanges=L.w0.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new o.vpe,this.monthSelected=new o.vpe,this.viewChanged=new o.vpe(!0),this.openedStream=new o.vpe,this.closedStream=new o.vpe,this._opened=!1,this.id="mat-datepicker-"+Ze++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new s.x,this._scrollStrategy=kt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(pe){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(pe))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(pe){this._color=pe}get touchUi(){return this._touchUi}set touchUi(pe){this._touchUi=(0,W.Ig)(pe)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(pe){const Je=(0,W.Ig)(pe);Je!==this._disabled&&(this._disabled=Je,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(pe){this._restoreFocus=(0,W.Ig)(pe)}get panelClass(){return this._panelClass}set panelClass(pe){this._panelClass=(0,W.du)(pe)}get opened(){return this._opened}set opened(pe){(0,W.Ig)(pe)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(pe){const Je=pe.xPosition||pe.yPosition;if(Je&&!Je.firstChange&&this._overlayRef){const St=this._overlayRef.getConfig().positionStrategy;St instanceof t._G&&(this._setConnectedPositions(St),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(pe){this._model.add(pe)}_selectYear(pe){this.yearSelected.emit(pe)}_selectMonth(pe){this.monthSelected.emit(pe)}_viewChanged(pe){this.viewChanged.emit(pe)}registerInput(pe){return this._inputStateChanges.unsubscribe(),this.datepickerInput=pe,this._inputStateChanges=pe.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(pe){this._actionsPortal=pe}removeActions(pe){pe===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,ie.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const Je=this._componentRef.instance;Je._startExitAnimation(),Je._animationDone.pipe((0,P.q)(1)).subscribe(()=>this._destroyOverlay())}const pe=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(pe)):pe()}_applyPendingSelection(){var pe,Je;null===(Je=null===(pe=this._componentRef)||void 0===pe?void 0:pe.instance)||void 0===Je||Je._applyPendingSelection()}_forwardContentValues(pe){pe.datepicker=this,pe.color=this.color,pe._actionsPortal=this._actionsPortal}_openOverlay(){this._destroyOverlay();const pe=this.touchUi,Je=this.datepickerInput.getOverlayLabelId(),St=new v.C5(et,this._viewContainerRef),kt=this._overlayRef=this._overlay.create(new t.X_({positionStrategy:pe?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[pe?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:pe?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(pe?"dialog":"popup")})),yi=kt.overlayElement;yi.setAttribute("role","dialog"),Je&&yi.setAttribute("aria-labelledby",Je),pe&&yi.setAttribute("aria-modal","true"),this._getCloseStream(kt).subscribe(Ni=>{Ni&&Ni.preventDefault(),this.close()}),this._componentRef=kt.attach(St),this._forwardContentValues(this._componentRef.instance),pe||this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(()=>kt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const pe=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(pe)}_setConnectedPositions(pe){const Je="end"===this.xPosition?"end":"start",St="start"===Je?"end":"start",kt="above"===this.yPosition?"bottom":"top",yi="top"===kt?"bottom":"top";return pe.withPositions([{originX:Je,originY:yi,overlayX:Je,overlayY:kt},{originX:Je,originY:kt,overlayX:Je,overlayY:yi},{originX:St,originY:yi,overlayX:St,overlayY:kt},{originX:St,originY:kt,overlayX:St,overlayY:yi}])}_getCloseStream(pe){return(0,O.T)(pe.backdropClick(),pe.detachments(),pe.keydownEvents().pipe((0,Z.h)(Je=>Je.keyCode===E.hY&&!(0,E.Vb)(Je)||this.datepickerInput&&(0,E.Vb)(Je,"altKey")&&Je.keyCode===E.LH)))}}return qe.\u0275fac=function(pe){return new(pe||qe)(o.Y36(t.aV),o.Y36(o.R0b),o.Y36(o.s_b),o.Y36(Ee),o.Y36(R._A,8),o.Y36(j.Is,8),o.Y36(vt))},qe.\u0275dir=o.lG2({type:qe,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[o.TTD]}),qe})(),Nt=(()=>{class qe extends $t{}return qe.\u0275fac=function(){let yt;return function(Je){return(yt||(yt=o.n5z(qe)))(Je||qe)}}(),qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[o._Bn([Oe,{provide:$t,useExisting:qe}]),o.qOj],decls:0,vars:0,template:function(pe,Je){},encapsulation:2,changeDetection:0}),qe})();class Jt{constructor(yt,pe){this.target=yt,this.targetElement=pe,this.value=this.target.value}}let ct=(()=>{class qe{constructor(pe,Je,St){this._elementRef=pe,this._dateAdapter=Je,this._dateFormats=St,this.dateChange=new o.vpe,this.dateInput=new o.vpe,this.stateChanges=new s.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=L.w0.EMPTY,this._localeSubscription=L.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=kt=>{const yi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(kt.value));return!yi||this._matchesFilter(yi)?null:{matDatepickerFilter:!0}},this._minValidator=kt=>{const yi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(kt.value)),Ni=this._getMinDate();return!Ni||!yi||this._dateAdapter.compareDate(Ni,yi)<=0?null:{matDatepickerMin:{min:Ni,actual:yi}}},this._maxValidator=kt=>{const yi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(kt.value)),Ni=this._getMaxDate();return!Ni||!yi||this._dateAdapter.compareDate(Ni,yi)>=0?null:{matDatepickerMax:{max:Ni,actual:yi}}},this._lastValueValid=!1,this._localeSubscription=Je.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(pe){this._assignValueProgrammatically(pe)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(pe){const Je=(0,W.Ig)(pe),St=this._elementRef.nativeElement;this._disabled!==Je&&(this._disabled=Je,this.stateChanges.next(void 0)),Je&&this._isInitialized&&St.blur&&St.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(pe){this._model=pe,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Je=>{if(this._shouldHandleChangeEvent(Je)){const St=this._getValueFromModel(Je.selection);this._lastValueValid=this._isValidValue(St),this._cvaOnChange(St),this._onTouched(),this._formatValue(St),this.dateInput.emit(new Jt(this,this._elementRef.nativeElement)),this.dateChange.emit(new Jt(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(pe){(function ke(qe,yt){const pe=Object.keys(qe);for(let Je of pe){const{previousValue:St,currentValue:kt}=qe[Je];if(!yt.isDateInstance(St)||!yt.isDateInstance(kt))return!0;if(!yt.sameDate(St,kt))return!0}return!1})(pe,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(pe){this._validatorOnChange=pe}validate(pe){return this._validator?this._validator(pe):null}writeValue(pe){this._assignValueProgrammatically(pe)}registerOnChange(pe){this._cvaOnChange=pe}registerOnTouched(pe){this._onTouched=pe}setDisabledState(pe){this.disabled=pe}_onKeydown(pe){pe.altKey&&pe.keyCode===E.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),pe.preventDefault())}_onInput(pe){const Je=this._lastValueValid;let St=this._dateAdapter.parse(pe,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(St),St=this._dateAdapter.getValidDateOrNull(St),this._dateAdapter.sameDate(St,this.value)?(pe&&!this.value&&this._cvaOnChange(St),Je!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(St),this._cvaOnChange(St),this.dateInput.emit(new Jt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Jt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(pe){this._elementRef.nativeElement.value=pe?this._dateAdapter.format(pe,this._dateFormats.display.dateInput):""}_assignValue(pe){this._model?(this._assignValueToModel(pe),this._pendingValue=null):this._pendingValue=pe}_isValidValue(pe){return!pe||this._dateAdapter.isValid(pe)}_parentDisabled(){return!1}_assignValueProgrammatically(pe){pe=this._dateAdapter.deserialize(pe),this._lastValueValid=this._isValidValue(pe),pe=this._dateAdapter.getValidDateOrNull(pe),this._assignValue(pe),this._formatValue(pe)}_matchesFilter(pe){const Je=this._getDateFilter();return!Je||Je(pe)}}return qe.\u0275fac=function(pe){return new(pe||qe)(o.Y36(o.SBq),o.Y36(R._A,8),o.Y36(R.sG,8))},qe.\u0275dir=o.lG2({type:qe,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[o.TTD]}),qe})();const Be={provide:ve.JU,useExisting:(0,o.Gpc)(()=>st),multi:!0},at={provide:ve.Cf,useExisting:(0,o.Gpc)(()=>st),multi:!0};let st=(()=>{class qe extends ct{constructor(pe,Je,St,kt){super(pe,Je,St),this._formField=kt,this._closedSubscription=L.w0.EMPTY,this._validator=ve.kI.compose(super._getValidators())}set matDatepicker(pe){pe&&(this._datepicker=pe,this._closedSubscription=pe.closedStream.subscribe(()=>this._onTouched()),this._registerModel(pe.registerInput(this)))}get min(){return this._min}set min(pe){const Je=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(pe));this._dateAdapter.sameDate(Je,this._min)||(this._min=Je,this._validatorOnChange())}get max(){return this._max}set max(pe){const Je=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(pe));this._dateAdapter.sameDate(Je,this._max)||(this._max=Je,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(pe){const Je=this._matchesFilter(this.value);this._dateFilter=pe,this._matchesFilter(this.value)!==Je&&this._validatorOnChange()}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()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(pe){return pe}_assignValueToModel(pe){this._model&&this._model.updateSelection(pe,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(pe){return pe.source!==this}}return qe.\u0275fac=function(pe){return new(pe||qe)(o.Y36(o.SBq),o.Y36(R._A,8),o.Y36(R.sG,8),o.Y36(he.G_,8))},qe.\u0275dir=o.lG2({type:qe,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(pe,Je){1&pe&&o.NdJ("input",function(kt){return Je._onInput(kt.target.value)})("change",function(){return Je._onChange()})("blur",function(){return Je._onBlur()})("keydown",function(kt){return Je._onKeydown(kt)}),2&pe&&(o.Ikx("disabled",Je.disabled),o.uIk("aria-haspopup",Je._datepicker?"dialog":null)("aria-owns",(null==Je._datepicker?null:Je._datepicker.opened)&&Je._datepicker.id||null)("min",Je.min?Je._dateAdapter.toIso8601(Je.min):null)("max",Je.max?Je._dateAdapter.toIso8601(Je.max):null)("data-mat-calendar",Je._datepicker?Je._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[o._Bn([Be,at,{provide:re.Jk,useExisting:qe}]),o.qOj]}),qe})(),At=(()=>{class qe{}return qe.\u0275fac=function(pe){return new(pe||qe)},qe.\u0275dir=o.lG2({type:qe,selectors:[["","matDatepickerToggleIcon",""]]}),qe})(),li=(()=>{class qe{constructor(pe,Je,St){this._intl=pe,this._changeDetectorRef=Je,this._stateChanges=L.w0.EMPTY;const kt=Number(St);this.tabIndex=kt||0===kt?kt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(pe){this._disabled=(0,W.Ig)(pe)}ngOnChanges(pe){pe.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(pe){this.datepicker&&!this.disabled&&(this.datepicker.open(),pe.stopPropagation())}_watchStateChanges(){const pe=this.datepicker?this.datepicker.stateChanges:(0,A.of)(),Je=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,A.of)(),St=this.datepicker?(0,O.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,A.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,O.T)(this._intl.changes,pe,Je,St).subscribe(()=>this._changeDetectorRef.markForCheck())}}return qe.\u0275fac=function(pe){return new(pe||qe)(o.Y36(jt),o.Y36(o.sBO),o.$8M("tabindex"))},qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-datepicker-toggle"]],contentQueries:function(pe,Je,St){if(1&pe&&o.Suo(St,At,5),2&pe){let kt;o.iGM(kt=o.CRH())&&(Je._customIcon=kt.first)}},viewQuery:function(pe,Je){if(1&pe&&o.Gf(r,5),2&pe){let St;o.iGM(St=o.CRH())&&(Je._button=St.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(pe,Je){1&pe&&o.NdJ("click",function(kt){return Je._open(kt)}),2&pe&&(o.uIk("tabindex",null)("data-mat-calendar",Je.datepicker?Je.datepicker.id:null),o.ekj("mat-datepicker-toggle-active",Je.datepicker&&Je.datepicker.opened)("mat-accent",Je.datepicker&&"accent"===Je.datepicker.color)("mat-warn",Je.datepicker&&"warn"===Je.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[o.TTD],ngContentSelectors:N,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",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(pe,Je){1&pe&&(o.F$t(U),o.TgZ(0,"button",0,1),o.YNc(2,b,2,0,"svg",2),o.Hsn(3),o.qZA()),2&pe&&(o.Q6J("disabled",Je.disabled)("disableRipple",Je.disableRipple),o.uIk("aria-haspopup",Je.datepicker?"dialog":null)("aria-label",Je.ariaLabel||Je._intl.openCalendarLabel)("tabindex",Je.disabled?-1:Je.tabIndex),o.xp6(2),o.Q6J("ngIf",!Je._customIcon))},directives:[M.lW,C.O5],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"],encapsulation:2,changeDetection:0}),qe})(),ye=(()=>{class qe{}return qe.\u0275fac=function(pe){return new(pe||qe)},qe.\u0275mod=o.oAB({type:qe}),qe.\u0275inj=o.cJS({providers:[jt,ge],imports:[[C.ez,M.ot,t.U8,e.rt,v.eL,R.BQ],l.ZD]}),qe})()},8966:(Ve,Q,m)=>{"use strict";m.d(Q,{WI:()=>i,Bq:()=>a,uw:()=>x,ZT:()=>U,Is:()=>Re,so:()=>se});var e=m(9776),t=m(7429),v=m(5e3),C=m(508),o=m(226),M=m(7579),l=m(9770),R=m(727),s=m(9646),L=m(9300),O=m(5698),A=m(8675),E=m(925),P=m(9808),w=m(1777),Z=m(5664),j=m(1159),W=m(6360);function ie(ze,Le){}class ee{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const ve={dialogContainer:(0,w.X$)("dialogContainer",[(0,w.SB)("void, exit",(0,w.oB)({opacity:0,transform:"scale(0.7)"})),(0,w.SB)("enter",(0,w.oB)({transform:"none"})),(0,w.eR)("* => enter",(0,w.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,w.oB)({transform:"none",opacity:1}))),(0,w.eR)("* => void, * => exit",(0,w.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,w.oB)({opacity:0})))])};let re=(()=>{class ze extends t.en{constructor(K,we,Y,ae,Ge,vt,Fe,Ne){super(),this._elementRef=K,this._focusTrapFactory=we,this._changeDetectorRef=Y,this._config=Ge,this._interactivityChecker=vt,this._ngZone=Fe,this._focusMonitor=Ne,this._animationStateChanged=new v.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=ue=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(ue)),this._ariaLabelledBy=Ge.ariaLabelledBy||null,this._document=ae}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(K){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(K)}attachTemplatePortal(K){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(K)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(K,we){this._interactivityChecker.isFocusable(K)||(K.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{K.addEventListener("blur",()=>K.removeAttribute("tabindex")),K.addEventListener("mousedown",()=>K.removeAttribute("tabindex"))})),K.focus(we)}_focusByCssSelector(K,we){let Y=this._elementRef.nativeElement.querySelector(K);Y&&this._forceFocus(Y,we)}_trapFocus(){const K=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||K.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(we=>{we||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const K=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&K&&"function"==typeof K.focus){const we=(0,E.ht)(),Y=this._elementRef.nativeElement;(!we||we===this._document.body||we===Y||Y.contains(we))&&(this._focusMonitor?(this._focusMonitor.focusVia(K,this._closeInteractionType),this._closeInteractionType=null):K.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,E.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const K=this._elementRef.nativeElement,we=(0,E.ht)();return K===we||K.contains(we)}}return ze.\u0275fac=function(K){return new(K||ze)(v.Y36(v.SBq),v.Y36(Z.qV),v.Y36(v.sBO),v.Y36(P.K0,8),v.Y36(ee),v.Y36(Z.ic),v.Y36(v.R0b),v.Y36(Z.tE))},ze.\u0275dir=v.lG2({type:ze,viewQuery:function(K,we){if(1&K&&v.Gf(t.Pl,7),2&K){let Y;v.iGM(Y=v.CRH())&&(we._portalOutlet=Y.first)}},features:[v.qOj]}),ze})(),de=(()=>{class ze extends re{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:K,totalTime:we}){"enter"===K?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:we})):"exit"===K&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:we}))}_onAnimationStart({toState:K,totalTime:we}){"enter"===K?this._animationStateChanged.next({state:"opening",totalTime:we}):("exit"===K||"void"===K)&&this._animationStateChanged.next({state:"closing",totalTime:we})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return ze.\u0275fac=function(){let Le;return function(we){return(Le||(Le=v.n5z(ze)))(we||ze)}}(),ze.\u0275cmp=v.Xpm({type:ze,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(K,we){1&K&&v.WFA("@dialogContainer.start",function(ae){return we._onAnimationStart(ae)})("@dialogContainer.done",function(ae){return we._onAnimationDone(ae)}),2&K&&(v.Ikx("id",we._id),v.uIk("role",we._config.role)("aria-labelledby",we._config.ariaLabel?null:we._ariaLabelledBy)("aria-label",we._config.ariaLabel)("aria-describedby",we._config.ariaDescribedBy||null),v.d8E("@dialogContainer",we._state))},features:[v.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(K,we){1&K&&v.YNc(0,ie,0,0,"ng-template",0)},directives:[t.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[ve.dialogContainer]}}),ze})(),le=0;class se{constructor(Le,K,we="mat-dialog-"+le++){this._overlayRef=Le,this._containerInstance=K,this.id=we,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new M.x,this._afterClosed=new M.x,this._beforeClosed=new M.x,this._state=0,K._id=we,K._animationStateChanged.pipe((0,L.h)(Y=>"opened"===Y.state),(0,O.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),K._animationStateChanged.pipe((0,L.h)(Y=>"closed"===Y.state),(0,O.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Le.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),Le.keydownEvents().pipe((0,L.h)(Y=>Y.keyCode===j.hY&&!this.disableClose&&!(0,j.Vb)(Y))).subscribe(Y=>{Y.preventDefault(),y(this,"keyboard")}),Le.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():y(this,"mouse")})}close(Le){this._result=Le,this._containerInstance._animationStateChanged.pipe((0,L.h)(K=>"closing"===K.state),(0,O.q)(1)).subscribe(K=>{this._beforeClosed.next(Le),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),K.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(Le){let K=this._getPositionStrategy();return Le&&(Le.left||Le.right)?Le.left?K.left(Le.left):K.right(Le.right):K.centerHorizontally(),Le&&(Le.top||Le.bottom)?Le.top?K.top(Le.top):K.bottom(Le.bottom):K.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(Le="",K=""){return this._overlayRef.updateSize({width:Le,height:K}),this._overlayRef.updatePosition(),this}addPanelClass(Le){return this._overlayRef.addPanelClass(Le),this}removePanelClass(Le){return this._overlayRef.removePanelClass(Le),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function y(ze,Le,K){return void 0!==ze._containerInstance&&(ze._containerInstance._closeInteractionType=Le),ze.close(K)}const i=new v.OlP("MatDialogData"),a=new v.OlP("mat-dialog-default-options"),p=new v.OlP("mat-dialog-scroll-strategy"),D={provide:p,deps:[e.aV],useFactory:function _(ze){return()=>ze.scrollStrategies.block()}};let I=(()=>{class ze{constructor(K,we,Y,ae,Ge,vt,Fe,Ne,ue,Oe){this._overlay=K,this._injector=we,this._defaultOptions=Y,this._parentDialog=ae,this._overlayContainer=Ge,this._dialogRefConstructor=Fe,this._dialogContainerType=Ne,this._dialogDataToken=ue,this._animationMode=Oe,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new M.x,this._afterOpenedAtThisLevel=new M.x,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=(0,l.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,A.O)(void 0))),this._scrollStrategy=vt}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const K=this._parentDialog;return K?K._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(K,we){if(we=function r(ze,Le){return Object.assign(Object.assign({},Le),ze)}(we,this._defaultOptions||new ee),we.id&&this.getDialogById(we.id),this._dialogAnimatingOpen)return this._lastDialogRef;const Y=this._createOverlay(we),ae=this._attachDialogContainer(Y,we);if("NoopAnimations"!==this._animationMode){const vt=ae._animationStateChanged.subscribe(Fe=>{"opening"===Fe.state&&(this._dialogAnimatingOpen=!0),"opened"===Fe.state&&(this._dialogAnimatingOpen=!1,vt.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new R.w0),this._animationStateSubscriptions.add(vt)}const Ge=this._attachDialogContent(K,ae,Y,we);return this._lastDialogRef=Ge,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Ge),Ge.afterClosed().subscribe(()=>this._removeOpenDialog(Ge)),this.afterOpened.next(Ge),ae._initializeWithAttachedContent(),Ge}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(K){return this.openDialogs.find(we=>we.id===K)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(K){const we=this._getOverlayConfig(K);return this._overlay.create(we)}_getOverlayConfig(K){const we=new e.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:K.scrollStrategy||this._scrollStrategy(),panelClass:K.panelClass,hasBackdrop:K.hasBackdrop,direction:K.direction,minWidth:K.minWidth,minHeight:K.minHeight,maxWidth:K.maxWidth,maxHeight:K.maxHeight,disposeOnNavigation:K.closeOnNavigation});return K.backdropClass&&(we.backdropClass=K.backdropClass),we}_attachDialogContainer(K,we){const ae=v.zs3.create({parent:we&&we.viewContainerRef&&we.viewContainerRef.injector||this._injector,providers:[{provide:ee,useValue:we}]}),Ge=new t.C5(this._dialogContainerType,we.viewContainerRef,ae,we.componentFactoryResolver);return K.attach(Ge).instance}_attachDialogContent(K,we,Y,ae){const Ge=new this._dialogRefConstructor(Y,we,ae.id);if(K instanceof v.Rgc)we.attachTemplatePortal(new t.UE(K,null,{$implicit:ae.data,dialogRef:Ge}));else{const vt=this._createInjector(ae,Ge,we),Fe=we.attachComponentPortal(new t.C5(K,ae.viewContainerRef,vt));Ge.componentInstance=Fe.instance}return Ge.updateSize(ae.width,ae.height).updatePosition(ae.position),Ge}_createInjector(K,we,Y){const ae=K&&K.viewContainerRef&&K.viewContainerRef.injector,Ge=[{provide:this._dialogContainerType,useValue:Y},{provide:this._dialogDataToken,useValue:K.data},{provide:this._dialogRefConstructor,useValue:we}];return K.direction&&(!ae||!ae.get(o.Is,null,v.XFs.Optional))&&Ge.push({provide:o.Is,useValue:{value:K.direction,change:(0,s.of)()}}),v.zs3.create({parent:ae||this._injector,providers:Ge})}_removeOpenDialog(K){const we=this.openDialogs.indexOf(K);we>-1&&(this.openDialogs.splice(we,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Y,ae)=>{Y?ae.setAttribute("aria-hidden",Y):ae.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const K=this._overlayContainer.getContainerElement();if(K.parentElement){const we=K.parentElement.children;for(let Y=we.length-1;Y>-1;Y--){let ae=we[Y];ae!==K&&"SCRIPT"!==ae.nodeName&&"STYLE"!==ae.nodeName&&!ae.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(ae,ae.getAttribute("aria-hidden")),ae.setAttribute("aria-hidden","true"))}}}_closeDialogs(K){let we=K.length;for(;we--;)K[we].close()}}return ze.\u0275fac=function(K){v.$Z()},ze.\u0275dir=v.lG2({type:ze}),ze})(),x=(()=>{class ze extends I{constructor(K,we,Y,ae,Ge,vt,Fe,Ne){super(K,we,ae,vt,Fe,Ge,se,de,i,Ne)}}return ze.\u0275fac=function(K){return new(K||ze)(v.LFG(e.aV),v.LFG(v.zs3),v.LFG(P.Ye,8),v.LFG(a,8),v.LFG(p),v.LFG(ze,12),v.LFG(e.Xj),v.LFG(W.Qb,8))},ze.\u0275prov=v.Yz7({token:ze,factory:ze.\u0275fac}),ze})(),U=(()=>{class ze{constructor(K,we,Y){this.dialogRef=K,this._elementRef=we,this._dialog=Y,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=function xe(ze,Le){let K=ze.nativeElement.parentElement;for(;K&&!K.classList.contains("mat-dialog-container");)K=K.parentElement;return K?Le.find(we=>we.id===K.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(K){const we=K._matDialogClose||K._matDialogCloseResult;we&&(this.dialogResult=we.currentValue)}_onButtonClick(K){y(this.dialogRef,0===K.screenX&&0===K.screenY?"keyboard":"mouse",this.dialogResult)}}return ze.\u0275fac=function(K){return new(K||ze)(v.Y36(se,8),v.Y36(v.SBq),v.Y36(x))},ze.\u0275dir=v.lG2({type:ze,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(K,we){1&K&&v.NdJ("click",function(ae){return we._onButtonClick(ae)}),2&K&&v.uIk("aria-label",we.ariaLabel||null)("type",we.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[v.TTD]}),ze})(),Re=(()=>{class ze{}return ze.\u0275fac=function(K){return new(K||ze)},ze.\u0275mod=v.oAB({type:ze}),ze.\u0275inj=v.cJS({providers:[x,D],imports:[[e.U8,t.eL,C.BQ],C.BQ]}),ze})()},4834:(Ve,Q,m)=>{"use strict";m.d(Q,{d:()=>C,t:()=>o});var e=m(5e3),t=m(3191),v=m(508);let C=(()=>{class M{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(R){this._vertical=(0,t.Ig)(R)}get inset(){return this._inset}set inset(R){this._inset=(0,t.Ig)(R)}}return M.\u0275fac=function(R){return new(R||M)},M.\u0275cmp=e.Xpm({type:M,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(R,s){2&R&&(e.uIk("aria-orientation",s.vertical?"vertical":"horizontal"),e.ekj("mat-divider-vertical",s.vertical)("mat-divider-horizontal",!s.vertical)("mat-divider-inset",s.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(R,s){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.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}),M})(),o=(()=>{class M{}return M.\u0275fac=function(R){return new(R||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({imports:[[v.BQ],v.BQ]}),M})()},1125:(Ve,Q,m)=>{"use strict";m.d(Q,{pp:()=>Le,To:()=>K,ib:()=>U,u4:()=>Re,yz:()=>xe,yK:()=>ze});var e=m(5e3),t=m(3191),v=m(7579),C=m(727),o=m(449);let M=0;const l=new e.OlP("CdkAccordion");let R=(()=>{class we{constructor(){this._stateChanges=new v.x,this._openCloseAllActions=new v.x,this.id="cdk-accordion-"+M++,this._multi=!1}get multi(){return this._multi}set multi(ae){this._multi=(0,t.Ig)(ae)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(ae){this._stateChanges.next(ae)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return we.\u0275fac=function(ae){return new(ae||we)},we.\u0275dir=e.lG2({type:we,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:l,useExisting:we}]),e.TTD]}),we})(),s=0,L=(()=>{class we{constructor(ae,Ge,vt){this.accordion=ae,this._changeDetectorRef=Ge,this._expansionDispatcher=vt,this._openCloseAllSubscription=C.w0.EMPTY,this.closed=new e.vpe,this.opened=new e.vpe,this.destroyed=new e.vpe,this.expandedChange=new e.vpe,this.id="cdk-accordion-child-"+s++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=vt.listen((Fe,Ne)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Ne&&this.id!==Fe&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(ae){ae=(0,t.Ig)(ae),this._expanded!==ae&&(this._expanded=ae,this.expandedChange.emit(ae),ae?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(ae){this._disabled=(0,t.Ig)(ae)}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(ae=>{this.disabled||(this.expanded=ae)})}}return we.\u0275fac=function(ae){return new(ae||we)(e.Y36(l,12),e.Y36(e.sBO),e.Y36(o.A8))},we.\u0275dir=e.lG2({type:we,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[e._Bn([{provide:l,useValue:void 0}])]}),we})(),O=(()=>{class we{}return we.\u0275fac=function(ae){return new(ae||we)},we.\u0275mod=e.oAB({type:we}),we.\u0275inj=e.cJS({}),we})();var A=m(7429),E=m(9808),P=m(508),w=m(5664),Z=m(1884),j=m(8675),W=m(9300),ie=m(5698),ee=m(1159),ve=m(6360),he=m(515),re=m(6451),de=m(1777);const le=["body"];function se(we,Y){}const y=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],i=["mat-expansion-panel-header","*","mat-action-row"];function a(we,Y){if(1&we&&e._UZ(0,"span",2),2&we){const ae=e.oxw();e.Q6J("@indicatorRotate",ae._getExpandedState())}}const p=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],u=["mat-panel-title","mat-panel-description","*"],_=new e.OlP("MAT_ACCORDION"),D="225ms cubic-bezier(0.4,0.0,0.2,1)",I={indicatorRotate:(0,de.X$)("indicatorRotate",[(0,de.SB)("collapsed, void",(0,de.oB)({transform:"rotate(0deg)"})),(0,de.SB)("expanded",(0,de.oB)({transform:"rotate(180deg)"})),(0,de.eR)("expanded <=> collapsed, void => collapsed",(0,de.jt)(D))]),bodyExpansion:(0,de.X$)("bodyExpansion",[(0,de.SB)("collapsed, void",(0,de.oB)({height:"0px",visibility:"hidden"})),(0,de.SB)("expanded",(0,de.oB)({height:"*",visibility:"visible"})),(0,de.eR)("expanded <=> collapsed, void => collapsed",(0,de.jt)(D))])};let x=(()=>{class we{constructor(ae){this._template=ae}}return we.\u0275fac=function(ae){return new(ae||we)(e.Y36(e.Rgc))},we.\u0275dir=e.lG2({type:we,selectors:[["ng-template","matExpansionPanelContent",""]]}),we})(),r=0;const b=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let U=(()=>{class we extends L{constructor(ae,Ge,vt,Fe,Ne,ue,Oe){super(ae,Ge,vt),this._viewContainerRef=Fe,this._animationMode=ue,this._hideToggle=!1,this.afterExpand=new e.vpe,this.afterCollapse=new e.vpe,this._inputChanges=new v.x,this._headerId="mat-expansion-panel-header-"+r++,this._bodyAnimationDone=new v.x,this.accordion=ae,this._document=Ne,this._bodyAnimationDone.pipe((0,Z.x)((Pe,q)=>Pe.fromState===q.fromState&&Pe.toState===q.toState)).subscribe(Pe=>{"void"!==Pe.fromState&&("expanded"===Pe.toState?this.afterExpand.emit():"collapsed"===Pe.toState&&this.afterCollapse.emit())}),Oe&&(this.hideToggle=Oe.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(ae){this._hideToggle=(0,t.Ig)(ae)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(ae){this._togglePosition=ae}_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.opened.pipe((0,j.O)(null),(0,W.h)(()=>this.expanded&&!this._portal),(0,ie.q)(1)).subscribe(()=>{this._portal=new A.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(ae){this._inputChanges.next(ae)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const ae=this._document.activeElement,Ge=this._body.nativeElement;return ae===Ge||Ge.contains(ae)}return!1}}return we.\u0275fac=function(ae){return new(ae||we)(e.Y36(_,12),e.Y36(e.sBO),e.Y36(o.A8),e.Y36(e.s_b),e.Y36(E.K0),e.Y36(ve.Qb,8),e.Y36(b,8))},we.\u0275cmp=e.Xpm({type:we,selectors:[["mat-expansion-panel"]],contentQueries:function(ae,Ge,vt){if(1&ae&&e.Suo(vt,x,5),2&ae){let Fe;e.iGM(Fe=e.CRH())&&(Ge._lazyContent=Fe.first)}},viewQuery:function(ae,Ge){if(1&ae&&e.Gf(le,5),2&ae){let vt;e.iGM(vt=e.CRH())&&(Ge._body=vt.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(ae,Ge){2&ae&&e.ekj("mat-expanded",Ge.expanded)("_mat-animation-noopable","NoopAnimations"===Ge._animationMode)("mat-expansion-panel-spacing",Ge._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[e._Bn([{provide:_,useValue:void 0}]),e.qOj,e.TTD],ngContentSelectors:i,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(ae,Ge){1&ae&&(e.F$t(y),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(Fe){return Ge._bodyAnimationDone.next(Fe)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,se,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&ae&&(e.xp6(1),e.Q6J("@bodyExpansion",Ge._getExpandedState())("id",Ge.id),e.uIk("aria-labelledby",Ge._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",Ge._portal))},directives:[A.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.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:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow: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}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[I.bodyExpansion]},changeDetection:0}),we})();class z{}const be=(0,P.sb)(z);let xe=(()=>{class we extends be{constructor(ae,Ge,vt,Fe,Ne,ue,Oe){super(),this.panel=ae,this._element=Ge,this._focusMonitor=vt,this._changeDetectorRef=Fe,this._animationMode=ue,this._parentChangeSubscription=C.w0.EMPTY;const Pe=ae.accordion?ae.accordion._stateChanges.pipe((0,W.h)(q=>!(!q.hideToggle&&!q.togglePosition))):he.E;this.tabIndex=parseInt(Oe||"")||0,this._parentChangeSubscription=(0,re.T)(ae.opened,ae.closed,Pe,ae._inputChanges.pipe((0,W.h)(q=>!!(q.hideToggle||q.disabled||q.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),ae.closed.pipe((0,W.h)(()=>ae._containsFocus())).subscribe(()=>vt.focusVia(Ge,"program")),Ne&&(this.expandedHeight=Ne.expandedHeight,this.collapsedHeight=Ne.collapsedHeight)}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 ae=this._isExpanded();return ae&&this.expandedHeight?this.expandedHeight:!ae&&this.collapsedHeight?this.collapsedHeight:null}_keydown(ae){switch(ae.keyCode){case ee.L_:case ee.K5:(0,ee.Vb)(ae)||(ae.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(ae))}}focus(ae,Ge){ae?this._focusMonitor.focusVia(this._element,ae,Ge):this._element.nativeElement.focus(Ge)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(ae=>{ae&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return we.\u0275fac=function(ae){return new(ae||we)(e.Y36(U,1),e.Y36(e.SBq),e.Y36(w.tE),e.Y36(e.sBO),e.Y36(b,8),e.Y36(ve.Qb,8),e.$8M("tabindex"))},we.\u0275cmp=e.Xpm({type:we,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(ae,Ge){1&ae&&e.NdJ("click",function(){return Ge._toggle()})("keydown",function(Fe){return Ge._keydown(Fe)}),2&ae&&(e.uIk("id",Ge.panel._headerId)("tabindex",Ge.tabIndex)("aria-controls",Ge._getPanelId())("aria-expanded",Ge._isExpanded())("aria-disabled",Ge.panel.disabled),e.Udp("height",Ge._getHeaderHeight()),e.ekj("mat-expanded",Ge._isExpanded())("mat-expansion-toggle-indicator-after","after"===Ge._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===Ge._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===Ge._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.qOj],ngContentSelectors:u,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(ae,Ge){1&ae&&(e.F$t(p),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,a,1,1,"span",1)),2&ae&&(e.xp6(4),e.Q6J("ngIf",Ge._showToggle()))},directives:[E.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.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:not([aria-disabled=true]){cursor:pointer}.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-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[I.indicatorRotate]},changeDetection:0}),we})(),Re=(()=>{class we{}return we.\u0275fac=function(ae){return new(ae||we)},we.\u0275dir=e.lG2({type:we,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),we})(),ze=(()=>{class we{}return we.\u0275fac=function(ae){return new(ae||we)},we.\u0275dir=e.lG2({type:we,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),we})(),Le=(()=>{class we extends R{constructor(){super(...arguments),this._ownHeaders=new e.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(ae){this._hideToggle=(0,t.Ig)(ae)}ngAfterContentInit(){this._headers.changes.pipe((0,j.O)(this._headers)).subscribe(ae=>{this._ownHeaders.reset(ae.filter(Ge=>Ge.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new w.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(ae){this._keyManager.onKeydown(ae)}_handleHeaderFocus(ae){this._keyManager.updateActiveItem(ae)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return we.\u0275fac=function(){let Y;return function(Ge){return(Y||(Y=e.n5z(we)))(Ge||we)}}(),we.\u0275dir=e.lG2({type:we,selectors:[["mat-accordion"]],contentQueries:function(ae,Ge,vt){if(1&ae&&e.Suo(vt,xe,5),2&ae){let Fe;e.iGM(Fe=e.CRH())&&(Ge._headers=Fe)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(ae,Ge){2&ae&&e.ekj("mat-accordion-multi",Ge.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[e._Bn([{provide:_,useExisting:we}]),e.qOj]}),we})(),K=(()=>{class we{}return we.\u0275fac=function(ae){return new(ae||we)},we.\u0275mod=e.oAB({type:we}),we.\u0275inj=e.cJS({imports:[[E.ez,P.BQ,O,A.eL]]}),we})()},7322:(Ve,Q,m)=>{"use strict";m.d(Q,{G_:()=>ue,TO:()=>I,KE:()=>Oe,Eo:()=>r,lN:()=>Pe,bx:()=>xe,R9:()=>Y});var e=m(7144),t=m(9808),v=m(5e3),C=m(508),o=m(3191),M=m(7579),l=m(6451),R=m(4968),s=m(8675),L=m(2722),O=m(5698),A=m(1777),E=m(6360),P=m(226),w=m(925);const Z=["connectionContainer"],j=["inputContainer"],W=["label"];function ie(q,$){1&q&&(v.ynx(0),v.TgZ(1,"div",14),v._UZ(2,"div",15),v._UZ(3,"div",16),v._UZ(4,"div",17),v.qZA(),v.TgZ(5,"div",18),v._UZ(6,"div",15),v._UZ(7,"div",16),v._UZ(8,"div",17),v.qZA(),v.BQk())}function ee(q,$){if(1&q){const ce=v.EpF();v.TgZ(0,"div",19),v.NdJ("cdkObserveContent",function(){return v.CHM(ce),v.oxw().updateOutlineGap()}),v.Hsn(1,1),v.qZA()}if(2&q){const ce=v.oxw();v.Q6J("cdkObserveContentDisabled","outline"!=ce.appearance)}}function ve(q,$){if(1&q&&(v.ynx(0),v.Hsn(1,2),v.TgZ(2,"span"),v._uU(3),v.qZA(),v.BQk()),2&q){const ce=v.oxw(2);v.xp6(3),v.Oqu(ce._control.placeholder)}}function he(q,$){1&q&&v.Hsn(0,3,["*ngSwitchCase","true"])}function re(q,$){1&q&&(v.TgZ(0,"span",23),v._uU(1," *"),v.qZA())}function de(q,$){if(1&q){const ce=v.EpF();v.TgZ(0,"label",20,21),v.NdJ("cdkObserveContent",function(){return v.CHM(ce),v.oxw().updateOutlineGap()}),v.YNc(2,ve,4,1,"ng-container",12),v.YNc(3,he,1,0,"ng-content",12),v.YNc(4,re,2,0,"span",22),v.qZA()}if(2&q){const ce=v.oxw();v.ekj("mat-empty",ce._control.empty&&!ce._shouldAlwaysFloat())("mat-form-field-empty",ce._control.empty&&!ce._shouldAlwaysFloat())("mat-accent","accent"==ce.color)("mat-warn","warn"==ce.color),v.Q6J("cdkObserveContentDisabled","outline"!=ce.appearance)("id",ce._labelId)("ngSwitch",ce._hasLabel()),v.uIk("for",ce._control.id)("aria-owns",ce._control.id),v.xp6(2),v.Q6J("ngSwitchCase",!1),v.xp6(1),v.Q6J("ngSwitchCase",!0),v.xp6(1),v.Q6J("ngIf",!ce.hideRequiredMarker&&ce._control.required&&!ce._control.disabled)}}function le(q,$){1&q&&(v.TgZ(0,"div",24),v.Hsn(1,4),v.qZA())}function se(q,$){if(1&q&&(v.TgZ(0,"div",25),v._UZ(1,"span",26),v.qZA()),2&q){const ce=v.oxw();v.xp6(1),v.ekj("mat-accent","accent"==ce.color)("mat-warn","warn"==ce.color)}}function y(q,$){if(1&q&&(v.TgZ(0,"div"),v.Hsn(1,5),v.qZA()),2&q){const ce=v.oxw();v.Q6J("@transitionMessages",ce._subscriptAnimationState)}}function i(q,$){if(1&q&&(v.TgZ(0,"div",30),v._uU(1),v.qZA()),2&q){const ce=v.oxw(2);v.Q6J("id",ce._hintLabelId),v.xp6(1),v.Oqu(ce.hintLabel)}}function a(q,$){if(1&q&&(v.TgZ(0,"div",27),v.YNc(1,i,2,2,"div",28),v.Hsn(2,6),v._UZ(3,"div",29),v.Hsn(4,7),v.qZA()),2&q){const ce=v.oxw();v.Q6J("@transitionMessages",ce._subscriptAnimationState),v.xp6(1),v.Q6J("ngIf",ce.hintLabel)}}const p=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],u=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let _=0;const D=new v.OlP("MatError");let I=(()=>{class q{constructor(ce,Me){this.id="mat-error-"+_++,ce||Me.nativeElement.setAttribute("aria-live","polite")}}return q.\u0275fac=function(ce){return new(ce||q)(v.$8M("aria-live"),v.Y36(v.SBq))},q.\u0275dir=v.lG2({type:q,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(ce,Me){2&ce&&v.uIk("id",Me.id)},inputs:{id:"id"},features:[v._Bn([{provide:D,useExisting:q}])]}),q})();const x={transitionMessages:(0,A.X$)("transitionMessages",[(0,A.SB)("enter",(0,A.oB)({opacity:1,transform:"translateY(0%)"})),(0,A.eR)("void => enter",[(0,A.oB)({opacity:0,transform:"translateY(-5px)"}),(0,A.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let r=(()=>{class q{}return q.\u0275fac=function(ce){return new(ce||q)},q.\u0275dir=v.lG2({type:q}),q})(),z=0;const be=new v.OlP("MatHint");let xe=(()=>{class q{constructor(){this.align="start",this.id="mat-hint-"+z++}}return q.\u0275fac=function(ce){return new(ce||q)},q.\u0275dir=v.lG2({type:q,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(ce,Me){2&ce&&(v.uIk("id",Me.id)("align",null),v.ekj("mat-form-field-hint-end","end"===Me.align))},inputs:{align:"align",id:"id"},features:[v._Bn([{provide:be,useExisting:q}])]}),q})(),Re=(()=>{class q{}return q.\u0275fac=function(ce){return new(ce||q)},q.\u0275dir=v.lG2({type:q,selectors:[["mat-label"]]}),q})(),ze=(()=>{class q{}return q.\u0275fac=function(ce){return new(ce||q)},q.\u0275dir=v.lG2({type:q,selectors:[["mat-placeholder"]]}),q})();const Le=new v.OlP("MatPrefix"),we=new v.OlP("MatSuffix");let Y=(()=>{class q{}return q.\u0275fac=function(ce){return new(ce||q)},q.\u0275dir=v.lG2({type:q,selectors:[["","matSuffix",""]],features:[v._Bn([{provide:we,useExisting:q}])]}),q})(),ae=0;const Fe=(0,C.pj)(class{constructor(q){this._elementRef=q}},"primary"),Ne=new v.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),ue=new v.OlP("MatFormField");let Oe=(()=>{class q extends Fe{constructor(ce,Me,Ue,lt,nt,ft,it){super(ce),this._changeDetectorRef=Me,this._dir=Ue,this._defaults=lt,this._platform=nt,this._ngZone=ft,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new M.x,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+ae++,this._labelId="mat-form-field-label-"+ae++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==it,this.appearance=lt&<.appearance?lt.appearance:"legacy",this._hideRequiredMarker=!(!lt||null==lt.hideRequiredMarker)&<.hideRequiredMarker}get appearance(){return this._appearance}set appearance(ce){const Me=this._appearance;this._appearance=ce||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&Me!==ce&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(ce){this._hideRequiredMarker=(0,o.Ig)(ce)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(ce){this._hintLabel=ce,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(ce){ce!==this._floatLabel&&(this._floatLabel=ce||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(ce){this._explicitFormFieldControl=ce}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const ce=this._control;ce.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${ce.controlType}`),ce.stateChanges.pipe((0,s.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),ce.ngControl&&ce.ngControl.valueChanges&&ce.ngControl.valueChanges.pipe((0,L.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,L.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,l.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,s.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,s.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,L.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(ce){const Me=this._control?this._control.ngControl:null;return Me&&Me[ce]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,R.R)(this._label.nativeElement,"transitionend").pipe((0,O.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let ce=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&ce.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const Me=this._hintChildren?this._hintChildren.find(lt=>"start"===lt.align):null,Ue=this._hintChildren?this._hintChildren.find(lt=>"end"===lt.align):null;Me?ce.push(Me.id):this._hintLabel&&ce.push(this._hintLabelId),Ue&&ce.push(Ue.id)}else this._errorChildren&&ce.push(...this._errorChildren.map(Me=>Me.id));this._control.setDescribedByIds(ce)}}_validateControlChild(){}updateOutlineGap(){const ce=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&ce&&ce.children.length&&ce.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let Me=0,Ue=0;const lt=this._connectionContainerRef.nativeElement,nt=lt.querySelectorAll(".mat-form-field-outline-start"),ft=lt.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const it=lt.getBoundingClientRect();if(0===it.width&&0===it.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const rt=this._getStartEnd(it),Mt=ce.children,Zt=this._getStartEnd(Mt[0].getBoundingClientRect());let Ft=0;for(let Vt=0;Vt0?.75*Ft+10:0}for(let it=0;it{class q{}return q.\u0275fac=function(ce){return new(ce||q)},q.\u0275mod=v.oAB({type:q}),q.\u0275inj=v.cJS({imports:[[t.ez,C.BQ,e.Q8],C.BQ]}),q})()},3954:(Ve,Q,m)=>{"use strict";m.d(Q,{Il:()=>le,N6:()=>se,DX:()=>A});var e=m(5e3),t=m(508),v=m(3191),C=m(226);const o=["*"];class s{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const a=Math.max(...this.tracker);return a>1?this.rowCount+a-1:this.rowCount}update(a,p){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(a),this.tracker.fill(0,0,this.tracker.length),this.positions=p.map(u=>this._trackTile(u))}_trackTile(a){const p=this._findMatchingGap(a.colspan);return this._markTilePosition(p,a),this.columnIndex=p+a.colspan,new L(this.rowIndex,p)}_findMatchingGap(a){let p=-1,u=-1;do{this.columnIndex+a>this.tracker.length?(this._nextRow(),p=this.tracker.indexOf(0,this.columnIndex),u=this._findGapEndIndex(p)):(p=this.tracker.indexOf(0,this.columnIndex),-1!=p?(u=this._findGapEndIndex(p),this.columnIndex=p+1):(this._nextRow(),p=this.tracker.indexOf(0,this.columnIndex),u=this._findGapEndIndex(p)))}while(u-p{class i{constructor(p,u){this._element=p,this._gridList=u,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(p){this._rowspan=Math.round((0,v.su)(p))}get colspan(){return this._colspan}set colspan(p){this._colspan=Math.round((0,v.su)(p))}_setStyle(p,u){this._element.nativeElement.style[p]=u}}return i.\u0275fac=function(p){return new(p||i)(e.Y36(e.SBq),e.Y36(O,8))},i.\u0275cmp=e.Xpm({type:i,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(p,u){2&p&&e.uIk("rowspan",u.rowspan)("colspan",u.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:o,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(p,u){1&p&&(e.F$t(),e.TgZ(0,"div",0),e.Hsn(1),e.qZA())},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-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}),i})();const j=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class W{constructor(){this._rows=0,this._rowspan=0}init(a,p,u,_){this._gutterSize=re(a),this._rows=p.rowCount,this._rowspan=p.rowspan,this._cols=u,this._direction=_}getBaseTileSize(a,p){return`(${a}% - (${this._gutterSize} * ${p}))`}getTilePosition(a,p){return 0===p?"0":he(`(${a} + ${this._gutterSize}) * ${p}`)}getTileSize(a,p){return`(${a} * ${p}) + (${p-1} * ${this._gutterSize})`}setStyle(a,p,u){let _=100/this._cols,D=(this._cols-1)/this._cols;this.setColStyles(a,u,_,D),this.setRowStyles(a,p,_,D)}setColStyles(a,p,u,_){let D=this.getBaseTileSize(u,_);a._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(D,p)),a._setStyle("width",he(this.getTileSize(D,a.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(a){return`${this._rowspan} * ${this.getTileSize(a,1)}`}getComputedHeight(){return null}}class ie extends W{constructor(a){super(),this.fixedRowHeight=a}init(a,p,u,_){super.init(a,p,u,_),this.fixedRowHeight=re(this.fixedRowHeight),j.test(this.fixedRowHeight)}setRowStyles(a,p){a._setStyle("top",this.getTilePosition(this.fixedRowHeight,p)),a._setStyle("height",he(this.getTileSize(this.fixedRowHeight,a.rowspan)))}getComputedHeight(){return["height",he(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(a){a._setListStyle(["height",null]),a._tiles&&a._tiles.forEach(p=>{p._setStyle("top",null),p._setStyle("height",null)})}}class ee extends W{constructor(a){super(),this._parseRatio(a)}setRowStyles(a,p,u,_){this.baseTileHeight=this.getBaseTileSize(u/this.rowHeightRatio,_),a._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,p)),a._setStyle("paddingTop",he(this.getTileSize(this.baseTileHeight,a.rowspan)))}getComputedHeight(){return["paddingBottom",he(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(a){a._setListStyle(["paddingBottom",null]),a._tiles.forEach(p=>{p._setStyle("marginTop",null),p._setStyle("paddingTop",null)})}_parseRatio(a){const p=a.split(":");this.rowHeightRatio=parseFloat(p[0])/parseFloat(p[1])}}class ve extends W{setRowStyles(a,p){let D=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);a._setStyle("top",this.getTilePosition(D,p)),a._setStyle("height",he(this.getTileSize(D,a.rowspan)))}reset(a){a._tiles&&a._tiles.forEach(p=>{p._setStyle("top",null),p._setStyle("height",null)})}}function he(i){return`calc(${i})`}function re(i){return i.match(/([A-Za-z%]+)$/)?i:`${i}px`}let le=(()=>{class i{constructor(p,u){this._element=p,this._dir=u,this._gutter="1px"}get cols(){return this._cols}set cols(p){this._cols=Math.max(1,Math.round((0,v.su)(p)))}get gutterSize(){return this._gutter}set gutterSize(p){this._gutter=`${null==p?"":p}`}get rowHeight(){return this._rowHeight}set rowHeight(p){const u=`${null==p?"":p}`;u!==this._rowHeight&&(this._rowHeight=u,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(p){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===p?new ve:p&&p.indexOf(":")>-1?new ee(p):new ie(p)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new s);const p=this._tileCoordinator,u=this._tiles.filter(D=>!D._gridList||D._gridList===this),_=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,u),this._tileStyler.init(this.gutterSize,p,this.cols,_),u.forEach((D,I)=>{const x=p.positions[I];this._tileStyler.setStyle(D,x.row,x.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(p){p&&(this._element.nativeElement.style[p[0]]=p[1])}}return i.\u0275fac=function(p){return new(p||i)(e.Y36(e.SBq),e.Y36(C.Is,8))},i.\u0275cmp=e.Xpm({type:i,selectors:[["mat-grid-list"]],contentQueries:function(p,u,_){if(1&p&&e.Suo(_,A,5),2&p){let D;e.iGM(D=e.CRH())&&(u._tiles=D)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(p,u){2&p&&e.uIk("cols",u.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[e._Bn([{provide:O,useExisting:i}])],ngContentSelectors:o,decls:2,vars:0,template:function(p,u){1&p&&(e.F$t(),e.TgZ(0,"div"),e.Hsn(1),e.qZA())},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-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}),i})(),se=(()=>{class i{}return i.\u0275fac=function(p){return new(p||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[t.uc,t.BQ],t.uc,t.BQ]}),i})()},5245:(Ve,Q,m)=>{"use strict";m.d(Q,{Hw:()=>U,Ps:()=>N});var e=m(5e3),t=m(508),v=m(3191),C=m(9808),o=m(9646),M=m(2843),l=m(4128),R=m(727),s=m(8505),L=m(4004),O=m(262),A=m(8746),E=m(3099),P=m(5698),w=m(8138),Z=m(2313);const j=["*"];let W;function ee(z){var be;return(null===(be=function ie(){if(void 0===W&&(W=null,"undefined"!=typeof window)){const z=window;void 0!==z.trustedTypes&&(W=z.trustedTypes.createPolicy("angular#components",{createHTML:be=>be}))}return W}())||void 0===be?void 0:be.createHTML(z))||z}function ve(z){return Error(`Unable to find icon with the name "${z}"`)}function re(z){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${z}".`)}function de(z){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${z}".`)}class le{constructor(be,xe,Re){this.url=be,this.svgText=xe,this.options=Re}}let se=(()=>{class z{constructor(xe,Re,ze,Le){this._httpClient=xe,this._sanitizer=Re,this._errorHandler=Le,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=ze}addSvgIcon(xe,Re,ze){return this.addSvgIconInNamespace("",xe,Re,ze)}addSvgIconLiteral(xe,Re,ze){return this.addSvgIconLiteralInNamespace("",xe,Re,ze)}addSvgIconInNamespace(xe,Re,ze,Le){return this._addSvgIconConfig(xe,Re,new le(ze,null,Le))}addSvgIconResolver(xe){return this._resolvers.push(xe),this}addSvgIconLiteralInNamespace(xe,Re,ze,Le){const K=this._sanitizer.sanitize(e.q3G.HTML,ze);if(!K)throw de(ze);const we=ee(K);return this._addSvgIconConfig(xe,Re,new le("",we,Le))}addSvgIconSet(xe,Re){return this.addSvgIconSetInNamespace("",xe,Re)}addSvgIconSetLiteral(xe,Re){return this.addSvgIconSetLiteralInNamespace("",xe,Re)}addSvgIconSetInNamespace(xe,Re,ze){return this._addSvgIconSetConfig(xe,new le(Re,null,ze))}addSvgIconSetLiteralInNamespace(xe,Re,ze){const Le=this._sanitizer.sanitize(e.q3G.HTML,Re);if(!Le)throw de(Re);const K=ee(Le);return this._addSvgIconSetConfig(xe,new le("",K,ze))}registerFontClassAlias(xe,Re=xe){return this._fontCssClassesByAlias.set(xe,Re),this}classNameForFontAlias(xe){return this._fontCssClassesByAlias.get(xe)||xe}setDefaultFontSetClass(xe){return this._defaultFontSetClass=xe,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(xe){const Re=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,xe);if(!Re)throw re(xe);const ze=this._cachedIconsByUrl.get(Re);return ze?(0,o.of)(a(ze)):this._loadSvgIconFromConfig(new le(xe,null)).pipe((0,s.b)(Le=>this._cachedIconsByUrl.set(Re,Le)),(0,L.U)(Le=>a(Le)))}getNamedSvgIcon(xe,Re=""){const ze=p(Re,xe);let Le=this._svgIconConfigs.get(ze);if(Le)return this._getSvgFromConfig(Le);if(Le=this._getIconConfigFromResolvers(Re,xe),Le)return this._svgIconConfigs.set(ze,Le),this._getSvgFromConfig(Le);const K=this._iconSetConfigs.get(Re);return K?this._getSvgFromIconSetConfigs(xe,K):(0,M._)(ve(ze))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(xe){return xe.svgText?(0,o.of)(a(this._svgElementFromConfig(xe))):this._loadSvgIconFromConfig(xe).pipe((0,L.U)(Re=>a(Re)))}_getSvgFromIconSetConfigs(xe,Re){const ze=this._extractIconWithNameFromAnySet(xe,Re);if(ze)return(0,o.of)(ze);const Le=Re.filter(K=>!K.svgText).map(K=>this._loadSvgIconSetFromConfig(K).pipe((0,O.K)(we=>{const ae=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,K.url)} failed: ${we.message}`;return this._errorHandler.handleError(new Error(ae)),(0,o.of)(null)})));return(0,l.D)(Le).pipe((0,L.U)(()=>{const K=this._extractIconWithNameFromAnySet(xe,Re);if(!K)throw ve(xe);return K}))}_extractIconWithNameFromAnySet(xe,Re){for(let ze=Re.length-1;ze>=0;ze--){const Le=Re[ze];if(Le.svgText&&Le.svgText.toString().indexOf(xe)>-1){const K=this._svgElementFromConfig(Le),we=this._extractSvgIconFromSet(K,xe,Le.options);if(we)return we}}return null}_loadSvgIconFromConfig(xe){return this._fetchIcon(xe).pipe((0,s.b)(Re=>xe.svgText=Re),(0,L.U)(()=>this._svgElementFromConfig(xe)))}_loadSvgIconSetFromConfig(xe){return xe.svgText?(0,o.of)(null):this._fetchIcon(xe).pipe((0,s.b)(Re=>xe.svgText=Re))}_extractSvgIconFromSet(xe,Re,ze){const Le=xe.querySelector(`[id="${Re}"]`);if(!Le)return null;const K=Le.cloneNode(!0);if(K.removeAttribute("id"),"svg"===K.nodeName.toLowerCase())return this._setSvgAttributes(K,ze);if("symbol"===K.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(K),ze);const we=this._svgElementFromString(ee(""));return we.appendChild(K),this._setSvgAttributes(we,ze)}_svgElementFromString(xe){const Re=this._document.createElement("DIV");Re.innerHTML=xe;const ze=Re.querySelector("svg");if(!ze)throw Error(" tag not found");return ze}_toSvgElement(xe){const Re=this._svgElementFromString(ee("")),ze=xe.attributes;for(let Le=0;Leee(Ge)),(0,A.x)(()=>this._inProgressUrlFetches.delete(we)),(0,E.B)());return this._inProgressUrlFetches.set(we,ae),ae}_addSvgIconConfig(xe,Re,ze){return this._svgIconConfigs.set(p(xe,Re),ze),this}_addSvgIconSetConfig(xe,Re){const ze=this._iconSetConfigs.get(xe);return ze?ze.push(Re):this._iconSetConfigs.set(xe,[Re]),this}_svgElementFromConfig(xe){if(!xe.svgElement){const Re=this._svgElementFromString(xe.svgText);this._setSvgAttributes(Re,xe.options),xe.svgElement=Re}return xe.svgElement}_getIconConfigFromResolvers(xe,Re){for(let ze=0;zebe?be.pathname+be.search:""}}}),x=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],r=x.map(z=>`[${z}]`).join(", "),b=/^url\(['"]?#(.*?)['"]?\)$/;let U=(()=>{class z extends _{constructor(xe,Re,ze,Le,K){super(xe),this._iconRegistry=Re,this._location=Le,this._errorHandler=K,this._inline=!1,this._currentIconFetch=R.w0.EMPTY,ze||xe.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(xe){this._inline=(0,v.Ig)(xe)}get svgIcon(){return this._svgIcon}set svgIcon(xe){xe!==this._svgIcon&&(xe?this._updateSvgIcon(xe):this._svgIcon&&this._clearSvgElement(),this._svgIcon=xe)}get fontSet(){return this._fontSet}set fontSet(xe){const Re=this._cleanupFontValue(xe);Re!==this._fontSet&&(this._fontSet=Re,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(xe){const Re=this._cleanupFontValue(xe);Re!==this._fontIcon&&(this._fontIcon=Re,this._updateFontIconClasses())}_splitIconName(xe){if(!xe)return["",""];const Re=xe.split(":");switch(Re.length){case 1:return["",Re[0]];case 2:return Re;default:throw Error(`Invalid icon name: "${xe}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const xe=this._elementsWithExternalReferences;if(xe&&xe.size){const Re=this._location.getPathname();Re!==this._previousPath&&(this._previousPath=Re,this._prependPathToReferences(Re))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(xe){this._clearSvgElement();const Re=xe.querySelectorAll("style");for(let Le=0;Le{ze.forEach(K=>{Le.setAttribute(K.name,`url('${xe}#${K.value}')`)})})}_cacheChildrenWithExternalReferences(xe){const Re=xe.querySelectorAll(r),ze=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Le=0;Le{const we=Re[Le],Y=we.getAttribute(K),ae=Y?Y.match(b):null;if(ae){let Ge=ze.get(we);Ge||(Ge=[],ze.set(we,Ge)),Ge.push({name:K,value:ae[1]})}})}_updateSvgIcon(xe){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),xe){const[Re,ze]=this._splitIconName(xe);Re&&(this._svgNamespace=Re),ze&&(this._svgName=ze),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(ze,Re).pipe((0,P.q)(1)).subscribe(Le=>this._setSvgElement(Le),Le=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Re}:${ze}! ${Le.message}`))})}}}return z.\u0275fac=function(xe){return new(xe||z)(e.Y36(e.SBq),e.Y36(se),e.$8M("aria-hidden"),e.Y36(D),e.Y36(e.qLn))},z.\u0275cmp=e.Xpm({type:z,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(xe,Re){2&xe&&(e.uIk("data-mat-icon-type",Re._usingFontIcon()?"font":"svg")("data-mat-icon-name",Re._svgName||Re.fontIcon)("data-mat-icon-namespace",Re._svgNamespace||Re.fontSet),e.ekj("mat-icon-inline",Re.inline)("mat-icon-no-color","primary"!==Re.color&&"accent"!==Re.color&&"warn"!==Re.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:j,decls:1,vars:0,template:function(xe,Re){1&xe&&(e.F$t(),e.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[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}),z})(),N=(()=>{class z{}return z.\u0275fac=function(xe){return new(xe||z)},z.\u0275mod=e.oAB({type:z}),z.\u0275inj=e.cJS({imports:[[t.BQ],t.BQ]}),z})()},7531:(Ve,Q,m)=>{"use strict";m.d(Q,{Jk:()=>w,Nt:()=>ie,c:()=>ee});var e=m(3191),t=m(925),v=m(5e3),C=m(3075),o=m(508),M=m(7322),l=m(7579),R=m(515);const s=(0,t.i$)({passive:!0});let L=(()=>{class ve{constructor(re,de){this._platform=re,this._ngZone=de,this._monitoredElements=new Map}monitor(re){if(!this._platform.isBrowser)return R.E;const de=(0,e.fI)(re),le=this._monitoredElements.get(de);if(le)return le.subject;const se=new l.x,y="cdk-text-field-autofilled",i=a=>{"cdk-text-field-autofill-start"!==a.animationName||de.classList.contains(y)?"cdk-text-field-autofill-end"===a.animationName&&de.classList.contains(y)&&(de.classList.remove(y),this._ngZone.run(()=>se.next({target:a.target,isAutofilled:!1}))):(de.classList.add(y),this._ngZone.run(()=>se.next({target:a.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{de.addEventListener("animationstart",i,s),de.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(de,{subject:se,unlisten:()=>{de.removeEventListener("animationstart",i,s)}}),se}stopMonitoring(re){const de=(0,e.fI)(re),le=this._monitoredElements.get(de);le&&(le.unlisten(),le.subject.complete(),de.classList.remove("cdk-text-field-autofill-monitored"),de.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(de))}ngOnDestroy(){this._monitoredElements.forEach((re,de)=>this.stopMonitoring(de))}}return ve.\u0275fac=function(re){return new(re||ve)(v.LFG(t.t4),v.LFG(v.R0b))},ve.\u0275prov=v.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),E=(()=>{class ve{}return ve.\u0275fac=function(re){return new(re||ve)},ve.\u0275mod=v.oAB({type:ve}),ve.\u0275inj=v.cJS({imports:[[t.ud]]}),ve})();const w=new v.OlP("MAT_INPUT_VALUE_ACCESSOR"),Z=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let j=0;const W=(0,o.FD)(class{constructor(ve,he,re,de){this._defaultErrorStateMatcher=ve,this._parentForm=he,this._parentFormGroup=re,this.ngControl=de}});let ie=(()=>{class ve extends W{constructor(re,de,le,se,y,i,a,p,u,_){super(i,se,y,le),this._elementRef=re,this._platform=de,this._autofillMonitor=p,this._formField=_,this._uid="mat-input-"+j++,this.focused=!1,this.stateChanges=new l.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(x=>(0,t.qK)().has(x));const D=this._elementRef.nativeElement,I=D.nodeName.toLowerCase();this._inputValueAccessor=a||D,this._previousNativeValue=this.value,this.id=this.id,de.IOS&&u.runOutsideAngular(()=>{re.nativeElement.addEventListener("keyup",x=>{const r=x.target;!r.value&&0===r.selectionStart&&0===r.selectionEnd&&(r.setSelectionRange(1,1),r.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===I,this._isTextarea="textarea"===I,this._isInFormField=!!_,this._isNativeSelect&&(this.controlType=D.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(re){this._disabled=(0,e.Ig)(re),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(re){this._id=re||this._uid}get required(){var re,de,le,se;return null!==(se=null!==(re=this._required)&&void 0!==re?re:null===(le=null===(de=this.ngControl)||void 0===de?void 0:de.control)||void 0===le?void 0:le.hasValidator(C.kI.required))&&void 0!==se&&se}set required(re){this._required=(0,e.Ig)(re)}get type(){return this._type}set type(re){this._type=re||"text",this._validateType(),!this._isTextarea&&(0,t.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(re){re!==this.value&&(this._inputValueAccessor.value=re,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(re){this._readonly=(0,e.Ig)(re)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(re=>{this.autofilled=re.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(re){this._elementRef.nativeElement.focus(re)}_focusChanged(re){re!==this.focused&&(this.focused=re,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var re,de;const le=(null===(de=null===(re=this._formField)||void 0===re?void 0:re._hideControlPlaceholder)||void 0===de?void 0:de.call(re))?null:this.placeholder;if(le!==this._previousPlaceholder){const se=this._elementRef.nativeElement;this._previousPlaceholder=le,le?se.setAttribute("placeholder",le):se.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const re=this._elementRef.nativeElement.value;this._previousNativeValue!==re&&(this._previousNativeValue=re,this.stateChanges.next())}_validateType(){Z.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let re=this._elementRef.nativeElement.validity;return re&&re.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const re=this._elementRef.nativeElement,de=re.options[0];return this.focused||re.multiple||!this.empty||!!(re.selectedIndex>-1&&de&&de.label)}return this.focused||!this.empty}setDescribedByIds(re){re.length?this._elementRef.nativeElement.setAttribute("aria-describedby",re.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const re=this._elementRef.nativeElement;return this._isNativeSelect&&(re.multiple||re.size>1)}}return ve.\u0275fac=function(re){return new(re||ve)(v.Y36(v.SBq),v.Y36(t.t4),v.Y36(C.a5,10),v.Y36(C.F,8),v.Y36(C.sg,8),v.Y36(o.rD),v.Y36(w,10),v.Y36(L),v.Y36(v.R0b),v.Y36(M.G_,8))},ve.\u0275dir=v.lG2({type:ve,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:11,hostBindings:function(re,de){1&re&&v.NdJ("focus",function(){return de._focusChanged(!0)})("blur",function(){return de._focusChanged(!1)})("input",function(){return de._onInput()}),2&re&&(v.Ikx("disabled",de.disabled)("required",de.required),v.uIk("id",de.id)("data-placeholder",de.placeholder)("readonly",de.readonly&&!de._isNativeSelect||null)("aria-invalid",de.empty&&de.required?null:de.errorState)("aria-required",de.required),v.ekj("mat-input-server",de._isServer)("mat-native-select-inline",de._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[v._Bn([{provide:M.Eo,useExisting:ve}]),v.qOj,v.TTD]}),ve})(),ee=(()=>{class ve{}return ve.\u0275fac=function(re){return new(re||ve)},ve.\u0275mod=v.oAB({type:ve}),ve.\u0275inj=v.cJS({providers:[o.rD],imports:[[E,M.lN,o.BQ],E,M.lN]}),ve})()},4623:(Ve,Q,m)=>{"use strict";m.d(Q,{i$:()=>se,Tg:()=>p,ie:()=>b});var e=m(9808),t=m(5e3),v=m(508),C=m(3191),o=m(7579),M=m(2722),A=(m(8675),m(5664),m(449),m(1159),m(3075),m(4834));const E=["*"],w=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],Z=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],ve=(0,v.Id)((0,v.Kr)(class{})),he=(0,v.Kr)(class{}),re=new t.OlP("MatList"),de=new t.OlP("MatNavList");let se=(()=>{class U extends ve{constructor(z){super(),this._elementRef=z,this._stateChanges=new o.x,"action-list"===this._getListType()&&z.nativeElement.classList.add("mat-action-list")}_getListType(){const z=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===z?"list":"mat-action-list"===z?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return U.\u0275fac=function(z){return new(z||U)(t.Y36(t.SBq))},U.\u0275cmp=t.Xpm({type:U,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[t._Bn([{provide:re,useExisting:U}]),t.qOj,t.TTD],ngContentSelectors:E,decls:1,vars:0,template:function(z,be){1&z&&(t.F$t(),t.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),U})(),y=(()=>{class U{}return U.\u0275fac=function(z){return new(z||U)},U.\u0275dir=t.lG2({type:U,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),U})(),i=(()=>{class U{}return U.\u0275fac=function(z){return new(z||U)},U.\u0275dir=t.lG2({type:U,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),U})(),p=(()=>{class U extends he{constructor(z,be,xe,Re){super(),this._element=z,this._isInteractiveList=!1,this._destroyed=new o.x,this._disabled=!1,this._isInteractiveList=!!(xe||Re&&"action-list"===Re._getListType()),this._list=xe||Re;const ze=this._getHostElement();"button"===ze.nodeName.toLowerCase()&&!ze.hasAttribute("type")&&ze.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,M.R)(this._destroyed)).subscribe(()=>{be.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(z){this._disabled=(0,C.Ig)(z)}ngAfterContentInit(){(0,v.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return U.\u0275fac=function(z){return new(z||U)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(de,8),t.Y36(re,8))},U.\u0275cmp=t.Xpm({type:U,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(z,be,xe){if(1&z&&(t.Suo(xe,y,5),t.Suo(xe,i,5),t.Suo(xe,v.X2,5)),2&z){let Re;t.iGM(Re=t.CRH())&&(be._avatar=Re.first),t.iGM(Re=t.CRH())&&(be._icon=Re.first),t.iGM(Re=t.CRH())&&(be._lines=Re)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(z,be){2&z&&t.ekj("mat-list-item-disabled",be.disabled)("mat-list-item-avatar",be._avatar||be._icon)("mat-list-item-with-avatar",be._avatar||be._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[t.qOj],ngContentSelectors:Z,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(z,be){1&z&&(t.F$t(w),t.TgZ(0,"div",0),t._UZ(1,"div",1),t.Hsn(2),t.TgZ(3,"div",2),t.Hsn(4,1),t.qZA(),t.Hsn(5,2),t.qZA()),2&z&&(t.xp6(1),t.Q6J("matRippleTrigger",be._getHostElement())("matRippleDisabled",be._isRippleDisabled()))},directives:[v.wG],encapsulation:2,changeDetection:0}),U})(),b=(()=>{class U{}return U.\u0275fac=function(z){return new(z||U)},U.\u0275mod=t.oAB({type:U}),U.\u0275inj=t.cJS({imports:[[v.uc,v.si,v.BQ,v.us,e.ez],v.uc,v.BQ,v.us,A.t]}),U})()},2181:(Ve,Q,m)=>{"use strict";m.d(Q,{VK:()=>Le,OP:()=>z,Tx:()=>Ne,p6:()=>Fe});var e=m(5664),t=m(3191),v=m(1159),C=m(5e3),o=m(7579),M=m(727),l=m(6451),R=m(9646),s=m(3101),L=m(8675),O=m(3900),A=m(5698),E=m(9300),P=m(2722),w=m(4086),Z=m(1777),j=m(7429),W=m(9808),ie=m(508),ee=m(9776),ve=m(925),he=m(226),re=m(5303);const de=["mat-menu-item",""];function le(ue,Oe){1&ue&&(C.O4$(),C.TgZ(0,"svg",2),C._UZ(1,"polygon",3),C.qZA())}const se=["*"];function y(ue,Oe){if(1&ue){const Pe=C.EpF();C.TgZ(0,"div",0),C.NdJ("keydown",function($){return C.CHM(Pe),C.oxw()._handleKeydown($)})("click",function(){return C.CHM(Pe),C.oxw().closed.emit("click")})("@transformMenu.start",function($){return C.CHM(Pe),C.oxw()._onAnimationStart($)})("@transformMenu.done",function($){return C.CHM(Pe),C.oxw()._onAnimationDone($)}),C.TgZ(1,"div",1),C.Hsn(2),C.qZA(),C.qZA()}if(2&ue){const Pe=C.oxw();C.Q6J("id",Pe.panelId)("ngClass",Pe._classList)("@transformMenu",Pe._panelAnimationState),C.uIk("aria-label",Pe.ariaLabel||null)("aria-labelledby",Pe.ariaLabelledby||null)("aria-describedby",Pe.ariaDescribedby||null)}}const i={transformMenu:(0,Z.X$)("transformMenu",[(0,Z.SB)("void",(0,Z.oB)({opacity:0,transform:"scale(0.8)"})),(0,Z.eR)("void => enter",(0,Z.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Z.oB)({opacity:1,transform:"scale(1)"}))),(0,Z.eR)("* => void",(0,Z.jt)("100ms 25ms linear",(0,Z.oB)({opacity:0})))]),fadeInItems:(0,Z.X$)("fadeInItems",[(0,Z.SB)("showing",(0,Z.oB)({opacity:1})),(0,Z.eR)("void => *",[(0,Z.oB)({opacity:0}),(0,Z.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},u=new C.OlP("MatMenuContent"),U=new C.OlP("MAT_MENU_PANEL"),N=(0,ie.Kr)((0,ie.Id)(class{}));let z=(()=>{class ue extends N{constructor(Pe,q,$,ce,Me){super(),this._elementRef=Pe,this._focusMonitor=$,this._parentMenu=ce,this._changeDetectorRef=Me,this.role="menuitem",this._hovered=new o.x,this._focused=new o.x,this._highlighted=!1,this._triggersSubmenu=!1,ce&&ce.addItem&&ce.addItem(this)}focus(Pe,q){this._focusMonitor&&Pe?this._focusMonitor.focusVia(this._getHostElement(),Pe,q):this._getHostElement().focus(q),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(Pe){this.disabled&&(Pe.preventDefault(),Pe.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var Pe;const q=this._elementRef.nativeElement.cloneNode(!0),$=q.querySelectorAll("mat-icon, .material-icons");for(let ce=0;ce<$.length;ce++)$[ce].remove();return(null===(Pe=q.textContent)||void 0===Pe?void 0:Pe.trim())||""}_setHighlighted(Pe){var q;this._highlighted=Pe,null===(q=this._changeDetectorRef)||void 0===q||q.markForCheck()}}return ue.\u0275fac=function(Pe){return new(Pe||ue)(C.Y36(C.SBq),C.Y36(W.K0),C.Y36(e.tE),C.Y36(U,8),C.Y36(C.sBO))},ue.\u0275cmp=C.Xpm({type:ue,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(Pe,q){1&Pe&&C.NdJ("click",function(ce){return q._checkDisabled(ce)})("mouseenter",function(){return q._handleMouseEnter()}),2&Pe&&(C.uIk("role",q.role)("tabindex",q._getTabIndex())("aria-disabled",q.disabled.toString())("disabled",q.disabled||null),C.ekj("mat-menu-item",!0)("mat-menu-item-highlighted",q._highlighted)("mat-menu-item-submenu-trigger",q._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[C.qOj],attrs:de,ngContentSelectors:se,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(Pe,q){1&Pe&&(C.F$t(),C.Hsn(0),C._UZ(1,"div",0),C.YNc(2,le,2,0,"svg",1)),2&Pe&&(C.xp6(1),C.Q6J("matRippleDisabled",q.disableRipple||q.disabled)("matRippleTrigger",q._getHostElement()),C.xp6(1),C.Q6J("ngIf",q._triggersSubmenu))},directives:[ie.wG,W.O5],encapsulation:2,changeDetection:0}),ue})();const be=new C.OlP("mat-menu-default-options",{providedIn:"root",factory:function xe(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Re=0,ze=(()=>{class ue{constructor(Pe,q,$){this._elementRef=Pe,this._ngZone=q,this._defaultOptions=$,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new C.n_E,this._tabSubscription=M.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new o.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new C.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Re++}get xPosition(){return this._xPosition}set xPosition(Pe){this._xPosition=Pe,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(Pe){this._yPosition=Pe,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(Pe){this._overlapTrigger=(0,t.Ig)(Pe)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(Pe){this._hasBackdrop=(0,t.Ig)(Pe)}set panelClass(Pe){const q=this._previousPanelClass;q&&q.length&&q.split(" ").forEach($=>{this._classList[$]=!1}),this._previousPanelClass=Pe,Pe&&Pe.length&&(Pe.split(" ").forEach($=>{this._classList[$]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(Pe){this.panelClass=Pe}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new e.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,L.O)(this._directDescendantItems),(0,O.w)(Pe=>(0,l.T)(...Pe.map(q=>q._focused)))).subscribe(Pe=>this._keyManager.updateActiveItem(Pe))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,L.O)(this._directDescendantItems),(0,O.w)(q=>(0,l.T)(...q.map($=>$._hovered))))}addItem(Pe){}removeItem(Pe){}_handleKeydown(Pe){const q=Pe.keyCode,$=this._keyManager;switch(q){case v.hY:(0,v.Vb)(Pe)||(Pe.preventDefault(),this.closed.emit("keydown"));break;case v.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case v.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(q===v.LH||q===v.JH)&&$.setFocusOrigin("keyboard"),$.onKeydown(Pe)}}focusFirstItem(Pe="program"){this.lazyContent?this._ngZone.onStable.pipe((0,A.q)(1)).subscribe(()=>this._focusFirstItem(Pe)):this._focusFirstItem(Pe)}_focusFirstItem(Pe){const q=this._keyManager;if(q.setFocusOrigin(Pe).setFirstItemActive(),!q.activeItem&&this._directDescendantItems.length){let $=this._directDescendantItems.first._getHostElement().parentElement;for(;$;){if("menu"===$.getAttribute("role")){$.focus();break}$=$.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(Pe){const q=Math.min(this._baseElevation+Pe,24),$=`${this._elevationPrefix}${q}`,ce=Object.keys(this._classList).find(Me=>Me.startsWith(this._elevationPrefix));(!ce||ce===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[$]=!0,this._previousElevation=$)}setPositionClasses(Pe=this.xPosition,q=this.yPosition){const $=this._classList;$["mat-menu-before"]="before"===Pe,$["mat-menu-after"]="after"===Pe,$["mat-menu-above"]="above"===q,$["mat-menu-below"]="below"===q}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(Pe){this._animationDone.next(Pe),this._isAnimating=!1}_onAnimationStart(Pe){this._isAnimating=!0,"enter"===Pe.toState&&0===this._keyManager.activeItemIndex&&(Pe.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,L.O)(this._allItems)).subscribe(Pe=>{this._directDescendantItems.reset(Pe.filter(q=>q._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return ue.\u0275fac=function(Pe){return new(Pe||ue)(C.Y36(C.SBq),C.Y36(C.R0b),C.Y36(be))},ue.\u0275dir=C.lG2({type:ue,contentQueries:function(Pe,q,$){if(1&Pe&&(C.Suo($,u,5),C.Suo($,z,5),C.Suo($,z,4)),2&Pe){let ce;C.iGM(ce=C.CRH())&&(q.lazyContent=ce.first),C.iGM(ce=C.CRH())&&(q._allItems=ce),C.iGM(ce=C.CRH())&&(q.items=ce)}},viewQuery:function(Pe,q){if(1&Pe&&C.Gf(C.Rgc,5),2&Pe){let $;C.iGM($=C.CRH())&&(q.templateRef=$.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),ue})(),Le=(()=>{class ue extends ze{constructor(Pe,q,$){super(Pe,q,$),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return ue.\u0275fac=function(Pe){return new(Pe||ue)(C.Y36(C.SBq),C.Y36(C.R0b),C.Y36(be))},ue.\u0275cmp=C.Xpm({type:ue,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(Pe,q){2&Pe&&C.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[C._Bn([{provide:U,useExisting:ue}]),C.qOj],ngContentSelectors:se,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(Pe,q){1&Pe&&(C.F$t(),C.YNc(0,y,3,6,"ng-template"))},directives:[W.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[i.transformMenu,i.fadeInItems]},changeDetection:0}),ue})();const K=new C.OlP("mat-menu-scroll-strategy"),Y={provide:K,deps:[ee.aV],useFactory:function we(ue){return()=>ue.scrollStrategies.reposition()}},Ge=(0,ve.i$)({passive:!0});let vt=(()=>{class ue{constructor(Pe,q,$,ce,Me,Ue,lt,nt){this._overlay=Pe,this._element=q,this._viewContainerRef=$,this._menuItemInstance=Ue,this._dir=lt,this._focusMonitor=nt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=M.w0.EMPTY,this._hoverSubscription=M.w0.EMPTY,this._menuCloseSubscription=M.w0.EMPTY,this._handleTouchStart=ft=>{(0,e.yG)(ft)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new C.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new C.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=ce,this._parentMaterialMenu=Me instanceof ze?Me:void 0,q.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ge),Ue&&(Ue._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(Pe){this.menu=Pe}get menu(){return this._menu}set menu(Pe){Pe!==this._menu&&(this._menu=Pe,this._menuCloseSubscription.unsubscribe(),Pe&&(this._menuCloseSubscription=Pe.close.subscribe(q=>{this._destroyMenu(q),("click"===q||"tab"===q)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(q)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ge),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const Pe=this._createOverlay(),q=Pe.getConfig();this._setPosition(q.positionStrategy),q.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,Pe.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof ze&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(Pe,q){this._focusMonitor&&Pe?this._focusMonitor.focusVia(this._element,Pe,q):this._element.nativeElement.focus(q)}updatePosition(){var Pe;null===(Pe=this._overlayRef)||void 0===Pe||Pe.updatePosition()}_destroyMenu(Pe){if(!this._overlayRef||!this.menuOpen)return;const q=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===Pe||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,q instanceof ze?(q._resetAnimation(),q.lazyContent?q._animationDone.pipe((0,E.h)($=>"void"===$.toState),(0,A.q)(1),(0,P.R)(q.lazyContent._attached)).subscribe({next:()=>q.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),q.lazyContent&&q.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let Pe=0,q=this.menu.parentMenu;for(;q;)Pe++,q=q.parentMenu;this.menu.setElevation(Pe)}}_setIsMenuOpen(Pe){this._menuOpen=Pe,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(Pe)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const Pe=this._getOverlayConfig();this._subscribeToPositions(Pe.positionStrategy),this._overlayRef=this._overlay.create(Pe),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new ee.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(Pe){this.menu.setPositionClasses&&Pe.positionChanges.subscribe(q=>{this.menu.setPositionClasses("start"===q.connectionPair.overlayX?"after":"before","top"===q.connectionPair.overlayY?"below":"above")})}_setPosition(Pe){let[q,$]="before"===this.menu.xPosition?["end","start"]:["start","end"],[ce,Me]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[Ue,lt]=[ce,Me],[nt,ft]=[q,$],it=0;this.triggersSubmenu()?(ft=q="before"===this.menu.xPosition?"start":"end",$=nt="end"===q?"start":"end",it="bottom"===ce?8:-8):this.menu.overlapTrigger||(Ue="top"===ce?"bottom":"top",lt="top"===Me?"bottom":"top"),Pe.withPositions([{originX:q,originY:Ue,overlayX:nt,overlayY:ce,offsetY:it},{originX:$,originY:Ue,overlayX:ft,overlayY:ce,offsetY:it},{originX:q,originY:lt,overlayX:nt,overlayY:Me,offsetY:-it},{originX:$,originY:lt,overlayX:ft,overlayY:Me,offsetY:-it}])}_menuClosingActions(){const Pe=this._overlayRef.backdropClick(),q=this._overlayRef.detachments(),$=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,R.of)(),ce=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,E.h)(Me=>Me!==this._menuItemInstance),(0,E.h)(()=>this._menuOpen)):(0,R.of)();return(0,l.T)(Pe,$,ce,q)}_handleMousedown(Pe){(0,e.X6)(Pe)||(this._openedBy=0===Pe.button?"mouse":void 0,this.triggersSubmenu()&&Pe.preventDefault())}_handleKeydown(Pe){const q=Pe.keyCode;(q===v.K5||q===v.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(q===v.SV&&"ltr"===this.dir||q===v.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(Pe){this.triggersSubmenu()?(Pe.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,E.h)(Pe=>Pe===this._menuItemInstance&&!Pe.disabled),(0,w.g)(0,s.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ze&&this.menu._isAnimating?this.menu._animationDone.pipe((0,A.q)(1),(0,w.g)(0,s.E),(0,P.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new j.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return ue.\u0275fac=function(Pe){return new(Pe||ue)(C.Y36(ee.aV),C.Y36(C.SBq),C.Y36(C.s_b),C.Y36(K),C.Y36(U,8),C.Y36(z,10),C.Y36(he.Is,8),C.Y36(e.tE))},ue.\u0275dir=C.lG2({type:ue,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(Pe,q){1&Pe&&C.NdJ("click",function(ce){return q._handleClick(ce)})("mousedown",function(ce){return q._handleMousedown(ce)})("keydown",function(ce){return q._handleKeydown(ce)}),2&Pe&&C.uIk("aria-expanded",q.menuOpen||null)("aria-controls",q.menuOpen?q.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),ue})(),Fe=(()=>{class ue extends vt{}return ue.\u0275fac=function(){let Oe;return function(q){return(Oe||(Oe=C.n5z(ue)))(q||ue)}}(),ue.\u0275dir=C.lG2({type:ue,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[C.qOj]}),ue})(),Ne=(()=>{class ue{}return ue.\u0275fac=function(Pe){return new(Pe||ue)},ue.\u0275mod=C.oAB({type:ue}),ue.\u0275inj=C.cJS({providers:[Y],imports:[[W.ez,ie.BQ,ie.si,ee.U8],re.ZD,ie.BQ]}),ue})()},6087:(Ve,Q,m)=>{"use strict";m.d(Q,{NW:()=>de,ye:()=>Z,TU:()=>le});var e=m(9808),t=m(5e3),v=m(508),C=m(7423),o=m(4107),M=m(7238),l=m(3191),R=m(7579),s=m(7322);function L(se,y){if(1&se&&(t.TgZ(0,"mat-option",19),t._uU(1),t.qZA()),2&se){const i=y.$implicit;t.Q6J("value",i),t.xp6(1),t.hij(" ",i," ")}}function O(se,y){if(1&se){const i=t.EpF();t.TgZ(0,"mat-form-field",16),t.TgZ(1,"mat-select",17),t.NdJ("selectionChange",function(p){return t.CHM(i),t.oxw(2)._changePageSize(p.value)}),t.YNc(2,L,2,2,"mat-option",18),t.qZA(),t.qZA()}if(2&se){const i=t.oxw(2);t.Q6J("appearance",i._formFieldAppearance)("color",i.color),t.xp6(1),t.Q6J("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),t.xp6(1),t.Q6J("ngForOf",i._displayedPageSizeOptions)}}function A(se,y){if(1&se&&(t.TgZ(0,"div",20),t._uU(1),t.qZA()),2&se){const i=t.oxw(2);t.xp6(1),t.Oqu(i.pageSize)}}function E(se,y){if(1&se&&(t.TgZ(0,"div",12),t.TgZ(1,"div",13),t._uU(2),t.qZA(),t.YNc(3,O,3,6,"mat-form-field",14),t.YNc(4,A,2,1,"div",15),t.qZA()),2&se){const i=t.oxw();t.xp6(2),t.hij(" ",i._intl.itemsPerPageLabel," "),t.xp6(1),t.Q6J("ngIf",i._displayedPageSizeOptions.length>1),t.xp6(1),t.Q6J("ngIf",i._displayedPageSizeOptions.length<=1)}}function P(se,y){if(1&se){const i=t.EpF();t.TgZ(0,"button",21),t.NdJ("click",function(){return t.CHM(i),t.oxw().firstPage()}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",22),t.qZA(),t.qZA()}if(2&se){const i=t.oxw();t.Q6J("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),t.uIk("aria-label",i._intl.firstPageLabel)}}function w(se,y){if(1&se){const i=t.EpF();t.O4$(),t.kcU(),t.TgZ(0,"button",23),t.NdJ("click",function(){return t.CHM(i),t.oxw().lastPage()}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",24),t.qZA(),t.qZA()}if(2&se){const i=t.oxw();t.Q6J("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),t.uIk("aria-label",i._intl.lastPageLabel)}}let Z=(()=>{class se{constructor(){this.changes=new R.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(i,a,p)=>{if(0==p||0==a)return`0 of ${p}`;const u=i*a;return`${u+1} \u2013 ${u<(p=Math.max(p,0))?Math.min(u+a,p):u+a} of ${p}`}}}return se.\u0275fac=function(i){return new(i||se)},se.\u0275prov=t.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})();const W={provide:Z,deps:[[new t.FiY,new t.tp0,Z]],useFactory:function j(se){return se||new Z}},ve=new t.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),he=(0,v.Id)((0,v.dB)(class{}));let re=(()=>{class se extends he{constructor(i,a,p){if(super(),this._intl=i,this._changeDetectorRef=a,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new t.vpe,this._intlChanges=i.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),p){const{pageSize:u,pageSizeOptions:_,hidePageSize:D,showFirstLastButtons:I}=p;null!=u&&(this._pageSize=u),null!=_&&(this._pageSizeOptions=_),null!=D&&(this._hidePageSize=D),null!=I&&(this._showFirstLastButtons=I)}}get pageIndex(){return this._pageIndex}set pageIndex(i){this._pageIndex=Math.max((0,l.su)(i),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(i){this._length=(0,l.su)(i),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(i){this._pageSize=Math.max((0,l.su)(i),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(i){this._pageSizeOptions=(i||[]).map(a=>(0,l.su)(a)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(i){this._hidePageSize=(0,l.Ig)(i)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(i){this._showFirstLastButtons=(0,l.Ig)(i)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const i=this.pageIndex;this.pageIndex++,this._emitPageEvent(i)}previousPage(){if(!this.hasPreviousPage())return;const i=this.pageIndex;this.pageIndex--,this._emitPageEvent(i)}firstPage(){if(!this.hasPreviousPage())return;const i=this.pageIndex;this.pageIndex=0,this._emitPageEvent(i)}lastPage(){if(!this.hasNextPage())return;const i=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(i)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const i=this.getNumberOfPages()-1;return this.pageIndexi-a),this._changeDetectorRef.markForCheck())}_emitPageEvent(i){this.page.emit({previousPageIndex:i,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return se.\u0275fac=function(i){t.$Z()},se.\u0275dir=t.lG2({type:se,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[t.qOj]}),se})(),de=(()=>{class se extends re{constructor(i,a,p){super(i,a,p),p&&null!=p.formFieldAppearance&&(this._formFieldAppearance=p.formFieldAppearance)}}return se.\u0275fac=function(i){return new(i||se)(t.Y36(Z),t.Y36(t.sBO),t.Y36(ve,8))},se.\u0275cmp=t.Xpm({type:se,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[t.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(i,a){1&i&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,E,5,3,"div",2),t.TgZ(3,"div",3),t.TgZ(4,"div",4),t._uU(5),t.qZA(),t.YNc(6,P,3,5,"button",5),t.TgZ(7,"button",6),t.NdJ("click",function(){return a.previousPage()}),t.O4$(),t.TgZ(8,"svg",7),t._UZ(9,"path",8),t.qZA(),t.qZA(),t.kcU(),t.TgZ(10,"button",9),t.NdJ("click",function(){return a.nextPage()}),t.O4$(),t.TgZ(11,"svg",7),t._UZ(12,"path",10),t.qZA(),t.qZA(),t.YNc(13,w,3,5,"button",11),t.qZA(),t.qZA(),t.qZA()),2&i&&(t.xp6(2),t.Q6J("ngIf",!a.hidePageSize),t.xp6(3),t.hij(" ",a._intl.getRangeLabel(a.pageIndex,a.pageSize,a.length)," "),t.xp6(1),t.Q6J("ngIf",a.showFirstLastButtons),t.xp6(1),t.Q6J("matTooltip",a._intl.previousPageLabel)("matTooltipDisabled",a._previousButtonsDisabled())("matTooltipPosition","above")("disabled",a._previousButtonsDisabled()),t.uIk("aria-label",a._intl.previousPageLabel),t.xp6(3),t.Q6J("matTooltip",a._intl.nextPageLabel)("matTooltipDisabled",a._nextButtonsDisabled())("matTooltipPosition","above")("disabled",a._nextButtonsDisabled()),t.uIk("aria-label",a._intl.nextPageLabel),t.xp6(3),t.Q6J("ngIf",a.showFirstLastButtons))},directives:[e.O5,C.lW,M.gM,s.KE,o.gD,e.sg,v.ey],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),se})(),le=(()=>{class se{}return se.\u0275fac=function(i){return new(i||se)},se.\u0275mod=t.oAB({type:se}),se.\u0275inj=t.cJS({providers:[W],imports:[[e.ez,C.ot,o.LD,M.AV,v.BQ]]}),se})()},5899:(Ve,Q,m)=>{"use strict";m.d(Q,{pW:()=>w,Cv:()=>j});var e=m(5e3),t=m(9808),v=m(508),C=m(3191),o=m(6360),M=m(727),l=m(4968),R=m(9300);const s=["primaryValueBar"],L=(0,v.pj)(class{constructor(W){this._elementRef=W}},"primary"),O=new e.OlP("mat-progress-bar-location",{providedIn:"root",factory:function A(){const W=(0,e.f3M)(t.K0),ie=W?W.location:null;return{getPathname:()=>ie?ie.pathname+ie.search:""}}}),E=new e.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let P=0,w=(()=>{class W extends L{constructor(ee,ve,he,re,de){super(ee),this._ngZone=ve,this._animationMode=he,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new e.vpe,this._animationEndSubscription=M.w0.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+P++;const le=re?re.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${le}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===he,de&&(de.color&&(this.color=this.defaultColor=de.color),this.mode=de.mode||this.mode)}get value(){return this._value}set value(ee){this._value=Z((0,C.su)(ee)||0)}get bufferValue(){return this._bufferValue}set bufferValue(ee){this._bufferValue=Z(ee||0)}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const ee=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,l.R)(ee,"transitionend").pipe((0,R.h)(ve=>ve.target===ee)).subscribe(()=>{("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return W.\u0275fac=function(ee){return new(ee||W)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(o.Qb,8),e.Y36(O,8),e.Y36(E,8))},W.\u0275cmp=e.Xpm({type:W,selectors:[["mat-progress-bar"]],viewQuery:function(ee,ve){if(1&ee&&e.Gf(s,5),2&ee){let he;e.iGM(he=e.CRH())&&(ve._primaryValueBar=he.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(ee,ve){2&ee&&(e.uIk("aria-valuenow","indeterminate"===ve.mode||"query"===ve.mode?null:ve.value)("mode",ve.mode),e.ekj("_mat-animation-noopable",ve._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[e.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(ee,ve){1&ee&&(e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1),e.TgZ(2,"defs"),e.TgZ(3,"pattern",2),e._UZ(4,"circle",3),e.qZA(),e.qZA(),e._UZ(5,"rect",4),e.qZA(),e.kcU(),e._UZ(6,"div",5),e._UZ(7,"div",6,7),e._UZ(9,"div",8),e.qZA()),2&ee&&(e.xp6(3),e.Q6J("id",ve.progressbarId),e.xp6(2),e.uIk("fill",ve._rectangleFillValue),e.xp6(1),e.Q6J("ngStyle",ve._bufferTransform()),e.xp6(1),e.Q6J("ngStyle",ve._primaryTransform()))},directives:[t.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-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 mat-progress-bar-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 mat-progress-bar-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 mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),W})();function Z(W,ie=0,ee=100){return Math.max(ie,Math.min(ee,W))}let j=(()=>{class W{}return W.\u0275fac=function(ee){return new(ee||W)},W.\u0275mod=e.oAB({type:W}),W.\u0275inj=e.cJS({imports:[[t.ez,v.BQ],v.BQ]}),W})()},773:(Ve,Q,m)=>{"use strict";m.d(Q,{Cq:()=>ee,$g:()=>ie});var e=m(5e3),t=m(9808),v=m(508),C=m(3191),o=m(925),M=m(6360);function l(ve,he){if(1&ve&&(e.O4$(),e._UZ(0,"circle",3)),2&ve){const re=e.oxw();e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+re._spinnerAnimationLabel)("stroke-dashoffset",re._getStrokeDashOffset(),"px")("stroke-dasharray",re._getStrokeCircumference(),"px")("stroke-width",re._getCircleStrokeWidth(),"%"),e.uIk("r",re._getCircleRadius())}}function R(ve,he){if(1&ve&&(e.O4$(),e._UZ(0,"circle",3)),2&ve){const re=e.oxw();e.Udp("stroke-dashoffset",re._getStrokeDashOffset(),"px")("stroke-dasharray",re._getStrokeCircumference(),"px")("stroke-width",re._getCircleStrokeWidth(),"%"),e.uIk("r",re._getCircleRadius())}}function s(ve,he){if(1&ve&&(e.O4$(),e._UZ(0,"circle",3)),2&ve){const re=e.oxw();e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+re._spinnerAnimationLabel)("stroke-dashoffset",re._getStrokeDashOffset(),"px")("stroke-dasharray",re._getStrokeCircumference(),"px")("stroke-width",re._getCircleStrokeWidth(),"%"),e.uIk("r",re._getCircleRadius())}}function L(ve,he){if(1&ve&&(e.O4$(),e._UZ(0,"circle",3)),2&ve){const re=e.oxw();e.Udp("stroke-dashoffset",re._getStrokeDashOffset(),"px")("stroke-dasharray",re._getStrokeCircumference(),"px")("stroke-width",re._getCircleStrokeWidth(),"%"),e.uIk("r",re._getCircleRadius())}}const P=(0,v.pj)(class{constructor(ve){this._elementRef=ve}},"primary"),w=new e.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function Z(){return{diameter:100}}});class W extends P{constructor(he,re,de,le,se){super(he),this._document=de,this._diameter=100,this._value=0,this.mode="determinate";const y=W._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),y.has(de.head)||y.set(de.head,new Set([100])),this._noopAnimations="NoopAnimations"===le&&!!se&&!se._forceAnimations,se&&(se.diameter&&(this.diameter=se.diameter),se.strokeWidth&&(this.strokeWidth=se.strokeWidth))}get diameter(){return this._diameter}set diameter(he){this._diameter=(0,C.su)(he),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(he){this._strokeWidth=(0,C.su)(he)}get value(){return"determinate"===this.mode?this._value:0}set value(he){this._value=Math.max(0,Math.min(100,(0,C.su)(he)))}ngOnInit(){const he=this._elementRef.nativeElement;this._styleRoot=(0,o.kV)(he)||this._document.head,this._attachStyleNode(),he.classList.add("mat-progress-spinner-indeterminate-animation")}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const he=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${he} ${he}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const he=this._styleRoot,re=this._diameter,de=W._diameters;let le=de.get(he);if(!le||!le.has(re)){const se=this._document.createElement("style");se.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),se.textContent=this._getAnimationText(),he.appendChild(se),le||(le=new Set,de.set(he,le)),le.add(re)}}_getAnimationText(){const he=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*he).replace(/END_VALUE/g,""+.2*he).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}W._diameters=new WeakMap,W.\u0275fac=function(he){return new(he||W)(e.Y36(e.SBq),e.Y36(o.t4),e.Y36(t.K0,8),e.Y36(M.Qb,8),e.Y36(w))},W.\u0275cmp=e.Xpm({type:W,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(he,re){2&he&&(e.uIk("aria-valuemin","determinate"===re.mode?0:null)("aria-valuemax","determinate"===re.mode?100:null)("aria-valuenow","determinate"===re.mode?re.value:null)("mode",re.mode),e.Udp("width",re.diameter,"px")("height",re.diameter,"px"),e.ekj("_mat-animation-noopable",re._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[e.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(he,re){1&he&&(e.O4$(),e.TgZ(0,"svg",0),e.YNc(1,l,1,9,"circle",1),e.YNc(2,R,1,7,"circle",2),e.qZA()),2&he&&(e.Udp("width",re.diameter,"px")("height",re.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===re.mode),e.uIk("viewBox",re._getViewBox()),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[t.RF,t.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0});let ie=(()=>{class ve extends W{constructor(re,de,le,se,y){super(re,de,le,se,y),this.mode="indeterminate"}}return ve.\u0275fac=function(re){return new(re||ve)(e.Y36(e.SBq),e.Y36(o.t4),e.Y36(t.K0,8),e.Y36(M.Qb,8),e.Y36(w))},ve.\u0275cmp=e.Xpm({type:ve,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(re,de){2&re&&(e.Udp("width",de.diameter,"px")("height",de.diameter,"px"),e.ekj("_mat-animation-noopable",de._noopAnimations))},inputs:{color:"color"},features:[e.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(re,de){1&re&&(e.O4$(),e.TgZ(0,"svg",0),e.YNc(1,s,1,9,"circle",1),e.YNc(2,L,1,7,"circle",2),e.qZA()),2&re&&(e.Udp("width",de.diameter,"px")("height",de.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===de.mode),e.uIk("viewBox",de._getViewBox()),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[t.RF,t.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0}),ve})(),ee=(()=>{class ve{}return ve.\u0275fac=function(re){return new(re||ve)},ve.\u0275mod=e.oAB({type:ve}),ve.\u0275inj=e.cJS({imports:[[v.BQ,t.ez],v.BQ]}),ve})()},9814:(Ve,Q,m)=>{"use strict";m.d(Q,{U0:()=>he,VQ:()=>W,Fk:()=>re});var e=m(5e3),t=m(508),v=m(3191),C=m(3075),o=m(6360),M=m(5664),l=m(449);const R=["input"],s=function(de){return{enterDuration:de}},L=["*"],O=new e.OlP("mat-radio-default-options",{providedIn:"root",factory:function A(){return{color:"accent"}}});let E=0;const P={provide:C.JU,useExisting:(0,e.Gpc)(()=>W),multi:!0};class w{constructor(le,se){this.source=le,this.value=se}}const Z=new e.OlP("MatRadioGroup");let j=(()=>{class de{constructor(se){this._changeDetector=se,this._value=null,this._name="mat-radio-group-"+E++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new e.vpe}get name(){return this._name}set name(se){this._name=se,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(se){this._labelPosition="before"===se?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(se){this._value!==se&&(this._value=se,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(se){this._selected=se,this.value=se?se.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(se){this._disabled=(0,v.Ig)(se),this._markRadiosForCheck()}get required(){return this._required}set required(se){this._required=(0,v.Ig)(se),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(se=>{se.name=this.name,se._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(y=>{y.checked=this.value===y.value,y.checked&&(this._selected=y)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new w(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(se=>se._markForCheck())}writeValue(se){this.value=se,this._changeDetector.markForCheck()}registerOnChange(se){this._controlValueAccessorChangeFn=se}registerOnTouched(se){this.onTouched=se}setDisabledState(se){this.disabled=se,this._changeDetector.markForCheck()}}return de.\u0275fac=function(se){return new(se||de)(e.Y36(e.sBO))},de.\u0275dir=e.lG2({type:de,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),de})(),W=(()=>{class de extends j{}return de.\u0275fac=function(){let le;return function(y){return(le||(le=e.n5z(de)))(y||de)}}(),de.\u0275dir=e.lG2({type:de,selectors:[["mat-radio-group"]],contentQueries:function(se,y,i){if(1&se&&e.Suo(i,he,5),2&se){let a;e.iGM(a=e.CRH())&&(y._radios=a)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[e._Bn([P,{provide:Z,useExisting:de}]),e.qOj]}),de})();class ie{constructor(le){this._elementRef=le}}const ee=(0,t.Kr)((0,t.sb)(ie));let ve=(()=>{class de extends ee{constructor(se,y,i,a,p,u,_,D){super(y),this._changeDetector=i,this._focusMonitor=a,this._radioDispatcher=p,this._providerOverride=_,this._uniqueId="mat-radio-"+ ++E,this.id=this._uniqueId,this.change=new e.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=se,this._noopAnimations="NoopAnimations"===u,D&&(this.tabIndex=(0,v.su)(D,0)),this._removeUniqueSelectionListener=p.listen((I,x)=>{I!==this.id&&x===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(se){const y=(0,v.Ig)(se);this._checked!==y&&(this._checked=y,y&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!y&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),y&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(se){this._value!==se&&(this._value=se,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===se),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(se){this._labelPosition=se}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(se){this._setDisabled((0,v.Ig)(se))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(se){this._required=(0,v.Ig)(se)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(se){this._color=se}get inputId(){return`${this.id||this._uniqueId}-input`}focus(se,y){y?this._focusMonitor.focusVia(this._inputElement,y,se):this._inputElement.nativeElement.focus(se)}_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)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(se=>{!se&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new w(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(se){se.stopPropagation()}_onInputInteraction(se){if(se.stopPropagation(),!this.checked&&!this.disabled){const y=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),y&&this.radioGroup._emitChangeEvent())}}_setDisabled(se){this._disabled!==se&&(this._disabled=se,this._changeDetector.markForCheck())}}return de.\u0275fac=function(se){e.$Z()},de.\u0275dir=e.lG2({type:de,viewQuery:function(se,y){if(1&se&&e.Gf(R,5),2&se){let i;e.iGM(i=e.CRH())&&(y._inputElement=i.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[e.qOj]}),de})(),he=(()=>{class de extends ve{constructor(se,y,i,a,p,u,_,D){super(se,y,i,a,p,u,_,D)}}return de.\u0275fac=function(se){return new(se||de)(e.Y36(Z,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(M.tE),e.Y36(l.A8),e.Y36(o.Qb,8),e.Y36(O,8),e.$8M("tabindex"))},de.\u0275cmp=e.Xpm({type:de,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(se,y){1&se&&e.NdJ("focus",function(){return y._inputElement.nativeElement.focus()}),2&se&&(e.uIk("tabindex",null)("id",y.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),e.ekj("mat-radio-checked",y.checked)("mat-radio-disabled",y.disabled)("_mat-animation-noopable",y._noopAnimations)("mat-primary","primary"===y.color)("mat-accent","accent"===y.color)("mat-warn","warn"===y.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[e.qOj],ngContentSelectors:L,decls:13,vars:20,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(se,y){if(1&se&&(e.F$t(),e.TgZ(0,"label",0,1),e.TgZ(2,"span",2),e._UZ(3,"span",3),e._UZ(4,"span",4),e.TgZ(5,"input",5,6),e.NdJ("change",function(a){return y._onInputInteraction(a)})("click",function(a){return y._onInputClick(a)}),e.qZA(),e.TgZ(7,"span",7),e._UZ(8,"span",8),e.qZA(),e.qZA(),e.TgZ(9,"span",9),e.TgZ(10,"span",10),e._uU(11,"\xa0"),e.qZA(),e.Hsn(12),e.qZA(),e.qZA()),2&se){const i=e.MAs(1);e.uIk("for",y.inputId),e.xp6(5),e.Q6J("id",y.inputId)("checked",y.checked)("disabled",y.disabled)("tabIndex",y.tabIndex)("required",y.required),e.uIk("name",y.name)("value",y.value)("aria-label",y.ariaLabel)("aria-labelledby",y.ariaLabelledby)("aria-describedby",y.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",i)("matRippleDisabled",y._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(18,s,y._noopAnimations?0:150)),e.xp6(2),e.ekj("mat-radio-label-before","before"==y.labelPosition)}},directives:[t.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),de})(),re=(()=>{class de{}return de.\u0275fac=function(se){return new(se||de)},de.\u0275mod=e.oAB({type:de}),de.\u0275inj=e.cJS({imports:[[t.si,t.BQ],t.BQ]}),de})()},4107:(Ve,Q,m)=>{"use strict";m.d(Q,{gD:()=>Ne,LD:()=>ue,$L:()=>vt});var e=m(9776),t=m(9808),v=m(5e3),C=m(508),o=m(7322),M=m(5303),l=m(5664),R=m(3191),s=m(449),L=m(1159),O=m(3075),A=m(7579),E=m(9770),P=m(6451),w=m(8675),Z=m(3900),j=m(5698),W=m(9300),ie=m(4004),ee=m(1884),ve=m(2722),he=m(1777),re=m(226);const de=["trigger"],le=["panel"];function se(Oe,Pe){if(1&Oe&&(v.TgZ(0,"span",8),v._uU(1),v.qZA()),2&Oe){const q=v.oxw();v.xp6(1),v.Oqu(q.placeholder)}}function y(Oe,Pe){if(1&Oe&&(v.TgZ(0,"span",12),v._uU(1),v.qZA()),2&Oe){const q=v.oxw(2);v.xp6(1),v.Oqu(q.triggerValue)}}function i(Oe,Pe){1&Oe&&v.Hsn(0,0,["*ngSwitchCase","true"])}function a(Oe,Pe){if(1&Oe&&(v.TgZ(0,"span",9),v.YNc(1,y,2,1,"span",10),v.YNc(2,i,1,0,"ng-content",11),v.qZA()),2&Oe){const q=v.oxw();v.Q6J("ngSwitch",!!q.customTrigger),v.xp6(2),v.Q6J("ngSwitchCase",!0)}}function p(Oe,Pe){if(1&Oe){const q=v.EpF();v.TgZ(0,"div",13),v.TgZ(1,"div",14,15),v.NdJ("@transformPanel.done",function(ce){return v.CHM(q),v.oxw()._panelDoneAnimatingStream.next(ce.toState)})("keydown",function(ce){return v.CHM(q),v.oxw()._handleKeydown(ce)}),v.Hsn(3,1),v.qZA(),v.qZA()}if(2&Oe){const q=v.oxw();v.Q6J("@transformPanelWrap",void 0),v.xp6(1),v.Gre("mat-select-panel ",q._getPanelTheme(),""),v.Udp("transform-origin",q._transformOrigin)("font-size",q._triggerFontSize,"px"),v.Q6J("ngClass",q.panelClass)("@transformPanel",q.multiple?"showing-multiple":"showing"),v.uIk("id",q.id+"-panel")("aria-multiselectable",q.multiple)("aria-label",q.ariaLabel||null)("aria-labelledby",q._getPanelAriaLabelledby())}}const u=[[["mat-select-trigger"]],"*"],_=["mat-select-trigger","*"],D={transformPanelWrap:(0,he.X$)("transformPanelWrap",[(0,he.eR)("* => void",(0,he.IO)("@transformPanel",[(0,he.pV)()],{optional:!0}))]),transformPanel:(0,he.X$)("transformPanel",[(0,he.SB)("void",(0,he.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,he.SB)("showing",(0,he.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,he.SB)("showing-multiple",(0,he.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,he.eR)("void => *",(0,he.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,he.eR)("* => void",(0,he.jt)("100ms 25ms linear",(0,he.oB)({opacity:0})))])};let b=0;const U=256,ze=new v.OlP("mat-select-scroll-strategy"),K=new v.OlP("MAT_SELECT_CONFIG"),we={provide:ze,deps:[e.aV],useFactory:function Le(Oe){return()=>Oe.scrollStrategies.reposition()}};class Y{constructor(Pe,q){this.source=Pe,this.value=q}}const ae=(0,C.Kr)((0,C.sb)((0,C.Id)((0,C.FD)(class{constructor(Oe,Pe,q,$,ce){this._elementRef=Oe,this._defaultErrorStateMatcher=Pe,this._parentForm=q,this._parentFormGroup=$,this.ngControl=ce}})))),Ge=new v.OlP("MatSelectTrigger");let vt=(()=>{class Oe{}return Oe.\u0275fac=function(q){return new(q||Oe)},Oe.\u0275dir=v.lG2({type:Oe,selectors:[["mat-select-trigger"]],features:[v._Bn([{provide:Ge,useExisting:Oe}])]}),Oe})(),Fe=(()=>{class Oe extends ae{constructor(q,$,ce,Me,Ue,lt,nt,ft,it,rt,Mt,Zt,Ft,Vt){var Ii,jt,ei;super(Ue,Me,nt,ft,rt),this._viewportRuler=q,this._changeDetectorRef=$,this._ngZone=ce,this._dir=lt,this._parentFormField=it,this._liveAnnouncer=Ft,this._defaultOptions=Vt,this._panelOpen=!1,this._compareWith=(ki,ai)=>ki===ai,this._uid="mat-select-"+b++,this._triggerAriaLabelledBy=null,this._destroy=new A.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+b++,this._panelDoneAnimatingStream=new A.x,this._overlayPanelClass=(null===(Ii=this._defaultOptions)||void 0===Ii?void 0:Ii.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(ei=null===(jt=this._defaultOptions)||void 0===jt?void 0:jt.disableOptionCentering)&&void 0!==ei&&ei,this.ariaLabel="",this.optionSelectionChanges=(0,E.P)(()=>{const ki=this.options;return ki?ki.changes.pipe((0,w.O)(ki),(0,Z.w)(()=>(0,P.T)(...ki.map(ai=>ai.onSelectionChange)))):this._ngZone.onStable.pipe((0,j.q)(1),(0,Z.w)(()=>this.optionSelectionChanges))}),this.openedChange=new v.vpe,this._openedStream=this.openedChange.pipe((0,W.h)(ki=>ki),(0,ie.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,W.h)(ki=>!ki),(0,ie.U)(()=>{})),this.selectionChange=new v.vpe,this.valueChange=new v.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==Vt?void 0:Vt.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=Vt.typeaheadDebounceInterval),this._scrollStrategyFactory=Zt,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Mt)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(q){this._placeholder=q,this.stateChanges.next()}get required(){var q,$,ce,Me;return null!==(Me=null!==(q=this._required)&&void 0!==q?q:null===(ce=null===($=this.ngControl)||void 0===$?void 0:$.control)||void 0===ce?void 0:ce.hasValidator(O.kI.required))&&void 0!==Me&&Me}set required(q){this._required=(0,R.Ig)(q),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(q){this._multiple=(0,R.Ig)(q)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(q){this._disableOptionCentering=(0,R.Ig)(q)}get compareWith(){return this._compareWith}set compareWith(q){this._compareWith=q,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(q){(q!==this._value||this._multiple&&Array.isArray(q))&&(this.options&&this._setSelectionByValue(q),this._value=q)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(q){this._typeaheadDebounceInterval=(0,R.su)(q)}get id(){return this._id}set id(q){this._id=q||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new s.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,ee.x)(),(0,ve.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,ve.R)(this._destroy)).subscribe(q=>{q.added.forEach($=>$.select()),q.removed.forEach($=>$.deselect())}),this.options.changes.pipe((0,w.O)(null),(0,ve.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const q=this._getTriggerAriaLabelledby();if(q!==this._triggerAriaLabelledBy){const $=this._elementRef.nativeElement;this._triggerAriaLabelledBy=q,q?$.setAttribute("aria-labelledby",q):$.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(q){q.disabled&&this.stateChanges.next(),q.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(q){this.value=q}registerOnChange(q){this._onChange=q}registerOnTouched(q){this._onTouched=q}setDisabledState(q){this.disabled=q,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var q,$;return this.multiple?(null===(q=this._selectionModel)||void 0===q?void 0:q.selected)||[]:null===($=this._selectionModel)||void 0===$?void 0:$.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const q=this._selectionModel.selected.map($=>$.viewValue);return this._isRtl()&&q.reverse(),q.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(q){this.disabled||(this.panelOpen?this._handleOpenKeydown(q):this._handleClosedKeydown(q))}_handleClosedKeydown(q){const $=q.keyCode,ce=$===L.JH||$===L.LH||$===L.oh||$===L.SV,Me=$===L.K5||$===L.L_,Ue=this._keyManager;if(!Ue.isTyping()&&Me&&!(0,L.Vb)(q)||(this.multiple||q.altKey)&&ce)q.preventDefault(),this.open();else if(!this.multiple){const lt=this.selected;Ue.onKeydown(q);const nt=this.selected;nt&<!==nt&&this._liveAnnouncer.announce(nt.viewValue,1e4)}}_handleOpenKeydown(q){const $=this._keyManager,ce=q.keyCode,Me=ce===L.JH||ce===L.LH,Ue=$.isTyping();if(Me&&q.altKey)q.preventDefault(),this.close();else if(Ue||ce!==L.K5&&ce!==L.L_||!$.activeItem||(0,L.Vb)(q))if(!Ue&&this._multiple&&ce===L.A&&q.ctrlKey){q.preventDefault();const lt=this.options.some(nt=>!nt.disabled&&!nt.selected);this.options.forEach(nt=>{nt.disabled||(lt?nt.select():nt.deselect())})}else{const lt=$.activeItemIndex;$.onKeydown(q),this._multiple&&Me&&q.shiftKey&&$.activeItem&&$.activeItemIndex!==lt&&$.activeItem._selectViaInteraction()}else q.preventDefault(),$.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,j.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(q){if(this._selectionModel.selected.forEach($=>$.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&q)Array.isArray(q),q.forEach($=>this._selectValue($)),this._sortValues();else{const $=this._selectValue(q);$?this._keyManager.updateActiveItem($):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(q){const $=this.options.find(ce=>{if(this._selectionModel.isSelected(ce))return!1;try{return null!=ce.value&&this._compareWith(ce.value,q)}catch(Me){return!1}});return $&&this._selectionModel.select($),$}_initKeyManager(){this._keyManager=new l.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,ve.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,ve.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const q=(0,P.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,ve.R)(q)).subscribe($=>{this._onSelect($.source,$.isUserInput),$.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,P.T)(...this.options.map($=>$._stateChanges)).pipe((0,ve.R)(q)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(q,$){const ce=this._selectionModel.isSelected(q);null!=q.value||this._multiple?(ce!==q.selected&&(q.selected?this._selectionModel.select(q):this._selectionModel.deselect(q)),$&&this._keyManager.setActiveItem(q),this.multiple&&(this._sortValues(),$&&this.focus())):(q.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(q.value)),ce!==this._selectionModel.isSelected(q)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const q=this.options.toArray();this._selectionModel.sort(($,ce)=>this.sortComparator?this.sortComparator($,ce,q):q.indexOf($)-q.indexOf(ce)),this.stateChanges.next()}}_propagateChanges(q){let $=null;$=this.multiple?this.selected.map(ce=>ce.value):this.selected?this.selected.value:q,this._value=$,this.valueChange.emit($),this._onChange($),this.selectionChange.emit(this._getChangeEvent($)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var q;return!this._panelOpen&&!this.disabled&&(null===(q=this.options)||void 0===q?void 0:q.length)>0}focus(q){this._elementRef.nativeElement.focus(q)}_getPanelAriaLabelledby(){var q;if(this.ariaLabel)return null;const $=null===(q=this._parentFormField)||void 0===q?void 0:q.getLabelId();return this.ariaLabelledby?($?$+" ":"")+this.ariaLabelledby:$}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var q;if(this.ariaLabel)return null;const $=null===(q=this._parentFormField)||void 0===q?void 0:q.getLabelId();let ce=($?$+" ":"")+this._valueId;return this.ariaLabelledby&&(ce+=" "+this.ariaLabelledby),ce}_panelDoneAnimating(q){this.openedChange.emit(q)}setDescribedByIds(q){this._ariaDescribedby=q.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Oe.\u0275fac=function(q){return new(q||Oe)(v.Y36(M.rL),v.Y36(v.sBO),v.Y36(v.R0b),v.Y36(C.rD),v.Y36(v.SBq),v.Y36(re.Is,8),v.Y36(O.F,8),v.Y36(O.sg,8),v.Y36(o.G_,8),v.Y36(O.a5,10),v.$8M("tabindex"),v.Y36(ze),v.Y36(l.Kd),v.Y36(K,8))},Oe.\u0275dir=v.lG2({type:Oe,viewQuery:function(q,$){if(1&q&&(v.Gf(de,5),v.Gf(le,5),v.Gf(e.pI,5)),2&q){let ce;v.iGM(ce=v.CRH())&&($.trigger=ce.first),v.iGM(ce=v.CRH())&&($.panel=ce.first),v.iGM(ce=v.CRH())&&($._overlayDir=ce.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[v.qOj,v.TTD]}),Oe})(),Ne=(()=>{class Oe extends Fe{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(q,$,ce){const Me=this._getItemHeight();return Math.min(Math.max(0,Me*q-$+Me/2),ce)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,ve.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,j.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(q){const $=(0,C.CB)(q,this.options,this.optionGroups),ce=this._getItemHeight();this.panel.nativeElement.scrollTop=0===q&&1===$?0:(0,C.jH)((q+$)*ce,ce,this.panel.nativeElement.scrollTop,U)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(q){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(q)}_getChangeEvent(q){return new Y(this,q)}_calculateOverlayOffsetX(){const q=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),$=this._viewportRuler.getViewportSize(),ce=this._isRtl(),Me=this.multiple?56:32;let Ue;if(this.multiple)Ue=40;else if(this.disableOptionCentering)Ue=16;else{let ft=this._selectionModel.selected[0]||this.options.first;Ue=ft&&ft.group?32:16}ce||(Ue*=-1);const lt=0-(q.left+Ue-(ce?Me:0)),nt=q.right+Ue-$.width+(ce?0:Me);lt>0?Ue+=lt+8:nt>0&&(Ue-=nt+8),this._overlayDir.offsetX=Math.round(Ue),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(q,$,ce){const Me=this._getItemHeight(),Ue=(Me-this._triggerRect.height)/2,lt=Math.floor(U/Me);let nt;return this.disableOptionCentering?0:(nt=0===this._scrollTop?q*Me:this._scrollTop===ce?(q-(this._getItemCount()-lt))*Me+(Me-(this._getItemCount()*Me-U)%Me):$-Me/2,Math.round(-1*nt-Ue))}_checkOverlayWithinViewport(q){const $=this._getItemHeight(),ce=this._viewportRuler.getViewportSize(),Me=this._triggerRect.top-8,Ue=ce.height-this._triggerRect.bottom-8,lt=Math.abs(this._offsetY),ft=Math.min(this._getItemCount()*$,U)-lt-this._triggerRect.height;ft>Ue?this._adjustPanelUp(ft,Ue):lt>Me?this._adjustPanelDown(lt,Me,q):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(q,$){const ce=Math.round(q-$);this._scrollTop-=ce,this._offsetY-=ce,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(q,$,ce){const Me=Math.round(q-$);if(this._scrollTop+=Me,this._offsetY+=Me,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=ce)return this._scrollTop=ce,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const q=this._getItemHeight(),$=this._getItemCount(),ce=Math.min($*q,U),Ue=$*q-ce;let lt;lt=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),lt+=(0,C.CB)(lt,this.options,this.optionGroups);const nt=ce/2;this._scrollTop=this._calculateOverlayScroll(lt,nt,Ue),this._offsetY=this._calculateOverlayOffsetY(lt,nt,Ue),this._checkOverlayWithinViewport(Ue)}_getOriginBasedOnOption(){const q=this._getItemHeight(),$=(q-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-$+q/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Oe.\u0275fac=function(){let Pe;return function($){return(Pe||(Pe=v.n5z(Oe)))($||Oe)}}(),Oe.\u0275cmp=v.Xpm({type:Oe,selectors:[["mat-select"]],contentQueries:function(q,$,ce){if(1&q&&(v.Suo(ce,Ge,5),v.Suo(ce,C.ey,5),v.Suo(ce,C.K7,5)),2&q){let Me;v.iGM(Me=v.CRH())&&($.customTrigger=Me.first),v.iGM(Me=v.CRH())&&($.options=Me),v.iGM(Me=v.CRH())&&($.optionGroups=Me)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(q,$){1&q&&v.NdJ("keydown",function(Me){return $._handleKeydown(Me)})("focus",function(){return $._onFocus()})("blur",function(){return $._onBlur()}),2&q&&(v.uIk("id",$.id)("tabindex",$.tabIndex)("aria-controls",$.panelOpen?$.id+"-panel":null)("aria-expanded",$.panelOpen)("aria-label",$.ariaLabel||null)("aria-required",$.required.toString())("aria-disabled",$.disabled.toString())("aria-invalid",$.errorState)("aria-describedby",$._ariaDescribedby||null)("aria-activedescendant",$._getAriaActiveDescendant()),v.ekj("mat-select-disabled",$.disabled)("mat-select-invalid",$.errorState)("mat-select-required",$.required)("mat-select-empty",$.empty)("mat-select-multiple",$.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[v._Bn([{provide:o.Eo,useExisting:Oe},{provide:C.HF,useExisting:Oe}]),v.qOj],ngContentSelectors:_,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(q,$){if(1&q&&(v.F$t(u),v.TgZ(0,"div",0,1),v.NdJ("click",function(){return $.toggle()}),v.TgZ(3,"div",2),v.YNc(4,se,2,1,"span",3),v.YNc(5,a,3,2,"span",4),v.qZA(),v.TgZ(6,"div",5),v._UZ(7,"div",6),v.qZA(),v.qZA(),v.YNc(8,p,4,14,"ng-template",7),v.NdJ("backdropClick",function(){return $.close()})("attach",function(){return $._onAttached()})("detach",function(){return $.close()})),2&q){const ce=v.MAs(1);v.uIk("aria-owns",$.panelOpen?$.id+"-panel":null),v.xp6(3),v.Q6J("ngSwitch",$.empty),v.uIk("id",$._valueId),v.xp6(1),v.Q6J("ngSwitchCase",!0),v.xp6(1),v.Q6J("ngSwitchCase",!1),v.xp6(3),v.Q6J("cdkConnectedOverlayPanelClass",$._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",$._scrollStrategy)("cdkConnectedOverlayOrigin",ce)("cdkConnectedOverlayOpen",$.panelOpen)("cdkConnectedOverlayPositions",$._positions)("cdkConnectedOverlayMinWidth",null==$._triggerRect?null:$._triggerRect.width)("cdkConnectedOverlayOffsetY",$._offsetY)}},directives:[e.xu,t.RF,t.n9,e.pI,t.ED,t.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[D.transformPanelWrap,D.transformPanel]},changeDetection:0}),Oe})(),ue=(()=>{class Oe{}return Oe.\u0275fac=function(q){return new(q||Oe)},Oe.\u0275mod=v.oAB({type:Oe}),Oe.\u0275inj=v.cJS({providers:[we],imports:[[t.ez,e.U8,C.Ng,C.BQ],M.ZD,o.lN,C.Ng,C.BQ]}),Oe})()},2638:(Ve,Q,m)=>{"use strict";m.d(Q,{JX:()=>xe,TM:()=>Re,Rh:()=>be,SJ:()=>ze});var e=m(925),t=m(5303),v=m(9808),C=m(5e3),o=m(508),M=m(3191),l=m(1159),R=m(7579),s=m(4968),L=m(6451),O=m(9300),A=m(4004),E=m(9718),P=m(2722),w=m(1884),Z=m(5698),j=m(8675),W=m(8372),ie=m(1777),ee=m(6360),ve=m(5664),he=m(226);const re=["*"];function de(Le,K){if(1&Le){const we=C.EpF();C.TgZ(0,"div",2),C.NdJ("click",function(){return C.CHM(we),C.oxw()._onBackdropClicked()}),C.qZA()}if(2&Le){const we=C.oxw();C.ekj("mat-drawer-shown",we._isShowingBackdrop())}}function le(Le,K){1&Le&&(C.TgZ(0,"mat-drawer-content"),C.Hsn(1,2),C.qZA())}const se=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],y=["mat-drawer","mat-drawer-content","*"];function i(Le,K){if(1&Le){const we=C.EpF();C.TgZ(0,"div",2),C.NdJ("click",function(){return C.CHM(we),C.oxw()._onBackdropClicked()}),C.qZA()}if(2&Le){const we=C.oxw();C.ekj("mat-drawer-shown",we._isShowingBackdrop())}}function a(Le,K){1&Le&&(C.TgZ(0,"mat-sidenav-content",3),C.Hsn(1,2),C.qZA())}const p=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],u=["mat-sidenav","mat-sidenav-content","*"],D={transformDrawer:(0,ie.X$)("transform",[(0,ie.SB)("open, open-instant",(0,ie.oB)({transform:"none",visibility:"visible"})),(0,ie.SB)("void",(0,ie.oB)({"box-shadow":"none",visibility:"hidden"})),(0,ie.eR)("void => open-instant",(0,ie.jt)("0ms")),(0,ie.eR)("void <=> open, open-instant => void",(0,ie.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},x=new C.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function b(){return!1}}),r=new C.OlP("MAT_DRAWER_CONTAINER");let U=(()=>{class Le extends t.PQ{constructor(we,Y,ae,Ge,vt){super(ae,Ge,vt),this._changeDetectorRef=we,this._container=Y}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return Le.\u0275fac=function(we){return new(we||Le)(C.Y36(C.sBO),C.Y36((0,C.Gpc)(()=>z)),C.Y36(C.SBq),C.Y36(t.mF),C.Y36(C.R0b))},Le.\u0275cmp=C.Xpm({type:Le,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(we,Y){2&we&&C.Udp("margin-left",Y._container._contentMargins.left,"px")("margin-right",Y._container._contentMargins.right,"px")},features:[C.qOj],ngContentSelectors:re,decls:1,vars:0,template:function(we,Y){1&we&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),Le})(),N=(()=>{class Le{constructor(we,Y,ae,Ge,vt,Fe,Ne,ue){this._elementRef=we,this._focusTrapFactory=Y,this._focusMonitor=ae,this._platform=Ge,this._ngZone=vt,this._interactivityChecker=Fe,this._doc=Ne,this._container=ue,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new R.x,this._animationEnd=new R.x,this._animationState="void",this.openedChange=new C.vpe(!0),this._openedStream=this.openedChange.pipe((0,O.h)(Oe=>Oe),(0,A.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,O.h)(Oe=>Oe.fromState!==Oe.toState&&0===Oe.toState.indexOf("open")),(0,E.h)(void 0)),this._closedStream=this.openedChange.pipe((0,O.h)(Oe=>!Oe),(0,A.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,O.h)(Oe=>Oe.fromState!==Oe.toState&&"void"===Oe.toState),(0,E.h)(void 0)),this._destroyed=new R.x,this.onPositionChanged=new C.vpe,this._modeChanged=new R.x,this.openedChange.subscribe(Oe=>{Oe?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,s.R)(this._elementRef.nativeElement,"keydown").pipe((0,O.h)(Oe=>Oe.keyCode===l.hY&&!this.disableClose&&!(0,l.Vb)(Oe)),(0,P.R)(this._destroyed)).subscribe(Oe=>this._ngZone.run(()=>{this.close(),Oe.stopPropagation(),Oe.preventDefault()}))}),this._animationEnd.pipe((0,w.x)((Oe,Pe)=>Oe.fromState===Pe.fromState&&Oe.toState===Pe.toState)).subscribe(Oe=>{const{fromState:Pe,toState:q}=Oe;(0===q.indexOf("open")&&"void"===Pe||"void"===q&&0===Pe.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(we){(we="end"===we?"end":"start")!=this._position&&(this._position=we,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(we){this._mode=we,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(we){this._disableClose=(0,M.Ig)(we)}get autoFocus(){const we=this._autoFocus;return null==we?"side"===this.mode?"dialog":"first-tabbable":we}set autoFocus(we){("true"===we||"false"===we)&&(we=(0,M.Ig)(we)),this._autoFocus=we}get opened(){return this._opened}set opened(we){this.toggle((0,M.Ig)(we))}_forceFocus(we,Y){this._interactivityChecker.isFocusable(we)||(we.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{we.addEventListener("blur",()=>we.removeAttribute("tabindex")),we.addEventListener("mousedown",()=>we.removeAttribute("tabindex"))})),we.focus(Y)}_focusByCssSelector(we,Y){let ae=this._elementRef.nativeElement.querySelector(we);ae&&this._forceFocus(ae,Y)}_takeFocus(){if(!this._focusTrap)return;const we=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Y=>{!Y&&"function"==typeof this._elementRef.nativeElement.focus&&we.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(we){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,we):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){var we;const Y=null===(we=this._doc)||void 0===we?void 0:we.activeElement;return!!Y&&this._elementRef.nativeElement.contains(Y)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(we){return this.toggle(!0,we)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(we=!this.opened,Y){we&&Y&&(this._openedVia=Y);const ae=this._setOpen(we,!we&&this._isFocusWithinDrawer(),this._openedVia||"program");return we||(this._openedVia=null),ae}_setOpen(we,Y,ae){return this._opened=we,we?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",Y&&this._restoreFocus(ae)),this._updateFocusTrapState(),new Promise(Ge=>{this.openedChange.pipe((0,Z.q)(1)).subscribe(vt=>Ge(vt?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}}return Le.\u0275fac=function(we){return new(we||Le)(C.Y36(C.SBq),C.Y36(ve.qV),C.Y36(ve.tE),C.Y36(e.t4),C.Y36(C.R0b),C.Y36(ve.ic),C.Y36(v.K0,8),C.Y36(r,8))},Le.\u0275cmp=C.Xpm({type:Le,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(we,Y){1&we&&C.WFA("@transform.start",function(Ge){return Y._animationStarted.next(Ge)})("@transform.done",function(Ge){return Y._animationEnd.next(Ge)}),2&we&&(C.uIk("align",null),C.d8E("@transform",Y._animationState),C.ekj("mat-drawer-end","end"===Y.position)("mat-drawer-over","over"===Y.mode)("mat-drawer-push","push"===Y.mode)("mat-drawer-side","side"===Y.mode)("mat-drawer-opened",Y.opened))},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:re,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(we,Y){1&we&&(C.F$t(),C.TgZ(0,"div",0),C.Hsn(1),C.qZA())},directives:[t.PQ],encapsulation:2,data:{animation:[D.transformDrawer]},changeDetection:0}),Le})(),z=(()=>{class Le{constructor(we,Y,ae,Ge,vt,Fe=!1,Ne){this._dir=we,this._element=Y,this._ngZone=ae,this._changeDetectorRef=Ge,this._animationMode=Ne,this._drawers=new C.n_E,this.backdropClick=new C.vpe,this._destroyed=new R.x,this._doCheckSubject=new R.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new R.x,we&&we.change.pipe((0,P.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),vt.change().pipe((0,P.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=Fe}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(we){this._autosize=(0,M.Ig)(we)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(we){this._backdropOverride=null==we?null:(0,M.Ig)(we)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,j.O)(this._allDrawers),(0,P.R)(this._destroyed)).subscribe(we=>{this._drawers.reset(we.filter(Y=>!Y._container||Y._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,j.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(we=>{this._watchDrawerToggle(we),this._watchDrawerPosition(we),this._watchDrawerMode(we)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,W.b)(10),(0,P.R)(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(we=>we.open())}close(){this._drawers.forEach(we=>we.close())}updateContentMargins(){let we=0,Y=0;if(this._left&&this._left.opened)if("side"==this._left.mode)we+=this._left._getWidth();else if("push"==this._left.mode){const ae=this._left._getWidth();we+=ae,Y-=ae}if(this._right&&this._right.opened)if("side"==this._right.mode)Y+=this._right._getWidth();else if("push"==this._right.mode){const ae=this._right._getWidth();Y+=ae,we-=ae}we=we||null,Y=Y||null,(we!==this._contentMargins.left||Y!==this._contentMargins.right)&&(this._contentMargins={left:we,right:Y},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(we){we._animationStarted.pipe((0,O.h)(Y=>Y.fromState!==Y.toState),(0,P.R)(this._drawers.changes)).subscribe(Y=>{"open-instant"!==Y.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==we.mode&&we.openedChange.pipe((0,P.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(we.opened))}_watchDrawerPosition(we){!we||we.onPositionChanged.pipe((0,P.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,Z.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(we){we&&we._modeChanged.pipe((0,P.R)((0,L.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(we){const Y=this._element.nativeElement.classList,ae="mat-drawer-container-has-open";we?Y.add(ae):Y.remove(ae)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(we=>{"end"==we.position?this._end=we:this._start=we}),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(we=>we&&!we.disableClose&&this._canHaveBackdrop(we)).forEach(we=>we._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(we){return"side"!==we.mode||!!this._backdropOverride}_isDrawerOpen(we){return null!=we&&we.opened}}return Le.\u0275fac=function(we){return new(we||Le)(C.Y36(he.Is,8),C.Y36(C.SBq),C.Y36(C.R0b),C.Y36(C.sBO),C.Y36(t.rL),C.Y36(x),C.Y36(ee.Qb,8))},Le.\u0275cmp=C.Xpm({type:Le,selectors:[["mat-drawer-container"]],contentQueries:function(we,Y,ae){if(1&we&&(C.Suo(ae,U,5),C.Suo(ae,N,5)),2&we){let Ge;C.iGM(Ge=C.CRH())&&(Y._content=Ge.first),C.iGM(Ge=C.CRH())&&(Y._allDrawers=Ge)}},viewQuery:function(we,Y){if(1&we&&C.Gf(U,5),2&we){let ae;C.iGM(ae=C.CRH())&&(Y._userContent=ae.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(we,Y){2&we&&C.ekj("mat-drawer-container-explicit-backdrop",Y._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[C._Bn([{provide:r,useExisting:Le}])],ngContentSelectors:y,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(we,Y){1&we&&(C.F$t(se),C.YNc(0,de,1,2,"div",0),C.Hsn(1),C.Hsn(2,1),C.YNc(3,le,2,0,"mat-drawer-content",1)),2&we&&(C.Q6J("ngIf",Y.hasBackdrop),C.xp6(3),C.Q6J("ngIf",!Y._content))},directives:[v.O5,U],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;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}.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}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.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;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)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .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)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),Le})(),be=(()=>{class Le extends U{constructor(we,Y,ae,Ge,vt){super(we,Y,ae,Ge,vt)}}return Le.\u0275fac=function(we){return new(we||Le)(C.Y36(C.sBO),C.Y36((0,C.Gpc)(()=>Re)),C.Y36(C.SBq),C.Y36(t.mF),C.Y36(C.R0b))},Le.\u0275cmp=C.Xpm({type:Le,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(we,Y){2&we&&C.Udp("margin-left",Y._container._contentMargins.left,"px")("margin-right",Y._container._contentMargins.right,"px")},features:[C.qOj],ngContentSelectors:re,decls:1,vars:0,template:function(we,Y){1&we&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),Le})(),xe=(()=>{class Le extends N{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(we){this._fixedInViewport=(0,M.Ig)(we)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(we){this._fixedTopGap=(0,M.su)(we)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(we){this._fixedBottomGap=(0,M.su)(we)}}return Le.\u0275fac=function(){let K;return function(Y){return(K||(K=C.n5z(Le)))(Y||Le)}}(),Le.\u0275cmp=C.Xpm({type:Le,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(we,Y){2&we&&(C.uIk("align",null),C.Udp("top",Y.fixedInViewport?Y.fixedTopGap:null,"px")("bottom",Y.fixedInViewport?Y.fixedBottomGap:null,"px"),C.ekj("mat-drawer-end","end"===Y.position)("mat-drawer-over","over"===Y.mode)("mat-drawer-push","push"===Y.mode)("mat-drawer-side","side"===Y.mode)("mat-drawer-opened",Y.opened)("mat-sidenav-fixed",Y.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[C.qOj],ngContentSelectors:re,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(we,Y){1&we&&(C.F$t(),C.TgZ(0,"div",0),C.Hsn(1),C.qZA())},directives:[t.PQ],encapsulation:2,data:{animation:[D.transformDrawer]},changeDetection:0}),Le})(),Re=(()=>{class Le extends z{}return Le.\u0275fac=function(){let K;return function(Y){return(K||(K=C.n5z(Le)))(Y||Le)}}(),Le.\u0275cmp=C.Xpm({type:Le,selectors:[["mat-sidenav-container"]],contentQueries:function(we,Y,ae){if(1&we&&(C.Suo(ae,be,5),C.Suo(ae,xe,5)),2&we){let Ge;C.iGM(Ge=C.CRH())&&(Y._content=Ge.first),C.iGM(Ge=C.CRH())&&(Y._allDrawers=Ge)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(we,Y){2&we&&C.ekj("mat-drawer-container-explicit-backdrop",Y._backdropOverride)},exportAs:["matSidenavContainer"],features:[C._Bn([{provide:r,useExisting:Le}]),C.qOj],ngContentSelectors:u,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(we,Y){1&we&&(C.F$t(p),C.YNc(0,i,1,2,"div",0),C.Hsn(1),C.Hsn(2,1),C.YNc(3,a,2,0,"mat-sidenav-content",1)),2&we&&(C.Q6J("ngIf",Y.hasBackdrop),C.xp6(3),C.Q6J("ngIf",!Y._content))},directives:[v.O5,be,t.PQ],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;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}.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}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.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;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)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .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)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),Le})(),ze=(()=>{class Le{}return Le.\u0275fac=function(we){return new(we||Le)},Le.\u0275mod=C.oAB({type:Le}),Le.\u0275inj=C.cJS({imports:[[v.ez,o.BQ,e.ud,t.ZD],t.ZD,o.BQ]}),Le})()},2368:(Ve,Q,m)=>{"use strict";m.d(Q,{Rr:()=>W,rP:()=>he});var e=m(7144),t=m(5e3),v=m(508),C=m(3191),o=m(3075),M=m(6360),l=m(5664);const R=["thumbContainer"],s=["toggleBar"],L=["input"],O=function(re){return{enterDuration:re}},A=["*"],E=new t.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let P=0;const w={provide:o.JU,useExisting:(0,t.Gpc)(()=>W),multi:!0};class Z{constructor(de,le){this.source=de,this.checked=le}}const j=(0,v.sb)((0,v.pj)((0,v.Kr)((0,v.Id)(class{constructor(re){this._elementRef=re}}))));let W=(()=>{class re extends j{constructor(le,se,y,i,a,p){super(le),this._focusMonitor=se,this._changeDetectorRef=y,this.defaults=a,this._onChange=u=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++P,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new t.vpe,this.toggleChange=new t.vpe,this.tabIndex=parseInt(i)||0,this.color=this.defaultColor=a.color||"accent",this._noopAnimations="NoopAnimations"===p}get required(){return this._required}set required(le){this._required=(0,C.Ig)(le)}get checked(){return this._checked}set checked(le){this._checked=(0,C.Ig)(le),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(le=>{le||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(le){le.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(le){le.stopPropagation()}writeValue(le){this.checked=!!le}registerOnChange(le){this._onChange=le}registerOnTouched(le){this._onTouched=le}setDisabledState(le){this.disabled=le,this._changeDetectorRef.markForCheck()}focus(le,se){se?this._focusMonitor.focusVia(this._inputElement,se,le):this._inputElement.nativeElement.focus(le)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new Z(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return re.\u0275fac=function(le){return new(le||re)(t.Y36(t.SBq),t.Y36(l.tE),t.Y36(t.sBO),t.$8M("tabindex"),t.Y36(E),t.Y36(M.Qb,8))},re.\u0275cmp=t.Xpm({type:re,selectors:[["mat-slide-toggle"]],viewQuery:function(le,se){if(1&le&&(t.Gf(R,5),t.Gf(s,5),t.Gf(L,5)),2&le){let y;t.iGM(y=t.CRH())&&(se._thumbEl=y.first),t.iGM(y=t.CRH())&&(se._thumbBarEl=y.first),t.iGM(y=t.CRH())&&(se._inputElement=y.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(le,se){2&le&&(t.Ikx("id",se.id),t.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),t.ekj("mat-checked",se.checked)("mat-disabled",se.disabled)("mat-slide-toggle-label-before","before"==se.labelPosition)("_mat-animation-noopable",se._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[t._Bn([w]),t.qOj],ngContentSelectors:A,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(le,se){if(1&le&&(t.F$t(),t.TgZ(0,"label",0,1),t.TgZ(2,"div",2,3),t.TgZ(4,"input",4,5),t.NdJ("change",function(i){return se._onChangeEvent(i)})("click",function(i){return se._onInputClick(i)}),t.qZA(),t.TgZ(6,"div",6,7),t._UZ(8,"div",8),t.TgZ(9,"div",9),t._UZ(10,"div",10),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"span",11,12),t.NdJ("cdkObserveContent",function(){return se._onLabelTextChange()}),t.TgZ(13,"span",13),t._uU(14,"\xa0"),t.qZA(),t.Hsn(15),t.qZA(),t.qZA()),2&le){const y=t.MAs(1),i=t.MAs(12);t.uIk("for",se.inputId),t.xp6(2),t.ekj("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),t.xp6(2),t.Q6J("id",se.inputId)("required",se.required)("tabIndex",se.tabIndex)("checked",se.checked)("disabled",se.disabled),t.uIk("name",se.name)("aria-checked",se.checked.toString())("aria-label",se.ariaLabel)("aria-labelledby",se.ariaLabelledby)("aria-describedby",se.ariaDescribedby),t.xp6(5),t.Q6J("matRippleTrigger",y)("matRippleDisabled",se.disableRipple||se.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",t.VKq(18,O,se._noopAnimations?0:150))}},directives:[v.wG,e.wD],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),re})(),ve=(()=>{class re{}return re.\u0275fac=function(le){return new(le||re)},re.\u0275mod=t.oAB({type:re}),re.\u0275inj=t.cJS({}),re})(),he=(()=>{class re{}return re.\u0275fac=function(le){return new(le||re)},re.\u0275mod=t.oAB({type:re}),re.\u0275inj=t.cJS({imports:[[ve,v.si,v.BQ,e.Q8],ve,v.BQ]}),re})()},7261:(Ve,Q,m)=>{"use strict";m.d(Q,{Ve:()=>de,ux:()=>se,ZX:()=>re});var e=m(9776),t=m(7429),v=m(9808),C=m(5e3),o=m(508),M=m(7423),l=m(7579),R=m(5698),s=m(2722),L=m(1777),O=m(925),A=m(5113),E=m(5664);function P(y,i){if(1&y){const a=C.EpF();C.TgZ(0,"div",1),C.TgZ(1,"button",2),C.NdJ("click",function(){return C.CHM(a),C.oxw().action()}),C._uU(2),C.qZA(),C.qZA()}if(2&y){const a=C.oxw();C.xp6(2),C.Oqu(a.data.action)}}function w(y,i){}const Z=new C.OlP("MatSnackBarData");class j{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const W=Math.pow(2,31)-1;class ie{constructor(i,a){this._overlayRef=a,this._afterDismissed=new l.x,this._afterOpened=new l.x,this._onAction=new l.x,this._dismissedByAction=!1,this.containerInstance=i,this.onAction().subscribe(()=>this.dismiss()),i._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()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(i){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(i,W))}_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}}let ee=(()=>{class y{constructor(a,p){this.snackBarRef=a,this.data=p}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return y.\u0275fac=function(a){return new(a||y)(C.Y36(ie),C.Y36(Z))},y.\u0275cmp=C.Xpm({type:y,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(a,p){1&a&&(C.TgZ(0,"span"),C._uU(1),C.qZA(),C.YNc(2,P,3,1,"div",0)),2&a&&(C.xp6(1),C.Oqu(p.data.message),C.xp6(1),C.Q6J("ngIf",p.hasAction))},directives:[v.O5,M.lW],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),y})();const ve={snackBarState:(0,L.X$)("state",[(0,L.SB)("void, hidden",(0,L.oB)({transform:"scale(0.8)",opacity:0})),(0,L.SB)("visible",(0,L.oB)({transform:"scale(1)",opacity:1})),(0,L.eR)("* => visible",(0,L.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,L.eR)("* => void, * => hidden",(0,L.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,L.oB)({opacity:0})))])};let he=(()=>{class y extends t.en{constructor(a,p,u,_,D){super(),this._ngZone=a,this._elementRef=p,this._changeDetectorRef=u,this._platform=_,this.snackBarConfig=D,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new l.x,this._onExit=new l.x,this._onEnter=new l.x,this._animationState="void",this.attachDomPortal=I=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(I)),this._live="assertive"!==D.politeness||D.announcementMessage?"off"===D.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(a){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(a)}attachTemplatePortal(a){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(a)}onAnimationEnd(a){const{fromState:p,toState:u}=a;if(("void"===u&&"void"!==p||"hidden"===u)&&this._completeExit(),"visible"===u){const _=this._onEnter;this._ngZone.run(()=>{_.next(),_.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,R.q)(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const a=this._elementRef.nativeElement,p=this.snackBarConfig.panelClass;p&&(Array.isArray(p)?p.forEach(u=>a.classList.add(u)):a.classList.add(p)),"center"===this.snackBarConfig.horizontalPosition&&a.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&a.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const a=this._elementRef.nativeElement.querySelector("[aria-hidden]"),p=this._elementRef.nativeElement.querySelector("[aria-live]");if(a&&p){let u=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&a.contains(document.activeElement)&&(u=document.activeElement),a.removeAttribute("aria-hidden"),p.appendChild(a),null==u||u.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return y.\u0275fac=function(a){return new(a||y)(C.Y36(C.R0b),C.Y36(C.SBq),C.Y36(C.sBO),C.Y36(O.t4),C.Y36(j))},y.\u0275cmp=C.Xpm({type:y,selectors:[["snack-bar-container"]],viewQuery:function(a,p){if(1&a&&C.Gf(t.Pl,7),2&a){let u;C.iGM(u=C.CRH())&&(p._portalOutlet=u.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(a,p){1&a&&C.WFA("@state.done",function(_){return p.onAnimationEnd(_)}),2&a&&C.d8E("@state",p._animationState)},features:[C.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(a,p){1&a&&(C.TgZ(0,"div",0),C.YNc(1,w,0,0,"ng-template",1),C.qZA(),C._UZ(2,"div")),2&a&&(C.xp6(2),C.uIk("aria-live",p._live)("role",p._role))},directives:[t.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[ve.snackBarState]}}),y})(),re=(()=>{class y{}return y.\u0275fac=function(a){return new(a||y)},y.\u0275mod=C.oAB({type:y}),y.\u0275inj=C.cJS({imports:[[e.U8,t.eL,v.ez,M.ot,o.BQ],o.BQ]}),y})();const de=new C.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function le(){return new j}});let se=(()=>{class y{constructor(a,p,u,_,D,I){this._overlay=a,this._live=p,this._injector=u,this._breakpointObserver=_,this._parentSnackBar=D,this._defaultConfig=I,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=ee,this.snackBarContainerComponent=he,this.handsetCssClass="mat-snack-bar-handset"}get _openedSnackBarRef(){const a=this._parentSnackBar;return a?a._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(a){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=a:this._snackBarRefAtThisLevel=a}openFromComponent(a,p){return this._attach(a,p)}openFromTemplate(a,p){return this._attach(a,p)}open(a,p="",u){const _=Object.assign(Object.assign({},this._defaultConfig),u);return _.data={message:a,action:p},_.announcementMessage===a&&(_.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,_)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(a,p){const _=C.zs3.create({parent:p&&p.viewContainerRef&&p.viewContainerRef.injector||this._injector,providers:[{provide:j,useValue:p}]}),D=new t.C5(this.snackBarContainerComponent,p.viewContainerRef,_),I=a.attach(D);return I.instance.snackBarConfig=p,I.instance}_attach(a,p){const u=Object.assign(Object.assign(Object.assign({},new j),this._defaultConfig),p),_=this._createOverlay(u),D=this._attachSnackBarContainer(_,u),I=new ie(D,_);if(a instanceof C.Rgc){const x=new t.UE(a,null,{$implicit:u.data,snackBarRef:I});I.instance=D.attachTemplatePortal(x)}else{const x=this._createInjector(u,I),r=new t.C5(a,void 0,x),b=D.attachComponentPortal(r);I.instance=b.instance}return this._breakpointObserver.observe(A.u3.HandsetPortrait).pipe((0,s.R)(_.detachments())).subscribe(x=>{_.overlayElement.classList.toggle(this.handsetCssClass,x.matches)}),u.announcementMessage&&D._onAnnounce.subscribe(()=>{this._live.announce(u.announcementMessage,u.politeness)}),this._animateSnackBar(I,u),this._openedSnackBarRef=I,this._openedSnackBarRef}_animateSnackBar(a,p){a.afterDismissed().subscribe(()=>{this._openedSnackBarRef==a&&(this._openedSnackBarRef=null),p.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{a.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):a.containerInstance.enter(),p.duration&&p.duration>0&&a.afterOpened().subscribe(()=>a._dismissAfter(p.duration))}_createOverlay(a){const p=new e.X_;p.direction=a.direction;let u=this._overlay.position().global();const _="rtl"===a.direction,D="left"===a.horizontalPosition||"start"===a.horizontalPosition&&!_||"end"===a.horizontalPosition&&_,I=!D&&"center"!==a.horizontalPosition;return D?u.left("0"):I?u.right("0"):u.centerHorizontally(),"top"===a.verticalPosition?u.top("0"):u.bottom("0"),p.positionStrategy=u,this._overlay.create(p)}_createInjector(a,p){return C.zs3.create({parent:a&&a.viewContainerRef&&a.viewContainerRef.injector||this._injector,providers:[{provide:ie,useValue:p},{provide:Z,useValue:a.data}]})}}return y.\u0275fac=function(a){return new(a||y)(C.LFG(e.aV),C.LFG(E.Kd),C.LFG(C.zs3),C.LFG(A.Yg),C.LFG(y,12),C.LFG(de))},y.\u0275prov=C.Yz7({token:y,factory:y.\u0275fac,providedIn:re}),y})()},4847:(Ve,Q,m)=>{"use strict";m.d(Q,{YE:()=>de,nU:()=>y,JX:()=>i});var e=m(5e3),t=m(3191),v=m(1159),C=m(508),o=m(7579),M=m(6451),l=m(1777),R=m(5664),s=m(9808);const L=["mat-sort-header",""];function O(a,p){if(1&a){const u=e.EpF();e.TgZ(0,"div",3),e.NdJ("@arrowPosition.start",function(){return e.CHM(u),e.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return e.CHM(u),e.oxw()._disableViewStateAnimation=!1}),e._UZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"div",6),e._UZ(4,"div",7),e._UZ(5,"div",8),e.qZA(),e.qZA()}if(2&a){const u=e.oxw();e.Q6J("@arrowOpacity",u._getArrowViewState())("@arrowPosition",u._getArrowViewState())("@allowChildren",u._getArrowDirectionState()),e.xp6(2),e.Q6J("@indicator",u._getArrowDirectionState()),e.xp6(1),e.Q6J("@leftPointer",u._getArrowDirectionState()),e.xp6(1),e.Q6J("@rightPointer",u._getArrowDirectionState())}}const A=["*"],E=C.mZ.ENTERING+" "+C.yN.STANDARD_CURVE,P={indicator:(0,l.X$)("indicator",[(0,l.SB)("active-asc, asc",(0,l.oB)({transform:"translateY(0px)"})),(0,l.SB)("active-desc, desc",(0,l.oB)({transform:"translateY(10px)"})),(0,l.eR)("active-asc <=> active-desc",(0,l.jt)(E))]),leftPointer:(0,l.X$)("leftPointer",[(0,l.SB)("active-asc, asc",(0,l.oB)({transform:"rotate(-45deg)"})),(0,l.SB)("active-desc, desc",(0,l.oB)({transform:"rotate(45deg)"})),(0,l.eR)("active-asc <=> active-desc",(0,l.jt)(E))]),rightPointer:(0,l.X$)("rightPointer",[(0,l.SB)("active-asc, asc",(0,l.oB)({transform:"rotate(45deg)"})),(0,l.SB)("active-desc, desc",(0,l.oB)({transform:"rotate(-45deg)"})),(0,l.eR)("active-asc <=> active-desc",(0,l.jt)(E))]),arrowOpacity:(0,l.X$)("arrowOpacity",[(0,l.SB)("desc-to-active, asc-to-active, active",(0,l.oB)({opacity:1})),(0,l.SB)("desc-to-hint, asc-to-hint, hint",(0,l.oB)({opacity:.54})),(0,l.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,l.oB)({opacity:0})),(0,l.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,l.jt)("0ms")),(0,l.eR)("* <=> *",(0,l.jt)(E))]),arrowPosition:(0,l.X$)("arrowPosition",[(0,l.eR)("* => desc-to-hint, * => desc-to-active",(0,l.jt)(E,(0,l.F4)([(0,l.oB)({transform:"translateY(-25%)"}),(0,l.oB)({transform:"translateY(0)"})]))),(0,l.eR)("* => hint-to-desc, * => active-to-desc",(0,l.jt)(E,(0,l.F4)([(0,l.oB)({transform:"translateY(0)"}),(0,l.oB)({transform:"translateY(25%)"})]))),(0,l.eR)("* => asc-to-hint, * => asc-to-active",(0,l.jt)(E,(0,l.F4)([(0,l.oB)({transform:"translateY(25%)"}),(0,l.oB)({transform:"translateY(0)"})]))),(0,l.eR)("* => hint-to-asc, * => active-to-asc",(0,l.jt)(E,(0,l.F4)([(0,l.oB)({transform:"translateY(0)"}),(0,l.oB)({transform:"translateY(-25%)"})]))),(0,l.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,l.oB)({transform:"translateY(0)"})),(0,l.SB)("hint-to-desc, active-to-desc, desc",(0,l.oB)({transform:"translateY(-25%)"})),(0,l.SB)("hint-to-asc, active-to-asc, asc",(0,l.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,l.X$)("allowChildren",[(0,l.eR)("* <=> *",[(0,l.IO)("@*",(0,l.pV)(),{optional:!0})])])};let ie=(()=>{class a{constructor(){this.changes=new o.x}}return a.\u0275fac=function(u){return new(u||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();const ve={provide:ie,deps:[[new e.FiY,new e.tp0,ie]],useFactory:function ee(a){return a||new ie}},he=new e.OlP("MAT_SORT_DEFAULT_OPTIONS"),re=(0,C.dB)((0,C.Id)(class{}));let de=(()=>{class a extends re{constructor(u){super(),this._defaultOptions=u,this.sortables=new Map,this._stateChanges=new o.x,this.start="asc",this._direction="",this.sortChange=new e.vpe}get direction(){return this._direction}set direction(u){this._direction=u}get disableClear(){return this._disableClear}set disableClear(u){this._disableClear=(0,t.Ig)(u)}register(u){this.sortables.set(u.id,u)}deregister(u){this.sortables.delete(u.id)}sort(u){this.active!=u.id?(this.active=u.id,this.direction=u.start?u.start:this.start):this.direction=this.getNextSortDirection(u),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(u){var _,D,I;if(!u)return"";const x=null!==(D=null!==(_=null==u?void 0:u.disableClear)&&void 0!==_?_:this.disableClear)&&void 0!==D?D:!!(null===(I=this._defaultOptions)||void 0===I?void 0:I.disableClear);let r=function le(a,p){let u=["asc","desc"];return"desc"==a&&u.reverse(),p||u.push(""),u}(u.start||this.start,x),b=r.indexOf(this.direction)+1;return b>=r.length&&(b=0),r[b]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return a.\u0275fac=function(u){return new(u||a)(e.Y36(he,8))},a.\u0275dir=e.lG2({type:a,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[e.qOj,e.TTD]}),a})();const se=(0,C.Id)(class{});let y=(()=>{class a extends se{constructor(u,_,D,I,x,r,b){super(),this._intl=u,this._changeDetectorRef=_,this._sort=D,this._columnDef=I,this._focusMonitor=x,this._elementRef=r,this._ariaDescriber=b,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(u){this._updateSortActionDescription(u)}get disableClear(){return this._disableClear}set disableClear(u){this._disableClear=(0,t.Ig)(u)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector('[role="button"]'),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(u=>{const _=!!u;_!==this._showIndicatorHint&&(this._setIndicatorHintVisible(_),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(u){this._isDisabled()&&u||(this._showIndicatorHint=u,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(u){this._viewState=u||{},this._disableViewStateAnimation&&(this._viewState={toState:u.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(u){!this._isDisabled()&&(u.keyCode===v.L_||u.keyCode===v.K5)&&(u.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const u=this._viewState.fromState;return(u?`${u}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_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(u){var _,D;this._sortButton&&(null===(_=this._ariaDescriber)||void 0===_||_.removeDescription(this._sortButton,this._sortActionDescription),null===(D=this._ariaDescriber)||void 0===D||D.describe(this._sortButton,u)),this._sortActionDescription=u}_handleStateChanges(){this._rerenderSubscription=(0,M.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return a.\u0275fac=function(u){return new(u||a)(e.Y36(ie),e.Y36(e.sBO),e.Y36(de,8),e.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),e.Y36(R.tE),e.Y36(e.SBq),e.Y36(R.$s,8))},a.\u0275cmp=e.Xpm({type:a,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(u,_){1&u&&e.NdJ("click",function(){return _._handleClick()})("keydown",function(I){return _._handleKeydown(I)})("mouseenter",function(){return _._setIndicatorHintVisible(!0)})("mouseleave",function(){return _._setIndicatorHintVisible(!1)}),2&u&&(e.uIk("aria-sort",_._getAriaSortAttribute()),e.ekj("mat-sort-header-disabled",_._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[e.qOj],attrs:L,ngContentSelectors:A,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(u,_){1&u&&(e.F$t(),e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA(),e.YNc(3,O,6,6,"div",2),e.qZA()),2&u&&(e.ekj("mat-sort-header-sorted",_._isSorted())("mat-sort-header-position-before","before"==_.arrowPosition),e.uIk("tabindex",_._isDisabled()?null:0),e.xp6(3),e.Q6J("ngIf",_._renderArrow()))},directives:[s.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;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-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity: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}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[P.indicator,P.leftPointer,P.rightPointer,P.arrowOpacity,P.arrowPosition,P.allowChildren]},changeDetection:0}),a})(),i=(()=>{class a{}return a.\u0275fac=function(u){return new(u||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({providers:[ve],imports:[[s.ez,C.BQ]]}),a})()},5615:(Ve,Q,m)=>{"use strict";m.d(Q,{C0:()=>Y,VY:()=>N,Vq:()=>Fe,z9:()=>K,T5:()=>Oe,Ic:()=>Ne,fd:()=>ue});var e=m(7429),t=m(1555),v=m(9808),C=m(5e3),o=m(7423),M=m(508),l=m(5245),R=m(7579),s=m(727),L=m(5664),O=m(3900),A=m(4004),E=m(8675),P=m(2722),w=m(1884),Z=m(1777),j=m(226);function W(Pe,q){if(1&Pe&&C.GkF(0,8),2&Pe){const $=C.oxw();C.Q6J("ngTemplateOutlet",$.iconOverrides[$.state])("ngTemplateOutletContext",$._getIconContext())}}function ie(Pe,q){if(1&Pe&&(C.TgZ(0,"span"),C._uU(1),C.qZA()),2&Pe){const $=C.oxw(2);C.xp6(1),C.Oqu($._getDefaultTextForState($.state))}}function ee(Pe,q){if(1&Pe&&(C.TgZ(0,"span",13),C._uU(1),C.qZA()),2&Pe){const $=C.oxw(2);C.xp6(1),C.Oqu($._intl.completedLabel)}}function ve(Pe,q){if(1&Pe&&(C.TgZ(0,"span",13),C._uU(1),C.qZA()),2&Pe){const $=C.oxw(2);C.xp6(1),C.Oqu($._intl.editableLabel)}}function he(Pe,q){if(1&Pe&&(C.TgZ(0,"mat-icon"),C._uU(1),C.qZA()),2&Pe){const $=C.oxw(2);C.xp6(1),C.Oqu($._getDefaultTextForState($.state))}}function re(Pe,q){if(1&Pe&&(C.ynx(0,9),C.YNc(1,ie,2,1,"span",10),C.YNc(2,ee,2,1,"span",11),C.YNc(3,ve,2,1,"span",11),C.YNc(4,he,2,1,"mat-icon",12),C.BQk()),2&Pe){const $=C.oxw();C.Q6J("ngSwitch",$.state),C.xp6(1),C.Q6J("ngSwitchCase","number"),C.xp6(1),C.Q6J("ngIf","done"===$.state),C.xp6(1),C.Q6J("ngIf","edit"===$.state)}}function de(Pe,q){if(1&Pe&&(C.TgZ(0,"div",14),C.GkF(1,15),C.qZA()),2&Pe){const $=C.oxw();C.xp6(1),C.Q6J("ngTemplateOutlet",$._templateLabel().template)}}function le(Pe,q){if(1&Pe&&(C.TgZ(0,"div",14),C._uU(1),C.qZA()),2&Pe){const $=C.oxw();C.xp6(1),C.Oqu($.label)}}function se(Pe,q){if(1&Pe&&(C.TgZ(0,"div",16),C._uU(1),C.qZA()),2&Pe){const $=C.oxw();C.xp6(1),C.Oqu($._intl.optionalLabel)}}function y(Pe,q){if(1&Pe&&(C.TgZ(0,"div",17),C._uU(1),C.qZA()),2&Pe){const $=C.oxw();C.xp6(1),C.Oqu($.errorMessage)}}function i(Pe,q){}function a(Pe,q){if(1&Pe&&(C.Hsn(0),C.YNc(1,i,0,0,"ng-template",0)),2&Pe){const $=C.oxw();C.xp6(1),C.Q6J("cdkPortalOutlet",$._portal)}}const p=["*"];function u(Pe,q){1&Pe&&C._UZ(0,"div",9)}const _=function(Pe,q){return{step:Pe,i:q}};function D(Pe,q){if(1&Pe&&(C.ynx(0),C.GkF(1,7),C.YNc(2,u,1,0,"div",8),C.BQk()),2&Pe){const $=q.$implicit,ce=q.index,Me=q.last;C.oxw(2);const Ue=C.MAs(4);C.xp6(1),C.Q6J("ngTemplateOutlet",Ue)("ngTemplateOutletContext",C.WLB(3,_,$,ce)),C.xp6(1),C.Q6J("ngIf",!Me)}}function I(Pe,q){if(1&Pe){const $=C.EpF();C.TgZ(0,"div",10),C.NdJ("@horizontalStepTransition.done",function(Me){return C.CHM($),C.oxw(2)._animationDone.next(Me)}),C.GkF(1,11),C.qZA()}if(2&Pe){const $=q.$implicit,ce=q.index,Me=C.oxw(2);C.Q6J("@horizontalStepTransition",Me._getAnimationDirection(ce))("id",Me._getStepContentId(ce)),C.uIk("aria-labelledby",Me._getStepLabelId(ce))("aria-expanded",Me.selectedIndex===ce),C.xp6(1),C.Q6J("ngTemplateOutlet",$.content)}}function x(Pe,q){if(1&Pe&&(C.ynx(0),C.TgZ(1,"div",3),C.YNc(2,D,3,6,"ng-container",4),C.qZA(),C.TgZ(3,"div",5),C.YNc(4,I,2,5,"div",6),C.qZA(),C.BQk()),2&Pe){const $=C.oxw();C.xp6(2),C.Q6J("ngForOf",$.steps),C.xp6(2),C.Q6J("ngForOf",$.steps)}}function r(Pe,q){if(1&Pe){const $=C.EpF();C.TgZ(0,"div",13),C.GkF(1,7),C.TgZ(2,"div",14),C.TgZ(3,"div",15),C.NdJ("@verticalStepTransition.done",function(Me){return C.CHM($),C.oxw(2)._animationDone.next(Me)}),C.TgZ(4,"div",16),C.GkF(5,11),C.qZA(),C.qZA(),C.qZA(),C.qZA()}if(2&Pe){const $=q.$implicit,ce=q.index,Me=q.last,Ue=C.oxw(2),lt=C.MAs(4);C.xp6(1),C.Q6J("ngTemplateOutlet",lt)("ngTemplateOutletContext",C.WLB(9,_,$,ce)),C.xp6(1),C.ekj("mat-stepper-vertical-line",!Me),C.xp6(1),C.Q6J("@verticalStepTransition",Ue._getAnimationDirection(ce))("id",Ue._getStepContentId(ce)),C.uIk("aria-labelledby",Ue._getStepLabelId(ce))("aria-expanded",Ue.selectedIndex===ce),C.xp6(2),C.Q6J("ngTemplateOutlet",$.content)}}function b(Pe,q){if(1&Pe&&(C.ynx(0),C.YNc(1,r,6,12,"div",12),C.BQk()),2&Pe){const $=C.oxw();C.xp6(1),C.Q6J("ngForOf",$.steps)}}function U(Pe,q){if(1&Pe){const $=C.EpF();C.TgZ(0,"mat-step-header",17),C.NdJ("click",function(){return C.CHM($).step.select()})("keydown",function(Me){return C.CHM($),C.oxw()._onKeydown(Me)}),C.qZA()}if(2&Pe){const $=q.step,ce=q.i,Me=C.oxw();C.ekj("mat-horizontal-stepper-header","horizontal"===Me.orientation)("mat-vertical-stepper-header","vertical"===Me.orientation),C.Q6J("tabIndex",Me._getFocusIndex()===ce?0:-1)("id",Me._getStepLabelId(ce))("index",ce)("state",Me._getIndicatorType(ce,$.state))("label",$.stepLabel||$.label)("selected",Me.selectedIndex===ce)("active",Me._stepIsNavigable(ce,$))("optional",$.optional)("errorMessage",$.errorMessage)("iconOverrides",Me._iconOverrides)("disableRipple",Me.disableRipple||!Me._stepIsNavigable(ce,$))("color",$.color||Me.color),C.uIk("aria-posinset",ce+1)("aria-setsize",Me.steps.length)("aria-controls",Me._getStepContentId(ce))("aria-selected",Me.selectedIndex==ce)("aria-label",$.ariaLabel||null)("aria-labelledby",!$.ariaLabel&&$.ariaLabelledby?$.ariaLabelledby:null)("aria-disabled",!Me._stepIsNavigable(ce,$)||null)}}let N=(()=>{class Pe extends t.u6{}return Pe.\u0275fac=function(){let q;return function(ce){return(q||(q=C.n5z(Pe)))(ce||Pe)}}(),Pe.\u0275dir=C.lG2({type:Pe,selectors:[["","matStepLabel",""]],features:[C.qOj]}),Pe})(),z=(()=>{class Pe{constructor(){this.changes=new R.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return Pe.\u0275fac=function($){return new($||Pe)},Pe.\u0275prov=C.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();const xe={provide:z,deps:[[new C.FiY,new C.tp0,z]],useFactory:function be(Pe){return Pe||new z}},Re=(0,M.pj)(class extends t.KL{constructor(q){super(q)}},"primary");let ze=(()=>{class Pe extends Re{constructor($,ce,Me,Ue){super(Me),this._intl=$,this._focusMonitor=ce,this._intlSubscription=$.changes.subscribe(()=>Ue.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus($,ce){$?this._focusMonitor.focusVia(this._elementRef,$,ce):this._elementRef.nativeElement.focus(ce)}_stringLabel(){return this.label instanceof N?null:this.label}_templateLabel(){return this.label instanceof N?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState($){return"number"==$?`${this.index+1}`:"edit"==$?"create":"error"==$?"warning":$}}return Pe.\u0275fac=function($){return new($||Pe)(C.Y36(z),C.Y36(L.tE),C.Y36(C.SBq),C.Y36(C.sBO))},Pe.\u0275cmp=C.Xpm({type:Pe,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[C.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],[4,"ngSwitchDefault"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function($,ce){1&$&&(C._UZ(0,"div",0),C.TgZ(1,"div"),C.TgZ(2,"div",1),C.YNc(3,W,1,2,"ng-container",2),C.YNc(4,re,5,4,"ng-container",3),C.qZA(),C.qZA(),C.TgZ(5,"div",4),C.YNc(6,de,2,1,"div",5),C.YNc(7,le,2,1,"div",5),C.YNc(8,se,2,1,"div",6),C.YNc(9,y,2,1,"div",7),C.qZA()),2&$&&(C.Q6J("matRippleTrigger",ce._getHostElement())("matRippleDisabled",ce.disableRipple),C.xp6(1),C.Gre("mat-step-icon-state-",ce.state," mat-step-icon"),C.ekj("mat-step-icon-selected",ce.selected),C.xp6(1),C.Q6J("ngSwitch",!(!ce.iconOverrides||!ce.iconOverrides[ce.state])),C.xp6(1),C.Q6J("ngSwitchCase",!0),C.xp6(2),C.ekj("mat-step-label-active",ce.active)("mat-step-label-selected",ce.selected)("mat-step-label-error","error"==ce.state),C.xp6(1),C.Q6J("ngIf",ce._templateLabel()),C.xp6(1),C.Q6J("ngIf",ce._stringLabel()),C.xp6(1),C.Q6J("ngIf",ce.optional&&"error"!=ce.state),C.xp6(1),C.Q6J("ngIf","error"==ce.state))},directives:[M.wG,v.RF,v.n9,v.ED,v.O5,v.tP,l.Hw],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header.cdk-keyboard-focused,.cdk-high-contrast-active .mat-step-header.cdk-program-focused{outline:solid 3px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.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}.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}\n"],encapsulation:2,changeDetection:0}),Pe})();const Le={horizontalStepTransition:(0,Z.X$)("horizontalStepTransition",[(0,Z.SB)("previous",(0,Z.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,Z.SB)("current",(0,Z.oB)({transform:"none",visibility:"inherit"})),(0,Z.SB)("next",(0,Z.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,Z.eR)("* => *",(0,Z.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,Z.X$)("verticalStepTransition",[(0,Z.SB)("previous",(0,Z.oB)({height:"0px",visibility:"hidden"})),(0,Z.SB)("next",(0,Z.oB)({height:"0px",visibility:"hidden"})),(0,Z.SB)("current",(0,Z.oB)({height:"*",visibility:"inherit"})),(0,Z.eR)("* <=> current",(0,Z.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let K=(()=>{class Pe{constructor($){this.templateRef=$}}return Pe.\u0275fac=function($){return new($||Pe)(C.Y36(C.Rgc))},Pe.\u0275dir=C.lG2({type:Pe,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),Pe})(),we=(()=>{class Pe{constructor($){this._template=$}}return Pe.\u0275fac=function($){return new($||Pe)(C.Y36(C.Rgc))},Pe.\u0275dir=C.lG2({type:Pe,selectors:[["ng-template","matStepContent",""]]}),Pe})(),Y=(()=>{class Pe extends t.be{constructor($,ce,Me,Ue){super($,Ue),this._errorStateMatcher=ce,this._viewContainerRef=Me,this._isSelected=s.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,O.w)(()=>this._stepper.selectionChange.pipe((0,A.U)($=>$.selectedStep===this),(0,E.O)(this._stepper.selected===this)))).subscribe($=>{$&&this._lazyContent&&!this._portal&&(this._portal=new e.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState($,ce){return this._errorStateMatcher.isErrorState($,ce)||!!($&&$.invalid&&this.interacted)}}return Pe.\u0275fac=function($){return new($||Pe)(C.Y36((0,C.Gpc)(()=>Fe)),C.Y36(M.rD,4),C.Y36(C.s_b),C.Y36(t.gx,8))},Pe.\u0275cmp=C.Xpm({type:Pe,selectors:[["mat-step"]],contentQueries:function($,ce,Me){if(1&$&&(C.Suo(Me,N,5),C.Suo(Me,we,5)),2&$){let Ue;C.iGM(Ue=C.CRH())&&(ce.stepLabel=Ue.first),C.iGM(Ue=C.CRH())&&(ce._lazyContent=Ue.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[C._Bn([{provide:M.rD,useExisting:Pe},{provide:t.be,useExisting:Pe}]),C.qOj],ngContentSelectors:p,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function($,ce){1&$&&(C.F$t(),C.YNc(0,a,2,1,"ng-template"))},directives:[e.Pl],encapsulation:2,changeDetection:0}),Pe})(),ae=(()=>{class Pe extends t.B8{}return Pe.\u0275fac=function(){let q;return function(ce){return(q||(q=C.n5z(Pe)))(ce||Pe)}}(),Pe.\u0275dir=C.lG2({type:Pe,features:[C.qOj]}),Pe})(),Ge=(()=>{class Pe extends ae{}return Pe.\u0275fac=function(){let q;return function(ce){return(q||(q=C.n5z(Pe)))(ce||Pe)}}(),Pe.\u0275dir=C.lG2({type:Pe,selectors:[["mat-horizontal-stepper"]],features:[C.qOj]}),Pe})(),vt=(()=>{class Pe extends ae{}return Pe.\u0275fac=function(){let q;return function(ce){return(q||(q=C.n5z(Pe)))(ce||Pe)}}(),Pe.\u0275dir=C.lG2({type:Pe,selectors:[["mat-vertical-stepper"]],features:[C.qOj]}),Pe})(),Fe=(()=>{class Pe extends t.B8{constructor($,ce,Me,Ue){super($,ce,Me,Ue),this.steps=new C.n_E,this.animationDone=new C.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new R.x;const lt=Me.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===lt?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:$,templateRef:ce})=>this._iconOverrides[$]=ce),this.steps.changes.pipe((0,P.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,w.x)(($,ce)=>$.fromState===ce.fromState&&$.toState===ce.toState),(0,P.R)(this._destroyed)).subscribe($=>{"current"===$.toState&&this.animationDone.emit()})}_stepIsNavigable($,ce){return ce.completed||this.selectedIndex===$||!this.linear}}return Pe.\u0275fac=function($){return new($||Pe)(C.Y36(j.Is,8),C.Y36(C.sBO),C.Y36(C.SBq),C.Y36(v.K0))},Pe.\u0275cmp=C.Xpm({type:Pe,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function($,ce,Me){if(1&$&&(C.Suo(Me,Y,5),C.Suo(Me,K,5)),2&$){let Ue;C.iGM(Ue=C.CRH())&&(ce._steps=Ue),C.iGM(Ue=C.CRH())&&(ce._icons=Ue)}},viewQuery:function($,ce){if(1&$&&C.Gf(ze,5),2&$){let Me;C.iGM(Me=C.CRH())&&(ce._stepHeader=Me)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function($,ce){2&$&&(C.uIk("aria-orientation",ce.orientation),C.ekj("mat-stepper-horizontal","horizontal"===ce.orientation)("mat-stepper-vertical","vertical"===ce.orientation)("mat-stepper-label-position-end","horizontal"===ce.orientation&&"end"==ce.labelPosition)("mat-stepper-label-position-bottom","horizontal"===ce.orientation&&"bottom"==ce.labelPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[C._Bn([{provide:t.B8,useExisting:Pe},{provide:Ge,useExisting:Pe},{provide:vt,useExisting:Pe}]),C.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function($,ce){1&$&&(C.ynx(0,0),C.YNc(1,x,5,2,"ng-container",1),C.YNc(2,b,2,1,"ng-container",1),C.BQk(),C.YNc(3,U,1,23,"ng-template",null,2,C.W1O)),2&$&&(C.Q6J("ngSwitch",ce.orientation),C.xp6(1),C.Q6J("ngSwitchCase","horizontal"),C.xp6(1),C.Q6J("ngSwitchCase","vertical"))},directives:[v.RF,v.n9,v.sg,v.tP,v.O5,ze],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.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-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.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;height:72px;overflow:hidden;align-items:center;padding:0 24px}.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-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}.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-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[Le.horizontalStepTransition,Le.verticalStepTransition]},changeDetection:0}),Pe})(),Ne=(()=>{class Pe extends t.st{}return Pe.\u0275fac=function(){let q;return function(ce){return(q||(q=C.n5z(Pe)))(ce||Pe)}}(),Pe.\u0275dir=C.lG2({type:Pe,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function($,ce){2&$&&C.Ikx("type",ce.type)},inputs:{type:"type"},features:[C.qOj]}),Pe})(),ue=(()=>{class Pe extends t.po{}return Pe.\u0275fac=function(){let q;return function(ce){return(q||(q=C.n5z(Pe)))(ce||Pe)}}(),Pe.\u0275dir=C.lG2({type:Pe,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function($,ce){2&$&&C.Ikx("type",ce.type)},inputs:{type:"type"},features:[C.qOj]}),Pe})(),Oe=(()=>{class Pe{}return Pe.\u0275fac=function($){return new($||Pe)},Pe.\u0275mod=C.oAB({type:Pe}),Pe.\u0275inj=C.cJS({providers:[xe,M.rD],imports:[[M.BQ,v.ez,e.eL,o.ot,t.U5,l.Ps,M.si],M.BQ]}),Pe})()},2075:(Ve,Q,m)=>{"use strict";m.d(Q,{ev:()=>Be,Dz:()=>et,w1:()=>Jt,yh:()=>ke,mD:()=>Nt,Q2:()=>Bt,Ke:()=>st,ge:()=>ct,fO:()=>$t,XQ:()=>li,as:()=>at,Gk:()=>Rt,nj:()=>At,BZ:()=>De,by:()=>Xi,p0:()=>sn});var e=m(5e3),t=m(3191),v=m(449),C=m(9808),o=m(7579),M=m(457),l=m(1135),R=m(5191),s=m(9646),L=m(2722),O=m(5698),A=m(226),E=m(925),P=m(5303);const w=[[["caption"]],[["colgroup"],["col"]]],Z=["caption","colgroup, col"];function ie(Ke){return class extends Ke{constructor(..._t){super(..._t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(_t){const ye=this._sticky;this._sticky=(0,t.Ig)(_t),this._hasStickyChanged=ye!==this._sticky}hasStickyChanged(){const _t=this._hasStickyChanged;return this._hasStickyChanged=!1,_t}resetStickyChanged(){this._hasStickyChanged=!1}}}const ee=new e.OlP("CDK_TABLE");let he=(()=>{class Ke{constructor(ye){this.template=ye}}return Ke.\u0275fac=function(ye){return new(ye||Ke)(e.Y36(e.Rgc))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkCellDef",""]]}),Ke})(),re=(()=>{class Ke{constructor(ye){this.template=ye}}return Ke.\u0275fac=function(ye){return new(ye||Ke)(e.Y36(e.Rgc))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkHeaderCellDef",""]]}),Ke})(),de=(()=>{class Ke{constructor(ye){this.template=ye}}return Ke.\u0275fac=function(ye){return new(ye||Ke)(e.Y36(e.Rgc))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkFooterCellDef",""]]}),Ke})();class le{}const se=ie(le);let y=(()=>{class Ke extends se{constructor(ye){super(),this._table=ye,this._stickyEnd=!1}get name(){return this._name}set name(ye){this._setNameInput(ye)}get stickyEnd(){return this._stickyEnd}set stickyEnd(ye){const qe=this._stickyEnd;this._stickyEnd=(0,t.Ig)(ye),this._hasStickyChanged=qe!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(ye){ye&&(this._name=ye,this.cssClassFriendlyName=ye.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return Ke.\u0275fac=function(ye){return new(ye||Ke)(e.Y36(ee,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkColumnDef",""]],contentQueries:function(ye,qe,yt){if(1&ye&&(e.Suo(yt,he,5),e.Suo(yt,re,5),e.Suo(yt,de,5)),2&ye){let pe;e.iGM(pe=e.CRH())&&(qe.cell=pe.first),e.iGM(pe=e.CRH())&&(qe.headerCell=pe.first),e.iGM(pe=e.CRH())&&(qe.footerCell=pe.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[e._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ke}]),e.qOj]}),Ke})();class i{constructor(_t,ye){const qe=ye.nativeElement.classList;for(const yt of _t._columnCssClassName)qe.add(yt)}}let a=(()=>{class Ke extends i{constructor(ye,qe){super(ye,qe)}}return Ke.\u0275fac=function(ye){return new(ye||Ke)(e.Y36(y),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[e.qOj]}),Ke})(),p=(()=>{class Ke extends i{constructor(ye,qe){var yt;if(super(ye,qe),1===(null===(yt=ye._table)||void 0===yt?void 0:yt._elementRef.nativeElement.nodeType)){const pe=ye._table._elementRef.nativeElement.getAttribute("role");qe.nativeElement.setAttribute("role","grid"===pe||"treegrid"===pe?"gridcell":"cell")}}}return Ke.\u0275fac=function(ye){return new(ye||Ke)(e.Y36(y),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[e.qOj]}),Ke})(),u=(()=>{class Ke extends i{constructor(ye,qe){var yt;if(super(ye,qe),1===(null===(yt=ye._table)||void 0===yt?void 0:yt._elementRef.nativeElement.nodeType)){const pe=ye._table._elementRef.nativeElement.getAttribute("role");qe.nativeElement.setAttribute("role","grid"===pe||"treegrid"===pe?"gridcell":"cell")}}}return Ke.\u0275fac=function(ye){return new(ye||Ke)(e.Y36(y),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.qOj]}),Ke})();class _{constructor(){this.tasks=[],this.endTasks=[]}}const D=new e.OlP("_COALESCED_STYLE_SCHEDULER");let I=(()=>{class Ke{constructor(ye){this._ngZone=ye,this._currentSchedule=null,this._destroyed=new o.x}schedule(ye){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(ye)}scheduleEnd(ye){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(ye)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new _,this._getScheduleObservable().pipe((0,L.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const ye=this._currentSchedule;this._currentSchedule=new _;for(const qe of ye.tasks)qe();for(const qe of ye.endTasks)qe()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,M.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,O.q)(1))}}return Ke.\u0275fac=function(ye){return new(ye||Ke)(e.LFG(e.R0b))},Ke.\u0275prov=e.Yz7({token:Ke,factory:Ke.\u0275fac}),Ke})(),r=(()=>{class Ke{constructor(ye,qe){this.template=ye,this._differs=qe}ngOnChanges(ye){if(!this._columnsDiffer){const qe=ye.columns&&ye.columns.currentValue||[];this._columnsDiffer=this._differs.find(qe).create(),this._columnsDiffer.diff(qe)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(ye){return this instanceof N?ye.headerCell.template:this instanceof xe?ye.footerCell.template:ye.cell.template}}return Ke.\u0275fac=function(ye){return new(ye||Ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4))},Ke.\u0275dir=e.lG2({type:Ke,features:[e.TTD]}),Ke})();class b extends r{}const U=ie(b);let N=(()=>{class Ke extends U{constructor(ye,qe,yt){super(ye,qe),this._table=yt}ngOnChanges(ye){super.ngOnChanges(ye)}}return Ke.\u0275fac=function(ye){return new(ye||Ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(ee,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),Ke})();class z extends r{}const be=ie(z);let xe=(()=>{class Ke extends be{constructor(ye,qe,yt){super(ye,qe),this._table=yt}ngOnChanges(ye){super.ngOnChanges(ye)}}return Ke.\u0275fac=function(ye){return new(ye||Ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(ee,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),Ke})(),Re=(()=>{class Ke extends r{constructor(ye,qe,yt){super(ye,qe),this._table=yt}}return Ke.\u0275fac=function(ye){return new(ye||Ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(ee,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.qOj]}),Ke})(),ze=(()=>{class Ke{constructor(ye){this._viewContainer=ye,Ke.mostRecentCellOutlet=this}ngOnDestroy(){Ke.mostRecentCellOutlet===this&&(Ke.mostRecentCellOutlet=null)}}return Ke.mostRecentCellOutlet=null,Ke.\u0275fac=function(ye){return new(ye||Ke)(e.Y36(e.s_b))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkCellOutlet",""]]}),Ke})(),Le=(()=>{class Ke{}return Ke.\u0275fac=function(ye){return new(ye||Ke)},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ye,qe){1&ye&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),K=(()=>{class Ke{}return Ke.\u0275fac=function(ye){return new(ye||Ke)},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ye,qe){1&ye&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),we=(()=>{class Ke{}return Ke.\u0275fac=function(ye){return new(ye||Ke)},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ye,qe){1&ye&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),Y=(()=>{class Ke{constructor(ye){this.templateRef=ye,this._contentClassName="cdk-no-data-row"}}return Ke.\u0275fac=function(ye){return new(ye||Ke)(e.Y36(e.Rgc))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["ng-template","cdkNoDataRow",""]]}),Ke})();const ae=["top","bottom","left","right"];class Ge{constructor(_t,ye,qe,yt,pe=!0,Je=!0,St){this._isNativeHtmlTable=_t,this._stickCellCss=ye,this.direction=qe,this._coalescedStyleScheduler=yt,this._isBrowser=pe,this._needsPositionStickyOnElement=Je,this._positionListener=St,this._cachedCellWidths=[],this._borderCellCss={top:`${ye}-border-elem-top`,bottom:`${ye}-border-elem-bottom`,left:`${ye}-border-elem-left`,right:`${ye}-border-elem-right`}}clearStickyPositioning(_t,ye){const qe=[];for(const yt of _t)if(yt.nodeType===yt.ELEMENT_NODE){qe.push(yt);for(let pe=0;pe{for(const yt of qe)this._removeStickyStyle(yt,ye)})}updateStickyColumns(_t,ye,qe,yt=!0){if(!_t.length||!this._isBrowser||!ye.some(qi=>qi)&&!qe.some(qi=>qi))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const pe=_t[0],Je=pe.children.length,St=this._getCellWidths(pe,yt),kt=this._getStickyStartColumnPositions(St,ye),yi=this._getStickyEndColumnPositions(St,qe),Ni=ye.lastIndexOf(!0),Si=qe.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const qi="rtl"===this.direction,ot=qi?"right":"left",Kt=qi?"left":"right";for(const gt of _t)for(let Lt=0;Ltye[Lt]?gt:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Si?[]:St.slice(Si).map((gt,Lt)=>qe[Lt+Si]?gt:null).reverse()}))})}stickRows(_t,ye,qe){if(!this._isBrowser)return;const yt="bottom"===qe?_t.slice().reverse():_t,pe="bottom"===qe?ye.slice().reverse():ye,Je=[],St=[],kt=[];for(let Ni=0,Si=0;Ni{var Ni,Si;for(let qi=0;qi{ye.some(yt=>!yt)?this._removeStickyStyle(qe,["bottom"]):this._addStickyStyle(qe,"bottom",0,!1)})}_removeStickyStyle(_t,ye){for(const yt of ye)_t.style[yt]="",_t.classList.remove(this._borderCellCss[yt]);ae.some(yt=>-1===ye.indexOf(yt)&&_t.style[yt])?_t.style.zIndex=this._getCalculatedZIndex(_t):(_t.style.zIndex="",this._needsPositionStickyOnElement&&(_t.style.position=""),_t.classList.remove(this._stickCellCss))}_addStickyStyle(_t,ye,qe,yt){_t.classList.add(this._stickCellCss),yt&&_t.classList.add(this._borderCellCss[ye]),_t.style[ye]=`${qe}px`,_t.style.zIndex=this._getCalculatedZIndex(_t),this._needsPositionStickyOnElement&&(_t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(_t){const ye={top:100,bottom:10,left:1,right:1};let qe=0;for(const yt of ae)_t.style[yt]&&(qe+=ye[yt]);return qe?`${qe}`:""}_getCellWidths(_t,ye=!0){if(!ye&&this._cachedCellWidths.length)return this._cachedCellWidths;const qe=[],yt=_t.children;for(let pe=0;pe0;pe--)ye[pe]&&(qe[pe]=yt,yt+=_t[pe]);return qe}}const ce=new e.OlP("CDK_SPL");let Ue=(()=>{class Ke{constructor(ye,qe){this.viewContainer=ye,this.elementRef=qe}}return Ke.\u0275fac=function(ye){return new(ye||Ke)(e.Y36(e.s_b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","rowOutlet",""]]}),Ke})(),lt=(()=>{class Ke{constructor(ye,qe){this.viewContainer=ye,this.elementRef=qe}}return Ke.\u0275fac=function(ye){return new(ye||Ke)(e.Y36(e.s_b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","headerRowOutlet",""]]}),Ke})(),nt=(()=>{class Ke{constructor(ye,qe){this.viewContainer=ye,this.elementRef=qe}}return Ke.\u0275fac=function(ye){return new(ye||Ke)(e.Y36(e.s_b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","footerRowOutlet",""]]}),Ke})(),ft=(()=>{class Ke{constructor(ye,qe){this.viewContainer=ye,this.elementRef=qe}}return Ke.\u0275fac=function(ye){return new(ye||Ke)(e.Y36(e.s_b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","noDataRowOutlet",""]]}),Ke})(),Mt=(()=>{class Ke{constructor(ye,qe,yt,pe,Je,St,kt,yi,Ni,Si,qi){this._differs=ye,this._changeDetectorRef=qe,this._elementRef=yt,this._dir=Je,this._platform=kt,this._viewRepeater=yi,this._coalescedStyleScheduler=Ni,this._viewportRuler=Si,this._stickyPositioningListener=qi,this._onDestroy=new o.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new e.vpe,this.viewChange=new l.X({start:0,end:Number.MAX_VALUE}),pe||this._elementRef.nativeElement.setAttribute("role","table"),this._document=St,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(ye){this._trackByFn=ye}get dataSource(){return this._dataSource}set dataSource(ye){this._dataSource!==ye&&this._switchDataSource(ye)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(ye){this._multiTemplateDataRows=(0,t.Ig)(ye),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(ye){this._fixedLayout=(0,t.Ig)(ye),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((ye,qe)=>this.trackBy?this.trackBy(qe.dataIndex,qe.data):qe),this._viewportRuler.change().pipe((0,L.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const qe=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||qe,this._forceRecalculateCellWidths=qe,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()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),(0,v.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const ye=this._dataDiffer.diff(this._renderRows);if(!ye)return this._updateNoDataRow(),void this.contentChanged.next();const qe=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(ye,qe,(yt,pe,Je)=>this._getEmbeddedViewArgs(yt.item,Je),yt=>yt.item.data,yt=>{1===yt.operation&&yt.context&&this._renderCellTemplateForItem(yt.record.item.rowDef,yt.context)}),this._updateRowIndexContext(),ye.forEachIdentityChange(yt=>{qe.get(yt.currentIndex).context.$implicit=yt.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(ye){this._customColumnDefs.add(ye)}removeColumnDef(ye){this._customColumnDefs.delete(ye)}addRowDef(ye){this._customRowDefs.add(ye)}removeRowDef(ye){this._customRowDefs.delete(ye)}addHeaderRowDef(ye){this._customHeaderRowDefs.add(ye),this._headerRowDefChanged=!0}removeHeaderRowDef(ye){this._customHeaderRowDefs.delete(ye),this._headerRowDefChanged=!0}addFooterRowDef(ye){this._customFooterRowDefs.add(ye),this._footerRowDefChanged=!0}removeFooterRowDef(ye){this._customFooterRowDefs.delete(ye),this._footerRowDefChanged=!0}setNoDataRow(ye){this._customNoDataRow=ye}updateStickyHeaderRowStyles(){const ye=this._getRenderedRows(this._headerRowOutlet),yt=this._elementRef.nativeElement.querySelector("thead");yt&&(yt.style.display=ye.length?"":"none");const pe=this._headerRowDefs.map(Je=>Je.sticky);this._stickyStyler.clearStickyPositioning(ye,["top"]),this._stickyStyler.stickRows(ye,pe,"top"),this._headerRowDefs.forEach(Je=>Je.resetStickyChanged())}updateStickyFooterRowStyles(){const ye=this._getRenderedRows(this._footerRowOutlet),yt=this._elementRef.nativeElement.querySelector("tfoot");yt&&(yt.style.display=ye.length?"":"none");const pe=this._footerRowDefs.map(Je=>Je.sticky);this._stickyStyler.clearStickyPositioning(ye,["bottom"]),this._stickyStyler.stickRows(ye,pe,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,pe),this._footerRowDefs.forEach(Je=>Je.resetStickyChanged())}updateStickyColumnStyles(){const ye=this._getRenderedRows(this._headerRowOutlet),qe=this._getRenderedRows(this._rowOutlet),yt=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...ye,...qe,...yt],["left","right"]),this._stickyColumnStylesNeedReset=!1),ye.forEach((pe,Je)=>{this._addStickyColumnStyles([pe],this._headerRowDefs[Je])}),this._rowDefs.forEach(pe=>{const Je=[];for(let St=0;St{this._addStickyColumnStyles([pe],this._footerRowDefs[Je])}),Array.from(this._columnDefsByName.values()).forEach(pe=>pe.resetStickyChanged())}_getAllRenderRows(){const ye=[],qe=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let yt=0;yt{const St=yt&&yt.has(Je)?yt.get(Je):[];if(St.length){const kt=St.shift();return kt.dataIndex=qe,kt}return{data:ye,rowDef:Je,dataIndex:qe}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Zt(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(qe=>{this._columnDefsByName.has(qe.name),this._columnDefsByName.set(qe.name,qe)})}_cacheRowDefs(){this._headerRowDefs=Zt(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Zt(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Zt(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const ye=this._rowDefs.filter(qe=>!qe.when);this._defaultRowDef=ye[0]}_renderUpdatedColumns(){const ye=(Je,St)=>Je||!!St.getColumnsDiff(),qe=this._rowDefs.reduce(ye,!1);qe&&this._forceRenderDataRows();const yt=this._headerRowDefs.reduce(ye,!1);yt&&this._forceRenderHeaderRows();const pe=this._footerRowDefs.reduce(ye,!1);return pe&&this._forceRenderFooterRows(),qe||yt||pe}_switchDataSource(ye){this._data=[],(0,v.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),ye||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=ye}_observeRenderChanges(){if(!this.dataSource)return;let ye;(0,v.Z9)(this.dataSource)?ye=this.dataSource.connect(this):(0,R.b)(this.dataSource)?ye=this.dataSource:Array.isArray(this.dataSource)&&(ye=(0,s.of)(this.dataSource)),this._renderChangeSubscription=ye.pipe((0,L.R)(this._onDestroy)).subscribe(qe=>{this._data=qe||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((ye,qe)=>this._renderRow(this._headerRowOutlet,ye,qe)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((ye,qe)=>this._renderRow(this._footerRowOutlet,ye,qe)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(ye,qe){const yt=Array.from(qe.columns||[]).map(St=>this._columnDefsByName.get(St)),pe=yt.map(St=>St.sticky),Je=yt.map(St=>St.stickyEnd);this._stickyStyler.updateStickyColumns(ye,pe,Je,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(ye){const qe=[];for(let yt=0;yt!pe.when||pe.when(qe,ye));else{let pe=this._rowDefs.find(Je=>Je.when&&Je.when(qe,ye))||this._defaultRowDef;pe&&yt.push(pe)}return yt}_getEmbeddedViewArgs(ye,qe){return{templateRef:ye.rowDef.template,context:{$implicit:ye.data},index:qe}}_renderRow(ye,qe,yt,pe={}){const Je=ye.viewContainer.createEmbeddedView(qe.template,pe,yt);return this._renderCellTemplateForItem(qe,pe),Je}_renderCellTemplateForItem(ye,qe){for(let yt of this._getCellTemplates(ye))ze.mostRecentCellOutlet&&ze.mostRecentCellOutlet._viewContainer.createEmbeddedView(yt,qe);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const ye=this._rowOutlet.viewContainer;for(let qe=0,yt=ye.length;qe{const yt=this._columnDefsByName.get(qe);return ye.extractCellTemplate(yt)}):[]}_applyNativeTableSections(){const ye=this._document.createDocumentFragment(),qe=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const yt of qe){const pe=this._document.createElement(yt.tag);pe.setAttribute("role","rowgroup");for(const Je of yt.outlets)pe.appendChild(Je.elementRef.nativeElement);ye.appendChild(pe)}this._elementRef.nativeElement.appendChild(ye)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const ye=(qe,yt)=>qe||yt.hasStickyChanged();this._headerRowDefs.reduce(ye,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(ye,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(ye,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Ge(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,s.of)()).pipe((0,L.R)(this._onDestroy)).subscribe(qe=>{this._stickyStyler.direction=qe,this.updateStickyColumnStyles()})}_getOwnDefs(ye){return ye.filter(qe=>!qe._table||qe._table===this)}_updateNoDataRow(){const ye=this._customNoDataRow||this._noDataRow;if(!ye)return;const qe=0===this._rowOutlet.viewContainer.length;if(qe===this._isShowingNoDataRow)return;const yt=this._noDataRowOutlet.viewContainer;if(qe){const pe=yt.createEmbeddedView(ye.templateRef),Je=pe.rootNodes[0];1===pe.rootNodes.length&&(null==Je?void 0:Je.nodeType)===this._document.ELEMENT_NODE&&(Je.setAttribute("role","row"),Je.classList.add(ye._contentClassName))}else yt.clear();this._isShowingNoDataRow=qe}}return Ke.\u0275fac=function(ye){return new(ye||Ke)(e.Y36(e.ZZ4),e.Y36(e.sBO),e.Y36(e.SBq),e.$8M("role"),e.Y36(A.Is,8),e.Y36(C.K0),e.Y36(E.t4),e.Y36(v.k),e.Y36(D),e.Y36(P.rL),e.Y36(ce,12))},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(ye,qe,yt){if(1&ye&&(e.Suo(yt,Y,5),e.Suo(yt,y,5),e.Suo(yt,Re,5),e.Suo(yt,N,5),e.Suo(yt,xe,5)),2&ye){let pe;e.iGM(pe=e.CRH())&&(qe._noDataRow=pe.first),e.iGM(pe=e.CRH())&&(qe._contentColumnDefs=pe),e.iGM(pe=e.CRH())&&(qe._contentRowDefs=pe),e.iGM(pe=e.CRH())&&(qe._contentHeaderRowDefs=pe),e.iGM(pe=e.CRH())&&(qe._contentFooterRowDefs=pe)}},viewQuery:function(ye,qe){if(1&ye&&(e.Gf(Ue,7),e.Gf(lt,7),e.Gf(nt,7),e.Gf(ft,7)),2&ye){let yt;e.iGM(yt=e.CRH())&&(qe._rowOutlet=yt.first),e.iGM(yt=e.CRH())&&(qe._headerRowOutlet=yt.first),e.iGM(yt=e.CRH())&&(qe._footerRowOutlet=yt.first),e.iGM(yt=e.CRH())&&(qe._noDataRowOutlet=yt.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(ye,qe){2&ye&&e.ekj("cdk-table-fixed-layout",qe.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[e._Bn([{provide:ee,useExisting:Ke},{provide:v.k,useClass:v.yy},{provide:D,useClass:I},{provide:ce,useValue:null}])],ngContentSelectors:Z,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ye,qe){1&ye&&(e.F$t(w),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0),e.GkF(3,1),e.GkF(4,2),e.GkF(5,3))},directives:[lt,Ue,ft,nt],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),Ke})();function Zt(Ke,_t){return Ke.concat(Array.from(_t))}let Ii=(()=>{class Ke{}return Ke.\u0275fac=function(ye){return new(ye||Ke)},Ke.\u0275mod=e.oAB({type:Ke}),Ke.\u0275inj=e.cJS({imports:[[P.Cl]]}),Ke})();var jt=m(508),ei=m(6451),ki=m(9841),ai=m(4004);const hi=[[["caption"]],[["colgroup"],["col"]]],Ze=["caption","colgroup, col"];let De=(()=>{class Ke extends Mt{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(ye,qe){2&ye&&e.ekj("mat-table-fixed-layout",qe.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:v.k,useClass:v.yy},{provide:Mt,useExisting:Ke},{provide:ee,useExisting:Ke},{provide:D,useClass:I},{provide:ce,useValue:null}]),e.qOj],ngContentSelectors:Ze,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ye,qe){1&ye&&(e.F$t(hi),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0),e.GkF(3,1),e.GkF(4,2),e.GkF(5,3))},directives:[lt,Ue,ft,nt],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}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-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}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}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),Ke})(),et=(()=>{class Ke extends he{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:he,useExisting:Ke}]),e.qOj]}),Ke})(),$t=(()=>{class Ke extends re{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:re,useExisting:Ke}]),e.qOj]}),Ke})(),Nt=(()=>{class Ke extends de{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matFooterCellDef",""]],features:[e._Bn([{provide:de,useExisting:Ke}]),e.qOj]}),Ke})(),Jt=(()=>{class Ke extends y{get name(){return this._name}set name(ye){this._setNameInput(ye)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:y,useExisting:Ke},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ke}]),e.qOj]}),Ke})(),ct=(()=>{class Ke extends a{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[e.qOj]}),Ke})(),ke=(()=>{class Ke extends p{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[e.qOj]}),Ke})(),Be=(()=>{class Ke extends u{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.qOj]}),Ke})(),at=(()=>{class Ke extends N{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:N,useExisting:Ke}]),e.qOj]}),Ke})(),st=(()=>{class Ke extends xe{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[e._Bn([{provide:xe,useExisting:Ke}]),e.qOj]}),Ke})(),At=(()=>{class Ke extends Re{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:Re,useExisting:Ke}]),e.qOj]}),Ke})(),li=(()=>{class Ke extends Le{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:Le,useExisting:Ke}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ye,qe){1&ye&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),Bt=(()=>{class Ke extends K{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[e._Bn([{provide:K,useExisting:Ke}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ye,qe){1&ye&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),Rt=(()=>{class Ke extends we{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[e._Bn([{provide:we,useExisting:Ke}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ye,qe){1&ye&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),sn=(()=>{class Ke{}return Ke.\u0275fac=function(ye){return new(ye||Ke)},Ke.\u0275mod=e.oAB({type:Ke}),Ke.\u0275inj=e.cJS({imports:[[Ii,jt.BQ],jt.BQ]}),Ke})();class Di extends v.o2{constructor(_t=[]){super(),this._renderData=new l.X([]),this._filter=new l.X(""),this._internalPageChanges=new o.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(ye,qe)=>{const yt=ye[qe];if((0,t.t6)(yt)){const pe=Number(yt);return pe<9007199254740991?pe:yt}return yt},this.sortData=(ye,qe)=>{const yt=qe.active,pe=qe.direction;return yt&&""!=pe?ye.sort((Je,St)=>{let kt=this.sortingDataAccessor(Je,yt),yi=this.sortingDataAccessor(St,yt);const Ni=typeof kt,Si=typeof yi;Ni!==Si&&("number"===Ni&&(kt+=""),"number"===Si&&(yi+=""));let qi=0;return null!=kt&&null!=yi?kt>yi?qi=1:kt{const yt=Object.keys(ye).reduce((Je,St)=>Je+ye[St]+"\u25ec","").toLowerCase(),pe=qe.trim().toLowerCase();return-1!=yt.indexOf(pe)},this._data=new l.X(_t),this._updateChangeSubscription()}get data(){return this._data.value}set data(_t){this._data.next(_t),this._renderChangesSubscription||this._filterData(_t)}get filter(){return this._filter.value}set filter(_t){this._filter.next(_t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(_t){this._sort=_t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(_t){this._paginator=_t,this._updateChangeSubscription()}_updateChangeSubscription(){var _t;const ye=this._sort?(0,ei.T)(this._sort.sortChange,this._sort.initialized):(0,s.of)(null),qe=this._paginator?(0,ei.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,s.of)(null),pe=(0,ki.a)([this._data,this._filter]).pipe((0,ai.U)(([kt])=>this._filterData(kt))),Je=(0,ki.a)([pe,ye]).pipe((0,ai.U)(([kt])=>this._orderData(kt))),St=(0,ki.a)([Je,qe]).pipe((0,ai.U)(([kt])=>this._pageData(kt)));null===(_t=this._renderChangesSubscription)||void 0===_t||_t.unsubscribe(),this._renderChangesSubscription=St.subscribe(kt=>this._renderData.next(kt))}_filterData(_t){return this.filteredData=null==this.filter||""===this.filter?_t:_t.filter(ye=>this.filterPredicate(ye,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(_t){return this.sort?this.sortData(_t.slice(),this.sort):_t}_pageData(_t){if(!this.paginator)return _t;const ye=this.paginator.pageIndex*this.paginator.pageSize;return _t.slice(ye,ye+this.paginator.pageSize)}_updatePaginator(_t){Promise.resolve().then(()=>{const ye=this.paginator;if(ye&&(ye.length=_t,ye.pageIndex>0)){const qe=Math.ceil(ye.length/ye.pageSize)-1||0,yt=Math.min(ye.pageIndex,qe);yt!==ye.pageIndex&&(ye.pageIndex=yt,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var _t;null===(_t=this._renderChangesSubscription)||void 0===_t||_t.unsubscribe(),this._renderChangesSubscription=null}}class Xi extends Di{}},3251:(Ve,Q,m)=>{"use strict";m.d(Q,{uX:()=>vt,SP:()=>Vt,uD:()=>Y,Nj:()=>ai,BU:()=>jt,Nh:()=>hi});var e=m(5664),t=m(7144),v=m(7429),C=m(9808),o=m(5e3),M=m(508),l=m(6360),R=m(7579),s=m(727),L=m(4968),O=m(9646),A=m(6451),E=m(2805),P=m(1777),w=m(8675),Z=m(1884),j=m(2722),W=m(226),ie=m(3191),ee=m(1159),ve=m(925),he=m(5303);function re(Ze,Ee){1&Ze&&o.Hsn(0)}const de=["*"];function le(Ze,Ee){}const se=function(Ze){return{animationDuration:Ze}},y=function(Ze,Ee){return{value:Ze,params:Ee}},i=["tabListContainer"],a=["tabList"],p=["tabListInner"],u=["nextPaginator"],_=["previousPaginator"],D=["tabBodyWrapper"],I=["tabHeader"];function x(Ze,Ee){}function r(Ze,Ee){if(1&Ze&&o.YNc(0,x,0,0,"ng-template",9),2&Ze){const G=o.oxw().$implicit;o.Q6J("cdkPortalOutlet",G.templateLabel)}}function b(Ze,Ee){if(1&Ze&&o._uU(0),2&Ze){const G=o.oxw().$implicit;o.Oqu(G.textLabel)}}function U(Ze,Ee){if(1&Ze){const G=o.EpF();o.TgZ(0,"div",6),o.NdJ("click",function(){const De=o.CHM(G),et=De.$implicit,$t=De.index,Nt=o.oxw(),Jt=o.MAs(1);return Nt._handleClick(et,Jt,$t)})("cdkFocusChange",function(De){const $t=o.CHM(G).index;return o.oxw()._tabFocusChanged(De,$t)}),o.TgZ(1,"div",7),o.YNc(2,r,1,1,"ng-template",8),o.YNc(3,b,1,1,"ng-template",8),o.qZA(),o.qZA()}if(2&Ze){const G=Ee.$implicit,ge=Ee.index,De=o.oxw();o.ekj("mat-tab-label-active",De.selectedIndex==ge),o.Q6J("id",De._getTabLabelId(ge))("disabled",G.disabled)("matRippleDisabled",G.disabled||De.disableRipple),o.uIk("tabIndex",De._getTabIndex(G,ge))("aria-posinset",ge+1)("aria-setsize",De._tabs.length)("aria-controls",De._getTabContentId(ge))("aria-selected",De.selectedIndex==ge)("aria-label",G.ariaLabel||null)("aria-labelledby",!G.ariaLabel&&G.ariaLabelledby?G.ariaLabelledby:null),o.xp6(2),o.Q6J("ngIf",G.templateLabel),o.xp6(1),o.Q6J("ngIf",!G.templateLabel)}}function N(Ze,Ee){if(1&Ze){const G=o.EpF();o.TgZ(0,"mat-tab-body",10),o.NdJ("_onCentered",function(){return o.CHM(G),o.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(De){return o.CHM(G),o.oxw()._setTabBodyWrapperHeight(De)}),o.qZA()}if(2&Ze){const G=Ee.$implicit,ge=Ee.index,De=o.oxw();o.ekj("mat-tab-body-active",De.selectedIndex===ge),o.Q6J("id",De._getTabContentId(ge))("content",G.content)("position",G.position)("origin",G.origin)("animationDuration",De.animationDuration),o.uIk("tabindex",null!=De.contentTabIndex&&De.selectedIndex===ge?De.contentTabIndex:null)("aria-labelledby",De._getTabLabelId(ge))}}const z=["mat-tab-nav-bar",""],be=new o.OlP("MatInkBarPositioner",{providedIn:"root",factory:function xe(){return Ee=>({left:Ee?(Ee.offsetLeft||0)+"px":"0",width:Ee?(Ee.offsetWidth||0)+"px":"0"})}});let Re=(()=>{class Ze{constructor(G,ge,De,et){this._elementRef=G,this._ngZone=ge,this._inkBarPositioner=De,this._animationMode=et}alignToElement(G){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(G))}):this._setStyles(G)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(G){const ge=this._inkBarPositioner(G),De=this._elementRef.nativeElement;De.style.left=ge.left,De.style.width=ge.width}}return Ze.\u0275fac=function(G){return new(G||Ze)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(be),o.Y36(l.Qb,8))},Ze.\u0275dir=o.lG2({type:Ze,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(G,ge){2&G&&o.ekj("_mat-animation-noopable","NoopAnimations"===ge._animationMode)}}),Ze})();const ze=new o.OlP("MatTabContent"),K=new o.OlP("MatTabLabel"),we=new o.OlP("MAT_TAB");let Y=(()=>{class Ze extends v.ig{constructor(G,ge,De){super(G,ge),this._closestTab=De}}return Ze.\u0275fac=function(G){return new(G||Ze)(o.Y36(o.Rgc),o.Y36(o.s_b),o.Y36(we,8))},Ze.\u0275dir=o.lG2({type:Ze,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[o._Bn([{provide:K,useExisting:Ze}]),o.qOj]}),Ze})();const ae=(0,M.Id)(class{}),Ge=new o.OlP("MAT_TAB_GROUP");let vt=(()=>{class Ze extends ae{constructor(G,ge){super(),this._viewContainerRef=G,this._closestTabGroup=ge,this.textLabel="",this._contentPortal=null,this._stateChanges=new R.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(G){this._setTemplateLabelInput(G)}get content(){return this._contentPortal}ngOnChanges(G){(G.hasOwnProperty("textLabel")||G.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new v.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(G){G&&G._closestTab===this&&(this._templateLabel=G)}}return Ze.\u0275fac=function(G){return new(G||Ze)(o.Y36(o.s_b),o.Y36(Ge,8))},Ze.\u0275cmp=o.Xpm({type:Ze,selectors:[["mat-tab"]],contentQueries:function(G,ge,De){if(1&G&&(o.Suo(De,K,5),o.Suo(De,ze,7,o.Rgc)),2&G){let et;o.iGM(et=o.CRH())&&(ge.templateLabel=et.first),o.iGM(et=o.CRH())&&(ge._explicitContent=et.first)}},viewQuery:function(G,ge){if(1&G&&o.Gf(o.Rgc,7),2&G){let De;o.iGM(De=o.CRH())&&(ge._implicitContent=De.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[o._Bn([{provide:we,useExisting:Ze}]),o.qOj,o.TTD],ngContentSelectors:de,decls:1,vars:0,template:function(G,ge){1&G&&(o.F$t(),o.YNc(0,re,1,0,"ng-template"))},encapsulation:2}),Ze})();const Fe={translateTab:(0,P.X$)("translateTab",[(0,P.SB)("center, void, left-origin-center, right-origin-center",(0,P.oB)({transform:"none"})),(0,P.SB)("left",(0,P.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,P.SB)("right",(0,P.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,P.eR)("* => left, * => right, left => center, right => center",(0,P.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,P.eR)("void => left-origin-center",[(0,P.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,P.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,P.eR)("void => right-origin-center",[(0,P.oB)({transform:"translate3d(100%, 0, 0)"}),(0,P.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Ne=(()=>{class Ze extends v.Pl{constructor(G,ge,De,et){super(G,ge,et),this._host=De,this._centeringSub=s.w0.EMPTY,this._leavingSub=s.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,w.O)(this._host._isCenterPosition(this._host._position))).subscribe(G=>{G&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return Ze.\u0275fac=function(G){return new(G||Ze)(o.Y36(o._Vd),o.Y36(o.s_b),o.Y36((0,o.Gpc)(()=>Oe)),o.Y36(C.K0))},Ze.\u0275dir=o.lG2({type:Ze,selectors:[["","matTabBodyHost",""]],features:[o.qOj]}),Ze})(),ue=(()=>{class Ze{constructor(G,ge,De){this._elementRef=G,this._dir=ge,this._dirChangeSubscription=s.w0.EMPTY,this._translateTabComplete=new R.x,this._onCentering=new o.vpe,this._beforeCentering=new o.vpe,this._afterLeavingCenter=new o.vpe,this._onCentered=new o.vpe(!0),this.animationDuration="500ms",ge&&(this._dirChangeSubscription=ge.change.subscribe(et=>{this._computePositionAnimationState(et),De.markForCheck()})),this._translateTabComplete.pipe((0,Z.x)((et,$t)=>et.fromState===$t.fromState&&et.toState===$t.toState)).subscribe(et=>{this._isCenterPosition(et.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(et.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(G){this._positionIndex=G,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(G){const ge=this._isCenterPosition(G.toState);this._beforeCentering.emit(ge),ge&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(G){return"center"==G||"left-origin-center"==G||"right-origin-center"==G}_computePositionAnimationState(G=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==G?"left":"right":this._positionIndex>0?"ltr"==G?"right":"left":"center"}_computePositionFromOrigin(G){const ge=this._getLayoutDirection();return"ltr"==ge&&G<=0||"rtl"==ge&&G>0?"left-origin-center":"right-origin-center"}}return Ze.\u0275fac=function(G){return new(G||Ze)(o.Y36(o.SBq),o.Y36(W.Is,8),o.Y36(o.sBO))},Ze.\u0275dir=o.lG2({type:Ze,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Ze})(),Oe=(()=>{class Ze extends ue{constructor(G,ge,De){super(G,ge,De)}}return Ze.\u0275fac=function(G){return new(G||Ze)(o.Y36(o.SBq),o.Y36(W.Is,8),o.Y36(o.sBO))},Ze.\u0275cmp=o.Xpm({type:Ze,selectors:[["mat-tab-body"]],viewQuery:function(G,ge){if(1&G&&o.Gf(v.Pl,5),2&G){let De;o.iGM(De=o.CRH())&&(ge._portalHost=De.first)}},hostAttrs:[1,"mat-tab-body"],features:[o.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(G,ge){1&G&&(o.TgZ(0,"div",0,1),o.NdJ("@translateTab.start",function(et){return ge._onTranslateTabStarted(et)})("@translateTab.done",function(et){return ge._translateTabComplete.next(et)}),o.YNc(2,le,0,0,"ng-template",2),o.qZA()),2&G&&o.Q6J("@translateTab",o.WLB(3,y,ge._position,o.VKq(1,se,ge.animationDuration)))},directives:[Ne],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Fe.translateTab]}}),Ze})();const Pe=new o.OlP("MAT_TABS_CONFIG"),q=(0,M.Id)(class{});let $=(()=>{class Ze extends q{constructor(G){super(),this.elementRef=G}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Ze.\u0275fac=function(G){return new(G||Ze)(o.Y36(o.SBq))},Ze.\u0275dir=o.lG2({type:Ze,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(G,ge){2&G&&(o.uIk("aria-disabled",!!ge.disabled),o.ekj("mat-tab-disabled",ge.disabled))},inputs:{disabled:"disabled"},features:[o.qOj]}),Ze})();const ce=(0,ve.i$)({passive:!0});let nt=(()=>{class Ze{constructor(G,ge,De,et,$t,Nt,Jt){this._elementRef=G,this._changeDetectorRef=ge,this._viewportRuler=De,this._dir=et,this._ngZone=$t,this._platform=Nt,this._animationMode=Jt,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new R.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new R.x,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new o.vpe,this.indexFocused=new o.vpe,$t.runOutsideAngular(()=>{(0,L.R)(G.nativeElement,"mouseleave").pipe((0,j.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(G){G=(0,ie.su)(G),this._selectedIndex!=G&&(this._selectedIndexChanged=!0,this._selectedIndex=G,this._keyManager&&this._keyManager.updateActiveItem(G))}ngAfterViewInit(){(0,L.R)(this._previousPaginator.nativeElement,"touchstart",ce).pipe((0,j.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,L.R)(this._nextPaginator.nativeElement,"touchstart",ce).pipe((0,j.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const G=this._dir?this._dir.change:(0,O.of)("ltr"),ge=this._viewportRuler.change(150),De=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new e.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(De):De(),(0,A.T)(G,ge,this._items.changes).pipe((0,j.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(De)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,j.R)(this._destroyed)).subscribe(et=>{this.indexFocused.emit(et),this._setTabFocus(et)})}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._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(G){if(!(0,ee.Vb)(G))switch(G.keyCode){case ee.K5:case ee.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(G));break;default:this._keyManager.onKeydown(G)}}_onContentChanges(){const G=this._elementRef.nativeElement.textContent;G!==this._currentTextContent&&(this._currentTextContent=G||"",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(G){!this._isValidIndex(G)||this.focusIndex===G||!this._keyManager||this._keyManager.setActiveItem(G)}_isValidIndex(G){if(!this._items)return!0;const ge=this._items?this._items.toArray()[G]:null;return!!ge&&!ge.disabled}_setTabFocus(G){if(this._showPaginationControls&&this._scrollToLabel(G),this._items&&this._items.length){this._items.toArray()[G].focus();const ge=this._tabListContainer.nativeElement;ge.scrollLeft="ltr"==this._getLayoutDirection()?0:ge.scrollWidth-ge.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const G=this.scrollDistance,ge="ltr"===this._getLayoutDirection()?-G:G;this._tabList.nativeElement.style.transform=`translateX(${Math.round(ge)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(G){this._scrollTo(G)}_scrollHeader(G){return this._scrollTo(this._scrollDistance+("before"==G?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(G){this._stopInterval(),this._scrollHeader(G)}_scrollToLabel(G){if(this.disablePagination)return;const ge=this._items?this._items.toArray()[G]:null;if(!ge)return;const De=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:et,offsetWidth:$t}=ge.elementRef.nativeElement;let Nt,Jt;"ltr"==this._getLayoutDirection()?(Nt=et,Jt=Nt+$t):(Jt=this._tabListInner.nativeElement.offsetWidth-et,Nt=Jt-$t);const ct=this.scrollDistance,ke=this.scrollDistance+De;Ntke&&(this.scrollDistance+=Jt-ke+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const G=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;G||(this.scrollDistance=0),G!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=G}}_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 G=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,ge=G?G.elementRef.nativeElement:null;ge?this._inkBar.alignToElement(ge):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(G,ge){ge&&null!=ge.button&&0!==ge.button||(this._stopInterval(),(0,E.H)(650,100).pipe((0,j.R)((0,A.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:De,distance:et}=this._scrollHeader(G);(0===et||et>=De)&&this._stopInterval()}))}_scrollTo(G){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const ge=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(ge,G)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:ge,distance:this._scrollDistance}}}return Ze.\u0275fac=function(G){return new(G||Ze)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(he.rL),o.Y36(W.Is,8),o.Y36(o.R0b),o.Y36(ve.t4),o.Y36(l.Qb,8))},Ze.\u0275dir=o.lG2({type:Ze,inputs:{disablePagination:"disablePagination"}}),Ze})(),ft=(()=>{class Ze extends nt{constructor(G,ge,De,et,$t,Nt,Jt){super(G,ge,De,et,$t,Nt,Jt),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(G){this._disableRipple=(0,ie.Ig)(G)}_itemSelected(G){G.preventDefault()}}return Ze.\u0275fac=function(G){return new(G||Ze)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(he.rL),o.Y36(W.Is,8),o.Y36(o.R0b),o.Y36(ve.t4),o.Y36(l.Qb,8))},Ze.\u0275dir=o.lG2({type:Ze,inputs:{disableRipple:"disableRipple"},features:[o.qOj]}),Ze})(),it=(()=>{class Ze extends ft{constructor(G,ge,De,et,$t,Nt,Jt){super(G,ge,De,et,$t,Nt,Jt)}}return Ze.\u0275fac=function(G){return new(G||Ze)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(he.rL),o.Y36(W.Is,8),o.Y36(o.R0b),o.Y36(ve.t4),o.Y36(l.Qb,8))},Ze.\u0275cmp=o.Xpm({type:Ze,selectors:[["mat-tab-header"]],contentQueries:function(G,ge,De){if(1&G&&o.Suo(De,$,4),2&G){let et;o.iGM(et=o.CRH())&&(ge._items=et)}},viewQuery:function(G,ge){if(1&G&&(o.Gf(Re,7),o.Gf(i,7),o.Gf(a,7),o.Gf(p,7),o.Gf(u,5),o.Gf(_,5)),2&G){let De;o.iGM(De=o.CRH())&&(ge._inkBar=De.first),o.iGM(De=o.CRH())&&(ge._tabListContainer=De.first),o.iGM(De=o.CRH())&&(ge._tabList=De.first),o.iGM(De=o.CRH())&&(ge._tabListInner=De.first),o.iGM(De=o.CRH())&&(ge._nextPaginator=De.first),o.iGM(De=o.CRH())&&(ge._previousPaginator=De.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(G,ge){2&G&&o.ekj("mat-tab-header-pagination-controls-enabled",ge._showPaginationControls)("mat-tab-header-rtl","rtl"==ge._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[o.qOj],ngContentSelectors:de,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(G,ge){1&G&&(o.F$t(),o.TgZ(0,"div",0,1),o.NdJ("click",function(){return ge._handlePaginatorClick("before")})("mousedown",function(et){return ge._handlePaginatorPress("before",et)})("touchend",function(){return ge._stopInterval()}),o._UZ(2,"div",2),o.qZA(),o.TgZ(3,"div",3,4),o.NdJ("keydown",function(et){return ge._handleKeydown(et)}),o.TgZ(5,"div",5,6),o.NdJ("cdkObserveContent",function(){return ge._onContentChanges()}),o.TgZ(7,"div",7,8),o.Hsn(9),o.qZA(),o._UZ(10,"mat-ink-bar"),o.qZA(),o.qZA(),o.TgZ(11,"div",9,10),o.NdJ("mousedown",function(et){return ge._handlePaginatorPress("after",et)})("click",function(){return ge._handlePaginatorClick("after")})("touchend",function(){return ge._stopInterval()}),o._UZ(13,"div",2),o.qZA()),2&G&&(o.ekj("mat-tab-header-pagination-disabled",ge._disableScrollBefore),o.Q6J("matRippleDisabled",ge._disableScrollBefore||ge.disableRipple),o.xp6(5),o.ekj("_mat-animation-noopable","NoopAnimations"===ge._animationMode),o.xp6(6),o.ekj("mat-tab-header-pagination-disabled",ge._disableScrollAfter),o.Q6J("matRippleDisabled",ge._disableScrollAfter||ge.disableRipple))},directives:[M.wG,t.wD,Re],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-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:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),Ze})(),rt=0;class Mt{}const Zt=(0,M.pj)((0,M.Kr)(class{constructor(Ze){this._elementRef=Ze}}),"primary");let Ft=(()=>{class Ze extends Zt{constructor(G,ge,De,et){var $t;super(G),this._changeDetectorRef=ge,this._animationMode=et,this._tabs=new o.n_E,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=s.w0.EMPTY,this._tabLabelSubscription=s.w0.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new o.vpe,this.focusChange=new o.vpe,this.animationDone=new o.vpe,this.selectedTabChange=new o.vpe(!0),this._groupId=rt++,this.animationDuration=De&&De.animationDuration?De.animationDuration:"500ms",this.disablePagination=!(!De||null==De.disablePagination)&&De.disablePagination,this.dynamicHeight=!(!De||null==De.dynamicHeight)&&De.dynamicHeight,this.contentTabIndex=null!==($t=null==De?void 0:De.contentTabIndex)&&void 0!==$t?$t:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(G){this._dynamicHeight=(0,ie.Ig)(G)}get selectedIndex(){return this._selectedIndex}set selectedIndex(G){this._indexToSelect=(0,ie.su)(G,null)}get animationDuration(){return this._animationDuration}set animationDuration(G){this._animationDuration=/^\d+$/.test(G)?G+"ms":G}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(G){this._contentTabIndex=(0,ie.su)(G,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(G){const ge=this._elementRef.nativeElement;ge.classList.remove(`mat-background-${this.backgroundColor}`),G&&ge.classList.add(`mat-background-${G}`),this._backgroundColor=G}ngAfterContentChecked(){const G=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=G){const ge=null==this._selectedIndex;if(!ge){this.selectedTabChange.emit(this._createChangeEvent(G));const De=this._tabBodyWrapper.nativeElement;De.style.minHeight=De.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((De,et)=>De.isActive=et===G),ge||(this.selectedIndexChange.emit(G),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((ge,De)=>{ge.position=De-G,null!=this._selectedIndex&&0==ge.position&&!ge.origin&&(ge.origin=G-this._selectedIndex)}),this._selectedIndex!==G&&(this._selectedIndex=G,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const ge=this._tabs.toArray();for(let De=0;De{this._tabs.reset(G.filter(ge=>ge._closestTabGroup===this||!ge._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}focusTab(G){const ge=this._tabHeader;ge&&(ge.focusIndex=G)}_focusChanged(G){this.focusChange.emit(this._createChangeEvent(G))}_createChangeEvent(G){const ge=new Mt;return ge.index=G,this._tabs&&this._tabs.length&&(ge.tab=this._tabs.toArray()[G]),ge}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,A.T)(...this._tabs.map(G=>G._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(G){return Math.min(this._tabs.length-1,Math.max(G||0,0))}_getTabLabelId(G){return`mat-tab-label-${this._groupId}-${G}`}_getTabContentId(G){return`mat-tab-content-${this._groupId}-${G}`}_setTabBodyWrapperHeight(G){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const ge=this._tabBodyWrapper.nativeElement;ge.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(ge.style.height=G+"px")}_removeTabBodyWrapperHeight(){const G=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=G.clientHeight,G.style.height="",this.animationDone.emit()}_handleClick(G,ge,De){G.disabled||(this.selectedIndex=ge.focusIndex=De)}_getTabIndex(G,ge){return G.disabled?null:this.selectedIndex===ge?0:-1}_tabFocusChanged(G,ge){G&&"mouse"!==G&&"touch"!==G&&(this._tabHeader.focusIndex=ge)}}return Ze.\u0275fac=function(G){return new(G||Ze)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(Pe,8),o.Y36(l.Qb,8))},Ze.\u0275dir=o.lG2({type:Ze,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[o.qOj]}),Ze})(),Vt=(()=>{class Ze extends Ft{constructor(G,ge,De,et){super(G,ge,De,et)}}return Ze.\u0275fac=function(G){return new(G||Ze)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(Pe,8),o.Y36(l.Qb,8))},Ze.\u0275cmp=o.Xpm({type:Ze,selectors:[["mat-tab-group"]],contentQueries:function(G,ge,De){if(1&G&&o.Suo(De,vt,5),2&G){let et;o.iGM(et=o.CRH())&&(ge._allTabs=et)}},viewQuery:function(G,ge){if(1&G&&(o.Gf(D,5),o.Gf(I,5)),2&G){let De;o.iGM(De=o.CRH())&&(ge._tabBodyWrapper=De.first),o.iGM(De=o.CRH())&&(ge._tabHeader=De.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(G,ge){2&G&&o.ekj("mat-tab-group-dynamic-height",ge.dynamicHeight)("mat-tab-group-inverted-header","below"===ge.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[o._Bn([{provide:Ge,useExisting:Ze}]),o.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(G,ge){1&G&&(o.TgZ(0,"mat-tab-header",0,1),o.NdJ("indexFocused",function(et){return ge._focusChanged(et)})("selectFocusedIndex",function(et){return ge.selectedIndex=et}),o.YNc(2,U,4,14,"div",2),o.qZA(),o.TgZ(3,"div",3,4),o.YNc(5,N,1,9,"mat-tab-body",5),o.qZA()),2&G&&(o.Q6J("selectedIndex",ge.selectedIndex||0)("disableRipple",ge.disableRipple)("disablePagination",ge.disablePagination),o.xp6(2),o.Q6J("ngForOf",ge._tabs),o.xp6(1),o.ekj("_mat-animation-noopable","NoopAnimations"===ge._animationMode),o.xp6(2),o.Q6J("ngForOf",ge._tabs))},directives:[it,C.sg,$,M.wG,e.kH,C.O5,v.Pl,Oe],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),Ze})(),Ii=(()=>{class Ze extends nt{constructor(G,ge,De,et,$t,Nt,Jt){super(G,et,$t,ge,De,Nt,Jt),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(G){const ge=this._elementRef.nativeElement.classList;ge.remove(`mat-background-${this.backgroundColor}`),G&&ge.add(`mat-background-${G}`),this._backgroundColor=G}get disableRipple(){return this._disableRipple}set disableRipple(G){this._disableRipple=(0,ie.Ig)(G)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,w.O)(null),(0,j.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const G=this._items.toArray();for(let ge=0;ge{class Ze extends Ii{constructor(G,ge,De,et,$t,Nt,Jt){super(G,ge,De,et,$t,Nt,Jt)}}return Ze.\u0275fac=function(G){return new(G||Ze)(o.Y36(o.SBq),o.Y36(W.Is,8),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(he.rL),o.Y36(ve.t4),o.Y36(l.Qb,8))},Ze.\u0275cmp=o.Xpm({type:Ze,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(G,ge,De){if(1&G&&o.Suo(De,ai,5),2&G){let et;o.iGM(et=o.CRH())&&(ge._items=et)}},viewQuery:function(G,ge){if(1&G&&(o.Gf(Re,7),o.Gf(i,7),o.Gf(a,7),o.Gf(p,7),o.Gf(u,5),o.Gf(_,5)),2&G){let De;o.iGM(De=o.CRH())&&(ge._inkBar=De.first),o.iGM(De=o.CRH())&&(ge._tabListContainer=De.first),o.iGM(De=o.CRH())&&(ge._tabList=De.first),o.iGM(De=o.CRH())&&(ge._tabListInner=De.first),o.iGM(De=o.CRH())&&(ge._nextPaginator=De.first),o.iGM(De=o.CRH())&&(ge._previousPaginator=De.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(G,ge){2&G&&o.ekj("mat-tab-header-pagination-controls-enabled",ge._showPaginationControls)("mat-tab-header-rtl","rtl"==ge._getLayoutDirection())("mat-primary","warn"!==ge.color&&"accent"!==ge.color)("mat-accent","accent"===ge.color)("mat-warn","warn"===ge.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[o.qOj],attrs:z,ngContentSelectors:de,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(G,ge){1&G&&(o.F$t(),o.TgZ(0,"div",0,1),o.NdJ("click",function(){return ge._handlePaginatorClick("before")})("mousedown",function(et){return ge._handlePaginatorPress("before",et)})("touchend",function(){return ge._stopInterval()}),o._UZ(2,"div",2),o.qZA(),o.TgZ(3,"div",3,4),o.NdJ("keydown",function(et){return ge._handleKeydown(et)}),o.TgZ(5,"div",5,6),o.NdJ("cdkObserveContent",function(){return ge._onContentChanges()}),o.TgZ(7,"div",7,8),o.Hsn(9),o.qZA(),o._UZ(10,"mat-ink-bar"),o.qZA(),o.qZA(),o.TgZ(11,"div",9,10),o.NdJ("mousedown",function(et){return ge._handlePaginatorPress("after",et)})("click",function(){return ge._handlePaginatorClick("after")})("touchend",function(){return ge._stopInterval()}),o._UZ(13,"div",2),o.qZA()),2&G&&(o.ekj("mat-tab-header-pagination-disabled",ge._disableScrollBefore),o.Q6J("matRippleDisabled",ge._disableScrollBefore||ge.disableRipple),o.xp6(5),o.ekj("_mat-animation-noopable","NoopAnimations"===ge._animationMode),o.xp6(6),o.ekj("mat-tab-header-pagination-disabled",ge._disableScrollAfter),o.Q6J("matRippleDisabled",ge._disableScrollAfter||ge.disableRipple))},directives:[M.wG,t.wD,Re],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-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:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n'],encapsulation:2}),Ze})();const ei=(0,M.sb)((0,M.Kr)((0,M.Id)(class{})));let ki=(()=>{class Ze extends ei{constructor(G,ge,De,et,$t,Nt){super(),this._tabNavBar=G,this.elementRef=ge,this._focusMonitor=$t,this._isActive=!1,this.rippleConfig=De||{},this.tabIndex=parseInt(et)||0,"NoopAnimations"===Nt&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(G){(0,ie.Ig)(G)!==this._isActive&&(this._isActive=G,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}}return Ze.\u0275fac=function(G){return new(G||Ze)(o.Y36(Ii),o.Y36(o.SBq),o.Y36(M.Y2,8),o.$8M("tabindex"),o.Y36(e.tE),o.Y36(l.Qb,8))},Ze.\u0275dir=o.lG2({type:Ze,inputs:{active:"active"},features:[o.qOj]}),Ze})(),ai=(()=>{class Ze extends ki{constructor(G,ge,De,et,$t,Nt,Jt,ct){super(G,ge,$t,Nt,Jt,ct),this._tabLinkRipple=new M.IR(this,De,ge,et),this._tabLinkRipple.setupTriggerEvents(ge.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return Ze.\u0275fac=function(G){return new(G||Ze)(o.Y36(jt),o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(ve.t4),o.Y36(M.Y2,8),o.$8M("tabindex"),o.Y36(e.tE),o.Y36(l.Qb,8))},Ze.\u0275dir=o.lG2({type:Ze,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(G,ge){1&G&&o.NdJ("focus",function(){return ge._handleFocus()}),2&G&&(o.uIk("aria-current",ge.active?"page":null)("aria-disabled",ge.disabled)("tabIndex",ge.tabIndex),o.ekj("mat-tab-disabled",ge.disabled)("mat-tab-label-active",ge.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[o.qOj]}),Ze})(),hi=(()=>{class Ze{}return Ze.\u0275fac=function(G){return new(G||Ze)},Ze.\u0275mod=o.oAB({type:Ze}),Ze.\u0275inj=o.cJS({imports:[[C.ez,M.BQ,v.eL,M.si,t.Q8,e.rt],M.BQ]}),Ze})()},4594:(Ve,Q,m)=>{"use strict";m.d(Q,{Ye:()=>s,g0:()=>O});var e=m(5e3),t=m(508),v=m(9808),C=m(925);const o=["*",[["mat-toolbar-row"]]],M=["*","mat-toolbar-row"],l=(0,t.pj)(class{constructor(A){this._elementRef=A}});let R=(()=>{class A{}return A.\u0275fac=function(P){return new(P||A)},A.\u0275dir=e.lG2({type:A,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),A})(),s=(()=>{class A extends l{constructor(P,w,Z){super(P),this._platform=w,this._document=Z}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return A.\u0275fac=function(P){return new(P||A)(e.Y36(e.SBq),e.Y36(C.t4),e.Y36(v.K0))},A.\u0275cmp=e.Xpm({type:A,selectors:[["mat-toolbar"]],contentQueries:function(P,w,Z){if(1&P&&e.Suo(Z,R,5),2&P){let j;e.iGM(j=e.CRH())&&(w._toolbarRows=j)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(P,w){2&P&&e.ekj("mat-toolbar-multiple-rows",w._toolbarRows.length>0)("mat-toolbar-single-row",0===w._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[e.qOj],ngContentSelectors:M,decls:2,vars:0,template:function(P,w){1&P&&(e.F$t(o),e.Hsn(0),e.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.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}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),A})(),O=(()=>{class A{}return A.\u0275fac=function(P){return new(P||A)},A.\u0275mod=e.oAB({type:A}),A.\u0275inj=e.cJS({imports:[[t.BQ],t.BQ]}),A})()},7238:(Ve,Q,m)=>{"use strict";m.d(Q,{gM:()=>p,AV:()=>D});var e=m(9776),t=m(5664),v=m(9808),C=m(5e3),o=m(508),M=m(5303),l=m(3191),R=m(1159),s=m(5113),L=m(925),O=m(7429),A=m(7579),E=m(2722),P=m(5698),w=m(1777),Z=m(226);const j={tooltipState:(0,w.X$)("state",[(0,w.SB)("initial, void, hidden",(0,w.oB)({opacity:0,transform:"scale(0)"})),(0,w.SB)("visible",(0,w.oB)({transform:"scale(1)"})),(0,w.eR)("* => visible",(0,w.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,w.F4)([(0,w.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,w.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,w.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,w.eR)("* => hidden",(0,w.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,w.oB)({opacity:0})))])},ee="tooltip-panel",ve=(0,L.i$)({passive:!0}),de=new C.OlP("mat-tooltip-scroll-strategy"),se={provide:de,deps:[e.aV],useFactory:function le(I){return()=>I.scrollStrategies.reposition({scrollThrottle:20})}},y=new C.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function i(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let a=(()=>{class I{constructor(r,b,U,N,z,be,xe,Re,ze,Le,K,we){this._overlay=r,this._elementRef=b,this._scrollDispatcher=U,this._viewContainerRef=N,this._ngZone=z,this._platform=be,this._ariaDescriber=xe,this._focusMonitor=Re,this._dir=Le,this._defaultOptions=K,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new A.x,this._handleKeydown=Y=>{this._isTooltipVisible()&&Y.keyCode===R.hY&&!(0,R.Vb)(Y)&&(Y.preventDefault(),Y.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=ze,this._document=we,K&&(K.position&&(this.position=K.position),K.touchGestures&&(this.touchGestures=K.touchGestures)),Le.change.pipe((0,E.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),z.runOutsideAngular(()=>{b.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(r){var b;r!==this._position&&(this._position=r,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(b=this._tooltipInstance)||void 0===b||b.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(r){this._disabled=(0,l.Ig)(r),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(r){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=r?String(r).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(r){this._tooltipClass=r,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,E.R)(this._destroyed)).subscribe(r=>{r?"keyboard"===r&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const r=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),r.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([b,U])=>{r.removeEventListener(b,U,ve)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(r,this.message,"tooltip"),this._focusMonitor.stopMonitoring(r)}show(r=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const b=this._createOverlay();this._detach(),this._portal=this._portal||new O.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=b.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,E.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(r)}hide(r=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(r)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const r=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),b=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(r);return b.positionChanges.pipe((0,E.R)(this._destroyed)).subscribe(U=>{this._updateCurrentPositionClass(U.connectionPair),this._tooltipInstance&&U.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:b,panelClass:`${this._cssClassPrefix}-${ee}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,E.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,E.R)(this._destroyed)).subscribe(()=>{var U;return null===(U=this._tooltipInstance)||void 0===U?void 0:U._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(r){const b=r.getConfig().positionStrategy,U=this._getOrigin(),N=this._getOverlayPosition();b.withPositions([this._addOffset(Object.assign(Object.assign({},U.main),N.main)),this._addOffset(Object.assign(Object.assign({},U.fallback),N.fallback))])}_addOffset(r){return r}_getOrigin(){const r=!this._dir||"ltr"==this._dir.value,b=this.position;let U;"above"==b||"below"==b?U={originX:"center",originY:"above"==b?"top":"bottom"}:"before"==b||"left"==b&&r||"right"==b&&!r?U={originX:"start",originY:"center"}:("after"==b||"right"==b&&r||"left"==b&&!r)&&(U={originX:"end",originY:"center"});const{x:N,y:z}=this._invertPosition(U.originX,U.originY);return{main:U,fallback:{originX:N,originY:z}}}_getOverlayPosition(){const r=!this._dir||"ltr"==this._dir.value,b=this.position;let U;"above"==b?U={overlayX:"center",overlayY:"bottom"}:"below"==b?U={overlayX:"center",overlayY:"top"}:"before"==b||"left"==b&&r||"right"==b&&!r?U={overlayX:"end",overlayY:"center"}:("after"==b||"right"==b&&r||"left"==b&&!r)&&(U={overlayX:"start",overlayY:"center"});const{x:N,y:z}=this._invertPosition(U.overlayX,U.overlayY);return{main:U,fallback:{overlayX:N,overlayY:z}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,P.q)(1),(0,E.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(r){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=r,this._tooltipInstance._markForCheck())}_invertPosition(r,b){return"above"===this.position||"below"===this.position?"top"===b?b="bottom":"bottom"===b&&(b="top"):"end"===r?r="start":"start"===r&&(r="end"),{x:r,y:b}}_updateCurrentPositionClass(r){const{overlayY:b,originX:U,originY:N}=r;let z;if(z="center"===b?this._dir&&"rtl"===this._dir.value?"end"===U?"left":"right":"start"===U?"left":"right":"bottom"===b&&"top"===N?"above":"below",z!==this._currentPosition){const be=this._overlayRef;if(be){const xe=`${this._cssClassPrefix}-${ee}-`;be.removePanelClass(xe+this._currentPosition),be.addPanelClass(xe+z)}this._currentPosition=z}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const r=[];if(this._platformSupportsMouseEvents())r.push(["mouseleave",()=>this.hide()],["wheel",b=>this._wheelListener(b)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const b=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};r.push(["touchend",b],["touchcancel",b])}this._addListeners(r),this._passiveListeners.push(...r)}_addListeners(r){r.forEach(([b,U])=>{this._elementRef.nativeElement.addEventListener(b,U,ve)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(r){if(this._isTooltipVisible()){const b=this._document.elementFromPoint(r.clientX,r.clientY),U=this._elementRef.nativeElement;b!==U&&!U.contains(b)&&this.hide()}}_disableNativeGesturesIfNecessary(){const r=this.touchGestures;if("off"!==r){const b=this._elementRef.nativeElement,U=b.style;("on"===r||"INPUT"!==b.nodeName&&"TEXTAREA"!==b.nodeName)&&(U.userSelect=U.msUserSelect=U.webkitUserSelect=U.MozUserSelect="none"),("on"===r||!b.draggable)&&(U.webkitUserDrag="none"),U.touchAction="none",U.webkitTapHighlightColor="transparent"}}}return I.\u0275fac=function(r){C.$Z()},I.\u0275dir=C.lG2({type:I,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),I})(),p=(()=>{class I extends a{constructor(r,b,U,N,z,be,xe,Re,ze,Le,K,we){super(r,b,U,N,z,be,xe,Re,ze,Le,K,we),this._tooltipComponent=_}}return I.\u0275fac=function(r){return new(r||I)(C.Y36(e.aV),C.Y36(C.SBq),C.Y36(M.mF),C.Y36(C.s_b),C.Y36(C.R0b),C.Y36(L.t4),C.Y36(t.$s),C.Y36(t.tE),C.Y36(de),C.Y36(Z.Is,8),C.Y36(y,8),C.Y36(v.K0))},I.\u0275dir=C.lG2({type:I,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[C.qOj]}),I})(),u=(()=>{class I{constructor(r){this._changeDetectorRef=r,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new A.x}show(r){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},r)}hide(r){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},r)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(r){const b=r.toState;"hidden"===b&&!this.isVisible()&&this._onHide.next(),("visible"===b||"hidden"===b)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return I.\u0275fac=function(r){return new(r||I)(C.Y36(C.sBO))},I.\u0275dir=C.lG2({type:I}),I})(),_=(()=>{class I extends u{constructor(r,b){super(r),this._breakpointObserver=b,this._isHandset=this._breakpointObserver.observe(s.u3.Handset)}}return I.\u0275fac=function(r){return new(r||I)(C.Y36(C.sBO),C.Y36(s.Yg))},I.\u0275cmp=C.Xpm({type:I,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(r,b){2&r&&C.Udp("zoom","visible"===b._visibility?1:null)},features:[C.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(r,b){if(1&r&&(C.TgZ(0,"div",0),C.NdJ("@state.start",function(){return b._animationStart()})("@state.done",function(N){return b._animationDone(N)}),C.ALo(1,"async"),C._uU(2),C.qZA()),2&r){let U;C.ekj("mat-tooltip-handset",null==(U=C.lcZ(1,5,b._isHandset))?null:U.matches),C.Q6J("ngClass",b.tooltipClass)("@state",b._visibility),C.xp6(2),C.Oqu(b.message)}},directives:[v.mk],pipes:[v.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[j.tooltipState]},changeDetection:0}),I})(),D=(()=>{class I{}return I.\u0275fac=function(r){return new(r||I)},I.\u0275mod=C.oAB({type:I}),I.\u0275inj=C.cJS({providers:[se],imports:[[t.rt,v.ez,e.U8,o.BQ],o.BQ,M.ZD]}),I})()},149:(Ve,Q,m)=>{"use strict";m.d(Q,{GZ:()=>A,gi:()=>w,dp:()=>W,WX:()=>ve,uo:()=>L,fQ:()=>O,Ar:()=>P,eu:()=>Z});var e=m(8258),t=m(5e3),v=m(508),C=m(3191),o=m(449),M=m(1135),l=m(6451),R=m(4004);const s=(0,v.sb)((0,v.Id)(e.Hs));let L=(()=>{class he extends s{constructor(de,le,se){super(de,le),this.tabIndex=Number(se)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return he.\u0275fac=function(de){return new(de||he)(t.Y36(t.SBq),t.Y36(e._0),t.$8M("tabindex"))},he.\u0275dir=t.lG2({type:he,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[t._Bn([{provide:e.Hs,useExisting:he}]),t.qOj]}),he})(),O=(()=>{class he extends e.rO{}return he.\u0275fac=function(){let re;return function(le){return(re||(re=t.n5z(he)))(le||he)}}(),he.\u0275dir=t.lG2({type:he,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[t._Bn([{provide:e.rO,useExisting:he}]),t.qOj]}),he})(),A=(()=>{class he extends e.Xx{constructor(de,le,se,y){super(de,le,se),this._disabled=!1,this.tabIndex=Number(y)||0}get disabled(){return this._disabled}set disabled(de){this._disabled=(0,C.Ig)(de)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(de){this._tabIndex=null!=de?de:0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return he.\u0275fac=function(de){return new(de||he)(t.Y36(t.SBq),t.Y36(e._0),t.Y36(t.ZZ4),t.$8M("tabindex"))},he.\u0275dir=t.lG2({type:he,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[t._Bn([{provide:e.Xx,useExisting:he},{provide:e.Hs,useExisting:he},{provide:e.HI,useExisting:he}]),t.qOj]}),he})(),P=(()=>{class he{constructor(de,le){this.viewContainer=de,this._node=le}}return he.\u0275fac=function(de){return new(de||he)(t.Y36(t.s_b),t.Y36(e.HI,8))},he.\u0275dir=t.lG2({type:he,selectors:[["","matTreeNodeOutlet",""]],features:[t._Bn([{provide:e.cu,useExisting:he}])]}),he})(),w=(()=>{class he extends e._0{}return he.\u0275fac=function(){let re;return function(le){return(re||(re=t.n5z(he)))(le||he)}}(),he.\u0275cmp=t.Xpm({type:he,selectors:[["mat-tree"]],viewQuery:function(de,le){if(1&de&&t.Gf(P,7),2&de){let se;t.iGM(se=t.CRH())&&(le._nodeOutlet=se.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[t._Bn([{provide:e._0,useExisting:he}]),t.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(de,le){1&de&&t.GkF(0,0)},directives:[P],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),he})(),Z=(()=>{class he extends e.Ud{}return he.\u0275fac=function(){let re;return function(le){return(re||(re=t.n5z(he)))(le||he)}}(),he.\u0275dir=t.lG2({type:he,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[t._Bn([{provide:e.Ud,useExisting:he}]),t.qOj]}),he})(),W=(()=>{class he{}return he.\u0275fac=function(de){return new(de||he)},he.\u0275mod=t.oAB({type:he}),he.\u0275inj=t.cJS({imports:[[e.nZ,v.BQ],v.BQ]}),he})();class ve extends o.o2{constructor(){super(...arguments),this._data=new M.X([])}get data(){return this._data.value}set data(re){this._data.next(re)}connect(re){return(0,l.T)(re.viewChange,this._data).pipe((0,R.U)(()=>this.data))}disconnect(){}}},6360:(Ve,Q,m)=>{"use strict";m.d(Q,{Qb:()=>Pi,PW:()=>Zs});var e=m(5e3),t=m(2313),v=m(1777);function C(){return"undefined"!=typeof window&&void 0!==window.document}function o(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function M(xt){switch(xt.length){case 0:return new v.ZN;case 1:return xt[0];default:return new v.ZE(xt)}}function l(xt,te,fe,je,wt={},Pt={}){const Qt=[],Xt=[];let pi=-1,Ti=null;if(je.forEach(Zi=>{const tn=Zi.offset,Mn=tn==pi,On=Mn&&Ti||{};Object.keys(Zi).forEach(tt=>{let Et=tt,It=Zi[tt];if("offset"!==tt)switch(Et=te.normalizePropertyName(Et,Qt),It){case v.k1:It=wt[tt];break;case v.l3:It=Pt[tt];break;default:It=te.normalizeStyleValue(tt,Et,It,Qt)}On[Et]=It}),Mn||Xt.push(On),Ti=On,pi=tn}),Qt.length){const Zi="\n - ";throw new Error(`Unable to animate due to the following errors:${Zi}${Qt.join(Zi)}`)}return Xt}function R(xt,te,fe,je){switch(te){case"start":xt.onStart(()=>je(fe&&s(fe,"start",xt)));break;case"done":xt.onDone(()=>je(fe&&s(fe,"done",xt)));break;case"destroy":xt.onDestroy(()=>je(fe&&s(fe,"destroy",xt)))}}function s(xt,te,fe){const je=fe.totalTime,Pt=L(xt.element,xt.triggerName,xt.fromState,xt.toState,te||xt.phaseName,null==je?xt.totalTime:je,!!fe.disabled),Qt=xt._data;return null!=Qt&&(Pt._data=Qt),Pt}function L(xt,te,fe,je,wt="",Pt=0,Qt){return{element:xt,triggerName:te,fromState:fe,toState:je,phaseName:wt,totalTime:Pt,disabled:!!Qt}}function O(xt,te,fe){let je;return xt instanceof Map?(je=xt.get(te),je||xt.set(te,je=fe)):(je=xt[te],je||(je=xt[te]=fe)),je}function A(xt){const te=xt.indexOf(":");return[xt.substring(1,te),xt.substr(te+1)]}let E=(xt,te)=>!1,P=(xt,te)=>!1,w=(xt,te,fe)=>[];const Z=o();(Z||"undefined"!=typeof Element)&&(E=C()?(xt,te)=>{for(;te&&te!==document.documentElement;){if(te===xt)return!0;te=te.parentNode||te.host}return!1}:(xt,te)=>xt.contains(te),P=(()=>{if(Z||Element.prototype.matches)return(xt,te)=>xt.matches(te);{const xt=Element.prototype,te=xt.matchesSelector||xt.mozMatchesSelector||xt.msMatchesSelector||xt.oMatchesSelector||xt.webkitMatchesSelector;return te?(fe,je)=>te.apply(fe,[je]):P}})(),w=(xt,te,fe)=>{let je=[];if(fe){const wt=xt.querySelectorAll(te);for(let Pt=0;Pt{const je=fe.replace(/([a-z])([A-Z])/g,"$1-$2");te[je]=xt[fe]}),te}let se=(()=>{class xt{validateStyleProperty(fe){return ee(fe)}matchesElement(fe,je){return he(fe,je)}containsElement(fe,je){return re(fe,je)}query(fe,je,wt){return de(fe,je,wt)}computeStyle(fe,je,wt){return wt||""}animate(fe,je,wt,Pt,Qt,Xt=[],pi){return new v.ZN(wt,Pt)}}return xt.\u0275fac=function(fe){return new(fe||xt)},xt.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac}),xt})(),y=(()=>{class xt{}return xt.NOOP=new se,xt})();const u="ng-enter",_="ng-leave",x="ng-trigger",r=".ng-trigger",b="ng-animating",U=".ng-animating";function N(xt){if("number"==typeof xt)return xt;const te=xt.match(/^(-?[\.\d]+)(m?s)/);return!te||te.length<2?0:z(parseFloat(te[1]),te[2])}function z(xt,te){return"s"===te?1e3*xt:xt}function be(xt,te,fe){return xt.hasOwnProperty("duration")?xt:function xe(xt,te,fe){let wt,Pt=0,Qt="";if("string"==typeof xt){const Xt=xt.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Xt)return te.push(`The provided timing value "${xt}" is invalid.`),{duration:0,delay:0,easing:""};wt=z(parseFloat(Xt[1]),Xt[2]);const pi=Xt[3];null!=pi&&(Pt=z(parseFloat(pi),Xt[4]));const Ti=Xt[5];Ti&&(Qt=Ti)}else wt=xt;if(!fe){let Xt=!1,pi=te.length;wt<0&&(te.push("Duration values below 0 are not allowed for this animation step."),Xt=!0),Pt<0&&(te.push("Delay values below 0 are not allowed for this animation step."),Xt=!0),Xt&&te.splice(pi,0,`The provided timing value "${xt}" is invalid.`)}return{duration:wt,delay:Pt,easing:Qt}}(xt,te,fe)}function Re(xt,te={}){return Object.keys(xt).forEach(fe=>{te[fe]=xt[fe]}),te}function Le(xt,te,fe={}){if(te)for(let je in xt)fe[je]=xt[je];else Re(xt,fe);return fe}function K(xt,te,fe){return fe?te+":"+fe+";":""}function we(xt){let te="";for(let fe=0;fe{const wt=q(je);fe&&!fe.hasOwnProperty(je)&&(fe[je]=xt.style[wt]),xt.style[wt]=te[je]}),o()&&we(xt))}function ae(xt,te){xt.style&&(Object.keys(te).forEach(fe=>{const je=q(fe);xt.style[je]=""}),o()&&we(xt))}function Ge(xt){return Array.isArray(xt)?1==xt.length?xt[0]:(0,v.vP)(xt):xt}const Fe=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ne(xt){let te=[];if("string"==typeof xt){let fe;for(;fe=Fe.exec(xt);)te.push(fe[1]);Fe.lastIndex=0}return te}function ue(xt,te,fe){const je=xt.toString(),wt=je.replace(Fe,(Pt,Qt)=>{let Xt=te[Qt];return te.hasOwnProperty(Qt)||(fe.push(`Please provide a value for the animation param ${Qt}`),Xt=""),Xt.toString()});return wt==je?xt:wt}function Oe(xt){const te=[];let fe=xt.next();for(;!fe.done;)te.push(fe.value),fe=xt.next();return te}const Pe=/-+([a-z0-9])/g;function q(xt){return xt.replace(Pe,(...te)=>te[1].toUpperCase())}function $(xt){return xt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ce(xt,te){return 0===xt||0===te}function Me(xt,te,fe){const je=Object.keys(fe);if(je.length&&te.length){let Pt=te[0],Qt=[];if(je.forEach(Xt=>{Pt.hasOwnProperty(Xt)||Qt.push(Xt),Pt[Xt]=fe[Xt]}),Qt.length)for(var wt=1;wtfunction it(xt,te,fe){if(":"==xt[0]){const pi=function rt(xt,te){switch(xt){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(fe,je)=>parseFloat(je)>parseFloat(fe);case":decrement":return(fe,je)=>parseFloat(je) *"}}(xt,fe);if("function"==typeof pi)return void te.push(pi);xt=pi}const je=xt.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==je||je.length<4)return fe.push(`The provided transition expression "${xt}" is not supported`),te;const wt=je[1],Pt=je[2],Qt=je[3];te.push(Ft(wt,Qt));"<"==Pt[0]&&!("*"==wt&&"*"==Qt)&&te.push(Ft(Qt,wt))}(je,fe,te)):fe.push(xt),fe}const Mt=new Set(["true","1"]),Zt=new Set(["false","0"]);function Ft(xt,te){const fe=Mt.has(xt)||Zt.has(xt),je=Mt.has(te)||Zt.has(te);return(wt,Pt)=>{let Qt="*"==xt||xt==wt,Xt="*"==te||te==Pt;return!Qt&&fe&&"boolean"==typeof wt&&(Qt=wt?Mt.has(xt):Zt.has(xt)),!Xt&&je&&"boolean"==typeof Pt&&(Xt=Pt?Mt.has(te):Zt.has(te)),Qt&&Xt}}const Ii=new RegExp("s*:selfs*,?","g");function jt(xt,te,fe){return new ki(xt).build(te,fe)}class ki{constructor(te){this._driver=te}build(te,fe){const je=new Ze(fe);return this._resetContextStyleTimingState(je),Ue(this,Ge(te),je)}_resetContextStyleTimingState(te){te.currentQuerySelector="",te.collectedStyles={},te.collectedStyles[""]={},te.currentTime=0}visitTrigger(te,fe){let je=fe.queryCount=0,wt=fe.depCount=0;const Pt=[],Qt=[];return"@"==te.name.charAt(0)&&fe.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),te.definitions.forEach(Xt=>{if(this._resetContextStyleTimingState(fe),0==Xt.type){const pi=Xt,Ti=pi.name;Ti.toString().split(/\s*,\s*/).forEach(Zi=>{pi.name=Zi,Pt.push(this.visitState(pi,fe))}),pi.name=Ti}else if(1==Xt.type){const pi=this.visitTransition(Xt,fe);je+=pi.queryCount,wt+=pi.depCount,Qt.push(pi)}else fe.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:te.name,states:Pt,transitions:Qt,queryCount:je,depCount:wt,options:null}}visitState(te,fe){const je=this.visitStyle(te.styles,fe),wt=te.options&&te.options.params||null;if(je.containsDynamicStyles){const Pt=new Set,Qt=wt||{};if(je.styles.forEach(Xt=>{if(G(Xt)){const pi=Xt;Object.keys(pi).forEach(Ti=>{Ne(pi[Ti]).forEach(Zi=>{Qt.hasOwnProperty(Zi)||Pt.add(Zi)})})}}),Pt.size){const Xt=Oe(Pt.values());fe.errors.push(`state("${te.name}", ...) must define default values for all the following style substitutions: ${Xt.join(", ")}`)}}return{type:0,name:te.name,style:je,options:wt?{params:wt}:null}}visitTransition(te,fe){fe.queryCount=0,fe.depCount=0;const je=Ue(this,Ge(te.animation),fe);return{type:1,matchers:ft(te.expr,fe.errors),animation:je,queryCount:fe.queryCount,depCount:fe.depCount,options:De(te.options)}}visitSequence(te,fe){return{type:2,steps:te.steps.map(je=>Ue(this,je,fe)),options:De(te.options)}}visitGroup(te,fe){const je=fe.currentTime;let wt=0;const Pt=te.steps.map(Qt=>{fe.currentTime=je;const Xt=Ue(this,Qt,fe);return wt=Math.max(wt,fe.currentTime),Xt});return fe.currentTime=wt,{type:3,steps:Pt,options:De(te.options)}}visitAnimate(te,fe){const je=function ge(xt,te){let fe=null;if(xt.hasOwnProperty("duration"))fe=xt;else if("number"==typeof xt)return et(be(xt,te).duration,0,"");const je=xt;if(je.split(/\s+/).some(Pt=>"{"==Pt.charAt(0)&&"{"==Pt.charAt(1))){const Pt=et(0,0,"");return Pt.dynamic=!0,Pt.strValue=je,Pt}return fe=fe||be(je,te),et(fe.duration,fe.delay,fe.easing)}(te.timings,fe.errors);fe.currentAnimateTimings=je;let wt,Pt=te.styles?te.styles:(0,v.oB)({});if(5==Pt.type)wt=this.visitKeyframes(Pt,fe);else{let Qt=te.styles,Xt=!1;if(!Qt){Xt=!0;const Ti={};je.easing&&(Ti.easing=je.easing),Qt=(0,v.oB)(Ti)}fe.currentTime+=je.duration+je.delay;const pi=this.visitStyle(Qt,fe);pi.isEmptyStep=Xt,wt=pi}return fe.currentAnimateTimings=null,{type:4,timings:je,style:wt,options:null}}visitStyle(te,fe){const je=this._makeStyleAst(te,fe);return this._validateStyleAst(je,fe),je}_makeStyleAst(te,fe){const je=[];Array.isArray(te.styles)?te.styles.forEach(Qt=>{"string"==typeof Qt?Qt==v.l3?je.push(Qt):fe.errors.push(`The provided style string value ${Qt} is not allowed.`):je.push(Qt)}):je.push(te.styles);let wt=!1,Pt=null;return je.forEach(Qt=>{if(G(Qt)){const Xt=Qt,pi=Xt.easing;if(pi&&(Pt=pi,delete Xt.easing),!wt)for(let Ti in Xt)if(Xt[Ti].toString().indexOf("{{")>=0){wt=!0;break}}}),{type:6,styles:je,easing:Pt,offset:te.offset,containsDynamicStyles:wt,options:null}}_validateStyleAst(te,fe){const je=fe.currentAnimateTimings;let wt=fe.currentTime,Pt=fe.currentTime;je&&Pt>0&&(Pt-=je.duration+je.delay),te.styles.forEach(Qt=>{"string"!=typeof Qt&&Object.keys(Qt).forEach(Xt=>{if(!this._driver.validateStyleProperty(Xt))return void fe.errors.push(`The provided animation property "${Xt}" is not a supported CSS property for animations`);const pi=fe.collectedStyles[fe.currentQuerySelector],Ti=pi[Xt];let Zi=!0;Ti&&(Pt!=wt&&Pt>=Ti.startTime&&wt<=Ti.endTime&&(fe.errors.push(`The CSS property "${Xt}" that exists between the times of "${Ti.startTime}ms" and "${Ti.endTime}ms" is also being animated in a parallel animation between the times of "${Pt}ms" and "${wt}ms"`),Zi=!1),Pt=Ti.startTime),Zi&&(pi[Xt]={startTime:Pt,endTime:wt}),fe.options&&function vt(xt,te,fe){const je=te.params||{},wt=Ne(xt);wt.length&&wt.forEach(Pt=>{je.hasOwnProperty(Pt)||fe.push(`Unable to resolve the local animation param ${Pt} in the given list of values`)})}(Qt[Xt],fe.options,fe.errors)})})}visitKeyframes(te,fe){const je={type:5,styles:[],options:null};if(!fe.currentAnimateTimings)return fe.errors.push("keyframes() must be placed inside of a call to animate()"),je;let Pt=0;const Qt=[];let Xt=!1,pi=!1,Ti=0;const Zi=te.steps.map(zt=>{const ri=this._makeStyleAst(zt,fe);let vi=null!=ri.offset?ri.offset:function Ee(xt){if("string"==typeof xt)return null;let te=null;if(Array.isArray(xt))xt.forEach(fe=>{if(G(fe)&&fe.hasOwnProperty("offset")){const je=fe;te=parseFloat(je.offset),delete je.offset}});else if(G(xt)&&xt.hasOwnProperty("offset")){const fe=xt;te=parseFloat(fe.offset),delete fe.offset}return te}(ri.styles),Mi=0;return null!=vi&&(Pt++,Mi=ri.offset=vi),pi=pi||Mi<0||Mi>1,Xt=Xt||Mi0&&Pt{const vi=Mn>0?ri==On?1:Mn*ri:Qt[ri],Mi=vi*It;fe.currentTime=tt+Et.delay+Mi,Et.duration=Mi,this._validateStyleAst(zt,fe),zt.offset=vi,je.styles.push(zt)}),je}visitReference(te,fe){return{type:8,animation:Ue(this,Ge(te.animation),fe),options:De(te.options)}}visitAnimateChild(te,fe){return fe.depCount++,{type:9,options:De(te.options)}}visitAnimateRef(te,fe){return{type:10,animation:this.visitReference(te.animation,fe),options:De(te.options)}}visitQuery(te,fe){const je=fe.currentQuerySelector,wt=te.options||{};fe.queryCount++,fe.currentQuery=te;const[Pt,Qt]=function ai(xt){const te=!!xt.split(/\s*,\s*/).find(fe=>":self"==fe);return te&&(xt=xt.replace(Ii,"")),xt=xt.replace(/@\*/g,r).replace(/@\w+/g,fe=>r+"-"+fe.substr(1)).replace(/:animating/g,U),[xt,te]}(te.selector);fe.currentQuerySelector=je.length?je+" "+Pt:Pt,O(fe.collectedStyles,fe.currentQuerySelector,{});const Xt=Ue(this,Ge(te.animation),fe);return fe.currentQuery=null,fe.currentQuerySelector=je,{type:11,selector:Pt,limit:wt.limit||0,optional:!!wt.optional,includeSelf:Qt,animation:Xt,originalSelector:te.selector,options:De(te.options)}}visitStagger(te,fe){fe.currentQuery||fe.errors.push("stagger() can only be used inside of query()");const je="full"===te.timings?{duration:0,delay:0,easing:"full"}:be(te.timings,fe.errors,!0);return{type:12,animation:Ue(this,Ge(te.animation),fe),timings:je,options:null}}}class Ze{constructor(te){this.errors=te,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function G(xt){return!Array.isArray(xt)&&"object"==typeof xt}function De(xt){return xt?(xt=Re(xt)).params&&(xt.params=function hi(xt){return xt?Re(xt):null}(xt.params)):xt={},xt}function et(xt,te,fe){return{duration:xt,delay:te,easing:fe}}function $t(xt,te,fe,je,wt,Pt,Qt=null,Xt=!1){return{type:1,element:xt,keyframes:te,preStyleProps:fe,postStyleProps:je,duration:wt,delay:Pt,totalTime:wt+Pt,easing:Qt,subTimeline:Xt}}class Nt{constructor(){this._map=new Map}consume(te){let fe=this._map.get(te);return fe?this._map.delete(te):fe=[],fe}append(te,fe){let je=this._map.get(te);je||this._map.set(te,je=[]),je.push(...fe)}has(te){return this._map.has(te)}clear(){this._map.clear()}}const ke=new RegExp(":enter","g"),at=new RegExp(":leave","g");function st(xt,te,fe,je,wt,Pt={},Qt={},Xt,pi,Ti=[]){return(new At).buildKeyframes(xt,te,fe,je,wt,Pt,Qt,Xt,pi,Ti)}class At{buildKeyframes(te,fe,je,wt,Pt,Qt,Xt,pi,Ti,Zi=[]){Ti=Ti||new Nt;const tn=new Bt(te,fe,Ti,wt,Pt,Zi,[]);tn.options=pi,tn.currentTimeline.setStyles([Qt],null,tn.errors,pi),Ue(this,je,tn);const Mn=tn.timelines.filter(On=>On.containsAnimation());if(Mn.length&&Object.keys(Xt).length){const On=Mn[Mn.length-1];On.allowOnlyTimelineStyles()||On.setStyles([Xt],null,tn.errors,pi)}return Mn.length?Mn.map(On=>On.buildKeyframes()):[$t(fe,[],[],[],0,0,"",!1)]}visitTrigger(te,fe){}visitState(te,fe){}visitTransition(te,fe){}visitAnimateChild(te,fe){const je=fe.subInstructions.consume(fe.element);if(je){const wt=fe.createSubContext(te.options),Pt=fe.currentTimeline.currentTime,Qt=this._visitSubInstructions(je,wt,wt.options);Pt!=Qt&&fe.transformIntoNewTimeline(Qt)}fe.previousNode=te}visitAnimateRef(te,fe){const je=fe.createSubContext(te.options);je.transformIntoNewTimeline(),this.visitReference(te.animation,je),fe.transformIntoNewTimeline(je.currentTimeline.currentTime),fe.previousNode=te}_visitSubInstructions(te,fe,je){let Pt=fe.currentTimeline.currentTime;const Qt=null!=je.duration?N(je.duration):null,Xt=null!=je.delay?N(je.delay):null;return 0!==Qt&&te.forEach(pi=>{const Ti=fe.appendInstructionToTimeline(pi,Qt,Xt);Pt=Math.max(Pt,Ti.duration+Ti.delay)}),Pt}visitReference(te,fe){fe.updateOptions(te.options,!0),Ue(this,te.animation,fe),fe.previousNode=te}visitSequence(te,fe){const je=fe.subContextCount;let wt=fe;const Pt=te.options;if(Pt&&(Pt.params||Pt.delay)&&(wt=fe.createSubContext(Pt),wt.transformIntoNewTimeline(),null!=Pt.delay)){6==wt.previousNode.type&&(wt.currentTimeline.snapshotCurrentStyles(),wt.previousNode=li);const Qt=N(Pt.delay);wt.delayNextStep(Qt)}te.steps.length&&(te.steps.forEach(Qt=>Ue(this,Qt,wt)),wt.currentTimeline.applyStylesToKeyframe(),wt.subContextCount>je&&wt.transformIntoNewTimeline()),fe.previousNode=te}visitGroup(te,fe){const je=[];let wt=fe.currentTimeline.currentTime;const Pt=te.options&&te.options.delay?N(te.options.delay):0;te.steps.forEach(Qt=>{const Xt=fe.createSubContext(te.options);Pt&&Xt.delayNextStep(Pt),Ue(this,Qt,Xt),wt=Math.max(wt,Xt.currentTimeline.currentTime),je.push(Xt.currentTimeline)}),je.forEach(Qt=>fe.currentTimeline.mergeTimelineCollectedStyles(Qt)),fe.transformIntoNewTimeline(wt),fe.previousNode=te}_visitTiming(te,fe){if(te.dynamic){const je=te.strValue;return be(fe.params?ue(je,fe.params,fe.errors):je,fe.errors)}return{duration:te.duration,delay:te.delay,easing:te.easing}}visitAnimate(te,fe){const je=fe.currentAnimateTimings=this._visitTiming(te.timings,fe),wt=fe.currentTimeline;je.delay&&(fe.incrementTime(je.delay),wt.snapshotCurrentStyles());const Pt=te.style;5==Pt.type?this.visitKeyframes(Pt,fe):(fe.incrementTime(je.duration),this.visitStyle(Pt,fe),wt.applyStylesToKeyframe()),fe.currentAnimateTimings=null,fe.previousNode=te}visitStyle(te,fe){const je=fe.currentTimeline,wt=fe.currentAnimateTimings;!wt&&je.getCurrentStyleProperties().length&&je.forwardFrame();const Pt=wt&&wt.easing||te.easing;te.isEmptyStep?je.applyEmptyStep(Pt):je.setStyles(te.styles,Pt,fe.errors,fe.options),fe.previousNode=te}visitKeyframes(te,fe){const je=fe.currentAnimateTimings,wt=fe.currentTimeline.duration,Pt=je.duration,Xt=fe.createSubContext().currentTimeline;Xt.easing=je.easing,te.styles.forEach(pi=>{Xt.forwardTime((pi.offset||0)*Pt),Xt.setStyles(pi.styles,pi.easing,fe.errors,fe.options),Xt.applyStylesToKeyframe()}),fe.currentTimeline.mergeTimelineCollectedStyles(Xt),fe.transformIntoNewTimeline(wt+Pt),fe.previousNode=te}visitQuery(te,fe){const je=fe.currentTimeline.currentTime,wt=te.options||{},Pt=wt.delay?N(wt.delay):0;Pt&&(6===fe.previousNode.type||0==je&&fe.currentTimeline.getCurrentStyleProperties().length)&&(fe.currentTimeline.snapshotCurrentStyles(),fe.previousNode=li);let Qt=je;const Xt=fe.invokeQuery(te.selector,te.originalSelector,te.limit,te.includeSelf,!!wt.optional,fe.errors);fe.currentQueryTotal=Xt.length;let pi=null;Xt.forEach((Ti,Zi)=>{fe.currentQueryIndex=Zi;const tn=fe.createSubContext(te.options,Ti);Pt&&tn.delayNextStep(Pt),Ti===fe.element&&(pi=tn.currentTimeline),Ue(this,te.animation,tn),tn.currentTimeline.applyStylesToKeyframe(),Qt=Math.max(Qt,tn.currentTimeline.currentTime)}),fe.currentQueryIndex=0,fe.currentQueryTotal=0,fe.transformIntoNewTimeline(Qt),pi&&(fe.currentTimeline.mergeTimelineCollectedStyles(pi),fe.currentTimeline.snapshotCurrentStyles()),fe.previousNode=te}visitStagger(te,fe){const je=fe.parentContext,wt=fe.currentTimeline,Pt=te.timings,Qt=Math.abs(Pt.duration),Xt=Qt*(fe.currentQueryTotal-1);let pi=Qt*fe.currentQueryIndex;switch(Pt.duration<0?"reverse":Pt.easing){case"reverse":pi=Xt-pi;break;case"full":pi=je.currentStaggerTime}const Zi=fe.currentTimeline;pi&&Zi.delayNextStep(pi);const tn=Zi.currentTime;Ue(this,te.animation,fe),fe.previousNode=te,je.currentStaggerTime=wt.currentTime-tn+(wt.startTime-je.currentTimeline.startTime)}}const li={};class Bt{constructor(te,fe,je,wt,Pt,Qt,Xt,pi){this._driver=te,this.element=fe,this.subInstructions=je,this._enterClassName=wt,this._leaveClassName=Pt,this.errors=Qt,this.timelines=Xt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=li,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=pi||new Rt(this._driver,fe,0),Xt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(te,fe){if(!te)return;const je=te;let wt=this.options;null!=je.duration&&(wt.duration=N(je.duration)),null!=je.delay&&(wt.delay=N(je.delay));const Pt=je.params;if(Pt){let Qt=wt.params;Qt||(Qt=this.options.params={}),Object.keys(Pt).forEach(Xt=>{(!fe||!Qt.hasOwnProperty(Xt))&&(Qt[Xt]=ue(Pt[Xt],Qt,this.errors))})}}_copyOptions(){const te={};if(this.options){const fe=this.options.params;if(fe){const je=te.params={};Object.keys(fe).forEach(wt=>{je[wt]=fe[wt]})}}return te}createSubContext(te=null,fe,je){const wt=fe||this.element,Pt=new Bt(this._driver,wt,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(wt,je||0));return Pt.previousNode=this.previousNode,Pt.currentAnimateTimings=this.currentAnimateTimings,Pt.options=this._copyOptions(),Pt.updateOptions(te),Pt.currentQueryIndex=this.currentQueryIndex,Pt.currentQueryTotal=this.currentQueryTotal,Pt.parentContext=this,this.subContextCount++,Pt}transformIntoNewTimeline(te){return this.previousNode=li,this.currentTimeline=this.currentTimeline.fork(this.element,te),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(te,fe,je){const wt={duration:null!=fe?fe:te.duration,delay:this.currentTimeline.currentTime+(null!=je?je:0)+te.delay,easing:""},Pt=new Li(this._driver,te.element,te.keyframes,te.preStyleProps,te.postStyleProps,wt,te.stretchStartingKeyframe);return this.timelines.push(Pt),wt}incrementTime(te){this.currentTimeline.forwardTime(this.currentTimeline.duration+te)}delayNextStep(te){te>0&&this.currentTimeline.delayNextStep(te)}invokeQuery(te,fe,je,wt,Pt,Qt){let Xt=[];if(wt&&Xt.push(this.element),te.length>0){te=(te=te.replace(ke,"."+this._enterClassName)).replace(at,"."+this._leaveClassName);let Ti=this._driver.query(this.element,te,1!=je);0!==je&&(Ti=je<0?Ti.slice(Ti.length+je,Ti.length):Ti.slice(0,je)),Xt.push(...Ti)}return!Pt&&0==Xt.length&&Qt.push(`\`query("${fe}")\` returned zero elements. (Use \`query("${fe}", { optional: true })\` if you wish to allow this.)`),Xt}}class Rt{constructor(te,fe,je,wt){this._driver=te,this.element=fe,this.startTime=je,this._elementTimelineStylesLookup=wt,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(fe),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(fe,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(te){const fe=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||fe?(this.forwardTime(this.currentTime+te),fe&&this.snapshotCurrentStyles()):this.startTime+=te}fork(te,fe){return this.applyStylesToKeyframe(),new Rt(this._driver,te,fe||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(te){this.applyStylesToKeyframe(),this.duration=te,this._loadKeyframe()}_updateStyle(te,fe){this._localTimelineStyles[te]=fe,this._globalTimelineStyles[te]=fe,this._styleSummary[te]={time:this.currentTime,value:fe}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(te){te&&(this._previousKeyframe.easing=te),Object.keys(this._globalTimelineStyles).forEach(fe=>{this._backFill[fe]=this._globalTimelineStyles[fe]||v.l3,this._currentKeyframe[fe]=v.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(te,fe,je,wt){fe&&(this._previousKeyframe.easing=fe);const Pt=wt&&wt.params||{},Qt=function ci(xt,te){const fe={};let je;return xt.forEach(wt=>{"*"===wt?(je=je||Object.keys(te),je.forEach(Pt=>{fe[Pt]=v.l3})):Le(wt,!1,fe)}),fe}(te,this._globalTimelineStyles);Object.keys(Qt).forEach(Xt=>{const pi=ue(Qt[Xt],Pt,je);this._pendingStyles[Xt]=pi,this._localTimelineStyles.hasOwnProperty(Xt)||(this._backFill[Xt]=this._globalTimelineStyles.hasOwnProperty(Xt)?this._globalTimelineStyles[Xt]:v.l3),this._updateStyle(Xt,pi)})}applyStylesToKeyframe(){const te=this._pendingStyles,fe=Object.keys(te);0!=fe.length&&(this._pendingStyles={},fe.forEach(je=>{this._currentKeyframe[je]=te[je]}),Object.keys(this._localTimelineStyles).forEach(je=>{this._currentKeyframe.hasOwnProperty(je)||(this._currentKeyframe[je]=this._localTimelineStyles[je])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(te=>{const fe=this._localTimelineStyles[te];this._pendingStyles[te]=fe,this._updateStyle(te,fe)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const te=[];for(let fe in this._currentKeyframe)te.push(fe);return te}mergeTimelineCollectedStyles(te){Object.keys(te._styleSummary).forEach(fe=>{const je=this._styleSummary[fe],wt=te._styleSummary[fe];(!je||wt.time>je.time)&&this._updateStyle(fe,wt.value)})}buildKeyframes(){this.applyStylesToKeyframe();const te=new Set,fe=new Set,je=1===this._keyframes.size&&0===this.duration;let wt=[];this._keyframes.forEach((Xt,pi)=>{const Ti=Le(Xt,!0);Object.keys(Ti).forEach(Zi=>{const tn=Ti[Zi];tn==v.k1?te.add(Zi):tn==v.l3&&fe.add(Zi)}),je||(Ti.offset=pi/this.duration),wt.push(Ti)});const Pt=te.size?Oe(te.values()):[],Qt=fe.size?Oe(fe.values()):[];if(je){const Xt=wt[0],pi=Re(Xt);Xt.offset=0,pi.offset=1,wt=[Xt,pi]}return $t(this.element,wt,Pt,Qt,this.duration,this.startTime,this.easing,!1)}}class Li extends Rt{constructor(te,fe,je,wt,Pt,Qt,Xt=!1){super(te,fe,Qt.delay),this.keyframes=je,this.preStyleProps=wt,this.postStyleProps=Pt,this._stretchStartingKeyframe=Xt,this.timings={duration:Qt.duration,delay:Qt.delay,easing:Qt.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let te=this.keyframes,{delay:fe,duration:je,easing:wt}=this.timings;if(this._stretchStartingKeyframe&&fe){const Pt=[],Qt=je+fe,Xt=fe/Qt,pi=Le(te[0],!1);pi.offset=0,Pt.push(pi);const Ti=Le(te[0],!1);Ti.offset=si(Xt),Pt.push(Ti);const Zi=te.length-1;for(let tn=1;tn<=Zi;tn++){let Mn=Le(te[tn],!1);Mn.offset=si((fe+Mn.offset*je)/Qt),Pt.push(Mn)}je=Qt,fe=0,wt="",te=Pt}return $t(this.element,te,this.preStyleProps,this.postStyleProps,je,fe,wt,!0)}}function si(xt,te=3){const fe=Math.pow(10,te-1);return Math.round(xt*fe)/fe}class Ui{}class Xi extends Ui{normalizePropertyName(te,fe){return q(te)}normalizeStyleValue(te,fe,je,wt){let Pt="";const Qt=je.toString().trim();if(Ke[fe]&&0!==je&&"0"!==je)if("number"==typeof je)Pt="px";else{const Xt=je.match(/^[+-]?[\d\.]+([a-z]*)$/);Xt&&0==Xt[1].length&&wt.push(`Please provide a CSS unit value for ${te}:${je}`)}return Qt+Pt}}const Ke=(()=>function _t(xt){const te={};return xt.forEach(fe=>te[fe]=!0),te}("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".split(",")))();function ye(xt,te,fe,je,wt,Pt,Qt,Xt,pi,Ti,Zi,tn,Mn){return{type:0,element:xt,triggerName:te,isRemovalTransition:wt,fromState:fe,fromStyles:Pt,toState:je,toStyles:Qt,timelines:Xt,queriedElements:pi,preStyleProps:Ti,postStyleProps:Zi,totalTime:tn,errors:Mn}}const qe={};class yt{constructor(te,fe,je){this._triggerName=te,this.ast=fe,this._stateStyles=je}match(te,fe,je,wt){return function pe(xt,te,fe,je,wt){return xt.some(Pt=>Pt(te,fe,je,wt))}(this.ast.matchers,te,fe,je,wt)}buildStyles(te,fe,je){const wt=this._stateStyles["*"],Pt=this._stateStyles[te],Qt=wt?wt.buildStyles(fe,je):{};return Pt?Pt.buildStyles(fe,je):Qt}build(te,fe,je,wt,Pt,Qt,Xt,pi,Ti,Zi){const tn=[],Mn=this.ast.options&&this.ast.options.params||qe,tt=this.buildStyles(je,Xt&&Xt.params||qe,tn),Et=pi&&pi.params||qe,It=this.buildStyles(wt,Et,tn),zt=new Set,ri=new Map,vi=new Map,Mi="void"===wt,Ai={params:Object.assign(Object.assign({},Mn),Et)},Ki=Zi?[]:st(te,fe,this.ast.animation,Pt,Qt,tt,It,Ai,Ti,tn);let un=0;if(Ki.forEach(En=>{un=Math.max(En.duration+En.delay,un)}),tn.length)return ye(fe,this._triggerName,je,wt,Mi,tt,It,[],[],ri,vi,un,tn);Ki.forEach(En=>{const zn=En.element,Rr=O(ri,zn,{});En.preStyleProps.forEach(wr=>Rr[wr]=!0);const Fr=O(vi,zn,{});En.postStyleProps.forEach(wr=>Fr[wr]=!0),zn!==fe&&zt.add(zn)});const gn=Oe(zt.values());return ye(fe,this._triggerName,je,wt,Mi,tt,It,Ki,gn,ri,vi,un)}}class Je{constructor(te,fe,je){this.styles=te,this.defaultParams=fe,this.normalizer=je}buildStyles(te,fe){const je={},wt=Re(this.defaultParams);return Object.keys(te).forEach(Pt=>{const Qt=te[Pt];null!=Qt&&(wt[Pt]=Qt)}),this.styles.styles.forEach(Pt=>{if("string"!=typeof Pt){const Qt=Pt;Object.keys(Qt).forEach(Xt=>{let pi=Qt[Xt];pi.length>1&&(pi=ue(pi,wt,fe));const Ti=this.normalizer.normalizePropertyName(Xt,fe);pi=this.normalizer.normalizeStyleValue(Xt,Ti,pi,fe),je[Ti]=pi})}}),je}}class kt{constructor(te,fe,je){this.name=te,this.ast=fe,this._normalizer=je,this.transitionFactories=[],this.states={},fe.states.forEach(wt=>{this.states[wt.name]=new Je(wt.style,wt.options&&wt.options.params||{},je)}),Ni(this.states,"true","1"),Ni(this.states,"false","0"),fe.transitions.forEach(wt=>{this.transitionFactories.push(new yt(te,wt,this.states))}),this.fallbackTransition=function yi(xt,te,fe){return new yt(xt,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Qt,Xt)=>!0],options:null,queryCount:0,depCount:0},te)}(te,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(te,fe,je,wt){return this.transitionFactories.find(Qt=>Qt.match(te,fe,je,wt))||null}matchStyles(te,fe,je){return this.fallbackTransition.buildStyles(te,fe,je)}}function Ni(xt,te,fe){xt.hasOwnProperty(te)?xt.hasOwnProperty(fe)||(xt[fe]=xt[te]):xt.hasOwnProperty(fe)&&(xt[te]=xt[fe])}const Si=new Nt;class qi{constructor(te,fe,je){this.bodyNode=te,this._driver=fe,this._normalizer=je,this._animations={},this._playersById={},this.players=[]}register(te,fe){const je=[],wt=jt(this._driver,fe,je);if(je.length)throw new Error(`Unable to build the animation due to the following errors: ${je.join("\n")}`);this._animations[te]=wt}_buildPlayer(te,fe,je){const wt=te.element,Pt=l(0,this._normalizer,0,te.keyframes,fe,je);return this._driver.animate(wt,Pt,te.duration,te.delay,te.easing,[],!0)}create(te,fe,je={}){const wt=[],Pt=this._animations[te];let Qt;const Xt=new Map;if(Pt?(Qt=st(this._driver,fe,Pt,u,_,{},{},je,Si,wt),Qt.forEach(Zi=>{const tn=O(Xt,Zi.element,{});Zi.postStyleProps.forEach(Mn=>tn[Mn]=null)})):(wt.push("The requested animation doesn't exist or has already been destroyed"),Qt=[]),wt.length)throw new Error(`Unable to create the animation due to the following errors: ${wt.join("\n")}`);Xt.forEach((Zi,tn)=>{Object.keys(Zi).forEach(Mn=>{Zi[Mn]=this._driver.computeStyle(tn,Mn,v.l3)})});const Ti=M(Qt.map(Zi=>{const tn=Xt.get(Zi.element);return this._buildPlayer(Zi,{},tn)}));return this._playersById[te]=Ti,Ti.onDestroy(()=>this.destroy(te)),this.players.push(Ti),Ti}destroy(te){const fe=this._getPlayer(te);fe.destroy(),delete this._playersById[te];const je=this.players.indexOf(fe);je>=0&&this.players.splice(je,1)}_getPlayer(te){const fe=this._playersById[te];if(!fe)throw new Error(`Unable to find the timeline player referenced by ${te}`);return fe}listen(te,fe,je,wt){const Pt=L(fe,"","","");return R(this._getPlayer(te),je,Pt,wt),()=>{}}command(te,fe,je,wt){if("register"==je)return void this.register(te,wt[0]);if("create"==je)return void this.create(te,fe,wt[0]||{});const Pt=this._getPlayer(te);switch(je){case"play":Pt.play();break;case"pause":Pt.pause();break;case"reset":Pt.reset();break;case"restart":Pt.restart();break;case"finish":Pt.finish();break;case"init":Pt.init();break;case"setPosition":Pt.setPosition(parseFloat(wt[0]));break;case"destroy":this.destroy(te)}}}const ot="ng-animate-queued",gt="ng-animate-disabled",Lt=".ng-animate-disabled",Yi=[],$i={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Cn={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ln="__ng_removed";class _n{constructor(te,fe=""){this.namespaceId=fe;const je=te&&te.hasOwnProperty("value");if(this.value=function La(xt){return null!=xt?xt:null}(je?te.value:te),je){const Pt=Re(te);delete Pt.value,this.options=Pt}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(te){const fe=te.params;if(fe){const je=this.options.params;Object.keys(fe).forEach(wt=>{null==je[wt]&&(je[wt]=fe[wt])})}}}const kn="void",dr=new _n(kn);class wi{constructor(te,fe,je){this.id=te,this.hostElement=fe,this._engine=je,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+te,ur(fe,this._hostClassName)}listen(te,fe,je,wt){if(!this._triggers.hasOwnProperty(fe))throw new Error(`Unable to listen on the animation trigger event "${je}" because the animation trigger "${fe}" doesn't exist!`);if(null==je||0==je.length)throw new Error(`Unable to listen on the animation trigger "${fe}" because the provided event is undefined!`);if(!function Or(xt){return"start"==xt||"done"==xt}(je))throw new Error(`The provided animation trigger event "${je}" for the animation trigger "${fe}" is not supported!`);const Pt=O(this._elementListeners,te,[]),Qt={name:fe,phase:je,callback:wt};Pt.push(Qt);const Xt=O(this._engine.statesByElement,te,{});return Xt.hasOwnProperty(fe)||(ur(te,x),ur(te,x+"-"+fe),Xt[fe]=dr),()=>{this._engine.afterFlush(()=>{const pi=Pt.indexOf(Qt);pi>=0&&Pt.splice(pi,1),this._triggers[fe]||delete Xt[fe]})}}register(te,fe){return!this._triggers[te]&&(this._triggers[te]=fe,!0)}_getTrigger(te){const fe=this._triggers[te];if(!fe)throw new Error(`The provided animation trigger "${te}" has not been registered!`);return fe}trigger(te,fe,je,wt=!0){const Pt=this._getTrigger(fe),Qt=new dn(this.id,fe,te);let Xt=this._engine.statesByElement.get(te);Xt||(ur(te,x),ur(te,x+"-"+fe),this._engine.statesByElement.set(te,Xt={}));let pi=Xt[fe];const Ti=new _n(je,this.id);if(!(je&&je.hasOwnProperty("value"))&&pi&&Ti.absorbOptions(pi.options),Xt[fe]=Ti,pi||(pi=dr),Ti.value!==kn&&pi.value===Ti.value){if(!function Ya(xt,te){const fe=Object.keys(xt),je=Object.keys(te);if(fe.length!=je.length)return!1;for(let wt=0;wt{ae(te,It),Y(te,zt)})}return}const Mn=O(this._engine.playersByElement,te,[]);Mn.forEach(Et=>{Et.namespaceId==this.id&&Et.triggerName==fe&&Et.queued&&Et.destroy()});let On=Pt.matchTransition(pi.value,Ti.value,te,Ti.params),tt=!1;if(!On){if(!wt)return;On=Pt.fallbackTransition,tt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:te,triggerName:fe,transition:On,fromState:pi,toState:Ti,player:Qt,isFallbackTransition:tt}),tt||(ur(te,ot),Qt.onStart(()=>{pa(te,ot)})),Qt.onDone(()=>{let Et=this.players.indexOf(Qt);Et>=0&&this.players.splice(Et,1);const It=this._engine.playersByElement.get(te);if(It){let zt=It.indexOf(Qt);zt>=0&&It.splice(zt,1)}}),this.players.push(Qt),Mn.push(Qt),Qt}deregister(te){delete this._triggers[te],this._engine.statesByElement.forEach((fe,je)=>{delete fe[te]}),this._elementListeners.forEach((fe,je)=>{this._elementListeners.set(je,fe.filter(wt=>wt.name!=te))})}clearElementCache(te){this._engine.statesByElement.delete(te),this._elementListeners.delete(te);const fe=this._engine.playersByElement.get(te);fe&&(fe.forEach(je=>je.destroy()),this._engine.playersByElement.delete(te))}_signalRemovalForInnerTriggers(te,fe){const je=this._engine.driver.query(te,r,!0);je.forEach(wt=>{if(wt[Ln])return;const Pt=this._engine.fetchNamespacesByElement(wt);Pt.size?Pt.forEach(Qt=>Qt.triggerLeaveAnimation(wt,fe,!1,!0)):this.clearElementCache(wt)}),this._engine.afterFlushAnimationsDone(()=>je.forEach(wt=>this.clearElementCache(wt)))}triggerLeaveAnimation(te,fe,je,wt){const Pt=this._engine.statesByElement.get(te);if(Pt){const Qt=[];if(Object.keys(Pt).forEach(Xt=>{if(this._triggers[Xt]){const pi=this.trigger(te,Xt,kn,wt);pi&&Qt.push(pi)}}),Qt.length)return this._engine.markElementAsRemoved(this.id,te,!0,fe),je&&M(Qt).onDone(()=>this._engine.processLeaveNode(te)),!0}return!1}prepareLeaveAnimationListeners(te){const fe=this._elementListeners.get(te),je=this._engine.statesByElement.get(te);if(fe&&je){const wt=new Set;fe.forEach(Pt=>{const Qt=Pt.name;if(wt.has(Qt))return;wt.add(Qt);const pi=this._triggers[Qt].fallbackTransition,Ti=je[Qt]||dr,Zi=new _n(kn),tn=new dn(this.id,Qt,te);this._engine.totalQueuedPlayers++,this._queue.push({element:te,triggerName:Qt,transition:pi,fromState:Ti,toState:Zi,player:tn,isFallbackTransition:!0})})}}removeNode(te,fe){const je=this._engine;if(te.childElementCount&&this._signalRemovalForInnerTriggers(te,fe),this.triggerLeaveAnimation(te,fe,!0))return;let wt=!1;if(je.totalAnimations){const Pt=je.players.length?je.playersByQueriedElement.get(te):[];if(Pt&&Pt.length)wt=!0;else{let Qt=te;for(;Qt=Qt.parentNode;)if(je.statesByElement.get(Qt)){wt=!0;break}}}if(this.prepareLeaveAnimationListeners(te),wt)je.markElementAsRemoved(this.id,te,!1,fe);else{const Pt=te[Ln];(!Pt||Pt===$i)&&(je.afterFlush(()=>this.clearElementCache(te)),je.destroyInnerAnimations(te),je._onRemovalComplete(te,fe))}}insertNode(te,fe){ur(te,this._hostClassName)}drainQueuedTransitions(te){const fe=[];return this._queue.forEach(je=>{const wt=je.player;if(wt.destroyed)return;const Pt=je.element,Qt=this._elementListeners.get(Pt);Qt&&Qt.forEach(Xt=>{if(Xt.name==je.triggerName){const pi=L(Pt,je.triggerName,je.fromState.value,je.toState.value);pi._data=te,R(je.player,Xt.phase,pi,Xt.callback)}}),wt.markedForDestroy?this._engine.afterFlush(()=>{wt.destroy()}):fe.push(je)}),this._queue=[],fe.sort((je,wt)=>{const Pt=je.transition.ast.depCount,Qt=wt.transition.ast.depCount;return 0==Pt||0==Qt?Pt-Qt:this._engine.driver.containsElement(je.element,wt.element)?1:-1})}destroy(te){this.players.forEach(fe=>fe.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,te)}elementContainsData(te){let fe=!1;return this._elementListeners.has(te)&&(fe=!0),fe=!!this._queue.find(je=>je.element===te)||fe,fe}}class Fi{constructor(te,fe,je){this.bodyNode=te,this.driver=fe,this._normalizer=je,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(wt,Pt)=>{}}_onRemovalComplete(te,fe){this.onRemovalComplete(te,fe)}get queuedPlayers(){const te=[];return this._namespaceList.forEach(fe=>{fe.players.forEach(je=>{je.queued&&te.push(je)})}),te}createNamespace(te,fe){const je=new wi(te,fe,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,fe)?this._balanceNamespaceList(je,fe):(this.newHostElements.set(fe,je),this.collectEnterElement(fe)),this._namespaceLookup[te]=je}_balanceNamespaceList(te,fe){const je=this._namespaceList.length-1;if(je>=0){let wt=!1;for(let Pt=je;Pt>=0;Pt--)if(this.driver.containsElement(this._namespaceList[Pt].hostElement,fe)){this._namespaceList.splice(Pt+1,0,te),wt=!0;break}wt||this._namespaceList.splice(0,0,te)}else this._namespaceList.push(te);return this.namespacesByHostElement.set(fe,te),te}register(te,fe){let je=this._namespaceLookup[te];return je||(je=this.createNamespace(te,fe)),je}registerTrigger(te,fe,je){let wt=this._namespaceLookup[te];wt&&wt.register(fe,je)&&this.totalAnimations++}destroy(te,fe){if(!te)return;const je=this._fetchNamespace(te);this.afterFlush(()=>{this.namespacesByHostElement.delete(je.hostElement),delete this._namespaceLookup[te];const wt=this._namespaceList.indexOf(je);wt>=0&&this._namespaceList.splice(wt,1)}),this.afterFlushAnimationsDone(()=>je.destroy(fe))}_fetchNamespace(te){return this._namespaceLookup[te]}fetchNamespacesByElement(te){const fe=new Set,je=this.statesByElement.get(te);if(je){const wt=Object.keys(je);for(let Pt=0;Pt=0&&this.collectedLeaveElements.splice(Qt,1)}if(te){const Qt=this._fetchNamespace(te);Qt&&Qt.insertNode(fe,je)}wt&&this.collectEnterElement(fe)}collectEnterElement(te){this.collectedEnterElements.push(te)}markElementAsDisabled(te,fe){fe?this.disabledNodes.has(te)||(this.disabledNodes.add(te),ur(te,gt)):this.disabledNodes.has(te)&&(this.disabledNodes.delete(te),pa(te,gt))}removeNode(te,fe,je,wt){if(Gn(fe)){const Pt=te?this._fetchNamespace(te):null;if(Pt?Pt.removeNode(fe,wt):this.markElementAsRemoved(te,fe,!1,wt),je){const Qt=this.namespacesByHostElement.get(fe);Qt&&Qt.id!==te&&Qt.removeNode(fe,wt)}}else this._onRemovalComplete(fe,wt)}markElementAsRemoved(te,fe,je,wt){this.collectedLeaveElements.push(fe),fe[Ln]={namespaceId:te,setForRemoval:wt,hasAnimation:je,removedBeforeQueried:!1}}listen(te,fe,je,wt,Pt){return Gn(fe)?this._fetchNamespace(te).listen(fe,je,wt,Pt):()=>{}}_buildInstruction(te,fe,je,wt,Pt){return te.transition.build(this.driver,te.element,te.fromState.value,te.toState.value,je,wt,te.fromState.options,te.toState.options,fe,Pt)}destroyInnerAnimations(te){let fe=this.driver.query(te,r,!0);fe.forEach(je=>this.destroyActiveAnimationsForElement(je)),0!=this.playersByQueriedElement.size&&(fe=this.driver.query(te,U,!0),fe.forEach(je=>this.finishActiveQueriedAnimationOnElement(je)))}destroyActiveAnimationsForElement(te){const fe=this.playersByElement.get(te);fe&&fe.forEach(je=>{je.queued?je.markedForDestroy=!0:je.destroy()})}finishActiveQueriedAnimationOnElement(te){const fe=this.playersByQueriedElement.get(te);fe&&fe.forEach(je=>je.finish())}whenRenderingDone(){return new Promise(te=>{if(this.players.length)return M(this.players).onDone(()=>te());te()})}processLeaveNode(te){const fe=te[Ln];if(fe&&fe.setForRemoval){if(te[Ln]=$i,fe.namespaceId){this.destroyInnerAnimations(te);const je=this._fetchNamespace(fe.namespaceId);je&&je.clearElementCache(te)}this._onRemovalComplete(te,fe.setForRemoval)}this.driver.matchesElement(te,Lt)&&this.markElementAsDisabled(te,!1),this.driver.query(te,Lt,!0).forEach(je=>{this.markElementAsDisabled(je,!1)})}flush(te=-1){let fe=[];if(this.newHostElements.size&&(this.newHostElements.forEach((je,wt)=>this._balanceNamespaceList(je,wt)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let je=0;jeje()),this._flushFns=[],this._whenQuietFns.length){const je=this._whenQuietFns;this._whenQuietFns=[],fe.length?M(fe).onDone(()=>{je.forEach(wt=>wt())}):je.forEach(wt=>wt())}}reportError(te){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${te.join("\n")}`)}_flushAnimations(te,fe){const je=new Nt,wt=[],Pt=new Map,Qt=[],Xt=new Map,pi=new Map,Ti=new Map,Zi=new Set;this.disabledNodes.forEach(Hi=>{Zi.add(Hi);const on=this.driver.query(Hi,".ng-animate-queued",!0);for(let nn=0;nn{const nn=u+Et++;tt.set(on,nn),Hi.forEach(Pn=>ur(Pn,nn))});const It=[],zt=new Set,ri=new Set;for(let Hi=0;Hizt.add(Pn)):ri.add(on))}const vi=new Map,Mi=Fa(Mn,Array.from(zt));Mi.forEach((Hi,on)=>{const nn=_+Et++;vi.set(on,nn),Hi.forEach(Pn=>ur(Pn,nn))}),te.push(()=>{On.forEach((Hi,on)=>{const nn=tt.get(on);Hi.forEach(Pn=>pa(Pn,nn))}),Mi.forEach((Hi,on)=>{const nn=vi.get(on);Hi.forEach(Pn=>pa(Pn,nn))}),It.forEach(Hi=>{this.processLeaveNode(Hi)})});const Ai=[],Ki=[];for(let Hi=this._namespaceList.length-1;Hi>=0;Hi--)this._namespaceList[Hi].drainQueuedTransitions(fe).forEach(nn=>{const Pn=nn.player,jn=nn.element;if(Ai.push(Pn),this.collectedEnterElements.length){const Ia=jn[Ln];if(Ia&&Ia.setForMove)return void Pn.destroy()}const da=!tn||!this.driver.containsElement(tn,jn),Xr=vi.get(jn),$r=tt.get(jn),Yn=this._buildInstruction(nn,je,$r,Xr,da);if(Yn.errors&&Yn.errors.length)Ki.push(Yn);else{if(da)return Pn.onStart(()=>ae(jn,Yn.fromStyles)),Pn.onDestroy(()=>Y(jn,Yn.toStyles)),void wt.push(Pn);if(nn.isFallbackTransition)return Pn.onStart(()=>ae(jn,Yn.fromStyles)),Pn.onDestroy(()=>Y(jn,Yn.toStyles)),void wt.push(Pn);Yn.timelines.forEach(Ia=>Ia.stretchStartingKeyframe=!0),je.append(jn,Yn.timelines),Qt.push({instruction:Yn,player:Pn,element:jn}),Yn.queriedElements.forEach(Ia=>O(Xt,Ia,[]).push(Pn)),Yn.preStyleProps.forEach((Ia,Ps)=>{const Vs=Object.keys(Ia);if(Vs.length){let va=pi.get(Ps);va||pi.set(Ps,va=new Set),Vs.forEach(us=>va.add(us))}}),Yn.postStyleProps.forEach((Ia,Ps)=>{const Vs=Object.keys(Ia);let va=Ti.get(Ps);va||Ti.set(Ps,va=new Set),Vs.forEach(us=>va.add(us))})}});if(Ki.length){const Hi=[];Ki.forEach(on=>{Hi.push(`@${on.triggerName} has failed due to:\n`),on.errors.forEach(nn=>Hi.push(`- ${nn}\n`))}),Ai.forEach(on=>on.destroy()),this.reportError(Hi)}const un=new Map,gn=new Map;Qt.forEach(Hi=>{const on=Hi.element;je.has(on)&&(gn.set(on,on),this._beforeAnimationBuild(Hi.player.namespaceId,Hi.instruction,un))}),wt.forEach(Hi=>{const on=Hi.element;this._getPreviousPlayers(on,!1,Hi.namespaceId,Hi.triggerName,null).forEach(Pn=>{O(un,on,[]).push(Pn),Pn.destroy()})});const En=It.filter(Hi=>Zr(Hi,pi,Ti)),zn=new Map;Ma(zn,this.driver,ri,Ti,v.l3).forEach(Hi=>{Zr(Hi,pi,Ti)&&En.push(Hi)});const Fr=new Map;On.forEach((Hi,on)=>{Ma(Fr,this.driver,new Set(Hi),pi,v.k1)}),En.forEach(Hi=>{const on=zn.get(Hi),nn=Fr.get(Hi);zn.set(Hi,Object.assign(Object.assign({},on),nn))});const wr=[],Vn=[],mr={};Qt.forEach(Hi=>{const{element:on,player:nn,instruction:Pn}=Hi;if(je.has(on)){if(Zi.has(on))return nn.onDestroy(()=>Y(on,Pn.toStyles)),nn.disabled=!0,nn.overrideTotalTime(Pn.totalTime),void wt.push(nn);let jn=mr;if(gn.size>1){let Xr=on;const $r=[];for(;Xr=Xr.parentNode;){const Yn=gn.get(Xr);if(Yn){jn=Yn;break}$r.push(Xr)}$r.forEach(Yn=>gn.set(Yn,jn))}const da=this._buildAnimation(nn.namespaceId,Pn,un,Pt,Fr,zn);if(nn.setRealPlayer(da),jn===mr)wr.push(nn);else{const Xr=this.playersByElement.get(jn);Xr&&Xr.length&&(nn.parentPlayer=M(Xr)),wt.push(nn)}}else ae(on,Pn.fromStyles),nn.onDestroy(()=>Y(on,Pn.toStyles)),Vn.push(nn),Zi.has(on)&&wt.push(nn)}),Vn.forEach(Hi=>{const on=Pt.get(Hi.element);if(on&&on.length){const nn=M(on);Hi.setRealPlayer(nn)}}),wt.forEach(Hi=>{Hi.parentPlayer?Hi.syncPlayerEvents(Hi.parentPlayer):Hi.destroy()});for(let Hi=0;Hi!da.destroyed);jn.length?ma(this,on,jn):this.processLeaveNode(on)}return It.length=0,wr.forEach(Hi=>{this.players.push(Hi),Hi.onDone(()=>{Hi.destroy();const on=this.players.indexOf(Hi);this.players.splice(on,1)}),Hi.play()}),wr}elementContainsData(te,fe){let je=!1;const wt=fe[Ln];return wt&&wt.setForRemoval&&(je=!0),this.playersByElement.has(fe)&&(je=!0),this.playersByQueriedElement.has(fe)&&(je=!0),this.statesByElement.has(fe)&&(je=!0),this._fetchNamespace(te).elementContainsData(fe)||je}afterFlush(te){this._flushFns.push(te)}afterFlushAnimationsDone(te){this._whenQuietFns.push(te)}_getPreviousPlayers(te,fe,je,wt,Pt){let Qt=[];if(fe){const Xt=this.playersByQueriedElement.get(te);Xt&&(Qt=Xt)}else{const Xt=this.playersByElement.get(te);if(Xt){const pi=!Pt||Pt==kn;Xt.forEach(Ti=>{Ti.queued||!pi&&Ti.triggerName!=wt||Qt.push(Ti)})}}return(je||wt)&&(Qt=Qt.filter(Xt=>!(je&&je!=Xt.namespaceId||wt&&wt!=Xt.triggerName))),Qt}_beforeAnimationBuild(te,fe,je){const Pt=fe.element,Qt=fe.isRemovalTransition?void 0:te,Xt=fe.isRemovalTransition?void 0:fe.triggerName;for(const pi of fe.timelines){const Ti=pi.element,Zi=Ti!==Pt,tn=O(je,Ti,[]);this._getPreviousPlayers(Ti,Zi,Qt,Xt,fe.toState).forEach(On=>{const tt=On.getRealPlayer();tt.beforeDestroy&&tt.beforeDestroy(),On.destroy(),tn.push(On)})}ae(Pt,fe.fromStyles)}_buildAnimation(te,fe,je,wt,Pt,Qt){const Xt=fe.triggerName,pi=fe.element,Ti=[],Zi=new Set,tn=new Set,Mn=fe.timelines.map(tt=>{const Et=tt.element;Zi.add(Et);const It=Et[Ln];if(It&&It.removedBeforeQueried)return new v.ZN(tt.duration,tt.delay);const zt=Et!==pi,ri=function Ir(xt){const te=[];return Ga(xt,te),te}((je.get(Et)||Yi).map(un=>un.getRealPlayer())).filter(un=>!!un.element&&un.element===Et),vi=Pt.get(Et),Mi=Qt.get(Et),Ai=l(0,this._normalizer,0,tt.keyframes,vi,Mi),Ki=this._buildPlayer(tt,Ai,ri);if(tt.subTimeline&&wt&&tn.add(Et),zt){const un=new dn(te,Xt,Et);un.setRealPlayer(Ki),Ti.push(un)}return Ki});Ti.forEach(tt=>{O(this.playersByQueriedElement,tt.element,[]).push(tt),tt.onDone(()=>function Lr(xt,te,fe){let je;if(xt instanceof Map){if(je=xt.get(te),je){if(je.length){const wt=je.indexOf(fe);je.splice(wt,1)}0==je.length&&xt.delete(te)}}else if(je=xt[te],je){if(je.length){const wt=je.indexOf(fe);je.splice(wt,1)}0==je.length&&delete xt[te]}return je}(this.playersByQueriedElement,tt.element,tt))}),Zi.forEach(tt=>ur(tt,b));const On=M(Mn);return On.onDestroy(()=>{Zi.forEach(tt=>pa(tt,b)),Y(pi,fe.toStyles)}),tn.forEach(tt=>{O(wt,tt,[]).push(On)}),On}_buildPlayer(te,fe,je){return fe.length>0?this.driver.animate(te.element,fe,te.duration,te.delay,te.easing,je):new v.ZN(te.duration,te.delay)}}class dn{constructor(te,fe,je){this.namespaceId=te,this.triggerName=fe,this.element=je,this._player=new v.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(te){this._containsRealPlayer||(this._player=te,Object.keys(this._queuedCallbacks).forEach(fe=>{this._queuedCallbacks[fe].forEach(je=>R(te,fe,void 0,je))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(te.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(te){this.totalTime=te}syncPlayerEvents(te){const fe=this._player;fe.triggerCallback&&te.onStart(()=>fe.triggerCallback("start")),te.onDone(()=>this.finish()),te.onDestroy(()=>this.destroy())}_queueEvent(te,fe){O(this._queuedCallbacks,te,[]).push(fe)}onDone(te){this.queued&&this._queueEvent("done",te),this._player.onDone(te)}onStart(te){this.queued&&this._queueEvent("start",te),this._player.onStart(te)}onDestroy(te){this.queued&&this._queueEvent("destroy",te),this._player.onDestroy(te)}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(te){this.queued||this._player.setPosition(te)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(te){const fe=this._player;fe.triggerCallback&&fe.triggerCallback(te)}}function Gn(xt){return xt&&1===xt.nodeType}function Ra(xt,te){const fe=xt.style.display;return xt.style.display=null!=te?te:"none",fe}function Ma(xt,te,fe,je,wt){const Pt=[];fe.forEach(pi=>Pt.push(Ra(pi)));const Qt=[];je.forEach((pi,Ti)=>{const Zi={};pi.forEach(tn=>{const Mn=Zi[tn]=te.computeStyle(Ti,tn,wt);(!Mn||0==Mn.length)&&(Ti[Ln]=Cn,Qt.push(Ti))}),xt.set(Ti,Zi)});let Xt=0;return fe.forEach(pi=>Ra(pi,Pt[Xt++])),Qt}function Fa(xt,te){const fe=new Map;if(xt.forEach(Xt=>fe.set(Xt,[])),0==te.length)return fe;const wt=new Set(te),Pt=new Map;function Qt(Xt){if(!Xt)return 1;let pi=Pt.get(Xt);if(pi)return pi;const Ti=Xt.parentNode;return pi=fe.has(Ti)?Ti:wt.has(Ti)?1:Qt(Ti),Pt.set(Xt,pi),pi}return te.forEach(Xt=>{const pi=Qt(Xt);1!==pi&&fe.get(pi).push(Xt)}),fe}const xr="$$classes";function ur(xt,te){if(xt.classList)xt.classList.add(te);else{let fe=xt[xr];fe||(fe=xt[xr]={}),fe[te]=!0}}function pa(xt,te){if(xt.classList)xt.classList.remove(te);else{let fe=xt[xr];fe&&delete fe[te]}}function ma(xt,te,fe){M(fe).onDone(()=>xt.processLeaveNode(te))}function Ga(xt,te){for(let fe=0;fewt.add(Pt)):te.set(xt,je),fe.delete(xt),!0}class Pr{constructor(te,fe,je){this.bodyNode=te,this._driver=fe,this._normalizer=je,this._triggerCache={},this.onRemovalComplete=(wt,Pt)=>{},this._transitionEngine=new Fi(te,fe,je),this._timelineEngine=new qi(te,fe,je),this._transitionEngine.onRemovalComplete=(wt,Pt)=>this.onRemovalComplete(wt,Pt)}registerTrigger(te,fe,je,wt,Pt){const Qt=te+"-"+wt;let Xt=this._triggerCache[Qt];if(!Xt){const pi=[],Ti=jt(this._driver,Pt,pi);if(pi.length)throw new Error(`The animation trigger "${wt}" has failed to build due to the following errors:\n - ${pi.join("\n - ")}`);Xt=function St(xt,te,fe){return new kt(xt,te,fe)}(wt,Ti,this._normalizer),this._triggerCache[Qt]=Xt}this._transitionEngine.registerTrigger(fe,wt,Xt)}register(te,fe){this._transitionEngine.register(te,fe)}destroy(te,fe){this._transitionEngine.destroy(te,fe)}onInsert(te,fe,je,wt){this._transitionEngine.insertNode(te,fe,je,wt)}onRemove(te,fe,je,wt){this._transitionEngine.removeNode(te,fe,wt||!1,je)}disableAnimations(te,fe){this._transitionEngine.markElementAsDisabled(te,fe)}process(te,fe,je,wt){if("@"==je.charAt(0)){const[Pt,Qt]=A(je);this._timelineEngine.command(Pt,fe,Qt,wt)}else this._transitionEngine.trigger(te,fe,je,wt)}listen(te,fe,je,wt,Pt){if("@"==je.charAt(0)){const[Qt,Xt]=A(je);return this._timelineEngine.listen(Qt,fe,Xt,Pt)}return this._transitionEngine.listen(te,fe,je,wt,Pt)}flush(te=-1){this._transitionEngine.flush(te)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Kn(xt,te){let fe=null,je=null;return Array.isArray(te)&&te.length?(fe=Qn(te[0]),te.length>1&&(je=Qn(te[te.length-1]))):te&&(fe=Qn(te)),fe||je?new vn(xt,fe,je):null}let vn=(()=>{class xt{constructor(fe,je,wt){this._element=fe,this._startStyles=je,this._endStyles=wt,this._state=0;let Pt=xt.initialStylesByElement.get(fe);Pt||xt.initialStylesByElement.set(fe,Pt={}),this._initialStyles=Pt}start(){this._state<1&&(this._startStyles&&Y(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Y(this._element,this._initialStyles),this._endStyles&&(Y(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(xt.initialStylesByElement.delete(this._element),this._startStyles&&(ae(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ae(this._element,this._endStyles),this._endStyles=null),Y(this._element,this._initialStyles),this._state=3)}}return xt.initialStylesByElement=new WeakMap,xt})();function Qn(xt){let te=null;const fe=Object.keys(xt);for(let je=0;jethis._handleCallback(pi)}apply(){(function $n(xt,te){const fe=ha(xt,"").trim();let je=0;fe.length&&(je=function pr(xt,te){let fe=0;for(let je=0;je=this._delay&&je>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Aa(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function wa(xt,te){const je=ha(xt,"").split(","),wt=ca(je,te);wt>=0&&(je.splice(wt,1),Vr(xt,"",je.join(",")))}(this._element,this._name))}}function ga(xt,te,fe){Vr(xt,"PlayState",fe,Nr(xt,te))}function Nr(xt,te){const fe=ha(xt,"");return fe.indexOf(",")>0?ca(fe.split(","),te):ca([fe],te)}function ca(xt,te){for(let fe=0;fe=0)return fe;return-1}function Aa(xt,te,fe){fe?xt.removeEventListener(kr,te):xt.addEventListener(kr,te)}function Vr(xt,te,fe,je){const wt=Wa+te;if(null!=je){const Pt=xt.style[wt];if(Pt.length){const Qt=Pt.split(",");Qt[je]=fe,fe=Qt.join(",")}}xt.style[wt]=fe}function ha(xt,te){return xt.style[Wa+te]||""}class Oa{constructor(te,fe,je,wt,Pt,Qt,Xt,pi){this.element=te,this.keyframes=fe,this.animationName=je,this._duration=wt,this._delay=Pt,this._finalStyles=Xt,this._specialStyles=pi,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=Qt||"linear",this.totalTime=wt+Pt,this._buildStyler()}onStart(te){this._onStartFns.push(te)}onDone(te){this._onDoneFns.push(te)}onDestroy(te){this._onDestroyFns.push(te)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(te=>te()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(te=>te()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(te=>te()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(te){this._styler.setPosition(te)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Jr(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(te){const fe="start"==te?this._onStartFns:this._onDoneFns;fe.forEach(je=>je()),fe.length=0}beforeDestroy(){this.init();const te={};if(this.hasStarted()){const fe=this._state>=3;Object.keys(this._finalStyles).forEach(je=>{"offset"!=je&&(te[je]=fe?this._finalStyles[je]:lt(this.element,je))})}this.currentSnapshot=te}}class ra extends v.ZN{constructor(te,fe){super(),this.element=te,this._startingStyles={},this.__initialized=!1,this._styles=le(fe)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(te=>{this._startingStyles[te]=this.element.style[te]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(te=>this.element.style.setProperty(te,this._styles[te])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(te=>{const fe=this._startingStyles[te];fe?this.element.style.setProperty(te,fe):this.element.style.removeProperty(te)}),this._startingStyles=null,super.destroy())}}class Zn{constructor(){this._count=0}validateStyleProperty(te){return ee(te)}matchesElement(te,fe){return he(te,fe)}containsElement(te,fe){return re(te,fe)}query(te,fe,je){return de(te,fe,je)}computeStyle(te,fe,je){return window.getComputedStyle(te)[fe]}buildKeyframeElement(te,fe,je){je=je.map(Xt=>le(Xt));let wt=`@keyframes ${fe} {\n`,Pt="";je.forEach(Xt=>{Pt=" ";const pi=parseFloat(Xt.offset);wt+=`${Pt}${100*pi}% {\n`,Pt+=" ",Object.keys(Xt).forEach(Ti=>{const Zi=Xt[Ti];switch(Ti){case"offset":return;case"easing":return void(Zi&&(wt+=`${Pt}animation-timing-function: ${Zi};\n`));default:return void(wt+=`${Pt}${Ti}: ${Zi};\n`)}}),wt+=`${Pt}}\n`}),wt+="}\n";const Qt=document.createElement("style");return Qt.textContent=wt,Qt}animate(te,fe,je,wt,Pt,Qt=[],Xt){const pi=Qt.filter(It=>It instanceof Oa),Ti={};ce(je,wt)&&pi.forEach(It=>{let zt=It.currentSnapshot;Object.keys(zt).forEach(ri=>Ti[ri]=zt[ri])});const Zi=function ja(xt){let te={};return xt&&(Array.isArray(xt)?xt:[xt]).forEach(je=>{Object.keys(je).forEach(wt=>{"offset"==wt||"easing"==wt||(te[wt]=je[wt])})}),te}(fe=Me(te,fe,Ti));if(0==je)return new ra(te,Zi);const tn="gen_css_kf_"+this._count++,Mn=this.buildKeyframeElement(te,tn,fe);(function ns(xt){var te;const fe=null===(te=xt.getRootNode)||void 0===te?void 0:te.call(xt);return"undefined"!=typeof ShadowRoot&&fe instanceof ShadowRoot?fe:document.head})(te).appendChild(Mn);const tt=Kn(te,fe),Et=new Oa(te,fe,tn,je,wt,Pt,Zi,tt);return Et.onDestroy(()=>function Xe(xt){xt.parentNode.removeChild(xt)}(Mn)),Et}}class ne{constructor(te,fe,je,wt){this.element=te,this.keyframes=fe,this.options=je,this._specialStyles=wt,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=je.duration,this._delay=je.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(te=>te()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const te=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,te,this.options),this._finalKeyframe=te.length?te[te.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(te,fe,je){return te.animate(fe,je)}onStart(te){this._onStartFns.push(te)}onDone(te){this._onDoneFns.push(te)}onDestroy(te){this._onDestroyFns.push(te)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(te=>te()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&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(te=>te()),this._onDestroyFns=[])}setPosition(te){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=te*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const te={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(fe=>{"offset"!=fe&&(te[fe]=this._finished?this._finalKeyframe[fe]:lt(this.element,fe))}),this.currentSnapshot=te}triggerCallback(te){const fe="start"==te?this._onStartFns:this._onDoneFns;fe.forEach(je=>je()),fe.length=0}}class Qe{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(mi().toString()),this._cssKeyframesDriver=new Zn}validateStyleProperty(te){return ee(te)}matchesElement(te,fe){return he(te,fe)}containsElement(te,fe){return re(te,fe)}query(te,fe,je){return de(te,fe,je)}computeStyle(te,fe,je){return window.getComputedStyle(te)[fe]}overrideWebAnimationsSupport(te){this._isNativeImpl=te}animate(te,fe,je,wt,Pt,Qt=[],Xt){if(!Xt&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(te,fe,je,wt,Pt,Qt);const Zi={duration:je,delay:wt,fill:0==wt?"both":"forwards"};Pt&&(Zi.easing=Pt);const tn={},Mn=Qt.filter(tt=>tt instanceof ne);ce(je,wt)&&Mn.forEach(tt=>{let Et=tt.currentSnapshot;Object.keys(Et).forEach(It=>tn[It]=Et[It])});const On=Kn(te,fe=Me(te,fe=fe.map(tt=>Le(tt,!1)),tn));return new ne(te,fe,Zi,On)}}function mi(){return C()&&Element.prototype.animate||{}}var Ct=m(9808);let ti=(()=>{class xt extends v._j{constructor(fe,je){super(),this._nextAnimationId=0,this._renderer=fe.createRenderer(je.body,{id:"0",encapsulation:e.ifc.None,styles:[],data:{animation:[]}})}build(fe){const je=this._nextAnimationId.toString();this._nextAnimationId++;const wt=Array.isArray(fe)?(0,v.vP)(fe):fe;return xi(this._renderer,null,je,"register",[wt]),new bt(je,this._renderer)}}return xt.\u0275fac=function(fe){return new(fe||xt)(e.LFG(e.FYo),e.LFG(Ct.K0))},xt.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac}),xt})();class bt extends v.LC{constructor(te,fe){super(),this._id=te,this._renderer=fe}create(te,fe){return new Yt(this._id,te,fe||{},this._renderer)}}class Yt{constructor(te,fe,je,wt){this.id=te,this.element=fe,this._renderer=wt,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",je)}_listen(te,fe){return this._renderer.listen(this.element,`@@${this.id}:${te}`,fe)}_command(te,...fe){return xi(this._renderer,this.element,this.id,te,fe)}onDone(te){this._listen("done",te)}onStart(te){this._listen("start",te)}onDestroy(te){this._listen("destroy",te)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(te){this._command("setPosition",te)}getPosition(){var te,fe;return null!==(fe=null===(te=this._renderer.engine.players[+this.id])||void 0===te?void 0:te.getPosition())&&void 0!==fe?fe:0}}function xi(xt,te,fe,je,wt){return xt.setProperty(te,`@@${fe}:${je}`,wt)}const yn="@.disabled";let An=(()=>{class xt{constructor(fe,je,wt){this.delegate=fe,this.engine=je,this._zone=wt,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),je.onRemovalComplete=(Pt,Qt)=>{const Xt=null==Qt?void 0:Qt.parentNode(Pt);Xt&&Qt.removeChild(Xt,Pt)}}createRenderer(fe,je){const Pt=this.delegate.createRenderer(fe,je);if(!(fe&&je&&je.data&&je.data.animation)){let Zi=this._rendererCache.get(Pt);return Zi||(Zi=new Wi("",Pt,this.engine),this._rendererCache.set(Pt,Zi)),Zi}const Qt=je.id,Xt=je.id+"-"+this._currentId;this._currentId++,this.engine.register(Xt,fe);const pi=Zi=>{Array.isArray(Zi)?Zi.forEach(pi):this.engine.registerTrigger(Qt,Xt,fe,Zi.name,Zi)};return je.data.animation.forEach(pi),new Cr(this,Xt,Pt,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(fe,je,wt){fe>=0&&feje(wt)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Pt=>{const[Qt,Xt]=Pt;Qt(Xt)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([je,wt]))}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()}}return xt.\u0275fac=function(fe){return new(fe||xt)(e.LFG(e.FYo),e.LFG(Pr),e.LFG(e.R0b))},xt.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac}),xt})();class Wi{constructor(te,fe,je){this.namespaceId=te,this.delegate=fe,this.engine=je,this.destroyNode=this.delegate.destroyNode?wt=>fe.destroyNode(wt):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(te,fe){return this.delegate.createElement(te,fe)}createComment(te){return this.delegate.createComment(te)}createText(te){return this.delegate.createText(te)}appendChild(te,fe){this.delegate.appendChild(te,fe),this.engine.onInsert(this.namespaceId,fe,te,!1)}insertBefore(te,fe,je,wt=!0){this.delegate.insertBefore(te,fe,je),this.engine.onInsert(this.namespaceId,fe,te,wt)}removeChild(te,fe,je){this.engine.onRemove(this.namespaceId,fe,this.delegate,je)}selectRootElement(te,fe){return this.delegate.selectRootElement(te,fe)}parentNode(te){return this.delegate.parentNode(te)}nextSibling(te){return this.delegate.nextSibling(te)}setAttribute(te,fe,je,wt){this.delegate.setAttribute(te,fe,je,wt)}removeAttribute(te,fe,je){this.delegate.removeAttribute(te,fe,je)}addClass(te,fe){this.delegate.addClass(te,fe)}removeClass(te,fe){this.delegate.removeClass(te,fe)}setStyle(te,fe,je,wt){this.delegate.setStyle(te,fe,je,wt)}removeStyle(te,fe,je){this.delegate.removeStyle(te,fe,je)}setProperty(te,fe,je){"@"==fe.charAt(0)&&fe==yn?this.disableAnimations(te,!!je):this.delegate.setProperty(te,fe,je)}setValue(te,fe){this.delegate.setValue(te,fe)}listen(te,fe,je){return this.delegate.listen(te,fe,je)}disableAnimations(te,fe){this.engine.disableAnimations(te,fe)}}class Cr extends Wi{constructor(te,fe,je,wt){super(fe,je,wt),this.factory=te,this.namespaceId=fe}setProperty(te,fe,je){"@"==fe.charAt(0)?"."==fe.charAt(1)&&fe==yn?this.disableAnimations(te,je=void 0===je||!!je):this.engine.process(this.namespaceId,te,fe.substr(1),je):this.delegate.setProperty(te,fe,je)}listen(te,fe,je){if("@"==fe.charAt(0)){const wt=function Un(xt){switch(xt){case"body":return document.body;case"document":return document;case"window":return window;default:return xt}}(te);let Pt=fe.substr(1),Qt="";return"@"!=Pt.charAt(0)&&([Pt,Qt]=function Rn(xt){const te=xt.indexOf(".");return[xt.substring(0,te),xt.substr(te+1)]}(Pt)),this.engine.listen(this.namespaceId,wt,Pt,Qt,Xt=>{this.factory.scheduleListenerCallback(Xt._data||-1,je,Xt)})}return this.delegate.listen(te,fe,je)}}let _a=(()=>{class xt extends Pr{constructor(fe,je,wt){super(fe.body,je,wt)}ngOnDestroy(){this.flush()}}return xt.\u0275fac=function(fe){return new(fe||xt)(e.LFG(Ct.K0),e.LFG(y),e.LFG(Ui))},xt.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac}),xt})();const Pi=new e.OlP("AnimationModuleType"),Nn=[{provide:v._j,useClass:ti},{provide:Ui,useFactory:function ds(){return new Xi}},{provide:Pr,useClass:_a},{provide:e.FYo,useFactory:function vs(xt,te,fe){return new An(xt,te,fe)},deps:[t.se,Pr,e.R0b]}],Us=[{provide:y,useFactory:function Mr(){return function Wt(){return"function"==typeof mi()}()?new Qe:new Zn}},{provide:Pi,useValue:"BrowserAnimations"},...Nn],fr=[{provide:y,useClass:se},{provide:Pi,useValue:"NoopAnimations"},...Nn];let Zs=(()=>{class xt{static withConfig(fe){return{ngModule:xt,providers:fe.disableAnimations?fr:Us}}}return xt.\u0275fac=function(fe){return new(fe||xt)},xt.\u0275mod=e.oAB({type:xt}),xt.\u0275inj=e.cJS({providers:Us,imports:[t.b2]}),xt})()},2313:(Ve,Q,m)=>{"use strict";m.d(Q,{b2:()=>vt,H7:()=>$t,t6:()=>et,q6:()=>ae,se:()=>u});var e=m(9808),t=m(5e3);class v extends e.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class C extends v{static makeCurrent(){(0,e.HT)(new C)}onAndCancel(Be,at,st){return Be.addEventListener(at,st,!1),()=>{Be.removeEventListener(at,st,!1)}}dispatchEvent(Be,at){Be.dispatchEvent(at)}remove(Be){Be.parentNode&&Be.parentNode.removeChild(Be)}createElement(Be,at){return(at=at||this.getDefaultDocument()).createElement(Be)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Be){return Be.nodeType===Node.ELEMENT_NODE}isShadowRoot(Be){return Be instanceof DocumentFragment}getGlobalEventTarget(Be,at){return"window"===at?window:"document"===at?Be:"body"===at?Be.body:null}getBaseHref(Be){const at=function M(){return o=o||document.querySelector("base"),o?o.getAttribute("href"):null}();return null==at?null:function R(ke){l=l||document.createElement("a"),l.setAttribute("href",ke);const Be=l.pathname;return"/"===Be.charAt(0)?Be:`/${Be}`}(at)}resetBaseElement(){o=null}getUserAgent(){return window.navigator.userAgent}getCookie(Be){return(0,e.Mx)(document.cookie,Be)}}let l,o=null;const s=new t.OlP("TRANSITION_ID"),O=[{provide:t.ip1,useFactory:function L(ke,Be,at){return()=>{at.get(t.CZH).donePromise.then(()=>{const st=(0,e.q)(),At=Be.querySelectorAll(`style[ng-transition="${ke}"]`);for(let li=0;li{const li=Be.findTestabilityInTree(st,At);if(null==li)throw new Error("Could not find testability for element.");return li},t.dqk.getAllAngularTestabilities=()=>Be.getAllTestabilities(),t.dqk.getAllAngularRootElements=()=>Be.getAllRootElements(),t.dqk.frameworkStabilizers||(t.dqk.frameworkStabilizers=[]),t.dqk.frameworkStabilizers.push(st=>{const At=t.dqk.getAllAngularTestabilities();let li=At.length,Bt=!1;const Rt=function(Li){Bt=Bt||Li,li--,0==li&&st(Bt)};At.forEach(function(Li){Li.whenStable(Rt)})})}findTestabilityInTree(Be,at,st){if(null==at)return null;const At=Be.getTestability(at);return null!=At?At:st?(0,e.q)().isShadowRoot(at)?this.findTestabilityInTree(Be,at.host,!0):this.findTestabilityInTree(Be,at.parentElement,!0):null}}let E=(()=>{class ke{build(){return new XMLHttpRequest}}return ke.\u0275fac=function(at){return new(at||ke)},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})();const P=new t.OlP("EventManagerPlugins");let w=(()=>{class ke{constructor(at,st){this._zone=st,this._eventNameToPlugin=new Map,at.forEach(At=>At.manager=this),this._plugins=at.slice().reverse()}addEventListener(at,st,At){return this._findPluginFor(st).addEventListener(at,st,At)}addGlobalEventListener(at,st,At){return this._findPluginFor(st).addGlobalEventListener(at,st,At)}getZone(){return this._zone}_findPluginFor(at){const st=this._eventNameToPlugin.get(at);if(st)return st;const At=this._plugins;for(let li=0;li{class ke{constructor(){this._stylesSet=new Set}addStyles(at){const st=new Set;at.forEach(At=>{this._stylesSet.has(At)||(this._stylesSet.add(At),st.add(At))}),this.onStylesAdded(st)}onStylesAdded(at){}getAllStyles(){return Array.from(this._stylesSet)}}return ke.\u0275fac=function(at){return new(at||ke)},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})(),W=(()=>{class ke extends j{constructor(at){super(),this._doc=at,this._hostNodes=new Map,this._hostNodes.set(at.head,[])}_addStylesToHost(at,st,At){at.forEach(li=>{const Bt=this._doc.createElement("style");Bt.textContent=li,At.push(st.appendChild(Bt))})}addHost(at){const st=[];this._addStylesToHost(this._stylesSet,at,st),this._hostNodes.set(at,st)}removeHost(at){const st=this._hostNodes.get(at);st&&st.forEach(ie),this._hostNodes.delete(at)}onStylesAdded(at){this._hostNodes.forEach((st,At)=>{this._addStylesToHost(at,At,st)})}ngOnDestroy(){this._hostNodes.forEach(at=>at.forEach(ie))}}return ke.\u0275fac=function(at){return new(at||ke)(t.LFG(e.K0))},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})();function ie(ke){(0,e.q)().remove(ke)}const ee={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/"},ve=/%COMP%/g;function i(ke,Be,at){for(let st=0;st{if("__ngUnwrap__"===Be)return ke;!1===ke(Be)&&(Be.preventDefault(),Be.returnValue=!1)}}let u=(()=>{class ke{constructor(at,st,At){this.eventManager=at,this.sharedStylesHost=st,this.appId=At,this.rendererByCompId=new Map,this.defaultRenderer=new _(at)}createRenderer(at,st){if(!at||!st)return this.defaultRenderer;switch(st.encapsulation){case t.ifc.Emulated:{let At=this.rendererByCompId.get(st.id);return At||(At=new x(this.eventManager,this.sharedStylesHost,st,this.appId),this.rendererByCompId.set(st.id,At)),At.applyToHost(at),At}case 1:case t.ifc.ShadowDom:return new r(this.eventManager,this.sharedStylesHost,at,st);default:if(!this.rendererByCompId.has(st.id)){const At=i(st.id,st.styles,[]);this.sharedStylesHost.addStyles(At),this.rendererByCompId.set(st.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return ke.\u0275fac=function(at){return new(at||ke)(t.LFG(w),t.LFG(W),t.LFG(t.AFp))},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})();class _{constructor(Be){this.eventManager=Be,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Be,at){return at?document.createElementNS(ee[at]||at,Be):document.createElement(Be)}createComment(Be){return document.createComment(Be)}createText(Be){return document.createTextNode(Be)}appendChild(Be,at){Be.appendChild(at)}insertBefore(Be,at,st){Be&&Be.insertBefore(at,st)}removeChild(Be,at){Be&&Be.removeChild(at)}selectRootElement(Be,at){let st="string"==typeof Be?document.querySelector(Be):Be;if(!st)throw new Error(`The selector "${Be}" did not match any elements`);return at||(st.textContent=""),st}parentNode(Be){return Be.parentNode}nextSibling(Be){return Be.nextSibling}setAttribute(Be,at,st,At){if(At){at=At+":"+at;const li=ee[At];li?Be.setAttributeNS(li,at,st):Be.setAttribute(at,st)}else Be.setAttribute(at,st)}removeAttribute(Be,at,st){if(st){const At=ee[st];At?Be.removeAttributeNS(At,at):Be.removeAttribute(`${st}:${at}`)}else Be.removeAttribute(at)}addClass(Be,at){Be.classList.add(at)}removeClass(Be,at){Be.classList.remove(at)}setStyle(Be,at,st,At){At&(t.JOm.DashCase|t.JOm.Important)?Be.style.setProperty(at,st,At&t.JOm.Important?"important":""):Be.style[at]=st}removeStyle(Be,at,st){st&t.JOm.DashCase?Be.style.removeProperty(at):Be.style[at]=""}setProperty(Be,at,st){Be[at]=st}setValue(Be,at){Be.nodeValue=at}listen(Be,at,st){return"string"==typeof Be?this.eventManager.addGlobalEventListener(Be,at,a(st)):this.eventManager.addEventListener(Be,at,a(st))}}class x extends _{constructor(Be,at,st,At){super(Be),this.component=st;const li=i(At+"-"+st.id,st.styles,[]);at.addStyles(li),this.contentAttr=function se(ke){return"_ngcontent-%COMP%".replace(ve,ke)}(At+"-"+st.id),this.hostAttr=function y(ke){return"_nghost-%COMP%".replace(ve,ke)}(At+"-"+st.id)}applyToHost(Be){super.setAttribute(Be,this.hostAttr,"")}createElement(Be,at){const st=super.createElement(Be,at);return super.setAttribute(st,this.contentAttr,""),st}}class r extends _{constructor(Be,at,st,At){super(Be),this.sharedStylesHost=at,this.hostEl=st,this.shadowRoot=st.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const li=i(At.id,At.styles,[]);for(let Bt=0;Bt{class ke extends Z{constructor(at){super(at)}supports(at){return!0}addEventListener(at,st,At){return at.addEventListener(st,At,!1),()=>this.removeEventListener(at,st,At)}removeEventListener(at,st,At){return at.removeEventListener(st,At)}}return ke.\u0275fac=function(at){return new(at||ke)(t.LFG(e.K0))},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})();const U=["alt","control","meta","shift"],z={"\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"},be={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},xe={alt:ke=>ke.altKey,control:ke=>ke.ctrlKey,meta:ke=>ke.metaKey,shift:ke=>ke.shiftKey};let Re=(()=>{class ke extends Z{constructor(at){super(at)}supports(at){return null!=ke.parseEventName(at)}addEventListener(at,st,At){const li=ke.parseEventName(st),Bt=ke.eventCallback(li.fullKey,At,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,e.q)().onAndCancel(at,li.domEventName,Bt))}static parseEventName(at){const st=at.toLowerCase().split("."),At=st.shift();if(0===st.length||"keydown"!==At&&"keyup"!==At)return null;const li=ke._normalizeKey(st.pop());let Bt="";if(U.forEach(Li=>{const si=st.indexOf(Li);si>-1&&(st.splice(si,1),Bt+=Li+".")}),Bt+=li,0!=st.length||0===li.length)return null;const Rt={};return Rt.domEventName=At,Rt.fullKey=Bt,Rt}static getEventFullKey(at){let st="",At=function ze(ke){let Be=ke.key;if(null==Be){if(Be=ke.keyIdentifier,null==Be)return"Unidentified";Be.startsWith("U+")&&(Be=String.fromCharCode(parseInt(Be.substring(2),16)),3===ke.location&&be.hasOwnProperty(Be)&&(Be=be[Be]))}return z[Be]||Be}(at);return At=At.toLowerCase()," "===At?At="space":"."===At&&(At="dot"),U.forEach(li=>{li!=At&&xe[li](at)&&(st+=li+".")}),st+=At,st}static eventCallback(at,st,At){return li=>{ke.getEventFullKey(li)===at&&At.runGuarded(()=>st(li))}}static _normalizeKey(at){return"esc"===at?"escape":at}}return ke.\u0275fac=function(at){return new(at||ke)(t.LFG(e.K0))},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})();const ae=(0,t.eFA)(t._c5,"browser",[{provide:t.Lbi,useValue:e.bD},{provide:t.g9A,useValue:function Le(){C.makeCurrent(),A.init()},multi:!0},{provide:e.K0,useFactory:function we(){return(0,t.RDi)(document),document},deps:[]}]),Ge=[{provide:t.zSh,useValue:"root"},{provide:t.qLn,useFactory:function K(){return new t.qLn},deps:[]},{provide:P,useClass:b,multi:!0,deps:[e.K0,t.R0b,t.Lbi]},{provide:P,useClass:Re,multi:!0,deps:[e.K0]},{provide:u,useClass:u,deps:[w,W,t.AFp]},{provide:t.FYo,useExisting:u},{provide:j,useExisting:W},{provide:W,useClass:W,deps:[e.K0]},{provide:t.dDg,useClass:t.dDg,deps:[t.R0b]},{provide:w,useClass:w,deps:[P,t.R0b]},{provide:e.JF,useClass:E,deps:[]}];let vt=(()=>{class ke{constructor(at){if(at)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(at){return{ngModule:ke,providers:[{provide:t.AFp,useValue:at.appId},{provide:s,useExisting:t.AFp},O]}}}return ke.\u0275fac=function(at){return new(at||ke)(t.LFG(ke,12))},ke.\u0275mod=t.oAB({type:ke}),ke.\u0275inj=t.cJS({providers:Ge,imports:[e.ez,t.hGG]}),ke})();"undefined"!=typeof window&&window;const Ze={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},Ee=new t.OlP("HammerGestureConfig"),G=new t.OlP("HammerLoader");let ge=(()=>{class ke{constructor(){this.events=[],this.overrides={}}buildHammer(at){const st=new Hammer(at,this.options);st.get("pinch").set({enable:!0}),st.get("rotate").set({enable:!0});for(const At in this.overrides)st.get(At).set(this.overrides[At]);return st}}return ke.\u0275fac=function(at){return new(at||ke)},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})(),De=(()=>{class ke extends Z{constructor(at,st,At,li){super(at),this._config=st,this.console=At,this.loader=li,this._loaderPromise=null}supports(at){return!(!Ze.hasOwnProperty(at.toLowerCase())&&!this.isCustomEvent(at)||!window.Hammer&&!this.loader)}addEventListener(at,st,At){const li=this.manager.getZone();if(st=st.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let Bt=!1,Rt=()=>{Bt=!0};return this._loaderPromise.then(()=>{window.Hammer?Bt||(Rt=this.addEventListener(at,st,At)):Rt=()=>{}}).catch(()=>{Rt=()=>{}}),()=>{Rt()}}return li.runOutsideAngular(()=>{const Bt=this._config.buildHammer(at),Rt=function(Li){li.runGuarded(function(){At(Li)})};return Bt.on(st,Rt),()=>{Bt.off(st,Rt),"function"==typeof Bt.destroy&&Bt.destroy()}})}isCustomEvent(at){return this._config.events.indexOf(at)>-1}}return ke.\u0275fac=function(at){return new(at||ke)(t.LFG(e.K0),t.LFG(Ee),t.LFG(t.c2e),t.LFG(G,8))},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})(),et=(()=>{class ke{}return ke.\u0275fac=function(at){return new(at||ke)},ke.\u0275mod=t.oAB({type:ke}),ke.\u0275inj=t.cJS({providers:[{provide:P,useClass:De,multi:!0,deps:[e.K0,Ee,t.c2e,[new t.FiY,G]]},{provide:Ee,useClass:ge,deps:[]}]}),ke})(),$t=(()=>{class ke{}return ke.\u0275fac=function(at){return new(at||ke)},ke.\u0275prov=t.Yz7({token:ke,factory:function(at){let st=null;return st=at?new(at||ke):t.LFG(Jt),st},providedIn:"root"}),ke})(),Jt=(()=>{class ke extends $t{constructor(at){super(),this._doc=at}sanitize(at,st){if(null==st)return null;switch(at){case t.q3G.NONE:return st;case t.q3G.HTML:return(0,t.qzn)(st,"HTML")?(0,t.z3N)(st):(0,t.EiD)(this._doc,String(st)).toString();case t.q3G.STYLE:return(0,t.qzn)(st,"Style")?(0,t.z3N)(st):st;case t.q3G.SCRIPT:if((0,t.qzn)(st,"Script"))return(0,t.z3N)(st);throw new Error("unsafe value used in a script context");case t.q3G.URL:return(0,t.yhl)(st),(0,t.qzn)(st,"URL")?(0,t.z3N)(st):(0,t.mCW)(String(st));case t.q3G.RESOURCE_URL:if((0,t.qzn)(st,"ResourceURL"))return(0,t.z3N)(st);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${at} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(at){return(0,t.JVY)(at)}bypassSecurityTrustStyle(at){return(0,t.L6k)(at)}bypassSecurityTrustScript(at){return(0,t.eBb)(at)}bypassSecurityTrustUrl(at){return(0,t.LAX)(at)}bypassSecurityTrustResourceUrl(at){return(0,t.pB0)(at)}}return ke.\u0275fac=function(at){return new(at||ke)(t.LFG(e.K0))},ke.\u0275prov=t.Yz7({token:ke,factory:function(at){let st=null;return st=at?new at:function Nt(ke){return new Jt(ke.get(e.K0))}(t.LFG(t.zs3)),st},providedIn:"root"}),ke})()},1402:(Ve,Q,m)=>{"use strict";m.d(Q,{gz:()=>Si,gk:()=>N,m2:()=>U,Q3:()=>z,OD:()=>b,Av:()=>Le,F0:()=>nn,rH:()=>da,Od:()=>Yn,yS:()=>Xr,Bz:()=>hc,lC:()=>wa});var e=m(5e3),t=m(8306),v=m(727),C=m(4482),o=m(5403);function M(){return(0,C.e)((Ye,Te)=>{let Ce=null;Ye._refCount++;const $e=new o.Q(Te,void 0,void 0,void 0,()=>{if(!Ye||Ye._refCount<=0||0<--Ye._refCount)return void(Ce=null);const dt=Ye._connection,Ot=Ce;Ce=null,dt&&(!Ot||dt===Ot)&&dt.unsubscribe(),Te.unsubscribe()});Ye.subscribe($e),$e.closed||(Ce=Ye.connect())})}class l extends t.y{constructor(Te,Ce){super(),this.source=Te,this.subjectFactory=Ce,this._subject=null,this._refCount=0,this._connection=null,(0,C.A)(Te)&&(this.lift=Te.lift)}_subscribe(Te){return this.getSubject().subscribe(Te)}getSubject(){const Te=this._subject;return(!Te||Te.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:Te}=this;this._subject=this._connection=null,null==Te||Te.unsubscribe()}connect(){let Te=this._connection;if(!Te){Te=this._connection=new v.w0;const Ce=this.getSubject();Te.add(this.source.subscribe(new o.Q(Ce,void 0,()=>{this._teardown(),Ce.complete()},$e=>{this._teardown(),Ce.error($e)},()=>this._teardown()))),Te.closed&&(this._connection=null,Te=v.w0.EMPTY)}return Te}refCount(){return M()(this)}}var R=m(457),s=m(9646),L=m(1135),O=m(9841),A=m(6805),E=m(7272),P=m(9770),w=m(515),Z=m(7579),j=m(9300);function W(Ye){return Ye<=0?()=>w.E:(0,C.e)((Te,Ce)=>{let $e=[];Te.subscribe(new o.Q(Ce,dt=>{$e.push(dt),Ye<$e.length&&$e.shift()},()=>{for(const dt of $e)Ce.next(dt);Ce.complete()},void 0,()=>{$e=null}))})}var ie=m(8068),ee=m(6590),ve=m(4671),re=m(4004),de=m(3900),le=m(5698),se=m(8675),y=m(5026),i=m(262),a=m(4351),p=m(590),u=m(5577),_=m(8505),D=m(8746),I=m(8189),x=m(9808);class r{constructor(Te,Ce){this.id=Te,this.url=Ce}}class b extends r{constructor(Te,Ce,$e="imperative",dt=null){super(Te,Ce),this.navigationTrigger=$e,this.restoredState=dt}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class U extends r{constructor(Te,Ce,$e){super(Te,Ce),this.urlAfterRedirects=$e}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class N extends r{constructor(Te,Ce,$e){super(Te,Ce),this.reason=$e}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class z extends r{constructor(Te,Ce,$e){super(Te,Ce),this.error=$e}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class be extends r{constructor(Te,Ce,$e,dt){super(Te,Ce),this.urlAfterRedirects=$e,this.state=dt}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xe extends r{constructor(Te,Ce,$e,dt){super(Te,Ce),this.urlAfterRedirects=$e,this.state=dt}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Re extends r{constructor(Te,Ce,$e,dt,Ot){super(Te,Ce),this.urlAfterRedirects=$e,this.state=dt,this.shouldActivate=Ot}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ze extends r{constructor(Te,Ce,$e,dt){super(Te,Ce),this.urlAfterRedirects=$e,this.state=dt}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Le extends r{constructor(Te,Ce,$e,dt){super(Te,Ce),this.urlAfterRedirects=$e,this.state=dt}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class K{constructor(Te){this.route=Te}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class we{constructor(Te){this.route=Te}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Y{constructor(Te){this.snapshot=Te}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ae{constructor(Te){this.snapshot=Te}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ge{constructor(Te){this.snapshot=Te}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vt{constructor(Te){this.snapshot=Te}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Fe{constructor(Te,Ce,$e){this.routerEvent=Te,this.position=Ce,this.anchor=$e}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Ne="primary";class ue{constructor(Te){this.params=Te||{}}has(Te){return Object.prototype.hasOwnProperty.call(this.params,Te)}get(Te){if(this.has(Te)){const Ce=this.params[Te];return Array.isArray(Ce)?Ce[0]:Ce}return null}getAll(Te){if(this.has(Te)){const Ce=this.params[Te];return Array.isArray(Ce)?Ce:[Ce]}return[]}get keys(){return Object.keys(this.params)}}function Oe(Ye){return new ue(Ye)}const Pe="ngNavigationCancelingError";function q(Ye){const Te=Error("NavigationCancelingError: "+Ye);return Te[Pe]=!0,Te}function ce(Ye,Te,Ce){const $e=Ce.path.split("/");if($e.length>Ye.length||"full"===Ce.pathMatch&&(Te.hasChildren()||$e.length$e[Ot]===dt)}return Ye===Te}function nt(Ye){return Array.prototype.concat.apply([],Ye)}function ft(Ye){return Ye.length>0?Ye[Ye.length-1]:null}function rt(Ye,Te){for(const Ce in Ye)Ye.hasOwnProperty(Ce)&&Te(Ye[Ce],Ce)}function Mt(Ye){return(0,e.CqO)(Ye)?Ye:(0,e.QGY)(Ye)?(0,R.D)(Promise.resolve(Ye)):(0,s.of)(Ye)}const Ft={exact:function ei(Ye,Te,Ce){if(!et(Ye.segments,Te.segments)||!Ze(Ye.segments,Te.segments,Ce)||Ye.numberOfChildren!==Te.numberOfChildren)return!1;for(const $e in Te.children)if(!Ye.children[$e]||!ei(Ye.children[$e],Te.children[$e],Ce))return!1;return!0},subset:ai},Vt={exact:function jt(Ye,Te){return Ue(Ye,Te)},subset:function ki(Ye,Te){return Object.keys(Te).length<=Object.keys(Ye).length&&Object.keys(Te).every(Ce=>lt(Ye[Ce],Te[Ce]))},ignored:()=>!0};function Ii(Ye,Te,Ce){return Ft[Ce.paths](Ye.root,Te.root,Ce.matrixParams)&&Vt[Ce.queryParams](Ye.queryParams,Te.queryParams)&&!("exact"===Ce.fragment&&Ye.fragment!==Te.fragment)}function ai(Ye,Te,Ce){return hi(Ye,Te,Te.segments,Ce)}function hi(Ye,Te,Ce,$e){if(Ye.segments.length>Ce.length){const dt=Ye.segments.slice(0,Ce.length);return!(!et(dt,Ce)||Te.hasChildren()||!Ze(dt,Ce,$e))}if(Ye.segments.length===Ce.length){if(!et(Ye.segments,Ce)||!Ze(Ye.segments,Ce,$e))return!1;for(const dt in Te.children)if(!Ye.children[dt]||!ai(Ye.children[dt],Te.children[dt],$e))return!1;return!0}{const dt=Ce.slice(0,Ye.segments.length),Ot=Ce.slice(Ye.segments.length);return!!(et(Ye.segments,dt)&&Ze(Ye.segments,dt,$e)&&Ye.children[Ne])&&hi(Ye.children[Ne],Te,Ot,$e)}}function Ze(Ye,Te,Ce){return Te.every(($e,dt)=>Vt[Ce](Ye[dt].parameters,$e.parameters))}class Ee{constructor(Te,Ce,$e){this.root=Te,this.queryParams=Ce,this.fragment=$e}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Oe(this.queryParams)),this._queryParamMap}toString(){return ct.serialize(this)}}class G{constructor(Te,Ce){this.segments=Te,this.children=Ce,this.parent=null,rt(Ce,($e,dt)=>$e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ke(this)}}class ge{constructor(Te,Ce){this.path=Te,this.parameters=Ce}get parameterMap(){return this._parameterMap||(this._parameterMap=Oe(this.parameters)),this._parameterMap}toString(){return Li(this)}}function et(Ye,Te){return Ye.length===Te.length&&Ye.every((Ce,$e)=>Ce.path===Te[$e].path)}class Nt{}class Jt{parse(Te){const Ce=new ye(Te);return new Ee(Ce.parseRootSegment(),Ce.parseQueryParams(),Ce.parseFragment())}serialize(Te){const Ce=`/${Be(Te.root,!0)}`,$e=function ci(Ye){const Te=Object.keys(Ye).map(Ce=>{const $e=Ye[Ce];return Array.isArray($e)?$e.map(dt=>`${st(Ce)}=${st(dt)}`).join("&"):`${st(Ce)}=${st($e)}`}).filter(Ce=>!!Ce);return Te.length?`?${Te.join("&")}`:""}(Te.queryParams);return`${Ce}${$e}${"string"==typeof Te.fragment?`#${function At(Ye){return encodeURI(Ye)}(Te.fragment)}`:""}`}}const ct=new Jt;function ke(Ye){return Ye.segments.map(Te=>Li(Te)).join("/")}function Be(Ye,Te){if(!Ye.hasChildren())return ke(Ye);if(Te){const Ce=Ye.children[Ne]?Be(Ye.children[Ne],!1):"",$e=[];return rt(Ye.children,(dt,Ot)=>{Ot!==Ne&&$e.push(`${Ot}:${Be(dt,!1)}`)}),$e.length>0?`${Ce}(${$e.join("//")})`:Ce}{const Ce=function $t(Ye,Te){let Ce=[];return rt(Ye.children,($e,dt)=>{dt===Ne&&(Ce=Ce.concat(Te($e,dt)))}),rt(Ye.children,($e,dt)=>{dt!==Ne&&(Ce=Ce.concat(Te($e,dt)))}),Ce}(Ye,($e,dt)=>dt===Ne?[Be(Ye.children[Ne],!1)]:[`${dt}:${Be($e,!1)}`]);return 1===Object.keys(Ye.children).length&&null!=Ye.children[Ne]?`${ke(Ye)}/${Ce[0]}`:`${ke(Ye)}/(${Ce.join("//")})`}}function at(Ye){return encodeURIComponent(Ye).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function st(Ye){return at(Ye).replace(/%3B/gi,";")}function li(Ye){return at(Ye).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Bt(Ye){return decodeURIComponent(Ye)}function Rt(Ye){return Bt(Ye.replace(/\+/g,"%20"))}function Li(Ye){return`${li(Ye.path)}${function si(Ye){return Object.keys(Ye).map(Te=>`;${li(Te)}=${li(Ye[Te])}`).join("")}(Ye.parameters)}`}const sn=/^[^\/()?;=#]+/;function Ui(Ye){const Te=Ye.match(sn);return Te?Te[0]:""}const Di=/^[^=?&#]+/,Ke=/^[^&#]+/;class ye{constructor(Te){this.url=Te,this.remaining=Te}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new G([],{}):new G([],this.parseChildren())}parseQueryParams(){const Te={};if(this.consumeOptional("?"))do{this.parseQueryParam(Te)}while(this.consumeOptional("&"));return Te}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const Te=[];for(this.peekStartsWith("(")||Te.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),Te.push(this.parseSegment());let Ce={};this.peekStartsWith("/(")&&(this.capture("/"),Ce=this.parseParens(!0));let $e={};return this.peekStartsWith("(")&&($e=this.parseParens(!1)),(Te.length>0||Object.keys(Ce).length>0)&&($e[Ne]=new G(Te,Ce)),$e}parseSegment(){const Te=Ui(this.remaining);if(""===Te&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(Te),new ge(Bt(Te),this.parseMatrixParams())}parseMatrixParams(){const Te={};for(;this.consumeOptional(";");)this.parseParam(Te);return Te}parseParam(Te){const Ce=Ui(this.remaining);if(!Ce)return;this.capture(Ce);let $e="";if(this.consumeOptional("=")){const dt=Ui(this.remaining);dt&&($e=dt,this.capture($e))}Te[Bt(Ce)]=Bt($e)}parseQueryParam(Te){const Ce=function Xi(Ye){const Te=Ye.match(Di);return Te?Te[0]:""}(this.remaining);if(!Ce)return;this.capture(Ce);let $e="";if(this.consumeOptional("=")){const qt=function _t(Ye){const Te=Ye.match(Ke);return Te?Te[0]:""}(this.remaining);qt&&($e=qt,this.capture($e))}const dt=Rt(Ce),Ot=Rt($e);if(Te.hasOwnProperty(dt)){let qt=Te[dt];Array.isArray(qt)||(qt=[qt],Te[dt]=qt),qt.push(Ot)}else Te[dt]=Ot}parseParens(Te){const Ce={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const $e=Ui(this.remaining),dt=this.remaining[$e.length];if("/"!==dt&&")"!==dt&&";"!==dt)throw new Error(`Cannot parse url '${this.url}'`);let Ot;$e.indexOf(":")>-1?(Ot=$e.substr(0,$e.indexOf(":")),this.capture(Ot),this.capture(":")):Te&&(Ot=Ne);const qt=this.parseChildren();Ce[Ot]=1===Object.keys(qt).length?qt[Ne]:new G([],qt),this.consumeOptional("//")}return Ce}peekStartsWith(Te){return this.remaining.startsWith(Te)}consumeOptional(Te){return!!this.peekStartsWith(Te)&&(this.remaining=this.remaining.substring(Te.length),!0)}capture(Te){if(!this.consumeOptional(Te))throw new Error(`Expected "${Te}".`)}}class qe{constructor(Te){this._root=Te}get root(){return this._root.value}parent(Te){const Ce=this.pathFromRoot(Te);return Ce.length>1?Ce[Ce.length-2]:null}children(Te){const Ce=yt(Te,this._root);return Ce?Ce.children.map($e=>$e.value):[]}firstChild(Te){const Ce=yt(Te,this._root);return Ce&&Ce.children.length>0?Ce.children[0].value:null}siblings(Te){const Ce=pe(Te,this._root);return Ce.length<2?[]:Ce[Ce.length-2].children.map(dt=>dt.value).filter(dt=>dt!==Te)}pathFromRoot(Te){return pe(Te,this._root).map(Ce=>Ce.value)}}function yt(Ye,Te){if(Ye===Te.value)return Te;for(const Ce of Te.children){const $e=yt(Ye,Ce);if($e)return $e}return null}function pe(Ye,Te){if(Ye===Te.value)return[Te];for(const Ce of Te.children){const $e=pe(Ye,Ce);if($e.length)return $e.unshift(Te),$e}return[]}class Je{constructor(Te,Ce){this.value=Te,this.children=Ce}toString(){return`TreeNode(${this.value})`}}function St(Ye){const Te={};return Ye&&Ye.children.forEach(Ce=>Te[Ce.value.outlet]=Ce),Te}class kt extends qe{constructor(Te,Ce){super(Te),this.snapshot=Ce,Lt(this,Te)}toString(){return this.snapshot.toString()}}function yi(Ye,Te){const Ce=function Ni(Ye,Te){const qt=new Kt([],{},{},"",{},Ne,Te,null,Ye.root,-1,{});return new gt("",new Je(qt,[]))}(Ye,Te),$e=new L.X([new ge("",{})]),dt=new L.X({}),Ot=new L.X({}),qt=new L.X({}),ii=new L.X(""),Ei=new Si($e,dt,qt,ii,Ot,Ne,Te,Ce.root);return Ei.snapshot=Ce.root,new kt(new Je(Ei,[]),Ce)}class Si{constructor(Te,Ce,$e,dt,Ot,qt,ii,Ei){this.url=Te,this.params=Ce,this.queryParams=$e,this.fragment=dt,this.data=Ot,this.outlet=qt,this.component=ii,this._futureSnapshot=Ei}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._paramMap=this.params.pipe((0,re.U)(Te=>Oe(Te)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,re.U)(Te=>Oe(Te)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function qi(Ye,Te="emptyOnly"){const Ce=Ye.pathFromRoot;let $e=0;if("always"!==Te)for($e=Ce.length-1;$e>=1;){const dt=Ce[$e],Ot=Ce[$e-1];if(dt.routeConfig&&""===dt.routeConfig.path)$e--;else{if(Ot.component)break;$e--}}return function ot(Ye){return Ye.reduce((Te,Ce)=>({params:Object.assign(Object.assign({},Te.params),Ce.params),data:Object.assign(Object.assign({},Te.data),Ce.data),resolve:Object.assign(Object.assign({},Te.resolve),Ce._resolvedData)}),{params:{},data:{},resolve:{}})}(Ce.slice($e))}class Kt{constructor(Te,Ce,$e,dt,Ot,qt,ii,Ei,an,Wn,xn){this.url=Te,this.params=Ce,this.queryParams=$e,this.fragment=dt,this.data=Ot,this.outlet=qt,this.component=ii,this.routeConfig=Ei,this._urlSegment=an,this._lastPathIndex=Wn,this._resolve=xn}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._paramMap=Oe(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Oe(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map($e=>$e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class gt extends qe{constructor(Te,Ce){super(Ce),this.url=Te,Lt(this,Ce)}toString(){return ui(this._root)}}function Lt(Ye,Te){Te.value._routerState=Ye,Te.children.forEach(Ce=>Lt(Ye,Ce))}function ui(Ye){const Te=Ye.children.length>0?` { ${Ye.children.map(ui).join(", ")} } `:"";return`${Ye.value}${Te}`}function Ci(Ye){if(Ye.snapshot){const Te=Ye.snapshot,Ce=Ye._futureSnapshot;Ye.snapshot=Ce,Ue(Te.queryParams,Ce.queryParams)||Ye.queryParams.next(Ce.queryParams),Te.fragment!==Ce.fragment&&Ye.fragment.next(Ce.fragment),Ue(Te.params,Ce.params)||Ye.params.next(Ce.params),function Me(Ye,Te){if(Ye.length!==Te.length)return!1;for(let Ce=0;CeUe(Ce.parameters,Te[$e].parameters))}(Ye.url,Te.url);return Ce&&!(!Ye.parent!=!Te.parent)&&(!Ye.parent||Yi(Ye.parent,Te.parent))}function Cn(Ye,Te,Ce){if(Ce&&Ye.shouldReuseRoute(Te.value,Ce.value.snapshot)){const $e=Ce.value;$e._futureSnapshot=Te.value;const dt=function Ln(Ye,Te,Ce){return Te.children.map($e=>{for(const dt of Ce.children)if(Ye.shouldReuseRoute($e.value,dt.value.snapshot))return Cn(Ye,$e,dt);return Cn(Ye,$e)})}(Ye,Te,Ce);return new Je($e,dt)}{if(Ye.shouldAttach(Te.value)){const Ot=Ye.retrieve(Te.value);if(null!==Ot){const qt=Ot.route;return qt.value._futureSnapshot=Te.value,qt.children=Te.children.map(ii=>Cn(Ye,ii)),qt}}const $e=function _n(Ye){return new Si(new L.X(Ye.url),new L.X(Ye.params),new L.X(Ye.queryParams),new L.X(Ye.fragment),new L.X(Ye.data),Ye.outlet,Ye.component,Ye)}(Te.value),dt=Te.children.map(Ot=>Cn(Ye,Ot));return new Je($e,dt)}}function dr(Ye){return"object"==typeof Ye&&null!=Ye&&!Ye.outlets&&!Ye.segmentPath}function wi(Ye){return"object"==typeof Ye&&null!=Ye&&Ye.outlets}function Fi(Ye,Te,Ce,$e,dt){let Ot={};return $e&&rt($e,(qt,ii)=>{Ot[ii]=Array.isArray(qt)?qt.map(Ei=>`${Ei}`):`${qt}`}),new Ee(Ce.root===Ye?Te:dn(Ce.root,Ye,Te),Ot,dt)}function dn(Ye,Te,Ce){const $e={};return rt(Ye.children,(dt,Ot)=>{$e[Ot]=dt===Te?Ce:dn(dt,Te,Ce)}),new G(Ye.segments,$e)}class Lr{constructor(Te,Ce,$e){if(this.isAbsolute=Te,this.numberOfDoubleDots=Ce,this.commands=$e,Te&&$e.length>0&&dr($e[0]))throw new Error("Root segment cannot have matrix parameters");const dt=$e.find(wi);if(dt&&dt!==ft($e))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Gn{constructor(Te,Ce,$e){this.segmentGroup=Te,this.processChildren=Ce,this.index=$e}}function Fa(Ye,Te,Ce){if(Ye||(Ye=new G([],{})),0===Ye.segments.length&&Ye.hasChildren())return xr(Ye,Te,Ce);const $e=function hs(Ye,Te,Ce){let $e=0,dt=Te;const Ot={match:!1,pathIndex:0,commandIndex:0};for(;dt=Ce.length)return Ot;const qt=Ye.segments[dt],ii=Ce[$e];if(wi(ii))break;const Ei=`${ii}`,an=$e0&&void 0===Ei)break;if(Ei&&an&&"object"==typeof an&&void 0===an.outlets){if(!Ir(Ei,an,qt))return Ot;$e+=2}else{if(!Ir(Ei,{},qt))return Ot;$e++}dt++}return{match:!0,pathIndex:dt,commandIndex:$e}}(Ye,Te,Ce),dt=Ce.slice($e.commandIndex);if($e.match&&$e.pathIndex{"string"==typeof Ot&&(Ot=[Ot]),null!==Ot&&(dt[qt]=Fa(Ye.children[qt],Te,Ot))}),rt(Ye.children,(Ot,qt)=>{void 0===$e[qt]&&(dt[qt]=Ot)}),new G(Ye.segments,dt)}}function ur(Ye,Te,Ce){const $e=Ye.segments.slice(0,Te);let dt=0;for(;dt{"string"==typeof Ce&&(Ce=[Ce]),null!==Ce&&(Te[$e]=ur(new G([],{}),0,Ce))}),Te}function ma(Ye){const Te={};return rt(Ye,(Ce,$e)=>Te[$e]=`${Ce}`),Te}function Ir(Ye,Te,Ce){return Ye==Ce.path&&Ue(Te,Ce.parameters)}class Ya{constructor(Te,Ce,$e,dt){this.routeReuseStrategy=Te,this.futureState=Ce,this.currState=$e,this.forwardEvent=dt}activate(Te){const Ce=this.futureState._root,$e=this.currState?this.currState._root:null;this.deactivateChildRoutes(Ce,$e,Te),Ci(this.futureState.root),this.activateChildRoutes(Ce,$e,Te)}deactivateChildRoutes(Te,Ce,$e){const dt=St(Ce);Te.children.forEach(Ot=>{const qt=Ot.value.outlet;this.deactivateRoutes(Ot,dt[qt],$e),delete dt[qt]}),rt(dt,(Ot,qt)=>{this.deactivateRouteAndItsChildren(Ot,$e)})}deactivateRoutes(Te,Ce,$e){const dt=Te.value,Ot=Ce?Ce.value:null;if(dt===Ot)if(dt.component){const qt=$e.getContext(dt.outlet);qt&&this.deactivateChildRoutes(Te,Ce,qt.children)}else this.deactivateChildRoutes(Te,Ce,$e);else Ot&&this.deactivateRouteAndItsChildren(Ce,$e)}deactivateRouteAndItsChildren(Te,Ce){Te.value.component&&this.routeReuseStrategy.shouldDetach(Te.value.snapshot)?this.detachAndStoreRouteSubtree(Te,Ce):this.deactivateRouteAndOutlet(Te,Ce)}detachAndStoreRouteSubtree(Te,Ce){const $e=Ce.getContext(Te.value.outlet),dt=$e&&Te.value.component?$e.children:Ce,Ot=St(Te);for(const qt of Object.keys(Ot))this.deactivateRouteAndItsChildren(Ot[qt],dt);if($e&&$e.outlet){const qt=$e.outlet.detach(),ii=$e.children.onOutletDeactivated();this.routeReuseStrategy.store(Te.value.snapshot,{componentRef:qt,route:Te,contexts:ii})}}deactivateRouteAndOutlet(Te,Ce){const $e=Ce.getContext(Te.value.outlet),dt=$e&&Te.value.component?$e.children:Ce,Ot=St(Te);for(const qt of Object.keys(Ot))this.deactivateRouteAndItsChildren(Ot[qt],dt);$e&&$e.outlet&&($e.outlet.deactivate(),$e.children.onOutletDeactivated(),$e.attachRef=null,$e.resolver=null,$e.route=null)}activateChildRoutes(Te,Ce,$e){const dt=St(Ce);Te.children.forEach(Ot=>{this.activateRoutes(Ot,dt[Ot.value.outlet],$e),this.forwardEvent(new vt(Ot.value.snapshot))}),Te.children.length&&this.forwardEvent(new ae(Te.value.snapshot))}activateRoutes(Te,Ce,$e){const dt=Te.value,Ot=Ce?Ce.value:null;if(Ci(dt),dt===Ot)if(dt.component){const qt=$e.getOrCreateContext(dt.outlet);this.activateChildRoutes(Te,Ce,qt.children)}else this.activateChildRoutes(Te,Ce,$e);else if(dt.component){const qt=$e.getOrCreateContext(dt.outlet);if(this.routeReuseStrategy.shouldAttach(dt.snapshot)){const ii=this.routeReuseStrategy.retrieve(dt.snapshot);this.routeReuseStrategy.store(dt.snapshot,null),qt.children.onOutletReAttached(ii.contexts),qt.attachRef=ii.componentRef,qt.route=ii.route.value,qt.outlet&&qt.outlet.attach(ii.componentRef,ii.route.value),Ci(ii.route.value),this.activateChildRoutes(Te,null,qt.children)}else{const ii=function Zr(Ye){for(let Te=Ye.parent;Te;Te=Te.parent){const Ce=Te.routeConfig;if(Ce&&Ce._loadedConfig)return Ce._loadedConfig;if(Ce&&Ce.component)return null}return null}(dt.snapshot),Ei=ii?ii.module.componentFactoryResolver:null;qt.attachRef=null,qt.route=dt,qt.resolver=Ei,qt.outlet&&qt.outlet.activateWith(dt,Ei),this.activateChildRoutes(Te,null,qt.children)}}else this.activateChildRoutes(Te,null,$e)}}class Pr{constructor(Te,Ce){this.routes=Te,this.module=Ce}}function Kn(Ye){return"function"==typeof Ye}function Qn(Ye){return Ye instanceof Ee}const la=Symbol("INITIAL_VALUE");function Jr(){return(0,de.w)(Ye=>(0,O.a)(Ye.map(Te=>Te.pipe((0,le.q)(1),(0,se.O)(la)))).pipe((0,y.R)((Te,Ce)=>{let $e=!1;return Ce.reduce((dt,Ot,qt)=>dt!==la?dt:(Ot===la&&($e=!0),$e||!1!==Ot&&qt!==Ce.length-1&&!Qn(Ot)?dt:Ot),Te)},la),(0,j.h)(Te=>Te!==la),(0,re.U)(Te=>Qn(Te)?Te:!0===Te),(0,le.q)(1)))}class ga{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new $n,this.attachRef=null}}class $n{constructor(){this.contexts=new Map}onChildOutletCreated(Te,Ce){const $e=this.getOrCreateContext(Te);$e.outlet=Ce,this.contexts.set(Te,$e)}onChildOutletDestroyed(Te){const Ce=this.getContext(Te);Ce&&(Ce.outlet=null,Ce.attachRef=null)}onOutletDeactivated(){const Te=this.contexts;return this.contexts=new Map,Te}onOutletReAttached(Te){this.contexts=Te}getOrCreateContext(Te){let Ce=this.getContext(Te);return Ce||(Ce=new ga,this.contexts.set(Te,Ce)),Ce}getContext(Te){return this.contexts.get(Te)||null}}let wa=(()=>{class Ye{constructor(Ce,$e,dt,Ot,qt){this.parentContexts=Ce,this.location=$e,this.resolver=dt,this.changeDetector=qt,this.activated=null,this._activatedRoute=null,this.activateEvents=new e.vpe,this.deactivateEvents=new e.vpe,this.attachEvents=new e.vpe,this.detachEvents=new e.vpe,this.name=Ot||Ne,Ce.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const Ce=this.parentContexts.getContext(this.name);Ce&&Ce.route&&(Ce.attachRef?this.attach(Ce.attachRef,Ce.route):this.activateWith(Ce.route,Ce.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const Ce=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(Ce.instance),Ce}attach(Ce,$e){this.activated=Ce,this._activatedRoute=$e,this.location.insert(Ce.hostView),this.attachEvents.emit(Ce.instance)}deactivate(){if(this.activated){const Ce=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(Ce)}}activateWith(Ce,$e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=Ce;const qt=($e=$e||this.resolver).resolveComponentFactory(Ce._futureSnapshot.routeConfig.component),ii=this.parentContexts.getOrCreateContext(this.name).children,Ei=new Nr(Ce,ii,this.location.injector);this.activated=this.location.createComponent(qt,this.location.length,Ei),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return Ye.\u0275fac=function(Ce){return new(Ce||Ye)(e.Y36($n),e.Y36(e.s_b),e.Y36(e._Vd),e.$8M("name"),e.Y36(e.sBO))},Ye.\u0275dir=e.lG2({type:Ye,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),Ye})();class Nr{constructor(Te,Ce,$e){this.route=Te,this.childContexts=Ce,this.parent=$e}get(Te,Ce){return Te===Si?this.route:Te===$n?this.childContexts:this.parent.get(Te,Ce)}}let ca=(()=>{class Ye{}return Ye.\u0275fac=function(Ce){return new(Ce||Ye)},Ye.\u0275cmp=e.Xpm({type:Ye,selectors:[["ng-component"]],decls:1,vars:0,template:function(Ce,$e){1&Ce&&e._UZ(0,"router-outlet")},directives:[wa],encapsulation:2}),Ye})();function Aa(Ye,Te=""){for(let Ce=0;CeSr($e)===Te);return Ce.push(...Ye.filter($e=>Sr($e)!==Te)),Ce}const Oa={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function ra(Ye,Te,Ce){var $e;if(""===Te.path)return"full"===Te.pathMatch&&(Ye.hasChildren()||Ce.length>0)?Object.assign({},Oa):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const Ot=(Te.matcher||ce)(Ce,Ye,Te);if(!Ot)return Object.assign({},Oa);const qt={};rt(Ot.posParams,(Ei,an)=>{qt[an]=Ei.path});const ii=Ot.consumed.length>0?Object.assign(Object.assign({},qt),Ot.consumed[Ot.consumed.length-1].parameters):qt;return{matched:!0,consumedSegments:Ot.consumed,lastChild:Ot.consumed.length,parameters:ii,positionalParamSegments:null!==($e=Ot.posParams)&&void 0!==$e?$e:{}}}function Gr(Ye,Te,Ce,$e,dt="corrected"){if(Ce.length>0&&function ns(Ye,Te,Ce){return Ce.some($e=>Xe(Ye,Te,$e)&&Sr($e)!==Ne)}(Ye,Ce,$e)){const qt=new G(Te,function Zn(Ye,Te,Ce,$e){const dt={};dt[Ne]=$e,$e._sourceSegment=Ye,$e._segmentIndexShift=Te.length;for(const Ot of Ce)if(""===Ot.path&&Sr(Ot)!==Ne){const qt=new G([],{});qt._sourceSegment=Ye,qt._segmentIndexShift=Te.length,dt[Sr(Ot)]=qt}return dt}(Ye,Te,$e,new G(Ce,Ye.children)));return qt._sourceSegment=Ye,qt._segmentIndexShift=Te.length,{segmentGroup:qt,slicedSegments:[]}}if(0===Ce.length&&function ja(Ye,Te,Ce){return Ce.some($e=>Xe(Ye,Te,$e))}(Ye,Ce,$e)){const qt=new G(Ye.segments,function Ha(Ye,Te,Ce,$e,dt,Ot){const qt={};for(const ii of $e)if(Xe(Ye,Ce,ii)&&!dt[Sr(ii)]){const Ei=new G([],{});Ei._sourceSegment=Ye,Ei._segmentIndexShift="legacy"===Ot?Ye.segments.length:Te.length,qt[Sr(ii)]=Ei}return Object.assign(Object.assign({},dt),qt)}(Ye,Te,Ce,$e,Ye.children,dt));return qt._sourceSegment=Ye,qt._segmentIndexShift=Te.length,{segmentGroup:qt,slicedSegments:Ce}}const Ot=new G(Ye.segments,Ye.children);return Ot._sourceSegment=Ye,Ot._segmentIndexShift=Te.length,{segmentGroup:Ot,slicedSegments:Ce}}function Xe(Ye,Te,Ce){return(!(Ye.hasChildren()||Te.length>0)||"full"!==Ce.pathMatch)&&""===Ce.path}function _e(Ye,Te,Ce,$e){return!!(Sr(Ye)===$e||$e!==Ne&&Xe(Te,Ce,Ye))&&("**"===Ye.path||ra(Te,Ye,Ce).matched)}function J(Ye,Te,Ce){return 0===Te.length&&!Ye.children[Ce]}class ne{constructor(Te){this.segmentGroup=Te||null}}class Qe{constructor(Te){this.urlTree=Te}}function Wt(Ye){return new t.y(Te=>Te.error(new ne(Ye)))}function mi(Ye){return new t.y(Te=>Te.error(new Qe(Ye)))}function Ct(Ye){return new t.y(Te=>Te.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${Ye}'`)))}class Yt{constructor(Te,Ce,$e,dt,Ot){this.configLoader=Ce,this.urlSerializer=$e,this.urlTree=dt,this.config=Ot,this.allowRedirects=!0,this.ngModule=Te.get(e.h0i)}apply(){const Te=Gr(this.urlTree.root,[],[],this.config).segmentGroup,Ce=new G(Te.segments,Te.children);return this.expandSegmentGroup(this.ngModule,this.config,Ce,Ne).pipe((0,re.U)(Ot=>this.createUrlTree(Bi(Ot),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,i.K)(Ot=>{if(Ot instanceof Qe)return this.allowRedirects=!1,this.match(Ot.urlTree);throw Ot instanceof ne?this.noMatchError(Ot):Ot}))}match(Te){return this.expandSegmentGroup(this.ngModule,this.config,Te.root,Ne).pipe((0,re.U)(dt=>this.createUrlTree(Bi(dt),Te.queryParams,Te.fragment))).pipe((0,i.K)(dt=>{throw dt instanceof ne?this.noMatchError(dt):dt}))}noMatchError(Te){return new Error(`Cannot match any routes. URL Segment: '${Te.segmentGroup}'`)}createUrlTree(Te,Ce,$e){const dt=Te.segments.length>0?new G([],{[Ne]:Te}):Te;return new Ee(dt,Ce,$e)}expandSegmentGroup(Te,Ce,$e,dt){return 0===$e.segments.length&&$e.hasChildren()?this.expandChildren(Te,Ce,$e).pipe((0,re.U)(Ot=>new G([],Ot))):this.expandSegment(Te,$e,Ce,$e.segments,dt,!0)}expandChildren(Te,Ce,$e){const dt=[];for(const Ot of Object.keys($e.children))"primary"===Ot?dt.unshift(Ot):dt.push(Ot);return(0,R.D)(dt).pipe((0,a.b)(Ot=>{const qt=$e.children[Ot],ii=is(Ce,Ot);return this.expandSegmentGroup(Te,ii,qt,Ot).pipe((0,re.U)(Ei=>({segment:Ei,outlet:Ot})))}),(0,y.R)((Ot,qt)=>(Ot[qt.outlet]=qt.segment,Ot),{}),function he(Ye,Te){const Ce=arguments.length>=2;return $e=>$e.pipe(Ye?(0,j.h)((dt,Ot)=>Ye(dt,Ot,$e)):ve.y,W(1),Ce?(0,ee.d)(Te):(0,ie.T)(()=>new A.K))}())}expandSegment(Te,Ce,$e,dt,Ot,qt){return(0,R.D)($e).pipe((0,a.b)(ii=>this.expandSegmentAgainstRoute(Te,Ce,$e,ii,dt,Ot,qt).pipe((0,i.K)(an=>{if(an instanceof ne)return(0,s.of)(null);throw an}))),(0,p.P)(ii=>!!ii),(0,i.K)((ii,Ei)=>{if(ii instanceof A.K||"EmptyError"===ii.name){if(J(Ce,dt,Ot))return(0,s.of)(new G([],{}));throw new ne(Ce)}throw ii}))}expandSegmentAgainstRoute(Te,Ce,$e,dt,Ot,qt,ii){return _e(dt,Ce,Ot,qt)?void 0===dt.redirectTo?this.matchSegmentAgainstRoute(Te,Ce,dt,Ot,qt):ii&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(Te,Ce,$e,dt,Ot,qt):Wt(Ce):Wt(Ce)}expandSegmentAgainstRouteUsingRedirect(Te,Ce,$e,dt,Ot,qt){return"**"===dt.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(Te,$e,dt,qt):this.expandRegularSegmentAgainstRouteUsingRedirect(Te,Ce,$e,dt,Ot,qt)}expandWildCardWithParamsAgainstRouteUsingRedirect(Te,Ce,$e,dt){const Ot=this.applyRedirectCommands([],$e.redirectTo,{});return $e.redirectTo.startsWith("/")?mi(Ot):this.lineralizeSegments($e,Ot).pipe((0,u.z)(qt=>{const ii=new G(qt,{});return this.expandSegment(Te,ii,Ce,qt,dt,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(Te,Ce,$e,dt,Ot,qt){const{matched:ii,consumedSegments:Ei,lastChild:an,positionalParamSegments:Wn}=ra(Ce,dt,Ot);if(!ii)return Wt(Ce);const xn=this.applyRedirectCommands(Ei,dt.redirectTo,Wn);return dt.redirectTo.startsWith("/")?mi(xn):this.lineralizeSegments(dt,xn).pipe((0,u.z)(er=>this.expandSegment(Te,Ce,$e,er.concat(Ot.slice(an)),qt,!1)))}matchSegmentAgainstRoute(Te,Ce,$e,dt,Ot){if("**"===$e.path)return $e.loadChildren?($e._loadedConfig?(0,s.of)($e._loadedConfig):this.configLoader.load(Te.injector,$e)).pipe((0,re.U)(er=>($e._loadedConfig=er,new G(dt,{})))):(0,s.of)(new G(dt,{}));const{matched:qt,consumedSegments:ii,lastChild:Ei}=ra(Ce,$e,dt);if(!qt)return Wt(Ce);const an=dt.slice(Ei);return this.getChildConfig(Te,$e,dt).pipe((0,u.z)(xn=>{const er=xn.module,ar=xn.routes,{segmentGroup:so,slicedSegments:ea}=Gr(Ce,ii,an,ar),ys=new G(so.segments,so.children);if(0===ea.length&&ys.hasChildren())return this.expandChildren(er,ar,ys).pipe((0,re.U)(Ea=>new G(ii,Ea)));if(0===ar.length&&0===ea.length)return(0,s.of)(new G(ii,{}));const fs=Sr($e)===Ot;return this.expandSegment(er,ys,ar,ea,fs?Ne:Ot,!0).pipe((0,re.U)(bs=>new G(ii.concat(bs.segments),bs.children)))}))}getChildConfig(Te,Ce,$e){return Ce.children?(0,s.of)(new Pr(Ce.children,Te)):Ce.loadChildren?void 0!==Ce._loadedConfig?(0,s.of)(Ce._loadedConfig):this.runCanLoadGuards(Te.injector,Ce,$e).pipe((0,u.z)(dt=>dt?this.configLoader.load(Te.injector,Ce).pipe((0,re.U)(Ot=>(Ce._loadedConfig=Ot,Ot))):function ti(Ye){return new t.y(Te=>Te.error(q(`Cannot load children because the guard of the route "path: '${Ye.path}'" returned false`)))}(Ce))):(0,s.of)(new Pr([],Te))}runCanLoadGuards(Te,Ce,$e){const dt=Ce.canLoad;if(!dt||0===dt.length)return(0,s.of)(!0);const Ot=dt.map(qt=>{const ii=Te.get(qt);let Ei;if(function Tr(Ye){return Ye&&Kn(Ye.canLoad)}(ii))Ei=ii.canLoad(Ce,$e);else{if(!Kn(ii))throw new Error("Invalid CanLoad guard");Ei=ii(Ce,$e)}return Mt(Ei)});return(0,s.of)(Ot).pipe(Jr(),(0,_.b)(qt=>{if(!Qn(qt))return;const ii=q(`Redirecting to "${this.urlSerializer.serialize(qt)}"`);throw ii.url=qt,ii}),(0,re.U)(qt=>!0===qt))}lineralizeSegments(Te,Ce){let $e=[],dt=Ce.root;for(;;){if($e=$e.concat(dt.segments),0===dt.numberOfChildren)return(0,s.of)($e);if(dt.numberOfChildren>1||!dt.children[Ne])return Ct(Te.redirectTo);dt=dt.children[Ne]}}applyRedirectCommands(Te,Ce,$e){return this.applyRedirectCreatreUrlTree(Ce,this.urlSerializer.parse(Ce),Te,$e)}applyRedirectCreatreUrlTree(Te,Ce,$e,dt){const Ot=this.createSegmentGroup(Te,Ce.root,$e,dt);return new Ee(Ot,this.createQueryParams(Ce.queryParams,this.urlTree.queryParams),Ce.fragment)}createQueryParams(Te,Ce){const $e={};return rt(Te,(dt,Ot)=>{if("string"==typeof dt&&dt.startsWith(":")){const ii=dt.substring(1);$e[Ot]=Ce[ii]}else $e[Ot]=dt}),$e}createSegmentGroup(Te,Ce,$e,dt){const Ot=this.createSegments(Te,Ce.segments,$e,dt);let qt={};return rt(Ce.children,(ii,Ei)=>{qt[Ei]=this.createSegmentGroup(Te,ii,$e,dt)}),new G(Ot,qt)}createSegments(Te,Ce,$e,dt){return Ce.map(Ot=>Ot.path.startsWith(":")?this.findPosParam(Te,Ot,dt):this.findOrReturn(Ot,$e))}findPosParam(Te,Ce,$e){const dt=$e[Ce.path.substring(1)];if(!dt)throw new Error(`Cannot redirect to '${Te}'. Cannot find '${Ce.path}'.`);return dt}findOrReturn(Te,Ce){let $e=0;for(const dt of Ce){if(dt.path===Te.path)return Ce.splice($e),dt;$e++}return Te}}function Bi(Ye){const Te={};for(const $e of Object.keys(Ye.children)){const Ot=Bi(Ye.children[$e]);(Ot.segments.length>0||Ot.hasChildren())&&(Te[$e]=Ot)}return function xi(Ye){if(1===Ye.numberOfChildren&&Ye.children[Ne]){const Te=Ye.children[Ne];return new G(Ye.segments.concat(Te.segments),Te.children)}return Ye}(new G(Ye.segments,Te))}class An{constructor(Te){this.path=Te,this.route=this.path[this.path.length-1]}}class Wi{constructor(Te,Ce){this.component=Te,this.route=Ce}}function Cr(Ye,Te,Ce){const $e=Ye._root;return Mr($e,Te?Te._root:null,Ce,[$e.value])}function Rn(Ye,Te,Ce){const $e=function _a(Ye){if(!Ye)return null;for(let Te=Ye.parent;Te;Te=Te.parent){const Ce=Te.routeConfig;if(Ce&&Ce._loadedConfig)return Ce._loadedConfig}return null}(Te);return($e?$e.module.injector:Ce).get(Ye)}function Mr(Ye,Te,Ce,$e,dt={canDeactivateChecks:[],canActivateChecks:[]}){const Ot=St(Te);return Ye.children.forEach(qt=>{(function ds(Ye,Te,Ce,$e,dt={canDeactivateChecks:[],canActivateChecks:[]}){const Ot=Ye.value,qt=Te?Te.value:null,ii=Ce?Ce.getContext(Ye.value.outlet):null;if(qt&&Ot.routeConfig===qt.routeConfig){const Ei=function vs(Ye,Te,Ce){if("function"==typeof Ce)return Ce(Ye,Te);switch(Ce){case"pathParamsChange":return!et(Ye.url,Te.url);case"pathParamsOrQueryParamsChange":return!et(Ye.url,Te.url)||!Ue(Ye.queryParams,Te.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Yi(Ye,Te)||!Ue(Ye.queryParams,Te.queryParams);default:return!Yi(Ye,Te)}}(qt,Ot,Ot.routeConfig.runGuardsAndResolvers);Ei?dt.canActivateChecks.push(new An($e)):(Ot.data=qt.data,Ot._resolvedData=qt._resolvedData),Mr(Ye,Te,Ot.component?ii?ii.children:null:Ce,$e,dt),Ei&&ii&&ii.outlet&&ii.outlet.isActivated&&dt.canDeactivateChecks.push(new Wi(ii.outlet.component,qt))}else qt&&Pi(Te,ii,dt),dt.canActivateChecks.push(new An($e)),Mr(Ye,null,Ot.component?ii?ii.children:null:Ce,$e,dt)})(qt,Ot[qt.value.outlet],Ce,$e.concat([qt.value]),dt),delete Ot[qt.value.outlet]}),rt(Ot,(qt,ii)=>Pi(qt,Ce.getContext(ii),dt)),dt}function Pi(Ye,Te,Ce){const $e=St(Ye),dt=Ye.value;rt($e,(Ot,qt)=>{Pi(Ot,dt.component?Te?Te.children.getContext(qt):null:Te,Ce)}),Ce.canDeactivateChecks.push(new Wi(dt.component&&Te&&Te.outlet&&Te.outlet.isActivated?Te.outlet.component:null,dt))}class je{}function wt(Ye){return new t.y(Te=>Te.error(Ye))}class Qt{constructor(Te,Ce,$e,dt,Ot,qt){this.rootComponentType=Te,this.config=Ce,this.urlTree=$e,this.url=dt,this.paramsInheritanceStrategy=Ot,this.relativeLinkResolution=qt}recognize(){const Te=Gr(this.urlTree.root,[],[],this.config.filter(qt=>void 0===qt.redirectTo),this.relativeLinkResolution).segmentGroup,Ce=this.processSegmentGroup(this.config,Te,Ne);if(null===Ce)return null;const $e=new Kt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ne,this.rootComponentType,null,this.urlTree.root,-1,{}),dt=new Je($e,Ce),Ot=new gt(this.url,dt);return this.inheritParamsAndData(Ot._root),Ot}inheritParamsAndData(Te){const Ce=Te.value,$e=qi(Ce,this.paramsInheritanceStrategy);Ce.params=Object.freeze($e.params),Ce.data=Object.freeze($e.data),Te.children.forEach(dt=>this.inheritParamsAndData(dt))}processSegmentGroup(Te,Ce,$e){return 0===Ce.segments.length&&Ce.hasChildren()?this.processChildren(Te,Ce):this.processSegment(Te,Ce,Ce.segments,$e)}processChildren(Te,Ce){const $e=[];for(const Ot of Object.keys(Ce.children)){const qt=Ce.children[Ot],ii=is(Te,Ot),Ei=this.processSegmentGroup(ii,qt,Ot);if(null===Ei)return null;$e.push(...Ei)}const dt=Zi($e);return function Xt(Ye){Ye.sort((Te,Ce)=>Te.value.outlet===Ne?-1:Ce.value.outlet===Ne?1:Te.value.outlet.localeCompare(Ce.value.outlet))}(dt),dt}processSegment(Te,Ce,$e,dt){for(const Ot of Te){const qt=this.processSegmentAgainstRoute(Ot,Ce,$e,dt);if(null!==qt)return qt}return J(Ce,$e,dt)?[]:null}processSegmentAgainstRoute(Te,Ce,$e,dt){if(Te.redirectTo||!_e(Te,Ce,$e,dt))return null;let Ot,qt=[],ii=[];if("**"===Te.path){const ar=$e.length>0?ft($e).parameters:{};Ot=new Kt($e,ar,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,tt(Te),Sr(Te),Te.component,Te,Mn(Ce),On(Ce)+$e.length,Et(Te))}else{const ar=ra(Ce,Te,$e);if(!ar.matched)return null;qt=ar.consumedSegments,ii=$e.slice(ar.lastChild),Ot=new Kt(qt,ar.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,tt(Te),Sr(Te),Te.component,Te,Mn(Ce),On(Ce)+qt.length,Et(Te))}const Ei=function pi(Ye){return Ye.children?Ye.children:Ye.loadChildren?Ye._loadedConfig.routes:[]}(Te),{segmentGroup:an,slicedSegments:Wn}=Gr(Ce,qt,ii,Ei.filter(ar=>void 0===ar.redirectTo),this.relativeLinkResolution);if(0===Wn.length&&an.hasChildren()){const ar=this.processChildren(Ei,an);return null===ar?null:[new Je(Ot,ar)]}if(0===Ei.length&&0===Wn.length)return[new Je(Ot,[])];const xn=Sr(Te)===dt,er=this.processSegment(Ei,an,Wn,xn?Ne:dt);return null===er?null:[new Je(Ot,er)]}}function Ti(Ye){const Te=Ye.value.routeConfig;return Te&&""===Te.path&&void 0===Te.redirectTo}function Zi(Ye){const Te=[],Ce=new Set;for(const $e of Ye){if(!Ti($e)){Te.push($e);continue}const dt=Te.find(Ot=>$e.value.routeConfig===Ot.value.routeConfig);void 0!==dt?(dt.children.push(...$e.children),Ce.add(dt)):Te.push($e)}for(const $e of Ce){const dt=Zi($e.children);Te.push(new Je($e.value,dt))}return Te.filter($e=>!Ce.has($e))}function Mn(Ye){let Te=Ye;for(;Te._sourceSegment;)Te=Te._sourceSegment;return Te}function On(Ye){let Te=Ye,Ce=Te._segmentIndexShift?Te._segmentIndexShift:0;for(;Te._sourceSegment;)Te=Te._sourceSegment,Ce+=Te._segmentIndexShift?Te._segmentIndexShift:0;return Ce-1}function tt(Ye){return Ye.data||{}}function Et(Ye){return Ye.resolve||{}}function Ai(Ye){return(0,de.w)(Te=>{const Ce=Ye(Te);return Ce?(0,R.D)(Ce).pipe((0,re.U)(()=>Te)):(0,s.of)(Te)})}class gn extends class un{shouldDetach(Te){return!1}store(Te,Ce){}shouldAttach(Te){return!1}retrieve(Te){return null}shouldReuseRoute(Te,Ce){return Te.routeConfig===Ce.routeConfig}}{}const En=new e.OlP("ROUTES");class zn{constructor(Te,Ce,$e,dt){this.injector=Te,this.compiler=Ce,this.onLoadStartListener=$e,this.onLoadEndListener=dt}load(Te,Ce){if(Ce._loader$)return Ce._loader$;this.onLoadStartListener&&this.onLoadStartListener(Ce);const dt=this.loadModuleFactory(Ce.loadChildren).pipe((0,re.U)(Ot=>{this.onLoadEndListener&&this.onLoadEndListener(Ce);const qt=Ot.create(Te);return new Pr(nt(qt.injector.get(En,void 0,e.XFs.Self|e.XFs.Optional)).map(pr),qt)}),(0,i.K)(Ot=>{throw Ce._loader$=void 0,Ot}));return Ce._loader$=new l(dt,()=>new Z.x).pipe(M()),Ce._loader$}loadModuleFactory(Te){return Mt(Te()).pipe((0,u.z)(Ce=>Ce instanceof e.YKP?(0,s.of)(Ce):(0,R.D)(this.compiler.compileModuleAsync(Ce))))}}class Fr{shouldProcessUrl(Te){return!0}extract(Te){return Te}merge(Te,Ce){return Te}}function wr(Ye){throw Ye}function Vn(Ye,Te,Ce){return Te.parse("/")}function mr(Ye,Te){return(0,s.of)(null)}const Hi={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},on={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let nn=(()=>{class Ye{constructor(Ce,$e,dt,Ot,qt,ii,Ei){this.rootComponentType=Ce,this.urlSerializer=$e,this.rootContexts=dt,this.location=Ot,this.config=Ei,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Z.x,this.errorHandler=wr,this.malformedUriErrorHandler=Vn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:mr,afterPreactivation:mr},this.urlHandlingStrategy=new Fr,this.routeReuseStrategy=new gn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=qt.get(e.h0i),this.console=qt.get(e.c2e);const xn=qt.get(e.R0b);this.isNgZoneEnabled=xn instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(Ei),this.currentUrlTree=function Zt(){return new Ee(new G([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new zn(qt,ii,er=>this.triggerEvent(new K(er)),er=>this.triggerEvent(new we(er))),this.routerState=yi(this.currentUrlTree,this.rootComponentType),this.transitions=new L.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var Ce;return null===(Ce=this.location.getState())||void 0===Ce?void 0:Ce.\u0275routerPageId}setupNavigations(Ce){const $e=this.events;return Ce.pipe((0,j.h)(dt=>0!==dt.id),(0,re.U)(dt=>Object.assign(Object.assign({},dt),{extractedUrl:this.urlHandlingStrategy.extract(dt.rawUrl)})),(0,de.w)(dt=>{let Ot=!1,qt=!1;return(0,s.of)(dt).pipe((0,_.b)(ii=>{this.currentNavigation={id:ii.id,initialUrl:ii.currentRawUrl,extractedUrl:ii.extractedUrl,trigger:ii.source,extras:ii.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,de.w)(ii=>{const Ei=this.browserUrlTree.toString(),an=!this.navigated||ii.extractedUrl.toString()!==Ei||Ei!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||an)&&this.urlHandlingStrategy.shouldProcessUrl(ii.rawUrl))return jn(ii.source)&&(this.browserUrlTree=ii.extractedUrl),(0,s.of)(ii).pipe((0,de.w)(xn=>{const er=this.transitions.getValue();return $e.next(new b(xn.id,this.serializeUrl(xn.extractedUrl),xn.source,xn.restoredState)),er!==this.transitions.getValue()?w.E:Promise.resolve(xn)}),function yn(Ye,Te,Ce,$e){return(0,de.w)(dt=>function bt(Ye,Te,Ce,$e,dt){return new Yt(Ye,Te,Ce,$e,dt).apply()}(Ye,Te,Ce,dt.extractedUrl,$e).pipe((0,re.U)(Ot=>Object.assign(Object.assign({},dt),{urlAfterRedirects:Ot}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,_.b)(xn=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:xn.urlAfterRedirects})}),function It(Ye,Te,Ce,$e,dt){return(0,u.z)(Ot=>function Pt(Ye,Te,Ce,$e,dt="emptyOnly",Ot="legacy"){try{const qt=new Qt(Ye,Te,Ce,$e,dt,Ot).recognize();return null===qt?wt(new je):(0,s.of)(qt)}catch(qt){return wt(qt)}}(Ye,Te,Ot.urlAfterRedirects,Ce(Ot.urlAfterRedirects),$e,dt).pipe((0,re.U)(qt=>Object.assign(Object.assign({},Ot),{targetSnapshot:qt}))))}(this.rootComponentType,this.config,xn=>this.serializeUrl(xn),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,_.b)(xn=>{if("eager"===this.urlUpdateStrategy){if(!xn.extras.skipLocationChange){const ar=this.urlHandlingStrategy.merge(xn.urlAfterRedirects,xn.rawUrl);this.setBrowserUrl(ar,xn)}this.browserUrlTree=xn.urlAfterRedirects}const er=new be(xn.id,this.serializeUrl(xn.extractedUrl),this.serializeUrl(xn.urlAfterRedirects),xn.targetSnapshot);$e.next(er)}));if(an&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:er,extractedUrl:ar,source:so,restoredState:ea,extras:ys}=ii,fs=new b(er,this.serializeUrl(ar),so,ea);$e.next(fs);const ks=yi(ar,this.rootComponentType).snapshot;return(0,s.of)(Object.assign(Object.assign({},ii),{targetSnapshot:ks,urlAfterRedirects:ar,extras:Object.assign(Object.assign({},ys),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=ii.rawUrl,ii.resolve(null),w.E}),Ai(ii=>{const{targetSnapshot:Ei,id:an,extractedUrl:Wn,rawUrl:xn,extras:{skipLocationChange:er,replaceUrl:ar}}=ii;return this.hooks.beforePreactivation(Ei,{navigationId:an,appliedUrlTree:Wn,rawUrlTree:xn,skipLocationChange:!!er,replaceUrl:!!ar})}),(0,_.b)(ii=>{const Ei=new xe(ii.id,this.serializeUrl(ii.extractedUrl),this.serializeUrl(ii.urlAfterRedirects),ii.targetSnapshot);this.triggerEvent(Ei)}),(0,re.U)(ii=>Object.assign(Object.assign({},ii),{guards:Cr(ii.targetSnapshot,ii.currentSnapshot,this.rootContexts)})),function Nn(Ye,Te){return(0,u.z)(Ce=>{const{targetSnapshot:$e,currentSnapshot:dt,guards:{canActivateChecks:Ot,canDeactivateChecks:qt}}=Ce;return 0===qt.length&&0===Ot.length?(0,s.of)(Object.assign(Object.assign({},Ce),{guardsResult:!0})):function Us(Ye,Te,Ce,$e){return(0,R.D)(Ye).pipe((0,u.z)(dt=>function fe(Ye,Te,Ce,$e,dt){const Ot=Te&&Te.routeConfig?Te.routeConfig.canDeactivate:null;if(!Ot||0===Ot.length)return(0,s.of)(!0);const qt=Ot.map(ii=>{const Ei=Rn(ii,Te,dt);let an;if(function kr(Ye){return Ye&&Kn(Ye.canDeactivate)}(Ei))an=Mt(Ei.canDeactivate(Ye,Te,Ce,$e));else{if(!Kn(Ei))throw new Error("Invalid CanDeactivate guard");an=Mt(Ei(Ye,Te,Ce,$e))}return an.pipe((0,p.P)())});return(0,s.of)(qt).pipe(Jr())}(dt.component,dt.route,Ce,Te,$e)),(0,p.P)(dt=>!0!==dt,!0))}(qt,$e,dt,Ye).pipe((0,u.z)(ii=>ii&&function vn(Ye){return"boolean"==typeof Ye}(ii)?function fr(Ye,Te,Ce,$e){return(0,R.D)(Te).pipe((0,a.b)(dt=>(0,E.z)(function rs(Ye,Te){return null!==Ye&&Te&&Te(new Y(Ye)),(0,s.of)(!0)}(dt.route.parent,$e),function Zs(Ye,Te){return null!==Ye&&Te&&Te(new Ge(Ye)),(0,s.of)(!0)}(dt.route,$e),function te(Ye,Te,Ce){const $e=Te[Te.length-1],Ot=Te.slice(0,Te.length-1).reverse().map(qt=>function Un(Ye){const Te=Ye.routeConfig?Ye.routeConfig.canActivateChild:null;return Te&&0!==Te.length?{node:Ye,guards:Te}:null}(qt)).filter(qt=>null!==qt).map(qt=>(0,P.P)(()=>{const ii=qt.guards.map(Ei=>{const an=Rn(Ei,qt.node,Ce);let Wn;if(function Wa(Ye){return Ye&&Kn(Ye.canActivateChild)}(an))Wn=Mt(an.canActivateChild($e,Ye));else{if(!Kn(an))throw new Error("Invalid CanActivateChild guard");Wn=Mt(an($e,Ye))}return Wn.pipe((0,p.P)())});return(0,s.of)(ii).pipe(Jr())}));return(0,s.of)(Ot).pipe(Jr())}(Ye,dt.path,Ce),function xt(Ye,Te,Ce){const $e=Te.routeConfig?Te.routeConfig.canActivate:null;if(!$e||0===$e.length)return(0,s.of)(!0);const dt=$e.map(Ot=>(0,P.P)(()=>{const qt=Rn(Ot,Te,Ce);let ii;if(function Ba(Ye){return Ye&&Kn(Ye.canActivate)}(qt))ii=Mt(qt.canActivate(Te,Ye));else{if(!Kn(qt))throw new Error("Invalid CanActivate guard");ii=Mt(qt(Te,Ye))}return ii.pipe((0,p.P)())}));return(0,s.of)(dt).pipe(Jr())}(Ye,dt.route,Ce))),(0,p.P)(dt=>!0!==dt,!0))}($e,Ot,Ye,Te):(0,s.of)(ii)),(0,re.U)(ii=>Object.assign(Object.assign({},Ce),{guardsResult:ii})))})}(this.ngModule.injector,ii=>this.triggerEvent(ii)),(0,_.b)(ii=>{if(Qn(ii.guardsResult)){const an=q(`Redirecting to "${this.serializeUrl(ii.guardsResult)}"`);throw an.url=ii.guardsResult,an}const Ei=new Re(ii.id,this.serializeUrl(ii.extractedUrl),this.serializeUrl(ii.urlAfterRedirects),ii.targetSnapshot,!!ii.guardsResult);this.triggerEvent(Ei)}),(0,j.h)(ii=>!!ii.guardsResult||(this.restoreHistory(ii),this.cancelNavigationTransition(ii,""),!1)),Ai(ii=>{if(ii.guards.canActivateChecks.length)return(0,s.of)(ii).pipe((0,_.b)(Ei=>{const an=new ze(Ei.id,this.serializeUrl(Ei.extractedUrl),this.serializeUrl(Ei.urlAfterRedirects),Ei.targetSnapshot);this.triggerEvent(an)}),(0,de.w)(Ei=>{let an=!1;return(0,s.of)(Ei).pipe(function zt(Ye,Te){return(0,u.z)(Ce=>{const{targetSnapshot:$e,guards:{canActivateChecks:dt}}=Ce;if(!dt.length)return(0,s.of)(Ce);let Ot=0;return(0,R.D)(dt).pipe((0,a.b)(qt=>function ri(Ye,Te,Ce,$e){return function vi(Ye,Te,Ce,$e){const dt=Object.keys(Ye);if(0===dt.length)return(0,s.of)({});const Ot={};return(0,R.D)(dt).pipe((0,u.z)(qt=>function Mi(Ye,Te,Ce,$e){const dt=Rn(Ye,Te,$e);return Mt(dt.resolve?dt.resolve(Te,Ce):dt(Te,Ce))}(Ye[qt],Te,Ce,$e).pipe((0,_.b)(ii=>{Ot[qt]=ii}))),W(1),(0,u.z)(()=>Object.keys(Ot).length===dt.length?(0,s.of)(Ot):w.E))}(Ye._resolve,Ye,Te,$e).pipe((0,re.U)(Ot=>(Ye._resolvedData=Ot,Ye.data=Object.assign(Object.assign({},Ye.data),qi(Ye,Ce).resolve),null)))}(qt.route,$e,Ye,Te)),(0,_.b)(()=>Ot++),W(1),(0,u.z)(qt=>Ot===dt.length?(0,s.of)(Ce):w.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,_.b)({next:()=>an=!0,complete:()=>{an||(this.restoreHistory(Ei),this.cancelNavigationTransition(Ei,"At least one route resolver didn't emit any value."))}}))}),(0,_.b)(Ei=>{const an=new Le(Ei.id,this.serializeUrl(Ei.extractedUrl),this.serializeUrl(Ei.urlAfterRedirects),Ei.targetSnapshot);this.triggerEvent(an)}))}),Ai(ii=>{const{targetSnapshot:Ei,id:an,extractedUrl:Wn,rawUrl:xn,extras:{skipLocationChange:er,replaceUrl:ar}}=ii;return this.hooks.afterPreactivation(Ei,{navigationId:an,appliedUrlTree:Wn,rawUrlTree:xn,skipLocationChange:!!er,replaceUrl:!!ar})}),(0,re.U)(ii=>{const Ei=function $i(Ye,Te,Ce){const $e=Cn(Ye,Te._root,Ce?Ce._root:void 0);return new kt($e,Te)}(this.routeReuseStrategy,ii.targetSnapshot,ii.currentRouterState);return Object.assign(Object.assign({},ii),{targetRouterState:Ei})}),(0,_.b)(ii=>{this.currentUrlTree=ii.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(ii.urlAfterRedirects,ii.rawUrl),this.routerState=ii.targetRouterState,"deferred"===this.urlUpdateStrategy&&(ii.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,ii),this.browserUrlTree=ii.urlAfterRedirects)}),((Ye,Te,Ce)=>(0,re.U)($e=>(new Ya(Te,$e.targetRouterState,$e.currentRouterState,Ce).activate(Ye),$e)))(this.rootContexts,this.routeReuseStrategy,ii=>this.triggerEvent(ii)),(0,_.b)({next(){Ot=!0},complete(){Ot=!0}}),(0,D.x)(()=>{var ii;Ot||qt||this.cancelNavigationTransition(dt,`Navigation ID ${dt.id} is not equal to the current navigation id ${this.navigationId}`),(null===(ii=this.currentNavigation)||void 0===ii?void 0:ii.id)===dt.id&&(this.currentNavigation=null)}),(0,i.K)(ii=>{if(qt=!0,function $(Ye){return Ye&&Ye[Pe]}(ii)){const Ei=Qn(ii.url);Ei||(this.navigated=!0,this.restoreHistory(dt,!0));const an=new N(dt.id,this.serializeUrl(dt.extractedUrl),ii.message);$e.next(an),Ei?setTimeout(()=>{const Wn=this.urlHandlingStrategy.merge(ii.url,this.rawUrlTree),xn={skipLocationChange:dt.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||jn(dt.source)};this.scheduleNavigation(Wn,"imperative",null,xn,{resolve:dt.resolve,reject:dt.reject,promise:dt.promise})},0):dt.resolve(!1)}else{this.restoreHistory(dt,!0);const Ei=new z(dt.id,this.serializeUrl(dt.extractedUrl),ii);$e.next(Ei);try{dt.resolve(this.errorHandler(ii))}catch(an){dt.reject(an)}}return w.E}))}))}resetRootComponentType(Ce){this.rootComponentType=Ce,this.routerState.root.component=this.rootComponentType}setTransition(Ce){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),Ce))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(Ce=>{const $e="popstate"===Ce.type?"popstate":"hashchange";"popstate"===$e&&setTimeout(()=>{var dt;const Ot={replaceUrl:!0},qt=(null===(dt=Ce.state)||void 0===dt?void 0:dt.navigationId)?Ce.state:null;if(qt){const Ei=Object.assign({},qt);delete Ei.navigationId,delete Ei.\u0275routerPageId,0!==Object.keys(Ei).length&&(Ot.state=Ei)}const ii=this.parseUrl(Ce.url);this.scheduleNavigation(ii,$e,qt,Ot)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(Ce){this.events.next(Ce)}resetConfig(Ce){Aa(Ce),this.config=Ce.map(pr),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(Ce,$e={}){const{relativeTo:dt,queryParams:Ot,fragment:qt,queryParamsHandling:ii,preserveFragment:Ei}=$e,an=dt||this.routerState.root,Wn=Ei?this.currentUrlTree.fragment:qt;let xn=null;switch(ii){case"merge":xn=Object.assign(Object.assign({},this.currentUrlTree.queryParams),Ot);break;case"preserve":xn=this.currentUrlTree.queryParams;break;default:xn=Ot||null}return null!==xn&&(xn=this.removeEmptyProps(xn)),function kn(Ye,Te,Ce,$e,dt){if(0===Ce.length)return Fi(Te.root,Te.root,Te,$e,dt);const Ot=function La(Ye){if("string"==typeof Ye[0]&&1===Ye.length&&"/"===Ye[0])return new Lr(!0,0,Ye);let Te=0,Ce=!1;const $e=Ye.reduce((dt,Ot,qt)=>{if("object"==typeof Ot&&null!=Ot){if(Ot.outlets){const ii={};return rt(Ot.outlets,(Ei,an)=>{ii[an]="string"==typeof Ei?Ei.split("/"):Ei}),[...dt,{outlets:ii}]}if(Ot.segmentPath)return[...dt,Ot.segmentPath]}return"string"!=typeof Ot?[...dt,Ot]:0===qt?(Ot.split("/").forEach((ii,Ei)=>{0==Ei&&"."===ii||(0==Ei&&""===ii?Ce=!0:".."===ii?Te++:""!=ii&&dt.push(ii))}),dt):[...dt,Ot]},[]);return new Lr(Ce,Te,$e)}(Ce);if(Ot.toRoot())return Fi(Te.root,new G([],{}),Te,$e,dt);const qt=function Or(Ye,Te,Ce){if(Ye.isAbsolute)return new Gn(Te.root,!0,0);if(-1===Ce.snapshot._lastPathIndex){const Ot=Ce.snapshot._urlSegment;return new Gn(Ot,Ot===Te.root,0)}const $e=dr(Ye.commands[0])?0:1;return function Ra(Ye,Te,Ce){let $e=Ye,dt=Te,Ot=Ce;for(;Ot>dt;){if(Ot-=dt,$e=$e.parent,!$e)throw new Error("Invalid number of '../'");dt=$e.segments.length}return new Gn($e,!1,dt-Ot)}(Ce.snapshot._urlSegment,Ce.snapshot._lastPathIndex+$e,Ye.numberOfDoubleDots)}(Ot,Te,Ye),ii=qt.processChildren?xr(qt.segmentGroup,qt.index,Ot.commands):Fa(qt.segmentGroup,qt.index,Ot.commands);return Fi(qt.segmentGroup,ii,Te,$e,dt)}(an,this.currentUrlTree,Ce,xn,null!=Wn?Wn:null)}navigateByUrl(Ce,$e={skipLocationChange:!1}){const dt=Qn(Ce)?Ce:this.parseUrl(Ce),Ot=this.urlHandlingStrategy.merge(dt,this.rawUrlTree);return this.scheduleNavigation(Ot,"imperative",null,$e)}navigate(Ce,$e={skipLocationChange:!1}){return function Pn(Ye){for(let Te=0;Te{const Ot=Ce[dt];return null!=Ot&&($e[dt]=Ot),$e},{})}processNavigations(){this.navigations.subscribe(Ce=>{this.navigated=!0,this.lastSuccessfulId=Ce.id,this.currentPageId=Ce.targetPageId,this.events.next(new U(Ce.id,this.serializeUrl(Ce.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,Ce.resolve(!0)},Ce=>{this.console.warn(`Unhandled Navigation Error: ${Ce}`)})}scheduleNavigation(Ce,$e,dt,Ot,qt){var ii,Ei,an;if(this.disposed)return Promise.resolve(!1);const Wn=this.transitions.value,xn=jn($e)&&Wn&&!jn(Wn.source),er=Wn.rawUrl.toString()===Ce.toString(),ar=Wn.id===(null===(ii=this.currentNavigation)||void 0===ii?void 0:ii.id);if(xn&&er&&ar)return Promise.resolve(!0);let ea,ys,fs;qt?(ea=qt.resolve,ys=qt.reject,fs=qt.promise):fs=new Promise((Ea,Ol)=>{ea=Ea,ys=Ol});const ks=++this.navigationId;let bs;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(dt=this.location.getState()),bs=dt&&dt.\u0275routerPageId?dt.\u0275routerPageId:Ot.replaceUrl||Ot.skipLocationChange?null!==(Ei=this.browserPageId)&&void 0!==Ei?Ei:0:(null!==(an=this.browserPageId)&&void 0!==an?an:0)+1):bs=0,this.setTransition({id:ks,targetPageId:bs,source:$e,restoredState:dt,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:Ce,extras:Ot,resolve:ea,reject:ys,promise:fs,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),fs.catch(Ea=>Promise.reject(Ea))}setBrowserUrl(Ce,$e){const dt=this.urlSerializer.serialize(Ce),Ot=Object.assign(Object.assign({},$e.extras.state),this.generateNgRouterState($e.id,$e.targetPageId));this.location.isCurrentPathEqualTo(dt)||$e.extras.replaceUrl?this.location.replaceState(dt,"",Ot):this.location.go(dt,"",Ot)}restoreHistory(Ce,$e=!1){var dt,Ot;if("computed"===this.canceledNavigationResolution){const qt=this.currentPageId-Ce.targetPageId;"popstate"!==Ce.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(dt=this.currentNavigation)||void 0===dt?void 0:dt.finalUrl)||0===qt?this.currentUrlTree===(null===(Ot=this.currentNavigation)||void 0===Ot?void 0:Ot.finalUrl)&&0===qt&&(this.resetState(Ce),this.browserUrlTree=Ce.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(qt)}else"replace"===this.canceledNavigationResolution&&($e&&this.resetState(Ce),this.resetUrlToCurrentUrlTree())}resetState(Ce){this.routerState=Ce.currentRouterState,this.currentUrlTree=Ce.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,Ce.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(Ce,$e){const dt=new N(Ce.id,this.serializeUrl(Ce.extractedUrl),$e);this.triggerEvent(dt),Ce.resolve(!1)}generateNgRouterState(Ce,$e){return"computed"===this.canceledNavigationResolution?{navigationId:Ce,\u0275routerPageId:$e}:{navigationId:Ce}}}return Ye.\u0275fac=function(Ce){e.$Z()},Ye.\u0275prov=e.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})();function jn(Ye){return"imperative"!==Ye}let da=(()=>{class Ye{constructor(Ce,$e,dt,Ot,qt){this.router=Ce,this.route=$e,this.tabIndexAttribute=dt,this.renderer=Ot,this.el=qt,this.commands=null,this.onChanges=new Z.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(Ce){if(null!=this.tabIndexAttribute)return;const $e=this.renderer,dt=this.el.nativeElement;null!==Ce?$e.setAttribute(dt,"tabindex",Ce):$e.removeAttribute(dt,"tabindex")}ngOnChanges(Ce){this.onChanges.next(this)}set routerLink(Ce){null!=Ce?(this.commands=Array.isArray(Ce)?Ce:[Ce],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const Ce={skipLocationChange:$r(this.skipLocationChange),replaceUrl:$r(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,Ce),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:$r(this.preserveFragment)})}}return Ye.\u0275fac=function(Ce){return new(Ce||Ye)(e.Y36(nn),e.Y36(Si),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq))},Ye.\u0275dir=e.lG2({type:Ye,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(Ce,$e){1&Ce&&e.NdJ("click",function(){return $e.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),Ye})(),Xr=(()=>{class Ye{constructor(Ce,$e,dt){this.router=Ce,this.route=$e,this.locationStrategy=dt,this.commands=null,this.href=null,this.onChanges=new Z.x,this.subscription=Ce.events.subscribe(Ot=>{Ot instanceof U&&this.updateTargetUrlAndHref()})}set routerLink(Ce){this.commands=null!=Ce?Array.isArray(Ce)?Ce:[Ce]:null}ngOnChanges(Ce){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(Ce,$e,dt,Ot,qt){if(0!==Ce||$e||dt||Ot||qt||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const ii={skipLocationChange:$r(this.skipLocationChange),replaceUrl:$r(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,ii),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:$r(this.preserveFragment)})}}return Ye.\u0275fac=function(Ce){return new(Ce||Ye)(e.Y36(nn),e.Y36(Si),e.Y36(x.S$))},Ye.\u0275dir=e.lG2({type:Ye,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(Ce,$e){1&Ce&&e.NdJ("click",function(Ot){return $e.onClick(Ot.button,Ot.ctrlKey,Ot.shiftKey,Ot.altKey,Ot.metaKey)}),2&Ce&&e.uIk("target",$e.target)("href",$e.href,e.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),Ye})();function $r(Ye){return""===Ye||!!Ye}let Yn=(()=>{class Ye{constructor(Ce,$e,dt,Ot,qt,ii){this.router=Ce,this.element=$e,this.renderer=dt,this.cdr=Ot,this.link=qt,this.linkWithHref=ii,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new e.vpe,this.routerEventsSubscription=Ce.events.subscribe(Ei=>{Ei instanceof U&&this.update()})}ngAfterContentInit(){(0,s.of)(this.links.changes,this.linksWithHrefs.changes,(0,s.of)(null)).pipe((0,I.J)()).subscribe(Ce=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var Ce;null===(Ce=this.linkInputChangesSubscription)||void 0===Ce||Ce.unsubscribe();const $e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(dt=>!!dt).map(dt=>dt.onChanges);this.linkInputChangesSubscription=(0,R.D)($e).pipe((0,I.J)()).subscribe(dt=>{this.isActive!==this.isLinkActive(this.router)(dt)&&this.update()})}set routerLinkActive(Ce){const $e=Array.isArray(Ce)?Ce:Ce.split(" ");this.classes=$e.filter(dt=>!!dt)}ngOnChanges(Ce){this.update()}ngOnDestroy(){var Ce;this.routerEventsSubscription.unsubscribe(),null===(Ce=this.linkInputChangesSubscription)||void 0===Ce||Ce.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const Ce=this.hasActiveLinks();this.isActive!==Ce&&(this.isActive=Ce,this.cdr.markForCheck(),this.classes.forEach($e=>{Ce?this.renderer.addClass(this.element.nativeElement,$e):this.renderer.removeClass(this.element.nativeElement,$e)}),this.isActiveChange.emit(Ce))})}isLinkActive(Ce){const $e=function no(Ye){return!!Ye.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return dt=>!!dt.urlTree&&Ce.isActive(dt.urlTree,$e)}hasActiveLinks(){const Ce=this.isLinkActive(this.router);return this.link&&Ce(this.link)||this.linkWithHref&&Ce(this.linkWithHref)||this.links.some(Ce)||this.linksWithHrefs.some(Ce)}}return Ye.\u0275fac=function(Ce){return new(Ce||Ye)(e.Y36(nn),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(da,8),e.Y36(Xr,8))},Ye.\u0275dir=e.lG2({type:Ye,selectors:[["","routerLinkActive",""]],contentQueries:function(Ce,$e,dt){if(1&Ce&&(e.Suo(dt,da,5),e.Suo(dt,Xr,5)),2&Ce){let Ot;e.iGM(Ot=e.CRH())&&($e.links=Ot),e.iGM(Ot=e.CRH())&&($e.linksWithHrefs=Ot)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[e.TTD]}),Ye})();class Ia{}class Vs{preload(Te,Ce){return(0,s.of)(null)}}let va=(()=>{class Ye{constructor(Ce,$e,dt,Ot){this.router=Ce,this.injector=dt,this.preloadingStrategy=Ot,this.loader=new zn(dt,$e,Ei=>Ce.triggerEvent(new K(Ei)),Ei=>Ce.triggerEvent(new we(Ei)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,j.h)(Ce=>Ce instanceof U),(0,a.b)(()=>this.preload())).subscribe(()=>{})}preload(){const Ce=this.injector.get(e.h0i);return this.processRoutes(Ce,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(Ce,$e){const dt=[];for(const Ot of $e)if(Ot.loadChildren&&!Ot.canLoad&&Ot._loadedConfig){const qt=Ot._loadedConfig;dt.push(this.processRoutes(qt.module,qt.routes))}else Ot.loadChildren&&!Ot.canLoad?dt.push(this.preloadConfig(Ce,Ot)):Ot.children&&dt.push(this.processRoutes(Ce,Ot.children));return(0,R.D)(dt).pipe((0,I.J)(),(0,re.U)(Ot=>{}))}preloadConfig(Ce,$e){return this.preloadingStrategy.preload($e,()=>($e._loadedConfig?(0,s.of)($e._loadedConfig):this.loader.load(Ce.injector,$e)).pipe((0,u.z)(Ot=>($e._loadedConfig=Ot,this.processRoutes(Ot.module,Ot.routes)))))}}return Ye.\u0275fac=function(Ce){return new(Ce||Ye)(e.LFG(nn),e.LFG(e.Sil),e.LFG(e.zs3),e.LFG(Ia))},Ye.\u0275prov=e.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})(),us=(()=>{class Ye{constructor(Ce,$e,dt={}){this.router=Ce,this.viewportScroller=$e,this.options=dt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},dt.scrollPositionRestoration=dt.scrollPositionRestoration||"disabled",dt.anchorScrolling=dt.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(Ce=>{Ce instanceof b?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=Ce.navigationTrigger,this.restoredId=Ce.restoredState?Ce.restoredState.navigationId:0):Ce instanceof U&&(this.lastId=Ce.id,this.scheduleScrollEvent(Ce,this.router.parseUrl(Ce.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(Ce=>{Ce instanceof Fe&&(Ce.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(Ce.position):Ce.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(Ce.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(Ce,$e){this.router.triggerEvent(new Fe(Ce,"popstate"===this.lastSource?this.store[this.restoredId]:null,$e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return Ye.\u0275fac=function(Ce){e.$Z()},Ye.\u0275prov=e.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})();const Gs=new e.OlP("ROUTER_CONFIGURATION"),ro=new e.OlP("ROUTER_FORROOT_GUARD"),tl=[x.Ye,{provide:Nt,useClass:Jt},{provide:nn,useFactory:function nl(Ye,Te,Ce,$e,dt,Ot,qt={},ii,Ei){const an=new nn(null,Ye,Te,Ce,$e,dt,nt(Ot));return ii&&(an.urlHandlingStrategy=ii),Ei&&(an.routeReuseStrategy=Ei),function Oo(Ye,Te){Ye.errorHandler&&(Te.errorHandler=Ye.errorHandler),Ye.malformedUriErrorHandler&&(Te.malformedUriErrorHandler=Ye.malformedUriErrorHandler),Ye.onSameUrlNavigation&&(Te.onSameUrlNavigation=Ye.onSameUrlNavigation),Ye.paramsInheritanceStrategy&&(Te.paramsInheritanceStrategy=Ye.paramsInheritanceStrategy),Ye.relativeLinkResolution&&(Te.relativeLinkResolution=Ye.relativeLinkResolution),Ye.urlUpdateStrategy&&(Te.urlUpdateStrategy=Ye.urlUpdateStrategy),Ye.canceledNavigationResolution&&(Te.canceledNavigationResolution=Ye.canceledNavigationResolution)}(qt,an),qt.enableTracing&&an.events.subscribe(Wn=>{var xn,er;null===(xn=console.group)||void 0===xn||xn.call(console,`Router Event: ${Wn.constructor.name}`),console.log(Wn.toString()),console.log(Wn),null===(er=console.groupEnd)||void 0===er||er.call(console)}),an},deps:[Nt,$n,x.Ye,e.zs3,e.Sil,En,Gs,[class Rr{},new e.FiY],[class Ki{},new e.FiY]]},$n,{provide:Si,useFactory:function Ll(Ye){return Ye.routerState.root},deps:[nn]},va,Vs,class Ps{preload(Te,Ce){return Ce().pipe((0,i.K)(()=>(0,s.of)(null)))}},{provide:Gs,useValue:{enableTracing:!1}}];function cc(){return new e.PXZ("Router",nn)}let hc=(()=>{class Ye{constructor(Ce,$e){}static forRoot(Ce,$e){return{ngModule:Ye,providers:[tl,il(Ce),{provide:ro,useFactory:Lo,deps:[[nn,new e.FiY,new e.tp0]]},{provide:Gs,useValue:$e||{}},{provide:x.S$,useFactory:$c,deps:[x.lw,[new e.tBr(x.mr),new e.FiY],Gs]},{provide:us,useFactory:Xc,deps:[nn,x.EM,Gs]},{provide:Ia,useExisting:$e&&$e.preloadingStrategy?$e.preloadingStrategy:Vs},{provide:e.PXZ,multi:!0,useFactory:cc},[Io,{provide:e.ip1,multi:!0,useFactory:ao,deps:[Io]},{provide:Ys,useFactory:dc,deps:[Io]},{provide:e.tb,multi:!0,useExisting:Ys}]]}}static forChild(Ce){return{ngModule:Ye,providers:[il(Ce)]}}}return Ye.\u0275fac=function(Ce){return new(Ce||Ye)(e.LFG(ro,8),e.LFG(nn,8))},Ye.\u0275mod=e.oAB({type:Ye}),Ye.\u0275inj=e.cJS({}),Ye})();function Xc(Ye,Te,Ce){return Ce.scrollOffset&&Te.setOffset(Ce.scrollOffset),new us(Ye,Te,Ce)}function $c(Ye,Te,Ce={}){return Ce.useHash?new x.Do(Ye,Te):new x.b0(Ye,Te)}function Lo(Ye){return"guarded"}function il(Ye){return[{provide:e.deG,multi:!0,useValue:Ye},{provide:En,multi:!0,useValue:Ye}]}let Io=(()=>{class Ye{constructor(Ce){this.injector=Ce,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Z.x}appInitializer(){return this.injector.get(x.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let $e=null;const dt=new Promise(ii=>$e=ii),Ot=this.injector.get(nn),qt=this.injector.get(Gs);return"disabled"===qt.initialNavigation?(Ot.setUpLocationChangeListener(),$e(!0)):"enabled"===qt.initialNavigation||"enabledBlocking"===qt.initialNavigation?(Ot.hooks.afterPreactivation=()=>this.initNavigation?(0,s.of)(null):(this.initNavigation=!0,$e(!0),this.resultOfPreactivationDone),Ot.initialNavigation()):$e(!0),dt})}bootstrapListener(Ce){const $e=this.injector.get(Gs),dt=this.injector.get(va),Ot=this.injector.get(us),qt=this.injector.get(nn),ii=this.injector.get(e.z2F);Ce===ii.components[0]&&(("enabledNonBlocking"===$e.initialNavigation||void 0===$e.initialNavigation)&&qt.initialNavigation(),dt.setUpPreloading(),Ot.init(),qt.resetRootComponentType(ii.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return Ye.\u0275fac=function(Ce){return new(Ce||Ye)(e.LFG(e.zs3))},Ye.\u0275prov=e.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})();function ao(Ye){return Ye.appInitializer.bind(Ye)}function dc(Ye){return Ye.bootstrapListener.bind(Ye)}const Ys=new e.OlP("Router Initializer")},9444:(Ve,Q,m)=>{"use strict";m.d(Q,{BN:()=>Xt,uH:()=>On});var e=m(5e3);function t(tt){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Et){return typeof Et}:function(Et){return Et&&"function"==typeof Symbol&&Et.constructor===Symbol&&Et!==Symbol.prototype?"symbol":typeof Et})(tt)}function C(tt,Et){for(var It=0;It0;)Et+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return Et}function Ui(tt){return"".concat(tt).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Xi(tt){return Object.keys(tt||{}).reduce(function(Et,It){return Et+"".concat(It,": ").concat(tt[It],";")},"")}function Ke(tt){return tt.size!==At.size||tt.x!==At.x||tt.y!==At.y||tt.rotate!==At.rotate||tt.flipX||tt.flipY}function _t(tt){var Et=tt.transform,zt=tt.iconWidth,ri={transform:"translate(".concat(tt.containerWidth/2," 256)")},vi="translate(".concat(32*Et.x,", ").concat(32*Et.y,") "),Mi="scale(".concat(Et.size/16*(Et.flipX?-1:1),", ").concat(Et.size/16*(Et.flipY?-1:1),") "),Ai="rotate(".concat(Et.rotate," 0 0)");return{outer:ri,inner:{transform:"".concat(vi," ").concat(Mi," ").concat(Ai)},path:{transform:"translate(".concat(zt/2*-1," -256)")}}}var qe={x:0,y:0,width:"100%",height:"100%"};function yt(tt){var Et=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return tt.attributes&&(tt.attributes.fill||Et)&&(tt.attributes.fill="black"),tt}function pe(tt){return"g"===tt.tag?tt.children:[tt]}function Ni(tt){var Et=tt.icons,It=Et.main,zt=Et.mask,ri=tt.prefix,vi=tt.iconName,Mi=tt.transform,Ai=tt.symbol,Ki=tt.title,un=tt.maskId,gn=tt.titleId,En=tt.extra,zn=tt.watchable,Rr=void 0!==zn&&zn,Fr=zt.found?zt:It,wr=Fr.width,Vn=Fr.height,mr="fak"===ri,Hi=mr?"":"fa-w-".concat(Math.ceil(wr/Vn*16)),on=[Me.replacementClass,vi?"".concat(Me.familyPrefix,"-").concat(vi):"",Hi].filter(function(Yn){return-1===En.classes.indexOf(Yn)}).filter(function(Yn){return""!==Yn||!!Yn}).concat(En.classes).join(" "),nn={children:[],attributes:l({},En.attributes,{"data-prefix":ri,"data-icon":vi,class:on,role:En.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(wr," ").concat(Vn)})},Pn=mr&&!~En.classes.indexOf("fa-fw")?{width:"".concat(wr/Vn*16*.0625,"em")}:{};Rr&&(nn.attributes["data-fa-i2svg"]=""),Ki&&nn.children.push({tag:"title",attributes:{id:nn.attributes["aria-labelledby"]||"title-".concat(gn||Li())},children:[Ki]});var jn=l({},nn,{prefix:ri,iconName:vi,main:It,mask:zt,maskId:un,transform:Mi,symbol:Ai,styles:l({},Pn,En.styles)}),da=zt.found&&It.found?function Je(tt){var Et=tt.children,It=tt.attributes,zt=tt.main,ri=tt.mask,vi=tt.maskId,Ki=zt.icon,gn=ri.icon,En=_t({transform:tt.transform,containerWidth:ri.width,iconWidth:zt.width}),zn={tag:"rect",attributes:l({},qe,{fill:"white"})},Rr=Ki.children?{children:Ki.children.map(yt)}:{},Fr={tag:"g",attributes:l({},En.inner),children:[yt(l({tag:Ki.tag,attributes:l({},Ki.attributes,En.path)},Rr))]},wr={tag:"g",attributes:l({},En.outer),children:[Fr]},Vn="mask-".concat(vi||Li()),mr="clip-".concat(vi||Li()),Hi={tag:"mask",attributes:l({},qe,{id:Vn,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[zn,wr]},on={tag:"defs",children:[{tag:"clipPath",attributes:{id:mr},children:pe(gn)},Hi]};return Et.push(on,{tag:"rect",attributes:l({fill:"currentColor","clip-path":"url(#".concat(mr,")"),mask:"url(#".concat(Vn,")")},qe)}),{children:Et,attributes:It}}(jn):function St(tt){var Et=tt.children,It=tt.attributes,zt=tt.main,ri=tt.transform,Mi=Xi(tt.styles);if(Mi.length>0&&(It.style=Mi),Ke(ri)){var Ai=_t({transform:ri,containerWidth:zt.width,iconWidth:zt.width});Et.push({tag:"g",attributes:l({},Ai.outer),children:[{tag:"g",attributes:l({},Ai.inner),children:[{tag:zt.icon.tag,children:zt.icon.children,attributes:l({},zt.icon.attributes,Ai.path)}]}]})}else Et.push(zt.icon);return{children:Et,attributes:It}}(jn),$r=da.attributes;return jn.children=da.children,jn.attributes=$r,Ai?function yi(tt){var It=tt.iconName,zt=tt.children,vi=tt.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:l({},tt.attributes,{id:!0===vi?"".concat(tt.prefix,"-").concat(Me.familyPrefix,"-").concat(It):vi}),children:zt}]}]}(jn):function kt(tt){var Et=tt.children,It=tt.main,zt=tt.mask,ri=tt.attributes,vi=tt.styles,Mi=tt.transform;if(Ke(Mi)&&It.found&&!zt.found){var un={x:It.width/It.height/2,y:.5};ri.style=Xi(l({},vi,{"transform-origin":"".concat(un.x+Mi.x/16,"em ").concat(un.y+Mi.y/16,"em")}))}return[{tag:"svg",attributes:ri,children:Et}]}(jn)}var $i=function(Et,It,zt,ri){var Ki,un,gn,vi=Object.keys(Et),Mi=vi.length,Ai=void 0!==ri?function(Et,It){return function(zt,ri,vi,Mi){return Et.call(It,zt,ri,vi,Mi)}}(It,ri):It;for(void 0===zt?(Ki=1,gn=Et[vi[0]]):(Ki=0,gn=zt);Ki2&&void 0!==arguments[2]?arguments[2]:{},zt=It.skipHooks,ri=void 0!==zt&&zt,vi=Object.keys(Et).reduce(function(Mi,Ai){var Ki=Et[Ai];return Ki.icon?Mi[Ki.iconName]=Ki.icon:Mi[Ai]=Ki,Mi},{});"function"!=typeof lt.hooks.addPack||ri?lt.styles[tt]=l({},lt.styles[tt]||{},vi):lt.hooks.addPack(tt,vi),"fas"===tt&&Ln("fa",Et)}var _n=lt.styles,kn=lt.shims,dn=function(){var Et=function(ri){return $i(_n,function(vi,Mi,Ai){return vi[Ai]=$i(Mi,ri,{}),vi},{})};Et(function(zt,ri,vi){return ri[3]&&(zt[ri[3]]=vi),zt}),Et(function(zt,ri,vi){var Mi=ri[2];return zt[vi]=vi,Mi.forEach(function(Ai){zt[Ai]=vi}),zt});var It="far"in _n;$i(kn,function(zt,ri){var Mi=ri[1];return"far"===Mi&&!It&&(Mi="fas"),zt[ri[0]]={prefix:Mi,iconName:ri[2]},zt},{})};function Fa(tt,Et,It){if(tt&&tt[Et]&&tt[Et][It])return{prefix:Et,iconName:It,icon:tt[Et][It]}}function xr(tt){var Et=tt.tag,It=tt.attributes,zt=void 0===It?{}:It,ri=tt.children,vi=void 0===ri?[]:ri;return"string"==typeof tt?Ui(tt):"<".concat(Et," ").concat(function Di(tt){return Object.keys(tt||{}).reduce(function(Et,It){return Et+"".concat(It,'="').concat(Ui(tt[It]),'" ')},"").trim()}(zt),">").concat(vi.map(xr).join(""),"")}dn();function Nr(tt){this.name="MissingIcon",this.message=tt||"Icon unavailable",this.stack=(new Error).stack}(Nr.prototype=Object.create(Error.prototype)).constructor=Nr;var ca={fill:"currentColor"},Aa={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},ha=(l({},ca,{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"}),l({},Aa,{attributeName:"opacity"}));function Gr(tt){var Et=tt[0],It=tt[1],vi=R(tt.slice(4),1)[0];return{found:!0,width:Et,height:It,icon:Array.isArray(vi)?{tag:"g",attributes:{class:"".concat(Me.familyPrefix,"-").concat(Fe.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Me.familyPrefix,"-").concat(Fe.SECONDARY),fill:"currentColor",d:vi[0]}},{tag:"path",attributes:{class:"".concat(Me.familyPrefix,"-").concat(Fe.PRIMARY),fill:"currentColor",d:vi[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:vi}}}}function Yt(){Me.autoAddCss&&!Cr&&(function Bt(tt){if(tt&&a){var Et=le.createElement("style");Et.setAttribute("type","text/css"),Et.innerHTML=tt;for(var It=le.head.childNodes,zt=null,ri=It.length-1;ri>-1;ri--){var vi=It[ri],Mi=(vi.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(Mi)>-1&&(zt=vi)}return le.head.insertBefore(Et,zt),tt}}(function ti(){var Et=I,It=Me.familyPrefix,zt=Me.replacementClass,ri='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\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: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\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-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\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-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\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.fad.fa-inverse {\n color: #fff;\n}';if("fa"!==It||zt!==Et){var vi=new RegExp("\\.".concat("fa","\\-"),"g"),Mi=new RegExp("\\--".concat("fa","\\-"),"g"),Ai=new RegExp("\\.".concat(Et),"g");ri=ri.replace(vi,".".concat(It,"-")).replace(Mi,"--".concat(It,"-")).replace(Ai,".".concat(zt))}return ri}()),Cr=!0)}function xi(tt,Et){return Object.defineProperty(tt,"abstract",{get:Et}),Object.defineProperty(tt,"html",{get:function(){return tt.abstract.map(function(zt){return xr(zt)})}}),Object.defineProperty(tt,"node",{get:function(){if(a){var zt=le.createElement("div");return zt.innerHTML=tt.html,zt.children}}}),tt}function Bi(tt){var Et=tt.prefix,It=void 0===Et?"fa":Et,zt=tt.iconName;if(zt)return Fa(An.definitions,It,zt)||Fa(lt.styles,It,zt)}l({},ca,{cx:"256",cy:"364",r:"28"}),l({},Aa,{attributeName:"r",values:"28;14;28;28;14;28;"}),l({},ha,{values:"1;0;1;1;0;1;"}),l({},ca,{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"}),l({},ha,{values:"1;0;0;0;0;1;"}),l({},ca,{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"}),l({},ha,{values:"0;0;1;1;0;0;"});var An=new(function(){function tt(){(function v(tt,Et){if(!(tt instanceof Et))throw new TypeError("Cannot call a class as a function")})(this,tt),this.definitions={}}return function o(tt,Et,It){Et&&C(tt.prototype,Et),It&&C(tt,It)}(tt,[{key:"add",value:function(){for(var It=this,zt=arguments.length,ri=new Array(zt),vi=0;vi1&&void 0!==arguments[1]?arguments[1]:{},zt=(Et||{}).icon?Et:Bi(Et||{}),ri=It.mask;return ri&&(ri=(ri||{}).icon?ri:Bi(ri||{})),tt(zt,l({},It,{mask:ri}))}}(function(tt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},It=Et.transform,zt=void 0===It?At:It,ri=Et.symbol,vi=void 0!==ri&&ri,Mi=Et.mask,Ai=void 0===Mi?null:Mi,Ki=Et.maskId,un=void 0===Ki?null:Ki,gn=Et.title,En=void 0===gn?null:gn,zn=Et.titleId,Rr=void 0===zn?null:zn,Fr=Et.classes,wr=void 0===Fr?[]:Fr,Vn=Et.attributes,mr=void 0===Vn?{}:Vn,Hi=Et.styles,on=void 0===Hi?{}:Hi;if(tt){var nn=tt.prefix,Pn=tt.iconName,jn=tt.icon;return xi(l({type:"icon"},tt),function(){return Yt(),Me.autoA11y&&(En?mr["aria-labelledby"]="".concat(Me.replacementClass,"-title-").concat(Rr||Li()):(mr["aria-hidden"]="true",mr.focusable="false")),Ni({icons:{main:Gr(jn),mask:Ai?Gr(Ai.icon):{found:!1,width:null,height:null,icon:{}}},prefix:nn,iconName:Pn,transform:l({},At,zt),symbol:vi,title:En,maskId:un,titleId:Rr,extra:{attributes:mr,styles:on,classes:wr}})})}}),Us=m(2313);const fr=["*"],xt=tt=>{const Et={"fa-spin":tt.spin,"fa-pulse":tt.pulse,"fa-fw":tt.fixedWidth,"fa-border":tt.border,"fa-inverse":tt.inverse,"fa-layers-counter":tt.counter,"fa-flip-horizontal":"horizontal"===tt.flip||"both"===tt.flip,"fa-flip-vertical":"vertical"===tt.flip||"both"===tt.flip,[`fa-${tt.size}`]:null!==tt.size,[`fa-rotate-${tt.rotate}`]:null!==tt.rotate,[`fa-pull-${tt.pull}`]:null!==tt.pull,[`fa-stack-${tt.stackItemSize}`]:null!=tt.stackItemSize};return Object.keys(Et).map(It=>Et[It]?It:null).filter(It=>It)};let je=(()=>{class tt{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return tt.\u0275fac=function(It){return new(It||tt)},tt.\u0275prov=e.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})(),wt=(()=>{class tt{constructor(){this.definitions={}}addIcons(...It){for(const zt of It){zt.prefix in this.definitions||(this.definitions[zt.prefix]={}),this.definitions[zt.prefix][zt.iconName]=zt;for(const ri of zt.icon[2])"string"==typeof ri&&(this.definitions[zt.prefix][ri]=zt)}}addIconPacks(...It){for(const zt of It){const ri=Object.keys(zt).map(vi=>zt[vi]);this.addIcons(...ri)}}getIconDefinition(It,zt){return It in this.definitions&&zt in this.definitions[It]?this.definitions[It][zt]:null}}return tt.\u0275fac=function(It){return new(It||tt)},tt.\u0275prov=e.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})(),Pt=(()=>{class tt{constructor(){this.stackItemSize="1x"}ngOnChanges(It){if("size"in It)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')}}return tt.\u0275fac=function(It){return new(It||tt)},tt.\u0275dir=e.lG2({type:tt,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[e.TTD]}),tt})(),Qt=(()=>{class tt{constructor(It,zt){this.renderer=It,this.elementRef=zt}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(It){"size"in It&&(null!=It.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${It.size.currentValue}`),null!=It.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${It.size.previousValue}`))}}return tt.\u0275fac=function(It){return new(It||tt)(e.Y36(e.Qsj),e.Y36(e.SBq))},tt.\u0275cmp=e.Xpm({type:tt,selectors:[["fa-stack"]],inputs:{size:"size"},features:[e.TTD],ngContentSelectors:fr,decls:1,vars:0,template:function(It,zt){1&It&&(e.F$t(),e.Hsn(0))},encapsulation:2}),tt})(),Xt=(()=>{class tt{constructor(It,zt,ri,vi,Mi){this.sanitizer=It,this.config=zt,this.iconLibrary=ri,this.stackItem=vi,this.classes=[],null!=Mi&&null==vi&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(It){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let zt=null;if(zt=null==this.icon?this.config.fallbackIcon:this.icon,It){const ri=this.findIconDefinition(zt);if(null!=ri){const vi=this.buildParams();this.renderIcon(ri,vi)}}}render(){this.ngOnChanges({})}findIconDefinition(It){const zt=((tt,Et)=>(tt=>void 0!==tt.prefix&&void 0!==tt.iconName)(tt)?tt:Array.isArray(tt)&&2===tt.length?{prefix:tt[0],iconName:tt[1]}:"string"==typeof tt?{prefix:Et,iconName:tt}:void 0)(It,this.config.defaultPrefix);if("icon"in zt)return zt;const ri=this.iconLibrary.getIconDefinition(zt.prefix,zt.iconName);return null!=ri?ri:((tt=>{throw new Error(`Could not find icon with iconName=${tt.iconName} and prefix=${tt.prefix} in the icon library.`)})(zt),null)}buildParams(){const It={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},zt="string"==typeof this.transform?Rn_transform(this.transform):this.transform;return{title:this.title,transform:zt,classes:[...xt(It),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(It,zt){const ri=_a(It,zt);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(ri.html.join("\n"))}}return tt.\u0275fac=function(It){return new(It||tt)(e.Y36(Us.H7),e.Y36(je),e.Y36(wt),e.Y36(Pt,8),e.Y36(Qt,8))},tt.\u0275cmp=e.Xpm({type:tt,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(It,zt){2&It&&(e.Ikx("innerHTML",zt.renderedIconHTML,e.oJD),e.uIk("title",zt.title))},inputs:{icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[e.TTD],decls:0,vars:0,template:function(It,zt){},encapsulation:2}),tt})(),On=(()=>{class tt{}return tt.\u0275fac=function(It){return new(It||tt)},tt.\u0275mod=e.oAB({type:tt}),tt.\u0275inj=e.cJS({}),tt})()},6642:(Ve,Q,m)=>{"use strict";m.d(Q,{eX:()=>Re,sQ:()=>Ii,GW:()=>a,l4:()=>ze});var e=m(5620),t=m(6451),v=m(8306),C=m(7579),o=m(515),M=m(9646),l=m(2843),R=m(576);class L{constructor(Ee,G,ge){this.kind=Ee,this.value=G,this.error=ge,this.hasValue="N"===Ee}observe(Ee){return O(this,Ee)}do(Ee,G,ge){const{kind:De,value:et,error:$t}=this;return"N"===De?null==Ee?void 0:Ee(et):"E"===De?null==G?void 0:G($t):null==ge?void 0:ge()}accept(Ee,G,ge){var De;return(0,R.m)(null===(De=Ee)||void 0===De?void 0:De.next)?this.observe(Ee):this.do(Ee,G,ge)}toObservable(){const{kind:Ee,value:G,error:ge}=this,De="N"===Ee?(0,M.of)(G):"E"===Ee?(0,l._)(()=>ge):"C"===Ee?o.E:0;if(!De)throw new TypeError(`Unexpected notification kind ${Ee}`);return De}static createNext(Ee){return new L("N",Ee)}static createError(Ee){return new L("E",void 0,Ee)}static createComplete(){return L.completeNotification}}function O(Ze,Ee){var G,ge,De;const{kind:et,value:$t,error:Nt}=Ze;if("string"!=typeof et)throw new TypeError('Invalid notification, missing "kind"');"N"===et?null===(G=Ee.next)||void 0===G||G.call(Ee,$t):"E"===et?null===(ge=Ee.error)||void 0===ge||ge.call(Ee,Nt):null===(De=Ee.complete)||void 0===De||De.call(Ee)}L.completeNotification=new L("C");var A=m(4482),E=m(5403),w=m(8421);function Z(Ze,Ee,G,ge){return(0,A.e)((De,et)=>{let $t;Ee&&"function"!=typeof Ee?({duration:G,element:$t,connector:ge}=Ee):$t=Ee;const Nt=new Map,Jt=at=>{Nt.forEach(at),at(et)},ct=at=>Jt(st=>st.error(at)),ke=new j(et,at=>{try{const st=Ze(at);let At=Nt.get(st);if(!At){Nt.set(st,At=ge?ge():new C.x);const li=function Be(at,st){const At=new v.y(li=>{ke.activeGroups++;const Bt=st.subscribe(li);return()=>{Bt.unsubscribe(),0==--ke.activeGroups&&ke.teardownAttempted&&ke.unsubscribe()}});return At.key=at,At}(st,At);if(et.next(li),G){const Bt=new E.Q(At,()=>{At.complete(),null==Bt||Bt.unsubscribe()},void 0,void 0,()=>Nt.delete(st));ke.add((0,w.Xf)(G(li)).subscribe(Bt))}}At.next($t?$t(at):at)}catch(st){ct(st)}},()=>Jt(at=>at.complete()),ct,()=>Nt.clear());De.subscribe(ke)})}class j extends E.Q{constructor(){super(...arguments),this.activeGroups=0,this.teardownAttempted=!1}unsubscribe(){this.teardownAttempted=!0,0===this.activeGroups&&super.unsubscribe()}}var W=m(4004);function ie(Ze,Ee){return Ee?G=>G.pipe(ie((ge,De)=>(0,w.Xf)(Ze(ge,De)).pipe((0,W.U)((et,$t)=>Ee(ge,et,De,$t))))):(0,A.e)((G,ge)=>{let De=0,et=null,$t=!1;G.subscribe(new E.Q(ge,Nt=>{et||(et=new E.Q(ge,void 0,()=>{et=null,$t&&ge.complete()}),(0,w.Xf)(Ze(Nt,De++)).subscribe(et))},()=>{$t=!0,!et&&ge.complete()}))})}var ve=m(8502),he=m(262),re=m(9300),de=m(5577),le=m(5698),se=m(5e3);const y={dispatch:!0,useEffectsErrorHandler:!0},i="__@ngrx/effects_create__";function a(Ze,Ee){const G=Ze(),ge=Object.assign(Object.assign({},y),Ee);return Object.defineProperty(G,i,{value:ge}),G}function p(Ze){return Object.getOwnPropertyNames(Ze).filter(ge=>!(!Ze[ge]||!Ze[ge].hasOwnProperty(i))&&Ze[ge][i].hasOwnProperty("dispatch")).map(ge=>Object.assign({propertyName:ge},Ze[ge][i]))}function u(Ze){return Object.getPrototypeOf(Ze)}const _="__@ngrx/effects__";function I(Ze){return(0,e.qC)(b,u)(Ze)}function b(Ze){return function x(Ze){return Ze.constructor.hasOwnProperty(_)}(Ze)?Ze.constructor[_]:[]}function z(Ze,Ee,G){const ge=u(Ze).constructor.name,De=function N(Ze){return[I,p].reduce((G,ge)=>G.concat(ge(Ze)),[])}(Ze).map(({propertyName:et,dispatch:$t,useEffectsErrorHandler:Nt})=>{const Jt="function"==typeof Ze[et]?Ze[et]():Ze[et],ct=Nt?G(Jt,Ee):Jt;return!1===$t?ct.pipe((0,ve.l)()):ct.pipe(function P(){return(0,A.e)((Ze,Ee)=>{Ze.subscribe(new E.Q(Ee,G=>{Ee.next(L.createNext(G))},()=>{Ee.next(L.createComplete()),Ee.complete()},G=>{Ee.next(L.createError(G)),Ee.complete()}))})}()).pipe((0,W.U)(Be=>({effect:Ze[et],notification:Be,propertyName:et,sourceName:ge,sourceInstance:Ze})))});return(0,t.T)(...De)}function xe(Ze,Ee,G=10){return Ze.pipe((0,he.K)(ge=>(Ee&&Ee.handleError(ge),G<=1?Ze:xe(Ze,Ee,G-1))))}let Re=(()=>{class Ze extends v.y{constructor(G){super(),G&&(this.source=G)}lift(G){const ge=new Ze;return ge.source=this,ge.operator=G,ge}}return Ze.\u0275fac=function(G){return new(G||Ze)(se.LFG(e.Y$))},Ze.\u0275prov=se.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})();function ze(...Ze){return(0,re.h)(Ee=>Ze.some(G=>"string"==typeof G?G===Ee.type:G.type===Ee.type))}function ue(Ze){return Oe(Ze,"ngrxOnInitEffects")}function Oe(Ze,Ee){return Ze&&Ee in Ze&&"function"==typeof Ze[Ee]}const Pe=new se.OlP("@ngrx/effects Internal Root Guard"),q=new se.OlP("@ngrx/effects User Provided Effects"),$=new se.OlP("@ngrx/effects Internal Root Effects"),ce=new se.OlP("@ngrx/effects Root Effects"),Me=new se.OlP("@ngrx/effects Internal Feature Effects"),Ue=new se.OlP("@ngrx/effects Feature Effects"),lt=new se.OlP("@ngrx/effects Effects Error Handler");let nt=(()=>{class Ze extends C.x{constructor(G,ge){super(),this.errorHandler=G,this.effectsErrorHandler=ge}addEffects(G){this.next(G)}toActions(){return this.pipe(Z(u),(0,de.z)(G=>G.pipe(Z(ft))),(0,de.z)(G=>{const ge=G.pipe(ie(et=>function it(Ze,Ee){return G=>{const ge=z(G,Ze,Ee);return function Fe(Ze){return Oe(Ze,"ngrxOnRunEffects")}(G)?G.ngrxOnRunEffects(ge):ge}}(this.errorHandler,this.effectsErrorHandler)(et)),(0,W.U)(et=>(function Le(Ze,Ee){if("N"===Ze.notification.kind){const G=Ze.notification.value;!function K(Ze){return"function"!=typeof Ze&&Ze&&Ze.type&&"string"==typeof Ze.type}(G)&&Ee.handleError(new Error(`Effect ${function we({propertyName:Ze,sourceInstance:Ee,sourceName:G}){const ge="function"==typeof Ee[Ze];return`"${G}.${String(Ze)}${ge?"()":""}"`}(Ze)} dispatched an invalid action: ${function Y(Ze){try{return JSON.stringify(Ze)}catch(Ee){return Ze}}(G)}`))}}(et,this.errorHandler),et.notification)),(0,re.h)(et=>"N"===et.kind&&null!=et.value),function ee(){return(0,A.e)((Ze,Ee)=>{Ze.subscribe(new E.Q(Ee,G=>O(G,Ee)))})}()),De=G.pipe((0,le.q)(1),(0,re.h)(ue),(0,W.U)(et=>et.ngrxOnInitEffects()));return(0,t.T)(ge,De)}))}}return Ze.\u0275fac=function(G){return new(G||Ze)(se.LFG(se.qLn),se.LFG(lt))},Ze.\u0275prov=se.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})();function ft(Ze){return function Ge(Ze){return Oe(Ze,"ngrxOnIdentifyEffects")}(Ze)?Ze.ngrxOnIdentifyEffects():""}let rt=(()=>{class Ze{constructor(G,ge){this.effectSources=G,this.store=ge,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return Ze.\u0275fac=function(G){return new(G||Ze)(se.LFG(nt),se.LFG(e.yh))},Ze.\u0275prov=se.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})();const Mt="@ngrx/effects/init";(0,e.PH)(Mt);let Ft=(()=>{class Ze{constructor(G,ge,De,et,$t,Nt,Jt){this.sources=G,ge.start(),et.forEach(ct=>G.addEffects(ct)),De.dispatch({type:Mt})}addEffects(G){this.sources.addEffects(G)}}return Ze.\u0275fac=function(G){return new(G||Ze)(se.LFG(nt),se.LFG(rt),se.LFG(e.yh),se.LFG(ce),se.LFG(e.cr,8),se.LFG(e.CK,8),se.LFG(Pe,8))},Ze.\u0275mod=se.oAB({type:Ze}),Ze.\u0275inj=se.cJS({}),Ze})(),Vt=(()=>{class Ze{constructor(G,ge,De,et){ge.forEach($t=>$t.forEach(Nt=>G.addEffects(Nt)))}}return Ze.\u0275fac=function(G){return new(G||Ze)(se.LFG(Ft),se.LFG(Ue),se.LFG(e.cr,8),se.LFG(e.CK,8))},Ze.\u0275mod=se.oAB({type:Ze}),Ze.\u0275inj=se.cJS({}),Ze})(),Ii=(()=>{class Ze{static forFeature(G=[]){return{ngModule:Vt,providers:[G,{provide:Me,multi:!0,useValue:G},{provide:q,multi:!0,useValue:[]},{provide:Ue,multi:!0,useFactory:jt,deps:[se.zs3,Me,q]}]}}static forRoot(G=[]){return{ngModule:Ft,providers:[{provide:lt,useValue:xe},rt,nt,Re,G,{provide:$,useValue:[G]},{provide:Pe,useFactory:ki,deps:[[rt,new se.FiY,new se.tp0],[$,new se.PiD]]},{provide:q,multi:!0,useValue:[]},{provide:ce,useFactory:jt,deps:[se.zs3,$,q]}]}}}return Ze.\u0275fac=function(G){return new(G||Ze)},Ze.\u0275mod=se.oAB({type:Ze}),Ze.\u0275inj=se.cJS({}),Ze})();function jt(Ze,Ee,G){const ge=[];for(const De of Ee)ge.push(...De);for(const De of G)ge.push(...De);return function ei(Ze,Ee){return Ee.map(G=>Ze.get(G))}(Ze,ge)}function ki(Ze,Ee){if((1!==Ee.length||0!==Ee[0].length)&&Ze)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},9565:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{FT:()=>StoreDevtoolsModule});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5e3),_ngrx_store__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5620),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(515),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8306),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(6451),rxjs__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(233),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(4707),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(3099),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(4351),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(2722),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(5684),rxjs_operators__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(5363),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(1365),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5026);class StoreDevtoolsConfig{constructor(){this.maxAge=!1}}const STORE_DEVTOOLS_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Options"),INITIAL_OPTIONS=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Initial Config");function noMonitor(){return null}const DEFAULT_NAME="NgRx Store DevTools";function createConfig(Ve){const Q={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,autoPause:!1,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0}},m="function"==typeof Ve?Ve():Ve,v=Object.assign({},Q,{features:m.features||!!m.logOnly&&{pause:!0,export:!0,test:!0}||Q.features},m);if(v.maxAge&&v.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${v.maxAge}`);return v}const PERFORM_ACTION="PERFORM_ACTION",REFRESH="REFRESH",RESET="RESET",ROLLBACK="ROLLBACK",COMMIT="COMMIT",SWEEP="SWEEP",TOGGLE_ACTION="TOGGLE_ACTION",SET_ACTIONS_ACTIVE="SET_ACTIONS_ACTIVE",JUMP_TO_STATE="JUMP_TO_STATE",JUMP_TO_ACTION="JUMP_TO_ACTION",IMPORT_STATE="IMPORT_STATE",LOCK_CHANGES="LOCK_CHANGES",PAUSE_RECORDING="PAUSE_RECORDING";class PerformAction{constructor(Q,m){if(this.action=Q,this.timestamp=m,this.type=PERFORM_ACTION,void 0===Q.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}}class Refresh{constructor(){this.type=REFRESH}}class Reset{constructor(Q){this.timestamp=Q,this.type=RESET}}class Rollback{constructor(Q){this.timestamp=Q,this.type=ROLLBACK}}class Commit{constructor(Q){this.timestamp=Q,this.type=COMMIT}}class Sweep{constructor(){this.type=SWEEP}}class ToggleAction{constructor(Q){this.id=Q,this.type=TOGGLE_ACTION}}class SetActionsActive{constructor(Q,m,e=!0){this.start=Q,this.end=m,this.active=e,this.type=SET_ACTIONS_ACTIVE}}class JumpToState{constructor(Q){this.index=Q,this.type=JUMP_TO_STATE}}class JumpToAction{constructor(Q){this.actionId=Q,this.type=JUMP_TO_ACTION}}class ImportState{constructor(Q){this.nextLiftedState=Q,this.type=IMPORT_STATE}}class LockChanges{constructor(Q){this.status=Q,this.type=LOCK_CHANGES}}class PauseRecording{constructor(Q){this.status=Q,this.type=PAUSE_RECORDING}}function difference(Ve,Q){return Ve.filter(m=>Q.indexOf(m)<0)}function unliftState(Ve){const{computedStates:Q,currentStateIndex:m}=Ve;if(m>=Q.length){const{state:t}=Q[Q.length-1];return t}const{state:e}=Q[m];return e}function unliftAction(Ve){return Ve.actionsById[Ve.nextActionId-1]}function liftAction(Ve){return new PerformAction(Ve,+Date.now())}function sanitizeActions(Ve,Q){return Object.keys(Q).reduce((m,e)=>{const t=Number(e);return m[t]=sanitizeAction(Ve,Q[t],t),m},{})}function sanitizeAction(Ve,Q,m){return Object.assign(Object.assign({},Q),{action:Ve(Q.action,m)})}function sanitizeStates(Ve,Q){return Q.map((m,e)=>({state:sanitizeState(Ve,m.state,e),error:m.error}))}function sanitizeState(Ve,Q,m){return Ve(Q,m)}function shouldFilterActions(Ve){return Ve.predicate||Ve.actionsSafelist||Ve.actionsBlocklist}function filterLiftedState(Ve,Q,m,e){const t=[],v={},C=[];return Ve.stagedActionIds.forEach((o,M)=>{const l=Ve.actionsById[o];!l||M&&isActionFiltered(Ve.computedStates[M],l,Q,m,e)||(v[o]=l,t.push(o),C.push(Ve.computedStates[M]))}),Object.assign(Object.assign({},Ve),{stagedActionIds:t,actionsById:v,computedStates:C})}function isActionFiltered(Ve,Q,m,e,t){const v=m&&!m(Ve,Q.action),C=e&&!Q.action.type.match(e.map(M=>escapeRegExp(M)).join("|")),o=t&&Q.action.type.match(t.map(M=>escapeRegExp(M)).join("|"));return v||C||o}function escapeRegExp(Ve){return Ve.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(Ve,Q,m,e,t){if(e)return{state:m,error:"Interrupted by an error up the chain"};let C,v=m;try{v=Ve(m,Q)}catch(o){C=o.toString(),t.handleError(o)}return{state:v,error:C}}function recomputeStates(Ve,Q,m,e,t,v,C,o,M){if(Q>=Ve.length&&Ve.length===v.length)return Ve;const l=Ve.slice(0,Q),R=v.length-(M?1:0);for(let s=Q;s-1?A:computeNextEntry(m,O,E,P,o);l.push(Z)}return M&&l.push(Ve[Ve.length-1]),l}function liftInitialState(Ve,Q){return{monitorState:Q(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:Ve,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(Ve,Q,m,e,t={}){return v=>(C,o)=>{let{monitorState:M,actionsById:l,nextActionId:R,stagedActionIds:s,skippedActionIds:L,committedState:O,currentStateIndex:A,computedStates:E,isLocked:P,isPaused:w}=C||Q;function Z(ie){let ee=ie,ve=s.slice(1,ee+1);for(let he=0;he-1===ve.indexOf(he)),s=[0,...s.slice(ee+1)],O=E[ee].state,E=E.slice(ee),A=A>ee?A-ee:0}function j(){l={0:liftAction(INIT_ACTION)},R=1,s=[0],L=[],O=E[A].state,A=0,E=[]}C||(l=Object.create(l));let W=0;switch(o.type){case LOCK_CHANGES:P=o.status,W=1/0;break;case PAUSE_RECORDING:w=o.status,w?(s=[...s,R],l[R]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),R++,W=s.length-1,E=E.concat(E[E.length-1]),A===s.length-2&&A++,W=1/0):j();break;case RESET:l={0:liftAction(INIT_ACTION)},R=1,s=[0],L=[],O=Ve,A=0,E=[];break;case COMMIT:j();break;case ROLLBACK:l={0:liftAction(INIT_ACTION)},R=1,s=[0],L=[],A=0,E=[];break;case TOGGLE_ACTION:{const{id:ie}=o;L=-1===L.indexOf(ie)?[ie,...L]:L.filter(ve=>ve!==ie),W=s.indexOf(ie);break}case SET_ACTIONS_ACTIVE:{const{start:ie,end:ee,active:ve}=o,he=[];for(let re=ie;ret.maxAge&&(E=recomputeStates(E,W,v,O,l,s,L,m,w),Z(s.length-t.maxAge),W=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb:if(E.filter(ee=>ee.error).length>0)W=0,t.maxAge&&s.length>t.maxAge&&(E=recomputeStates(E,W,v,O,l,s,L,m,w),Z(s.length-t.maxAge),W=1/0);else{if(!w&&!P){A===s.length-1&&A++;const ee=R++;l[ee]=new PerformAction(o,+Date.now()),s=[...s,ee],W=s.length-1,E=recomputeStates(E,W,v,O,l,s,L,m,w)}E=E.map(ee=>Object.assign(Object.assign({},ee),{state:v(ee.state,RECOMPUTE_ACTION)})),A=s.length-1,t.maxAge&&s.length>t.maxAge&&Z(s.length-t.maxAge),W=1/0}break;default:W=1/0}return E=recomputeStates(E,W,v,O,l,s,L,m,w),M=e(M,o),{monitorState:M,actionsById:l,nextActionId:R,stagedActionIds:s,skippedActionIds:L,committedState:O,currentStateIndex:A,computedStates:E,isLocked:P,isPaused:w}}}let DevtoolsDispatcher=(()=>{class Ve extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO{}return Ve.\u0275fac=function(){let Q;return function(e){return(Q||(Q=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(Ve)))(e||Ve)}}(),Ve.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();const ExtensionActionTypes={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},REDUX_DEVTOOLS_EXTENSION=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Redux Devtools Extension");let DevtoolsExtension=(()=>{class DevtoolsExtension{constructor(Ve,Q,m){this.config=Q,this.dispatcher=m,this.devtoolsExtension=Ve,this.createActionStreams()}notify(Ve,Q){if(this.devtoolsExtension)if(Ve.type===PERFORM_ACTION){if(Q.isLocked||Q.isPaused)return;const m=unliftState(Q);if(shouldFilterActions(this.config)&&isActionFiltered(m,Ve,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const e=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,m,Q.currentStateIndex):m,t=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,Ve,Q.nextActionId):Ve;this.sendToReduxDevtools(()=>this.extensionConnection.send(t,e))}else{const m=Object.assign(Object.assign({},Q),{stagedActionIds:Q.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,Q.actionsById):Q.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,Q.computedStates):Q.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,m,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_3__.y(Ve=>{const Q=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=Q,Q.init(),Q.subscribe(m=>Ve.next(m)),Q.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_2__.E}createActionStreams(){const Ve=this.createChangesObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.B)()),Q=Ve.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(o=>o.type===ExtensionActionTypes.START)),m=Ve.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(o=>o.type===ExtensionActionTypes.STOP)),e=Ve.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(o=>o.type===ExtensionActionTypes.DISPATCH),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(o=>this.unwrapAction(o.payload)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.b)(o=>o.type===IMPORT_STATE?this.dispatcher.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(M=>M.type===_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.V)(1e3),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.b)(1e3),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(()=>o),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.K)(()=>(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(o)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.q)(1)):(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(o))),v=Ve.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(o=>o.type===ExtensionActionTypes.ACTION),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(o=>this.unwrapAction(o.payload))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(m)),C=e.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(m));this.start$=Q.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(m)),this.actions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>v)),this.liftedActions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>C))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(Ve){var Q;const m={name:Ve.name,features:Ve.features,serialize:Ve.serialize,autoPause:null!==(Q=Ve.autoPause)&&void 0!==Q&&Q};return!1!==Ve.maxAge&&(m.maxAge=Ve.maxAge),m}sendToReduxDevtools(Ve){try{Ve()}catch(Q){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",Q)}}}return DevtoolsExtension.\u0275fac=function Ve(Q){return new(Q||DevtoolsExtension)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(REDUX_DEVTOOLS_EXTENSION),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(STORE_DEVTOOLS_CONFIG),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsDispatcher))},DevtoolsExtension.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:DevtoolsExtension,factory:DevtoolsExtension.\u0275fac}),DevtoolsExtension})(),StoreDevtools=(()=>{class Ve{constructor(m,e,t,v,C,o,M,l){const R=liftInitialState(M,l.monitor),s=liftReducerWith(M,R,o,l.monitor,l),L=(0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)(e.asObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.T)(1)),v.actions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(liftAction)),m,v.liftedActions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.Q)(rxjs__WEBPACK_IMPORTED_MODULE_18__.N)),O=t.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(s)),A=new rxjs__WEBPACK_IMPORTED_MODULE_19__.t(1),E=L.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.M)(O),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.R)(({state:j},[W,ie])=>{let ee=ie(j,W);return W.type!==PERFORM_ACTION&&shouldFilterActions(l)&&(ee=filterLiftedState(ee,l.predicate,l.actionsSafelist,l.actionsBlocklist)),v.notify(W,ee),{state:ee,action:W}},{state:R,action:null})).subscribe(({state:j,action:W})=>{A.next(j),W.type===PERFORM_ACTION&&C.next(W.action)}),P=v.start$.subscribe(()=>{this.refresh()}),w=A.asObservable(),Z=w.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(unliftState));this.extensionStartSubscription=P,this.stateSubscription=E,this.dispatcher=m,this.liftedState=w,this.state=Z}dispatch(m){this.dispatcher.next(m)}next(m){this.dispatcher.next(m)}error(m){}complete(){}performAction(m){this.dispatch(new PerformAction(m,+Date.now()))}refresh(){this.dispatch(new Refresh)}reset(){this.dispatch(new Reset(+Date.now()))}rollback(){this.dispatch(new Rollback(+Date.now()))}commit(){this.dispatch(new Commit(+Date.now()))}sweep(){this.dispatch(new Sweep)}toggleAction(m){this.dispatch(new ToggleAction(m))}jumpToAction(m){this.dispatch(new JumpToAction(m))}jumpToState(m){this.dispatch(new JumpToState(m))}importState(m){this.dispatch(new ImportState(m))}lockChanges(m){this.dispatch(new LockChanges(m))}pauseRecording(m){this.dispatch(new PauseRecording(m))}}return Ve.\u0275fac=function(m){return new(m||Ve)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsDispatcher),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.n$),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsExtension),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.Y$),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_0__.qLn),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.Y6),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(STORE_DEVTOOLS_CONFIG))},Ve.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();const IS_EXTENSION_OR_MONITOR_PRESENT=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(Ve,Q){return Boolean(Ve)||Q.monitor!==noMonitor}function createReduxDevtoolsExtension(){const Ve="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&void 0!==window[Ve]?window[Ve]:null}function createStateObservable(Ve){return Ve.state}let StoreDevtoolsModule=(()=>{class Ve{static instrument(m={}){return{ngModule:Ve,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:m},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.FR,deps:[StoreDevtools],useFactory:createStateObservable},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.mK,useExisting:DevtoolsDispatcher}]}}}return Ve.\u0275fac=function(m){return new(m||Ve)},Ve.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:Ve}),Ve.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({}),Ve})()},5620:(Ve,Q,m)=>{"use strict";m.d(Q,{UO:()=>ie,qg:()=>W,Y6:()=>re,mK:()=>Y,n$:()=>we,Y$:()=>Fe,FR:()=>ue,yh:()=>$,CK:()=>qe,Aw:()=>yt,cr:()=>ye,wb:()=>ae,qC:()=>ze,PH:()=>P,ZF:()=>Jt,Lq:()=>qi,P1:()=>et,on:()=>Si,Ky:()=>w});var e=m(5e3),t=m(1135),v=m(8306),C=m(7579),o=m(233),M=m(4004),R=m(5363),s=m(1365),L=m(5026),O=m(1884);const A={};function P(ot,Kt){if(A[ot]=(A[ot]||0)+1,"function"==typeof Kt)return j(ot,(...Lt)=>Object.assign(Object.assign({},Kt(...Lt)),{type:ot}));switch(Kt?Kt._as:"empty"){case"empty":return j(ot,()=>({type:ot}));case"props":return j(ot,Lt=>Object.assign(Object.assign({},Lt),{type:ot}));default:throw new Error("Unexpected config.")}}function w(){return{_as:"props",_p:void 0}}function j(ot,Kt){return Object.defineProperty(Kt,"type",{value:ot,writable:!1})}const W="@ngrx/store/init";let ie=(()=>{class ot extends t.X{constructor(){super({type:W})}next(gt){if("function"==typeof gt)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(void 0===gt)throw new TypeError("Actions must be objects");if(void 0===gt.type)throw new TypeError("Actions must have a type property");super.next(gt)}complete(){}ngOnDestroy(){super.complete()}}return ot.\u0275fac=function(gt){return new(gt||ot)},ot.\u0275prov=e.Yz7({token:ot,factory:ot.\u0275fac}),ot})();const ee=[ie],ve=new e.OlP("@ngrx/store Internal Root Guard"),he=new e.OlP("@ngrx/store Internal Initial State"),re=new e.OlP("@ngrx/store Initial State"),de=new e.OlP("@ngrx/store Reducer Factory"),le=new e.OlP("@ngrx/store Internal Reducer Factory Provider"),se=new e.OlP("@ngrx/store Initial Reducers"),y=new e.OlP("@ngrx/store Internal Initial Reducers"),i=new e.OlP("@ngrx/store Store Features"),a=new e.OlP("@ngrx/store Internal Store Reducers"),p=new e.OlP("@ngrx/store Internal Feature Reducers"),u=new e.OlP("@ngrx/store Internal Feature Configs"),_=new e.OlP("@ngrx/store Internal Store Features"),D=new e.OlP("@ngrx/store Internal Feature Reducers Token"),I=new e.OlP("@ngrx/store Feature Reducers"),x=new e.OlP("@ngrx/store User Provided Meta Reducers"),r=new e.OlP("@ngrx/store Meta Reducers"),b=new e.OlP("@ngrx/store Internal Resolved Meta Reducers"),U=new e.OlP("@ngrx/store User Runtime Checks Config"),N=new e.OlP("@ngrx/store Internal User Runtime Checks Config"),z=new e.OlP("@ngrx/store Internal Runtime Checks"),be=new e.OlP("@ngrx/store Check if Action types are unique");function xe(ot,Kt={}){const gt=Object.keys(ot),Lt={};for(let Ci=0;CiCi(ui),gt(Kt))}}function Le(ot,Kt){return Array.isArray(Kt)&&Kt.length>0&&(ot=ze.apply(null,[...Kt,ot])),(gt,Lt)=>{const ui=ot(gt);return(Ci,Yi)=>ui(Ci=void 0===Ci?Lt:Ci,Yi)}}class we extends v.y{}class Y extends ie{}const ae="@ngrx/store/update-reducers";let Ge=(()=>{class ot extends t.X{constructor(gt,Lt,ui,Ci){super(Ci(ui,Lt)),this.dispatcher=gt,this.initialState=Lt,this.reducers=ui,this.reducerFactory=Ci}get currentReducers(){return this.reducers}addFeature(gt){this.addFeatures([gt])}addFeatures(gt){const Lt=gt.reduce((ui,{reducers:Ci,reducerFactory:Yi,metaReducers:$i,initialState:Cn,key:Ln})=>{const _n="function"==typeof Ci?function K(ot){const Kt=Array.isArray(ot)&&ot.length>0?ze(...ot):gt=>gt;return(gt,Lt)=>(gt=Kt(gt),(ui,Ci)=>gt(ui=void 0===ui?Lt:ui,Ci))}($i)(Ci,Cn):Le(Yi,$i)(Ci,Cn);return ui[Ln]=_n,ui},{});this.addReducers(Lt)}removeFeature(gt){this.removeFeatures([gt])}removeFeatures(gt){this.removeReducers(gt.map(Lt=>Lt.key))}addReducer(gt,Lt){this.addReducers({[gt]:Lt})}addReducers(gt){this.reducers=Object.assign(Object.assign({},this.reducers),gt),this.updateReducers(Object.keys(gt))}removeReducer(gt){this.removeReducers([gt])}removeReducers(gt){gt.forEach(Lt=>{this.reducers=function Re(ot,Kt){return Object.keys(ot).filter(gt=>gt!==Kt).reduce((gt,Lt)=>Object.assign(gt,{[Lt]:ot[Lt]}),{})}(this.reducers,Lt)}),this.updateReducers(gt)}updateReducers(gt){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:ae,features:gt})}ngOnDestroy(){this.complete()}}return ot.\u0275fac=function(gt){return new(gt||ot)(e.LFG(Y),e.LFG(re),e.LFG(se),e.LFG(de))},ot.\u0275prov=e.Yz7({token:ot,factory:ot.\u0275fac}),ot})();const vt=[Ge,{provide:we,useExisting:Ge},{provide:Y,useExisting:ie}];let Fe=(()=>{class ot extends C.x{ngOnDestroy(){this.complete()}}return ot.\u0275fac=function(){let Kt;return function(Lt){return(Kt||(Kt=e.n5z(ot)))(Lt||ot)}}(),ot.\u0275prov=e.Yz7({token:ot,factory:ot.\u0275fac}),ot})();const Ne=[Fe];class ue extends v.y{}let Oe=(()=>{class ot extends t.X{constructor(gt,Lt,ui,Ci){super(Ci);const Ln=gt.pipe((0,R.Q)(o.N)).pipe((0,s.M)(Lt)).pipe((0,L.R)(Pe,{state:Ci}));this.stateSubscription=Ln.subscribe(({state:_n,action:kn})=>{this.next(_n),ui.next(kn)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return ot.INIT=W,ot.\u0275fac=function(gt){return new(gt||ot)(e.LFG(ie),e.LFG(we),e.LFG(Fe),e.LFG(re))},ot.\u0275prov=e.Yz7({token:ot,factory:ot.\u0275fac}),ot})();function Pe(ot={state:void 0},[Kt,gt]){const{state:Lt}=ot;return{state:gt(Lt,Kt),action:Kt}}const q=[Oe,{provide:ue,useExisting:Oe}];let $=(()=>{class ot extends v.y{constructor(gt,Lt,ui){super(),this.actionsObserver=Lt,this.reducerManager=ui,this.source=gt}select(gt,...Lt){return Me.call(null,gt,...Lt)(this)}lift(gt){const Lt=new ot(this,this.actionsObserver,this.reducerManager);return Lt.operator=gt,Lt}dispatch(gt){this.actionsObserver.next(gt)}next(gt){this.actionsObserver.next(gt)}error(gt){this.actionsObserver.error(gt)}complete(){this.actionsObserver.complete()}addReducer(gt,Lt){this.reducerManager.addReducer(gt,Lt)}removeReducer(gt){this.reducerManager.removeReducer(gt)}}return ot.\u0275fac=function(gt){return new(gt||ot)(e.LFG(ue),e.LFG(ie),e.LFG(Ge))},ot.\u0275prov=e.Yz7({token:ot,factory:ot.\u0275fac}),ot})();const ce=[$];function Me(ot,Kt,...gt){return function(ui){let Ci;if("string"==typeof ot){const Yi=[Kt,...gt].filter(Boolean);Ci=ui.pipe(function l(...ot){const Kt=ot.length;if(0===Kt)throw new Error("list of properties cannot be empty.");return(0,M.U)(gt=>{let Lt=gt;for(let ui=0;uiot(Yi,Kt)))}return Ci.pipe((0,O.x)())}}const lt="https://ngrx.io/guide/store/configuration/runtime-checks";function nt(ot){return void 0===ot}function ft(ot){return null===ot}function it(ot){return Array.isArray(ot)}function Ft(ot){return"object"==typeof ot&&null!==ot}function jt(ot){return"function"==typeof ot}function Ee(ot,Kt){return ot===Kt}function G(ot,Kt,gt){for(let Lt=0;Lt_n.release&&"function"==typeof _n.release),$i=ot(function(..._n){return Ci.apply(null,_n)}),Cn=De(function(_n,kn){return Kt.stateFn.apply(null,[_n,ui,kn,$i])});return Object.assign(Cn.memoized,{release:function Ln(){Cn.reset(),$i.reset(),Yi.forEach(_n=>_n.release())},projector:$i.memoized,setResult:Cn.setResult,clearResult:Cn.clearResult})}}(De)(...ot)}function $t(ot,Kt,gt,Lt){if(void 0===gt){const Ci=Kt.map(Yi=>Yi(ot));return Lt.memoized.apply(null,Ci)}const ui=Kt.map(Ci=>Ci(ot,gt));return Lt.memoized.apply(null,[...ui,gt])}function Jt(ot){return et(Kt=>{const gt=Kt[ot];return(0,e.X6Q)()&&!(ot in Kt)&&console.warn(`@ngrx/store: The feature name "${ot}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${ot}', ...) or StoreModule.forFeature('${ot}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),gt},Kt=>Kt)}function st(ot){Object.freeze(ot);const Kt=jt(ot);return Object.getOwnPropertyNames(ot).forEach(gt=>{if(!gt.startsWith("\u0275")&&function ki(ot,Kt){return Object.prototype.hasOwnProperty.call(ot,Kt)}(ot,gt)&&(!Kt||"caller"!==gt&&"callee"!==gt&&"arguments"!==gt)){const Lt=ot[gt];(Ft(Lt)||jt(Lt))&&!Object.isFrozen(Lt)&&st(Lt)}}),ot}function li(ot,Kt=[]){return(nt(ot)||ft(ot))&&0===Kt.length?{path:["root"],value:ot}:Object.keys(ot).reduce((Lt,ui)=>{if(Lt)return Lt;const Ci=ot[ui];return function ei(ot){return jt(ot)&&ot.hasOwnProperty("\u0275cmp")}(Ci)?Lt:!(nt(Ci)||ft(Ci)||function Zt(ot){return"number"==typeof ot}(Ci)||function Mt(ot){return"boolean"==typeof ot}(Ci)||function rt(ot){return"string"==typeof ot}(Ci)||it(Ci))&&(function Ii(ot){if(!function Vt(ot){return Ft(ot)&&!it(ot)}(ot))return!1;const Kt=Object.getPrototypeOf(ot);return Kt===Object.prototype||null===Kt}(Ci)?li(Ci,[...Kt,ui]):{path:[...Kt,ui],value:Ci})},!1)}function Bt(ot,Kt){if(!1===ot)return;const gt=ot.path.join("."),Lt=new Error(`Detected unserializable ${Kt} at "${gt}". ${lt}#strict${Kt}serializability`);throw Lt.value=ot.value,Lt.unserializablePath=gt,Lt}function Li(ot){return(0,e.X6Q)()?Object.assign({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},ot):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function si({strictActionSerializability:ot,strictStateSerializability:Kt}){return gt=>ot||Kt?function At(ot,Kt){return function(gt,Lt){Kt.action(Lt)&&Bt(li(Lt),"action");const ui=ot(gt,Lt);return Kt.state()&&Bt(li(ui),"state"),ui}}(gt,{action:Lt=>ot&&!sn(Lt),state:()=>Kt}):gt}function ci({strictActionImmutability:ot,strictStateImmutability:Kt}){return gt=>ot||Kt?function at(ot,Kt){return function(gt,Lt){const ui=Kt.action(Lt)?st(Lt):Lt,Ci=ot(gt,ui);return Kt.state()?st(Ci):Ci}}(gt,{action:Lt=>ot&&!sn(Lt),state:()=>Kt}):gt}function sn(ot){return ot.type.startsWith("@ngrx")}function Ui({strictActionWithinNgZone:ot}){return Kt=>ot?function Rt(ot,Kt){return function(gt,Lt){if(Kt.action(Lt)&&!e.R0b.isInAngularZone())throw new Error(`Action '${Lt.type}' running outside NgZone. ${lt}#strictactionwithinngzone`);return ot(gt,Lt)}}(Kt,{action:gt=>ot&&!sn(gt)}):Kt}function Di(ot){return[{provide:N,useValue:ot},{provide:U,useFactory:Ke,deps:[N]},{provide:z,deps:[U],useFactory:Li},{provide:r,multi:!0,deps:[z],useFactory:ci},{provide:r,multi:!0,deps:[z],useFactory:si},{provide:r,multi:!0,deps:[z],useFactory:Ui}]}function Xi(){return[{provide:be,multi:!0,deps:[z],useFactory:_t}]}function Ke(ot){return ot}function _t(ot){if(!ot.strictActionTypeUniqueness)return;const Kt=Object.entries(A).filter(([,gt])=>gt>1).map(([gt])=>gt);if(Kt.length)throw new Error(`Action types are registered more than once, ${Kt.map(gt=>`"${gt}"`).join(", ")}. ${lt}#strictactiontypeuniqueness`)}let ye=(()=>{class ot{constructor(gt,Lt,ui,Ci,Yi,$i){}}return ot.\u0275fac=function(gt){return new(gt||ot)(e.LFG(ie),e.LFG(we),e.LFG(Fe),e.LFG($),e.LFG(ve,8),e.LFG(be,8))},ot.\u0275mod=e.oAB({type:ot}),ot.\u0275inj=e.cJS({}),ot})(),qe=(()=>{class ot{constructor(gt,Lt,ui,Ci,Yi){this.features=gt,this.featureReducers=Lt,this.reducerManager=ui;const $i=gt.map((Cn,Ln)=>{const kn=Lt.shift()[Ln];return Object.assign(Object.assign({},Cn),{reducers:kn,initialState:kt(Cn.initialState)})});ui.addFeatures($i)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return ot.\u0275fac=function(gt){return new(gt||ot)(e.LFG(_),e.LFG(I),e.LFG(Ge),e.LFG(ye),e.LFG(be,8))},ot.\u0275mod=e.oAB({type:ot}),ot.\u0275inj=e.cJS({}),ot})(),yt=(()=>{class ot{static forRoot(gt,Lt={}){return{ngModule:ye,providers:[{provide:ve,useFactory:Ni,deps:[[$,new e.FiY,new e.tp0]]},{provide:he,useValue:Lt.initialState},{provide:re,useFactory:kt,deps:[he]},{provide:y,useValue:gt},{provide:a,useExisting:gt instanceof e.OlP?gt:y},{provide:se,deps:[e.zs3,y,[new e.tBr(a)]],useFactory:pe},{provide:x,useValue:Lt.metaReducers?Lt.metaReducers:[]},{provide:b,deps:[r,x],useFactory:yi},{provide:le,useValue:Lt.reducerFactory?Lt.reducerFactory:xe},{provide:de,deps:[le,b],useFactory:Le},ee,vt,Ne,q,ce,Di(Lt.runtimeChecks),Xi()]}}static forFeature(gt,Lt,ui={}){return{ngModule:qe,providers:[{provide:u,multi:!0,useValue:gt instanceof Object?{}:ui},{provide:i,multi:!0,useValue:{key:gt instanceof Object?gt.name:gt,reducerFactory:ui instanceof e.OlP||!ui.reducerFactory?xe:ui.reducerFactory,metaReducers:ui instanceof e.OlP||!ui.metaReducers?[]:ui.metaReducers,initialState:ui instanceof e.OlP||!ui.initialState?void 0:ui.initialState}},{provide:_,deps:[e.zs3,u,i],useFactory:Je},{provide:p,multi:!0,useValue:gt instanceof Object?gt.reducer:Lt},{provide:D,multi:!0,useExisting:Lt instanceof e.OlP?Lt:p},{provide:I,multi:!0,deps:[e.zs3,p,[new e.tBr(D)]],useFactory:St},Xi()]}}}return ot.\u0275fac=function(gt){return new(gt||ot)},ot.\u0275mod=e.oAB({type:ot}),ot.\u0275inj=e.cJS({}),ot})();function pe(ot,Kt){return Kt instanceof e.OlP?ot.get(Kt):Kt}function Je(ot,Kt,gt){return gt.map((Lt,ui)=>{if(Kt[ui]instanceof e.OlP){const Ci=ot.get(Kt[ui]);return{key:Lt.key,reducerFactory:Ci.reducerFactory?Ci.reducerFactory:xe,metaReducers:Ci.metaReducers?Ci.metaReducers:[],initialState:Ci.initialState}}return Lt})}function St(ot,Kt){return Kt.map(Lt=>Lt instanceof e.OlP?ot.get(Lt):Lt)}function kt(ot){return"function"==typeof ot?ot():ot}function yi(ot,Kt){return ot.concat(Kt)}function Ni(ot){if(ot)throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature() instead.");return"guarded"}function Si(...ot){return{reducer:ot.pop(),types:ot.map(Lt=>Lt.type)}}function qi(ot,...Kt){const gt=new Map;for(const Lt of Kt)for(const ui of Lt.types){const Ci=gt.get(ui);gt.set(ui,Ci?($i,Cn)=>Lt.reducer(Ci($i,Cn),Cn):Lt.reducer)}return function(Lt=ot,ui){const Ci=gt.get(ui.type);return Ci?Ci(Lt,ui):Lt}}},159:(Ve,Q,m)=>{"use strict";m.d(Q,{uU:()=>s,OF:()=>L});var e=m(5e3),t=m(9808),v=m(655),C=m(3259);function o(O,A){if(1&O&&e._UZ(0,"canvas",1),2&O){const E=e.oxw();e.Q6J("qrCode",E.value)("qrCodeErrorCorrectionLevel",E.errorCorrectionLevel)("qrCodeCenterImageSrc",E.centerImageSrc)("qrCodeCenterImageWidth",E.centerImageSize)("qrCodeCenterImageHeight",E.centerImageSize)("qrCodeMargin",E.margin)("width",E.size)("height",E.size)("darkColor",E.darkColor)("lightColor",E.lightColor)}}const M=/^#(?:[0-9a-fA-F]{3,4}){1,2}$/;let l=(()=>{class O{constructor(E){this.viewContainerRef=E,this.errorCorrectionLevel=O.DEFAULT_ERROR_CORRECTION_LEVEL,this.darkColor="#000000FF",this.lightColor="#FFFFFFFF",this.margin=16}ngOnChanges(){var E,P;return(0,v.mG)(this,void 0,void 0,function*(){if(!this.value)return;this.version&&this.version>40?(console.warn("[qrCode] max version is 40, clamping"),this.version=40):this.version&&this.version<1?(console.warn("[qrCode] min version is 1, clamping"),this.version=1):void 0!==this.version&&isNaN(this.version)&&(console.warn("[qrCode] version should be set to a number, defaulting to auto"),this.version=void 0);const w=this.viewContainerRef.element.nativeElement;if(!w)return;const Z=w.getContext("2d");Z&&Z.clearRect(0,0,Z.canvas.width,Z.canvas.height);const j=null!==(E=this.errorCorrectionLevel)&&void 0!==E?E:O.DEFAULT_ERROR_CORRECTION_LEVEL,W=M.test(this.darkColor)?this.darkColor:void 0,ie=M.test(this.lightColor)?this.lightColor:void 0;(0,e.X6Q)()&&(!W&&this.darkColor&&console.error("[ng-qrcode] darkColor set to invalid value, must be RGBA hex color string, eg: #3050A1FF"),!ie&&this.lightColor&&console.error("[ng-qrcode] lightColor set to invalid value, must be RGBA hex color string, eg: #3050A130")),yield C.toCanvas(w,this.value,{version:this.version,errorCorrectionLevel:j,width:this.width,margin:this.margin,color:{dark:W,light:ie}});const ee=this.centerImageSrc,ve=R(this.centerImageWidth,O.DEFAULT_CENTER_IMAGE_SIZE),he=R(this.centerImageHeight,O.DEFAULT_CENTER_IMAGE_SIZE);if(ee&&Z){this.centerImage||(this.centerImage=new Image(ve,he)),ee!==(null===(P=this.centerImage)||void 0===P?void 0:P.src)&&(this.centerImage.src=ee),ve!==this.centerImage.width&&(this.centerImage.width=ve),he!==this.centerImage.height&&(this.centerImage.height=he);const re=this.centerImage;re.onload=()=>{Z.drawImage(re,w.width/2-ve/2,w.height/2-he/2,ve,he)}}})}}return O.DEFAULT_ERROR_CORRECTION_LEVEL="M",O.DEFAULT_CENTER_IMAGE_SIZE=40,O.\u0275fac=function(E){return new(E||O)(e.Y36(e.s_b))},O.\u0275dir=e.lG2({type:O,selectors:[["canvas","qrCode",""]],inputs:{value:["qrCode","value"],version:["qrCodeVersion","version"],errorCorrectionLevel:["qrCodeErrorCorrectionLevel","errorCorrectionLevel"],width:"width",height:"height",darkColor:"darkColor",lightColor:"lightColor",centerImageSrc:["qrCodeCenterImageSrc","centerImageSrc"],centerImageWidth:["qrCodeCenterImageWidth","centerImageWidth"],centerImageHeight:["qrCodeCenterImageHeight","centerImageHeight"],margin:["qrCodeMargin","margin"]},features:[e.TTD]}),O})();function R(O,A){return void 0===O||""===O?A:"string"==typeof O?parseInt(O,10):O}let s=(()=>{class O{}return O.\u0275fac=function(E){return new(E||O)},O.\u0275cmp=e.Xpm({type:O,selectors:[["qr-code"]],inputs:{value:"value",size:"size",darkColor:"darkColor",lightColor:"lightColor",errorCorrectionLevel:"errorCorrectionLevel",centerImageSrc:"centerImageSrc",centerImageSize:"centerImageSize",margin:"margin"},decls:1,vars:1,consts:[[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","width","height","darkColor","lightColor",4,"ngIf"],[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","width","height","darkColor","lightColor"]],template:function(E,P){1&E&&e.YNc(0,o,1,10,"canvas",0),2&E&&e.Q6J("ngIf",P.value)},directives:[t.O5,l],encapsulation:2}),O})(),L=(()=>{class O{}return O.\u0275fac=function(E){return new(E||O)},O.\u0275mod=e.oAB({type:O}),O.\u0275inj=e.cJS({imports:[[t.ez]]}),O})()},4946:Ve=>{"use strict";Ve.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"}}')},5207:Ve=>{"use strict";Ve.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","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},1308:Ve=>{"use strict";Ve.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"}')},9799:Ve=>{"use strict";Ve.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"}}')},8597:Ve=>{"use strict";Ve.exports={i8:"6.5.4"}},2562:Ve=>{"use strict";Ve.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"}')}},Ve=>{Ve(Ve.s=8864)}]); \ No newline at end of file diff --git a/frontend/main.e9a1704f9917b7a1.js b/frontend/main.e9a1704f9917b7a1.js new file mode 100644 index 00000000..ba024f04 --- /dev/null +++ b/frontend/main.e9a1704f9917b7a1.js @@ -0,0 +1 @@ +var M5=Object.defineProperty,w5=Object.defineProperties,A5=Object.getOwnPropertyDescriptors,m8=Object.getOwnPropertySymbols,E5=Object.prototype.hasOwnProperty,T5=Object.prototype.propertyIsEnumerable,g8=(Ve,Q,m)=>Q in Ve?M5(Ve,Q,{enumerable:!0,configurable:!0,writable:!0,value:m}):Ve[Q]=m,to=(Ve,Q)=>{for(var m in Q||(Q={}))E5.call(Q,m)&&g8(Ve,m,Q[m]);if(m8)for(var m of m8(Q))T5.call(Q,m)&&g8(Ve,m,Q[m]);return Ve},_8=(Ve,Q)=>w5(Ve,A5(Q));(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[179],{801:(Ve,Q,m)=>{"use strict";m.d(Q,{Sbq:()=>w,Vfw:()=>W,N2j:()=>ae,DL8:()=>$,BDt:()=>at,Acd:()=>gt,koM:()=>Vr,OS1:()=>pr,dT$:()=>Qt,mh3:()=>Xt,b7W:()=>Ti,kZ_:()=>wr,q7m:()=>ii,FlN:()=>ao,KOR:()=>Ea,Ssp:()=>bo,eHv:()=>Yr,Mdf:()=>a1,Aq:()=>aa,qO$:()=>kh,vqe:()=>os,sqG:()=>C1,Krp:()=>pl,uli:()=>z0,nNP:()=>E1,byT:()=>Z0,SuH:()=>I1,co4:()=>X0,aj4:()=>kc,kXW:()=>Ja,XsY:()=>vl,USL:()=>Fc,r8p:()=>bd,o4t:()=>Td,Psp:()=>Y1,dLy:()=>_2,FpQ:()=>x2,wn1:()=>vr,xf3:()=>Ud,HLz:()=>J1,NBC:()=>Z2,CgH:()=>$a,B$L:()=>qr,hkK:()=>$2,hnx:()=>ku,gNZ:()=>jc,FJU:()=>s0,FVb:()=>qc,X5K:()=>nh,wyP:()=>sh});var w={prefix:"fas",iconName:"angle-double-down",icon:[320,512,[],"f103","M143 256.3L7 120.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0L313 86.3c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.4 9.5-24.6 9.5-34 .1zm34 192l136-136c9.4-9.4 9.4-24.6 0-33.9l-22.6-22.6c-9.4-9.4-24.6-9.4-33.9 0L160 352.1l-96.4-96.4c-9.4-9.4-24.6-9.4-33.9 0L7 278.3c-9.4 9.4-9.4 24.6 0 33.9l136 136c9.4 9.5 24.6 9.5 34 .1z"]},W={prefix:"fas",iconName:"angle-double-up",icon:[320,512,[],"f102","M177 255.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 351.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 425.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1zm-34-192L7 199.7c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l96.4-96.4 96.4 96.4c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9l-136-136c-9.2-9.4-24.4-9.4-33.8 0z"]},ae={prefix:"fas",iconName:"archive",icon:[512,512,[],"f187","M32 448c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V160H32v288zm160-212c0-6.6 5.4-12 12-12h104c6.6 0 12 5.4 12 12v8c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-8zM480 32H32C14.3 32 0 46.3 0 64v48c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16V64c0-17.7-14.3-32-32-32z"]},$={prefix:"fas",iconName:"balance-scale",icon:[640,512,[],"f24e","M256 336h-.02c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0C-2.06 328.75.02 320.33.02 336H0c0 44.18 57.31 80 128 80s128-35.82 128-80zM128 176l72 144H56l72-144zm511.98 160c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 320l72-144 72 144H440zm88 128H352V153.25c23.51-10.29 41.16-31.48 46.39-57.25H528c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H383.64C369.04 12.68 346.09 0 320 0s-49.04 12.68-63.64 32H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h129.61c5.23 25.76 22.87 46.96 46.39 57.25V448H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]},at={prefix:"fas",iconName:"bolt",icon:[320,512,[],"f0e7","M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"]},gt={prefix:"fas",iconName:"bullhorn",icon:[576,512,[],"f0a1","M576 240c0-23.63-12.95-44.04-32-55.12V32.01C544 23.26 537.02 0 512 0c-7.12 0-14.19 2.38-19.98 7.02l-85.03 68.03C364.28 109.19 310.66 128 256 128H64c-35.35 0-64 28.65-64 64v96c0 35.35 28.65 64 64 64h33.7c-1.39 10.48-2.18 21.14-2.18 32 0 39.77 9.26 77.35 25.56 110.94 5.19 10.69 16.52 17.06 28.4 17.06h74.28c26.05 0 41.69-29.84 25.9-50.56-16.4-21.52-26.15-48.36-26.15-77.44 0-11.11 1.62-21.79 4.41-32H256c54.66 0 108.28 18.81 150.98 52.95l85.03 68.03a32.023 32.023 0 0 0 19.98 7.02c24.92 0 32-22.78 32-32V295.13C563.05 284.04 576 263.63 576 240zm-96 141.42l-33.05-26.44C392.95 311.78 325.12 288 256 288v-96c69.12 0 136.95-23.78 190.95-66.98L480 98.58v282.84z"]},Vr={prefix:"fas",iconName:"chart-bar",icon:[512,512,[],"f080","M332.8 320h38.4c6.4 0 12.8-6.4 12.8-12.8V172.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V76.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-288 0h38.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zM496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]},pr={prefix:"fas",iconName:"chart-pie",icon:[544,512,[],"f200","M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z"]},Qt={prefix:"fas",iconName:"code",icon:[640,512,[],"f121","M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"]},Xt={prefix:"fas",iconName:"code-branch",icon:[384,512,[],"f126","M384 144c0-44.2-35.8-80-80-80s-80 35.8-80 80c0 36.4 24.3 67.1 57.5 76.8-.6 16.1-4.2 28.5-11 36.9-15.4 19.2-49.3 22.4-85.2 25.7-28.2 2.6-57.4 5.4-81.3 16.9v-144c32.5-10.2 56-40.5 56-76.3 0-44.2-35.8-80-80-80S0 35.8 0 80c0 35.8 23.5 66.1 56 76.3v199.3C23.5 365.9 0 396.2 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-34-21.2-63.1-51.2-74.6 3.1-5.2 7.8-9.8 14.9-13.4 16.2-8.2 40.4-10.4 66.1-12.8 42.2-3.9 90-8.4 118.2-43.4 14-17.4 21.1-39.8 21.6-67.9 31.6-10.8 54.4-40.7 54.4-75.9zM80 64c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm0 384c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm224-320c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16z"]},Ti={prefix:"fas",iconName:"cog",icon:[512,512,[],"f013","M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]},wr={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"]},ii={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"]},ao={prefix:"fas",iconName:"dumbbell",icon:[640,512,[],"f44b","M104 96H56c-13.3 0-24 10.7-24 24v104H8c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h24v104c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24zm528 128h-24V120c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h24c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM456 32h-48c-13.3 0-24 10.7-24 24v168H256V56c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v400c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h128v168c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24z"]},Ea={prefix:"fas",iconName:"eject",icon:[448,512,[],"f052","M448 384v64c0 17.673-14.327 32-32 32H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h384c17.673 0 32 14.327 32 32zM48.053 320h351.886c41.651 0 63.581-49.674 35.383-80.435L259.383 47.558c-19.014-20.743-51.751-20.744-70.767 0L12.67 239.565C-15.475 270.268 6.324 320 48.053 320z"]},bo={prefix:"fas",iconName:"exchange-alt",icon:[512,512,[],"f362","M0 168v-16c0-13.255 10.745-24 24-24h360V80c0-21.367 25.899-32.042 40.971-16.971l80 80c9.372 9.373 9.372 24.569 0 33.941l-80 80C409.956 271.982 384 261.456 384 240v-48H24c-13.255 0-24-10.745-24-24zm488 152H128v-48c0-21.314-25.862-32.08-40.971-16.971l-80 80c-9.372 9.373-9.372 24.569 0 33.941l80 80C102.057 463.997 128 453.437 128 432v-48h360c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"]},Yr={prefix:"fas",iconName:"exclamation-triangle",icon:[576,512,[],"f071","M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"]},a1={prefix:"fas",iconName:"eye",icon:[576,512,[],"f06e","M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"]},aa={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"]},kh={prefix:"fas",iconName:"history",icon:[512,512,[],"f1da","M504 255.531c.253 136.64-111.18 248.372-247.82 248.468-59.015.042-113.223-20.53-155.822-54.911-11.077-8.94-11.905-25.541-1.839-35.607l11.267-11.267c8.609-8.609 22.353-9.551 31.891-1.984C173.062 425.135 212.781 440 256 440c101.705 0 184-82.311 184-184 0-101.705-82.311-184-184-184-48.814 0-93.149 18.969-126.068 49.932l50.754 50.754c10.08 10.08 2.941 27.314-11.313 27.314H24c-8.837 0-16-7.163-16-16V38.627c0-14.254 17.234-21.393 27.314-11.314l49.372 49.372C129.209 34.136 189.552 8 256 8c136.81 0 247.747 110.78 248 247.531zm-180.912 78.784l9.823-12.63c8.138-10.463 6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z"]},os={prefix:"fas",iconName:"infinity",icon:[640,512,[],"f534","M471.1 96C405 96 353.3 137.3 320 174.6 286.7 137.3 235 96 168.9 96 75.8 96 0 167.8 0 256s75.8 160 168.9 160c66.1 0 117.8-41.3 151.1-78.6 33.3 37.3 85 78.6 151.1 78.6 93.1 0 168.9-71.8 168.9-160S564.2 96 471.1 96zM168.9 320c-40.2 0-72.9-28.7-72.9-64s32.7-64 72.9-64c38.2 0 73.4 36.1 94 64-20.4 27.6-55.9 64-94 64zm302.2 0c-38.2 0-73.4-36.1-94-64 20.4-27.6 55.9-64 94-64 40.2 0 72.9 28.7 72.9 64s-32.7 64-72.9 64z"]},C1={prefix:"fas",iconName:"info-circle",icon:[512,512,[],"f05a","M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"]},pl={prefix:"fas",iconName:"layer-group",icon:[512,512,[],"f5fd","M12.41 148.02l232.94 105.67c6.8 3.09 14.49 3.09 21.29 0l232.94-105.67c16.55-7.51 16.55-32.52 0-40.03L266.65 2.31a25.607 25.607 0 0 0-21.29 0L12.41 107.98c-16.55 7.51-16.55 32.53 0 40.04zm487.18 88.28l-58.09-26.33-161.64 73.27c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.51 209.97l-58.1 26.33c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 276.3c16.55-7.5 16.55-32.5 0-40zm0 127.8l-57.87-26.23-161.86 73.37c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.29 337.87 12.41 364.1c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 404.1c16.55-7.5 16.55-32.5 0-40z"]},z0={prefix:"fas",iconName:"life-ring",icon:[512,512,[],"f1cd","M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm173.696 119.559l-63.399 63.399c-10.987-18.559-26.67-34.252-45.255-45.255l63.399-63.399a218.396 218.396 0 0 1 45.255 45.255zM256 352c-53.019 0-96-42.981-96-96s42.981-96 96-96 96 42.981 96 96-42.981 96-96 96zM127.559 82.304l63.399 63.399c-18.559 10.987-34.252 26.67-45.255 45.255l-63.399-63.399a218.372 218.372 0 0 1 45.255-45.255zM82.304 384.441l63.399-63.399c10.987 18.559 26.67 34.252 45.255 45.255l-63.399 63.399a218.396 218.396 0 0 1-45.255-45.255zm302.137 45.255l-63.399-63.399c18.559-10.987 34.252-26.67 45.255-45.255l63.399 63.399a218.403 218.403 0 0 1-45.255 45.255z"]},E1={prefix:"fas",iconName:"link",icon:[512,512,[],"f0c1","M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"]},Z0={prefix:"fas",iconName:"lock",icon:[448,512,[],"f023","M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"]},I1={prefix:"fas",iconName:"map-signs",icon:[512,512,[],"f277","M507.31 84.69L464 41.37c-6-6-14.14-9.37-22.63-9.37H288V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v16H56c-13.25 0-24 10.75-24 24v80c0 13.25 10.75 24 24 24h385.37c8.49 0 16.62-3.37 22.63-9.37l43.31-43.31c6.25-6.26 6.25-16.38 0-22.63zM224 496c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h-64v112zm232-272H288v-32h-64v32H70.63c-8.49 0-16.62 3.37-22.63 9.37L4.69 276.69c-6.25 6.25-6.25 16.38 0 22.63L48 342.63c6 6 14.14 9.37 22.63 9.37H456c13.25 0 24-10.75 24-24v-80c0-13.25-10.75-24-24-24z"]},X0={prefix:"fas",iconName:"money-bill-alt",icon:[640,512,[],"f3d1","M352 288h-16v-88c0-4.42-3.58-8-8-8h-13.58c-4.74 0-9.37 1.4-13.31 4.03l-15.33 10.22a7.994 7.994 0 0 0-2.22 11.09l8.88 13.31a7.994 7.994 0 0 0 11.09 2.22l.47-.31V288h-16c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8h64c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zM608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 192c-53.02 0-96-50.15-96-112 0-61.86 42.98-112 96-112s96 50.14 96 112c0 61.87-43 112-96 112zm272 32h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"]},kc={prefix:"fas",iconName:"money-bill-wave",icon:[640,512,[],"f53a","M621.16 54.46C582.37 38.19 543.55 32 504.75 32c-123.17-.01-246.33 62.34-369.5 62.34-30.89 0-61.76-3.92-92.65-13.72-3.47-1.1-6.95-1.62-10.35-1.62C15.04 79 0 92.32 0 110.81v317.26c0 12.63 7.23 24.6 18.84 29.46C57.63 473.81 96.45 480 135.25 480c123.17 0 246.34-62.35 369.51-62.35 30.89 0 61.76 3.92 92.65 13.72 3.47 1.1 6.95 1.62 10.35 1.62 17.21 0 32.25-13.32 32.25-31.81V83.93c-.01-12.64-7.24-24.6-18.85-29.47zM48 132.22c20.12 5.04 41.12 7.57 62.72 8.93C104.84 170.54 79 192.69 48 192.69v-60.47zm0 285v-47.78c34.37 0 62.18 27.27 63.71 61.4-22.53-1.81-43.59-6.31-63.71-13.62zM320 352c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96zm272 27.78c-17.52-4.39-35.71-6.85-54.32-8.44 5.87-26.08 27.5-45.88 54.32-49.28v57.72zm0-236.11c-30.89-3.91-54.86-29.7-55.81-61.55 19.54 2.17 38.09 6.23 55.81 12.66v48.89z"]},Ja={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M640 264v-16c0-8.84-7.16-16-16-16H344v-40h72c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H224c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h72v40H16c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h104v40H64c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h304v40h-56c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h104c8.84 0 16-7.16 16-16zM256 128V64h128v64H256zm-64 320H96v-64h96v64zm352 0h-96v-64h96v64z"]},vl={prefix:"fas",iconName:"paint-brush",icon:[512,512,[],"f1fc","M167.02 309.34c-40.12 2.58-76.53 17.86-97.19 72.3-2.35 6.21-8 9.98-14.59 9.98-11.11 0-45.46-27.67-55.25-34.35C0 439.62 37.93 512 128 512c75.86 0 128-43.77 128-120.19 0-3.11-.65-6.08-.97-9.13l-88.01-73.34zM457.89 0c-15.16 0-29.37 6.71-40.21 16.45C213.27 199.05 192 203.34 192 257.09c0 13.7 3.25 26.76 8.73 38.7l63.82 53.18c7.21 1.8 14.64 3.03 22.39 3.03 62.11 0 98.11-45.47 211.16-256.46 7.38-14.35 13.9-29.85 13.9-45.99C512 20.64 486 0 457.89 0z"]},Fc={prefix:"fas",iconName:"percentage",icon:[384,512,[],"f541","M109.25 173.25c24.99-24.99 24.99-65.52 0-90.51-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 25 25 65.52 25 90.51 0zm256 165.49c-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 24.99 24.99 65.52 24.99 90.51 0 25-24.99 25-65.51 0-90.51zm-1.94-231.43l-22.62-22.62c-12.5-12.5-32.76-12.5-45.25 0L20.69 359.44c-12.5 12.5-12.5 32.76 0 45.25l22.62 22.62c12.5 12.5 32.76 12.5 45.25 0l274.75-274.75c12.5-12.49 12.5-32.75 0-45.25z"]},bd={prefix:"fas",iconName:"plus",icon:[448,512,[],"f067","M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]},Td={prefix:"fas",iconName:"project-diagram",icon:[640,512,[],"f542","M384 320H256c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32zM192 32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v128c0 17.67 14.33 32 32 32h95.72l73.16 128.04C211.98 300.98 232.4 288 256 288h.28L192 175.51V128h224V64H192V32zM608 0H480c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32z"]},Y1={prefix:"fas",iconName:"question",icon:[384,512,[],"f128","M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"]},_2={prefix:"fas",iconName:"receipt",icon:[384,512,[],"f543","M358.4 3.2L320 48 265.6 3.2a15.9 15.9 0 0 0-19.2 0L192 48 137.6 3.2a15.9 15.9 0 0 0-19.2 0L64 48 25.6 3.2C15-4.7 0 2.8 0 16v480c0 13.2 15 20.7 25.6 12.8L64 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L192 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L320 464l38.4 44.8c10.5 7.9 25.6.4 25.6-12.8V16c0-13.2-15-20.7-25.6-12.8zM320 360c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16z"]},x2={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M416 320h-96c-17.6 0-32-14.4-32-32s14.4-32 32-32h96s96-107 96-160-43-96-96-96-96 43-96 96c0 25.5 22.2 63.4 45.3 96H320c-52.9 0-96 43.1-96 96s43.1 96 96 96h96c17.6 0 32 14.4 32 32s-14.4 32-32 32H185.5c-16 24.8-33.8 47.7-47.3 64H416c52.9 0 96-43.1 96-96s-43.1-96-96-96zm0-256c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM96 256c-53 0-96 43-96 96s96 160 96 160 96-107 96-160-43-96-96-96zm0 128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]},vr={prefix:"fas",iconName:"search",icon:[512,512,[],"f002","M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"]},Ud={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M480 160H32c-17.673 0-32-14.327-32-32V64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24z"]},J1={prefix:"fas",iconName:"tachometer-alt",icon:[576,512,[],"f3fd","M288 32C128.94 32 0 160.94 0 320c0 52.8 14.25 102.26 39.06 144.8 5.61 9.62 16.3 15.2 27.44 15.2h443c11.14 0 21.83-5.58 27.44-15.2C561.75 422.26 576 372.8 576 320c0-159.06-128.94-288-288-288zm0 64c14.71 0 26.58 10.13 30.32 23.65-1.11 2.26-2.64 4.23-3.45 6.67l-9.22 27.67c-5.13 3.49-10.97 6.01-17.64 6.01-17.67 0-32-14.33-32-32S270.33 96 288 96zM96 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm48-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm246.77-72.41l-61.33 184C343.13 347.33 352 364.54 352 384c0 11.72-3.38 22.55-8.88 32H232.88c-5.5-9.45-8.88-20.28-8.88-32 0-33.94 26.5-61.43 59.9-63.59l61.34-184.01c4.17-12.56 17.73-19.45 30.36-15.17 12.57 4.19 19.35 17.79 15.17 30.36zm14.66 57.2l15.52-46.55c3.47-1.29 7.13-2.23 11.05-2.23 17.67 0 32 14.33 32 32s-14.33 32-32 32c-11.38-.01-20.89-6.28-26.57-15.22zM480 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]},Z2={prefix:"fas",iconName:"times",icon:[352,512,[],"f00d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"]},$a={prefix:"fas",iconName:"tools",icon:[512,512,[],"f7d9","M501.1 395.7L384 278.6c-23.1-23.1-57.6-27.6-85.4-13.9L192 158.1V96L64 0 0 64l96 128h62.1l106.6 106.6c-13.6 27.8-9.2 62.3 13.9 85.4l117.1 117.1c14.6 14.6 38.2 14.6 52.7 0l52.7-52.7c14.5-14.6 14.5-38.2 0-52.7zM331.7 225c28.3 0 54.9 11 74.9 31l19.4 19.4c15.8-6.9 30.8-16.5 43.8-29.5 37.1-37.1 49.7-89.3 37.9-136.7-2.2-9-13.5-12.1-20.1-5.5l-74.4 74.4-67.9-11.3L334 98.9l74.4-74.4c6.6-6.6 3.4-17.9-5.7-20.2-47.4-11.7-99.6.9-136.6 37.9-28.5 28.5-41.9 66.1-41.2 103.6l82.1 82.1c8.1-1.9 16.5-2.9 24.7-2.9zm-103.9 82l-56.7-56.7L18.7 402.8c-25 25-25 65.5 0 90.5s65.5 25 90.5 0l123.6-123.6c-7.6-19.9-9.9-41.6-5-62.7zM64 472c-13.2 0-24-10.8-24-24 0-13.3 10.7-24 24-24s24 10.7 24 24c0 13.2-10.7 24-24 24z"]},qr={prefix:"fas",iconName:"unlock-alt",icon:[448,512,[],"f13e","M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zM264 408c0 22.1-17.9 40-40 40s-40-17.9-40-40v-48c0-22.1 17.9-40 40-40s40 17.9 40 40v48z"]},$2={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4zm323-128.4l-27.8-28.1c-4.6-4.7-12.1-4.7-16.8-.1l-104.8 104-45.5-45.8c-4.6-4.7-12.1-4.7-16.8-.1l-28.1 27.9c-4.7 4.6-4.7 12.1-.1 16.8l81.7 82.3c4.6 4.7 12.1 4.7 16.8.1l141.3-140.2c4.6-4.7 4.7-12.2.1-16.8z"]},ku={prefix:"fas",iconName:"user-clock",icon:[640,512,[],"f4fd","M496 224c-79.6 0-144 64.4-144 144s64.4 144 144 144 144-64.4 144-144-64.4-144-144-144zm64 150.3c0 5.3-4.4 9.7-9.7 9.7h-60.6c-5.3 0-9.7-4.4-9.7-9.7v-76.6c0-5.3 4.4-9.7 9.7-9.7h12.6c5.3 0 9.7 4.4 9.7 9.7V352h38.3c5.3 0 9.7 4.4 9.7 9.7v12.6zM320 368c0-27.8 6.7-54.1 18.2-77.5-8-1.5-16.2-2.5-24.6-2.5h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h347.1c-45.3-31.9-75.1-84.5-75.1-144zm-96-112c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128z"]},jc={prefix:"fas",iconName:"user-cog",icon:[640,512,[],"f4fe","M610.5 373.3c2.6-14.1 2.6-28.5 0-42.6l25.8-14.9c3-1.7 4.3-5.2 3.3-8.5-6.7-21.6-18.2-41.2-33.2-57.4-2.3-2.5-6-3.1-9-1.4l-25.8 14.9c-10.9-9.3-23.4-16.5-36.9-21.3v-29.8c0-3.4-2.4-6.4-5.7-7.1-22.3-5-45-4.8-66.2 0-3.3.7-5.7 3.7-5.7 7.1v29.8c-13.5 4.8-26 12-36.9 21.3l-25.8-14.9c-2.9-1.7-6.7-1.1-9 1.4-15 16.2-26.5 35.8-33.2 57.4-1 3.3.4 6.8 3.3 8.5l25.8 14.9c-2.6 14.1-2.6 28.5 0 42.6l-25.8 14.9c-3 1.7-4.3 5.2-3.3 8.5 6.7 21.6 18.2 41.1 33.2 57.4 2.3 2.5 6 3.1 9 1.4l25.8-14.9c10.9 9.3 23.4 16.5 36.9 21.3v29.8c0 3.4 2.4 6.4 5.7 7.1 22.3 5 45 4.8 66.2 0 3.3-.7 5.7-3.7 5.7-7.1v-29.8c13.5-4.8 26-12 36.9-21.3l25.8 14.9c2.9 1.7 6.7 1.1 9-1.4 15-16.2 26.5-35.8 33.2-57.4 1-3.3-.4-6.8-3.3-8.5l-25.8-14.9zM496 400.5c-26.8 0-48.5-21.8-48.5-48.5s21.8-48.5 48.5-48.5 48.5 21.8 48.5 48.5-21.7 48.5-48.5 48.5zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm201.2 226.5c-2.3-1.2-4.6-2.6-6.8-3.9l-7.9 4.6c-6 3.4-12.8 5.3-19.6 5.3-10.9 0-21.4-4.6-28.9-12.6-18.3-19.8-32.3-43.9-40.2-69.6-5.5-17.7 1.9-36.4 17.9-45.7l7.9-4.6c-.1-2.6-.1-5.2 0-7.8l-7.9-4.6c-16-9.2-23.4-28-17.9-45.7.9-2.9 2.2-5.8 3.2-8.7-3.8-.3-7.5-1.2-11.4-1.2h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c10.1 0 19.5-3.2 27.2-8.5-1.2-3.8-2-7.7-2-11.8v-9.2z"]},s0={prefix:"fas",iconName:"user-lock",icon:[640,512,[],"f502","M224 256A128 128 0 1 0 96 128a128 128 0 0 0 128 128zm96 64a63.08 63.08 0 0 1 8.1-30.5c-4.8-.5-9.5-1.5-14.5-1.5h-16.7a174.08 174.08 0 0 1-145.8 0h-16.7A134.43 134.43 0 0 0 0 422.4V464a48 48 0 0 0 48 48h280.9a63.54 63.54 0 0 1-8.9-32zm288-32h-32v-80a80 80 0 0 0-160 0v80h-32a32 32 0 0 0-32 32v160a32 32 0 0 0 32 32h224a32 32 0 0 0 32-32V320a32 32 0 0 0-32-32zM496 432a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm32-144h-64v-80a32 32 0 0 1 64 0z"]},qc={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"]},nh={prefix:"fas",iconName:"wallet",icon:[512,512,[],"f555","M461.2 128H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h384c8.84 0 16-7.16 16-16 0-26.51-21.49-48-48-48H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h397.2c28.02 0 50.8-21.53 50.8-48V176c0-26.47-22.78-48-50.8-48zM416 336c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]},sh={prefix:"fas",iconName:"window-restore",icon:[512,512,[],"f2d2","M512 48v288c0 26.5-21.5 48-48 48h-48V176c0-44.1-35.9-80-80-80H128V48c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zM384 176v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zm-68 28c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v52h252v-52z"]}},429:(Ve,Q,m)=>{"use strict";m.d(Q,{Ni:()=>y,xH:()=>C,oo:()=>o,CN:()=>M,CX:()=>l,SN:()=>N,RX:()=>s,HJ:()=>D,I8:()=>A,EG:()=>O,Lu:()=>E,g3:()=>P,xS:()=>w,_E:()=>Z,$W:()=>W,Z8:()=>ie,El:()=>ee,X3:()=>ce,z:()=>re,EK:()=>de,cQ:()=>oe,HI:()=>ae,oV:()=>b,TM:()=>i,WO:()=>a,kL:()=>p,UR:()=>u,as:()=>_,pW:()=>L,YX:()=>I,BL:()=>x,OG:()=>r,Sf:()=>v,$A:()=>G,n7:()=>F,v_:()=>U,u0:()=>ye,QJ:()=>Ce,WM:()=>Be,Nr:()=>ze,Rd:()=>Ie,YP:()=>K,aL:()=>Me,g6:()=>we,Wi:()=>z,Ly:()=>vt,UH:()=>Re,eM:()=>Ne,VD:()=>he,yl:()=>Le,Zu:()=>ke,dh:()=>q,ZH:()=>$,i9:()=>le,JK:()=>xe,uT:()=>Ue,d7:()=>lt,e9:()=>nt,_9:()=>ft,en:()=>it});var e=m(5620),t=m(7731);const y=(0,e.PH)(t.AB.UPDATE_API_CALL_STATUS_CLN,(0,e.Ky)()),C=(0,e.PH)(t.AB.RESET_CLN_STORE,(0,e.Ky)()),o=(0,e.PH)(t.AB.SET_CHILD_NODE_SETTINGS_CLN,(0,e.Ky)()),M=(0,e.PH)(t.AB.FETCH_INFO_CLN,(0,e.Ky)()),l=(0,e.PH)(t.AB.SET_INFO_CLN,(0,e.Ky)()),N=(0,e.PH)(t.AB.FETCH_FEES_CLN),s=(0,e.PH)(t.AB.SET_FEES_CLN,(0,e.Ky)()),D=(0,e.PH)(t.AB.FETCH_FEE_RATES_CLN,(0,e.Ky)()),A=(0,e.PH)(t.AB.SET_FEE_RATES_CLN,(0,e.Ky)()),O=(0,e.PH)(t.AB.FETCH_BALANCE_CLN),E=(0,e.PH)(t.AB.SET_BALANCE_CLN,(0,e.Ky)()),P=(0,e.PH)(t.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),w=(0,e.PH)(t.AB.SET_LOCAL_REMOTE_BALANCE_CLN,(0,e.Ky)()),Z=(0,e.PH)(t.AB.GET_NEW_ADDRESS_CLN,(0,e.Ky)()),W=((0,e.PH)(t.AB.SET_NEW_ADDRESS_CLN,(0,e.Ky)()),(0,e.PH)(t.AB.FETCH_PEERS_CLN)),ie=(0,e.PH)(t.AB.SET_PEERS_CLN,(0,e.Ky)()),ee=(0,e.PH)(t.AB.SAVE_NEW_PEER_CLN,(0,e.Ky)()),ce=((0,e.PH)(t.AB.NEWLY_ADDED_PEER_CLN,(0,e.Ky)()),(0,e.PH)(t.AB.ADD_PEER_CLN,(0,e.Ky)())),re=(0,e.PH)(t.AB.DETACH_PEER_CLN,(0,e.Ky)()),de=(0,e.PH)(t.AB.REMOVE_PEER_CLN,(0,e.Ky)()),oe=(0,e.PH)(t.AB.FETCH_PAYMENTS_CLN),ae=(0,e.PH)(t.AB.SET_PAYMENTS_CLN,(0,e.Ky)()),b=(0,e.PH)(t.AB.SEND_PAYMENT_CLN,(0,e.Ky)()),i=(0,e.PH)(t.AB.SEND_PAYMENT_STATUS_CLN,(0,e.Ky)()),a=(0,e.PH)(t.AB.GET_QUERY_ROUTES_CLN,(0,e.Ky)()),p=(0,e.PH)(t.AB.SET_QUERY_ROUTES_CLN,(0,e.Ky)()),u=(0,e.PH)(t.AB.FETCH_CHANNELS_CLN),_=(0,e.PH)(t.AB.SET_CHANNELS_CLN,(0,e.Ky)()),L=(0,e.PH)(t.AB.UPDATE_CHANNEL_CLN,(0,e.Ky)()),I=(0,e.PH)(t.AB.SAVE_NEW_CHANNEL_CLN,(0,e.Ky)()),x=(0,e.PH)(t.AB.CLOSE_CHANNEL_CLN,(0,e.Ky)()),r=(0,e.PH)(t.AB.REMOVE_CHANNEL_CLN,(0,e.Ky)()),v=(0,e.PH)(t.AB.PEER_LOOKUP_CLN,(0,e.Ky)()),G=(0,e.PH)(t.AB.CHANNEL_LOOKUP_CLN,(0,e.Ky)()),F=(0,e.PH)(t.AB.INVOICE_LOOKUP_CLN,(0,e.Ky)()),U=(0,e.PH)(t.AB.SET_LOOKUP_CLN,(0,e.Ky)()),ye=(0,e.PH)(t.AB.GET_FORWARDING_HISTORY_CLN,(0,e.Ky)()),Ce=(0,e.PH)(t.AB.SET_FORWARDING_HISTORY_CLN,(0,e.Ky)()),Be=(0,e.PH)(t.AB.FETCH_INVOICES_CLN,(0,e.Ky)()),ze=(0,e.PH)(t.AB.SET_INVOICES_CLN,(0,e.Ky)()),Ie=(0,e.PH)(t.AB.SAVE_NEW_INVOICE_CLN,(0,e.Ky)()),K=(0,e.PH)(t.AB.ADD_INVOICE_CLN,(0,e.Ky)()),Me=(0,e.PH)(t.AB.UPDATE_INVOICE_CLN,(0,e.Ky)()),we=(0,e.PH)(t.AB.DELETE_EXPIRED_INVOICE_CLN,(0,e.Ky)()),z=(0,e.PH)(t.AB.SET_CHANNEL_TRANSACTION_CLN,(0,e.Ky)()),vt=((0,e.PH)(t.AB.SET_CHANNEL_TRANSACTION_RES_CLN,(0,e.Ky)()),(0,e.PH)(t.AB.FETCH_UTXOS_CLN)),Re=(0,e.PH)(t.AB.SET_UTXOS_CLN,(0,e.Ky)()),Ne=(0,e.PH)(t.AB.FETCH_OFFER_INVOICE_CLN,(0,e.Ky)()),he=(0,e.PH)(t.AB.SET_OFFER_INVOICE_CLN,(0,e.Ky)()),Le=(0,e.PH)(t.AB.FETCH_OFFERS_CLN),ke=(0,e.PH)(t.AB.SET_OFFERS_CLN,(0,e.Ky)()),q=(0,e.PH)(t.AB.SAVE_NEW_OFFER_CLN,(0,e.Ky)()),$=(0,e.PH)(t.AB.ADD_OFFER_CLN,(0,e.Ky)()),le=(0,e.PH)(t.AB.DISABLE_OFFER_CLN,(0,e.Ky)()),xe=(0,e.PH)(t.AB.UPDATE_OFFER_CLN,(0,e.Ky)()),Ue=(0,e.PH)(t.AB.FETCH_OFFER_BOOKMARKS_CLN),lt=(0,e.PH)(t.AB.SET_OFFER_BOOKMARKS_CLN,(0,e.Ky)()),nt=(0,e.PH)(t.AB.ADD_UPDATE_OFFER_BOOKMARK_CLN,(0,e.Ky)()),ft=(0,e.PH)(t.AB.DELETE_OFFER_BOOKMARK_CLN,(0,e.Ky)()),it=(0,e.PH)(t.AB.REMOVE_OFFER_BOOKMARK_CLN,(0,e.Ky)())},4947:(Ve,Q,m)=>{"use strict";m.d(Q,{J:()=>oe});var e=m(6642),t=m(7579),y=m(9646),C=m(5577),o=m(2722),M=m(4004),l=m(262),N=m(2340),s=m(1786),D=m(5566),A=m(7731),O=m(7861),E=m(429),P=m(9828),w=m(1462),Z=m(5e3),j=m(8138),W=m(5620),ie=m(5986),ee=m(62),_e=m(5043),ce=m(1402),re=m(7998),de=m(9808);let oe=(()=>{class ae{constructor(i,a,p,u,_,L,I,x,r){this.actions=i,this.httpClient=a,this.store=p,this.sessionService=u,this.commonService=_,this.logger=L,this.router=I,this.wsService=x,this.location=r,this.CHILD_API_URL=N.T5+"/cln",this.flgInitialized=!1,this.unSubs=[new t.x,new t.x,new t.x],this.infoFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_INFO_CLN),(0,C.z)(v=>(this.flgInitialized=!1,this.store.dispatch((0,O.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,E.Ni)({payload:{action:"FetchInfo",status:A.Bn.INITIATED}})),this.store.dispatch((0,O.ac)({payload:A.m6.GET_NODE_INFO})),this.httpClient.get(this.CHILD_API_URL+N.NZ.GETINFO_API).pipe((0,o.R)(this.actions.pipe((0,e.l4)(A.pg.SET_SELECTED_NODE))),(0,M.U)(G=>(this.logger.info(G),G.chains&&G.chains.length&&G.chains[0]&&"object"==typeof G.chains[0]&&G.chains[0].hasOwnProperty("chain")&&G.chains[0].chain.toLowerCase().indexOf("bitcoin")<0?(this.store.dispatch((0,E.Ni)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:A.m6.GET_NODE_INFO})),this.store.dispatch((0,O.ts)()),this.store.dispatch((0,O.qR)({payload:{data:{type:A.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:A.pg.LOGOUT}):(this.initializeRemainingData(G,v.payload.loadPage),this.store.dispatch((0,E.Ni)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:A.m6.GET_NODE_INFO})),{type:A.AB.SET_INFO_CLN,payload:G||{}}))),(0,l.K)(G=>{const F=this.commonService.extractErrorCode(G),U="ETIMEDOUT"===F?"Unable to Connect to Core Lightning Server.":this.commonService.extractErrorMessage(G);return this.router.navigate(["/error"],{state:{errorCode:F,errorMessage:U}}),this.handleErrorWithoutAlert("FetchInfo",A.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:F,error:U}),(0,y.of)({type:A.pg.VOID})})))))),this.fetchFeesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_FEES_CLN),(0,C.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchFees",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.FEES_API))),(0,M.U)(v=>(this.logger.info(v),this.store.dispatch((0,E.Ni)({payload:{action:"FetchFees",status:A.Bn.COMPLETED}})),{type:A.AB.SET_FEES_CLN,payload:v||{}})),(0,l.K)(v=>(this.handleErrorWithoutAlert("FetchFees",A.m6.NO_SPINNER,"Fetching Fees Failed.",v),(0,y.of)({type:A.pg.VOID}))))),this.fetchFeeRatesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_FEE_RATES_CLN),(0,C.z)(v=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchFeeRates"+v.payload,status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.NETWORK_API+"/feeRates/"+v.payload).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,E.Ni)({payload:{action:"FetchFeeRates"+v.payload,status:A.Bn.COMPLETED}})),{type:A.AB.SET_FEE_RATES_CLN,payload:G||{}})),(0,l.K)(G=>(this.handleErrorWithoutAlert("FetchFeeRates"+v.payload,A.m6.NO_SPINNER,"Fetching Fee Rates Failed.",G),(0,y.of)({type:A.pg.VOID})))))))),this.fetchBalanceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_BALANCE_CLN),(0,C.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchBalance",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.BALANCE_API))),(0,M.U)(v=>(this.logger.info(v),this.store.dispatch((0,E.Ni)({payload:{action:"FetchBalance",status:A.Bn.COMPLETED}})),{type:A.AB.SET_BALANCE_CLN,payload:v||{}})),(0,l.K)(v=>(this.handleErrorWithoutAlert("FetchBalance",A.m6.NO_SPINNER,"Fetching Balances Failed.",v),(0,y.of)({type:A.pg.VOID}))))),this.fetchLocalRemoteBalanceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),(0,C.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchLocalRemoteBalance",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.CHANNELS_API+"/localRemoteBalance"))),(0,M.U)(v=>(this.logger.info(v),this.store.dispatch((0,E.Ni)({payload:{action:"FetchLocalRemoteBalance",status:A.Bn.COMPLETED}})),{type:A.AB.SET_LOCAL_REMOTE_BALANCE_CLN,payload:v||{}})),(0,l.K)(v=>(this.handleErrorWithoutAlert("FetchLocalRemoteBalance",A.m6.NO_SPINNER,"Fetching Balances Failed.",v),(0,y.of)({type:A.pg.VOID}))))),this.getNewAddressCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.GET_NEW_ADDRESS_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:A.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+N.NZ.ON_CHAIN_API+"?type="+v.payload.addressCode).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,O.uO)({payload:A.m6.GENERATE_NEW_ADDRESS})),{type:A.AB.SET_NEW_ADDRESS_CLN,payload:G&&G.address?G.address:{}})),(0,l.K)(G=>(this.handleErrorWithAlert("GenerateNewAddress",A.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+N.NZ.ON_CHAIN_API+"?type="+v.payload.addressId,G),(0,y.of)({type:A.pg.VOID})))))))),this.setNewAddressCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_NEW_ADDRESS_CLN),(0,M.U)(v=>(this.logger.info(v.payload),v.payload))),{dispatch:!1}),this.peersFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_PEERS_CLN),(0,C.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchPeers",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.PEERS_API).pipe((0,M.U)(v=>(this.logger.info(v),this.store.dispatch((0,E.Ni)({payload:{action:"FetchPeers",status:A.Bn.COMPLETED}})),{type:A.AB.SET_PEERS_CLN,payload:v||[]})),(0,l.K)(v=>(this.handleErrorWithoutAlert("FetchPeers",A.m6.NO_SPINNER,"Fetching Peers Failed.",v),(0,y.of)({type:A.pg.VOID})))))))),this.saveNewPeerCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SAVE_NEW_PEER_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewPeer",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.PEERS_API,{id:v.payload.id}).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewPeer",status:A.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,E.Z8)({payload:G||[]})),{type:A.AB.NEWLY_ADDED_PEER_CLN,payload:{peer:G.find(F=>0===v.payload.id.indexOf(F.id))}})),(0,l.K)(G=>(this.handleErrorWithoutAlert("SaveNewPeer",A.m6.CONNECT_PEER,"Peer Connection Failed.",G),(0,y.of)({type:A.pg.VOID})))))))),this.detachPeerCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.DETACH_PEER_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:A.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+N.NZ.PEERS_API+"/"+v.payload.id+"?force="+v.payload.force).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,O.uO)({payload:A.m6.DISCONNECT_PEER})),this.store.dispatch((0,O.jW)({payload:"Peer Disconnected Successfully!"})),{type:A.AB.REMOVE_PEER_CLN,payload:{id:v.payload.id}})),(0,l.K)(G=>(this.handleErrorWithAlert("PeerDisconnect",A.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+N.NZ.PEERS_API+"/"+v.payload.id,G),(0,y.of)({type:A.pg.VOID})))))))),this.channelsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_CHANNELS_CLN),(0,C.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.CHANNELS_API+"/listChannels"))),(0,M.U)(v=>{this.logger.info(v),this.store.dispatch((0,E.Ni)({payload:{action:"FetchChannels",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.u0)({payload:{status:A.OO.SETTLED,maxLen:10,offset:0}}));const G={activeChannels:[],pendingChannels:[],inactiveChannels:[]};return v.forEach(F=>{"CHANNELD_NORMAL"===F.state?F.connected?G.activeChannels.push(F):G.inactiveChannels.push(F):G.pendingChannels.push(F)}),{type:A.AB.SET_CHANNELS_CLN,payload:G}}),(0,l.K)(v=>(this.handleErrorWithoutAlert("FetchChannels",A.m6.NO_SPINNER,"Fetching Channels Failed.",v),(0,y.of)({type:A.pg.VOID}))))),this.openNewChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SAVE_NEW_CHANNEL_CLN),(0,C.z)(v=>{this.store.dispatch((0,O.ac)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewChannel",status:A.Bn.INITIATED}}));const G={id:v.payload.peerId,satoshis:v.payload.satoshis,feeRate:v.payload.feeRate,announce:v.payload.announce};return v.payload.minconf&&(G.minconf=v.payload.minconf),v.payload.utxos&&(G.utxos=v.payload.utxos),v.payload.requestAmount&&(G.request_amt=v.payload.requestAmount),v.payload.compactLease&&(G.compact_lease=v.payload.compactLease),this.httpClient.post(this.CHILD_API_URL+N.NZ.CHANNELS_API,G).pipe((0,M.U)(F=>(this.logger.info(F),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewChannel",status:A.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,O.jW)({payload:"Channel Added Successfully!"})),this.store.dispatch((0,E.EG)()),this.store.dispatch((0,E.Ly)()),{type:A.AB.FETCH_CHANNELS_CLN})),(0,l.K)(F=>(this.handleErrorWithoutAlert("SaveNewChannel",A.m6.OPEN_CHANNEL,"Opening Channel Failed.",F),(0,y.of)({type:A.pg.VOID}))))}))),this.updateChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.UPDATE_CHANNEL_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:A.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+N.NZ.CHANNELS_API+"/setChannelFee",{id:v.payload.channelId,base:v.payload.baseFeeMsat,ppm:v.payload.feeRate}).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,O.uO)({payload:A.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,O.jW)("all"===v.payload.channelId?{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:A.AB.FETCH_CHANNELS_CLN})),(0,l.K)(G=>(this.handleErrorWithAlert("UpdateChannel",A.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+N.NZ.CHANNELS_API,G),(0,y.of)({type:A.pg.VOID})))))))),this.closeChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.CLOSE_CHANNEL_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:v.payload.force?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+N.NZ.CHANNELS_API+"/"+v.payload.channelId+(v.payload.force?"?force="+v.payload.force:"")).pipe((0,M.U)(F=>(this.logger.info(F),this.store.dispatch((0,O.uO)({payload:v.payload.force?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL})),this.store.dispatch((0,E.UR)()),this.store.dispatch((0,E.g3)()),this.store.dispatch((0,O.jW)({payload:"Channel Closed Successfully!"})),{type:A.AB.REMOVE_CHANNEL_CLN,payload:v.payload})),(0,l.K)(F=>(this.handleErrorWithAlert("CloseChannel",v.payload.force?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+N.NZ.CHANNELS_API,F),(0,y.of)({type:A.pg.VOID})))))))),this.paymentsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_PAYMENTS_CLN),(0,C.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchPayments",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.PAYMENTS_API))),(0,M.U)(v=>(this.logger.info(v),this.store.dispatch((0,E.Ni)({payload:{action:"FetchPayments",status:A.Bn.COMPLETED}})),{type:A.AB.SET_PAYMENTS_CLN,payload:v||[]})),(0,l.K)(v=>(this.handleErrorWithoutAlert("FetchPayments",A.m6.NO_SPINNER,"Fetching Payments Failed.",v),(0,y.of)({type:A.pg.VOID}))))),this.fetchOfferInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_OFFER_INVOICE_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:A.m6.FETCH_INVOICE})),this.store.dispatch((0,E.Ni)({payload:{action:"FetchOfferInvoice",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.OFFERS_API+"/fetchOfferInvoice",v.payload).pipe((0,M.U)(G=>{this.logger.info(G),setTimeout(()=>{this.store.dispatch((0,E.Ni)({payload:{action:"FetchOfferInvoice",status:A.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:A.m6.FETCH_INVOICE})),this.store.dispatch((0,E.VD)({payload:G||{}}))},500)}),(0,l.K)(G=>(this.handleErrorWithoutAlert("FetchOfferInvoice",A.m6.FETCH_INVOICE,"Offer Invoice Fetch Failed",G),(0,y.of)({type:A.pg.VOID}))))))),{dispatch:!1}),this.setOfferInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_OFFER_INVOICE_CLN),(0,M.U)(v=>(this.logger.info(v.payload),v.payload))),{dispatch:!1}),this.sendPaymentCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SEND_PAYMENT_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:v.payload.uiMessage})),this.store.dispatch((0,E.Ni)({payload:{action:"SendPayment",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.PAYMENTS_API,v.payload).pipe((0,M.U)(G=>{this.logger.info(G),this.store.dispatch((0,E.Ni)({payload:{action:"SendPayment",status:A.Bn.COMPLETED}}));let F="Payment Sent Successfully!";G.saveToDBError&&(F="Payment Sent Successfully but Offer Saving to Database Failed."),G.saveToDBResponse&&"NA"!==G.saveToDBResponse&&(this.store.dispatch((0,E.e9)({payload:G.saveToDBResponse})),F="Payment Sent Successfully and Offer Saved to Database."),setTimeout(()=>{this.store.dispatch((0,E.UR)()),this.store.dispatch((0,E.EG)()),this.store.dispatch((0,E.cQ)()),this.store.dispatch((0,O.uO)({payload:v.payload.uiMessage})),this.store.dispatch((0,O.jW)({payload:F})),this.store.dispatch((0,E.TM)({payload:G.paymentResponse}))},1e3)}),(0,l.K)(G=>(this.logger.error("Error: "+JSON.stringify(G)),v.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",v.payload.uiMessage,"Send Payment Failed.",G):this.handleErrorWithAlert("SendPayment",v.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+N.NZ.PAYMENTS_API,G),(0,y.of)({type:A.pg.VOID}))))))),{dispatch:!1}),this.queryRoutesFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.GET_QUERY_ROUTES_CLN),(0,C.z)(v=>(this.store.dispatch((0,E.Ni)({payload:{action:"GetQueryRoutes",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.NETWORK_API+"/getRoute/"+v.payload.destPubkey+"/"+v.payload.amount).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,E.Ni)({payload:{action:"GetQueryRoutes",status:A.Bn.COMPLETED}})),{type:A.AB.SET_QUERY_ROUTES_CLN,payload:G})),(0,l.K)(G=>(this.store.dispatch((0,E.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",A.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+N.NZ.NETWORK_API+"/getRoute/"+v.payload.destPubkey+"/"+v.payload.amount,G),(0,y.of)({type:A.pg.VOID})))))))),this.setQueryRoutesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_QUERY_ROUTES_CLN),(0,M.U)(v=>v.payload)),{dispatch:!1}),this.peerLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.PEER_LOOKUP_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:A.m6.SEARCHING_NODE})),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.NETWORK_API+"/listNode/"+v.payload).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:A.m6.SEARCHING_NODE})),{type:A.AB.SET_LOOKUP_CLN,payload:G})),(0,l.K)(G=>(this.handleErrorWithAlert("Lookup",A.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+N.NZ.NETWORK_API+"/listNode/"+v.payload,G),(0,y.of)({type:A.pg.VOID})))))))),this.channelLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.CHANNEL_LOOKUP_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:v.payload.uiMessage})),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.NETWORK_API+"/listChannel/"+v.payload.shortChannelID).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:v.payload.uiMessage})),{type:A.AB.SET_LOOKUP_CLN,payload:G})),(0,l.K)(G=>(v.payload.showError?this.handleErrorWithAlert("Lookup",v.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+N.NZ.NETWORK_API+"/listChannel/"+v.payload.shortChannelID,G):this.store.dispatch((0,O.uO)({payload:v.payload.uiMessage})),this.store.dispatch((0,E.v_)({payload:[]})),(0,y.of)({type:A.pg.VOID})))))))),this.invoiceLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.INVOICE_LOOKUP_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:A.m6.SEARCHING_INVOICE})),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.INVOICES_API+"?label="+v.payload).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:A.m6.SEARCHING_INVOICE})),G.invoices&&G.invoices.length&&G.invoices.length>0&&this.store.dispatch((0,E.aL)({payload:G.invoices[0]})),{type:A.AB.SET_LOOKUP_CLN,payload:G.invoices&&G.invoices.length&&G.invoices.length>0?G.invoices[0]:G})),(0,l.K)(G=>(this.handleErrorWithoutAlert("Lookup",A.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",G),this.store.dispatch((0,O.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,y.of)({type:A.pg.VOID})))))))),this.setLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_LOOKUP_CLN),(0,M.U)(v=>(this.logger.info(v.payload),v.payload))),{dispatch:!1}),this.fetchForwardingHistoryCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.GET_FORWARDING_HISTORY_CLN),(0,C.z)(v=>{const G=v.payload.status?v.payload.status:"settled",F=v.payload.maxLen?v.payload.maxLen:100,U=v.payload.offset?v.payload.offset:0,ye=G.charAt(0).toUpperCase();return this.store.dispatch((0,E.Ni)({payload:{action:"FetchForwardingHistory"+ye,status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.CHANNELS_API+"/listForwardsPaginated?status="+G+"&maxLen="+F+"&offset="+U).pipe((0,M.U)(Ce=>(this.logger.info(Ce),this.store.dispatch((0,E.Ni)({payload:{action:"FetchForwardingHistory"+ye,status:A.Bn.COMPLETED}})),{type:A.AB.SET_FORWARDING_HISTORY_CLN,payload:{status:G,response:Ce}})),(0,l.K)(Ce=>(this.handleErrorWithAlert("FetchForwardingHistory"+ye,A.m6.NO_SPINNER,"Get "+G+" Forwarding History Failed",this.CHILD_API_URL+N.NZ.CHANNELS_API+"/listForwardsPaginated?status="+G,Ce),(0,y.of)({type:A.pg.VOID}))))}))),this.deleteExpiredInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.DELETE_EXPIRED_INVOICE_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:A.m6.DELETE_INVOICE})),this.httpClient.delete(this.CHILD_API_URL+N.NZ.INVOICES_API+(v.payload?"?maxexpiry="+v.payload:"")).pipe((0,M.U)(F=>(this.logger.info(F),this.store.dispatch((0,O.uO)({payload:A.m6.DELETE_INVOICE})),this.store.dispatch((0,O.jW)({payload:"Invoices Deleted Successfully!"})),{type:A.AB.FETCH_INVOICES_CLN,payload:{num_max_invoices:1e6,reversed:!0}})),(0,l.K)(F=>(this.handleErrorWithAlert("DeleteInvoices",A.m6.DELETE_INVOICE,"Delete Invoice Failed",this.CHILD_API_URL+N.NZ.INVOICES_API,F),(0,y.of)({type:A.pg.VOID})))))))),this.saveNewInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SAVE_NEW_INVOICE_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:A.m6.ADD_INVOICE})),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewInvoice",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.INVOICES_API,{label:v.payload.label,amount:v.payload.amount,description:v.payload.description,expiry:v.payload.expiry,private:v.payload.private}).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewInvoice",status:A.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:A.m6.ADD_INVOICE})),G.msatoshi=v.payload.amount,G.label=v.payload.label,G.expires_at=Math.round((new Date).getTime()/1e3+v.payload.expiry),G.description=v.payload.description,G.status="unpaid",setTimeout(()=>{this.store.dispatch((0,O.qR)({payload:{data:{invoice:G,newlyAdded:!0,component:D.y}}}))},100),{type:A.AB.ADD_INVOICE_CLN,payload:G})),(0,l.K)(G=>(this.handleErrorWithoutAlert("SaveNewInvoice",A.m6.ADD_INVOICE,"Add Invoice Failed.",G),(0,y.of)({type:A.pg.VOID})))))))),this.saveNewOfferCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SAVE_NEW_OFFER_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:A.m6.CREATE_OFFER})),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewOffer",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.OFFERS_API,{amount:v.payload.amount,description:v.payload.description,vendor:v.payload.vendor}).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewOffer",status:A.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:A.m6.CREATE_OFFER})),setTimeout(()=>{this.store.dispatch((0,O.qR)({payload:{data:{offer:G,newlyAdded:!0,component:w.k}}}))},100),{type:A.AB.ADD_OFFER_CLN,payload:G})),(0,l.K)(G=>(this.handleErrorWithoutAlert("SaveNewOffer",A.m6.CREATE_OFFER,"Create Offer Failed.",G),(0,y.of)({type:A.pg.VOID})))))))),this.invoicesFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_INVOICES_CLN),(0,C.z)(v=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchInvoices",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.INVOICES_API+"?num_max_invoices="+(v.payload.num_max_invoices?v.payload.num_max_invoices:1e6)+"&index_offset="+(v.payload.index_offset?v.payload.index_offset:0)+"&reversed="+(!v.payload.reversed||v.payload.reversed)).pipe((0,M.U)(ye=>(this.logger.info(ye),this.store.dispatch((0,E.Ni)({payload:{action:"FetchInvoices",status:A.Bn.COMPLETED}})),{type:A.AB.SET_INVOICES_CLN,payload:ye})),(0,l.K)(ye=>(this.handleErrorWithoutAlert("FetchInvoices",A.m6.NO_SPINNER,"Fetching Invoices Failed.",ye),(0,y.of)({type:A.pg.VOID})))))))),this.offersFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_OFFERS_CLN),(0,C.z)(v=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchOffers",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.OFFERS_API).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,E.Ni)({payload:{action:"FetchOffers",status:A.Bn.COMPLETED}})),{type:A.AB.SET_OFFERS_CLN,payload:G.offers?G.offers:[]})),(0,l.K)(G=>(this.handleErrorWithoutAlert("FetchOffers",A.m6.NO_SPINNER,"Fetching Offers Failed.",G),(0,y.of)({type:A.pg.VOID})))))))),this.offersDisableCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.DISABLE_OFFER_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:A.m6.DISABLE_OFFER})),this.store.dispatch((0,E.Ni)({payload:{action:"DisableOffer",status:A.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+N.NZ.OFFERS_API+"/"+v.payload.offer_id).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,E.Ni)({payload:{action:"DisableOffer",status:A.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:A.m6.DISABLE_OFFER})),this.store.dispatch((0,O.jW)({payload:"Offer Disabled Successfully!"})),{type:A.AB.UPDATE_OFFER_CLN,payload:{offer:G}})),(0,l.K)(G=>(this.handleErrorWithoutAlert("DisableOffer",A.m6.DISABLE_OFFER,"Disabling Offer Failed.",G),(0,y.of)({type:A.pg.VOID})))))))),this.offerBookmarksFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_OFFER_BOOKMARKS_CLN),(0,C.z)(v=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchOfferBookmarks",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.OFFERS_API+"/offerbookmarks").pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,E.Ni)({payload:{action:"FetchOfferBookmarks",status:A.Bn.COMPLETED}})),{type:A.AB.SET_OFFER_BOOKMARKS_CLN,payload:G||[]})),(0,l.K)(G=>(this.handleErrorWithoutAlert("FetchOfferBookmarks",A.m6.NO_SPINNER,"Fetching Offer Bookmarks Failed.",G),(0,y.of)({type:A.pg.VOID})))))))),this.peidOffersDeleteCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.DELETE_OFFER_BOOKMARK_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:A.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,E.Ni)({payload:{action:"DeleteOfferBookmark",status:A.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+N.NZ.OFFERS_API+"/offerbookmark/"+v.payload.bolt12).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,E.Ni)({payload:{action:"DeleteOfferBookmark",status:A.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:A.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,O.jW)({payload:"Offer Bookmark Deleted Successfully!"})),{type:A.AB.REMOVE_OFFER_BOOKMARK_CLN,payload:{bolt12:v.payload.bolt12}})),(0,l.K)(G=>(this.handleErrorWithAlert("DeleteOfferBookmark",A.m6.DELETE_OFFER_BOOKMARK,"Deleting Offer Bookmark Failed.",this.CHILD_API_URL+N.NZ.OFFERS_API+"/offerbookmark/"+v.payload.bolt12,G),(0,y.of)({type:A.pg.VOID})))))))),this.SetChannelTransactionCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.SET_CHANNEL_TRANSACTION_CLN),(0,C.z)(v=>(this.store.dispatch((0,O.ac)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,E.Ni)({payload:{action:"SetChannelTransaction",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.ON_CHAIN_API,v.payload).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,E.Ni)({payload:{action:"SetChannelTransaction",status:A.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,E.EG)()),this.store.dispatch((0,E.Ly)()),{type:A.AB.SET_CHANNEL_TRANSACTION_RES_CLN,payload:G})),(0,l.K)(G=>(this.handleErrorWithoutAlert("SetChannelTransaction",A.m6.SEND_FUNDS,"Sending Fund Failed.",G),(0,y.of)({type:A.pg.VOID})))))))),this.utxosFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.AB.FETCH_UTXOS_CLN),(0,C.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchUTXOs",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.ON_CHAIN_API+"/utxos"))),(0,M.U)(v=>(this.logger.info(v),this.store.dispatch((0,E.Ni)({payload:{action:"FetchUTXOs",status:A.Bn.COMPLETED}})),{type:A.AB.SET_UTXOS_CLN,payload:v.outputs||[]})),(0,l.K)(v=>(this.handleErrorWithoutAlert("FetchUTXOs",A.m6.NO_SPINNER,"Fetching UTXOs Failed.",v),(0,y.of)({type:A.pg.VOID}))))),this.store.select(P.yA).pipe((0,o.R)(this.unSubs[0])).subscribe(v=>{v.FetchInfo.status!==A.Bn.COMPLETED&&v.FetchInfo.status!==A.Bn.ERROR||v.FetchFees.status!==A.Bn.COMPLETED&&v.FetchFees.status!==A.Bn.ERROR||v.FetchChannels.status!==A.Bn.COMPLETED&&v.FetchChannels.status!==A.Bn.ERROR||v.FetchBalance.status!==A.Bn.COMPLETED&&v.FetchBalance.status!==A.Bn.ERROR||v.FetchLocalRemoteBalance.status!==A.Bn.COMPLETED&&v.FetchLocalRemoteBalance.status!==A.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,O.uO)({payload:A.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.clWSMessages.pipe((0,o.R)(this.unSubs[1])).subscribe(v=>{if(this.logger.info("Received new message from the service: "+JSON.stringify(v)),v)switch(v.event){case A.nM.INVOICE:this.logger.info(v),v&&v.data&&v.data.label&&this.store.dispatch((0,E.aL)({payload:v.data}));break;case A.nM.SEND_PAYMENT:case A.nM.BLOCK_HEIGHT:this.logger.info(v);break;default:this.logger.info("Received Event from WS: "+JSON.stringify(v))}})}initializeRemainingData(i,a){this.sessionService.setItem("clUnlocked","true");const p={identity_pubkey:i.id,alias:i.alias,testnet:"testnet"===i.network.toLowerCase(),chains:i.chains,uris:i.uris,version:i.version,api_version:i.api_version,numberOfPendingChannels:i.num_pending_channels};this.store.dispatch((0,O.ac)({payload:A.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,O._V)({payload:p}));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"===a||u.includes("?access-key="))&&(u="/cln/home"),this.router.navigate([u]),this.store.dispatch((0,E.WM)({payload:{num_max_invoices:1e6,index_offset:0,reversed:!0}})),this.store.dispatch((0,E.SN)()),this.store.dispatch((0,E.UR)()),this.store.dispatch((0,E.EG)()),this.store.dispatch((0,E.g3)()),this.store.dispatch((0,E.HJ)({payload:"perkw"})),this.store.dispatch((0,E.HJ)({payload:"perkb"})),this.store.dispatch((0,E.$W)()),this.store.dispatch((0,E.Ly)()),this.store.dispatch((0,E.cQ)())}handleErrorWithoutAlert(i,a,p,u){if(this.logger.error("ERROR IN: "+i+"\n"+JSON.stringify(u)),401===u.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,O.ts)()),this.store.dispatch((0,O.kS)()),this.store.dispatch((0,O.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,O.uO)({payload:a}));const _=this.commonService.extractErrorMessage(u,p);this.store.dispatch((0,E.Ni)({payload:{action:i,status:A.Bn.ERROR,statusCode:u.status.toString(),message:_}}))}}handleErrorWithAlert(i,a,p,u,_){if(this.logger.error(_),401===_.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,O.ts)()),this.store.dispatch((0,O.kS)()),this.store.dispatch((0,O.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,O.uO)({payload:a}));const L=this.commonService.extractErrorMessage(_);this.store.dispatch((0,O.qR)({payload:{data:{type:"ERROR",alertTitle:p,message:{code:_.status,message:L,URL:u},component:s.H}}})),this.store.dispatch((0,E.Ni)({payload:{action:i,status:A.Bn.ERROR,statusCode:_.status.toString(),message:L,URL:u}}))}}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}}return ae.\u0275fac=function(i){return new(i||ae)(Z.LFG(e.eX),Z.LFG(j.eN),Z.LFG(W.yh),Z.LFG(ie.m),Z.LFG(ee.v),Z.LFG(_e.mQ),Z.LFG(ce.F0),Z.LFG(re.d),Z.LFG(de.Ye))},ae.\u0275prov=Z.Yz7({token:ae,factory:ae.\u0275fac}),ae})()},9828:(Ve,Q,m)=>{"use strict";m.d(Q,{lw:()=>y,ey:()=>C,yA:()=>M,PP:()=>l,Wi:()=>N,JG:()=>s,zm:()=>D,hx:()=>A,gc:()=>O,T4:()=>E,ZW:()=>P,Rn:()=>w,Wj:()=>Z,Bo:()=>j,xQ:()=>W,lK:()=>ie,OL:()=>ee,jK:()=>_e,Ao:()=>ce,Hz:()=>re,Y_:()=>de,EQ:()=>oe});var e=m(5620);const t=(0,e.ZF)("cln"),y=(0,e.P1)(t,b=>b.nodeSettings),C=(0,e.P1)(t,b=>b.information),M=((0,e.P1)(t,b=>b.apisCallStatus.FetchInfo),(0,e.P1)(t,b=>b.apisCallStatus)),l=(0,e.P1)(t,b=>({payments:b.payments,apiCallStatus:b.apisCallStatus.FetchPayments})),N=(0,e.P1)(t,b=>({peers:b.peers,apiCallStatus:b.apisCallStatus.FetchPeers})),s=(0,e.P1)(t,b=>({fees:b.fees,apiCallStatus:b.apisCallStatus.FetchFees})),D=(0,e.P1)(t,b=>({feeRatesPerKB:b.feeRatesPerKB,apiCallStatus:b.apisCallStatus.FetchFeeRatesperkb})),A=(0,e.P1)(t,b=>({feeRatesPerKW:b.feeRatesPerKW,apiCallStatus:b.apisCallStatus.FetchFeeRatesperkw})),O=(0,e.P1)(t,b=>({listInvoices:b.invoices,apiCallStatus:b.apisCallStatus.FetchInvoices})),E=(0,e.P1)(t,b=>({utxos:b.utxos,apiCallStatus:b.apisCallStatus.FetchUTXOs})),P=(0,e.P1)(t,b=>({activeChannels:b.activeChannels,pendingChannels:b.pendingChannels,inactiveChannels:b.inactiveChannels,apiCallStatus:b.apisCallStatus.FetchChannels})),w=(0,e.P1)(t,b=>({balance:b.balance,apiCallStatus:b.apisCallStatus.FetchBalance})),Z=(0,e.P1)(t,b=>({localRemoteBalance:b.localRemoteBalance,apiCallStatus:b.apisCallStatus.FetchLocalRemoteBalance})),j=(0,e.P1)(t,b=>({forwardingHistory:b.forwardingHistory,apiCallStatus:b.apisCallStatus.FetchForwardingHistoryS})),W=(0,e.P1)(t,b=>({failedForwardingHistory:b.failedForwardingHistory,apiCallStatus:b.apisCallStatus.FetchForwardingHistoryF})),ie=(0,e.P1)(t,b=>({localFailedForwardingHistory:b.localFailedForwardingHistory,apiCallStatus:b.apisCallStatus.FetchForwardingHistoryL})),ee=(0,e.P1)(t,b=>({information:b.information,nodeSettings:b.nodeSettings,balance:b.balance})),_e=(0,e.P1)(t,b=>({information:b.information,balance:b.balance,numPeers:b.peers.length})),ce=(0,e.P1)(t,b=>({information:b.information,balance:b.balance})),re=(0,e.P1)(t,b=>({information:b.information,nodeSettings:b.nodeSettings,apisCallStatus:[b.apisCallStatus.FetchInfo,b.apisCallStatus.FetchForwardingHistoryS]})),de=(0,e.P1)(t,b=>({offers:b.offers,apiCallStatus:b.apisCallStatus.FetchOffers})),oe=(0,e.P1)(t,b=>({offersBookmarks:b.offersBookmarks,apiCallStatus:b.apisCallStatus.FetchOfferBookmarks}))},5566:(Ve,Q,m)=>{"use strict";m.d(Q,{y:()=>vt});var e=m(8966),t=m(801),y=m(7579),C=m(2722),o=m(7731),M=m(9828),l=m(5e3),N=m(5043),s=m(62),D=m(7261),A=m(5620),O=m(7093),E=m(9808),P=m(3322),w=m(9224),Z=m(9444),j=m(7423),W=m(4834),ie=m(159),ee=m(7238),_e=m(773),ce=m(3390),re=m(6895);function de(Re,Ne){if(1&Re&&l._UZ(0,"qr-code",33),2&Re){const he=l.oxw();l.Q6J("value",(null==he.invoice?null:he.invoice.bolt11)||(null==he.invoice?null:he.invoice.bolt12))("size",he.qrWidth)("errorCorrectionLevel","L")}}function oe(Re,Ne){1&Re&&(l.TgZ(0,"span",34),l._uU(1,"N/A"),l.qZA())}const ae=function(Re){return{"mr-0":Re}};function b(Re,Ne){if(1&Re&&l._UZ(0,"span",35),2&Re){const he=l.oxw();l.Q6J("ngClass",l.VKq(1,ae,he.screenSize===he.screenSizeEnum.XS))}}function i(Re,Ne){if(1&Re&&l._UZ(0,"span",36),2&Re){const he=l.oxw();l.Q6J("ngClass",l.VKq(1,ae,he.screenSize===he.screenSizeEnum.XS))}}function a(Re,Ne){if(1&Re&&l._UZ(0,"span",37),2&Re){const he=l.oxw();l.Q6J("ngClass",l.VKq(1,ae,he.screenSize===he.screenSizeEnum.XS))}}function p(Re,Ne){if(1&Re&&l._UZ(0,"qr-code",33),2&Re){const he=l.oxw();l.Q6J("value",(null==he.invoice?null:he.invoice.bolt11)||(null==he.invoice?null:he.invoice.bolt12))("size",he.qrWidth)("errorCorrectionLevel","L")}}function u(Re,Ne){1&Re&&(l.TgZ(0,"span",38),l._uU(1,"QR Code Not Applicable"),l.qZA())}function _(Re,Ne){1&Re&&l._UZ(0,"mat-divider",39),2&Re&&l.Q6J("inset",!0)}function L(Re,Ne){if(1&Re&&(l.TgZ(0,"div",19),l.TgZ(1,"div",40),l._UZ(2,"fa-icon",41),l.TgZ(3,"span"),l._uU(4),l.qZA(),l.qZA(),l.qZA()),2&Re){const he=l.oxw();l.xp6(2),l.Q6J("icon",he.faExclamationTriangle),l.xp6(2),l.Oqu(null==he.invoice?null:he.invoice.warning_capacity)}}function I(Re,Ne){1&Re&&(l.ynx(0),l._uU(1," (zero amount) "),l.BQk())}function x(Re,Ne){1&Re&&l._UZ(0,"span",47)}const r=function(){return[]};function v(Re,Ne){if(1&Re&&(l.TgZ(0,"div",43),l.TgZ(1,"div",44),l.TgZ(2,"span",45),l._uU(3),l.ALo(4,"number"),l.qZA(),l.YNc(5,x,1,0,"span",46),l.qZA(),l.qZA()),2&Re){const he=l.oxw(2);l.xp6(3),l.hij("",l.lcZ(4,2,(null==he.invoice?null:he.invoice.msatoshi_received)/1e3)," Sats"),l.xp6(2),l.Q6J("ngForOf",l.DdM(4,r).constructor(35))}}function G(Re,Ne){if(1&Re&&(l.TgZ(0,"div"),l._uU(1),l.ALo(2,"number"),l.qZA()),2&Re){const he=l.oxw(2);l.xp6(1),l.hij("",l.lcZ(2,1,(null==he.invoice?null:he.invoice.msatoshi_received)/1e3)," Sats")}}function F(Re,Ne){if(1&Re&&(l.ynx(0),l.YNc(1,v,6,5,"div",42),l.YNc(2,G,3,3,"div",23),l.BQk()),2&Re){const he=l.oxw();l.xp6(1),l.Q6J("ngIf",he.flgInvoicePaid),l.xp6(1),l.Q6J("ngIf",!he.flgInvoicePaid)}}function U(Re,Ne){1&Re&&(l.TgZ(0,"span"),l._uU(1,"-"),l.qZA())}function ye(Re,Ne){1&Re&&l._UZ(0,"mat-spinner",49),2&Re&&l.Q6J("diameter",20)}function Ce(Re,Ne){if(1&Re&&(l.ynx(0),l.YNc(1,U,2,0,"span",23),l.YNc(2,ye,1,1,"mat-spinner",48),l.BQk()),2&Re){const he=l.oxw();l.xp6(1),l.Q6J("ngIf","unpaid"!==(null==he.invoice?null:he.invoice.status)||!he.flgVersionCompatible),l.xp6(1),l.Q6J("ngIf","unpaid"===(null==he.invoice?null:he.invoice.status)&&he.flgVersionCompatible)}}function Be(Re,Ne){if(1&Re&&(l.TgZ(0,"div"),l._UZ(1,"mat-divider",25),l.TgZ(2,"div",19),l.TgZ(3,"div",26),l.TgZ(4,"h4",21),l._uU(5,"Payment Hash"),l.qZA(),l.TgZ(6,"span",24),l._uU(7),l.qZA(),l.qZA(),l.qZA(),l._UZ(8,"mat-divider",25),l.TgZ(9,"div",19),l.TgZ(10,"div",26),l.TgZ(11,"h4",21),l._uU(12,"Label"),l.qZA(),l.TgZ(13,"span",24),l._uU(14),l.qZA(),l.qZA(),l.qZA(),l._UZ(15,"mat-divider",25),l.qZA()),2&Re){const he=l.oxw();l.xp6(7),l.Oqu(null==he.invoice?null:he.invoice.payment_hash),l.xp6(7),l.Oqu(null==he.invoice?null:he.invoice.label)}}function ze(Re,Ne){1&Re&&(l.TgZ(0,"p"),l._uU(1,"Show Advanced"),l.qZA())}function Ie(Re,Ne){1&Re&&(l.TgZ(0,"p"),l._uU(1,"Hide Advanced"),l.qZA())}function K(Re,Ne){if(1&Re){const he=l.EpF();l.TgZ(0,"button",50),l.NdJ("copied",function(ke){return l.CHM(he),l.oxw().onCopyPayment(ke)}),l._uU(1,"Copy Invoice"),l.qZA()}if(2&Re){const he=l.oxw();l.Q6J("payload",(null==he.invoice?null:he.invoice.bolt11)||(null==he.invoice?null:he.invoice.bolt12))}}function Me(Re,Ne){if(1&Re){const he=l.EpF();l.TgZ(0,"button",51),l.NdJ("click",function(){return l.CHM(he),l.oxw().onClose()}),l._uU(1,"OK"),l.qZA()}}const we=function(Re){return{"display-none":Re}},z=function(Re){return{"xs-scroll-y":Re}},Ge=function(Re,Ne){return{"mt-2":Re,"mt-1":Ne}};let vt=(()=>{class Re{constructor(he,Le,ke,q,$,le){this.dialogRef=he,this.data=Le,this.logger=ke,this.commonService=q,this.snackBar=$,this.store=le,this.faReceipt=t.dLy,this.faExclamationTriangle=t.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.cu,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new y.x,new y.x,new y.x,new y.x,new y.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.cu.XS&&(this.qrWidth=220),this.store.select(M.ey).pipe((0,C.R)(this.unSubs[0])).subscribe(he=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(he.api_version,"0.6.0")}),this.store.select(M.gc).pipe((0,C.R)(this.unSubs[1])).subscribe(he=>{const Le=this.invoice.status;this.invoice=(he.listInvoices.invoices||[]).find(q=>q.payment_hash===this.invoice.payment_hash),Le!==this.invoice.status&&"paid"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(he)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(he){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+he)}ngOnDestroy(){this.unSubs.forEach(he=>{he.next(null),he.complete()})}}return Re.\u0275fac=function(he){return new(he||Re)(l.Y36(e.so),l.Y36(e.WI),l.Y36(N.mQ),l.Y36(s.v),l.Y36(D.ux),l.Y36(A.yh))},Re.\u0275cmp=l.Xpm({type:Re,selectors:[["rtl-cln-invoice-information"]],decls:72,vars:49,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",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","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",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"],["hideAdvancedText",""],["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"],[3,"value","size","errorCorrectionLevel"],[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",3,"inset"],["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,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(he,Le){if(1&he&&(l.TgZ(0,"div",0),l.TgZ(1,"div",1),l.YNc(2,de,1,3,"qr-code",2),l.YNc(3,oe,2,0,"span",3),l.qZA(),l.TgZ(4,"div",4),l.TgZ(5,"mat-card-header",5),l.TgZ(6,"div",6),l._UZ(7,"fa-icon",7),l.TgZ(8,"span",8),l._uU(9),l.YNc(10,b,1,3,"span",9),l.YNc(11,i,1,3,"span",10),l.YNc(12,a,1,3,"span",11),l.qZA(),l.qZA(),l.TgZ(13,"button",12),l.NdJ("click",function(){return Le.onClose()}),l._uU(14,"X"),l.qZA(),l.qZA(),l.TgZ(15,"mat-card-content",13),l.TgZ(16,"div",14),l.TgZ(17,"div",15),l.YNc(18,p,1,3,"qr-code",2),l.YNc(19,u,2,0,"span",16),l.qZA(),l.YNc(20,_,1,1,"mat-divider",17),l.YNc(21,L,5,2,"div",18),l.TgZ(22,"div",19),l.TgZ(23,"div",20),l.TgZ(24,"h4",21),l._uU(25),l.qZA(),l.TgZ(26,"span",22),l._uU(27),l.ALo(28,"number"),l.YNc(29,I,2,0,"ng-container",23),l.qZA(),l.qZA(),l.TgZ(30,"div",20),l.TgZ(31,"h4",21),l._uU(32,"Amount Received"),l.qZA(),l.TgZ(33,"span",24),l.YNc(34,F,3,2,"ng-container",23),l.YNc(35,Ce,3,2,"ng-container",23),l.qZA(),l.qZA(),l.qZA(),l._UZ(36,"mat-divider",25),l.TgZ(37,"div",19),l.TgZ(38,"div",20),l.TgZ(39,"h4",21),l._uU(40,"Date Expiry"),l.qZA(),l.TgZ(41,"span",22),l._uU(42),l.ALo(43,"date"),l.qZA(),l.qZA(),l.TgZ(44,"div",20),l.TgZ(45,"h4",21),l._uU(46,"Date Settled"),l.qZA(),l.TgZ(47,"span",22),l._uU(48),l.ALo(49,"date"),l.qZA(),l.qZA(),l.qZA(),l._UZ(50,"mat-divider",25),l.TgZ(51,"div",19),l.TgZ(52,"div",26),l.TgZ(53,"h4",21),l._uU(54,"Description"),l.qZA(),l.TgZ(55,"span",22),l._uU(56),l.qZA(),l.qZA(),l.qZA(),l._UZ(57,"mat-divider",25),l.TgZ(58,"div",19),l.TgZ(59,"div",26),l.TgZ(60,"h4",21),l._uU(61),l.qZA(),l.TgZ(62,"span",24),l._uU(63),l.qZA(),l.qZA(),l.qZA(),l.YNc(64,Be,16,2,"div",23),l.TgZ(65,"div",27),l.TgZ(66,"button",28),l.NdJ("click",function(){return Le.onShowAdvanced()}),l.YNc(67,ze,2,0,"p",29),l.YNc(68,Ie,2,0,"ng-template",null,30,l.W1O),l.qZA(),l.YNc(70,K,2,1,"button",31),l.YNc(71,Me,2,0,"button",32),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.qZA()),2&he){const ke=l.MAs(69);l.xp6(1),l.Q6J("fxLayoutAlign",null!=Le.invoice&&Le.invoice.bolt11&&""!==(null==Le.invoice?null:Le.invoice.bolt11)||null!=Le.invoice&&Le.invoice.bolt12&&""!==(null==Le.invoice?null:Le.invoice.bolt12)?"center start":"center center")("ngClass",l.VKq(40,we,Le.screenSize===Le.screenSizeEnum.XS||Le.screenSize===Le.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==Le.invoice?null:Le.invoice.bolt11)&&""!==(null==Le.invoice?null:Le.invoice.bolt11)||(null==Le.invoice?null:Le.invoice.bolt12)&&""!==(null==Le.invoice?null:Le.invoice.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=Le.invoice&&Le.invoice.bolt11||null!=Le.invoice&&Le.invoice.bolt12)),l.xp6(4),l.Q6J("icon",Le.faReceipt),l.xp6(2),l.hij(" ",Le.screenSize===Le.screenSizeEnum.XS?Le.newlyAdded?"Created":"Invoice":Le.newlyAdded?"Invoice Created":"Invoice Information"," "),l.xp6(1),l.Q6J("ngIf","paid"===(null==Le.invoice?null:Le.invoice.status)),l.xp6(1),l.Q6J("ngIf","unpaid"===(null==Le.invoice?null:Le.invoice.status)),l.xp6(1),l.Q6J("ngIf","expired"===(null==Le.invoice?null:Le.invoice.status)),l.xp6(3),l.Q6J("ngClass",l.VKq(42,z,Le.screenSize===Le.screenSizeEnum.XS)),l.xp6(2),l.Q6J("fxLayoutAlign",null!=Le.invoice&&Le.invoice.bolt11&&""!==(null==Le.invoice?null:Le.invoice.bolt11)||null!=Le.invoice&&Le.invoice.bolt12&&""!==(null==Le.invoice?null:Le.invoice.bolt12)?"center start":"center center")("ngClass",l.VKq(44,we,Le.screenSize!==Le.screenSizeEnum.XS&&Le.screenSize!==Le.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==Le.invoice?null:Le.invoice.bolt11)&&""!==(null==Le.invoice?null:Le.invoice.bolt11)||(null==Le.invoice?null:Le.invoice.bolt12)&&""!==(null==Le.invoice?null:Le.invoice.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=Le.invoice&&Le.invoice.bolt11||null!=Le.invoice&&Le.invoice.bolt12)),l.xp6(1),l.Q6J("ngIf",Le.screenSize===Le.screenSizeEnum.XS||Le.screenSize===Le.screenSizeEnum.SM),l.xp6(1),l.Q6J("ngIf",null==Le.invoice?null:Le.invoice.warning_capacity),l.xp6(4),l.Oqu(Le.screenSize===Le.screenSizeEnum.XS?"Amount":"Amount Requested"),l.xp6(2),l.hij(" ",l.lcZ(28,32,(null==Le.invoice?null:Le.invoice.msatoshi)/1e3||0)," Sats"),l.xp6(2),l.Q6J("ngIf",!(null!=Le.invoice&&Le.invoice.msatoshi)||"0"===(null==Le.invoice?null:Le.invoice.msatoshi)),l.xp6(5),l.Q6J("ngIf","paid"===(null==Le.invoice?null:Le.invoice.status)),l.xp6(1),l.Q6J("ngIf","paid"!==(null==Le.invoice?null:Le.invoice.status)),l.xp6(7),l.Oqu(l.xi3(43,34,1e3*(null==Le.invoice?null:Le.invoice.expires_at),"dd/MMM/y HH:mm")),l.xp6(6),l.Oqu(l.xi3(49,37,1e3*(null==Le.invoice?null:Le.invoice.paid_at),"dd/MMM/y HH:mm")||"-"),l.xp6(8),l.Oqu((null==Le.invoice?null:Le.invoice.description)||"-"),l.xp6(5),l.hij("",null!=Le.invoice&&Le.invoice.bolt12?"Bolt12":null!=Le.invoice&&Le.invoice.bolt11&&!Le.invoice.label.includes("keysend-")?"Bolt11":"Keysend"," Invoice"),l.xp6(2),l.Oqu((null==Le.invoice?null:Le.invoice.bolt11)||(null==Le.invoice?null:Le.invoice.bolt12)),l.xp6(1),l.Q6J("ngIf",Le.showAdvanced),l.xp6(1),l.Q6J("ngClass",l.WLB(46,Ge,!Le.showAdvanced,Le.showAdvanced)),l.xp6(2),l.Q6J("ngIf",!Le.showAdvanced)("ngIfElse",ke),l.xp6(3),l.Q6J("ngIf",(null==Le.invoice?null:Le.invoice.bolt11)&&""!==(null==Le.invoice?null:Le.invoice.bolt11)||(null==Le.invoice?null:Le.invoice.bolt12)&&""!==(null==Le.invoice?null:Le.invoice.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=Le.invoice&&Le.invoice.bolt11||null!=Le.invoice&&Le.invoice.bolt12))}},directives:[O.xw,O.Wh,O.yH,E.mk,P.oO,E.O5,w.dk,Z.BN,j.lW,w.dn,W.d,ie.uU,ee.gM,E.sg,_e.$g,ce.h,re.y],pipes:[E.JJ,E.uU],styles:[""]}),Re})()},1462:(Ve,Q,m)=>{"use strict";m.d(Q,{k:()=>U});var e=m(8966),t=m(801),y=m(7579),C=m(2722),o=m(7731),M=m(9828),l=m(5e3),N=m(5043),s=m(62),D=m(7261),A=m(5620),O=m(8104),E=m(7093),P=m(9808),w=m(3322),Z=m(9224),j=m(9444),W=m(7423),ie=m(4834),ee=m(159),_e=m(3390),ce=m(6895);function re(ye,Ce){if(1&ye&&l._UZ(0,"qr-code",28),2&ye){const Be=l.oxw();l.Q6J("value",null==Be.offer?null:Be.offer.bolt12)("size",Be.qrWidth)("errorCorrectionLevel","L")}}function de(ye,Ce){1&ye&&(l.TgZ(0,"span",29),l._uU(1,"N/A"),l.qZA())}function oe(ye,Ce){if(1&ye&&l._UZ(0,"qr-code",28),2&ye){const Be=l.oxw();l.Q6J("value",null==Be.offer?null:Be.offer.bolt12)("size",Be.qrWidth)("errorCorrectionLevel","L")}}function ae(ye,Ce){1&ye&&(l.TgZ(0,"span",30),l._uU(1,"QR Code Not Applicable"),l.qZA())}function b(ye,Ce){1&ye&&l._UZ(0,"mat-divider",31),2&ye&&l.Q6J("inset",!0)}function i(ye,Ce){1&ye&&l._UZ(0,"mat-divider",19)}function a(ye,Ce){if(1&ye&&(l.TgZ(0,"div",15),l.TgZ(1,"div",16),l.TgZ(2,"h4",17),l._uU(3,"Used"),l.qZA(),l.TgZ(4,"span",18),l._uU(5),l.qZA(),l.qZA(),l.TgZ(6,"div",16),l.TgZ(7,"h4",17),l._uU(8,"Single Use"),l.qZA(),l.TgZ(9,"span",18),l._uU(10),l.qZA(),l.qZA(),l.qZA()),2&ye){const Be=l.oxw(2);l.xp6(5),l.hij(" ",null!=Be.offer&&Be.offer.used?null!=Be.offer&&Be.offer.used?"Yes":"No":"N/K"," "),l.xp6(5),l.hij(" ",null!=Be.offer&&Be.offer.single_use?null!=Be.offer&&Be.offer.single_use?"Yes":"No":"N/K"," ")}}function p(ye,Ce){1&ye&&l._UZ(0,"mat-divider",19)}function u(ye,Ce){if(1&ye&&(l.TgZ(0,"div",15),l.TgZ(1,"div",20),l.TgZ(2,"h4",17),l._uU(3,"Vendor"),l.qZA(),l.TgZ(4,"span",34),l._uU(5),l.qZA(),l.qZA(),l.qZA()),2&ye){const Be=l.oxw(2);l.xp6(5),l.Oqu((null==Be.offerDecoded?null:Be.offerDecoded.vendor)||(null==Be.offerDecoded?null:Be.offerDecoded.issuer))}}function _(ye,Ce){if(1&ye&&(l.TgZ(0,"div"),l.YNc(1,i,1,0,"mat-divider",32),l.YNc(2,a,11,2,"div",33),l.YNc(3,p,1,0,"mat-divider",32),l.YNc(4,u,6,1,"div",33),l._UZ(5,"mat-divider",19),l.TgZ(6,"div",15),l.TgZ(7,"div",20),l.TgZ(8,"h4",17),l._uU(9,"Offer ID"),l.qZA(),l.TgZ(10,"span",18),l._uU(11),l.qZA(),l.qZA(),l.qZA(),l._UZ(12,"mat-divider",19),l.qZA()),2&ye){const Be=l.oxw();l.xp6(1),l.Q6J("ngIf",(null==Be.offer?null:Be.offer.used)||(null==Be.offer?null:Be.offer.single_use)),l.xp6(1),l.Q6J("ngIf",(null==Be.offer?null:Be.offer.used)||(null==Be.offer?null:Be.offer.single_use)),l.xp6(1),l.Q6J("ngIf",(null==Be.offerDecoded?null:Be.offerDecoded.vendor)||(null==Be.offerDecoded?null:Be.offerDecoded.issuer)),l.xp6(1),l.Q6J("ngIf",(null==Be.offerDecoded?null:Be.offerDecoded.vendor)||(null==Be.offerDecoded?null:Be.offerDecoded.issuer)),l.xp6(7),l.Oqu(Be.offerDecoded.offer_id)}}function L(ye,Ce){1&ye&&(l.TgZ(0,"p"),l._uU(1,"Show Advanced"),l.qZA())}function I(ye,Ce){1&ye&&(l.TgZ(0,"p"),l._uU(1,"Hide Advanced"),l.qZA())}function x(ye,Ce){if(1&ye){const Be=l.EpF();l.TgZ(0,"button",35),l.NdJ("copied",function(Ie){return l.CHM(Be),l.oxw().onCopyOffer(Ie)}),l._uU(1,"Copy Offer"),l.qZA()}if(2&ye){const Be=l.oxw();l.Q6J("payload",null==Be.offer?null:Be.offer.bolt12)}}function r(ye,Ce){if(1&ye){const Be=l.EpF();l.TgZ(0,"button",36),l.NdJ("click",function(){return l.CHM(Be),l.oxw().onClose()}),l._uU(1,"OK"),l.qZA()}}const v=function(ye){return{"display-none":ye}},G=function(ye){return{"xs-scroll-y":ye}},F=function(ye,Ce){return{"mt-2":ye,"mt-1":Ce}};let U=(()=>{class ye{constructor(Be,ze,Ie,K,Me,we,z){this.dialogRef=Be,this.data=ze,this.logger=Ie,this.commonService=K,this.snackBar=Me,this.store=we,this.dataService=z,this.faReceipt=t.dLy,this.faExclamationTriangle=t.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.offerDecoded={},this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.cu,this.flgOfferPaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new y.x,new y.x,new y.x,new y.x,new y.x]}ngOnInit(){this.offer=this.data.offer,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.cu.XS&&(this.qrWidth=220),this.store.select(M.ey).pipe((0,C.R)(this.unSubs[0])).subscribe(Be=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(Be.api_version,"0.6.0")}),this.dataService.decodePayment(this.offer.bolt12,!0).pipe((0,C.R)(this.unSubs[1])).subscribe(Be=>{this.offerDecoded=Be,this.offerDecoded.offer_id&&!this.offerDecoded.amount_msat?(this.offerDecoded.amount_msat="0msat",this.offerDecoded.amount=0):this.offerDecoded.amount=+(this.offerDecoded.amount||this.offerDecoded.amount_msat.slice(0,-4))})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyOffer(Be){this.snackBar.open("Offer copied."),this.logger.info("Copied Text: "+Be)}ngOnDestroy(){this.unSubs.forEach(Be=>{Be.next(null),Be.complete()})}}return ye.\u0275fac=function(Be){return new(Be||ye)(l.Y36(e.so),l.Y36(e.WI),l.Y36(N.mQ),l.Y36(s.v),l.Y36(D.ux),l.Y36(A.yh),l.Y36(O.D))},ye.\u0275cmp=l.Xpm({type:ye,selectors:[["rtl-cln-offer-information"]],decls:52,vars:33,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",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","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"],["hideAdvancedText",""],["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"],[3,"value","size","errorCorrectionLevel"],[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,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(Be,ze){if(1&Be&&(l.TgZ(0,"div",0),l.TgZ(1,"div",1),l.YNc(2,re,1,3,"qr-code",2),l.YNc(3,de,2,0,"span",3),l.qZA(),l.TgZ(4,"div",4),l.TgZ(5,"mat-card-header",5),l.TgZ(6,"div",6),l._UZ(7,"fa-icon",7),l.TgZ(8,"span",8),l._uU(9),l.qZA(),l.qZA(),l.TgZ(10,"button",9),l.NdJ("click",function(){return ze.onClose()}),l._uU(11,"X"),l.qZA(),l.qZA(),l.TgZ(12,"mat-card-content",10),l.TgZ(13,"div",11),l.TgZ(14,"div",12),l.YNc(15,oe,1,3,"qr-code",2),l.YNc(16,ae,2,0,"span",13),l.qZA(),l.YNc(17,b,1,1,"mat-divider",14),l.TgZ(18,"div",15),l.TgZ(19,"div",16),l.TgZ(20,"h4",17),l._uU(21,"Amount Requested (Sats)"),l.qZA(),l.TgZ(22,"span",18),l._uU(23),l.ALo(24,"number"),l.qZA(),l.qZA(),l.TgZ(25,"div",16),l.TgZ(26,"h4",17),l._uU(27,"Active"),l.qZA(),l.TgZ(28,"span",18),l._uU(29),l.qZA(),l.qZA(),l.qZA(),l._UZ(30,"mat-divider",19),l.TgZ(31,"div",15),l.TgZ(32,"div",20),l.TgZ(33,"h4",17),l._uU(34,"Description"),l.qZA(),l.TgZ(35,"span",18),l._uU(36),l.qZA(),l.qZA(),l.qZA(),l._UZ(37,"mat-divider",19),l.TgZ(38,"div",15),l.TgZ(39,"div",20),l.TgZ(40,"h4",17),l._uU(41,"Offer Request"),l.qZA(),l.TgZ(42,"span",18),l._uU(43),l.qZA(),l.qZA(),l.qZA(),l.YNc(44,_,13,5,"div",21),l.TgZ(45,"div",22),l.TgZ(46,"button",23),l.NdJ("click",function(){return ze.onShowAdvanced()}),l.YNc(47,L,2,0,"p",24),l.YNc(48,I,2,0,"ng-template",null,25,l.W1O),l.qZA(),l.YNc(50,x,2,1,"button",26),l.YNc(51,r,2,0,"button",27),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.qZA()),2&Be){const Ie=l.MAs(49);l.xp6(1),l.Q6J("fxLayoutAlign",null!=ze.offer&&ze.offer.bolt12&&""!==(null==ze.offer?null:ze.offer.bolt12)?"center start":"center center")("ngClass",l.VKq(24,v,ze.screenSize===ze.screenSizeEnum.XS||ze.screenSize===ze.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==ze.offer?null:ze.offer.bolt12)&&""!==(null==ze.offer?null:ze.offer.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=ze.offer&&ze.offer.bolt12)||""===(null==ze.offer?null:ze.offer.bolt12)),l.xp6(4),l.Q6J("icon",ze.faReceipt),l.xp6(2),l.Oqu(ze.screenSize===ze.screenSizeEnum.XS?ze.newlyAdded?"Created":"Offer":ze.newlyAdded?"Offer Created":"Offer Information"),l.xp6(3),l.Q6J("ngClass",l.VKq(26,G,ze.screenSize===ze.screenSizeEnum.XS)),l.xp6(2),l.Q6J("fxLayoutAlign",null!=ze.offer&&ze.offer.bolt12&&""!==(null==ze.offer?null:ze.offer.bolt12)?"center start":"center center")("ngClass",l.VKq(28,v,ze.screenSize!==ze.screenSizeEnum.XS&&ze.screenSize!==ze.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==ze.offer?null:ze.offer.bolt12)&&""!==(null==ze.offer?null:ze.offer.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=ze.offer&&ze.offer.bolt12)||""===(null==ze.offer?null:ze.offer.bolt12)),l.xp6(1),l.Q6J("ngIf",ze.screenSize===ze.screenSizeEnum.XS||ze.screenSize===ze.screenSizeEnum.SM),l.xp6(6),l.hij(" ",null!=ze.offerDecoded&&ze.offerDecoded.amount_msat&&0!==(null==ze.offerDecoded?null:ze.offerDecoded.amount)?l.lcZ(24,22,(null==ze.offerDecoded?null:ze.offerDecoded.amount)/1e3):"Open Offer"," "),l.xp6(6),l.hij(" ",null!=ze.offer&&ze.offer.active?null!=ze.offer&&ze.offer.active?"Active":"Inactive":"N/K"," "),l.xp6(7),l.hij(" ",null==ze.offerDecoded?null:ze.offerDecoded.description," "),l.xp6(7),l.Oqu(null==ze.offer?null:ze.offer.bolt12),l.xp6(1),l.Q6J("ngIf",ze.showAdvanced),l.xp6(1),l.Q6J("ngClass",l.WLB(30,F,!ze.showAdvanced,ze.showAdvanced)),l.xp6(2),l.Q6J("ngIf",!ze.showAdvanced)("ngIfElse",Ie),l.xp6(3),l.Q6J("ngIf",(null==ze.offer?null:ze.offer.bolt12)&&""!==(null==ze.offer?null:ze.offer.bolt12)),l.xp6(1),l.Q6J("ngIf",!(null!=ze.offer&&ze.offer.bolt12)||""===(null==ze.offer?null:ze.offer.bolt12))}},directives:[E.xw,E.Wh,E.yH,P.mk,w.oO,P.O5,Z.dk,j.BN,W.lW,Z.dn,ie.d,ee.uU,_e.h,ce.y],pipes:[P.JJ],styles:[""]}),ye})()},2994:(Ve,Q,m)=>{"use strict";m.d(Q,{QZ:()=>y,Fd:()=>C,Zr:()=>o,iz:()=>M,CX:()=>l,SN:()=>N,RX:()=>s,UR:()=>D,eN:()=>A,TW:()=>O,i:()=>E,iL:()=>P,Bw:()=>w,On:()=>Z,HG:()=>j,$W:()=>W,Z8:()=>ie,El:()=>ee,GD:()=>re,EK:()=>de,_E:()=>oe,YX:()=>b,pW:()=>i,BL:()=>a,OG:()=>p,cQ:()=>u,HI:()=>_,WO:()=>L,kL:()=>I,oV:()=>x,TM:()=>r,mC:()=>v,Lf:()=>G,Iy:()=>F,WM:()=>ye,Nr:()=>Ce,Z$:()=>Be,YP:()=>ze,aL:()=>Ie,Sf:()=>K,n7:()=>Me,DJ:()=>z,ti:()=>Ge});var e=m(5620),t=m(7731);const y=(0,e.PH)(t.lr.UPDATE_API_CALL_STATUS_ECL,(0,e.Ky)()),C=(0,e.PH)(t.lr.RESET_ECL_STORE,(0,e.Ky)()),o=(0,e.PH)(t.lr.SET_CHILD_NODE_SETTINGS_ECL,(0,e.Ky)()),M=(0,e.PH)(t.lr.FETCH_INFO_ECL,(0,e.Ky)()),l=(0,e.PH)(t.lr.SET_INFO_ECL,(0,e.Ky)()),N=(0,e.PH)(t.lr.FETCH_FEES_ECL),s=(0,e.PH)(t.lr.SET_FEES_ECL,(0,e.Ky)()),D=(0,e.PH)(t.lr.FETCH_CHANNELS_ECL,(0,e.Ky)()),A=(0,e.PH)(t.lr.SET_ACTIVE_CHANNELS_ECL,(0,e.Ky)()),O=(0,e.PH)(t.lr.SET_PENDING_CHANNELS_ECL,(0,e.Ky)()),E=(0,e.PH)(t.lr.SET_INACTIVE_CHANNELS_ECL,(0,e.Ky)()),P=(0,e.PH)(t.lr.FETCH_ONCHAIN_BALANCE_ECL),w=(0,e.PH)(t.lr.SET_ONCHAIN_BALANCE_ECL,(0,e.Ky)()),Z=(0,e.PH)(t.lr.SET_LIGHTNING_BALANCE_ECL,(0,e.Ky)()),j=(0,e.PH)(t.lr.SET_CHANNELS_STATUS_ECL,(0,e.Ky)()),W=(0,e.PH)(t.lr.FETCH_PEERS_ECL),ie=(0,e.PH)(t.lr.SET_PEERS_ECL,(0,e.Ky)()),ee=(0,e.PH)(t.lr.SAVE_NEW_PEER_ECL,(0,e.Ky)()),re=((0,e.PH)(t.lr.NEWLY_ADDED_PEER_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.ADD_PEER_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.DETACH_PEER_ECL,(0,e.Ky)())),de=(0,e.PH)(t.lr.REMOVE_PEER_ECL,(0,e.Ky)()),oe=(0,e.PH)(t.lr.GET_NEW_ADDRESS_ECL),b=((0,e.PH)(t.lr.SET_NEW_ADDRESS_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.SAVE_NEW_CHANNEL_ECL,(0,e.Ky)())),i=(0,e.PH)(t.lr.UPDATE_CHANNEL_ECL,(0,e.Ky)()),a=(0,e.PH)(t.lr.CLOSE_CHANNEL_ECL,(0,e.Ky)()),p=(0,e.PH)(t.lr.REMOVE_CHANNEL_ECL,(0,e.Ky)()),u=(0,e.PH)(t.lr.FETCH_PAYMENTS_ECL),_=(0,e.PH)(t.lr.SET_PAYMENTS_ECL,(0,e.Ky)()),L=(0,e.PH)(t.lr.GET_QUERY_ROUTES_ECL,(0,e.Ky)()),I=(0,e.PH)(t.lr.SET_QUERY_ROUTES_ECL,(0,e.Ky)()),x=(0,e.PH)(t.lr.SEND_PAYMENT_ECL,(0,e.Ky)()),r=(0,e.PH)(t.lr.SEND_PAYMENT_STATUS_ECL,(0,e.Ky)()),v=(0,e.PH)(t.lr.FETCH_TRANSACTIONS_ECL),G=(0,e.PH)(t.lr.SET_TRANSACTIONS_ECL,(0,e.Ky)()),F=(0,e.PH)(t.lr.SEND_ONCHAIN_FUNDS_ECL,(0,e.Ky)()),ye=((0,e.PH)(t.lr.SEND_ONCHAIN_FUNDS_RES_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.FETCH_INVOICES_ECL)),Ce=(0,e.PH)(t.lr.SET_INVOICES_ECL,(0,e.Ky)()),Be=(0,e.PH)(t.lr.CREATE_INVOICE_ECL,(0,e.Ky)()),ze=(0,e.PH)(t.lr.ADD_INVOICE_ECL,(0,e.Ky)()),Ie=(0,e.PH)(t.lr.UPDATE_INVOICE_ECL,(0,e.Ky)()),K=(0,e.PH)(t.lr.PEER_LOOKUP_ECL,(0,e.Ky)()),Me=(0,e.PH)(t.lr.INVOICE_LOOKUP_ECL,(0,e.Ky)()),z=((0,e.PH)(t.lr.SET_LOOKUP_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.UPDATE_CHANNEL_STATE_ECL,(0,e.Ky)())),Ge=(0,e.PH)(t.lr.UPDATE_RELAYED_PAYMENT_ECL,(0,e.Ky)())},3289:(Ve,Q,m)=>{"use strict";m.d(Q,{o:()=>de});var e=m(6642),t=m(7579),y=m(9646),C=m(5577),o=m(2722),M=m(4004),l=m(262),N=m(2340),s=m(1786),D=m(7731),A=m(7861),O=m(7766),E=m(2994),P=m(2501),w=m(5e3),Z=m(8138),j=m(5620),W=m(5986),ie=m(62),ee=m(5043),_e=m(1402),ce=m(7998),re=m(9808);let de=(()=>{class oe{constructor(b,i,a,p,u,_,L,I,x){this.actions=b,this.httpClient=i,this.store=a,this.sessionService=p,this.commonService=u,this.logger=_,this.router=L,this.wsService=I,this.location=x,this.CHILD_API_URL=N.T5+"/ecl",this.flgInitialized=!1,this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.rawChannelsList=[],this.unSubs=[new t.x,new t.x,new t.x],this.infoFetchECL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.FETCH_INFO_ECL),(0,C.z)(r=>(this.flgInitialized=!1,this.store.dispatch((0,A.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,A.ac)({payload:D.m6.GET_NODE_INFO})),this.store.dispatch((0,E.QZ)({payload:{action:"FetchInfo",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.GETINFO_API).pipe((0,o.R)(this.actions.pipe((0,e.l4)(D.pg.SET_SELECTED_NODE))),(0,M.U)(v=>(this.logger.info(v),this.initializeRemainingData(v,r.payload.loadPage),this.store.dispatch((0,E.QZ)({payload:{action:"FetchInfo",status:D.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:D.m6.GET_NODE_INFO})),{type:D.lr.SET_INFO_ECL,payload:v||{}})),(0,l.K)(v=>{const G=this.commonService.extractErrorCode(v),F=503===G?"Unable to Connect to Eclair Server.":this.commonService.extractErrorMessage(v);return this.router.navigate(["/error"],{state:{errorCode:G,errorMessage:F}}),this.handleErrorWithoutAlert("FetchInfo",D.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:G,error:F}),(0,y.of)({type:D.pg.VOID})})))))),this.fetchFees=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.FETCH_FEES_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchFees",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.FEES_API+"/fees").pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchFees",status:D.Bn.COMPLETED}})),{type:D.lr.SET_FEES_ECL,payload:r||{}})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchFees",D.m6.NO_SPINNER,"Fetching Fees Failed.",r),(0,y.of)({type:D.pg.VOID})))))))),this.fetchPayments=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.FETCH_PAYMENTS_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchPayments",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.FEES_API+"/payments").pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchPayments",status:D.Bn.COMPLETED}})),{type:D.lr.SET_PAYMENTS_ECL,payload:r||{}})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchPayments",D.m6.NO_SPINNER,"Fetching Payments Failed.",r),(0,y.of)({type:D.pg.VOID})))))))),this.channelsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.FETCH_CHANNELS_ECL),(0,C.z)(r=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchChannels",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.CHANNELS_API).pipe((0,M.U)(v=>(this.logger.info(v),this.rawChannelsList=v,this.setChannelsAndStatusAndBalances(),this.store.dispatch((0,E.QZ)({payload:{action:"FetchChannels",status:D.Bn.COMPLETED}})),r.payload&&r.payload.fetchPayments&&this.store.dispatch((0,E.cQ)()),{type:D.pg.VOID})),(0,l.K)(v=>(this.handleErrorWithoutAlert("FetchChannels",D.m6.NO_SPINNER,"Fetching Channels Failed.",v),(0,y.of)({type:D.pg.VOID})))))))),this.fetchOnchainBalance=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.FETCH_ONCHAIN_BALANCE_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchOnchainBalance",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.ON_CHAIN_API+"/balance"))),(0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchOnchainBalance",status:D.Bn.COMPLETED}})),{type:D.lr.SET_ONCHAIN_BALANCE_ECL,payload:r||{}})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchOnchainBalance",D.m6.NO_SPINNER,"Fetching Onchain Balances Failed.",r),(0,y.of)({type:D.pg.VOID}))))),this.peersFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.FETCH_PEERS_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchPeers",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.PEERS_API).pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchPeers",status:D.Bn.COMPLETED}})),{type:D.lr.SET_PEERS_ECL,payload:r||[]})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchPeers",D.m6.NO_SPINNER,"Fetching Peers Failed.",r),(0,y.of)({type:D.pg.VOID})))))))),this.getNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.GET_NEW_ADDRESS_ECL),(0,C.z)(()=>(this.store.dispatch((0,A.ac)({payload:D.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+N.NZ.ON_CHAIN_API).pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,A.uO)({payload:D.m6.GENERATE_NEW_ADDRESS})),{type:D.lr.SET_NEW_ADDRESS_ECL,payload:r})),(0,l.K)(r=>(this.handleErrorWithAlert("GetNewAddress",D.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+N.NZ.ON_CHAIN_API,r),(0,y.of)({type:D.pg.VOID})))))))),this.setNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.SET_NEW_ADDRESS_ECL),(0,M.U)(r=>(this.logger.info(r.payload),r.payload))),{dispatch:!1}),this.saveNewPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.SAVE_NEW_PEER_ECL),(0,C.z)(r=>(this.store.dispatch((0,A.ac)({payload:D.m6.CONNECT_PEER})),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewPeer",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.PEERS_API+(r.payload.id.includes("@")?"?uri=":"?nodeId=")+r.payload.id,{}).pipe((0,M.U)(v=>(this.logger.info(v),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewPeer",status:D.Bn.COMPLETED}})),v=v||[],this.store.dispatch((0,A.uO)({payload:D.m6.CONNECT_PEER})),this.store.dispatch((0,E.Z8)({payload:v})),{type:D.lr.NEWLY_ADDED_PEER_ECL,payload:{peer:v.find(G=>G.nodeId===(r.payload.id.includes("@")?r.payload.id.substring(0,r.payload.id.indexOf("@")):r.payload.id))}})),(0,l.K)(v=>(this.handleErrorWithoutAlert("SaveNewPeer",D.m6.CONNECT_PEER,"Peer Connection Failed.",v),(0,y.of)({type:D.pg.VOID})))))))),this.detachPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.DETACH_PEER_ECL),(0,C.z)(r=>(this.store.dispatch((0,A.ac)({payload:D.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+N.NZ.PEERS_API+"/"+r.payload.nodeId).pipe((0,M.U)(v=>(this.logger.info(v),this.store.dispatch((0,A.uO)({payload:D.m6.DISCONNECT_PEER})),this.store.dispatch((0,A.jW)({payload:"Disconnecting Peer!"})),{type:D.lr.REMOVE_PEER_ECL,payload:{nodeId:r.payload.nodeId}})),(0,l.K)(v=>(this.handleErrorWithAlert("DisconnectPeer",D.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+N.NZ.PEERS_API+"/"+r.payload.nodeId,v),(0,y.of)({type:D.pg.VOID})))))))),this.openNewChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.SAVE_NEW_CHANNEL_ECL),(0,C.z)(r=>(this.store.dispatch((0,A.ac)({payload:D.m6.OPEN_CHANNEL})),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewChannel",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.CHANNELS_API,r.payload.feeRate&&r.payload.feeRate>0?{nodeId:r.payload.nodeId,fundingSatoshis:r.payload.amount,channelFlags:+!r.payload.private,fundingFeerateSatByte:r.payload.feeRate}:{nodeId:r.payload.nodeId,fundingSatoshis:r.payload.amount,channelFlags:+!r.payload.private}).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewChannel",status:D.Bn.COMPLETED}})),this.store.dispatch((0,E.$W)()),this.store.dispatch((0,E.iL)()),this.store.dispatch((0,A.uO)({payload:D.m6.OPEN_CHANNEL})),this.store.dispatch((0,A.jW)({payload:"Channel Added Successfully!"})),{type:D.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,l.K)(G=>(this.handleErrorWithoutAlert("SaveNewChannel",D.m6.OPEN_CHANNEL,"Opening Channel Failed.",G),(0,y.of)({type:D.pg.VOID})))))))),this.updateChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.UPDATE_CHANNEL_ECL),(0,C.z)(r=>{this.store.dispatch((0,A.ac)({payload:D.m6.UPDATE_CHAN_POLICY}));let v="?feeBaseMsat="+r.payload.baseFeeMsat+"&feeProportionalMillionths="+r.payload.feeRate;return v=r.payload.nodeIds?v+"&nodeIds="+r.payload.nodeIds:r.payload.nodeId?v+"&nodeId="+r.payload.nodeId:r.payload.channelIds?v+"&channelIds="+r.payload.channelIds:v+"&channelId="+r.payload.channelId,this.httpClient.post(this.CHILD_API_URL+N.NZ.CHANNELS_API+"/updateRelayFee"+v,{}).pipe((0,M.U)(G=>(this.logger.info(G),this.store.dispatch((0,A.uO)({payload:D.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,A.jW)(r.payload.nodeIds||r.payload.channelIds?{payload:"Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:D.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,l.K)(G=>(this.handleErrorWithAlert("UpdateChannels",D.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+N.NZ.CHANNELS_API,G),(0,y.of)({type:D.pg.VOID}))))}))),this.closeChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.CLOSE_CHANNEL_ECL),(0,C.z)(r=>(this.store.dispatch((0,A.ac)({payload:r.payload.force?D.m6.FORCE_CLOSE_CHANNEL:D.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+N.NZ.CHANNELS_API+"?channelId="+r.payload.channelId+"&force="+r.payload.force).pipe((0,M.U)(v=>(this.logger.info(v),setTimeout(()=>{this.store.dispatch((0,A.uO)({payload:r.payload.force?D.m6.FORCE_CLOSE_CHANNEL:D.m6.CLOSE_CHANNEL})),this.store.dispatch((0,E.UR)({payload:{fetchPayments:!1}})),this.store.dispatch((0,A.jW)({payload:r.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"}))},2e3),{type:D.pg.VOID})),(0,l.K)(v=>(this.handleErrorWithAlert("CloseChannel",r.payload.force?D.m6.FORCE_CLOSE_CHANNEL:D.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+N.NZ.CHANNELS_API,v),(0,y.of)({type:D.pg.VOID})))))))),this.queryRoutesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.GET_QUERY_ROUTES_ECL),(0,C.z)(r=>this.httpClient.get(this.CHILD_API_URL+N.NZ.PAYMENTS_API+"/route?nodeId="+r.payload.nodeId+"&amountMsat="+r.payload.amount).pipe((0,M.U)(v=>(this.logger.info(v),{type:D.lr.SET_QUERY_ROUTES_ECL,payload:v})),(0,l.K)(v=>(this.store.dispatch((0,E.kL)({payload:[]})),this.handleErrorWithAlert("GetQueryRoutes",D.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+N.NZ.PAYMENTS_API+"/route?nodeId="+r.payload.nodeId+"&amountMsat="+r.payload.amount,v),(0,y.of)({type:D.pg.VOID}))))))),this.setQueryRoutes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.SET_QUERY_ROUTES_ECL),(0,M.U)(r=>r.payload)),{dispatch:!1}),this.sendPayment=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.SEND_PAYMENT_ECL),(0,C.z)(r=>(this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.store.dispatch((0,A.ac)({payload:D.m6.SEND_PAYMENT})),this.store.dispatch((0,E.QZ)({payload:{action:"SendPayment",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.PAYMENTS_API,r.payload).pipe((0,M.U)(v=>(this.logger.info(v),this.latestPaymentRes=v,setTimeout(()=>{this.flgReceivedPaymentUpdateFromWS||this.handleSendPaymentStatus("Payment Submitted!")},3e3),{type:D.pg.VOID})),(0,l.K)(v=>(this.logger.error("Error: "+JSON.stringify(v)),r.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",D.m6.SEND_PAYMENT,"Send Payment Failed.",v):this.handleErrorWithAlert("SendPayment",D.m6.SEND_PAYMENT,"Send Payment Failed",this.CHILD_API_URL+N.NZ.PAYMENTS_API,v),(0,y.of)({type:D.pg.VOID})))))))),this.transactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.FETCH_TRANSACTIONS_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchTransactions",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.ON_CHAIN_API+"/transactions?count=1000&skip=0"))),(0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchTransactions",status:D.Bn.COMPLETED}})),{type:D.lr.SET_TRANSACTIONS_ECL,payload:r||[]})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchTransactions",D.m6.NO_SPINNER,"Fetching Transactions Failed.",r),(0,y.of)({type:D.pg.VOID}))))),this.SendOnchainFunds=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.SEND_ONCHAIN_FUNDS_ECL),(0,C.z)(r=>(this.store.dispatch((0,A.ac)({payload:D.m6.SEND_FUNDS})),this.store.dispatch((0,E.QZ)({payload:{action:"SendOnchainFunds",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.ON_CHAIN_API,r.payload).pipe((0,M.U)(v=>(this.logger.info(v),this.store.dispatch((0,E.QZ)({payload:{action:"SendOnchainFunds",status:D.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:D.m6.SEND_FUNDS})),this.store.dispatch((0,E.iL)()),{type:D.lr.SEND_ONCHAIN_FUNDS_RES_ECL,payload:v})),(0,l.K)(v=>(this.handleErrorWithoutAlert("SendOnchainFunds",D.m6.SEND_FUNDS,"Sending Fund Failed.",v),(0,y.of)({type:D.pg.VOID})))))))),this.createInvoice=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.CREATE_INVOICE_ECL),(0,C.z)(r=>(this.store.dispatch((0,A.ac)({payload:D.m6.CREATE_INVOICE})),this.store.dispatch((0,E.QZ)({payload:{action:"CreateInvoice",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.INVOICES_API,r.payload).pipe((0,M.U)(v=>(this.logger.info(v),this.store.dispatch((0,E.QZ)({payload:{action:"CreateInvoice",status:D.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:D.m6.CREATE_INVOICE})),v.timestamp=Math.round((new Date).getTime()/1e3),v.expiresAt=Math.round(v.timestamp+r.payload.expireIn),v.description=r.payload.description,v.status="unpaid",setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{invoice:v,newlyAdded:!0,component:O.R}}}))},100),{type:D.lr.ADD_INVOICE_ECL,payload:v})),(0,l.K)(v=>(this.handleErrorWithoutAlert("CreateInvoice",D.m6.CREATE_INVOICE,"Create Invoice Failed.",v),(0,y.of)({type:D.pg.VOID})))))))),this.invoicesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.FETCH_INVOICES_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchInvoices",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.INVOICES_API).pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchInvoices",status:D.Bn.COMPLETED}})),{type:D.lr.SET_INVOICES_ECL,payload:r})),(0,l.K)(r=>(this.handleErrorWithoutAlert("FetchInvoices",D.m6.NO_SPINNER,"Fetching Invoices Failed.",r),(0,y.of)({type:D.pg.VOID})))))))),this.peerLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.PEER_LOOKUP_ECL),(0,C.z)(r=>(this.store.dispatch((0,A.ac)({payload:D.m6.SEARCHING_NODE})),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.NETWORK_API+"/nodes/"+r.payload).pipe((0,M.U)(v=>(this.logger.info(v),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:D.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:D.m6.SEARCHING_NODE})),{type:D.lr.SET_LOOKUP_ECL,payload:v})),(0,l.K)(v=>(this.handleErrorWithAlert("Lookup",D.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+N.NZ.NETWORK_API+"/nodes/"+r.payload,v),(0,y.of)({type:D.pg.VOID})))))))),this.invoiceLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.INVOICE_LOOKUP_ECL),(0,C.z)(r=>(this.store.dispatch((0,A.ac)({payload:D.m6.SEARCHING_INVOICE})),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.INVOICES_API+"/"+r.payload).pipe((0,M.U)(v=>(this.logger.info(v),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:D.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:D.m6.SEARCHING_INVOICE})),this.store.dispatch((0,E.aL)({payload:v})),{type:D.lr.SET_LOOKUP_ECL,payload:v})),(0,l.K)(v=>(this.handleErrorWithoutAlert("Lookup",D.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",v),this.store.dispatch((0,A.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,y.of)({type:D.pg.VOID})))))))),this.setLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.lr.SET_LOOKUP_ECL),(0,M.U)(r=>(this.logger.info(r.payload),r.payload))),{dispatch:!1}),this.handleSendPaymentStatus=r=>{this.store.dispatch((0,E.QZ)({payload:{action:"SendPayment",status:D.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:D.m6.SEND_PAYMENT})),this.store.dispatch((0,E.TM)({payload:this.latestPaymentRes})),this.store.dispatch((0,E.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,A.jW)({payload:r}))},this.store.select(P.yA).pipe((0,o.R)(this.unSubs[0])).subscribe(r=>{r.FetchInfo.status!==D.Bn.COMPLETED&&r.FetchInfo.status!==D.Bn.ERROR||r.FetchFees.status!==D.Bn.COMPLETED&&r.FetchFees.status!==D.Bn.ERROR||r.FetchOnchainBalance.status!==D.Bn.COMPLETED&&r.FetchOnchainBalance.status!==D.Bn.ERROR||r.FetchChannels.status!==D.Bn.COMPLETED&&r.FetchChannels.status!==D.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,A.uO)({payload:D.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.eclWSMessages.pipe((0,o.R)(this.unSubs[1])).subscribe(r=>{this.logger.info("Received new message from the service: "+JSON.stringify(r));let v="";if(r)switch(r.type){case D.$v.PAYMENT_SENT:r&&r.id&&this.latestPaymentRes===r.id&&(this.flgReceivedPaymentUpdateFromWS=!0,v="Payment Sent: "+(r.paymentHash?"with payment hash "+r.paymentHash:JSON.stringify(r)),this.handleSendPaymentStatus(v));break;case D.$v.PAYMENT_FAILED:r&&r.id&&this.latestPaymentRes===r.id&&(this.flgReceivedPaymentUpdateFromWS=!0,v="Payment Failed: "+(r.failures&&r.failures.length&&r.failures.length>0&&r.failures[0].t?r.failures[0].t:r.failures&&r.failures.length&&r.failures.length>0&&r.failures[0].e&&r.failures[0].e.failureMessage?r.failures[0].e.failureMessage:JSON.stringify(r)),this.handleSendPaymentStatus(v));break;case D.$v.PAYMENT_RECEIVED:this.store.dispatch((0,E.aL)({payload:r}));break;case D.$v.PAYMENT_RELAYED:delete r.source,this.store.dispatch((0,E.ti)({payload:r}));break;case D.$v.CHANNEL_STATE_CHANGED:"NORMAL"===r.currentState||"CLOSED"===r.currentState?(this.rawChannelsList=this.rawChannelsList.map(G=>(G.channelId===r.channelId&&G.nodeId===r.remoteNodeId&&(G.state=r.currentState),G)),this.setChannelsAndStatusAndBalances()):this.store.dispatch((0,E.DJ)({payload:r}));break;default:this.logger.info("Received Event from WS: "+JSON.stringify(r))}})}setChannelsAndStatusAndBalances(){let b=0,i=0,a=0,p={localBalance:0,remoteBalance:0},u=[];const _=[],L=[],I={active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0}};this.rawChannelsList.forEach((x,r)=>{"NORMAL"===x.state?(b=x.toLocal+x.toRemote,i+=x.toLocal,a+=x.toRemote,x.balancedness=0===b?1:+(1-Math.abs((x.toLocal-x.toRemote)/b)).toFixed(3),u.push(x),I.active.channels=I.active.channels+1,I.active.capacity=I.active.capacity+x.toLocal):x.state.includes("WAIT")||x.state.includes("CLOSING")||x.state.includes("SYNCING")?(x.state=x.state.replace(/_/g," "),_.push(x),I.pending.channels=I.pending.channels+1,I.pending.capacity=I.pending.capacity+x.toLocal):(x.state=x.state.replace(/_/g," "),L.push(x),I.inactive.channels=I.inactive.channels+1,I.inactive.capacity=I.inactive.capacity+x.toLocal)}),p={localBalance:i,remoteBalance:a},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(L)),this.logger.info("Lightning Balances: "+JSON.stringify(p)),this.logger.info("Channels Status: "+JSON.stringify(I)),this.logger.info("Channel, status and balances: "+JSON.stringify({active:u,pending:_,inactive:L,balances:p,status:I})),this.store.dispatch((0,E.eN)({payload:u})),this.store.dispatch((0,E.TW)({payload:_})),this.store.dispatch((0,E.i)({payload:L})),this.store.dispatch((0,E.On)({payload:p})),this.store.dispatch((0,E.HG)({payload:I}))}initializeRemainingData(b,i){this.sessionService.setItem("eclUnlocked","true");const a={identity_pubkey:b.nodeId,alias:b.alias,testnet:"testnet"===b.network,chains:b.publicAddresses,uris:b.uris,version:b.version,numberOfPendingChannels:0};this.store.dispatch((0,A.ac)({payload:D.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,A._V)({payload:a}));let p=this.location.path();p.includes("/lnd/")?p=p.replace("/lnd/","/ecl/"):p.includes("/cln/")&&(p=p.replace("/cln/","/ecl/")),(p.includes("/login")||p.includes("/error")||""===p||"HOME"===i||p.includes("?access-key="))&&(p="/ecl/home"),this.router.navigate([p]),this.store.dispatch((0,E.WM)()),this.store.dispatch((0,E.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,E.SN)()),this.store.dispatch((0,E.iL)()),this.store.dispatch((0,E.$W)())}handleErrorWithoutAlert(b,i,a,p){this.logger.error("ERROR IN: "+b+"\n"+JSON.stringify(p)),401===p.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,A.ts)()),this.store.dispatch((0,A.kS)()),this.store.dispatch((0,A.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,A.uO)({payload:i})),this.store.dispatch((0,E.QZ)({payload:{action:b,status:D.Bn.ERROR,statusCode:p.status.toString(),message:this.commonService.extractErrorMessage(p,a)}})))}handleErrorWithAlert(b,i,a,p,u){if(this.logger.error(u),401===u.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,A.ts)()),this.store.dispatch((0,A.kS)()),this.store.dispatch((0,A.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,A.uO)({payload:i}));const _=this.commonService.extractErrorMessage(u);this.store.dispatch((0,A.qR)({payload:{data:{type:"ERROR",alertTitle:a,message:{code:u.status,message:_,URL:p},component:s.H}}})),this.store.dispatch((0,E.QZ)({payload:{action:b,status:D.Bn.ERROR,statusCode:u.status.toString(),message:_,URL:p}}))}}ngOnDestroy(){this.unSubs.forEach(b=>{b.next(null),b.complete()})}}return oe.\u0275fac=function(b){return new(b||oe)(w.LFG(e.eX),w.LFG(Z.eN),w.LFG(j.yh),w.LFG(W.m),w.LFG(ie.v),w.LFG(ee.mQ),w.LFG(_e.F0),w.LFG(ce.d),w.LFG(re.Ye))},oe.\u0275prov=w.Yz7({token:oe,factory:oe.\u0275fac}),oe})()},2501:(Ve,Q,m)=>{"use strict";m.d(Q,{pg:()=>y,yD:()=>C,T$:()=>o,yA:()=>l,PP:()=>N,JG:()=>s,Xz:()=>D,dx:()=>A,Ef:()=>O,Bo:()=>E,kY:()=>P});var e=m(5620);const t=(0,e.ZF)("ecl"),y=(0,e.P1)(t,w=>w.nodeSettings),C=(0,e.P1)(t,w=>w.information),o=(0,e.P1)(t,w=>({information:w.information,apiCallStatus:w.apisCallStatus.FetchInfo})),l=((0,e.P1)(t,w=>w.apisCallStatus.FetchInfo),(0,e.P1)(t,w=>w.apisCallStatus)),N=(0,e.P1)(t,w=>({payments:w.payments,apiCallStatus:w.apisCallStatus.FetchPayments})),s=(0,e.P1)(t,w=>({fees:w.fees,apiCallStatus:w.apisCallStatus.FetchFees})),D=(0,e.P1)(t,w=>({activeChannels:w.activeChannels,pendingChannels:w.pendingChannels,inactiveChannels:w.inactiveChannels,lightningBalance:w.lightningBalance,channelsStatus:w.channelsStatus,apiCallStatus:w.apisCallStatus.FetchChannels})),A=(0,e.P1)(t,w=>({transactions:w.transactions,apiCallStatus:w.apisCallStatus.FetchTransactions})),O=(0,e.P1)(t,w=>({invoices:w.invoices,apiCallStatus:w.apisCallStatus.FetchInvoices})),E=(0,e.P1)(t,w=>({peers:w.peers,apiCallStatus:w.apisCallStatus.FetchPeers})),P=(0,e.P1)(t,w=>({onchainBalance:w.onchainBalance,apiCallStatus:w.apisCallStatus.FetchOnchainBalance}))},7766:(Ve,Q,m)=>{"use strict";m.d(Q,{R:()=>Ie});var e=m(8966),t=m(801),y=m(7579),C=m(2722),o=m(7731),M=m(2501),l=m(5e3),N=m(5043),s=m(62),D=m(7261),A=m(5620),O=m(7093),E=m(9808),P=m(3322),w=m(9224),Z=m(9444),j=m(7423),W=m(4834),ie=m(159),ee=m(773),_e=m(3390),ce=m(6895);function re(K,Me){if(1&K&&l._UZ(0,"qr-code",29),2&K){const we=l.oxw();l.Q6J("value",null==we.invoice?null:we.invoice.serialized)("size",we.qrWidth)("errorCorrectionLevel","L")}}function de(K,Me){1&K&&(l.TgZ(0,"span",30),l._uU(1,"N/A"),l.qZA())}function oe(K,Me){if(1&K&&l._UZ(0,"qr-code",29),2&K){const we=l.oxw();l.Q6J("value",null==we.invoice?null:we.invoice.serialized)("size",we.qrWidth)("errorCorrectionLevel","L")}}function ae(K,Me){1&K&&(l.TgZ(0,"span",31),l._uU(1,"QR Code Not Applicable"),l.qZA())}function b(K,Me){1&K&&l._UZ(0,"mat-divider",32),2&K&&l.Q6J("inset",!0)}function i(K,Me){1&K&&(l.ynx(0),l._uU(1," (zero amount) "),l.BQk())}function a(K,Me){1&K&&l._UZ(0,"span",38)}const p=function(){return[]};function u(K,Me){if(1&K&&(l.TgZ(0,"div",34),l.TgZ(1,"div",35),l.TgZ(2,"span",36),l._uU(3),l.ALo(4,"number"),l.qZA(),l.YNc(5,a,1,0,"span",37),l.qZA(),l.qZA()),2&K){const we=l.oxw(2);l.xp6(3),l.hij("",l.lcZ(4,2,null==we.invoice?null:we.invoice.amountSettled)," Sats"),l.xp6(2),l.Q6J("ngForOf",l.DdM(4,p).constructor(35))}}function _(K,Me){if(1&K&&(l.TgZ(0,"div"),l._uU(1),l.ALo(2,"number"),l.qZA()),2&K){const we=l.oxw(2);l.xp6(1),l.hij("",l.lcZ(2,1,null==we.invoice?null:we.invoice.amountSettled)," Sats")}}function L(K,Me){if(1&K&&(l.ynx(0),l.YNc(1,u,6,5,"div",33),l.YNc(2,_,3,3,"div",19),l.BQk()),2&K){const we=l.oxw();l.xp6(1),l.Q6J("ngIf",we.flgInvoicePaid),l.xp6(1),l.Q6J("ngIf",!we.flgInvoicePaid)}}function I(K,Me){1&K&&(l.TgZ(0,"span"),l._uU(1,"-"),l.qZA())}function x(K,Me){1&K&&l._UZ(0,"mat-spinner",40),2&K&&l.Q6J("diameter",20)}function r(K,Me){if(1&K&&(l.ynx(0),l.YNc(1,I,2,0,"span",19),l.YNc(2,x,1,1,"mat-spinner",39),l.BQk()),2&K){const we=l.oxw();l.xp6(1),l.Q6J("ngIf","unpaid"!==(null==we.invoice?null:we.invoice.status)||!we.flgVersionCompatible),l.xp6(1),l.Q6J("ngIf","unpaid"===(null==we.invoice?null:we.invoice.status)&&we.flgVersionCompatible)}}function v(K,Me){if(1&K&&(l.TgZ(0,"div"),l._UZ(1,"mat-divider",20),l.TgZ(2,"div",15),l.TgZ(3,"div",41),l.TgZ(4,"h4",17),l._uU(5,"Date Expiry"),l.qZA(),l.TgZ(6,"span",18),l._uU(7),l.ALo(8,"date"),l.qZA(),l.qZA(),l.TgZ(9,"div",42),l.TgZ(10,"h4",17),l._uU(11,"Date Settled"),l.qZA(),l.TgZ(12,"span",21),l._uU(13),l.ALo(14,"date"),l.qZA(),l.qZA(),l.qZA(),l._UZ(15,"mat-divider",20),l.TgZ(16,"div",15),l.TgZ(17,"div",22),l.TgZ(18,"h4",17),l._uU(19,"Payment Hash"),l.qZA(),l.TgZ(20,"span",21),l._uU(21),l.qZA(),l.qZA(),l.qZA(),l._UZ(22,"mat-divider",20),l.TgZ(23,"div",15),l.TgZ(24,"div",22),l.TgZ(25,"h4",17),l._uU(26,"Node Id"),l.qZA(),l.TgZ(27,"span",21),l._uU(28),l.qZA(),l.qZA(),l.qZA(),l._UZ(29,"mat-divider",20),l.qZA()),2&K){const we=l.oxw();l.xp6(7),l.Oqu(l.xi3(8,4,1e3*(null==we.invoice?null:we.invoice.expiresAt),"dd/MMM/y HH:mm")),l.xp6(6),l.Oqu(l.xi3(14,7,1e3*(null==we.invoice?null:we.invoice.receivedAt),"dd/MMM/y HH:mm")),l.xp6(8),l.Oqu(null==we.invoice?null:we.invoice.paymentHash),l.xp6(7),l.Oqu(null==we.invoice?null:we.invoice.nodeId)}}function G(K,Me){1&K&&(l.TgZ(0,"p"),l._uU(1,"Show Advanced"),l.qZA())}function F(K,Me){1&K&&(l.TgZ(0,"p"),l._uU(1,"Hide Advanced"),l.qZA())}function U(K,Me){if(1&K){const we=l.EpF();l.TgZ(0,"button",43),l.NdJ("copied",function(Ge){return l.CHM(we),l.oxw().onCopyPayment(Ge)}),l._uU(1,"Copy Invoice"),l.qZA()}if(2&K){const we=l.oxw();l.Q6J("payload",null==we.invoice?null:we.invoice.serialized)}}function ye(K,Me){if(1&K){const we=l.EpF();l.TgZ(0,"button",44),l.NdJ("click",function(){return l.CHM(we),l.oxw().onClose()}),l._uU(1,"OK"),l.qZA()}}const Ce=function(K){return{"display-none":K}},Be=function(K){return{"xs-scroll-y":K}},ze=function(K,Me){return{"mt-2":K,"mt-1":Me}};let Ie=(()=>{class K{constructor(we,z,Ge,vt,Re,Ne){this.dialogRef=we,this.data=z,this.logger=Ge,this.commonService=vt,this.snackBar=Re,this.store=Ne,this.faReceipt=t.dLy,this.faExclamationTriangle=t.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.cu,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new y.x,new y.x,new y.x,new y.x,new y.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.cu.XS&&(this.qrWidth=220),this.store.select(M.yD).pipe((0,C.R)(this.unSubs[0])).subscribe(we=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(we.version,"0.5.0")}),this.store.select(M.Ef).pipe((0,C.R)(this.unSubs[1])).subscribe(we=>{const z=this.invoice.status;this.invoice=(we.invoices&&we.invoices.length>0?we.invoices:[]).find(vt=>vt.paymentHash===this.invoice.paymentHash),z!==this.invoice.status&&"received"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(we)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(we){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+we)}ngOnDestroy(){this.unSubs.forEach(we=>{we.next(null),we.complete()})}}return K.\u0275fac=function(we){return new(we||K)(l.Y36(e.so),l.Y36(e.WI),l.Y36(N.mQ),l.Y36(s.v),l.Y36(D.ux),l.Y36(A.yh))},K.\u0275cmp=l.Xpm({type:K,selectors:[["rtl-ecl-invoice-information"]],decls:68,vars:42,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",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","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"],["hideAdvancedText",""],["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"],[3,"value","size","errorCorrectionLevel"],[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,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(we,z){if(1&we&&(l.TgZ(0,"div",0),l.TgZ(1,"div",1),l.YNc(2,re,1,3,"qr-code",2),l.YNc(3,de,2,0,"span",3),l.qZA(),l.TgZ(4,"div",4),l.TgZ(5,"mat-card-header",5),l.TgZ(6,"div",6),l._UZ(7,"fa-icon",7),l.TgZ(8,"span",8),l._uU(9),l.qZA(),l.qZA(),l.TgZ(10,"button",9),l.NdJ("click",function(){return z.onClose()}),l._uU(11,"X"),l.qZA(),l.qZA(),l.TgZ(12,"mat-card-content",10),l.TgZ(13,"div",11),l.TgZ(14,"div",12),l.YNc(15,oe,1,3,"qr-code",2),l.YNc(16,ae,2,0,"span",13),l.qZA(),l.YNc(17,b,1,1,"mat-divider",14),l.TgZ(18,"div",15),l.TgZ(19,"div",16),l.TgZ(20,"h4",17),l._uU(21,"Amount Requested"),l.qZA(),l.TgZ(22,"span",18),l._uU(23),l.ALo(24,"number"),l.YNc(25,i,2,0,"ng-container",19),l.qZA(),l.qZA(),l.TgZ(26,"div",16),l.TgZ(27,"h4",17),l._uU(28,"Amount Settled"),l.qZA(),l.TgZ(29,"span",18),l.YNc(30,L,3,2,"ng-container",19),l.YNc(31,r,3,2,"ng-container",19),l.qZA(),l.qZA(),l.qZA(),l._UZ(32,"mat-divider",20),l.TgZ(33,"div",15),l.TgZ(34,"div",16),l.TgZ(35,"h4",17),l._uU(36,"Date Created"),l.qZA(),l.TgZ(37,"span",21),l._uU(38),l.ALo(39,"date"),l.qZA(),l.qZA(),l.TgZ(40,"div",16),l.TgZ(41,"h4",17),l._uU(42,"Status"),l.qZA(),l.TgZ(43,"span",21),l._uU(44),l.ALo(45,"titlecase"),l.qZA(),l.qZA(),l.qZA(),l._UZ(46,"mat-divider",20),l.TgZ(47,"div",15),l.TgZ(48,"div",22),l.TgZ(49,"h4",17),l._uU(50,"Description"),l.qZA(),l.TgZ(51,"span",18),l._uU(52),l.qZA(),l.qZA(),l.qZA(),l._UZ(53,"mat-divider",20),l.TgZ(54,"div",15),l.TgZ(55,"div",22),l.TgZ(56,"h4",17),l._uU(57,"Invoice"),l.qZA(),l.TgZ(58,"span",21),l._uU(59),l.qZA(),l.qZA(),l.qZA(),l.YNc(60,v,30,10,"div",19),l.TgZ(61,"div",23),l.TgZ(62,"button",24),l.NdJ("click",function(){return z.onShowAdvanced()}),l.YNc(63,G,2,0,"p",25),l.YNc(64,F,2,0,"ng-template",null,26,l.W1O),l.qZA(),l.YNc(66,U,2,1,"button",27),l.YNc(67,ye,2,0,"button",28),l.qZA(),l.qZA(),l.qZA(),l.qZA(),l.qZA()),2&we){const Ge=l.MAs(65);l.xp6(1),l.Q6J("fxLayoutAlign",null!=z.invoice&&z.invoice.serialized&&""!==(null==z.invoice?null:z.invoice.serialized)?"center start":"center center")("ngClass",l.VKq(33,Ce,z.screenSize===z.screenSizeEnum.XS||z.screenSize===z.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==z.invoice?null:z.invoice.serialized)&&""!==(null==z.invoice?null:z.invoice.serialized)),l.xp6(1),l.Q6J("ngIf",!(null!=z.invoice&&z.invoice.serialized)||""===(null==z.invoice?null:z.invoice.serialized)),l.xp6(4),l.Q6J("icon",z.faReceipt),l.xp6(2),l.Oqu(z.screenSize===z.screenSizeEnum.XS?z.newlyAdded?"Created":"Invoice":z.newlyAdded?"Invoice Created":"Invoice Information"),l.xp6(3),l.Q6J("ngClass",l.VKq(35,Be,z.screenSize===z.screenSizeEnum.XS)),l.xp6(2),l.Q6J("fxLayoutAlign",null!=z.invoice&&z.invoice.serialized&&""!==(null==z.invoice?null:z.invoice.serialized)?"center start":"center center")("ngClass",l.VKq(37,Ce,z.screenSize!==z.screenSizeEnum.XS&&z.screenSize!==z.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==z.invoice?null:z.invoice.serialized)&&""!==(null==z.invoice?null:z.invoice.serialized)),l.xp6(1),l.Q6J("ngIf",!(null!=z.invoice&&z.invoice.serialized)||""===(null==z.invoice?null:z.invoice.serialized)),l.xp6(1),l.Q6J("ngIf",z.screenSize===z.screenSizeEnum.XS||z.screenSize===z.screenSizeEnum.SM),l.xp6(6),l.hij("",l.lcZ(24,26,(null==z.invoice?null:z.invoice.amount)||0)," Sats"),l.xp6(2),l.Q6J("ngIf",!(null!=z.invoice&&z.invoice.amount)||"0"===(null==z.invoice?null:z.invoice.amount)),l.xp6(5),l.Q6J("ngIf",null==z.invoice?null:z.invoice.amountSettled),l.xp6(1),l.Q6J("ngIf",!(null!=z.invoice&&z.invoice.amountSettled)),l.xp6(7),l.Oqu(l.xi3(39,28,1e3*(null==z.invoice?null:z.invoice.timestamp),"dd/MMM/y HH:mm")),l.xp6(6),l.Oqu(l.lcZ(45,31,null==z.invoice?null:z.invoice.status)),l.xp6(8),l.Oqu((null==z.invoice?null:z.invoice.description)||"-"),l.xp6(7),l.Oqu((null==z.invoice?null:z.invoice.serialized)||"N/A"),l.xp6(1),l.Q6J("ngIf",z.showAdvanced),l.xp6(1),l.Q6J("ngClass",l.WLB(39,ze,!z.showAdvanced,z.showAdvanced)),l.xp6(2),l.Q6J("ngIf",!z.showAdvanced)("ngIfElse",Ge),l.xp6(3),l.Q6J("ngIf",(null==z.invoice?null:z.invoice.serialized)&&""!==(null==z.invoice?null:z.invoice.serialized)),l.xp6(1),l.Q6J("ngIf",!(null!=z.invoice&&z.invoice.serialized)||""===(null==z.invoice?null:z.invoice.serialized))}},directives:[O.xw,O.Wh,O.yH,E.mk,P.oO,E.O5,w.dk,Z.BN,j.lW,w.dn,W.d,ie.uU,E.sg,ee.$g,_e.h,ce.y],pipes:[E.JJ,E.uU,E.rS],styles:[""]}),K})()},6523:(Ve,Q,m)=>{"use strict";m.d(Q,{PC:()=>y,Ll:()=>C,JT:()=>o,sQ:()=>M,CX:()=>l,$W:()=>N,Z8:()=>s,El:()=>D,z:()=>O,EK:()=>E,Rd:()=>P,YP:()=>Z,SN:()=>j,RX:()=>W,Bl:()=>ie,Jl:()=>ee,Rv:()=>_e,ks:()=>ce,UR:()=>re,as:()=>de,Z7:()=>oe,TW:()=>ae,Zh:()=>b,_L:()=>i,pW:()=>a,YX:()=>p,BL:()=>u,OG:()=>_,Vv:()=>L,Cp:()=>I,tb:()=>v,B_:()=>G,vV:()=>F,WM:()=>ye,Nr:()=>Ce,aL:()=>Be,qY:()=>ze,mC:()=>Ie,Lf:()=>K,Ly:()=>Me,UH:()=>we,cQ:()=>z,HI:()=>Ge,oV:()=>vt,dV:()=>Ne,_E:()=>Le,Wi:()=>q,fu:()=>le,y2:()=>Ue,xG:()=>nt,Sf:()=>ft,$A:()=>it,n7:()=>rt,yZ:()=>Mt,u0:()=>Ft,QJ:()=>Vt,WO:()=>Ii,kL:()=>jt,Jo:()=>ei,Fr:()=>Pi});var e=m(5620),t=m(7731);const y=(0,e.PH)(t.uR.UPDATE_API_CALL_STATUS_LND,(0,e.Ky)()),C=(0,e.PH)(t.uR.RESET_LND_STORE,(0,e.Ky)()),o=(0,e.PH)(t.uR.SET_CHILD_NODE_SETTINGS_LND,(0,e.Ky)()),M=(0,e.PH)(t.uR.FETCH_INFO_LND,(0,e.Ky)()),l=(0,e.PH)(t.uR.SET_INFO_LND,(0,e.Ky)()),N=(0,e.PH)(t.uR.FETCH_PEERS_LND),s=(0,e.PH)(t.uR.SET_PEERS_LND,(0,e.Ky)()),D=(0,e.PH)(t.uR.SAVE_NEW_PEER_LND,(0,e.Ky)()),O=((0,e.PH)(t.uR.NEWLY_ADDED_PEER_LND,(0,e.Ky)()),(0,e.PH)(t.uR.DETACH_PEER_LND,(0,e.Ky)())),E=(0,e.PH)(t.uR.REMOVE_PEER_LND,(0,e.Ky)()),P=(0,e.PH)(t.uR.SAVE_NEW_INVOICE_LND,(0,e.Ky)()),Z=((0,e.PH)(t.uR.NEWLY_SAVED_INVOICE_LND,(0,e.Ky)()),(0,e.PH)(t.uR.ADD_INVOICE_LND,(0,e.Ky)())),j=(0,e.PH)(t.uR.FETCH_FEES_LND),W=(0,e.PH)(t.uR.SET_FEES_LND,(0,e.Ky)()),ie=(0,e.PH)(t.uR.FETCH_BLOCKCHAIN_BALANCE_LND),ee=(0,e.PH)(t.uR.SET_BLOCKCHAIN_BALANCE_LND,(0,e.Ky)()),_e=(0,e.PH)(t.uR.FETCH_NETWORK_LND),ce=(0,e.PH)(t.uR.SET_NETWORK_LND,(0,e.Ky)()),re=(0,e.PH)(t.uR.FETCH_CHANNELS_LND),de=(0,e.PH)(t.uR.SET_CHANNELS_LND,(0,e.Ky)()),oe=(0,e.PH)(t.uR.FETCH_PENDING_CHANNELS_LND),ae=(0,e.PH)(t.uR.SET_PENDING_CHANNELS_LND,(0,e.Ky)()),b=(0,e.PH)(t.uR.FETCH_CLOSED_CHANNELS_LND),i=(0,e.PH)(t.uR.SET_CLOSED_CHANNELS_LND,(0,e.Ky)()),a=(0,e.PH)(t.uR.UPDATE_CHANNEL_LND,(0,e.Ky)()),p=(0,e.PH)(t.uR.SAVE_NEW_CHANNEL_LND,(0,e.Ky)()),u=(0,e.PH)(t.uR.CLOSE_CHANNEL_LND,(0,e.Ky)()),_=(0,e.PH)(t.uR.REMOVE_CHANNEL_LND,(0,e.Ky)()),L=(0,e.PH)(t.uR.BACKUP_CHANNELS_LND,(0,e.Ky)()),I=(0,e.PH)(t.uR.VERIFY_CHANNEL_LND,(0,e.Ky)()),v=((0,e.PH)(t.uR.BACKUP_CHANNELS_RES_LND,(0,e.Ky)()),(0,e.PH)(t.uR.VERIFY_CHANNEL_RES_LND,(0,e.Ky)()),(0,e.PH)(t.uR.RESTORE_CHANNELS_LIST_LND)),G=(0,e.PH)(t.uR.SET_RESTORE_CHANNELS_LIST_LND,(0,e.Ky)()),F=(0,e.PH)(t.uR.RESTORE_CHANNELS_LND,(0,e.Ky)()),ye=((0,e.PH)(t.uR.RESTORE_CHANNELS_RES_LND,(0,e.Ky)()),(0,e.PH)(t.uR.FETCH_INVOICES_LND,(0,e.Ky)())),Ce=(0,e.PH)(t.uR.SET_INVOICES_LND,(0,e.Ky)()),Be=(0,e.PH)(t.uR.UPDATE_INVOICE_LND,(0,e.Ky)()),ze=(0,e.PH)(t.uR.UPDATE_PAYMENT_LND,(0,e.Ky)()),Ie=(0,e.PH)(t.uR.FETCH_TRANSACTIONS_LND),K=(0,e.PH)(t.uR.SET_TRANSACTIONS_LND,(0,e.Ky)()),Me=(0,e.PH)(t.uR.FETCH_UTXOS_LND),we=(0,e.PH)(t.uR.SET_UTXOS_LND,(0,e.Ky)()),z=(0,e.PH)(t.uR.FETCH_PAYMENTS_LND,(0,e.Ky)()),Ge=(0,e.PH)(t.uR.SET_PAYMENTS_LND,(0,e.Ky)()),vt=(0,e.PH)(t.uR.SEND_PAYMENT_LND,(0,e.Ky)()),Ne=((0,e.PH)(t.uR.SEND_PAYMENT_STATUS_LND,(0,e.Ky)()),(0,e.PH)(t.uR.FETCH_GRAPH_NODE_LND,(0,e.Ky)())),Le=((0,e.PH)(t.uR.SET_GRAPH_NODE_LND,(0,e.Ky)()),(0,e.PH)(t.uR.GET_NEW_ADDRESS_LND,(0,e.Ky)())),q=((0,e.PH)(t.uR.SET_NEW_ADDRESS_LND,(0,e.Ky)()),(0,e.PH)(t.uR.SET_CHANNEL_TRANSACTION_LND,(0,e.Ky)())),le=((0,e.PH)(t.uR.SET_CHANNEL_TRANSACTION_RES_LND,(0,e.Ky)()),(0,e.PH)(t.uR.GEN_SEED_LND,(0,e.Ky)())),Ue=((0,e.PH)(t.uR.GEN_SEED_RESPONSE_LND,(0,e.Ky)()),(0,e.PH)(t.uR.INIT_WALLET_LND,(0,e.Ky)())),nt=((0,e.PH)(t.uR.INIT_WALLET_RESPONSE_LND,(0,e.Ky)()),(0,e.PH)(t.uR.UNLOCK_WALLET_LND,(0,e.Ky)())),ft=(0,e.PH)(t.uR.PEER_LOOKUP_LND,(0,e.Ky)()),it=(0,e.PH)(t.uR.CHANNEL_LOOKUP_LND,(0,e.Ky)()),rt=(0,e.PH)(t.uR.INVOICE_LOOKUP_LND,(0,e.Ky)()),Mt=(0,e.PH)(t.uR.PAYMENT_LOOKUP_LND,(0,e.Ky)()),Ft=((0,e.PH)(t.uR.SET_LOOKUP_LND,(0,e.Ky)()),(0,e.PH)(t.uR.GET_FORWARDING_HISTORY_LND,(0,e.Ky)())),Vt=(0,e.PH)(t.uR.SET_FORWARDING_HISTORY_LND,(0,e.Ky)()),Ii=(0,e.PH)(t.uR.GET_QUERY_ROUTES_LND,(0,e.Ky)()),jt=(0,e.PH)(t.uR.SET_QUERY_ROUTES_LND,(0,e.Ky)()),ei=(0,e.PH)(t.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),Pi=(0,e.PH)(t.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,(0,e.Ky)())},711:(Ve,Q,m)=>{"use strict";m.d(Q,{l:()=>ae});var e=m(6642),t=m(7579),y=m(9646),C=m(5577),o=m(2722),M=m(4004),l=m(262),N=m(1365),s=m(2340),D=m(8627),A=m(1786),O=m(7731),E=m(7861),P=m(6523),w=m(6529),Z=m(5e3),j=m(8138),W=m(5620),ie=m(5043),ee=m(62),_e=m(5986),ce=m(8966),re=m(1402),de=m(7998),oe=m(9808);let ae=(()=>{class b{constructor(a,p,u,_,L,I,x,r,v,G){this.actions=a,this.httpClient=p,this.store=u,this.logger=_,this.commonService=L,this.sessionService=I,this.dialog=x,this.router=r,this.wsService=v,this.location=G,this.CHILD_API_URL=s.T5+"/lnd",this.flgInitialized=!1,this.unSubs=[new t.x,new t.x],this.infoFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.FETCH_INFO_LND),(0,C.z)(F=>(this.flgInitialized=!1,this.store.dispatch((0,E.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.ac)({payload:O.m6.GET_NODE_INFO})),this.store.dispatch((0,P.PC)({payload:{action:"FetchInfo",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.GETINFO_API).pipe((0,o.R)(this.actions.pipe((0,e.l4)(O.pg.SET_SELECTED_NODE))),(0,M.U)(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.toLowerCase().indexOf("bitcoin")<0)?(this.store.dispatch((0,P.PC)({payload:{action:"FetchInfo",status:O.Bn.COMPLETED}})),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.qR)({payload:{data:{type:O.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:O.pg.LOGOUT}):U.identity_pubkey?(U.lnImplementation="LND",this.initializeRemainingData(U,F.payload.loadPage),this.store.dispatch((0,P.PC)({payload:{action:"FetchInfo",status:O.Bn.COMPLETED}})),this.store.dispatch((0,E.ts)()),{type:O.uR.SET_INFO_LND,payload:U||{}}):(this.store.dispatch((0,P.PC)({payload:{action:"FetchInfo",status:O.Bn.COMPLETED}})),this.store.dispatch((0,E.ts)()),this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),{type:O.uR.SET_INFO_LND,payload:{}}))),(0,l.K)(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",O.m6.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,P.sQ)({payload:{loadPage:"HOME"}}))},2e3);else{const ye=this.commonService.extractErrorCode(U),Ce=503===ye?"Unable to Connect to LND Server.":this.commonService.extractErrorMessage(U);this.router.navigate(["/error"],{state:{errorCode:ye,errorMessage:Ce}}),this.handleErrorWithoutAlert("FetchInfo",O.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:ye,error:Ce})}return(0,y.of)({type:O.pg.VOID})})))))),this.peersFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.FETCH_PEERS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchPeers",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.PEERS_API).pipe((0,M.U)(F=>(this.logger.info(F),this.store.dispatch((0,P.PC)({payload:{action:"FetchPeers",status:O.Bn.COMPLETED}})),{type:O.uR.SET_PEERS_LND,payload:F||[]})),(0,l.K)(F=>(this.handleErrorWithoutAlert("FetchPeers",O.m6.NO_SPINNER,"Fetching Peers Failed.",F),(0,y.of)({type:O.pg.VOID})))))))),this.saveNewPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.SAVE_NEW_PEER_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:O.m6.CONNECT_PEER})),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewPeer",status:O.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.PEERS_API,{pubkey:F.payload.pubkey,host:F.payload.host,perm:F.payload.perm}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewPeer",status:O.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:O.m6.CONNECT_PEER})),this.store.dispatch((0,P.Z8)({payload:U||[]})),{type:O.uR.NEWLY_ADDED_PEER_LND,payload:{peer:U[0]}})),(0,l.K)(U=>(this.handleErrorWithoutAlert("SaveNewPeer",O.m6.CONNECT_PEER,"Peer Connection Failed.",U),(0,y.of)({type:O.pg.VOID})))))))),this.detachPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.DETACH_PEER_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:O.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+s.NZ.PEERS_API+"/"+F.payload.pubkey).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:O.m6.DISCONNECT_PEER})),this.store.dispatch((0,E.jW)({payload:"Peer Disconnected Successfully."})),{type:O.uR.REMOVE_PEER_LND,payload:{pubkey:F.payload.pubkey}})),(0,l.K)(U=>(this.handleErrorWithAlert("DetachPeer",O.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+s.NZ.PEERS_API+"/"+F.payload.pubkey,U),(0,y.of)({type:O.pg.VOID})))))))),this.saveNewInvoice=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.SAVE_NEW_INVOICE_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:F.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewInvoice",status:O.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.INVOICES_API,{memo:F.payload.memo,amount:F.payload.invoiceValue,private:F.payload.private,expiry:F.payload.expiry}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewInvoice",status:O.Bn.COMPLETED}})),this.store.dispatch((0,P.WM)({payload:{num_max_invoices:F.payload.pageSize,reversed:!0}})),F.payload.openModal?(U.memo=F.payload.memo,U.value=F.payload.invoiceValue,U.expiry=F.payload.expiry,U.cltv_expiry="144",U.private=F.payload.private,U.creation_date=Math.round((new Date).getTime()/1e3).toString(),setTimeout(()=>{this.store.dispatch((0,E.qR)({payload:{data:{invoice:U,newlyAdded:!0,component:D.v}}}))},100),{type:O.pg.CLOSE_SPINNER,payload:F.payload.uiMessage}):{type:O.uR.NEWLY_SAVED_INVOICE_LND,payload:{paymentRequest:U.payment_request}})),(0,l.K)(U=>(this.handleErrorWithoutAlert("SaveNewInvoice",F.payload.uiMessage,"Add Invoice Failed.",U),(0,y.of)({type:O.pg.VOID})))))))),this.openNewChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.SAVE_NEW_CHANNEL_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:O.m6.OPEN_CHANNEL})),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewChannel",status:O.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.CHANNELS_API,{node_pubkey:F.payload.selectedPeerPubkey,local_funding_amount:F.payload.fundingAmount,private:F.payload.private,trans_type:F.payload.transType,trans_type_value:F.payload.transTypeValue,spend_unconfirmed:F.payload.spendUnconfirmed}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.PC)({payload:{action:"SaveNewChannel",status:O.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:O.m6.OPEN_CHANNEL})),this.store.dispatch((0,P.Bl)()),this.store.dispatch((0,P.UR)()),this.store.dispatch((0,P.Vv)({payload:{uiMessage:O.m6.NO_SPINNER,channelPoint:"ALL",showMessage:"Channel Added Successfully!"}})),{type:O.uR.FETCH_PENDING_CHANNELS_LND})),(0,l.K)(U=>(this.handleErrorWithoutAlert("SaveNewChannel",O.m6.OPEN_CHANNEL,"Opening Channel Failed.",U),(0,y.of)({type:O.pg.VOID})))))))),this.updateChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.UPDATE_CHANNEL_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:O.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/chanPolicy",{baseFeeMsat:F.payload.baseFeeMsat,feeRate:F.payload.feeRate,timeLockDelta:F.payload.timeLockDelta,chanPoint:F.payload.chanPoint}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:O.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,E.jW)("all"===F.payload.chanPoint?{payload:"All Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:O.uR.FETCH_CHANNELS_LND})),(0,l.K)(U=>(this.handleErrorWithAlert("UpdateChannels",O.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+s.NZ.CHANNELS_API+"/chanPolicy",U),(0,y.of)({type:O.pg.VOID})))))))),this.closeChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.CLOSE_CHANNEL_LND),(0,C.z)(F=>{this.store.dispatch((0,E.ac)({payload:F.payload.forcibly?O.m6.FORCE_CLOSE_CHANNEL:O.m6.CLOSE_CHANNEL}));let U=this.CHILD_API_URL+s.NZ.CHANNELS_API+"/"+F.payload.channelPoint+"?force="+F.payload.forcibly;return F.payload.targetConf&&(U=U+"&target_conf="+F.payload.targetConf),F.payload.satPerByte&&(U=U+"&sat_per_byte="+F.payload.satPerByte),this.httpClient.delete(U).pipe((0,M.U)(ye=>(this.logger.info(ye),this.store.dispatch((0,E.uO)({payload:F.payload.forcibly?O.m6.FORCE_CLOSE_CHANNEL:O.m6.CLOSE_CHANNEL})),this.store.dispatch((0,P.UR)()),this.store.dispatch((0,P.Z7)()),this.store.dispatch((0,P.Vv)({payload:{uiMessage:O.m6.NO_SPINNER,channelPoint:"ALL",showMessage:ye.message}})),{type:O.pg.VOID})),(0,l.K)(ye=>(this.handleErrorWithAlert("CloseChannel",F.payload.forcibly?O.m6.FORCE_CLOSE_CHANNEL:O.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+s.NZ.CHANNELS_API+"/"+F.payload.channelPoint+"?force="+F.payload.forcibly,ye),(0,y.of)({type:O.pg.VOID}))))}))),this.backupChannels=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.BACKUP_CHANNELS_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:F.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"BackupChannels",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/"+F.payload.channelPoint).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.PC)({payload:{action:"BackupChannels",status:O.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:F.payload.uiMessage})),this.store.dispatch((0,E.jW)({payload:F.payload.showMessage+" "+U.message})),{type:O.uR.BACKUP_CHANNELS_RES_LND,payload:U.message})),(0,l.K)(U=>(this.handleErrorWithAlert("BackupChannels",F.payload.uiMessage,F.payload.showMessage+" Unable to Backup Channel. Try again later.",this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/"+F.payload.channelPoint,U),(0,y.of)({type:O.pg.VOID})))))))),this.verifyChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.VERIFY_CHANNEL_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:O.m6.VERIFY_CHANNEL})),this.store.dispatch((0,P.PC)({payload:{action:"VerifyChannel",status:O.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/verify/"+F.payload.channelPoint,{}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.PC)({payload:{action:"VerifyChannel",status:O.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:O.m6.VERIFY_CHANNEL})),this.store.dispatch((0,E.jW)({payload:U.message})),{type:O.uR.VERIFY_CHANNEL_RES_LND,payload:U.message})),(0,l.K)(U=>(this.handleErrorWithAlert("VerifyChannel",O.m6.VERIFY_CHANNEL,"Unable to Verify Channel. Try again later.",this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/verify/"+F.payload.channelPoint,U),(0,y.of)({type:O.pg.VOID})))))))),this.restoreChannels=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.RESTORE_CHANNELS_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:O.m6.RESTORE_CHANNEL})),this.store.dispatch((0,P.PC)({payload:{action:"RestoreChannels",status:O.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/restore/"+F.payload.channelPoint,{}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.PC)({payload:{action:"RestoreChannels",status:O.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:O.m6.RESTORE_CHANNEL})),this.store.dispatch((0,E.jW)({payload:U.message})),this.store.dispatch((0,P.B_)({payload:U.list})),{type:O.uR.RESTORE_CHANNELS_RES_LND,payload:U.message})),(0,l.K)(U=>(this.handleErrorWithAlert("RestoreChannels",O.m6.RESTORE_CHANNEL,"Unable to Restore Channel. Try again later.",this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/restore/"+F.payload.channelPoint,U),(0,y.of)({type:O.pg.VOID})))))))),this.fetchFees=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.FETCH_FEES_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchFees",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.FEES_API))),(0,M.U)(F=>(this.logger.info(F),this.store.dispatch((0,P.PC)({payload:{action:"FetchFees",status:O.Bn.COMPLETED}})),F.forwarding_events_history&&(this.store.dispatch((0,P.QJ)({payload:F.forwarding_events_history})),delete F.forwarding_events_history),{type:O.uR.SET_FEES_LND,payload:F||{}})),(0,l.K)(F=>(this.handleErrorWithoutAlert("FetchFees",O.m6.NO_SPINNER,"Fetching Fees Failed.",F),(0,y.of)({type:O.pg.VOID}))))),this.balanceBlockchainFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.FETCH_BLOCKCHAIN_BALANCE_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchBalance",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.BALANCE_API))),(0,M.U)(F=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchBalance",status:O.Bn.COMPLETED}})),this.logger.info(F),{type:O.uR.SET_BLOCKCHAIN_BALANCE_LND,payload:F||{total_balance:""}})),(0,l.K)(F=>(this.handleErrorWithoutAlert("FetchBalance",O.m6.NO_SPINNER,"Fetching Blockchain Balance Failed.",F),(0,y.of)({type:O.pg.VOID}))))),this.networkInfoFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.FETCH_NETWORK_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchNetwork",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/info"))),(0,M.U)(F=>(this.logger.info(F),this.store.dispatch((0,P.PC)({payload:{action:"FetchNetwork",status:O.Bn.COMPLETED}})),{type:O.uR.SET_NETWORK_LND,payload:F||{}})),(0,l.K)(F=>(this.handleErrorWithoutAlert("FetchNetwork",O.m6.NO_SPINNER,"Fetching Network Failed.",F),(0,y.of)({type:O.pg.VOID}))))),this.channelsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.FETCH_CHANNELS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchChannels",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_API).pipe((0,M.U)(F=>(this.logger.info(F),this.store.dispatch((0,P.PC)({payload:{action:"FetchChannels",status:O.Bn.COMPLETED}})),{type:O.uR.SET_CHANNELS_LND,payload:F.channels||[]})),(0,l.K)(F=>(this.handleErrorWithoutAlert("FetchChannels",O.m6.NO_SPINNER,"Fetching Channels Failed.",F),(0,y.of)({type:O.pg.VOID})))))))),this.channelsPendingFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.FETCH_PENDING_CHANNELS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchPendingChannels",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/pending").pipe((0,M.U)(F=>{this.logger.info(F),this.store.dispatch((0,P.PC)({payload:{action:"FetchPendingChannels",status:O.Bn.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 F&&(U.total_limbo_balance=F.total_limbo_balance,F.pending_closing_channels&&(U.closing.num_channels=F.pending_closing_channels.length,U.total_channels=U.total_channels+F.pending_closing_channels.length,F.pending_closing_channels.forEach(ye=>{U.closing.limbo_balance=+U.closing.limbo_balance+(ye.channel.local_balance?+ye.channel.local_balance:0)})),F.pending_force_closing_channels&&(U.force_closing.num_channels=F.pending_force_closing_channels.length,U.total_channels=U.total_channels+F.pending_force_closing_channels.length,F.pending_force_closing_channels.forEach(ye=>{U.force_closing.limbo_balance=+U.force_closing.limbo_balance+(ye.channel.local_balance?+ye.channel.local_balance:0)})),F.pending_open_channels&&(U.open.num_channels=F.pending_open_channels.length,U.total_channels=U.total_channels+F.pending_open_channels.length,F.pending_open_channels.forEach(ye=>{U.open.limbo_balance=+U.open.limbo_balance+(ye.channel.local_balance?+ye.channel.local_balance:0)})),F.waiting_close_channels&&(U.waiting_close.num_channels=F.waiting_close_channels.length,U.total_channels=U.total_channels+F.waiting_close_channels.length,F.waiting_close_channels.forEach(ye=>{U.waiting_close.limbo_balance=+U.waiting_close.limbo_balance+(ye.channel.local_balance?+ye.channel.local_balance:0)}))),{type:O.uR.SET_PENDING_CHANNELS_LND,payload:F?{pendingChannels:F,pendingChannelsSummary:U}:{pendingChannels:{},pendingChannelsSummary:U}}}),(0,l.K)(F=>(this.handleErrorWithoutAlert("FetchPendingChannels",O.m6.NO_SPINNER,"Fetching Pending Channels Failed.",F),(0,y.of)({type:O.pg.VOID})))))))),this.channelsClosedFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.FETCH_CLOSED_CHANNELS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchClosedChannels",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/closed").pipe((0,M.U)(F=>(this.logger.info(F),this.store.dispatch((0,P.PC)({payload:{action:"FetchClosedChannels",status:O.Bn.COMPLETED}})),{type:O.uR.SET_CLOSED_CHANNELS_LND,payload:F.channels||[]})),(0,l.K)(F=>(this.handleErrorWithoutAlert("FetchClosedChannels",O.m6.NO_SPINNER,"Fetching Closed Channels Failed.",F),(0,y.of)({type:O.pg.VOID})))))))),this.invoicesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.FETCH_INVOICES_LND),(0,C.z)(F=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchInvoices",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.INVOICES_API+"?num_max_invoices="+(F.payload.num_max_invoices?F.payload.num_max_invoices:100)+"&index_offset="+(F.payload.index_offset?F.payload.index_offset:0)+"&reversed="+(!!F.payload.reversed&&F.payload.reversed)).pipe((0,M.U)(Be=>(this.logger.info(Be),this.store.dispatch((0,P.PC)({payload:{action:"FetchInvoices",status:O.Bn.COMPLETED}})),F.payload.reversed&&!F.payload.index_offset&&(Be.total_invoices=+Be.last_index_offset),{type:O.uR.SET_INVOICES_LND,payload:Be})),(0,l.K)(Be=>(this.handleErrorWithoutAlert("FetchInvoices",O.m6.NO_SPINNER,"Fetching Invoices Failed.",Be),(0,y.of)({type:O.pg.VOID})))))))),this.transactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.FETCH_TRANSACTIONS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchTransactions",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.TRANSACTIONS_API))),(0,M.U)(F=>(this.logger.info(F),this.store.dispatch((0,P.PC)({payload:{action:"FetchTransactions",status:O.Bn.COMPLETED}})),{type:O.uR.SET_TRANSACTIONS_LND,payload:F||[]})),(0,l.K)(F=>(this.handleErrorWithoutAlert("FetchTransactions",O.m6.NO_SPINNER,"Fetching Transactions Failed.",F),(0,y.of)({type:O.pg.VOID}))))),this.utxosFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.FETCH_UTXOS_LND),(0,N.M)(this.store.select(w.Q5)),(0,C.z)(([F,U])=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchUTXOs",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.WALLET_API+"/getUTXOs?max_confs="+(U&&U.block_height?U.block_height:1e9)))),(0,M.U)(F=>(this.logger.info(F),this.store.dispatch((0,P.PC)({payload:{action:"FetchUTXOs",status:O.Bn.COMPLETED}})),{type:O.uR.SET_UTXOS_LND,payload:F||[]})),(0,l.K)(F=>(this.handleErrorWithoutAlert("FetchUTXOs",O.m6.NO_SPINNER,"Fetching UTXOs Failed.",F),(0,y.of)({type:O.pg.VOID}))))),this.paymentsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.FETCH_PAYMENTS_LND),(0,C.z)(F=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchPayments",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.PAYMENTS_API+"?max_payments="+(F.payload.max_payments?F.payload.max_payments:100)+"&index_offset="+(F.payload.index_offset?F.payload.index_offset:0)+"&reversed="+(!!F.payload.reversed&&F.payload.reversed)).pipe((0,M.U)(Be=>(this.logger.info(Be),this.store.dispatch((0,P.PC)({payload:{action:"FetchPayments",status:O.Bn.COMPLETED}})),{type:O.uR.SET_PAYMENTS_LND,payload:Be})),(0,l.K)(Be=>(this.handleErrorWithoutAlert("FetchPayments",O.m6.NO_SPINNER,"Fetching Payments Failed.",Be),(0,y.of)({type:O.uR.SET_PAYMENTS_LND,payload:{payments:[]}})))))))),this.sendPayment=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.SEND_PAYMENT_LND),(0,C.z)(F=>{this.store.dispatch((0,E.ac)({payload:F.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"SendPayment",status:O.Bn.INITIATED}}));const U={};return U.paymentReq=F.payload.paymentReq,F.payload.paymentAmount&&(U.paymentAmount=F.payload.paymentAmount),F.payload.outgoingChannel&&(U.outgoingChannel=F.payload.outgoingChannel.chan_id),F.payload.allowSelfPayment&&(U.allowSelfPayment=F.payload.allowSelfPayment),F.payload.lastHopPubkey&&(U.lastHopPubkey=F.payload.lastHopPubkey),F.payload.feeLimitType&&F.payload.feeLimitType!==O.Vc[0].id&&(U.feeLimit={},U.feeLimit[F.payload.feeLimitType]=F.payload.feeLimit),this.httpClient.post(this.CHILD_API_URL+s.NZ.CHANNELS_API+"/transactions",U).pipe((0,M.U)(ye=>{if(this.logger.info(ye),this.store.dispatch((0,E.uO)({payload:F.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"SendPayment",status:O.Bn.COMPLETED}})),ye.payment_error)return F.payload.allowSelfPayment?(this.store.dispatch((0,P.WM)({payload:{num_max_invoices:O.IV,reversed:!0}})),{type:O.uR.SEND_PAYMENT_STATUS_LND,payload:ye}):(F.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",F.payload.uiMessage,"Send Payment Failed.",ye.payment_error):this.handleErrorWithAlert("SendPayment",F.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+s.NZ.CHANNELS_API+"/transactions",ye.payment_error),{type:O.pg.VOID});if(this.store.dispatch((0,E.uO)({payload:F.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"SendPayment",status:O.Bn.COMPLETED}})),this.store.dispatch((0,P.UR)()),this.store.dispatch((0,P.cQ)({payload:{max_payments:O.IV,reversed:!0}})),F.payload.allowSelfPayment)this.store.dispatch((0,P.WM)({payload:{num_max_invoices:O.IV,reversed:!0}}));else{let Ce="Payment Sent Successfully.";ye.payment_route&&ye.payment_route.total_fees_msat&&(Ce="Payment sent successfully with the total fee "+ye.payment_route.total_fees_msat+" (mSats)."),this.store.dispatch((0,E.jW)({payload:Ce}))}return{type:O.uR.SEND_PAYMENT_STATUS_LND,payload:ye}}),(0,l.K)(ye=>(this.logger.error("Error: "+JSON.stringify(ye)),F.payload.allowSelfPayment?(this.handleErrorWithoutAlert("SendPayment",F.payload.uiMessage,"Send Payment Failed.",ye),this.store.dispatch((0,P.WM)({payload:{num_max_invoices:O.IV,reversed:!0}})),(0,y.of)({type:O.uR.SEND_PAYMENT_STATUS_LND,payload:{error:this.commonService.extractErrorMessage(ye)}})):(F.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",F.payload.uiMessage,"Send Payment Failed.",ye):this.handleErrorWithAlert("SendPayment",F.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+s.NZ.CHANNELS_API+"/transactions",ye),(0,y.of)({type:O.pg.VOID})))))}))),this.graphNodeFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.FETCH_GRAPH_NODE_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:O.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,P.PC)({payload:{action:"FetchGraphNode",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/node/"+F.payload.pubkey).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:O.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,P.PC)({payload:{action:"FetchGraphNode",status:O.Bn.COMPLETED}})),{type:O.uR.SET_GRAPH_NODE_LND,payload:U&&U.node?{node:U.node}:{node:null}})),(0,l.K)(U=>(this.handleErrorWithoutAlert("FetchGraphNode",O.m6.GET_NODE_ADDRESS,"Fetching Graph Node Failed.",U),(0,y.of)({type:O.pg.VOID})))))))),this.setGraphNode=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.SET_GRAPH_NODE_LND),(0,M.U)(F=>(this.logger.info(F.payload),F.payload))),{dispatch:!1}),this.getNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.GET_NEW_ADDRESS_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:O.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NEW_ADDRESS_API+"?type="+F.payload.addressId).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:O.m6.GENERATE_NEW_ADDRESS})),{type:O.uR.SET_NEW_ADDRESS_LND,payload:U&&U.address?U.address:{}})),(0,l.K)(U=>(this.handleErrorWithAlert("GetNewAddress",O.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+s.NZ.NEW_ADDRESS_API+"?type="+F.payload.addressId,U),(0,y.of)({type:O.pg.VOID})))))))),this.setNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.SET_NEW_ADDRESS_LND),(0,M.U)(F=>(this.logger.info(F.payload),F.payload))),{dispatch:!1}),this.SetChannelTransaction=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.SET_CHANNEL_TRANSACTION_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:O.m6.SEND_FUNDS})),this.store.dispatch((0,P.PC)({payload:{action:"SetChannelTransaction",status:O.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.TRANSACTIONS_API,{amount:F.payload.amount,address:F.payload.address,sendAll:F.payload.sendAll,fees:F.payload.fees,blocks:F.payload.blocks}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,P.PC)({payload:{action:"SetChannelTransaction",status:O.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:O.m6.SEND_FUNDS})),this.store.dispatch((0,P.mC)()),this.store.dispatch((0,P.Bl)()),this.store.dispatch((0,P.UR)()),{type:O.uR.SET_CHANNEL_TRANSACTION_RES_LND,payload:U})),(0,l.K)(U=>(this.handleErrorWithoutAlert("SetChannelTransaction",O.m6.SEND_FUNDS,"Sending Fund Failed.",U),(0,y.of)({type:O.pg.VOID})))))))),this.fetchForwardingHistory=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.GET_FORWARDING_HISTORY_LND),(0,C.z)(F=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchForwardingHistory",status:O.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+s.NZ.SWITCH_API,{num_max_events:F.payload.num_max_events,index_offset:F.payload.index_offset,end_time:F.payload.end_time,start_time:F.payload.start_time}).pipe((0,M.U)(ye=>(this.logger.info(ye),this.store.dispatch((0,P.PC)({payload:{action:"FetchForwardingHistory",status:O.Bn.COMPLETED}})),{type:O.uR.SET_FORWARDING_HISTORY_LND,payload:ye})),(0,l.K)(ye=>(this.handleErrorWithAlert("FetchForwardingHistory",O.m6.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+s.NZ.SWITCH_API,ye),(0,y.of)({type:O.pg.VOID})))))))),this.queryRoutesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.GET_QUERY_ROUTES_LND),(0,C.z)(F=>{let U=this.CHILD_API_URL+s.NZ.NETWORK_API+"/routes/"+F.payload.destPubkey+"/"+F.payload.amount;return F.payload.outgoingChanId&&(U=U+"?outgoing_chan_id="+F.payload.outgoingChanId),this.httpClient.get(U).pipe((0,M.U)(ye=>(this.logger.info(ye),{type:O.uR.SET_QUERY_ROUTES_LND,payload:ye})),(0,l.K)(ye=>(this.store.dispatch((0,P.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",O.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+s.NZ.NETWORK_API,ye),(0,y.of)({type:O.pg.VOID}))))}))),this.setQueryRoutes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.SET_QUERY_ROUTES_LND),(0,M.U)(F=>F.payload)),{dispatch:!1}),this.genSeed=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.GEN_SEED_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:O.m6.GEN_SEED})),this.httpClient.get(this.CHILD_API_URL+s.NZ.WALLET_API+"/genseed/"+F.payload).pipe((0,M.U)(U=>(this.logger.info("Generated GenSeed!"),this.logger.info(U),this.store.dispatch((0,E.uO)({payload:O.m6.GEN_SEED})),{type:O.uR.GEN_SEED_RESPONSE_LND,payload:U.cipher_seed_mnemonic})),(0,l.K)(U=>(this.handleErrorWithAlert("GenSeed",O.m6.GEN_SEED,"Genseed Generation Failed",this.CHILD_API_URL+s.NZ.WALLET_API+"/genseed/"+F.payload,U),(0,y.of)({type:O.pg.VOID})))))))),this.updateSelNodeOptions=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.pg.UPDATE_SELECTED_NODE_OPTIONS),(0,C.z)(()=>this.httpClient.get(this.CHILD_API_URL+s.NZ.WALLET_API+"/updateSelNodeOptions").pipe((0,M.U)(F=>(this.logger.info("Update Sel Node Successfull"),this.logger.info(F),{type:O.pg.VOID})),(0,l.K)(F=>(this.handleErrorWithAlert("UpdateSelectedNodeOptions",O.m6.NO_SPINNER,"Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",F),(0,y.of)({type:O.pg.VOID}))))))),this.genSeedResponse=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.GEN_SEED_RESPONSE_LND),(0,M.U)(F=>F.payload)),{dispatch:!1}),this.initWalletRes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.INIT_WALLET_RESPONSE_LND),(0,M.U)(F=>F.payload)),{dispatch:!1}),this.initWallet=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.INIT_WALLET_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:O.m6.INITIALIZE_WALLET})),this.httpClient.post(this.CHILD_API_URL+s.NZ.WALLET_API+"/wallet/initwallet",{wallet_password:F.payload.pwd,cipher_seed_mnemonic:F.payload.cipher?F.payload.cipher:"",aezeed_passphrase:F.payload.passphrase?F.payload.passphrase:""}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:O.m6.INITIALIZE_WALLET})),{type:O.uR.INIT_WALLET_RESPONSE_LND,payload:U})),(0,l.K)(U=>(this.handleErrorWithAlert("InitWallet",O.m6.INITIALIZE_WALLET,"Wallet Initialization Failed",this.CHILD_API_URL+s.NZ.WALLET_API+"/initwallet",U),(0,y.of)({type:O.pg.VOID})))))))),this.unlockWallet=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.UNLOCK_WALLET_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:O.m6.UNLOCK_WALLET})),this.httpClient.post(this.CHILD_API_URL+s.NZ.WALLET_API+"/wallet/unlockwallet",{wallet_password:F.payload.pwd}).pipe((0,M.U)(U=>(this.logger.info(U),this.logger.info("Successfully Unlocked!"),this.sessionService.setItem("lndUnlocked","true"),this.store.dispatch((0,E.uO)({payload:O.m6.UNLOCK_WALLET})),this.store.dispatch((0,E.ac)({payload:O.m6.WAIT_SYNC_NODE})),setTimeout(()=>{this.store.dispatch((0,E.uO)({payload:O.m6.WAIT_SYNC_NODE})),this.store.dispatch((0,P.sQ)({payload:{loadPage:"HOME"}}))},5e3),{type:O.pg.VOID})),(0,l.K)(U=>(this.handleErrorWithAlert("UnlockWallet",O.m6.UNLOCK_WALLET,"Unlock Wallet Failed",this.CHILD_API_URL+s.NZ.WALLET_API+"/unlockwallet",U),(0,y.of)({type:O.pg.VOID}))))))),{dispatch:!1}),this.peerLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.PEER_LOOKUP_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:O.m6.SEARCHING_NODE})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/node/"+F.payload).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:O.m6.SEARCHING_NODE})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:O.Bn.COMPLETED}})),{type:O.uR.SET_LOOKUP_LND,payload:U})),(0,l.K)(U=>(this.handleErrorWithAlert("Lookup",O.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+s.NZ.NETWORK_API+"/node/"+F.payload,U),(0,y.of)({type:O.pg.VOID})))))))),this.channelLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.CHANNEL_LOOKUP_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:F.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.NETWORK_API+"/edge/"+F.payload.channelID).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:F.payload.uiMessage})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:O.Bn.COMPLETED}})),{type:O.uR.SET_LOOKUP_LND,payload:U})),(0,l.K)(U=>(this.handleErrorWithAlert("Lookup",F.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+s.NZ.NETWORK_API+"/edge/"+F.payload.channelID,U),(0,y.of)({type:O.pg.VOID})))))))),this.invoiceLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.INVOICE_LOOKUP_LND),(0,C.z)(F=>{this.store.dispatch((0,E.ac)({payload:O.m6.SEARCHING_INVOICE})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:O.Bn.INITIATED}}));let U=this.CHILD_API_URL+s.NZ.INVOICES_API+"/lookup";return U=F.payload.paymentAddress&&""!==F.payload.paymentAddress?U+"?payment_addr="+F.payload.paymentAddress:U+"?payment_hash="+F.payload.paymentHash,this.httpClient.get(U).pipe((0,M.U)(ye=>(this.logger.info(ye),this.store.dispatch((0,E.uO)({payload:O.m6.SEARCHING_INVOICE})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:O.Bn.COMPLETED}})),this.store.dispatch((0,P.aL)({payload:ye})),{type:O.uR.SET_LOOKUP_LND,payload:ye})),(0,l.K)(ye=>(this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:O.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",O.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",ye),F.payload.openSnackBar&&this.store.dispatch((0,E.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,y.of)({type:O.uR.SET_LOOKUP_LND,payload:{error:ye}}))))}))),this.paymentLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.PAYMENT_LOOKUP_LND),(0,C.z)(F=>(this.store.dispatch((0,E.ac)({payload:O.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.PAYMENTS_API+"/lookup/"+F.payload).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:O.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:O.Bn.COMPLETED}})),this.store.dispatch((0,P.qY)({payload:U})),{type:O.uR.SET_LOOKUP_LND,payload:U})),(0,l.K)(U=>(this.store.dispatch((0,P.PC)({payload:{action:"Lookup",status:O.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",O.m6.SEARCHING_PAYMENT,"Payment Lookup Failed",U),(0,y.of)({type:O.uR.SET_LOOKUP_LND,payload:{error:U}})))))))),this.setLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.SET_LOOKUP_LND),(0,M.U)(F=>(this.logger.info(F.payload),F.payload))),{dispatch:!1}),this.getRestoreChannelList=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.RESTORE_CHANNELS_LIST_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"RestoreChannelsList",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API+"/restore/list").pipe((0,M.U)(F=>(this.logger.info(F),this.store.dispatch((0,P.PC)({payload:{action:"RestoreChannelsList",status:O.Bn.COMPLETED}})),{type:O.uR.SET_RESTORE_CHANNELS_LIST_LND,payload:F||{all_restore_exists:!1,files:[]}})),(0,l.K)(F=>(this.handleErrorWithAlert("RestoreChannelsList",O.m6.NO_SPINNER,"Restore Channels List Failed",this.CHILD_API_URL+s.NZ.CHANNELS_BACKUP_API,F),(0,y.of)({type:O.pg.VOID})))))))),this.setRestoreChannelList=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.SET_RESTORE_CHANNELS_LIST_LND),(0,M.U)(F=>(this.logger.info(F.payload),F.payload))),{dispatch:!1}),this.allLightningTransactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),(0,C.z)(()=>(this.store.dispatch((0,P.PC)({payload:{action:"FetchLightningTransactions",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+s.NZ.PAYMENTS_API+"/alltransactions").pipe((0,M.U)(F=>(this.logger.info(F),this.store.dispatch((0,P.PC)({payload:{action:"FetchLightningTransactions",status:O.Bn.COMPLETED}})),{type:O.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,payload:F})),(0,l.K)(F=>(this.handleErrorWithoutAlert("FetchLightningTransactions",O.m6.NO_SPINNER,"Fetching All Lightning Transaction Failed.",F),(0,y.of)({type:O.pg.VOID})))))))),this.store.select(w.yA).pipe((0,o.R)(this.unSubs[0])).subscribe(F=>{F.FetchInfo.status!==O.Bn.COMPLETED&&F.FetchInfo.status!==O.Bn.ERROR||F.FetchFees.status!==O.Bn.COMPLETED&&F.FetchFees.status!==O.Bn.ERROR||F.FetchBalanceBlockchain.status!==O.Bn.COMPLETED&&F.FetchBalanceBlockchain.status!==O.Bn.ERROR||F.FetchAllChannels.status!==O.Bn.COMPLETED&&F.FetchAllChannels.status!==O.Bn.ERROR||F.FetchPendingChannels.status!==O.Bn.COMPLETED&&F.FetchPendingChannels.status!==O.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,E.uO)({payload:O.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.lndWSMessages.pipe((0,o.R)(this.unSubs[1])).subscribe(F=>{this.logger.info("Received new message from the service: "+JSON.stringify(F)),F&&(F.type===O.g8.INVOICE?(this.logger.info(F),F&&F.result&&F.result.payment_request&&this.store.dispatch((0,P.aL)({payload:F.result}))):this.logger.info("Received Event from WS: "+JSON.stringify(F)))})}initializeRemainingData(a,p){this.sessionService.setItem("lndUnlocked","true");const u={identity_pubkey:a.identity_pubkey,alias:a.alias,testnet:a.testnet,chains:a.chains,uris:a.uris,version:a.version?a.version.split(" ")[0]:""};this.store.dispatch((0,E.ac)({payload:O.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,E._V)({payload:u}));let _=this.location.path();_.includes("/cln/")?_=_.replace("/cln/","/lnd/"):_.includes("/ecl/")&&(_=_.replace("/ecl/","/lnd/")),(_.includes("/unlock")||_.includes("/login")||_.includes("/error")||""===_||"HOME"===p||_.includes("?access-key="))&&(_="/lnd/home"),this.router.navigate([_]),this.store.dispatch((0,P.Bl)()),this.store.dispatch((0,P.UR)()),this.store.dispatch((0,P.Z7)()),this.store.dispatch((0,P.Zh)()),this.store.dispatch((0,P.$W)()),this.store.dispatch((0,P.Rv)()),this.store.dispatch((0,P.SN)()),this.store.dispatch((0,P.WM)({payload:{num_max_invoices:10,reversed:!0}})),this.store.dispatch((0,P.cQ)({payload:{max_payments:1e5,reversed:!0}}))}handleErrorWithoutAlert(a,p,u,_){this.logger.error("ERROR IN: "+a+"\n"+JSON.stringify(_)),401===_.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,E.uO)({payload:p})),this.store.dispatch((0,P.PC)({payload:{action:a,status:O.Bn.ERROR,statusCode:_.status.toString(),message:this.commonService.extractErrorMessage(_,u)}})))}handleErrorWithAlert(a,p,u,_,L){if(this.logger.error(L),401===L.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,E.uO)({payload:p}));const I=this.commonService.extractErrorMessage(L);this.store.dispatch((0,E.qR)({payload:{data:{type:"ERROR",alertTitle:u,message:{code:L.status,message:I,URL:_},component:A.H}}})),this.store.dispatch((0,P.PC)({payload:{action:a,status:O.Bn.ERROR,statusCode:L.status.toString(),message:I,URL:_}}))}}ngOnDestroy(){this.unSubs.forEach(a=>{a.next(null),a.complete()})}}return b.\u0275fac=function(a){return new(a||b)(Z.LFG(e.eX),Z.LFG(j.eN),Z.LFG(W.yh),Z.LFG(ie.mQ),Z.LFG(ee.v),Z.LFG(_e.m),Z.LFG(ce.uw),Z.LFG(re.F0),Z.LFG(de.d),Z.LFG(oe.Ye))},b.\u0275prov=Z.Yz7({token:b,factory:b.\u0275fac}),b})()},6529:(Ve,Q,m)=>{"use strict";m.d(Q,{$k:()=>y,Q5:()=>C,yA:()=>M,Bo:()=>l,PP:()=>N,JG:()=>s,Wi:()=>D,dx:()=>A,Ef:()=>O,ZW:()=>E,ni:()=>w,P2:()=>Z,qU:()=>j,T4:()=>ie,N7:()=>ee,l5:()=>_e,_f:()=>ce,bx:()=>re});var e=m(5620);const t=(0,e.ZF)("lnd"),y=(0,e.P1)(t,de=>de.nodeSettings),C=(0,e.P1)(t,de=>de.information),M=((0,e.P1)(t,de=>({information:de.information,apiCallStatus:de.apisCallStatus.FetchInfo})),(0,e.P1)(t,de=>de.apisCallStatus)),l=(0,e.P1)(t,de=>({forwardingHistory:de.forwardingHistory,apiCallStatus:de.apisCallStatus.FetchForwardingHistory})),N=(0,e.P1)(t,de=>({listPayments:de.listPayments,apiCallStatus:de.apisCallStatus.FetchPayments})),s=(0,e.P1)(t,de=>({fees:de.fees,apiCallStatus:de.apisCallStatus.FetchFees})),D=(0,e.P1)(t,de=>({peers:de.peers,apiCallStatus:de.apisCallStatus.FetchPeers})),A=(0,e.P1)(t,de=>({transactions:de.transactions,apiCallStatus:de.apisCallStatus.FetchTransactions})),O=(0,e.P1)(t,de=>({listInvoices:de.listInvoices,apiCallStatus:de.apisCallStatus.FetchInvoices})),E=(0,e.P1)(t,de=>({channels:de.channels,channelsSummary:de.channelsSummary,lightningBalance:de.lightningBalance,apiCallStatus:de.apisCallStatus.FetchAllChannels})),w=((0,e.P1)(t,de=>({channelsSummary:de.channelsSummary,pendingChannels:de.pendingChannels,closedChannels:de.closedChannels,apiCallStatus:de.apisCallStatus.FetchAllChannels})),(0,e.P1)(t,de=>({pendingChannels:de.pendingChannels,pendingChannelsSummary:de.pendingChannelsSummary,apiCallStatus:de.apisCallStatus.FetchPendingChannels}))),Z=(0,e.P1)(t,de=>({closedChannels:de.closedChannels,apiCallStatus:de.apisCallStatus.FetchClosedChannels})),j=(0,e.P1)(t,de=>({blockchainBalance:de.blockchainBalance,apiCallStatus:de.apisCallStatus.FetchBalanceBlockchain})),ie=((0,e.P1)(t,de=>({lightningBalance:de.lightningBalance,apiCallStatus:de.apisCallStatus.FetchAllChannels})),(0,e.P1)(t,de=>({utxos:de.utxos,apiCallStatus:de.apisCallStatus.FetchUTXOs}))),ee=(0,e.P1)(t,de=>({networkInfo:de.networkInfo,apiCallStatus:de.apisCallStatus.FetchNetwork})),_e=(0,e.P1)(t,de=>({allLightningTransactions:de.allLightningTransactions,apiCallStatus:de.apisCallStatus.FetchLightningTransactions})),ce=(0,e.P1)(t,de=>({channels:de.channels,pendingChannels:de.pendingChannels,closedChannels:de.closedChannels})),re=(0,e.P1)(t,de=>({information:de.information,nodeSettings:de.nodeSettings,apiCallStatus:de.apisCallStatus.FetchInfo}))},8627:(Ve,Q,m)=>{"use strict";m.d(Q,{v:()=>$});var e=m(8966),t=m(801),y=m(7579),C=m(2722),o=m(7731),M=m(6529),l=m(5e3),N=m(5043),s=m(62),D=m(7261),A=m(5620),O=m(7093),E=m(9808),P=m(3322),w=m(9224),Z=m(9444),j=m(7423),W=m(644),ie=m(4834),ee=m(159),_e=m(773),ce=m(1125),re=m(7238),de=m(5245),oe=m(3390),ae=m(6895);const b=["scrollContainer"];function i(le,xe){if(1&le&&l._UZ(0,"qr-code",32),2&le){const Ue=l.oxw();l.Q6J("value",null==Ue.invoice?null:Ue.invoice.payment_request)("size",Ue.qrWidth)("errorCorrectionLevel","L")}}function a(le,xe){1&le&&(l.TgZ(0,"span",33),l._uU(1,"N/A"),l.qZA())}function p(le,xe){if(1&le&&l._UZ(0,"qr-code",32),2&le){const Ue=l.oxw();l.Q6J("value",null==Ue.invoice?null:Ue.invoice.payment_request)("size",Ue.qrWidth)("errorCorrectionLevel","L")}}function u(le,xe){1&le&&(l.TgZ(0,"span",34),l._uU(1,"QR Code Not Applicable"),l.qZA())}function _(le,xe){1&le&&l._UZ(0,"mat-divider",22),2&le&&l.Q6J("inset",!0)}function L(le,xe){1&le&&(l.ynx(0),l._uU(1," (zero amount) "),l.BQk())}function I(le,xe){1&le&&l._UZ(0,"span",40)}const x=function(){return[]};function r(le,xe){if(1&le&&(l.TgZ(0,"div",36),l.TgZ(1,"div",37),l.TgZ(2,"span",38),l._uU(3),l.ALo(4,"number"),l.qZA(),l.YNc(5,I,1,0,"span",39),l.qZA(),l.qZA()),2&le){const Ue=l.oxw(2);l.xp6(3),l.hij("",l.lcZ(4,2,null==Ue.invoice?null:Ue.invoice.amt_paid_sat)," Sats"),l.xp6(2),l.Q6J("ngForOf",l.DdM(4,x).constructor(35))}}function v(le,xe){if(1&le&&(l.TgZ(0,"div"),l._uU(1),l.ALo(2,"number"),l.qZA()),2&le){const Ue=l.oxw(2);l.xp6(1),l.hij("",l.lcZ(2,1,null==Ue.invoice?null:Ue.invoice.amt_paid_sat)," Sats")}}function G(le,xe){if(1&le&&(l.ynx(0),l.YNc(1,r,6,5,"div",35),l.YNc(2,v,3,3,"div",21),l.BQk()),2&le){const Ue=l.oxw();l.xp6(1),l.Q6J("ngIf",Ue.flgInvoicePaid),l.xp6(1),l.Q6J("ngIf",!Ue.flgInvoicePaid)}}function F(le,xe){1&le&&(l.TgZ(0,"span"),l._uU(1,"-"),l.qZA())}function U(le,xe){1&le&&l._UZ(0,"mat-spinner",42),2&le&&l.Q6J("diameter",20)}function ye(le,xe){if(1&le&&(l.ynx(0),l.YNc(1,F,2,0,"span",21),l.YNc(2,U,1,1,"mat-spinner",41),l.BQk()),2&le){const Ue=l.oxw();l.xp6(1),l.Q6J("ngIf","OPEN"!==(null==Ue.invoice?null:Ue.invoice.state)||!Ue.flgVersionCompatible),l.xp6(1),l.Q6J("ngIf","OPEN"===(null==Ue.invoice?null:Ue.invoice.state)&&Ue.flgVersionCompatible)}}const Ce=function(le){return{"mr-0":le}};function Be(le,xe){if(1&le&&l._UZ(0,"span",59),2&le){const Ue=l.oxw(4);l.Q6J("ngClass",l.VKq(1,Ce,Ue.screenSize===Ue.screenSizeEnum.XS))}}function ze(le,xe){if(1&le&&l._UZ(0,"span",60),2&le){const Ue=l.oxw(4);l.Q6J("ngClass",l.VKq(1,Ce,Ue.screenSize===Ue.screenSizeEnum.XS))}}function Ie(le,xe){if(1&le&&l._UZ(0,"span",61),2&le){const Ue=l.oxw(4);l.Q6J("ngClass",l.VKq(1,Ce,Ue.screenSize===Ue.screenSizeEnum.XS))}}function K(le,xe){if(1&le&&(l.TgZ(0,"div",48),l.TgZ(1,"div",53),l.TgZ(2,"span",54),l.YNc(3,Be,1,3,"span",55),l.YNc(4,ze,1,3,"span",56),l.YNc(5,Ie,1,3,"span",57),l._uU(6),l.qZA(),l.TgZ(7,"span",58),l._uU(8),l.ALo(9,"number"),l.qZA(),l.qZA(),l._UZ(10,"mat-divider",22),l.qZA()),2&le){const Ue=xe.$implicit,lt=l.oxw(3);l.xp6(3),l.Q6J("ngIf","SETTLED"===Ue.state),l.xp6(1),l.Q6J("ngIf","ACCEPTED"===Ue.state),l.xp6(1),l.Q6J("ngIf","CANCELED"===Ue.state),l.xp6(1),l.hij(" ",Ue.chan_id," "),l.xp6(2),l.Oqu(l.xi3(9,6,+Ue.amt_msat/1e3||0,lt.getDecimalFormat(Ue))),l.xp6(2),l.Q6J("inset",!0)}}function Me(le,xe){if(1&le){const Ue=l.EpF();l.TgZ(0,"div",17),l.TgZ(1,"mat-expansion-panel",46),l.NdJ("opened",function(){return l.CHM(Ue),l.oxw(2).flgOpened=!0})("closed",function(){return l.CHM(Ue),l.oxw(2).onExpansionClosed()}),l.TgZ(2,"mat-expansion-panel-header"),l.TgZ(3,"mat-panel-title"),l.TgZ(4,"h4",47),l._uU(5,"HTLCs"),l.qZA(),l.qZA(),l.qZA(),l.TgZ(6,"div",48),l.TgZ(7,"div",49),l.TgZ(8,"span",50),l._uU(9,"Channel ID"),l.qZA(),l.TgZ(10,"span",51),l._uU(11,"Amount (Sats)"),l.qZA(),l.qZA(),l._UZ(12,"mat-divider",22),l.YNc(13,K,11,9,"div",52),l.qZA(),l.qZA(),l.qZA()}if(2&le){const Ue=l.oxw(2);l.xp6(12),l.Q6J("inset",!0),l.xp6(1),l.Q6J("ngForOf",null==Ue.invoice?null:Ue.invoice.htlcs)}}function we(le,xe){1&le&&l._UZ(0,"mat-divider",22),2&le&&l.Q6J("inset",!0)}function z(le,xe){if(1&le&&(l.TgZ(0,"div"),l._UZ(1,"mat-divider",22),l.TgZ(2,"div",17),l.TgZ(3,"div",23),l.TgZ(4,"h4",19),l._uU(5,"Preimage"),l.qZA(),l.TgZ(6,"span",24),l._uU(7),l.qZA(),l.qZA(),l.qZA(),l._UZ(8,"mat-divider",22),l.TgZ(9,"div",17),l.TgZ(10,"div",43),l.TgZ(11,"h4",19),l._uU(12,"State"),l.qZA(),l.TgZ(13,"span",24),l._uU(14),l.qZA(),l.qZA(),l.TgZ(15,"div",44),l.TgZ(16,"h4",19),l._uU(17,"Expiry"),l.qZA(),l.TgZ(18,"span",24),l._uU(19),l.qZA(),l.qZA(),l.TgZ(20,"div",44),l.TgZ(21,"h4",19),l._uU(22,"Private Routing Hints"),l.qZA(),l.TgZ(23,"span",24),l._uU(24),l.qZA(),l.qZA(),l.qZA(),l._UZ(25,"mat-divider",22),l.YNc(26,Me,14,2,"div",45),l.YNc(27,we,1,1,"mat-divider",14),l.qZA()),2&le){const Ue=l.oxw();l.xp6(1),l.Q6J("inset",!0),l.xp6(6),l.Oqu((null==Ue.invoice?null:Ue.invoice.r_preimage)||"-"),l.xp6(1),l.Q6J("inset",!0),l.xp6(6),l.Oqu(null==Ue.invoice?null:Ue.invoice.state),l.xp6(5),l.Oqu(null==Ue.invoice?null:Ue.invoice.expiry),l.xp6(5),l.Oqu(null!=Ue.invoice&&Ue.invoice.private?"Yes":"No"),l.xp6(1),l.Q6J("inset",!0),l.xp6(1),l.Q6J("ngIf",(null==Ue.invoice?null:Ue.invoice.htlcs)&&(null==Ue.invoice?null:Ue.invoice.htlcs.length)>0),l.xp6(1),l.Q6J("ngIf",(null==Ue.invoice?null:Ue.invoice.htlcs)&&(null==Ue.invoice?null:Ue.invoice.htlcs.length)>0)}}function Ge(le,xe){if(1&le){const Ue=l.EpF();l.TgZ(0,"div",62),l.TgZ(1,"button",63),l.NdJ("click",function(){return l.CHM(Ue),l.oxw().onScrollDown()}),l.TgZ(2,"mat-icon",64),l._uU(3,"arrow_downward"),l.qZA(),l.qZA(),l.qZA()}}function vt(le,xe){1&le&&(l.TgZ(0,"p"),l._uU(1,"Show Advanced"),l.qZA())}function Re(le,xe){1&le&&(l.TgZ(0,"p"),l._uU(1,"Hide Advanced"),l.qZA())}function Ne(le,xe){if(1&le){const Ue=l.EpF();l.TgZ(0,"button",65),l.NdJ("copied",function(nt){return l.CHM(Ue),l.oxw().onCopyPayment(nt)}),l._uU(1),l.qZA()}if(2&le){const Ue=l.oxw();l.Q6J("payload",null==Ue.invoice?null:Ue.invoice.payment_request),l.xp6(1),l.Oqu(Ue.screenSize===Ue.screenSizeEnum.XS?"Copy Payment":"Copy Payment Request")}}function he(le,xe){if(1&le){const Ue=l.EpF();l.TgZ(0,"button",66),l.NdJ("click",function(){return l.CHM(Ue),l.oxw().onClose()}),l._uU(1,"OK"),l.qZA()}}const Le=function(le){return{"display-none":le}},ke=function(le){return{"xs-scroll-y":le}},q=function(le){return{"h-50":le}};let $=(()=>{class le{constructor(Ue,lt,nt,ft,it,rt){this.dialogRef=Ue,this.data=lt,this.logger=nt,this.commonService=ft,this.snackBar=it,this.store=rt,this.faReceipt=t.dLy,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.cu,this.flgOpened=!1,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new y.x,new y.x,new y.x,new y.x,new y.x]}set container(Ue){Ue&&(this.scrollContainer=Ue)}ngOnInit(){this.invoice=JSON.parse(JSON.stringify(this.data.invoice)),this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.cu.XS&&(this.qrWidth=220),this.store.select(M.Q5).pipe((0,C.R)(this.unSubs[0])).subscribe(lt=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(lt.version,"0.11.0")});const Ue=JSON.parse(JSON.stringify(this.invoice));this.store.select(M.Ef).pipe((0,C.R)(this.unSubs[1])).subscribe(lt=>{const nt=this.invoice.state,it=(lt.listInvoices.invoices||[]).find(rt=>rt.r_hash===Ue.r_hash);this.invoice=it,nt!==this.invoice.state&&"SETTLED"===this.invoice.state&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(lt)})}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(Ue){this.snackBar.open("Payment request copied."),this.logger.info("Copied Text: "+Ue)}getDecimalFormat(Ue){return Ue.amt_msat<1e3?"1.0-4":"1.0-0"}ngOnDestroy(){this.unSubs.forEach(Ue=>{Ue.next(null),Ue.complete()})}}return le.\u0275fac=function(Ue){return new(Ue||le)(l.Y36(e.so),l.Y36(e.WI),l.Y36(N.mQ),l.Y36(s.v),l.Y36(D.ux),l.Y36(A.yh))},le.\u0275cmp=l.Xpm({type:le,selectors:[["rtl-invoice-information"]],viewQuery:function(Ue,lt){if(1&Ue&&l.Gf(b,5),2&Ue){let nt;l.iGM(nt=l.CRH())&&(lt.container=nt.first)}},decls:78,vars:49,consts:[["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"],[3,"value","size","errorCorrectionLevel",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","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,"perfectScrollbar","ngClass"],["scrollContainer",""],["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"],["hideAdvancedText",""],["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"],[3,"value","size","errorCorrectionLevel"],[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"],["fxFlex","34"],["fxFlex","33"],["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"],["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,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(Ue,lt){if(1&Ue&&(l.TgZ(0,"div",0),l.TgZ(1,"div",1),l.YNc(2,i,1,3,"qr-code",2),l.YNc(3,a,2,0,"span",3),l.qZA(),l.TgZ(4,"div",4),l.TgZ(5,"mat-card-header",5),l.TgZ(6,"div",6),l._UZ(7,"fa-icon",7),l.TgZ(8,"span",8),l._uU(9),l.qZA(),l.qZA(),l.TgZ(10,"button",9),l.NdJ("click",function(){return lt.onClose()}),l._uU(11,"X"),l.qZA(),l.qZA(),l.TgZ(12,"mat-card-content",10),l.TgZ(13,"div",11),l.TgZ(14,"div",12),l.YNc(15,p,1,3,"qr-code",2),l.YNc(16,u,2,0,"span",13),l.qZA(),l.YNc(17,_,1,1,"mat-divider",14),l.TgZ(18,"div",15,16),l.TgZ(20,"div",17),l.TgZ(21,"div",18),l.TgZ(22,"h4",19),l._uU(23),l.qZA(),l.TgZ(24,"span",20),l._uU(25),l.ALo(26,"number"),l.YNc(27,L,2,0,"ng-container",21),l.qZA(),l.qZA(),l.TgZ(28,"div",18),l.TgZ(29,"h4",19),l._uU(30,"Amount Settled"),l.qZA(),l.TgZ(31,"span",20),l.YNc(32,G,3,2,"ng-container",21),l.YNc(33,ye,3,2,"ng-container",21),l.qZA(),l.qZA(),l.qZA(),l._UZ(34,"mat-divider",22),l.TgZ(35,"div",17),l.TgZ(36,"div",18),l.TgZ(37,"h4",19),l._uU(38,"Date Created"),l.qZA(),l.TgZ(39,"span",20),l._uU(40),l.ALo(41,"date"),l.qZA(),l.qZA(),l.TgZ(42,"div",18),l.TgZ(43,"h4",19),l._uU(44,"Date Settled"),l.qZA(),l.TgZ(45,"span",20),l._uU(46),l.ALo(47,"date"),l.qZA(),l.qZA(),l.qZA(),l._UZ(48,"mat-divider",22),l.TgZ(49,"div",17),l.TgZ(50,"div",23),l.TgZ(51,"h4",19),l._uU(52,"Memo"),l.qZA(),l.TgZ(53,"span",20),l._uU(54),l.qZA(),l.qZA(),l.qZA(),l._UZ(55,"mat-divider",22),l.TgZ(56,"div",17),l.TgZ(57,"div",23),l.TgZ(58,"h4",19),l._uU(59,"Payment Request"),l.qZA(),l.TgZ(60,"span",24),l._uU(61),l.qZA(),l.qZA(),l.qZA(),l._UZ(62,"mat-divider",22),l.TgZ(63,"div",17),l.TgZ(64,"div",23),l.TgZ(65,"h4",19),l._uU(66,"Payment Hash"),l.qZA(),l.TgZ(67,"span",24),l._uU(68),l.qZA(),l.qZA(),l.qZA(),l.YNc(69,z,28,9,"div",21),l.qZA(),l.qZA(),l.qZA(),l.YNc(70,Ge,4,0,"div",25),l.TgZ(71,"div",26),l.TgZ(72,"button",27),l.NdJ("click",function(){return lt.onShowAdvanced()}),l.YNc(73,vt,2,0,"p",28),l.YNc(74,Re,2,0,"ng-template",null,29,l.W1O),l.qZA(),l.YNc(76,Ne,2,2,"button",30),l.YNc(77,he,2,0,"button",31),l.qZA(),l.qZA(),l.qZA()),2&Ue){const nt=l.MAs(75);l.xp6(1),l.Q6J("fxLayoutAlign",null!=lt.invoice&<.invoice.payment_request&&""!==(null==lt.invoice?null:lt.invoice.payment_request)?"center start":"center center")("ngClass",l.VKq(41,Le,lt.screenSize===lt.screenSizeEnum.XS||lt.screenSize===lt.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.payment_request)&&""!==(null==lt.invoice?null:lt.invoice.payment_request)),l.xp6(1),l.Q6J("ngIf",!(null!=lt.invoice&<.invoice.payment_request)||""===(null==lt.invoice?null:lt.invoice.payment_request)),l.xp6(4),l.Q6J("icon",lt.faReceipt),l.xp6(2),l.Oqu(lt.screenSize===lt.screenSizeEnum.XS?lt.newlyAdded?"Created":"Invoice":lt.newlyAdded?"Invoice Created":"Invoice Information"),l.xp6(3),l.Q6J("ngClass",l.VKq(43,ke,lt.screenSize===lt.screenSizeEnum.XS)),l.xp6(2),l.Q6J("fxLayoutAlign",null!=lt.invoice&<.invoice.payment_request&&""!==(null==lt.invoice?null:lt.invoice.payment_request)?"center start":"center center")("ngClass",l.VKq(45,Le,lt.screenSize!==lt.screenSizeEnum.XS&<.screenSize!==lt.screenSizeEnum.SM)),l.xp6(1),l.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.payment_request)&&""!==(null==lt.invoice?null:lt.invoice.payment_request)),l.xp6(1),l.Q6J("ngIf",!(null!=lt.invoice&<.invoice.payment_request)||""===(null==lt.invoice?null:lt.invoice.payment_request)),l.xp6(1),l.Q6J("ngIf",lt.screenSize===lt.screenSizeEnum.XS||lt.screenSize===lt.screenSizeEnum.SM),l.xp6(1),l.Q6J("ngClass",l.VKq(47,q,(null==lt.invoice?null:lt.invoice.htlcs)&&(null==lt.invoice?null:lt.invoice.htlcs.length)>0&<.showAdvanced)),l.xp6(5),l.Oqu(lt.screenSize===lt.screenSizeEnum.XS?"Amount":"Amount Requested"),l.xp6(2),l.hij("",l.lcZ(26,33,(null==lt.invoice?null:lt.invoice.value)||0)," Sats"),l.xp6(2),l.Q6J("ngIf",!(null!=lt.invoice&<.invoice.value)||"0"===(null==lt.invoice?null:lt.invoice.value)),l.xp6(5),l.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.amt_paid_sat)&&"OPEN"!==(null==lt.invoice?null:lt.invoice.state)),l.xp6(1),l.Q6J("ngIf",!(null!=lt.invoice&<.invoice.amt_paid_sat)||"0"===(null==lt.invoice?null:lt.invoice.amt_paid_sat)),l.xp6(1),l.Q6J("inset",!0),l.xp6(6),l.Oqu(l.xi3(41,35,1e3*(null==lt.invoice?null:lt.invoice.creation_date),"dd/MMM/y HH:mm")),l.xp6(6),l.Oqu(0!=+(null==lt.invoice?null:lt.invoice.settle_date)?l.xi3(47,38,1e3*+(null==lt.invoice?null:lt.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),l.xp6(2),l.Q6J("inset",!0),l.xp6(6),l.Oqu(null==lt.invoice?null:lt.invoice.memo),l.xp6(1),l.Q6J("inset",!0),l.xp6(6),l.Oqu((null==lt.invoice?null:lt.invoice.payment_request)||"N/A"),l.xp6(1),l.Q6J("inset",!0),l.xp6(6),l.Oqu((null==lt.invoice?null:lt.invoice.r_hash)||""),l.xp6(1),l.Q6J("ngIf",lt.showAdvanced),l.xp6(1),l.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.htlcs)&&(null==lt.invoice?null:lt.invoice.htlcs.length)>0&<.showAdvanced&<.flgOpened),l.xp6(3),l.Q6J("ngIf",!lt.showAdvanced)("ngIfElse",nt),l.xp6(3),l.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.payment_request)&&""!==(null==lt.invoice?null:lt.invoice.payment_request)),l.xp6(1),l.Q6J("ngIf",!(null!=lt.invoice&<.invoice.payment_request)||""===(null==lt.invoice?null:lt.invoice.payment_request))}},directives:[O.xw,O.Wh,O.yH,E.mk,P.oO,E.O5,w.dk,Z.BN,j.lW,w.dn,W.$V,ie.d,ee.uU,E.sg,_e.$g,ce.ib,ce.yz,ce.yK,re.gM,de.Hw,oe.h,ae.y],pipes:[E.JJ,E.uU],styles:[""]}),le})()},7772:(Ve,Q,m)=>{"use strict";m.d(Q,{_:()=>t,J:()=>y});var e=m(1777);const t=[(0,e.X$)("opacityAnimation",[(0,e.eR)(":enter",[(0,e.oB)({opacity:0}),(0,e.jt)("1000ms ease-in",(0,e.oB)({opacity:1}))]),(0,e.eR)(":leave",[(0,e.jt)("0ms",(0,e.oB)({opacity:0}))])])],y=[(0,e.X$)("fadeIn",[(0,e.eR)("void => *",[]),(0,e.eR)("* => void",[]),(0,e.eR)("* => *",[(0,e.jt)(800,(0,e.F4)([(0,e.oB)({opacity:0,transform:"translateY(100%)"}),(0,e.oB)({opacity:1,transform:"translateY(0%)"})]))])])]},8878:(Ve,Q,m)=>{"use strict";m.d(Q,{g:()=>t});var e=m(1777);const t=(0,e.X$)("routeAnimation",[(0,e.eR)("* => *",[(0,e.IO)(":enter, :leave",(0,e.oB)({position:"fixed",width:"100%"}),{optional:!0}),(0,e.ru)([(0,e.IO)(":enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)("1000ms ease-in-out",(0,e.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({transform:"translateX(0%)"}),(0,e.jt)("1000ms ease-in-out",(0,e.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])])},113:(Ve,Q,m)=>{"use strict";m.d(Q,{l:()=>t});var e=m(1777);const t=[(0,e.X$)("sliderAnimation",[(0,e.SB)("*",(0,e.oB)({transform:"translateX(0)"})),(0,e.eR)("void => backward",[(0,e.oB)({transform:"translateX(-100%"}),(0,e.jt)("800ms")]),(0,e.eR)("backward => void",[(0,e.jt)("0ms",(0,e.oB)({transform:"translateX(100%)"}))]),(0,e.eR)("void => forward",[(0,e.oB)({transform:"translateX(100%"}),(0,e.jt)("800ms")]),(0,e.eR)("forward => void",[(0,e.jt)("0ms",(0,e.oB)({transform:"translateX(-100%)"}))])])]},1786:(Ve,Q,m)=>{"use strict";m.d(Q,{H:()=>A});var e=m(8966),t=m(5e3),y=m(5043),C=m(7093),o=m(9224),M=m(7423),l=m(9808),N=m(4834),s=m(3390);function D(O,E){if(1&O&&(t.TgZ(0,"p",14),t._uU(1),t.qZA()),2&O){const P=t.oxw();t.xp6(1),t.Oqu(P.data.titleMessage)}}let A=(()=>{class O{constructor(P,w,Z){this.dialogRef=P,this.data=w,this.logger=Z,this.errorMessage=""}ngOnInit(){this.errorMessage="object"==typeof this.data.message.message?JSON.stringify(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)}}return O.\u0275fac=function(P){return new(P||O)(t.Y36(e.so),t.Y36(e.WI),t.Y36(y.mQ))},O.\u0275cmp=t.Xpm({type:O,selectors:[["rtl-error-message"]],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","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(P,w){1&P&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"mat-card-header",2),t.TgZ(3,"div",3),t.TgZ(4,"span",4),t._uU(5),t.qZA(),t.qZA(),t.TgZ(6,"button",5),t.NdJ("click",function(){return w.onClose()}),t._uU(7,"X"),t.qZA(),t.qZA(),t.TgZ(8,"mat-card-content",6),t.TgZ(9,"div",7),t.YNc(10,D,2,1,"p",8),t.TgZ(11,"h4",9),t._uU(12,"Error Code"),t.qZA(),t.TgZ(13,"span"),t._uU(14),t.qZA(),t._UZ(15,"mat-divider",10),t.TgZ(16,"h4",9),t._uU(17,"Error Message"),t.qZA(),t.TgZ(18,"span",11),t._uU(19),t.qZA(),t._UZ(20,"mat-divider",10),t.TgZ(21,"h4",9),t._uU(22,"API URL"),t.qZA(),t.TgZ(23,"span",11),t._uU(24),t.qZA(),t._UZ(25,"mat-divider",10),t.TgZ(26,"div",12),t.TgZ(27,"button",13),t._uU(28,"OK"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&P&&(t.xp6(5),t.Oqu(w.data.alertTitle||"ERROR"),t.xp6(5),t.Q6J("ngIf",w.data.titleMessage),t.xp6(4),t.Oqu(w.data.message.code),t.xp6(5),t.Oqu(w.errorMessage),t.xp6(5),t.Oqu(w.data.message.URL),t.xp6(3),t.Q6J("mat-dialog-close",!1))},directives:[C.xw,C.yH,o.dk,C.Wh,M.lW,o.dn,l.O5,N.d,s.h,e.ZT],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),O})()},9442:(Ve,Q,m)=>{"use strict";m.d(Q,{w:()=>N});var e=m(801),t=m(5e3),y=m(1402),C=m(7093),o=m(9444),M=m(9224),l=m(7423);let N=(()=>{class s{constructor(A){this.router=A,this.faTimes=e.NBC}goToHelp(){this.router.navigate(["/help"])}}return s.\u0275fac=function(A){return new(A||s)(t.Y36(y.F0))},s.\u0275cmp=t.Xpm({type:s,selectors:[["rtl-not-found"]],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,O){1&A&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Page Not Found"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"div",5),t.TgZ(8,"div",6),t._uU(9,"This page does not exist!"),t.qZA(),t.TgZ(10,"span",7),t.TgZ(11,"button",8),t.NdJ("click",function(){return O.goToHelp()}),t._uU(12,"Go To Help"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&A&&(t.xp6(1),t.Q6J("icon",O.faTimes))},directives:[C.xw,C.Wh,o.BN,M.a8,M.dn,C.yH,l.lW],encapsulation:2}),s})()},8213:(Ve,Q,m)=>{"use strict";m.d(Q,{a:()=>Xi});var e=m(3075),t=m(7579),y=m(2722),C=m(8966),o=m(801),M=m(7772),l=m(7731),N=m(6529),s=m(5e3),D=m(5620),A=m(9107),O=m(9808),E=m(5043),P=m(1402),w=m(62),Z=m(7093),j=m(9224),W=m(7423),ie=m(5615),ee=m(1125),_e=m(3322),ce=m(5245),re=m(7238),de=m(4834);function oe(Ke,_t){1&Ke&&s.GkF(0)}function ae(Ke,_t){1&Ke&&s.GkF(0)}const b=function(Ke){return{"h-5":Ke}};function i(Ke,_t){if(1&Ke&&(s.TgZ(0,"mat-expansion-panel",3),s.TgZ(1,"mat-expansion-panel-header"),s.TgZ(2,"mat-panel-title"),s.TgZ(3,"span",4),s._uU(4),s.ALo(5,"number"),s.qZA(),s.qZA(),s.qZA(),s.YNc(6,ae,1,0,"ng-container",0),s.qZA()),2&Ke){const ve=s.oxw(),qe=s.MAs(4);s.Q6J("expanded",ve.panelExpanded)("ngClass",s.VKq(7,b,!ve.flgShowPanel)),s.xp6(4),s.AsE("Quote for ",ve.termCaption," amount (",s.lcZ(5,5,ve.quote.amount)," Sats)"),s.xp6(2),s.Q6J("ngTemplateOutlet",qe)}}function a(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",19),s.TgZ(1,"h4",8),s._uU(2," Prepay Amount (Sats) "),s.TgZ(3,"mat-icon",20),s._uU(4,"info_outline"),s.qZA(),s.qZA(),s.TgZ(5,"span",10),s._uU(6),s.ALo(7,"number"),s.qZA(),s.qZA()),2&Ke){const ve=s.oxw(2);s.xp6(6),s.Oqu(s.lcZ(7,1,null==ve.quote?null:ve.quote.prepay_amt_sat))}}function p(Ke,_t){1&Ke&&s._UZ(0,"mat-divider",13)}function u(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",6),s.TgZ(1,"div",21),s.TgZ(2,"h4",8),s._uU(3," Swap Server Node Pubkey "),s.TgZ(4,"mat-icon",22),s._uU(5,"info_outline"),s.qZA(),s.qZA(),s.TgZ(6,"span",10),s._uU(7),s.qZA(),s.qZA(),s.qZA()),2&Ke){const ve=s.oxw(2);s.xp6(7),s.Oqu(null==ve.quote?null:ve.quote.swap_payment_dest)}}function _(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",5),s.TgZ(1,"div",6),s.TgZ(2,"div",7),s.TgZ(3,"h4",8),s._uU(4," Swap Fee (Sats) "),s.TgZ(5,"mat-icon",9),s._uU(6,"info_outline"),s.qZA(),s.qZA(),s.TgZ(7,"span",10),s._uU(8),s.ALo(9,"number"),s.qZA(),s.qZA(),s.TgZ(10,"div",7),s.TgZ(11,"h4",8),s._uU(12),s.TgZ(13,"mat-icon",11),s._uU(14,"info_outline"),s.qZA(),s.qZA(),s.TgZ(15,"span",10),s._uU(16),s.ALo(17,"number"),s.qZA(),s.qZA(),s.YNc(18,a,8,3,"div",12),s.qZA(),s._UZ(19,"mat-divider",13),s.TgZ(20,"div",6),s.TgZ(21,"div",14),s.TgZ(22,"h4",8),s._uU(23," Max Off-chain Swap Routing Fee (Sats) "),s.TgZ(24,"mat-icon",15),s._uU(25,"info_outline"),s.qZA(),s.qZA(),s.TgZ(26,"span",10),s._uU(27),s.ALo(28,"number"),s.qZA(),s.qZA(),s.TgZ(29,"div",14),s.TgZ(30,"h4",8),s._uU(31," Max Off-chain Prepay Routing Fee (Sats) "),s.TgZ(32,"mat-icon",16),s._uU(33,"info_outline"),s.qZA(),s.qZA(),s.TgZ(34,"span",10),s._uU(35,"36"),s.qZA(),s.qZA(),s.qZA(),s.YNc(36,p,1,0,"mat-divider",17),s.YNc(37,u,8,1,"div",18),s.qZA()),2&Ke){const ve=s.oxw();s.xp6(2),s.Q6J("fxFlex",null!=ve.quote&&ve.quote.prepay_amt_sat?"30":"50"),s.xp6(6),s.Oqu(s.lcZ(9,9,null==ve.quote?null:ve.quote.swap_fee_sat)),s.xp6(2),s.Q6J("fxFlex",null!=ve.quote&&ve.quote.prepay_amt_sat?"35":"50"),s.xp6(2),s.hij(" ",null!=ve.quote&&ve.quote.htlc_sweep_fee_sat?"HTLC Sweep Fee (Sats)":null!=ve.quote&&ve.quote.htlc_publish_fee_sat?"HTLC Publish Fee (Sats)":""," "),s.xp6(4),s.Oqu(s.lcZ(17,11,null!=ve.quote&&ve.quote.htlc_sweep_fee_sat?ve.quote.htlc_sweep_fee_sat:null!=ve.quote&&ve.quote.htlc_publish_fee_sat?ve.quote.htlc_publish_fee_sat:0)),s.xp6(2),s.Q6J("ngIf",null==ve.quote?null:ve.quote.prepay_amt_sat),s.xp6(9),s.Oqu(s.lcZ(28,13,(null==ve.quote?null:ve.quote.amount)*((null!=ve.quote&&ve.quote.off_chain_swap_routing_fee_percentage?null==ve.quote?null:ve.quote.off_chain_swap_routing_fee_percentage:2)/100))),s.xp6(9),s.Q6J("ngIf",""!==(null==ve.quote?null:ve.quote.swap_payment_dest)),s.xp6(1),s.Q6J("ngIf",""!==(null==ve.quote?null:ve.quote.swap_payment_dest))}}let L=(()=>{class Ke{constructor(){this.quote={},this.termCaption="",this.showPanel=!0,this.panelExpanded=!1,this.flgShowPanel=!1}ngOnInit(){setTimeout(()=>{this.flgShowPanel=!0},1200)}}return Ke.\u0275fac=function(ve){return new(ve||Ke)},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["rtl-loop-quote"]],inputs:{quote:"quote",termCaption:"termCaption",showPanel:"showPanel",panelExpanded:"panelExpanded"},decls:5,vars:1,consts:[[4,"ngTemplateOutlet"],["informationBlock",""],["quoteDetailsBlock",""],["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,"fxFlex"],["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(ve,qe){if(1&ve&&(s.YNc(0,oe,1,0,"ng-container",0),s.YNc(1,i,7,9,"ng-template",null,1,s.W1O),s.YNc(3,_,38,15,"ng-template",null,2,s.W1O)),2&ve){const yt=s.MAs(2),fe=s.MAs(4);s.Q6J("ngTemplateOutlet",qe.showPanel?yt:fe)}},directives:[O.tP,ee.ib,Z.yH,O.mk,_e.oO,ee.yz,ee.yK,Z.Wh,Z.xw,ce.Hw,re.gM,O.O5,de.d],pipes:[O.JJ],styles:[""]}),Ke})();var I=m(7322),x=m(7531),r=m(3390),v=m(2368),G=m(9814),F=m(5899);function U(Ke,_t){1&Ke&&s.GkF(0)}function ye(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",3),s.TgZ(1,"span",4),s._uU(2),s.qZA(),s.qZA()),2&Ke){const ve=s.oxw();s.xp6(2),s.Oqu(null!=ve.loopStatus&&ve.loopStatus.error?null==ve.loopStatus?null:ve.loopStatus.error:"Unknown Error.")}}function Ce(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",3),s.TgZ(1,"div",5),s.TgZ(2,"div",6),s.TgZ(3,"h4",7),s._uU(4,"ID"),s.qZA(),s.TgZ(5,"span",4),s._uU(6),s.qZA(),s.qZA(),s.qZA(),s._UZ(7,"mat-divider",8),s.TgZ(8,"div",5),s.TgZ(9,"div",6),s.TgZ(10,"h4",7),s._uU(11,"HTLC Address"),s.qZA(),s.TgZ(12,"span",4),s._uU(13),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&Ke){const ve=s.oxw();s.xp6(6),s.Oqu(null==ve.loopStatus?null:ve.loopStatus.id_bytes),s.xp6(7),s.Oqu(null==ve.loopStatus?null:ve.loopStatus.htlc_address)}}let Be=(()=>{class Ke{constructor(){}}return Ke.\u0275fac=function(ve){return new(ve||Ke)},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["rtl-loop-status"]],inputs:{loopStatus:"loopStatus"},decls:5,vars:1,consts:[[4,"ngTemplateOutlet"],["loopFailedBlock",""],["loopSuccessfulBlock",""],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"]],template:function(ve,qe){if(1&ve&&(s.YNc(0,U,1,0,"ng-container",0),s.YNc(1,ye,3,1,"ng-template",null,1,s.W1O),s.YNc(3,Ce,14,2,"ng-template",null,2,s.W1O)),2&ve){const yt=s.MAs(2),fe=s.MAs(4);s.Q6J("ngTemplateOutlet",null!=qe.loopStatus&&qe.loopStatus.error?yt:fe)}},directives:[O.tP,Z.xw,Z.yH,Z.Wh,de.d],styles:[""]}),Ke})();var ze=m(113);function Ie(Ke,_t){1&Ke&&s.GkF(0)}const K=function(Ke,_t){return{"small-svg":Ke,"large-svg":_t}};function Me(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ve),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",7),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"g",8),s.TgZ(5,"g",9),s.TgZ(6,"g",10),s.TgZ(7,"g",11),s._UZ(8,"circle",12),s._UZ(9,"path",13),s.qZA(),s.TgZ(10,"g",14),s._UZ(11,"ellipse",15),s._UZ(12,"ellipse",16),s._UZ(13,"rect",17),s._UZ(14,"rect",18),s._UZ(15,"rect",19),s._UZ(16,"rect",20),s._UZ(17,"rect",21),s._UZ(18,"rect",22),s._UZ(19,"rect",23),s._UZ(20,"rect",24),s._UZ(21,"rect",25),s._UZ(22,"rect",26),s._UZ(23,"rect",27),s._UZ(24,"rect",28),s._UZ(25,"rect",29),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(26,"div",30),s.TgZ(27,"mat-card-title"),s._uU(28,"Loop Out explained."),s.qZA(),s.qZA(),s.TgZ(29,"div",31),s.TgZ(30,"mat-card-subtitle",32),s._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ve=s.oxw();s.Q6J("@sliderAnimation",ve.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,K,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function we(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ve),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",33),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",34),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",8),s.TgZ(10,"g",38),s.TgZ(11,"g",39),s.TgZ(12,"g",40),s.TgZ(13,"g",41),s.TgZ(14,"g",42),s._UZ(15,"rect",43),s._UZ(16,"rect",44),s._UZ(17,"rect",45),s._UZ(18,"circle",46),s._UZ(19,"rect",47),s._UZ(20,"rect",48),s._UZ(21,"circle",49),s._UZ(22,"rect",50),s._UZ(23,"rect",51),s._UZ(24,"rect",52),s._UZ(25,"rect",53),s._UZ(26,"circle",54),s._UZ(27,"circle",55),s.qZA(),s.TgZ(28,"g",56),s._UZ(29,"path",57),s._UZ(30,"rect",58),s._UZ(31,"polygon",59),s._UZ(32,"circle",60),s._UZ(33,"path",61),s._UZ(34,"rect",62),s._UZ(35,"rect",63),s._UZ(36,"rect",64),s._UZ(37,"rect",65),s._UZ(38,"rect",66),s._UZ(39,"rect",67),s._UZ(40,"rect",68),s._UZ(41,"path",69),s._UZ(42,"path",70),s.qZA(),s._UZ(43,"path",71),s.qZA(),s.qZA(),s._UZ(44,"circle",72),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(45,"div",30),s.TgZ(46,"mat-card-title"),s._uU(47,"Step 1: Deciding to Loop Out"),s.qZA(),s.qZA(),s.TgZ(48,"div",31),s.TgZ(49,"mat-card-subtitle",32),s._uU(50," You have a channel with a local balance amount and you want to gain inbound liquidity. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ve=s.oxw();s.Q6J("@sliderAnimation",ve.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,K,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function z(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ve),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",73),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",74),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",8),s.TgZ(10,"g",75),s.TgZ(11,"g",76),s._UZ(12,"circle",77),s._UZ(13,"path",78),s.TgZ(14,"g",79),s._UZ(15,"polygon",80),s._UZ(16,"polygon",81),s._UZ(17,"path",82),s.qZA(),s.TgZ(18,"g",83),s._UZ(19,"polygon",84),s._UZ(20,"path",85),s._UZ(21,"rect",86),s._UZ(22,"path",87),s._UZ(23,"rect",88),s._UZ(24,"rect",89),s._UZ(25,"rect",90),s._UZ(26,"rect",91),s._UZ(27,"circle",92),s._UZ(28,"path",93),s.TgZ(29,"g",94),s.TgZ(30,"g",95),s._UZ(31,"g",96),s.qZA(),s._UZ(32,"g",97),s.qZA(),s._UZ(33,"path",98),s.qZA(),s.TgZ(34,"g",99),s.TgZ(35,"g",41),s.TgZ(36,"g",42),s._UZ(37,"rect",43),s._UZ(38,"rect",44),s._UZ(39,"rect",45),s._UZ(40,"circle",46),s._UZ(41,"rect",47),s._UZ(42,"rect",48),s._UZ(43,"circle",49),s._UZ(44,"rect",50),s._UZ(45,"rect",51),s._UZ(46,"rect",52),s._UZ(47,"rect",53),s._UZ(48,"circle",100),s._UZ(49,"circle",54),s._UZ(50,"circle",55),s._UZ(51,"circle",101),s.qZA(),s.TgZ(52,"g",56),s._UZ(53,"path",57),s._UZ(54,"rect",102),s._UZ(55,"polygon",103),s._UZ(56,"circle",104),s._UZ(57,"path",61),s._UZ(58,"rect",105),s._UZ(59,"rect",106),s._UZ(60,"rect",107),s._UZ(61,"rect",108),s._UZ(62,"rect",109),s._UZ(63,"rect",110),s._UZ(64,"rect",68),s._UZ(65,"path",69),s._UZ(66,"path",70),s.qZA(),s._UZ(67,"path",111),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(68,"div",30),s.TgZ(69,"mat-card-title"),s._uU(70,"Step 2: Send lightning payment"),s.qZA(),s.qZA(),s.TgZ(71,"div",31),s.TgZ(72,"mat-card-subtitle",32),s._uU(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. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ve=s.oxw();s.Q6J("@sliderAnimation",ve.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,K,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function Ge(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ve),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",112),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"g",8),s.TgZ(5,"g",113),s.TgZ(6,"g",114),s.TgZ(7,"g",115),s.TgZ(8,"g",116),s._UZ(9,"circle",12),s._UZ(10,"path",117),s.qZA(),s.TgZ(11,"g",14),s._UZ(12,"ellipse",118),s._UZ(13,"ellipse",16),s._UZ(14,"rect",17),s._UZ(15,"rect",18),s._UZ(16,"rect",19),s._UZ(17,"rect",20),s._UZ(18,"rect",21),s._UZ(19,"rect",22),s._UZ(20,"rect",23),s._UZ(21,"rect",24),s._UZ(22,"rect",25),s._UZ(23,"rect",26),s._UZ(24,"rect",27),s._UZ(25,"rect",28),s._UZ(26,"rect",29),s.qZA(),s.qZA(),s.TgZ(27,"g",119),s._UZ(28,"polygon",80),s._UZ(29,"polygon",120),s._UZ(30,"path",82),s.qZA(),s.TgZ(31,"g",121),s._UZ(32,"polygon",84),s._UZ(33,"path",85),s._UZ(34,"rect",86),s._UZ(35,"path",87),s._UZ(36,"rect",88),s._UZ(37,"rect",89),s._UZ(38,"rect",90),s._UZ(39,"rect",91),s._UZ(40,"circle",122),s._UZ(41,"path",93),s.TgZ(42,"g",94),s.TgZ(43,"g",95),s._UZ(44,"g",96),s.qZA(),s._UZ(45,"g",97),s.qZA(),s._UZ(46,"path",123),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(47,"div",30),s.TgZ(48,"mat-card-title"),s._uU(49,"Step 3: Receive funds back"),s.qZA(),s.qZA(),s.TgZ(50,"div",31),s.TgZ(51,"mat-card-subtitle",32),s._uU(52," Loop service then sends you a payment on-chain for the amount same as the lightning payment minus the fee. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ve=s.oxw();s.Q6J("@sliderAnimation",ve.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,K,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function vt(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ve),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",124),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",34),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",8),s.TgZ(10,"g",125),s.TgZ(11,"g",126),s.TgZ(12,"g",42),s._UZ(13,"rect",127),s._UZ(14,"rect",128),s._UZ(15,"rect",129),s._UZ(16,"circle",130),s._UZ(17,"rect",131),s._UZ(18,"rect",132),s._UZ(19,"circle",133),s._UZ(20,"rect",134),s._UZ(21,"rect",135),s._UZ(22,"rect",136),s._UZ(23,"rect",137),s._UZ(24,"rect",138),s._UZ(25,"circle",139),s._UZ(26,"circle",140),s._UZ(27,"circle",141),s.qZA(),s.TgZ(28,"g",142),s.TgZ(29,"g",143),s.TgZ(30,"g",144),s._UZ(31,"path",145),s._UZ(32,"rect",146),s._UZ(33,"polygon",147),s.TgZ(34,"g",148),s._UZ(35,"path",149),s.qZA(),s._UZ(36,"rect",150),s._UZ(37,"rect",151),s._UZ(38,"rect",152),s._UZ(39,"rect",153),s._UZ(40,"rect",154),s._UZ(41,"rect",155),s._UZ(42,"rect",156),s._UZ(43,"path",157),s._UZ(44,"path",158),s.qZA(),s.TgZ(45,"g",159),s._UZ(46,"path",160),s._UZ(47,"path",161),s._UZ(48,"path",162),s._UZ(49,"path",163),s._UZ(50,"path",164),s._UZ(51,"path",165),s._UZ(52,"path",166),s._UZ(53,"path",167),s._UZ(54,"path",168),s._UZ(55,"path",169),s._UZ(56,"path",170),s._UZ(57,"circle",171),s._UZ(58,"circle",172),s.qZA(),s._UZ(59,"path",173),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(60,"div",30),s.TgZ(61,"mat-card-title"),s._uU(62,"Done!"),s.qZA(),s.qZA(),s.TgZ(63,"div",31),s.TgZ(64,"mat-card-subtitle",32),s._uU(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. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ve=s.oxw();s.Q6J("@sliderAnimation",ve.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,K,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}let Re=(()=>{class Ke{constructor(ve){this.commonService=ve,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new s.vpe,this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(ve){2===ve.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===ve.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(s.Y36(w.v))},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["rtl-loop-out-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],["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(ve,qe){if(1&ve&&(s.YNc(0,Ie,1,0,"ng-container",0),s.YNc(1,Me,32,5,"ng-template",null,1,s.W1O),s.YNc(3,we,51,5,"ng-template",null,2,s.W1O),s.YNc(5,z,74,5,"ng-template",null,3,s.W1O),s.YNc(7,Ge,53,5,"ng-template",null,4,s.W1O),s.YNc(9,vt,66,5,"ng-template",null,5,s.W1O)),2&ve){const yt=s.MAs(2),fe=s.MAs(4),Je=s.MAs(6),St=s.MAs(8),Pt=s.MAs(10);s.Q6J("ngTemplateOutlet",1===qe.stepNumber?yt:2===qe.stepNumber?fe:3===qe.stepNumber?Je:4===qe.stepNumber?St:Pt)}},directives:[O.tP,Z.xw,Z.yH,Z.Wh,O.mk,_e.oO,j.n5,j.$j],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:[ze.l]}}),Ke})();function Ne(Ke,_t){1&Ke&&s.GkF(0)}const he=function(Ke,_t){return{"small-svg":Ke,"large-svg":_t}};function Le(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ve),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",7),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"g",8),s.TgZ(5,"g",9),s.TgZ(6,"g",10),s.TgZ(7,"g",11),s._UZ(8,"circle",12),s._UZ(9,"path",13),s.qZA(),s.TgZ(10,"g",14),s._UZ(11,"ellipse",15),s._UZ(12,"ellipse",16),s._UZ(13,"rect",17),s._UZ(14,"rect",18),s._UZ(15,"rect",19),s._UZ(16,"rect",20),s._UZ(17,"rect",21),s._UZ(18,"rect",22),s._UZ(19,"rect",23),s._UZ(20,"rect",24),s._UZ(21,"rect",25),s._UZ(22,"rect",26),s._UZ(23,"rect",27),s._UZ(24,"rect",28),s._UZ(25,"rect",29),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(26,"div",30),s.TgZ(27,"mat-card-title"),s._uU(28,"Loop In explained."),s.qZA(),s.qZA(),s.TgZ(29,"div",31),s.TgZ(30,"mat-card-subtitle",32),s._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ve=s.oxw();s.Q6J("@sliderAnimation",ve.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,he,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function ke(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ve),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",33),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",34),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",8),s.TgZ(10,"g",38),s.TgZ(11,"g",39),s.TgZ(12,"g",40),s._UZ(13,"rect",41),s._UZ(14,"rect",42),s._UZ(15,"rect",43),s._UZ(16,"circle",44),s._UZ(17,"rect",45),s._UZ(18,"rect",46),s._UZ(19,"circle",47),s._UZ(20,"rect",48),s._UZ(21,"rect",49),s._UZ(22,"rect",50),s._UZ(23,"rect",51),s._UZ(24,"rect",52),s._UZ(25,"circle",53),s._UZ(26,"circle",54),s._UZ(27,"circle",55),s.qZA(),s.TgZ(28,"g",56),s.TgZ(29,"g",57),s.TgZ(30,"g",58),s._UZ(31,"path",59),s._UZ(32,"rect",60),s._UZ(33,"polygon",61),s.TgZ(34,"g",62),s._UZ(35,"path",63),s.qZA(),s._UZ(36,"rect",64),s._UZ(37,"rect",65),s._UZ(38,"rect",66),s._UZ(39,"rect",67),s._UZ(40,"rect",68),s._UZ(41,"rect",69),s._UZ(42,"rect",70),s._UZ(43,"path",71),s._UZ(44,"path",72),s.qZA(),s.TgZ(45,"g",73),s._UZ(46,"path",74),s._UZ(47,"path",75),s._UZ(48,"path",76),s._UZ(49,"path",77),s._UZ(50,"path",78),s._UZ(51,"path",79),s._UZ(52,"path",80),s._UZ(53,"path",81),s._UZ(54,"path",82),s._UZ(55,"path",83),s._UZ(56,"path",84),s._UZ(57,"circle",85),s._UZ(58,"circle",86),s.qZA(),s._UZ(59,"path",87),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(60,"div",30),s.TgZ(61,"mat-card-title"),s._uU(62,"Step 1: Deciding to Loop In"),s.qZA(),s.qZA(),s.TgZ(63,"div",31),s.TgZ(64,"mat-card-subtitle",32),s._uU(65," Your outgoing capacity is depleted and you want to regain it without opening new channels. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ve=s.oxw();s.Q6J("@sliderAnimation",ve.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,he,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function q(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ve),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",88),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",89),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",90),s.TgZ(10,"g",91),s.TgZ(11,"g",92),s.TgZ(12,"g",93),s.TgZ(13,"g",94),s._UZ(14,"circle",95),s._UZ(15,"path",96),s.TgZ(16,"g",97),s._UZ(17,"polygon",98),s._UZ(18,"polygon",99),s._UZ(19,"path",100),s.qZA(),s.TgZ(20,"g",101),s._UZ(21,"polygon",102),s._UZ(22,"path",103),s._UZ(23,"rect",104),s._UZ(24,"path",105),s._UZ(25,"rect",106),s._UZ(26,"rect",107),s._UZ(27,"rect",108),s._UZ(28,"rect",109),s._UZ(29,"circle",110),s._UZ(30,"path",111),s.TgZ(31,"g",112),s.TgZ(32,"g",113),s._UZ(33,"g",114),s.qZA(),s._UZ(34,"g",115),s.qZA(),s.qZA(),s.qZA(),s.TgZ(35,"g",116),s.TgZ(36,"g",40),s._UZ(37,"rect",117),s._UZ(38,"rect",42),s._UZ(39,"rect",43),s._UZ(40,"circle",118),s._UZ(41,"rect",45),s._UZ(42,"rect",46),s._UZ(43,"circle",119),s._UZ(44,"rect",48),s._UZ(45,"rect",49),s._UZ(46,"rect",50),s._UZ(47,"rect",51),s._UZ(48,"rect",52),s._UZ(49,"circle",120),s._UZ(50,"circle",54),s._UZ(51,"circle",55),s._UZ(52,"circle",121),s.qZA(),s.TgZ(53,"g",56),s.TgZ(54,"g",57),s.TgZ(55,"g",58),s._UZ(56,"path",59),s._UZ(57,"rect",60),s._UZ(58,"polygon",61),s.TgZ(59,"g",122),s._UZ(60,"path",63),s.qZA(),s._UZ(61,"rect",123),s._UZ(62,"rect",124),s._UZ(63,"rect",125),s._UZ(64,"rect",126),s._UZ(65,"rect",127),s._UZ(66,"rect",128),s._UZ(67,"rect",129),s._UZ(68,"path",130),s._UZ(69,"path",72),s.qZA(),s.TgZ(70,"g",73),s._UZ(71,"path",131),s._UZ(72,"path",132),s._UZ(73,"path",133),s._UZ(74,"path",134),s._UZ(75,"path",135),s._UZ(76,"path",136),s._UZ(77,"path",80),s._UZ(78,"path",81),s._UZ(79,"path",137),s._UZ(80,"path",83),s._UZ(81,"path",138),s._UZ(82,"circle",85),s._UZ(83,"circle",86),s.qZA(),s._UZ(84,"path",139),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s._UZ(85,"path",140),s._UZ(86,"path",141),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(87,"div",30),s.TgZ(88,"mat-card-title"),s._uU(89,"Step 2: Send payment out"),s.qZA(),s.qZA(),s.TgZ(90,"div",31),s.TgZ(91,"mat-card-subtitle",32),s._uU(92," Your node sends funds on-chain to loop server to be swapped with off-chain liquidity. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ve=s.oxw();s.Q6J("@sliderAnimation",ve.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,he,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function $(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ve),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",142),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"g",90),s.TgZ(5,"g",143),s.TgZ(6,"g",144),s.TgZ(7,"g"),s.TgZ(8,"g",145),s.TgZ(9,"g",146),s._UZ(10,"circle",12),s._UZ(11,"path",147),s.qZA(),s.TgZ(12,"g",14),s._UZ(13,"ellipse",148),s._UZ(14,"ellipse",16),s._UZ(15,"rect",17),s._UZ(16,"rect",18),s._UZ(17,"rect",19),s._UZ(18,"rect",20),s._UZ(19,"rect",21),s._UZ(20,"rect",22),s._UZ(21,"rect",23),s._UZ(22,"rect",24),s._UZ(23,"rect",25),s._UZ(24,"rect",26),s._UZ(25,"rect",27),s._UZ(26,"rect",28),s._UZ(27,"rect",29),s.qZA(),s.qZA(),s.TgZ(28,"g",149),s._UZ(29,"polygon",150),s._UZ(30,"polygon",99),s._UZ(31,"path",151),s.qZA(),s.TgZ(32,"g",152),s._UZ(33,"polygon",102),s._UZ(34,"path",103),s._UZ(35,"rect",104),s._UZ(36,"path",105),s._UZ(37,"rect",106),s._UZ(38,"rect",107),s._UZ(39,"rect",108),s._UZ(40,"rect",109),s._UZ(41,"circle",110),s._UZ(42,"path",111),s.TgZ(43,"g",112),s.TgZ(44,"g",113),s._UZ(45,"g",114),s.qZA(),s._UZ(46,"g",115),s.qZA(),s.qZA(),s.qZA(),s._UZ(47,"path",153),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(48,"div",30),s.TgZ(49,"mat-card-title"),s._uU(50,"Step 3: Recieve Funds Off-chain"),s.qZA(),s.qZA(),s.TgZ(51,"div",31),s.TgZ(52,"mat-card-subtitle",32),s._uU(53," Loop server sends equivalent funds off-chain to your node by making a lightning payment to you. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ve=s.oxw();s.Q6J("@sliderAnimation",ve.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,he,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function le(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"div",6),s.NdJ("swipe",function(yt){return s.CHM(ve),s.oxw().onSwipe(yt)}),s.O4$(),s.TgZ(1,"svg",154),s.TgZ(2,"desc"),s._uU(3,"Created with Sketch."),s.qZA(),s.TgZ(4,"defs"),s.TgZ(5,"linearGradient",34),s._UZ(6,"stop",35),s._UZ(7,"stop",36),s._UZ(8,"stop",37),s.qZA(),s.qZA(),s.TgZ(9,"g",90),s.TgZ(10,"g",155),s.TgZ(11,"g",156),s.TgZ(12,"g",157),s.TgZ(13,"g",158),s.TgZ(14,"g",40),s._UZ(15,"rect",159),s._UZ(16,"rect",160),s._UZ(17,"rect",161),s._UZ(18,"circle",162),s._UZ(19,"rect",163),s._UZ(20,"rect",164),s._UZ(21,"circle",165),s._UZ(22,"rect",166),s._UZ(23,"rect",167),s._UZ(24,"rect",168),s._UZ(25,"rect",169),s._UZ(26,"circle",170),s._UZ(27,"circle",171),s.qZA(),s.TgZ(28,"g",172),s._UZ(29,"path",173),s._UZ(30,"rect",174),s._UZ(31,"polygon",175),s._UZ(32,"circle",176),s._UZ(33,"path",177),s._UZ(34,"rect",178),s._UZ(35,"rect",179),s._UZ(36,"rect",180),s._UZ(37,"rect",181),s._UZ(38,"rect",182),s._UZ(39,"rect",183),s._UZ(40,"rect",184),s._UZ(41,"path",185),s._UZ(42,"path",186),s.qZA(),s._UZ(43,"path",187),s.qZA(),s.qZA(),s._UZ(44,"circle",188),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.kcU(),s.TgZ(45,"div",30),s.TgZ(46,"mat-card-title"),s._uU(47,"Done!"),s.qZA(),s.qZA(),s.TgZ(48,"div",31),s.TgZ(49,"mat-card-subtitle",32),s._uU(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. "),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ve=s.oxw();s.Q6J("@sliderAnimation",ve.animationDirection),s.xp6(1),s.Q6J("ngClass",s.WLB(2,he,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}let xe=(()=>{class Ke{constructor(ve){this.commonService=ve,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new s.vpe,this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(ve){2===ve.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===ve.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(s.Y36(w.v))},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["rtl-loop-in-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],["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(ve,qe){if(1&ve&&(s.YNc(0,Ne,1,0,"ng-container",0),s.YNc(1,Le,32,5,"ng-template",null,1,s.W1O),s.YNc(3,ke,66,5,"ng-template",null,2,s.W1O),s.YNc(5,q,93,5,"ng-template",null,3,s.W1O),s.YNc(7,$,54,5,"ng-template",null,4,s.W1O),s.YNc(9,le,51,5,"ng-template",null,5,s.W1O)),2&ve){const yt=s.MAs(2),fe=s.MAs(4),Je=s.MAs(6),St=s.MAs(8),Pt=s.MAs(10);s.Q6J("ngTemplateOutlet",1===qe.stepNumber?yt:2===qe.stepNumber?fe:3===qe.stepNumber?Je:4===qe.stepNumber?St:Pt)}},directives:[O.tP,Z.xw,Z.yH,Z.Wh,O.mk,_e.oO,j.n5,j.$j],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:[ze.l]}}),Ke})();const Ue=["stepper"];function lt(Ke,_t){if(1&Ke&&(s.TgZ(0,"div",48),s.TgZ(1,"p",49),s.TgZ(2,"strong"),s._uU(3,"Channel Peer:\xa0"),s.qZA(),s._uU(4),s.ALo(5,"titlecase"),s.qZA(),s.TgZ(6,"p",50),s.TgZ(7,"strong"),s._uU(8,"Channel ID:\xa0"),s.qZA(),s._uU(9),s.qZA(),s._UZ(10,"p",50),s.qZA()),2&Ke){const ve=s.oxw(2);s.xp6(4),s.Oqu(s.lcZ(5,2,ve.channel.remote_alias)),s.xp6(5),s.Oqu(ve.channel.chan_id)}}function nt(Ke,_t){if(1&Ke&&s._uU(0),2&Ke){const ve=s.oxw(2);s.Oqu(ve.inputFormLabel)}}function ft(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Amount is required."),s.qZA())}function it(Ke,_t){if(1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"number"),s.qZA()),2&Ke){const ve=s.oxw(2);s.xp6(1),s.hij("Amount must be greater than or equal to ",s.lcZ(2,1,ve.minQuote.amount),".")}}function rt(Ke,_t){if(1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"number"),s.qZA()),2&Ke){const ve=s.oxw(2);s.xp6(1),s.hij("Amount must be less than or equal to ",s.lcZ(2,1,ve.maxQuote.amount),".")}}function Mt(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Confirmation target is required."),s.qZA())}function Zt(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Confirmation target must be a positive number."),s.qZA())}function Ft(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Percentage is required."),s.qZA())}function Vt(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Percentage must be a positive number."),s.qZA())}function Ii(Ke,_t){if(1&Ke&&(s.TgZ(0,"mat-form-field",50),s._UZ(1,"input",51),s.YNc(2,Ft,2,0,"mat-error",25),s.YNc(3,Vt,2,0,"mat-error",25),s.qZA()),2&Ke){const ve=s.oxw(2);s.xp6(1),s.Q6J("step",1),s.xp6(1),s.Q6J("ngIf",null==ve.inputFormGroup.controls.routingFeePercent.errors?null:ve.inputFormGroup.controls.routingFeePercent.errors.required),s.xp6(1),s.Q6J("ngIf",null==ve.inputFormGroup.controls.routingFeePercent.errors?null:ve.inputFormGroup.controls.routingFeePercent.errors.min)}}function jt(Ke,_t){1&Ke&&(s.TgZ(0,"div",52),s.TgZ(1,"mat-slide-toggle",53),s._uU(2,"Fast"),s.qZA(),s.TgZ(3,"mat-icon",54),s._uU(4,"info_outline"),s.qZA(),s.qZA())}function ei(Ke,_t){if(1&Ke&&s._uU(0),2&Ke){const ve=s.oxw(2);s.Oqu(ve.quoteFormLabel)}}function Pi(Ke,_t){1&Ke&&(s.TgZ(0,"p",55),s.TgZ(1,"mat-icon",56),s._uU(2,"close"),s.qZA(),s._uU(3,"Local balance amount is insufficient for swap."),s.qZA())}function ai(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"button",57),s.NdJ("click",function(){return s.CHM(ve),s.oxw(2).onValidateAmount()}),s._uU(1,"Next"),s.qZA()}}function hi(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"button",58),s.NdJ("click",function(){return s.CHM(ve),s.oxw(2).onLoop()}),s._uU(1),s.qZA()}if(2&Ke){const ve=s.oxw(2);s.xp6(1),s.hij("Initiate ",ve.loopDirectionCaption,"")}}function Ze(Ke,_t){if(1&Ke&&s._uU(0),2&Ke){const ve=s.oxw(3);s.Oqu(ve.addressFormLabel)}}function Ee(Ke,_t){1&Ke&&(s.TgZ(0,"mat-error"),s._uU(1,"Address is required."),s.qZA())}function Y(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"mat-step",16),s.TgZ(1,"form",17),s.YNc(2,Ze,1,1,"ng-template",18),s.TgZ(3,"div",59),s.TgZ(4,"mat-radio-group",60),s.NdJ("change",function(yt){return s.CHM(ve),s.oxw(2).onAddressTypeChange(yt)}),s.TgZ(5,"mat-radio-button",61),s._uU(6,"Node Local Address"),s.qZA(),s.TgZ(7,"mat-radio-button",62),s._uU(8,"External Address"),s.qZA(),s.qZA(),s.TgZ(9,"mat-form-field",63),s._UZ(10,"input",64),s.YNc(11,Ee,2,0,"mat-error",25),s.qZA(),s.qZA(),s.TgZ(12,"div",29),s.TgZ(13,"button",65),s.NdJ("click",function(){return s.CHM(ve),s.oxw(2).onLoop()}),s._uU(14),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ve=s.oxw(2);s.Q6J("stepControl",ve.addressFormGroup)("editable",ve.flgEditable),s.xp6(1),s.Q6J("formGroup",ve.addressFormGroup),s.xp6(9),s.Q6J("required","external"===ve.addressFormGroup.controls.addressType.value),s.xp6(1),s.Q6J("ngIf",null==ve.addressFormGroup.controls.address.errors?null:ve.addressFormGroup.controls.address.errors.required),s.xp6(3),s.hij("Initiate ",ve.loopDirectionCaption,"")}}function me(Ke,_t){if(1&Ke&&s._uU(0),2&Ke){const ve=s.oxw(2);s.hij("",ve.loopDirectionCaption," Status")}}function De(Ke,_t){if(1&Ke&&(s.TgZ(0,"mat-icon",66),s._uU(1),s.qZA()),2&Ke){const ve=s.oxw(2);s.xp6(1),s.Oqu(ve.loopStatus&&null!=ve.loopStatus&&ve.loopStatus.id_bytes?"check":"close")}}function et(Ke,_t){1&Ke&&s._UZ(0,"div")}function $t(Ke,_t){1&Ke&&s._UZ(0,"mat-progress-bar",67)}function Nt(Ke,_t){if(1&Ke&&(s.TgZ(0,"h4",68),s._uU(1),s.qZA()),2&Ke){const ve=s.oxw(2);s.xp6(1),s.Oqu(ve.loopStatus&&ve.loopStatus.error?ve.loopDirectionCaption+" failed.":ve.loopStatus&&ve.loopStatus.id_bytes&&ve.channel?ve.loopDirectionCaption+" request placed successfully. You can check the status of the request on the 'Loop' menu.":ve.loopDirectionCaption+" request placed successfully.")}}function Jt(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"button",69),s.NdJ("click",function(){return s.CHM(ve),s.oxw(2).goToLoop()}),s._uU(1,"Check Status"),s.qZA()}}function ct(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"button",70),s.NdJ("click",function(){return s.CHM(ve),s.oxw(2).onRestart()}),s._uU(1,"Start Again"),s.qZA()}}function Pe(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"div",3),s.TgZ(1,"div",4),s.TgZ(2,"mat-card-header",5),s.TgZ(3,"div",6),s.TgZ(4,"span",7),s._uU(5),s.qZA(),s.qZA(),s.TgZ(6,"div",8),s.TgZ(7,"button",9),s.NdJ("click",function(){return s.CHM(ve),s.oxw().showInfo()}),s._uU(8,"?"),s.qZA(),s.TgZ(9,"button",10),s.NdJ("click",function(){return s.CHM(ve),s.oxw().onClose()}),s._uU(10,"X"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(11,"mat-card-content",11),s.TgZ(12,"div",12),s.YNc(13,lt,11,4,"div",13),s.TgZ(14,"mat-vertical-stepper",14,15),s.NdJ("selectionChange",function(yt){return s.CHM(ve),s.oxw().stepSelectionChanged(yt)}),s.TgZ(16,"mat-step",16),s.TgZ(17,"form",17),s.YNc(18,nt,1,1,"ng-template",18),s.TgZ(19,"div",19),s._UZ(20,"rtl-loop-quote",20),s._UZ(21,"rtl-loop-quote",20),s.qZA(),s.TgZ(22,"div",21),s.TgZ(23,"mat-form-field",22),s._UZ(24,"input",23),s.TgZ(25,"mat-hint"),s._uU(26),s.ALo(27,"number"),s.ALo(28,"number"),s.qZA(),s.TgZ(29,"span",24),s._uU(30,"Sats"),s.qZA(),s.YNc(31,ft,2,0,"mat-error",25),s.YNc(32,it,3,3,"mat-error",25),s.YNc(33,rt,3,3,"mat-error",25),s.qZA(),s.TgZ(34,"mat-form-field",22),s._UZ(35,"input",26),s.YNc(36,Mt,2,0,"mat-error",25),s.YNc(37,Zt,2,0,"mat-error",25),s.qZA(),s.YNc(38,Ii,4,3,"mat-form-field",27),s.qZA(),s.YNc(39,jt,5,0,"div",28),s.TgZ(40,"div",29),s.TgZ(41,"button",30),s.NdJ("click",function(){return s.CHM(ve),s.oxw().onEstimateQuote()}),s._uU(42,"Estimate Quote"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(43,"mat-step",16),s.TgZ(44,"form",17),s.YNc(45,ei,1,1,"ng-template",18),s._UZ(46,"rtl-loop-quote",31),s.YNc(47,Pi,4,0,"p",32),s.TgZ(48,"div",29),s.YNc(49,ai,2,0,"button",33),s.YNc(50,hi,2,1,"button",34),s.qZA(),s.qZA(),s.qZA(),s.YNc(51,Y,15,6,"mat-step",35),s.TgZ(52,"mat-step",36),s.TgZ(53,"form",17),s.YNc(54,me,1,1,"ng-template",18),s.TgZ(55,"div",37),s.TgZ(56,"mat-expansion-panel",38),s.TgZ(57,"mat-expansion-panel-header"),s.TgZ(58,"mat-panel-title"),s.TgZ(59,"span",39),s._uU(60),s.YNc(61,De,2,1,"mat-icon",40),s.qZA(),s.qZA(),s.qZA(),s.YNc(62,et,1,0,"div",41),s.qZA(),s.YNc(63,$t,1,0,"mat-progress-bar",42),s.qZA(),s.YNc(64,Nt,2,1,"h4",43),s.TgZ(65,"div",29),s.YNc(66,Jt,2,0,"button",44),s.YNc(67,ct,2,0,"button",45),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(68,"div",46),s.TgZ(69,"button",47),s._uU(70,"Close"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ve=s.oxw(),qe=s.MAs(2);s.Q6J("@opacityAnimation",void 0),s.xp6(3),s.Q6J("fxFlex",ve.screenSize===ve.screenSizeEnum.XS||ve.screenSize===ve.screenSizeEnum.SM?"83":"91"),s.xp6(2),s.Oqu(ve.channel?"Channel "+ve.loopDirectionCaption:ve.loopDirectionCaption),s.xp6(1),s.Q6J("fxFlex",ve.screenSize===ve.screenSizeEnum.XS||ve.screenSize===ve.screenSizeEnum.SM?"17":"9"),s.xp6(7),s.Q6J("ngIf",ve.channel),s.xp6(1),s.Q6J("linear",!0),s.xp6(2),s.Q6J("stepControl",ve.inputFormGroup)("editable",ve.flgEditable),s.xp6(1),s.Q6J("formGroup",ve.inputFormGroup),s.xp6(3),s.Q6J("quote",ve.minQuote)("termCaption","min")("panelExpanded",!1)("showPanel",!0),s.xp6(1),s.Q6J("quote",ve.maxQuote)("termCaption","max")("panelExpanded",!1)("showPanel",!0),s.xp6(2),s.Q6J("fxFlex",ve.direction===ve.LoopTypeEnum.LOOP_OUT?"35":"48"),s.xp6(1),s.Q6J("step",1e3),s.xp6(2),s.AsE("Range: ",s.lcZ(27,51,ve.minQuote.amount),"-",s.lcZ(28,53,ve.maxQuote.amount),""),s.xp6(5),s.Q6J("ngIf",null==ve.inputFormGroup.controls.amount.errors?null:ve.inputFormGroup.controls.amount.errors.required),s.xp6(1),s.Q6J("ngIf",null==ve.inputFormGroup.controls.amount.errors?null:ve.inputFormGroup.controls.amount.errors.min),s.xp6(1),s.Q6J("ngIf",null==ve.inputFormGroup.controls.amount.errors?null:ve.inputFormGroup.controls.amount.errors.max),s.xp6(1),s.Q6J("fxFlex",ve.direction===ve.LoopTypeEnum.LOOP_OUT?"30":"48"),s.xp6(1),s.Q6J("step",1),s.xp6(1),s.Q6J("ngIf",null==ve.inputFormGroup.controls.sweepConfTarget.errors?null:ve.inputFormGroup.controls.sweepConfTarget.errors.required),s.xp6(1),s.Q6J("ngIf",null==ve.inputFormGroup.controls.sweepConfTarget.errors?null:ve.inputFormGroup.controls.sweepConfTarget.errors.min),s.xp6(1),s.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_OUT),s.xp6(1),s.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_OUT),s.xp6(4),s.Q6J("stepControl",ve.quoteFormGroup)("editable",ve.flgEditable),s.xp6(1),s.Q6J("formGroup",ve.quoteFormGroup),s.xp6(2),s.Q6J("quote",ve.quote)("showPanel",!1),s.xp6(1),s.Q6J("ngIf",ve.inputFormGroup.controls.amount.value>ve.localBalanceToCompare),s.xp6(2),s.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_OUT),s.xp6(1),s.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_IN),s.xp6(1),s.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_OUT),s.xp6(1),s.Q6J("stepControl",ve.statusFormGroup),s.xp6(1),s.Q6J("formGroup",ve.statusFormGroup),s.xp6(3),s.Q6J("expanded",!!ve.loopStatus),s.xp6(4),s.Oqu(ve.loopStatus?ve.loopStatus.id_bytes?ve.loopDirectionCaption+" request details":ve.loopDirectionCaption+" error details":"Waiting for "+ve.loopDirectionCaption+" request..."),s.xp6(1),s.Q6J("ngIf",ve.loopStatus),s.xp6(1),s.Q6J("ngIf",!ve.loopStatus)("ngIfElse",qe),s.xp6(1),s.Q6J("ngIf",!ve.loopStatus),s.xp6(1),s.Q6J("ngIf",ve.loopStatus),s.xp6(2),s.Q6J("ngIf",ve.loopStatus&&ve.loopStatus.id_bytes&&ve.channel),s.xp6(1),s.Q6J("ngIf",ve.loopStatus&&(ve.loopStatus.error||!ve.loopStatus.id_bytes)),s.xp6(2),s.Q6J("mat-dialog-close",!1)}}function Fe(Ke,_t){if(1&Ke&&s._UZ(0,"rtl-loop-status",71),2&Ke){const ve=s.oxw();s.Q6J("loopStatus",ve.loopStatus)}}function at(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"rtl-loop-out-info-graphics",88),s.NdJ("stepNumberChange",function(yt){return s.CHM(ve),s.oxw(2).stepNumber=yt}),s.qZA()}if(2&Ke){const ve=s.oxw(2);s.Q6J("stepNumber",ve.stepNumber)("animationDirection",ve.animationDirection)}}function st(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"rtl-loop-in-info-graphics",88),s.NdJ("stepNumberChange",function(yt){return s.CHM(ve),s.oxw(2).stepNumber=yt}),s.qZA()}if(2&Ke){const ve=s.oxw(2);s.Q6J("stepNumber",ve.stepNumber)("animationDirection",ve.animationDirection)}}const At=function(Ke,_t){return{"dot-primary":Ke,"dot-primary-lighter":_t}};function li(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"span",89),s.NdJ("click",function(){const fe=s.CHM(ve).$implicit;return s.oxw(2).onStepChanged(fe)}),s._UZ(1,"p",90),s.qZA()}if(2&Ke){const ve=_t.$implicit,qe=s.oxw(2);s.xp6(1),s.Q6J("ngClass",s.WLB(1,At,qe.stepNumber===ve,qe.stepNumber!==ve))}}function Bt(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"button",91),s.NdJ("click",function(){return s.CHM(ve),s.oxw(2).onReadMore()}),s._uU(1,"Read More"),s.qZA()}}function Rt(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"button",92),s.NdJ("click",function(){return s.CHM(ve),s.oxw(2).onStepChanged(4)}),s._uU(1,"Back"),s.qZA()}}function Li(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"button",93),s.NdJ("click",function(){s.CHM(ve);const yt=s.oxw(2);return yt.flgShowInfo=!1,yt.stepNumber=1}),s._uU(1,"Close"),s.qZA()}}function si(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"button",94),s.NdJ("click",function(){s.CHM(ve);const yt=s.oxw(2);return yt.flgShowInfo=!1,yt.stepNumber=1}),s._uU(1,"Close"),s.qZA()}}function ci(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"button",95),s.NdJ("click",function(){s.CHM(ve);const yt=s.oxw(2);return yt.onStepChanged(yt.stepNumber-1)}),s._uU(1,"Back"),s.qZA()}}function sn(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"button",96),s.NdJ("click",function(){s.CHM(ve);const yt=s.oxw(2);return yt.onStepChanged(yt.stepNumber+1)}),s._uU(1,"Next"),s.qZA()}}const Ui=function(){return[1,2,3,4,5]};function Di(Ke,_t){if(1&Ke){const ve=s.EpF();s.TgZ(0,"div",72),s.TgZ(1,"div",19),s.TgZ(2,"mat-card-header",73),s.TgZ(3,"div",74),s._UZ(4,"span",7),s.qZA(),s.TgZ(5,"div",75),s.TgZ(6,"button",76),s.NdJ("click",function(){s.CHM(ve);const yt=s.oxw();return yt.flgShowInfo=!1,yt.stepNumber=1}),s._uU(7,"X"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(8,"mat-card-content",77),s.YNc(9,at,1,2,"rtl-loop-out-info-graphics",78),s.YNc(10,st,1,2,"rtl-loop-in-info-graphics",78),s.qZA(),s.TgZ(11,"div",79),s.YNc(12,li,2,4,"span",80),s.qZA(),s.TgZ(13,"div",81),s.YNc(14,Bt,2,0,"button",82),s.YNc(15,Rt,2,0,"button",83),s.YNc(16,Li,2,0,"button",84),s.YNc(17,si,2,0,"button",85),s.YNc(18,ci,2,0,"button",86),s.YNc(19,sn,2,0,"button",87),s.qZA(),s.qZA(),s.qZA()}if(2&Ke){const ve=s.oxw();s.Q6J("@opacityAnimation",void 0),s.xp6(9),s.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_OUT),s.xp6(1),s.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_IN),s.xp6(2),s.Q6J("ngForOf",s.DdM(10,Ui)),s.xp6(2),s.Q6J("ngIf",5===ve.stepNumber),s.xp6(1),s.Q6J("ngIf",5===ve.stepNumber),s.xp6(1),s.Q6J("ngIf",5===ve.stepNumber),s.xp6(1),s.Q6J("ngIf",ve.stepNumber<5),s.xp6(1),s.Q6J("ngIf",ve.stepNumber>1&&ve.stepNumber<5),s.xp6(1),s.Q6J("ngIf",ve.stepNumber<5)}}let Xi=(()=>{class Ke{constructor(ve,qe,yt,fe,Je,St,Pt,yi,Ni){this.dialogRef=ve,this.data=qe,this.store=yt,this.loopService=fe,this.formBuilder=Je,this.decimalPipe=St,this.logger=Pt,this.router=yi,this.commonService=Ni,this.faInfoCircle=o.sqG,this.LoopTypeEnum=l.$I,this.direction=l.$I.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=l.cu,this.animationDirection="forward",this.flgEditable=!0,this.localBalanceToCompare=null,this.unSubs=[new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x]}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,this.loopDirectionCaption=this.direction===l.$I.LOOP_IN?"Loop in":"Loop out",this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.minQuote.amount,[e.kI.required,e.kI.min(this.minQuote.amount),e.kI.max(this.maxQuote.amount)]],sweepConfTarget:[6,[e.kI.required,e.kI.min(1)]],routingFeePercent:[2,[e.kI.required,e.kI.min(0)]],fast:[!1,[e.kI.required]]}),this.quoteFormGroup=this.formBuilder.group({}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[e.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.store.select(N.ZW).pipe((0,y.R)(this.unSubs[6])).subscribe(ve=>{this.localBalanceToCompare=this.channel?+this.channel.local_balance:+ve.lightningBalance.local})}ngAfterViewInit(){this.inputFormGroup.setErrors({Invalid:!0}),this.direction===l.$I.LOOP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.inputFormGroup.valueChanges.pipe((0,y.R)(this.unSubs[4])).subscribe(ve=>{this.inputFormGroup.setErrors({Invalid:!0})}),this.direction===l.$I.LOOP_OUT&&this.addressFormGroup.valueChanges.pipe((0,y.R)(this.unSubs[5])).subscribe(ve=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(ve){"external"===ve.value?(this.addressFormGroup.controls.address.setValidators([e.kI.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.inputFormGroup.controls.amount.value<=this.localBalanceToCompare&&this.stepper.next()}onLoop(){if(!this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2||this.direction===l.$I.LOOP_OUT&&(!this.inputFormGroup.controls.routingFeePercent.value||this.inputFormGroup.controls.routingFeePercent.value<0)||this.direction===l.$I.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===l.$I.LOOP_IN)this.loopService.loopIn(this.inputFormGroup.controls.amount.value,+this.quote.swap_fee_sat,+this.quote.htlc_publish_fee_sat,"",!0).pipe((0,y.R)(this.unSubs[0])).subscribe({next:ve=>{this.loopStatus=ve,this.loopService.listSwaps(),this.flgEditable=!0},error:ve=>{this.loopStatus={error:ve},this.flgEditable=!0,this.logger.error(ve)}});else{const ve=Math.ceil(this.inputFormGroup.controls.amount.value*(this.inputFormGroup.controls.routingFeePercent.value/100)),qe="external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",yt=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,ve,+this.quote.htlc_sweep_fee_sat,this.prepayRoutingFee,+this.quote.prepay_amt_sat,+this.quote.swap_fee_sat,yt,qe).pipe((0,y.R)(this.unSubs[1])).subscribe({next:fe=>{this.loopStatus=fe,this.loopService.listSwaps(),this.flgEditable=!0},error:fe=>{this.loopStatus={error:fe},this.flgEditable=!0,this.logger.error(fe)}})}}onEstimateQuote(){if(!this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2)return!0;const ve=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.direction===l.$I.LOOP_IN?this.loopService.getLoopInQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,ve).pipe((0,y.R)(this.unSubs[2])).subscribe(qe=>{this.quote=qe,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,ve).pipe((0,y.R)(this.unSubs[3])).subscribe(qe=>{this.quote=qe,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(ve){switch(ve.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===l.$I.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===l.$I.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===l.$I.LOOP_OUT&&1!==ve.selectedIndex&&ve.selectedIndex{ve.next(null),ve.complete()})}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(s.Y36(C.so),s.Y36(C.WI),s.Y36(D.yh),s.Y36(A.W),s.Y36(e.qu),s.Y36(O.JJ),s.Y36(E.mQ),s.Y36(P.F0),s.Y36(w.v))},Ke.\u0275cmp=s.Xpm({type:Ke,selectors:[["rtl-loop-modal"]],viewQuery:function(ve,qe){if(1&ve&&s.Gf(Ue,5),2&ve){let yt;s.iGM(yt=s.CRH())&&(qe.stepper=yt.first)}},decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["loopStatusBlock",""],["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,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["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,"linear","selectionChange"],["stepper",""],[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,"quote","termCaption","panelExpanded","showPanel"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],[3,"fxFlex"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["matInput","","placeholder","Sweep Confirmation Target","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","","placeholder","Max Off-chain Routing Fee (%)","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"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Address","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"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["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,"stepNumber","animationDirection","stepNumberChange"],["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(ve,qe){1&ve&&(s.YNc(0,Pe,71,55,"div",0),s.YNc(1,Fe,1,1,"ng-template",null,1,s.W1O),s.YNc(3,Di,20,11,"div",2)),2&ve&&(s.Q6J("ngIf",!qe.flgShowInfo),s.xp6(3),s.Q6J("ngIf",qe.flgShowInfo))},directives:[O.O5,Z.xw,Z.yH,Z.Wh,j.dk,W.lW,j.dn,ie.Vq,ie.C0,e._Y,e.JL,e.sg,ie.VY,L,I.KE,x.Nt,e.wV,e.Fj,r.h,e.JJ,e.u,e.Q7,I.bx,I.R9,ee.ib,ee.yz,ee.yK,C.ZT,I.TO,v.Rr,ce.Hw,re.gM,G.VQ,G.U0,F.pW,Be,O.sg,Re,xe,O.mk,_e.oO],pipes:[O.JJ,O.rS],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[M._]}}),Ke})()},3390:(Ve,Q,m)=>{"use strict";m.d(Q,{h:()=>t});var e=m(5e3);let t=(()=>{class y{constructor(o){this.el=o}ngAfterContentInit(){setTimeout(()=>{this.el.nativeElement.focus()},500)}}return y.\u0275fac=function(o){return new(o||y)(e.Y36(e.SBq))},y.\u0275dir=e.lG2({type:y,selectors:[["","autoFocus",""]],inputs:{appAutoFocus:"appAutoFocus"}}),y})()},6895:(Ve,Q,m)=>{"use strict";m.d(Q,{y:()=>t});var e=m(5e3);let t=(()=>{class y{constructor(){this.copied=new e.vpe}onClick(o){o.preventDefault(),this.payload&&navigator.clipboard&&navigator.clipboard.writeText(this.payload.toString()).then(()=>{this.copied.emit(this.payload.toString())},M=>{this.copied.emit("Error could not copy text: "+JSON.stringify(M))})}}return y.\u0275fac=function(o){return new(o||y)},y.\u0275dir=e.lG2({type:y,selectors:[["","rtlClipboard",""]],hostBindings:function(o,M){1&o&&e.NdJ("click",function(N){return M.onClick(N)})},inputs:{payload:"payload"},outputs:{copied:"copied"}}),y})()},9843:(Ve,Q,m)=>{"use strict";m.d(Q,{F:()=>y});var e=m(3075),t=m(5e3);let y=(()=>{class C{validate(M){return this.max?e.kI.max(+this.max)(M):null}}return C.\u0275fac=function(M){return new(M||C)},C.\u0275dir=t.lG2({type:C,selectors:[["input","max",""]],inputs:{max:"max"},features:[t._Bn([{provide:e.Cf,useExisting:C,multi:!0}])]}),C})()},6534:(Ve,Q,m)=>{"use strict";m.d(Q,{q:()=>y});var e=m(3075),t=m(5e3);let y=(()=>{class C{validate(M){return this.min?e.kI.min(+this.min)(M):null}}return C.\u0275fac=function(M){return new(M||C)},C.\u0275dir=t.lG2({type:C,selectors:[["input","min",""]],inputs:{min:"min"},features:[t._Bn([{provide:e.Cf,useExisting:C,multi:!0}])]}),C})()},1643:(Ve,Q,m)=>{"use strict";m.d(Q,{a1:()=>o,QM:()=>M,eQ:()=>l,fY:()=>N});var e=m(4004),t=m(5e3),y=m(1402),C=m(5986);let o=(()=>{class s{constructor(A,O){this.router=A,this.sessionService=O}canActivate(A){return!(!this.sessionService.getItem("token")||"settings"!==A.url[0].path&&"auth"!==A.url[0].path&&"true"===this.sessionService.getItem("defaultPassword")&&(this.router.navigate(["/settings/auth"]),1))}}return s.\u0275fac=function(A){return new(A||s)(t.LFG(y.F0),t.LFG(C.m))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac}),s})(),M=(()=>{class s{constructor(A){this.sessionService=A}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(A=>A.lndUnlocked))}}return s.\u0275fac=function(A){return new(A||s)(t.LFG(C.m))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac}),s})(),l=(()=>{class s{constructor(A){this.sessionService=A}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(A=>A.clUnlocked))}}return s.\u0275fac=function(A){return new(A||s)(t.LFG(C.m))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac}),s})(),N=(()=>{class s{constructor(A){this.sessionService=A}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(A=>A.eclUnlocked))}}return s.\u0275fac=function(A){return new(A||s)(t.LFG(C.m))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac}),s})()},62:(Ve,Q,m)=>{"use strict";m.d(Q,{v:()=>A});var e=m(1135),t=m(9646),y=m(2843),C=m(5698),o=m(4004),M=m(262),l=m(7731),N=m(5e3),s=m(8104),D=m(5043);let A=(()=>{class O{constructor(P,w){this.dataService=P,this.logger=w,this.currencyUnits=[],this.CurrencyUnitEnum=l.NT,this.conversionData={data:null,last_fetched:null},this.ratesAPIStatus=l.Bn.UN_INITIATED,this.screenSize=l.cu.MD,this.containerSize={width:0,height:0},this.containerSizeUpdated=new e.X(this.containerSize)}getScreenSize(){return this.screenSize}setScreenSize(P){this.screenSize=P}getContainerSize(){return this.containerSize}setContainerSize(P,w){this.containerSize={width:P,height:w},this.logger.info("Container Size: "+JSON.stringify(this.containerSize)),this.containerSizeUpdated.next(this.containerSize)}sortByKey(P,w,Z,j="asc"){return P.sort("number"===Z?"desc"===j?(W,ie)=>+W[w]>+ie[w]?-1:1:(W,ie)=>+W[w]>+ie[w]?1:-1:"desc"===j?(W,ie)=>W[w]>ie[w]?-1:1:(W,ie)=>W[w]>ie[w]?1:-1)}sortDescByKey(P,w){return P.sort((Z,j)=>{const W=+Z[w],ie=+j[w];return W>ie?-1:W{const W=+Z[w],ie=+j[w];return Wie?1:0})}camelCase(P){return P.replace(/(?:^\w|[A-Z]|\b\w)/g,(w,Z)=>w.toUpperCase()).replace(/\s+/g,"").replace(/-/g," ")}titleCase(P,w,Z){return w&&Z&&""!==w&&""!==Z&&(P=P.replace(new RegExp(w,"g"),Z)),P.indexOf("!\n")>0||P.indexOf(".\n")>0?P.split("\n").reduce((j,W)=>j+W.charAt(0).toUpperCase()+W.substring(1).toLowerCase()+"\n",""):P.indexOf(" ")>0?P.split(" ").reduce((j,W)=>j+W.charAt(0).toUpperCase()+W.substring(1).toLowerCase()+" ",""):P.charAt(0).toUpperCase()+P.substring(1).toLowerCase()}convertCurrency(P,w,Z,j,W){const ie=(new Date).valueOf();return W&&j&&this.ratesAPIStatus!==l.Bn.INITIATED&&(w===l.NT.OTHER||Z===l.NT.OTHER)?this.conversionData.data&&this.conversionData.last_fetched&&ie(this.ratesAPIStatus=l.Bn.COMPLETED,this.conversionData.data=ee&&"object"==typeof ee?ee:ee&&"string"==typeof ee?JSON.parse(ee):{},this.conversionData.last_fetched=ie,this.convertWithFiat(P,w,j))),(0,M.K)(ee=>(this.ratesAPIStatus=l.Bn.ERROR,(0,y._)(()=>this.extractErrorMessage(ee,"Currency Conversion Error.")))))):(0,t.of)(this.convertWithoutFiat(P,w))}convertWithoutFiat(P,w){const Z={};switch(Z[l.NT.SATS]=0,Z[l.NT.BTC]=0,w){case l.NT.SATS:Z[l.NT.SATS]=P,Z[l.NT.BTC]=1e-8*P;break;case l.NT.BTC:Z[l.NT.SATS]=1e8*P,Z[l.NT.BTC]=P}return Z}convertWithFiat(P,w,Z){const j={unit:Z,symbol:this.conversionData.data[Z].symbol};switch(j[l.NT.SATS]=0,j[l.NT.BTC]=0,j[l.NT.OTHER]=0,w){case l.NT.SATS:j[l.NT.SATS]=P,j[l.NT.BTC]=1e-8*P,j[l.NT.OTHER]=1e-8*P*this.conversionData.data[Z].last;break;case l.NT.BTC:j[l.NT.SATS]=1e8*P,j[l.NT.BTC]=P,j[l.NT.OTHER]=P*this.conversionData.data[Z].last;break;case l.NT.OTHER:j[l.NT.SATS]=P/this.conversionData.data[Z].last*1e8,j[l.NT.BTC]=P/this.conversionData.data[Z].last,j[l.NT.OTHER]=P}return j}convertTime(P,w,Z){switch(w){case l.Qk.SECS:switch(Z){case l.Qk.MINS:P/=60;break;case l.Qk.HOURS:P/=3600;break;case l.Qk.DAYS:P/=86400}break;case l.Qk.MINS:switch(Z){case l.Qk.SECS:P*=60;break;case l.Qk.HOURS:P/=60;break;case l.Qk.DAYS:P/=1440}break;case l.Qk.HOURS:switch(Z){case l.Qk.SECS:P*=3600;break;case l.Qk.MINS:P*=60;break;case l.Qk.DAYS:P/=24}break;case l.Qk.DAYS:switch(Z){case l.Qk.SECS:P=3600*P*24;break;case l.Qk.MINS:P=60*P*24;break;case l.Qk.HOURS:P*=24}}return P}downloadFile(P,w,Z=".json",j=".csv"){let W=new Blob;W=".json"===Z?new Blob(["\ufeff"+this.convertToCSV(P)],{type:"text/csv;charset=utf-8;"}):new Blob([P.toString()],{type:"text/plain;charset=utf-8"});const ie=document.createElement("a"),ee=URL.createObjectURL(W);-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&ie.setAttribute("target","_blank"),ie.setAttribute("href",ee),ie.setAttribute("download",w+j),ie.style.visibility="hidden",document.body.appendChild(ie),ie.click(),document.body.removeChild(ie)}convertToCSV(P){const w=[];let Z="",j="",W="";return"object"!=typeof P&&(P=JSON.parse(P)),P.forEach((ee,_e)=>{for(const ce in ee)w.findIndex(re=>re===ce)<0&&w.push(ce)}),W=w.join(",")+"\r\n",P.forEach(ee=>{Z="",w.forEach(_e=>{ee.hasOwnProperty(_e)?Array.isArray(ee[_e])?(j="",ee[_e].forEach((ce,re)=>{j+="object"==typeof ce?"("+JSON.stringify(ce).replace(/\,/g,";")+")":"("+ce+")"}),Z+=j+","):Z+="object"==typeof ee[_e]?JSON.stringify(ee[_e]).replace(/\,/g,";")+",":ee[_e]+",":Z+=","}),W+=Z.slice(0,-1)+"\r\n"}),W}isVersionCompatible(P,w){if(P){const Z=P.trim().replace("v","").split("-")[0].split(".")||[],j=w.split(".");return+Z[0]>+j[0]||+Z[0]==+j[0]&&+Z[1]>+j[1]||+Z[0]==+j[0]&&+Z[1]==+j[1]&&+Z[2]>=+j[2]}return!1}extractErrorMessage(P,w="Unknown Error."){const Z=this.titleCase(P.error.text&&"string"==typeof P.error.text&&P.error.text.includes('')?"API Route Does Not Exist.":P.error&&P.error.error&&P.error.error.error&&P.error.error.error.error&&P.error.error.error.error.error&&"string"==typeof P.error.error.error.error.error?P.error.error.error.error.error:P.error&&P.error.error&&P.error.error.error&&P.error.error.error.error&&"string"==typeof P.error.error.error.error?P.error.error.error.error:P.error&&P.error.error&&P.error.error.error&&"string"==typeof P.error.error.error?P.error.error.error:P.error&&P.error.error&&"string"==typeof P.error.error?P.error.error:P.error&&"string"==typeof P.error?P.error:P.error&&P.error.error&&P.error.error.error&&P.error.error.error.error&&P.error.error.error.error.message&&"string"==typeof P.error.error.error.error.message?P.error.error.error.error.message:P.error&&P.error.error&&P.error.error.error&&P.error.error.error.message&&"string"==typeof P.error.error.error.message?P.error.error.error.message:P.error&&P.error.error&&P.error.error.message&&"string"==typeof P.error.error.message?P.error.error.message:P.error&&P.error.message&&"string"==typeof P.error.message?P.error.message:P.message&&"string"==typeof P.message?P.message:w);return this.logger.info("Error Message: "+Z),Z}extractErrorCode(P,w=500){const Z=P.error&&P.error.error&&P.error.error.message&&P.error.error.message.code?P.error.error.message.code:P.error&&P.error.error&&P.error.error.code?P.error.error.code:P.error&&P.error.code?P.error.code:P.code?P.code:P.status?P.status:w;return this.logger.info("Error Code: "+Z),Z}extractErrorNumber(P,w=500){const Z=P.error&&P.error.error&&P.error.error.errno?P.error.error.errno:P.error&&P.error.errno?P.error.errno:P.errno?P.errno:P.status?P.status:w;return this.logger.info("Error Number: "+Z),Z}ngOnDestroy(){this.containerSizeUpdated.next(null),this.containerSizeUpdated.complete()}}return O.\u0275fac=function(P){return new(P||O)(N.LFG(s.D),N.LFG(D.mQ))},O.\u0275prov=N.Yz7({token:O,factory:O.\u0275fac}),O})()},7731:(Ve,Q,m)=>{"use strict";m.d(Q,{pt:()=>t,uA:()=>y,Xz:()=>C,Er:()=>o,LO:()=>M,IV:()=>l,TJ:()=>N,_t:()=>s,Dr:()=>D,Vc:()=>A,vn:()=>O,wZ:()=>E,$v:()=>P,nM:()=>w,g8:()=>Z,ol:()=>j,n_:()=>W,OJ:()=>ie,Qk:()=>ee,NT:()=>_e,Gi:()=>ce,cu:()=>re,HW:()=>de,x$:()=>oe,p7:()=>ae,Zs:()=>b,Fq:()=>i,$I:()=>a,hc:()=>p,Qw:()=>u,gg:()=>_,op:()=>L,JX:()=>I,kO:()=>x,Bn:()=>r,m6:()=>v,IX:()=>G,Xr:()=>F,pg:()=>U,uR:()=>ye,AB:()=>Ce,lr:()=>Be,Df:()=>ze,H_:()=>Ie,hZ:()=>K,gB:()=>Me,OO:()=>we});var e=m(6087);function t(z){const Ge=new e.ye;return Ge.itemsPerPageLabel=z+" per page:",Ge}const y=["Sats","BTC"],C={Sats:"1.0-0",BTC:"1.6-6",OTHER:"1.2-2"},o=[{id:"USD",name:"USD"},{id:"AUD",name:"AUD"},{id:"BRL",name:"BRL"},{id:"CAD",name:"CAD"},{id:"CHF",name:"CHF"},{id:"CLP",name:"CLP"},{id:"CNY",name:"CNY"},{id:"DKK",name:"DKK"},{id:"EUR",name:"EUR"},{id:"GBP",name:"GBP"},{id:"HKD",name:"HKD"},{id:"INR",name:"INR"},{id:"ISK",name:"ISK"},{id:"JPY",name:"JPY"},{id:"KRW",name:"KRW"},{id:"NZD",name:"NZD"},{id:"PLN",name:"PLN"},{id:"RUB",name:"RUB"},{id:"SEK",name:"SEK"},{id:"SGD",name:"SGD"},{id:"THB",name:"THB"},{id:"TWD",name:"TWD"}],M=["SECS","MINS","HOURS","DAYS"],l=10,N=[5,10,25,100],s=[{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)"}],D=[{id:"0",name:"Priority (Default)"},{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],A=[{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 Payment Amount",placeholder:"Percentage Limit"}],O=[{feeRateId:"urgent",feeRateType:"Urgent"},{feeRateId:"normal",feeRateType:"Normal"},{feeRateId:"slow",feeRateType:"Slow"},{feeRateId:"customperkb",feeRateType:"Custom (Sats/vByte)"}],E={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 P=(()=>{return(z=P||(P={})).PAYMENT_RECEIVED="payment-received",z.PAYMENT_RELAYED="payment-relayed",z.PAYMENT_SENT="payment-sent",z.PAYMENT_SETTLING_ONCHAIN="payment-settling-onchain",z.PAYMENT_FAILED="payment-failed",z.CHANNEL_OPENED="channel-opened",z.CHANNEL_STATE_CHANGED="channel-state-changed",z.CHANNEL_CLOSED="channel-closed",P;var z})(),w=(()=>{return(z=w||(w={})).INVOICE="invoice",z.BLOCK_HEIGHT="block-height",z.SEND_PAYMENT="send-payment",w;var z})(),Z=(()=>((Z||(Z={})).INVOICE="invoice",Z))(),j=(()=>{return(z=j||(j={})).OPERATOR="OPERATOR",z.MERCHANT="MERCHANT",z.ALL="ALL",j;var z})(),W=(()=>{return(z=W||(W={})).INFORMATION="Information",z.WARNING="Warning",z.ERROR="Error",z.SUCCESS="Success",z.CONFIRM="Confirm",W;var z})(),ie=(()=>{return(z=ie||(ie={})).JWT="JWT",z.PASSWORD="PASSWORD",ie;var z})(),ee=(()=>{return(z=ee||(ee={})).SECS="SECS",z.MINS="MINS",z.HOURS="HOURS",z.DAYS="DAYS",ee;var z})(),_e=(()=>{return(z=_e||(_e={})).SATS="Sats",z.BTC="BTC",z.OTHER="OTHER",_e;var z})(),ce=(()=>{return(z=ce||(ce={})).ARRAY="ARRAY",z.NUMBER="NUMBER",z.STRING="STRING",z.BOOLEAN="BOOLEAN",z.PASSWORD="PASSWORD",z.DATE="DATE",z.DATE_TIME="DATE_TIME",ce;var z})(),re=(()=>{return(z=re||(re={})).XS="XS",z.SM="SM",z.MD="MD",z.LG="LG",z.XL="XL",re;var z})();const de={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"}},oe={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:""}};var ae=(()=>{return(z=ae||(ae={})).WIRE_INVALID_ONION_VERSION="Invalid Onion Version",z.WIRE_INVALID_ONION_HMAC="Invalid Onion HMAC",z.WIRE_INVALID_ONION_KEY="Invalid Onion Key",z.WIRE_TEMPORARY_CHANNEL_FAILURE="Temporary Channel Failure",z.WIRE_PERMANENT_CHANNEL_FAILURE="Permanent Channel Failure",z.WIRE_REQUIRED_CHANNEL_FEATURE_MISSING="Missing Required Channel Feature",z.WIRE_UNKNOWN_NEXT_PEER="Unknown Next Peer",z.WIRE_AMOUNT_BELOW_MINIMUM="Amount Below Minimum",z.WIRE_FEE_INSUFFICIENT="Insufficient Fee",z.WIRE_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",z.WIRE_EXPIRY_TOO_FAR="Expiry Too Far",z.WIRE_EXPIRY_TOO_SOON="Expiry Too Soon",z.WIRE_CHANNEL_DISABLED="Channel Disabled",z.WIRE_INVALID_ONION_PAYLOAD="Invalid Onion Payload",z.WIRE_INVALID_REALM="Invalid Realm",z.WIRE_PERMANENT_NODE_FAILURE="Permanent Node Failure",z.WIRE_TEMPORARY_NODE_FAILURE="Temporary Node Failure",z.WIRE_REQUIRED_NODE_FEATURE_MISSING="Missing Required Node Feature",z.WIRE_INVALID_ONION_BLINDING="Invalid Onion Binding",z.WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS="Incorrect or Unknow Payment Details",z.WIRE_MPP_TIMEOUT="MPP Timeout",z.WIRE_FINAL_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",z.WIRE_FINAL_INCORRECT_HTLC_AMOUNT="Incorrect HTLC Amount",ae;var z})(),b=(()=>{return(z=b||(b={})).CHANNELD_NORMAL="Active",z.OPENINGD="Opening",z.CHANNELD_AWAITING_LOCKIN="Pending Open",z.CHANNELD_SHUTTING_DOWN="Shutting Down",z.CLOSINGD_SIGEXCHANGE="Closing: Sig Exchange",z.CLOSINGD_COMPLETE="Closed",z.AWAITING_UNILATERAL="Awaiting Unilateral Close",z.FUNDING_SPEND_SEEN="Funding Spend Seen",z.ONCHAIN="Onchain",z.DUALOPEND_OPEN_INIT="Dual Open Initialized",z.DUALOPEND_AWAITING_LOCKIN="Dual Pending Open",b;var z})(),i=(()=>{return(z=i||(i={})).INITIATED="Initiated",z.PREIMAGE_REVEALED="Preimage Revealed",z.HTLC_PUBLISHED="HTLC Published",z.SUCCESS="Successful",z.FAILED="Failed",z.INVOICE_SETTLED="Invoice Settled",i;var z})(),a=(()=>{return(z=a||(a={})).LOOP_OUT="LOOP_OUT",z.LOOP_IN="LOOP_IN",a;var z})(),p=(()=>{return(z=p||(p={})).SWAP_OUT="SWAP_OUT",z.SWAP_IN="SWAP_IN",p;var z})(),u=(()=>{return(z=u||(u={}))["swap.created"]="Swap Created",z["swap.expired"]="Swap Expired",z["invoice.set"]="Invoice Set",z["invoice.paid"]="Invoice Paid",z["invoice.pending"]="Invoice Pending",z["invoice.settled"]="Invoice Settled",z["invoice.failedToPay"]="Invoice Failed To Pay",z["channel.created"]="Channel Created",z["transaction.failed"]="Transaction Failed",z["transaction.mempool"]="Transaction Mempool",z["transaction.claimed"]="Transaction Claimed",z["transaction.refunded"]="Transaction Refunded",z["transaction.confirmed"]="Transaction Confirmed",z["swap.refunded"]="Swap Refunded",z["swap.abandoned"]="Swap Abandoned",u;var z})();const _=[{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}],L=["MONTHLY","YEARLY"];var I=(()=>{return(z=I||(I={})).LOOP="LOOP",z.BOLTZ="BOLTZ",z.OFFERS="OFFERS",I;var z})();const x=["password","changeme","moneyprintergobrrr"];var r=(()=>{return(z=r||(r={})).UN_INITIATED="UN_INITIATED",z.INITIATED="INITIATED",z.COMPLETED="COMPLETED",z.ERROR="ERROR",r;var z})();const v={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_SETTING:"Updating Setting...",UPDATE_UI_SETTINGS:"Updating Settings...",UPDATE_NODE_SETTINGS:"Updating Node Settings...",UPDATE_SELECTED_NODE:"Updating Selected Node...",OPEN_CONFIG_FILE:"Opening Config File...",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_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...",LOG_OUT:"Logging Out..."};var G=(()=>{return(z=G||(G={})).INVOICE="INVOICE",z.OFFER="OFFER",z.KEYSEND="KEYSEND",G;var z})(),F=(()=>{return(z=F||(F={})).FEES="FEES",z.EVENTS="EVENTS",F;var z})(),U=(()=>{return(z=U||(U={})).VOID="VOID",z.SET_API_URL_ECL="SET_API_URL_ECL",z.UPDATE_SELECTED_NODE_OPTIONS="UPDATE_SELECTED_NODE_OPTIONS",z.UPDATE_API_CALL_STATUS_ROOT="UPDATE_API_CALL_STATUS_ROOT",z.RESET_ROOT_STORE="RESET_ROOT_STORE",z.CLOSE_ALL_DIALOGS="CLOSE_ALL_DIALOGS",z.OPEN_SNACK_BAR="OPEN_SNACKBAR",z.OPEN_SPINNER="OPEN_SPINNER",z.CLOSE_SPINNER="CLOSE_SPINNER",z.OPEN_ALERT="OPEN_ALERT",z.CLOSE_ALERT="CLOSE_ALERT",z.OPEN_CONFIRMATION="OPEN_CONFIRMATION",z.CLOSE_CONFIRMATION="CLOSE_CONFIRMATION",z.SHOW_PUBKEY="SHOW_PUBKEY",z.FETCH_CONFIG="FETCH_CONFIG",z.SHOW_CONFIG="SHOW_CONFIG",z.FETCH_STORE="FETCH_STORE",z.SET_STORE="SET_STORE",z.FETCH_RTL_CONFIG="FETCH_RTL_CONFIG",z.SET_RTL_CONFIG="SET_RTL_CONFIG",z.SAVE_SSO="SAVE_SSO",z.SAVE_SETTINGS="SAVE_SETTINGS",z.TWO_FA_SAVE_SETTINGS="TWO_FA_SAVE_SETTINGS",z.SET_SELECTED_NODE="SET_SELECTED_NODE",z.UPDATE_ROOT_NODE_SETTINGS="UPDATE_ROOT_NODE_SETTINGS",z.UPDATE_SERVICE_SETTINGS="UPDATE_SERVICE_SETTINGS",z.SET_NODE_DATA="SET_NODE_DATA",z.IS_AUTHORIZED="IS_AUTHORIZED",z.IS_AUTHORIZED_RES="IS_AUTHORIZED_RES",z.LOGIN="LOGIN",z.VERIFY_TWO_FA="VERIFY_TWO_FA",z.LOGOUT="LOGOUT",z.RESET_PASSWORD="RESET_PASSWORD",z.RESET_PASSWORD_RES="RESET_PASSWORD_RES",z.FETCH_FILE="FETCH_FILE",z.SHOW_FILE="SHOW_FILE",U;var z})(),ye=(()=>{return(z=ye||(ye={})).RESET_LND_STORE="RESET_LND_STORE",z.UPDATE_API_CALL_STATUS_LND="UPDATE_API_CALL_STATUS_LND",z.SET_CHILD_NODE_SETTINGS_LND="SET_CHILD_NODE_SETTINGS_LND",z.FETCH_INFO_LND="FETCH_INFO_LND",z.SET_INFO_LND="SET_INFO_LND",z.FETCH_PEERS_LND="FETCH_PEERS_LND",z.SET_PEERS_LND="SET_PEERS_LND",z.SAVE_NEW_PEER_LND="SAVE_NEW_PEER_LND",z.NEWLY_ADDED_PEER_LND="NEWLY_ADDED_PEER_LND",z.DETACH_PEER_LND="DETACH_PEER_LND",z.REMOVE_PEER_LND="REMOVE_PEER_LND",z.SAVE_NEW_INVOICE_LND="SAVE_NEW_INVOICE_LND",z.NEWLY_SAVED_INVOICE_LND="NEWLY_SAVED_INVOICE_LND",z.ADD_INVOICE_LND="ADD_INVOICE_LND",z.FETCH_FEES_LND="FETCH_FEES_LND",z.SET_FEES_LND="SET_FEES_LND",z.FETCH_BLOCKCHAIN_BALANCE_LND="FETCH_BLOCKCHAIN_BALANCE_LND",z.SET_BLOCKCHAIN_BALANCE_LND="SET_BLOCKCHAIN_BALANCE_LND",z.FETCH_NETWORK_LND="FETCH_NETWORK_LND",z.SET_NETWORK_LND="SET_NETWORK_LND",z.FETCH_CHANNELS_LND="FETCH_CHANNELS_LND",z.FETCH_PENDING_CHANNELS_LND="FETCH_PENDING_CHANNELS_LND",z.FETCH_CLOSED_CHANNELS_LND="FETCH_CLOSED_CHANNELS_LND",z.SET_CHANNELS_LND="SET_CHANNELS_LND",z.SET_PENDING_CHANNELS_LND="SET_PENDING_CHANNELS_LND",z.SET_CLOSED_CHANNELS_LND="SET_CLOSED_CHANNELS_LND",z.UPDATE_CHANNEL_LND="UPDATE_CHANNEL_LND",z.SAVE_NEW_CHANNEL_LND="SAVE_NEW_CHANNEL_LND",z.CLOSE_CHANNEL_LND="CLOSE_CHANNEL_LND",z.REMOVE_CHANNEL_LND="REMOVE_CHANNEL_LND",z.BACKUP_CHANNELS_LND="BACKUP_CHANNELS_LND",z.VERIFY_CHANNEL_LND="VERIFY_CHANNEL_LND",z.BACKUP_CHANNELS_RES_LND="BACKUP_CHANNELS_RES_LND",z.VERIFY_CHANNEL_RES_LND="VERIFY_CHANNEL_RES_LND",z.RESTORE_CHANNELS_LIST_LND="RESTORE_CHANNELS_LIST_LND",z.SET_RESTORE_CHANNELS_LIST_LND="SET_RESTORE_CHANNELS_LIST_LND",z.RESTORE_CHANNELS_LND="RESTORE_CHANNELS_LND",z.RESTORE_CHANNELS_RES_LND="RESTORE_CHANNELS_RES_LND",z.FETCH_INVOICES_LND="FETCH_INVOICES_LND",z.SET_INVOICES_LND="SET_INVOICES_LND",z.UPDATE_INVOICE_LND="UPDATE_INVOICE_LND",z.UPDATE_PAYMENT_LND="UPDATE_PAYMENT_LND",z.SET_TOTAL_INVOICES_LND="SET_TOTAL_INVOICES_LND",z.FETCH_TRANSACTIONS_LND="FETCH_TRANSACTIONS_LND",z.SET_TRANSACTIONS_LND="SET_TRANSACTIONS_LND",z.FETCH_UTXOS_LND="FETCH_UTXOS_LND",z.SET_UTXOS_LND="SET_UTXOS_LND",z.FETCH_PAYMENTS_LND="FETCH_PAYMENTS_LND",z.SET_PAYMENTS_LND="SET_PAYMENTS_LND",z.SEND_PAYMENT_LND="SEND_PAYMENT_LND",z.SEND_PAYMENT_STATUS_LND="SEND_PAYMENT_STATUS_LND",z.FETCH_GRAPH_NODE_LND="FETCH_GRAPH_NODE_LND",z.SET_GRAPH_NODE_LND="SET_GRAPH_NODE_LND",z.GET_NEW_ADDRESS_LND="GET_NEW_ADDRESS_LND",z.SET_NEW_ADDRESS_LND="SET_NEW_ADDRESS_LND",z.SET_CHANNEL_TRANSACTION_LND="SET_CHANNEL_TRANSACTION_LND",z.SET_CHANNEL_TRANSACTION_RES_LND="SET_CHANNEL_TRANSACTION_RES_LND",z.GEN_SEED_LND="GEN_SEED_LND",z.GEN_SEED_RESPONSE_LND="GEN_SEED_RESPONSE_LND",z.INIT_WALLET_LND="INIT_WALLET_LND",z.INIT_WALLET_RESPONSE_LND="INIT_WALLET_RESPONSE_LND",z.UNLOCK_WALLET_LND="UNLOCK_WALLET_LND",z.PEER_LOOKUP_LND="PEER_LOOKUP_LND",z.CHANNEL_LOOKUP_LND="CHANNEL_LOOKUP_LND",z.INVOICE_LOOKUP_LND="INVOICE_LOOKUP_LND",z.PAYMENT_LOOKUP_LND="PAYMENT_LOOKUP_LND",z.SET_LOOKUP_LND="SET_LOOKUP_LND",z.GET_FORWARDING_HISTORY_LND="GET_FORWARDING_HISTORY_LND",z.SET_FORWARDING_HISTORY_LND="SET_FORWARDING_HISTORY_LND",z.GET_QUERY_ROUTES_LND="GET_QUERY_ROUTES_LND",z.SET_QUERY_ROUTES_LND="SET_QUERY_ROUTES_LND",z.GET_ALL_LIGHTNING_TRANSATIONS_LND="GET_ALL_LIGHTNING_TRANSATIONS_LND",z.SET_ALL_LIGHTNING_TRANSATIONS_LND="SET_ALL_LIGHTNING_TRANSATIONS_LND",ye;var z})(),Ce=(()=>{return(z=Ce||(Ce={})).RESET_CLN_STORE="RESET_CLN_STORE",z.UPDATE_API_CALL_STATUS_CLN="UPDATE_API_CALL_STATUS_CLN",z.SET_CHILD_NODE_SETTINGS_CLN="SET_CHILD_NODE_SETTINGS_CLN",z.FETCH_INFO_CLN="FETCH_INFO_CL_CLN",z.SET_INFO_CLN="SET_INFO_CLN",z.FETCH_FEES_CLN="FETCH_FEES_CLN",z.SET_FEES_CLN="SET_FEES_CLN",z.FETCH_FEE_RATES_CLN="FETCH_FEE_RATES_CLN",z.SET_FEE_RATES_CLN="SET_FEE_RATES_CLN",z.FETCH_BALANCE_CLN="FETCH_BALANCE_CLN",z.SET_BALANCE_CLN="SET_BALANCE_CLN",z.FETCH_LOCAL_REMOTE_BALANCE_CLN="FETCH_LOCAL_REMOTE_BALANCE_CLN",z.SET_LOCAL_REMOTE_BALANCE_CLN="SET_LOCAL_REMOTE_BALANCE_CLN",z.GET_NEW_ADDRESS_CLN="GET_NEW_ADDRESS_CLN",z.SET_NEW_ADDRESS_CLN="SET_NEW_ADDRESS_CLN",z.FETCH_UTXOS_CLN="FETCH_UTXOS_CLN",z.SET_UTXOS_CLN="SET_UTXOS_CLN",z.FETCH_PEERS_CLN="FETCH_PEERS_CLN",z.SET_PEERS_CLN="SET_PEERS_CLN",z.SAVE_NEW_PEER_CLN="SAVE_NEW_PEER_CLN",z.NEWLY_ADDED_PEER_CLN="NEWLY_ADDED_PEER_CLN",z.ADD_PEER_CLN="ADD_PEER_CLN",z.DETACH_PEER_CLN="DETACH_PEER_CLN",z.REMOVE_PEER_CLN="REMOVE_PEER_CLN",z.FETCH_CHANNELS_CLN="FETCH_CHANNELS_CLN",z.SET_CHANNELS_CLN="SET_CHANNELS_CLN",z.UPDATE_CHANNEL_CLN="UPDATE_CHANNEL_CLN",z.SAVE_NEW_CHANNEL_CLN="SAVE_NEW_CHANNEL_CLN",z.CLOSE_CHANNEL_CLN="CLOSE_CHANNEL_CLN",z.REMOVE_CHANNEL_CLN="REMOVE_CHANNEL_CLN",z.FETCH_PAYMENTS_CLN="FETCH_PAYMENTS_CLN",z.SET_PAYMENTS_CLN="SET_PAYMENTS_CLN",z.SEND_PAYMENT_CLN="SEND_PAYMENT_CLN",z.SEND_PAYMENT_STATUS_CLN="SEND_PAYMENT_STATUS_CLN",z.GET_QUERY_ROUTES_CLN="GET_QUERY_ROUTES_CLN",z.SET_QUERY_ROUTES_CLN="SET_QUERY_ROUTES_CLN",z.PEER_LOOKUP_CLN="PEER_LOOKUP_CLN",z.CHANNEL_LOOKUP_CLN="CHANNEL_LOOKUP_CLN",z.INVOICE_LOOKUP_CLN="INVOICE_LOOKUP_CLN",z.SET_LOOKUP_CLN="SET_LOOKUP_CLN",z.GET_FORWARDING_HISTORY_CLN="GET_FORWARDING_HISTORY_CLN",z.SET_FORWARDING_HISTORY_CLN="SET_FORWARDING_HISTORY_CLN",z.GET_FAILED_FORWARDING_HISTORY_CLN="GET_FAILED_FORWARDING_HISTORY_CLN",z.SET_FAILED_FORWARDING_HISTORY_CLN="SET_FAILED_FORWARDING_HISTORY_CLN",z.GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",z.SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",z.FETCH_INVOICES_CLN="FETCH_INVOICES_CLN",z.SET_INVOICES_CLN="SET_INVOICES_CLN",z.SAVE_NEW_INVOICE_CLN="SAVE_NEW_INVOICE_CLN",z.ADD_INVOICE_CLN="ADD_INVOICE_CLN",z.UPDATE_INVOICE_CLN="UPDATE_INVOICE_CLN",z.DELETE_EXPIRED_INVOICE_CLN="DELETE_EXPIRED_INVOICE_CLN",z.SET_CHANNEL_TRANSACTION_CLN="SET_CHANNEL_TRANSACTION_CLN",z.SET_CHANNEL_TRANSACTION_RES_CLN="SET_CHANNEL_TRANSACTION_RES_CLN",z.FETCH_OFFER_INVOICE_CLN="FETCH_OFFER_INVOICE_CLN",z.SET_OFFER_INVOICE_CLN="SET_OFFER_INVOICE_CLN",z.FETCH_OFFERS_CLN="FETCH_OFFERS_CLN",z.SET_OFFERS_CLN="SET_OFFERS_CLN",z.SAVE_NEW_OFFER_CLN="SAVE_NEW_OFFER_CLN",z.ADD_OFFER_CLN="ADD_OFFER_CLN",z.DISABLE_OFFER_CLN="DISABLE_OFFER_CLN",z.UPDATE_OFFER_CLN="UPDATE_OFFER_CLN",z.FETCH_OFFER_BOOKMARKS_CLN="FETCH_OFFER_BOOKMARKS_CLN",z.SET_OFFER_BOOKMARKS_CLN="SET_OFFER_BOOKMARKS_CLN",z.ADD_UPDATE_OFFER_BOOKMARK_CLN="ADD_UPDATE_OFFER_BOOKMARK_CLN",z.DELETE_OFFER_BOOKMARK_CLN="DELETE_OFFER_BOOKMARK_CLN",z.REMOVE_OFFER_BOOKMARK_CLN="REMOVE_OFFER_BOOKMARK_CL",Ce;var z})(),Be=(()=>{return(z=Be||(Be={})).RESET_ECL_STORE="RESET_ECL_STORE",z.UPDATE_API_CALL_STATUS_ECL="UPDATE_API_CALL_STATUS_ECL",z.SET_CHILD_NODE_SETTINGS_ECL="SET_CHILD_NODE_SETTINGS_ECL",z.FETCH_INFO_ECL="FETCH_INFO_ECL",z.SET_INFO_ECL="SET_INFO_ECL",z.FETCH_FEES_ECL="FETCH_FEES_ECL",z.SET_FEES_ECL="SET_FEES_ECL",z.FETCH_CHANNELS_ECL="FETCH_CHANNELS_ECL",z.SET_ACTIVE_CHANNELS_ECL="SET_ACTIVE_CHANNELS_ECL",z.SET_PENDING_CHANNELS_ECL="SET_PENDING_CHANNELS_ECL",z.SET_INACTIVE_CHANNELS_ECL="SET_INACTIVE_CHANNELS_ECL",z.FETCH_ONCHAIN_BALANCE_ECL="FETCH_ONCHAIN_BALANCE_ECL",z.SET_ONCHAIN_BALANCE_ECL="SET_ONCHAIN_BALANCE_ECL",z.FETCH_LIGHTNING_BALANCE_ECL="FETCH_LIGHTNING_BALANCE_ECL",z.SET_LIGHTNING_BALANCE_ECL="SET_LIGHTNING_BALANCE_ECL",z.SET_CHANNELS_STATUS_ECL="SET_CHANNELS_STATUS_ECL",z.FETCH_PEERS_ECL="FETCH_PEERS_ECL",z.SET_PEERS_ECL="SET_PEERS_ECL",z.SAVE_NEW_PEER_ECL="SAVE_NEW_PEER_ECL",z.NEWLY_ADDED_PEER_ECL="NEWLY_ADDED_PEER_ECL",z.ADD_PEER_ECL="ADD_PEER_ECL",z.DETACH_PEER_ECL="DETACH_PEER_ECL",z.REMOVE_PEER_ECL="REMOVE_PEER_ECL",z.GET_NEW_ADDRESS_ECL="GET_NEW_ADDRESS_ECL",z.SET_NEW_ADDRESS_ECL="SET_NEW_ADDRESS_ECL",z.SAVE_NEW_CHANNEL_ECL="SAVE_NEW_CHANNEL_ECL",z.UPDATE_CHANNEL_ECL="UPDATE_CHANNEL_ECL",z.CLOSE_CHANNEL_ECL="CLOSE_CHANNEL_ECL",z.REMOVE_CHANNEL_ECL="REMOVE_CHANNEL_ECL",z.FETCH_PAYMENTS_ECL="FETCH_PAYMENTS_ECL",z.SET_PAYMENTS_ECL="SET_PAYMENTS_ECL",z.GET_QUERY_ROUTES_ECL="GET_QUERY_ROUTES_ECL",z.SET_QUERY_ROUTES_ECL="SET_QUERY_ROUTES_ECL",z.SEND_PAYMENT_ECL="SEND_PAYMENT_ECL",z.SEND_PAYMENT_STATUS_ECL="SEND_PAYMENT_STATUS_ECL",z.FETCH_TRANSACTIONS_ECL="FETCH_TRANSACTIONS_ECL",z.SET_TRANSACTIONS_ECL="SET_TRANSACTIONS_ECL",z.SEND_ONCHAIN_FUNDS_ECL="SEND_ONCHAIN_FUNDS_ECL",z.SEND_ONCHAIN_FUNDS_RES_ECL="SEND_ONCHAIN_FUNDS_RES_ECL",z.FETCH_INVOICES_ECL="FETCH_INVOICES_ECL",z.SET_INVOICES_ECL="SET_INVOICES_ECL",z.SET_TOTAL_INVOICES_ECL="SET_TOTAL_INVOICES_ECL",z.CREATE_INVOICE_ECL="CREATE_INVOICE_ECL",z.ADD_INVOICE_ECL="ADD_INVOICE_ECL",z.UPDATE_INVOICE_ECL="UPDATE_INVOICE_ECL",z.PEER_LOOKUP_ECL="PEER_LOOKUP_ECL",z.INVOICE_LOOKUP_ECL="INVOICE_LOOKUP_ECL",z.SET_LOOKUP_ECL="SET_LOOKUP_ECL",z.UPDATE_CHANNEL_STATE_ECL="UPDATE_CHANNEL_STATE_ECL",z.UPDATE_RELAYED_PAYMENT_ECL="UPDATE_RELAYED_PAYMENT_ECL",Be;var z})();const ze=[{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"}];var Ie=(()=>{return(z=Ie||(Ie={})).gossip_queries_ex="Gossip queries including additional information",z.option_anchor_outputs="Anchor outputs",z.option_data_loss_protect="Extra channel re-establish fields",z.var_onion_optin="Variable-length routing onion payloads",z.option_static_remotekey="Static key for remote output",z.option_support_large_channel="Create large channels",z.option_anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",z.payment_secret="Payment secret field",z.option_shutdown_anysegwit="Future segwit versions allowed in shutdown",z.basic_mpp="Basic multi-part payments",z.gossip_queries="More sophisticated gossip control",z.option_upfront_shutdown_script="Shutdown script pubkey when opening channel",z.anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",z.amp="AMP",Ie;var z})(),K=(()=>{return(z=K||(K={}))["data-loss-protect"]="Extra channel re-establish fields",z["upfront-shutdown-script"]="Shutdown script pubkey when opening channel",z["gossip-queries"]="More sophisticated gossip control",z["tlv-onion"]="Variable-length routing onion payloads",z["ext-gossip-queries"]="Gossip queries can include additional information",z["static-remote-key"]="Static key for remote output",z["payment-addr"]="Payment secret field",z["multi-path-payments"]="Basic multi-part payments",z["wumbo-channels"]="Wumbo Channels",z.anchors="Anchor outputs",z["anchors-zero-fee-htlc-tx"]="Anchor commitment type with zero fee HTLC transactions",z.amp="AMP",K;var z})();const Me=[{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 we=(()=>{return(z=we||(we={})).OFFERED="offered",z.SETTLED="settled",z.FAILED="failed",z.LOCAL_FAILED="local_failed",we;var z})()},8104:(Ve,Q,m)=>{"use strict";m.d(Q,{D:()=>re});var e=m(8138),t=m(1135),y=m(7579),C=m(2843),o=m(9646),M=m(590),l=m(5577),N=m(2722),s=m(4004),D=m(262),A=m(1365),O=m(2340),E=m(7731),P=m(1786),w=m(7861),Z=m(6523),j=m(6529),W=m(5e3),ie=m(5620),ee=m(5043),_e=m(7261),ce=m(9808);let re=(()=>{class de{constructor(ae,b,i,a,p){this.httpClient=ae,this.store=b,this.logger=i,this.snackBar=a,this.titleCasePipe=p,this.APIUrl=O.T5,this.lnImplementation="",this.lnImplementationUpdated=new t.X(null),this.unSubs=[new y.x,new y.x,new y.x,new y.x,new y.x,new y.x,new y.x,new y.x,new y.x,new y.x,new y.x,new y.x,new y.x]}setLnImplementation(ae){this.lnImplementation=ae.toLowerCase(),this.lnImplementationUpdated.next(this.lnImplementation)}getFiatRates(){return this.httpClient.get(O.NZ.CONF_API+"/rates")}decodePayment(ae,b){return this.lnImplementationUpdated.pipe((0,M.P)(i=>null!==i),(0,l.z)(i=>{let a=this.APIUrl+"/"+i+O.NZ.PAYMENTS_API+"/decode/"+ae;return"cln"===i&&(a=this.APIUrl+"/"+i+O.NZ.UTILITY_API+"/decode/"+ae),this.store.dispatch((0,w.ac)({payload:E.m6.DECODE_PAYMENT})),this.httpClient.get(a).pipe((0,N.R)(this.unSubs[0]),(0,s.U)(p=>(this.store.dispatch((0,w.uO)({payload:E.m6.DECODE_PAYMENT})),p)),(0,D.K)(p=>(b?this.handleErrorWithoutAlert("Decode Payment",E.m6.DECODE_PAYMENT,p):this.handleErrorWithAlert("decodePaymentData",E.m6.DECODE_PAYMENT,"Decode Payment Failed",a,p),(0,C._)(()=>new Error(this.extractErrorMessage(p))))))}))}decodePayments(ae){return this.lnImplementationUpdated.pipe((0,M.P)(b=>null!==b),(0,l.z)(b=>{let i="",a="";return"ecl"===b?(i=this.APIUrl+"/"+b+O.NZ.PAYMENTS_API+"/getsentinfos",a=E.m6.GET_SENT_PAYMENTS):"cln"===b?(i=this.APIUrl+"/"+b+O.NZ.UTILITY_API,a=E.m6.DECODE_PAYMENTS):(i=this.APIUrl+"/"+b+O.NZ.PAYMENTS_API,a=E.m6.DECODE_PAYMENTS),this.store.dispatch((0,w.ac)({payload:a})),this.httpClient.post(i,{payments:ae}).pipe((0,N.R)(this.unSubs[1]),(0,s.U)(p=>(this.store.dispatch((0,w.uO)({payload:a})),p)),(0,D.K)(p=>(this.handleErrorWithAlert("decodePaymentsData",a,a+" Failed",i,p),(0,C._)(()=>new Error(this.extractErrorMessage(p))))))}))}getAliasesFromPubkeys(ae,b){return this.lnImplementationUpdated.pipe((0,M.P)(i=>null!==i),(0,l.z)(i=>{if(b){const a=(new e.LE).set("pubkeys",ae);return this.httpClient.get(this.APIUrl+"/"+i+O.NZ.NETWORK_API+"/nodes",{params:a})}return this.httpClient.get(this.APIUrl+"/"+i+O.NZ.NETWORK_API+"/node/"+ae)}))}signMessage(ae){return this.lnImplementationUpdated.pipe((0,M.P)(b=>null!==b),(0,l.z)(b=>{let i=this.APIUrl+"/"+b+O.NZ.MESSAGE_API+"/sign";return"cln"===b&&(i=this.APIUrl+"/"+b+O.NZ.UTILITY_API+"/sign"),this.store.dispatch((0,w.ac)({payload:E.m6.SIGN_MESSAGE})),this.httpClient.post(i,{message:ae}).pipe((0,N.R)(this.unSubs[2]),(0,s.U)(a=>(this.store.dispatch((0,w.uO)({payload:E.m6.SIGN_MESSAGE})),a)),(0,D.K)(a=>(this.handleErrorWithAlert("signMessageData",E.m6.SIGN_MESSAGE,"Sign Message Failed",i,a),(0,C._)(()=>new Error(this.extractErrorMessage(a))))))}))}verifyMessage(ae,b){return this.lnImplementationUpdated.pipe((0,M.P)(i=>null!==i),(0,l.z)(i=>{let a=this.APIUrl+"/"+i+O.NZ.MESSAGE_API+"/verify";return"cln"===i&&(a=this.APIUrl+"/"+i+O.NZ.UTILITY_API+"/verify"),this.store.dispatch((0,w.ac)({payload:E.m6.VERIFY_MESSAGE})),this.httpClient.post(a,{message:ae,signature:b}).pipe((0,N.R)(this.unSubs[3]),(0,s.U)(p=>(this.store.dispatch((0,w.uO)({payload:E.m6.VERIFY_MESSAGE})),p)),(0,D.K)(p=>(this.handleErrorWithAlert("verifyMessageData",E.m6.VERIFY_MESSAGE,"Verify Message Failed",a,p),(0,C._)(()=>new Error(this.extractErrorMessage(p))))))}))}bumpFee(ae,b,i,a){return this.lnImplementationUpdated.pipe((0,M.P)(p=>null!==p),(0,l.z)(p=>{const u={txid:ae,outputIndex:b};return i&&(u.targetConf=i),a&&(u.satPerByte=a),this.store.dispatch((0,w.ac)({payload:E.m6.BUMP_FEE})),this.httpClient.post(this.APIUrl+"/"+p+O.NZ.WALLET_API+"/bumpfee",u).pipe((0,N.R)(this.unSubs[4]),(0,s.U)(_=>(this.store.dispatch((0,w.uO)({payload:E.m6.BUMP_FEE})),this.snackBar.open("Successfully bumped the fee. Use the block explorer to verify transaction."),_)),(0,D.K)(_=>(this.handleErrorWithoutAlert("Bump Fee",E.m6.BUMP_FEE,_),(0,C._)(()=>new Error(this.extractErrorMessage(_))))))}))}labelUTXO(ae,b,i=!0){return this.lnImplementationUpdated.pipe((0,M.P)(a=>null!==a),(0,l.z)(a=>{const p={txid:ae,label:b,overwrite:i};return this.store.dispatch((0,w.ac)({payload:E.m6.LABEL_UTXO})),this.httpClient.post(this.APIUrl+"/"+a+O.NZ.WALLET_API+"/label",p).pipe((0,N.R)(this.unSubs[5]),(0,s.U)(u=>(this.store.dispatch((0,w.uO)({payload:E.m6.LABEL_UTXO})),u)),(0,D.K)(u=>(this.handleErrorWithoutAlert("Lease UTXO",E.m6.LABEL_UTXO,u),(0,C._)(()=>new Error(this.extractErrorMessage(u))))))}))}leaseUTXO(ae,b){return this.lnImplementationUpdated.pipe((0,M.P)(i=>null!==i),(0,l.z)(i=>{const a={txid:ae,outputIndex:b};return this.store.dispatch((0,w.ac)({payload:E.m6.LEASE_UTXO})),this.httpClient.post(this.APIUrl+"/"+i+O.NZ.WALLET_API+"/lease",a).pipe((0,N.R)(this.unSubs[6]),(0,s.U)(p=>{this.store.dispatch((0,w.uO)({payload:E.m6.LEASE_UTXO})),this.store.dispatch((0,Z.mC)()),this.store.dispatch((0,Z.Ly)());const u=new Date(1e3*p.expiration),_=Math.round(u.getTime())-60*u.getTimezoneOffset();this.snackBar.open("The UTXO has been leased till "+new Date(_).toString().substring(4,21).replace(" ","/").replace(" ","/").toUpperCase()+".")}),(0,D.K)(p=>(this.handleErrorWithoutAlert("Lease UTXO",E.m6.LEASE_UTXO,p),(0,C._)(()=>new Error(this.extractErrorMessage(p))))))}))}getForwardingHistory(ae,b){return this.lnImplementationUpdated.pipe((0,M.P)(i=>null!==i),(0,l.z)(i=>{const a={end_time:b,start_time:ae};return this.store.dispatch((0,w.ac)({payload:E.m6.GET_FORWARDING_HISTORY})),this.httpClient.post(this.APIUrl+"/"+i+O.NZ.SWITCH_API,a).pipe((0,N.R)(this.unSubs[7]),(0,A.M)(this.store.select(j._f)),(0,l.z)(([p,u])=>{if(p.forwarding_events){const _=[...u.channels,...u.closedChannels];p.forwarding_events.forEach(L=>{if(_&&_.length>0)for(let I=0;I<_.length;I++){if(_[I].chan_id.toString()===L.chan_id_in&&(L.alias_in=_[I].remote_alias?_[I].remote_alias:L.chan_id_in,L.alias_out)||_[I].chan_id.toString()===L.chan_id_out&&(L.alias_out=_[I].remote_alias?_[I].remote_alias:L.chan_id_out,L.alias_in))return;I===_.length-1&&(L.alias_in||(L.alias_in=L.chan_id_in),L.alias_out||(L.alias_out=L.chan_id_out))}else L.alias_in=L.chan_id_in,L.alias_out=L.chan_id_out})}else p={};return this.store.dispatch((0,w.uO)({payload:E.m6.GET_FORWARDING_HISTORY})),(0,o.of)(p)}),(0,D.K)(p=>(this.handleErrorWithAlert("getForwardingHistoryData",E.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/"+i+O.NZ.SWITCH_API,p),(0,C._)(()=>new Error(this.extractErrorMessage(p))))))}))}listNetworkNodes(ae=""){return this.lnImplementationUpdated.pipe((0,M.P)(b=>null!==b),(0,l.z)(b=>(this.store.dispatch((0,w.ac)({payload:E.m6.LIST_NETWORK_NODES})),this.httpClient.get(this.APIUrl+"/"+b+O.NZ.NETWORK_API+"/listNodes"+ae).pipe((0,N.R)(this.unSubs[8]),(0,l.z)(i=>(this.store.dispatch((0,w.uO)({payload:E.m6.LIST_NETWORK_NODES})),(0,o.of)(i))),(0,D.K)(i=>(this.handleErrorWithoutAlert("List Network Nodes",E.m6.LIST_NETWORK_NODES,i),(0,C._)(()=>this.extractErrorMessage(i))))))))}listConfigs(){return this.lnImplementationUpdated.pipe((0,M.P)(ae=>null!==ae),(0,l.z)(ae=>(this.store.dispatch((0,w.ac)({payload:E.m6.GET_LIST_CONFIGS})),this.httpClient.get(this.APIUrl+"/"+ae+O.NZ.UTILITY_API+"/listConfigs").pipe((0,N.R)(this.unSubs[9]),(0,l.z)(b=>(this.store.dispatch((0,w.uO)({payload:E.m6.GET_LIST_CONFIGS})),(0,o.of)(b))),(0,D.K)(b=>(this.handleErrorWithoutAlert("List Configurations",E.m6.GET_LIST_CONFIGS,b),(0,C._)(()=>this.extractErrorMessage(b))))))))}getOrUpdateFunderPolicy(ae,b,i,a,p,u){return this.lnImplementationUpdated.pipe((0,M.P)(_=>null!==_),(0,l.z)(_=>{const L=ae?{policy:ae,policy_mod:b,lease_fee_base_msat:i,lease_fee_basis:a,channel_fee_max_base_msat:p,channel_fee_max_proportional_thousandths:u}:null;return this.store.dispatch((0,w.ac)({payload:E.m6.GET_FUNDER_POLICY})),this.httpClient.post(this.APIUrl+"/"+_+O.NZ.CHANNELS_API+"/funderUpdate",L).pipe((0,N.R)(this.unSubs[10]),(0,s.U)(I=>(this.store.dispatch((0,w.uO)({payload:E.m6.GET_FUNDER_POLICY})),L&&this.store.dispatch((0,w.jW)({payload:"Funder Policy Updated Successfully!"})),I)),(0,D.K)(I=>(this.handleErrorWithoutAlert("Funder Policy",E.m6.GET_FUNDER_POLICY,I),(0,C._)(()=>new Error(this.extractErrorMessage(I))))))}))}extractErrorMessage(ae,b="Unknown Error."){return this.titleCasePipe.transform(ae.error.text&&"string"==typeof ae.error.text&&ae.error.text.includes('')?"API Route Does Not Exist.":ae.error&&ae.error.error&&ae.error.error.error&&ae.error.error.error.error&&ae.error.error.error.error.error&&"string"==typeof ae.error.error.error.error.error?ae.error.error.error.error.error:ae.error&&ae.error.error&&ae.error.error.error&&ae.error.error.error.error&&"string"==typeof ae.error.error.error.error?ae.error.error.error.error:ae.error&&ae.error.error&&ae.error.error.error&&"string"==typeof ae.error.error.error?ae.error.error.error:ae.error&&ae.error.error&&"string"==typeof ae.error.error?ae.error.error:ae.error&&"string"==typeof ae.error?ae.error:ae.error&&ae.error.error&&ae.error.error.error&&ae.error.error.error.error&&ae.error.error.error.error.message&&"string"==typeof ae.error.error.error.error.message?ae.error.error.error.error.message:ae.error&&ae.error.error&&ae.error.error.error&&ae.error.error.error.message&&"string"==typeof ae.error.error.error.message?ae.error.error.error.message:ae.error&&ae.error.error&&ae.error.error.message&&"string"==typeof ae.error.error.message?ae.error.error.message:ae.error&&ae.error.message&&"string"==typeof ae.error.message?ae.error.message:ae.message&&"string"==typeof ae.message?ae.message:b)}handleErrorWithoutAlert(ae,b,i){i.error.text&&"string"==typeof i.error.text&&i.error.text.includes('')&&(i={status:403,error:{message:"API Route Does Not Exist."}}),this.logger.error("ERROR IN: "+ae+"\n"+JSON.stringify(i)),401===i.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.ts)()),this.store.dispatch((0,w.kS)()),this.store.dispatch((0,w.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,w.uO)({payload:b})),this.store.dispatch((0,w.qi)({payload:{action:ae,status:E.Bn.ERROR,statusCode:i.status.toString(),message:this.extractErrorMessage(i)}})))}handleErrorWithAlert(ae,b,i,a,p){if(this.logger.error(p),401===p.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.ts)()),this.store.dispatch((0,w.kS)()),this.store.dispatch((0,w.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,w.uO)({payload:b}));const u=this.extractErrorMessage(p);this.store.dispatch((0,w.qR)({payload:{data:{type:"ERROR",alertTitle:i,message:{code:p.status?p.status:"Unknown Error",message:u,URL:a},component:P.H}}})),this.store.dispatch((0,w.qi)({payload:{action:ae,status:E.Bn.ERROR,statusCode:p.status.toString(),message:u,URL:a}}))}}ngOnDestroy(){this.unSubs.forEach(ae=>{ae.next(null),ae.complete()})}}return de.\u0275fac=function(ae){return new(ae||de)(W.LFG(e.eN),W.LFG(ie.yh),W.LFG(ee.mQ),W.LFG(_e.ux),W.LFG(ce.rS))},de.\u0275prov=W.Yz7({token:de,factory:de.\u0275fac}),de})()},5043:(Ve,Q,m)=>{"use strict";m.d(Q,{mQ:()=>M,LG:()=>l});var e=m(2340),t=m(5e3);const{isDebugMode:y}=e.NZ,C=()=>null;let M=(()=>{class N{invokeConsoleMethod(D,A){}}return N.\u0275fac=function(D){return new(D||N)},N.\u0275prov=t.Yz7({token:N,factory:N.\u0275fac}),N})(),l=(()=>{class N{get info(){return y?console.log.bind(console):C}get warn(){return y?console.warn.bind(console):C}get error(){return y?console.error.bind(console):C}invokeConsoleMethod(D,A){(console[D]||console.log||C).apply(console,[A])}}return N.\u0275fac=function(D){return new(D||N)},N.\u0275prov=t.Yz7({token:N,factory:N.\u0275fac}),N})()},9107:(Ve,Q,m)=>{"use strict";m.d(Q,{W:()=>j});var e=m(8138),t=m(1135),y=m(7579),C=m(9646),o=m(2843),M=m(2722),l=m(262),N=m(4004),s=m(2340),D=m(7731),A=m(1786),O=m(7861),E=m(5e3),P=m(5043),w=m(5620),Z=m(62);let j=(()=>{class W{constructor(ee,_e,ce,re){this.httpClient=ee,this.logger=_e,this.store=ce,this.commonService=re,this.loopUrl="",this.swaps=[],this.swapsChanged=new t.X([]),this.unSubs=[new y.x,new y.x,new y.x,new y.x,new y.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,O.ac)({payload:D.m6.GET_LOOP_SWAPS})),this.loopUrl=s.T5+s.NZ.LOOP_API+"/swaps",this.httpClient.get(this.loopUrl).pipe((0,M.R)(this.unSubs[0])).subscribe({next:ee=>{this.store.dispatch((0,O.uO)({payload:D.m6.GET_LOOP_SWAPS})),this.swaps=ee,this.swapsChanged.next(this.swaps)},error:ee=>this.swapsChanged.error(this.handleErrorWithAlert(D.m6.GET_LOOP_SWAPS,this.loopUrl,ee))})}loopOut(ee,_e,ce,re,de,oe,ae,b,i,a){const p={amount:ee,targetConf:ce,swapRoutingFee:re,minerFee:de,prepayRoutingFee:oe,prepayAmt:ae,swapFee:b,swapPublicationDeadline:i,destAddress:a};return""!==_e&&(p.chanId=_e),this.loopUrl=s.T5+s.NZ.LOOP_API+"/out",this.httpClient.post(this.loopUrl,p).pipe((0,l.K)(u=>this.handleErrorWithoutAlert("Loop Out for Channel: "+_e,D.m6.NO_SPINNER,u)))}getLoopOutTerms(){return this.loopUrl=s.T5+s.NZ.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe((0,l.K)(ee=>this.handleErrorWithoutAlert("Loop Out Terms",D.m6.NO_SPINNER,ee)))}getLoopOutQuote(ee,_e,ce){let re=new e.LE;return re=re.append("targetConf",_e.toString()),re=re.append("swapPublicationDeadline",ce.toString()),this.loopUrl=s.T5+s.NZ.LOOP_API+"/out/quote/"+ee,this.store.dispatch((0,O.ac)({payload:D.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:re}).pipe((0,M.R)(this.unSubs[1]),(0,N.U)(de=>(this.store.dispatch((0,O.uO)({payload:D.m6.GET_QUOTE})),de)),(0,l.K)(de=>this.handleErrorWithoutAlert("Loop Out Quote",D.m6.GET_QUOTE,de)))}getLoopOutTermsAndQuotes(ee){let _e=new e.LE;return _e=_e.append("targetConf",ee.toString()),_e=_e.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=s.T5+s.NZ.LOOP_API+"/out/termsAndQuotes",this.store.dispatch((0,O.ac)({payload:D.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:_e}).pipe((0,M.R)(this.unSubs[2]),(0,N.U)(ce=>(this.store.dispatch((0,O.uO)({payload:D.m6.GET_TERMS_QUOTES})),ce)),(0,l.K)(ce=>(0,C.of)(this.handleErrorWithAlert(D.m6.GET_TERMS_QUOTES,this.loopUrl,ce))))}loopIn(ee,_e,ce,re,de){const oe={amount:ee,swapFee:_e,minerFee:ce,lastHop:re,externalHtlc:de};return this.loopUrl=s.T5+s.NZ.LOOP_API+"/in",this.httpClient.post(this.loopUrl,oe).pipe((0,l.K)(ae=>this.handleErrorWithoutAlert("Loop In",D.m6.NO_SPINNER,ae)))}getLoopInTerms(){return this.loopUrl=s.T5+s.NZ.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe((0,l.K)(ee=>this.handleErrorWithoutAlert("Loop In Terms",D.m6.NO_SPINNER,ee)))}getLoopInQuote(ee,_e,ce){let re=new e.LE;return re=re.append("targetConf",_e.toString()),re=re.append("swapPublicationDeadline",ce.toString()),this.loopUrl=s.T5+s.NZ.LOOP_API+"/in/quote/"+ee,this.store.dispatch((0,O.ac)({payload:D.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:re}).pipe((0,M.R)(this.unSubs[3]),(0,N.U)(de=>(this.store.dispatch((0,O.uO)({payload:D.m6.GET_QUOTE})),de)),(0,l.K)(de=>this.handleErrorWithoutAlert("Loop In Qoute",D.m6.GET_QUOTE,de)))}getLoopInTermsAndQuotes(ee){let _e=new e.LE;return _e=_e.append("targetConf",ee.toString()),_e=_e.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=s.T5+s.NZ.LOOP_API+"/in/termsAndQuotes",this.store.dispatch((0,O.ac)({payload:D.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:_e}).pipe((0,M.R)(this.unSubs[4]),(0,N.U)(ce=>(this.store.dispatch((0,O.uO)({payload:D.m6.GET_TERMS_QUOTES})),ce)),(0,l.K)(ce=>(0,C.of)(this.handleErrorWithAlert(D.m6.GET_TERMS_QUOTES,this.loopUrl,ce))))}getSwap(ee){return this.loopUrl=s.T5+s.NZ.LOOP_API+"/swap/"+ee,this.httpClient.get(this.loopUrl).pipe((0,l.K)(_e=>this.handleErrorWithoutAlert("Loop Get Swap for ID: "+ee,D.m6.NO_SPINNER,_e)))}handleErrorWithoutAlert(ee,_e,ce){let re="";return this.logger.error("ERROR IN: "+ee+"\n"+JSON.stringify(ce)),this.store.dispatch((0,O.uO)({payload:_e})),401===ce.status?(re="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,O.kS)())):503===ce.status?(re="Unable to Connect to Loop Server.",this.store.dispatch((0,O.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:ce.status,message:"Unable to Connect to Loop Server",URL:ee},component:A.H}}}))):re=this.commonService.extractErrorMessage(ce),(0,o._)(()=>new Error(re))}handleErrorWithAlert(ee,_e,ce){let re="";if(this.logger.error(ce),this.store.dispatch((0,O.uO)({payload:ee})),401===ce.status)re="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,O.kS)());else if(503===ce.status)re="Unable to Connect to Loop Server.",setTimeout(()=>{this.store.dispatch((0,O.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:ce.status,message:"Unable to Connect to Loop Server",URL:_e},component:A.H}}}))},100);else{re=this.commonService.extractErrorMessage(ce);const de=ce.error&&ce.error.error&&ce.error.error.code?ce.error.error.code:ce.error&&ce.error.code?ce.error.code:ce.code?ce.code:ce.status;setTimeout(()=>{this.store.dispatch((0,O.qR)({payload:{data:{type:D.n_.ERROR,alertTitle:"ERROR",message:{code:de,message:re,URL:_e},component:A.H}}}))},100)}return{message:re}}ngOnDestroy(){this.unSubs.forEach(ee=>{ee.next(null),ee.complete()})}}return W.\u0275fac=function(ee){return new(ee||W)(E.LFG(e.eN),E.LFG(P.mQ),E.LFG(w.yh),E.LFG(Z.v))},W.\u0275prov=E.Yz7({token:W,factory:W.\u0275fac}),W})()},5986:(Ve,Q,m)=>{"use strict";m.d(Q,{m:()=>y});var e=m(7579),t=m(5e3);let y=(()=>{class C{constructor(){this.sessionSub=new e.x}watchSession(){return this.sessionSub.asObservable()}getItem(M){return sessionStorage.getItem(M)}getAllItems(){return sessionStorage}setItem(M,l){sessionStorage.setItem(M,l),this.sessionSub.next(sessionStorage)}removeItem(M){sessionStorage.removeItem(M),this.sessionSub.next(sessionStorage)}clearAll(){sessionStorage.clear(),this.sessionSub.next(sessionStorage)}}return C.\u0275fac=function(M){return new(M||C)},C.\u0275prov=t.Yz7({token:C,factory:C.\u0275fac}),C})()},7998:(Ve,Q,m)=>{"use strict";m.d(Q,{d:()=>P});var e=m(1135),t=m(7579),y=m(2722),C=m(930),o=m(8306),M=m(727),l=m(4707);const N={url:"",deserializer:w=>JSON.parse(w.data),serializer:w=>JSON.stringify(w)};class D extends t.u{constructor(Z,j){if(super(),this._socket=null,Z instanceof o.y)this.destination=j,this.source=Z;else{const W=this._config=Object.assign({},N);if(this._output=new t.x,"string"==typeof Z)W.url=Z;else for(const ie in Z)Z.hasOwnProperty(ie)&&(W[ie]=Z[ie]);if(!W.WebSocketCtor&&WebSocket)W.WebSocketCtor=WebSocket;else if(!W.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new l.t}}lift(Z){const j=new D(this._config,this.destination);return j.operator=Z,j.source=this,j}_resetState(){this._socket=null,this.source||(this.destination=new l.t),this._output=new t.x}multiplex(Z,j,W){const ie=this;return new o.y(ee=>{try{ie.next(Z())}catch(ce){ee.error(ce)}const _e=ie.subscribe(ce=>{try{W(ce)&&ee.next(ce)}catch(re){ee.error(re)}},ce=>ee.error(ce),()=>ee.complete());return()=>{try{ie.next(j())}catch(ce){ee.error(ce)}_e.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:Z,protocol:j,url:W,binaryType:ie}=this._config,ee=this._output;let _e=null;try{_e=j?new Z(W,j):new Z(W),this._socket=_e,ie&&(this._socket.binaryType=ie)}catch(re){return void ee.error(re)}const ce=new M.w0(()=>{this._socket=null,_e&&1===_e.readyState&&_e.close()});_e.onopen=re=>{const{_socket:de}=this;if(!de)return _e.close(),void this._resetState();const{openObserver:oe}=this._config;oe&&oe.next(re);const ae=this.destination;this.destination=C.Lv.create(b=>{if(1===_e.readyState)try{const{serializer:i}=this._config;_e.send(i(b))}catch(i){this.destination.error(i)}},b=>{const{closingObserver:i}=this._config;i&&i.next(void 0),b&&b.code?_e.close(b.code,b.reason):ee.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:b}=this._config;b&&b.next(void 0),_e.close(),this._resetState()}),ae&&ae instanceof l.t&&ce.add(ae.subscribe(this.destination))},_e.onerror=re=>{this._resetState(),ee.error(re)},_e.onclose=re=>{this._resetState();const{closeObserver:de}=this._config;de&&de.next(re),re.wasClean?ee.complete():ee.error(re)},_e.onmessage=re=>{try{const{deserializer:de}=this._config;ee.next(de(re))}catch(de){ee.error(de)}}}_subscribe(Z){const{source:j}=this;return j?j.subscribe(Z):(this._socket||this._connectSocket(),this._output.subscribe(Z),Z.add(()=>{const{_socket:W}=this;0===this._output.observers.length&&(W&&(1===W.readyState||0===W.readyState)&&W.close(),this._resetState())}),Z)}unsubscribe(){const{_socket:Z}=this;Z&&(1===Z.readyState||0===Z.readyState)&&Z.close(),this._resetState(),super.unsubscribe()}}var A=m(5e3),O=m(5043),E=m(5986);let P=(()=>{class w{constructor(j,W){this.logger=j,this.sessionService=W,this.clWSMessages=new e.X(null),this.eclWSMessages=new e.X(null),this.lndWSMessages=new e.X(null),this.wsUrl="",this.nodeIndex="",this.RETRY_SECONDS=5,this.RECONNECT_TIMEOUT=null,this.unSubs=[new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x]}connectWebSocket(j,W){(!this.socket||this.socket.closed)&&(this.wsUrl=j,this.nodeIndex=W,this.logger.info("Websocket Url: "+this.wsUrl),this.socket=new D({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,y.R)(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()}}return w.\u0275fac=function(j){return new(j||w)(A.LFG(O.mQ),A.LFG(E.m))},w.\u0275prov=A.Yz7({token:w,factory:w.\u0275fac}),w})()},8750:(Ve,Q,m)=>{"use strict";m.d(Q,{m:()=>mi});var e=m(9808),t=m(1402),y=m(3075),C=m(8138),o=m(9444),M=m(5e3),l=m(3270),N=m(3322),s=m(7093);m(3191);let qe=(()=>{class Ct{}return Ct.\u0275fac=function(bt){return new(bt||Ct)},Ct.\u0275mod=M.oAB({type:Ct}),Ct.\u0275inj=M.cJS({imports:[[l.IR]]}),Ct})(),fe=(()=>{class Ct{constructor(bt,Yt){(0,e.PM)(Yt)&&!bt&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(bt,Yt=[]){return{ngModule:Ct,providers:bt.serverLoaded?[{provide:l.WU,useValue:Object.assign(Object.assign({},l.g5),bt)},{provide:l.Bs,useValue:Yt,multi:!0},{provide:l.wY,useValue:!0}]:[{provide:l.WU,useValue:Object.assign(Object.assign({},l.g5),bt)},{provide:l.Bs,useValue:Yt,multi:!0}]}}}return Ct.\u0275fac=function(bt){return new(bt||Ct)(M.LFG(l.wY),M.LFG(M.Lbi))},Ct.\u0275mod=M.oAB({type:Ct}),Ct.\u0275inj=M.cJS({imports:[[s.ae,N.aT,qe],s.ae,N.aT,qe]}),Ct})();var Je=m(5113),St=m(508),Pt=m(8966),yi=m(1079),Ni=m(7544),Si=m(7423);m(449),m(5664);let Pn=(()=>{class Ct{}return Ct.\u0275fac=function(bt){return new(bt||Ct)},Ct.\u0275mod=M.oAB({type:Ct}),Ct.\u0275inj=M.cJS({imports:[[St.BQ,St.si],St.BQ]}),Ct})();var dr=m(9224),wi=m(7446),Fi=m(6856),dn=m(1125),Lr=m(3954),La=m(5245),Gn=m(7531),Or=m(4623),Ra=m(2181),Ma=m(6087),Fa=m(5899),xr=m(773),hs=m(9814),ur=m(4107),pa=m(2638),ma=m(2368);m(1159),m(6360),m(925),m(727),m(226);let Aa=(()=>{class Ct{}return Ct.\u0275fac=function(bt){return new(bt||Ct)},Ct.\u0275mod=M.oAB({type:Ct}),Ct.\u0275inj=M.cJS({imports:[[e.ez,St.BQ],St.BQ]}),Ct})();var Vr=m(7261),ha=m(4847),pr=m(5615),Sr=m(2075),is=m(3251),Oa=m(4594),ra=m(7238),Gr=m(149),Ha=m(6046),Zn=m(159),ns=m(644),ja=m(9776);let Xe=(()=>{class Ct extends ja.Xj{_createContainer(){const bt=document.createElement("div");bt.classList.add("cdk-overlay-container"),document.getElementById("rtl-container").appendChild(bt),this._containerElement=bt}}return Ct.\u0275fac=function(){let ti;return function(Yt){return(ti||(ti=M.n5z(Ct)))(Yt||Ct)}}(),Ct.\u0275prov=M.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})();var ge=m(5043),J=m(7731);const ne={suppressScrollX:!1,suppressScrollY:!1};let Qe=(()=>{class Ct extends St.LF{format(bt,Yt){if("input"===Yt){let xi=bt.getDate().toString();return xi=+xi<10?"0"+xi:xi,xi+"/"+J.gg[bt.getMonth()].name.toUpperCase()+"/"+bt.getFullYear()}return J.gg[bt.getMonth()].name.toUpperCase()+" "+bt.getFullYear()}}return Ct.\u0275fac=function(){let ti;return function(Yt){return(ti||(ti=M.n5z(Ct)))(Yt||Ct)}}(),Ct.\u0275prov=M.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})();const Wt={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 mi=(()=>{class Ct{}return Ct.\u0275fac=function(bt){return new(bt||Ct)},Ct.\u0275mod=M.oAB({type:Ct}),Ct.\u0275inj=M.cJS({providers:[{provide:ge.mQ,useClass:ge.LG},{provide:ns.op,useValue:ne},{provide:Vr.Ve,useValue:{duration:2e3,verticalPosition:"bottom",panelClass:"rtl-snack-bar"}},{provide:Pt.Bq,useValue:{hasBackdrop:!0,autoFocus:!0,disableClose:!0,role:"dialog",width:"45%"}},{provide:St._A,useClass:Qe},{provide:St.sG,useValue:Wt},{provide:ja.Xj,useClass:Xe},e.JJ,e.rS,e.uU],imports:[[e.ez,y.u5,y.UX,o.uH,fe,Je.xu,Pt.Is,Si.ot,Pn,dr.QW,wi.p9,dn.To,Lr.N6,Fi.FA,St.XK,La.Ps,Gn.c,Or.ie,Ra.Tx,Fa.Cv,xr.Cq,hs.Fk,Gr.dp,ur.LD,pa.SJ,ma.rP,ha.JX,Sr.p0,Oa.g0,ra.AV,Ni.g,Ma.TU,pr.T5,Aa,is.Nh,Vr.ZX,yi.Bb,Ha.a4,Zn.OF,t.Bz,C.JF,ns.Xd],y.u5,y.UX,o.uH,fe,Je.xu,Pt.Is,Si.ot,Pn,dr.QW,wi.p9,dn.To,Lr.N6,Fi.FA,St.XK,La.Ps,Gn.c,Or.ie,Ra.Tx,Fa.Cv,xr.Cq,hs.Fk,Gr.dp,ur.LD,pa.SJ,ma.rP,ha.JX,Sr.p0,Oa.g0,ra.AV,Ni.g,Ma.TU,pr.T5,Aa,is.Nh,Vr.ZX,yi.Bb,Ha.a4,Zn.OF,ns.Xd]}),Ct})()},7861:(Ve,Q,m)=>{"use strict";m.d(Q,{lC:()=>C,qi:()=>o,ts:()=>M,jW:()=>l,ac:()=>N,uO:()=>s,qR:()=>D,M6:()=>A,c1:()=>O,yb:()=>E,tj:()=>P,Q2:()=>w,tw:()=>j,vI:()=>W,ey:()=>ie,XT:()=>ee,zQ:()=>_e,Uy:()=>ce,fk:()=>re,Tm:()=>de,jS:()=>oe,_V:()=>ae,kS:()=>i,c0:()=>a,QO:()=>u,x4:()=>L,dc:()=>x});var e=m(5620),t=m(7731);(0,e.PH)(t.pg.VOID);const C=(0,e.PH)(t.pg.SET_API_URL_ECL,(0,e.Ky)()),o=(0,e.PH)(t.pg.UPDATE_API_CALL_STATUS_ROOT,(0,e.Ky)()),M=(0,e.PH)(t.pg.CLOSE_ALL_DIALOGS),l=(0,e.PH)(t.pg.OPEN_SNACK_BAR,(0,e.Ky)()),N=(0,e.PH)(t.pg.OPEN_SPINNER,(0,e.Ky)()),s=(0,e.PH)(t.pg.CLOSE_SPINNER,(0,e.Ky)()),D=(0,e.PH)(t.pg.OPEN_ALERT,(0,e.Ky)()),A=(0,e.PH)(t.pg.CLOSE_ALERT,(0,e.Ky)()),O=(0,e.PH)(t.pg.OPEN_CONFIRMATION,(0,e.Ky)()),E=(0,e.PH)(t.pg.CLOSE_CONFIRMATION,(0,e.Ky)()),P=(0,e.PH)(t.pg.SHOW_PUBKEY),w=(0,e.PH)(t.pg.FETCH_CONFIG,(0,e.Ky)()),j=((0,e.PH)(t.pg.SHOW_CONFIG,(0,e.Ky)()),(0,e.PH)(t.pg.UPDATE_SELECTED_NODE_OPTIONS)),W=(0,e.PH)(t.pg.RESET_ROOT_STORE,(0,e.Ky)()),ie=(0,e.PH)(t.pg.FETCH_RTL_CONFIG),ee=(0,e.PH)(t.pg.SET_RTL_CONFIG,(0,e.Ky)()),_e=(0,e.PH)(t.pg.SAVE_SETTINGS,(0,e.Ky)()),ce=(0,e.PH)(t.pg.TWO_FA_SAVE_SETTINGS,(0,e.Ky)()),re=(0,e.PH)(t.pg.SET_SELECTED_NODE,(0,e.Ky)()),de=(0,e.PH)(t.pg.UPDATE_ROOT_NODE_SETTINGS,(0,e.Ky)()),oe=(0,e.PH)(t.pg.UPDATE_SERVICE_SETTINGS,(0,e.Ky)()),ae=(0,e.PH)(t.pg.SET_NODE_DATA,(0,e.Ky)()),i=((0,e.PH)(t.pg.SAVE_SSO,(0,e.Ky)()),(0,e.PH)(t.pg.LOGOUT)),a=(0,e.PH)(t.pg.RESET_PASSWORD,(0,e.Ky)()),u=((0,e.PH)(t.pg.RESET_PASSWORD_RES,(0,e.Ky)()),(0,e.PH)(t.pg.IS_AUTHORIZED,(0,e.Ky)())),L=((0,e.PH)(t.pg.IS_AUTHORIZED_RES,(0,e.Ky)()),(0,e.PH)(t.pg.LOGIN,(0,e.Ky)())),x=((0,e.PH)(t.pg.VERIFY_TWO_FA,(0,e.Ky)()),(0,e.PH)(t.pg.FETCH_FILE,(0,e.Ky)()));(0,e.PH)(t.pg.SHOW_FILE,(0,e.Ky)())},3093:(Ve,Q,m)=>{"use strict";m.d(Q,{V:()=>qi});var e=m(6642),t=m(7579),y=m(9646),C=m(8306),o=m(4128),M=m(4004),l=m(5698),N=m(1365),s=m(5577),D=m(262),A=m(2722),O=m(2340),E=m(7731),P=m(8966),w=m(5e3),Z=m(7093),j=m(773);let W=(()=>{class ot{constructor(gt,Lt){this.dialogRef=gt,this.data=Lt}}return ot.\u0275fac=function(gt){return new(gt||ot)(w.Y36(P.so),w.Y36(P.WI))},ot.\u0275cmp=w.Xpm({type:ot,selectors:[["rtl-spinner-dialog"]],decls:5,vars:1,consts:[[1,"spinner-container"],["fxLayout","column","fxLayoutAlign","center center",1,"spinner-circle"]],template:function(gt,Lt){1>&&(w.TgZ(0,"div",0),w.TgZ(1,"div",1),w._UZ(2,"mat-spinner"),w.TgZ(3,"h1"),w._uU(4),w.qZA(),w.qZA(),w.qZA()),2>&&(w.xp6(4),w.Oqu(Lt.data.titleMessage))},directives:[Z.xw,Z.Wh,j.$g],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;left:40%;top:35%}"]}),ot})();var ie=m(5043),ee=m(7261),_e=m(62),ce=m(9808),re=m(3322),de=m(9224),oe=m(7423),ae=m(159),b=m(644),i=m(5245),a=m(3390),p=m(6895),u=m(4834);const _=["scrollContainer"];function L(ot,Kt){if(1&ot&&w._UZ(0,"qr-code",15),2&ot){const gt=w.oxw();w.Q6J("value",gt.showQRField)("size",200)("errorCorrectionLevel","L")}}function I(ot,Kt){1&ot&&w.GkF(0)}const x=function(ot){return{"h-40":ot}};function r(ot,Kt){if(1&ot&&(w.ynx(0),w.TgZ(1,"mat-card-content",16,17),w.YNc(3,I,1,0,"ng-container",18),w.qZA(),w.BQk()),2&ot){const gt=w.oxw(),Lt=w.MAs(20);w.xp6(1),w.Q6J("ngClass",w.VKq(2,x,gt.data.scrollable)),w.xp6(2),w.Q6J("ngTemplateOutlet",Lt)}}function v(ot,Kt){1&ot&&w.GkF(0)}function G(ot,Kt){if(1&ot&&(w.ynx(0),w.TgZ(1,"mat-card-content",19),w.YNc(2,v,1,0,"ng-container",18),w.qZA(),w.BQk()),2&ot){w.oxw();const gt=w.MAs(20);w.xp6(2),w.Q6J("ngTemplateOutlet",gt)}}function F(ot,Kt){1&ot&&(w.TgZ(0,"mat-icon",23),w._uU(1,"arrow_downward"),w.qZA())}function U(ot,Kt){1&ot&&(w.TgZ(0,"mat-icon",23),w._uU(1,"arrow_upward"),w.qZA())}function ye(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"div",20),w.TgZ(1,"button",21),w.NdJ("click",function(){return w.CHM(gt),w.oxw().onScroll()}),w.YNc(2,F,2,0,"mat-icon",22),w.YNc(3,U,2,0,"mat-icon",22),w.qZA(),w.qZA()}if(2&ot){const gt=w.oxw();w.xp6(2),w.Q6J("ngIf","DOWN"===gt.scrollDirection),w.xp6(1),w.Q6J("ngIf","UP"===gt.scrollDirection)}}function Ce(ot,Kt){1&ot&&(w.TgZ(0,"button",24),w._uU(1,"OK"),w.qZA()),2&ot&&w.Q6J("mat-dialog-close",!1)}function Be(ot,Kt){1&ot&&(w.TgZ(0,"button",25),w._uU(1,"Close"),w.qZA()),2&ot&&w.Q6J("mat-dialog-close",!1)}function ze(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"button",26),w.NdJ("copied",function(ui){return w.CHM(gt),w.oxw().onCopyField(ui)}),w._uU(1),w.qZA()}if(2&ot){const gt=w.oxw();w.Q6J("payload",gt.showCopyField),w.xp6(1),w.hij("Copy ",gt.showCopyName,"")}}function Ie(ot,Kt){1&ot&&(w.TgZ(0,"button",25),w._uU(1,"Close"),w.qZA()),2&ot&&w.Q6J("mat-dialog-close",!1)}function K(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"button",26),w.NdJ("copied",function(ui){return w.CHM(gt),w.oxw().onCopyField(ui)}),w._uU(1),w.qZA()}if(2&ot){const gt=w.oxw();w.Q6J("payload",gt.showQRField),w.xp6(1),w.hij("Copy ",gt.showQRName,"")}}function Me(ot,Kt){if(1&ot&&w._UZ(0,"qr-code",15),2&ot){const gt=w.oxw(2);w.Q6J("value",gt.showQRField)("size",200)("errorCorrectionLevel","L")}}function we(ot,Kt){if(1&ot&&(w.TgZ(0,"p",32),w._uU(1),w.qZA()),2&ot){const gt=w.oxw(2);w.xp6(1),w.Oqu(gt.data.titleMessage)}}function z(ot,Kt){1&ot&&w._UZ(0,"span",46),2&ot&&w.Q6J("innerHTML",Kt.$implicit,w.oJD)}function Ge(ot,Kt){if(1&ot&&(w.ynx(0),w.YNc(1,z,1,1,"span",45),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Q6J("ngForOf",gt.value)}}function vt(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.ALo(2,"date"),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,1e3*gt.value,"dd/MMM/y HH:mm"))}}function Re(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.ALo(2,"number"),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,gt.value,gt.digitsInfo?gt.digitsInfo:"1.0-3"))}}function Ne(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(gt.value?"True":"False")}}function he(ot,Kt){1&ot&&(w.TgZ(0,"mat-icon",51),w._uU(1,"info"),w.qZA())}const Le=function(ot){return{"failed-status":ot}};function ke(ot,Kt){if(1&ot&&(w.TgZ(0,"p",49),w._uU(1),w.YNc(2,he,2,0,"mat-icon",50),w.qZA()),2&ot){const gt=w.oxw(3).$implicit,Lt=w.oxw(4);w.Q6J("ngClass",w.VKq(3,Le,gt.value===Lt.LoopStateEnum.FAILED)),w.xp6(1),w.hij(" ",gt.value," "),w.xp6(1),w.Q6J("ngIf",gt.value===Lt.LoopStateEnum.FAILED)}}function q(ot,Kt){if(1&ot&&w._uU(0),2&ot){const gt=w.oxw(3).$implicit;w.Oqu(gt.value)}}function $(ot,Kt){if(1&ot&&(w.ynx(0),w.YNc(1,ke,3,5,"p",47),w.YNc(2,q,1,1,"ng-template",null,48,w.W1O),w.BQk()),2&ot){const gt=w.MAs(3),Lt=w.oxw(2).$implicit,ui=w.oxw(4);w.xp6(1),w.Q6J("ngIf","SWAP"===ui.data.openedBy&&"state"===Lt.key)("ngIfElse",gt)}}function le(ot,Kt){if(1&ot&&(w.TgZ(0,"span"),w.TgZ(1,"span",42),w.YNc(2,Ge,2,1,"ng-container",43),w.YNc(3,vt,3,4,"ng-container",43),w.YNc(4,Re,3,4,"ng-container",43),w.YNc(5,Ne,2,1,"ng-container",43),w.YNc(6,$,4,2,"ng-container",44),w.qZA(),w.qZA()),2&ot){const gt=w.oxw().$implicit,Lt=w.oxw(4);w.xp6(1),w.Q6J("ngSwitch",gt.type),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.ARRAY),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.DATE_TIME),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.NUMBER),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.BOOLEAN)}}function xe(ot,Kt){1&ot&&(w.TgZ(0,"span",52),w._uU(1,"\xa0"),w.qZA())}function Ue(ot,Kt){if(1&ot&&(w.TgZ(0,"div",37),w.TgZ(1,"h4",38),w._uU(2),w.qZA(),w.YNc(3,le,7,5,"span",39),w.YNc(4,xe,2,0,"ng-template",null,40,w.W1O),w._UZ(6,"mat-divider",41),w.qZA()),2&ot){const gt=Kt.$implicit,Lt=w.MAs(5);w.s9C("fxFlex.gt-md",gt.width),w.xp6(2),w.Oqu(gt.title),w.xp6(1),w.Q6J("ngIf",gt&&(!!gt.value||0===gt.value))("ngIfElse",Lt)}}function lt(ot,Kt){if(1&ot&&(w.TgZ(0,"div"),w.TgZ(1,"div",35),w.YNc(2,Ue,7,4,"div",36),w.qZA(),w.qZA()),2&ot){const gt=Kt.$implicit;w.xp6(2),w.Q6J("ngForOf",gt)}}function nt(ot,Kt){if(1&ot&&(w.TgZ(0,"div",33),w.YNc(1,lt,3,1,"div",34),w.qZA()),2&ot){const gt=w.oxw(2);w.xp6(1),w.Q6J("ngForOf",gt.messageObjs)}}const ft=function(ot){return{"display-none":ot}};function it(ot,Kt){if(1&ot&&(w.TgZ(0,"div",27),w.TgZ(1,"div",28),w.YNc(2,Me,1,3,"qr-code",2),w.qZA(),w.TgZ(3,"div",29),w.YNc(4,we,2,1,"p",30),w.YNc(5,nt,2,1,"div",31),w.qZA(),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Q6J("ngClass",w.VKq(4,ft,""===gt.showQRField||gt.screenSize!==gt.screenSizeEnum.XS&>.screenSize!==gt.screenSizeEnum.SM)),w.xp6(1),w.Q6J("ngIf",""!==gt.showQRField),w.xp6(2),w.Q6J("ngIf",gt.data.titleMessage),w.xp6(1),w.Q6J("ngIf",(null==gt.messageObjs?null:gt.messageObjs.length)>0)}}let rt=(()=>{class ot{constructor(gt,Lt,ui,Ci,Yi,$i){this.dialogRef=gt,this.data=Lt,this.logger=ui,this.snackBar=Ci,this.commonService=Yi,this.renderer=$i,this.LoopStateEnum=E.Fq,this.showQRField="",this.showQRName="",this.showCopyName="",this.showCopyField="",this.errorMessage="",this.messageObjs=[],this.alertTypeEnum=E.n_,this.dataTypeEnum=E.Gi,this.screenSize="",this.screenSizeEnum=E.cu,this.scrollDirection="DOWN",this.shouldScroll=!0}set container(gt){gt&&(this.scrollContainer=gt,this.scrollContainer&&this.scrollContainer.nativeElement&&(this.unlistenEnd=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-end",Lt=>{this.scrollDirection="UP"}),this.unlistenStart=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-start",Lt=>{this.scrollDirection="DOWN"})))}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.messageObjs=this.data.message,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===E.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.messageObjs)}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(gt){this.snackBar.open((this.showQRName?this.showQRName:this.showCopyName)+" copied."),this.logger.info("Copied Text: "+gt)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unlistenStart&&this.unlistenStart(),this.unlistenEnd&&this.unlistenEnd()}}return ot.\u0275fac=function(gt){return new(gt||ot)(w.Y36(P.so),w.Y36(P.WI),w.Y36(ie.mQ),w.Y36(ee.ux),w.Y36(_e.v),w.Y36(w.Qsj))},ot.\u0275cmp=w.Xpm({type:ot,selectors:[["rtl-alert-message"]],viewQuery:function(gt,Lt){if(1>&&w.Gf(_,5),2>){let ui;w.iGM(ui=w.CRH())&&(Lt.container=ui.first)}},decls:21,vars:14,consts:[["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"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],[3,"fxFlex"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","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"],["contentBlock",""],[3,"value","size","errorCorrectionLevel"],[1,"padding-gap-x-large",3,"perfectScrollbar","ngClass"],["scrollContainer",""],[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"],["fxLayoutAlign","center center",4,"ngIf"],["fxLayoutAlign","center center"],["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,"payload","copied"],["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"],["emptyField",""],[1,"w-100","my-1"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"foreground-secondary-text",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","display-block w-100",3,"innerHTML",4,"ngFor","ngForOf"],[1,"display-block","w-100",3,"innerHTML"],["fxLayout","row",3,"ngClass",4,"ngIf","ngIfElse"],["noStyleBlock",""],["fxLayout","row",3,"ngClass"],["fxLayoutAlign","end end","class","icon-failed-status",4,"ngIf"],["fxLayoutAlign","end end",1,"icon-failed-status"],["fxFlex","100",1,"foreground-secondary-text"]],template:function(gt,Lt){1>&&(w.TgZ(0,"div",0),w.TgZ(1,"div",1),w.YNc(2,L,1,3,"qr-code",2),w.qZA(),w.TgZ(3,"div",3),w.TgZ(4,"mat-card-header",4),w.TgZ(5,"div",5),w.TgZ(6,"span",6),w._uU(7),w.qZA(),w.qZA(),w.TgZ(8,"button",7),w.NdJ("click",function(){return Lt.onClose()}),w._uU(9,"X"),w.qZA(),w.qZA(),w.YNc(10,r,4,4,"ng-container",8),w.YNc(11,G,3,1,"ng-container",8),w.YNc(12,ye,4,2,"div",9),w.TgZ(13,"div",10),w.YNc(14,Ce,2,1,"button",11),w.YNc(15,Be,2,1,"button",12),w.YNc(16,ze,2,2,"button",13),w.YNc(17,Ie,2,1,"button",12),w.YNc(18,K,2,2,"button",13),w.qZA(),w.qZA(),w.qZA(),w.YNc(19,it,6,6,"ng-template",null,14,w.W1O)),2>&&(w.xp6(1),w.Q6J("ngClass",w.VKq(12,ft,""===Lt.showQRField||Lt.screenSize===Lt.screenSizeEnum.XS||Lt.screenSize===Lt.screenSizeEnum.SM)),w.xp6(1),w.Q6J("ngIf",""!==Lt.showQRField),w.xp6(1),w.Q6J("fxFlex",""===Lt.showQRField||Lt.screenSize===Lt.screenSizeEnum.XS||Lt.screenSize===Lt.screenSizeEnum.SM?"100":"70"),w.xp6(4),w.Oqu(Lt.data.alertTitle||Lt.alertTypeEnum[Lt.data.type]),w.xp6(3),w.Q6J("ngIf",Lt.data.scrollable),w.xp6(1),w.Q6J("ngIf",!Lt.data.scrollable),w.xp6(1),w.Q6J("ngIf",Lt.data.scrollable&&Lt.shouldScroll),w.xp6(2),w.Q6J("ngIf",(!Lt.showQRField||""===Lt.showQRField)&&""===Lt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Lt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Lt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Lt.showQRField),w.xp6(1),w.Q6J("ngIf",""!==Lt.showQRField))},directives:[Z.xw,Z.Wh,Z.yH,ce.mk,re.oO,ce.O5,de.dk,oe.lW,ae.uU,de.dn,b.$V,ce.tP,i.Hw,a.h,P.ZT,p.y,ce.sg,u.d,ce.RF,ce.n9,ce.ED],pipes:[ce.uU,ce.JJ],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),ot})();var Mt=m(801),Zt=m(7861),Ft=m(5620),Vt=m(3075),Ii=m(9444),jt=m(7322),ei=m(7531),Pi=m(6534);function ai(ot,Kt){if(1&ot&&(w.TgZ(0,"div",17),w._UZ(1,"fa-icon",18),w.TgZ(2,"span"),w._uU(3),w.qZA(),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Q6J("icon",gt.faExclamationTriangle),w.xp6(2),w.Oqu(gt.warningMessage)}}function hi(ot,Kt){if(1&ot&&(w.TgZ(0,"div",19),w._UZ(1,"fa-icon",18),w.TgZ(2,"span"),w._uU(3),w.qZA(),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Q6J("icon",gt.faInfoCircle),w.xp6(2),w.Oqu(gt.informationMessage)}}function Ze(ot,Kt){if(1&ot&&(w.TgZ(0,"p",20),w._uU(1),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Oqu(gt.data.titleMessage)}}function Ee(ot,Kt){1&ot&&w._UZ(0,"span",33),2&ot&&w.Q6J("innerHTML",Kt.$implicit,w.oJD)}function Y(ot,Kt){if(1&ot&&(w.ynx(0),w.YNc(1,Ee,1,1,"span",32),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Q6J("ngForOf",gt.value)}}function me(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.ALo(2,"date"),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,1e3*gt.value,"dd/MMM/y HH:mm"))}}function De(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.ALo(2,"number"),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,gt.value,"1.0-3"))}}function et(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(!0===gt.value?"True":"False")}}function $t(ot,Kt){if(1&ot&&(w.ynx(0),w._uU(1),w.BQk()),2&ot){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(gt.value)}}function Nt(ot,Kt){if(1&ot&&(w.TgZ(0,"span"),w.TgZ(1,"span",29),w.YNc(2,Y,2,1,"ng-container",30),w.YNc(3,me,3,4,"ng-container",30),w.YNc(4,De,3,4,"ng-container",30),w.YNc(5,et,2,1,"ng-container",30),w.YNc(6,$t,2,1,"ng-container",31),w.qZA(),w.qZA()),2&ot){const gt=w.oxw().$implicit,Lt=w.oxw(3);w.xp6(1),w.Q6J("ngSwitch",gt.type),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.ARRAY),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.DATE_TIME),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.NUMBER),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.BOOLEAN)}}function Jt(ot,Kt){1&ot&&(w.TgZ(0,"span",34),w._uU(1,"\xa0"),w.qZA())}function ct(ot,Kt){if(1&ot&&(w.TgZ(0,"div",24),w.TgZ(1,"h4",25),w._uU(2),w.qZA(),w.YNc(3,Nt,7,5,"span",26),w.YNc(4,Jt,2,0,"ng-template",null,27,w.W1O),w._UZ(6,"mat-divider",28),w.qZA()),2&ot){const gt=Kt.$implicit,Lt=w.MAs(5);w.s9C("fxFlex.gt-md",gt.width),w.xp6(2),w.Oqu(gt.title),w.xp6(1),w.Q6J("ngIf",gt&&(!!gt.value||0===gt.value))("ngIfElse",Lt)}}function Pe(ot,Kt){if(1&ot&&(w.TgZ(0,"div"),w.TgZ(1,"div",22),w.YNc(2,ct,7,4,"div",23),w.qZA(),w.qZA()),2&ot){const gt=Kt.$implicit;w.xp6(2),w.Q6J("ngForOf",gt)}}function Fe(ot,Kt){if(1&ot&&(w.TgZ(0,"div"),w.YNc(1,Pe,3,1,"div",21),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Q6J("ngForOf",gt.messageObjs)}}function at(ot,Kt){if(1&ot&&(w.TgZ(0,"p",20),w._uU(1),w.qZA()),2&ot){const gt=w.oxw(2);w.xp6(1),w.Oqu(gt.data.titleMessage)}}function st(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"input",41),w.NdJ("ngModelChange",function(ui){return w.CHM(gt),w.oxw().$implicit.inputValue=ui}),w.ALo(1,"lowercase"),w.qZA()}if(2&ot){const gt=w.oxw(),Lt=gt.index,ui=gt.$implicit;w.MGl("name","input",Lt,""),w.Q6J("placeholder",ui.placeholder)("min",ui.min)("step",ui.step)("type",w.lcZ(1,7,ui.inputType))("ngModel",ui.inputValue)("tabindex",Lt+1)}}function At(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"input",42),w.NdJ("ngModelChange",function(ui){return w.CHM(gt),w.oxw().$implicit.inputValue=ui}),w.ALo(1,"lowercase"),w.qZA()}if(2&ot){const gt=w.oxw(),Lt=gt.index,ui=gt.$implicit;w.MGl("name","input",Lt,""),w.Q6J("placeholder",ui.placeholder)("min",ui.min)("step",ui.step)("type",w.lcZ(1,7,ui.inputType))("ngModel",ui.inputValue)("tabindex",Lt+1)}}function li(ot,Kt){if(1&ot&&(w.TgZ(0,"mat-error"),w._uU(1),w.qZA()),2&ot){const gt=w.oxw().$implicit;w.xp6(1),w.hij("",gt.placeholder," is required.")}}function Bt(ot,Kt){if(1&ot&&(w.TgZ(0,"mat-form-field",38),w.YNc(1,st,2,9,"input",39),w.YNc(2,At,2,9,"input",40),w.YNc(3,li,2,1,"mat-error",11),w.TgZ(4,"mat-hint"),w._uU(5),w.qZA(),w.qZA()),2&ot){const gt=Kt.$implicit,Lt=Kt.index;w.Q6J("fxFlex",gt.width),w.xp6(1),w.Q6J("ngIf",0===Lt),w.xp6(1),w.Q6J("ngIf",0!==Lt),w.xp6(1),w.Q6J("ngIf",!gt.inputValue),w.xp6(2),w.Oqu(gt.hintFunction?gt.hintFunction(gt.inputValue):gt.hintText)}}function Rt(ot,Kt){if(1&ot&&(w.TgZ(0,"div",35),w.YNc(1,at,2,1,"p",10),w.TgZ(2,"div",36),w.YNc(3,Bt,6,5,"mat-form-field",37),w.qZA(),w.qZA()),2&ot){const gt=w.oxw();w.xp6(1),w.Q6J("ngIf",gt.data.titleMessage),w.xp6(2),w.Q6J("ngForOf",gt.getInputs)}}function Li(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"button",43),w.NdJ("click",function(){w.CHM(gt);const ui=w.oxw();return ui.onClose(ui.getInputs)}),w._uU(1),w.qZA()}if(2&ot){const gt=w.oxw();w.xp6(1),w.Oqu(gt.yesBtnText)}}function si(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"button",44),w.NdJ("click",function(){return w.CHM(gt),w.oxw().onClose(!0)}),w._uU(1),w.qZA()}if(2&ot){const gt=w.oxw();w.xp6(1),w.Oqu(gt.yesBtnText)}}let ci=(()=>{class ot{constructor(gt,Lt,ui,Ci){this.dialogRef=gt,this.data=Lt,this.logger=ui,this.store=Ci,this.faInfoCircle=Mt.sqG,this.faExclamationTriangle=Mt.eHv,this.informationMessage="",this.warningMessage="",this.noBtnText="No",this.yesBtnText="Yes",this.messageObjs=[],this.flgShowInput=!1,this.alertTypeEnum=E.n_,this.dataTypeEnum=E.Gi,this.getInputs=[{placeholder:"",inputType:"text",inputValue:"",hintText:"",hintFunction:null}]}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.messageObjs=this.data.message,this.data.type===E.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection")}onClose(gt){if(gt&&this.getInputs&&this.getInputs.some(Lt=>void 0===Lt.inputValue))return!0;this.store.dispatch((0,Zt.yb)({payload:gt}))}}return ot.\u0275fac=function(gt){return new(gt||ot)(w.Y36(P.so),w.Y36(P.WI),w.Y36(ie.mQ),w.Y36(Ft.yh))},ot.\u0275cmp=w.Xpm({type:ot,selectors:[["rtl-confirmation-message"]],decls:20,vars:9,consts:[["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","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","2",1,"mr-1",3,"click"],["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"],["emptyField",""],[1,"w-100","my-1"],[1,"foreground-secondary-text",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","display-block w-100",3,"innerHTML",4,"ngFor","ngForOf"],[1,"display-block","w-100",3,"innerHTML"],["fxFlex","100",1,"foreground-secondary-text"],["fxLayout","column",1,"bordered-box","my-2","p-2"],["fxLayoutAlign","space-between center"],[3,"fxFlex",4,"ngFor","ngForOf"],[3,"fxFlex"],["autoFocus","","matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange",4,"ngIf"],["matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange",4,"ngIf"],["autoFocus","","matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange"],["matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange"],["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(gt,Lt){1>&&(w.TgZ(0,"div",0),w.TgZ(1,"div",1),w.TgZ(2,"mat-card-header",2),w.TgZ(3,"div",3),w.TgZ(4,"span",4),w._uU(5),w.qZA(),w.qZA(),w.TgZ(6,"button",5),w.NdJ("click",function(){return Lt.onClose(!1)}),w._uU(7,"X"),w.qZA(),w.qZA(),w.TgZ(8,"mat-card-content",6),w.TgZ(9,"form",7),w.YNc(10,ai,4,2,"div",8),w.YNc(11,hi,4,2,"div",9),w.YNc(12,Ze,2,1,"p",10),w.YNc(13,Fe,2,1,"div",11),w.YNc(14,Rt,4,2,"div",12),w.TgZ(15,"div",13),w.TgZ(16,"button",14),w.NdJ("click",function(){return Lt.onClose(!1)}),w._uU(17),w.qZA(),w.YNc(18,Li,2,1,"button",15),w.YNc(19,si,2,1,"button",16),w.qZA(),w.qZA(),w.qZA(),w.qZA(),w.qZA()),2>&&(w.xp6(5),w.Oqu(Lt.data.alertTitle||Lt.alertTypeEnum[Lt.data.type]),w.xp6(5),w.Q6J("ngIf",Lt.warningMessage&&""!==Lt.warningMessage),w.xp6(1),w.Q6J("ngIf",Lt.informationMessage&&""!==Lt.informationMessage),w.xp6(1),w.Q6J("ngIf",Lt.data.titleMessage&&!Lt.flgShowInput),w.xp6(1),w.Q6J("ngIf",(null==Lt.messageObjs?null:Lt.messageObjs.length)>0),w.xp6(1),w.Q6J("ngIf",Lt.flgShowInput),w.xp6(3),w.Oqu(Lt.noBtnText),w.xp6(1),w.Q6J("ngIf",Lt.flgShowInput),w.xp6(1),w.Q6J("ngIf",!Lt.flgShowInput))},directives:[Z.xw,Z.yH,de.dk,Z.Wh,oe.lW,de.dn,Vt._Y,Vt.JL,Vt.F,ce.O5,Ii.BN,ce.sg,u.d,ce.RF,ce.n9,ce.ED,jt.KE,jt.bx,ei.Nt,Pi.q,Vt.Fj,a.h,Vt.Q7,Vt.JJ,Vt.On,jt.TO],pipes:[ce.uU,ce.JJ,ce.i8],styles:[""]}),ot})();var sn=m(1786),Ui=m(4107),Di=m(508);function Xi(ot,Kt){if(1&ot&&(w.TgZ(0,"mat-option",23),w._uU(1),w.qZA()),2&ot){const gt=Kt.$implicit;w.Q6J("value",gt),w.xp6(1),w.hij(" ",gt.infoName," ")}}function Ke(ot,Kt){if(1&ot){const gt=w.EpF();w.TgZ(0,"div",13),w.TgZ(1,"mat-form-field",20),w.TgZ(2,"mat-select",21),w.NdJ("valueChange",function(ui){return w.CHM(gt),w.oxw().selInfoType=ui}),w.YNc(3,Xi,2,2,"mat-option",22),w.qZA(),w.qZA(),w.qZA()}if(2&ot){const gt=w.oxw();w.xp6(2),w.Q6J("value",gt.selInfoType),w.xp6(1),w.Q6J("ngForOf",gt.infoTypes)}}const _t=function(ot){return{"display-none":ot}};let ve=(()=>{class ot{constructor(gt,Lt,ui,Ci,Yi){this.dialogRef=gt,this.data=Lt,this.logger=ui,this.snackBar=Ci,this.commonService=Yi,this.faReceipt=Mt.dLy,this.infoTypes=[{infoID:0,infoKey:"node pubkey",infoName:"Node pubkey"}],this.selInfoType=this.infoTypes[0],this.qrWidth=210,this.screenSize="",this.screenSizeEnum=E.cu}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((gt,Lt)=>{this.infoTypes.push({infoID:Lt+1,infoKey:"node URI "+(Lt+1),infoName:"Node URI "+(Lt+1)})})),this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyPubkey(gt){this.snackBar.open(this.selInfoType.infoName+" copied."),this.logger.info("Copied Text: "+gt)}}return ot.\u0275fac=function(gt){return new(gt||ot)(w.Y36(P.so),w.Y36(P.WI),w.Y36(ie.mQ),w.Y36(ee.ux),w.Y36(_e.v))},ot.\u0275cmp=w.Xpm({type:ot,selectors:[["rtl-show-pubkey"]],decls:26,vars:19,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"],[3,"value","size","errorCorrectionLevel"],["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"],["tabindex","3","fxFlex","5","fxLayoutAlign","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","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxFlex","100","fxFlex.gt-sm","40","fxLayoutAlign","start end"],["tabindex","1",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(gt,Lt){1>&&(w.TgZ(0,"div",0),w.TgZ(1,"div",1),w._UZ(2,"qr-code",2),w.qZA(),w.TgZ(3,"div",3),w.TgZ(4,"mat-card-header",4),w.TgZ(5,"div",5),w._UZ(6,"fa-icon",6),w.TgZ(7,"span",7),w._uU(8),w.qZA(),w.qZA(),w.TgZ(9,"button",8),w.NdJ("click",function(){return Lt.onClose()}),w._uU(10,"X"),w.qZA(),w.qZA(),w.TgZ(11,"mat-card-content",9),w.TgZ(12,"div",10),w.TgZ(13,"div",11),w._UZ(14,"qr-code",2),w.qZA(),w.YNc(15,Ke,4,2,"div",12),w.TgZ(16,"div",13),w.TgZ(17,"div",14),w.TgZ(18,"h4",15),w._uU(19),w.qZA(),w.TgZ(20,"span",16),w._uU(21),w.qZA(),w.qZA(),w.qZA(),w._UZ(22,"mat-divider",17),w.TgZ(23,"div",18),w.TgZ(24,"button",19),w.NdJ("copied",function(Ci){return Lt.onCopyPubkey(Ci)}),w._uU(25),w.qZA(),w.qZA(),w.qZA(),w.qZA(),w.qZA(),w.qZA()),2>&&(w.xp6(1),w.Q6J("ngClass",w.VKq(15,_t,Lt.screenSize===Lt.screenSizeEnum.XS||Lt.screenSize===Lt.screenSizeEnum.SM)),w.xp6(1),w.s9C("value",0===Lt.selInfoType.infoID?Lt.information.identity_pubkey:Lt.information.uris[Lt.selInfoType.infoID-1]),w.Q6J("size",Lt.qrWidth)("errorCorrectionLevel","L"),w.xp6(4),w.Q6J("icon",Lt.faReceipt),w.xp6(2),w.Oqu(Lt.selInfoType.infoName),w.xp6(5),w.Q6J("ngClass",w.VKq(17,_t,Lt.screenSize!==Lt.screenSizeEnum.XS&&Lt.screenSize!==Lt.screenSizeEnum.SM)),w.xp6(1),w.s9C("value",0===Lt.selInfoType.infoID?Lt.information.identity_pubkey:Lt.information.uris[Lt.selInfoType.infoID-1]),w.Q6J("size",Lt.qrWidth)("errorCorrectionLevel","L"),w.xp6(1),w.Q6J("ngIf",Lt.information.uris&&Lt.information.uris.length>0),w.xp6(4),w.Oqu(Lt.selInfoType.infoName),w.xp6(2),w.Oqu(0===Lt.selInfoType.infoID?Lt.information.identity_pubkey:Lt.information.uris[Lt.selInfoType.infoID-1]),w.xp6(3),w.s9C("payload",0===Lt.selInfoType.infoID?Lt.information.identity_pubkey:Lt.information.uris[Lt.selInfoType.infoID-1]),w.xp6(1),w.hij("Copy ",Lt.selInfoType.infoKey,""))},directives:[Z.xw,Z.Wh,Z.yH,ce.mk,re.oO,ae.uU,de.dk,Ii.BN,oe.lW,de.dn,ce.O5,u.d,a.h,p.y,jt.KE,Ui.gD,ce.sg,Di.ey],styles:[""]}),ot})();var qe=m(6523),yt=m(429),fe=m(2994),Je=m(8377),St=m(8138),Pt=m(7998),yi=m(5986),Ni=m(8104),Si=m(1402);let qi=(()=>{class ot{constructor(gt,Lt,ui,Ci,Yi,$i,Cn,Ln,_n,Pn,dr){this.actions=gt,this.httpClient=Lt,this.store=ui,this.logger=Ci,this.wsService=Yi,this.sessionService=$i,this.commonService=Cn,this.dataService=Ln,this.dialog=_n,this.snackBar=Pn,this.router=dr,this.screenSize="",this.alertWidth="55%",this.confirmWidth="70%",this.unSubs=[new t.x,new t.x],this.closeAllDialogs=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_ALL_DIALOGS),(0,M.U)(()=>{this.dialog.closeAll()})),{dispatch:!1}),this.openSnackBar=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_SNACK_BAR),(0,M.U)(wi=>{"string"==typeof wi.payload?this.snackBar.open(wi.payload):this.snackBar.open(wi.payload.message,"","ERROR"===wi.payload.type?{duration:wi.payload.duration?wi.payload.duration:2e3,panelClass:"rtl-warn-snack-bar"}:"WARN"===wi.payload.type?{duration:wi.payload.duration?wi.payload.duration:2e3,panelClass:"rtl-accent-snack-bar"}:{duration:wi.payload.duration?wi.payload.duration:2e3,panelClass:"rtl-snack-bar"})})),{dispatch:!1}),this.openSpinner=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_SPINNER),(0,M.U)(wi=>{wi.payload!==E.m6.NO_SPINNER&&(this.dialogRef=this.dialog.open(W,{data:{titleMessage:wi.payload}}))})),{dispatch:!1}),this.closeSpinner=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_SPINNER),(0,M.U)(wi=>{if(wi.payload!==E.m6.NO_SPINNER)try{this.dialogRef&&this.dialogRef.componentInstance&&this.dialogRef.componentInstance.data&&this.dialogRef.componentInstance.data.titleMessage&&this.dialogRef.componentInstance.data.titleMessage===wi.payload?this.dialogRef.close():this.dialog.openDialogs.forEach(Fi=>{Fi.componentInstance&&Fi.componentInstance.data&&Fi.componentInstance.data.titleMessage&&Fi.componentInstance.data.titleMessage===wi.payload&&Fi.close()})}catch(Fi){this.logger.error(Fi)}})),{dispatch:!1}),this.openAlert=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_ALERT),(0,M.U)(wi=>{const Fi=JSON.parse(JSON.stringify(wi.payload));Fi.width||(Fi.width=this.alertWidth),this.dialogRef=this.dialog.open(wi.payload.data.component?wi.payload.data.component:rt,Fi)})),{dispatch:!1}),this.closeAlert=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_ALERT),(0,M.U)(wi=>(this.dialogRef&&this.dialogRef.close(),wi.payload))),{dispatch:!1}),this.openConfirm=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_CONFIRMATION),(0,M.U)(wi=>{const Fi=JSON.parse(JSON.stringify(wi.payload));Fi.width||(Fi.width=this.confirmWidth),this.dialogRef=this.dialog.open(ci,Fi)})),{dispatch:!1}),this.closeConfirm=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_CONFIRMATION),(0,l.q)(1),(0,M.U)(wi=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(wi.payload),wi.payload))),{dispatch:!1}),this.showNodePubkey=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SHOW_PUBKEY),(0,N.M)(this.store.select(Je.R4)),(0,s.z)(([wi,Fi])=>(this.sessionService.getItem("token")&&Fi.identity_pubkey?this.store.dispatch((0,Zt.qR)({payload:{data:{information:Fi,component:ve}}})):this.snackBar.open("Node Pubkey does not exist."),(0,y.of)({type:E.pg.VOID}))))),this.appConfigFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_RTL_CONFIG),(0,s.z)(()=>(this.screenSize=this.commonService.getScreenSize(),this.screenSize===E.cu.XS||this.screenSize===E.cu.SM?(this.alertWidth="95%",this.confirmWidth="95%"):this.screenSize===E.cu.MD?(this.alertWidth="80%",this.confirmWidth="80%"):(this.alertWidth="45%",this.confirmWidth="50%"),this.store.dispatch((0,Zt.ac)({payload:E.m6.GET_RTL_CONFIG})),this.store.dispatch((0,Zt.qi)({payload:{action:"FetchRTLConfig",status:E.Bn.INITIATED}})),this.sessionService.getItem("token")?this.httpClient.get(O.NZ.CONF_API+"/rtlconf"):this.httpClient.get(O.NZ.CONF_API+"/rtlconfinit"))),(0,M.U)(wi=>{let Fi;return this.logger.info(wi),this.store.dispatch((0,Zt.uO)({payload:E.m6.GET_RTL_CONFIG})),this.store.dispatch((0,Zt.qi)({payload:{action:"FetchRTLConfig",status:E.Bn.COMPLETED}})),wi.nodes.forEach(dn=>{dn.settings.currencyUnits=[...E.uA,dn.settings.currencyUnit],+dn.index===wi.selectedNodeIndex&&(Fi=dn)}),Fi?(this.store.dispatch((0,Zt.fk)({payload:{uiMessage:E.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:Fi,isInitialSetup:!0}})),{type:E.pg.SET_RTL_CONFIG,payload:wi}):{type:E.pg.VOID}}),(0,D.K)(wi=>(this.handleErrorWithAlert("FetchRTLConfig",E.m6.GET_RTL_CONFIG,"Fetch RTL Config Failed!",O.NZ.CONF_API,wi),(0,y.of)({type:E.pg.VOID}))))),this.settingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SAVE_SETTINGS),(0,s.z)(wi=>{this.store.dispatch((0,Zt.ac)({payload:wi.payload.uiMessage})),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateSettings",status:E.Bn.INITIATED}}));let Fi=new C.y;if(wi.payload.settings&&wi.payload.defaultNodeIndex){const dn=this.httpClient.post(O.NZ.CONF_API,{updatedSettings:wi.payload.settings}),Lr=this.httpClient.post(O.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:wi.payload.defaultNodeIndex});Fi=(0,o.D)([dn,Lr])}else wi.payload.settings&&!wi.payload.defaultNodeIndex?Fi=this.httpClient.post(O.NZ.CONF_API,{updatedSettings:wi.payload.settings}):!wi.payload.settings&&wi.payload.defaultNodeIndex&&(Fi=this.httpClient.post(O.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:wi.payload.defaultNodeIndex}));return Fi.pipe((0,M.U)(dn=>(this.logger.info(dn),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateSettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:wi.payload.uiMessage})),{type:E.pg.OPEN_SNACK_BAR,payload:dn.length?dn[0].message+".":dn.message+"."})),(0,D.K)(dn=>(this.handleErrorWithAlert("UpdateSettings",wi.payload.uiMessage,"Update Settings Failed!",O.NZ.CONF_API,dn.length?dn[0]:dn),(0,y.of)({type:E.pg.VOID}))))}))),this.updateServicesettings=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.UPDATE_SERVICE_SETTINGS),(0,s.z)(wi=>(this.store.dispatch((0,Zt.ac)({payload:wi.payload.uiMessage})),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateServiceSettings",status:E.Bn.INITIATED}})),this.httpClient.post(O.NZ.CONF_API+"/updateServiceSettings",wi.payload).pipe((0,M.U)(Fi=>(this.logger.info(Fi),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateServiceSettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:wi.payload.uiMessage})),this.store.dispatch((0,Zt.Tm)({payload:wi.payload})),{type:E.pg.OPEN_SNACK_BAR,payload:Fi.message+"."})),(0,D.K)(Fi=>(this.handleErrorWithAlert("UpdateServiceSettings",wi.payload.uiMessage,"Update Service Settings Failed!",O.NZ.CONF_API,Fi),(0,y.of)({type:E.pg.VOID})))))))),this.twoFASettingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.TWO_FA_SAVE_SETTINGS),(0,s.z)(wi=>(this.store.dispatch((0,Zt.ac)({payload:E.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,Zt.qi)({payload:{action:"Update2FASettings",status:E.Bn.INITIATED}})),this.httpClient.post(O.NZ.CONF_API+"/update2FA",{secret2fa:wi.payload.secret2fa}))),(0,N.M)(this.store.select(Je.Yj)),(0,M.U)(([wi,Fi])=>{this.logger.info(wi),Fi.enable2FA=!Fi.enable2FA,this.store.dispatch((0,Zt.qi)({payload:{action:"Update2FASettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:E.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,Zt.XT)({payload:Fi}))}),(0,D.K)(wi=>(this.handleErrorWithAlert("Update2FASettings",E.m6.UPDATE_UI_SETTINGS,"Update 2FA Settings Failed!",O.NZ.CONF_API,wi),(0,y.of)({type:E.pg.VOID})))),{dispatch:!1}),this.configFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_CONFIG),(0,s.z)(wi=>(this.store.dispatch((0,Zt.ac)({payload:E.m6.OPEN_CONFIG_FILE})),this.store.dispatch((0,Zt.qi)({payload:{action:"fetchConfig",status:E.Bn.INITIATED}})),this.httpClient.get(O.NZ.CONF_API+"/config/"+wi.payload).pipe((0,M.U)(Fi=>(this.store.dispatch((0,Zt.qi)({payload:{action:"fetchConfig",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:E.m6.OPEN_CONFIG_FILE})),{type:E.pg.SHOW_CONFIG,payload:Fi})),(0,D.K)(Fi=>(this.handleErrorWithAlert("fetchConfig",E.m6.OPEN_CONFIG_FILE,"Fetch Config Failed!",O.NZ.CONF_API+"/config/"+wi.payload,Fi),(0,y.of)({type:E.pg.VOID})))))))),this.showLnConfig=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SHOW_CONFIG),(0,M.U)(wi=>wi.payload)),{dispatch:!1}),this.isAuthorized=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.IS_AUTHORIZED),(0,s.z)(wi=>(this.store.dispatch((0,Zt.qi)({payload:{action:"IsAuthorized",status:E.Bn.INITIATED}})),this.httpClient.post(O.NZ.AUTHENTICATE_API,{authenticateWith:wi.payload&&""!==wi.payload.trim()?E.OJ.PASSWORD:E.OJ.JWT,authenticationValue:wi.payload&&""!==wi.payload.trim()?wi.payload:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe((0,M.U)(Fi=>(this.logger.info(Fi),this.store.dispatch((0,Zt.qi)({payload:{action:"IsAuthorized",status:E.Bn.COMPLETED}})),this.logger.info("Successfully Authorized!"),{type:E.pg.IS_AUTHORIZED_RES,payload:Fi})),(0,D.K)(Fi=>(this.handleErrorWithAlert("IsAuthorized",E.m6.NO_SPINNER,"Authorization Failed",O.NZ.AUTHENTICATE_API,Fi),(0,y.of)({type:E.pg.IS_AUTHORIZED_RES,payload:"ERROR"})))))))),this.isAuthorizedRes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.IS_AUTHORIZED_RES),(0,M.U)(wi=>wi.payload)),{dispatch:!1}),this.authLogin=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.LOGIN),(0,N.M)(this.store.select(Je.Yj)),(0,s.z)(([wi,Fi])=>(this.store.dispatch((0,qe.Ll)({payload:null})),this.store.dispatch((0,yt.xH)({payload:null})),this.store.dispatch((0,fe.Fd)({payload:null})),this.store.dispatch((0,Zt.qi)({payload:{action:"Login",status:E.Bn.INITIATED}})),this.httpClient.post(O.NZ.AUTHENTICATE_API,{authenticateWith:wi.payload.password?E.OJ.PASSWORD:E.OJ.JWT,authenticationValue:wi.payload.password?wi.payload.password:this.sessionService.getItem("token")?this.sessionService.getItem("token"):"",twoFAToken:wi.payload.twoFAToken?wi.payload.twoFAToken:""}).pipe((0,M.U)(dn=>{this.logger.info(dn),this.store.dispatch((0,Zt.qi)({payload:{action:"Login",status:E.Bn.COMPLETED}})),this.setLoggedInDetails(wi.payload.defaultPassword,dn)}),(0,D.K)(dn=>(this.logger.info("Redirecting to Login Error Page"),this.handleErrorWithoutAlert("Login",E.m6.NO_SPINNER,dn),+Fi.sso.rtlSSO?this.router.navigate(["/error"],{state:{errorCode:"406",errorMessage:dn.error&&dn.error.error?dn.error.error:"Single Sign On Failed!"}}):this.router.navigate(["./login"]),(0,y.of)({type:E.pg.VOID}))))))),{dispatch:!1}),this.tokenVerify=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.VERIFY_TWO_FA),(0,s.z)(wi=>(this.store.dispatch((0,Zt.ac)({payload:E.m6.VERIFY_TOKEN})),this.store.dispatch((0,Zt.qi)({payload:{action:"VerifyToken",status:E.Bn.INITIATED}})),this.httpClient.post(O.NZ.AUTHENTICATE_API+"/token",{authentication2FA:wi.payload.token}).pipe((0,M.U)(Fi=>{this.logger.info(Fi),this.store.dispatch((0,Zt.uO)({payload:E.m6.VERIFY_TOKEN})),this.store.dispatch((0,Zt.qi)({payload:{action:"VerifyToken",status:E.Bn.COMPLETED}})),this.logger.info("Token Successfully Verified!"),this.setLoggedInDetails(!1,wi.payload.authResponse)}),(0,D.K)(Fi=>(this.handleErrorWithAlert("VerifyToken",E.m6.VERIFY_TOKEN,"Authorization Failed!",O.NZ.AUTHENTICATE_API+"/token",Fi),(0,y.of)({type:E.pg.VOID}))))))),{dispatch:!1}),this.logOut=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.LOGOUT),(0,N.M)(this.store.select(Je.Yj)),(0,s.z)(([wi,Fi])=>(this.store.dispatch((0,Zt.ac)({payload:E.m6.LOG_OUT})),this.httpClient.get(O.NZ.AUTHENTICATE_API+"/logout").pipe((0,M.U)(dn=>{this.logger.info(dn),this.store.dispatch((0,Zt.uO)({payload:E.m6.LOG_OUT})),+Fi.sso.rtlSSO?window.location.href=Fi.sso.logoutRedirectLink:this.router.navigate(["./login"]),this.sessionService.clearAll(),this.store.dispatch((0,Zt._V)({payload:{}})),this.logger.warn("LOGGED OUT")}))))),{dispatch:!1}),this.resetPassword=(0,e.GW)(()=>this.actions.pipe((0,A.R)(this.unSubs[1]),(0,e.l4)(E.pg.RESET_PASSWORD),(0,s.z)(wi=>(this.store.dispatch((0,Zt.qi)({payload:{action:"ResetPassword",status:E.Bn.INITIATED}})),this.httpClient.post(O.NZ.AUTHENTICATE_API+"/reset",{currPassword:wi.payload.currPassword,newPassword:wi.payload.newPassword}).pipe((0,A.R)(this.unSubs[0]),(0,M.U)(Fi=>(this.logger.info(Fi),this.store.dispatch((0,Zt.qi)({payload:{action:"ResetPassword",status:E.Bn.COMPLETED}})),this.sessionService.setItem("defaultPassword",!1),this.logger.info("Password Reset Successful!"),this.store.dispatch((0,Zt.jW)({payload:"Password Reset Successful!"})),this.SetToken(Fi.token),{type:E.pg.RESET_PASSWORD_RES,payload:Fi.token})),(0,D.K)(Fi=>(this.handleErrorWithAlert("ResetPassword",E.m6.NO_SPINNER,"Password Reset Failed!",O.NZ.AUTHENTICATE_API+"/reset",Fi),(0,y.of)({type:E.pg.VOID})))))))),this.setSelectedNode=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SET_SELECTED_NODE),(0,s.z)(wi=>(this.store.dispatch((0,Zt.ac)({payload:wi.payload.uiMessage})),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateSelNode",status:E.Bn.INITIATED}})),this.httpClient.post(O.NZ.CONF_API+"/updateSelNode",{prevNodeIndex:wi.payload.prevLnNodeIndex,currNodeIndex:wi.payload.currentLnNode.index}).pipe((0,M.U)(Fi=>(this.logger.info(Fi),this.store.dispatch((0,Zt.qi)({payload:{action:"UpdateSelNode",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:wi.payload.uiMessage})),this.initializeNode(wi.payload.currentLnNode,wi.payload.isInitialSetup),{type:E.pg.VOID})),(0,D.K)(Fi=>(this.handleErrorWithAlert("UpdateSelNode",wi.payload.uiMessage,"Update Selected Node Failed!",O.NZ.CONF_API+"/updateSelNode",Fi),(0,y.of)({type:E.pg.VOID})))))))),this.fetchFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_FILE),(0,s.z)(wi=>{this.store.dispatch((0,Zt.ac)({payload:E.m6.DOWNLOAD_BACKUP_FILE})),this.store.dispatch((0,Zt.qi)({payload:{action:"FetchFile",status:E.Bn.INITIATED}}));const Fi="?channel="+wi.payload.channelPoint+(wi.payload.path?"&path="+wi.payload.path:"");return this.httpClient.get(O.NZ.CONF_API+"/file"+Fi).pipe((0,M.U)(dn=>(this.store.dispatch((0,Zt.qi)({payload:{action:"FetchFile",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Zt.uO)({payload:E.m6.DOWNLOAD_BACKUP_FILE})),{type:E.pg.SHOW_FILE,payload:dn})),(0,D.K)(dn=>(this.handleErrorWithAlert("fetchFile",E.m6.DOWNLOAD_BACKUP_FILE,"Download Backup File Failed!",O.NZ.CONF_API+"/file"+Fi,{status:this.commonService.extractErrorNumber(dn),error:{error:this.commonService.extractErrorCode(dn)}}),(0,y.of)({type:E.pg.VOID}))))}))),this.showFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SHOW_FILE),(0,M.U)(wi=>wi.payload)),{dispatch:!1})}initializeNode(gt,Lt){this.logger.info("Initializing node from RTL Effects.");const ui=Lt?"":"HOME";let Ci={};if(Ci=gt.settings.fiatConversion&>.settings.currencyUnit?{userPersona:gt.settings.userPersona,channelBackupPath:gt.settings.channelBackupPath,selCurrencyUnit:gt.settings.currencyUnit,currencyUnits:[...E.uA,gt.settings.currencyUnit],fiatConversion:gt.settings.fiatConversion,lnImplementation:gt.lnImplementation,swapServerUrl:gt.settings.swapServerUrl,boltzServerUrl:gt.settings.boltzServerUrl,enableOffers:gt.settings.enableOffers}:{userPersona:gt.settings.userPersona,channelBackupPath:gt.settings.channelBackupPath,selCurrencyUnit:gt.settings.currencyUnit,currencyUnits:E.uA,fiatConversion:gt.settings.fiatConversion,lnImplementation:gt.lnImplementation,swapServerUrl:gt.settings.swapServerUrl,boltzServerUrl:gt.settings.boltzServerUrl,enableOffers:gt.settings.enableOffers},this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("clUnlocked"),this.sessionService.removeItem("eclUnlocked"),this.store.dispatch((0,Zt.vI)({payload:gt})),this.store.dispatch((0,qe.Ll)({payload:Ci})),this.store.dispatch((0,yt.xH)({payload:Ci})),this.store.dispatch((0,fe.Fd)({payload:Ci})),this.sessionService.getItem("token")){const Yi=gt.lnImplementation?gt.lnImplementation.toUpperCase():"LND";this.dataService.setLnImplementation(Yi);const $i=O.NZ.production&&window.location.origin?window.location.origin+"/rtl/api":O.T5;switch(this.wsService.connectWebSocket($i.replace(/^http/,"ws")+O.NZ.Web_SOCKET_API,gt.index.toString()),Yi){case"CLN":this.store.dispatch((0,yt.CN)({payload:{loadPage:ui}}));break;case"ECL":this.store.dispatch((0,fe.iz)({payload:{loadPage:ui}}));break;default:this.store.dispatch((0,qe.sQ)({payload:{loadPage:ui}}))}}}SetToken(gt){gt?(this.sessionService.setItem("lndUnlocked","true"),this.sessionService.setItem("token",gt)):(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"))}setLoggedInDetails(gt,Lt){this.logger.info("Successfully Authorized!"),this.SetToken(Lt.token),this.sessionService.setItem("defaultPassword",gt),gt?(this.store.dispatch((0,Zt.jW)({payload:"Reset your password."})),this.router.navigate(["/settings/auth"])):this.store.dispatch((0,Zt.ey)())}handleErrorWithoutAlert(gt,Lt,ui){this.logger.error("ERROR IN: "+gt+"\n"+JSON.stringify(ui)),401===ui.status&&"Login"!==gt?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Zt.ts)()),this.store.dispatch((0,Zt.kS)()),this.store.dispatch((0,Zt.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,Zt.uO)({payload:Lt})),this.store.dispatch((0,Zt.qi)({payload:{action:gt,status:E.Bn.ERROR,statusCode:ui.status?ui.status.toString():"",message:this.commonService.extractErrorMessage(ui)}})))}handleErrorWithAlert(gt,Lt,ui,Ci,Yi){if(this.logger.error(Yi),0===Yi.status&&Yi.statusText&&"Unknown Error"===Yi.statusText&&(Yi={status:400,error:{message:"Unknown Error / CORS Origin Not Allowed"}}),401===Yi.status&&"Login"!==gt)this.logger.info("Redirecting to Login"),this.store.dispatch((0,Zt.ts)()),this.store.dispatch((0,Zt.kS)()),this.store.dispatch((0,Zt.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,Zt.uO)({payload:Lt}));const $i=this.commonService.extractErrorMessage(Yi);this.store.dispatch((0,Zt.qR)({payload:{data:{type:"ERROR",alertTitle:ui,message:{code:Yi.status?Yi.status:"Unknown Error",message:$i,URL:Ci},component:sn.H}}})),this.store.dispatch((0,Zt.qi)({payload:{action:gt,status:E.Bn.ERROR,statusCode:Yi.status?Yi.status.toString():"",message:$i,URL:Ci}}))}}ngOnDestroy(){this.unSubs.forEach(gt=>{gt.next(null),gt.complete()})}}return ot.\u0275fac=function(gt){return new(gt||ot)(w.LFG(e.eX),w.LFG(St.eN),w.LFG(Ft.yh),w.LFG(ie.mQ),w.LFG(Pt.d),w.LFG(yi.m),w.LFG(_e.v),w.LFG(Ni.D),w.LFG(P.uw),w.LFG(ee.ux),w.LFG(Si.F0))},ot.\u0275prov=w.Yz7({token:ot,factory:ot.\u0275fac}),ot})()},8377:(Ve,Q,m)=>{"use strict";m.d(Q,{dT:()=>C,Yj:()=>o,R4:()=>M,ul:()=>l,Sr:()=>N,gW:()=>s});var e=m(5620);const t=(0,e.ZF)("root"),C=((0,e.P1)(t,D=>D.apiURL),(0,e.P1)(t,D=>D.selNode)),o=(0,e.P1)(t,D=>D.appConfig),M=(0,e.P1)(t,D=>D.nodeData),l=(0,e.P1)(t,D=>D.apisCallStatus.Login),N=(0,e.P1)(t,D=>D.apisCallStatus.IsAuthorized),s=(0,e.P1)(t,D=>({nodeDate:D.nodeData,selNode:D.selNode}))},2340:(Ve,Q,m)=>{"use strict";m.d(Q,{T5:()=>e,NZ:()=>t,q4:()=>y});const e="./api",t={production:!0,isDebugMode:!1,AUTHENTICATE_API:e+"/authenticate",CONF_API:e+"/conf",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"},y="0.12.4-beta"},8864:(Ve,Q,m)=>{"use strict";var e=m(2313),t=m(5e3),y=m(6360),C=m(8138),o=m(5113),M=m(5620),l=m(6642),N=m(9565),s=m(7579),D=m(6451),A=m(4968),O=m(457),E=m(4986),P=m(2805);function w(X=0,He=E.z){return X<0&&(X=0),(0,P.H)(X,X,He)}var Z=m(9646),j=m(727),W=m(4482),ie=m(5403),ee=m(8737),_e=m(3269),ce=m(9672),de=m(9300),oe=m(8505),ae=m(3900),b=m(2722),i=m(8746),a=m(1884),p=m(4004);class u{}class _{constructor(He,B){this._ngZone=B,this.timerStart$=new s.x,this.idleDetected$=new s.x,this.timeout$=new s.x,this.idleMillisec=6e5,this.idleSensitivityMillisec=1e3,this.timeout=300,this.pingMillisec=12e4,He&&this.setConfig(He)}startWatching(){this.activityEvents$||(this.activityEvents$=(0,D.T)((0,A.R)(window,"mousemove"),(0,A.R)(window,"resize"),(0,A.R)(document,"keydown"))),this.idle$=(0,O.D)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function re(X,...He){var B,Ae;const pt=null!==(B=(0,_e.yG)(He))&&void 0!==B?B:E.z,fi=null!==(Ae=He[0])&&void 0!==Ae?Ae:null,In=He[1]||1/0;return(0,W.e)((tr,Fn)=>{let Br=[],ya=!1;const sr=fo=>{const{buffer:xc,subs:jo}=fo;jo.unsubscribe(),(0,ee.P)(Br,fo),Fn.next(xc),ya&&Na()},Na=()=>{if(Br){const fo=new j.w0;Fn.add(fo);const jo={buffer:[],subs:fo};Br.push(jo),(0,ce.f)(fo,pt,()=>sr(jo),X)}};null!==fi&&fi>=0?(0,ce.f)(Fn,pt,Na,fi,!0):ya=!0,Na();const Wo=new ie.Q(Fn,fo=>{const xc=Br.slice();for(const jo of xc){const{buffer:w0}=jo;w0.push(fo),In<=w0.length&&sr(jo)}},()=>{for(;null==Br?void 0:Br.length;)Fn.next(Br.shift().buffer);null==Wo||Wo.unsubscribe(),Fn.complete(),Fn.unsubscribe()},void 0,()=>Br=null);tr.subscribe(Wo)})}(this.idleSensitivityMillisec),(0,de.h)(He=>!He.length&&!this.isIdleDetected&&!this.isInactivityTimer),(0,oe.b)(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),(0,ae.w)(()=>this._ngZone.runOutsideAngular(()=>w(1e3).pipe((0,b.R)((0,D.T)(this.activityEvents$,(0,P.H)(this.idleMillisec).pipe((0,oe.b)(()=>{this.isInactivityTimer=!0,this.timerStart$.next(!0)})))),(0,i.x)(()=>{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,a.x)(),(0,ae.w)(He=>He?this.timer$:(0,Z.of)(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe((0,de.h)(He=>!!He),(0,oe.b)(()=>this.isTimeout=!0),(0,p.U)(()=>!0))}getConfigValue(){return{idle:this.idleMillisec/1e3,idleSensitivity:this.idleSensitivityMillisec/1e3,timeout:this.timeout,ping:this.pingMillisec/1e3}}setConfigValues(He){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(He):console.error("Call stopWatching() before set config values")}setConfig(He){He.idle&&(this.idleMillisec=1e3*He.idle),He.ping&&(this.pingMillisec=1e3*He.ping),He.idleSensitivity&&(this.idleSensitivityMillisec=1e3*He.idleSensitivity),He.timeout&&(this.timeout=He.timeout)}setCustomActivityEvents(He){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=He:console.error("Call stopWatching() before set custom activity events")}setupTimer(He){this._ngZone.runOutsideAngular(()=>{this.timer$=(0,Z.of)(()=>new Date).pipe((0,p.U)(B=>B()),(0,ae.w)(B=>w(1e3).pipe((0,p.U)(()=>Math.round(((new Date).valueOf()-B.valueOf())/1e3)),(0,oe.b)(Ae=>{Ae>=He&&this.timeout$.next(!0)}))))})}setupPing(He){this.ping$=w(He).pipe((0,de.h)(()=>!this.isTimeout))}}_.\u0275fac=function(He){return new(He||_)(t.LFG(u,8),t.LFG(t.R0b))},_.\u0275prov=t.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_.ngInjectableDef=(0,t.Ez6)({factory:function(){return new _((0,t.f3M)(u,8),(0,t.f3M)(t.R0b))},token:_,providedIn:"root"});let L=(()=>{class X{static forRoot(B){return{ngModule:X,providers:[{provide:u,useValue:B}]}}}return X.\u0275fac=function(B){return new(B||X)},X.\u0275mod=t.oAB({type:X}),X.\u0275inj=t.cJS({imports:[[]]}),X})();var I=m(1402),x=m(801),r=m(8377),v=m(7093),G=m(9444),F=m(9224),U=m(3251),ye=m(9808);const Ce=function(){return{initial:!1}};function Be(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",10),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw();return pt.activeLink=pt.links[1].link}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw();t.s9C("routerLink",B.links[1].link),t.Q6J("active",B.activeLink===B.links[1].link)("state",t.DdM(4,Ce)),t.xp6(1),t.Oqu(B.links[1].name)}}function ze(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw();return pt.activeLink=pt.links[2].link}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw();t.s9C("routerLink",B.links[2].link),t.Q6J("active",B.activeLink===B.links[2].link),t.xp6(1),t.Oqu(B.links[2].name)}}let Ie=(()=>{class X{constructor(B,Ae){this.store=B,this.router=Ae,this.faUserCog=x.gNZ,this.showBitcoind=!1,this.links=[{link:"app",name:"Application"},{link:"auth",name:"Authentication"},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new s.x,new s.x,new s.x]}ngOnInit(){const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeLink=B?B.link:this.links[0].link,this.router.events.pipe((0,b.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof I.Av)).subscribe({next:Ae=>{const pt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeLink=pt?pt.link:this.links[0].link}}),this.store.select(r.Yj).pipe((0,b.R)(this.unSubs[1])).subscribe(Ae=>{this.appConfig=Ae}),this.store.select(r.dT).pipe((0,b.R)(this.unSubs[2])).subscribe(Ae=>{this.showBitcoind=!1,this.selNode=Ae,this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(I.F0))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-settings"]],decls:14,vars:6,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-tab-nav-bar",""],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Settings"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"nav",5),t.TgZ(8,"div",6),t.NdJ("click",function(){return Ae.activeLink=Ae.links[0].link}),t._uU(9),t.qZA(),t.YNc(10,Be,2,5,"div",7),t.YNc(11,ze,2,3,"div",8),t.qZA(),t.TgZ(12,"div",9),t._UZ(13,"router-outlet"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(1),t.Q6J("icon",Ae.faUserCog),t.xp6(7),t.s9C("routerLink",Ae.links[0].link),t.Q6J("active",Ae.activeLink===Ae.links[0].link),t.xp6(1),t.Oqu(Ae.links[0].name),t.xp6(1),t.Q6J("ngIf",!+Ae.appConfig.sso.rtlSSO),t.xp6(1),t.Q6J("ngIf",Ae.showBitcoind))},directives:[v.xw,v.Wh,G.BN,F.a8,F.dn,U.BU,U.Nj,I.rH,ye.O5,v.yH,I.lC],styles:[""]}),X})();var K=m(7731),Me=m(7861),we=m(5043),z=m(644),Ge=m(3075),vt=m(7322),Re=m(4107),Ne=m(3390),he=m(7423),Le=m(508);function ke(X,He){if(1&X&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.Q6J("value",B.index),t.xp6(1),t.AsE(" ",B.lnNode," (",B.lnImplementation,") ")}}function q(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"form",2,3),t.TgZ(2,"div",4),t._UZ(3,"fa-icon",5),t.TgZ(4,"span",6),t._uU(5,"Default Node"),t.qZA(),t.qZA(),t.TgZ(6,"div",7),t.TgZ(7,"div",8),t._UZ(8,"fa-icon",9),t.TgZ(9,"span"),t._uU(10,"The setting will apply after RTL server restarts."),t.qZA(),t.qZA(),t.TgZ(11,"div",10),t.TgZ(12,"mat-form-field",10),t.TgZ(13,"mat-select",11),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw().appConfig.defaultNodeIndex=pt}),t.YNc(14,ke,2,3,"mat-option",12),t.qZA(),t.qZA(),t.qZA(),t.TgZ(15,"div",13),t.TgZ(16,"div",10),t.TgZ(17,"button",14),t.NdJ("click",function(){return t.CHM(B),t.oxw().onResetSettings()}),t._uU(18,"Reset"),t.qZA(),t.TgZ(19,"button",15),t.NdJ("click",function(){return t.CHM(B),t.oxw().onUpdateSettings()}),t._uU(20,"Update"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.xp6(3),t.Q6J("icon",B.faWindowRestore),t.xp6(5),t.Q6J("icon",B.faInfoCircle),t.xp6(5),t.Q6J("ngModel",B.appConfig.defaultNodeIndex),t.xp6(1),t.Q6J("ngForOf",B.appConfig.nodes)}}let $=(()=>{class X{constructor(B,Ae){this.logger=B,this.store=Ae,this.faInfoCircle=x.sqG,this.faWindowRestore=x.wyP,this.faPlus=x.r8p,this.previousDefaultNode=0,this.unSubs=[new s.x,new s.x]}ngOnInit(){this.store.select(r.Yj).pipe((0,b.R)(this.unSubs[0])).subscribe(B=>{this.appConfig=B,this.previousDefaultNode=this.appConfig.defaultNodeIndex,this.logger.info(B)})}onAddNewNode(){this.logger.warn("ADD NEW NODE")}onUpdateSettings(){this.store.dispatch((0,Me.zQ)({payload:{uiMessage:K.m6.UPDATE_DEFAULT_NODE_SETTING,defaultNodeIndex:this.appConfig.defaultNodeIndex?this.appConfig.defaultNodeIndex:+this.appConfig.nodes[0].index}}))}onResetSettings(){this.appConfig.defaultNodeIndex=this.previousDefaultNode}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-app-settings"]],decls:2,vars:1,consts:[["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"],["form","ngForm"],["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","fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","row","fxLayoutAlign","start start"],["autoFocus","","tabindex","1","name","defaultNode",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],[3,"value"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t.YNc(1,q,21,4,"form",1),t.qZA()),2&B&&(t.xp6(1),t.Q6J("ngIf",Ae.appConfig.nodes&&Ae.appConfig.nodes.length&&Ae.appConfig.nodes.length>0))},directives:[v.xw,v.yH,z.$V,ye.O5,Ge._Y,Ge.JL,Ge.F,v.Wh,G.BN,vt.KE,Re.gD,Ne.h,Ge.JJ,Ge.On,ye.sg,he.lW,Le.ey],styles:[""]}),X})();var le=m(8012),xe=m(5698),Ue=m(8966),lt=m(5768),nt=m(3093),ft=m(7261),it=m(5615),rt=m(7531),Mt=m(6895),Zt=m(159);const Ft=["stepper"];function Vt(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw();t.Oqu(B.passwordFormLabel)}}function Ii(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Password is required."),t.qZA())}function jt(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(2);t.Oqu(B.secretFormLabel)}}function ei(X,He){if(1&X&&t._UZ(0,"qr-code",32),2&X){const B=t.oxw(2);t.Q6J("value",B.otpauth)("size",180)("errorCorrectionLevel","L")}}function Pi(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Secret Code is required."),t.qZA())}function ai(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-step",10),t.TgZ(1,"form",21),t.YNc(2,jt,1,1,"ng-template",22),t.TgZ(3,"div",23),t.YNc(4,ei,1,3,"qr-code",24),t.qZA(),t.TgZ(5,"div",25),t._UZ(6,"fa-icon",26),t.TgZ(7,"span"),t._uU(8,"You can use a compatible authentication app to get an authentication code when you log in to RTL. e.g.: Google Authenticator."),t.qZA(),t.qZA(),t.TgZ(9,"div",27),t.TgZ(10,"mat-form-field",1),t._UZ(11,"input",28),t.TgZ(12,"fa-icon",29),t.NdJ("copied",function(pt){return t.CHM(B),t.oxw().onCopySecret(pt)}),t.qZA(),t.YNc(13,Pi,2,0,"mat-error",14),t.qZA(),t.qZA(),t.TgZ(14,"div",30),t.TgZ(15,"button",31),t._uU(16,"Next"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("stepControl",B.secretFormGroup)("editable",B.flgEditable),t.xp6(1),t.Q6J("formGroup",B.secretFormGroup),t.xp6(3),t.Q6J("ngIf",B.otpauth),t.xp6(2),t.Q6J("icon",B.faInfoCircle),t.xp6(6),t.Q6J("icon",B.faCopy)("payload",null==B.secretFormGroup||null==B.secretFormGroup.controls||null==B.secretFormGroup.controls.secret?null:B.secretFormGroup.controls.secret.value),t.xp6(1),t.Q6J("ngIf",null==B.secretFormGroup||null==B.secretFormGroup.controls||null==B.secretFormGroup.controls.secret||null==B.secretFormGroup.controls.secret.errors?null:B.secretFormGroup.controls.secret.errors.required)}}function hi(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(2);t.Oqu(B.tokenFormLabel)}}function Ze(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Token is required."),t.qZA())}function Ee(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Token is invalid."),t.qZA())}function Y(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"div",27),t.TgZ(2,"mat-form-field",1),t._UZ(3,"input",36),t.YNc(4,Ze,2,0,"mat-error",14),t.YNc(5,Ee,2,0,"mat-error",14),t.qZA(),t.qZA(),t.TgZ(6,"div",30),t.TgZ(7,"button",37),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onVerifyToken()}),t._uU(8),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(2);t.xp6(4),t.Q6J("ngIf",null==B.tokenFormGroup||null==B.tokenFormGroup.controls||null==B.tokenFormGroup.controls.token||null==B.tokenFormGroup.controls.token.errors?null:B.tokenFormGroup.controls.token.errors.required),t.xp6(1),t.Q6J("ngIf",null==B.tokenFormGroup||null==B.tokenFormGroup.controls||null==B.tokenFormGroup.controls.token||null==B.tokenFormGroup.controls.token.errors?null:B.tokenFormGroup.controls.token.errors.notValid),t.xp6(3),t.Oqu(null!=B.tokenFormGroup&&null!=B.tokenFormGroup.controls&&null!=B.tokenFormGroup.controls.token&&null!=B.tokenFormGroup.controls.token.errors&&B.tokenFormGroup.controls.token.errors.notValid?"Retry":"Verify")}}function me(X,He){1&X&&(t.TgZ(0,"div"),t.TgZ(1,"strong"),t._uU(2,"Success! You are all set."),t.qZA(),t.qZA())}function De(X,He){if(1&X&&(t.TgZ(0,"mat-step",33),t.TgZ(1,"form",34),t.YNc(2,hi,1,1,"ng-template",12),t.YNc(3,Y,9,3,"div",35),t.YNc(4,me,3,0,"div",14),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.Q6J("stepControl",B.tokenFormGroup),t.xp6(1),t.Q6J("formGroup",B.tokenFormGroup),t.xp6(2),t.Q6J("ngIf",!B.flgValidated||!B.isTokenValid),t.xp6(1),t.Q6J("ngIf",B.flgValidated&&B.isTokenValid)}}function et(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(2);t.Oqu(B.disableFormLabel)}}function $t(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"div",38),t._UZ(2,"fa-icon",26),t.TgZ(3,"span"),t._uU(4,"You are about to disable two-factor authentication security from RTL. Are you sure you want to turn it off?"),t.qZA(),t.qZA(),t.TgZ(5,"div",30),t.TgZ(6,"button",37),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onVerifyToken()}),t._uU(7,"Disable"),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(2);t.xp6(2),t.Q6J("icon",B.faExclamationTriangle)}}function Nt(X,He){1&X&&(t.TgZ(0,"div"),t.TgZ(1,"strong"),t._uU(2,"Two factor authentication removed from RTL."),t.qZA(),t.qZA())}function Jt(X,He){if(1&X&&(t.TgZ(0,"mat-step",33),t.TgZ(1,"form",34),t.YNc(2,et,1,1,"ng-template",12),t.YNc(3,$t,8,1,"div",35),t.YNc(4,Nt,3,0,"div",14),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.Q6J("stepControl",B.disableFormGroup),t.xp6(1),t.Q6J("formGroup",B.disableFormGroup),t.xp6(2),t.Q6J("ngIf",!B.flgValidated||!B.isTokenValid),t.xp6(1),t.Q6J("ngIf",B.flgValidated&&B.isTokenValid)}}let ct=(()=>{class X{constructor(B,Ae,pt,fi,In,tr){this.dialogRef=B,this.data=Ae,this.store=pt,this.formBuilder=fi,this.rtlEffects=In,this.snackBar=tr,this.faExclamationTriangle=x.eHv,this.faCopy=x.kZ_,this.faInfoCircle=x.sqG,this.flgValidated=!1,this.isTokenValid=!0,this.otpauth="",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:["",[Ge.kI.required]],password:["",[Ge.kI.required]]}),this.secretFormGroup=this.formBuilder.group({secret:[{value:"",disabled:!0},Ge.kI.required]}),this.tokenFormGroup=this.formBuilder.group({token:["",Ge.kI.required]}),this.disableFormGroup=this.formBuilder.group({}),this.unSubs=[new s.x,new s.x]}ngOnInit(){this.appConfig=this.data.appConfig,this.showDisableStepper=!!this.appConfig.enable2FA,this.secretFormGroup=this.formBuilder.group({secret:[{value:this.appConfig.enable2FA?"":this.generateSecret(),disabled:!0},Ge.kI.required]})}generateSecret(){const B=lt.authenticator.generateSecret();return this.otpauth=lt.authenticator.keyuri("","Ride The Lightning (RTL)",B),B}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,Me.QO)({payload:le(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,xe.q)(1)).subscribe(B=>{"ERROR"!==B?(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(B){this.snackBar.open("Secret code "+this.secretFormGroup.controls.secret.value+" copied.")}onVerifyToken(){if(this.appConfig.enable2FA)this.store.dispatch((0,Me.Uy)({payload:{secret2fa:""}})),this.generateSecret(),this.isTokenValid=!0;else{if(!this.tokenFormGroup.controls.token.value)return!0;if(this.isTokenValid=lt.authenticator.check(this.tokenFormGroup.controls.token.value,this.secretFormGroup.controls.secret.value),!this.isTokenValid)return this.tokenFormGroup.controls.token.setErrors({notValid:!0}),!0;this.store.dispatch((0,Me.Uy)({payload:{secret2fa:this.secretFormGroup.controls.secret.value}})),this.tokenFormGroup.controls.token.setValue("")}this.flgValidated=!0,this.appConfig.enable2FA=!this.appConfig.enable2FA}stepSelectionChanged(B){switch(B.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password";break;case 1:case 2:this.passwordFormLabel="User authenticated successfully"}B.selectedIndex{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Ue.so),t.Y36(Ue.WI),t.Y36(M.yh),t.Y36(Ge.qu),t.Y36(nt.V),t.Y36(ft.ux))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-two-factor-auth"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(Ft,5),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.stepper=pt.first)}},decls:28,vars:11,consts:[["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","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["autoFocus","","matInput","","placeholder","Password","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"],[3,"value","size","errorCorrectionLevel",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","","placeholder","Secret Code","type","text","tabindex","4","formControlName","secret","required",""],["matSuffix","","rtlClipboard","",3,"icon","payload","copied"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","6","type","button","matStepperNext",""],[3,"value","size","errorCorrectionLevel"],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["fxLayout","column",4,"ngIf"],["autoFocus","","matInput","","placeholder","Token","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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"mat-card-header",2),t.TgZ(3,"div",3),t.TgZ(4,"span",4),t._uU(5,"Setup Two Factor Authentication"),t.qZA(),t.qZA(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA(),t.qZA(),t.TgZ(8,"mat-card-content",6),t.TgZ(9,"div",7),t.TgZ(10,"mat-vertical-stepper",8,9),t.NdJ("selectionChange",function(fi){return Ae.stepSelectionChanged(fi)}),t.TgZ(12,"mat-step",10),t.TgZ(13,"form",11),t.YNc(14,Vt,1,1,"ng-template",12),t.TgZ(15,"div",0),t.TgZ(16,"mat-form-field",1),t._UZ(17,"input",13),t.YNc(18,Ii,2,0,"mat-error",14),t.qZA(),t.qZA(),t.TgZ(19,"div",15),t.TgZ(20,"button",16),t.NdJ("click",function(){return Ae.onAuthenticate()}),t._uU(21,"Confirm"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.YNc(22,ai,17,8,"mat-step",17),t.YNc(23,De,5,4,"mat-step",18),t.YNc(24,Jt,5,4,"mat-step",18),t.qZA(),t.TgZ(25,"div",19),t.TgZ(26,"button",20),t._uU(27),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(4),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",Ae.passwordFormGroup)("editable",Ae.flgEditable),t.xp6(1),t.Q6J("formGroup",Ae.passwordFormGroup),t.xp6(5),t.Q6J("ngIf",null==Ae.passwordFormGroup||null==Ae.passwordFormGroup.controls||null==Ae.passwordFormGroup.controls.password||null==Ae.passwordFormGroup.controls.password.errors?null:Ae.passwordFormGroup.controls.password.errors.required),t.xp6(4),t.Q6J("ngIf",!Ae.showDisableStepper),t.xp6(1),t.Q6J("ngIf",!Ae.showDisableStepper),t.xp6(1),t.Q6J("ngIf",Ae.showDisableStepper),t.xp6(2),t.Q6J("mat-dialog-close",!1),t.xp6(1),t.Oqu(Ae.flgValidated&&Ae.isTokenValid?"Close":"Cancel"))},directives:[v.xw,v.yH,F.dk,v.Wh,he.lW,Ue.ZT,F.dn,it.Vq,it.C0,Ge._Y,Ge.JL,Ge.sg,it.VY,vt.KE,rt.Nt,Ge.Fj,Ne.h,Ge.JJ,Ge.u,Ge.Q7,ye.O5,vt.TO,G.BN,vt.R9,Mt.y,it.Ic,Zt.uU],styles:[""]}),X})();var Pe=m(5986),Fe=m(4834);const at=["authForm"];function st(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Current password is required."),t.qZA())}function At(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.errorMsg)}}function li(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.errorConfirmMsg)}}function Bt(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"form",10,11),t.TgZ(2,"div",12),t._UZ(3,"fa-icon",4),t.TgZ(4,"span",5),t._uU(5,"Password"),t.qZA(),t.qZA(),t.TgZ(6,"mat-form-field"),t.TgZ(7,"input",13),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw().currPassword=pt}),t.qZA(),t.YNc(8,st,2,0,"mat-error",14),t.qZA(),t.TgZ(9,"mat-form-field"),t.TgZ(10,"input",15),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw().newPassword=pt}),t.qZA(),t.YNc(11,At,2,1,"mat-error",14),t.qZA(),t.TgZ(12,"mat-form-field"),t.TgZ(13,"input",16),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw().confirmPassword=pt}),t.qZA(),t.YNc(14,li,2,1,"mat-error",14),t.qZA(),t.TgZ(15,"div",17),t.TgZ(16,"button",18),t.NdJ("click",function(){return t.CHM(B),t.oxw().onResetPassword()}),t._uU(17,"Reset"),t.qZA(),t.TgZ(18,"button",19),t.NdJ("click",function(){return t.CHM(B),t.oxw().onChangePassword()}),t._uU(19,"Change Password"),t.qZA(),t.qZA(),t.TgZ(20,"div",20),t._UZ(21,"mat-divider",21),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.xp6(3),t.Q6J("icon",B.faLock),t.xp6(4),t.Q6J("ngModel",B.currPassword),t.xp6(1),t.Q6J("ngIf",!B.currPassword),t.xp6(2),t.Q6J("ngModel",B.newPassword),t.xp6(1),t.Q6J("ngIf",B.matchOldAndNewPasswords()),t.xp6(2),t.Q6J("ngModel",B.confirmPassword),t.xp6(1),t.Q6J("ngIf",B.matchNewPasswords()),t.xp6(7),t.Q6J("inset",!0)}}let Rt=(()=>{class X{constructor(B,Ae,pt,fi,In){this.logger=B,this.store=Ae,this.actions=pt,this.router=fi,this.sessionService=In,this.faInfoCircle=x.sqG,this.faUserLock=x.FJU,this.faUserClock=x.hnx,this.faLock=x.byT,this.currPassword="",this.newPassword="",this.confirmPassword="",this.errorMsg="",this.errorConfirmMsg="",this.initializeNodeData=!1,this.unSubs=[new s.x,new s.x,new s.x]}ngOnInit(){this.initializeNodeData="true"===this.sessionService.getItem("defaultPassword"),this.store.select(r.Yj).pipe((0,b.R)(this.unSubs[0])).subscribe(B=>{this.appConfig=B,this.logger.info(this.appConfig)}),this.store.select(r.dT).pipe((0,b.R)(this.unSubs[1])).subscribe(B=>{this.selNode=B}),this.actions.pipe((0,b.R)(this.unSubs[2]),(0,de.h)(B=>B.type===K.pg.RESET_PASSWORD_RES)).subscribe(B=>{if(K.kO.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||K.kO.includes(this.newPassword.toLowerCase()))return!0;this.store.dispatch((0,Me.c0)({payload:{currPassword:le(this.currPassword).toString(),newPassword:le(this.newPassword).toString()}}))}matchOldAndNewPasswords(){let B=!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.",B=!0):K.kO.includes(this.newPassword.toLowerCase())?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg=K.kO.reduce((Ae,pt,fi)=>fi{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(M.yh),t.Y36(l.eX),t.Y36(I.F0),t.Y36(Pe.m))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-auth-settings"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(at,5),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.form=pt.first)}},decls:14,vars:4,consts:[["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"],["fxLayout","column","fxFlex","100","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"],["authForm","ngForm"],["fxLayout","row","fxLayoutAlign","start start",1,"mb-2"],["autoFocus","","matInput","","placeholder","Current Password","type","password","id","currpassword","name","currpassword","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["matInput","","placeholder","New Password","type","password","id","newpassword","name","newpassword","tabindex","2","required","",3,"ngModel","ngModelChange"],["matInput","","placeholder","Confirm New Password","type","password","id","confirmpassword","name","confirmpassword","tabindex","3","required","",3,"ngModel","ngModelChange"],["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"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end stretch",1,"my-2"],[3,"inset"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t.YNc(1,Bt,22,8,"form",1),t.TgZ(2,"div",2),t.TgZ(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span",5),t._uU(6,"Two Factor Authentication"),t.qZA(),t.qZA(),t.TgZ(7,"div",6),t._UZ(8,"fa-icon",7),t.TgZ(9,"span"),t._uU(10,"Protect your account from unauthorized access by requiring a second authentication method in addition to your password."),t.qZA(),t.qZA(),t.TgZ(11,"div",8),t.TgZ(12,"button",9),t.NdJ("click",function(){return Ae.on2FAuth()}),t._uU(13),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(1),t.Q6J("ngIf",null==Ae.appConfig?null:Ae.appConfig.allowPasswordUpdate),t.xp6(3),t.Q6J("icon",Ae.faUserClock),t.xp6(4),t.Q6J("icon",Ae.faInfoCircle),t.xp6(5),t.Oqu(Ae.appConfig.enable2FA?"Disable 2FA":"Enable 2FA"))},directives:[v.xw,v.yH,v.Wh,ye.O5,G.BN,he.lW,Ge._Y,Ge.JL,Ge.F,vt.KE,rt.Nt,Ge.Fj,Ne.h,Ge.Q7,Ge.JJ,Ge.On,Fe.d,vt.TO],styles:[""]}),X})();var Li=m(4623);function si(X,He){1&X&&t._UZ(0,"mat-divider",7)}function ci(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"pre",5),t._uU(2),t.ALo(3,"json"),t.qZA(),t.YNc(4,si,1,0,"mat-divider",6),t.qZA()),2&X){const B=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,2,B.configData)),t.xp6(2),t.Q6J("ngIf",""!==B.configData)}}function sn(X,He){if(1&X&&(t.TgZ(0,"h2"),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B)}}function Ui(X,He){if(1&X&&(t.TgZ(0,"h4",14),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B)}}function Di(X,He){1&X&&t._UZ(0,"mat-divider",15),2&X&&t.Q6J("inset",!0)}function Xi(X,He){if(1&X&&(t.TgZ(0,"mat-list-item"),t.TgZ(1,"mat-card-subtitle",7),t.YNc(2,sn,2,1,"h2",10),t.qZA(),t.TgZ(3,"mat-card-subtitle",11),t.YNc(4,Ui,2,1,"h4",12),t.qZA(),t.YNc(5,Di,1,1,"mat-divider",13),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Q6J("ngIf",B.indexOf("[")>=0),t.xp6(2),t.Q6J("ngIf",B.indexOf("[")<0),t.xp6(1),t.Q6J("ngIf",B.indexOf("[")<0)}}function Ke(X,He){if(1&X&&(t.TgZ(0,"div",8),t.TgZ(1,"mat-list"),t.YNc(2,Xi,6,3,"mat-list-item",9),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(2),t.Q6J("ngForOf",B.configData)}}let _t=(()=>{class X{constructor(B,Ae,pt){this.store=B,this.rtlEffects=Ae,this.router=pt,this.selectedNodeType="",this.configData="",this.fileFormat="INI",this.faCog=x.b7W,this.unSubs=[new s.x,new s.x]}ngOnInit(){this.selectedNodeType=this.router.url.includes("bconfig")?"bitcoind":"ln",this.router.events.pipe((0,b.R)(this.unSubs[0]),(0,de.h)(B=>B instanceof I.Av)).subscribe({next:B=>{this.selectedNodeType=B.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}}),this.store.dispatch((0,Me.Q2)({payload:this.selectedNodeType})),this.rtlEffects.showLnConfig.pipe((0,b.R)(this.unSubs[1])).subscribe(B=>{const Ae=B.data;this.fileFormat=B.format,this.configData=""===Ae||!Ae||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==Ae&&Ae&&"JSON"===this.fileFormat?Ae:"":Ae.split("\n")})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(nt.V),t.Y36(I.F0))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-bitcoin-config"]],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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,ci,5,4,"div",2),t.YNc(3,Ke,3,1,"div",3),t.qZA(),t.qZA()),2&B&&(t.xp6(2),t.Q6J("ngIf",""!==Ae.configData&&"JSON"===Ae.fileFormat),t.xp6(1),t.Q6J("ngIf",""!==Ae.configData&&("INI"===Ae.fileFormat||"HOCON"===Ae.fileFormat)))},directives:[v.xw,v.yH,v.Wh,ye.O5,Fe.d,Li.i$,ye.sg,Li.Tg,F.$j],pipes:[ye.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})();const ve=function(){return{initial:!1}};function qe(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",10),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw();return pt.activeLink=pt.links[1].link}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw();t.s9C("routerLink",B.links[1].link),t.Q6J("active",B.activeLink===B.links[1].link)("state",t.DdM(4,ve)),t.xp6(1),t.Oqu(B.links[1].name)}}function yt(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw();return pt.activeLink=pt.links[2].link}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw();t.s9C("routerLink",B.links[2].link),t.Q6J("active",B.activeLink===B.links[2].link),t.xp6(1),t.Oqu(B.links[2].name)}}function fe(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw();return pt.activeLink=pt.links[3].link}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw();t.s9C("routerLink",B.links[3].link),t.Q6J("active",B.activeLink===B.links[3].link),t.xp6(1),t.Oqu(B.links[3].name)}}let Je=(()=>{class X{constructor(B,Ae){this.store=B,this.router=Ae,this.faTools=x.CgH,this.showLnConfig=!1,this.lnImplementationStr="",this.links=[{link:"layout",name:"Layout"},{link:"services",name:"Services"},{link:"experimental",name:"Experimental"},{link:"lnconfig",name:this.lnImplementationStr}],this.activeLink="",this.unSubs=[new s.x,new s.x,new s.x]}ngOnInit(){const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeLink=B?B.link:this.links[0].link,this.router.events.pipe((0,b.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof I.Av)).subscribe({next:Ae=>{const pt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeLink=pt?pt.link:this.links[0].link}}),this.store.select(r.dT).pipe((0,b.R)(this.unSubs[1])).subscribe(Ae=>{switch(this.showLnConfig=!1,this.selNode=Ae,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[3].name=this.lnImplementationStr,this.showLnConfig=!0)})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(I.F0))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-node-config"]],decls:15,vars:7,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-tab-nav-bar",""],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Node Config"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"nav",5),t.TgZ(8,"div",6),t.NdJ("click",function(){return Ae.activeLink=Ae.links[0].link}),t._uU(9),t.qZA(),t.YNc(10,qe,2,5,"div",7),t.YNc(11,yt,2,3,"div",8),t.YNc(12,fe,2,3,"div",8),t.qZA(),t.TgZ(13,"div",9),t._UZ(14,"router-outlet"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(1),t.Q6J("icon",Ae.faTools),t.xp6(7),t.s9C("routerLink",Ae.links[0].link),t.Q6J("active",Ae.activeLink===Ae.links[0].link),t.xp6(1),t.Oqu(Ae.links[0].name),t.xp6(1),t.Q6J("ngIf","LND"===(null==Ae.selNode||null==Ae.selNode.lnImplementation?null:Ae.selNode.lnImplementation.toUpperCase())),t.xp6(1),t.Q6J("ngIf","CLN"===(null==Ae.selNode||null==Ae.selNode.lnImplementation?null:Ae.selNode.lnImplementation.toUpperCase())),t.xp6(1),t.Q6J("ngIf",Ae.showLnConfig))},directives:[v.xw,v.Wh,G.BN,F.a8,F.dn,U.BU,U.Nj,I.rH,ye.O5,v.yH,I.lC],styles:[""]}),X})();function St(X,He){1&X&&t._UZ(0,"mat-divider",7)}function Pt(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"pre",5),t._uU(2),t.ALo(3,"json"),t.qZA(),t.YNc(4,St,1,0,"mat-divider",6),t.qZA()),2&X){const B=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,2,B.configData)),t.xp6(2),t.Q6J("ngIf",""!==B.configData)}}function yi(X,He){if(1&X&&(t.TgZ(0,"h2"),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B)}}function Ni(X,He){if(1&X&&(t.TgZ(0,"h4",14),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B)}}function Si(X,He){1&X&&t._UZ(0,"mat-divider",15),2&X&&t.Q6J("inset",!0)}function qi(X,He){if(1&X&&(t.TgZ(0,"mat-list-item"),t.TgZ(1,"mat-card-subtitle",7),t.YNc(2,yi,2,1,"h2",10),t.qZA(),t.TgZ(3,"mat-card-subtitle",11),t.YNc(4,Ni,2,1,"h4",12),t.qZA(),t.YNc(5,Si,1,1,"mat-divider",13),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Q6J("ngIf",B.indexOf("[")>=0),t.xp6(2),t.Q6J("ngIf",B.indexOf("[")<0),t.xp6(1),t.Q6J("ngIf",B.indexOf("[")<0)}}function ot(X,He){if(1&X&&(t.TgZ(0,"div",8),t.TgZ(1,"mat-list"),t.YNc(2,qi,6,3,"mat-list-item",9),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(2),t.Q6J("ngForOf",B.configData)}}let Kt=(()=>{class X{constructor(B,Ae,pt){this.store=B,this.rtlEffects=Ae,this.router=pt,this.selectedNodeType="",this.configData="",this.fileFormat="INI",this.faCog=x.b7W,this.unSubs=[new s.x,new s.x]}ngOnInit(){this.selectedNodeType=this.router.url.includes("bconfig")?"bitcoind":"ln",this.router.events.pipe((0,b.R)(this.unSubs[0]),(0,de.h)(B=>B instanceof I.Av)).subscribe({next:B=>{this.selectedNodeType=B.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}}),this.store.dispatch((0,Me.Q2)({payload:this.selectedNodeType})),this.rtlEffects.showLnConfig.pipe((0,b.R)(this.unSubs[1])).subscribe(B=>{const Ae=B.data;this.fileFormat=B.format,this.configData=""===Ae||!Ae||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==Ae&&Ae&&"JSON"===this.fileFormat?Ae:"":Ae.split("\n")})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(nt.V),t.Y36(I.F0))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-lnp-config"]],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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,Pt,5,4,"div",2),t.YNc(3,ot,3,1,"div",3),t.qZA(),t.qZA()),2&B&&(t.xp6(2),t.Q6J("ngIf",""!==Ae.configData&&"JSON"===Ae.fileFormat),t.xp6(1),t.Q6J("ngIf",""!==Ae.configData&&("INI"===Ae.fileFormat||"HOCON"===Ae.fileFormat)))},directives:[v.xw,v.yH,v.Wh,ye.O5,Fe.d,Li.i$,ye.sg,Li.Tg,F.$j],pipes:[ye.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})();var gt=m(2994),Lt=m(429),ui=m(6523),Ci=m(62),Yi=m(2368),$i=m(9814),Cn=m(3322);function Ln(X,He){if(1&X&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.Q6J("value",B.id),t.xp6(1),t.hij(" ",B.id," ")}}function _n(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Currency unit is required."),t.qZA())}function Pn(X,He){if(1&X&&(t.TgZ(0,"mat-radio-button",36),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw();t.Q6J("value",B)("checked",Ae.selNode.settings.userPersona===B),t.xp6(1),t.hij(" ",t.lcZ(2,3,B)," ")}}const dr=function(X){return{"mr-4":X}};function wi(X,He){if(1&X&&(t.TgZ(0,"mat-radio-button",37),t._uU(1),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw();t.Q6J("value",B)("ngClass",t.VKq(3,dr,Ae.screenSize===Ae.screenSizeEnum.XS||Ae.screenSize===Ae.screenSizeEnum.SM)),t.xp6(1),t.hij("",B.name," ")}}const Fi=function(X){return{skin:!0,"selected-color":X}};function dn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"span",38),t.TgZ(1,"div",39),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw().changeThemeColor(fi.id)}),t.ALo(2,"lowercase"),t.qZA(),t._uU(3),t.qZA()}if(2&X){const B=He.$implicit,Ae=t.oxw();t.xp6(1),t.Tol(t.lcZ(2,4,B.id)),t.Q6J("ngClass",t.VKq(6,Fi,Ae.selectedThemeColor===B.id)),t.xp6(2),t.hij(" ",B.name," ")}}let Lr=(()=>{class X{constructor(B,Ae,pt){this.logger=B,this.commonService=Ae,this.store=pt,this.faExclamationTriangle=x.eHv,this.faMoneyBillAlt=x.co4,this.faPaintBrush=x.XsY,this.faInfoCircle=x.sqG,this.userPersonas=[K.ol.OPERATOR,K.ol.MERCHANT],this.currencyUnits=K.Er,this.themeModes=K.wZ.modes,this.themeColors=K.wZ.themes,this.selectedThemeMode=K.wZ.modes[0],this.selectedThemeColor=K.wZ.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.screenSize="",this.screenSizeEnum=K.cu,this.unSubs=[new s.x,new s.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(r.dT).pipe((0,b.R)(this.unSubs[0])).subscribe(B=>{this.selNode=B,this.selectedThemeMode=this.themeModes.find(Ae=>this.selNode.settings.themeMode===Ae.id),this.selectedThemeColor=this.selNode.settings.themeColor,this.selNode.settings.fiatConversion||(this.selNode.settings.currencyUnit=null),this.previousSettings=JSON.parse(JSON.stringify(this.selNode.settings)),this.logger.info(B)})}onCurrencyChange(B){this.selNode.settings.currencyUnits=[...K.uA,B.value],this.store.dispatch((0,ui.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:B.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,Lt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:B.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,gt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:B.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}}))}toggleSettings(B,Ae){this.selNode.settings[B]=!this.selNode.settings[B]}changeThemeColor(B){this.selectedThemeColor=B,this.selNode.settings.themeColor=B}chooseThemeMode(){this.selNode.settings.themeMode=this.selectedThemeMode.id}onUpdateSettings(){if(this.selNode.settings.fiatConversion&&!this.selNode.settings.currencyUnit)return!0;this.logger.info(this.selNode.settings),this.store.dispatch((0,Me.zQ)({payload:{uiMessage:K.m6.UPDATE_NODE_SETTINGS,settings:this.selNode.settings}})),this.store.dispatch((0,ui.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,Lt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,gt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}}))}onResetSettings(){const B=this.selNode.index;this.selNode.settings=this.previousSettings,this.selectedThemeMode=this.themeModes.find(Ae=>Ae.id===this.previousSettings.themeMode),this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch((0,Me.fk)({payload:{uiMessage:K.m6.NO_SPINNER,prevLnNodeIndex:+B,currentLnNode:this.selNode,isInitialSetup:!0}}))}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(Ci.v),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-node-settings"]],decls:60,vars:17,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxLayout","column","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayoutAlign","start stretch",1,"mt-1","bordered-box","padding-gap-large"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["href","https://www.blockchain.com/api/exchange_rates_api","target","blank"],["fxLayout","row wrap","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","fiatConversion",3,"ngModel","ngModelChange","change"],["autoFocus","","placeholder","Fiat Currency","tabindex","3","name","currencyUnit",3,"ngModel","disabled","required","ngModelChange","selectionChange"],["currencyUnit","ngModel"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","space-between stretch",1,"settings-container","page-sub-title-container","mt-1"],[1,"mt-1"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-0"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100"],["color","primary","tabindex","1","name","userPersona",3,"ngModel","ngModelChange"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],[1,"mt-1",3,"inset"],["fxLayout","column","fxLayout.gt-xs","row","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-xs","start stretch"],["fxFlex.gt-xs","20","fxFlex.gt-md","15","fxLayout","column","fxLayoutAlign","space-between stretch"],["color","primary","name","themeMode",3,"ngModel","ngModelChange","change"],["tabindex","5",3,"value","ngClass",4,"ngFor","ngForOf"],["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","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","10",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","11",3,"click"],[3,"value"],[1,"mr-4",3,"value","checked"],["tabindex","5",3,"value","ngClass"],["fxLayout","row",1,"theme-name"],["tabindex","9",3,"ngClass","click"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"form",1,2),t.TgZ(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span",5),t._uU(6,"Balance Display"),t.qZA(),t.qZA(),t.TgZ(7,"div",6),t.TgZ(8,"div",7),t._UZ(9,"fa-icon",8),t.TgZ(10,"span"),t._uU(11,"Fiat conversion calls "),t.TgZ(12,"strong"),t.TgZ(13,"a",9),t._uU(14,"Blockchain.com"),t.qZA(),t.qZA(),t._uU(15," API to get conversion rates."),t.qZA(),t.qZA(),t.TgZ(16,"div",10),t.TgZ(17,"mat-slide-toggle",11),t.NdJ("ngModelChange",function(fi){return Ae.selNode.settings.fiatConversion=fi})("change",function(fi){return Ae.selNode.settings.currencyUnit=fi.checked?Ae.selNode.settings.currencyUnit:null}),t._uU(18,"Enable Fiat Conversion"),t.qZA(),t.TgZ(19,"mat-form-field"),t.TgZ(20,"mat-select",12,13),t.NdJ("ngModelChange",function(fi){return Ae.selNode.settings.currencyUnit=fi})("selectionChange",function(fi){return Ae.onCurrencyChange(fi)}),t.YNc(22,Ln,2,2,"mat-option",14),t.qZA(),t.YNc(23,_n,2,0,"mat-error",15),t.qZA(),t.qZA(),t.qZA(),t.TgZ(24,"div",16),t.TgZ(25,"div",17),t.TgZ(26,"div",18),t._UZ(27,"fa-icon",4),t.TgZ(28,"span",5),t._uU(29,"Customization"),t.qZA(),t.qZA(),t.TgZ(30,"div",6),t.TgZ(31,"div",19),t.TgZ(32,"div",20),t._UZ(33,"fa-icon",8),t.TgZ(34,"span"),t._uU(35,"Dashboard layout will be tailored based on the role selected to better serve its needs."),t.qZA(),t.qZA(),t.TgZ(36,"div",21),t.TgZ(37,"h4"),t._uU(38,"Dashboard Layout"),t.qZA(),t.TgZ(39,"mat-radio-group",22),t.NdJ("ngModelChange",function(fi){return Ae.selNode.settings.userPersona=fi}),t.YNc(40,Pn,3,5,"mat-radio-button",23),t.qZA(),t.qZA(),t.qZA(),t._UZ(41,"mat-divider",24),t.TgZ(42,"div",25),t.TgZ(43,"div",26),t.TgZ(44,"h4"),t._uU(45,"Mode"),t.qZA(),t.TgZ(46,"mat-radio-group",27),t.NdJ("ngModelChange",function(fi){return Ae.selectedThemeMode=fi})("change",function(){return Ae.chooseThemeMode()}),t.YNc(47,wi,2,5,"mat-radio-button",28),t.qZA(),t.qZA(),t.qZA(),t._UZ(48,"mat-divider",24),t.TgZ(49,"div",25),t.TgZ(50,"div",29),t.TgZ(51,"h4"),t._uU(52,"Themes"),t.qZA(),t.TgZ(53,"div",30),t.YNc(54,dn,4,8,"span",31),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(55,"div",32),t.TgZ(56,"button",33),t.NdJ("click",function(){return Ae.onResetSettings()}),t._uU(57,"Reset"),t.qZA(),t.TgZ(58,"button",34),t.NdJ("click",function(){return Ae.onUpdateSettings()}),t._uU(59,"Update"),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(4),t.Q6J("icon",Ae.faMoneyBillAlt),t.xp6(5),t.Q6J("icon",Ae.faExclamationTriangle),t.xp6(8),t.Q6J("ngModel",Ae.selNode.settings.fiatConversion),t.xp6(3),t.Q6J("ngModel",Ae.selNode.settings.currencyUnit)("disabled",!Ae.selNode.settings.fiatConversion)("required",Ae.selNode.settings.fiatConversion),t.xp6(2),t.Q6J("ngForOf",Ae.currencyUnits),t.xp6(1),t.Q6J("ngIf",Ae.selNode.settings.fiatConversion&&!Ae.selNode.settings.currencyUnit),t.xp6(4),t.Q6J("icon",Ae.faPaintBrush),t.xp6(6),t.Q6J("icon",Ae.faInfoCircle),t.xp6(6),t.Q6J("ngModel",Ae.selNode.settings.userPersona),t.xp6(1),t.Q6J("ngForOf",Ae.userPersonas),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Q6J("ngModel",Ae.selectedThemeMode),t.xp6(1),t.Q6J("ngForOf",Ae.themeModes),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Q6J("ngForOf",Ae.themeColors))},directives:[v.xw,v.yH,z.$V,Ge._Y,Ge.JL,Ge.F,v.Wh,G.BN,Yi.Rr,Ge.JJ,Ge.On,vt.KE,Re.gD,Ne.h,Ge.Q7,ye.sg,ye.O5,$i.VQ,Fe.d,he.lW,Le.ey,vt.TO,$i.U0,ye.mk,Cn.oO],pipes:[ye.rS,ye.i8],styles:[""]}),X})();const La=function(){return{initial:!1}};let Gn=(()=>{class X{constructor(B){this.router=B,this.faLayerGroup=x.Krp,this.links=[{link:"loop",name:"Loop"},{link:"boltz",name:"Boltz"}],this.activeLink="",this.unSubs=[new s.x,new s.x,new s.x]}ngOnInit(){const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeLink=B?B.link:this.links[0].link,this.router.events.pipe((0,b.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof I.Av)).subscribe({next:Ae=>{const pt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeLink=pt?pt.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(I.F0))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-services-settings"]],decls:14,vars:9,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Services"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"nav",5),t.TgZ(8,"div",6),t.NdJ("click",function(){return Ae.activeLink=Ae.links[0].link}),t._uU(9),t.qZA(),t.TgZ(10,"div",7),t.NdJ("click",function(){return Ae.activeLink=Ae.links[1].link}),t._uU(11),t.qZA(),t.qZA(),t.TgZ(12,"div",8),t._UZ(13,"router-outlet"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(1),t.Q6J("icon",Ae.faLayerGroup),t.xp6(7),t.s9C("routerLink",Ae.links[0].link),t.Q6J("active",Ae.activeLink===Ae.links[0].link),t.xp6(1),t.Oqu(Ae.links[0].name),t.xp6(1),t.s9C("routerLink",Ae.links[1].link),t.Q6J("active",Ae.activeLink===Ae.links[1].link)("state",t.DdM(8,La)),t.xp6(1),t.Oqu(Ae.links[1].name))},directives:[v.xw,v.Wh,G.BN,F.a8,F.dn,U.BU,U.Nj,I.rH,v.yH,I.lC],styles:[""]}),X})();const Or=["form"];function Ra(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Loop server URL is required."),t.qZA())}function Ma(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Specify the loop server url with 'https://'."),t.qZA())}function Fa(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Loop macaroon path is required."),t.qZA())}let xr=(()=>{class X{constructor(B,Ae){this.logger=B,this.store=Ae,this.faInfoCircle=x.sqG,this.enableLoop=!1,this.unSubs=[new s.x,new s.x]}ngOnInit(){this.store.select(r.dT).pipe((0,b.R)(this.unSubs[0])).subscribe(B=>{this.selNode=B,this.enableLoop=B.settings.swapServerUrl&&""!==B.settings.swapServerUrl.trim(),this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(B)})}onEnableServiceChanged(B){this.enableLoop=B.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.logger.info(this.selNode),this.store.dispatch((0,Me.jS)({payload:{uiMessage:K.m6.UPDATE_LOOP_SETTINGS,service:K.JX.LOOP,settings:{enable:this.enableLoop,serverUrl:this.selNode.settings.swapServerUrl,macaroonPath:this.selNode.authentication.swapMacaroonPath}}})),this.store.dispatch((0,ui.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,Lt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,gt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}}))}onReset(){this.selNode=JSON.parse(JSON.stringify(this.previousSelNode)),this.enableLoop=this.selNode.settings.swapServerUrl&&""!==this.selNode.settings.swapServerUrl.trim()}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-loop-service-settings"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(Or,7),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.form=pt.first)}},decls:34,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",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"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","loop",1,"mb-1",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","placeholder","Loop Server URL","type","text","id","swapServerUrl","name","srvrUrl","tabindex","2",3,"ngModel","required","disabled","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","placeholder","Loop Macaroon Path","type","text","id","swapMacaroonPath","name","swapMacaroonPath","tabindex","3",3,"ngModel","required","disabled","ngModelChange"],["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(B,Ae){if(1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span"),t._uU(4,"Please ensure that "),t.TgZ(5,"strong"),t._uU(6,"loopd"),t.qZA(),t._uU(7," is running and accessible to RTL before enabling this service. Click "),t.TgZ(8,"strong"),t.TgZ(9,"a",3),t._uU(10,"here"),t.qZA(),t.qZA(),t._uU(11," to learn more about the installation."),t.qZA(),t.qZA(),t.TgZ(12,"form",4,5),t.TgZ(14,"div",6),t.TgZ(15,"mat-slide-toggle",7),t.NdJ("ngModelChange",function(fi){return Ae.enableLoop=fi})("change",function(fi){return Ae.onEnableServiceChanged(fi)}),t._uU(16,"Enable Loop Service"),t.qZA(),t.TgZ(17,"mat-form-field",8),t.TgZ(18,"input",9,10),t.NdJ("ngModelChange",function(fi){return Ae.selNode.settings.swapServerUrl=fi}),t.qZA(),t.TgZ(20,"mat-hint"),t._uU(21,"Service url for loop server REST APIs, eg. https://localhost:8081"),t.qZA(),t.YNc(22,Ra,2,0,"mat-error",11),t.YNc(23,Ma,2,0,"mat-error",11),t.qZA(),t.TgZ(24,"mat-form-field"),t.TgZ(25,"input",12),t.NdJ("ngModelChange",function(fi){return Ae.selNode.authentication.swapMacaroonPath=fi}),t.qZA(),t.TgZ(26,"mat-hint"),t._uU(27,"Path for the folder containing service 'loop.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Local\\\\Loop\\\\testnet"),t.qZA(),t.YNc(28,Fa,2,0,"mat-error",11),t.qZA(),t.qZA(),t.qZA(),t.TgZ(29,"div",13),t.TgZ(30,"button",14),t.NdJ("click",function(){return Ae.onReset()}),t._uU(31,"Reset"),t.qZA(),t.TgZ(32,"button",15),t.NdJ("click",function(){return Ae.onUpdateService()}),t._uU(33,"Update"),t.qZA(),t.qZA(),t.qZA()),2&B){const pt=t.MAs(19);t.xp6(2),t.Q6J("icon",Ae.faInfoCircle),t.xp6(13),t.Q6J("ngModel",Ae.enableLoop),t.xp6(3),t.Q6J("ngModel",Ae.selNode.settings.swapServerUrl)("required",Ae.enableLoop)("disabled",!Ae.enableLoop),t.xp6(4),t.Q6J("ngIf",!Ae.selNode.settings.swapServerUrl&&Ae.enableLoop),t.xp6(1),t.Q6J("ngIf",(null==pt||null==pt.errors?null:pt.errors.invalid)&&Ae.enableLoop),t.xp6(2),t.Q6J("ngModel",Ae.selNode.authentication.swapMacaroonPath)("required",Ae.enableLoop)("disabled",!Ae.enableLoop),t.xp6(3),t.Q6J("ngIf",!Ae.selNode.authentication.swapMacaroonPath&&Ae.enableLoop)}},directives:[v.xw,v.yH,z.$V,G.BN,Ge._Y,Ge.JL,Ge.F,v.Wh,Yi.Rr,Ne.h,Ge.JJ,Ge.On,vt.KE,rt.Nt,Ge.Fj,Ge.Q7,vt.bx,ye.O5,he.lW,vt.TO],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})();const hs=["form"];function ur(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Boltz server URL is required."),t.qZA())}function pa(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Specify the boltz server url with 'https://'."),t.qZA())}function ma(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Boltz macaroon path is required."),t.qZA())}let Ir=(()=>{class X{constructor(B,Ae){this.logger=B,this.store=Ae,this.faInfoCircle=x.sqG,this.enableBoltz=!1,this.serverUrl="",this.macaroonPath="",this.unSubs=[new s.x,new s.x]}ngOnInit(){this.store.select(r.dT).pipe((0,b.R)(this.unSubs[0])).subscribe(B=>{this.selNode=B,this.enableBoltz=B.settings.boltzServerUrl&&""!==B.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(B)})}onEnableServiceChanged(B){this.enableBoltz=B.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.selNode.settings.boltzServerUrl=this.serverUrl,this.selNode.authentication.boltzMacaroonPath=this.macaroonPath,this.store.dispatch((0,Me.jS)({payload:{uiMessage:K.m6.UPDATE_BOLTZ_SETTINGS,service:K.JX.BOLTZ,settings:{enable:this.enableBoltz,serverUrl:this.serverUrl,macaroonPath:this.macaroonPath}}})),this.store.dispatch((0,ui.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,Lt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,gt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}}))}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(B=>{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-service-settings"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(hs,7),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.form=pt.first)}},decls:34,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://lnd.docs.boltz.exchange/en/latest/","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","boltz",1,"mb-1",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","placeholder","Boltz Server URL","type","text","id","boltzServerUrl","name","srvrUrl","tabindex","2",3,"ngModel","required","disabled","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","placeholder","Boltz Macaroon Path","type","text","id","boltzMacaroonPath","name","boltzMacaroonPath","tabindex","3",3,"ngModel","required","disabled","ngModelChange"],["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(B,Ae){if(1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span"),t._uU(4,"Please ensure that "),t.TgZ(5,"strong"),t._uU(6,"boltzd"),t.qZA(),t._uU(7," is running and accessible to RTL before enabling this service. Click "),t.TgZ(8,"strong"),t.TgZ(9,"a",3),t._uU(10,"here"),t.qZA(),t.qZA(),t._uU(11," to learn more about the installation."),t.qZA(),t.qZA(),t.TgZ(12,"form",4,5),t.TgZ(14,"div",6),t.TgZ(15,"mat-slide-toggle",7),t.NdJ("ngModelChange",function(fi){return Ae.enableBoltz=fi})("change",function(fi){return Ae.onEnableServiceChanged(fi)}),t._uU(16,"Enable Boltz Service"),t.qZA(),t.TgZ(17,"mat-form-field",8),t.TgZ(18,"input",9,10),t.NdJ("ngModelChange",function(fi){return Ae.serverUrl=fi}),t.qZA(),t.TgZ(20,"mat-hint"),t._uU(21,"Service url for boltz server REST APIs, eg. https://localhost:9003"),t.qZA(),t.YNc(22,ur,2,0,"mat-error",11),t.YNc(23,pa,2,0,"mat-error",11),t.qZA(),t.TgZ(24,"mat-form-field"),t.TgZ(25,"input",12),t.NdJ("ngModelChange",function(fi){return Ae.macaroonPath=fi}),t.qZA(),t.TgZ(26,"mat-hint"),t._uU(27,"Path for the folder containing boltz 'admin.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Boltz\\\\testnet"),t.qZA(),t.YNc(28,ma,2,0,"mat-error",11),t.qZA(),t.qZA(),t.qZA(),t.TgZ(29,"div",13),t.TgZ(30,"button",14),t.NdJ("click",function(){return Ae.onReset()}),t._uU(31,"Reset"),t.qZA(),t.TgZ(32,"button",15),t.NdJ("click",function(){return Ae.onUpdateService()}),t._uU(33,"Update"),t.qZA(),t.qZA(),t.qZA()),2&B){const pt=t.MAs(19);t.xp6(2),t.Q6J("icon",Ae.faInfoCircle),t.xp6(13),t.Q6J("ngModel",Ae.enableBoltz),t.xp6(3),t.Q6J("ngModel",Ae.serverUrl)("required",Ae.enableBoltz)("disabled",!Ae.enableBoltz),t.xp6(4),t.Q6J("ngIf",(!Ae.serverUrl||""===Ae.serverUrl.trim())&&Ae.enableBoltz),t.xp6(1),t.Q6J("ngIf",(null==pt||null==pt.errors?null:pt.errors.invalid)&&Ae.enableBoltz),t.xp6(2),t.Q6J("ngModel",Ae.macaroonPath)("required",Ae.enableBoltz)("disabled",!Ae.enableBoltz),t.xp6(3),t.Q6J("ngIf",!Ae.macaroonPath&&Ae.enableBoltz)}},directives:[v.xw,v.yH,z.$V,G.BN,Ge._Y,Ge.JL,Ge.F,v.Wh,Yi.Rr,Ne.h,Ge.JJ,Ge.On,vt.KE,rt.Nt,Ge.Fj,Ge.Q7,vt.bx,ye.O5,he.lW,vt.TO],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})(),Ga=(()=>{class X{constructor(B,Ae){this.store=B,this.router=Ae,this.faLayerGroup=x.Krp,this.showLnConfig=!1,this.showBitcoind=!1,this.lnImplementationStr="",this.links=[{link:"layout",name:"Layout"},{link:"auth",name:"Authentication"},{link:"lnconfig",name:this.lnImplementationStr},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new s.x,new s.x,new s.x]}ngOnInit(){const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeLink=B?B.link:this.links[0].link,this.router.events.pipe((0,b.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof I.Av)).subscribe({next:Ae=>{const pt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeLink=pt?pt.link:this.links[0].link}}),this.store.select(r.dT).pipe((0,b.R)(this.unSubs[1])).subscribe(Ae=>{switch(this.showLnConfig=!1,this.showBitcoind=!1,this.selNode=Ae,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[2].name=this.lnImplementationStr,this.showLnConfig=!0),this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(I.F0))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-services"]],decls:1,vars:0,template:function(B,Ae){1&B&&t._UZ(0,"router-outlet")},directives:[I.lC],styles:[""]}),X})();var Ya=m(8213),Zr=m(9107),kr=m(6087),Kn=m(4847),vn=m(2075),Qn=m(5899);function Tr(X,He){1&X&&t._UZ(0,"mat-progress-bar",34)}function Ba(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Initiation Time "),t.qZA())}function Wa(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.ALo(2,"date"),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,B.initiation_time/1e6,"dd/MMM/y HH:mm"))}}function Pr(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Last Update Time "),t.qZA())}function la(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.ALo(2,"date"),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,B.last_update_time/1e6,"dd/MMM/y HH:mm"))}}function Jr(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," ID "),t.qZA())}function ga(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.id)}}function $n(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," ID (Bytes) "),t.qZA())}function wa(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.id_bytes)}}function Nr(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," State "),t.qZA())}function ca(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw();t.xp6(1),t.Oqu(Ae.LoopStateEnum[B.state])}}function Aa(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," HTLC Address "),t.qZA())}function Vr(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.htlc_address)}}function ha(X,He){1&X&&(t.TgZ(0,"th",37),t._uU(1," Amount (Sats) "),t.qZA())}function pr(X,He){if(1&X&&(t.TgZ(0,"td",36),t.TgZ(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.amt))}}function Sr(X,He){1&X&&(t.TgZ(0,"th",37),t._uU(1," Cost Server (Sats) "),t.qZA())}function is(X,He){if(1&X&&(t.TgZ(0,"td",36),t.TgZ(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.cost_server))}}function Oa(X,He){1&X&&(t.TgZ(0,"th",37),t._uU(1," Cost Offchain (Sats) "),t.qZA())}function ra(X,He){if(1&X&&(t.TgZ(0,"td",36),t.TgZ(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.cost_offchain))}}function Gr(X,He){1&X&&(t.TgZ(0,"th",37),t._uU(1," Cost Onchain (Sats) "),t.qZA())}function Ha(X,He){if(1&X&&(t.TgZ(0,"td",36),t.TgZ(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==B?null:B.cost_onchain)," ")}}function Zn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"th",39),t.TgZ(1,"div",40),t.TgZ(2,"mat-select",41),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",42),t.NdJ("click",function(){return t.CHM(B),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}}function ns(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"td",43),t.TgZ(1,"button",44),t.NdJ("click",function(pt){const In=t.CHM(B).$implicit;return t.oxw().onSwapClick(In,pt)}),t._uU(2,"View Info"),t.qZA(),t.qZA()}}function ja(X,He){if(1&X&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.emptyTableMessage)}}function Xe(X,He){if(1&X&&(t.TgZ(0,"td",45),t.YNc(1,ja,2,1,"p",46),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Q6J("ngIf",!(null!=B.listSwaps&&B.listSwaps.data)||(null==B.listSwaps||null==B.listSwaps.data?null:B.listSwaps.data.length)<1)}}const ge=function(X){return{"display-none":X}};function J(X,He){if(1&X&&t._UZ(0,"tr",47),2&X){const B=t.oxw();t.Q6J("ngClass",t.VKq(1,ge,(null==B.listSwaps?null:B.listSwaps.data)&&(null==B.listSwaps||null==B.listSwaps.data?null:B.listSwaps.data.length)>0))}}function ne(X,He){1&X&&t._UZ(0,"tr",48)}function Qe(X,He){1&X&&t._UZ(0,"tr",49)}const Wt=function(X){return{"overflow-auto error-border":X,"overflow-auto":!0}},mi=function(){return["no_swap"]};let Ct=(()=>{class X{constructor(B,Ae,pt,fi){this.logger=B,this.commonService=Ae,this.store=pt,this.loopService=fi,this.selectedSwapType=K.$I.LOOP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.LoopStateEnum=K.Fq,this.faHistory=x.qO$,this.swapCaption="Loop Out",this.displayedColumns=[],this.selFilter="",this.flgSticky=!1,this.pageSize=K.IV,this.pageSizeOptions=K.TJ,this.screenSize="",this.screenSizeEnum=K.cu,this.unSubs=[new s.x,new s.x,new s.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===K.cu.XS||this.screenSize===K.cu.SM?(this.flgSticky=!1,this.displayedColumns=["state","amt","actions"]):this.screenSize===K.cu.MD?(this.flgSticky=!1,this.displayedColumns=["state","initiation_time","amt","actions"]):(this.flgSticky=!0,this.displayedColumns=["state","initiation_time","amt","cost_server","cost_offchain","cost_onchain","actions"])}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(B){this.swapCaption=this.selectedSwapType===K.$I.LOOP_IN?"Loop In":"Loop Out",this.loadSwapsTable(this.swapsData)}applyFilter(){this.listSwaps.filter=this.selFilter.trim().toLowerCase()}onSwapClick(B,Ae){this.loopService.getSwap(B.id_bytes.replace(/\//g,"_").replace(/\+/g,"-")).pipe((0,b.R)(this.unSubs[2])).subscribe(pt=>{this.store.dispatch((0,Me.qR)({payload:{data:{type:K.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"state",value:K.Fq[pt.state],title:"Status",width:50,type:K.Gi.STRING},{key:"amt",value:pt.amt,title:"Amount (Sats)",width:50,type:K.Gi.NUMBER}],[{key:"initiation_time",value:pt.initiation_time/1e9,title:"Initiation Time",width:50,type:K.Gi.DATE_TIME},{key:"last_update_time",value:pt.last_update_time/1e9,title:"Last Update Time",width:50,type:K.Gi.DATE_TIME}],[{key:"cost_server",value:pt.cost_server,title:"Server Cost (Sats)",width:33,type:K.Gi.NUMBER},{key:"cost_offchain",value:pt.cost_offchain,title:"Offchain Cost (Sats)",width:33,type:K.Gi.NUMBER},{key:"cost_onchain",value:pt.cost_onchain,title:"Onchain Cost (Sats)",width:34,type:K.Gi.NUMBER}],[{key:"id_bytes",value:pt.id_bytes,title:"ID",width:100,type:K.Gi.STRING}],[{key:"htlc_address",value:pt.htlc_address,title:"HTLC Address",width:100,type:K.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(B){this.listSwaps=new vn.by([...B]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(Ae,pt)=>Ae[pt]&&isNaN(Ae[pt])?Ae[pt].toLocaleLowerCase():Ae[pt]?+Ae[pt]:null,this.listSwaps.filterPredicate=(Ae,pt)=>JSON.stringify(Ae).toLowerCase().includes(pt),this.listSwaps.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===K.$I.LOOP_IN?"Loop in":"Loop out")}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(Ci.v),t.Y36(M.yh),t.Y36(Zr.W))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-swaps"]],viewQuery:function(B,Ae){if(1&B&&(t.Gf(Kn.YE,5),t.Gf(kr.NW,5)),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.sort=pt.first),t.iGM(pt=t.CRH())&&(Ae.paginator=pt.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[t._Bn([{provide:kr.ye,useValue:(0,K.pt)("Swaps")}]),t.TTD],decls:52,vars:17,consts:[["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","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","initiation_time"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","last_update_time"],["matColumnDef","id"],["matColumnDef","id_bytes"],["matColumnDef","state"],["matColumnDef","htlc_address"],["matColumnDef","amt"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","cost_server"],["matColumnDef","cost_offchain"],["matColumnDef","cost_onchain"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","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","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"div",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span",4),t._uU(5),t.qZA(),t.qZA(),t.TgZ(6,"mat-form-field",5),t.TgZ(7,"input",6),t.NdJ("keyup",function(){return Ae.applyFilter()})("ngModelChange",function(fi){return Ae.selFilter=fi}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"div",7),t.TgZ(9,"div",8),t.YNc(10,Tr,1,0,"mat-progress-bar",9),t.TgZ(11,"table",10,11),t.ynx(13,12),t.YNc(14,Ba,2,0,"th",13),t.YNc(15,Wa,3,4,"td",14),t.BQk(),t.ynx(16,15),t.YNc(17,Pr,2,0,"th",13),t.YNc(18,la,3,4,"td",14),t.BQk(),t.ynx(19,16),t.YNc(20,Jr,2,0,"th",13),t.YNc(21,ga,2,1,"td",14),t.BQk(),t.ynx(22,17),t.YNc(23,$n,2,0,"th",13),t.YNc(24,wa,2,1,"td",14),t.BQk(),t.ynx(25,18),t.YNc(26,Nr,2,0,"th",13),t.YNc(27,ca,2,1,"td",14),t.BQk(),t.ynx(28,19),t.YNc(29,Aa,2,0,"th",13),t.YNc(30,Vr,2,1,"td",14),t.BQk(),t.ynx(31,20),t.YNc(32,ha,2,0,"th",21),t.YNc(33,pr,4,3,"td",14),t.BQk(),t.ynx(34,22),t.YNc(35,Sr,2,0,"th",21),t.YNc(36,is,4,3,"td",14),t.BQk(),t.ynx(37,23),t.YNc(38,Oa,2,0,"th",21),t.YNc(39,ra,4,3,"td",14),t.BQk(),t.ynx(40,24),t.YNc(41,Gr,2,0,"th",21),t.YNc(42,Ha,4,3,"td",14),t.BQk(),t.ynx(43,25),t.YNc(44,Zn,6,0,"th",26),t.YNc(45,ns,3,0,"td",27),t.BQk(),t.ynx(46,28),t.YNc(47,Xe,2,1,"td",29),t.BQk(),t.YNc(48,J,1,3,"tr",30),t.YNc(49,ne,1,0,"tr",31),t.YNc(50,Qe,1,0,"tr",32),t.qZA(),t._UZ(51,"mat-paginator",33),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(3),t.Q6J("icon",Ae.faHistory),t.xp6(2),t.AsE("",Ae.swapCaption," History, ",Ae.flgLoading,""),t.xp6(2),t.Q6J("ngModel",Ae.selFilter),t.xp6(3),t.Q6J("ngIf",!0===Ae.flgLoading[0]),t.xp6(1),t.Q6J("dataSource",Ae.listSwaps)("ngClass",t.VKq(14,Wt,"error"===Ae.flgLoading[0])),t.xp6(37),t.Q6J("matFooterRowDef",t.DdM(16,mi)),t.xp6(1),t.Q6J("matHeaderRowDef",Ae.displayedColumns)("matHeaderRowDefSticky",Ae.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",Ae.displayedColumns),t.xp6(1),t.Q6J("pageSize",Ae.pageSize)("pageSizeOptions",Ae.pageSizeOptions)("showFirstLastButtons",Ae.screenSize!==Ae.screenSizeEnum.XS))},directives:[v.xw,v.yH,v.Wh,G.BN,vt.KE,rt.Nt,Ge.Fj,Ge.JJ,Ge.On,z.$V,ye.O5,vn.BZ,Kn.YE,ye.mk,Cn.oO,vn.w1,vn.fO,vn.Dz,vn.mD,vn.Ke,vn.as,vn.nj,kr.NW,Qn.pW,vn.ge,Kn.nU,vn.ev,Re.gD,Re.$L,Le.ey,he.lW,vn.yh,vn.Q2,vn.XQ,vn.Gk],pipes:[ye.uU,ye.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),X})();const ti=function(X){return["../",X]};function bt(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",10),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw().onSelectedIndexChange(fi)}),t._uU(1),t.qZA()}if(2&X){const B=He.$implicit,Ae=t.oxw();t.Q6J("active",Ae.activeTab.link===B.link)("routerLink",t.VKq(3,ti,B.link)),t.xp6(1),t.Oqu(B.name)}}let Yt=(()=>{class X{constructor(B,Ae,pt){this.router=B,this.loopService=Ae,this.store=pt,this.faInfinity=x.vqe,this.targetConf=2,this.inAmount=25e4,this.quotes=[],this.LoopTypeEnum=K.$I,this.selectedSwapType=K.$I.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 s.x,new s.x,new s.x,new s.x]}ngOnInit(){this.loopService.listSwaps();const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeTab=B||this.links[0],this.selectedSwapType=B&&"loopin"===B.link?K.$I.LOOP_IN:K.$I.LOOP_OUT,this.router.events.pipe((0,b.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof I.Av)).subscribe({next:Ae=>{const pt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeTab=pt||this.links[0],this.selectedSwapType=pt&&"loopin"===pt.link?K.$I.LOOP_IN:K.$I.LOOP_OUT}}),this.loopService.swapsChanged.pipe((0,b.R)(this.unSubs[1])).subscribe({next:Ae=>{this.flgLoading[0]=!1,this.storedSwaps=Ae,this.filteredSwaps=this.storedSwaps.filter(pt=>pt.type===this.selectedSwapType)},error:Ae=>{this.flgLoading[0]="error",this.emptyTableMessage=Ae.message?Ae.message:"No loop "+(this.selectedSwapType===K.$I.LOOP_IN?"in":"out")+" available."}})}onSelectedIndexChange(B){this.selectedSwapType="loopin"===B.link?K.$I.LOOP_IN:K.$I.LOOP_OUT,this.filteredSwaps=this.storedSwaps.filter(Ae=>Ae.type===this.selectedSwapType)}onLoop(B){B===K.$I.LOOP_IN?this.loopService.getLoopInTermsAndQuotes(this.targetConf).pipe((0,b.R)(this.unSubs[2])).subscribe({next:Ae=>{this.store.dispatch((0,Me.qR)({payload:{data:{minQuote:Ae[0],maxQuote:Ae[1],direction:B,component:Ya.a}}}))}}):this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,b.R)(this.unSubs[3])).subscribe({next:Ae=>{this.store.dispatch((0,Me.qR)({payload:{data:{minQuote:Ae[0],maxQuote:Ae[1],direction:B,component:Ya.a}}}))}})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(I.F0),t.Y36(Zr.W),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-loop"]],decls:13,vars:7,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-tab-nav-bar",""],["role","tab","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","1",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Loop"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"nav",5),t.YNc(8,bt,2,5,"div",6),t.qZA(),t.TgZ(9,"div",7),t.TgZ(10,"button",8),t.NdJ("click",function(){return Ae.onLoop(Ae.selectedSwapType)}),t._uU(11),t.qZA(),t.qZA(),t._UZ(12,"rtl-swaps",9),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(1),t.Q6J("icon",Ae.faInfinity),t.xp6(7),t.Q6J("ngForOf",Ae.links),t.xp6(3),t.hij("Start ",Ae.activeTab.name,""),t.xp6(1),t.Q6J("selectedSwapType",Ae.selectedSwapType)("swapsData",Ae.filteredSwaps)("flgLoading",Ae.flgLoading)("emptyTableMessage",Ae.emptyTableMessage))},directives:[v.xw,v.Wh,G.BN,F.a8,F.dn,U.BU,ye.sg,he.lW,Ct,v.yH,U.Nj,I.rH],styles:[""]}),X})();var xi=m(7772),Bi=m(1135),yn=m(2843),An=m(262),Wi=m(2340),Cr=m(1786);let Un=(()=>{class X{constructor(B,Ae,pt,fi){this.httpClient=B,this.logger=Ae,this.store=pt,this.commonService=fi,this.swapUrl="",this.swaps={},this.swapsChanged=new Bi.X({}),this.unSubs=[new s.x,new s.x,new s.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,Me.ac)({payload:K.m6.GET_BOLTZ_SWAPS})),this.swapUrl=Wi.T5+Wi.NZ.BOLTZ_API+"/listSwaps",this.httpClient.get(this.swapUrl).pipe((0,b.R)(this.unSubs[0])).subscribe({next:B=>{this.store.dispatch((0,Me.uO)({payload:K.m6.GET_BOLTZ_SWAPS})),this.swaps=B,this.swapsChanged.next(this.swaps)},error:B=>this.swapsChanged.error(this.handleErrorWithAlert(K.m6.GET_BOLTZ_SWAPS,this.swapUrl,B))})}swapInfo(B){return this.swapUrl=Wi.T5+Wi.NZ.BOLTZ_API+"/swapInfo/"+B,this.httpClient.get(this.swapUrl).pipe((0,An.K)(Ae=>(0,Z.of)(this.handleErrorWithAlert(K.m6.NO_SPINNER,this.swapUrl,Ae))))}serviceInfo(){return this.store.dispatch((0,Me.ac)({payload:K.m6.GET_SERVICE_INFO})),this.swapUrl=Wi.T5+Wi.NZ.BOLTZ_API+"/serviceInfo",this.httpClient.get(this.swapUrl).pipe((0,b.R)(this.unSubs[1]),(0,p.U)(B=>(this.store.dispatch((0,Me.uO)({payload:K.m6.GET_SERVICE_INFO})),B)),(0,An.K)(B=>(0,Z.of)(this.handleErrorWithAlert(K.m6.GET_SERVICE_INFO,this.swapUrl,B))))}swapOut(B,Ae){const pt={amount:B,address:Ae};return this.swapUrl=Wi.T5+Wi.NZ.BOLTZ_API+"/createreverseswap",this.httpClient.post(this.swapUrl,pt).pipe((0,An.K)(fi=>this.handleErrorWithoutAlert("Swap Out for Address: "+Ae,K.m6.NO_SPINNER,fi)))}swapIn(B){const Ae={amount:B};return this.swapUrl=Wi.T5+Wi.NZ.BOLTZ_API+"/createswap",this.httpClient.post(this.swapUrl,Ae).pipe((0,An.K)(pt=>this.handleErrorWithoutAlert("Swap In for Amount: "+B,K.m6.NO_SPINNER,pt)))}handleErrorWithoutAlert(B,Ae,pt){let fi="";return this.logger.error("ERROR IN: "+B+"\n"+JSON.stringify(pt)),this.store.dispatch((0,Me.uO)({payload:Ae})),401===pt.status?(fi="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Me.kS)())):503===pt.status?(fi="Unable to Connect to Boltz Server.",this.store.dispatch((0,Me.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:pt.status,message:"Unable to Connect to Boltz Server",URL:B},component:Cr.H}}}))):fi=this.commonService.extractErrorMessage(pt),(0,yn._)(()=>new Error(fi))}handleErrorWithAlert(B,Ae,pt){let fi="";if(401===pt.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Me.kS)())),this.logger.error(pt),this.store.dispatch((0,Me.uO)({payload:B})),401===pt.status)fi="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Me.kS)());else if(503===pt.status)fi="Unable to Connect to Boltz Server.",setTimeout(()=>{this.store.dispatch((0,Me.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:pt.status,message:"Unable to Connect to Boltz Server",URL:Ae},component:Cr.H}}}))},100);else{fi=this.commonService.extractErrorMessage(pt);const In=pt.error&&pt.error.error&&pt.error.error.code?pt.error.error.code:pt.error&&pt.error.code?pt.error.code:pt.code?pt.code:pt.status;setTimeout(()=>{this.store.dispatch((0,Me.qR)({payload:{data:{type:K.n_.ERROR,alertTitle:"ERROR",message:{code:In,message:fi,URL:Ae},component:Cr.H}}}))},100)}return{message:fi}}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.LFG(C.eN),t.LFG(we.mQ),t.LFG(M.yh),t.LFG(Ci.v))},X.\u0275prov=t.Yz7({token:X,factory:X.\u0275fac}),X})();var Rn=m(1125);let _a=(()=>{class X{constructor(){this.serviceInfo={},this.direction=K.hc.SWAP_OUT,this.swapTypeEnum=K.hc}}return X.\u0275fac=function(B){return new(B||X)},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-service-info"]],inputs:{serviceInfo:"serviceInfo",direction:"direction"},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(B,Ae){1&B&&(t.TgZ(0,"mat-expansion-panel",0),t.TgZ(1,"mat-expansion-panel-header"),t.TgZ(2,"mat-panel-title"),t.TgZ(3,"span",1),t._uU(4,"Service Information"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(5,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"div",4),t.TgZ(8,"h4",5),t._uU(9,"Minimum Amount (Sats)"),t.qZA(),t.TgZ(10,"span",6),t._uU(11),t.ALo(12,"number"),t.qZA(),t.qZA(),t.TgZ(13,"div",4),t.TgZ(14,"h4",5),t._uU(15,"Maximum Amount (Sats)"),t.qZA(),t.TgZ(16,"span",6),t._uU(17),t.ALo(18,"number"),t.qZA(),t.qZA(),t.qZA(),t._UZ(19,"mat-divider",7),t.TgZ(20,"div",3),t.TgZ(21,"div",4),t.TgZ(22,"h4",5),t._uU(23,"Fee Percentage"),t.qZA(),t.TgZ(24,"span",6),t._uU(25),t.ALo(26,"number"),t.qZA(),t.qZA(),t.TgZ(27,"div",4),t.TgZ(28,"h4",5),t._uU(29,"Miner Fee (Sats)"),t.qZA(),t.TgZ(30,"span",6),t._uU(31),t.ALo(32,"number"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.Q6J("expanded",!0),t.xp6(11),t.Oqu(t.lcZ(12,5,null==Ae.serviceInfo||null==Ae.serviceInfo.limits?null:Ae.serviceInfo.limits.minimal)),t.xp6(6),t.Oqu(t.lcZ(18,7,null==Ae.serviceInfo||null==Ae.serviceInfo.limits?null:Ae.serviceInfo.limits.maximal)),t.xp6(8),t.Oqu(t.lcZ(26,9,null==Ae.serviceInfo||null==Ae.serviceInfo.fees?null:Ae.serviceInfo.fees.percentage)),t.xp6(6),t.Oqu(t.lcZ(32,11,Ae.direction===Ae.swapTypeEnum.SWAP_OUT?null==Ae.serviceInfo||null==Ae.serviceInfo.fees||null==Ae.serviceInfo.fees.miner?null:Ae.serviceInfo.fees.miner.reverse:null==Ae.serviceInfo||null==Ae.serviceInfo.fees||null==Ae.serviceInfo.fees.miner?null:Ae.serviceInfo.fees.miner.normal)))},directives:[Rn.ib,v.yH,Rn.yz,Rn.yK,v.Wh,v.xw,Fe.d],pipes:[ye.JJ],styles:[""]}),X})();var Mr=m(5245);function ds(X,He){1&X&&t.GkF(0)}function vs(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"span",5),t._uU(2),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(2),t.Oqu(null!=B.swapStatus&&B.swapStatus.error?null==B.swapStatus?null:B.swapStatus.error:"Unknown Error.")}}function ki(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"div",6),t.TgZ(2,"div",7),t.TgZ(3,"h4",8),t._uU(4,"ID"),t.qZA(),t.TgZ(5,"span",5),t._uU(6),t.qZA(),t.qZA(),t.TgZ(7,"div",7),t.TgZ(8,"h4",8),t._uU(9,"Routing Fee (mSats)"),t.qZA(),t.TgZ(10,"span",5),t._uU(11),t.ALo(12,"number"),t.qZA(),t.qZA(),t.qZA(),t._UZ(13,"mat-divider",9),t.TgZ(14,"div",6),t.TgZ(15,"div",7),t.TgZ(16,"h4",8),t._uU(17,"Claim Transaction ID"),t.qZA(),t.TgZ(18,"span",5),t._uU(19),t.qZA(),t.qZA(),t.TgZ(20,"div",7),t.TgZ(21,"h4",8),t._uU(22,"Lockup Address"),t.qZA(),t.TgZ(23,"span",5),t._uU(24),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(6),t.Oqu(null==B.swapStatus?null:B.swapStatus.id),t.xp6(5),t.Oqu(t.lcZ(12,4,null==B.swapStatus?null:B.swapStatus.routingFeeMilliSat)),t.xp6(8),t.Oqu(null==B.swapStatus?null:B.swapStatus.claimTransactionId),t.xp6(5),t.Oqu(null==B.swapStatus?null:B.swapStatus.lockupAddress)}}function Nn(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"div",6),t.TgZ(2,"div",7),t.TgZ(3,"h4",8),t._uU(4,"ID"),t.qZA(),t.TgZ(5,"span",5),t._uU(6),t.qZA(),t.qZA(),t.TgZ(7,"div",7),t.TgZ(8,"h4",8),t._uU(9,"Expected Amount (Sats)"),t.qZA(),t.TgZ(10,"span",5),t._uU(11),t.ALo(12,"number"),t.qZA(),t.qZA(),t.qZA(),t._UZ(13,"mat-divider",9),t.TgZ(14,"div",6),t.TgZ(15,"div",10),t.TgZ(16,"h4",8),t._uU(17,"Address"),t.qZA(),t.TgZ(18,"span",5),t._uU(19),t.qZA(),t.qZA(),t.qZA(),t._UZ(20,"mat-divider",9),t.TgZ(21,"div",6),t.TgZ(22,"div",10),t.TgZ(23,"h4",8),t._uU(24,"BIP 21"),t.qZA(),t.TgZ(25,"span",5),t._uU(26),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(6),t.Oqu(null==B.swapStatus?null:B.swapStatus.id),t.xp6(5),t.Oqu(t.lcZ(12,4,null==B.swapStatus?null:B.swapStatus.expectedAmount)),t.xp6(8),t.Oqu(null==B.swapStatus?null:B.swapStatus.address),t.xp6(7),t.Oqu(null==B.swapStatus?null:B.swapStatus.bip21)}}let zs=(()=>{class X{constructor(){this.swapStatus=null,this.direction=K.hc.SWAP_OUT,this.swapTypeEnum=K.hc}}return X.\u0275fac=function(B){return new(B||X)},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-swap-status"]],inputs:{swapStatus:"swapStatus",direction:"direction"},decls:7,vars:1,consts:[[4,"ngTemplateOutlet"],["swapFailedBlock",""],["swapOutBlock",""],["swapInBlock",""],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],["fxFlex","100"]],template:function(B,Ae){if(1&B&&(t.YNc(0,ds,1,0,"ng-container",0),t.YNc(1,vs,3,1,"ng-template",null,1,t.W1O),t.YNc(3,ki,25,6,"ng-template",null,2,t.W1O),t.YNc(5,Nn,27,6,"ng-template",null,3,t.W1O)),2&B){const pt=t.MAs(2),fi=t.MAs(4),In=t.MAs(6);t.Q6J("ngTemplateOutlet",null!=Ae.swapStatus&&Ae.swapStatus.error?pt:Ae.direction===Ae.swapTypeEnum.SWAP_OUT?fi:In)}},directives:[ye.tP,v.xw,v.yH,v.Wh,Fe.d],pipes:[ye.JJ],styles:[""]}),X})();var fr=m(113);function Us(X,He){1&X&&t.GkF(0)}const rs=function(X,He){return{"small-svg":X,"large-svg":He}};function xt(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",8),t._UZ(3,"path",9),t._UZ(4,"path",10),t._UZ(5,"path",11),t._UZ(6,"path",12),t._UZ(7,"path",13),t._UZ(8,"path",14),t._UZ(9,"path",15),t._UZ(10,"path",16),t._UZ(11,"path",17),t.qZA(),t.kcU(),t.TgZ(12,"div",18),t.TgZ(13,"mat-card-title"),t._uU(14,"Boltz Reverse Submarine Swap explained."),t.qZA(),t.qZA(),t.TgZ(15,"div",19),t.TgZ(16,"mat-card-subtitle",20),t._uU(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. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function te(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",21),t.TgZ(2,"g",22),t._UZ(3,"path",23),t._UZ(4,"path",24),t._UZ(5,"path",25),t._UZ(6,"path",26),t._UZ(7,"path",27),t._UZ(8,"path",28),t.qZA(),t._UZ(9,"path",29),t.TgZ(10,"defs"),t.TgZ(11,"clipPath",30),t._UZ(12,"rect",31),t.qZA(),t.qZA(),t.qZA(),t.kcU(),t.TgZ(13,"div",18),t.TgZ(14,"mat-card-title"),t._uU(15,"Step 1: Deciding to Reverse Submarine Swap"),t.qZA(),t.qZA(),t.TgZ(16,"div",19),t.TgZ(17,"mat-card-subtitle",20),t._uU(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. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function ue(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",32),t._UZ(2,"path",33),t._UZ(3,"path",34),t._UZ(4,"path",35),t._UZ(5,"path",36),t._UZ(6,"path",37),t._UZ(7,"circle",38),t._UZ(8,"rect",39),t.TgZ(9,"defs"),t.TgZ(10,"pattern",40),t._UZ(11,"use",41),t.qZA(),t._UZ(12,"image",42),t.qZA(),t.qZA(),t.kcU(),t.TgZ(13,"div",18),t.TgZ(14,"mat-card-title"),t._uU(15,"Step 2: Paying the Lightning Invoice"),t.qZA(),t.qZA(),t.TgZ(16,"div",19),t.TgZ(17,"mat-card-subtitle",20),t._uU(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. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function je(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",43),t.TgZ(2,"g",22),t._UZ(3,"path",44),t._UZ(4,"path",45),t._UZ(5,"path",46),t._UZ(6,"path",47),t._UZ(7,"path",48),t.qZA(),t.TgZ(8,"defs"),t.TgZ(9,"clipPath",30),t._UZ(10,"rect",49),t.qZA(),t.qZA(),t.qZA(),t.kcU(),t.TgZ(11,"div",18),t.TgZ(12,"mat-card-title"),t._uU(13,"Step 3: Receiving the funds on-chain"),t.qZA(),t.qZA(),t.TgZ(14,"div",19),t.TgZ(15,"mat-card-subtitle",20),t._uU(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. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function wt(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",50),t._UZ(2,"path",51),t._UZ(3,"path",52),t._UZ(4,"path",53),t._UZ(5,"path",54),t._UZ(6,"path",55),t.qZA(),t.kcU(),t.TgZ(7,"div",18),t.TgZ(8,"mat-card-title"),t._uU(9,"Done!"),t.qZA(),t.qZA(),t.TgZ(10,"div",19),t.TgZ(11,"mat-card-subtitle",20),t._uU(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. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}let kt=(()=>{class X{constructor(B){this.commonService=B,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.vpe,this.screenSize="",this.screenSizeEnum=K.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(B){2===B.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===B.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Ci.v))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-swapout-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["swapStepBlock1",""],["swapStepBlock2",""],["swapStepBlock3",""],["swapStepBlock4",""],["swapStepBlock5",""],["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(B,Ae){if(1&B&&(t.YNc(0,Us,1,0,"ng-container",0),t.YNc(1,xt,18,5,"ng-template",null,1,t.W1O),t.YNc(3,te,19,5,"ng-template",null,2,t.W1O),t.YNc(5,ue,19,5,"ng-template",null,3,t.W1O),t.YNc(7,je,17,5,"ng-template",null,4,t.W1O),t.YNc(9,wt,13,5,"ng-template",null,5,t.W1O)),2&B){const pt=t.MAs(2),fi=t.MAs(4),In=t.MAs(6),tr=t.MAs(8),Fn=t.MAs(10);t.Q6J("ngTemplateOutlet",1===Ae.stepNumber?pt:2===Ae.stepNumber?fi:3===Ae.stepNumber?In:4===Ae.stepNumber?tr:Fn)}},directives:[ye.tP,v.xw,v.yH,v.Wh,ye.mk,Cn.oO,F.n5,F.$j],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:[fr.l]}}),X})();function Qt(X,He){1&X&&t.GkF(0)}const Xt=function(X,He){return{"small-svg":X,"large-svg":He}};function pi(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",8),t._UZ(3,"path",9),t._UZ(4,"path",10),t._UZ(5,"path",11),t._UZ(6,"path",12),t._UZ(7,"path",13),t._UZ(8,"path",14),t._UZ(9,"path",15),t._UZ(10,"path",16),t._UZ(11,"path",17),t.qZA(),t.kcU(),t.TgZ(12,"div",18),t.TgZ(13,"mat-card-title"),t._uU(14,"Boltz Submarine Swaps explained."),t.qZA(),t.qZA(),t.TgZ(15,"div",19),t.TgZ(16,"mat-card-subtitle",20),t._uU(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. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Xt,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function Ti(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",21),t._UZ(2,"path",22),t._UZ(3,"path",23),t._UZ(4,"path",24),t._UZ(5,"path",25),t._UZ(6,"path",26),t._UZ(7,"path",27),t._UZ(8,"path",28),t.qZA(),t.kcU(),t.TgZ(9,"div",18),t.TgZ(10,"mat-card-title"),t._uU(11,"Step 1: Deciding to Submarine Swap"),t.qZA(),t.qZA(),t.TgZ(12,"div",19),t.TgZ(13,"mat-card-subtitle",20),t._uU(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. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Xt,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function Zi(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",29),t._UZ(2,"path",30),t._UZ(3,"path",31),t._UZ(4,"path",32),t._UZ(5,"path",33),t._UZ(6,"path",34),t._UZ(7,"circle",35),t._UZ(8,"rect",36),t.TgZ(9,"defs"),t.TgZ(10,"pattern",37),t._UZ(11,"use",38),t.qZA(),t._UZ(12,"image",39),t.qZA(),t.qZA(),t.kcU(),t.TgZ(13,"div",18),t.TgZ(14,"mat-card-title"),t._uU(15,"Step 2: Sending the on-chain funds"),t.qZA(),t.qZA(),t.TgZ(16,"div",19),t.TgZ(17,"mat-card-subtitle",20),t._uU(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. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Xt,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function tn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",40),t.TgZ(2,"g",41),t._UZ(3,"path",42),t._UZ(4,"path",43),t._UZ(5,"path",44),t._UZ(6,"path",45),t._UZ(7,"path",46),t.qZA(),t.TgZ(8,"defs"),t.TgZ(9,"clipPath",47),t._UZ(10,"rect",48),t.qZA(),t.qZA(),t.qZA(),t.kcU(),t.TgZ(11,"div",18),t.TgZ(12,"mat-card-title"),t._uU(13,"Step 3: Receiving the funds on Lightning"),t.qZA(),t.qZA(),t.TgZ(14,"div",19),t.TgZ(15,"mat-card-subtitle",20),t._uU(16," Boltz pays the Lightning invoice to your node and claims the on-chain funds locked in the previous step. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Xt,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}function Mn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(pt){return t.CHM(B),t.oxw().onSwipe(pt)}),t.O4$(),t.TgZ(1,"svg",49),t._UZ(2,"path",50),t._UZ(3,"path",51),t._UZ(4,"path",52),t._UZ(5,"path",53),t._UZ(6,"path",54),t.qZA(),t.kcU(),t.TgZ(7,"div",18),t.TgZ(8,"mat-card-title"),t._uU(9,"Done!"),t.qZA(),t.qZA(),t.TgZ(10,"div",19),t.TgZ(11,"mat-card-subtitle",20),t._uU(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. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@sliderAnimation",B.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Xt,B.screenSize===B.screenSizeEnum.XS,B.screenSize!==B.screenSizeEnum.XS))}}let On=(()=>{class X{constructor(B){this.commonService=B,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.vpe,this.screenSize="",this.screenSizeEnum=K.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(B){2===B.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===B.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Ci.v))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-swapin-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["swapStepBlock1",""],["swapStepBlock2",""],["swapStepBlock3",""],["swapStepBlock4",""],["swapStepBlock5",""],["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(B,Ae){if(1&B&&(t.YNc(0,Qt,1,0,"ng-container",0),t.YNc(1,pi,18,5,"ng-template",null,1,t.W1O),t.YNc(3,Ti,15,5,"ng-template",null,2,t.W1O),t.YNc(5,Zi,19,5,"ng-template",null,3,t.W1O),t.YNc(7,tn,17,5,"ng-template",null,4,t.W1O),t.YNc(9,Mn,13,5,"ng-template",null,5,t.W1O)),2&B){const pt=t.MAs(2),fi=t.MAs(4),In=t.MAs(6),tr=t.MAs(8),Fn=t.MAs(10);t.Q6J("ngTemplateOutlet",1===Ae.stepNumber?pt:2===Ae.stepNumber?fi:3===Ae.stepNumber?In:4===Ae.stepNumber?tr:Fn)}},directives:[ye.tP,v.xw,v.yH,v.Wh,ye.mk,Cn.oO,F.n5,F.$j],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:[fr.l]}}),X})();const tt=["stepper"];function Et(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(2);t.Oqu(B.inputFormLabel)}}function It(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function zt(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.hij("Amount must be greater than or equal to ",t.lcZ(2,1,null==B.serviceInfo||null==B.serviceInfo.limits?null:B.serviceInfo.limits.minimal),".")}}function ri(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.hij("Amount must be less than or equal to ",t.lcZ(2,1,null==B.serviceInfo||null==B.serviceInfo.limits?null:B.serviceInfo.limits.maximal),".")}}function vi(X,He){1&X&&(t.TgZ(0,"button",40),t._uU(1,"Next"),t.qZA())}function Mi(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",41),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onSwap()}),t._uU(1),t.qZA()}if(2&X){const B=t.oxw(2);t.xp6(1),t.hij("Initiate ",B.swapDirectionCaption,"")}}function Ai(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(3);t.Oqu(B.addressFormLabel)}}function Ki(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Address is required."),t.qZA())}function un(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-step",15),t.TgZ(1,"form",16),t.YNc(2,Ai,1,1,"ng-template",17),t.TgZ(3,"div",42),t.TgZ(4,"mat-radio-group",43),t.NdJ("change",function(pt){return t.CHM(B),t.oxw(2).onAddressTypeChange(pt)}),t.TgZ(5,"mat-radio-button",44),t._uU(6,"Node Local Address"),t.qZA(),t.TgZ(7,"mat-radio-button",45),t._uU(8,"External Address"),t.qZA(),t.qZA(),t.TgZ(9,"mat-form-field",46),t._UZ(10,"input",47),t.YNc(11,Ki,2,0,"mat-error",24),t.qZA(),t.qZA(),t.TgZ(12,"div",25),t.TgZ(13,"button",48),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onSwap()}),t._uU(14),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(2);t.Q6J("stepControl",B.addressFormGroup)("editable",B.flgEditable),t.xp6(1),t.Q6J("formGroup",B.addressFormGroup),t.xp6(9),t.Q6J("required","external"===B.addressFormGroup.controls.addressType.value),t.xp6(1),t.Q6J("ngIf",null==B.addressFormGroup.controls.address.errors?null:B.addressFormGroup.controls.address.errors.required),t.xp6(3),t.hij("Initiate ",B.swapDirectionCaption,"")}}function gn(X,He){if(1&X&&t._uU(0),2&X){const B=t.oxw(2);t.hij("",B.swapDirectionCaption," Status")}}function En(X,He){if(1&X&&(t.TgZ(0,"mat-icon",49),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.swapStatus&&null!=B.swapStatus&&B.swapStatus.id?"check":"close")}}function zn(X,He){1&X&&t._UZ(0,"div")}function Rr(X,He){1&X&&t._UZ(0,"mat-progress-bar",50)}function Fr(X,He){if(1&X&&(t.TgZ(0,"h4",51),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.swapStatus&&B.swapStatus.error?B.swapDirectionCaption+" failed.":B.swapStatus&&B.swapStatus.id?B.swapDirectionCaption+" request placed successfully. You can check the status of the request on the 'Boltz' menu.":B.swapDirectionCaption+" request placed successfully.")}}function wr(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",52),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onRestart()}),t._uU(1,"Start Again"),t.qZA()}}function Vn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",3),t.TgZ(1,"div",4),t.TgZ(2,"mat-card-header",5),t.TgZ(3,"div",6),t.TgZ(4,"span",7),t._uU(5),t.qZA(),t.qZA(),t.TgZ(6,"div",8),t.TgZ(7,"button",9),t.NdJ("click",function(){return t.CHM(B),t.oxw().showInfo()}),t._uU(8,"?"),t.qZA(),t.TgZ(9,"button",10),t.NdJ("click",function(){return t.CHM(B),t.oxw().onClose()}),t._uU(10,"X"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"mat-card-content",11),t.TgZ(12,"div",12),t.TgZ(13,"mat-vertical-stepper",13,14),t.NdJ("selectionChange",function(pt){return t.CHM(B),t.oxw().stepSelectionChanged(pt)}),t.TgZ(15,"mat-step",15),t.TgZ(16,"form",16),t.YNc(17,Et,1,1,"ng-template",17),t.TgZ(18,"div",18),t._UZ(19,"rtl-boltz-service-info",19),t.qZA(),t.TgZ(20,"div",20),t.TgZ(21,"mat-form-field",21),t._UZ(22,"input",22),t.TgZ(23,"mat-hint"),t._uU(24),t.ALo(25,"number"),t.ALo(26,"number"),t.qZA(),t.TgZ(27,"span",23),t._uU(28,"Sats"),t.qZA(),t.YNc(29,It,2,0,"mat-error",24),t.YNc(30,zt,3,3,"mat-error",24),t.YNc(31,ri,3,3,"mat-error",24),t.qZA(),t.qZA(),t.TgZ(32,"div",25),t.YNc(33,vi,2,0,"button",26),t.YNc(34,Mi,2,1,"button",27),t.qZA(),t.qZA(),t.qZA(),t.YNc(35,un,15,6,"mat-step",28),t.TgZ(36,"mat-step",29),t.TgZ(37,"form",16),t.YNc(38,gn,1,1,"ng-template",17),t.TgZ(39,"div",30),t.TgZ(40,"mat-expansion-panel",31),t.TgZ(41,"mat-expansion-panel-header"),t.TgZ(42,"mat-panel-title"),t.TgZ(43,"span",32),t._uU(44),t.YNc(45,En,2,1,"mat-icon",33),t.qZA(),t.qZA(),t.qZA(),t.YNc(46,zn,1,0,"div",34),t.qZA(),t.YNc(47,Rr,1,0,"mat-progress-bar",35),t.qZA(),t.YNc(48,Fr,2,1,"h4",36),t.TgZ(49,"div",25),t.YNc(50,wr,2,0,"button",37),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(51,"div",38),t.TgZ(52,"button",39),t._uU(53,"Close"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(),Ae=t.MAs(2);t.Q6J("@opacityAnimation",void 0),t.xp6(3),t.Q6J("fxFlex",B.screenSize===B.screenSizeEnum.XS||B.screenSize===B.screenSizeEnum.SM?"83":"91"),t.xp6(2),t.Oqu(B.swapDirectionCaption),t.xp6(1),t.Q6J("fxFlex",B.screenSize===B.screenSizeEnum.XS||B.screenSize===B.screenSizeEnum.SM?"17":"9"),t.xp6(7),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",B.inputFormGroup)("editable",B.flgEditable),t.xp6(1),t.Q6J("formGroup",B.inputFormGroup),t.xp6(3),t.Q6J("serviceInfo",B.serviceInfo)("direction",B.direction),t.xp6(3),t.Q6J("step",1e3),t.xp6(2),t.AsE("Range: ",t.lcZ(25,30,null==B.serviceInfo||null==B.serviceInfo.limits?null:B.serviceInfo.limits.minimal),"-",t.lcZ(26,32,null==B.serviceInfo||null==B.serviceInfo.limits?null:B.serviceInfo.limits.maximal),""),t.xp6(5),t.Q6J("ngIf",null==B.inputFormGroup||null==B.inputFormGroup.controls||null==B.inputFormGroup.controls.amount||null==B.inputFormGroup.controls.amount.errors?null:B.inputFormGroup.controls.amount.errors.required),t.xp6(1),t.Q6J("ngIf",null==B.inputFormGroup||null==B.inputFormGroup.controls||null==B.inputFormGroup.controls.amount||null==B.inputFormGroup.controls.amount.errors?null:B.inputFormGroup.controls.amount.errors.min),t.xp6(1),t.Q6J("ngIf",null==B.inputFormGroup||null==B.inputFormGroup.controls||null==B.inputFormGroup.controls.amount||null==B.inputFormGroup.controls.amount.errors?null:B.inputFormGroup.controls.amount.errors.max),t.xp6(2),t.Q6J("ngIf",B.direction===B.swapTypeEnum.SWAP_OUT),t.xp6(1),t.Q6J("ngIf",B.direction===B.swapTypeEnum.SWAP_IN),t.xp6(1),t.Q6J("ngIf",B.direction===B.swapTypeEnum.SWAP_OUT),t.xp6(1),t.Q6J("stepControl",B.statusFormGroup),t.xp6(1),t.Q6J("formGroup",B.statusFormGroup),t.xp6(3),t.Q6J("expanded",!!B.swapStatus),t.xp6(4),t.Oqu(B.swapStatus?B.swapStatus.id?B.swapDirectionCaption+" request details":B.swapDirectionCaption+" error details":"Waiting for "+B.swapDirectionCaption+" request..."),t.xp6(1),t.Q6J("ngIf",B.swapStatus),t.xp6(1),t.Q6J("ngIf",!B.swapStatus)("ngIfElse",Ae),t.xp6(1),t.Q6J("ngIf",!B.swapStatus),t.xp6(1),t.Q6J("ngIf",B.swapStatus),t.xp6(2),t.Q6J("ngIf",B.swapStatus&&(B.swapStatus.error||!B.swapStatus.id)),t.xp6(2),t.Q6J("mat-dialog-close",!1)}}function mr(X,He){if(1&X&&t._UZ(0,"rtl-boltz-swap-status",53),2&X){const B=t.oxw();t.Q6J("swapStatus",B.swapStatus)("direction",B.direction)}}function Hi(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"rtl-boltz-swapout-info-graphics",70),t.NdJ("stepNumberChange",function(pt){return t.CHM(B),t.oxw(2).stepNumber=pt}),t.qZA()}if(2&X){const B=t.oxw(2);t.Q6J("stepNumber",B.stepNumber)("animationDirection",B.animationDirection)}}function on(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"rtl-boltz-swapin-info-graphics",70),t.NdJ("stepNumberChange",function(pt){return t.CHM(B),t.oxw(2).stepNumber=pt}),t.qZA()}if(2&X){const B=t.oxw(2);t.Q6J("stepNumber",B.stepNumber)("animationDirection",B.animationDirection)}}const nn=function(X,He){return{"dot-primary":X,"dot-primary-lighter":He}};function kn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"span",71),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw(2).onStepChanged(fi)}),t._UZ(1,"p",72),t.qZA()}if(2&X){const B=He.$implicit,Ae=t.oxw(2);t.xp6(1),t.Q6J("ngClass",t.WLB(1,nn,Ae.stepNumber===B,Ae.stepNumber!==B))}}function jn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",73),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onReadMore()}),t._uU(1,"Read More"),t.qZA()}}function da(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",74),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onStepChanged(4)}),t._uU(1,"Back"),t.qZA()}}function Xr(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",75),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw(2);return pt.flgShowInfo=!1,pt.stepNumber=1}),t._uU(1,"Close"),t.qZA()}}function $r(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",76),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw(2);return pt.flgShowInfo=!1,pt.stepNumber=1}),t._uU(1,"Close"),t.qZA()}}function Yn(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",77),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw(2);return pt.onStepChanged(pt.stepNumber-1)}),t._uU(1,"Back"),t.qZA()}}function io(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",78),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw(2);return pt.onStepChanged(pt.stepNumber+1)}),t._uU(1,"Next"),t.qZA()}}const Ia=function(){return[1,2,3,4,5]};function ks(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",54),t.TgZ(1,"div",18),t.TgZ(2,"mat-card-header",55),t.TgZ(3,"div",56),t._UZ(4,"span",7),t.qZA(),t.TgZ(5,"div",57),t.TgZ(6,"button",58),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw();return pt.flgShowInfo=!1,pt.stepNumber=1}),t._uU(7,"X"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"mat-card-content",59),t.YNc(9,Hi,1,2,"rtl-boltz-swapout-info-graphics",60),t.YNc(10,on,1,2,"rtl-boltz-swapin-info-graphics",60),t.qZA(),t.TgZ(11,"div",61),t.YNc(12,kn,2,4,"span",62),t.qZA(),t.TgZ(13,"div",63),t.YNc(14,jn,2,0,"button",64),t.YNc(15,da,2,0,"button",65),t.YNc(16,Xr,2,0,"button",66),t.YNc(17,$r,2,0,"button",67),t.YNc(18,Yn,2,0,"button",68),t.YNc(19,io,2,0,"button",69),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("@opacityAnimation",void 0),t.xp6(9),t.Q6J("ngIf",B.direction===B.swapTypeEnum.SWAP_OUT),t.xp6(1),t.Q6J("ngIf",B.direction===B.swapTypeEnum.SWAP_IN),t.xp6(2),t.Q6J("ngForOf",t.DdM(10,Ia)),t.xp6(2),t.Q6J("ngIf",5===B.stepNumber),t.xp6(1),t.Q6J("ngIf",5===B.stepNumber),t.xp6(1),t.Q6J("ngIf",5===B.stepNumber),t.xp6(1),t.Q6J("ngIf",B.stepNumber<5),t.xp6(1),t.Q6J("ngIf",B.stepNumber>1&&B.stepNumber<5),t.xp6(1),t.Q6J("ngIf",B.stepNumber<5)}}let Zs=(()=>{class X{constructor(B,Ae,pt,fi,In,tr,Fn,Br,ya){this.dialogRef=B,this.data=Ae,this.store=pt,this.boltzService=fi,this.formBuilder=In,this.decimalPipe=tr,this.logger=Fn,this.router=Br,this.commonService=ya,this.faInfoCircle=x.sqG,this.serviceInfo={fees:{percentage:null,miner:{normal:null,reverse:null}},limits:{minimal:1e4,maximal:5e7}},this.swapTypeEnum=K.hc,this.direction=K.hc.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=K.cu,this.animationDirection="forward",this.flgEditable=!0,this.unSubs=[new s.x,new s.x,new s.x,new s.x,new s.x,new s.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.serviceInfo=this.data.serviceInfo,this.direction=this.data.direction,this.swapDirectionCaption=this.direction===K.hc.SWAP_OUT?"Swap Out":"Swap in",this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.serviceInfo.limits.minimal,[Ge.kI.required,Ge.kI.min(this.serviceInfo.limits.minimal),Ge.kI.max(this.serviceInfo.limits.maximal)]]}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[Ge.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges()}ngAfterViewInit(){this.direction===K.hc.SWAP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.direction===K.hc.SWAP_OUT&&this.addressFormGroup.valueChanges.pipe((0,b.R)(this.unSubs[2])).subscribe(B=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(B){"external"===B.value?(this.addressFormGroup.controls.address.setValidators([Ge.kI.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.inputFormGroup.controls.amount.value<+this.serviceInfo.limits.minimal||this.inputFormGroup.controls.amount.value>+this.serviceInfo.limits.maximal||this.direction===K.hc.SWAP_OUT&&"external"===this.addressFormGroup.controls.addressType.value&&(!this.addressFormGroup.controls.address.value||""===this.addressFormGroup.controls.address.value.trim()))return!0;this.flgEditable=!1,this.stepper.selected.stepControl.setErrors(null),this.stepper.next(),this.direction===K.hc.SWAP_IN?this.boltzService.swapIn(this.inputFormGroup.controls.amount.value).pipe((0,b.R)(this.unSubs[3])).subscribe({next:B=>{this.swapStatus=B,this.boltzService.listSwaps(),this.flgEditable=!0},error:B=>{this.swapStatus={error:B},this.flgEditable=!0,this.logger.error(B)}}):this.boltzService.swapOut(this.inputFormGroup.controls.amount.value,"external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"").pipe((0,b.R)(this.unSubs[4])).subscribe({next:Ae=>{this.swapStatus=Ae,this.boltzService.listSwaps(),this.flgEditable=!0},error:Ae=>{this.swapStatus={error:Ae},this.flgEditable=!0,this.logger.error(Ae)}})}stepSelectionChanged(B){switch(B.selectedIndex){case 0:default:this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.addressFormLabel="Withdrawal Address";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.amount.value?this.swapDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats":"Amount to "+this.swapDirectionCaption,this.addressFormLabel="Withdrawal Address"}B.selectedIndex{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Ue.so),t.Y36(Ue.WI),t.Y36(M.yh),t.Y36(Un),t.Y36(Ge.qu),t.Y36(ye.JJ),t.Y36(we.mQ),t.Y36(I.F0),t.Y36(Ci.v))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-swap-modal"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(tt,5),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.stepper=pt.first)}},decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["swapStatusBlock",""],["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,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["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,"linear","selectionChange"],["stepper",""],[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"],["fxFlex","48"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["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"],["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"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Address","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"],["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"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["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,"stepNumber","animationDirection","stepNumberChange"],["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(B,Ae){1&B&&(t.YNc(0,Vn,54,34,"div",0),t.YNc(1,mr,1,2,"ng-template",null,1,t.W1O),t.YNc(3,ks,20,11,"div",2)),2&B&&(t.Q6J("ngIf",!Ae.flgShowInfo),t.xp6(3),t.Q6J("ngIf",Ae.flgShowInfo))},directives:[ye.O5,v.xw,v.yH,v.Wh,F.dk,he.lW,F.dn,it.Vq,it.C0,Ge._Y,Ge.JL,Ge.sg,it.VY,_a,vt.KE,rt.Nt,Ge.wV,Ge.Fj,Ne.h,Ge.JJ,Ge.u,Ge.Q7,vt.bx,vt.R9,Rn.ib,Rn.yz,Rn.yK,Ue.ZT,vt.TO,it.Ic,$i.VQ,$i.U0,Mr.Hw,Qn.pW,zs,ye.sg,kt,On,ye.mk,Cn.oO],pipes:[ye.JJ],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[xi._]}}),X})();function va(X,He){1&X&&t._UZ(0,"mat-progress-bar",32)}function us(X,He){1&X&&(t.TgZ(0,"th",33),t._uU(1," Status "),t.qZA())}function Jc(X,He){if(1&X&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw();t.xp6(1),t.Oqu(Ae.swapStateEnum[B.status])}}function Vs(X,He){1&X&&(t.TgZ(0,"th",33),t._uU(1," Swap ID "),t.qZA())}function no(X,He){if(1&X&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.id)}}function tl(X,He){1&X&&(t.TgZ(0,"th",33),t._uU(1," Claim Address "),t.qZA())}function cc(X,He){if(1&X&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.claimAddress)}}function hc(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Onchain Amount (Sats) "),t.qZA())}function Xc(X,He){if(1&X&&(t.TgZ(0,"td",34),t.TgZ(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.onchainAmount))}}function $c(X,He){1&X&&(t.TgZ(0,"th",33),t._uU(1," Lockup Address "),t.qZA())}function Lo(X,He){if(1&X&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.xp6(1),t.Oqu(B.lockupAddress)}}function il(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Expected Amount (Sats) "),t.qZA())}function nl(X,He){if(1&X&&(t.TgZ(0,"td",34),t.TgZ(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.expectedAmount))}}function Oo(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Timeout Block Height "),t.qZA())}function Ll(X,He){if(1&X&&(t.TgZ(0,"td",34),t.TgZ(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.timeoutBlockHeight))}}function Io(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Amount (Sats) "),t.qZA())}function ro(X,He){if(1&X&&(t.TgZ(0,"td",34),t.TgZ(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const B=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,B.amt))}}function dc(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"th",37),t.TgZ(1,"div",38),t.TgZ(2,"mat-select",39),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",40),t.NdJ("click",function(){return t.CHM(B),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}}function Gs(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"td",41),t.TgZ(1,"button",42),t.NdJ("click",function(pt){const In=t.CHM(B).$implicit;return t.oxw().onSwapClick(In,pt)}),t._uU(2,"View Info"),t.qZA(),t.qZA()}}function rl(X,He){if(1&X&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&X){const B=t.oxw(2);t.xp6(1),t.Oqu(B.emptyTableMessage)}}function al(X,He){if(1&X&&(t.TgZ(0,"td",43),t.YNc(1,rl,2,1,"p",44),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Q6J("ngIf",!(null!=B.listSwaps&&B.listSwaps.data)||(null==B.listSwaps||null==B.listSwaps.data?null:B.listSwaps.data.length)<1)}}const Ye=function(X){return{"display-none":X}};function Te(X,He){if(1&X&&t._UZ(0,"tr",45),2&X){const B=t.oxw();t.Q6J("ngClass",t.VKq(1,Ye,(null==B.listSwaps?null:B.listSwaps.data)&&(null==B.listSwaps||null==B.listSwaps.data?null:B.listSwaps.data.length)>0))}}function be(X,He){1&X&&t._UZ(0,"tr",46)}function $e(X,He){1&X&&t._UZ(0,"tr",47)}const dt=function(X){return{"overflow-auto error-border":X,"overflow-auto":!0}},Ot=function(){return["no_swap"]};let qt=(()=>{class X{constructor(B,Ae,pt,fi){this.logger=B,this.commonService=Ae,this.store=pt,this.boltzService=fi,this.selectedSwapType=K.hc.SWAP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.swapStateEnum=K.Qw,this.faHistory=x.qO$,this.swapCaption="Swap Out",this.displayedColumns=[],this.selFilter="",this.flgSticky=!1,this.pageSize=K.IV,this.pageSizeOptions=K.TJ,this.screenSize="",this.screenSizeEnum=K.cu,this.unSubs=[new s.x,new s.x,new s.x],this.screenSize=this.commonService.getScreenSize(),this.setTableColumns()}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(B){B.selectedSwapType&&!B.selectedSwapType.firstChange&&this.setTableColumns(),this.swapCaption=this.selectedSwapType===K.hc.SWAP_IN?"Swap In":"Swap Out",this.loadSwapsTable(this.swapsData)}setTableColumns(){this.screenSize===K.cu.XS||this.screenSize===K.cu.SM?(this.flgSticky=!1,this.displayedColumns=this.selectedSwapType===K.hc.SWAP_IN?["status","id","expectedAmount","actions"]:["status","id","onchainAmount","actions"]):this.screenSize===K.cu.MD?(this.flgSticky=!1,this.displayedColumns=this.selectedSwapType===K.hc.SWAP_IN?["status","id","expectedAmount","timeoutBlockHeight","actions"]:["status","id","onchainAmount","timeoutBlockHeight","actions"]):(this.flgSticky=!0,this.displayedColumns=this.selectedSwapType===K.hc.SWAP_IN?["status","id","lockupAddress","expectedAmount","timeoutBlockHeight","actions"]:["status","id","claimAddress","onchainAmount","timeoutBlockHeight","actions"])}applyFilter(){this.listSwaps&&""!==this.selFilter&&(this.listSwaps.filter=this.selFilter.trim().toLowerCase())}onSwapClick(B,Ae){this.boltzService.swapInfo(B.id).pipe((0,b.R)(this.unSubs[1])).subscribe(pt=>{this.store.dispatch((0,Me.qR)({payload:{data:{type:K.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"status",value:K.Qw[(pt=this.selectedSwapType===K.hc.SWAP_IN?pt.swap:pt.reverseSwap).status],title:"Status",width:50,type:K.Gi.STRING},{key:"id",value:pt.id,title:"ID",width:50,type:K.Gi.STRING}],[{key:"amount",value:pt.onchainAmount?pt.onchainAmount:pt.expectedAmount?pt.expectedAmount:0,title:pt.onchainAmount?"Onchain Amount (Sats)":pt.expectedAmount?"Expected Amount (Sats)":"Amount (Sats)",width:50,type:K.Gi.NUMBER},{key:"timeoutBlockHeight",value:pt.timeoutBlockHeight,title:"Timeout Block Height",width:50,type:K.Gi.NUMBER}],[{key:"address",value:pt.claimAddress?pt.claimAddress:pt.lockupAddress?pt.lockupAddress:"",title:pt.claimAddress?"Claim Address":pt.lockupAddress?"Lockup Address":"Address",width:100,type:K.Gi.STRING}],[{key:"invoice",value:pt.invoice,title:"Invoice",width:100,type:K.Gi.STRING}],[{key:"privateKey",value:pt.privateKey,title:"Private Key",width:100,type:K.Gi.STRING}],[{key:"preimage",value:pt.preimage,title:"Preimage",width:100,type:K.Gi.STRING}],[{key:"redeemScript",value:pt.redeemScript,title:"Redeem Script",width:100,type:K.Gi.STRING}],[{key:"lockupTransactionId",value:pt.lockupTransactionId,title:"Lockup Transaction ID",width:50,type:K.Gi.STRING},{key:"transactionId",value:pt.claimTransactionId?pt.claimTransactionId:pt.refundTransactionId?pt.refundTransactionId:"",title:pt.claimTransactionId?"Claim Transaction ID":pt.refundTransactionId?"Refund Transaction ID":"Transaction ID",width:50,type:K.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(B){this.listSwaps=new vn.by(B?[...B]:[]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(Ae,pt)=>Ae[pt]&&isNaN(Ae[pt])?Ae[pt].toLocaleLowerCase():Ae[pt]?+Ae[pt]:null,this.listSwaps.filterPredicate=(Ae,pt)=>JSON.stringify(Ae).toLowerCase().includes(pt),this.paginator&&this.paginator.firstPage(),this.listSwaps.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===K.hc.SWAP_IN?"Swap in":"Swap out")}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(Ci.v),t.Y36(M.yh),t.Y36(Un))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-swaps"]],viewQuery:function(B,Ae){if(1&B&&(t.Gf(Kn.YE,5),t.Gf(kr.NW,5)),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.sort=pt.first),t.iGM(pt=t.CRH())&&(Ae.paginator=pt.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[t._Bn([{provide:kr.ye,useValue:(0,K.pt)("Swaps")}]),t.TTD],decls:46,vars:16,consts:[["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","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","claimAddress"],["matColumnDef","onchainAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","lockupAddress"],["matColumnDef","expectedAmount"],["matColumnDef","timeoutBlockHeight"],["matColumnDef","amt"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","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","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"div",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span",4),t._uU(5),t.qZA(),t.qZA(),t.TgZ(6,"mat-form-field",5),t.TgZ(7,"input",6),t.NdJ("keyup",function(){return Ae.applyFilter()})("ngModelChange",function(fi){return Ae.selFilter=fi}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"div",7),t.TgZ(9,"div",8),t.YNc(10,va,1,0,"mat-progress-bar",9),t.TgZ(11,"table",10,11),t.ynx(13,12),t.YNc(14,us,2,0,"th",13),t.YNc(15,Jc,2,1,"td",14),t.BQk(),t.ynx(16,15),t.YNc(17,Vs,2,0,"th",13),t.YNc(18,no,2,1,"td",14),t.BQk(),t.ynx(19,16),t.YNc(20,tl,2,0,"th",13),t.YNc(21,cc,2,1,"td",14),t.BQk(),t.ynx(22,17),t.YNc(23,hc,2,0,"th",18),t.YNc(24,Xc,4,3,"td",14),t.BQk(),t.ynx(25,19),t.YNc(26,$c,2,0,"th",13),t.YNc(27,Lo,2,1,"td",14),t.BQk(),t.ynx(28,20),t.YNc(29,il,2,0,"th",18),t.YNc(30,nl,4,3,"td",14),t.BQk(),t.ynx(31,21),t.YNc(32,Oo,2,0,"th",18),t.YNc(33,Ll,4,3,"td",14),t.BQk(),t.ynx(34,22),t.YNc(35,Io,2,0,"th",18),t.YNc(36,ro,4,3,"td",14),t.BQk(),t.ynx(37,23),t.YNc(38,dc,6,0,"th",24),t.YNc(39,Gs,3,0,"td",25),t.BQk(),t.ynx(40,26),t.YNc(41,al,2,1,"td",27),t.BQk(),t.YNc(42,Te,1,3,"tr",28),t.YNc(43,be,1,0,"tr",29),t.YNc(44,$e,1,0,"tr",30),t.qZA(),t._UZ(45,"mat-paginator",31),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(3),t.Q6J("icon",Ae.faHistory),t.xp6(2),t.hij("",Ae.swapCaption," History"),t.xp6(2),t.Q6J("ngModel",Ae.selFilter),t.xp6(3),t.Q6J("ngIf",!0===Ae.flgLoading[0]),t.xp6(1),t.Q6J("dataSource",Ae.listSwaps)("ngClass",t.VKq(13,dt,"error"===Ae.flgLoading[0])),t.xp6(31),t.Q6J("matFooterRowDef",t.DdM(15,Ot)),t.xp6(1),t.Q6J("matHeaderRowDef",Ae.displayedColumns)("matHeaderRowDefSticky",Ae.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",Ae.displayedColumns),t.xp6(1),t.Q6J("pageSize",Ae.pageSize)("pageSizeOptions",Ae.pageSizeOptions)("showFirstLastButtons",Ae.screenSize!==Ae.screenSizeEnum.XS))},directives:[v.xw,v.yH,v.Wh,G.BN,vt.KE,rt.Nt,Ge.Fj,Ge.JJ,Ge.On,z.$V,ye.O5,vn.BZ,Kn.YE,ye.mk,Cn.oO,vn.w1,vn.fO,vn.Dz,vn.mD,vn.Ke,vn.as,vn.nj,kr.NW,Qn.pW,vn.ge,Kn.nU,vn.ev,Re.gD,Re.$L,Le.ey,he.lW,vn.yh,vn.Q2,vn.XQ,vn.Gk],pipes:[ye.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),X})();const ii=function(X){return["../",X]};function Ei(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"div",15),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw().onSelectedIndexChange(fi)}),t._uU(1),t.qZA()}if(2&X){const B=He.$implicit,Ae=t.oxw();t.Q6J("active",Ae.activeTab.link===B.link)("routerLink",t.VKq(3,ii,B.link)),t.xp6(1),t.Oqu(B.name)}}let an=(()=>{class X{constructor(B,Ae,pt){this.router=B,this.store=Ae,this.boltzService=pt,this.swapTypeEnum=K.hc,this.selectedSwapType=K.hc.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 s.x,new s.x,new s.x,new s.x]}ngOnInit(){this.boltzService.listSwaps();const B=this.links.find(Ae=>this.router.url.includes(Ae.link));this.activeTab=B||this.links[0],this.selectedSwapType=B&&"swapin"===B.link?K.hc.SWAP_IN:K.hc.SWAP_OUT,this.router.events.pipe((0,b.R)(this.unSubs[0]),(0,de.h)(Ae=>Ae instanceof I.Av)).subscribe({next:Ae=>{const pt=this.links.find(fi=>Ae.urlAfterRedirects.includes(fi.link));this.activeTab=pt||this.links[0],this.selectedSwapType=pt&&"swapin"===pt.link?K.hc.SWAP_IN:K.hc.SWAP_OUT}}),this.boltzService.swapsChanged.pipe((0,b.R)(this.unSubs[1])).subscribe({next:Ae=>{this.swaps=Ae,this.swapsData=this.selectedSwapType===K.hc.SWAP_IN?Ae.swaps:Ae.reverseSwaps,this.flgLoading[0]=!1},error:Ae=>{this.flgLoading[0]="error",this.emptyTableMessage=Ae.message?Ae.message:"No swap "+(this.selectedSwapType===K.hc.SWAP_IN?"in":"out")+" available."}})}onSelectedIndexChange(B){"swapin"===B.link?(this.selectedSwapType=K.hc.SWAP_IN,this.swapsData=this.swaps.swaps):(this.selectedSwapType=K.hc.SWAP_OUT,this.swapsData=this.swaps.reverseSwaps)}onSwap(B){this.boltzService.serviceInfo().pipe((0,b.R)(this.unSubs[2])).subscribe({next:Ae=>{this.store.dispatch((0,Me.qR)({payload:{data:{serviceInfo:Ae,direction:B,component:Zs}}}))}})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(I.F0),t.Y36(M.yh),t.Y36(Un))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-root"]],decls:18,vars:6,consts:[["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",""],["role","tab","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","1",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1),t.TgZ(2,"g",2),t.TgZ(3,"g",3),t._UZ(4,"circle",4),t._UZ(5,"path",5),t._UZ(6,"path",6),t.qZA(),t.qZA(),t.qZA(),t.kcU(),t.TgZ(7,"span",7),t._uU(8,"Boltz"),t.qZA(),t.qZA(),t.TgZ(9,"div",8),t.TgZ(10,"mat-card"),t.TgZ(11,"mat-card-content",9),t.TgZ(12,"nav",10),t.YNc(13,Ei,2,5,"div",11),t.qZA(),t.TgZ(14,"div",12),t.TgZ(15,"button",13),t.NdJ("click",function(){return Ae.onSwap(Ae.selectedSwapType)}),t._uU(16),t.qZA(),t.qZA(),t._UZ(17,"rtl-boltz-swaps",14),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(13),t.Q6J("ngForOf",Ae.links),t.xp6(3),t.hij("Start ",Ae.activeTab.name,""),t.xp6(1),t.Q6J("selectedSwapType",Ae.selectedSwapType)("swapsData",Ae.swapsData)("flgLoading",Ae.flgLoading)("emptyTableMessage",Ae.emptyTableMessage))},directives:[v.xw,v.Wh,F.a8,F.dn,v.yH,U.BU,ye.sg,he.lW,qt,U.Nj,I.rH],styles:[""]}),X})();class ea{constructor(He){this.help=He}}function ys(X,He){if(1&X&&(t.TgZ(0,"mat-expansion-panel",8),t.TgZ(1,"mat-expansion-panel-header"),t.TgZ(2,"mat-panel-title"),t._uU(3),t.qZA(),t.qZA(),t.TgZ(4,"mat-panel-description",9),t._UZ(5,"span",10),t.TgZ(6,"a",11),t._uU(7),t.qZA(),t.qZA(),t.qZA()),2&X){const B=t.oxw().$implicit,Ae=t.oxw();t.xp6(3),t.Oqu(B.help.question),t.xp6(2),t.Q6J("innerHTML",B.help.answer,t.oJD),t.xp6(1),t.Q6J("routerLink",Ae.flgLoggedIn?Ae.LNPLink+B.help.link:"/login"),t.xp6(1),t.Oqu(Ae.flgLoggedIn?B.help.linkCaption:"Login to go to the page")}}function fs(X,He){if(1&X&&(t.TgZ(0,"div",6),t.YNc(1,ys,8,4,"mat-expansion-panel",7),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw();t.xp6(1),t.Q6J("ngIf","ALL"===B.help.lnImplementation||B.help.lnImplementation===Ae.selNode.lnImplementation)}}let Ps=(()=>{class X{constructor(B,Ae){this.store=B,this.sessionService=Ae,this.helpTopics=[],this.faQuestion=x.Psp,this.LNPLink="/lnd/",this.flgLoggedIn=!1,this.unSubs=[new s.x,new s.x,new s.x,new s.x],this.helpTopics.push(new ea({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:"onchain",linkCaption:"On-Chain page",lnImplementation:"ALL"})),this.helpTopics.push(new ea({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:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new ea({question:"Opening Channels",answer:'Open channels with a connected network peer.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. On the "Channels" section, 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:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new ea({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. 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:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new ea({question:"Lightning Transactions - 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:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new ea({question:"Lightning Transactions - 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:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new ea({question:"Lightning Transactions - Query Route",answer:'Querying Payment Routes.\nGo to the "Transactions" 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:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new ea({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:"backup",linkCaption:"Channel Backups",lnImplementation:"LND"})),this.helpTopics.push(new ea({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:"backup",linkCaption:"Channel Backups",lnImplementation:"LND"})),this.helpTopics.push(new ea({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:"routing",linkCaption:"Forwarding History",lnImplementation:"ALL"})),this.helpTopics.push(new ea({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:"lookups",linkCaption:"Graph Lookup page",lnImplementation:"ALL"})),this.helpTopics.push(new ea({question:"Settings",answer:'RTL Offers certain customizations on the UI to personalize your experience on the app\nGo to "Settings" 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. Default Node - If you are managing multiple nodes via RTL UI, you can select the default node to load upon login.\nOther Customizations include day and night mode and a choice of color themes to select from.\n',lnImplementation:"ALL"}))}ngOnInit(){this.store.select(r.dT).pipe((0,b.R)(this.unSubs[0])).subscribe(B=>{switch(this.selNode=B,this.selNode.lnImplementation.toUpperCase()){case"CLN":this.LNPLink="/cln/";break;case"ECL":this.LNPLink="/ecl/";break;default:this.LNPLink="/lnd/"}}),this.sessionService.watchSession().pipe((0,b.R)(this.unSubs[1])).subscribe(B=>{this.flgLoggedIn=!!B.token}),this.sessionService.getItem("token")&&(this.flgLoggedIn=!0)}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(M.yh),t.Y36(Pe.m))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-help"]],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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span",3),t._uU(4,"Help"),t.qZA(),t.qZA(),t.TgZ(5,"div",4),t.TgZ(6,"div",0),t.YNc(7,fs,2,1,"div",5),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(2),t.Q6J("icon",Ae.faQuestion),t.xp6(5),t.Q6J("ngForOf",Ae.helpTopics))},directives:[v.xw,v.yH,v.Wh,G.BN,ye.sg,ye.O5,Rn.ib,Rn.yz,Rn.yK,Rn.u4,I.yS],styles:[".mat-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]}),X})();var bs=m(9841);function Ea(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Token is required."),t.qZA())}let Ol=(()=>{class X{constructor(B,Ae){this.dialogRef=B,this.store=Ae,this.faUserClock=x.hnx,this.token=""}onClose(){this.dialogRef.close(null)}onVerifyToken(){if(!this.token)return!0;this.dialogRef.close(),this.store.dispatch((0,Me.M6)({payload:{twoFAToken:this.token}}))}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(Ue.so),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-login-token"]],decls:17,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","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","row",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100",3,"ngSubmit"],["tokenForm","ngForm"],["autoFocus","","matInput","","placeholder","Token","type","text","id","token","name","token","tabindex","2","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","4","type","submit"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"mat-card-header",2),t.TgZ(3,"div",3),t.TgZ(4,"span",4),t._uU(5,"Two Factor Token"),t.qZA(),t.qZA(),t.TgZ(6,"button",5),t.NdJ("click",function(){return Ae.onClose()}),t._uU(7,"X"),t.qZA(),t.qZA(),t.TgZ(8,"mat-card-content",6),t.TgZ(9,"form",7,8),t.NdJ("ngSubmit",function(){return Ae.onVerifyToken()}),t.TgZ(11,"mat-form-field"),t.TgZ(12,"input",9),t.NdJ("ngModelChange",function(fi){return Ae.token=fi}),t.qZA(),t.YNc(13,Ea,2,0,"mat-error",10),t.qZA(),t.TgZ(14,"div",11),t.TgZ(15,"button",12),t._uU(16,"Verify Token"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(12),t.Q6J("ngModel",Ae.token),t.xp6(1),t.Q6J("ngIf",!Ae.token))},directives:[v.xw,v.Wh,v.yH,F.dk,he.lW,F.dn,Ge._Y,Ge.JL,Ge.F,vt.KE,rt.Nt,Ge.Fj,Ne.h,Ge.Q7,Ge.JJ,Ge.On,ye.O5,vt.TO],styles:[""]}),X})();function yo(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Password is required."),t.qZA())}function so(X,He){if(1&X&&(t.TgZ(0,"p",21),t.TgZ(1,"mat-icon",22),t._uU(2,"close"),t.qZA(),t._uU(3),t.qZA()),2&X){const B=t.oxw();t.xp6(3),t.hij(" ",B.loginErrorMessage," ")}}const e1=function(X){return{"padding-gap-large":X}},t1=function(X,He){return{"font-size-200":X,"font-size-300":He}};let ko=(()=>{class X{constructor(B,Ae,pt,fi){this.logger=B,this.store=Ae,this.rtlEffects=pt,this.commonService=fi,this.faUnlockAlt=x.B$L,this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.flgShow=!1,this.screenSize="",this.screenSizeEnum=K.cu,this.loginErrorMessage="",this.apiCallStatusEnum=K.Bn,this.unSubs=[new s.x,new s.x,new s.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),(0,bs.a)([this.store.select(r.ul),this.store.select(r.Sr)]).pipe((0,b.R)(this.unSubs[0])).subscribe(([B,Ae])=>{this.loginErrorMessage="",B.status===K.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof B.message?JSON.stringify(B.message):B.message),this.logger.error(B.message)),Ae.status===K.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof Ae.message?JSON.stringify(Ae.message):Ae.message),this.logger.error(Ae.message))}),this.store.select(r.Yj).pipe((0,b.R)(this.unSubs[1])).subscribe(B=>{this.appConfig=B,this.logger.info(B)})}onLogin(){if(!this.password)return!0;this.loginErrorMessage="",this.appConfig.enable2FA?(this.store.dispatch((0,Me.qR)({payload:{maxWidth:"35rem",data:{component:Ol}}})),this.rtlEffects.closeAlert.pipe((0,xe.q)(1)).subscribe(B=>{B&&this.store.dispatch((0,Me.x4)({payload:{password:le(this.password),defaultPassword:K.kO.includes(this.password.toLowerCase()),twoFAToken:B.twoFAToken}}))})):this.store.dispatch((0,Me.x4)({payload:{password:le(this.password),defaultPassword:K.kO.includes(this.password.toLowerCase())}}))}resetData(){this.password="",this.loginErrorMessage="",this.flgShow=!1}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(M.yh),t.Y36(nt.V),t.Y36(Ci.v))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-login"]],decls:25,vars:12,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","center stretch",1,"login-container"],["fxLayout","row","fxFlex","50","fxLayoutAlign","center stretch"],["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"],["src","assets/images/RTL-Horse-BY.svg","alt","RTL Logo",1,"rtl-logo-svg"],["fxFlex","65","fxLayout","column","fxLayoutAlign","center stretch",3,"ngClass"],["fxLayout","row","fxLayoutAlign","center center",1,"page-title-container","p-0"],[1,"font-bold-500",3,"ngClass"],[1,"page-title"],[1,"mt-5px","mb-0","px-2"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between"],["loginForm","ngForm"],["fxFlex","100","fxLayoutAlign","start"],["autoFocus","","matInput","","placeholder","Password","id","password","name","password","tabindex","1","required","",3,"type","ngModel","ngModelChange"],["tabindex","2","matSuffix","",3,"click"],[4,"ngIf"],["fxFlex","100","class","color-warn pre-wrap","fxLayoutAlign","start start",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["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"],["fxFlex","100","fxLayoutAlign","start start",1,"color-warn","pre-wrap"],[1,"mr-1","icon-small"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"mat-card",2),t.TgZ(3,"div",3),t.TgZ(4,"div",4),t._UZ(5,"img",5),t.qZA(),t.TgZ(6,"div",6),t.TgZ(7,"mat-card-header",7),t.TgZ(8,"mat-card-title",8),t.TgZ(9,"span",9),t._uU(10,"Welcome"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"mat-card-content",10),t.TgZ(12,"form",11,12),t.TgZ(14,"mat-form-field",13),t.TgZ(15,"input",14),t.NdJ("ngModelChange",function(fi){return Ae.password=fi}),t.qZA(),t.TgZ(16,"mat-icon",15),t.NdJ("click",function(){return Ae.flgShow=!Ae.flgShow}),t._uU(17),t.qZA(),t.YNc(18,yo,2,0,"mat-error",16),t.qZA(),t.YNc(19,so,4,1,"p",17),t.TgZ(20,"div",18),t.TgZ(21,"button",19),t.NdJ("click",function(){return Ae.resetData()}),t._uU(22,"Clear"),t.qZA(),t.TgZ(23,"button",20),t.NdJ("click",function(){return Ae.onLogin()}),t._uU(24,"Login"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(6),t.Q6J("ngClass",t.VKq(7,e1,Ae.screenSize===Ae.screenSizeEnum.XS)),t.xp6(2),t.Q6J("ngClass",t.WLB(9,t1,Ae.screenSize===Ae.screenSizeEnum.XS,Ae.screenSize!==Ae.screenSizeEnum.XS)),t.xp6(7),t.Q6J("type",Ae.flgShow?"text":"password")("ngModel",Ae.password),t.xp6(2),t.Oqu(Ae.flgShow?"visibility_off":"visibility"),t.xp6(1),t.Q6J("ngIf",!Ae.password),t.xp6(1),t.Q6J("ngIf",""!==Ae.loginErrorMessage))},directives:[v.xw,v.yH,v.Wh,F.a8,ye.mk,Cn.oO,F.dk,F.n5,F.dn,Ge._Y,Ge.JL,Ge.F,vt.KE,rt.Nt,Ge.Fj,Ne.h,Ge.Q7,Ge.JJ,Ge.On,Mr.Hw,vt.R9,ye.O5,he.lW,vt.TO],styles:[".login-container[_ngcontent-%COMP%]{height:90vh}.login-container[_ngcontent-%COMP%] .mat-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:120%;cursor:pointer}"]}),X})();var Po=m(9442);let No=(()=>{class X{constructor(B,Ae){this.activatedRoute=B,this.router=Ae,this.error={errorCode:"",errorMessage:""},this.faTimes=x.NBC,this.unsubs=[new s.x,new s.x]}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.activatedRoute.paramMap.pipe((0,b.R)(this.unsubs[0])).subscribe(B=>{this.error=window.history.state})}goToHelp(){this.router.navigate(["/help"])}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(I.gz),t.Y36(I.F0))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-error"]],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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"mat-card",1),t.TgZ(2,"mat-card-header",2),t.TgZ(3,"mat-card-title",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span",5),t._uU(6),t.qZA(),t.qZA(),t.qZA(),t.TgZ(7,"mat-card-content",6),t.TgZ(8,"div",7),t._uU(9),t.qZA(),t.TgZ(10,"span",8),t.TgZ(11,"button",9),t.NdJ("click",function(){return Ae.goToHelp()}),t._uU(12,"Go To Help"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(4),t.Q6J("icon",Ae.faTimes),t.xp6(2),t.hij("Error ",Ae.error.errorCode,""),t.xp6(3),t.Oqu(Ae.error.errorMessage))},directives:[v.xw,v.yH,v.Wh,F.a8,F.dk,F.n5,G.BN,F.dn,he.lW],encapsulation:2}),X})();var ka=m(1643),uc=m(9828),bo=m(8104),n1=m(6534),d0=m(9843);function Yr(X,He){1&X&&t._UZ(0,"span",16)}function fc(X,He){1&X&&t._UZ(0,"span",17)}function u0(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"form",18,4),t.TgZ(2,"div",19),t._UZ(3,"fa-icon",2),t.TgZ(4,"span"),t._uU(5,"Please ensure that "),t.TgZ(6,"strong"),t._uU(7,"experimental-offers"),t.qZA(),t._uU(8," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),t.TgZ(9,"strong"),t.TgZ(10,"a",20),t._uU(11,"here"),t.qZA(),t.qZA(),t._uU(12," to learn more about Core Lightning offers."),t.qZA(),t.qZA(),t.TgZ(13,"h4",21),t._uU(14,"Description"),t.qZA(),t.TgZ(15,"span"),t._uU(16,"Offers is a draft specification (also referred as BOLT12) for Lightning nodes and wallets, with experimental support in Core Lightning."),t.qZA(),t.TgZ(17,"h4",21),t._uU(18,"Links"),t.qZA(),t.TgZ(19,"span"),t.TgZ(20,"a",22),t._uU(21,"Core lightning Bolt12"),t.qZA(),t.qZA(),t._UZ(22,"mat-divider",23),t.TgZ(23,"div",24),t._UZ(24,"fa-icon",2),t.TgZ(25,"span"),t._uU(26,"Do not get an Offer tattoo until spec is fully ratified!"),t.qZA(),t.qZA(),t.TgZ(27,"mat-slide-toggle",25),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw(2).enableOffers=pt})("change",function(){return t.CHM(B),t.oxw(2).onUpdateFeature()}),t._uU(28),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(2);t.xp6(3),t.Q6J("icon",B.faInfoCircle),t.xp6(19),t.Q6J("inset",!0),t.xp6(2),t.Q6J("icon",B.faExclamationTriangle),t.xp6(3),t.Q6J("ngModel",B.enableOffers),t.xp6(1),t.hij("Enable Offers ",B.enableOffers?"(You can find Offers under Lightning -> Transactions -> Offers)":"","")}}function r1(X,He){if(1&X&&(t.TgZ(0,"mat-option",43),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&X){const B=He.$implicit;t.Q6J("value",B),t.xp6(1),t.hij(" ",t.lcZ(2,2,B.id)," ")}}function sl(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&X){const B=t.oxw(3);t.xp6(1),t.hij("",B.selPolicyType.placeholder," is required.")}}function ol(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&X){const B=t.oxw(3);t.xp6(1),t.AsE("",B.selPolicyType.placeholder," must be greater than or equal to ",B.selPolicyType.min,".")}}function a1(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&X){const B=t.oxw(3);t.xp6(1),t.AsE("",B.selPolicyType.placeholder," must be less than or equal to ",B.selPolicyType.max,".")}}function qa(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Lease base fee is required."),t.qZA())}function aa(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Lease base basis is required."),t.qZA())}function f0(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Max channel routing base fee is required."),t.qZA())}function sa(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Max channel routing fee rate is required."),t.qZA())}function Ro(X,He){if(1&X&&(t.TgZ(0,"h4",44),t._uU(1),t.qZA()),2&X){const B=t.oxw(3);t.xp6(1),t.Oqu(B.updateMsg.error&&""!==B.updateMsg.error?"Error: "+B.updateMsg.error||0:B.updateMsg||"Successfully Updated the Funding Policy!")}}function oo(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"form",18,4),t.TgZ(2,"div",26),t._UZ(3,"fa-icon",2),t.TgZ(4,"span"),t._uU(5,"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."),t.qZA(),t.qZA(),t.TgZ(6,"div",27),t.TgZ(7,"mat-form-field",28),t.TgZ(8,"mat-select",29),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw(2).selPolicyType=pt})("selectionChange",function(){return t.CHM(B),t.oxw(2).policyMod=null}),t.YNc(9,r1,3,4,"mat-option",30),t.qZA(),t.qZA(),t.TgZ(10,"mat-form-field",31),t.TgZ(11,"input",32,33),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw(2).policyMod=pt}),t.qZA(),t.TgZ(13,"mat-hint"),t._uU(14),t.qZA(),t.YNc(15,sl,2,1,"mat-error",34),t.YNc(16,ol,2,2,"mat-error",34),t.YNc(17,a1,2,2,"mat-error",34),t.qZA(),t.qZA(),t.TgZ(18,"div",27),t.TgZ(19,"mat-form-field",31),t.TgZ(20,"input",35),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw(2).leaseFeeBaseSat=pt}),t.qZA(),t.YNc(21,qa,2,0,"mat-error",34),t.qZA(),t.TgZ(22,"mat-form-field",31),t.TgZ(23,"input",36),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw(2).leaseFeeBasis=pt}),t.qZA(),t.YNc(24,aa,2,0,"mat-error",34),t.qZA(),t.qZA(),t.TgZ(25,"div",27),t.TgZ(26,"mat-form-field",31),t.TgZ(27,"input",37),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw(2).channelFeeMaxBaseSat=pt}),t.qZA(),t.YNc(28,f0,2,0,"mat-error",34),t.qZA(),t.TgZ(29,"mat-form-field",31),t.TgZ(30,"input",38),t.NdJ("ngModelChange",function(pt){return t.CHM(B),t.oxw(2).channelFeeMaxProportional=pt}),t.qZA(),t.YNc(31,sa,2,0,"mat-error",34),t.qZA(),t.qZA(),t.YNc(32,Ro,2,1,"h4",39),t.TgZ(33,"div",40),t.TgZ(34,"button",41),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onResetPolicy()}),t._uU(35,"Reset"),t.qZA(),t.TgZ(36,"button",42),t.NdJ("click",function(){return t.CHM(B),t.oxw(2).onUpdateFundingPolicy()}),t._uU(37,"Update"),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=t.oxw(2);t.xp6(3),t.Q6J("icon",B.faExclamationTriangle),t.xp6(5),t.Q6J("ngModel",B.selPolicyType),t.xp6(1),t.Q6J("ngForOf",B.policyTypes),t.xp6(2),t.Q6J("ngModel",B.policyMod)("placeholder",B.selPolicyType.placeholder)("step","fixed"===B.selPolicyType.id?1e3:10)("min",B.selPolicyType.min)("max",B.selPolicyType.max),t.xp6(3),t.lnq("",B.selPolicyType.placeholder," should be between ",B.selPolicyType.min," and ",B.selPolicyType.max,""),t.xp6(1),t.Q6J("ngIf",!B.policyMod),t.xp6(1),t.Q6J("ngIf",B.policyModB.selPolicyType.max),t.xp6(3),t.Q6J("ngModel",B.leaseFeeBaseSat),t.xp6(1),t.Q6J("ngIf",!B.leaseFeeBaseSat),t.xp6(2),t.Q6J("ngModel",B.leaseFeeBasis),t.xp6(1),t.Q6J("ngIf",!B.leaseFeeBasis),t.xp6(3),t.Q6J("ngModel",B.channelFeeMaxBaseSat),t.xp6(1),t.Q6J("ngIf",!B.channelFeeMaxBaseSat),t.xp6(2),t.Q6J("ngModel",B.channelFeeMaxProportional),t.xp6(1),t.Q6J("ngIf",!B.channelFeeMaxProportional),t.xp6(1),t.Q6J("ngIf",B.flgUpdateCalled)}}function uh(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-expansion-panel",9),t.NdJ("opened",function(){const fi=t.CHM(B).index;return t.oxw().onPanelExpanded(fi)}),t.TgZ(1,"mat-expansion-panel-header"),t.TgZ(2,"mat-panel-title",10),t.TgZ(3,"h4",11),t._uU(4),t.qZA(),t.TgZ(5,"h4",11),t.YNc(6,Yr,1,0,"span",12),t.YNc(7,fc,1,0,"span",13),t._uU(8),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"div",14),t.YNc(10,u0,29,5,"form",15),t.YNc(11,oo,38,23,"form",15),t.qZA(),t.qZA()}if(2&X){const B=He.$implicit,Ae=He.index;t.Q6J("expanded",!1),t.xp6(4),t.Oqu(B.name),t.xp6(2),t.Q6J("ngIf",B.enabled),t.xp6(1),t.Q6J("ngIf",!B.enabled),t.xp6(1),t.hij(" ",B.enabled?"Enabled":"Disabled"," "),t.xp6(2),t.Q6J("ngIf",0===Ae),t.xp6(1),t.Q6J("ngIf",1===Ae)}}const xs=I.Bz.forRoot([{path:"",pathMatch:"full",redirectTo:"login"},{path:"lnd",loadChildren:()=>Promise.all([m.e(893),m.e(636)]).then(m.bind(m,1636)).then(X=>X.LNDModule),canActivate:[ka.a1]},{path:"cln",loadChildren:()=>Promise.all([m.e(893),m.e(564)]).then(m.bind(m,9564)).then(X=>X.CLNModule),canActivate:[ka.a1]},{path:"ecl",loadChildren:()=>Promise.all([m.e(893),m.e(924)]).then(m.bind(m,7924)).then(X=>X.ECLModule),canActivate:[ka.a1]},{path:"settings",component:Ie,canActivate:[ka.a1],children:[{path:"",pathMatch:"full",redirectTo:"app"},{path:"app",component:$,canActivate:[ka.a1]},{path:"auth",component:Rt,canActivate:[ka.a1]},{path:"bconfig",component:_t,canActivate:[ka.a1]}]},{path:"config",component:Je,canActivate:[ka.a1],children:[{path:"",pathMatch:"full",redirectTo:"layout"},{path:"layout",component:Lr,canActivate:[ka.a1]},{path:"services",component:Gn,canActivate:[ka.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",component:xr,canActivate:[ka.a1]},{path:"boltz",component:Ir,canActivate:[ka.a1]}]},{path:"experimental",component:(()=>{class X{constructor(B,Ae,pt){this.logger=B,this.store=Ae,this.dataService=pt,this.faInfoCircle=x.sqG,this.faExclamationTriangle=x.eHv,this.faCode=x.dT$,this.features=[{name:"Offers",enabled:!1},{name:"Channel Funding Policy",enabled:!1}],this.enableOffers=!1,this.fundingPolicy=null,this.policyTypes=K.gB,this.selPolicyType=K.gB[0],this.flgUpdateCalled=!1,this.updateMsg="",this.unSubs=[new s.x,new s.x,new s.x,new s.x,new s.x]}ngOnInit(){this.dataService.listConfigs().pipe((0,b.R)(this.unSubs[0])).subscribe({next:B=>{this.logger.info("Received List Configs: "+JSON.stringify(B)),this.features[1].enabled=!!B["experimental-dual-fund"]},error:B=>{this.logger.error("List Configs Error: "+JSON.stringify(B)),this.features[1].enabled=!1}}),this.store.select(r.dT).pipe((0,b.R)(this.unSubs[1])).subscribe(B=>{this.selNode=B,this.enableOffers=this.selNode.settings.enableOffers,this.features[0].enabled=this.enableOffers,this.logger.info(this.selNode)}),this.store.select(uc.Rn).pipe((0,b.R)(this.unSubs[2])).subscribe(B=>{this.policyTypes[2].max=B.balance.totalBalance||1e3})}onPanelExpanded(B){1===B&&!this.fundingPolicy&&this.dataService.getOrUpdateFunderPolicy().pipe((0,b.R)(this.unSubs[3])).subscribe(Ae=>{this.logger.info("Received Funder Update Policy: "+JSON.stringify(Ae)),this.fundingPolicy=Ae,this.fundingPolicy.policy&&(this.selPolicyType=K.gB.find(pt=>pt.id===this.fundingPolicy.policy)),this.policyMod=this.fundingPolicy.policy_mod||0===this.fundingPolicy.policy_mod?this.fundingPolicy.policy_mod:null,this.leaseFeeBaseSat=this.fundingPolicy.lease_fee_base_msat?this.fundingPolicy.lease_fee_base_msat/1e3:0===this.fundingPolicy.lease_fee_base_msat?0:null,this.leaseFeeBasis=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,Me.jS)({payload:{uiMessage:K.m6.UPDATE_SETTING,service:K.JX.OFFERS,settings:{enableOffers:this.enableOffers}}})),this.store.dispatch((0,ui.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}})),this.store.dispatch((0,Lt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}})),this.store.dispatch((0,gt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}}))}onUpdateFundingPolicy(){this.flgUpdateCalled=!1,this.updateMsg="",this.dataService.getOrUpdateFunderPolicy(this.selPolicyType.id,this.policyMod,this.leaseFeeBaseSat,this.leaseFeeBasis,1e3*this.channelFeeMaxBaseSat,this.channelFeeMaxProportional/1e3).pipe((0,b.R)(this.unSubs[4])).subscribe({next:B=>{this.logger.info(B),this.fundingPolicy=B,this.onResetPolicy(),this.updateMsg="Compact Lease: "+B.compact_lease},error:B=>{this.logger.error(B),this.updateMsg=JSON.stringify(B.error.error.message)}})}onResetPolicy(){this.flgUpdateCalled=!1,this.updateMsg="",this.selPolicyType=this.fundingPolicy.policy?K.gB.find(B=>B.id===this.fundingPolicy.policy):K.gB[0],this.policyMod=this.fundingPolicy.policy_mod||0===this.fundingPolicy.policy_mod?this.fundingPolicy.policy_mod:null,this.leaseFeeBaseSat=this.fundingPolicy.lease_fee_base_msat?this.fundingPolicy.lease_fee_base_msat/1e3:0===this.fundingPolicy.lease_fee_base_msat?0:null,this.leaseFeeBasis=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(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(M.yh),t.Y36(bo.D))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-experimental-settings"]],decls:13,vars:3,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",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"],["form","ngForm"],["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,"expanded","opened"],["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,"ngModel","ngModelChange","change"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn"],["fxLayout","column","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch"],["fxFlex","49","fxLayoutAlign","start end"],["autofocus","","tabindex","1","placeholder","Policy","name","policy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","49"],["matInput","","type","number","tabindex","2","required","","name","plcMod",3,"ngModel","placeholder","step","min","max","ngModelChange"],["plcMod","ngModel"],[4,"ngIf"],["matInput","","placeholder","Lease Base Fee (Sats)","type","number","step","100","min","0","tabindex","3","required","","name","leaseFeeBaseSat",3,"ngModel","ngModelChange"],["matInput","","placeholder","Lease Base Basis (bps)","type","number","step","1","min","0","tabindex","4","required","","name","leaseFeeBasis",3,"ngModel","ngModelChange"],["matInput","","placeholder","Max Channel Routing Base Fee (Sats)","type","number","step","100","min","0","tabindex","5","required","","name","channelFeeMaxBaseSat",3,"ngModel","ngModelChange"],["matInput","","placeholder","Max Channel Routing Fee Rate (ppm)","type","number","step","1000","min","0","tabindex","6","required","","name","channelFeeMaxProportional",3,"ngModel","ngModelChange"],["fxLayoutAlign","start","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",1,"font-bold-500","mt-2"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span"),t._uU(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."),t.qZA(),t.qZA(),t.TgZ(5,"form",3,4),t.TgZ(7,"div",5),t._UZ(8,"fa-icon",6),t.TgZ(9,"span",7),t._uU(10,"Features"),t.qZA(),t.qZA(),t.TgZ(11,"mat-accordion"),t.YNc(12,uh,12,7,"mat-expansion-panel",8),t.qZA(),t.qZA(),t.qZA()),2&B&&(t.xp6(2),t.Q6J("icon",Ae.faInfoCircle),t.xp6(6),t.Q6J("icon",Ae.faCode),t.xp6(4),t.Q6J("ngForOf",Ae.features))},directives:[v.xw,v.yH,z.$V,G.BN,Ge._Y,Ge.JL,Ge.F,v.Wh,Rn.pp,ye.sg,Rn.ib,Rn.yz,Rn.yK,ye.O5,Fe.d,Yi.Rr,Ne.h,Ge.JJ,Ge.On,vt.KE,Re.gD,rt.Nt,Ge.wV,Ge.qQ,Ge.Fd,Ge.Fj,n1.q,d0.F,Ge.Q7,vt.bx,he.lW,Le.ey,vt.TO],pipes:[ye.rS],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})(),canActivate:[ka.a1]},{path:"lnconfig",component:Kt,canActivate:[ka.a1]}]},{path:"services",component:Ga,canActivate:[ka.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",pathMatch:"full",redirectTo:"loop/loopout"},{path:"loop/:selTab",component:Yt},{path:"boltz",pathMatch:"full",redirectTo:"boltz/swapout"},{path:"boltz/:selTab",component:an}]},{path:"help",component:Ps},{path:"login",component:ko},{path:"error",component:No},{path:"**",component:Po.w}]);var s1=m(8750),Il=m(8878),Ws=m(4594),kl=m(2181);function p0(X,He){if(1&X&&(t.TgZ(0,"p",2),t._UZ(1,"fa-icon",3),t.TgZ(2,"span"),t._uU(3),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Q6J("icon",B.faCode),t.xp6(2),t.hij("API Version: ",null==B.information?null:B.information.api_version,"")}}function m0(X,He){if(1&X&&(t.TgZ(0,"a",11),t._UZ(1,"fa-icon",3),t.TgZ(2,"span",12),t._uU(3,"Settings"),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Q6J("icon",B.faUserCog)}}function o1(X,He){if(1&X&&(t.TgZ(0,"a",13),t._UZ(1,"fa-icon",3),t.TgZ(2,"span",14),t._uU(3,"Help"),t.qZA(),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Q6J("icon",B.faLifeRing)}}function fh(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"a",15),t.NdJ("click",function(){return t.CHM(B),t.oxw().onClick()}),t._UZ(1,"fa-icon",3),t.TgZ(2,"span"),t._uU(3,"Logout"),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.xp6(1),t.Q6J("icon",B.faEject)}}let g0=(()=>{class X{constructor(B,Ae,pt,fi,In){this.logger=B,this.sessionService=Ae,this.store=pt,this.rtlEffects=fi,this.actions=In,this.faUserCog=x.gNZ,this.faCodeBranch=x.mh3,this.faCode=x.dT$,this.faCog=x.b7W,this.faLifeRing=x.uli,this.faEject=x.KOR,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.showLogout=!1,this.unSubs=[new s.x,new s.x,new s.x,new s.x],this.version=Wi.q4}ngOnInit(){this.store.select(r.R4).pipe((0,b.R)(this.unSubs[0])).subscribe(B=>{if(this.information=B,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("object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const Ae=this.information.chains[0];this.informationChain.chain=Ae.chain,this.informationChain.network=Ae.network}}else this.informationChain.chain="",this.informationChain.network="";this.logger.info(B)}),this.sessionService.watchSession().pipe((0,b.R)(this.unSubs[1])).subscribe(B=>{this.showLogout=!!B.token,this.flgLoading=!!B.token}),this.actions.pipe((0,b.R)(this.unSubs[2]),(0,de.h)(B=>B.type===K.pg.LOGOUT)).subscribe(()=>{this.showLogout=!1})}onClick(){this.store.dispatch((0,Me.c1)({payload:{data:{type:K.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,b.R)(this.unSubs[3])).subscribe(B=>{B&&(this.showLogout=!1,this.store.dispatch((0,Me.kS)()))})}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(Pe.m),t.Y36(M.yh),t.Y36(nt.V),t.Y36(l.eX))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-top-menu"]],decls:14,vars:8,consts:[[1,"top-menu",3,"overlapTrigger"],["topMenu","matMenu"],["mat-menu-item",""],[1,"fa-icon-small","mr-1",3,"icon"],["mat-menu-item","",4,"ngIf"],["mat-menu-item","","routerLink","/settings",4,"ngIf"],["mat-menu-item","","routerLink","/help",4,"ngIf"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",1,"top-toolbar-icon",3,"matMenuTriggerFor"],["src","assets/images/RTL-Horse-BY.svg","alt","RTL Logo"],[1,"logo-icon"],["mat-menu-item","","routerLink","/settings"],["routerLink","/settings"],["mat-menu-item","","routerLink","/help"],["routerLink","/help"],["mat-menu-item","",3,"click"]],template:function(B,Ae){if(1&B&&(t.TgZ(0,"mat-menu",0,1),t.TgZ(2,"p",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span"),t._uU(5),t.qZA(),t.qZA(),t.YNc(6,p0,4,2,"p",4),t.YNc(7,m0,4,1,"a",5),t.YNc(8,o1,4,1,"a",6),t.YNc(9,fh,4,1,"a",7),t.qZA(),t.TgZ(10,"button",8),t._UZ(11,"img",9),t.TgZ(12,"mat-icon",10),t._uU(13,"arrow_drop_down"),t.qZA(),t.qZA()),2&B){const pt=t.MAs(1);t.Q6J("overlapTrigger",!1),t.xp6(3),t.Q6J("icon",Ae.faCodeBranch),t.xp6(2),t.hij("Version: ",Ae.version,""),t.xp6(1),t.Q6J("ngIf",null==Ae.information?null:Ae.information.api_version),t.xp6(1),t.Q6J("ngIf",Ae.showLogout),t.xp6(1),t.Q6J("ngIf",Ae.showLogout),t.xp6(1),t.Q6J("ngIf",Ae.showLogout),t.xp6(1),t.Q6J("matMenuTriggerFor",pt)}},directives:[kl.VK,kl.OP,G.BN,ye.O5,he.lW,kl.p6,Mr.Hw,I.yS,I.rH],styles:[".mat-menu-content,.mat-menu-content p.mat-menu-item{cursor:default}.mat-menu-content p.mat-menu-item fa-icon,.mat-menu-content p.mat-menu-item span,.mat-menu-content p.mat-menu-item div{cursor:default}.mat-menu-content p.mat-menu-item:hover{cursor:default!important}.top-toolbar-icon .mat-button-wrapper img{width:3.2rem}.top-toolbar-icon .mat-button-wrapper .material-icons.mat-icon.logo-icon{font-size:2rem;text-align:start}\n"],encapsulation:2}),X})();var Ka=m(2638),Pl=m(8258),as=m(149);const js={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:x.HLz,link:"/lnd/home",userPersona:K.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:x.nNP,link:"/lnd/onchain",userPersona:K.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:x.BDt,link:"/lnd/connections",userPersona:K.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:x.FVb,link:"/lnd/connections",userPersona:K.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:x.Ssp,link:"/lnd/transactions",userPersona:K.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:x.SuH,link:"/lnd/routing",userPersona:K.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:x.koM,link:"/lnd/reports",userPersona:K.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:x.wn1,link:"/lnd/graph",userPersona:K.ol.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:x.hkK,link:"/lnd/messages",userPersona:K.ol.ALL},{id:37,parentId:3,name:"Backup",iconType:"FA",icon:x.q7m,link:"/lnd/channelbackup",userPersona:K.ol.ALL},{id:38,parentId:3,name:"Network",iconType:"FA",icon:x.o4t,link:"/lnd/network",userPersona:K.ol.OPERATOR},{id:39,parentId:3,name:"Node/Network",iconType:"FA",icon:x.xf3,link:"/lnd/network",userPersona:K.ol.MERCHANT}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:x.Krp,link:"/services/loop",userPersona:K.ol.ALL,children:[{id:41,parentId:4,name:"Loop",iconType:"FA",icon:x.vqe,link:"/services/loop",userPersona:K.ol.ALL},{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/services/boltz",userPersona:K.ol.ALL}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:x.CgH,link:"/config",userPersona:K.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:x.Psp,link:"/help",userPersona:K.ol.ALL}],CLNChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:x.HLz,link:"/cln/home",userPersona:K.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:x.nNP,link:"/cln/onchain",userPersona:K.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:x.BDt,link:"/cln/connections",userPersona:K.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:x.FVb,link:"/cln/connections",userPersona:K.ol.ALL},{id:32,parentId:3,name:"Liquidity Ads",iconType:"FA",icon:x.Acd,link:"/cln/liquidityads",userPersona:K.ol.ALL},{id:33,parentId:3,name:"Transactions",iconType:"FA",icon:x.Ssp,link:"/cln/transactions",userPersona:K.ol.ALL},{id:34,parentId:3,name:"Routing",iconType:"FA",icon:x.SuH,link:"/cln/routing",userPersona:K.ol.ALL},{id:35,parentId:3,name:"Reports",iconType:"FA",icon:x.koM,link:"/cln/reports",userPersona:K.ol.ALL},{id:36,parentId:3,name:"Graph Lookup",iconType:"FA",icon:x.wn1,link:"/cln/graph",userPersona:K.ol.ALL},{id:37,parentId:3,name:"Sign/Verify",iconType:"FA",icon:x.hkK,link:"/cln/messages",userPersona:K.ol.ALL},{id:38,parentId:3,name:"Fee Rates",iconType:"FA",icon:x.USL,link:"/cln/rates",userPersona:K.ol.OPERATOR},{id:39,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:x.xf3,link:"/cln/rates",userPersona:K.ol.MERCHANT}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:x.CgH,link:"/config",userPersona:K.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:x.Psp,link:"/help",userPersona:K.ol.ALL}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:x.HLz,link:"/ecl/home",userPersona:K.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:x.nNP,link:"/ecl/onchain",userPersona:K.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:x.BDt,link:"/ecl/connections",userPersona:K.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:x.FVb,link:"/ecl/connections",userPersona:K.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:x.Ssp,link:"/ecl/transactions",userPersona:K.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:x.SuH,link:"/ecl/routing",userPersona:K.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:x.koM,link:"/ecl/reports",userPersona:K.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:x.wn1,link:"/ecl/graph",userPersona:K.ol.ALL}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:x.CgH,link:"/config",userPersona:K.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:x.Psp,link:"/help",userPersona:K.ol.ALL}]};var l1=m(7238);function pc(X,He){if(1&X&&(t.TgZ(0,"mat-option",11),t._uU(1),t.qZA()),2&X){const B=He.$implicit;t.Q6J("value",B.index),t.xp6(1),t.AsE(" ",B.lnNode," (",B.lnImplementation,") ")}}function mc(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-select",9),t.NdJ("selectionChange",function(pt){return t.CHM(B),t.oxw().onNodeSelectionChange(pt.value)}),t.YNc(1,pc,2,3,"mat-option",10),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("value",B.selConfigNodeIndex),t.xp6(1),t.Q6J("ngForOf",B.appConfig.nodes)}}function gc(X,He){if(1&X&&(t.TgZ(0,"span",21),t.GkF(1,22),t.qZA()),2&X){const B=t.oxw().$implicit;t.oxw(2);const Ae=t.MAs(11);t.xp6(1),t.Q6J("ngTemplateOutlet","boltzIconBlock"===B.icon?Ae:null)}}function c1(X,He){if(1&X&&t._UZ(0,"fa-icon",23),2&X){const B=t.oxw().$implicit;t.Q6J("icon",B.icon)}}function Rl(X,He){if(1&X&&(t.TgZ(0,"mat-icon",24),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B.icon)}}function Fo(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-tree-node",15),t.TgZ(1,"div",16),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw(2).onChildNavClicked(fi)}),t.TgZ(2,"div",17),t.YNc(3,gc,2,1,"span",18),t.YNc(4,c1,1,1,"fa-icon",19),t.YNc(5,Rl,2,1,"mat-icon",20),t.TgZ(6,"span"),t._uU(7),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const B=He.$implicit;t.s9C("routerLink",B.link),t.xp6(3),t.Q6J("ngIf","SVG"===B.iconType),t.xp6(1),t.Q6J("ngIf","FA"===B.iconType),t.xp6(1),t.Q6J("ngIf",!B.iconType),t.xp6(2),t.Oqu(B.name)}}function lo(X,He){if(1&X&&(t.TgZ(0,"span",33),t.GkF(1,22),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Q6J("ngTemplateOutlet",B.icon)}}function za(X,He){if(1&X&&t._UZ(0,"fa-icon",23),2&X){const B=t.oxw().$implicit;t.Q6J("icon",B.icon)}}function Cs(X,He){if(1&X&&(t.TgZ(0,"mat-icon",24),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Oqu(B.icon)}}function Ns(X,He){if(1&X&&(t.TgZ(0,"mat-nested-tree-node",25),t.TgZ(1,"div",26),t.TgZ(2,"div",27),t.YNc(3,lo,2,1,"span",28),t.YNc(4,za,1,1,"fa-icon",19),t.YNc(5,Cs,2,1,"mat-icon",20),t.TgZ(6,"span"),t._uU(7),t.qZA(),t.qZA(),t.TgZ(8,"button",29),t.TgZ(9,"mat-icon",30),t._uU(10),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"div",31),t.GkF(12,32),t.qZA(),t.qZA()),2&X){const B=He.$implicit,Ae=t.oxw(2);t.xp6(3),t.Q6J("ngIf","SVG"===B.iconType),t.xp6(1),t.Q6J("ngIf","FA"===B.iconType),t.xp6(1),t.Q6J("ngIf",!B.iconType),t.xp6(2),t.Oqu(B.name),t.xp6(1),t.uIk("aria-label","toggle "+B.name),t.xp6(2),t.Oqu(Ae.treeControlNested.isExpanded(B)?"arrow_drop_up":"arrow_drop_down"),t.xp6(1),t.ekj("tree-children-invisible",!Ae.treeControlNested.isExpanded(B))}}function _c(X,He){if(1&X&&(t.TgZ(0,"mat-tree",5,12),t.YNc(2,Fo,8,5,"mat-tree-node",13),t.YNc(3,Ns,13,8,"mat-nested-tree-node",14),t.qZA()),2&X){const B=t.oxw();t.Q6J("dataSource",B.navMenus)("treeControl",B.treeControlNested),t.xp6(3),t.Q6J("matTreeNodeDefWhen",B.hasChild)}}function h1(X,He){if(1&X&&(t.TgZ(0,"span",21),t.GkF(1,22),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Q6J("ngTemplateOutlet",B.icon)}}function vc(X,He){if(1&X&&t._UZ(0,"fa-icon",36),2&X){const B=t.oxw().$implicit;t.s9C("matTooltip",B.name),t.Q6J("icon",B.icon)}}function Fl(X,He){if(1&X&&(t.TgZ(0,"mat-icon",37),t._uU(1),t.qZA()),2&X){const B=t.oxw().$implicit;t.s9C("matTooltip",B.name),t.xp6(1),t.Oqu(B.icon)}}function yc(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-tree-node",16),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw().onShowData(fi)}),t.YNc(1,h1,2,1,"span",18),t.YNc(2,vc,1,2,"fa-icon",34),t.YNc(3,Fl,2,2,"mat-icon",35),t.TgZ(4,"span"),t._uU(5),t.qZA(),t.qZA()}if(2&X){const B=He.$implicit;t.xp6(1),t.Q6J("ngIf","SVG"===B.iconType),t.xp6(1),t.Q6J("ngIf","FA"===B.iconType),t.xp6(1),t.Q6J("ngIf",!B.iconType),t.xp6(2),t.Oqu(B.name)}}function ta(X,He){if(1&X&&(t.TgZ(0,"span",33),t.GkF(1,22),t.qZA()),2&X){const B=t.oxw().$implicit;t.xp6(1),t.Q6J("ngTemplateOutlet",B.icon)}}function ll(X,He){if(1&X&&t._UZ(0,"fa-icon",36),2&X){const B=t.oxw().$implicit;t.s9C("matTooltip",B.name),t.Q6J("icon",B.icon)}}function v0(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"mat-tree-node",16),t.NdJ("click",function(){const fi=t.CHM(B).$implicit;return t.oxw(2).onClick(fi)}),t.YNc(1,ta,2,1,"span",28),t.YNc(2,ll,1,2,"fa-icon",34),t.TgZ(3,"span"),t._uU(4),t.qZA(),t.qZA()}if(2&X){const B=He.$implicit;t.xp6(1),t.Q6J("ngIf","SVG"===B.iconType),t.xp6(1),t.Q6J("ngIf","FA"===B.iconType),t.xp6(2),t.Oqu(B.name)}}function Pa(X,He){if(1&X&&(t.TgZ(0,"mat-tree",5),t.YNc(1,v0,5,3,"mat-tree-node",6),t.qZA()),2&X){const B=t.oxw();t.Q6J("dataSource",B.navMenusLogout)("treeControl",B.treeControlLogout)}}function bc(X,He){1&X&&(t.O4$(),t.TgZ(0,"svg",38),t.TgZ(1,"g",39),t.TgZ(2,"g",40),t._UZ(3,"circle",41),t._UZ(4,"path",42),t._UZ(5,"path",43),t.qZA(),t.qZA(),t.qZA())}let cl=(()=>{class X{constructor(B,Ae,pt,fi,In,tr){this.logger=B,this.commonService=Ae,this.sessionService=pt,this.store=fi,this.actions=In,this.rtlEffects=tr,this.ChildNavClicked=new t.vpe,this.faEject=x.KOR,this.faEye=x.Mdf,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.logoutNode=[{id:200,parentId:0,name:"Logout",iconType:"FA",icon:x.KOR}],this.showDataNodes=[{id:1e3,parentId:0,name:"Public Key",iconType:"FA",icon:x.Mdf}],this.showLogout=!1,this.numPendingChannels=0,this.smallScreen=!1,this.childRootRoute="",this.userPersonaEnum=K.ol,this.unSubs=[new s.x,new s.x,new s.x,new s.x,new s.x,new s.x],this.treeControlNested=new Pl.VY(Fn=>Fn.children),this.treeControlLogout=new Pl.VY(Fn=>Fn.children),this.treeControlShowData=new Pl.VY(Fn=>Fn.children),this.navMenus=new as.WX,this.navMenusLogout=new as.WX,this.navMenusShowData=new as.WX,this.hasChild=(Fn,Br)=>!!Br.children&&Br.children.length>0,this.version=Wi.q4,200===js.LNDChildren[js.LNDChildren.length-1].id&&js.LNDChildren.pop(),this.navMenus.data=js.LNDChildren,this.navMenusLogout.data=this.logoutNode,this.navMenusShowData.data=this.showDataNodes}ngOnInit(){const B=this.sessionService.getItem("token");this.showLogout=!!B,this.flgLoading=!!B,this.store.select(r.Yj).pipe((0,b.R)(this.unSubs[0])).subscribe(Ae=>{this.appConfig=Ae}),this.store.select(r.gW).pipe((0,b.R)(this.unSubs[1])).subscribe(Ae=>{if(this.information=Ae.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("object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const pt=this.information.chains[0];this.informationChain.chain=pt.chain,this.informationChain.network=pt.network}}else this.informationChain.chain="",this.informationChain.network="";this.flgLoading=!this.information.identity_pubkey,window.innerWidth<=414&&(this.smallScreen=!0),this.selNode=Ae.selNode,this.settings=this.selNode.settings,this.selConfigNodeIndex=+Ae.selNode.index,this.selNode&&this.selNode.lnImplementation&&this.filterSideMenuNodes(),this.logger.info(Ae)}),this.sessionService.watchSession().pipe((0,b.R)(this.unSubs[2])).subscribe(Ae=>{this.showLogout=!!Ae.token,this.flgLoading=!!Ae.token}),this.actions.pipe((0,b.R)(this.unSubs[3]),(0,de.h)(Ae=>Ae.type===K.pg.LOGOUT)).subscribe(Ae=>{this.showLogout=!1})}onClick(B){"Logout"===B.name&&(this.store.dispatch((0,Me.c1)({payload:{data:{type:K.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,b.R)(this.unSubs[4])).subscribe(Ae=>{Ae&&(this.showLogout=!1,this.store.dispatch((0,Me.kS)()))})),this.ChildNavClicked.emit(B)}onChildNavClicked(B){this.ChildNavClicked.emit(B)}filterSideMenuNodes(){switch(this.selNode.lnImplementation.toUpperCase()){case"CLN":this.loadCLNMenu();break;case"ECL":this.loadECLMenu();break;default:this.loadLNDMenu()}}loadLNDMenu(){let B=[];B=JSON.parse(JSON.stringify(js.LNDChildren)),this.navMenus.data=B.filter(Ae=>Ae.children&&Ae.children.length?(Ae.children=Ae.children.filter(pt=>(pt.userPersona===K.ol.ALL||pt.userPersona===this.settings.userPersona)&&"/services/loop"!==pt.link&&"/services/boltz"!==pt.link||"/services/loop"===pt.link&&this.settings.swapServerUrl&&""!==this.settings.swapServerUrl.trim()||"/services/boltz"===pt.link&&this.settings.boltzServerUrl&&""!==this.settings.boltzServerUrl.trim()),Ae.children.length>0):Ae.userPersona===K.ol.ALL||Ae.userPersona===this.settings.userPersona)}loadCLNMenu(){let B=[];B=JSON.parse(JSON.stringify(js.CLNChildren)),this.navMenus.data=B.filter(Ae=>(Ae.children&&Ae.children.length&&(Ae.children=Ae.children.filter(pt=>(pt.userPersona===K.ol.ALL||pt.userPersona===this.settings.userPersona)&&"/cln/messages"!==pt.link||"/cln/messages"===pt.link&&this.information.api_version&&this.commonService.isVersionCompatible(this.information.api_version,"0.2.2"))),Ae.userPersona===K.ol.ALL||Ae.userPersona===this.settings.userPersona))}loadECLMenu(){this.navMenus.data=JSON.parse(JSON.stringify(js.ECLChildren))}onShowData(B){this.store.dispatch((0,Me.tj)()),this.ChildNavClicked.emit("showData")}onNodeSelectionChange(B){const Ae=this.selConfigNodeIndex;this.selConfigNodeIndex=B;const pt=this.appConfig.nodes.find(fi=>+fi.index===B);this.store.dispatch((0,Me.fk)({payload:{uiMessage:K.m6.UPDATE_SELECTED_NODE,prevLnNodeIndex:+Ae,currentLnNode:pt,isInitialSetup:!1}})),this.ChildNavClicked.emit("selectNode")}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(null),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(Ci.v),t.Y36(Pe.m),t.Y36(M.yh),t.Y36(l.eX),t.Y36(nt.V))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-side-navigation"]],viewQuery:function(B,Ae){if(1&B&&t.Gf(as.gi,5),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.tree=pt.first)}},outputs:{ChildNavClicked:"ChildNavClicked"},decls:12,vars:5,consts:[["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"],["boltzIconBlock",""],[1,"m-2","multi-node-select",3,"value","selectionChange"],["tabindex","1",3,"value",4,"ngFor","ngForOf"],["tabindex","1",3,"value"],["tree",""],["matTreeNodeToggle","","routerLinkActive","active-link",3,"routerLink",4,"matTreeNodeDef"],["fxLayout","column","matTreeNodeToggle","",4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle","","routerLinkActive","active-link",3,"routerLink"],[3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["class","fa-icon-small mr-2",4,"ngIf"],["class","fa-icon-small mr-2",3,"icon",4,"ngIf"],["class","mat-icon-36",4,"ngIf"],[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","89","fxLayoutAlign","start center"],["class","mr-2",4,"ngIf"],["fxFlex","11","mat-icon-button","","fxLayoutAlign","end center"],[1,"mat-icon-rtl-mirror"],[1,"mat-nested-tree-node-child"],["matTreeNodeOutlet",""],[1,"mr-2"],["class","fa-icon-small mr-2","matTooltipPosition","right",3,"icon","matTooltip",4,"ngIf"],["class","mat-icon-36","matTooltipPosition","right",3,"matTooltip",4,"ngIf"],["matTooltipPosition","right",1,"fa-icon-small","mr-2",3,"icon","matTooltip"],["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(B,Ae){1&B&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,mc,2,2,"mat-select",2),t._UZ(3,"mat-divider",3),t.YNc(4,_c,4,3,"mat-tree",4),t._UZ(5,"mat-divider",3),t.TgZ(6,"mat-tree",5),t.YNc(7,yc,6,4,"mat-tree-node",6),t.qZA(),t.qZA(),t.TgZ(8,"div",7),t.YNc(9,Pa,2,2,"mat-tree",4),t.qZA(),t.qZA(),t.YNc(10,bc,6,0,"ng-template",null,8,t.W1O)),2&B&&(t.xp6(2),t.Q6J("ngIf",Ae.appConfig.nodes.length>1),t.xp6(2),t.Q6J("ngIf",null==Ae.settings?null:Ae.settings.lnServerUrl),t.xp6(2),t.Q6J("dataSource",Ae.navMenusShowData)("treeControl",Ae.treeControlShowData),t.xp6(3),t.Q6J("ngIf",Ae.showLogout))},directives:[v.xw,v.yH,v.Wh,z.$V,ye.O5,Fe.d,as.gi,as.fQ,Re.gD,ye.sg,Le.ey,as.uo,as.eu,I.Od,I.rH,ye.tP,G.BN,Mr.Hw,as.GZ,he.lW,as.Ar,l1.gM],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]}),X})();var d1=m(773);const Bo=["sideNavigation"],u1=["sideNavContent"];function ph(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){return t.CHM(B),t.oxw().sideNavToggle()}),t.TgZ(1,"mat-icon"),t._uU(2,"menu"),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("matTooltip",B.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",B.smallScreen)}}function f1(X,He){1&X&&(t.O4$(),t._UZ(0,"path",18))}function Ho(X,He){1&X&&(t.O4$(),t._UZ(0,"path",19))}function zo(X,He){if(1&X){const B=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(B);const pt=t.oxw();return pt.flgSidenavPinned=!pt.flgSidenavPinned}),t.O4$(),t.TgZ(1,"svg",15),t.YNc(2,f1,1,0,"path",16),t.YNc(3,Ho,1,0,"path",17),t.qZA(),t.qZA()}if(2&X){const B=t.oxw();t.Q6J("matTooltip",B.flgSidenavPinned?"Unpin Navigation Menu":"Pin Navigation Menu"),t.xp6(2),t.Q6J("ngIf",!B.flgSidenavPinned),t.xp6(1),t.Q6J("ngIf",B.flgSidenavPinned)}}function Bl(X,He){if(1&X&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Oqu(B.information.alias?"RTL - "+B.information.alias:"RTL")}}function qs(X,He){if(1&X&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&X){const B=t.oxw();t.xp6(1),t.Oqu(B.information.alias?"Ride The Lightning - "+B.information.alias:"Ride The Lightning")}}function mh(X,He){1&X&&(t.TgZ(0,"div",20),t._UZ(1,"mat-spinner",21),t.TgZ(2,"h4"),t._uU(3,"Loading RTL..."),t.qZA(),t.qZA())}const co=function(X,He){return[X,He]};let Uo=(()=>{class X{constructor(B,Ae,pt,fi,In,tr,Fn,Br,ya){this.logger=B,this.commonService=Ae,this.store=pt,this.actions=fi,this.userIdle=In,this.router=tr,this.sessionService=Fn,this.breakpointObserver=Br,this.renderer=ya,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 s.x,new s.x,new s.x,new s.x,new s.x,new s.x,new s.x,new s.x]}ngOnInit(){this.router.events.subscribe(B=>{B instanceof I.m2&&document.getElementsByTagName("mat-sidenav-content")[0].scrollTo(0,0)}),this.breakpointObserver.observe([o.u3.XSmall,o.u3.TabletPortrait,o.u3.Small,o.u3.Medium,o.u3.Large,o.u3.XLarge]).pipe((0,b.R)(this.unSubs[0])).subscribe(B=>{B.breakpoints[o.u3.XSmall]?(this.commonService.setScreenSize(K.cu.XS),this.smallScreen=!0):B.breakpoints[o.u3.TabletPortrait]?(this.commonService.setScreenSize(K.cu.SM),this.smallScreen=!0):B.breakpoints[o.u3.Small]||B.breakpoints[o.u3.Medium]?(this.commonService.setScreenSize(K.cu.MD),this.smallScreen=!1):B.breakpoints[o.u3.Large]?(this.commonService.setScreenSize(K.cu.LG),this.smallScreen=!1):(this.commonService.setScreenSize(K.cu.XL),this.smallScreen=!1)}),this.store.dispatch((0,Me.ey)()),this.accessKey=this.readAccessKey(),this.store.select(r.dT).pipe((0,b.R)(this.unSubs[1])).subscribe(B=>{this.settings=B.settings,this.sessionService.getItem("token")?(this.flgLoggedIn=!0,this.userIdle.startWatching()):(this.flgLoggedIn=!1,this.flgLoading[0]=!1)}),this.store.select(r.Yj).pipe((0,b.R)(this.unSubs[2])).subscribe(B=>{this.appConfig=B}),this.store.select(r.R4).pipe((0,b.R)(this.unSubs[3])).subscribe(B=>{this.information=B,this.flgLoading[0]=!this.information.identity_pubkey,this.logger.info(this.information)}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1),this.actions.pipe((0,b.R)(this.unSubs[4]),(0,de.h)(B=>B.type===K.pg.SET_RTL_CONFIG||B.type===K.pg.LOGIN||B.type===K.pg.LOGOUT)).subscribe(B=>{B.type===K.pg.SET_RTL_CONFIG&&(this.sessionService.getItem("token")||(+B.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,Me.x4)({payload:{password:le(this.accessKey).toString(),defaultPassword:!1}})):this.router.navigate(["./login"]))),B.type===K.pg.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)),B.type===K.pg.LOGOUT&&(this.flgLoggedIn=!1,this.userIdle.stopWatching(),this.userIdle.stopTimer())}),this.userIdle.onTimerStart().pipe((0,b.R)(this.unSubs[5])).subscribe(B=>{this.logger.info("Counting Down: "+(11-B))}),this.userIdle.onTimeout().pipe((0,b.R)(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,Me.ts)()),this.store.dispatch((0,Me.qR)({payload:{data:{type:K.n_.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}}})),this.store.dispatch((0,Me.kS)()))}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1)}readAccessKey(){const B=window.location.href;return B.includes("access-key=")?B.substring(B.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(B){this.smallScreen&&this.sideNavigation.close()}copiedText(B){this.flgCopied=!0,setTimeout(()=>{this.flgCopied=!1},5e3),this.logger.info("Copied Text: "+B)}ngOnDestroy(){this.unSubs.forEach(B=>{B.next(),B.complete()})}}return X.\u0275fac=function(B){return new(B||X)(t.Y36(we.mQ),t.Y36(Ci.v),t.Y36(M.yh),t.Y36(l.eX),t.Y36(_),t.Y36(I.F0),t.Y36(Pe.m),t.Y36(o.Yg),t.Y36(t.Qsj))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-app"]],viewQuery:function(B,Ae){if(1&B&&(t.Gf(Bo,5),t.Gf(u1,5)),2&B){let pt;t.iGM(pt=t.CRH())&&(Ae.sideNavigation=pt.first),t.iGM(pt=t.CRH())&&(Ae.sideNavContent=pt.first)}},decls:23,vars:15,consts:[["fxLayout","column","id","rtl-container",1,"rtl-container","medium",3,"ngClass"],["fxLayout","row","fxLayoutAlign","space-between center",1,"padding-gap-x","bg-primary","rtl-top-toolbar"],["class","top-toolbar-icon mr-1","mat-icon-button","","matTooltipPosition","right",3,"matTooltip","matTooltipDisabled","click",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click",4,"ngIf"],[4,"ngIf"],[1,"sidenav","mat-elevation-z6",3,"perfectScrollbar","opened","mode"],["sideNavigation",""],["fxFlex","100",3,"ChildNavClicked"],[3,"perfectScrollbar"],["sideNavContent",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["outlet","outlet"],["class","rtl-spinner",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",1,"top-toolbar-icon","mr-1",3,"matTooltip","matTooltipDisabled","click"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click"],["viewBox","0 0 32 32",1,"top-toolbar-icon","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,"rtl-spinner"],["color","accent"]],template:function(B,Ae){1&B&&(t.TgZ(0,"div",0),t.ALo(1,"lowercase"),t.ALo(2,"lowercase"),t.TgZ(3,"mat-toolbar",1),t.TgZ(4,"div"),t.YNc(5,ph,3,2,"button",2),t.YNc(6,zo,4,3,"button",3),t.qZA(),t.TgZ(7,"div"),t.YNc(8,Bl,2,1,"span",4),t.YNc(9,qs,2,1,"span",4),t.qZA(),t.TgZ(10,"div"),t._UZ(11,"rtl-top-menu"),t.qZA(),t.qZA(),t.TgZ(12,"mat-sidenav-container"),t.TgZ(13,"mat-sidenav",5,6),t.TgZ(15,"rtl-side-navigation",7),t.NdJ("ChildNavClicked",function(fi){return Ae.onNavigationClicked(fi)}),t.qZA(),t.qZA(),t.TgZ(16,"mat-sidenav-content",8,9),t.TgZ(18,"div",10),t._UZ(19,"router-outlet",null,11),t.qZA(),t.qZA(),t._uU(21,"> "),t.qZA(),t.YNc(22,mh,4,0,"div",12),t.qZA()),2&B&&(t.Q6J("ngClass",t.WLB(12,co,t.lcZ(1,8,Ae.settings.themeColor),t.lcZ(2,10,Ae.settings.themeMode))),t.xp6(5),t.Q6J("ngIf",Ae.flgLoggedIn),t.xp6(1),t.Q6J("ngIf",!Ae.smallScreen&&Ae.flgLoggedIn),t.xp6(2),t.Q6J("ngIf",Ae.smallScreen),t.xp6(1),t.Q6J("ngIf",!Ae.smallScreen),t.xp6(4),t.Q6J("opened",Ae.flgSideNavOpened&&Ae.flgLoggedIn)("mode",Ae.flgSidenavPinned&&!Ae.smallScreen?"side":"over"),t.xp6(9),t.Q6J("ngIf",!Ae.settings.themeColor))},directives:[v.xw,ye.mk,Cn.oO,Ws.Ye,v.Wh,ye.O5,g0,Ka.TM,Ka.JX,z.$V,cl,v.yH,Ka.Rh,I.lC,he.lW,l1.gM,Mr.Hw,d1.$g],pipes:[ye.i8],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}"],data:{animation:[Il.g]}}),X})(),xo=(()=>{class X{constructor(B){this.sessionService=B}intercept(B,Ae){if(this.sessionService.getItem("token")){const pt=B.clone({headers:B.headers.set("Authorization","Bearer "+this.sessionService.getItem("token")),withCredentials:!0});return Ae.handle(pt)}return Ae.handle(B)}}return X.\u0275fac=function(B){return new(B||X)(t.LFG(Pe.m))},X.\u0275prov=t.Yz7({token:X,factory:X.\u0275fac}),X})();var p1=m(7998),y0=m(711),Zo=m(4947),Vo=m(3289);const Go={userPersona:"OPERATOR",themeMode:"DAY",themeColor:"PURPLE",channelBackupPath:"",selCurrencyUnit:"USD",fiatConversion:!1,currencyUnits:["Sats","BTC","USD"],bitcoindConfigPath:"",enableOffers:!1},b0={configPath:"",swapMacaroonPath:"",boltzMacaroonPath:""},gh={apiURL:"",apisCallStatus:{Login:{status:K.Bn.UN_INITIATED},IsAuthorized:{status:K.Bn.UN_INITIATED}},selNode:{index:1,lnNode:"Node 1",settings:Go,authentication:b0,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,sso:{rtlSSO:0,logoutRedirectLink:""},enable2FA:!1,allowPasswordUpdate:!0,nodes:[{settings:Go,authentication:b0}]},nodeData:{}},x0=(0,M.Lq)(gh,(0,M.on)(Me.qi,(X,{payload:He})=>{const B=JSON.parse(JSON.stringify(X.apisCallStatus));return B[He.action]={status:He.status,statusCode:He.statusCode,message:He.message,URL:He.URL,filePath:He.filePath},Object.assign(Object.assign({},X),{apisCallStatus:B})}),(0,M.on)(Me.vI,(X,{payload:He})=>Object.assign(Object.assign({},gh),{apisCallStatus:X.apisCallStatus,appConfig:X.appConfig,selNode:He})),(0,M.on)(Me.fk,(X,{payload:He})=>Object.assign(Object.assign({},X),{selNode:He.currentLnNode})),(0,M.on)(Me.Tm,(X,{payload:He})=>{const B=JSON.parse(JSON.stringify(X.selNode));switch(He.service){case K.JX.BOLTZ:B.settings.boltzServerUrl=He.settings.boltzServerUrl;break;case K.JX.LOOP:B.settings.swapServerUrl=He.settings.swapServerUrl;break;case K.JX.OFFERS:B.settings.enableOffers=He.settings.enableOffers}return Object.assign(Object.assign({},X),{selNode:B})}),(0,M.on)(Me._V,(X,{payload:He})=>Object.assign(Object.assign({},X),{nodeData:He})),(0,M.on)(Me.XT,(X,{payload:He})=>Object.assign(Object.assign({},X),{appConfig:He}))),C0={apisCallStatus:{FetchInfo:{status:K.Bn.UN_INITIATED},FetchFees:{status:K.Bn.UN_INITIATED},FetchPeers:{status:K.Bn.UN_INITIATED},FetchClosedChannels:{status:K.Bn.UN_INITIATED},FetchPendingChannels:{status:K.Bn.UN_INITIATED},FetchAllChannels:{status:K.Bn.UN_INITIATED},FetchBalanceBlockchain:{status:K.Bn.UN_INITIATED},FetchInvoices:{status:K.Bn.UN_INITIATED},FetchPayments:{status:K.Bn.UN_INITIATED},FetchForwardingHistory:{status:K.Bn.UN_INITIATED},FetchUTXOs:{status:K.Bn.UN_INITIATED},FetchTransactions:{status:K.Bn.UN_INITIATED},FetchLightningTransactions:{status:K.Bn.UN_INITIATED},FetchNetwork:{status:K.Bn.UN_INITIATED}},nodeSettings:{userPersona:K.ol.OPERATOR,fiatConversion:!1,channelBackupPath:"",currencyUnits:[],selCurrencyUnit:"",lnImplementation:"",swapServerUrl:""},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 _h=!1,M0=!1;const vh=(0,M.Lq)(C0,(0,M.on)(ui.PC,(X,{payload:He})=>{const B=JSON.parse(JSON.stringify(X.apisCallStatus));return B[He.action]={status:He.status,statusCode:He.statusCode,message:He.message,URL:He.URL,filePath:He.filePath},Object.assign(Object.assign({},X),{apisCallStatus:B})}),(0,M.on)(ui.JT,(X,{payload:He})=>Object.assign(Object.assign({},X),{nodeSettings:He})),(0,M.on)(ui.Ll,(X,{payload:He})=>Object.assign(Object.assign({},C0),{nodeSettings:He})),(0,M.on)(ui.CX,(X,{payload:He})=>Object.assign(Object.assign({},X),{information:He})),(0,M.on)(ui.Z8,(X,{payload:He})=>Object.assign(Object.assign({},X),{peers:He})),(0,M.on)(ui.EK,(X,{payload:He})=>{const B=[...X.peers],Ae=X.peers.findIndex(pt=>pt.pub_key===He.pubkey);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{peers:B})}),(0,M.on)(ui.YP,(X,{payload:He})=>{const B=X.listInvoices;return B.invoices.unshift(He),Object.assign(Object.assign({},X),{listInvoices:B})}),(0,M.on)(ui.aL,(X,{payload:He})=>{const B=X.listInvoices;return B.invoices=B.invoices.map(Ae=>Ae.payment_request===He.payment_request?He:Ae),Object.assign(Object.assign({},X),{listInvoices:B})}),(0,M.on)(ui.qY,(X,{payload:He})=>{const B=X.listPayments;return B.payments=B.payments.map(Ae=>Ae.payment_hash===He.payment_hash?He:Ae),Object.assign(Object.assign({},X),{listPayments:B})}),(0,M.on)(ui.RX,(X,{payload:He})=>Object.assign(Object.assign({},X),{fees:He})),(0,M.on)(ui._L,(X,{payload:He})=>Object.assign(Object.assign({},X),{closedChannels:He})),(0,M.on)(ui.TW,(X,{payload:He})=>Object.assign(Object.assign({},X),{pendingChannels:He.pendingChannels,pendingChannelsSummary:He.pendingChannelsSummary})),(0,M.on)(ui.as,(X,{payload:He})=>{let B=0,Ae=0,pt=0,fi=0,In=0,tr=0;return He&&He.forEach(Fn=>{Fn.local_balance||(Fn.local_balance=0),!0===Fn.active?(In+=+Fn.local_balance,pt+=1,Fn.local_balance?B=+B+ +Fn.local_balance:Fn.local_balance=0,Fn.remote_balance?Ae=+Ae+ +Fn.remote_balance:Fn.remote_balance=0):(tr+=+Fn.local_balance,fi+=1)}),Object.assign(Object.assign({},X),{channels:He,channelsSummary:{active:{num_channels:pt,capacity:In},inactive:{num_channels:fi,capacity:tr}},lightningBalance:{local:B,remote:Ae}})}),(0,M.on)(ui.OG,(X,{payload:He})=>{const B=[...X.channels],Ae=X.channels.findIndex(pt=>pt.channel_point===He.channelPoint);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{channels:B})}),(0,M.on)(ui.Jl,(X,{payload:He})=>Object.assign(Object.assign({},X),{blockchainBalance:He})),(0,M.on)(ui.ks,(X,{payload:He})=>Object.assign(Object.assign({},X),{networkInfo:He})),(0,M.on)(ui.Nr,(X,{payload:He})=>(He.total_invoices||(He.total_invoices=X.listInvoices.total_invoices),Object.assign(Object.assign({},X),{listInvoices:He}))),(0,M.on)(ui.Lf,(X,{payload:He})=>{if(_h=!0,He.length&&M0){const B=[...X.utxos];return B.forEach(Ae=>{const pt=He.find(fi=>fi.tx_hash===Ae.outpoint.txid_str);Ae.label=pt&&pt.label?pt.label:""}),Object.assign(Object.assign({},X),{utxos:B,transactions:He})}return Object.assign(Object.assign({},X),{transactions:He})}),(0,M.on)(ui.UH,(X,{payload:He})=>{if(M0=!0,He.length&&_h){const B=[...X.transactions];He.forEach(Ae=>{const pt=B.find(fi=>fi.tx_hash===Ae.outpoint.txid_str);Ae.label=pt&&pt.label?pt.label:""})}return Object.assign(Object.assign({},X),{utxos:He})}),(0,M.on)(ui.HI,(X,{payload:He})=>{const B={listInvoicesAll:X.allLightningTransactions.listInvoicesAll,listPaymentsAll:He};return Object.assign(Object.assign({},X),{listPayments:He,allLightningTransactions:B})}),(0,M.on)(ui.Fr,(X,{payload:He})=>{const B={listInvoicesAll:He.listInvoicesAll,listPaymentsAll:X.listPayments};return Object.assign(Object.assign({},X),{allLightningTransactions:B})}),(0,M.on)(ui.QJ,(X,{payload:He})=>{const B=[...X.channels,...X.closedChannels];let Ae=He.forwarding_events?JSON.parse(JSON.stringify(He)):{};return Ae.forwarding_events&&(Ae=m1(Ae,B)),Object.assign(Object.assign({},X),{forwardingHistory:Ae})})),m1=(X,He)=>(X.forwarding_events.forEach(B=>{if(He&&He.length>0)for(let Ae=0;Ae{const B=JSON.parse(JSON.stringify(X.apisCallStatus));return B[He.action]={status:He.status,statusCode:He.statusCode,message:He.message,URL:He.URL,filePath:He.filePath},Object.assign(Object.assign({},X),{apisCallStatus:B})}),(0,M.on)(Lt.oo,(X,{payload:He})=>Object.assign(Object.assign({},X),{nodeSettings:He})),(0,M.on)(Lt.xH,(X,{payload:He})=>Object.assign(Object.assign({},Yo),{nodeSettings:He})),(0,M.on)(Lt.CX,(X,{payload:He})=>Object.assign(Object.assign({},X),{information:He})),(0,M.on)(Lt.RX,(X,{payload:He})=>Object.assign(Object.assign({},X),{fees:He})),(0,M.on)(Lt.I8,(X,{payload:He})=>He.perkb?Object.assign(Object.assign({},X),{feeRatesPerKB:He}):He.perkw?Object.assign(Object.assign({},X),{feeRatesPerKW:He}):Object.assign({},X)),(0,M.on)(Lt.Lu,(X,{payload:He})=>Object.assign(Object.assign({},X),{balance:He})),(0,M.on)(Lt.xS,(X,{payload:He})=>Object.assign(Object.assign({},X),{localRemoteBalance:He})),(0,M.on)(Lt.Z8,(X,{payload:He})=>Object.assign(Object.assign({},X),{peers:He})),(0,M.on)(Lt.X3,(X,{payload:He})=>Object.assign(Object.assign({},X),{peers:[...X.peers,He]})),(0,M.on)(Lt.EK,(X,{payload:He})=>{const B=[...X.peers],Ae=X.peers.findIndex(pt=>pt.id===He.id);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{peers:B})}),(0,M.on)(Lt.as,(X,{payload:He})=>Object.assign(Object.assign({},X),{activeChannels:He.activeChannels,pendingChannels:He.pendingChannels,inactiveChannels:He.inactiveChannels})),(0,M.on)(Lt.OG,(X,{payload:He})=>{const B=[...X.peers];return B.forEach(Ae=>{Ae.id===He.id&&(Ae.connected=!1,delete Ae.netaddr)}),Object.assign(Object.assign({},X),{peers:B})}),(0,M.on)(Lt.HI,(X,{payload:He})=>Object.assign(Object.assign({},X),{payments:He})),(0,M.on)(Lt.QJ,(X,{payload:He})=>{const B=[...X.activeChannels,...X.pendingChannels,...X.inactiveChannels],Ae=ho(He.response.listForwards,B);switch(He.response.listForwards=Ae,He.status){case K.OO.SETTLED:const pt=X.fees;return pt.totalTxCount=0|He.response.totalForwards,Object.assign(Object.assign({},X),{fees:pt,forwardingHistory:He.response});case K.OO.FAILED:return Object.assign(Object.assign({},X),{failedForwardingHistory:He.response});case K.OO.LOCAL_FAILED:return Object.assign(Object.assign({},X),{localFailedForwardingHistory:He.response});default:return Object.assign({},X)}}),(0,M.on)(Lt.YP,(X,{payload:He})=>{const B=X.invoices;return B.invoices.unshift(He),Object.assign(Object.assign({},X),{invoices:B})}),(0,M.on)(Lt.Nr,(X,{payload:He})=>Object.assign(Object.assign({},X),{invoices:He})),(0,M.on)(Lt.aL,(X,{payload:He})=>{const B=X.invoices;return B.invoices=B.invoices.map(Ae=>Ae.label===He.label?He:Ae),Object.assign(Object.assign({},X),{invoices:B})}),(0,M.on)(Lt.UH,(X,{payload:He})=>Object.assign(Object.assign({},X),{utxos:He})),(0,M.on)(Lt.Zu,(X,{payload:He})=>Object.assign(Object.assign({},X),{offers:He})),(0,M.on)(Lt.ZH,(X,{payload:He})=>{const B=X.offers;return B.unshift(He),Object.assign(Object.assign({},X),{offers:B})}),(0,M.on)(Lt.JK,(X,{payload:He})=>{const B=[...X.offers],Ae=X.offers.findIndex(pt=>pt.offer_id===He.offer.offer_id);return Ae>-1&&B.splice(Ae,1,He.offer),Object.assign(Object.assign({},X),{offers:B})}),(0,M.on)(Lt.d7,(X,{payload:He})=>Object.assign(Object.assign({},X),{offersBookmarks:He})),(0,M.on)(Lt.e9,(X,{payload:He})=>{const B=[...X.offersBookmarks],Ae=B.findIndex(pt=>pt.bolt12===He.bolt12);if(Ae<0)B.unshift(He);else{const pt=Object.assign({},B[Ae]);pt.title=He.title,pt.amountmSat=He.amountmSat,pt.lastUpdatedAt=He.lastUpdatedAt,pt.description=He.description,pt.vendor=He.vendor,B.splice(Ae,1,pt)}return Object.assign(Object.assign({},X),{offersBookmarks:B})}),(0,M.on)(Lt.en,(X,{payload:He})=>{const B=[...X.offersBookmarks],Ae=X.offersBookmarks.findIndex(pt=>pt.bolt12===He.bolt12);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{offersBookmarks:B})})),ho=(X,He)=>(X&&X.length>0?X.forEach((B,Ae)=>{if(He&&He.length>0)for(let pt=0;pt{const B=JSON.parse(JSON.stringify(X.apisCallStatus));return B[He.action]={status:He.status,statusCode:He.statusCode,message:He.message,URL:He.URL,filePath:He.filePath},Object.assign(Object.assign({},X),{apisCallStatus:B})}),(0,M.on)(gt.Zr,(X,{payload:He})=>Object.assign(Object.assign({},X),{nodeSettings:He})),(0,M.on)(gt.Fd,(X,{payload:He})=>Object.assign(Object.assign({},uo),{nodeSettings:He})),(0,M.on)(gt.CX,(X,{payload:He})=>Object.assign(Object.assign({},X),{information:He})),(0,M.on)(gt.RX,(X,{payload:He})=>Object.assign(Object.assign({},X),{fees:He})),(0,M.on)(gt.eN,(X,{payload:He})=>Object.assign(Object.assign({},X),{activeChannels:He})),(0,M.on)(gt.TW,(X,{payload:He})=>Object.assign(Object.assign({},X),{pendingChannels:He})),(0,M.on)(gt.i,(X,{payload:He})=>Object.assign(Object.assign({},X),{inactiveChannels:He})),(0,M.on)(gt.HG,(X,{payload:He})=>Object.assign(Object.assign({},X),{channelsStatus:He})),(0,M.on)(gt.Bw,(X,{payload:He})=>Object.assign(Object.assign({},X),{onchainBalance:He})),(0,M.on)(gt.On,(X,{payload:He})=>Object.assign(Object.assign({},X),{lightningBalance:He})),(0,M.on)(gt.Z8,(X,{payload:He})=>Object.assign(Object.assign({},X),{peers:He})),(0,M.on)(gt.EK,(X,{payload:He})=>{const B=[...X.peers],Ae=X.peers.findIndex(pt=>pt.nodeId===He.nodeId);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{peers:B})}),(0,M.on)(gt.OG,(X,{payload:He})=>{const B=[...X.activeChannels],Ae=X.activeChannels.findIndex(pt=>pt.channelId===He.channelId);return Ae>-1&&B.splice(Ae,1),Object.assign(Object.assign({},X),{activeChannels:B})}),(0,M.on)(gt.HI,(X,{payload:He})=>{if(He&&He.sent){const B=[...X.activeChannels,...X.pendingChannels,...X.inactiveChannels];He.sent.map(Ae=>{const pt=X.peers.find(fi=>fi.nodeId===Ae.recipientNodeId);return Ae.recipientNodeAlias=pt?pt.alias:Ae.recipientNodeId,Ae.parts&&Ae.parts.map(fi=>{const In=B.find(tr=>tr.channelId===fi.toChannelId);return fi.toChannelAlias=In?In.alias:fi.toChannelId,Ae.parts}),He.sent})}if(He&&He.relayed){const B=[...X.activeChannels,...X.pendingChannels,...X.inactiveChannels];He.relayed.forEach(Ae=>{Ae=_1(Ae,B)})}return Object.assign(Object.assign({},X),{payments:He})}),(0,M.on)(gt.Lf,(X,{payload:He})=>Object.assign(Object.assign({},X),{transactions:He})),(0,M.on)(gt.YP,(X,{payload:He})=>{const B=X.invoices;return B.unshift(He),Object.assign(Object.assign({},X),{invoices:B})}),(0,M.on)(gt.Nr,(X,{payload:He})=>Object.assign(Object.assign({},X),{invoices:He})),(0,M.on)(gt.aL,(X,{payload:He})=>{let B=X.invoices;return B=B.map(Ae=>{if(Ae.paymentHash===He.paymentHash){if(He.hasOwnProperty("type")){const pt=JSON.parse(JSON.stringify(Ae));return pt.amountSettled=He.parts&&He.parts.length&&He.parts.length>0&&He.parts[0].amount?He.parts[0].amount/1e3:0,pt.receivedAt=He.parts&&He.parts.length&&He.parts.length>0&&He.parts[0].timestamp?Math.round(He.parts[0].timestamp/1e3):0,pt.status="received",pt}return He}return Ae}),Object.assign(Object.assign({},X),{invoices:B})}),(0,M.on)(gt.DJ,(X,{payload:He})=>{let B=X.pendingChannels;return B=B.map(Ae=>(Ae.channelId===He.channelId&&Ae.nodeId===He.remoteNodeId&&(He.currentState=He.currentState.replace(/_/g," "),Ae.state=He.currentState),Ae)),Object.assign(Object.assign({},X),{pendingChannels:B})}),(0,M.on)(gt.ti,(X,{payload:He})=>{const B=X.payments,Ae=_1(He,[...X.activeChannels,...X.pendingChannels,...X.inactiveChannels]);Ae.amountIn=Math.round(He.amountIn/1e3),Ae.amountOut=Math.round(He.amountOut/1e3),B.relayed.unshift(Ae);const pt=He.amountIn-He.amountOut,fi={localBalance:X.lightningBalance.localBalance+pt,remoteBalance:X.lightningBalance.remoteBalance-pt},In=X.channelsStatus;In.active.capacity=X.channelsStatus.active.capacity+pt;const tr={daily_fee:X.fees.daily_fee+pt,daily_txs:X.fees.daily_txs+1,weekly_fee:X.fees.weekly_fee+pt,weekly_txs:X.fees.weekly_txs+1,monthly_fee:X.fees.monthly_fee+pt,monthly_txs:X.fees.monthly_txs+1},Fn=X.activeChannels;let Br=!1,ya=!1;for(const sr of Fn){if(sr.channelId===He.fromChannelId){Br=!0;const Na=sr.toLocal+sr.toRemote;sr.toLocal=sr.toLocal+Ae.amountIn,sr.toRemote=sr.toRemote-Ae.amountIn,sr.balancedness=0===Na?1:+(1-Math.abs((sr.toLocal-sr.toRemote)/Na)).toFixed(3)}if(sr.channelId===He.toChannelId){ya=!0;const Na=sr.toLocal+sr.toRemote;sr.toLocal=sr.toLocal-Ae.amountOut,sr.toRemote=sr.toRemote+Ae.amountOut,sr.balancedness=0===Na?1:+(1-Math.abs((sr.toLocal-sr.toRemote)/Na)).toFixed(3)}if(ya&&Br)break}return Object.assign(Object.assign({},X),{payments:B,lightningBalance:fi,channelStatus:In,fees:tr,activeChannels:Fn})})),_1=(X,He)=>{if("payment-relayed"===X.type)if(He&&He.length>0)for(let B=0;B0)for(let B=0;B{He[B].channelId.toString()===Ae.channelId&&(Ae.channelAlias=He[B].alias?He[B].alias:Ae.channelId,Ae.shortChannelId=He[B].shortChannelId?He[B].shortChannelId:"")}),X.outgoing.forEach(Ae=>{He[B].channelId.toString()===Ae.channelId&&(Ae.channelAlias=He[B].alias?He[B].alias:Ae.channelId,Ae.shortChannelId=He[B].shortChannelId?He[B].shortChannelId:"")}),B===He.length-1&&(X.incoming[0].channelAlias||X.incoming.forEach(Ae=>{Ae.channelAlias=Ae.channelId.substring(0,17)+"...",Ae.shortChannelId=""}),X.outgoing[0].channelAlias||X.outgoing.forEach(Ae=>{Ae.channelAlias=Ae.channelId.substring(0,17)+"...",Ae.shortChannelId=""}));else X.incoming.forEach(B=>{B.channelAlias=B.channelId.substring(0,17)+"...",B.shortChannelId=""}),X.outgoing.forEach(B=>{B.channelAlias=B.channelId.substring(0,17)+"...",B.shortChannelId=""});X.amountIn=X.incoming.reduce((B,Ae)=>B+Ae.amount,0),X.fromChannelId=X.incoming[0].channelId,X.fromChannelAlias=X.incoming[0].channelAlias,X.fromShortChannelId=X.incoming[0].shortChannelId,X.amountOut=X.outgoing.reduce((B,Ae)=>B+Ae.amount,0),X.toChannelId=X.outgoing[0].channelId,X.toChannelAlias=X.outgoing[0].channelAlias,X.toShortChannelId=X.outgoing[0].shortChannelId}return X};let Hl=(()=>{class X{}return X.\u0275fac=function(B){return new(B||X)},X.\u0275mod=t.oAB({type:X,bootstrap:[Uo]}),X.\u0275inj=t.cJS({providers:[{provide:C.TP,useClass:xo,multi:!0},ka.a1,Pe.m,bo.D,p1.d,Zr.W,Ci.v,Un],imports:[[y.PW,s1.m,xs,o.xu,e.t6,L.forRoot({idle:3590,timeout:10,ping:12e3}),M.Aw.forRoot({root:x0,lnd:vh,cln:g1,ecl:yh},{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),l.sQ.forRoot([nt.V,y0.l,Zo.J,Vo.o]),Wi.NZ.production?[]:N.FT.instrument()]]}),X})();Wi.NZ.production&&(0,t.G48)(),e.q6().bootstrapModule(Hl).catch(X=>console.log(X))},7854:(Ve,Q)=>{"use strict";function m(K){return Object.keys(K).map(Me=>K[Me])}var K;Object.defineProperty(Q,"__esModule",{value:!0}),(K=Q.HashAlgorithms||(Q.HashAlgorithms={})).SHA1="sha1",K.SHA256="sha256",K.SHA512="sha512";const e=m(Q.HashAlgorithms);!function(K){K.ASCII="ascii",K.BASE64="base64",K.HEX="hex",K.LATIN1="latin1",K.UTF8="utf8"}(Q.KeyEncodings||(Q.KeyEncodings={}));const t=m(Q.KeyEncodings);!function(K){K.HOTP="hotp",K.TOTP="totp"}(Q.Strategy||(Q.Strategy={}));const y=m(Q.Strategy),C=()=>{throw new Error("Please provide an options.createDigest implementation.")};function o(K){return/^(\d+)$/.test(K)}function M(K,Me,we){return K.length>=Me?K:`${Array(Me+1).join(we)}${K}`.slice(-1*Me)}function l(K){const Me=`otpauth://${K.type}/{labelPrefix}:{accountName}?secret={secret}{query}`,we=[];if(y.indexOf(K.type)<0)throw new Error(`Expecting options.type to be one of ${y.join(", ")}. Received ${K.type}.`);if("hotp"===K.type){if(null==K.counter||"number"!=typeof K.counter)throw new Error('Expecting options.counter to be a number when options.type is "hotp".');we.push(`&counter=${K.counter}`)}return"totp"===K.type&&K.step&&we.push(`&period=${K.step}`),K.digits&&we.push(`&digits=${K.digits}`),K.algorithm&&we.push(`&algorithm=${K.algorithm.toUpperCase()}`),K.issuer&&we.push(`&issuer=${encodeURIComponent(K.issuer)}`),Me.replace("{labelPrefix}",encodeURIComponent(K.issuer||K.accountName)).replace("{accountName}",encodeURIComponent(K.accountName)).replace("{secret}",K.secret).replace("{query}",we.join(""))}class N{constructor(Me={}){this._defaultOptions=Object.freeze(to({},Me)),this._options=Object.freeze({})}create(Me={}){return new N(Me)}clone(Me={}){const we=this.create(to(to({},this._defaultOptions),Me));return we.options=this._options,we}get options(){return Object.freeze(to(to({},this._defaultOptions),this._options))}set options(Me){this._options=Object.freeze(to(to({},this._options),Me))}allOptions(){return this.options}resetOptions(){this._options=Object.freeze({})}}function s(K){if("function"!=typeof K.createDigest)throw new Error("Expecting options.createDigest to be a function.");if("function"!=typeof K.createHmacKey)throw new Error("Expecting options.createHmacKey to be a function.");if("number"!=typeof K.digits)throw new Error("Expecting options.digits to be a number.");if(!K.algorithm||e.indexOf(K.algorithm)<0)throw new Error(`Expecting options.algorithm to be one of ${e.join(", ")}. Received ${K.algorithm}.`);if(!K.encoding||t.indexOf(K.encoding)<0)throw new Error(`Expecting options.encoding to be one of ${t.join(", ")}. Received ${K.encoding}.`)}const D=(K,Me,we)=>Buffer.from(Me,we).toString("hex");function A(){return{algorithm:Q.HashAlgorithms.SHA1,createHmacKey:D,createDigest:C,digits:6,encoding:Q.KeyEncodings.ASCII}}function O(K){const Me=to(to({},A()),K);return s(Me),Object.freeze(Me)}function E(K){return M(K.toString(16),16,"0")}function P(K,Me){const we=Buffer.from(K,"hex"),z=15&we[we.length-1],vt=((127&we[z])<<24|(255&we[z+1])<<16|(255&we[z+2])<<8|255&we[z+3])%Math.pow(10,Me);return M(String(vt),Me,"0")}function Z(K,Me,we){const z=we.digest||function w(K,Me,we){const z=E(Me),Ge=we.createHmacKey(we.algorithm,K,we.encoding);return we.createDigest(we.algorithm,Ge,z)}(K,Me,we);return P(z,we.digits)}function j(K,Me,we,z){return!!o(K)&&K===Z(Me,we,z)}function W(K,Me,we,z,Ge){return l({algorithm:Ge.algorithm,digits:Ge.digits,type:Q.Strategy.HOTP,accountName:K,counter:z,issuer:Me,secret:we})}class ie extends N{create(Me={}){return new ie(Me)}allOptions(){return O(this.options)}generate(Me,we){return Z(Me,we,this.allOptions())}check(Me,we,z){return j(Me,we,z,this.allOptions())}verify(Me){if("object"!=typeof Me)throw new Error("Expecting argument 0 of verify to be an object");return this.check(Me.token,Me.secret,Me.counter)}keyuri(Me,we,z,Ge){return W(Me,we,z,Ge,this.allOptions())}}function ee(K){if("number"==typeof K)return[Math.abs(K),Math.abs(K)];if(Array.isArray(K)){const[Me,we]=K;if("number"==typeof Me&&"number"==typeof we)return[Math.abs(Me),Math.abs(we)]}throw new Error("Expecting options.window to be an number or [number, number].")}function _e(K){if(s(K),ee(K.window),"number"!=typeof K.epoch)throw new Error("Expecting options.epoch to be a number.");if("number"!=typeof K.step)throw new Error("Expecting options.step to be a number.")}const ce=(K,Me,we)=>{const z=K.length,Ge=Buffer.from(K,Me).toString("hex");if(z{switch(K){case Q.HashAlgorithms.SHA1:return ce(Me,we,20);case Q.HashAlgorithms.SHA256:return ce(Me,we,32);case Q.HashAlgorithms.SHA512:return ce(Me,we,64);default:throw new Error(`Expecting algorithm to be one of ${e.join(", ")}. Received ${K}.`)}};function de(){return{algorithm:Q.HashAlgorithms.SHA1,createDigest:C,createHmacKey:re,digits:6,encoding:Q.KeyEncodings.ASCII,epoch:Date.now(),step:30,window:0}}function oe(K){const Me=to(to({},de()),K);return _e(Me),Object.freeze(Me)}function ae(K,Me){return Math.floor(K/Me/1e3)}function b(K,Me){return Z(K,ae(Me.epoch,Me.step),Me)}function i(K,Me,we,z){const Ge=[];if(0===z)return Ge;for(let vt=1;vt<=z;vt++)Ge.push(K+Me*vt*we);return Ge}function a(K,Me,we){const z=ee(we),Ge=1e3*Me;return{current:K,past:i(K,-1,Ge,z[0]),future:i(K,1,Ge,z[1])}}function p(K,Me,we){return!!o(K)&&K===b(Me,we)}function u(K,Me,we,z){let Ge=null;return K.some((vt,Re)=>!!p(Me,we,_8(to({},z),{epoch:vt}))&&(Ge=Re+1,!0)),Ge}function _(K,Me,we){if(p(K,Me,we))return 0;const z=a(we.epoch,we.step,we.window),Ge=u(z.past,K,Me,we);return null!==Ge?-1*Ge:u(z.future,K,Me,we)}function L(K,Me){return Math.floor(K/1e3)%Me}function I(K,Me){return Me-L(K,Me)}function x(K,Me,we,z){return l({algorithm:z.algorithm,digits:z.digits,step:z.step,type:Q.Strategy.TOTP,accountName:K,issuer:Me,secret:we})}class r extends ie{create(Me={}){return new r(Me)}allOptions(){return oe(this.options)}generate(Me){return b(Me,this.allOptions())}checkDelta(Me,we){return _(Me,we,this.allOptions())}check(Me,we){return"number"==typeof this.checkDelta(Me,we)}verify(Me){if("object"!=typeof Me)throw new Error("Expecting argument 0 of verify to be an object");return this.check(Me.token,Me.secret)}timeRemaining(){const Me=this.allOptions();return I(Me.epoch,Me.step)}timeUsed(){const Me=this.allOptions();return L(Me.epoch,Me.step)}keyuri(Me,we,z){return x(Me,we,z,this.allOptions())}}function v(K){if(_e(K),"function"!=typeof K.keyDecoder)throw new Error("Expecting options.keyDecoder to be a function.");if(K.keyEncoder&&"function"!=typeof K.keyEncoder)throw new Error("Expecting options.keyEncoder to be a function.")}function G(){return{algorithm:Q.HashAlgorithms.SHA1,createDigest:C,createHmacKey:re,digits:6,encoding:Q.KeyEncodings.HEX,epoch:Date.now(),step:30,window:0}}function F(K){const Me=to(to({},G()),K);return v(Me),Object.freeze(Me)}function U(K,Me){return Me.keyEncoder(K,Me.encoding)}function ye(K,Me){return Me.keyDecoder(K,Me.encoding)}function Ce(K,Me){return U(Me.createRandomBytes(K,Me.encoding),Me)}function Be(K,Me){return b(ye(K,Me),Me)}function ze(K,Me,we){return _(K,ye(Me,we),we)}class Ie extends r{create(Me={}){return new Ie(Me)}allOptions(){return F(this.options)}generate(Me){return Be(Me,this.allOptions())}checkDelta(Me,we){return ze(Me,we,this.allOptions())}encode(Me){return U(Me,this.allOptions())}decode(Me){return ye(Me,this.allOptions())}generateSecret(Me=10){return Ce(Me,this.allOptions())}}Q.Authenticator=Ie,Q.HASH_ALGORITHMS=e,Q.HOTP=ie,Q.KEY_ENCODINGS=t,Q.OTP=N,Q.STRATEGY=y,Q.TOTP=r,Q.authenticatorCheckWithWindow=ze,Q.authenticatorDecoder=ye,Q.authenticatorDefaultOptions=G,Q.authenticatorEncoder=U,Q.authenticatorGenerateSecret=Ce,Q.authenticatorOptionValidator=v,Q.authenticatorOptions=F,Q.authenticatorToken=Be,Q.createDigestPlaceholder=C,Q.hotpCheck=j,Q.hotpCounter=E,Q.hotpCreateHmacKey=D,Q.hotpDefaultOptions=A,Q.hotpDigestToToken=P,Q.hotpKeyuri=W,Q.hotpOptions=O,Q.hotpOptionsValidator=s,Q.hotpToken=Z,Q.isTokenValid=o,Q.keyuri=l,Q.objectValues=m,Q.padStart=M,Q.totpCheck=p,Q.totpCheckByEpoch=u,Q.totpCheckWithWindow=_,Q.totpCounter=ae,Q.totpCreateHmacKey=re,Q.totpDefaultOptions=de,Q.totpEpochAvailable=a,Q.totpKeyuri=x,Q.totpOptions=oe,Q.totpOptionsValidator=_e,Q.totpPadSecret=ce,Q.totpTimeRemaining=I,Q.totpTimeUsed=L,Q.totpToken=b},6098:(Ve,Q,m)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var t=function e(o){return o&&"object"==typeof o&&"default"in o?o.default:o}(m(1348));Q.createDigest=(o,M,l)=>t.createHmac(o,Buffer.from(M,"hex")).update(Buffer.from(l,"hex")).digest().toString("hex"),Q.createRandomBytes=(o,M)=>t.randomBytes(o).toString(M)},1415:(Ve,Q,m)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var t=function e(o){return o&&"object"==typeof o&&"default"in o?o.default:o}(m(2167));Q.keyDecoder=(o,M)=>t.decode(o).toString(M),Q.keyEncoder=(o,M)=>t.encode(Buffer.from(o,M).toString("ascii")).toString().replace(/=/g,"")},842:(Ve,Q,m)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var e=m(6098),t=m(1415),y=m(7854);const C=new y.HOTP({createDigest:e.createDigest}),o=new y.TOTP({createDigest:e.createDigest}),M=new y.Authenticator({createDigest:e.createDigest,createRandomBytes:e.createRandomBytes,keyDecoder:t.keyDecoder,keyEncoder:t.keyEncoder});Q.authenticator=M,Q.hotp=C,Q.totp=o},6046:(Ve,Q,m)=>{"use strict";m.d(Q,{H5:()=>_4,K$:()=>g4,a4:()=>lh});var e=m(5e3),t=m(9808),y=m(7429),C=m(655),o=m(4968),M=m(8372),l=m(1777);function N(){}function s(f){return null==f?N:function(){return this.querySelector(f)}}function A(f){return"object"==typeof f&&"length"in f?f:Array.from(f)}function O(){return[]}function E(f){return null==f?O:function(){return this.querySelectorAll(f)}}function Z(f){return function(){return this.matches(f)}}function j(f){return function(T){return T.matches(f)}}var W=Array.prototype.find;function ee(){return this.firstElementChild}var ce=Array.prototype.filter;function re(){return this.children}function b(f){return new Array(f.length)}function a(f,T){this.ownerDocument=f.ownerDocument,this.namespaceURI=f.namespaceURI,this._next=null,this._parent=f,this.__data__=T}function p(f){return function(){return f}}function u(f,T,n,d,k,H){for(var Se,se=0,ht=T.length,mt=H.length;seT?1:f>=T?0:NaN}a.prototype={constructor:a,appendChild:function(f){return this._parent.insertBefore(f,this._next)},insertBefore:function(f,T){return this._parent.insertBefore(f,T)},querySelector:function(f){return this._parent.querySelector(f)},querySelectorAll:function(f){return this._parent.querySelectorAll(f)}};var Me="http://www.w3.org/1999/xhtml";const we={svg:"http://www.w3.org/2000/svg",xhtml:Me,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function z(f){var T=f+="",n=T.indexOf(":");return n>=0&&"xmlns"!==(T=f.slice(0,n))&&(f=f.slice(n+1)),we.hasOwnProperty(T)?{space:we[T],local:f}:f}function Ge(f){return function(){this.removeAttribute(f)}}function vt(f){return function(){this.removeAttributeNS(f.space,f.local)}}function Re(f,T){return function(){this.setAttribute(f,T)}}function Ne(f,T){return function(){this.setAttributeNS(f.space,f.local,T)}}function he(f,T){return function(){var n=T.apply(this,arguments);null==n?this.removeAttribute(f):this.setAttribute(f,n)}}function Le(f,T){return function(){var n=T.apply(this,arguments);null==n?this.removeAttributeNS(f.space,f.local):this.setAttributeNS(f.space,f.local,n)}}function q(f){return f.ownerDocument&&f.ownerDocument.defaultView||f.document&&f||f.defaultView}function $(f){return function(){this.style.removeProperty(f)}}function le(f,T,n){return function(){this.style.setProperty(f,T,n)}}function xe(f,T,n){return function(){var d=T.apply(this,arguments);null==d?this.style.removeProperty(f):this.style.setProperty(f,d,n)}}function lt(f,T){return f.style.getPropertyValue(T)||q(f).getComputedStyle(f,null).getPropertyValue(T)}function nt(f){return function(){delete this[f]}}function ft(f,T){return function(){this[f]=T}}function it(f,T){return function(){var n=T.apply(this,arguments);null==n?delete this[f]:this[f]=n}}function Mt(f){return f.trim().split(/^|\s+/)}function Zt(f){return f.classList||new Ft(f)}function Ft(f){this._node=f,this._names=Mt(f.getAttribute("class")||"")}function Vt(f,T){for(var n=Zt(f),d=-1,k=T.length;++d=0&&(n=T.slice(d+1),T=T.slice(0,d)),{type:T,name:n}})}function Ke(f){return function(){var T=this.__on;if(T){for(var H,n=0,d=-1,k=T.length;n=0&&(this._names.splice(T,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(f){return this._names.indexOf(f)>=0}};var Pt=[null];function yi(f,T){this._groups=f,this._parents=T}function Ni(){return new yi([[document.documentElement]],Pt)}yi.prototype=Ni.prototype={constructor:yi,select:function D(f){"function"!=typeof f&&(f=s(f));for(var T=this._groups,n=T.length,d=new Array(n),k=0;k=Qi&&(Qi=Gi+1);!(fn=di[Qi])&&++Qi=0;)(se=d[k])&&(H&&4^se.compareDocumentPosition(H)&&H.parentNode.insertBefore(se,H),H=se);return this},sort:function F(f){function T(Ht,Ut){return Ht&&Ut?f(Ht.__data__,Ut.__data__):!Ht-!Ut}f||(f=U);for(var n=this._groups,d=n.length,k=new Array(d),H=0;H1?this.each((null==T?$:"function"==typeof T?xe:le)(f,T,null==n?"":n)):lt(this.node(),f)},property:function rt(f,T){return arguments.length>1?this.each((null==T?nt:"function"==typeof T?it:ft)(f,T)):this.node()[f]},classed:function ai(f,T){var n=Mt(f+"");if(arguments.length<2){for(var d=Zt(this.node()),k=-1,H=n.length;++k{}};function gt(){for(var d,f=0,T=arguments.length,n={};f=0&&(d=n.slice(k+1),n=n.slice(0,k)),n&&!T.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:d}})}function Ci(f,T){for(var k,n=0,d=f.length;n0)for(var k,H,n=new Array(k),d=0;d>8&15|T>>4&240,T>>4&15|240&T,(15&T)<<4|15&T,1):8===n?Kn(T>>24&255,T>>16&255,T>>8&255,(255&T)/255):4===n?Kn(T>>12&15|T>>8&240,T>>8&15|T>>4&240,T>>4&15|240&T,((15&T)<<4|15&T)/255):null):(T=Ma.exec(f))?new Tr(T[1],T[2],T[3],1):(T=Fa.exec(f))?new Tr(255*T[1]/100,255*T[2]/100,255*T[3]/100,1):(T=xr.exec(f))?Kn(T[1],T[2],T[3],T[4]):(T=hs.exec(f))?Kn(255*T[1]/100,255*T[2]/100,255*T[3]/100,T[4]):(T=ur.exec(f))?la(T[1],T[2]/100,T[3]/100,1):(T=pa.exec(f))?la(T[1],T[2]/100,T[3]/100,T[4]):ma.hasOwnProperty(f)?kr(ma[f]):"transparent"===f?new Tr(NaN,NaN,NaN,0):null}function kr(f){return new Tr(f>>16&255,f>>8&255,255&f,1)}function Kn(f,T,n,d){return d<=0&&(f=T=n=NaN),new Tr(f,T,n,d)}function vn(f){return f instanceof Fi||(f=Zr(f)),f?new Tr((f=f.rgb()).r,f.g,f.b,f.opacity):new Tr}function Qn(f,T,n,d){return 1===arguments.length?vn(f):new Tr(f,T,n,null==d?1:d)}function Tr(f,T,n,d){this.r=+f,this.g=+T,this.b=+n,this.opacity=+d}function Ba(){return"#"+Pr(this.r)+Pr(this.g)+Pr(this.b)}function Wa(){var f=this.opacity;return(1===(f=isNaN(f)?1:Math.max(0,Math.min(1,f)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===f?")":", "+f+")")}function Pr(f){return((f=Math.max(0,Math.min(255,Math.round(f)||0)))<16?"0":"")+f.toString(16)}function la(f,T,n,d){return d<=0?f=T=n=NaN:n<=0||n>=1?f=T=NaN:T<=0&&(f=NaN),new $n(f,T,n,d)}function Jr(f){if(f instanceof $n)return new $n(f.h,f.s,f.l,f.opacity);if(f instanceof Fi||(f=Zr(f)),!f)return new $n;if(f instanceof $n)return f;var T=(f=f.rgb()).r/255,n=f.g/255,d=f.b/255,k=Math.min(T,n,d),H=Math.max(T,n,d),se=NaN,Se=H-k,ht=(H+k)/2;return Se?(se=T===H?(n-d)/Se+6*(n0&&ht<1?0:se,new $n(se,Se,ht,f.opacity)}function $n(f,T,n,d){this.h=+f,this.s=+T,this.l=+n,this.opacity=+d}function wa(f,T,n){return 255*(f<60?T+(n-T)*f/60:f<180?n:f<240?T+(n-T)*(240-f)/60:T)}function Nr(f,T,n,d,k){var H=f*f,se=H*f;return((1-3*f+3*H-se)*T+(4-6*H+3*se)*n+(1+3*f+3*H-3*se)*d+se*k)/6}dr(Fi,Zr,{copy:function(f){return Object.assign(new this.constructor,this,f)},displayable:function(){return this.rgb().displayable()},hex:Ir,formatHex:Ir,formatHsl:function Ga(){return Jr(this).formatHsl()},formatRgb:Ya,toString:Ya}),dr(Tr,Qn,wi(Fi,{brighter:function(f){return f=null==f?Lr:Math.pow(Lr,f),new Tr(this.r*f,this.g*f,this.b*f,this.opacity)},darker:function(f){return f=null==f?.7:Math.pow(.7,f),new Tr(this.r*f,this.g*f,this.b*f,this.opacity)},rgb:function(){return this},displayable:function(){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:Ba,formatHex:Ba,formatRgb:Wa,toString:Wa})),dr($n,function ga(f,T,n,d){return 1===arguments.length?Jr(f):new $n(f,T,n,null==d?1:d)},wi(Fi,{brighter:function(f){return f=null==f?Lr:Math.pow(Lr,f),new $n(this.h,this.s,this.l*f,this.opacity)},darker:function(f){return f=null==f?.7:Math.pow(.7,f),new $n(this.h,this.s,this.l*f,this.opacity)},rgb:function(){var f=this.h%360+360*(this.h<0),T=isNaN(f)||isNaN(this.s)?0:this.s,n=this.l,d=n+(n<.5?n:1-n)*T,k=2*n-d;return new Tr(wa(f>=240?f-240:f+120,k,d),wa(f,k,d),wa(f<120?f+240:f-120,k,d),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var f=this.opacity;return(1===(f=isNaN(f)?1:Math.max(0,Math.min(1,f)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===f?")":", "+f+")")}}));const Vr=f=>()=>f;function Oa(f,T){var n=T-f;return n?function ha(f,T){return function(n){return f+n*T}}(f,n):Vr(isNaN(f)?T:f)}const ra=function f(T){var n=function is(f){return 1==(f=+f)?Oa:function(T,n){return n-T?function pr(f,T,n){return f=Math.pow(f,n),T=Math.pow(T,n)-f,n=1/n,function(d){return Math.pow(f+d*T,n)}}(T,n,f):Vr(isNaN(T)?n:T)}}(T);function d(k,H){var se=n((k=Qn(k)).r,(H=Qn(H)).r),Se=n(k.g,H.g),ht=n(k.b,H.b),mt=Oa(k.opacity,H.opacity);return function(Dt){return k.r=se(Dt),k.g=Se(Dt),k.b=ht(Dt),k.opacity=mt(Dt),k+""}}return d.gamma=f,d}(1);function Gr(f){return function(T){var se,Se,n=T.length,d=new Array(n),k=new Array(n),H=new Array(n);for(se=0;se=1?(n=1,T-1):Math.floor(n*T),k=f[d],H=f[d+1];return Nr((n-d/T)*T,d>0?f[d-1]:2*k-H,k,H,dn&&(H=T.slice(n,H),Se[se]?Se[se]+=H:Se[++se]=H),(d=d[0])===(k=k[0])?Se[se]?Se[se]+=k:Se[++se]=k:(Se[++se]=null,ht.push({i:se,x:ge(d,k)})),n=Qe.lastIndex;return n=0&&f._call.call(null,T),f=f._next;--yn}()}finally{yn=0,function ue(){for(var f,n,T=Un,d=1/0;T;)T._call?(d>T._time&&(d=T._time),f=T,T=T._next):(n=T._next,T._next=null,T=f?f._next=n:Un=n);Rn=f,je(d)}(),Mr=0}}function te(){var f=vs.now(),T=f-_a;T>1e3&&(ds-=T,_a=f)}function je(f){yn||(An&&(An=clearTimeout(An)),f-Mr>24?(f<1/0&&(An=setTimeout(xt,f-vs.now()-ds)),Wi&&(Wi=clearInterval(Wi))):(Wi||(_a=vs.now(),Wi=setInterval(te,1e3)),yn=1,ki(xt)))}function wt(f,T,n){var d=new fr;return d.restart(k=>{d.stop(),f(k+T)},T=null==T?0:+T,n),d}fr.prototype=Us.prototype={constructor:fr,restart:function(f,T,n){if("function"!=typeof f)throw new TypeError("callback is not a function");n=(null==n?Nn():+n)+(null==T?0:+T),!this._next&&Rn!==this&&(Rn?Rn._next=this:Un=this,Rn=this),this._call=f,this._time=n,je()},stop:function(){this._call&&(this._call=null,this._time=1/0,je())}};var kt=$i("start","end","cancel","interrupt"),Qt=[];function tt(f,T,n,d,k,H){var se=f.__transition;if(se){if(n in se)return}else f.__transition={};!function ri(f,T,n){var k,d=f.__transition;function se(mt){var Dt,Ht,Ut,ni;if(1!==n.state)return ht();for(Dt in d)if((ni=d[Dt]).name===n.name){if(3===ni.state)return wt(se);4===ni.state?(ni.state=6,ni.timer.stop(),ni.on.call("interrupt",f,f.__data__,ni.index,ni.group),delete d[Dt]):+Dt0)throw new Error("too late; already scheduled");return n}function It(f,T){var n=zt(f,T);if(n.state>3)throw new Error("too late; already running");return n}function zt(f,T){var n=f.__transition;if(!n||!(n=n[T]))throw new Error("transition not found");return n}var gn,Ai=180/Math.PI,Ki={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function un(f,T,n,d,k,H){var se,Se,ht;return(se=Math.sqrt(f*f+T*T))&&(f/=se,T/=se),(ht=f*n+T*d)&&(n-=f*ht,d-=T*ht),(Se=Math.sqrt(n*n+d*d))&&(n/=Se,d/=Se,ht/=Se),f*d180?Dt+=360:Dt-mt>180&&(mt+=360),Ut.push({i:Ht.push(k(Ht)+"rotate(",null,d)-2,x:ge(mt,Dt)})):Dt&&Ht.push(k(Ht)+"rotate("+Dt+d)}(mt.rotate,Dt.rotate,Ht,Ut),function Se(mt,Dt,Ht,Ut){mt!==Dt?Ut.push({i:Ht.push(k(Ht)+"skewX(",null,d)-2,x:ge(mt,Dt)}):Dt&&Ht.push(k(Ht)+"skewX("+Dt+d)}(mt.skewX,Dt.skewX,Ht,Ut),function ht(mt,Dt,Ht,Ut,ni,bi){if(mt!==Ht||Dt!==Ut){var zi=ni.push(k(ni)+"scale(",null,",",null,")");bi.push({i:zi-4,x:ge(mt,Ht)},{i:zi-2,x:ge(Dt,Ut)})}else(1!==Ht||1!==Ut)&&ni.push(k(ni)+"scale("+Ht+","+Ut+")")}(mt.scaleX,mt.scaleY,Dt.scaleX,Dt.scaleY,Ht,Ut),mt=Dt=null,function(ni){for(var di,bi=-1,zi=Ut.length;++bi=0&&(T=T.slice(0,n)),!T||"start"===T})}(T)?Et:It;return function(){var se=H(this,f),Se=se.on;Se!==d&&(k=(d=Se).copy()).on(T,n),se.on=k}}var Ye=qi.prototype.constructor;function $e(f){return function(){this.style.removeProperty(f)}}function Ei(f,T,n){return function(d){this.style.setProperty(f,T.call(this,d),n)}}function an(f,T,n){var d,k;function H(){var se=T.apply(this,arguments);return se!==k&&(d=(k=se)&&Ei(f,se,n)),d}return H._value=T,H}function ao(f){return function(T){this.textContent=f.call(this,T)}}function ea(f){var T,n;function d(){var k=f.apply(this,arguments);return k!==n&&(T=(n=k)&&ao(k)),T}return d._value=f,d}var bs=0;function Ea(f,T,n,d){this._groups=f,this._parents=T,this._name=n,this._id=d}function yo(){return++bs}var so=qi.prototype;Ea.prototype=function Ol(f){return qi().transition(f)}.prototype={constructor:Ea,select:function rl(f){var T=this._name,n=this._id;"function"!=typeof f&&(f=s(f));for(var d=this._groups,k=d.length,H=new Array(k),se=0;se2&&d.state<5,d.state=6,d.timer.stop(),d.on.call(k?"interrupt":"cancel",f,f.__data__,d.index,d.group),delete n[se]):H=!1;H&&delete f.__transition}}(this,f)})},qi.prototype.transition=function ka(f){var T,n;f instanceof Ea?(T=f._id,f=f._name):(T=yo(),(n=Po).time=Nn(),f=null==f?null:f+"");for(var d=this._groups,k=d.length,H=0;HT?1:f>=T?0:NaN}function js(f){let T=f,n=f;function d(se,Se,ht,mt){for(null==ht&&(ht=0),null==mt&&(mt=se.length);ht>>1;n(se[Dt],Se)<0?ht=Dt+1:mt=Dt}return ht}return 1===f.length&&(T=(se,Se)=>f(se)-Se,n=function l1(f){return(T,n)=>Nl(f(T),n)}(f)),{left:d,center:function H(se,Se,ht,mt){null==ht&&(ht=0),null==mt&&(mt=se.length);const Dt=d(se,Se,ht,mt-1);return Dt>ht&&T(se[Dt-1],Se)>-T(se[Dt],Se)?Dt-1:Dt},right:function k(se,Se,ht,mt){for(null==ht&&(ht=0),null==mt&&(mt=se.length);ht>>1;n(se[Dt],Se)>0?mt=Dt:ht=Dt+1}return ht}}}["w","e"].map(Ws),["n","s"].map(Ws),["n","w","e","s","nw","ne","sw","se"].map(Ws);var pc=Math.sqrt(50),mc=Math.sqrt(10),gc=Math.sqrt(2);function Rl(f,T,n){var d=(T-f)/Math.max(0,n),k=Math.floor(Math.log(d)/Math.LN10),H=d/Math.pow(10,k);return k>=0?(H>=pc?10:H>=mc?5:H>=gc?2:1)*Math.pow(10,k):-Math.pow(10,-k)/(H>=pc?10:H>=mc?5:H>=gc?2:1)}function Fo(f,T,n){var d=Math.abs(T-f)/Math.max(0,n),k=Math.pow(10,Math.floor(Math.log(d)/Math.LN10)),H=d/k;return H>=pc?k*=10:H>=mc?k*=5:H>=gc&&(k*=2),T0))return ht;do{ht.push(mt=new Date(+H)),T(H,Se),f(H)}while(mt=se)for(;f(se),!H(se);)se.setTime(se-1)},function(se,Se){if(se>=se)if(Se<0)for(;++Se<=0;)for(;T(se,-1),!H(se););else for(;--Se>=0;)for(;T(se,1),!H(se););})},n&&(k.count=function(H,se){return Fl.setTime(+H),yc.setTime(+se),f(Fl),f(yc),Math.floor(n(Fl,yc))},k.every=function(H){return H=Math.floor(H),isFinite(H)&&H>0?H>1?k.filter(d?function(se){return d(se)%H==0}:function(se){return k.count(0,se)%H==0}):k:null}),k}var ll=ta(function(){},function(f,T){f.setTime(+f+T)},function(f,T){return T-f});ll.every=function(f){return f=Math.floor(f),isFinite(f)&&f>0?f>1?ta(function(T){T.setTime(Math.floor(T/f)*f)},function(T,n){T.setTime(+T+n*f)},function(T,n){return(n-T)/f}):ll:null};const v0=ll;const cl=ta(function(f){f.setTime(f-f.getMilliseconds())},function(f,T){f.setTime(+f+T*lo)},function(f,T){return(T-f)/lo},function(f){return f.getUTCSeconds()});const u1=ta(function(f){f.setTime(f-f.getMilliseconds()-f.getSeconds()*lo)},function(f,T){f.setTime(+f+T*za)},function(f,T){return(T-f)/za},function(f){return f.getMinutes()});const Ho=ta(function(f){f.setTime(f-f.getMilliseconds()-f.getSeconds()*lo-f.getMinutes()*za)},function(f,T){f.setTime(+f+T*Cs)},function(f,T){return(T-f)/Cs},function(f){return f.getHours()});const qs=ta(f=>f.setHours(0,0,0,0),(f,T)=>f.setDate(f.getDate()+T),(f,T)=>(T-f-(T.getTimezoneOffset()-f.getTimezoneOffset())*za)/Ns,f=>f.getDate()-1);function co(f){return ta(function(T){T.setDate(T.getDate()-(T.getDay()+7-f)%7),T.setHours(0,0,0,0)},function(T,n){T.setDate(T.getDate()+7*n)},function(T,n){return(n-T-(n.getTimezoneOffset()-T.getTimezoneOffset())*za)/_c})}var Uo=co(0),xo=co(1),Zo=(co(2),co(3),co(4));const Yo=(co(5),co(6),ta(function(f){f.setDate(1),f.setHours(0,0,0,0)},function(f,T){f.setMonth(f.getMonth()+T)},function(f,T){return T.getMonth()-f.getMonth()+12*(T.getFullYear()-f.getFullYear())},function(f){return f.getMonth()}));var ho=ta(function(f){f.setMonth(0,1),f.setHours(0,0,0,0)},function(f,T){f.setFullYear(f.getFullYear()+T)},function(f,T){return T.getFullYear()-f.getFullYear()},function(f){return f.getFullYear()});ho.every=function(f){return isFinite(f=Math.floor(f))&&f>0?ta(function(T){T.setFullYear(Math.floor(T.getFullYear()/f)*f),T.setMonth(0,1),T.setHours(0,0,0,0)},function(T,n){T.setFullYear(T.getFullYear()+n*f)}):null};const uo=ho;const Hl=ta(function(f){f.setUTCSeconds(0,0)},function(f,T){f.setTime(+f+T*za)},function(f,T){return(T-f)/za},function(f){return f.getUTCMinutes()});const B=ta(function(f){f.setUTCMinutes(0,0,0)},function(f,T){f.setTime(+f+T*Cs)},function(f,T){return(T-f)/Cs},function(f){return f.getUTCHours()});const fi=ta(function(f){f.setUTCHours(0,0,0,0)},function(f,T){f.setUTCDate(f.getUTCDate()+T)},function(f,T){return(T-f)/Ns},function(f){return f.getUTCDate()-1});function tr(f){return ta(function(T){T.setUTCDate(T.getUTCDate()-(T.getUTCDay()+7-f)%7),T.setUTCHours(0,0,0,0)},function(T,n){T.setUTCDate(T.getUTCDate()+7*n)},function(T,n){return(n-T)/_c})}var Fn=tr(0),Br=tr(1),Na=(tr(2),tr(3),tr(4));const B4=(tr(5),tr(6),ta(function(f){f.setUTCDate(1),f.setUTCHours(0,0,0,0)},function(f,T){f.setUTCMonth(f.getUTCMonth()+T)},function(f,T){return T.getUTCMonth()-f.getUTCMonth()+12*(T.getUTCFullYear()-f.getUTCFullYear())},function(f){return f.getUTCMonth()}));var hl=ta(function(f){f.setUTCMonth(0,1),f.setUTCHours(0,0,0,0)},function(f,T){f.setUTCFullYear(f.getUTCFullYear()+T)},function(f,T){return T.getUTCFullYear()-f.getUTCFullYear()},function(f){return f.getUTCFullYear()});hl.every=function(f){return isFinite(f=Math.floor(f))&&f>0?ta(function(T){T.setUTCFullYear(Math.floor(T.getUTCFullYear()/f)*f),T.setUTCMonth(0,1),T.setUTCHours(0,0,0,0)},function(T,n){T.setUTCFullYear(T.getUTCFullYear()+n*f)}):null};const dl=hl;function zl(f,T,n,d,k,H){const se=[[cl,1,lo],[cl,5,5e3],[cl,15,15e3],[cl,30,3e4],[H,1,za],[H,5,5*za],[H,15,15*za],[H,30,30*za],[k,1,Cs],[k,3,3*Cs],[k,6,6*Cs],[k,12,12*Cs],[d,1,Ns],[d,2,2*Ns],[n,1,_c],[T,1,h1],[T,3,3*h1],[f,1,vc]];function ht(mt,Dt,Ht){const Ut=Math.abs(Dt-mt)/Ht,ni=js(([,,di])=>di).right(se,Ut);if(ni===se.length)return f.every(Fo(mt/vc,Dt/vc,Ht));if(0===ni)return v0.every(Math.max(Fo(mt,Dt,Ht),1));const[bi,zi]=se[Ut/se[ni-1][2][T.toLowerCase(),n]))}function Ah(f,T,n){var d=Qa.exec(T.slice(n,n+1));return d?(f.w=+d[0],n+d[0].length):-1}function y1(f,T,n){var d=Qa.exec(T.slice(n,n+1));return d?(f.u=+d[0],n+d[0].length):-1}function Eh(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.U=+d[0],n+d[0].length):-1}function E0(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.V=+d[0],n+d[0].length):-1}function af(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.W=+d[0],n+d[0].length):-1}function ua(f,T,n){var d=Qa.exec(T.slice(n,n+4));return d?(f.y=+d[0],n+d[0].length):-1}function T0(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.y=+d[0]+(+d[0]>68?1900:2e3),n+d[0].length):-1}function sf(f,T,n){var d=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(T.slice(n,n+6));return d?(f.Z=d[1]?0:-(d[2]+(d[3]||"00")),n+d[0].length):-1}function S0(f,T,n){var d=Qa.exec(T.slice(n,n+1));return d?(f.q=3*d[0]-3,n+d[0].length):-1}function Th(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.m=d[0]-1,n+d[0].length):-1}function Sh(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.d=+d[0],n+d[0].length):-1}function lf(f,T,n){var d=Qa.exec(T.slice(n,n+3));return d?(f.m=0,f.d=+d[0],n+d[0].length):-1}function Dh(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.H=+d[0],n+d[0].length):-1}function cf(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.M=+d[0],n+d[0].length):-1}function hf(f,T,n){var d=Qa.exec(T.slice(n,n+2));return d?(f.S=+d[0],n+d[0].length):-1}function Z4(f,T,n){var d=Qa.exec(T.slice(n,n+3));return d?(f.L=+d[0],n+d[0].length):-1}function V4(f,T,n){var d=Qa.exec(T.slice(n,n+6));return d?(f.L=Math.floor(d[0]/1e3),n+d[0].length):-1}function wc(f,T,n){var d=U4.exec(T.slice(n,n+1));return d?n+d[0].length:-1}function ms(f,T,n){var d=Qa.exec(T.slice(n));return d?(f.Q=+d[0],n+d[0].length):-1}function D0(f,T,n){var d=Qa.exec(T.slice(n));return d?(f.s=+d[0],n+d[0].length):-1}function L0(f,T){return or(f.getDate(),T,2)}function Lh(f,T){return or(f.getHours(),T,2)}function ss(f,T){return or(f.getHours()%12||12,T,2)}function Ac(f,T){return or(1+qs.count(uo(f),f),T,3)}function b1(f,T){return or(f.getMilliseconds(),T,3)}function df(f,T){return b1(f,T)+"000"}function uf(f,T){return or(f.getMonth()+1,T,2)}function Oh(f,T){return or(f.getMinutes(),T,2)}function ff(f,T){return or(f.getSeconds(),T,2)}function Ih(f){var T=f.getDay();return 0===T?7:T}function kh(f,T){return or(Uo.count(uo(f)-1,f),T,2)}function O0(f){var T=f.getDay();return T>=4||0===T?Zo(f):Zo.ceil(f)}function pf(f,T){return f=O0(f),or(Zo.count(uo(f),f)+(4===uo(f).getDay()),T,2)}function mf(f){return f.getDay()}function gf(f,T){return or(xo.count(uo(f)-1,f),T,2)}function I0(f,T){return or(f.getFullYear()%100,T,2)}function _f(f,T){return or((f=O0(f)).getFullYear()%100,T,2)}function vf(f,T){return or(f.getFullYear()%1e4,T,4)}function G4(f,T){var n=f.getDay();return or((f=n>=4||0===n?Zo(f):Zo.ceil(f)).getFullYear()%1e4,T,4)}function k0(f){var T=f.getTimezoneOffset();return(T>0?"-":(T*=-1,"+"))+or(T/60|0,"0",2)+or(T%60,"0",2)}function Ph(f,T){return or(f.getUTCDate(),T,2)}function yf(f,T){return or(f.getUTCHours(),T,2)}function Ec(f,T){return or(f.getUTCHours()%12||12,T,2)}function bf(f,T){return or(1+fi.count(dl(f),f),T,3)}function Nh(f,T){return or(f.getUTCMilliseconds(),T,3)}function xf(f,T){return Nh(f,T)+"000"}function Cf(f,T){return or(f.getUTCMonth()+1,T,2)}function Mf(f,T){return or(f.getUTCMinutes(),T,2)}function Rh(f,T){return or(f.getUTCSeconds(),T,2)}function wf(f){var T=f.getUTCDay();return 0===T?7:T}function Af(f,T){return or(Fn.count(dl(f)-1,f),T,2)}function Fh(f){var T=f.getUTCDay();return T>=4||0===T?Na(f):Na.ceil(f)}function Ef(f,T){return f=Fh(f),or(Na.count(dl(f),f)+(4===dl(f).getUTCDay()),T,2)}function Bh(f){return f.getUTCDay()}function Hh(f,T){return or(Br.count(dl(f)-1,f),T,2)}function Tf(f,T){return or(f.getUTCFullYear()%100,T,2)}function Sf(f,T){return or((f=Fh(f)).getUTCFullYear()%100,T,2)}function Ul(f,T){return or(f.getUTCFullYear()%1e4,T,4)}function po(f,T){var n=f.getUTCDay();return or((f=n>=4||0===n?Na(f):Na.ceil(f)).getUTCFullYear()%1e4,T,4)}function Y4(){return"+0000"}function Df(){return"%"}function P0(f){return+f}function Lf(f){return Math.floor(+f/1e3)}function N0(f){return null===f?NaN:+f}!function Tc(f){(function A0(f){var T=f.dateTime,n=f.date,d=f.time,k=f.periods,H=f.days,se=f.shortDays,Se=f.months,ht=f.shortMonths,mt=Cc(k),Dt=Mc(k),Ht=Cc(H),Ut=Mc(H),ni=Cc(se),bi=Mc(se),zi=Cc(Se),di=Mc(Se),Vi=Cc(ht),Gi=Mc(ht),Qi={a:function _r(ln){return se[ln.getDay()]},A:function Za(ln){return H[ln.getDay()]},b:function Xn(ln){return ht[ln.getMonth()]},B:function fa(ln){return Se[ln.getMonth()]},c:null,d:L0,e:L0,f:df,g:_f,G:G4,H:Lh,I:ss,j:Ac,L:b1,m:uf,M:Oh,p:function Qr(ln){return k[+(ln.getHours()>=12)]},q:function na(ln){return 1+~~(ln.getMonth()/3)},Q:P0,s:Lf,S:ff,u:Ih,U:kh,V:pf,w:mf,W:gf,x:null,X:null,y:I0,Y:vf,Z:k0,"%":Df},cn={a:function Tl(ln){return se[ln.getUTCDay()]},A:function _s(ln){return H[ln.getUTCDay()]},b:function el(ln){return ht[ln.getUTCMonth()]},B:function vo(ln){return Se[ln.getUTCMonth()]},c:null,d:Ph,e:Ph,f:xf,g:Sf,G:po,H:yf,I:Ec,j:bf,L:Nh,m:Cf,M:Mf,p:function Va(ln){return k[+(ln.getUTCHours()>=12)]},q:function Sl(ln){return 1+~~(ln.getUTCMonth()/3)},Q:P0,s:Lf,S:Rh,u:wf,U:Af,V:Ef,w:Bh,W:Hh,x:null,X:null,y:Tf,Y:Ul,Z:Y4,"%":Df},fn={a:function cr(ln,Bn,nr){var ji=ni.exec(Bn.slice(nr));return ji?(ln.w=bi.get(ji[0].toLowerCase()),nr+ji[0].length):-1},A:function hn(ln,Bn,nr){var ji=Ht.exec(Bn.slice(nr));return ji?(ln.w=Ut.get(ji[0].toLowerCase()),nr+ji[0].length):-1},b:function bn(ln,Bn,nr){var ji=Vi.exec(Bn.slice(nr));return ji?(ln.m=Gi.get(ji[0].toLowerCase()),nr+ji[0].length):-1},B:function mn(ln,Bn,nr){var ji=zi.exec(Bn.slice(nr));return ji?(ln.m=di.get(ji[0].toLowerCase()),nr+ji[0].length):-1},c:function hr(ln,Bn,nr){return qn(ln,T,Bn,nr)},d:Sh,e:Sh,f:V4,g:T0,G:ua,H:Dh,I:Dh,j:lf,L:Z4,m:Th,M:cf,p:function zr(ln,Bn,nr){var ji=mt.exec(Bn.slice(nr));return ji?(ln.p=Dt.get(ji[0].toLowerCase()),nr+ji[0].length):-1},q:S0,Q:ms,s:D0,S:hf,u:y1,U:Eh,V:E0,w:Ah,W:af,x:function Sa(ln,Bn,nr){return qn(ln,n,Bn,nr)},X:function br(ln,Bn,nr){return qn(ln,d,Bn,nr)},y:T0,Y:ua,Z:sf,"%":wc};function en(ln,Bn){return function(nr){var Is,Hn,Ca,ji=[],Da=-1,Dr=0,Os=ln.length;for(nr instanceof Date||(nr=new Date(+nr));++Da53)return null;"w"in ji||(ji.w=1),"Z"in ji?(Os=(Dr=Mh(ul(ji.y,0,1))).getUTCDay(),Dr=Os>4||0===Os?Br.ceil(Dr):Br(Dr),Dr=fi.offset(Dr,7*(ji.V-1)),ji.y=Dr.getUTCFullYear(),ji.m=Dr.getUTCMonth(),ji.d=Dr.getUTCDate()+(ji.w+6)%7):(Os=(Dr=Ch(ul(ji.y,0,1))).getDay(),Dr=Os>4||0===Os?xo.ceil(Dr):xo(Dr),Dr=qs.offset(Dr,7*(ji.V-1)),ji.y=Dr.getFullYear(),ji.m=Dr.getMonth(),ji.d=Dr.getDate()+(ji.w+6)%7)}else("W"in ji||"U"in ji)&&("w"in ji||(ji.w="u"in ji?ji.u%7:"W"in ji?1:0),Os="Z"in ji?Mh(ul(ji.y,0,1)).getUTCDay():Ch(ul(ji.y,0,1)).getDay(),ji.m=0,ji.d="W"in ji?(ji.w+6)%7+7*ji.W-(Os+5)%7:ji.w+7*ji.U-(Os+6)%7);return"Z"in ji?(ji.H+=ji.Z/100|0,ji.M+=ji.Z%100,Mh(ji)):Ch(ji)}}function qn(ln,Bn,nr,ji){for(var Is,Hn,Da=0,Dr=Bn.length,Os=nr.length;Da=Os)return-1;if(37===(Is=Bn.charCodeAt(Da++))){if(Is=Bn.charAt(Da++),!(Hn=fn[Is in v1?Bn.charAt(Da++):Is])||(ji=Hn(ln,nr,ji))<0)return-1}else if(Is!=nr.charCodeAt(ji++))return-1}return ji}return Qi.x=en(n,Qi),Qi.X=en(d,Qi),Qi.c=en(T,Qi),cn.x=en(n,cn),cn.X=en(d,cn),cn.c=en(T,cn),{format:function(ln){var Bn=en(ln+="",Qi);return Bn.toString=function(){return ln},Bn},parse:function(ln){var Bn=gr(ln+="",!1);return Bn.toString=function(){return ln},Bn},utcFormat:function(ln){var Bn=en(ln+="",cn);return Bn.toString=function(){return ln},Bn},utcParse:function(ln){var Bn=gr(ln+="",!0);return Bn.toString=function(){return ln},Bn}}})(f)}({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 R0=js(Nl).right,fl=(js(N0),R0);function F0(f,T){return f=+f,T=+T,function(n){return Math.round(f*(1-n)+T*n)}}function kf(f){return+f}var w1=[0,1];function Zl(f){return f}function B0(f,T){return(T-=f=+f)?function(n){return(n-f)/T}:function Zh(f){return function(){return f}}(isNaN(T)?NaN:.5)}function Nf(f,T,n){var d=f[0],k=f[1],H=T[0],se=T[1];return kT&&(n=f,f=T,T=n),function(d){return Math.max(f,Math.min(T,d))}}(f[0],f[Ut-1])),Se=Ut>2?Rf:Nf,ht=mt=null,Ht}function Ht(Ut){return null==Ut||isNaN(Ut=+Ut)?H:(ht||(ht=Se(f.map(d),T,n)))(d(se(Ut)))}return Ht.invert=function(Ut){return se(k((mt||(mt=Se(T,f.map(d),ge)))(Ut)))},Ht.domain=function(Ut){return arguments.length?(f=Array.from(Ut,kf),Dt()):f.slice()},Ht.range=function(Ut){return arguments.length?(T=Array.from(Ut),Dt()):T.slice()},Ht.rangeRound=function(Ut){return T=Array.from(Ut),n=F0,Dt()},Ht.clamp=function(Ut){return arguments.length?(se=!!Ut||Zl,Dt()):se!==Zl},Ht.interpolate=function(Ut){return arguments.length?(n=Ut,Dt()):n},Ht.unknown=function(Ut){return arguments.length?(H=Ut,Ht):H},function(Ut,ni){return d=Ut,k=ni,Dt()}}()(Zl,Zl)}function pl(f,T){switch(arguments.length){case 0:break;case 1:this.range(f);break;default:this.range(T).domain(f)}return this}var Dc,z0=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Sc(f){if(!(T=z0.exec(f)))throw new Error("invalid format: "+f);var T;return new E1({fill:T[1],align:T[2],sign:T[3],symbol:T[4],zero:T[5],width:T[6],comma:T[7],precision:T[8]&&T[8].slice(1),trim:T[9],type:T[10]})}function E1(f){this.fill=void 0===f.fill?" ":f.fill+"",this.align=void 0===f.align?">":f.align+"",this.sign=void 0===f.sign?"-":f.sign+"",this.symbol=void 0===f.symbol?"":f.symbol+"",this.zero=!!f.zero,this.width=void 0===f.width?void 0:+f.width,this.comma=!!f.comma,this.precision=void 0===f.precision?void 0:+f.precision,this.trim=!!f.trim,this.type=void 0===f.type?"":f.type+""}function S1(f,T){if((n=(f=T?f.toExponential(T-1):f.toExponential()).indexOf("e"))<0)return null;var n,d=f.slice(0,n);return[d.length>1?d[0]+d.slice(2):d,+f.slice(n+1)]}function ml(f){return(f=S1(Math.abs(f)))?f[1]:NaN}function V0(f,T){var n=S1(f,T);if(!n)return f+"";var d=n[0],k=n[1];return k<0?"0."+new Array(-k).join("0")+d:d.length>k+1?d.slice(0,k+1)+"."+d.slice(k+1):d+new Array(k-d.length+2).join("0")}Sc.prototype=E1.prototype,E1.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 L1={"%":(f,T)=>(100*f).toFixed(T),b:f=>Math.round(f).toString(2),c:f=>f+"",d:function T1(f){return Math.abs(f=Math.round(f))>=1e21?f.toLocaleString("en").replace(/,/g,""):f.toString(10)},e:(f,T)=>f.toExponential(T),f:(f,T)=>f.toFixed(T),g:(f,T)=>f.toPrecision(T),o:f=>Math.round(f).toString(8),p:(f,T)=>V0(100*f,T),r:V0,s:function D1(f,T){var n=S1(f,T);if(!n)return f+"";var d=n[0],k=n[1],H=k-(Dc=3*Math.max(-8,Math.min(8,Math.floor(k/3))))+1,se=d.length;return H===se?d:H>se?d+new Array(H-se+1).join("0"):H>0?d.slice(0,H)+"."+d.slice(H):"0."+new Array(1-H).join("0")+S1(f,Math.max(0,T+H-1))[0]},X:f=>Math.round(f).toString(16).toUpperCase(),x:f=>Math.round(f).toString(16)};function G0(f){return f}var Lc,Y0,Kh,O1=Array.prototype.map,Vl=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Xh(f){var T=f.domain;return f.ticks=function(n){var d=T();return function c1(f,T,n){var d,H,se,Se,k=-1;if(n=+n,(f=+f)==(T=+T)&&n>0)return[f];if((d=T0){let ht=Math.round(f/Se),mt=Math.round(T/Se);for(ht*SeT&&--mt,se=new Array(H=mt-ht+1);++kT&&--mt,se=new Array(H=mt-ht+1);++k0;){if((mt=Rl(se,Se,n))===ht)return d[k]=se,d[H]=Se,T(d);if(mt>0)se=Math.floor(se/mt)*mt,Se=Math.ceil(Se/mt)*mt;else{if(!(mt<0))break;se=Math.ceil(se*mt)/mt,Se=Math.floor(Se*mt)/mt}ht=mt}return f},f}function Ar(){var f=A1();return f.copy=function(){return Vh(f,Ar())},pl.apply(f,arguments),Xh(f)}function j0(f,T,n){f=+f,T=+T,n=(k=arguments.length)<2?(T=f,f=0,1):k<3?1:+n;for(var d=-1,k=0|Math.max(0,Math.ceil((T-f)/n)),H=new Array(k);++d0&&Se>0&&(ht+Se+1>d&&(Se=Math.max(1,d-ht)),H.push(n.substring(k-=Se,k+Se)),!((ht+=Se+1)>d));)Se=f[se=(se+1)%f.length];return H.reverse().join(T)}}(O1.call(f.grouping,Number),f.thousands+""),n=void 0===f.currency?"":f.currency[0]+"",d=void 0===f.currency?"":f.currency[1]+"",k=void 0===f.decimal?".":f.decimal+"",H=void 0===f.numerals?G0:function U0(f){return function(T){return T.replace(/[0-9]/g,function(n){return f[+n]})}}(O1.call(f.numerals,String)),se=void 0===f.percent?"%":f.percent+"",Se=void 0===f.minus?"\u2212":f.minus+"",ht=void 0===f.nan?"NaN":f.nan+"";function mt(Ht){var Ut=(Ht=Sc(Ht)).fill,ni=Ht.align,bi=Ht.sign,zi=Ht.symbol,di=Ht.zero,Vi=Ht.width,Gi=Ht.comma,Qi=Ht.precision,cn=Ht.trim,fn=Ht.type;"n"===fn?(Gi=!0,fn="g"):L1[fn]||(void 0===Qi&&(Qi=12),cn=!0,fn="g"),(di||"0"===Ut&&"="===ni)&&(di=!0,Ut="0",ni="=");var en="$"===zi?n:"#"===zi&&/[boxX]/.test(fn)?"0"+fn.toLowerCase():"",gr="$"===zi?d:/[%p]/.test(fn)?se:"",qn=L1[fn],zr=/[defgprs%]/.test(fn);function cr(hn){var hr,Sa,br,bn=en,mn=gr;if("c"===fn)mn=qn(hn)+mn,hn="";else{var _r=(hn=+hn)<0||1/hn<0;if(hn=isNaN(hn)?ht:qn(Math.abs(hn),Qi),cn&&(hn=function Z0(f){e:for(var k,T=f.length,n=1,d=-1;n0&&(d=0)}return d>0?f.slice(0,d)+f.slice(k+1):f}(hn)),_r&&0==+hn&&"+"!==bi&&(_r=!1),bn=(_r?"("===bi?bi:Se:"-"===bi||"("===bi?"":bi)+bn,mn=("s"===fn?Vl[8+Dc/3]:"")+mn+(_r&&"("===bi?")":""),zr)for(hr=-1,Sa=hn.length;++hr(br=hn.charCodeAt(hr))||br>57){mn=(46===br?k+hn.slice(hr+1):hn.slice(hr))+mn,hn=hn.slice(0,hr);break}}Gi&&!di&&(hn=T(hn,1/0));var Za=bn.length+hn.length+mn.length,Xn=Za>1)+bn+hn+mn+Xn.slice(Za);break;default:hn=Xn+bn+hn+mn}return H(hn)}return Qi=void 0===Qi?6:/[gprs]/.test(fn)?Math.max(1,Math.min(21,Qi)):Math.max(0,Math.min(20,Qi)),cr.toString=function(){return Ht+""},cr}return{format:mt,formatPrefix:function Dt(Ht,Ut){var ni=mt(((Ht=Sc(Ht)).type="f",Ht)),bi=3*Math.max(-8,Math.min(8,Math.floor(ml(Ut)/3))),zi=Math.pow(10,-bi),di=Vl[8+bi/3];return function(Vi){return ni(zi*Vi)+di}}}}(f),Y0=Lc.format,Kh=Lc.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});const $h=Symbol("implicit");function I1(){var f=new Map,T=[],n=[],d=$h;function k(H){var se=H+"",Se=f.get(se);if(!Se){if(d!==$h)return d;f.set(se,Se=T.push(H))}return n[(Se-1)%n.length]}return k.domain=function(H){if(!arguments.length)return T.slice();T=[],f=new Map;for(const se of H){const Se=se+"";f.has(Se)||f.set(Se,T.push(se))}return k},k.range=function(H){return arguments.length?(n=Array.from(H),k):n.slice()},k.unknown=function(H){return arguments.length?(d=H,k):d},k.copy=function(){return I1(T,n).unknown(d)},pl.apply(k,arguments),k}function Er(){var H,se,f=I1().unknown(void 0),T=f.domain,n=f.range,d=0,k=1,Se=!1,ht=0,mt=0,Dt=.5;function Ht(){var Ut=T().length,ni=k=1)return+n(f[d-1],d-1,f);var d,k=(d-1)*T,H=Math.floor(k),se=+n(f[H],H,f);return se+(+n(f[H+1],H+1,f)-se)*(k-H)}}function id(){var d,f=[],T=[],n=[];function k(){var se=0,Se=Math.max(1,T.length);for(n=new Array(Se-1);++se0?n[Se-1]:f[0],Se=0;)T+=n[d].value;else T=1;f.value=T}function vd(f,T){f instanceof Map?(f=[void 0,f],void 0===T&&(T=n3)):void 0===T&&(T=i3);for(var d,H,se,Se,ht,n=new Bc(f),k=[n];d=k.pop();)if((se=T(d.data))&&(ht=(se=Array.from(se)).length))for(d.children=se,Se=ht-1;Se>=0;--Se)k.push(H=se[Se]=new Bc(se[Se])),H.parent=d,H.depth=d.depth+1;return n.eachBefore(e6)}function i3(f){return f.children}function n3(f){return Array.isArray(f)?f[1]:null}function yd(f){void 0!==f.data.value&&(f.value=f.data.value),f.data=f.data.data}function e6(f){var T=0;do{f.height=T}while((f=f.parent)&&f.height<++T)}function Bc(f){this.data=f,this.depth=this.height=0,this.parent=null}ws.prototype=function q0(){return new ws}.prototype={constructor:ws,moveTo:function(f,T){this._+="M"+(this._x0=this._x1=+f)+","+(this._y0=this._y1=+T)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(f,T){this._+="L"+(this._x1=+f)+","+(this._y1=+T)},quadraticCurveTo:function(f,T,n,d){this._+="Q"+ +f+","+ +T+","+(this._x1=+n)+","+(this._y1=+d)},bezierCurveTo:function(f,T,n,d,k,H){this._+="C"+ +f+","+ +T+","+ +n+","+ +d+","+(this._x1=+k)+","+(this._y1=+H)},arcTo:function(f,T,n,d,k){var H=this._x1,se=this._y1,Se=(n=+n)-(f=+f),ht=(d=+d)-(T=+T),mt=H-f,Dt=se-T,Ht=mt*mt+Dt*Dt;if((k=+k)<0)throw new Error("negative radius: "+k);if(null===this._x1)this._+="M"+(this._x1=f)+","+(this._y1=T);else if(Ht>Ko)if(Math.abs(Dt*Se-ht*mt)>Ko&&k){var Ut=n-H,ni=d-se,bi=Se*Se+ht*ht,zi=Ut*Ut+ni*ni,di=Math.sqrt(bi),Vi=Math.sqrt(Ht),Gi=k*Math.tan((R1-Math.acos((bi+Ht-zi)/(2*di*Vi)))/2),Qi=Gi/Vi,cn=Gi/di;Math.abs(Qi-1)>Ko&&(this._+="L"+(f+Qi*mt)+","+(T+Qi*Dt)),this._+="A"+k+","+k+",0,0,"+ +(Dt*Ut>mt*ni)+","+(this._x1=f+cn*Se)+","+(this._y1=T+cn*ht)}else this._+="L"+(this._x1=f)+","+(this._y1=T)},arc:function(f,T,n,d,k,H){f=+f,T=+T,H=!!H;var se=(n=+n)*Math.cos(d),Se=n*Math.sin(d),ht=f+se,mt=T+Se,Dt=1^H,Ht=H?d-k:k-d;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+ht+","+mt:(Math.abs(this._x1-ht)>Ko||Math.abs(this._y1-mt)>Ko)&&(this._+="L"+ht+","+mt),n&&(Ht<0&&(Ht=Ht%F1+F1),Ht>B1?this._+="A"+n+","+n+",0,1,"+Dt+","+(f-se)+","+(T-Se)+"A"+n+","+n+",0,1,"+Dt+","+(this._x1=ht)+","+(this._y1=mt):Ht>Ko&&(this._+="A"+n+","+n+",0,"+ +(Ht>=R1)+","+Dt+","+(this._x1=f+n*Math.cos(k))+","+(this._y1=T+n*Math.sin(k))))},rect:function(f,T,n,d){this._+="M"+(this._x0=this._x1=+f)+","+(this._y0=this._y1=+T)+"h"+ +n+"v"+ +d+"h"+-n+"Z"},toString:function(){return this._}},Ic.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Gl(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(f,T){switch(f=+f,T=+T,this._point){case 0:this._point=1,this._line?this._context.lineTo(f,T):this._context.moveTo(f,T);break;case 1:this._point=2,this._x1=f,this._y1=T;break;case 2:this._point=3;default:Gl(this,f,T)}this._x0=this._x1,this._x1=this._x2,this._x2=f,this._y0=this._y1,this._y1=this._y2,this._y2=T}},function f(T){function n(d){return new Ic(d,T)}return n.tension=function(d){return f(+d)},n}(0),kc.prototype={areaStart:Uf,areaEnd:Uf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(f,T){switch(f=+f,T=+T,this._point){case 0:this._point=1,this._x3=f,this._y3=T;break;case 1:this._point=2,this._context.moveTo(this._x4=f,this._y4=T);break;case 2:this._point=3,this._x5=f,this._y5=T;break;default:Gl(this,f,T)}this._x0=this._x1,this._x1=this._x2,this._x2=f,this._y0=this._y1,this._y1=this._y2,this._y2=T}},function f(T){function n(d){return new kc(d,T)}return n.tension=function(d){return f(+d)},n}(0),function sd(f){function T(n){return new ad(f(n))}return T._curve=f,T}(function Sn(f){return new nd(f)}),ad.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(f,T){this._curve.point(T*Math.sin(f),T*-Math.cos(f))}},Math,Math,Math,Math,Math,Math,Math,Math,Math,m(7293),function f(T){function n(d,k,H,se,Se){!function Wl(f,T,n,d,k,H){for(var ht,mt,ni,bi,di,Vi,Gi,Qi,cn,fn,en,se=[],Se=T.children,Dt=0,Ht=0,Ut=Se.length,zi=T.value;DtGi&&(Gi=mt),en=di*di*fn,(Qi=Math.max(Gi/en,en/Vi))>cn){di-=mt;break}cn=Qi}se.push(ht={value:di,dice:ni1?d:1)},n}((1+Math.sqrt(5))/2),Bc.prototype=vd.prototype={constructor:Bc,count:function c2(){return this.eachAfter(ud)},each:function h2(f,T){let n=-1;for(const d of this)f.call(T,d,++n,this);return this},eachAfter:function Fc(f,T){for(var H,se,Se,n=this,d=[n],k=[],ht=-1;n=d.pop();)if(k.push(n),H=n.children)for(se=0,Se=H.length;se=0;--H)d.push(k[H]);return this},find:function Kf(f,T){let n=-1;for(const d of this)if(f.call(T,d,++n,this))return d},sum:function pd(f){return this.eachAfter(function(T){for(var n=+f(T.data)||0,d=T.children,k=d&&d.length;--k>=0;)n+=d[k].value;T.value=n})},sort:function t3(f){return this.eachBefore(function(T){T.children&&T.children.sort(f)})},path:function md(f){for(var T=this,n=function gd(f,T){if(f===T)return f;var n=f.ancestors(),d=T.ancestors(),k=null;for(f=n.pop(),T=d.pop();f===T;)k=f,f=n.pop(),T=d.pop();return k}(T,f),d=[T];T!==n;)d.push(T=T.parent);for(var k=d.length;f!==n;)d.splice(k,0,f),f=f.parent;return d},ancestors:function Qf(){for(var f=this,T=[f];f=f.parent;)T.push(f);return T},descendants:function _d(){return Array.from(this)},leaves:function Jf(){var f=[];return this.eachBefore(function(T){T.children||f.push(T)}),f},links:function Xf(){var f=this,T=[];return f.each(function(n){n!==f&&T.push({source:n.parent,target:n})}),T},copy:function $f(){return vd(this).eachBefore(yd)},[Symbol.iterator]:function*As(){var T,d,k,H,f=this,n=[f];do{for(T=n.reverse(),n=[];f=T.pop();)if(yield f,d=f.children)for(k=0,H=d.length;k{class f{constructor(n,d,k){this.applicationRef=n,this.componentFactoryResolver=d,this.injector=k}static setGlobalRootViewContainer(n){f.globalRootViewContainer=n}getRootViewContainer(){if(this._container)return this._container;if(f.globalRootViewContainer)return f.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(n){this._container=n}getComponentRootNode(n){return function xu(f){return f.element}(n)?n.element.nativeElement:n.hostView&&n.hostView.rootNodes.length>0?n.hostView.rootNodes[0]:n.location.nativeElement}getRootViewContainerNode(n){return this.getComponentRootNode(n)}projectComponentBindings(n,d){if(d){if(void 0!==d.inputs){const k=Object.getOwnPropertyNames(d.inputs);for(const H of k)n.instance[H]=d.inputs[H]}if(void 0!==d.outputs){const k=Object.getOwnPropertyNames(d.outputs);for(const H of k)n.instance[H]=d.outputs[H]}}return n}appendComponent(n,d={},k){k||(k=this.getRootViewContainer());const H=this.getComponentRootNode(k),se=new y.u0(H,this.componentFactoryResolver,this.applicationRef,this.injector),Se=new y.C5(n),ht=se.attach(Se);return this.projectComponentBindings(ht,d),ht}}return f.\u0275fac=function(n){return new(n||f)(e.LFG(e.z2F),e.LFG(e._Vd),e.LFG(e.zs3))},f.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac}),f.globalRootViewContainer=null,f})();function z2(f,T,n){n=n||{};let d,k,H,se=null,Se=0;function ht(){Se=!1===n.leading?0:+new Date,se=null,H=f.apply(d,k)}return function(){const mt=+new Date;!Se&&!1===n.leading&&(Se=mt);const Dt=T-(mt-Se);return d=this,k=arguments,Dt<=0?(clearTimeout(se),se=null,Se=mt,H=f.apply(d,k)):!se&&!1!==n.trailing&&(se=setTimeout(ht,Dt)),H}}function f4(f,T){return function(d,k,H){return{configurable:!0,enumerable:H.enumerable,get:function(){return Object.defineProperty(this,k,{configurable:!0,enumerable:H.enumerable,value:z2(H.value,f,T)}),this[k]}}}}var Dn=(()=>{return(f=Dn||(Dn={})).Top="top",f.Bottom="bottom",f.Left="left",f.Right="right",f.Center="center",Dn;var f})();function $1(f,T,n){return n===Dn.Top?f.top-7:n===Dn.Bottom?f.top+f.height-T.height+7:n===Dn.Center?f.top+f.height/2-T.height/2:void 0}function U2(f,T,n){return n===Dn.Left?f.left-7:n===Dn.Right?f.left+f.width-T.width+7:n===Dn.Center?f.left+f.width/2-T.width/2:void 0}class Es{static calculateVerticalAlignment(T,n,d){let k=$1(T,n,d);return k+n.height>window.innerHeight&&(k=window.innerHeight-n.height),k}static calculateVerticalCaret(T,n,d,k){let H;k===Dn.Top&&(H=T.height/2-d.height/2+7),k===Dn.Bottom&&(H=n.height-T.height/2-d.height/2-7),k===Dn.Center&&(H=n.height/2-d.height/2);const se=$1(T,n,k);return se+n.height>window.innerHeight&&(H+=se+n.height-window.innerHeight),H}static calculateHorizontalAlignment(T,n,d){let k=U2(T,n,d);return k+n.width>window.innerWidth&&(k=window.innerWidth-n.width),k}static calculateHorizontalCaret(T,n,d,k){let H;k===Dn.Left&&(H=T.width/2-d.width/2+7),k===Dn.Right&&(H=n.width-T.width/2-d.width/2-7),k===Dn.Center&&(H=n.width/2-d.width/2);const se=U2(T,n,k);return se+n.width>window.innerWidth&&(H+=se+n.width-window.innerWidth),H}static shouldFlip(T,n,d,k){let H=!1;return d===Dn.Right&&T.left+T.width+n.width+k>window.innerWidth&&(H=!0),d===Dn.Left&&T.left-n.width-k<0&&(H=!0),d===Dn.Top&&T.top-n.height-k<0&&(H=!0),d===Dn.Bottom&&T.top+T.height+n.height+k>window.innerHeight&&(H=!0),H}static positionCaret(T,n,d,k,H){let se=0,Se=0;return T===Dn.Right?(Se=-7,se=Es.calculateVerticalCaret(d,n,k,H)):T===Dn.Left?(Se=n.width,se=Es.calculateVerticalCaret(d,n,k,H)):T===Dn.Top?(se=n.height,Se=Es.calculateHorizontalCaret(d,n,k,H)):T===Dn.Bottom&&(se=-7,Se=Es.calculateHorizontalCaret(d,n,k,H)),{top:se,left:Se}}static positionContent(T,n,d,k,H){let se=0,Se=0;return T===Dn.Right?(Se=d.left+d.width+k,se=Es.calculateVerticalAlignment(d,n,H)):T===Dn.Left?(Se=d.left-n.width-k,se=Es.calculateVerticalAlignment(d,n,H)):T===Dn.Top?(se=d.top-n.height-k,Se=Es.calculateHorizontalAlignment(d,n,H)):T===Dn.Bottom&&(se=d.top+d.height+k,Se=Es.calculateHorizontalAlignment(d,n,H)),{top:se,left:Se}}static determinePlacement(T,n,d,k){if(Es.shouldFlip(d,n,T,k)){if(T===Dn.Right)return Dn.Left;if(T===Dn.Left)return Dn.Right;if(T===Dn.Top)return Dn.Bottom;if(T===Dn.Bottom)return Dn.Top}return T}}let Cu=(()=>{class f{constructor(n,d,k){this.element=n,this.renderer=d,this.platformId=k}get cssClasses(){let n="ngx-charts-tooltip-content";return n+=` position-${this.placement}`,n+=` type-${this.type}`,n+=` ${this.cssClass}`,n}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,t.NF)(this.platformId))return;const n=this.element.nativeElement,d=this.host.nativeElement.getBoundingClientRect();if(!d.height&&!d.width)return;const k=n.getBoundingClientRect();this.checkFlip(d,k),this.positionContent(n,d,k),this.showCaret&&this.positionCaret(d,k),setTimeout(()=>this.renderer.addClass(n,"animate"),1)}positionContent(n,d,k){const{top:H,left:se}=Es.positionContent(this.placement,k,d,this.spacing,this.alignment);this.renderer.setStyle(n,"top",`${H}px`),this.renderer.setStyle(n,"left",`${se}px`)}positionCaret(n,d){const k=this.caretElm.nativeElement,H=k.getBoundingClientRect(),{top:se,left:Se}=Es.positionCaret(this.placement,d,n,H,this.alignment);this.renderer.setStyle(k,"top",`${se}px`),this.renderer.setStyle(k,"left",`${Se}px`)}checkFlip(n,d){this.placement=Es.determinePlacement(this.placement,d,n,this.spacing)}onWindowResize(){this.position()}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-tooltip-content"]],viewQuery:function(n,d){if(1&n&&e.Gf(xd,5),2&n){let k;e.iGM(k=e.CRH())&&(d.caretElm=k.first)}},hostVars:2,hostBindings:function(n,d){1&n&&e.NdJ("resize",function(){return d.onWindowResize()},!1,e.Jf7),2&n&&e.Tol(d.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(n,d){1&n&&(e.TgZ(0,"div"),e._UZ(1,"span",0,1),e.TgZ(3,"div",2),e.YNc(4,r6,2,4,"span",3),e.YNc(5,a6,1,1,"span",4),e.qZA(),e.qZA()),2&n&&(e.xp6(1),e.Gre("tooltip-caret position-",d.placement,""),e.Q6J("hidden",!d.showCaret),e.xp6(3),e.Q6J("ngIf",!d.title),e.xp6(1),e.Q6J("ngIf",d.title))},directives:[t.O5,t.tP],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:normal;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:rgba(0,0,0,.75);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:translate(10px)}.ngx-charts-tooltip-content.position-left{transform:translate(-10px)}.ngx-charts-tooltip-content.position-top{transform:translateY(-10px)}.ngx-charts-tooltip-content.position-bottom{transform:translateY(10px)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translate(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}),(0,C.gn)([f4(100)],f.prototype,"onWindowResize",null),f})(),Vc=(()=>{class f extends class Mu{constructor(T){this.injectionService=T,this.defaults={},this.components=new Map}getByType(T=this.type){return this.components.get(T)}create(T){return this.createByType(this.type,T)}createByType(T,n){n=this.assignDefaults(n);const d=this.injectComponent(T,n);return this.register(T,d),d}destroy(T){const n=this.components.get(T.componentType);if(n&&n.length){const d=n.indexOf(T);d>-1&&(n[d].destroy(),n.splice(d,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(T){const n=this.components.get(T);if(n&&n.length){let d=n.length-1;for(;d>=0;)this.destroy(n[d--])}}injectComponent(T,n){return this.injectionService.appendComponent(T,n)}assignDefaults(T){const n=Object.assign({},this.defaults.inputs),d=Object.assign({},this.defaults.outputs);return!T.inputs&&!T.outputs&&(T={inputs:T}),n&&(T.inputs=Object.assign(Object.assign({},n),T.inputs)),d&&(T.outputs=Object.assign(Object.assign({},d),T.outputs)),T}register(T,n){this.components.has(T)||this.components.set(T,[]),this.components.get(T).push(n)}}{constructor(n){super(n),this.type=Cu}}return f.\u0275fac=function(n){return new(n||f)(e.LFG(X1))},f.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac}),f})();var yr=(()=>{return(f=yr||(yr={})).Right="right",f.Below="below",yr;var f})(),Xo=(()=>{return(f=Xo||(Xo={})).ScaleLegend="scaleLegend",f.Legend="legend",Xo;var f})(),_i=(()=>{return(f=_i||(_i={})).Time="time",f.Linear="linear",f.Ordinal="ordinal",f.Quantile="quantile",_i;var f})();let Wr=(()=>{class f{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new e.vpe,this.legendLabelActivate=new e.vpe,this.legendLabelDeactivate=new e.vpe,this.LegendPosition=yr,this.LegendType=Xo}ngOnChanges(n){this.update()}update(){let n=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===yr.Right)&&(n=this.legendType===Xo.ScaleLegend?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-n)/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==yr.Right?this.chartWidth:Math.floor(this.view[0]*n/12)}getLegendType(){return this.legendOptions.scaleType===_i.Linear?Xo.ScaleLegend:Xo.Legend}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[e._Bn([Vc]),e.TTD],ngContentSelectors:Ad,decls:5,vars:6,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,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(n,d){1&n&&(e.F$t(),e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1),e.Hsn(2),e.qZA(),e.YNc(3,Md,1,5,"ngx-charts-scale-legend",2),e.YNc(4,wd,1,7,"ngx-charts-legend",3),e.qZA()),2&n&&(e.Udp("width",d.view[0],"px"),e.xp6(1),e.uIk("width",d.chartWidth)("height",d.view[1]),e.xp6(2),e.Q6J("ngIf",d.showLegend&&d.legendType===d.LegendType.ScaleLegend),e.xp6(1),e.Q6J("ngIf",d.showLegend&&d.legendType===d.LegendType.Legend))},directives:function(){return[t.O5,K2,q2]},encapsulation:2,changeDetection:0}),f})(),wu=(()=>{class f{constructor(n,d){this.element=n,this.zone=d,this.visible=new e.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const n=()=>{if(!this.element)return;const{offsetHeight:d,offsetWidth:k}=this.element.nativeElement;d&&k?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>n(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>n())})}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq),e.Y36(e.R0b))},f.\u0275dir=e.lG2({type:f,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),f})();function Gc(f){return"[object Date]"===toString.call(f)}let jr=(()=>{class f{constructor(n,d,k,H){this.chartElement=n,this.zone=d,this.cd=k,this.platformId=H,this.scheme="cool",this.schemeType=_i.Ordinal,this.animations=!0,this.select=new e.vpe}ngOnInit(){(0,t.PM)(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new wu(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(n){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 n=this.getContainerDims();n&&(this.width=n.width,this.height=n.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 n,d;const k=this.chartElement.nativeElement;if((0,t.NF)(this.platformId)&&null!==k.parentNode){const H=k.parentNode.getBoundingClientRect();n=H.width,d=H.height}return n&&d?{width:n,height:d}:null}formatDates(){for(let n=0;n{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=d}cloneData(n){const d=[];for(const k of n){const H={name:k.name};if(void 0!==k.value&&(H.value=k.value),void 0!==k.series){H.series=[];for(const se of k.series){const Se=Object.assign({},se);H.series.push(Se)}}void 0!==k.extra&&(H.extra=JSON.parse(JSON.stringify(k.extra))),d.push(H)}return d}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[e.TTD],decls:1,vars:0,template:function(n,d){1&n&&e._UZ(0,"div")},encapsulation:2}),f})();var ba=(()=>{return(f=ba||(ba={})).Top="top",f.Bottom="bottom",f.Left="left",f.Right="right",ba;var f})();let Au=(()=>{class f{constructor(n){this.textHeight=25,this.margin=5,this.element=n.nativeElement}ngOnChanges(n){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case ba.Top:case ba.Bottom:this.y=this.offset,this.x=this.width/2;break;case ba.Left:this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case ba.Right:this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[e.TTD],attrs:go,decls:2,vars:6,template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"text"),e._uU(1),e.qZA()),2&n&&(e.uIk("stroke-width",d.strokeWidth)("x",d.x)("y",d.y)("text-anchor",d.textAnchor)("transform",d.transform),e.xp6(1),e.hij(" ",d.label," "))},encapsulation:2,changeDetection:0}),f})();function $o(f,T=16){return"string"!=typeof f?"number"==typeof f?f+"":"":(f=f.trim()).length<=T?f:`${f.slice(0,T)}...`}function Eu(f,T){if(f.length>T){const n=[],d=Math.floor(f.length/T);for(let k=0;k{return(f=Xa||(Xa={})).Start="start",f.Middle="middle",f.End="end",Xa;var f})();let Tu=(()=>{class f{constructor(n){this.platformId=n,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new e.vpe,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor=Xa.Middle,this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.approxHeight=10}ngOnChanges(n){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,t.NF)(this.platformId))return void this.dimensionsChanged.emit({height:this.approxHeight});const n=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);n!==this.height&&(this.height=n,this.dimensionsChanged.emit({height:this.height}),setTimeout(()=>this.updateDims()))}update(){const n=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:n.tickFormat?n.tickFormat.apply(n,this.tickArguments):function(k){return"Date"===k.constructor.name?k.toLocaleDateString():k.toLocaleString()};const d=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(k){return this.scale(k)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",d&&0!==d?(this.textTransform=`rotate(${d})`,this.textAnchor=Xa.End,this.verticalSpacing=10):this.textAnchor=Xa.Middle,setTimeout(()=>this.updateDims())}getRotationAngle(n){let d=0;this.maxTicksLength=0;for(let mt=0;mtthis.maxTicksLength&&(this.maxTicksLength=Ht)}const se=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let Se=se;const ht=Math.floor(this.width/n.length);for(;Se>ht&&d>-90;)d-=30,Se=Math.cos(d*(Math.PI/180))*se;return this.approxHeight=Math.max(Math.abs(Math.sin(d*(Math.PI/180))*se),10),d}getTicks(){let n;const d=this.getMaxTicks(20),k=this.getMaxTicks(100);return this.tickValues?n=this.tickValues:this.scale.ticks?n=this.scale.ticks.apply(this.scale,[k]):(n=this.scale.domain(),n=Eu(n,d)),n}getMaxTicks(n){return Math.floor(this.width/n)}tickTransform(n){return"translate("+this.adjustedScale(n)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(n){return this.trimTicks?$o(n,this.maxTickLength):n}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(n,d){if(1&n&&e.Gf(V1,5),2&n){let k;e.iGM(k=e.CRH())&&(d.ticksElement=k.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:s6,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"g",null,0),e.YNc(2,o6,5,7,"g",1),e.qZA(),e.YNc(3,Ed,2,2,"g",2)),2&n&&(e.xp6(2),e.Q6J("ngForOf",d.ticks),e.xp6(1),e.Q6J("ngForOf",d.ticks))},directives:[t.sg,t.O5],encapsulation:2,changeDetection:0}),f})(),ir=(()=>{class f{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient=ba.Bottom,this.xAxisOffset=0,this.dimensionsChanged=new e.vpe,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5,this.orientation=ba}ngOnChanges(n){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,void 0!==this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:n}){const d=n+25+5;d!==this.labelOffset&&(this.labelOffset=d,setTimeout(()=>{this.dimensionsChanged.emit({height:n})},0))}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(n,d){if(1&n&&e.Gf(Tu,5),2&n){let k;e.iGM(k=e.CRH())&&(d.ticksComponent=k.first)}},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:l6,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,c6,1,12,"g",0),e.YNc(2,Td,1,5,"g",1),e.qZA()),2&n&&(e.uIk("class",d.xAxisClassName)("transform",d.transform),e.xp6(1),e.Q6J("ngIf",d.xScale),e.xp6(1),e.Q6J("ngIf",d.showLabel))},directives:[t.O5,Tu,Au],encapsulation:2,changeDetection:0}),f})();function Bs(f,T,n,d,k,[H,se,Se,ht]){let mt="";return mt=`M${[f+k,T]}`,mt+="h"+((n=0===(n=Math.floor(n))?1:n)-2*k),mt+=se?`a${[k,k]} 0 0 1 ${[k,k]}`:`h${k}v${k}`,mt+="v"+((d=0===(d=Math.floor(d))?1:d)-2*k),mt+=ht?`a${[k,k]} 0 0 1 ${[-k,k]}`:`v${k}h${-k}`,mt+="h"+(2*k-n),mt+=Se?`a${[k,k]} 0 0 1 ${[-k,-k]}`:`h${-k}v${-k}`,mt+="v"+(2*k-d),mt+=H?`a${[k,k]} 0 0 1 ${[k,-k]}`:`v${-k}h${k}`,mt+="z",mt}let Su=(()=>{class f{constructor(n){this.platformId=n,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new e.vpe,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor=Xa.Middle,this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.Orientation=ba}ngOnChanges(n){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,t.NF)(this.platformId))return this.width=this.getApproximateAxisWidth(),void this.dimensionsChanged.emit({width:this.width});const n=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);n!==this.width&&(this.width=n,this.dimensionsChanged.emit({width:n}),setTimeout(()=>this.updateDims()))}update(){let n;const d=this.orient===ba.Top||this.orient===ba.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,n=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:n.tickFormat?n.tickFormat.apply(n,this.tickArguments):function(k){return"Date"===k.constructor.name?k.toLocaleDateString():k.toLocaleString()},this.adjustedScale=n.bandwidth?function(k){return n(k)+.5*n.bandwidth()}:n,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case ba.Top:case ba.Bottom:this.transform=function(k){return"translate("+this.adjustedScale(k)+",0)"},this.textAnchor=Xa.Middle,this.y2=this.innerTickSize*d,this.y1=this.tickSpacing*d,this.dy=d<0?"0em":".71em";break;case ba.Left:this.transform=function(k){return"translate(0,"+this.adjustedScale(k)+")"},this.textAnchor=Xa.End,this.x2=this.innerTickSize*-d,this.x1=this.tickSpacing*-d,this.dy=".32em";break;case ba.Right:this.transform=function(k){return"translate(0,"+this.adjustedScale(k)+")"},this.textAnchor=Xa.Start,this.x2=this.innerTickSize*-d,this.x1=this.tickSpacing*-d,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(n=>n.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(n=>n.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=Bs(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let n;const d=this.getMaxTicks(20),k=this.getMaxTicks(50);return this.tickValues?n=this.tickValues:this.scale.ticks?n=this.scale.ticks.apply(this.scale,[k]):(n=this.scale.domain(),n=Eu(n,d)),n}getMaxTicks(n){return Math.floor(this.height/n)}tickTransform(n){return`translate(${this.adjustedScale(n)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(n){return this.trimTicks?$o(n,this.maxTickLength):n}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(k=>this.tickTrim(this.tickFormat(k)).length))}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(n,d){if(1&n&&e.Gf(V1,5),2&n){let k;e.iGM(k=e.CRH())&&(d.ticksElement=k.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:f2,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"g",null,0),e.YNc(2,h6,5,9,"g",1),e.qZA(),e.YNc(3,d6,1,2,"path",2),e.YNc(4,p2,2,2,"g",3),e.YNc(5,f6,2,1,"g",3)),2&n&&(e.xp6(2),e.Q6J("ngForOf",d.ticks),e.xp6(1),e.Q6J("ngIf",d.referenceLineLength>1&&d.refMax&&d.refMin&&d.showRefLines),e.xp6(1),e.Q6J("ngForOf",d.ticks),e.xp6(1),e.Q6J("ngForOf",d.referenceLines))},directives:[t.sg,t.O5],encapsulation:2,changeDetection:0}),f})(),$a=(()=>{class f{constructor(){this.showGridLines=!1,this.yOrient=ba.Left,this.yAxisOffset=0,this.dimensionsChanged=new e.vpe,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(n){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),this.yOrient===ba.Right?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:n}){n!==this.labelOffset&&this.yOrient===ba.Right?(this.labelOffset=n+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:n})},0)):n!==this.labelOffset&&(this.labelOffset=n,setTimeout(()=>{this.dimensionsChanged.emit({width:n})},0))}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(n,d){if(1&n&&e.Gf(Su,5),2&n){let k;e.iGM(k=e.CRH())&&(d.ticksComponent=k.first)}},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:p6,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","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,g2,1,14,"g",0),e.YNc(2,a3,1,5,"g",1),e.qZA()),2&n&&(e.uIk("class",d.yAxisClassName)("transform",d.transform),e.xp6(1),e.Q6J("ngIf",d.yScale),e.xp6(1),e.Q6J("ngIf",d.showLabel))},directives:[t.O5,Su,Au],encapsulation:2,changeDetection:0}),f})(),V2=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[t.ez]]}),f})();var cs=(()=>{return(f=cs||(cs={})).popover="popover",f.tooltip="tooltip",cs;var f})(),Ao=(()=>{return(f=Ao||(Ao={}))[f.all="all"]="all",f[f.focus="focus"]="focus",f[f.mouseover="mouseover"]="mouseover",Ao;var f})();let Ts=(()=>{class f{constructor(n,d,k){this.tooltipService=n,this.viewContainerRef=d,this.renderer=k,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Dn.Top,this.tooltipAlignment=Dn.Center,this.tooltipType=cs.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Ao.all,this.tooltipImmediateExit=!1,this.show=new e.vpe,this.hide=new e.vpe}get listensForFocus(){return this.tooltipShowEvent===Ao.all||this.tooltipShowEvent===Ao.focus}get listensForHover(){return this.tooltipShowEvent===Ao.all||this.tooltipShowEvent===Ao.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(n){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(n))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(n){if(this.component||this.tooltipDisabled)return;const d=n?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const k=this.createBoundOptions();this.component=this.tooltipService.create(k),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},d)}addHideListeners(n){this.mouseEnterContentEvent=this.renderer.listen(n,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(n,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",d=>{n.contains(d.target)||this.hideTooltip()}))}hideTooltip(n=!1){if(!this.component)return;const d=()=>{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),n?d():this.timeout=setTimeout(d,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}}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(Vc),e.Y36(e.s_b),e.Y36(e.Qsj))},f.\u0275dir=e.lG2({type:f,selectors:[["","ngx-tooltip",""]],hostBindings:function(n,d){1&n&&e.NdJ("focusin",function(){return d.onFocus()})("blur",function(){return d.onBlur()})("mouseenter",function(){return d.onMouseEnter()})("mouseleave",function(H){return d.onMouseLeave(H.target)})("click",function(){return d.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTitle:"tooltipTitle",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),f})(),Cl=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({providers:[X1,Vc],imports:[[t.ez]]}),f})();function Ua(f){return f instanceof Date?f.toLocaleDateString():f.toLocaleString()}const G2={};function es(){let f=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return f=`a${f}`,G2[f]?es():(G2[f]=!0,f)}var lr=(()=>{return(f=lr||(lr={})).Vertical="vertical",f.Horizontal="horizontal",lr;var f})();let Xs=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{width:"width",height:"height",x:"x",y:"y"},attrs:Id,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(n,d){1&n&&(e.O4$(),e._UZ(0,"rect",0)),2&n&&e.uIk("height",d.height)("width",d.width)("x",d.x)("y",d.y)},encapsulation:2,changeDetection:0}),f})();var ac=(()=>{return(f=ac||(ac={})).Odd="odd",f.Even="even",ac;var f})();let j2,e0=(()=>{class f{ngOnChanges(n){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(n=>{let d,k,H,se,Se,ht=ac.Odd;if(this.orient===lr.Vertical){const mt=this.xScale(n.name);Number.parseInt((mt/this.xScale.step()).toString(),10)%2==1&&(ht=ac.Even),d=this.xScale.bandwidth()*this.xScale.paddingInner(),k=this.xScale.bandwidth()+d,H=this.dims.height,se=this.xScale(n.name)-d/2,Se=0}else if(this.orient===lr.Horizontal){const mt=this.yScale(n.name);Number.parseInt((mt/this.yScale.step()).toString(),10)%2==1&&(ht=ac.Even),d=this.yScale.bandwidth()*this.yScale.paddingInner(),k=this.dims.width,H=this.yScale.bandwidth()+d,se=0,Se=this.yScale(n.name)-d/2}return{name:n.name,class:ht,height:H,width:k,x:se,y:Se}})}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},features:[e.TTD],attrs:Mo,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(n,d){1&n&&e.YNc(0,W1,1,10,"g",0),2&n&&e.Q6J("ngForOf",d.gridPanels)},directives:[t.sg,Xs],encapsulation:2,changeDetection:0}),f})(),ts=(()=>{class f{constructor(){this.orientation=lr.Vertical}ngOnChanges(n){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%",this.orientation===lr.Horizontal?this.x2="100%":this.orientation===lr.Vertical&&(this.y1="100%")}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[e.TTD],attrs:g6,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"linearGradient",0),e.YNc(1,_6,1,5,"stop",1),e.qZA()),2&n&&(e.Q6J("id",d.name),e.uIk("x1",d.x1)("y1",d.y1)("x2",d.x2)("y2",d.y2),e.xp6(1),e.Q6J("ngForOf",d.stops))},directives:[t.sg],encapsulation:2,changeDetection:0}),f})();"undefined"!=typeof window?j2=window:"undefined"!=typeof global&&(j2=global);let q2=(()=>{class f{constructor(n){this.cd=n,this.horizontal=!1,this.labelClick=new e.vpe,this.labelActivate=new e.vpe,this.labelDeactivate=new e.vpe,this.legendEntries=[]}ngOnChanges(n){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const n=[];for(const d of this.data){const k=Ua(d);-1===n.findIndex(se=>se.label===k)&&n.push({label:d,formattedLabel:k,color:this.colors.getColor(d)})}return n}isActive(n){return!!this.activeEntries&&void 0!==this.activeEntries.find(k=>n.label===k.name)}activate(n){this.labelActivate.emit(n)}deactivate(n){this.labelDeactivate.emit(n)}trackBy(n,d){return d.label}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.sBO))},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[e.TTD],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,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(n,d){1&n&&(e.TgZ(0,"div"),e.YNc(1,y6,3,1,"header",0),e.TgZ(2,"div",1),e.TgZ(3,"ul",2),e.YNc(4,C2,2,4,"li",3),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Udp("width",d.width,"px"),e.xp6(1),e.Q6J("ngIf",(null==d.title?null:d.title.length)>0),e.xp6(2),e.Udp("max-height",d.height-45,"px"),e.ekj("horizontal-legend",d.horizontal),e.xp6(1),e.Q6J("ngForOf",d.legendEntries)("ngForTrackBy",d.trackBy))},directives:function(){return[t.O5,t.sg,Ou]},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:bold}.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:rgba(0,0,0,.05)}.chart-legend .legend-label{cursor:pointer;font-size:90%;margin:8px;color:#afb7c8}.chart-legend .legend-label:hover{color:#000;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}),f})(),Ou=(()=>{class f{constructor(){this.isActive=!1,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.toggle=new e.vpe}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(n,d){1&n&&e.NdJ("mouseenter",function(){return d.onMouseEnter()})("mouseleave",function(){return d.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(n,d){1&n&&(e.TgZ(0,"span",0),e.NdJ("click",function(){return d.select.emit(d.formattedLabel)}),e.TgZ(1,"span",1),e.NdJ("click",function(){return d.toggle.emit(d.formattedLabel)}),e.qZA(),e.TgZ(2,"span",2),e._uU(3),e.qZA(),e.qZA()),2&n&&(e.ekj("active",d.isActive),e.Q6J("title",d.formattedLabel),e.xp6(1),e.Udp("background-color",d.color),e.xp6(2),e.hij(" ",d.trimmedLabel," "))},encapsulation:2,changeDetection:0}),f})(),K2=(()=>{class f{constructor(){this.horizontal=!1}ngOnChanges(n){const d=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${d})`}gradientString(n,d){d.push(1);const k=[];return n.reverse().forEach((H,se)=>{k.push(`${H} ${Math.round(100*d[se])}%`)}),k.join(", ")}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[e.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(n,d){1&n&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"span"),e._uU(3),e.qZA(),e.qZA(),e._UZ(4,"div",2),e.TgZ(5,"div",1),e.TgZ(6,"span"),e._uU(7),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Udp("height",d.horizontal?void 0:d.height,"px")("width",d.width,"px"),e.ekj("horizontal-legend",d.horizontal),e.xp6(3),e.Oqu(d.valueRange[1].toLocaleString()),e.xp6(1),e.Udp("background",d.gradient),e.xp6(3),e.Oqu(d.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}),f})(),Hs=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[t.ez,V2,Cl],t.ez,V2,Cl]}),f})();function qr({width:f,height:T,margins:n,showXAxis:d=!1,showYAxis:k=!1,xAxisHeight:H=0,yAxisWidth:se=0,showXLabel:Se=!1,showYLabel:ht=!1,showLegend:mt=!1,legendType:Dt=_i.Ordinal,legendPosition:Ht=yr.Right,columns:Ut=12}){let ni=n[3],bi=f,zi=T-n[0]-n[2];return mt&&Ht===yr.Right&&(Ut-=Dt===_i.Ordinal?2:1),bi=bi*Ut/12,bi=bi-n[1]-n[3],d&&(zi-=5,zi-=H,Se&&(zi-=30)),k&&(bi-=5,bi-=se,ni+=se,ni+=10,ht&&(bi-=30,ni+=30)),bi=Math.max(0,bi),zi=Math.max(0,zi),{width:Math.floor(bi),height:Math.floor(zi),xOffset:Math.floor(ni)}}let X2=[{name:"vivid",selectable:!0,group:_i.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:_i.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:_i.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:_i.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:_i.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:_i.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:_i.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:_i.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:_i.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:_i.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:_i.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:_i.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:_i.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:_i.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:_i.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class Kr{constructor(T,n,d,k){"string"==typeof T&&(T=X2.find(H=>H.name===T)),this.colorDomain=T.domain,this.scaleType=n,this.domain=d,this.customColors=k,this.scale=this.generateColorScheme(T,n,this.domain)}generateColorScheme(T,n,d){let k;switch("string"==typeof T&&(T=X2.find(H=>H.name===T)),n){case _i.Quantile:k=id().range(T.domain).domain(d);break;case _i.Ordinal:k=I1().range(T.domain).domain(d);break;case _i.Linear:{const H=[...T.domain];1===H.length&&(H.push(H[0]),this.colorDomain=H);const se=j0(0,1,1/H.length);k=Ar().range(H).domain(se)}}return k}getColor(T){if(null==T)throw new Error("Value can not be null");if(this.scaleType===_i.Linear){const n=Ar().domain(this.domain).range([0,1]);return this.scale(n(T))}{if("function"==typeof this.customColors)return this.customColors(T);const n=T.toString();let d;return this.customColors&&this.customColors.length>0&&(d=this.customColors.find(k=>k.name.toLowerCase()===n.toLowerCase())),d?d.value:this.scale(T)}}getLinearGradientStops(T,n){void 0===n&&(n=this.domain[0]);const d=Ar().domain(this.domain).range([0,1]),k=Er().domain(this.colorDomain).range([0,1]),H=this.getColor(T),se=d(n),Se=this.getColor(n),ht=d(T);let mt=1,Dt=se;const Ht=[];for(Ht.push({color:Se,offset:se,originalOffset:se,opacity:1});Dt=(ht-k.bandwidth()).toFixed(4))break;Ht.push({color:Ut,offset:ni,opacity:1}),Dt=ni,mt++}}if(Ht[Ht.length-1].offset<100&&Ht.push({color:H,offset:ht,opacity:1}),ht===se)Ht[0].offset=0,Ht[1].offset=100;else if(100!==Ht[Ht.length-1].offset)for(const Ut of Ht)Ut.offset=(Ut.offset-se)/(ht-se)*100;return Ht}}let m4=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),s0=(()=>{class f{constructor(n){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.hasGradient=!1,this.hideBar=!1,this.element=n.nativeElement}ngOnChanges(n){n.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+es().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 n=function ot(f){return"string"==typeof f?new yi([[document.querySelector(f)]],[document.documentElement]):new yi([[f]],Pt)}(this.element).select(".bar"),d=this.getPath();this.animations?n.transition().duration(500).attr("d",d):n.attr("d",d)}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 d,n=this.getRadius();return this.roundEdges?this.orientation===lr.Vertical?(n=Math.min(this.height,n),d=Bs(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===lr.Horizontal&&(n=Math.min(this.width,n),d=Bs(this.x,this.y,1,this.height,0,this.edges)):this.orientation===lr.Vertical?d=Bs(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===lr.Horizontal&&(d=Bs(this.x,this.y,1,this.height,0,this.edges)),d}getPath(){let d,n=this.getRadius();return this.roundEdges?this.orientation===lr.Vertical?(n=Math.min(this.height,n),d=Bs(this.x,this.y,this.width,this.height,n,this.edges)):this.orientation===lr.Horizontal&&(n=Math.min(this.width,n),d=Bs(this.x,this.y,this.width,this.height,n,this.edges)):d=Bs(this.x,this.y,this.width,this.height,n,this.edges),d}getRadius(){let n=0;return this.roundEdges&&this.height>5&&this.width>5&&(n=Math.floor(Math.min(5,this.height/2,this.width/2))),n}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let n=[!1,!1,!1,!1];return this.roundEdges&&(this.orientation===lr.Vertical?n=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:this.orientation===lr.Horizontal&&(n=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),n}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&(this.orientation===lr.Vertical&&0===this.height||this.orientation===lr.Horizontal&&0===this.width)}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(n,d){1&n&&e.NdJ("mouseenter",function(){return d.onMouseEnter()})("mouseleave",function(){return d.onMouseLeave()})},inputs:{roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",animations:"animations",noBarWhenZero:"noBarWhenZero",fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",stops:"stops",ariaLabel:"ariaLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[e.TTD],attrs:h3,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(n,d){1&n&&(e.YNc(0,Js,2,3,"defs",0),e.O4$(),e.TgZ(1,"path",1),e.NdJ("click",function(){return d.select.emit(d.data)}),e.qZA()),2&n&&(e.Q6J("ngIf",d.hasGradient),e.xp6(1),e.ekj("active",d.isActive)("hidden",d.hideBar),e.uIk("d",d.path)("aria-label",d.ariaLabel)("fill",d.hasGradient?d.gradientFill:d.fill))},directives:[t.O5,ts],encapsulation:2,changeDetection:0}),f})();var xa=(()=>{return(f=xa||(xa={})).Standard="standard",f.Normalized="normalized",f.Stacked="stacked",xa;var f})();let g4=(()=>{class f extends jr{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=yr.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.activate=new e.vpe,this.deactivate=new e.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive: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=qr({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})`}getXScale(){this.xDomain=this.getXDomain();const n=this.xDomain.length/(this.dims.width/this.barPadding+1);return Er().range([0,this.dims.width]).paddingInner(n).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const n=Ar().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?n.nice():n}getXDomain(){return this.results.map(n=>n.label)}getYDomain(){const n=this.results.map(H=>H.value);let d=this.yScaleMin?Math.min(this.yScaleMin,...n):Math.min(0,...n);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(d=Math.min(d,...this.yAxisTicks));let k=this.yScaleMax?Math.max(this.yScaleMax,...n):Math.max(0,...n);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(k=Math.max(k,...this.yAxisTicks)),[d,k]}onClick(n){this.select.emit(n)}setColors(){let n;n=this.schemeType===_i.Ordinal?this.xDomain:this.yDomain,this.colors=new Kr(this.scheme,this.schemeType,n,this.customColors)}getLegendOptions(){const n={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return n.scaleType===_i.Ordinal?(n.domain=this.xDomain,n.colors=this.colors,n.title=this.legendTitle):(n.domain=this.yDomain,n.colors=this.colors.scale),n}updateYAxisWidth({width:n}){this.yAxisWidth=n,this.update()}updateXAxisHeight({height:n}){this.xAxisHeight=n,this.update()}onDataLabelMaxHeightChanged(n){n.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,n.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,n.size.height),n.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(n,d=!1){n=this.results.find(H=>d?H.label===n.name:H.name===n.name),!(this.activeEntries.findIndex(H=>H.name===n.name&&H.value===n.value&&H.series===n.series)>-1)&&(this.activeEntries=[n,...this.activeEntries],this.activate.emit({value:n,entries:this.activeEntries}))}onDeactivate(n,d=!1){n=this.results.find(H=>d?H.label===n.name:H.name===n.name);const k=this.activeEntries.findIndex(H=>H.name===n.name&&H.value===n.value&&H.series===n.series);this.activeEntries.splice(k,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:n,entries:this.activeEntries})}}return f.\u0275fac=function(){let T;return function(d){return(T||(T=e.n5z(f)))(d||f)}}(),f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(n,d,k){if(1&n&&e.Suo(k,Hr,5),2&n){let H;e.iGM(H=e.CRH())&&(d.tooltipTemplate=H.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","activeEntries","roundEdges","animations","noBarWhenZero","activate","deactivate","select","dataLabelHeightChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"]],template:function(n,d){1&n&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(H){return d.onClick(H)})("legendLabelActivate",function(H){return d.onActivate(H,!0)})("legendLabelDeactivate",function(H){return d.onDeactivate(H,!0)}),e.O4$(),e.TgZ(1,"g",1),e.YNc(2,N6,1,11,"g",2),e.YNc(3,R6,1,9,"g",3),e.TgZ(4,"g",4),e.NdJ("activate",function(H){return d.onActivate(H)})("deactivate",function(H){return d.onDeactivate(H)})("select",function(H){return d.onClick(H)})("dataLabelHeightChanged",function(H){return d.onDataLabelMaxHeightChanged(H)}),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Q6J("view",e.WLB(22,vr,d.width,d.height))("showLegend",d.legend)("legendOptions",d.legendOptions)("activeEntries",d.activeEntries)("animations",d.animations),e.xp6(1),e.uIk("transform",d.transform),e.xp6(1),e.Q6J("ngIf",d.xAxis),e.xp6(1),e.Q6J("ngIf",d.yAxis),e.xp6(1),e.Q6J("xScale",d.xScale)("yScale",d.yScale)("colors",d.colors)("series",d.results)("dims",d.dims)("gradient",d.gradient)("tooltipDisabled",d.tooltipDisabled)("tooltipTemplate",d.tooltipTemplate)("showDataLabel",d.showDataLabel)("dataLabelFormatting",d.dataLabelFormatting)("activeEntries",d.activeEntries)("roundEdges",d.roundEdges)("animations",d.animations)("noBarWhenZero",d.noBarWhenZero))},directives:function(){return[Wr,t.O5,qc,ir,$a]},styles:[oa],encapsulation:2,changeDetection:0}),f})(),_4=(()=>{class f extends jr{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=yr.Right,this.tooltipDisabled=!1,this.scaleType=_i.Ordinal,this.showGridLines=!0,this.activeEntries=[],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.activate=new e.vpe,this.deactivate=new e.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0},this.barOrientation=lr,this.trackBy=(n,d)=>d.name}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=qr({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(n,d){n.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,n.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,n.size.height),d===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const n=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return Er().rangeRound([0,this.dims.width]).paddingInner(n).paddingOuter(n/2).domain(this.groupDomain)}getInnerScale(){const n=this.groupScale.bandwidth(),d=this.innerDomain.length/(n/this.barPadding+1);return Er().rangeRound([0,n]).paddingInner(d).domain(this.innerDomain)}getValueScale(){const n=Ar().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?n.nice():n}getGroupDomain(){const n=[];for(const d of this.results)n.includes(d.label)||n.push(d.label);return n}getInnerDomain(){const n=[];for(const d of this.results)for(const k of d.series)n.includes(k.label)||n.push(k.label);return n}getValueDomain(){const n=[];for(const H of this.results)for(const se of H.series)n.includes(se.value)||n.push(se.value);return[Math.min(0,...n),this.yScaleMax?Math.max(this.yScaleMax,...n):Math.max(0,...n)]}groupTransform(n){return`translate(${this.groupScale(n.label)}, 0)`}onClick(n,d){d&&(n.series=d.name),this.select.emit(n)}setColors(){let n;n=this.schemeType===_i.Ordinal?this.innerDomain:this.valueDomain,this.colors=new Kr(this.scheme,this.schemeType,n,this.customColors)}getLegendOptions(){const n={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return n.scaleType===_i.Ordinal?(n.domain=this.innerDomain,n.colors=this.colors,n.title=this.legendTitle):(n.domain=this.valueDomain,n.colors=this.colors.scale),n}updateYAxisWidth({width:n}){this.yAxisWidth=n,this.update()}updateXAxisHeight({height:n}){this.xAxisHeight=n,this.update()}onActivate(n,d,k=!1){const H=Object.assign({},n);d&&(H.series=d.name);const se=this.results.map(Se=>Se.series).flat().filter(Se=>k?Se.label===H.name:Se.name===H.name&&Se.series===H.series);this.activeEntries=[...se],this.activate.emit({value:H,entries:this.activeEntries})}onDeactivate(n,d,k=!1){const H=Object.assign({},n);d&&(H.series=d.name),this.activeEntries=this.activeEntries.filter(se=>k?se.label!==H.name:!(se.name===H.name&&se.series===H.series)),this.deactivate.emit({value:H,entries:this.activeEntries})}}return f.\u0275fac=function(){let T;return function(d){return(T||(T=e.n5z(f)))(d||f)}}(),f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(n,d,k){if(1&n&&e.Suo(k,Hr,5),2&n){let H;e.iGM(H=e.CRH())&&(d.tooltipTemplate=H.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",scaleType:"scaleType",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:6,vars:18,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[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","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["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-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged"]],template:function(n,d){1&n&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelActivate",function(H){return d.onActivate(H,void 0,!0)})("legendLabelDeactivate",function(H){return d.onDeactivate(H,void 0,!0)})("legendLabelClick",function(H){return d.onClick(H)}),e.O4$(),e.TgZ(1,"g",1),e._UZ(2,"g",2),e.YNc(3,F6,1,10,"g",3),e.YNc(4,B6,1,9,"g",4),e.YNc(5,H6,1,17,"g",5),e.qZA(),e.qZA()),2&n&&(e.Q6J("view",e.WLB(15,vr,d.width,d.height))("showLegend",d.legend)("legendOptions",d.legendOptions)("activeEntries",d.activeEntries)("animations",d.animations),e.xp6(1),e.uIk("transform",d.transform),e.xp6(1),e.Q6J("xScale",d.groupScale)("yScale",d.valueScale)("data",d.results)("dims",d.dims)("orient",d.barOrientation.Vertical),e.xp6(1),e.Q6J("ngIf",d.xAxis),e.xp6(1),e.Q6J("ngIf",d.yAxis),e.xp6(1),e.Q6J("ngForOf",d.results)("ngForTrackBy",d.trackBy))},directives:function(){return[Wr,e0,t.O5,t.sg,ir,$a,qc]},styles:[oa],encapsulation:2,data:{animation:[(0,l.X$)("animationState",[(0,l.eR)(":leave",[(0,l.oB)({opacity:1,transform:"*"}),(0,l.jt)(500,(0,l.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),f})();var Ls=(()=>{return(f=Ls||(Ls={})).positive="positive",f.negative="negative",Ls;var f})();let qc=(()=>{class f{constructor(){this.type=xa.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.dataLabelHeightChanged=new e.vpe,this.barsForDataLabels=[],this.barOrientation=lr}ngOnChanges(n){this.update()}update(){let n;this.updateTooltipSettings(),this.series.length&&(n=this.xScale.bandwidth()),n=Math.round(n);const d=Math.max(this.yScale.domain()[0],0),k={[Ls.positive]:0,[Ls.negative]:0};let se,H=Ls.positive;this.type===xa.Normalized&&(se=this.series.map(Se=>Se.value).reduce((Se,ht)=>Se+ht,0)),this.bars=this.series.map((Se,ht)=>{let mt=Se.value;const Dt=this.getLabel(Se),Ht=Ua(Dt);H=mt>0?Ls.positive:Ls.negative;const ni={value:mt,label:Dt,roundEdges:this.roundEdges,data:Se,width:n,formattedLabel:Ht,height:0,x:0,y:0};if(this.type===xa.Standard)ni.height=Math.abs(this.yScale(mt)-this.yScale(d)),ni.x=this.xScale(Dt),ni.y=this.yScale(mt<0?0:mt);else if(this.type===xa.Stacked){const zi=k[H],di=zi+mt;k[H]+=mt,ni.height=this.yScale(zi)-this.yScale(di),ni.x=0,ni.y=this.yScale(di),ni.offset0=zi,ni.offset1=di}else if(this.type===xa.Normalized){let zi=k[H],di=zi+mt;k[H]+=mt,se>0?(zi=100*zi/se,di=100*di/se):(zi=0,di=0),ni.height=this.yScale(zi)-this.yScale(di),ni.x=0,ni.y=this.yScale(di),ni.offset0=zi,ni.offset1=di,mt=(di-zi).toFixed(2)+"%"}this.colors.scaleType===_i.Ordinal?ni.color=this.colors.getColor(Dt):this.type===xa.Standard?(ni.color=this.colors.getColor(mt),ni.gradientStops=this.colors.getLinearGradientStops(mt)):(ni.color=this.colors.getColor(ni.offset1),ni.gradientStops=this.colors.getLinearGradientStops(ni.offset1,ni.offset0));let bi=Ht;return ni.ariaLabel=Ht+" "+mt.toLocaleString(),null!=this.seriesName&&(bi=`${this.seriesName} \u2022 ${Ht}`,ni.data.series=this.seriesName,ni.ariaLabel=this.seriesName+" "+ni.ariaLabel),ni.tooltipText=this.tooltipDisabled?void 0:`\n ${function Ta(f){return f.toLocaleString().replace(/[&'`"<>]/g,T=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[T]))}(bi)}\n ${this.dataLabelFormatting?this.dataLabelFormatting(mt):mt.toLocaleString()}\n `,ni}),this.updateDataLabels()}updateDataLabels(){if(this.type===xa.Stacked){this.barsForDataLabels=[];const n={};n.series=this.seriesName;const d=this.series.map(H=>H.value).reduce((H,se)=>se>0?H+se:H,0),k=this.series.map(H=>H.value).reduce((H,se)=>se<0?H+se:H,0);n.total=d+k,n.x=0,n.y=0,n.height=this.yScale(n.total>0?d:k),n.width=this.xScale.bandwidth(),this.barsForDataLabels.push(n)}else this.barsForDataLabels=this.series.map(n=>{var d;const k={};return k.series=null!==(d=this.seriesName)&&void 0!==d?d:n.label,k.total=n.value,k.x=this.xScale(n.label),k.y=this.yScale(0),k.height=this.yScale(k.total)-this.yScale(0),k.width=this.xScale.bandwidth(),k})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:Dn.Top,this.tooltipType=this.tooltipDisabled?void 0:cs.tooltip}isActive(n){return!!this.activeEntries&&void 0!==this.activeEntries.find(k=>n.name===k.name&&n.value===k.value)}onClick(n){this.select.emit(n)}getLabel(n){return n.label?n.label:n.name}trackBy(n,d){return d.label}trackDataLabelBy(n,d){return n+"#"+d.series+"#"+d.total}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",animations:"animations",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",dims:"dims",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",dataLabelFormatting:"dataLabelFormatting"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[e.TTD],attrs:ls,decls:2,vars:3,consts:[["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"],[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"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(n,d){1&n&&(e.YNc(0,bl,1,22,"g",0),e.YNc(1,Fs,2,2,"g",1)),2&n&&(e.Q6J("ngForOf",d.bars)("ngForTrackBy",d.trackBy),e.xp6(1),e.Q6J("ngIf",d.showDataLabel))},directives:function(){return[t.sg,t.O5,s0,Ts,Pu]},encapsulation:2,data:{animation:[(0,l.X$)("animationState",[(0,l.eR)(":leave",[(0,l.oB)({opacity:1}),(0,l.jt)(500,(0,l.oB)({opacity:0}))])])]},changeDetection:0}),f})(),Pu=(()=>{class f{constructor(n){this.dimensionsChanged=new e.vpe,this.horizontalPadding=2,this.verticalPadding=5,this.element=n.nativeElement}ngOnChanges(n){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):Ua(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})`)}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:S2,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"text",0),e._uU(1),e.qZA()),2&n&&(e.uIk("text-anchor",d.textAnchor)("transform",d.transform)("x",d.x)("y",d.y),e.xp6(1),e.hij(" ",d.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),f})(),Nu=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),Bu=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),zu=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),El=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),y4=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})();Math;let ia=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),I3=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs,ia,y4]]}),f})(),w4=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),E4=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs]]}),f})(),J3=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Hs,ia,Nu]]}),f})(),lh=(()=>{class f{constructor(){!function oh(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[Hs,m4,Nu,Bu,zu,El,y4,I3,w4,ia,E4,J3]}),f})()},7977:(Ve,Q,m)=>{"use strict";const e=Q;e.bignum=m(3854),e.define=m(9516).define,e.base=m(7813),e.constants=m(5459),e.decoders=m(196),e.encoders=m(1131)},9516:(Ve,Q,m)=>{"use strict";const e=m(1131),t=m(196),y=m(3894);function o(M,l){this.name=M,this.body=l,this.decoders={},this.encoders={}}Q.define=function(l,N){return new o(l,N)},o.prototype._createNamed=function(l){const N=this.name;function s(D){this._initNamed(D,N)}return y(s,l),s.prototype._initNamed=function(A,O){l.call(this,A,O)},new s(this)},o.prototype._getDecoder=function(l){return this.decoders.hasOwnProperty(l=l||"der")||(this.decoders[l]=this._createNamed(t[l])),this.decoders[l]},o.prototype.decode=function(l,N,s){return this._getDecoder(N).decode(l,s)},o.prototype._getEncoder=function(l){return this.encoders.hasOwnProperty(l=l||"der")||(this.encoders[l]=this._createNamed(e[l])),this.encoders[l]},o.prototype.encode=function(l,N,s){return this._getEncoder(N).encode(l,s)}},2769:(Ve,Q,m)=>{"use strict";const e=m(3894),t=m(4919).b,y=m(2038).Buffer;function C(M,l){t.call(this,l),y.isBuffer(M)?(this.base=M,this.offset=0,this.length=M.length):this.error("Input not Buffer")}function o(M,l){if(Array.isArray(M))this.length=0,this.value=M.map(function(N){return o.isEncoderBuffer(N)||(N=new o(N,l)),this.length+=N.length,N},this);else if("number"==typeof M){if(!(0<=M&&M<=255))return l.error("non-byte EncoderBuffer value");this.value=M,this.length=1}else if("string"==typeof M)this.value=M,this.length=y.byteLength(M);else{if(!y.isBuffer(M))return l.error("Unsupported type: "+typeof M);this.value=M,this.length=M.length}}e(C,t),Q.C=C,C.isDecoderBuffer=function(l){return l instanceof C||"object"==typeof l&&y.isBuffer(l.base)&&"DecoderBuffer"===l.constructor.name&&"number"==typeof l.offset&&"number"==typeof l.length&&"function"==typeof l.save&&"function"==typeof l.restore&&"function"==typeof l.isEmpty&&"function"==typeof l.readUInt8&&"function"==typeof l.skip&&"function"==typeof l.raw},C.prototype.save=function(){return{offset:this.offset,reporter:t.prototype.save.call(this)}},C.prototype.restore=function(l){const N=new C(this.base);return N.offset=l.offset,N.length=this.offset,this.offset=l.offset,t.prototype.restore.call(this,l.reporter),N},C.prototype.isEmpty=function(){return this.offset===this.length},C.prototype.readUInt8=function(l){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(l||"DecoderBuffer overrun")},C.prototype.skip=function(l,N){if(!(this.offset+l<=this.length))return this.error(N||"DecoderBuffer overrun");const s=new C(this.base);return s._reporterState=this._reporterState,s.offset=this.offset,s.length=this.offset+l,this.offset+=l,s},C.prototype.raw=function(l){return this.base.slice(l?l.offset:this.offset,this.length)},Q.R=o,o.isEncoderBuffer=function(l){return l instanceof o||"object"==typeof l&&"EncoderBuffer"===l.constructor.name&&"number"==typeof l.length&&"function"==typeof l.join},o.prototype.join=function(l,N){return l||(l=y.alloc(this.length)),N||(N=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(s){s.join(l,N),N+=s.length}):("number"==typeof this.value?l[N]=this.value:"string"==typeof this.value?l.write(this.value,N):y.isBuffer(this.value)&&this.value.copy(l,N),N+=this.length)),l}},7813:(Ve,Q,m)=>{"use strict";const e=Q;e.Reporter=m(4919).b,e.DecoderBuffer=m(2769).C,e.EncoderBuffer=m(2769).R,e.Node=m(1430)},1430:(Ve,Q,m)=>{"use strict";const e=m(4919).b,t=m(2769).R,y=m(2769).C,C=m(2391),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"],M=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function N(D,A,O){const E={};this._baseState=E,E.name=O,E.enc=D,E.parent=A||null,E.children=null,E.tag=null,E.args=null,E.reverseArgs=null,E.choice=null,E.optional=!1,E.any=!1,E.obj=!1,E.use=null,E.useDecoder=null,E.key=null,E.default=null,E.explicit=null,E.implicit=null,E.contains=null,E.parent||(E.children=[],this._wrap())}Ve.exports=N;const s=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];N.prototype.clone=function(){const A=this._baseState,O={};s.forEach(function(P){O[P]=A[P]});const E=new this.constructor(O.parent);return E._baseState=O,E},N.prototype._wrap=function(){const A=this._baseState;M.forEach(function(O){this[O]=function(){const P=new this.constructor(this);return A.children.push(P),P[O].apply(P,arguments)}},this)},N.prototype._init=function(A){const O=this._baseState;C(null===O.parent),A.call(this),O.children=O.children.filter(function(E){return E._baseState.parent===this},this),C.equal(O.children.length,1,"Root node can have only one child")},N.prototype._useArgs=function(A){const O=this._baseState,E=A.filter(function(P){return P instanceof this.constructor},this);A=A.filter(function(P){return!(P instanceof this.constructor)},this),0!==E.length&&(C(null===O.children),O.children=E,E.forEach(function(P){P._baseState.parent=this},this)),0!==A.length&&(C(null===O.args),O.args=A,O.reverseArgs=A.map(function(P){if("object"!=typeof P||P.constructor!==Object)return P;const w={};return Object.keys(P).forEach(function(Z){Z==(0|Z)&&(Z|=0),w[P[Z]]=Z}),w}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(D){N.prototype[D]=function(){throw new Error(D+" not implemented for encoding: "+this._baseState.enc)}}),o.forEach(function(D){N.prototype[D]=function(){const O=this._baseState,E=Array.prototype.slice.call(arguments);return C(null===O.tag),O.tag=D,this._useArgs(E),this}}),N.prototype.use=function(A){C(A);const O=this._baseState;return C(null===O.use),O.use=A,this},N.prototype.optional=function(){return this._baseState.optional=!0,this},N.prototype.def=function(A){const O=this._baseState;return C(null===O.default),O.default=A,O.optional=!0,this},N.prototype.explicit=function(A){const O=this._baseState;return C(null===O.explicit&&null===O.implicit),O.explicit=A,this},N.prototype.implicit=function(A){const O=this._baseState;return C(null===O.explicit&&null===O.implicit),O.implicit=A,this},N.prototype.obj=function(){const A=this._baseState,O=Array.prototype.slice.call(arguments);return A.obj=!0,0!==O.length&&this._useArgs(O),this},N.prototype.key=function(A){const O=this._baseState;return C(null===O.key),O.key=A,this},N.prototype.any=function(){return this._baseState.any=!0,this},N.prototype.choice=function(A){const O=this._baseState;return C(null===O.choice),O.choice=A,this._useArgs(Object.keys(A).map(function(E){return A[E]})),this},N.prototype.contains=function(A){const O=this._baseState;return C(null===O.use),O.contains=A,this},N.prototype._decode=function(A,O){const E=this._baseState;if(null===E.parent)return A.wrapResult(E.children[0]._decode(A,O));let j,P=E.default,w=!0,Z=null;if(null!==E.key&&(Z=A.enterKey(E.key)),E.optional){let W=null;if(null!==E.explicit?W=E.explicit:null!==E.implicit?W=E.implicit:null!==E.tag&&(W=E.tag),null!==W||E.any){if(w=this._peekTag(A,W,E.any),A.isError(w))return w}else{const ie=A.save();try{null===E.choice?this._decodeGeneric(E.tag,A,O):this._decodeChoice(A,O),w=!0}catch(ee){w=!1}A.restore(ie)}}if(E.obj&&w&&(j=A.enterObject()),w){if(null!==E.explicit){const ie=this._decodeTag(A,E.explicit);if(A.isError(ie))return ie;A=ie}const W=A.offset;if(null===E.use&&null===E.choice){let ie;E.any&&(ie=A.save());const ee=this._decodeTag(A,null!==E.implicit?E.implicit:E.tag,E.any);if(A.isError(ee))return ee;E.any?P=A.raw(ie):A=ee}if(O&&O.track&&null!==E.tag&&O.track(A.path(),W,A.length,"tagged"),O&&O.track&&null!==E.tag&&O.track(A.path(),A.offset,A.length,"content"),E.any||(P=null===E.choice?this._decodeGeneric(E.tag,A,O):this._decodeChoice(A,O)),A.isError(P))return P;if(!E.any&&null===E.choice&&null!==E.children&&E.children.forEach(function(ee){ee._decode(A,O)}),E.contains&&("octstr"===E.tag||"bitstr"===E.tag)){const ie=new y(P);P=this._getUse(E.contains,A._reporterState.obj)._decode(ie,O)}}return E.obj&&w&&(P=A.leaveObject(j)),null===E.key||null===P&&!0!==w?null!==Z&&A.exitKey(Z):A.leaveKey(Z,E.key,P),P},N.prototype._decodeGeneric=function(A,O,E){const P=this._baseState;return"seq"===A||"set"===A?null:"seqof"===A||"setof"===A?this._decodeList(O,A,P.args[0],E):/str$/.test(A)?this._decodeStr(O,A,E):"objid"===A&&P.args?this._decodeObjid(O,P.args[0],P.args[1],E):"objid"===A?this._decodeObjid(O,null,null,E):"gentime"===A||"utctime"===A?this._decodeTime(O,A,E):"null_"===A?this._decodeNull(O,E):"bool"===A?this._decodeBool(O,E):"objDesc"===A?this._decodeStr(O,A,E):"int"===A||"enum"===A?this._decodeInt(O,P.args&&P.args[0],E):null!==P.use?this._getUse(P.use,O._reporterState.obj)._decode(O,E):O.error("unknown tag: "+A)},N.prototype._getUse=function(A,O){const E=this._baseState;return E.useDecoder=this._use(A,O),C(null===E.useDecoder._baseState.parent),E.useDecoder=E.useDecoder._baseState.children[0],E.implicit!==E.useDecoder._baseState.implicit&&(E.useDecoder=E.useDecoder.clone(),E.useDecoder._baseState.implicit=E.implicit),E.useDecoder},N.prototype._decodeChoice=function(A,O){const E=this._baseState;let P=null,w=!1;return Object.keys(E.choice).some(function(Z){const j=A.save(),W=E.choice[Z];try{const ie=W._decode(A,O);if(A.isError(ie))return!1;P={type:Z,value:ie},w=!0}catch(ie){return A.restore(j),!1}return!0},this),w?P:A.error("Choice not matched")},N.prototype._createEncoderBuffer=function(A){return new t(A,this.reporter)},N.prototype._encode=function(A,O,E){const P=this._baseState;if(null!==P.default&&P.default===A)return;const w=this._encodeValue(A,O,E);return void 0===w||this._skipDefault(w,O,E)?void 0:w},N.prototype._encodeValue=function(A,O,E){const P=this._baseState;if(null===P.parent)return P.children[0]._encode(A,O||new e);let w=null;if(this.reporter=O,P.optional&&void 0===A){if(null===P.default)return;A=P.default}let Z=null,j=!1;if(P.any)w=this._createEncoderBuffer(A);else if(P.choice)w=this._encodeChoice(A,O);else if(P.contains)Z=this._getUse(P.contains,E)._encode(A,O),j=!0;else if(P.children)Z=P.children.map(function(W){if("null_"===W._baseState.tag)return W._encode(null,O,A);if(null===W._baseState.key)return O.error("Child should have a key");const ie=O.enterKey(W._baseState.key);if("object"!=typeof A)return O.error("Child expected, but input is not object");const ee=W._encode(A[W._baseState.key],O,A);return O.leaveKey(ie),ee},this).filter(function(W){return W}),Z=this._createEncoderBuffer(Z);else if("seqof"===P.tag||"setof"===P.tag){if(!P.args||1!==P.args.length)return O.error("Too many args for : "+P.tag);if(!Array.isArray(A))return O.error("seqof/setof, but data is not Array");const W=this.clone();W._baseState.implicit=null,Z=this._createEncoderBuffer(A.map(function(ie){return this._getUse(this._baseState.args[0],A)._encode(ie,O)},W))}else null!==P.use?w=this._getUse(P.use,E)._encode(A,O):(Z=this._encodePrimitive(P.tag,A),j=!0);if(!P.any&&null===P.choice){const W=null!==P.implicit?P.implicit:P.tag,ie=null===P.implicit?"universal":"context";null===W?null===P.use&&O.error("Tag could be omitted only for .use()"):null===P.use&&(w=this._encodeComposite(W,j,ie,Z))}return null!==P.explicit&&(w=this._encodeComposite(P.explicit,!1,"context",w)),w},N.prototype._encodeChoice=function(A,O){const E=this._baseState,P=E.choice[A.type];return P||C(!1,A.type+" not found in "+JSON.stringify(Object.keys(E.choice))),P._encode(A.value,O)},N.prototype._encodePrimitive=function(A,O){const E=this._baseState;if(/str$/.test(A))return this._encodeStr(O,A);if("objid"===A&&E.args)return this._encodeObjid(O,E.reverseArgs[0],E.args[1]);if("objid"===A)return this._encodeObjid(O,null,null);if("gentime"===A||"utctime"===A)return this._encodeTime(O,A);if("null_"===A)return this._encodeNull();if("int"===A||"enum"===A)return this._encodeInt(O,E.args&&E.reverseArgs[0]);if("bool"===A)return this._encodeBool(O);if("objDesc"===A)return this._encodeStr(O,A);throw new Error("Unsupported tag: "+A)},N.prototype._isNumstr=function(A){return/^[0-9 ]*$/.test(A)},N.prototype._isPrintstr=function(A){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(A)}},4919:(Ve,Q,m)=>{"use strict";const e=m(3894);function t(C){this._reporterState={obj:null,path:[],options:C||{},errors:[]}}function y(C,o){this.path=C,this.rethrow(o)}Q.b=t,t.prototype.isError=function(o){return o instanceof y},t.prototype.save=function(){const o=this._reporterState;return{obj:o.obj,pathLen:o.path.length}},t.prototype.restore=function(o){const M=this._reporterState;M.obj=o.obj,M.path=M.path.slice(0,o.pathLen)},t.prototype.enterKey=function(o){return this._reporterState.path.push(o)},t.prototype.exitKey=function(o){const M=this._reporterState;M.path=M.path.slice(0,o-1)},t.prototype.leaveKey=function(o,M,l){const N=this._reporterState;this.exitKey(o),null!==N.obj&&(N.obj[M]=l)},t.prototype.path=function(){return this._reporterState.path.join("/")},t.prototype.enterObject=function(){const o=this._reporterState,M=o.obj;return o.obj={},M},t.prototype.leaveObject=function(o){const M=this._reporterState,l=M.obj;return M.obj=o,l},t.prototype.error=function(o){let M;const l=this._reporterState,N=o instanceof y;if(M=N?o:new y(l.path.map(function(s){return"["+JSON.stringify(s)+"]"}).join(""),o.message||o,o.stack),!l.options.partial)throw M;return N||l.errors.push(M),M},t.prototype.wrapResult=function(o){const M=this._reporterState;return M.options.partial?{result:this.isError(o)?null:o,errors:M.errors}:o},e(y,Error),y.prototype.rethrow=function(o){if(this.message=o+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,y),!this.stack)try{throw new Error(this.message)}catch(M){this.stack=M.stack}return this}},5496:(Ve,Q)=>{"use strict";function m(e){const t={};return Object.keys(e).forEach(function(y){(0|y)==y&&(y|=0),t[e[y]]=y}),t}Q.tagClass={0:"universal",1:"application",2:"context",3:"private"},Q.tagClassByName=m(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=m(Q.tag)},5459:(Ve,Q,m)=>{"use strict";const e=Q;e._reverse=function(y){const C={};return Object.keys(y).forEach(function(o){(0|o)==o&&(o|=0),C[y[o]]=o}),C},e.der=m(5496)},7127:(Ve,Q,m)=>{"use strict";const e=m(3894),t=m(3854),y=m(2769).C,C=m(1430),o=m(5496);function M(D){this.enc="der",this.name=D.name,this.entity=D,this.tree=new l,this.tree._init(D.body)}function l(D){C.call(this,"der",D)}function N(D,A){let O=D.readUInt8(A);if(D.isError(O))return O;const E=o.tagClass[O>>6],P=0==(32&O);if(31==(31&O)){let Z=O;for(O=0;128==(128&Z);){if(Z=D.readUInt8(A),D.isError(Z))return Z;O<<=7,O|=127&Z}}else O&=31;return{cls:E,primitive:P,tag:O,tagStr:o.tag[O]}}function s(D,A,O){let E=D.readUInt8(O);if(D.isError(E))return E;if(!A&&128===E)return null;if(0==(128&E))return E;const P=127&E;if(P>4)return D.error("length octect is too long");E=0;for(let w=0;w{"use strict";const e=Q;e.der=m(7127),e.pem=m(9617)},9617:(Ve,Q,m)=>{"use strict";const e=m(3894),t=m(2038).Buffer,y=m(7127);function C(o){y.call(this,o),this.enc="pem"}e(C,y),Ve.exports=C,C.prototype.decode=function(M,l){const N=M.toString().split(/[\r\n]+/g),s=l.label.toUpperCase(),D=/^-----(BEGIN|END) ([^-]+)-----$/;let A=-1,O=-1;for(let w=0;w{"use strict";const e=m(3894),t=m(2038).Buffer,y=m(1430),C=m(5496);function o(s){this.enc="der",this.name=s.name,this.entity=s,this.tree=new M,this.tree._init(s.body)}function M(s){y.call(this,"der",s)}function l(s){return s<10?"0"+s:s}Ve.exports=o,o.prototype.encode=function(D,A){return this.tree._encode(D,A).join()},e(M,y),M.prototype._encodeComposite=function(D,A,O,E){const P=function N(s,D,A,O){let E;if("seqof"===s?s="seq":"setof"===s&&(s="set"),C.tagByName.hasOwnProperty(s))E=C.tagByName[s];else{if("number"!=typeof s||(0|s)!==s)return O.error("Unknown tag: "+s);E=s}return E>=31?O.error("Multi-octet tag encoding unsupported"):(D||(E|=32),E|=C.tagClassByName[A||"universal"]<<6,E)}(D,A,O,this.reporter);if(E.length<128){const j=t.alloc(2);return j[0]=P,j[1]=E.length,this._createEncoderBuffer([j,E])}let w=1;for(let j=E.length;j>=256;j>>=8)w++;const Z=t.alloc(2+w);Z[0]=P,Z[1]=128|w;for(let j=1+w,W=E.length;W>0;j--,W>>=8)Z[j]=255&W;return this._createEncoderBuffer([Z,E])},M.prototype._encodeStr=function(D,A){if("bitstr"===A)return this._createEncoderBuffer([0|D.unused,D.data]);if("bmpstr"===A){const O=t.alloc(2*D.length);for(let E=0;E=40)return this.reporter.error("Second objid identifier OOB");D.splice(0,2,40*D[0]+D[1])}let E=0;for(let Z=0;Z=128;j>>=7)E++}const P=t.alloc(E);let w=P.length-1;for(let Z=D.length-1;Z>=0;Z--){let j=D[Z];for(P[w--]=127&j;(j>>=7)>0;)P[w--]=128|127&j}return this._createEncoderBuffer(P)},M.prototype._encodeTime=function(D,A){let O;const E=new Date(D);return"gentime"===A?O=[l(E.getUTCFullYear()),l(E.getUTCMonth()+1),l(E.getUTCDate()),l(E.getUTCHours()),l(E.getUTCMinutes()),l(E.getUTCSeconds()),"Z"].join(""):"utctime"===A?O=[l(E.getUTCFullYear()%100),l(E.getUTCMonth()+1),l(E.getUTCDate()),l(E.getUTCHours()),l(E.getUTCMinutes()),l(E.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+A+" time is not supported yet"),this._encodeStr(O,"octstr")},M.prototype._encodeNull=function(){return this._createEncoderBuffer("")},M.prototype._encodeInt=function(D,A){if("string"==typeof D){if(!A)return this.reporter.error("String int or enum given, but no values map");if(!A.hasOwnProperty(D))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(D));D=A[D]}if("number"!=typeof D&&!t.isBuffer(D)){const P=D.toArray();!D.sign&&128&P[0]&&P.unshift(0),D=t.from(P)}if(t.isBuffer(D)){let P=D.length;0===D.length&&P++;const w=t.alloc(P);return D.copy(w),0===D.length&&(w[0]=0),this._createEncoderBuffer(w)}if(D<128)return this._createEncoderBuffer(D);if(D<256)return this._createEncoderBuffer([0,D]);let O=1;for(let P=D;P>=256;P>>=8)O++;const E=new Array(O);for(let P=E.length-1;P>=0;P--)E[P]=255&D,D>>=8;return 128&E[0]&&E.unshift(0),this._createEncoderBuffer(t.from(E))},M.prototype._encodeBool=function(D){return this._createEncoderBuffer(D?255:0)},M.prototype._use=function(D,A){return"function"==typeof D&&(D=D(A)),D._getEncoder("der").tree},M.prototype._skipDefault=function(D,A,O){const E=this._baseState;let P;if(null===E.default)return!1;const w=D.join();if(void 0===E.defaultBuffer&&(E.defaultBuffer=this._encodeValue(E.default,A,O).join()),w.length!==E.defaultBuffer.length)return!1;for(P=0;P{"use strict";const e=Q;e.der=m(6374),e.pem=m(3530)},3530:(Ve,Q,m)=>{"use strict";const e=m(3894),t=m(6374);function y(C){t.call(this,C),this.enc="pem"}e(y,t),Ve.exports=y,y.prototype.encode=function(o,M){const N=t.prototype.encode.call(this,o).toString("base64"),s=["-----BEGIN "+M.label+"-----"];for(let D=0;D=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function N(b,i,a){var p=l(b,a);return a-1>=i&&(p|=l(b,a-1)<<4),p}function s(b,i,a,p){for(var u=0,_=Math.min(b.length,a),L=i;L<_;L++){var I=b.charCodeAt(L)-48;u*=p,u+=I>=49?I-49+10:I>=17?I-17+10:I}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),y(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(L=i[u]|i[u-1]<<8|i[u-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u=a;u-=2)I=N(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var L=i.length-p,I=L%u,x=Math.min(L,L-I)+p,r=0,v=p;v1&&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 D=["","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"],A=[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],O=[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 P(b,i,a){a.negative=i.negative^b.negative;var p=b.length+i.length|0;a.length=p,p=p-1|0;var u=0|b.words[0],_=0|i.words[0],L=u*_,x=L/67108864|0;a.words[0]=67108863&L;for(var r=1;r>>26,G=67108863&x,F=Math.min(r,i.length-1),U=Math.max(0,r-b.length+1);U<=F;U++)v+=(L=(u=0|b.words[r-U|0])*(_=0|i.words[U])+G)/67108864|0,G=67108863&L;a.words[r]=0|G,x=0|v}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,L=0;L>>24-u&16777215)||L!==this.length-1?D[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,L--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=A[i],v=O[i];p="";var G=this.clone();for(G.negative=0;!G.isZero();){var F=G.modn(v).toString(i);p=(G=G.idivn(v)).isZero()?F+p:D[r-F.length]+F+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}y(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return y(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);y(u<=_,"byte array longer than desired length"),y(_>0,"Requested array length <= 0"),this.strip();var x,r,L="le"===a,I=new i(_),v=this.clone();if(L){for(r=0;!v.isZero();r++)x=v.andln(255),v.iushrn(8),I[r]=x;for(;r<_;r++)I[r]=0}else{for(r=0;r<_-u;r++)I[r]=0;for(r=0;!v.isZero();r++)x=v.andln(255),v.iushrn(8),I[_-r-1]=x}return I},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;pi.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;ui.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){y("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){y("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<i.length?(p=this,u=i):(p=i,u=this);for(var _=0,L=0;L>>26;for(;0!==_&&L>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;Li.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var L=0,I=0;I<_.length;I++)L=(a=(0|u.words[I])-(0|_.words[I])+L)>>26,this.words[I]=67108863&a;for(;0!==L&&I>26,this.words[I]=67108863&a;if(0===L&&I>>13,ye=0|u[1],Ce=8191&ye,Be=ye>>>13,ze=0|u[2],Ie=8191&ze,K=ze>>>13,Me=0|u[3],we=8191&Me,z=Me>>>13,Ge=0|u[4],vt=8191&Ge,Re=Ge>>>13,Ne=0|u[5],he=8191&Ne,Le=Ne>>>13,ke=0|u[6],q=8191&ke,$=ke>>>13,le=0|u[7],xe=8191&le,Ue=le>>>13,lt=0|u[8],nt=8191<,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,Pi=0|_[2],ai=8191&Pi,hi=Pi>>>13,Ze=0|_[3],Ee=8191&Ze,Y=Ze>>>13,me=0|_[4],De=8191&me,et=me>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],Pe=8191&ct,Fe=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(I+(x=Math.imul(F,Ft))|0)+((8191&(r=(r=Math.imul(F,Vt))+Math.imul(U,Ft)|0))<<13)|0;I=((v=Math.imul(U,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(Ce,Ft),r=(r=Math.imul(Ce,Vt))+Math.imul(Be,Ft)|0,v=Math.imul(Be,Vt);var Ui=(I+(x=x+Math.imul(F,jt)|0)|0)+((8191&(r=(r=r+Math.imul(F,ei)|0)+Math.imul(U,jt)|0))<<13)|0;I=((v=v+Math.imul(U,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Ie,Ft),r=(r=Math.imul(Ie,Vt))+Math.imul(K,Ft)|0,v=Math.imul(K,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ei)|0)+Math.imul(Be,jt)|0,v=v+Math.imul(Be,ei)|0;var Di=(I+(x=x+Math.imul(F,ai)|0)|0)+((8191&(r=(r=r+Math.imul(F,hi)|0)+Math.imul(U,ai)|0))<<13)|0;I=((v=v+Math.imul(U,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Ft),r=(r=Math.imul(we,Vt))+Math.imul(z,Ft)|0,v=Math.imul(z,Vt),x=x+Math.imul(Ie,jt)|0,r=(r=r+Math.imul(Ie,ei)|0)+Math.imul(K,jt)|0,v=v+Math.imul(K,ei)|0,x=x+Math.imul(Ce,ai)|0,r=(r=r+Math.imul(Ce,hi)|0)+Math.imul(Be,ai)|0,v=v+Math.imul(Be,hi)|0;var Xi=(I+(x=x+Math.imul(F,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(F,Y)|0)+Math.imul(U,Ee)|0))<<13)|0;I=((v=v+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Re,Ft)|0,v=Math.imul(Re,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ei)|0)+Math.imul(z,jt)|0,v=v+Math.imul(z,ei)|0,x=x+Math.imul(Ie,ai)|0,r=(r=r+Math.imul(Ie,hi)|0)+Math.imul(K,ai)|0,v=v+Math.imul(K,hi)|0,x=x+Math.imul(Ce,Ee)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Be,Ee)|0,v=v+Math.imul(Be,Y)|0;var Ke=(I+(x=x+Math.imul(F,De)|0)|0)+((8191&(r=(r=r+Math.imul(F,et)|0)+Math.imul(U,De)|0))<<13)|0;I=((v=v+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(he,Ft),r=(r=Math.imul(he,Vt))+Math.imul(Le,Ft)|0,v=Math.imul(Le,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Re,jt)|0,v=v+Math.imul(Re,ei)|0,x=x+Math.imul(we,ai)|0,r=(r=r+Math.imul(we,hi)|0)+Math.imul(z,ai)|0,v=v+Math.imul(z,hi)|0,x=x+Math.imul(Ie,Ee)|0,r=(r=r+Math.imul(Ie,Y)|0)+Math.imul(K,Ee)|0,v=v+Math.imul(K,Y)|0,x=x+Math.imul(Ce,De)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Be,De)|0,v=v+Math.imul(Be,et)|0;var _t=(I+(x=x+Math.imul(F,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Jt)|0)+Math.imul(U,Nt)|0))<<13)|0;I=((v=v+Math.imul(U,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,v=Math.imul($,Vt),x=x+Math.imul(he,jt)|0,r=(r=r+Math.imul(he,ei)|0)+Math.imul(Le,jt)|0,v=v+Math.imul(Le,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Re,ai)|0,v=v+Math.imul(Re,hi)|0,x=x+Math.imul(we,Ee)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(z,Ee)|0,v=v+Math.imul(z,Y)|0,x=x+Math.imul(Ie,De)|0,r=(r=r+Math.imul(Ie,et)|0)+Math.imul(K,De)|0,v=v+Math.imul(K,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Jt)|0)+Math.imul(Be,Nt)|0,v=v+Math.imul(Be,Jt)|0;var ve=(I+(x=x+Math.imul(F,Pe)|0)|0)+((8191&(r=(r=r+Math.imul(F,Fe)|0)+Math.imul(U,Pe)|0))<<13)|0;I=((v=v+Math.imul(U,Fe)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,x=Math.imul(xe,Ft),r=(r=Math.imul(xe,Vt))+Math.imul(Ue,Ft)|0,v=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,v=v+Math.imul($,ei)|0,x=x+Math.imul(he,ai)|0,r=(r=r+Math.imul(he,hi)|0)+Math.imul(Le,ai)|0,v=v+Math.imul(Le,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Re,Ee)|0,v=v+Math.imul(Re,Y)|0,x=x+Math.imul(we,De)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(z,De)|0,v=v+Math.imul(z,et)|0,x=x+Math.imul(Ie,Nt)|0,r=(r=r+Math.imul(Ie,Jt)|0)+Math.imul(K,Nt)|0,v=v+Math.imul(K,Jt)|0,x=x+Math.imul(Ce,Pe)|0,r=(r=r+Math.imul(Ce,Fe)|0)+Math.imul(Be,Pe)|0,v=v+Math.imul(Be,Fe)|0;var qe=(I+(x=x+Math.imul(F,st)|0)|0)+((8191&(r=(r=r+Math.imul(F,At)|0)+Math.imul(U,st)|0))<<13)|0;I=((v=v+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,v=Math.imul(ft,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ei)|0)+Math.imul(Ue,jt)|0,v=v+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,v=v+Math.imul($,hi)|0,x=x+Math.imul(he,Ee)|0,r=(r=r+Math.imul(he,Y)|0)+Math.imul(Le,Ee)|0,v=v+Math.imul(Le,Y)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Re,De)|0,v=v+Math.imul(Re,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Jt)|0)+Math.imul(z,Nt)|0,v=v+Math.imul(z,Jt)|0,x=x+Math.imul(Ie,Pe)|0,r=(r=r+Math.imul(Ie,Fe)|0)+Math.imul(K,Pe)|0,v=v+Math.imul(K,Fe)|0,x=x+Math.imul(Ce,st)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Be,st)|0,v=v+Math.imul(Be,At)|0;var yt=(I+(x=x+Math.imul(F,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Rt)|0)+Math.imul(U,Bt)|0))<<13)|0;I=((v=v+Math.imul(U,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,v=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,v=v+Math.imul(ft,ei)|0,x=x+Math.imul(xe,ai)|0,r=(r=r+Math.imul(xe,hi)|0)+Math.imul(Ue,ai)|0,v=v+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul($,Ee)|0,v=v+Math.imul($,Y)|0,x=x+Math.imul(he,De)|0,r=(r=r+Math.imul(he,et)|0)+Math.imul(Le,De)|0,v=v+Math.imul(Le,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Re,Nt)|0,v=v+Math.imul(Re,Jt)|0,x=x+Math.imul(we,Pe)|0,r=(r=r+Math.imul(we,Fe)|0)+Math.imul(z,Pe)|0,v=v+Math.imul(z,Fe)|0,x=x+Math.imul(Ie,st)|0,r=(r=r+Math.imul(Ie,At)|0)+Math.imul(K,st)|0,v=v+Math.imul(K,At)|0,x=x+Math.imul(Ce,Bt)|0,r=(r=r+Math.imul(Ce,Rt)|0)+Math.imul(Be,Bt)|0,v=v+Math.imul(Be,Rt)|0;var fe=(I+(x=x+Math.imul(F,si)|0)|0)+((8191&(r=(r=r+Math.imul(F,ci)|0)+Math.imul(U,si)|0))<<13)|0;I=((v=v+Math.imul(U,ci)|0)+(r>>>13)|0)+(fe>>>26)|0,fe&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,v=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,v=v+Math.imul(ft,hi)|0,x=x+Math.imul(xe,Ee)|0,r=(r=r+Math.imul(xe,Y)|0)+Math.imul(Ue,Ee)|0,v=v+Math.imul(Ue,Y)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,v=v+Math.imul($,et)|0,x=x+Math.imul(he,Nt)|0,r=(r=r+Math.imul(he,Jt)|0)+Math.imul(Le,Nt)|0,v=v+Math.imul(Le,Jt)|0,x=x+Math.imul(vt,Pe)|0,r=(r=r+Math.imul(vt,Fe)|0)+Math.imul(Re,Pe)|0,v=v+Math.imul(Re,Fe)|0,x=x+Math.imul(we,st)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(z,st)|0,v=v+Math.imul(z,At)|0,x=x+Math.imul(Ie,Bt)|0,r=(r=r+Math.imul(Ie,Rt)|0)+Math.imul(K,Bt)|0,v=v+Math.imul(K,Rt)|0;var Je=(I+(x=x+Math.imul(Ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Be,si)|0))<<13)|0;I=((v=v+Math.imul(Be,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,v=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,Y)|0)+Math.imul(ft,Ee)|0,v=v+Math.imul(ft,Y)|0,x=x+Math.imul(xe,De)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Ue,De)|0,v=v+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,v=v+Math.imul($,Jt)|0,x=x+Math.imul(he,Pe)|0,r=(r=r+Math.imul(he,Fe)|0)+Math.imul(Le,Pe)|0,v=v+Math.imul(Le,Fe)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Re,st)|0,v=v+Math.imul(Re,At)|0,x=x+Math.imul(we,Bt)|0,r=(r=r+Math.imul(we,Rt)|0)+Math.imul(z,Bt)|0,v=v+Math.imul(z,Rt)|0;var St=(I+(x=x+Math.imul(Ie,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ie,ci)|0)+Math.imul(K,si)|0))<<13)|0;I=((v=v+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,Y))+Math.imul(Mt,Ee)|0,v=Math.imul(Mt,Y),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,v=v+Math.imul(ft,et)|0,x=x+Math.imul(xe,Nt)|0,r=(r=r+Math.imul(xe,Jt)|0)+Math.imul(Ue,Nt)|0,v=v+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,Pe)|0,r=(r=r+Math.imul(q,Fe)|0)+Math.imul($,Pe)|0,v=v+Math.imul($,Fe)|0,x=x+Math.imul(he,st)|0,r=(r=r+Math.imul(he,At)|0)+Math.imul(Le,st)|0,v=v+Math.imul(Le,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Re,Bt)|0,v=v+Math.imul(Re,Rt)|0;var Pt=(I+(x=x+Math.imul(we,si)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(z,si)|0))<<13)|0;I=((v=v+Math.imul(z,ci)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,v=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,v=v+Math.imul(ft,Jt)|0,x=x+Math.imul(xe,Pe)|0,r=(r=r+Math.imul(xe,Fe)|0)+Math.imul(Ue,Pe)|0,v=v+Math.imul(Ue,Fe)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,v=v+Math.imul($,At)|0,x=x+Math.imul(he,Bt)|0,r=(r=r+Math.imul(he,Rt)|0)+Math.imul(Le,Bt)|0,v=v+Math.imul(Le,Rt)|0;var yi=(I+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Re,si)|0))<<13)|0;I=((v=v+Math.imul(Re,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,v=Math.imul(Mt,Jt),x=x+Math.imul(nt,Pe)|0,r=(r=r+Math.imul(nt,Fe)|0)+Math.imul(ft,Pe)|0,v=v+Math.imul(ft,Fe)|0,x=x+Math.imul(xe,st)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Ue,st)|0,v=v+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,v=v+Math.imul($,Rt)|0;var Ni=(I+(x=x+Math.imul(he,si)|0)|0)+((8191&(r=(r=r+Math.imul(he,ci)|0)+Math.imul(Le,si)|0))<<13)|0;I=((v=v+Math.imul(Le,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,Pe),r=(r=Math.imul(rt,Fe))+Math.imul(Mt,Pe)|0,v=Math.imul(Mt,Fe),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,v=v+Math.imul(ft,At)|0,x=x+Math.imul(xe,Bt)|0,r=(r=r+Math.imul(xe,Rt)|0)+Math.imul(Ue,Bt)|0,v=v+Math.imul(Ue,Rt)|0;var Si=(I+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;I=((v=v+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,v=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,v=v+Math.imul(ft,Rt)|0;var qi=(I+(x=x+Math.imul(xe,si)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;I=((v=v+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,v=Math.imul(Mt,Rt);var ot=(I+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;I=((v=v+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(I+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return I=((v=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,L[0]=sn,L[1]=Ui,L[2]=Di,L[3]=Xi,L[4]=Ke,L[5]=_t,L[6]=ve,L[7]=qe,L[8]=yt,L[9]=fe,L[10]=Je,L[11]=St,L[12]=Pt,L[13]=yi,L[14]=Ni,L[15]=Si,L[16]=qi,L[17]=ot,L[18]=Kt,0!==I&&(L[19]=I,p.length++),p};function j(b,i,a){return(new W).mulp(b,i,a)}function W(b,i){this.x=b,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function Z(b,i,a){a.negative=i.negative^b.negative,a.length=b.length+i.length;for(var p=0,u=0,_=0;_>>26)|0)>>>26,L&=67108863}a.words[_]=I,p=L,L=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u>=1;return u},W.prototype.permute=function(i,a,p,u,_,L){for(var I=0;I>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u

>>=13),_>>>=13;for(L=2*a;L>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(b){for(var i=new Array(b.bitLength()),a=0;a>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var L=0;for(_=0;_>>26-a}L&&(this.words[_]=L,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_=0),u=a?(a-a%26)/26:0;var _=i%26,L=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=L,u=Math.max(0,u),x){for(var r=0;rL)for(this.length-=L,r=0;r=0&&(0!==v||r>=u);r--){var G=0|this.words[r];this.words[r]=v<<26-_|G>>>_,v=G&I}return x&&0!==v&&(x.words[x.length++]=v),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return y(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<=0);var a=i%26,p=(i-a)/26;return y(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(y("number"==typeof i),y(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a>26)-(x/67108864|0),this.words[_+p]=67108863&L}for(;_>26,this.words[_+p]=67108863&L;if(0===I)return this.strip();for(y(-1===I),I=0,_=0;_>26,this.words[_]=67108863&L;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,L=0|_.words[_.length-1];0!=(p=26-this._countBits(L))&&(_=_.ushln(p),u.iushln(p),L=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var v=0;v=0;F--){var U=67108864*(0|u.words[_.length+F])+(0|u.words[_.length+F-1]);for(U=Math.min(U/L|0,67108863),u._ishlnsubmul(_,U,F);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,F),u.isZero()||(u.negative^=1);r&&(r.words[F]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return y(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(L=this.neg().divmod(i,a),"mod"!==a&&(u=L.div.neg()),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(L=this.divmod(i.neg(),a),"mod"!==a&&(u=L.div.neg()),{div:u,mod:L.mod}):0!=(this.negative&i.negative)?(L=this.neg().divmod(i.neg(),a),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:L.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,L},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),L=p.cmp(u);return L<0||1===_&&0===L?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){y(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){y(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){y(0===i.negative),y(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),L=new o(0),I=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),v=a.clone();!a.isZero();){for(var G=0,F=1;0==(a.words[0]&F)&&G<26;++G,F<<=1);if(G>0)for(a.iushrn(G);G-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(v)),u.iushrn(1),_.iushrn(1);for(var U=0,ye=1;0==(p.words[0]&ye)&&U<26;++U,ye<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(L.isOdd()||I.isOdd())&&(L.iadd(r),I.isub(v)),L.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(L),_.isub(I)):(p.isub(a),L.isub(u),I.isub(_))}return{a:L,b:I,gcd:p.iushln(x)}},o.prototype._invmp=function(i){y(0===i.negative),y(!i.isZero());var G,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),L=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var I=0,x=1;0==(a.words[0]&x)&&I<26;++I,x<<=1);if(I>0)for(a.iushrn(I);I-- >0;)u.isOdd()&&u.iadd(L),u.iushrn(1);for(var r=0,v=1;0==(p.words[0]&v)&&r<26;++r,v<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(L),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(G=0===a.cmpn(1)?u:_).cmpn(0)<0&&G.iadd(i),G},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var L=a;a=p,p=L}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){y("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<>>26,this.words[L]=I&=67108863}return 0!==_&&(this.words[L]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),y(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:ui.length)return 1;if(this.length=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new oe(i)},o.prototype.toRed=function(i){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return y(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return y(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ie={k256:null,p224:null,p192:null,p25519:null};function ee(b,i){this.name=b,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _e(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ce(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function oe(b){if("string"==typeof b){var i=o._prime(b);this.m=i.p,this.prime=i}else y(b.gtn(1),"modulus must be greater than 1"),this.m=b,this.prime=null}function ae(b){oe.call(this,b),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)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(_e,ee),_e.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_>>22,L=I}i.words[_-10]=L>>>=22,i.length-=0===L&&i.length>10?10:9},_e.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(ie[i])return ie[i];var a;if("k256"===i)a=new _e;else if("p224"===i)a=new ce;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return ie[i]=a,a},oe.prototype._verify1=function(i){y(0===i.negative,"red works only with positives"),y(i.red,"red works only with red numbers")},oe.prototype._verify2=function(i,a){y(0==(i.negative|a.negative),"red works only with positives"),y(i.red&&i.red===a.red,"red works only with red numbers")},oe.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},oe.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},oe.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},oe.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},oe.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},oe.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},oe.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},oe.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},oe.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},oe.prototype.isqr=function(i){return this.imul(i,i.clone())},oe.prototype.sqr=function(i){return this.mul(i,i)},oe.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(y(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);y(!u.isZero());var L=new o(1).toRed(this),I=L.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(I);)r.redIAdd(I);for(var v=this.pow(r,u),G=this.pow(i,u.addn(1).iushrn(1)),F=this.pow(i,u),U=_;0!==F.cmp(L);){for(var ye=F,Ce=0;0!==ye.cmp(L);Ce++)ye=ye.redSqr();y(Ce=0;_--){for(var v=a.words[_],G=r-1;G>=0;G--){var F=v>>G&1;L!==u[0]&&(L=this.sqr(L)),0!==F||0!==I?(I<<=1,I|=F,(4==++x||0===_&&0===G)&&(L=this.mul(L,u[I]),x=0,I=0)):x=0}r=26}return L},oe.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},oe.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new ae(i)},C(ae,oe),ae.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ae.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},ae.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},ae.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},ae.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ve=m.nmd(Ve),this)},5343:(Ve,Q)=>{"use strict";Q.byteLength=function l(E){var P=M(E),Z=P[1];return 3*(P[0]+Z)/4-Z},Q.toByteArray=function s(E){var P,_e,w=M(E),Z=w[0],j=w[1],W=new t(function N(E,P,w){return 3*(P+w)/4-w}(0,Z,j)),ie=0,ee=j>0?Z-4:Z;for(_e=0;_e>16&255,W[ie++]=P>>8&255,W[ie++]=255&P;return 2===j&&(P=e[E.charCodeAt(_e)]<<2|e[E.charCodeAt(_e+1)]>>4,W[ie++]=255&P),1===j&&(P=e[E.charCodeAt(_e)]<<10|e[E.charCodeAt(_e+1)]<<4|e[E.charCodeAt(_e+2)]>>2,W[ie++]=P>>8&255,W[ie++]=255&P),W},Q.fromByteArray=function O(E){for(var P,w=E.length,Z=w%3,j=[],W=16383,ie=0,ee=w-Z;ieee?ee:ie+W));return 1===Z?j.push(m[(P=E[w-1])>>2]+m[P<<4&63]+"=="):2===Z&&j.push(m[(P=(E[w-2]<<8)+E[w-1])>>10]+m[P>>4&63]+m[P<<2&63]+"="),j.join("")};for(var m=[],e=[],t="undefined"!=typeof Uint8Array?Uint8Array:Array,y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",C=0,o=y.length;C0)throw new Error("Invalid string. Length must be a multiple of 4");var w=E.indexOf("=");return-1===w&&(w=P),[w,w===P?0:4-w%4]}function D(E){return m[E>>18&63]+m[E>>12&63]+m[E>>6&63]+m[63&E]}function A(E,P,w){for(var j=[],W=P;W=48&&_<=57?_-48:_>=65&&_<=70?_-55:_>=97&&_<=102?_-87:void y(!1,"Invalid character in "+p)}function N(p,u,_){var L=l(p,_);return _-1>=u&&(L|=l(p,_-1)<<4),L}function s(p,u,_,L){for(var I=0,x=0,r=Math.min(p.length,_),v=u;v=49?G-49+10:G>=17?G-17+10:G,y(G>=0&&x0?u:_},o.min=function(u,_){return u.cmp(_)<0?u:_},o.prototype._init=function(u,_,L){if("number"==typeof u)return this._initNumber(u,_,L);if("object"==typeof u)return this._initArray(u,_,L);"hex"===_&&(_=16),y(_===(0|_)&&_>=2&&_<=36);var I=0;"-"===(u=u.toString().replace(/\s+/g,""))[0]&&(I++,this.negative=1),I=0;I-=3)this.words[x]|=(r=u[I]|u[I-1]<<8|u[I-2]<<16)<>>26-v&67108863,(v+=24)>=26&&(v-=26,x++);else if("le"===L)for(I=0,x=0;I>>26-v&67108863,(v+=24)>=26&&(v-=26,x++);return this._strip()},o.prototype._parseHex=function(u,_,L){this.length=Math.ceil((u.length-_)/6),this.words=new Array(this.length);for(var I=0;I=_;I-=2)v=N(u,_,I)<=18?(x-=18,this.words[r+=1]|=v>>>26):x+=8;else for(I=(u.length-_)%2==0?_+1:_;I=18?(x-=18,this.words[r+=1]|=v>>>26):x+=8;this._strip()},o.prototype._parseBase=function(u,_,L){this.words=[0],this.length=1;for(var I=0,x=1;x<=67108863;x*=_)I++;I--,x=x/_|0;for(var r=u.length-L,v=r%I,G=Math.min(r,r-v)+L,F=0,U=L;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},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=A}catch(p){o.prototype.inspect=A}else o.prototype.inspect=A;function A(){return(this.red?""}var O=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],E=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],P=[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 j(p,u,_){_.negative=u.negative^p.negative;var L=p.length+u.length|0;_.length=L,L=L-1|0;var I=0|p.words[0],x=0|u.words[0],r=I*x,G=r/67108864|0;_.words[0]=67108863&r;for(var F=1;F>>26,ye=67108863&G,Ce=Math.min(F,u.length-1),Be=Math.max(0,F-p.length+1);Be<=Ce;Be++)U+=(r=(I=0|p.words[F-Be|0])*(x=0|u.words[Be])+ye)/67108864|0,ye=67108863&r;_.words[F]=0|ye,G=0|U}return 0!==G?_.words[F]=0|G:_.length--,_._strip()}o.prototype.toString=function(u,_){var L;if(_=0|_||1,16===(u=u||10)||"hex"===u){L="";for(var I=0,x=0,r=0;r>>24-I&16777215)||r!==this.length-1?O[6-G.length]+G+L:G+L,(I+=2)>=26&&(I-=26,r--)}for(0!==x&&(L=x.toString(16)+L);L.length%_!=0;)L="0"+L;return 0!==this.negative&&(L="-"+L),L}if(u===(0|u)&&u>=2&&u<=36){var F=E[u],U=P[u];L="";var ye=this.clone();for(ye.negative=0;!ye.isZero();){var Ce=ye.modrn(U).toString(u);L=(ye=ye.idivn(U)).isZero()?Ce+L:O[F-Ce.length]+Ce+L}for(this.isZero()&&(L="0"+L);L.length%_!=0;)L="0"+L;return 0!==this.negative&&(L="-"+L),L}y(!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&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-u:u},o.prototype.toJSON=function(){return this.toString(16,2)},M&&(o.prototype.toBuffer=function(u,_){return this.toArrayLike(M,u,_)}),o.prototype.toArray=function(u,_){return this.toArrayLike(Array,u,_)},o.prototype.toArrayLike=function(u,_,L){this._strip();var I=this.byteLength(),x=L||Math.max(1,I);y(I<=x,"byte array longer than desired length"),y(x>0,"Requested array length <= 0");var r=function(u,_){return u.allocUnsafe?u.allocUnsafe(_):new u(_)}(u,x);return this["_toArrayLike"+("le"===_?"LE":"BE")](r,I),r},o.prototype._toArrayLikeLE=function(u,_){for(var L=0,I=0,x=0,r=0;x>8&255),L>16&255),6===r?(L>24&255),I=0,r=0):(I=v>>>24,r+=2)}if(L=0&&(u[L--]=v>>8&255),L>=0&&(u[L--]=v>>16&255),6===r?(L>=0&&(u[L--]=v>>24&255),I=0,r=0):(I=v>>>24,r+=2)}if(L>=0)for(u[L--]=I;L>=0;)u[L--]=0},o.prototype._countBits=Math.clz32?function(u){return 32-Math.clz32(u)}:function(u){var _=u,L=0;return _>=4096&&(L+=13,_>>>=13),_>=64&&(L+=7,_>>>=7),_>=8&&(L+=4,_>>>=4),_>=2&&(L+=2,_>>>=2),L+_},o.prototype._zeroBits=function(u){if(0===u)return 26;var _=u,L=0;return 0==(8191&_)&&(L+=13,_>>>=13),0==(127&_)&&(L+=7,_>>>=7),0==(15&_)&&(L+=4,_>>>=4),0==(3&_)&&(L+=2,_>>>=2),0==(1&_)&&L++,L},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 L=0;L<_.length;L++)this.words[L]=this.words[L]&u.words[L];return this.length=_.length,this._strip()},o.prototype.iand=function(u){return y(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 _,L;this.length>u.length?(_=this,L=u):(_=u,L=this);for(var I=0;Iu.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){y("number"==typeof u&&u>=0);var _=0|Math.ceil(u/26),L=u%26;this._expand(_),L>0&&_--;for(var I=0;I<_;I++)this.words[I]=67108863&~this.words[I];return L>0&&(this.words[I]=~this.words[I]&67108863>>26-L),this._strip()},o.prototype.notn=function(u){return this.clone().inotn(u)},o.prototype.setn=function(u,_){y("number"==typeof u&&u>=0);var L=u/26|0,I=u%26;return this._expand(L+1),this.words[L]=_?this.words[L]|1<u.length?(L=this,I=u):(L=u,I=this);for(var x=0,r=0;r>>26;for(;0!==x&&r>>26;if(this.length=L.length,0!==x)this.words[this.length]=x,this.length++;else if(L!==this)for(;ru.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 I,x,L=this.cmp(u);if(0===L)return this.negative=0,this.length=1,this.words[0]=0,this;L>0?(I=this,x=u):(I=u,x=this);for(var r=0,v=0;v>26,this.words[v]=67108863&_;for(;0!==r&&v>26,this.words[v]=67108863&_;if(0===r&&v>>13,ze=0|I[1],Ie=8191&ze,K=ze>>>13,Me=0|I[2],we=8191&Me,z=Me>>>13,Ge=0|I[3],vt=8191&Ge,Re=Ge>>>13,Ne=0|I[4],he=8191&Ne,Le=Ne>>>13,ke=0|I[5],q=8191&ke,$=ke>>>13,le=0|I[6],xe=8191&le,Ue=le>>>13,lt=0|I[7],nt=8191<,ft=lt>>>13,it=0|I[8],rt=8191&it,Mt=it>>>13,Zt=0|I[9],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|x[0],jt=8191&Ii,ei=Ii>>>13,Pi=0|x[1],ai=8191&Pi,hi=Pi>>>13,Ze=0|x[2],Ee=8191&Ze,Y=Ze>>>13,me=0|x[3],De=8191&me,et=me>>>13,$t=0|x[4],Nt=8191&$t,Jt=$t>>>13,ct=0|x[5],Pe=8191&ct,Fe=ct>>>13,at=0|x[6],st=8191&at,At=at>>>13,li=0|x[7],Bt=8191&li,Rt=li>>>13,Li=0|x[8],si=8191&Li,ci=Li>>>13,sn=0|x[9],Ui=8191&sn,Di=sn>>>13;L.negative=u.negative^_.negative,L.length=19;var Xi=(v+(G=Math.imul(Ce,jt))|0)+((8191&(F=(F=Math.imul(Ce,ei))+Math.imul(Be,jt)|0))<<13)|0;v=((U=Math.imul(Be,ei))+(F>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,G=Math.imul(Ie,jt),F=(F=Math.imul(Ie,ei))+Math.imul(K,jt)|0,U=Math.imul(K,ei);var Ke=(v+(G=G+Math.imul(Ce,ai)|0)|0)+((8191&(F=(F=F+Math.imul(Ce,hi)|0)+Math.imul(Be,ai)|0))<<13)|0;v=((U=U+Math.imul(Be,hi)|0)+(F>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,G=Math.imul(we,jt),F=(F=Math.imul(we,ei))+Math.imul(z,jt)|0,U=Math.imul(z,ei),G=G+Math.imul(Ie,ai)|0,F=(F=F+Math.imul(Ie,hi)|0)+Math.imul(K,ai)|0,U=U+Math.imul(K,hi)|0;var _t=(v+(G=G+Math.imul(Ce,Ee)|0)|0)+((8191&(F=(F=F+Math.imul(Ce,Y)|0)+Math.imul(Be,Ee)|0))<<13)|0;v=((U=U+Math.imul(Be,Y)|0)+(F>>>13)|0)+(_t>>>26)|0,_t&=67108863,G=Math.imul(vt,jt),F=(F=Math.imul(vt,ei))+Math.imul(Re,jt)|0,U=Math.imul(Re,ei),G=G+Math.imul(we,ai)|0,F=(F=F+Math.imul(we,hi)|0)+Math.imul(z,ai)|0,U=U+Math.imul(z,hi)|0,G=G+Math.imul(Ie,Ee)|0,F=(F=F+Math.imul(Ie,Y)|0)+Math.imul(K,Ee)|0,U=U+Math.imul(K,Y)|0;var ve=(v+(G=G+Math.imul(Ce,De)|0)|0)+((8191&(F=(F=F+Math.imul(Ce,et)|0)+Math.imul(Be,De)|0))<<13)|0;v=((U=U+Math.imul(Be,et)|0)+(F>>>13)|0)+(ve>>>26)|0,ve&=67108863,G=Math.imul(he,jt),F=(F=Math.imul(he,ei))+Math.imul(Le,jt)|0,U=Math.imul(Le,ei),G=G+Math.imul(vt,ai)|0,F=(F=F+Math.imul(vt,hi)|0)+Math.imul(Re,ai)|0,U=U+Math.imul(Re,hi)|0,G=G+Math.imul(we,Ee)|0,F=(F=F+Math.imul(we,Y)|0)+Math.imul(z,Ee)|0,U=U+Math.imul(z,Y)|0,G=G+Math.imul(Ie,De)|0,F=(F=F+Math.imul(Ie,et)|0)+Math.imul(K,De)|0,U=U+Math.imul(K,et)|0;var qe=(v+(G=G+Math.imul(Ce,Nt)|0)|0)+((8191&(F=(F=F+Math.imul(Ce,Jt)|0)+Math.imul(Be,Nt)|0))<<13)|0;v=((U=U+Math.imul(Be,Jt)|0)+(F>>>13)|0)+(qe>>>26)|0,qe&=67108863,G=Math.imul(q,jt),F=(F=Math.imul(q,ei))+Math.imul($,jt)|0,U=Math.imul($,ei),G=G+Math.imul(he,ai)|0,F=(F=F+Math.imul(he,hi)|0)+Math.imul(Le,ai)|0,U=U+Math.imul(Le,hi)|0,G=G+Math.imul(vt,Ee)|0,F=(F=F+Math.imul(vt,Y)|0)+Math.imul(Re,Ee)|0,U=U+Math.imul(Re,Y)|0,G=G+Math.imul(we,De)|0,F=(F=F+Math.imul(we,et)|0)+Math.imul(z,De)|0,U=U+Math.imul(z,et)|0,G=G+Math.imul(Ie,Nt)|0,F=(F=F+Math.imul(Ie,Jt)|0)+Math.imul(K,Nt)|0,U=U+Math.imul(K,Jt)|0;var yt=(v+(G=G+Math.imul(Ce,Pe)|0)|0)+((8191&(F=(F=F+Math.imul(Ce,Fe)|0)+Math.imul(Be,Pe)|0))<<13)|0;v=((U=U+Math.imul(Be,Fe)|0)+(F>>>13)|0)+(yt>>>26)|0,yt&=67108863,G=Math.imul(xe,jt),F=(F=Math.imul(xe,ei))+Math.imul(Ue,jt)|0,U=Math.imul(Ue,ei),G=G+Math.imul(q,ai)|0,F=(F=F+Math.imul(q,hi)|0)+Math.imul($,ai)|0,U=U+Math.imul($,hi)|0,G=G+Math.imul(he,Ee)|0,F=(F=F+Math.imul(he,Y)|0)+Math.imul(Le,Ee)|0,U=U+Math.imul(Le,Y)|0,G=G+Math.imul(vt,De)|0,F=(F=F+Math.imul(vt,et)|0)+Math.imul(Re,De)|0,U=U+Math.imul(Re,et)|0,G=G+Math.imul(we,Nt)|0,F=(F=F+Math.imul(we,Jt)|0)+Math.imul(z,Nt)|0,U=U+Math.imul(z,Jt)|0,G=G+Math.imul(Ie,Pe)|0,F=(F=F+Math.imul(Ie,Fe)|0)+Math.imul(K,Pe)|0,U=U+Math.imul(K,Fe)|0;var fe=(v+(G=G+Math.imul(Ce,st)|0)|0)+((8191&(F=(F=F+Math.imul(Ce,At)|0)+Math.imul(Be,st)|0))<<13)|0;v=((U=U+Math.imul(Be,At)|0)+(F>>>13)|0)+(fe>>>26)|0,fe&=67108863,G=Math.imul(nt,jt),F=(F=Math.imul(nt,ei))+Math.imul(ft,jt)|0,U=Math.imul(ft,ei),G=G+Math.imul(xe,ai)|0,F=(F=F+Math.imul(xe,hi)|0)+Math.imul(Ue,ai)|0,U=U+Math.imul(Ue,hi)|0,G=G+Math.imul(q,Ee)|0,F=(F=F+Math.imul(q,Y)|0)+Math.imul($,Ee)|0,U=U+Math.imul($,Y)|0,G=G+Math.imul(he,De)|0,F=(F=F+Math.imul(he,et)|0)+Math.imul(Le,De)|0,U=U+Math.imul(Le,et)|0,G=G+Math.imul(vt,Nt)|0,F=(F=F+Math.imul(vt,Jt)|0)+Math.imul(Re,Nt)|0,U=U+Math.imul(Re,Jt)|0,G=G+Math.imul(we,Pe)|0,F=(F=F+Math.imul(we,Fe)|0)+Math.imul(z,Pe)|0,U=U+Math.imul(z,Fe)|0,G=G+Math.imul(Ie,st)|0,F=(F=F+Math.imul(Ie,At)|0)+Math.imul(K,st)|0,U=U+Math.imul(K,At)|0;var Je=(v+(G=G+Math.imul(Ce,Bt)|0)|0)+((8191&(F=(F=F+Math.imul(Ce,Rt)|0)+Math.imul(Be,Bt)|0))<<13)|0;v=((U=U+Math.imul(Be,Rt)|0)+(F>>>13)|0)+(Je>>>26)|0,Je&=67108863,G=Math.imul(rt,jt),F=(F=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,U=Math.imul(Mt,ei),G=G+Math.imul(nt,ai)|0,F=(F=F+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,U=U+Math.imul(ft,hi)|0,G=G+Math.imul(xe,Ee)|0,F=(F=F+Math.imul(xe,Y)|0)+Math.imul(Ue,Ee)|0,U=U+Math.imul(Ue,Y)|0,G=G+Math.imul(q,De)|0,F=(F=F+Math.imul(q,et)|0)+Math.imul($,De)|0,U=U+Math.imul($,et)|0,G=G+Math.imul(he,Nt)|0,F=(F=F+Math.imul(he,Jt)|0)+Math.imul(Le,Nt)|0,U=U+Math.imul(Le,Jt)|0,G=G+Math.imul(vt,Pe)|0,F=(F=F+Math.imul(vt,Fe)|0)+Math.imul(Re,Pe)|0,U=U+Math.imul(Re,Fe)|0,G=G+Math.imul(we,st)|0,F=(F=F+Math.imul(we,At)|0)+Math.imul(z,st)|0,U=U+Math.imul(z,At)|0,G=G+Math.imul(Ie,Bt)|0,F=(F=F+Math.imul(Ie,Rt)|0)+Math.imul(K,Bt)|0,U=U+Math.imul(K,Rt)|0;var St=(v+(G=G+Math.imul(Ce,si)|0)|0)+((8191&(F=(F=F+Math.imul(Ce,ci)|0)+Math.imul(Be,si)|0))<<13)|0;v=((U=U+Math.imul(Be,ci)|0)+(F>>>13)|0)+(St>>>26)|0,St&=67108863,G=Math.imul(Ft,jt),F=(F=Math.imul(Ft,ei))+Math.imul(Vt,jt)|0,U=Math.imul(Vt,ei),G=G+Math.imul(rt,ai)|0,F=(F=F+Math.imul(rt,hi)|0)+Math.imul(Mt,ai)|0,U=U+Math.imul(Mt,hi)|0,G=G+Math.imul(nt,Ee)|0,F=(F=F+Math.imul(nt,Y)|0)+Math.imul(ft,Ee)|0,U=U+Math.imul(ft,Y)|0,G=G+Math.imul(xe,De)|0,F=(F=F+Math.imul(xe,et)|0)+Math.imul(Ue,De)|0,U=U+Math.imul(Ue,et)|0,G=G+Math.imul(q,Nt)|0,F=(F=F+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,U=U+Math.imul($,Jt)|0,G=G+Math.imul(he,Pe)|0,F=(F=F+Math.imul(he,Fe)|0)+Math.imul(Le,Pe)|0,U=U+Math.imul(Le,Fe)|0,G=G+Math.imul(vt,st)|0,F=(F=F+Math.imul(vt,At)|0)+Math.imul(Re,st)|0,U=U+Math.imul(Re,At)|0,G=G+Math.imul(we,Bt)|0,F=(F=F+Math.imul(we,Rt)|0)+Math.imul(z,Bt)|0,U=U+Math.imul(z,Rt)|0,G=G+Math.imul(Ie,si)|0,F=(F=F+Math.imul(Ie,ci)|0)+Math.imul(K,si)|0,U=U+Math.imul(K,ci)|0;var Pt=(v+(G=G+Math.imul(Ce,Ui)|0)|0)+((8191&(F=(F=F+Math.imul(Ce,Di)|0)+Math.imul(Be,Ui)|0))<<13)|0;v=((U=U+Math.imul(Be,Di)|0)+(F>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,G=Math.imul(Ft,ai),F=(F=Math.imul(Ft,hi))+Math.imul(Vt,ai)|0,U=Math.imul(Vt,hi),G=G+Math.imul(rt,Ee)|0,F=(F=F+Math.imul(rt,Y)|0)+Math.imul(Mt,Ee)|0,U=U+Math.imul(Mt,Y)|0,G=G+Math.imul(nt,De)|0,F=(F=F+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,U=U+Math.imul(ft,et)|0,G=G+Math.imul(xe,Nt)|0,F=(F=F+Math.imul(xe,Jt)|0)+Math.imul(Ue,Nt)|0,U=U+Math.imul(Ue,Jt)|0,G=G+Math.imul(q,Pe)|0,F=(F=F+Math.imul(q,Fe)|0)+Math.imul($,Pe)|0,U=U+Math.imul($,Fe)|0,G=G+Math.imul(he,st)|0,F=(F=F+Math.imul(he,At)|0)+Math.imul(Le,st)|0,U=U+Math.imul(Le,At)|0,G=G+Math.imul(vt,Bt)|0,F=(F=F+Math.imul(vt,Rt)|0)+Math.imul(Re,Bt)|0,U=U+Math.imul(Re,Rt)|0,G=G+Math.imul(we,si)|0,F=(F=F+Math.imul(we,ci)|0)+Math.imul(z,si)|0,U=U+Math.imul(z,ci)|0;var yi=(v+(G=G+Math.imul(Ie,Ui)|0)|0)+((8191&(F=(F=F+Math.imul(Ie,Di)|0)+Math.imul(K,Ui)|0))<<13)|0;v=((U=U+Math.imul(K,Di)|0)+(F>>>13)|0)+(yi>>>26)|0,yi&=67108863,G=Math.imul(Ft,Ee),F=(F=Math.imul(Ft,Y))+Math.imul(Vt,Ee)|0,U=Math.imul(Vt,Y),G=G+Math.imul(rt,De)|0,F=(F=F+Math.imul(rt,et)|0)+Math.imul(Mt,De)|0,U=U+Math.imul(Mt,et)|0,G=G+Math.imul(nt,Nt)|0,F=(F=F+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,U=U+Math.imul(ft,Jt)|0,G=G+Math.imul(xe,Pe)|0,F=(F=F+Math.imul(xe,Fe)|0)+Math.imul(Ue,Pe)|0,U=U+Math.imul(Ue,Fe)|0,G=G+Math.imul(q,st)|0,F=(F=F+Math.imul(q,At)|0)+Math.imul($,st)|0,U=U+Math.imul($,At)|0,G=G+Math.imul(he,Bt)|0,F=(F=F+Math.imul(he,Rt)|0)+Math.imul(Le,Bt)|0,U=U+Math.imul(Le,Rt)|0,G=G+Math.imul(vt,si)|0,F=(F=F+Math.imul(vt,ci)|0)+Math.imul(Re,si)|0,U=U+Math.imul(Re,ci)|0;var Ni=(v+(G=G+Math.imul(we,Ui)|0)|0)+((8191&(F=(F=F+Math.imul(we,Di)|0)+Math.imul(z,Ui)|0))<<13)|0;v=((U=U+Math.imul(z,Di)|0)+(F>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,G=Math.imul(Ft,De),F=(F=Math.imul(Ft,et))+Math.imul(Vt,De)|0,U=Math.imul(Vt,et),G=G+Math.imul(rt,Nt)|0,F=(F=F+Math.imul(rt,Jt)|0)+Math.imul(Mt,Nt)|0,U=U+Math.imul(Mt,Jt)|0,G=G+Math.imul(nt,Pe)|0,F=(F=F+Math.imul(nt,Fe)|0)+Math.imul(ft,Pe)|0,U=U+Math.imul(ft,Fe)|0,G=G+Math.imul(xe,st)|0,F=(F=F+Math.imul(xe,At)|0)+Math.imul(Ue,st)|0,U=U+Math.imul(Ue,At)|0,G=G+Math.imul(q,Bt)|0,F=(F=F+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,U=U+Math.imul($,Rt)|0,G=G+Math.imul(he,si)|0,F=(F=F+Math.imul(he,ci)|0)+Math.imul(Le,si)|0,U=U+Math.imul(Le,ci)|0;var Si=(v+(G=G+Math.imul(vt,Ui)|0)|0)+((8191&(F=(F=F+Math.imul(vt,Di)|0)+Math.imul(Re,Ui)|0))<<13)|0;v=((U=U+Math.imul(Re,Di)|0)+(F>>>13)|0)+(Si>>>26)|0,Si&=67108863,G=Math.imul(Ft,Nt),F=(F=Math.imul(Ft,Jt))+Math.imul(Vt,Nt)|0,U=Math.imul(Vt,Jt),G=G+Math.imul(rt,Pe)|0,F=(F=F+Math.imul(rt,Fe)|0)+Math.imul(Mt,Pe)|0,U=U+Math.imul(Mt,Fe)|0,G=G+Math.imul(nt,st)|0,F=(F=F+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,U=U+Math.imul(ft,At)|0,G=G+Math.imul(xe,Bt)|0,F=(F=F+Math.imul(xe,Rt)|0)+Math.imul(Ue,Bt)|0,U=U+Math.imul(Ue,Rt)|0,G=G+Math.imul(q,si)|0,F=(F=F+Math.imul(q,ci)|0)+Math.imul($,si)|0,U=U+Math.imul($,ci)|0;var qi=(v+(G=G+Math.imul(he,Ui)|0)|0)+((8191&(F=(F=F+Math.imul(he,Di)|0)+Math.imul(Le,Ui)|0))<<13)|0;v=((U=U+Math.imul(Le,Di)|0)+(F>>>13)|0)+(qi>>>26)|0,qi&=67108863,G=Math.imul(Ft,Pe),F=(F=Math.imul(Ft,Fe))+Math.imul(Vt,Pe)|0,U=Math.imul(Vt,Fe),G=G+Math.imul(rt,st)|0,F=(F=F+Math.imul(rt,At)|0)+Math.imul(Mt,st)|0,U=U+Math.imul(Mt,At)|0,G=G+Math.imul(nt,Bt)|0,F=(F=F+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,U=U+Math.imul(ft,Rt)|0,G=G+Math.imul(xe,si)|0,F=(F=F+Math.imul(xe,ci)|0)+Math.imul(Ue,si)|0,U=U+Math.imul(Ue,ci)|0;var ot=(v+(G=G+Math.imul(q,Ui)|0)|0)+((8191&(F=(F=F+Math.imul(q,Di)|0)+Math.imul($,Ui)|0))<<13)|0;v=((U=U+Math.imul($,Di)|0)+(F>>>13)|0)+(ot>>>26)|0,ot&=67108863,G=Math.imul(Ft,st),F=(F=Math.imul(Ft,At))+Math.imul(Vt,st)|0,U=Math.imul(Vt,At),G=G+Math.imul(rt,Bt)|0,F=(F=F+Math.imul(rt,Rt)|0)+Math.imul(Mt,Bt)|0,U=U+Math.imul(Mt,Rt)|0,G=G+Math.imul(nt,si)|0,F=(F=F+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0,U=U+Math.imul(ft,ci)|0;var Kt=(v+(G=G+Math.imul(xe,Ui)|0)|0)+((8191&(F=(F=F+Math.imul(xe,Di)|0)+Math.imul(Ue,Ui)|0))<<13)|0;v=((U=U+Math.imul(Ue,Di)|0)+(F>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,G=Math.imul(Ft,Bt),F=(F=Math.imul(Ft,Rt))+Math.imul(Vt,Bt)|0,U=Math.imul(Vt,Rt),G=G+Math.imul(rt,si)|0,F=(F=F+Math.imul(rt,ci)|0)+Math.imul(Mt,si)|0,U=U+Math.imul(Mt,ci)|0;var gt=(v+(G=G+Math.imul(nt,Ui)|0)|0)+((8191&(F=(F=F+Math.imul(nt,Di)|0)+Math.imul(ft,Ui)|0))<<13)|0;v=((U=U+Math.imul(ft,Di)|0)+(F>>>13)|0)+(gt>>>26)|0,gt&=67108863,G=Math.imul(Ft,si),F=(F=Math.imul(Ft,ci))+Math.imul(Vt,si)|0,U=Math.imul(Vt,ci);var Lt=(v+(G=G+Math.imul(rt,Ui)|0)|0)+((8191&(F=(F=F+Math.imul(rt,Di)|0)+Math.imul(Mt,Ui)|0))<<13)|0;v=((U=U+Math.imul(Mt,Di)|0)+(F>>>13)|0)+(Lt>>>26)|0,Lt&=67108863;var ui=(v+(G=Math.imul(Ft,Ui))|0)+((8191&(F=(F=Math.imul(Ft,Di))+Math.imul(Vt,Ui)|0))<<13)|0;return v=((U=Math.imul(Vt,Di))+(F>>>13)|0)+(ui>>>26)|0,ui&=67108863,r[0]=Xi,r[1]=Ke,r[2]=_t,r[3]=ve,r[4]=qe,r[5]=yt,r[6]=fe,r[7]=Je,r[8]=St,r[9]=Pt,r[10]=yi,r[11]=Ni,r[12]=Si,r[13]=qi,r[14]=ot,r[15]=Kt,r[16]=gt,r[17]=Lt,r[18]=ui,0!==v&&(r[19]=v,L.length++),L};function ie(p,u,_){_.negative=u.negative^p.negative,_.length=p.length+u.length;for(var L=0,I=0,x=0;x<_.length-1;x++){var r=I;I=0;for(var v=67108863&L,G=Math.min(x,u.length-1),F=Math.max(0,x-p.length+1);F<=G;F++){var Be=(0|p.words[x-F])*(0|u.words[F]),ze=67108863&Be;v=67108863&(ze=ze+v|0),I+=(r=(r=r+(Be/67108864|0)|0)+(ze>>>26)|0)>>>26,r&=67108863}_.words[x]=v,L=r,r=I}return 0!==L?_.words[x]=L:_.length--,_._strip()}function ee(p,u,_){return ie(p,u,_)}function _e(p,u){this.x=p,this.y=u}Math.imul||(W=j),o.prototype.mulTo=function(u,_){var I=this.length+u.length;return 10===this.length&&10===u.length?W(this,u,_):I<63?j(this,u,_):I<1024?ie(this,u,_):ee(this,u,_)},_e.prototype.makeRBT=function(u){for(var _=new Array(u),L=o.prototype._countBits(u)-1,I=0;I>=1;return I},_e.prototype.permute=function(u,_,L,I,x,r){for(var v=0;v>>=1)x++;return 1<>>=13),x>>>=13;for(r=2*_;r>=26,L+=x/67108864|0,L+=r>>>26,this.words[I]=67108863&r}return 0!==L&&(this.words[I]=L,this.length++),_?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(p){for(var u=new Array(p.bitLength()),_=0;_>>_%26&1;return u}(u);if(0===_.length)return new o(1);for(var L=this,I=0;I<_.length&&0===_[I];I++,L=L.sqr());if(++I<_.length)for(var x=L.sqr();I<_.length;I++,x=x.sqr())0!==_[I]&&(L=L.mul(x));return L},o.prototype.iushln=function(u){y("number"==typeof u&&u>=0);var x,_=u%26,L=(u-_)/26,I=67108863>>>26-_<<26-_;if(0!==_){var r=0;for(x=0;x>>26-_}r&&(this.words[x]=r,this.length++)}if(0!==L){for(x=this.length-1;x>=0;x--)this.words[x+L]=this.words[x];for(x=0;x=0),I=_?(_-_%26)/26:0;var x=u%26,r=Math.min((u-x)/26,this.length),v=67108863^67108863>>>x<r)for(this.length-=r,F=0;F=0&&(0!==U||F>=I);F--){var ye=0|this.words[F];this.words[F]=U<<26-x|ye>>>x,U=ye&v}return G&&0!==U&&(G.words[G.length++]=U),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(u,_,L){return y(0===this.negative),this.iushrn(u,_,L)},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){y("number"==typeof u&&u>=0);var _=u%26,L=(u-_)/26;return!(this.length<=L||!(this.words[L]&1<<_))},o.prototype.imaskn=function(u){y("number"==typeof u&&u>=0);var _=u%26,L=(u-_)/26;return y(0===this.negative,"imaskn works only with positive numbers"),this.length<=L?this:(0!==_&&L++,this.length=Math.min(L,this.length),0!==_&&(this.words[this.length-1]&=67108863^67108863>>>_<<_),this._strip())},o.prototype.maskn=function(u){return this.clone().imaskn(u)},o.prototype.iaddn=function(u){return y("number"==typeof u),y(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(y("number"==typeof u),y(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)-(G/67108864|0),this.words[x+L]=67108863&r}for(;x>26,this.words[x+L]=67108863&r;if(0===v)return this._strip();for(y(-1===v),v=0,x=0;x>26,this.words[x]=67108863&r;return this.negative=1,this._strip()},o.prototype._wordDiv=function(u,_){var L,I=this.clone(),x=u,r=0|x.words[x.length-1];0!=(L=26-this._countBits(r))&&(x=x.ushln(L),I.iushln(L),r=0|x.words[x.length-1]);var F,G=I.length-x.length;if("mod"!==_){(F=new o(null)).length=G+1,F.words=new Array(F.length);for(var U=0;U=0;Ce--){var Be=67108864*(0|I.words[x.length+Ce])+(0|I.words[x.length+Ce-1]);for(Be=Math.min(Be/r|0,67108863),I._ishlnsubmul(x,Be,Ce);0!==I.negative;)Be--,I.negative=0,I._ishlnsubmul(x,1,Ce),I.isZero()||(I.negative^=1);F&&(F.words[Ce]=Be)}return F&&F._strip(),I._strip(),"div"!==_&&0!==L&&I.iushrn(L),{div:F||null,mod:I}},o.prototype.divmod=function(u,_,L){return y(!u.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===u.negative?(r=this.neg().divmod(u,_),"mod"!==_&&(I=r.div.neg()),"div"!==_&&(x=r.mod.neg(),L&&0!==x.negative&&x.iadd(u)),{div:I,mod:x}):0===this.negative&&0!==u.negative?(r=this.divmod(u.neg(),_),"mod"!==_&&(I=r.div.neg()),{div:I,mod:r.mod}):0!=(this.negative&u.negative)?(r=this.neg().divmod(u.neg(),_),"div"!==_&&(x=r.mod.neg(),L&&0!==x.negative&&x.isub(u)),{div:r.div,mod:x}):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 I,x,r},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 L=0!==_.div.negative?_.mod.isub(u):_.mod,I=u.ushrn(1),x=u.andln(1),r=L.cmp(I);return r<0||1===x&&0===r?_.div:0!==_.div.negative?_.div.isubn(1):_.div.iaddn(1)},o.prototype.modrn=function(u){var _=u<0;_&&(u=-u),y(u<=67108863);for(var L=(1<<26)%u,I=0,x=this.length-1;x>=0;x--)I=(L*I+(0|this.words[x]))%u;return _?-I:I},o.prototype.modn=function(u){return this.modrn(u)},o.prototype.idivn=function(u){var _=u<0;_&&(u=-u),y(u<=67108863);for(var L=0,I=this.length-1;I>=0;I--){var x=(0|this.words[I])+67108864*L;this.words[I]=x/u|0,L=x%u}return this._strip(),_?this.ineg():this},o.prototype.divn=function(u){return this.clone().idivn(u)},o.prototype.egcd=function(u){y(0===u.negative),y(!u.isZero());var _=this,L=u.clone();_=0!==_.negative?_.umod(u):_.clone();for(var I=new o(1),x=new o(0),r=new o(0),v=new o(1),G=0;_.isEven()&&L.isEven();)_.iushrn(1),L.iushrn(1),++G;for(var F=L.clone(),U=_.clone();!_.isZero();){for(var ye=0,Ce=1;0==(_.words[0]&Ce)&&ye<26;++ye,Ce<<=1);if(ye>0)for(_.iushrn(ye);ye-- >0;)(I.isOdd()||x.isOdd())&&(I.iadd(F),x.isub(U)),I.iushrn(1),x.iushrn(1);for(var Be=0,ze=1;0==(L.words[0]&ze)&&Be<26;++Be,ze<<=1);if(Be>0)for(L.iushrn(Be);Be-- >0;)(r.isOdd()||v.isOdd())&&(r.iadd(F),v.isub(U)),r.iushrn(1),v.iushrn(1);_.cmp(L)>=0?(_.isub(L),I.isub(r),x.isub(v)):(L.isub(_),r.isub(I),v.isub(x))}return{a:r,b:v,gcd:L.iushln(G)}},o.prototype._invmp=function(u){y(0===u.negative),y(!u.isZero());var ye,_=this,L=u.clone();_=0!==_.negative?_.umod(u):_.clone();for(var I=new o(1),x=new o(0),r=L.clone();_.cmpn(1)>0&&L.cmpn(1)>0;){for(var v=0,G=1;0==(_.words[0]&G)&&v<26;++v,G<<=1);if(v>0)for(_.iushrn(v);v-- >0;)I.isOdd()&&I.iadd(r),I.iushrn(1);for(var F=0,U=1;0==(L.words[0]&U)&&F<26;++F,U<<=1);if(F>0)for(L.iushrn(F);F-- >0;)x.isOdd()&&x.iadd(r),x.iushrn(1);_.cmp(L)>=0?(_.isub(L),I.isub(x)):(L.isub(_),x.isub(I))}return(ye=0===_.cmpn(1)?I:x).cmpn(0)<0&&ye.iadd(u),ye},o.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var _=this.clone(),L=u.clone();_.negative=0,L.negative=0;for(var I=0;_.isEven()&&L.isEven();I++)_.iushrn(1),L.iushrn(1);for(;;){for(;_.isEven();)_.iushrn(1);for(;L.isEven();)L.iushrn(1);var x=_.cmp(L);if(x<0){var r=_;_=L,L=r}else if(0===x||0===L.cmpn(1))break;_.isub(L)}return L.iushln(I)},o.prototype.invm=function(u){return this.egcd(u).a.umod(u)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(u){return this.words[0]&u},o.prototype.bincn=function(u){y("number"==typeof u);var _=u%26,L=(u-_)/26,I=1<<_;if(this.length<=L)return this._expand(L+1),this.words[L]|=I,this;for(var x=I,r=L;0!==x&&r>>26,this.words[r]=v&=67108863}return 0!==x&&(this.words[r]=x,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(u){var L,_=u<0;if(0!==this.negative&&!_)return-1;if(0===this.negative&&_)return 1;if(this._strip(),this.length>1)L=1;else{_&&(u=-u),y(u<=67108863,"Number is too big");var I=0|this.words[0];L=I===u?0:Iu.length)return 1;if(this.length=0;L--){var I=0|this.words[L],x=0|u.words[L];if(I!==x){Ix&&(_=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 i(u)},o.prototype.toRed=function(u){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),u.convertTo(this)._forceRed(u)},o.prototype.fromRed=function(){return y(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 y(!this.red,"Already a number in reduction context"),this._forceRed(u)},o.prototype.redAdd=function(u){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},o.prototype.redIAdd=function(u){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},o.prototype.redSub=function(u){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},o.prototype.redISub=function(u){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},o.prototype.redShl=function(u){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},o.prototype.redMul=function(u){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},o.prototype.redIMul=function(u){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},o.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(u){return y(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var ce={k256:null,p224:null,p192:null,p25519:null};function re(p,u){this.name=p,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 de(){re.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function oe(){re.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ae(){re.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function b(){re.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function i(p){if("string"==typeof p){var u=o._prime(p);this.m=u.p,this.prime=u}else y(p.gtn(1),"modulus must be greater than 1"),this.m=p,this.prime=null}function a(p){i.call(this,p),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)}re.prototype._tmp=function(){var u=new o(null);return u.words=new Array(Math.ceil(this.n/13)),u},re.prototype.ireduce=function(u){var L,_=u;do{this.split(_,this.tmp),L=(_=(_=this.imulK(_)).iadd(this.tmp)).bitLength()}while(L>this.n);var I=L0?_.isub(this.p):void 0!==_.strip?_.strip():_._strip(),_},re.prototype.split=function(u,_){u.iushrn(this.n,0,_)},re.prototype.imulK=function(u){return u.imul(this.k)},C(de,re),de.prototype.split=function(u,_){for(var L=4194303,I=Math.min(u.length,9),x=0;x>>22,r=v}u.words[x-10]=r>>>=22,u.length-=0===r&&u.length>10?10:9},de.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var _=0,L=0;L>>=26,u.words[L]=x,_=I}return 0!==_&&(u.words[u.length++]=_),u},o._prime=function(u){if(ce[u])return ce[u];var _;if("k256"===u)_=new de;else if("p224"===u)_=new oe;else if("p192"===u)_=new ae;else{if("p25519"!==u)throw new Error("Unknown prime "+u);_=new b}return ce[u]=_,_},i.prototype._verify1=function(u){y(0===u.negative,"red works only with positives"),y(u.red,"red works only with red numbers")},i.prototype._verify2=function(u,_){y(0==(u.negative|_.negative),"red works only with positives"),y(u.red&&u.red===_.red,"red works only with red numbers")},i.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):(D(u,u.umod(this.m)._forceRed(this)),u)},i.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},i.prototype.add=function(u,_){this._verify2(u,_);var L=u.add(_);return L.cmp(this.m)>=0&&L.isub(this.m),L._forceRed(this)},i.prototype.iadd=function(u,_){this._verify2(u,_);var L=u.iadd(_);return L.cmp(this.m)>=0&&L.isub(this.m),L},i.prototype.sub=function(u,_){this._verify2(u,_);var L=u.sub(_);return L.cmpn(0)<0&&L.iadd(this.m),L._forceRed(this)},i.prototype.isub=function(u,_){this._verify2(u,_);var L=u.isub(_);return L.cmpn(0)<0&&L.iadd(this.m),L},i.prototype.shl=function(u,_){return this._verify1(u),this.imod(u.ushln(_))},i.prototype.imul=function(u,_){return this._verify2(u,_),this.imod(u.imul(_))},i.prototype.mul=function(u,_){return this._verify2(u,_),this.imod(u.mul(_))},i.prototype.isqr=function(u){return this.imul(u,u.clone())},i.prototype.sqr=function(u){return this.mul(u,u)},i.prototype.sqrt=function(u){if(u.isZero())return u.clone();var _=this.m.andln(3);if(y(_%2==1),3===_){var L=this.m.add(new o(1)).iushrn(2);return this.pow(u,L)}for(var I=this.m.subn(1),x=0;!I.isZero()&&0===I.andln(1);)x++,I.iushrn(1);y(!I.isZero());var r=new o(1).toRed(this),v=r.redNeg(),G=this.m.subn(1).iushrn(1),F=this.m.bitLength();for(F=new o(2*F*F).toRed(this);0!==this.pow(F,G).cmp(v);)F.redIAdd(v);for(var U=this.pow(F,I),ye=this.pow(u,I.addn(1).iushrn(1)),Ce=this.pow(u,I),Be=x;0!==Ce.cmp(r);){for(var ze=Ce,Ie=0;0!==ze.cmp(r);Ie++)ze=ze.redSqr();y(Ie=0;x--){for(var U=_.words[x],ye=F-1;ye>=0;ye--){var Ce=U>>ye&1;r!==I[0]&&(r=this.sqr(r)),0!==Ce||0!==v?(v<<=1,v|=Ce,(4==++G||0===x&&0===ye)&&(r=this.mul(r,I[v]),G=0,v=0)):G=0}F=26}return r},i.prototype.convertTo=function(u){var _=u.umod(this.m);return _===u?_.clone():_},i.prototype.convertFrom=function(u){var _=u.clone();return _.red=null,_},o.mont=function(u){return new a(u)},C(a,i),a.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},a.prototype.convertFrom=function(u){var _=this.imod(u.mul(this.rinv));return _.red=null,_},a.prototype.imul=function(u,_){if(u.isZero()||_.isZero())return u.words[0]=0,u.length=1,u;var L=u.imul(_),I=L.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=L.isub(I).iushrn(this.shift),r=x;return x.cmp(this.m)>=0?r=x.isub(this.m):x.cmpn(0)<0&&(r=x.iadd(this.m)),r._forceRed(this)},a.prototype.mul=function(u,_){if(u.isZero()||_.isZero())return new o(0)._forceRed(this);var L=u.mul(_),I=L.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=L.isub(I).iushrn(this.shift),r=x;return x.cmp(this.m)>=0?r=x.isub(this.m):x.cmpn(0)<0&&(r=x.iadd(this.m)),r._forceRed(this)},a.prototype.invm=function(u){return this.imod(u._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ve=m.nmd(Ve),this)},7950:(Ve,Q,m)=>{var e;function t(C){this.rand=C}if(Ve.exports=function(o){return e||(e=new t(null)),e.generate(o)},Ve.exports.Rand=t,t.prototype.generate=function(o){return this._rand(o)},t.prototype._rand=function(o){if(this.rand.getBytes)return this.rand.getBytes(o);for(var M=new Uint8Array(o),l=0;l{var e=m(3502).Buffer;function t(N){e.isBuffer(N)||(N=e.from(N));for(var s=N.length/4|0,D=new Array(s),A=0;A>>24]^P[W>>>16&255]^w[ie>>>8&255]^Z[255&ee]^s[oe++],ce=E[W>>>24]^P[ie>>>16&255]^w[ee>>>8&255]^Z[255&j]^s[oe++],re=E[ie>>>24]^P[ee>>>16&255]^w[j>>>8&255]^Z[255&W]^s[oe++],de=E[ee>>>24]^P[j>>>16&255]^w[W>>>8&255]^Z[255&ie]^s[oe++],j=_e,W=ce,ie=re,ee=de;return _e=(A[j>>>24]<<24|A[W>>>16&255]<<16|A[ie>>>8&255]<<8|A[255&ee])^s[oe++],ce=(A[W>>>24]<<24|A[ie>>>16&255]<<16|A[ee>>>8&255]<<8|A[255&j])^s[oe++],re=(A[ie>>>24]<<24|A[ee>>>16&255]<<16|A[j>>>8&255]<<8|A[255&W])^s[oe++],de=(A[ee>>>24]<<24|A[j>>>16&255]<<16|A[W>>>8&255]<<8|A[255&ie])^s[oe++],[_e>>>=0,ce>>>=0,re>>>=0,de>>>=0]}var o=[0,1,2,4,8,16,32,64,128,27,54],M=function(){for(var N=new Array(256),s=0;s<256;s++)N[s]=s<128?s<<1:s<<1^283;for(var D=[],A=[],O=[[],[],[],[]],E=[[],[],[],[]],P=0,w=0,Z=0;Z<256;++Z){var j=w^w<<1^w<<2^w<<3^w<<4;D[P]=j=j>>>8^255&j^99,A[j]=P;var W=N[P],ie=N[W],ee=N[ie],_e=257*N[j]^16843008*j;O[0][P]=_e<<24|_e>>>8,O[1][P]=_e<<16|_e>>>16,O[2][P]=_e<<8|_e>>>24,O[3][P]=_e,E[0][j]=(_e=16843009*ee^65537*ie^257*W^16843008*P)<<24|_e>>>8,E[1][j]=_e<<16|_e>>>16,E[2][j]=_e<<8|_e>>>24,E[3][j]=_e,0===P?P=w=1:(P=W^N[N[N[ee^W]]],w^=N[N[w]])}return{SBOX:D,INV_SBOX:A,SUB_MIX:O,INV_SUB_MIX:E}}();function l(N){this._key=t(N),this._reset()}l.blockSize=16,l.keySize=32,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var N=this._key,s=N.length,D=s+6,A=4*(D+1),O=[],E=0;E>>24)>>>24]<<24|M.SBOX[P>>>16&255]<<16|M.SBOX[P>>>8&255]<<8|M.SBOX[255&P],P^=o[E/s|0]<<24):s>6&&E%s==4&&(P=M.SBOX[P>>>24]<<24|M.SBOX[P>>>16&255]<<16|M.SBOX[P>>>8&255]<<8|M.SBOX[255&P]),O[E]=O[E-s]^P}for(var w=[],Z=0;Z>>24]]^M.INV_SUB_MIX[1][M.SBOX[W>>>16&255]]^M.INV_SUB_MIX[2][M.SBOX[W>>>8&255]]^M.INV_SUB_MIX[3][M.SBOX[255&W]]}this._nRounds=D,this._keySchedule=O,this._invKeySchedule=w},l.prototype.encryptBlockRaw=function(N){return C(N=t(N),this._keySchedule,M.SUB_MIX,M.SBOX,this._nRounds)},l.prototype.encryptBlock=function(N){var s=this.encryptBlockRaw(N),D=e.allocUnsafe(16);return D.writeUInt32BE(s[0],0),D.writeUInt32BE(s[1],4),D.writeUInt32BE(s[2],8),D.writeUInt32BE(s[3],12),D},l.prototype.decryptBlock=function(N){var s=(N=t(N))[1];N[1]=N[3],N[3]=s;var D=C(N,this._invKeySchedule,M.INV_SUB_MIX,M.INV_SBOX,this._nRounds),A=e.allocUnsafe(16);return A.writeUInt32BE(D[0],0),A.writeUInt32BE(D[3],4),A.writeUInt32BE(D[2],8),A.writeUInt32BE(D[1],12),A},l.prototype.scrub=function(){y(this._keySchedule),y(this._invKeySchedule),y(this._key)},Ve.exports.AES=l},9382:(Ve,Q,m)=>{var e=m(1899),t=m(3502).Buffer,y=m(1052),C=m(3894),o=m(8857),M=m(8789),l=m(7968);function D(A,O,E,P){y.call(this);var w=t.alloc(4,0);this._cipher=new e.AES(O);var Z=this._cipher.encryptBlock(w);this._ghash=new o(Z),E=function s(A,O,E){if(12===O.length)return A._finID=t.concat([O,t.from([0,0,0,1])]),t.concat([O,t.from([0,0,0,2])]);var P=new o(E),w=O.length,Z=w%16;P.update(O),Z&&P.update(t.alloc(Z=16-Z,0)),P.update(t.alloc(8,0));var j=8*w,W=t.alloc(8);W.writeUIntBE(j,0,8),P.update(W),A._finID=P.state;var ie=t.from(A._finID);return l(ie),ie}(this,E,Z),this._prev=t.from(E),this._cache=t.allocUnsafe(0),this._secCache=t.allocUnsafe(0),this._decrypt=P,this._alen=0,this._len=0,this._mode=A,this._authTag=null,this._called=!1}C(D,y),D.prototype._update=function(A){if(!this._called&&this._alen){var O=16-this._alen%16;O<16&&(O=t.alloc(O,0),this._ghash.update(O))}this._called=!0;var E=this._mode.encrypt(this,A);return this._ghash.update(this._decrypt?A:E),this._len+=A.length,E},D.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var A=M(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function N(A,O){var E=0;A.length!==O.length&&E++;for(var P=Math.min(A.length,O.length),w=0;w{var e=m(6900),t=m(856),y=m(4946);Q.createCipher=Q.Cipher=e.createCipher,Q.createCipheriv=Q.Cipheriv=e.createCipheriv,Q.createDecipher=Q.Decipher=t.createDecipher,Q.createDecipheriv=Q.Decipheriv=t.createDecipheriv,Q.listCiphers=Q.getCiphers=function C(){return Object.keys(y)}},856:(Ve,Q,m)=>{var e=m(9382),t=m(3502).Buffer,y=m(9171),C=m(8441),o=m(1052),M=m(1899),l=m(347);function s(P,w,Z){o.call(this),this._cache=new D,this._last=void 0,this._cipher=new M.AES(w),this._prev=t.from(Z),this._mode=P,this._autopadding=!0}function D(){this.cache=t.allocUnsafe(0)}function O(P,w,Z){var j=y[P.toLowerCase()];if(!j)throw new TypeError("invalid suite type");if("string"==typeof Z&&(Z=t.from(Z)),"GCM"!==j.mode&&Z.length!==j.iv)throw new TypeError("invalid iv length "+Z.length);if("string"==typeof w&&(w=t.from(w)),w.length!==j.key/8)throw new TypeError("invalid key length "+w.length);return"stream"===j.type?new C(j.module,w,Z,!0):"auth"===j.type?new e(j.module,w,Z,!0):new s(j.module,w,Z)}m(3894)(s,o),s.prototype._update=function(P){this._cache.add(P);for(var w,Z,j=[];w=this._cache.get(this._autopadding);)Z=this._mode.decrypt(this,w),j.push(Z);return t.concat(j)},s.prototype._final=function(){var P=this._cache.flush();if(this._autopadding)return function A(P){var w=P[15];if(w<1||w>16)throw new Error("unable to decrypt data");for(var Z=-1;++Z16)return w=this.cache.slice(0,16),this.cache=this.cache.slice(16),w}else if(this.cache.length>=16)return w=this.cache.slice(0,16),this.cache=this.cache.slice(16),w;return null},D.prototype.flush=function(){if(this.cache.length)return this.cache},Q.createDecipher=function E(P,w){var Z=y[P.toLowerCase()];if(!Z)throw new TypeError("invalid suite type");var j=l(w,!1,Z.key,Z.iv);return O(P,j.key,j.iv)},Q.createDecipheriv=O},6900:(Ve,Q,m)=>{var e=m(9171),t=m(9382),y=m(3502).Buffer,C=m(8441),o=m(1052),M=m(1899),l=m(347);function s(P,w,Z){o.call(this),this._cache=new A,this._cipher=new M.AES(w),this._prev=y.from(Z),this._mode=P,this._autopadding=!0}m(3894)(s,o),s.prototype._update=function(P){this._cache.add(P);for(var w,Z,j=[];w=this._cache.get();)Z=this._mode.encrypt(this,w),j.push(Z);return y.concat(j)};var D=y.alloc(16,16);function A(){this.cache=y.allocUnsafe(0)}function O(P,w,Z){var j=e[P.toLowerCase()];if(!j)throw new TypeError("invalid suite type");if("string"==typeof w&&(w=y.from(w)),w.length!==j.key/8)throw new TypeError("invalid key length "+w.length);if("string"==typeof Z&&(Z=y.from(Z)),"GCM"!==j.mode&&Z.length!==j.iv)throw new TypeError("invalid iv length "+Z.length);return"stream"===j.type?new C(j.module,w,Z):"auth"===j.type?new t(j.module,w,Z):new s(j.module,w,Z)}s.prototype._final=function(){var P=this._cache.flush();if(this._autopadding)return P=this._mode.encrypt(this,P),this._cipher.scrub(),P;if(!P.equals(D))throw this._cipher.scrub(),new Error("data not multiple of block length")},s.prototype.setAutoPadding=function(P){return this._autopadding=!!P,this},A.prototype.add=function(P){this.cache=y.concat([this.cache,P])},A.prototype.get=function(){if(this.cache.length>15){var P=this.cache.slice(0,16);return this.cache=this.cache.slice(16),P}return null},A.prototype.flush=function(){for(var P=16-this.cache.length,w=y.allocUnsafe(P),Z=-1;++Z{var e=m(3502).Buffer,t=e.alloc(16,0);function C(M){var l=e.allocUnsafe(16);return l.writeUInt32BE(M[0]>>>0,0),l.writeUInt32BE(M[1]>>>0,4),l.writeUInt32BE(M[2]>>>0,8),l.writeUInt32BE(M[3]>>>0,12),l}function o(M){this.h=M,this.state=e.alloc(16,0),this.cache=e.allocUnsafe(0)}o.prototype.ghash=function(M){for(var l=-1;++l0;N--)M[N]=M[N]>>>1|(1&M[N-1])<<31;M[0]=M[0]>>>1,D&&(M[0]=M[0]^225<<24)}this.state=C(l)},o.prototype.update=function(M){this.cache=e.concat([this.cache,M]);for(var l;this.cache.length>=16;)l=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(l)},o.prototype.final=function(M,l){return this.cache.length&&this.ghash(e.concat([this.cache,t],16)),this.ghash(C([0,M,0,l])),this.state},Ve.exports=o},7968:Ve=>{Ve.exports=function Q(m){for(var t,e=m.length;e--;){if(255!==(t=m.readUInt8(e))){t++,m.writeUInt8(t,e);break}m.writeUInt8(0,e)}}},4903:(Ve,Q,m)=>{var e=m(8789);Q.encrypt=function(t,y){var C=e(y,t._prev);return t._prev=t._cipher.encryptBlock(C),t._prev},Q.decrypt=function(t,y){var C=t._prev;t._prev=y;var o=t._cipher.decryptBlock(y);return e(o,C)}},9885:(Ve,Q,m)=>{var e=m(3502).Buffer,t=m(8789);function y(C,o,M){var l=o.length,N=t(o,C._cache);return C._cache=C._cache.slice(l),C._prev=e.concat([C._prev,M?o:N]),N}Q.encrypt=function(C,o,M){for(var N,l=e.allocUnsafe(0);o.length;){if(0===C._cache.length&&(C._cache=C._cipher.encryptBlock(C._prev),C._prev=e.allocUnsafe(0)),!(C._cache.length<=o.length)){l=e.concat([l,y(C,o,M)]);break}l=e.concat([l,y(C,o.slice(0,N=C._cache.length),M)]),o=o.slice(N)}return l}},6531:(Ve,Q,m)=>{var e=m(3502).Buffer;function t(C,o,M){for(var A,O,N=-1,D=0;++N<8;)D+=(128&(O=C._cipher.encryptBlock(C._prev)[0]^(A=o&1<<7-N?128:0)))>>N%8,C._prev=y(C._prev,M?A:O);return D}function y(C,o){var M=C.length,l=-1,N=e.allocUnsafe(C.length);for(C=e.concat([C,e.from([o])]);++l>7;return N}Q.encrypt=function(C,o,M){for(var l=o.length,N=e.allocUnsafe(l),s=-1;++s{var e=m(3502).Buffer;function t(y,C,o){var l=y._cipher.encryptBlock(y._prev)[0]^C;return y._prev=e.concat([y._prev.slice(1),e.from([o?C:l])]),l}Q.encrypt=function(y,C,o){for(var M=C.length,l=e.allocUnsafe(M),N=-1;++N{var e=m(8789),t=m(3502).Buffer,y=m(7968);function C(M){var l=M._cipher.encryptBlockRaw(M._prev);return y(M._prev),l}Q.encrypt=function(M,l){var N=Math.ceil(l.length/16),s=M._cache.length;M._cache=t.concat([M._cache,t.allocUnsafe(16*N)]);for(var D=0;D{Q.encrypt=function(m,e){return m._cipher.encryptBlock(e)},Q.decrypt=function(m,e){return m._cipher.decryptBlock(e)}},9171:(Ve,Q,m)=>{var e={ECB:m(1704),CBC:m(4903),CFB:m(9885),CFB8:m(1641),CFB1:m(6531),OFB:m(6816),CTR:m(1150),GCM:m(1150)},t=m(4946);for(var y in t)t[y].module=e[t[y].mode];Ve.exports=t},6816:(Ve,Q,m)=>{var e=m(8789);function t(y){return y._prev=y._cipher.encryptBlock(y._prev),y._prev}Q.encrypt=function(y,C){for(;y._cache.length{var e=m(1899),t=m(3502).Buffer,y=m(1052);function o(M,l,N,s){y.call(this),this._cipher=new e.AES(l),this._prev=t.from(N),this._cache=t.allocUnsafe(0),this._secCache=t.allocUnsafe(0),this._decrypt=s,this._mode=M}m(3894)(o,y),o.prototype._update=function(M){return this._mode.encrypt(this,M,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},Ve.exports=o},5255:(Ve,Q,m)=>{var e=m(9004),t=m(4330),y=m(9171),C=m(1115),o=m(347);function N(A,O,E){if(A=A.toLowerCase(),y[A])return t.createCipheriv(A,O,E);if(C[A])return new e({key:O,iv:E,mode:A});throw new TypeError("invalid suite type")}function s(A,O,E){if(A=A.toLowerCase(),y[A])return t.createDecipheriv(A,O,E);if(C[A])return new e({key:O,iv:E,mode:A,decrypt:!0});throw new TypeError("invalid suite type")}Q.createCipher=Q.Cipher=function M(A,O){var E,P;if(A=A.toLowerCase(),y[A])E=y[A].key,P=y[A].iv;else{if(!C[A])throw new TypeError("invalid suite type");E=8*C[A].key,P=C[A].iv}var w=o(O,!1,E,P);return N(A,w.key,w.iv)},Q.createCipheriv=Q.Cipheriv=N,Q.createDecipher=Q.Decipher=function l(A,O){var E,P;if(A=A.toLowerCase(),y[A])E=y[A].key,P=y[A].iv;else{if(!C[A])throw new TypeError("invalid suite type");E=8*C[A].key,P=C[A].iv}var w=o(O,!1,E,P);return s(A,w.key,w.iv)},Q.createDecipheriv=Q.Decipheriv=s,Q.listCiphers=Q.getCiphers=function D(){return Object.keys(C).concat(t.getCiphers())}},9004:(Ve,Q,m)=>{var e=m(1052),t=m(3684),y=m(3894),C=m(3502).Buffer,o={"des-ede3-cbc":t.CBC.instantiate(t.EDE),"des-ede3":t.EDE,"des-ede-cbc":t.CBC.instantiate(t.EDE),"des-ede":t.EDE,"des-cbc":t.CBC.instantiate(t.DES),"des-ecb":t.DES};function M(l){e.call(this);var D,N=l.mode.toLowerCase(),s=o[N];D=l.decrypt?"decrypt":"encrypt";var A=l.key;C.isBuffer(A)||(A=C.from(A)),("des-ede"===N||"des-ede-cbc"===N)&&(A=C.concat([A,A.slice(0,8)]));var O=l.iv;C.isBuffer(O)||(O=C.from(O)),this._des=s.create({key:A,iv:O,type:D})}o.des=o["des-cbc"],o.des3=o["des-ede3-cbc"],Ve.exports=M,y(M,e),M.prototype._update=function(l){return C.from(this._des.update(l))},M.prototype._final=function(){return C.from(this._des.final())}},1115:(Ve,Q)=>{Q["des-ecb"]={key:8,iv:0},Q["des-cbc"]=Q.des={key:8,iv:8},Q["des-ede3-cbc"]=Q.des3={key:24,iv:8},Q["des-ede3"]={key:24,iv:0},Q["des-ede-cbc"]={key:16,iv:8},Q["des-ede"]={key:16,iv:0}},8466:(Ve,Q,m)=>{var e=m(8538),t=m(3753);function C(M){var N,l=M.modulus.byteLength();do{N=new e(t(l))}while(N.cmp(M.modulus)>=0||!N.umod(M.prime1)||!N.umod(M.prime2));return N}function o(M,l){var N=function y(M){var l=C(M);return{blinder:l.toRed(e.mont(M.modulus)).redPow(new e(M.publicExponent)).fromRed(),unblinder:l.invm(M.modulus)}}(l),s=l.modulus.byteLength(),D=new e(M).mul(N.blinder).umod(l.modulus),A=D.toRed(e.mont(l.prime1)),O=D.toRed(e.mont(l.prime2)),E=l.coefficient,P=l.prime1,w=l.prime2,Z=A.redPow(l.exponent1).fromRed(),j=O.redPow(l.exponent2).fromRed(),W=Z.isub(j).imul(E).umod(P).imul(w);return j.iadd(W).imul(N.unblinder).umod(l.modulus).toArrayLike(Buffer,"be",s)}o.getr=C,Ve.exports=o},7793:(Ve,Q,m)=>{Ve.exports=m(5207)},3923:(Ve,Q,m)=>{var e=m(8446).Buffer,t=m(6386),y=m(5685),C=m(3894),o=m(9947),M=m(3946),l=m(5207);function N(O){y.Writable.call(this);var E=l[O];if(!E)throw new Error("Unknown message digest");this._hashType=E.hash,this._hash=t(E.hash),this._tag=E.id,this._signType=E.sign}function s(O){y.Writable.call(this);var E=l[O];if(!E)throw new Error("Unknown message digest");this._hash=t(E.hash),this._tag=E.id,this._signType=E.sign}function D(O){return new N(O)}function A(O){return new s(O)}Object.keys(l).forEach(function(O){l[O].id=e.from(l[O].id,"hex"),l[O.toLowerCase()]=l[O]}),C(N,y.Writable),N.prototype._write=function(E,P,w){this._hash.update(E),w()},N.prototype.update=function(E,P){return"string"==typeof E&&(E=e.from(E,P)),this._hash.update(E),this},N.prototype.sign=function(E,P){this.end();var w=this._hash.digest(),Z=o(w,E,this._hashType,this._signType,this._tag);return P?Z.toString(P):Z},C(s,y.Writable),s.prototype._write=function(E,P,w){this._hash.update(E),w()},s.prototype.update=function(E,P){return"string"==typeof E&&(E=e.from(E,P)),this._hash.update(E),this},s.prototype.verify=function(E,P,w){"string"==typeof P&&(P=e.from(P,w)),this.end();var Z=this._hash.digest();return M(P,Z,E,this._signType,this._tag)},Ve.exports={Sign:D,Verify:A,createSign:D,createVerify:A}},9947:(Ve,Q,m)=>{var e=m(8446).Buffer,t=m(4529),y=m(8466),C=m(7715).ec,o=m(8538),M=m(2772),l=m(1308);function O(j,W,ie,ee){if((j=e.from(j.toArray())).length0&&ie.ishrn(ee),ie}function w(j,W,ie){var ee,_e;do{for(ee=e.alloc(0);8*ee.length{var e=m(8446).Buffer,t=m(8538),y=m(7715).ec,C=m(2772),o=m(1308);function s(D,A){if(D.cmpn(0)<=0)throw new Error("invalid sig");if(D.cmp(A)>=A)throw new Error("invalid sig")}Ve.exports=function M(D,A,O,E,P){var w=C(O);if("ec"===w.type){if("ecdsa"!==E&&"ecdsa/rsa"!==E)throw new Error("wrong public key type");return function l(D,A,O){var E=o[O.data.algorithm.curve.join(".")];if(!E)throw new Error("unknown curve "+O.data.algorithm.curve.join("."));return new y(E).verify(A,D,O.data.subjectPrivateKey.data)}(D,A,w)}if("dsa"===w.type){if("dsa"!==E)throw new Error("wrong public key type");return function N(D,A,O){var E=O.data.p,P=O.data.q,w=O.data.g,Z=O.data.pub_key,j=C.signature.decode(D,"der"),W=j.s,ie=j.r;s(W,P),s(ie,P);var ee=t.mont(E),_e=W.invm(P);return 0===w.toRed(ee).redPow(new t(A).mul(_e).mod(P)).fromRed().mul(Z.toRed(ee).redPow(ie.mul(_e).mod(P)).fromRed()).mod(E).mod(P).cmp(ie)}(D,A,w)}if("rsa"!==E&&"ecdsa/rsa"!==E)throw new Error("wrong public key type");A=e.concat([P,A]);for(var Z=w.modulus.byteLength(),j=[1],W=0;A.length+j.length+2{var e=m(3172),t=e.Buffer;function y(o,M){for(var l in o)M[l]=o[l]}function C(o,M,l){return t(o,M,l)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?Ve.exports=e:(y(e,Q),Q.Buffer=C),C.prototype=Object.create(t.prototype),y(t,C),C.from=function(o,M,l){if("number"==typeof o)throw new TypeError("Argument must not be a number");return t(o,M,l)},C.alloc=function(o,M,l){if("number"!=typeof o)throw new TypeError("Argument must be a number");var N=t(o);return void 0!==M?"string"==typeof l?N.fill(M,l):N.fill(M):N.fill(0),N},C.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return t(o)},C.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return e.SlowBuffer(o)}},8789:Ve=>{Ve.exports=function(m,e){for(var t=Math.min(m.length,e.length),y=new Buffer(t),C=0;C{"use strict";var e=m(5343),t=m(8461),y="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Q.Buffer=l,Q.SlowBuffer=function W(Re){return+Re!=Re&&(Re=0),l.alloc(+Re)},Q.INSPECT_MAX_BYTES=50;var C=2147483647;function M(Re){if(Re>C)throw new RangeError('The value "'+Re+'" is invalid for option "size"');var Ne=new Uint8Array(Re);return Object.setPrototypeOf(Ne,l.prototype),Ne}function l(Re,Ne,he){if("number"==typeof Re){if("string"==typeof Ne)throw new TypeError('The "string" argument must be of type string. Received type number');return A(Re)}return N(Re,Ne,he)}function N(Re,Ne,he){if("string"==typeof Re)return function O(Re,Ne){if(("string"!=typeof Ne||""===Ne)&&(Ne="utf8"),!l.isEncoding(Ne))throw new TypeError("Unknown encoding: "+Ne);var he=0|ie(Re,Ne),Le=M(he),ke=Le.write(Re,Ne);return ke!==he&&(Le=Le.slice(0,ke)),Le}(Re,Ne);if(ArrayBuffer.isView(Re))return function P(Re){if(z(Re,Uint8Array)){var Ne=new Uint8Array(Re);return w(Ne.buffer,Ne.byteOffset,Ne.byteLength)}return E(Re)}(Re);if(null==Re)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Re);if(z(Re,ArrayBuffer)||Re&&z(Re.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(z(Re,SharedArrayBuffer)||Re&&z(Re.buffer,SharedArrayBuffer)))return w(Re,Ne,he);if("number"==typeof Re)throw new TypeError('The "value" argument must not be of type number. Received type number');var Le=Re.valueOf&&Re.valueOf();if(null!=Le&&Le!==Re)return l.from(Le,Ne,he);var ke=function Z(Re){if(l.isBuffer(Re)){var Ne=0|j(Re.length),he=M(Ne);return 0===he.length||Re.copy(he,0,0,Ne),he}return void 0!==Re.length?"number"!=typeof Re.length||Ge(Re.length)?M(0):E(Re):"Buffer"===Re.type&&Array.isArray(Re.data)?E(Re.data):void 0}(Re);if(ke)return ke;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof Re[Symbol.toPrimitive])return l.from(Re[Symbol.toPrimitive]("string"),Ne,he);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Re)}function s(Re){if("number"!=typeof Re)throw new TypeError('"size" argument must be of type number');if(Re<0)throw new RangeError('The value "'+Re+'" is invalid for option "size"')}function A(Re){return s(Re),M(Re<0?0:0|j(Re))}function E(Re){for(var Ne=Re.length<0?0:0|j(Re.length),he=M(Ne),Le=0;Le=C)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+C.toString(16)+" bytes");return 0|Re}function ie(Re,Ne){if(l.isBuffer(Re))return Re.length;if(ArrayBuffer.isView(Re)||z(Re,ArrayBuffer))return Re.byteLength;if("string"!=typeof Re)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Re);var he=Re.length,Le=arguments.length>2&&!0===arguments[2];if(!Le&&0===he)return 0;for(var ke=!1;;)switch(Ne){case"ascii":case"latin1":case"binary":return he;case"utf8":case"utf-8":return ze(Re).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*he;case"hex":return he>>>1;case"base64":return Me(Re).length;default:if(ke)return Le?-1:ze(Re).length;Ne=(""+Ne).toLowerCase(),ke=!0}}function ee(Re,Ne,he){var Le=!1;if((void 0===Ne||Ne<0)&&(Ne=0),Ne>this.length||((void 0===he||he>this.length)&&(he=this.length),he<=0)||(he>>>=0)<=(Ne>>>=0))return"";for(Re||(Re="utf8");;)switch(Re){case"hex":return x(this,Ne,he);case"utf8":case"utf-8":return p(this,Ne,he);case"ascii":return L(this,Ne,he);case"latin1":case"binary":return I(this,Ne,he);case"base64":return a(this,Ne,he);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r(this,Ne,he);default:if(Le)throw new TypeError("Unknown encoding: "+Re);Re=(Re+"").toLowerCase(),Le=!0}}function _e(Re,Ne,he){var Le=Re[Ne];Re[Ne]=Re[he],Re[he]=Le}function ce(Re,Ne,he,Le,ke){if(0===Re.length)return-1;if("string"==typeof he?(Le=he,he=0):he>2147483647?he=2147483647:he<-2147483648&&(he=-2147483648),Ge(he=+he)&&(he=ke?0:Re.length-1),he<0&&(he=Re.length+he),he>=Re.length){if(ke)return-1;he=Re.length-1}else if(he<0){if(!ke)return-1;he=0}if("string"==typeof Ne&&(Ne=l.from(Ne,Le)),l.isBuffer(Ne))return 0===Ne.length?-1:re(Re,Ne,he,Le,ke);if("number"==typeof Ne)return Ne&=255,"function"==typeof Uint8Array.prototype.indexOf?ke?Uint8Array.prototype.indexOf.call(Re,Ne,he):Uint8Array.prototype.lastIndexOf.call(Re,Ne,he):re(Re,[Ne],he,Le,ke);throw new TypeError("val must be string, number or Buffer")}function re(Re,Ne,he,Le,ke){var Ue,q=1,$=Re.length,le=Ne.length;if(void 0!==Le&&("ucs2"===(Le=String(Le).toLowerCase())||"ucs-2"===Le||"utf16le"===Le||"utf-16le"===Le)){if(Re.length<2||Ne.length<2)return-1;q=2,$/=2,le/=2,he/=2}function xe(it,rt){return 1===q?it[rt]:it.readUInt16BE(rt*q)}if(ke){var lt=-1;for(Ue=he;Ue<$;Ue++)if(xe(Re,Ue)===xe(Ne,-1===lt?0:Ue-lt)){if(-1===lt&&(lt=Ue),Ue-lt+1===le)return lt*q}else-1!==lt&&(Ue-=Ue-lt),lt=-1}else for(he+le>$&&(he=$-le),Ue=he;Ue>=0;Ue--){for(var nt=!0,ft=0;ftke&&(Le=ke):Le=ke;var q=Ne.length;Le>q/2&&(Le=q/2);for(var $=0;$>8,q.push(he%256),q.push(Le);return q}(Ne,Re.length-he),Re,he,Le)}function a(Re,Ne,he){return e.fromByteArray(0===Ne&&he===Re.length?Re:Re.slice(Ne,he))}function p(Re,Ne,he){he=Math.min(Re.length,he);for(var Le=[],ke=Ne;ke239?4:q>223?3:q>191?2:1;if(ke+le<=he)switch(le){case 1:q<128&&($=q);break;case 2:128==(192&(xe=Re[ke+1]))&&(nt=(31&q)<<6|63&xe)>127&&($=nt);break;case 3:Ue=Re[ke+2],128==(192&(xe=Re[ke+1]))&&128==(192&Ue)&&(nt=(15&q)<<12|(63&xe)<<6|63&Ue)>2047&&(nt<55296||nt>57343)&&($=nt);break;case 4:Ue=Re[ke+2],lt=Re[ke+3],128==(192&(xe=Re[ke+1]))&&128==(192&Ue)&&128==(192<)&&(nt=(15&q)<<18|(63&xe)<<12|(63&Ue)<<6|63<)>65535&&nt<1114112&&($=nt)}null===$?($=65533,le=1):$>65535&&(Le.push(($-=65536)>>>10&1023|55296),$=56320|1023&$),Le.push($),ke+=le}return function _(Re){var Ne=Re.length;if(Ne<=u)return String.fromCharCode.apply(String,Re);for(var he="",Le=0;Leke.length?l.from($).copy(ke,q):Uint8Array.prototype.set.call(ke,$,q);else{if(!l.isBuffer($))throw new TypeError('"list" argument must be an Array of Buffers');$.copy(ke,q)}q+=$.length}return ke},l.byteLength=ie,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var Ne=this.length;if(Ne%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var he=0;hehe&&(Ne+=" ... "),""},y&&(l.prototype[y]=l.prototype.inspect),l.prototype.compare=function(Ne,he,Le,ke,q){if(z(Ne,Uint8Array)&&(Ne=l.from(Ne,Ne.offset,Ne.byteLength)),!l.isBuffer(Ne))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Ne);if(void 0===he&&(he=0),void 0===Le&&(Le=Ne?Ne.length:0),void 0===ke&&(ke=0),void 0===q&&(q=this.length),he<0||Le>Ne.length||ke<0||q>this.length)throw new RangeError("out of range index");if(ke>=q&&he>=Le)return 0;if(ke>=q)return-1;if(he>=Le)return 1;if(this===Ne)return 0;for(var $=(q>>>=0)-(ke>>>=0),le=(Le>>>=0)-(he>>>=0),xe=Math.min($,le),Ue=this.slice(ke,q),lt=Ne.slice(he,Le),nt=0;nt>>=0,isFinite(Le)?(Le>>>=0,void 0===ke&&(ke="utf8")):(ke=Le,Le=void 0)}var q=this.length-he;if((void 0===Le||Le>q)&&(Le=q),Ne.length>0&&(Le<0||he<0)||he>this.length)throw new RangeError("Attempt to write outside buffer bounds");ke||(ke="utf8");for(var $=!1;;)switch(ke){case"hex":return de(this,Ne,he,Le);case"utf8":case"utf-8":return oe(this,Ne,he,Le);case"ascii":case"latin1":case"binary":return ae(this,Ne,he,Le);case"base64":return b(this,Ne,he,Le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i(this,Ne,he,Le);default:if($)throw new TypeError("Unknown encoding: "+ke);ke=(""+ke).toLowerCase(),$=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var u=4096;function L(Re,Ne,he){var Le="";he=Math.min(Re.length,he);for(var ke=Ne;keLe)&&(he=Le);for(var ke="",q=Ne;qhe)throw new RangeError("Trying to access beyond buffer length")}function G(Re,Ne,he,Le,ke,q){if(!l.isBuffer(Re))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ne>ke||NeRe.length)throw new RangeError("Index out of range")}function F(Re,Ne,he,Le,ke,q){if(he+Le>Re.length)throw new RangeError("Index out of range");if(he<0)throw new RangeError("Index out of range")}function U(Re,Ne,he,Le,ke){return Ne=+Ne,he>>>=0,ke||F(Re,0,he,4),t.write(Re,Ne,he,Le,23,4),he+4}function ye(Re,Ne,he,Le,ke){return Ne=+Ne,he>>>=0,ke||F(Re,0,he,8),t.write(Re,Ne,he,Le,52,8),he+8}l.prototype.slice=function(Ne,he){var Le=this.length;(Ne=~~Ne)<0?(Ne+=Le)<0&&(Ne=0):Ne>Le&&(Ne=Le),(he=void 0===he?Le:~~he)<0?(he+=Le)<0&&(he=0):he>Le&&(he=Le),he>>=0,he>>>=0,Le||v(Ne,he,this.length);for(var ke=this[Ne],q=1,$=0;++$>>=0,he>>>=0,Le||v(Ne,he,this.length);for(var ke=this[Ne+--he],q=1;he>0&&(q*=256);)ke+=this[Ne+--he]*q;return ke},l.prototype.readUint8=l.prototype.readUInt8=function(Ne,he){return Ne>>>=0,he||v(Ne,1,this.length),this[Ne]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(Ne,he){return Ne>>>=0,he||v(Ne,2,this.length),this[Ne]|this[Ne+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(Ne,he){return Ne>>>=0,he||v(Ne,2,this.length),this[Ne]<<8|this[Ne+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(Ne,he){return Ne>>>=0,he||v(Ne,4,this.length),(this[Ne]|this[Ne+1]<<8|this[Ne+2]<<16)+16777216*this[Ne+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(Ne,he){return Ne>>>=0,he||v(Ne,4,this.length),16777216*this[Ne]+(this[Ne+1]<<16|this[Ne+2]<<8|this[Ne+3])},l.prototype.readIntLE=function(Ne,he,Le){Ne>>>=0,he>>>=0,Le||v(Ne,he,this.length);for(var ke=this[Ne],q=1,$=0;++$=(q*=128)&&(ke-=Math.pow(2,8*he)),ke},l.prototype.readIntBE=function(Ne,he,Le){Ne>>>=0,he>>>=0,Le||v(Ne,he,this.length);for(var ke=he,q=1,$=this[Ne+--ke];ke>0&&(q*=256);)$+=this[Ne+--ke]*q;return $>=(q*=128)&&($-=Math.pow(2,8*he)),$},l.prototype.readInt8=function(Ne,he){return Ne>>>=0,he||v(Ne,1,this.length),128&this[Ne]?-1*(255-this[Ne]+1):this[Ne]},l.prototype.readInt16LE=function(Ne,he){Ne>>>=0,he||v(Ne,2,this.length);var Le=this[Ne]|this[Ne+1]<<8;return 32768&Le?4294901760|Le:Le},l.prototype.readInt16BE=function(Ne,he){Ne>>>=0,he||v(Ne,2,this.length);var Le=this[Ne+1]|this[Ne]<<8;return 32768&Le?4294901760|Le:Le},l.prototype.readInt32LE=function(Ne,he){return Ne>>>=0,he||v(Ne,4,this.length),this[Ne]|this[Ne+1]<<8|this[Ne+2]<<16|this[Ne+3]<<24},l.prototype.readInt32BE=function(Ne,he){return Ne>>>=0,he||v(Ne,4,this.length),this[Ne]<<24|this[Ne+1]<<16|this[Ne+2]<<8|this[Ne+3]},l.prototype.readFloatLE=function(Ne,he){return Ne>>>=0,he||v(Ne,4,this.length),t.read(this,Ne,!0,23,4)},l.prototype.readFloatBE=function(Ne,he){return Ne>>>=0,he||v(Ne,4,this.length),t.read(this,Ne,!1,23,4)},l.prototype.readDoubleLE=function(Ne,he){return Ne>>>=0,he||v(Ne,8,this.length),t.read(this,Ne,!0,52,8)},l.prototype.readDoubleBE=function(Ne,he){return Ne>>>=0,he||v(Ne,8,this.length),t.read(this,Ne,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(Ne,he,Le,ke){Ne=+Ne,he>>>=0,Le>>>=0,ke||G(this,Ne,he,Le,Math.pow(2,8*Le)-1,0);var $=1,le=0;for(this[he]=255&Ne;++le>>=0,Le>>>=0,ke||G(this,Ne,he,Le,Math.pow(2,8*Le)-1,0);var $=Le-1,le=1;for(this[he+$]=255&Ne;--$>=0&&(le*=256);)this[he+$]=Ne/le&255;return he+Le},l.prototype.writeUint8=l.prototype.writeUInt8=function(Ne,he,Le){return Ne=+Ne,he>>>=0,Le||G(this,Ne,he,1,255,0),this[he]=255&Ne,he+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(Ne,he,Le){return Ne=+Ne,he>>>=0,Le||G(this,Ne,he,2,65535,0),this[he]=255&Ne,this[he+1]=Ne>>>8,he+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(Ne,he,Le){return Ne=+Ne,he>>>=0,Le||G(this,Ne,he,2,65535,0),this[he]=Ne>>>8,this[he+1]=255&Ne,he+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(Ne,he,Le){return Ne=+Ne,he>>>=0,Le||G(this,Ne,he,4,4294967295,0),this[he+3]=Ne>>>24,this[he+2]=Ne>>>16,this[he+1]=Ne>>>8,this[he]=255&Ne,he+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(Ne,he,Le){return Ne=+Ne,he>>>=0,Le||G(this,Ne,he,4,4294967295,0),this[he]=Ne>>>24,this[he+1]=Ne>>>16,this[he+2]=Ne>>>8,this[he+3]=255&Ne,he+4},l.prototype.writeIntLE=function(Ne,he,Le,ke){if(Ne=+Ne,he>>>=0,!ke){var q=Math.pow(2,8*Le-1);G(this,Ne,he,Le,q-1,-q)}var $=0,le=1,xe=0;for(this[he]=255&Ne;++$>0)-xe&255;return he+Le},l.prototype.writeIntBE=function(Ne,he,Le,ke){if(Ne=+Ne,he>>>=0,!ke){var q=Math.pow(2,8*Le-1);G(this,Ne,he,Le,q-1,-q)}var $=Le-1,le=1,xe=0;for(this[he+$]=255&Ne;--$>=0&&(le*=256);)Ne<0&&0===xe&&0!==this[he+$+1]&&(xe=1),this[he+$]=(Ne/le>>0)-xe&255;return he+Le},l.prototype.writeInt8=function(Ne,he,Le){return Ne=+Ne,he>>>=0,Le||G(this,Ne,he,1,127,-128),Ne<0&&(Ne=255+Ne+1),this[he]=255&Ne,he+1},l.prototype.writeInt16LE=function(Ne,he,Le){return Ne=+Ne,he>>>=0,Le||G(this,Ne,he,2,32767,-32768),this[he]=255&Ne,this[he+1]=Ne>>>8,he+2},l.prototype.writeInt16BE=function(Ne,he,Le){return Ne=+Ne,he>>>=0,Le||G(this,Ne,he,2,32767,-32768),this[he]=Ne>>>8,this[he+1]=255&Ne,he+2},l.prototype.writeInt32LE=function(Ne,he,Le){return Ne=+Ne,he>>>=0,Le||G(this,Ne,he,4,2147483647,-2147483648),this[he]=255&Ne,this[he+1]=Ne>>>8,this[he+2]=Ne>>>16,this[he+3]=Ne>>>24,he+4},l.prototype.writeInt32BE=function(Ne,he,Le){return Ne=+Ne,he>>>=0,Le||G(this,Ne,he,4,2147483647,-2147483648),Ne<0&&(Ne=4294967295+Ne+1),this[he]=Ne>>>24,this[he+1]=Ne>>>16,this[he+2]=Ne>>>8,this[he+3]=255&Ne,he+4},l.prototype.writeFloatLE=function(Ne,he,Le){return U(this,Ne,he,!0,Le)},l.prototype.writeFloatBE=function(Ne,he,Le){return U(this,Ne,he,!1,Le)},l.prototype.writeDoubleLE=function(Ne,he,Le){return ye(this,Ne,he,!0,Le)},l.prototype.writeDoubleBE=function(Ne,he,Le){return ye(this,Ne,he,!1,Le)},l.prototype.copy=function(Ne,he,Le,ke){if(!l.isBuffer(Ne))throw new TypeError("argument should be a Buffer");if(Le||(Le=0),!ke&&0!==ke&&(ke=this.length),he>=Ne.length&&(he=Ne.length),he||(he=0),ke>0&&ke=this.length)throw new RangeError("Index out of range");if(ke<0)throw new RangeError("sourceEnd out of bounds");ke>this.length&&(ke=this.length),Ne.length-he>>=0,Le=void 0===Le?this.length:Le>>>0,Ne||(Ne=0),"number"==typeof Ne)for($=he;$55295&&he<57344){if(!ke){if(he>56319){(Ne-=3)>-1&&q.push(239,191,189);continue}if($+1===Le){(Ne-=3)>-1&&q.push(239,191,189);continue}ke=he;continue}if(he<56320){(Ne-=3)>-1&&q.push(239,191,189),ke=he;continue}he=65536+(ke-55296<<10|he-56320)}else ke&&(Ne-=3)>-1&&q.push(239,191,189);if(ke=null,he<128){if((Ne-=1)<0)break;q.push(he)}else if(he<2048){if((Ne-=2)<0)break;q.push(he>>6|192,63&he|128)}else if(he<65536){if((Ne-=3)<0)break;q.push(he>>12|224,he>>6&63|128,63&he|128)}else{if(!(he<1114112))throw new Error("Invalid code point");if((Ne-=4)<0)break;q.push(he>>18|240,he>>12&63|128,he>>6&63|128,63&he|128)}}return q}function Me(Re){return e.toByteArray(function Be(Re){if((Re=(Re=Re.split("=")[0]).trim().replace(Ce,"")).length<2)return"";for(;Re.length%4!=0;)Re+="=";return Re}(Re))}function we(Re,Ne,he,Le){for(var ke=0;ke=Ne.length||ke>=Re.length);++ke)Ne[ke+he]=Re[ke];return ke}function z(Re,Ne){return Re instanceof Ne||null!=Re&&null!=Re.constructor&&null!=Re.constructor.name&&Re.constructor.name===Ne.name}function Ge(Re){return Re!=Re}var vt=function(){for(var Re="0123456789abcdef",Ne=new Array(256),he=0;he<16;++he)for(var Le=16*he,ke=0;ke<16;++ke)Ne[Le+ke]=Re[he]+Re[ke];return Ne}()},1052:(Ve,Q,m)=>{var e=m(3502).Buffer,t=m(295).Transform,y=m(3054).s;function o(M){t.call(this),this.hashMode="string"==typeof M,this.hashMode?this[M]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}m(3894)(o,t),o.prototype.update=function(M,l,N){"string"==typeof M&&(M=e.from(M,l));var s=this._update(M);return this.hashMode?this:(N&&(s=this._toString(s,N)),s)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(M,l,N){var s;try{this.hashMode?this._update(M):this.push(this._update(M))}catch(D){s=D}finally{N(s)}},o.prototype._flush=function(M){var l;try{this.push(this.__final())}catch(N){l=N}M(l)},o.prototype._finalOrDigest=function(M){var l=this.__final()||e.alloc(0);return M&&(l=this._toString(l,M,!0)),l},o.prototype._toString=function(M,l,N){if(this._decoder||(this._decoder=new y(l),this._encoding=l),this._encoding!==l)throw new Error("can't switch encodings");var s=this._decoder.write(M);return N&&(s+=this._decoder.end()),s},Ve.exports=o},7293:(Ve,Q,m)=>{"use strict";const e=m(4315),t=m(2872),y=m(717);Ve.exports=function C(l,N){switch(t(l)){case"object":return function o(l,N){if("function"==typeof N)return N(l);if(N||y(l)){const s=new l.constructor;for(let D in l)s[D]=C(l[D],N);return s}return l}(l,N);case"array":return function M(l,N){const s=new l.constructor(l.length);for(let D=0;DC?y:Array(C-y.length+1).join("0")+y}(C.toString(16),2)}).join("")}(y)},hexToBytes:function(y){if(y.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===y.indexOf("0x")&&(y=y.slice(2)),y.match(/../g).map(function(C){return parseInt(C,16)})}};Ve.exports?Ve.exports=m:Q.convertHex=m}(this)},5612:function(Ve){!function(Q){"use strict";var m={bytesToString:function(e){return e.map(function(t){return String.fromCharCode(t)}).join("")},stringToBytes:function(e){return e.split("").map(function(t){return t.charCodeAt(0)})}};m.UTF8={bytesToString:function(e){return decodeURIComponent(escape(m.bytesToString(e)))},stringToBytes:function(e){return m.stringToBytes(unescape(encodeURIComponent(e)))}},Ve.exports?Ve.exports=m:Q.convertString=m}(this)},4746:(Ve,Q,m)=>{var e=m(7715),t=m(6422);Ve.exports=function(l){return new C(l)};var y={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 C(M){this.curveType=y[M],this.curveType||(this.curveType={name:M}),this.curve=new e.ec(this.curveType.name),this.keys=void 0}function o(M,l,N){Array.isArray(M)||(M=M.toArray());var s=new Buffer(M);if(N&&s.length=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function N(b,i,a){var p=l(b,a);return a-1>=i&&(p|=l(b,a-1)<<4),p}function s(b,i,a,p){for(var u=0,_=Math.min(b.length,a),L=i;L<_;L++){var I=b.charCodeAt(L)-48;u*=p,u+=I>=49?I-49+10:I>=17?I-17+10:I}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),y(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(L=i[u]|i[u-1]<<8|i[u-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u=a;u-=2)I=N(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var L=i.length-p,I=L%u,x=Math.min(L,L-I)+p,r=0,v=p;v1&&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 D=["","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"],A=[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],O=[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 P(b,i,a){a.negative=i.negative^b.negative;var p=b.length+i.length|0;a.length=p,p=p-1|0;var u=0|b.words[0],_=0|i.words[0],L=u*_,x=L/67108864|0;a.words[0]=67108863&L;for(var r=1;r>>26,G=67108863&x,F=Math.min(r,i.length-1),U=Math.max(0,r-b.length+1);U<=F;U++)v+=(L=(u=0|b.words[r-U|0])*(_=0|i.words[U])+G)/67108864|0,G=67108863&L;a.words[r]=0|G,x=0|v}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,L=0;L>>24-u&16777215)||L!==this.length-1?D[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,L--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=A[i],v=O[i];p="";var G=this.clone();for(G.negative=0;!G.isZero();){var F=G.modn(v).toString(i);p=(G=G.idivn(v)).isZero()?F+p:D[r-F.length]+F+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}y(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return y(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);y(u<=_,"byte array longer than desired length"),y(_>0,"Requested array length <= 0"),this.strip();var x,r,L="le"===a,I=new i(_),v=this.clone();if(L){for(r=0;!v.isZero();r++)x=v.andln(255),v.iushrn(8),I[r]=x;for(;r<_;r++)I[r]=0}else{for(r=0;r<_-u;r++)I[r]=0;for(r=0;!v.isZero();r++)x=v.andln(255),v.iushrn(8),I[_-r-1]=x}return I},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;pi.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;ui.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){y("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){y("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<i.length?(p=this,u=i):(p=i,u=this);for(var _=0,L=0;L>>26;for(;0!==_&&L>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;Li.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var L=0,I=0;I<_.length;I++)L=(a=(0|u.words[I])-(0|_.words[I])+L)>>26,this.words[I]=67108863&a;for(;0!==L&&I>26,this.words[I]=67108863&a;if(0===L&&I>>13,ye=0|u[1],Ce=8191&ye,Be=ye>>>13,ze=0|u[2],Ie=8191&ze,K=ze>>>13,Me=0|u[3],we=8191&Me,z=Me>>>13,Ge=0|u[4],vt=8191&Ge,Re=Ge>>>13,Ne=0|u[5],he=8191&Ne,Le=Ne>>>13,ke=0|u[6],q=8191&ke,$=ke>>>13,le=0|u[7],xe=8191&le,Ue=le>>>13,lt=0|u[8],nt=8191<,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,Pi=0|_[2],ai=8191&Pi,hi=Pi>>>13,Ze=0|_[3],Ee=8191&Ze,Y=Ze>>>13,me=0|_[4],De=8191&me,et=me>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],Pe=8191&ct,Fe=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(I+(x=Math.imul(F,Ft))|0)+((8191&(r=(r=Math.imul(F,Vt))+Math.imul(U,Ft)|0))<<13)|0;I=((v=Math.imul(U,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(Ce,Ft),r=(r=Math.imul(Ce,Vt))+Math.imul(Be,Ft)|0,v=Math.imul(Be,Vt);var Ui=(I+(x=x+Math.imul(F,jt)|0)|0)+((8191&(r=(r=r+Math.imul(F,ei)|0)+Math.imul(U,jt)|0))<<13)|0;I=((v=v+Math.imul(U,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Ie,Ft),r=(r=Math.imul(Ie,Vt))+Math.imul(K,Ft)|0,v=Math.imul(K,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ei)|0)+Math.imul(Be,jt)|0,v=v+Math.imul(Be,ei)|0;var Di=(I+(x=x+Math.imul(F,ai)|0)|0)+((8191&(r=(r=r+Math.imul(F,hi)|0)+Math.imul(U,ai)|0))<<13)|0;I=((v=v+Math.imul(U,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Ft),r=(r=Math.imul(we,Vt))+Math.imul(z,Ft)|0,v=Math.imul(z,Vt),x=x+Math.imul(Ie,jt)|0,r=(r=r+Math.imul(Ie,ei)|0)+Math.imul(K,jt)|0,v=v+Math.imul(K,ei)|0,x=x+Math.imul(Ce,ai)|0,r=(r=r+Math.imul(Ce,hi)|0)+Math.imul(Be,ai)|0,v=v+Math.imul(Be,hi)|0;var Xi=(I+(x=x+Math.imul(F,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(F,Y)|0)+Math.imul(U,Ee)|0))<<13)|0;I=((v=v+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Re,Ft)|0,v=Math.imul(Re,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ei)|0)+Math.imul(z,jt)|0,v=v+Math.imul(z,ei)|0,x=x+Math.imul(Ie,ai)|0,r=(r=r+Math.imul(Ie,hi)|0)+Math.imul(K,ai)|0,v=v+Math.imul(K,hi)|0,x=x+Math.imul(Ce,Ee)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Be,Ee)|0,v=v+Math.imul(Be,Y)|0;var Ke=(I+(x=x+Math.imul(F,De)|0)|0)+((8191&(r=(r=r+Math.imul(F,et)|0)+Math.imul(U,De)|0))<<13)|0;I=((v=v+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(he,Ft),r=(r=Math.imul(he,Vt))+Math.imul(Le,Ft)|0,v=Math.imul(Le,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Re,jt)|0,v=v+Math.imul(Re,ei)|0,x=x+Math.imul(we,ai)|0,r=(r=r+Math.imul(we,hi)|0)+Math.imul(z,ai)|0,v=v+Math.imul(z,hi)|0,x=x+Math.imul(Ie,Ee)|0,r=(r=r+Math.imul(Ie,Y)|0)+Math.imul(K,Ee)|0,v=v+Math.imul(K,Y)|0,x=x+Math.imul(Ce,De)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Be,De)|0,v=v+Math.imul(Be,et)|0;var _t=(I+(x=x+Math.imul(F,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Jt)|0)+Math.imul(U,Nt)|0))<<13)|0;I=((v=v+Math.imul(U,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,v=Math.imul($,Vt),x=x+Math.imul(he,jt)|0,r=(r=r+Math.imul(he,ei)|0)+Math.imul(Le,jt)|0,v=v+Math.imul(Le,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Re,ai)|0,v=v+Math.imul(Re,hi)|0,x=x+Math.imul(we,Ee)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(z,Ee)|0,v=v+Math.imul(z,Y)|0,x=x+Math.imul(Ie,De)|0,r=(r=r+Math.imul(Ie,et)|0)+Math.imul(K,De)|0,v=v+Math.imul(K,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Jt)|0)+Math.imul(Be,Nt)|0,v=v+Math.imul(Be,Jt)|0;var ve=(I+(x=x+Math.imul(F,Pe)|0)|0)+((8191&(r=(r=r+Math.imul(F,Fe)|0)+Math.imul(U,Pe)|0))<<13)|0;I=((v=v+Math.imul(U,Fe)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,x=Math.imul(xe,Ft),r=(r=Math.imul(xe,Vt))+Math.imul(Ue,Ft)|0,v=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,v=v+Math.imul($,ei)|0,x=x+Math.imul(he,ai)|0,r=(r=r+Math.imul(he,hi)|0)+Math.imul(Le,ai)|0,v=v+Math.imul(Le,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Re,Ee)|0,v=v+Math.imul(Re,Y)|0,x=x+Math.imul(we,De)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(z,De)|0,v=v+Math.imul(z,et)|0,x=x+Math.imul(Ie,Nt)|0,r=(r=r+Math.imul(Ie,Jt)|0)+Math.imul(K,Nt)|0,v=v+Math.imul(K,Jt)|0,x=x+Math.imul(Ce,Pe)|0,r=(r=r+Math.imul(Ce,Fe)|0)+Math.imul(Be,Pe)|0,v=v+Math.imul(Be,Fe)|0;var qe=(I+(x=x+Math.imul(F,st)|0)|0)+((8191&(r=(r=r+Math.imul(F,At)|0)+Math.imul(U,st)|0))<<13)|0;I=((v=v+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,v=Math.imul(ft,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ei)|0)+Math.imul(Ue,jt)|0,v=v+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,v=v+Math.imul($,hi)|0,x=x+Math.imul(he,Ee)|0,r=(r=r+Math.imul(he,Y)|0)+Math.imul(Le,Ee)|0,v=v+Math.imul(Le,Y)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Re,De)|0,v=v+Math.imul(Re,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Jt)|0)+Math.imul(z,Nt)|0,v=v+Math.imul(z,Jt)|0,x=x+Math.imul(Ie,Pe)|0,r=(r=r+Math.imul(Ie,Fe)|0)+Math.imul(K,Pe)|0,v=v+Math.imul(K,Fe)|0,x=x+Math.imul(Ce,st)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Be,st)|0,v=v+Math.imul(Be,At)|0;var yt=(I+(x=x+Math.imul(F,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Rt)|0)+Math.imul(U,Bt)|0))<<13)|0;I=((v=v+Math.imul(U,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,v=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,v=v+Math.imul(ft,ei)|0,x=x+Math.imul(xe,ai)|0,r=(r=r+Math.imul(xe,hi)|0)+Math.imul(Ue,ai)|0,v=v+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul($,Ee)|0,v=v+Math.imul($,Y)|0,x=x+Math.imul(he,De)|0,r=(r=r+Math.imul(he,et)|0)+Math.imul(Le,De)|0,v=v+Math.imul(Le,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Re,Nt)|0,v=v+Math.imul(Re,Jt)|0,x=x+Math.imul(we,Pe)|0,r=(r=r+Math.imul(we,Fe)|0)+Math.imul(z,Pe)|0,v=v+Math.imul(z,Fe)|0,x=x+Math.imul(Ie,st)|0,r=(r=r+Math.imul(Ie,At)|0)+Math.imul(K,st)|0,v=v+Math.imul(K,At)|0,x=x+Math.imul(Ce,Bt)|0,r=(r=r+Math.imul(Ce,Rt)|0)+Math.imul(Be,Bt)|0,v=v+Math.imul(Be,Rt)|0;var fe=(I+(x=x+Math.imul(F,si)|0)|0)+((8191&(r=(r=r+Math.imul(F,ci)|0)+Math.imul(U,si)|0))<<13)|0;I=((v=v+Math.imul(U,ci)|0)+(r>>>13)|0)+(fe>>>26)|0,fe&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,v=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,v=v+Math.imul(ft,hi)|0,x=x+Math.imul(xe,Ee)|0,r=(r=r+Math.imul(xe,Y)|0)+Math.imul(Ue,Ee)|0,v=v+Math.imul(Ue,Y)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,v=v+Math.imul($,et)|0,x=x+Math.imul(he,Nt)|0,r=(r=r+Math.imul(he,Jt)|0)+Math.imul(Le,Nt)|0,v=v+Math.imul(Le,Jt)|0,x=x+Math.imul(vt,Pe)|0,r=(r=r+Math.imul(vt,Fe)|0)+Math.imul(Re,Pe)|0,v=v+Math.imul(Re,Fe)|0,x=x+Math.imul(we,st)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(z,st)|0,v=v+Math.imul(z,At)|0,x=x+Math.imul(Ie,Bt)|0,r=(r=r+Math.imul(Ie,Rt)|0)+Math.imul(K,Bt)|0,v=v+Math.imul(K,Rt)|0;var Je=(I+(x=x+Math.imul(Ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Be,si)|0))<<13)|0;I=((v=v+Math.imul(Be,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,v=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,Y)|0)+Math.imul(ft,Ee)|0,v=v+Math.imul(ft,Y)|0,x=x+Math.imul(xe,De)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Ue,De)|0,v=v+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,v=v+Math.imul($,Jt)|0,x=x+Math.imul(he,Pe)|0,r=(r=r+Math.imul(he,Fe)|0)+Math.imul(Le,Pe)|0,v=v+Math.imul(Le,Fe)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Re,st)|0,v=v+Math.imul(Re,At)|0,x=x+Math.imul(we,Bt)|0,r=(r=r+Math.imul(we,Rt)|0)+Math.imul(z,Bt)|0,v=v+Math.imul(z,Rt)|0;var St=(I+(x=x+Math.imul(Ie,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ie,ci)|0)+Math.imul(K,si)|0))<<13)|0;I=((v=v+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,Y))+Math.imul(Mt,Ee)|0,v=Math.imul(Mt,Y),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,v=v+Math.imul(ft,et)|0,x=x+Math.imul(xe,Nt)|0,r=(r=r+Math.imul(xe,Jt)|0)+Math.imul(Ue,Nt)|0,v=v+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,Pe)|0,r=(r=r+Math.imul(q,Fe)|0)+Math.imul($,Pe)|0,v=v+Math.imul($,Fe)|0,x=x+Math.imul(he,st)|0,r=(r=r+Math.imul(he,At)|0)+Math.imul(Le,st)|0,v=v+Math.imul(Le,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Re,Bt)|0,v=v+Math.imul(Re,Rt)|0;var Pt=(I+(x=x+Math.imul(we,si)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(z,si)|0))<<13)|0;I=((v=v+Math.imul(z,ci)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,v=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,v=v+Math.imul(ft,Jt)|0,x=x+Math.imul(xe,Pe)|0,r=(r=r+Math.imul(xe,Fe)|0)+Math.imul(Ue,Pe)|0,v=v+Math.imul(Ue,Fe)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,v=v+Math.imul($,At)|0,x=x+Math.imul(he,Bt)|0,r=(r=r+Math.imul(he,Rt)|0)+Math.imul(Le,Bt)|0,v=v+Math.imul(Le,Rt)|0;var yi=(I+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Re,si)|0))<<13)|0;I=((v=v+Math.imul(Re,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,v=Math.imul(Mt,Jt),x=x+Math.imul(nt,Pe)|0,r=(r=r+Math.imul(nt,Fe)|0)+Math.imul(ft,Pe)|0,v=v+Math.imul(ft,Fe)|0,x=x+Math.imul(xe,st)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Ue,st)|0,v=v+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,v=v+Math.imul($,Rt)|0;var Ni=(I+(x=x+Math.imul(he,si)|0)|0)+((8191&(r=(r=r+Math.imul(he,ci)|0)+Math.imul(Le,si)|0))<<13)|0;I=((v=v+Math.imul(Le,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,Pe),r=(r=Math.imul(rt,Fe))+Math.imul(Mt,Pe)|0,v=Math.imul(Mt,Fe),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,v=v+Math.imul(ft,At)|0,x=x+Math.imul(xe,Bt)|0,r=(r=r+Math.imul(xe,Rt)|0)+Math.imul(Ue,Bt)|0,v=v+Math.imul(Ue,Rt)|0;var Si=(I+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;I=((v=v+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,v=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,v=v+Math.imul(ft,Rt)|0;var qi=(I+(x=x+Math.imul(xe,si)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;I=((v=v+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,v=Math.imul(Mt,Rt);var ot=(I+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;I=((v=v+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(I+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return I=((v=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,L[0]=sn,L[1]=Ui,L[2]=Di,L[3]=Xi,L[4]=Ke,L[5]=_t,L[6]=ve,L[7]=qe,L[8]=yt,L[9]=fe,L[10]=Je,L[11]=St,L[12]=Pt,L[13]=yi,L[14]=Ni,L[15]=Si,L[16]=qi,L[17]=ot,L[18]=Kt,0!==I&&(L[19]=I,p.length++),p};function j(b,i,a){return(new W).mulp(b,i,a)}function W(b,i){this.x=b,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function Z(b,i,a){a.negative=i.negative^b.negative,a.length=b.length+i.length;for(var p=0,u=0,_=0;_>>26)|0)>>>26,L&=67108863}a.words[_]=I,p=L,L=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u>=1;return u},W.prototype.permute=function(i,a,p,u,_,L){for(var I=0;I>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u

>>=13),_>>>=13;for(L=2*a;L>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(b){for(var i=new Array(b.bitLength()),a=0;a>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var L=0;for(_=0;_>>26-a}L&&(this.words[_]=L,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_=0),u=a?(a-a%26)/26:0;var _=i%26,L=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=L,u=Math.max(0,u),x){for(var r=0;rL)for(this.length-=L,r=0;r=0&&(0!==v||r>=u);r--){var G=0|this.words[r];this.words[r]=v<<26-_|G>>>_,v=G&I}return x&&0!==v&&(x.words[x.length++]=v),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return y(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<=0);var a=i%26,p=(i-a)/26;return y(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(y("number"==typeof i),y(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a>26)-(x/67108864|0),this.words[_+p]=67108863&L}for(;_>26,this.words[_+p]=67108863&L;if(0===I)return this.strip();for(y(-1===I),I=0,_=0;_>26,this.words[_]=67108863&L;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,L=0|_.words[_.length-1];0!=(p=26-this._countBits(L))&&(_=_.ushln(p),u.iushln(p),L=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var v=0;v=0;F--){var U=67108864*(0|u.words[_.length+F])+(0|u.words[_.length+F-1]);for(U=Math.min(U/L|0,67108863),u._ishlnsubmul(_,U,F);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,F),u.isZero()||(u.negative^=1);r&&(r.words[F]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return y(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(L=this.neg().divmod(i,a),"mod"!==a&&(u=L.div.neg()),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(L=this.divmod(i.neg(),a),"mod"!==a&&(u=L.div.neg()),{div:u,mod:L.mod}):0!=(this.negative&i.negative)?(L=this.neg().divmod(i.neg(),a),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:L.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,L},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),L=p.cmp(u);return L<0||1===_&&0===L?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){y(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){y(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){y(0===i.negative),y(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),L=new o(0),I=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),v=a.clone();!a.isZero();){for(var G=0,F=1;0==(a.words[0]&F)&&G<26;++G,F<<=1);if(G>0)for(a.iushrn(G);G-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(v)),u.iushrn(1),_.iushrn(1);for(var U=0,ye=1;0==(p.words[0]&ye)&&U<26;++U,ye<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(L.isOdd()||I.isOdd())&&(L.iadd(r),I.isub(v)),L.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(L),_.isub(I)):(p.isub(a),L.isub(u),I.isub(_))}return{a:L,b:I,gcd:p.iushln(x)}},o.prototype._invmp=function(i){y(0===i.negative),y(!i.isZero());var G,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),L=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var I=0,x=1;0==(a.words[0]&x)&&I<26;++I,x<<=1);if(I>0)for(a.iushrn(I);I-- >0;)u.isOdd()&&u.iadd(L),u.iushrn(1);for(var r=0,v=1;0==(p.words[0]&v)&&r<26;++r,v<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(L),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(G=0===a.cmpn(1)?u:_).cmpn(0)<0&&G.iadd(i),G},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var L=a;a=p,p=L}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){y("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<>>26,this.words[L]=I&=67108863}return 0!==_&&(this.words[L]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),y(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:ui.length)return 1;if(this.length=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new oe(i)},o.prototype.toRed=function(i){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return y(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return y(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ie={k256:null,p224:null,p192:null,p25519:null};function ee(b,i){this.name=b,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _e(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ce(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function oe(b){if("string"==typeof b){var i=o._prime(b);this.m=i.p,this.prime=i}else y(b.gtn(1),"modulus must be greater than 1"),this.m=b,this.prime=null}function ae(b){oe.call(this,b),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)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(_e,ee),_e.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_>>22,L=I}i.words[_-10]=L>>>=22,i.length-=0===L&&i.length>10?10:9},_e.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(ie[i])return ie[i];var a;if("k256"===i)a=new _e;else if("p224"===i)a=new ce;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return ie[i]=a,a},oe.prototype._verify1=function(i){y(0===i.negative,"red works only with positives"),y(i.red,"red works only with red numbers")},oe.prototype._verify2=function(i,a){y(0==(i.negative|a.negative),"red works only with positives"),y(i.red&&i.red===a.red,"red works only with red numbers")},oe.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},oe.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},oe.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},oe.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},oe.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},oe.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},oe.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},oe.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},oe.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},oe.prototype.isqr=function(i){return this.imul(i,i.clone())},oe.prototype.sqr=function(i){return this.mul(i,i)},oe.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(y(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);y(!u.isZero());var L=new o(1).toRed(this),I=L.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(I);)r.redIAdd(I);for(var v=this.pow(r,u),G=this.pow(i,u.addn(1).iushrn(1)),F=this.pow(i,u),U=_;0!==F.cmp(L);){for(var ye=F,Ce=0;0!==ye.cmp(L);Ce++)ye=ye.redSqr();y(Ce=0;_--){for(var v=a.words[_],G=r-1;G>=0;G--){var F=v>>G&1;L!==u[0]&&(L=this.sqr(L)),0!==F||0!==I?(I<<=1,I|=F,(4==++x||0===_&&0===G)&&(L=this.mul(L,u[I]),x=0,I=0)):x=0}r=26}return L},oe.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},oe.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new ae(i)},C(ae,oe),ae.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ae.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},ae.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},ae.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},ae.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ve=m.nmd(Ve),this)},6386:(Ve,Q,m)=>{"use strict";var e=m(3894),t=m(8095),y=m(5634),C=m(5244),o=m(1052);function M(l){o.call(this,"digest"),this._hash=l}e(M,o),M.prototype._update=function(l){this._hash.update(l)},M.prototype._final=function(){return this._hash.digest()},Ve.exports=function(N){return"md5"===(N=N.toLowerCase())?new t:"rmd160"===N||"ripemd160"===N?new y:new M(C(N))}},5640:(Ve,Q,m)=>{var e=m(8095);Ve.exports=function(t){return(new e).update(t).digest()}},4529:(Ve,Q,m)=>{"use strict";var e=m(3894),t=m(7309),y=m(1052),C=m(3502).Buffer,o=m(5640),M=m(5634),l=m(5244),N=C.alloc(128);function s(D,A){y.call(this,"digest"),"string"==typeof A&&(A=C.from(A));var O="sha512"===D||"sha384"===D?128:64;this._alg=D,this._key=A,A.length>O?A=("rmd160"===D?new M:l(D)).update(A).digest():A.length{"use strict";var e=m(3894),t=m(3502).Buffer,y=m(1052),C=t.alloc(128),o=64;function M(l,N){y.call(this,"digest"),"string"==typeof N&&(N=t.from(N)),this._alg=l,this._key=N,N.length>o?N=l(N):N.length{"use strict";Q.randomBytes=Q.rng=Q.pseudoRandomBytes=Q.prng=m(3753),Q.createHash=Q.Hash=m(6386),Q.createHmac=Q.Hmac=m(4529);var e=m(7793),t=Object.keys(e),y=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(t);Q.getHashes=function(){return y};var C=m(9357);Q.pbkdf2=C.pbkdf2,Q.pbkdf2Sync=C.pbkdf2Sync;var o=m(5255);Q.Cipher=o.Cipher,Q.createCipher=o.createCipher,Q.Cipheriv=o.Cipheriv,Q.createCipheriv=o.createCipheriv,Q.Decipher=o.Decipher,Q.createDecipher=o.createDecipher,Q.Decipheriv=o.Decipheriv,Q.createDecipheriv=o.createDecipheriv,Q.getCiphers=o.getCiphers,Q.listCiphers=o.listCiphers;var M=m(8829);Q.DiffieHellmanGroup=M.DiffieHellmanGroup,Q.createDiffieHellmanGroup=M.createDiffieHellmanGroup,Q.getDiffieHellman=M.getDiffieHellman,Q.createDiffieHellman=M.createDiffieHellman,Q.DiffieHellman=M.DiffieHellman;var l=m(3923);Q.createSign=l.createSign,Q.Sign=l.Sign,Q.createVerify=l.createVerify,Q.Verify=l.Verify,Q.createECDH=m(4746);var N=m(3701);Q.publicEncrypt=N.publicEncrypt,Q.privateEncrypt=N.privateEncrypt,Q.publicDecrypt=N.publicDecrypt,Q.privateDecrypt=N.privateDecrypt;var s=m(4275);Q.randomFill=s.randomFill,Q.randomFillSync=s.randomFillSync,Q.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},Q.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},3684:(Ve,Q,m)=>{"use strict";Q.utils=m(7451),Q.Cipher=m(8170),Q.DES=m(4631),Q.CBC=m(9454),Q.EDE=m(1862)},9454:(Ve,Q,m)=>{"use strict";var e=m(2391),t=m(3894),y={};function C(M){e.equal(M.length,8,"Invalid IV length"),this.iv=new Array(8);for(var l=0;l{"use strict";var e=m(2391);function t(y){this.options=y,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}Ve.exports=t,t.prototype._init=function(){},t.prototype.update=function(C){return 0===C.length?[]:"decrypt"===this.type?this._updateDecrypt(C):this._updateEncrypt(C)},t.prototype._buffer=function(C,o){for(var M=Math.min(this.buffer.length-this.bufferOff,C.length-o),l=0;l0;l--)o+=this._buffer(C,o),M+=this._flushBuffer(N,M);return o+=this._buffer(C,o),N},t.prototype.final=function(C){var o,M;return C&&(o=this.update(C)),M="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),o?o.concat(M):M},t.prototype._pad=function(C,o){if(0===o)return!1;for(;o{"use strict";var e=m(2391),t=m(3894),y=m(7451),C=m(8170);function o(){this.tmp=new Array(2),this.keys=null}function M(N){C.call(this,N);var s=new o;this._desState=s,this.deriveKeys(s,N.key)}t(M,C),Ve.exports=M,M.create=function(s){return new M(s)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];M.prototype.deriveKeys=function(s,D){s.keys=new Array(32),e.equal(D.length,this.blockSize,"Invalid key length");var A=y.readUInt32BE(D,0),O=y.readUInt32BE(D,4);y.pc1(A,O,s.tmp,0),A=s.tmp[0],O=s.tmp[1];for(var E=0;E>>1];A=y.r28shl(A,P),O=y.r28shl(O,P),y.pc2(A,O,s.keys,E)}},M.prototype._update=function(s,D,A,O){var E=this._desState,P=y.readUInt32BE(s,D),w=y.readUInt32BE(s,D+4);y.ip(P,w,E.tmp,0),P=E.tmp[0],w=E.tmp[1],"encrypt"===this.type?this._encrypt(E,P,w,E.tmp,0):this._decrypt(E,P,w,E.tmp,0),w=E.tmp[1],y.writeUInt32BE(A,P=E.tmp[0],O),y.writeUInt32BE(A,w,O+4)},M.prototype._pad=function(s,D){for(var A=s.length-D,O=D;O>>0,P=_e}y.rip(w,P,O,E)},M.prototype._decrypt=function(s,D,A,O,E){for(var P=A,w=D,Z=s.keys.length-2;Z>=0;Z-=2){var j=s.keys[Z],W=s.keys[Z+1];y.expand(P,s.tmp,0);var ie=y.substitute(j^=s.tmp[0],W^=s.tmp[1]),_e=P;P=(w^y.permute(ie))>>>0,w=_e}y.rip(P,w,O,E)}},1862:(Ve,Q,m)=>{"use strict";var e=m(2391),t=m(3894),y=m(8170),C=m(4631);function o(l,N){e.equal(N.length,24,"Invalid key length");var s=N.slice(0,8),D=N.slice(8,16),A=N.slice(16,24);this.ciphers="encrypt"===l?[C.create({type:"encrypt",key:s}),C.create({type:"decrypt",key:D}),C.create({type:"encrypt",key:A})]:[C.create({type:"decrypt",key:A}),C.create({type:"encrypt",key:D}),C.create({type:"decrypt",key:s})]}function M(l){y.call(this,l);var N=new o(this.type,this.options.key);this._edeState=N}t(M,y),Ve.exports=M,M.create=function(N){return new M(N)},M.prototype._update=function(N,s,D,A){var O=this._edeState;O.ciphers[0]._update(N,s,D,A),O.ciphers[1]._update(D,A,D,A),O.ciphers[2]._update(D,A,D,A)},M.prototype._pad=C.prototype._pad,M.prototype._unpad=C.prototype._unpad},7451:(Ve,Q)=>{"use strict";Q.readUInt32BE=function(C,o){return(C[0+o]<<24|C[1+o]<<16|C[2+o]<<8|C[3+o])>>>0},Q.writeUInt32BE=function(C,o,M){C[0+M]=o>>>24,C[1+M]=o>>>16&255,C[2+M]=o>>>8&255,C[3+M]=255&o},Q.ip=function(C,o,M,l){for(var N=0,s=0,D=6;D>=0;D-=2){for(var A=0;A<=24;A+=8)N<<=1,N|=o>>>A+D&1;for(A=0;A<=24;A+=8)N<<=1,N|=C>>>A+D&1}for(D=6;D>=0;D-=2){for(A=1;A<=25;A+=8)s<<=1,s|=o>>>A+D&1;for(A=1;A<=25;A+=8)s<<=1,s|=C>>>A+D&1}M[l+0]=N>>>0,M[l+1]=s>>>0},Q.rip=function(C,o,M,l){for(var N=0,s=0,D=0;D<4;D++)for(var A=24;A>=0;A-=8)N<<=1,N|=o>>>A+D&1,N<<=1,N|=C>>>A+D&1;for(D=4;D<8;D++)for(A=24;A>=0;A-=8)s<<=1,s|=o>>>A+D&1,s<<=1,s|=C>>>A+D&1;M[l+0]=N>>>0,M[l+1]=s>>>0},Q.pc1=function(C,o,M,l){for(var N=0,s=0,D=7;D>=5;D--){for(var A=0;A<=24;A+=8)N<<=1,N|=o>>A+D&1;for(A=0;A<=24;A+=8)N<<=1,N|=C>>A+D&1}for(A=0;A<=24;A+=8)N<<=1,N|=o>>A+D&1;for(D=1;D<=3;D++){for(A=0;A<=24;A+=8)s<<=1,s|=o>>A+D&1;for(A=0;A<=24;A+=8)s<<=1,s|=C>>A+D&1}for(A=0;A<=24;A+=8)s<<=1,s|=C>>A+D&1;M[l+0]=N>>>0,M[l+1]=s>>>0},Q.r28shl=function(C,o){return C<>>28-o};var m=[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(C,o,M,l){for(var N=0,s=0,D=m.length>>>1,A=0;A>>m[A]&1;for(A=D;A>>m[A]&1;M[l+0]=N>>>0,M[l+1]=s>>>0},Q.expand=function(C,o,M){var l=0,N=0;l=(1&C)<<5|C>>>27;for(var s=23;s>=15;s-=4)l<<=6,l|=C>>>s&63;for(s=11;s>=3;s-=4)N|=C>>>s&63,N<<=6;N|=(31&C)<<1|C>>>31,o[M+0]=l>>>0,o[M+1]=N>>>0};var e=[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(C,o){for(var M=0,l=0;l<4;l++)M<<=4,M|=e[64*l+(C>>>18-6*l&63)];for(l=0;l<4;l++)M<<=4,M|=e[256+64*l+(o>>>18-6*l&63)];return M>>>0};var t=[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(C){for(var o=0,M=0;M>>t[M]&1;return o>>>0},Q.padSplit=function(C,o,M){for(var l=C.toString(2);l.length{var e=m(5563),t=m(9799),y=m(1419),o={binary:!0,hex:!0,base64:!0};Q.DiffieHellmanGroup=Q.createDiffieHellmanGroup=Q.getDiffieHellman=function C(l){var N=new Buffer(t[l].prime,"hex"),s=new Buffer(t[l].gen,"hex");return new y(N,s)},Q.createDiffieHellman=Q.DiffieHellman=function M(l,N,s,D){return Buffer.isBuffer(N)||void 0===o[N]?M(l,"binary",N,s):(N=N||"binary",D=D||"binary",s=s||new Buffer([2]),Buffer.isBuffer(s)||(s=new Buffer(s,D)),"number"==typeof l?new y(e(l,s),s,!0):(Buffer.isBuffer(l)||(l=new Buffer(l,N)),new y(l,s,!0)))}},1419:(Ve,Q,m)=>{var e=m(8313),y=new(m(7079)),C=new e(24),o=new e(11),M=new e(10),l=new e(3),N=new e(7),s=m(5563),D=m(3753);function A(j,W){return W=W||"utf8",Buffer.isBuffer(j)||(j=new Buffer(j,W)),this._pub=new e(j),this}function O(j,W){return W=W||"utf8",Buffer.isBuffer(j)||(j=new Buffer(j,W)),this._priv=new e(j),this}Ve.exports=w;var E={};function w(j,W,ie){this.setGenerator(W),this.__prime=new e(j),this._prime=e.mont(this.__prime),this._primeLen=j.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,ie?(this.setPublicKey=A,this.setPrivateKey=O):this._primeCode=8}function Z(j,W){var ie=new Buffer(j.toArray());return W?ie.toString(W):ie}Object.defineProperty(w.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function P(j,W){var ie=W.toString("hex"),ee=[ie,j.toString(16)].join("_");if(ee in E)return E[ee];var ce,_e=0;if(j.isEven()||!s.simpleSieve||!s.fermatTest(j)||!y.test(j))return _e+=1,E[ee]=_e+="02"===ie||"05"===ie?8:4,_e;switch(y.test(j.shrn(1))||(_e+=2),ie){case"02":j.mod(C).cmp(o)&&(_e+=8);break;case"05":(ce=j.mod(M)).cmp(l)&&ce.cmp(N)&&(_e+=8);break;default:_e+=4}return E[ee]=_e,_e}(this.__prime,this.__gen)),this._primeCode}}),w.prototype.generateKeys=function(){return this._priv||(this._priv=new e(D(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},w.prototype.computeSecret=function(j){var W=(j=(j=new e(j)).toRed(this._prime)).redPow(this._priv).fromRed(),ie=new Buffer(W.toArray()),ee=this.getPrime();if(ie.length{var e=m(3753);Ve.exports=_e,_e.simpleSieve=ie,_e.fermatTest=ee;var t=m(8313),y=new t(24),o=new(m(7079)),M=new t(1),l=new t(2),N=new t(5),A=(new t(16),new t(8),new t(10)),O=new t(3),P=(new t(7),new t(11)),w=new t(4),j=(new t(12),null);function ie(ce){for(var re=function W(){if(null!==j)return j;var re=[];re[0]=2;for(var de=1,oe=3;oe<1048576;oe+=2){for(var ae=Math.ceil(Math.sqrt(oe)),b=0;bce;)de.ishrn(1);if(de.isEven()&&de.iadd(M),de.testn(1)||de.iadd(l),re.cmp(l)){if(!re.cmp(N))for(;de.mod(A).cmp(O);)de.iadd(w)}else for(;de.mod(y).cmp(P);)de.iadd(w);if(ie(oe=de.shrn(1))&&ie(de)&&ee(oe)&&ee(de)&&o.test(oe)&&o.test(de))return de}}},8313:function(Ve,Q,m){!function(e,t){"use strict";function y(b,i){if(!b)throw new Error(i||"Assertion failed")}function C(b,i){b.super_=i;var a=function(){};a.prototype=i.prototype,b.prototype=new a,b.prototype.constructor=b}function o(b,i,a){if(o.isBN(b))return b;this.negative=0,this.words=null,this.length=0,this.red=null,null!==b&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(b||0,i||10,a||"be"))}var M;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{M="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:m(7748).Buffer}catch(b){}function l(b,i){var a=b.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function N(b,i,a){var p=l(b,a);return a-1>=i&&(p|=l(b,a-1)<<4),p}function s(b,i,a,p){for(var u=0,_=Math.min(b.length,a),L=i;L<_;L++){var I=b.charCodeAt(L)-48;u*=p,u+=I>=49?I-49+10:I>=17?I-17+10:I}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),y(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(L=i[u]|i[u-1]<<8|i[u-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u=a;u-=2)I=N(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var L=i.length-p,I=L%u,x=Math.min(L,L-I)+p,r=0,v=p;v1&&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 D=["","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"],A=[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],O=[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 P(b,i,a){a.negative=i.negative^b.negative;var p=b.length+i.length|0;a.length=p,p=p-1|0;var u=0|b.words[0],_=0|i.words[0],L=u*_,x=L/67108864|0;a.words[0]=67108863&L;for(var r=1;r>>26,G=67108863&x,F=Math.min(r,i.length-1),U=Math.max(0,r-b.length+1);U<=F;U++)v+=(L=(u=0|b.words[r-U|0])*(_=0|i.words[U])+G)/67108864|0,G=67108863&L;a.words[r]=0|G,x=0|v}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,L=0;L>>24-u&16777215)||L!==this.length-1?D[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,L--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=A[i],v=O[i];p="";var G=this.clone();for(G.negative=0;!G.isZero();){var F=G.modn(v).toString(i);p=(G=G.idivn(v)).isZero()?F+p:D[r-F.length]+F+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}y(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return y(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);y(u<=_,"byte array longer than desired length"),y(_>0,"Requested array length <= 0"),this.strip();var x,r,L="le"===a,I=new i(_),v=this.clone();if(L){for(r=0;!v.isZero();r++)x=v.andln(255),v.iushrn(8),I[r]=x;for(;r<_;r++)I[r]=0}else{for(r=0;r<_-u;r++)I[r]=0;for(r=0;!v.isZero();r++)x=v.andln(255),v.iushrn(8),I[_-r-1]=x}return I},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;pi.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;ui.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){y("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){y("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<i.length?(p=this,u=i):(p=i,u=this);for(var _=0,L=0;L>>26;for(;0!==_&&L>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;Li.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var L=0,I=0;I<_.length;I++)L=(a=(0|u.words[I])-(0|_.words[I])+L)>>26,this.words[I]=67108863&a;for(;0!==L&&I>26,this.words[I]=67108863&a;if(0===L&&I>>13,ye=0|u[1],Ce=8191&ye,Be=ye>>>13,ze=0|u[2],Ie=8191&ze,K=ze>>>13,Me=0|u[3],we=8191&Me,z=Me>>>13,Ge=0|u[4],vt=8191&Ge,Re=Ge>>>13,Ne=0|u[5],he=8191&Ne,Le=Ne>>>13,ke=0|u[6],q=8191&ke,$=ke>>>13,le=0|u[7],xe=8191&le,Ue=le>>>13,lt=0|u[8],nt=8191<,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,Pi=0|_[2],ai=8191&Pi,hi=Pi>>>13,Ze=0|_[3],Ee=8191&Ze,Y=Ze>>>13,me=0|_[4],De=8191&me,et=me>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],Pe=8191&ct,Fe=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(I+(x=Math.imul(F,Ft))|0)+((8191&(r=(r=Math.imul(F,Vt))+Math.imul(U,Ft)|0))<<13)|0;I=((v=Math.imul(U,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(Ce,Ft),r=(r=Math.imul(Ce,Vt))+Math.imul(Be,Ft)|0,v=Math.imul(Be,Vt);var Ui=(I+(x=x+Math.imul(F,jt)|0)|0)+((8191&(r=(r=r+Math.imul(F,ei)|0)+Math.imul(U,jt)|0))<<13)|0;I=((v=v+Math.imul(U,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Ie,Ft),r=(r=Math.imul(Ie,Vt))+Math.imul(K,Ft)|0,v=Math.imul(K,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ei)|0)+Math.imul(Be,jt)|0,v=v+Math.imul(Be,ei)|0;var Di=(I+(x=x+Math.imul(F,ai)|0)|0)+((8191&(r=(r=r+Math.imul(F,hi)|0)+Math.imul(U,ai)|0))<<13)|0;I=((v=v+Math.imul(U,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Ft),r=(r=Math.imul(we,Vt))+Math.imul(z,Ft)|0,v=Math.imul(z,Vt),x=x+Math.imul(Ie,jt)|0,r=(r=r+Math.imul(Ie,ei)|0)+Math.imul(K,jt)|0,v=v+Math.imul(K,ei)|0,x=x+Math.imul(Ce,ai)|0,r=(r=r+Math.imul(Ce,hi)|0)+Math.imul(Be,ai)|0,v=v+Math.imul(Be,hi)|0;var Xi=(I+(x=x+Math.imul(F,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(F,Y)|0)+Math.imul(U,Ee)|0))<<13)|0;I=((v=v+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Re,Ft)|0,v=Math.imul(Re,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ei)|0)+Math.imul(z,jt)|0,v=v+Math.imul(z,ei)|0,x=x+Math.imul(Ie,ai)|0,r=(r=r+Math.imul(Ie,hi)|0)+Math.imul(K,ai)|0,v=v+Math.imul(K,hi)|0,x=x+Math.imul(Ce,Ee)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Be,Ee)|0,v=v+Math.imul(Be,Y)|0;var Ke=(I+(x=x+Math.imul(F,De)|0)|0)+((8191&(r=(r=r+Math.imul(F,et)|0)+Math.imul(U,De)|0))<<13)|0;I=((v=v+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(he,Ft),r=(r=Math.imul(he,Vt))+Math.imul(Le,Ft)|0,v=Math.imul(Le,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Re,jt)|0,v=v+Math.imul(Re,ei)|0,x=x+Math.imul(we,ai)|0,r=(r=r+Math.imul(we,hi)|0)+Math.imul(z,ai)|0,v=v+Math.imul(z,hi)|0,x=x+Math.imul(Ie,Ee)|0,r=(r=r+Math.imul(Ie,Y)|0)+Math.imul(K,Ee)|0,v=v+Math.imul(K,Y)|0,x=x+Math.imul(Ce,De)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Be,De)|0,v=v+Math.imul(Be,et)|0;var _t=(I+(x=x+Math.imul(F,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Jt)|0)+Math.imul(U,Nt)|0))<<13)|0;I=((v=v+Math.imul(U,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,v=Math.imul($,Vt),x=x+Math.imul(he,jt)|0,r=(r=r+Math.imul(he,ei)|0)+Math.imul(Le,jt)|0,v=v+Math.imul(Le,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Re,ai)|0,v=v+Math.imul(Re,hi)|0,x=x+Math.imul(we,Ee)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(z,Ee)|0,v=v+Math.imul(z,Y)|0,x=x+Math.imul(Ie,De)|0,r=(r=r+Math.imul(Ie,et)|0)+Math.imul(K,De)|0,v=v+Math.imul(K,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Jt)|0)+Math.imul(Be,Nt)|0,v=v+Math.imul(Be,Jt)|0;var ve=(I+(x=x+Math.imul(F,Pe)|0)|0)+((8191&(r=(r=r+Math.imul(F,Fe)|0)+Math.imul(U,Pe)|0))<<13)|0;I=((v=v+Math.imul(U,Fe)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,x=Math.imul(xe,Ft),r=(r=Math.imul(xe,Vt))+Math.imul(Ue,Ft)|0,v=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,v=v+Math.imul($,ei)|0,x=x+Math.imul(he,ai)|0,r=(r=r+Math.imul(he,hi)|0)+Math.imul(Le,ai)|0,v=v+Math.imul(Le,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Re,Ee)|0,v=v+Math.imul(Re,Y)|0,x=x+Math.imul(we,De)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(z,De)|0,v=v+Math.imul(z,et)|0,x=x+Math.imul(Ie,Nt)|0,r=(r=r+Math.imul(Ie,Jt)|0)+Math.imul(K,Nt)|0,v=v+Math.imul(K,Jt)|0,x=x+Math.imul(Ce,Pe)|0,r=(r=r+Math.imul(Ce,Fe)|0)+Math.imul(Be,Pe)|0,v=v+Math.imul(Be,Fe)|0;var qe=(I+(x=x+Math.imul(F,st)|0)|0)+((8191&(r=(r=r+Math.imul(F,At)|0)+Math.imul(U,st)|0))<<13)|0;I=((v=v+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,v=Math.imul(ft,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ei)|0)+Math.imul(Ue,jt)|0,v=v+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,v=v+Math.imul($,hi)|0,x=x+Math.imul(he,Ee)|0,r=(r=r+Math.imul(he,Y)|0)+Math.imul(Le,Ee)|0,v=v+Math.imul(Le,Y)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Re,De)|0,v=v+Math.imul(Re,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Jt)|0)+Math.imul(z,Nt)|0,v=v+Math.imul(z,Jt)|0,x=x+Math.imul(Ie,Pe)|0,r=(r=r+Math.imul(Ie,Fe)|0)+Math.imul(K,Pe)|0,v=v+Math.imul(K,Fe)|0,x=x+Math.imul(Ce,st)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Be,st)|0,v=v+Math.imul(Be,At)|0;var yt=(I+(x=x+Math.imul(F,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Rt)|0)+Math.imul(U,Bt)|0))<<13)|0;I=((v=v+Math.imul(U,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,v=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,v=v+Math.imul(ft,ei)|0,x=x+Math.imul(xe,ai)|0,r=(r=r+Math.imul(xe,hi)|0)+Math.imul(Ue,ai)|0,v=v+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul($,Ee)|0,v=v+Math.imul($,Y)|0,x=x+Math.imul(he,De)|0,r=(r=r+Math.imul(he,et)|0)+Math.imul(Le,De)|0,v=v+Math.imul(Le,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Re,Nt)|0,v=v+Math.imul(Re,Jt)|0,x=x+Math.imul(we,Pe)|0,r=(r=r+Math.imul(we,Fe)|0)+Math.imul(z,Pe)|0,v=v+Math.imul(z,Fe)|0,x=x+Math.imul(Ie,st)|0,r=(r=r+Math.imul(Ie,At)|0)+Math.imul(K,st)|0,v=v+Math.imul(K,At)|0,x=x+Math.imul(Ce,Bt)|0,r=(r=r+Math.imul(Ce,Rt)|0)+Math.imul(Be,Bt)|0,v=v+Math.imul(Be,Rt)|0;var fe=(I+(x=x+Math.imul(F,si)|0)|0)+((8191&(r=(r=r+Math.imul(F,ci)|0)+Math.imul(U,si)|0))<<13)|0;I=((v=v+Math.imul(U,ci)|0)+(r>>>13)|0)+(fe>>>26)|0,fe&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,v=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,v=v+Math.imul(ft,hi)|0,x=x+Math.imul(xe,Ee)|0,r=(r=r+Math.imul(xe,Y)|0)+Math.imul(Ue,Ee)|0,v=v+Math.imul(Ue,Y)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,v=v+Math.imul($,et)|0,x=x+Math.imul(he,Nt)|0,r=(r=r+Math.imul(he,Jt)|0)+Math.imul(Le,Nt)|0,v=v+Math.imul(Le,Jt)|0,x=x+Math.imul(vt,Pe)|0,r=(r=r+Math.imul(vt,Fe)|0)+Math.imul(Re,Pe)|0,v=v+Math.imul(Re,Fe)|0,x=x+Math.imul(we,st)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(z,st)|0,v=v+Math.imul(z,At)|0,x=x+Math.imul(Ie,Bt)|0,r=(r=r+Math.imul(Ie,Rt)|0)+Math.imul(K,Bt)|0,v=v+Math.imul(K,Rt)|0;var Je=(I+(x=x+Math.imul(Ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Be,si)|0))<<13)|0;I=((v=v+Math.imul(Be,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,v=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,Y)|0)+Math.imul(ft,Ee)|0,v=v+Math.imul(ft,Y)|0,x=x+Math.imul(xe,De)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Ue,De)|0,v=v+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,v=v+Math.imul($,Jt)|0,x=x+Math.imul(he,Pe)|0,r=(r=r+Math.imul(he,Fe)|0)+Math.imul(Le,Pe)|0,v=v+Math.imul(Le,Fe)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Re,st)|0,v=v+Math.imul(Re,At)|0,x=x+Math.imul(we,Bt)|0,r=(r=r+Math.imul(we,Rt)|0)+Math.imul(z,Bt)|0,v=v+Math.imul(z,Rt)|0;var St=(I+(x=x+Math.imul(Ie,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ie,ci)|0)+Math.imul(K,si)|0))<<13)|0;I=((v=v+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,Y))+Math.imul(Mt,Ee)|0,v=Math.imul(Mt,Y),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,v=v+Math.imul(ft,et)|0,x=x+Math.imul(xe,Nt)|0,r=(r=r+Math.imul(xe,Jt)|0)+Math.imul(Ue,Nt)|0,v=v+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,Pe)|0,r=(r=r+Math.imul(q,Fe)|0)+Math.imul($,Pe)|0,v=v+Math.imul($,Fe)|0,x=x+Math.imul(he,st)|0,r=(r=r+Math.imul(he,At)|0)+Math.imul(Le,st)|0,v=v+Math.imul(Le,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Re,Bt)|0,v=v+Math.imul(Re,Rt)|0;var Pt=(I+(x=x+Math.imul(we,si)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(z,si)|0))<<13)|0;I=((v=v+Math.imul(z,ci)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,v=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,v=v+Math.imul(ft,Jt)|0,x=x+Math.imul(xe,Pe)|0,r=(r=r+Math.imul(xe,Fe)|0)+Math.imul(Ue,Pe)|0,v=v+Math.imul(Ue,Fe)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,v=v+Math.imul($,At)|0,x=x+Math.imul(he,Bt)|0,r=(r=r+Math.imul(he,Rt)|0)+Math.imul(Le,Bt)|0,v=v+Math.imul(Le,Rt)|0;var yi=(I+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Re,si)|0))<<13)|0;I=((v=v+Math.imul(Re,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,v=Math.imul(Mt,Jt),x=x+Math.imul(nt,Pe)|0,r=(r=r+Math.imul(nt,Fe)|0)+Math.imul(ft,Pe)|0,v=v+Math.imul(ft,Fe)|0,x=x+Math.imul(xe,st)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Ue,st)|0,v=v+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,v=v+Math.imul($,Rt)|0;var Ni=(I+(x=x+Math.imul(he,si)|0)|0)+((8191&(r=(r=r+Math.imul(he,ci)|0)+Math.imul(Le,si)|0))<<13)|0;I=((v=v+Math.imul(Le,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,Pe),r=(r=Math.imul(rt,Fe))+Math.imul(Mt,Pe)|0,v=Math.imul(Mt,Fe),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,v=v+Math.imul(ft,At)|0,x=x+Math.imul(xe,Bt)|0,r=(r=r+Math.imul(xe,Rt)|0)+Math.imul(Ue,Bt)|0,v=v+Math.imul(Ue,Rt)|0;var Si=(I+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;I=((v=v+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,v=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,v=v+Math.imul(ft,Rt)|0;var qi=(I+(x=x+Math.imul(xe,si)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;I=((v=v+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,v=Math.imul(Mt,Rt);var ot=(I+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;I=((v=v+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(I+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return I=((v=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,L[0]=sn,L[1]=Ui,L[2]=Di,L[3]=Xi,L[4]=Ke,L[5]=_t,L[6]=ve,L[7]=qe,L[8]=yt,L[9]=fe,L[10]=Je,L[11]=St,L[12]=Pt,L[13]=yi,L[14]=Ni,L[15]=Si,L[16]=qi,L[17]=ot,L[18]=Kt,0!==I&&(L[19]=I,p.length++),p};function j(b,i,a){return(new W).mulp(b,i,a)}function W(b,i){this.x=b,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function Z(b,i,a){a.negative=i.negative^b.negative,a.length=b.length+i.length;for(var p=0,u=0,_=0;_>>26)|0)>>>26,L&=67108863}a.words[_]=I,p=L,L=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u>=1;return u},W.prototype.permute=function(i,a,p,u,_,L){for(var I=0;I>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u

>>=13),_>>>=13;for(L=2*a;L>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(b){for(var i=new Array(b.bitLength()),a=0;a>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var L=0;for(_=0;_>>26-a}L&&(this.words[_]=L,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_=0),u=a?(a-a%26)/26:0;var _=i%26,L=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=L,u=Math.max(0,u),x){for(var r=0;rL)for(this.length-=L,r=0;r=0&&(0!==v||r>=u);r--){var G=0|this.words[r];this.words[r]=v<<26-_|G>>>_,v=G&I}return x&&0!==v&&(x.words[x.length++]=v),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return y(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<=0);var a=i%26,p=(i-a)/26;return y(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(y("number"==typeof i),y(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a>26)-(x/67108864|0),this.words[_+p]=67108863&L}for(;_>26,this.words[_+p]=67108863&L;if(0===I)return this.strip();for(y(-1===I),I=0,_=0;_>26,this.words[_]=67108863&L;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,L=0|_.words[_.length-1];0!=(p=26-this._countBits(L))&&(_=_.ushln(p),u.iushln(p),L=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var v=0;v=0;F--){var U=67108864*(0|u.words[_.length+F])+(0|u.words[_.length+F-1]);for(U=Math.min(U/L|0,67108863),u._ishlnsubmul(_,U,F);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,F),u.isZero()||(u.negative^=1);r&&(r.words[F]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return y(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(L=this.neg().divmod(i,a),"mod"!==a&&(u=L.div.neg()),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(L=this.divmod(i.neg(),a),"mod"!==a&&(u=L.div.neg()),{div:u,mod:L.mod}):0!=(this.negative&i.negative)?(L=this.neg().divmod(i.neg(),a),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:L.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,L},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),L=p.cmp(u);return L<0||1===_&&0===L?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){y(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){y(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){y(0===i.negative),y(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),L=new o(0),I=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),v=a.clone();!a.isZero();){for(var G=0,F=1;0==(a.words[0]&F)&&G<26;++G,F<<=1);if(G>0)for(a.iushrn(G);G-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(v)),u.iushrn(1),_.iushrn(1);for(var U=0,ye=1;0==(p.words[0]&ye)&&U<26;++U,ye<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(L.isOdd()||I.isOdd())&&(L.iadd(r),I.isub(v)),L.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(L),_.isub(I)):(p.isub(a),L.isub(u),I.isub(_))}return{a:L,b:I,gcd:p.iushln(x)}},o.prototype._invmp=function(i){y(0===i.negative),y(!i.isZero());var G,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),L=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var I=0,x=1;0==(a.words[0]&x)&&I<26;++I,x<<=1);if(I>0)for(a.iushrn(I);I-- >0;)u.isOdd()&&u.iadd(L),u.iushrn(1);for(var r=0,v=1;0==(p.words[0]&v)&&r<26;++r,v<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(L),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(G=0===a.cmpn(1)?u:_).cmpn(0)<0&&G.iadd(i),G},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var L=a;a=p,p=L}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){y("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<>>26,this.words[L]=I&=67108863}return 0!==_&&(this.words[L]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),y(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:ui.length)return 1;if(this.length=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new oe(i)},o.prototype.toRed=function(i){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return y(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return y(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ie={k256:null,p224:null,p192:null,p25519:null};function ee(b,i){this.name=b,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _e(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ce(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function oe(b){if("string"==typeof b){var i=o._prime(b);this.m=i.p,this.prime=i}else y(b.gtn(1),"modulus must be greater than 1"),this.m=b,this.prime=null}function ae(b){oe.call(this,b),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)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(_e,ee),_e.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_>>22,L=I}i.words[_-10]=L>>>=22,i.length-=0===L&&i.length>10?10:9},_e.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(ie[i])return ie[i];var a;if("k256"===i)a=new _e;else if("p224"===i)a=new ce;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return ie[i]=a,a},oe.prototype._verify1=function(i){y(0===i.negative,"red works only with positives"),y(i.red,"red works only with red numbers")},oe.prototype._verify2=function(i,a){y(0==(i.negative|a.negative),"red works only with positives"),y(i.red&&i.red===a.red,"red works only with red numbers")},oe.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},oe.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},oe.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},oe.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},oe.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},oe.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},oe.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},oe.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},oe.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},oe.prototype.isqr=function(i){return this.imul(i,i.clone())},oe.prototype.sqr=function(i){return this.mul(i,i)},oe.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(y(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);y(!u.isZero());var L=new o(1).toRed(this),I=L.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(I);)r.redIAdd(I);for(var v=this.pow(r,u),G=this.pow(i,u.addn(1).iushrn(1)),F=this.pow(i,u),U=_;0!==F.cmp(L);){for(var ye=F,Ce=0;0!==ye.cmp(L);Ce++)ye=ye.redSqr();y(Ce=0;_--){for(var v=a.words[_],G=r-1;G>=0;G--){var F=v>>G&1;L!==u[0]&&(L=this.sqr(L)),0!==F||0!==I?(I<<=1,I|=F,(4==++x||0===_&&0===G)&&(L=this.mul(L,u[I]),x=0,I=0)):x=0}r=26}return L},oe.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},oe.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new ae(i)},C(ae,oe),ae.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ae.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},ae.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},ae.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},ae.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ve=m.nmd(Ve),this)},4901:Ve=>{"use strict";var Q={single_source_shortest_paths:function(m,e,t){var y={},C={};C[e]=0;var M,l,N,s,D,O,o=Q.PriorityQueue.make();for(o.push(e,0);!o.empty();)for(N in s=(M=o.pop()).cost,D=m[l=M.value]||{})D.hasOwnProperty(N)&&(O=s+D[N],(void 0===C[N]||C[N]>O)&&(C[N]=O,o.push(N,O),y[N]=l));if(void 0!==t&&void 0===C[t]){var w=["Could not find a path from ",e," to ",t,"."].join("");throw new Error(w)}return y},extract_shortest_path_from_predecessor_list:function(m,e){for(var t=[],y=e;y;)t.push(y),y=m[y];return t.reverse(),t},find_path:function(m,e,t){var y=Q.single_source_shortest_paths(m,e,t);return Q.extract_shortest_path_from_predecessor_list(y,t)},PriorityQueue:{make:function(m){var y,e=Q.PriorityQueue,t={};for(y in m=m||{},e)e.hasOwnProperty(y)&&(t[y]=e[y]);return t.queue=[],t.sorter=m.sorter||e.default_sorter,t},default_sorter:function(m,e){return m.cost-e.cost},push:function(m,e){this.queue.push({value:m,cost:e}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};Ve.exports=Q},7715:(Ve,Q,m)=>{"use strict";var e=Q;e.version=m(8597).i8,e.utils=m(1970),e.rand=m(7950),e.curve=m(6270),e.curves=m(2916),e.ec=m(7626),e.eddsa=m(1885)},7902:(Ve,Q,m)=>{"use strict";var e=m(7433),t=m(1970),y=t.getNAF,C=t.getJSF,o=t.assert;function M(N,s){this.type=N,this.p=new e(s.p,16),this.red=s.prime?e.red(s.prime):e.mont(this.p),this.zero=new e(0).toRed(this.red),this.one=new e(1).toRed(this.red),this.two=new e(2).toRed(this.red),this.n=s.n&&new e(s.n,16),this.g=s.g&&this.pointFromJSON(s.g,s.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 D=this.n&&this.p.div(this.n);!D||D.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function l(N,s){this.curve=N,this.type=s,this.precomputed=null}Ve.exports=M,M.prototype.point=function(){throw new Error("Not implemented")},M.prototype.validate=function(){throw new Error("Not implemented")},M.prototype._fixedNafMul=function(s,D){o(s.precomputed);var A=s._getDoubles(),O=y(D,1,this._bitLength),E=(1<=w;j--)Z=(Z<<1)+O[j];P.push(Z)}for(var W=this.jpoint(null,null,null),ie=this.jpoint(null,null,null),ee=E;ee>0;ee--){for(w=0;w=0;Z--){for(var j=0;Z>=0&&0===P[Z];Z--)j++;if(Z>=0&&j++,w=w.dblp(j),Z<0)break;var W=P[Z];o(0!==W),w="affine"===s.type?w.mixedAdd(W>0?E[W-1>>1]:E[-W-1>>1].neg()):w.add(W>0?E[W-1>>1]:E[-W-1>>1].neg())}return"affine"===s.type?w.toP():w},M.prototype._wnafMulAdd=function(s,D,A,O,E){var W,ie,ee,P=this._wnafT1,w=this._wnafT2,Z=this._wnafT3,j=0;for(W=0;W=1;W-=2){var ce=W-1,re=W;if(1===P[ce]&&1===P[re]){var de=[D[ce],null,null,D[re]];0===D[ce].y.cmp(D[re].y)?(de[1]=D[ce].add(D[re]),de[2]=D[ce].toJ().mixedAdd(D[re].neg())):0===D[ce].y.cmp(D[re].y.redNeg())?(de[1]=D[ce].toJ().mixedAdd(D[re]),de[2]=D[ce].add(D[re].neg())):(de[1]=D[ce].toJ().mixedAdd(D[re]),de[2]=D[ce].toJ().mixedAdd(D[re].neg()));var oe=[-3,-1,-5,-7,0,7,5,1,3],ae=C(A[ce],A[re]);for(j=Math.max(ae[0].length,j),Z[ce]=new Array(j),Z[re]=new Array(j),ie=0;ie=0;W--){for(var u=0;W>=0;){var _=!0;for(ie=0;ie=0&&u++,a=a.dblp(u),W<0)break;for(ie=0;ie0?ee=w[ie][L-1>>1]:L<0&&(ee=w[ie][-L-1>>1].neg()),a="affine"===ee.type?a.mixedAdd(ee):a.add(ee))}}for(W=0;W=Math.ceil((s.bitLength()+1)/D.step)},l.prototype._getDoubles=function(s,D){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var A=[this],O=this,E=0;E{"use strict";var e=m(1970),t=m(7433),y=m(3894),C=m(7902),o=e.assert;function M(N){this.twisted=1!=(0|N.a),this.mOneA=this.twisted&&-1==(0|N.a),this.extended=this.mOneA,C.call(this,"edwards",N),this.a=new t(N.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new t(N.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new t(N.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),o(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|N.c)}function l(N,s,D,A,O){C.BasePoint.call(this,N,"projective"),null===s&&null===D&&null===A?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new t(s,16),this.y=new t(D,16),this.z=A?new t(A,16):this.curve.one,this.t=O&&new t(O,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}y(M,C),Ve.exports=M,M.prototype._mulA=function(s){return this.mOneA?s.redNeg():this.a.redMul(s)},M.prototype._mulC=function(s){return this.oneC?s:this.c.redMul(s)},M.prototype.jpoint=function(s,D,A,O){return this.point(s,D,A,O)},M.prototype.pointFromX=function(s,D){(s=new t(s,16)).red||(s=s.toRed(this.red));var A=s.redSqr(),O=this.c2.redSub(this.a.redMul(A)),E=this.one.redSub(this.c2.redMul(this.d).redMul(A)),P=O.redMul(E.redInvm()),w=P.redSqrt();if(0!==w.redSqr().redSub(P).cmp(this.zero))throw new Error("invalid point");var Z=w.fromRed().isOdd();return(D&&!Z||!D&&Z)&&(w=w.redNeg()),this.point(s,w)},M.prototype.pointFromY=function(s,D){(s=new t(s,16)).red||(s=s.toRed(this.red));var A=s.redSqr(),O=A.redSub(this.c2),E=A.redMul(this.d).redMul(this.c2).redSub(this.a),P=O.redMul(E.redInvm());if(0===P.cmp(this.zero)){if(D)throw new Error("invalid point");return this.point(this.zero,s)}var w=P.redSqrt();if(0!==w.redSqr().redSub(P).cmp(this.zero))throw new Error("invalid point");return w.fromRed().isOdd()!==D&&(w=w.redNeg()),this.point(w,s)},M.prototype.validate=function(s){if(s.isInfinity())return!0;s.normalize();var D=s.x.redSqr(),A=s.y.redSqr(),O=D.redMul(this.a).redAdd(A),E=this.c2.redMul(this.one.redAdd(this.d.redMul(D).redMul(A)));return 0===O.cmp(E)},y(l,C.BasePoint),M.prototype.pointFromJSON=function(s){return l.fromJSON(this,s)},M.prototype.point=function(s,D,A,O){return new l(this,s,D,A,O)},l.fromJSON=function(s,D){return new l(s,D[0],D[1],D[2])},l.prototype.inspect=function(){return this.isInfinity()?"":""},l.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},l.prototype._extDbl=function(){var s=this.x.redSqr(),D=this.y.redSqr(),A=this.z.redSqr();A=A.redIAdd(A);var O=this.curve._mulA(s),E=this.x.redAdd(this.y).redSqr().redISub(s).redISub(D),P=O.redAdd(D),w=P.redSub(A),Z=O.redSub(D),j=E.redMul(w),W=P.redMul(Z),ie=E.redMul(Z),ee=w.redMul(P);return this.curve.point(j,W,ee,ie)},l.prototype._projDbl=function(){var O,E,P,w,Z,j,s=this.x.redAdd(this.y).redSqr(),D=this.x.redSqr(),A=this.y.redSqr();if(this.curve.twisted){var W=(w=this.curve._mulA(D)).redAdd(A);this.zOne?(O=s.redSub(D).redSub(A).redMul(W.redSub(this.curve.two)),E=W.redMul(w.redSub(A)),P=W.redSqr().redSub(W).redSub(W)):(Z=this.z.redSqr(),j=W.redSub(Z).redISub(Z),O=s.redSub(D).redISub(A).redMul(j),E=W.redMul(w.redSub(A)),P=W.redMul(j))}else w=D.redAdd(A),Z=this.curve._mulC(this.z).redSqr(),j=w.redSub(Z).redSub(Z),O=this.curve._mulC(s.redISub(w)).redMul(j),E=this.curve._mulC(w).redMul(D.redISub(A)),P=w.redMul(j);return this.curve.point(O,E,P)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(s){var D=this.y.redSub(this.x).redMul(s.y.redSub(s.x)),A=this.y.redAdd(this.x).redMul(s.y.redAdd(s.x)),O=this.t.redMul(this.curve.dd).redMul(s.t),E=this.z.redMul(s.z.redAdd(s.z)),P=A.redSub(D),w=E.redSub(O),Z=E.redAdd(O),j=A.redAdd(D),W=P.redMul(w),ie=Z.redMul(j),ee=P.redMul(j),_e=w.redMul(Z);return this.curve.point(W,ie,_e,ee)},l.prototype._projAdd=function(s){var ie,ee,D=this.z.redMul(s.z),A=D.redSqr(),O=this.x.redMul(s.x),E=this.y.redMul(s.y),P=this.curve.d.redMul(O).redMul(E),w=A.redSub(P),Z=A.redAdd(P),j=this.x.redAdd(this.y).redMul(s.x.redAdd(s.y)).redISub(O).redISub(E),W=D.redMul(w).redMul(j);return this.curve.twisted?(ie=D.redMul(Z).redMul(E.redSub(this.curve._mulA(O))),ee=w.redMul(Z)):(ie=D.redMul(Z).redMul(E.redSub(O)),ee=this.curve._mulC(w).redMul(Z)),this.curve.point(W,ie,ee)},l.prototype.add=function(s){return this.isInfinity()?s:s.isInfinity()?this:this.curve.extended?this._extAdd(s):this._projAdd(s)},l.prototype.mul=function(s){return this._hasDoubles(s)?this.curve._fixedNafMul(this,s):this.curve._wnafMul(this,s)},l.prototype.mulAdd=function(s,D,A){return this.curve._wnafMulAdd(1,[this,D],[s,A],2,!1)},l.prototype.jmulAdd=function(s,D,A){return this.curve._wnafMulAdd(1,[this,D],[s,A],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var s=this.z.redInvm();return this.x=this.x.redMul(s),this.y=this.y.redMul(s),this.t&&(this.t=this.t.redMul(s)),this.z=this.curve.one,this.zOne=!0,this},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(s){return this===s||0===this.getX().cmp(s.getX())&&0===this.getY().cmp(s.getY())},l.prototype.eqXToP=function(s){var D=s.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(D))return!0;for(var A=s.clone(),O=this.curve.redN.redMul(this.z);;){if(A.iadd(this.curve.n),A.cmp(this.curve.p)>=0)return!1;if(D.redIAdd(O),0===this.x.cmp(D))return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},6270:(Ve,Q,m)=>{"use strict";var e=Q;e.base=m(7902),e.short=m(1781),e.mont=m(7064),e.edwards=m(3835)},7064:(Ve,Q,m)=>{"use strict";var e=m(7433),t=m(3894),y=m(7902),C=m(1970);function o(l){y.call(this,"mont",l),this.a=new e(l.a,16).toRed(this.red),this.b=new e(l.b,16).toRed(this.red),this.i4=new e(4).toRed(this.red).redInvm(),this.two=new e(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function M(l,N,s){y.BasePoint.call(this,l,"projective"),null===N&&null===s?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new e(N,16),this.z=new e(s,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}t(o,y),Ve.exports=o,o.prototype.validate=function(N){var s=N.normalize().x,D=s.redSqr(),A=D.redMul(s).redAdd(D.redMul(this.a)).redAdd(s);return 0===A.redSqrt().redSqr().cmp(A)},t(M,y.BasePoint),o.prototype.decodePoint=function(N,s){return this.point(C.toArray(N,s),1)},o.prototype.point=function(N,s){return new M(this,N,s)},o.prototype.pointFromJSON=function(N){return M.fromJSON(this,N)},M.prototype.precompute=function(){},M.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},M.fromJSON=function(N,s){return new M(N,s[0],s[1]||N.one)},M.prototype.inspect=function(){return this.isInfinity()?"":""},M.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},M.prototype.dbl=function(){var s=this.x.redAdd(this.z).redSqr(),A=this.x.redSub(this.z).redSqr(),O=s.redSub(A),E=s.redMul(A),P=O.redMul(A.redAdd(this.curve.a24.redMul(O)));return this.curve.point(E,P)},M.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},M.prototype.diffAdd=function(N,s){var D=this.x.redAdd(this.z),A=this.x.redSub(this.z),O=N.x.redAdd(N.z),P=N.x.redSub(N.z).redMul(D),w=O.redMul(A),Z=s.z.redMul(P.redAdd(w).redSqr()),j=s.x.redMul(P.redISub(w).redSqr());return this.curve.point(Z,j)},M.prototype.mul=function(N){for(var s=N.clone(),D=this,A=this.curve.point(null,null),E=[];0!==s.cmpn(0);s.iushrn(1))E.push(s.andln(1));for(var P=E.length-1;P>=0;P--)0===E[P]?(D=D.diffAdd(A,this),A=A.dbl()):(A=D.diffAdd(A,this),D=D.dbl());return A},M.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},M.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},M.prototype.eq=function(N){return 0===this.getX().cmp(N.getX())},M.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},M.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},1781:(Ve,Q,m)=>{"use strict";var e=m(1970),t=m(7433),y=m(3894),C=m(7902),o=e.assert;function M(s){C.call(this,"short",s),this.a=new t(s.a,16).toRed(this.red),this.b=new t(s.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(s),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function l(s,D,A,O){C.BasePoint.call(this,s,"affine"),null===D&&null===A?(this.x=null,this.y=null,this.inf=!0):(this.x=new t(D,16),this.y=new t(A,16),O&&(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 N(s,D,A,O){C.BasePoint.call(this,s,"jacobian"),null===D&&null===A&&null===O?(this.x=this.curve.one,this.y=this.curve.one,this.z=new t(0)):(this.x=new t(D,16),this.y=new t(A,16),this.z=new t(O,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}y(M,C),Ve.exports=M,M.prototype._getEndomorphism=function(D){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var A,O;if(D.beta)A=new t(D.beta,16).toRed(this.red);else{var E=this._getEndoRoots(this.p);A=(A=E[0].cmp(E[1])<0?E[0]:E[1]).toRed(this.red)}if(D.lambda)O=new t(D.lambda,16);else{var P=this._getEndoRoots(this.n);0===this.g.mul(P[0]).x.cmp(this.g.x.redMul(A))?O=P[0]:o(0===this.g.mul(O=P[1]).x.cmp(this.g.x.redMul(A)))}return{beta:A,lambda:O,basis:D.basis?D.basis.map(function(Z){return{a:new t(Z.a,16),b:new t(Z.b,16)}}):this._getEndoBasis(O)}}},M.prototype._getEndoRoots=function(D){var A=D===this.p?this.red:t.mont(D),O=new t(2).toRed(A).redInvm(),E=O.redNeg(),P=new t(3).toRed(A).redNeg().redSqrt().redMul(O);return[E.redAdd(P).fromRed(),E.redSub(P).fromRed()]},M.prototype._getEndoBasis=function(D){for(var W,ie,ee,_e,ce,re,de,ae,b,A=this.n.ushrn(Math.floor(this.n.bitLength()/2)),O=D,E=this.n.clone(),P=new t(1),w=new t(0),Z=new t(0),j=new t(1),oe=0;0!==O.cmpn(0);){var i=E.div(O);ae=E.sub(i.mul(O)),b=Z.sub(i.mul(P));var a=j.sub(i.mul(w));if(!ee&&ae.cmp(A)<0)W=de.neg(),ie=P,ee=ae.neg(),_e=b;else if(ee&&2==++oe)break;de=ae,E=O,O=ae,Z=P,P=b,j=w,w=a}ce=ae.neg(),re=b;var p=ee.sqr().add(_e.sqr());return ce.sqr().add(re.sqr()).cmp(p)>=0&&(ce=W,re=ie),ee.negative&&(ee=ee.neg(),_e=_e.neg()),ce.negative&&(ce=ce.neg(),re=re.neg()),[{a:ee,b:_e},{a:ce,b:re}]},M.prototype._endoSplit=function(D){var A=this.endo.basis,O=A[0],E=A[1],P=E.b.mul(D).divRound(this.n),w=O.b.neg().mul(D).divRound(this.n),Z=P.mul(O.a),j=w.mul(E.a),W=P.mul(O.b),ie=w.mul(E.b);return{k1:D.sub(Z).sub(j),k2:W.add(ie).neg()}},M.prototype.pointFromX=function(D,A){(D=new t(D,16)).red||(D=D.toRed(this.red));var O=D.redSqr().redMul(D).redIAdd(D.redMul(this.a)).redIAdd(this.b),E=O.redSqrt();if(0!==E.redSqr().redSub(O).cmp(this.zero))throw new Error("invalid point");var P=E.fromRed().isOdd();return(A&&!P||!A&&P)&&(E=E.redNeg()),this.point(D,E)},M.prototype.validate=function(D){if(D.inf)return!0;var A=D.x,O=D.y,E=this.a.redMul(A),P=A.redSqr().redMul(A).redIAdd(E).redIAdd(this.b);return 0===O.redSqr().redISub(P).cmpn(0)},M.prototype._endoWnafMulAdd=function(D,A,O){for(var E=this._endoWnafT1,P=this._endoWnafT2,w=0;w":""},l.prototype.isInfinity=function(){return this.inf},l.prototype.add=function(D){if(this.inf)return D;if(D.inf)return this;if(this.eq(D))return this.dbl();if(this.neg().eq(D))return this.curve.point(null,null);if(0===this.x.cmp(D.x))return this.curve.point(null,null);var A=this.y.redSub(D.y);0!==A.cmpn(0)&&(A=A.redMul(this.x.redSub(D.x).redInvm()));var O=A.redSqr().redISub(this.x).redISub(D.x),E=A.redMul(this.x.redSub(O)).redISub(this.y);return this.curve.point(O,E)},l.prototype.dbl=function(){if(this.inf)return this;var D=this.y.redAdd(this.y);if(0===D.cmpn(0))return this.curve.point(null,null);var A=this.curve.a,O=this.x.redSqr(),E=D.redInvm(),P=O.redAdd(O).redIAdd(O).redIAdd(A).redMul(E),w=P.redSqr().redISub(this.x.redAdd(this.x)),Z=P.redMul(this.x.redSub(w)).redISub(this.y);return this.curve.point(w,Z)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(D){return D=new t(D,16),this.isInfinity()?this:this._hasDoubles(D)?this.curve._fixedNafMul(this,D):this.curve.endo?this.curve._endoWnafMulAdd([this],[D]):this.curve._wnafMul(this,D)},l.prototype.mulAdd=function(D,A,O){var E=[this,A],P=[D,O];return this.curve.endo?this.curve._endoWnafMulAdd(E,P):this.curve._wnafMulAdd(1,E,P,2)},l.prototype.jmulAdd=function(D,A,O){var E=[this,A],P=[D,O];return this.curve.endo?this.curve._endoWnafMulAdd(E,P,!0):this.curve._wnafMulAdd(1,E,P,2,!0)},l.prototype.eq=function(D){return this===D||this.inf===D.inf&&(this.inf||0===this.x.cmp(D.x)&&0===this.y.cmp(D.y))},l.prototype.neg=function(D){if(this.inf)return this;var A=this.curve.point(this.x,this.y.redNeg());if(D&&this.precomputed){var O=this.precomputed,E=function(P){return P.neg()};A.precomputed={naf:O.naf&&{wnd:O.naf.wnd,points:O.naf.points.map(E)},doubles:O.doubles&&{step:O.doubles.step,points:O.doubles.points.map(E)}}}return A},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},y(N,C.BasePoint),M.prototype.jpoint=function(D,A,O){return new N(this,D,A,O)},N.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var D=this.z.redInvm(),A=D.redSqr(),O=this.x.redMul(A),E=this.y.redMul(A).redMul(D);return this.curve.point(O,E)},N.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},N.prototype.add=function(D){if(this.isInfinity())return D;if(D.isInfinity())return this;var A=D.z.redSqr(),O=this.z.redSqr(),E=this.x.redMul(A),P=D.x.redMul(O),w=this.y.redMul(A.redMul(D.z)),Z=D.y.redMul(O.redMul(this.z)),j=E.redSub(P),W=w.redSub(Z);if(0===j.cmpn(0))return 0!==W.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var ie=j.redSqr(),ee=ie.redMul(j),_e=E.redMul(ie),ce=W.redSqr().redIAdd(ee).redISub(_e).redISub(_e),re=W.redMul(_e.redISub(ce)).redISub(w.redMul(ee)),de=this.z.redMul(D.z).redMul(j);return this.curve.jpoint(ce,re,de)},N.prototype.mixedAdd=function(D){if(this.isInfinity())return D.toJ();if(D.isInfinity())return this;var A=this.z.redSqr(),O=this.x,E=D.x.redMul(A),P=this.y,w=D.y.redMul(A).redMul(this.z),Z=O.redSub(E),j=P.redSub(w);if(0===Z.cmpn(0))return 0!==j.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var W=Z.redSqr(),ie=W.redMul(Z),ee=O.redMul(W),_e=j.redSqr().redIAdd(ie).redISub(ee).redISub(ee),ce=j.redMul(ee.redISub(_e)).redISub(P.redMul(ie)),re=this.z.redMul(Z);return this.curve.jpoint(_e,ce,re)},N.prototype.dblp=function(D){if(0===D)return this;if(this.isInfinity())return this;if(!D)return this.dbl();var A;if(this.curve.zeroA||this.curve.threeA){var O=this;for(A=0;A=0)return!1;if(O.redIAdd(P),0===this.x.cmp(O))return!0}},N.prototype.inspect=function(){return this.isInfinity()?"":""},N.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},2916:(Ve,Q,m)=>{"use strict";var N,e=Q,t=m(7084),y=m(6270),o=m(1970).assert;function M(s){this.curve="short"===s.type?new y.short(s):"edwards"===s.type?new y.edwards(s):new y.mont(s),this.g=this.curve.g,this.n=this.curve.n,this.hash=s.hash,o(this.g.validate(),"Invalid curve"),o(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(s,D){Object.defineProperty(e,s,{configurable:!0,enumerable:!0,get:function(){var A=new M(D);return Object.defineProperty(e,s,{configurable:!0,enumerable:!0,value:A}),A}})}e.PresetCurve=M,l("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:t.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("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:t.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("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:t.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("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:t.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"]}),l("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:t.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"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:t.sha256,gRed:!1,g:["9"]}),l("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:t.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{N=m(5150)}catch(s){N=void 0}l("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:t.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",N]})},7626:(Ve,Q,m)=>{"use strict";var e=m(7433),t=m(2438),y=m(1970),C=m(2916),o=m(7950),M=y.assert,l=m(1259),N=m(5957);function s(D){if(!(this instanceof s))return new s(D);"string"==typeof D&&(M(Object.prototype.hasOwnProperty.call(C,D),"Unknown curve "+D),D=C[D]),D instanceof C.PresetCurve&&(D={curve:D}),this.curve=D.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=D.curve.g,this.g.precompute(D.curve.n.bitLength()+1),this.hash=D.hash||D.curve.hash}Ve.exports=s,s.prototype.keyPair=function(A){return new l(this,A)},s.prototype.keyFromPrivate=function(A,O){return l.fromPrivate(this,A,O)},s.prototype.keyFromPublic=function(A,O){return l.fromPublic(this,A,O)},s.prototype.genKeyPair=function(A){A||(A={});for(var O=new t({hash:this.hash,pers:A.pers,persEnc:A.persEnc||"utf8",entropy:A.entropy||o(this.hash.hmacStrength),entropyEnc:A.entropy&&A.entropyEnc||"utf8",nonce:this.n.toArray()}),E=this.n.byteLength(),P=this.n.sub(new e(2));;){var w=new e(O.generate(E));if(!(w.cmp(P)>0))return w.iaddn(1),this.keyFromPrivate(w)}},s.prototype._truncateToN=function(A,O){var E=8*A.byteLength()-this.n.bitLength();return E>0&&(A=A.ushrn(E)),!O&&A.cmp(this.n)>=0?A.sub(this.n):A},s.prototype.sign=function(A,O,E,P){"object"==typeof E&&(P=E,E=null),P||(P={}),O=this.keyFromPrivate(O,E),A=this._truncateToN(new e(A,16));for(var w=this.n.byteLength(),Z=O.getPrivate().toArray("be",w),j=A.toArray("be",w),W=new t({hash:this.hash,entropy:Z,nonce:j,pers:P.pers,persEnc:P.persEnc||"utf8"}),ie=this.n.sub(new e(1)),ee=0;;ee++){var _e=P.k?P.k(ee):new e(W.generate(this.n.byteLength()));if(!((_e=this._truncateToN(_e,!0)).cmpn(1)<=0||_e.cmp(ie)>=0)){var ce=this.g.mul(_e);if(!ce.isInfinity()){var re=ce.getX(),de=re.umod(this.n);if(0!==de.cmpn(0)){var oe=_e.invm(this.n).mul(de.mul(O.getPrivate()).iadd(A));if(0!==(oe=oe.umod(this.n)).cmpn(0)){var ae=(ce.getY().isOdd()?1:0)|(0!==re.cmp(de)?2:0);return P.canonical&&oe.cmp(this.nh)>0&&(oe=this.n.sub(oe),ae^=1),new N({r:de,s:oe,recoveryParam:ae})}}}}}},s.prototype.verify=function(A,O,E,P){A=this._truncateToN(new e(A,16)),E=this.keyFromPublic(E,P);var w=(O=new N(O,"hex")).r,Z=O.s;if(w.cmpn(1)<0||w.cmp(this.n)>=0||Z.cmpn(1)<0||Z.cmp(this.n)>=0)return!1;var ee,j=Z.invm(this.n),W=j.mul(A).umod(this.n),ie=j.mul(w).umod(this.n);return this.curve._maxwellTrick?!(ee=this.g.jmulAdd(W,E.getPublic(),ie)).isInfinity()&&ee.eqXToP(w):!(ee=this.g.mulAdd(W,E.getPublic(),ie)).isInfinity()&&0===ee.getX().umod(this.n).cmp(w)},s.prototype.recoverPubKey=function(D,A,O,E){M((3&O)===O,"The recovery param is more than two bits"),A=new N(A,E);var P=this.n,w=new e(D),Z=A.r,j=A.s,W=1&O,ie=O>>1;if(Z.cmp(this.curve.p.umod(this.curve.n))>=0&&ie)throw new Error("Unable to find sencond key candinate");Z=this.curve.pointFromX(ie?Z.add(this.curve.n):Z,W);var ee=A.r.invm(P),_e=P.sub(w).mul(ee).umod(P),ce=j.mul(ee).umod(P);return this.g.mulAdd(_e,Z,ce)},s.prototype.getKeyRecoveryParam=function(D,A,O,E){if(null!==(A=new N(A,E)).recoveryParam)return A.recoveryParam;for(var P=0;P<4;P++){var w;try{w=this.recoverPubKey(D,A,P)}catch(Z){continue}if(w.eq(O))return P}throw new Error("Unable to find valid recovery factor")}},1259:(Ve,Q,m)=>{"use strict";var e=m(7433),y=m(1970).assert;function C(o,M){this.ec=o,this.priv=null,this.pub=null,M.priv&&this._importPrivate(M.priv,M.privEnc),M.pub&&this._importPublic(M.pub,M.pubEnc)}Ve.exports=C,C.fromPublic=function(M,l,N){return l instanceof C?l:new C(M,{pub:l,pubEnc:N})},C.fromPrivate=function(M,l,N){return l instanceof C?l:new C(M,{priv:l,privEnc:N})},C.prototype.validate=function(){var M=this.getPublic();return M.isInfinity()?{result:!1,reason:"Invalid public key"}:M.validate()?M.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"}},C.prototype.getPublic=function(M,l){return"string"==typeof M&&(l=M,M=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),l?this.pub.encode(l,M):this.pub},C.prototype.getPrivate=function(M){return"hex"===M?this.priv.toString(16,2):this.priv},C.prototype._importPrivate=function(M,l){this.priv=new e(M,l||16),this.priv=this.priv.umod(this.ec.curve.n)},C.prototype._importPublic=function(M,l){if(M.x||M.y)return"mont"===this.ec.curve.type?y(M.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&y(M.x&&M.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(M.x,M.y));this.pub=this.ec.curve.decodePoint(M,l)},C.prototype.derive=function(M){return M.validate()||y(M.validate(),"public point not validated"),M.mul(this.priv).getX()},C.prototype.sign=function(M,l,N){return this.ec.sign(M,this,l,N)},C.prototype.verify=function(M,l){return this.ec.verify(M,l,this)},C.prototype.inspect=function(){return""}},5957:(Ve,Q,m)=>{"use strict";var e=m(7433),t=m(1970),y=t.assert;function C(s,D){if(s instanceof C)return s;this._importDER(s,D)||(y(s.r&&s.s,"Signature without r or s"),this.r=new e(s.r,16),this.s=new e(s.s,16),this.recoveryParam=void 0===s.recoveryParam?null:s.recoveryParam)}function o(){this.place=0}function M(s,D){var A=s[D.place++];if(!(128&A))return A;var O=15&A;if(0===O||O>4)return!1;for(var E=0,P=0,w=D.place;P>>=0;return!(E<=127)&&(D.place=w,E)}function l(s){for(var D=0,A=s.length-1;!s[D]&&!(128&s[D+1])&&D>>3);for(s.push(128|A);--A;)s.push(D>>>(A<<3)&255);s.push(D)}}Ve.exports=C,C.prototype._importDER=function(D,A){D=t.toArray(D,A);var O=new o;if(48!==D[O.place++])return!1;var E=M(D,O);if(!1===E||E+O.place!==D.length||2!==D[O.place++])return!1;var P=M(D,O);if(!1===P)return!1;var w=D.slice(O.place,P+O.place);if(O.place+=P,2!==D[O.place++])return!1;var Z=M(D,O);if(!1===Z||D.length!==Z+O.place)return!1;var j=D.slice(O.place,Z+O.place);if(0===w[0]){if(!(128&w[1]))return!1;w=w.slice(1)}if(0===j[0]){if(!(128&j[1]))return!1;j=j.slice(1)}return this.r=new e(w),this.s=new e(j),this.recoveryParam=null,!0},C.prototype.toDER=function(D){var A=this.r.toArray(),O=this.s.toArray();for(128&A[0]&&(A=[0].concat(A)),128&O[0]&&(O=[0].concat(O)),A=l(A),O=l(O);!(O[0]||128&O[1]);)O=O.slice(1);var E=[2];N(E,A.length),(E=E.concat(A)).push(2),N(E,O.length);var P=E.concat(O),w=[48];return N(w,P.length),w=w.concat(P),t.encode(w,D)}},1885:(Ve,Q,m)=>{"use strict";var e=m(7084),t=m(2916),y=m(1970),C=y.assert,o=y.parseBytes,M=m(7535),l=m(8241);function N(s){if(C("ed25519"===s,"only tested with ed25519 so far"),!(this instanceof N))return new N(s);this.curve=s=t[s].curve,this.g=s.g,this.g.precompute(s.n.bitLength()+1),this.pointClass=s.point().constructor,this.encodingLength=Math.ceil(s.n.bitLength()/8),this.hash=e.sha512}Ve.exports=N,N.prototype.sign=function(D,A){D=o(D);var O=this.keyFromSecret(A),E=this.hashInt(O.messagePrefix(),D),P=this.g.mul(E),w=this.encodePoint(P),Z=this.hashInt(w,O.pubBytes(),D).mul(O.priv()),j=E.add(Z).umod(this.curve.n);return this.makeSignature({R:P,S:j,Rencoded:w})},N.prototype.verify=function(D,A,O){D=o(D),A=this.makeSignature(A);var E=this.keyFromPublic(O),P=this.hashInt(A.Rencoded(),E.pubBytes(),D),w=this.g.mul(A.S());return A.R().add(E.pub().mul(P)).eq(w)},N.prototype.hashInt=function(){for(var D=this.hash(),A=0;A{"use strict";var e=m(1970),t=e.assert,y=e.parseBytes,C=e.cachedProperty;function o(M,l){this.eddsa=M,this._secret=y(l.secret),M.isPoint(l.pub)?this._pub=l.pub:this._pubBytes=y(l.pub)}o.fromPublic=function(l,N){return N instanceof o?N:new o(l,{pub:N})},o.fromSecret=function(l,N){return N instanceof o?N:new o(l,{secret:N})},o.prototype.secret=function(){return this._secret},C(o,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),C(o,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),C(o,"privBytes",function(){var l=this.eddsa,N=this.hash(),s=l.encodingLength-1,D=N.slice(0,l.encodingLength);return D[0]&=248,D[s]&=127,D[s]|=64,D}),C(o,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),C(o,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),C(o,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),o.prototype.sign=function(l){return t(this._secret,"KeyPair can only verify"),this.eddsa.sign(l,this)},o.prototype.verify=function(l,N){return this.eddsa.verify(l,N,this)},o.prototype.getSecret=function(l){return t(this._secret,"KeyPair is public only"),e.encode(this.secret(),l)},o.prototype.getPublic=function(l){return e.encode(this.pubBytes(),l)},Ve.exports=o},8241:(Ve,Q,m)=>{"use strict";var e=m(7433),t=m(1970),y=t.assert,C=t.cachedProperty,o=t.parseBytes;function M(l,N){this.eddsa=l,"object"!=typeof N&&(N=o(N)),Array.isArray(N)&&(N={R:N.slice(0,l.encodingLength),S:N.slice(l.encodingLength)}),y(N.R&&N.S,"Signature without R or S"),l.isPoint(N.R)&&(this._R=N.R),N.S instanceof e&&(this._S=N.S),this._Rencoded=Array.isArray(N.R)?N.R:N.Rencoded,this._Sencoded=Array.isArray(N.S)?N.S:N.Sencoded}C(M,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),C(M,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),C(M,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),C(M,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),M.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},M.prototype.toHex=function(){return t.encode(this.toBytes(),"hex").toUpperCase()},Ve.exports=M},5150:Ve=>{Ve.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},1970:(Ve,Q,m)=>{"use strict";var e=Q,t=m(7433),y=m(2391),C=m(8195);e.assert=y,e.toArray=C.toArray,e.zero2=C.zero2,e.toHex=C.toHex,e.encode=C.encode,e.getNAF=function o(D,A,O){var E=new Array(Math.max(D.bitLength(),O)+1);E.fill(0);for(var P=1<(P>>1)-1?(P>>1)-W:W):j=0,E[Z]=j,w.iushrn(1)}return E},e.getJSF=function M(D,A){var O=[[],[]];D=D.clone(),A=A.clone();for(var w,E=0,P=0;D.cmpn(-E)>0||A.cmpn(-P)>0;){var W,ie,Z=D.andln(3)+E&3,j=A.andln(3)+P&3;3===Z&&(Z=-1),3===j&&(j=-1),W=0==(1&Z)?0:3!=(w=D.andln(7)+E&7)&&5!==w||2!==j?Z:-Z,O[0].push(W),ie=0==(1&j)?0:3!=(w=A.andln(7)+P&7)&&5!==w||2!==Z?j:-j,O[1].push(ie),2*E===W+1&&(E=1-E),2*P===ie+1&&(P=1-P),D.iushrn(1),A.iushrn(1)}return O},e.cachedProperty=function l(D,A,O){var E="_"+A;D.prototype[A]=function(){return void 0!==this[E]?this[E]:this[E]=O.call(this)}},e.parseBytes=function N(D){return"string"==typeof D?e.toArray(D,"hex"):D},e.intFromLE=function s(D){return new t(D,"hex","le")}},7433:function(Ve,Q,m){!function(e,t){"use strict";function y(b,i){if(!b)throw new Error(i||"Assertion failed")}function C(b,i){b.super_=i;var a=function(){};a.prototype=i.prototype,b.prototype=new a,b.prototype.constructor=b}function o(b,i,a){if(o.isBN(b))return b;this.negative=0,this.words=null,this.length=0,this.red=null,null!==b&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(b||0,i||10,a||"be"))}var M;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{M="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:m(5568).Buffer}catch(b){}function l(b,i){var a=b.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function N(b,i,a){var p=l(b,a);return a-1>=i&&(p|=l(b,a-1)<<4),p}function s(b,i,a,p){for(var u=0,_=Math.min(b.length,a),L=i;L<_;L++){var I=b.charCodeAt(L)-48;u*=p,u+=I>=49?I-49+10:I>=17?I-17+10:I}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),y(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(L=i[u]|i[u-1]<<8|i[u-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u=a;u-=2)I=N(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var L=i.length-p,I=L%u,x=Math.min(L,L-I)+p,r=0,v=p;v1&&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 D=["","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"],A=[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],O=[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 P(b,i,a){a.negative=i.negative^b.negative;var p=b.length+i.length|0;a.length=p,p=p-1|0;var u=0|b.words[0],_=0|i.words[0],L=u*_,x=L/67108864|0;a.words[0]=67108863&L;for(var r=1;r>>26,G=67108863&x,F=Math.min(r,i.length-1),U=Math.max(0,r-b.length+1);U<=F;U++)v+=(L=(u=0|b.words[r-U|0])*(_=0|i.words[U])+G)/67108864|0,G=67108863&L;a.words[r]=0|G,x=0|v}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,L=0;L>>24-u&16777215)||L!==this.length-1?D[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,L--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=A[i],v=O[i];p="";var G=this.clone();for(G.negative=0;!G.isZero();){var F=G.modn(v).toString(i);p=(G=G.idivn(v)).isZero()?F+p:D[r-F.length]+F+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}y(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return y(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);y(u<=_,"byte array longer than desired length"),y(_>0,"Requested array length <= 0"),this.strip();var x,r,L="le"===a,I=new i(_),v=this.clone();if(L){for(r=0;!v.isZero();r++)x=v.andln(255),v.iushrn(8),I[r]=x;for(;r<_;r++)I[r]=0}else{for(r=0;r<_-u;r++)I[r]=0;for(r=0;!v.isZero();r++)x=v.andln(255),v.iushrn(8),I[_-r-1]=x}return I},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;pi.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;ui.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){y("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){y("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<i.length?(p=this,u=i):(p=i,u=this);for(var _=0,L=0;L>>26;for(;0!==_&&L>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;Li.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var L=0,I=0;I<_.length;I++)L=(a=(0|u.words[I])-(0|_.words[I])+L)>>26,this.words[I]=67108863&a;for(;0!==L&&I>26,this.words[I]=67108863&a;if(0===L&&I>>13,ye=0|u[1],Ce=8191&ye,Be=ye>>>13,ze=0|u[2],Ie=8191&ze,K=ze>>>13,Me=0|u[3],we=8191&Me,z=Me>>>13,Ge=0|u[4],vt=8191&Ge,Re=Ge>>>13,Ne=0|u[5],he=8191&Ne,Le=Ne>>>13,ke=0|u[6],q=8191&ke,$=ke>>>13,le=0|u[7],xe=8191&le,Ue=le>>>13,lt=0|u[8],nt=8191<,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,Pi=0|_[2],ai=8191&Pi,hi=Pi>>>13,Ze=0|_[3],Ee=8191&Ze,Y=Ze>>>13,me=0|_[4],De=8191&me,et=me>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],Pe=8191&ct,Fe=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(I+(x=Math.imul(F,Ft))|0)+((8191&(r=(r=Math.imul(F,Vt))+Math.imul(U,Ft)|0))<<13)|0;I=((v=Math.imul(U,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(Ce,Ft),r=(r=Math.imul(Ce,Vt))+Math.imul(Be,Ft)|0,v=Math.imul(Be,Vt);var Ui=(I+(x=x+Math.imul(F,jt)|0)|0)+((8191&(r=(r=r+Math.imul(F,ei)|0)+Math.imul(U,jt)|0))<<13)|0;I=((v=v+Math.imul(U,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Ie,Ft),r=(r=Math.imul(Ie,Vt))+Math.imul(K,Ft)|0,v=Math.imul(K,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ei)|0)+Math.imul(Be,jt)|0,v=v+Math.imul(Be,ei)|0;var Di=(I+(x=x+Math.imul(F,ai)|0)|0)+((8191&(r=(r=r+Math.imul(F,hi)|0)+Math.imul(U,ai)|0))<<13)|0;I=((v=v+Math.imul(U,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Ft),r=(r=Math.imul(we,Vt))+Math.imul(z,Ft)|0,v=Math.imul(z,Vt),x=x+Math.imul(Ie,jt)|0,r=(r=r+Math.imul(Ie,ei)|0)+Math.imul(K,jt)|0,v=v+Math.imul(K,ei)|0,x=x+Math.imul(Ce,ai)|0,r=(r=r+Math.imul(Ce,hi)|0)+Math.imul(Be,ai)|0,v=v+Math.imul(Be,hi)|0;var Xi=(I+(x=x+Math.imul(F,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(F,Y)|0)+Math.imul(U,Ee)|0))<<13)|0;I=((v=v+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Re,Ft)|0,v=Math.imul(Re,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ei)|0)+Math.imul(z,jt)|0,v=v+Math.imul(z,ei)|0,x=x+Math.imul(Ie,ai)|0,r=(r=r+Math.imul(Ie,hi)|0)+Math.imul(K,ai)|0,v=v+Math.imul(K,hi)|0,x=x+Math.imul(Ce,Ee)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Be,Ee)|0,v=v+Math.imul(Be,Y)|0;var Ke=(I+(x=x+Math.imul(F,De)|0)|0)+((8191&(r=(r=r+Math.imul(F,et)|0)+Math.imul(U,De)|0))<<13)|0;I=((v=v+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(he,Ft),r=(r=Math.imul(he,Vt))+Math.imul(Le,Ft)|0,v=Math.imul(Le,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Re,jt)|0,v=v+Math.imul(Re,ei)|0,x=x+Math.imul(we,ai)|0,r=(r=r+Math.imul(we,hi)|0)+Math.imul(z,ai)|0,v=v+Math.imul(z,hi)|0,x=x+Math.imul(Ie,Ee)|0,r=(r=r+Math.imul(Ie,Y)|0)+Math.imul(K,Ee)|0,v=v+Math.imul(K,Y)|0,x=x+Math.imul(Ce,De)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Be,De)|0,v=v+Math.imul(Be,et)|0;var _t=(I+(x=x+Math.imul(F,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Jt)|0)+Math.imul(U,Nt)|0))<<13)|0;I=((v=v+Math.imul(U,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,v=Math.imul($,Vt),x=x+Math.imul(he,jt)|0,r=(r=r+Math.imul(he,ei)|0)+Math.imul(Le,jt)|0,v=v+Math.imul(Le,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Re,ai)|0,v=v+Math.imul(Re,hi)|0,x=x+Math.imul(we,Ee)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(z,Ee)|0,v=v+Math.imul(z,Y)|0,x=x+Math.imul(Ie,De)|0,r=(r=r+Math.imul(Ie,et)|0)+Math.imul(K,De)|0,v=v+Math.imul(K,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Jt)|0)+Math.imul(Be,Nt)|0,v=v+Math.imul(Be,Jt)|0;var ve=(I+(x=x+Math.imul(F,Pe)|0)|0)+((8191&(r=(r=r+Math.imul(F,Fe)|0)+Math.imul(U,Pe)|0))<<13)|0;I=((v=v+Math.imul(U,Fe)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,x=Math.imul(xe,Ft),r=(r=Math.imul(xe,Vt))+Math.imul(Ue,Ft)|0,v=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,v=v+Math.imul($,ei)|0,x=x+Math.imul(he,ai)|0,r=(r=r+Math.imul(he,hi)|0)+Math.imul(Le,ai)|0,v=v+Math.imul(Le,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Re,Ee)|0,v=v+Math.imul(Re,Y)|0,x=x+Math.imul(we,De)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(z,De)|0,v=v+Math.imul(z,et)|0,x=x+Math.imul(Ie,Nt)|0,r=(r=r+Math.imul(Ie,Jt)|0)+Math.imul(K,Nt)|0,v=v+Math.imul(K,Jt)|0,x=x+Math.imul(Ce,Pe)|0,r=(r=r+Math.imul(Ce,Fe)|0)+Math.imul(Be,Pe)|0,v=v+Math.imul(Be,Fe)|0;var qe=(I+(x=x+Math.imul(F,st)|0)|0)+((8191&(r=(r=r+Math.imul(F,At)|0)+Math.imul(U,st)|0))<<13)|0;I=((v=v+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,v=Math.imul(ft,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ei)|0)+Math.imul(Ue,jt)|0,v=v+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,v=v+Math.imul($,hi)|0,x=x+Math.imul(he,Ee)|0,r=(r=r+Math.imul(he,Y)|0)+Math.imul(Le,Ee)|0,v=v+Math.imul(Le,Y)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Re,De)|0,v=v+Math.imul(Re,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Jt)|0)+Math.imul(z,Nt)|0,v=v+Math.imul(z,Jt)|0,x=x+Math.imul(Ie,Pe)|0,r=(r=r+Math.imul(Ie,Fe)|0)+Math.imul(K,Pe)|0,v=v+Math.imul(K,Fe)|0,x=x+Math.imul(Ce,st)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Be,st)|0,v=v+Math.imul(Be,At)|0;var yt=(I+(x=x+Math.imul(F,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Rt)|0)+Math.imul(U,Bt)|0))<<13)|0;I=((v=v+Math.imul(U,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,v=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,v=v+Math.imul(ft,ei)|0,x=x+Math.imul(xe,ai)|0,r=(r=r+Math.imul(xe,hi)|0)+Math.imul(Ue,ai)|0,v=v+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul($,Ee)|0,v=v+Math.imul($,Y)|0,x=x+Math.imul(he,De)|0,r=(r=r+Math.imul(he,et)|0)+Math.imul(Le,De)|0,v=v+Math.imul(Le,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Re,Nt)|0,v=v+Math.imul(Re,Jt)|0,x=x+Math.imul(we,Pe)|0,r=(r=r+Math.imul(we,Fe)|0)+Math.imul(z,Pe)|0,v=v+Math.imul(z,Fe)|0,x=x+Math.imul(Ie,st)|0,r=(r=r+Math.imul(Ie,At)|0)+Math.imul(K,st)|0,v=v+Math.imul(K,At)|0,x=x+Math.imul(Ce,Bt)|0,r=(r=r+Math.imul(Ce,Rt)|0)+Math.imul(Be,Bt)|0,v=v+Math.imul(Be,Rt)|0;var fe=(I+(x=x+Math.imul(F,si)|0)|0)+((8191&(r=(r=r+Math.imul(F,ci)|0)+Math.imul(U,si)|0))<<13)|0;I=((v=v+Math.imul(U,ci)|0)+(r>>>13)|0)+(fe>>>26)|0,fe&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,v=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,v=v+Math.imul(ft,hi)|0,x=x+Math.imul(xe,Ee)|0,r=(r=r+Math.imul(xe,Y)|0)+Math.imul(Ue,Ee)|0,v=v+Math.imul(Ue,Y)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,v=v+Math.imul($,et)|0,x=x+Math.imul(he,Nt)|0,r=(r=r+Math.imul(he,Jt)|0)+Math.imul(Le,Nt)|0,v=v+Math.imul(Le,Jt)|0,x=x+Math.imul(vt,Pe)|0,r=(r=r+Math.imul(vt,Fe)|0)+Math.imul(Re,Pe)|0,v=v+Math.imul(Re,Fe)|0,x=x+Math.imul(we,st)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(z,st)|0,v=v+Math.imul(z,At)|0,x=x+Math.imul(Ie,Bt)|0,r=(r=r+Math.imul(Ie,Rt)|0)+Math.imul(K,Bt)|0,v=v+Math.imul(K,Rt)|0;var Je=(I+(x=x+Math.imul(Ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Be,si)|0))<<13)|0;I=((v=v+Math.imul(Be,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,v=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,Y)|0)+Math.imul(ft,Ee)|0,v=v+Math.imul(ft,Y)|0,x=x+Math.imul(xe,De)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Ue,De)|0,v=v+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,v=v+Math.imul($,Jt)|0,x=x+Math.imul(he,Pe)|0,r=(r=r+Math.imul(he,Fe)|0)+Math.imul(Le,Pe)|0,v=v+Math.imul(Le,Fe)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Re,st)|0,v=v+Math.imul(Re,At)|0,x=x+Math.imul(we,Bt)|0,r=(r=r+Math.imul(we,Rt)|0)+Math.imul(z,Bt)|0,v=v+Math.imul(z,Rt)|0;var St=(I+(x=x+Math.imul(Ie,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ie,ci)|0)+Math.imul(K,si)|0))<<13)|0;I=((v=v+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,Y))+Math.imul(Mt,Ee)|0,v=Math.imul(Mt,Y),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,v=v+Math.imul(ft,et)|0,x=x+Math.imul(xe,Nt)|0,r=(r=r+Math.imul(xe,Jt)|0)+Math.imul(Ue,Nt)|0,v=v+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,Pe)|0,r=(r=r+Math.imul(q,Fe)|0)+Math.imul($,Pe)|0,v=v+Math.imul($,Fe)|0,x=x+Math.imul(he,st)|0,r=(r=r+Math.imul(he,At)|0)+Math.imul(Le,st)|0,v=v+Math.imul(Le,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Re,Bt)|0,v=v+Math.imul(Re,Rt)|0;var Pt=(I+(x=x+Math.imul(we,si)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(z,si)|0))<<13)|0;I=((v=v+Math.imul(z,ci)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,v=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,v=v+Math.imul(ft,Jt)|0,x=x+Math.imul(xe,Pe)|0,r=(r=r+Math.imul(xe,Fe)|0)+Math.imul(Ue,Pe)|0,v=v+Math.imul(Ue,Fe)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,v=v+Math.imul($,At)|0,x=x+Math.imul(he,Bt)|0,r=(r=r+Math.imul(he,Rt)|0)+Math.imul(Le,Bt)|0,v=v+Math.imul(Le,Rt)|0;var yi=(I+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Re,si)|0))<<13)|0;I=((v=v+Math.imul(Re,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,v=Math.imul(Mt,Jt),x=x+Math.imul(nt,Pe)|0,r=(r=r+Math.imul(nt,Fe)|0)+Math.imul(ft,Pe)|0,v=v+Math.imul(ft,Fe)|0,x=x+Math.imul(xe,st)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Ue,st)|0,v=v+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,v=v+Math.imul($,Rt)|0;var Ni=(I+(x=x+Math.imul(he,si)|0)|0)+((8191&(r=(r=r+Math.imul(he,ci)|0)+Math.imul(Le,si)|0))<<13)|0;I=((v=v+Math.imul(Le,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,Pe),r=(r=Math.imul(rt,Fe))+Math.imul(Mt,Pe)|0,v=Math.imul(Mt,Fe),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,v=v+Math.imul(ft,At)|0,x=x+Math.imul(xe,Bt)|0,r=(r=r+Math.imul(xe,Rt)|0)+Math.imul(Ue,Bt)|0,v=v+Math.imul(Ue,Rt)|0;var Si=(I+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;I=((v=v+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,v=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,v=v+Math.imul(ft,Rt)|0;var qi=(I+(x=x+Math.imul(xe,si)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;I=((v=v+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,v=Math.imul(Mt,Rt);var ot=(I+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;I=((v=v+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(I+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return I=((v=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,L[0]=sn,L[1]=Ui,L[2]=Di,L[3]=Xi,L[4]=Ke,L[5]=_t,L[6]=ve,L[7]=qe,L[8]=yt,L[9]=fe,L[10]=Je,L[11]=St,L[12]=Pt,L[13]=yi,L[14]=Ni,L[15]=Si,L[16]=qi,L[17]=ot,L[18]=Kt,0!==I&&(L[19]=I,p.length++),p};function j(b,i,a){return(new W).mulp(b,i,a)}function W(b,i){this.x=b,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function Z(b,i,a){a.negative=i.negative^b.negative,a.length=b.length+i.length;for(var p=0,u=0,_=0;_>>26)|0)>>>26,L&=67108863}a.words[_]=I,p=L,L=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u>=1;return u},W.prototype.permute=function(i,a,p,u,_,L){for(var I=0;I>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u

>>=13),_>>>=13;for(L=2*a;L>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(b){for(var i=new Array(b.bitLength()),a=0;a>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var L=0;for(_=0;_>>26-a}L&&(this.words[_]=L,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_=0),u=a?(a-a%26)/26:0;var _=i%26,L=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=L,u=Math.max(0,u),x){for(var r=0;rL)for(this.length-=L,r=0;r=0&&(0!==v||r>=u);r--){var G=0|this.words[r];this.words[r]=v<<26-_|G>>>_,v=G&I}return x&&0!==v&&(x.words[x.length++]=v),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return y(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<=0);var a=i%26,p=(i-a)/26;return y(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(y("number"==typeof i),y(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a>26)-(x/67108864|0),this.words[_+p]=67108863&L}for(;_>26,this.words[_+p]=67108863&L;if(0===I)return this.strip();for(y(-1===I),I=0,_=0;_>26,this.words[_]=67108863&L;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,L=0|_.words[_.length-1];0!=(p=26-this._countBits(L))&&(_=_.ushln(p),u.iushln(p),L=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var v=0;v=0;F--){var U=67108864*(0|u.words[_.length+F])+(0|u.words[_.length+F-1]);for(U=Math.min(U/L|0,67108863),u._ishlnsubmul(_,U,F);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,F),u.isZero()||(u.negative^=1);r&&(r.words[F]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return y(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(L=this.neg().divmod(i,a),"mod"!==a&&(u=L.div.neg()),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(L=this.divmod(i.neg(),a),"mod"!==a&&(u=L.div.neg()),{div:u,mod:L.mod}):0!=(this.negative&i.negative)?(L=this.neg().divmod(i.neg(),a),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:L.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,L},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),L=p.cmp(u);return L<0||1===_&&0===L?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){y(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){y(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){y(0===i.negative),y(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),L=new o(0),I=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),v=a.clone();!a.isZero();){for(var G=0,F=1;0==(a.words[0]&F)&&G<26;++G,F<<=1);if(G>0)for(a.iushrn(G);G-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(v)),u.iushrn(1),_.iushrn(1);for(var U=0,ye=1;0==(p.words[0]&ye)&&U<26;++U,ye<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(L.isOdd()||I.isOdd())&&(L.iadd(r),I.isub(v)),L.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(L),_.isub(I)):(p.isub(a),L.isub(u),I.isub(_))}return{a:L,b:I,gcd:p.iushln(x)}},o.prototype._invmp=function(i){y(0===i.negative),y(!i.isZero());var G,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),L=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var I=0,x=1;0==(a.words[0]&x)&&I<26;++I,x<<=1);if(I>0)for(a.iushrn(I);I-- >0;)u.isOdd()&&u.iadd(L),u.iushrn(1);for(var r=0,v=1;0==(p.words[0]&v)&&r<26;++r,v<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(L),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(G=0===a.cmpn(1)?u:_).cmpn(0)<0&&G.iadd(i),G},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var L=a;a=p,p=L}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){y("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<>>26,this.words[L]=I&=67108863}return 0!==_&&(this.words[L]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),y(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:ui.length)return 1;if(this.length=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new oe(i)},o.prototype.toRed=function(i){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return y(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return y(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ie={k256:null,p224:null,p192:null,p25519:null};function ee(b,i){this.name=b,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _e(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ce(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function oe(b){if("string"==typeof b){var i=o._prime(b);this.m=i.p,this.prime=i}else y(b.gtn(1),"modulus must be greater than 1"),this.m=b,this.prime=null}function ae(b){oe.call(this,b),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)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(_e,ee),_e.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_>>22,L=I}i.words[_-10]=L>>>=22,i.length-=0===L&&i.length>10?10:9},_e.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(ie[i])return ie[i];var a;if("k256"===i)a=new _e;else if("p224"===i)a=new ce;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return ie[i]=a,a},oe.prototype._verify1=function(i){y(0===i.negative,"red works only with positives"),y(i.red,"red works only with red numbers")},oe.prototype._verify2=function(i,a){y(0==(i.negative|a.negative),"red works only with positives"),y(i.red&&i.red===a.red,"red works only with red numbers")},oe.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},oe.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},oe.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},oe.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},oe.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},oe.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},oe.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},oe.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},oe.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},oe.prototype.isqr=function(i){return this.imul(i,i.clone())},oe.prototype.sqr=function(i){return this.mul(i,i)},oe.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(y(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);y(!u.isZero());var L=new o(1).toRed(this),I=L.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(I);)r.redIAdd(I);for(var v=this.pow(r,u),G=this.pow(i,u.addn(1).iushrn(1)),F=this.pow(i,u),U=_;0!==F.cmp(L);){for(var ye=F,Ce=0;0!==ye.cmp(L);Ce++)ye=ye.redSqr();y(Ce=0;_--){for(var v=a.words[_],G=r-1;G>=0;G--){var F=v>>G&1;L!==u[0]&&(L=this.sqr(L)),0!==F||0!==I?(I<<=1,I|=F,(4==++x||0===_&&0===G)&&(L=this.mul(L,u[I]),x=0,I=0)):x=0}r=26}return L},oe.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},oe.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new ae(i)},C(ae,oe),ae.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ae.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},ae.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},ae.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},ae.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ve=m.nmd(Ve),this)},8419:Ve=>{"use strict";Ve.exports=function(m){for(var e=[],t=m.length,y=0;y=55296&&C<=56319&&t>y+1){var o=m.charCodeAt(y+1);o>=56320&&o<=57343&&(C=1024*(C-55296)+o-56320+65536,y+=1)}C<128?e.push(C):C<2048?(e.push(C>>6|192),e.push(63&C|128)):C<55296||C>=57344&&C<65536?(e.push(C>>12|224),e.push(C>>6&63|128),e.push(63&C|128)):C>=65536&&C<=1114111?(e.push(C>>18|240),e.push(C>>12&63|128),e.push(C>>6&63|128),e.push(63&C|128)):e.push(239,191,189)}return new Uint8Array(e).buffer}},9069:Ve=>{"use strict";var e,Q="object"==typeof Reflect?Reflect:null,m=Q&&"function"==typeof Q.apply?Q.apply:function(ee,_e,ce){return Function.prototype.apply.call(ee,_e,ce)};e=Q&&"function"==typeof Q.ownKeys?Q.ownKeys:Object.getOwnPropertySymbols?function(ee){return Object.getOwnPropertyNames(ee).concat(Object.getOwnPropertySymbols(ee))}:function(ee){return Object.getOwnPropertyNames(ee)};var y=Number.isNaN||function(ee){return ee!=ee};function C(){C.init.call(this)}Ve.exports=C,Ve.exports.once=function Z(ie,ee){return new Promise(function(_e,ce){function re(oe){ie.removeListener(ee,de),ce(oe)}function de(){"function"==typeof ie.removeListener&&ie.removeListener("error",re),_e([].slice.call(arguments))}W(ie,ee,de,{once:!0}),"error"!==ee&&function j(ie,ee,_e){"function"==typeof ie.on&&W(ie,"error",ee,_e)}(ie,re,{once:!0})})},C.EventEmitter=C,C.prototype._events=void 0,C.prototype._eventsCount=0,C.prototype._maxListeners=void 0;var o=10;function M(ie){if("function"!=typeof ie)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ie)}function l(ie){return void 0===ie._maxListeners?C.defaultMaxListeners:ie._maxListeners}function N(ie,ee,_e,ce){var re,de,oe;if(M(_e),void 0===(de=ie._events)?(de=ie._events=Object.create(null),ie._eventsCount=0):(void 0!==de.newListener&&(ie.emit("newListener",ee,_e.listener?_e.listener:_e),de=ie._events),oe=de[ee]),void 0===oe)oe=de[ee]=_e,++ie._eventsCount;else if("function"==typeof oe?oe=de[ee]=ce?[_e,oe]:[oe,_e]:ce?oe.unshift(_e):oe.push(_e),(re=l(ie))>0&&oe.length>re&&!oe.warned){oe.warned=!0;var ae=new Error("Possible EventEmitter memory leak detected. "+oe.length+" "+String(ee)+" listeners added. Use emitter.setMaxListeners() to increase limit");ae.name="MaxListenersExceededWarning",ae.emitter=ie,ae.type=ee,ae.count=oe.length,function t(ie){console&&console.warn&&console.warn(ie)}(ae)}return ie}function s(){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 D(ie,ee,_e){var ce={fired:!1,wrapFn:void 0,target:ie,type:ee,listener:_e},re=s.bind(ce);return re.listener=_e,ce.wrapFn=re,re}function A(ie,ee,_e){var ce=ie._events;if(void 0===ce)return[];var re=ce[ee];return void 0===re?[]:"function"==typeof re?_e?[re.listener||re]:[re]:_e?function w(ie){for(var ee=new Array(ie.length),_e=0;_e0&&(oe=_e[0]),oe instanceof Error)throw oe;var ae=new Error("Unhandled error."+(oe?" ("+oe.message+")":""));throw ae.context=oe,ae}var b=de[ee];if(void 0===b)return!1;if("function"==typeof b)m(b,this,_e);else{var i=b.length,a=E(b,i);for(ce=0;ce=0;oe--)if(ce[oe]===_e||ce[oe].listener===_e){ae=ce[oe].listener,de=oe;break}if(de<0)return this;0===de?ce.shift():function P(ie,ee){for(;ee+1=0;re--)this.removeListener(ee,_e[re]);return this},C.prototype.listeners=function(ee){return A(this,ee,!0)},C.prototype.rawListeners=function(ee){return A(this,ee,!1)},C.listenerCount=function(ie,ee){return"function"==typeof ie.listenerCount?ie.listenerCount(ee):O.call(ie,ee)},C.prototype.listenerCount=O,C.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},347:(Ve,Q,m)=>{var e=m(3502).Buffer,t=m(8095);Ve.exports=function y(C,o,M,l){if(e.isBuffer(C)||(C=e.from(C,"binary")),o&&(e.isBuffer(o)||(o=e.from(o,"binary")),8!==o.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var N=M/8,s=e.alloc(N),D=e.alloc(l||0),A=e.alloc(0);N>0||l>0;){var O=new t;O.update(A),O.update(C),o&&O.update(o),A=O.digest();var E=0;if(N>0){var P=s.length-N;E=Math.min(N,A.length),A.copy(s,P,0,E),N-=E}if(E0){var w=D.length-l,Z=Math.min(l,A.length-E);A.copy(D,w,E,E+Z),l-=Z}}return A.fill(0),{key:s,iv:D}}},9650:(Ve,Q,m)=>{"use strict";var e=m(8444).Buffer,t=m(5685).Transform;function o(M){t.call(this),this._block=e.allocUnsafe(M),this._blockSize=M,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}m(3894)(o,t),o.prototype._transform=function(M,l,N){var s=null;try{this.update(M,l)}catch(D){s=D}N(s)},o.prototype._flush=function(M){var l=null;try{this.push(this.digest())}catch(N){l=N}M(l)},o.prototype.update=function(M,l){if(function C(M,l){if(!e.isBuffer(M)&&"string"!=typeof M)throw new TypeError(l+" must be a string or a buffer")}(M,"Data"),this._finalized)throw new Error("Digest already called");e.isBuffer(M)||(M=e.from(M,l));for(var N=this._block,s=0;this._blockOffset+M.length-s>=this._blockSize;){for(var D=this._blockOffset;D0;++A)this._length[A]+=O,(O=this._length[A]/4294967296|0)>0&&(this._length[A]-=4294967296*O);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(M){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var l=this._digest();void 0!==M&&(l=l.toString(M)),this._block.fill(0),this._blockOffset=0;for(var N=0;N<4;++N)this._length[N]=0;return l},o.prototype._digest=function(){throw new Error("_digest is not implemented")},Ve.exports=o},8444:(Ve,Q,m)=>{var e=m(3172),t=e.Buffer;function y(o,M){for(var l in o)M[l]=o[l]}function C(o,M,l){return t(o,M,l)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?Ve.exports=e:(y(e,Q),Q.Buffer=C),C.prototype=Object.create(t.prototype),y(t,C),C.from=function(o,M,l){if("number"==typeof o)throw new TypeError("Argument must not be a number");return t(o,M,l)},C.alloc=function(o,M,l){if("number"!=typeof o)throw new TypeError("Argument must be a number");var N=t(o);return void 0!==M?"string"==typeof l?N.fill(M,l):N.fill(M):N.fill(0),N},C.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return t(o)},C.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return e.SlowBuffer(o)}},7084:(Ve,Q,m)=>{var e=Q;e.utils=m(9299),e.common=m(3800),e.sha=m(4962),e.ripemd=m(9458),e.hmac=m(2194),e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160},3800:(Ve,Q,m)=>{"use strict";var e=m(9299),t=m(2391);function y(){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=y,y.prototype.update=function(o,M){if(o=e.toArray(o,M),this.pending=this.pending?this.pending.concat(o):o,this.pendingTotal+=o.length,this.pending.length>=this._delta8){var l=(o=this.pending).length%this._delta8;this.pending=o.slice(o.length-l,o.length),0===this.pending.length&&(this.pending=null),o=e.join32(o,0,o.length-l,this.endian);for(var N=0;N>>24&255,N[s++]=o>>>16&255,N[s++]=o>>>8&255,N[s++]=255&o}else for(N[s++]=255&o,N[s++]=o>>>8&255,N[s++]=o>>>16&255,N[s++]=o>>>24&255,N[s++]=0,N[s++]=0,N[s++]=0,N[s++]=0,D=8;D{"use strict";var e=m(9299),t=m(2391);function y(C,o,M){if(!(this instanceof y))return new y(C,o,M);this.Hash=C,this.blockSize=C.blockSize/8,this.outSize=C.outSize/8,this.inner=null,this.outer=null,this._init(e.toArray(o,M))}Ve.exports=y,y.prototype._init=function(o){o.length>this.blockSize&&(o=(new this.Hash).update(o).digest()),t(o.length<=this.blockSize);for(var M=o.length;M{"use strict";var e=m(9299),t=m(3800),y=e.rotl32,C=e.sum32,o=e.sum32_3,M=e.sum32_4,l=t.BlockHash;function N(){if(!(this instanceof N))return new N;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function s(Z,j,W,ie){return Z<=15?j^W^ie:Z<=31?j&W|~j&ie:Z<=47?(j|~W)^ie:Z<=63?j&ie|W&~ie:j^(W|~ie)}function A(Z){return Z<=15?1352829926:Z<=31?1548603684:Z<=47?1836072691:Z<=63?2053994217:0}e.inherits(N,l),Q.ripemd160=N,N.blockSize=512,N.outSize=160,N.hmacStrength=192,N.padLength=64,N.prototype._update=function(j,W){for(var ie=this.h[0],ee=this.h[1],_e=this.h[2],ce=this.h[3],re=this.h[4],de=ie,oe=ee,ae=_e,b=ce,i=re,a=0;a<80;a++){var p=C(y(M(ie,s(a,ee,_e,ce),j[O[a]+W],(Z=a)<=15?0:Z<=31?1518500249:Z<=47?1859775393:Z<=63?2400959708:2840853838),P[a]),re);ie=re,re=ce,ce=y(_e,10),_e=ee,ee=p,p=C(y(M(de,s(79-a,oe,ae,b),j[E[a]+W],A(a)),w[a]),i),de=i,i=b,b=y(ae,10),ae=oe,oe=p}var Z;p=o(this.h[1],_e,b),this.h[1]=o(this.h[2],ce,i),this.h[2]=o(this.h[3],re,de),this.h[3]=o(this.h[4],ie,oe),this.h[4]=o(this.h[0],ee,ae),this.h[0]=p},N.prototype._digest=function(j){return"hex"===j?e.toHex32(this.h,"little"):e.split32(this.h,"little")};var 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],P=[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],w=[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]},4962:(Ve,Q,m)=>{"use strict";Q.sha1=m(9007),Q.sha224=m(55),Q.sha256=m(9342),Q.sha384=m(8634),Q.sha512=m(39)},9007:(Ve,Q,m)=>{"use strict";var e=m(9299),t=m(3800),y=m(3113),C=e.rotl32,o=e.sum32,M=e.sum32_5,l=y.ft_1,N=t.BlockHash,s=[1518500249,1859775393,2400959708,3395469782];function D(){if(!(this instanceof D))return new D;N.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}e.inherits(D,N),Ve.exports=D,D.blockSize=512,D.outSize=160,D.hmacStrength=80,D.padLength=64,D.prototype._update=function(O,E){for(var P=this.W,w=0;w<16;w++)P[w]=O[E+w];for(;w{"use strict";var e=m(9299),t=m(9342);function y(){if(!(this instanceof y))return new y;t.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}e.inherits(y,t),Ve.exports=y,y.blockSize=512,y.outSize=224,y.hmacStrength=192,y.padLength=64,y.prototype._digest=function(o){return"hex"===o?e.toHex32(this.h.slice(0,7),"big"):e.split32(this.h.slice(0,7),"big")}},9342:(Ve,Q,m)=>{"use strict";var e=m(9299),t=m(3800),y=m(3113),C=m(2391),o=e.sum32,M=e.sum32_4,l=e.sum32_5,N=y.ch32,s=y.maj32,D=y.s0_256,A=y.s1_256,O=y.g0_256,E=y.g1_256,P=t.BlockHash,w=[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];function Z(){if(!(this instanceof Z))return new Z;P.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=w,this.W=new Array(64)}e.inherits(Z,P),Ve.exports=Z,Z.blockSize=512,Z.outSize=256,Z.hmacStrength=192,Z.padLength=64,Z.prototype._update=function(W,ie){for(var ee=this.W,_e=0;_e<16;_e++)ee[_e]=W[ie+_e];for(;_e{"use strict";var e=m(9299),t=m(39);function y(){if(!(this instanceof y))return new y;t.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}e.inherits(y,t),Ve.exports=y,y.blockSize=1024,y.outSize=384,y.hmacStrength=192,y.padLength=128,y.prototype._digest=function(o){return"hex"===o?e.toHex32(this.h.slice(0,12),"big"):e.split32(this.h.slice(0,12),"big")}},39:(Ve,Q,m)=>{"use strict";var e=m(9299),t=m(3800),y=m(2391),C=e.rotr64_hi,o=e.rotr64_lo,M=e.shr64_hi,l=e.shr64_lo,N=e.sum64,s=e.sum64_hi,D=e.sum64_lo,A=e.sum64_4_hi,O=e.sum64_4_lo,E=e.sum64_5_hi,P=e.sum64_5_lo,w=t.BlockHash,Z=[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];function j(){if(!(this instanceof j))return new j;w.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=Z,this.W=new Array(160)}function W(p,u,_,L,I){var x=p&_^~p&I;return x<0&&(x+=4294967296),x}function ie(p,u,_,L,I,x){var r=u&L^~u&x;return r<0&&(r+=4294967296),r}function ee(p,u,_,L,I){var x=p&_^p&I^_&I;return x<0&&(x+=4294967296),x}function _e(p,u,_,L,I,x){var r=u&L^u&x^L&x;return r<0&&(r+=4294967296),r}function ce(p,u){var x=C(p,u,28)^C(u,p,2)^C(u,p,7);return x<0&&(x+=4294967296),x}function re(p,u){var x=o(p,u,28)^o(u,p,2)^o(u,p,7);return x<0&&(x+=4294967296),x}function de(p,u){var x=C(p,u,14)^C(p,u,18)^C(u,p,9);return x<0&&(x+=4294967296),x}function oe(p,u){var x=o(p,u,14)^o(p,u,18)^o(u,p,9);return x<0&&(x+=4294967296),x}function ae(p,u){var x=C(p,u,1)^C(p,u,8)^M(p,u,7);return x<0&&(x+=4294967296),x}function b(p,u){var x=o(p,u,1)^o(p,u,8)^l(p,u,7);return x<0&&(x+=4294967296),x}function i(p,u){var x=C(p,u,19)^C(u,p,29)^M(p,u,6);return x<0&&(x+=4294967296),x}function a(p,u){var x=o(p,u,19)^o(u,p,29)^l(p,u,6);return x<0&&(x+=4294967296),x}e.inherits(j,w),Ve.exports=j,j.blockSize=1024,j.outSize=512,j.hmacStrength=192,j.padLength=128,j.prototype._prepareBlock=function(u,_){for(var L=this.W,I=0;I<32;I++)L[I]=u[_+I];for(;I{"use strict";var t=m(9299).rotr32;function C(A,O,E){return A&O^~A&E}function o(A,O,E){return A&O^A&E^O&E}function M(A,O,E){return A^O^E}Q.ft_1=function y(A,O,E,P){return 0===A?C(O,E,P):1===A||3===A?M(O,E,P):2===A?o(O,E,P):void 0},Q.ch32=C,Q.maj32=o,Q.p32=M,Q.s0_256=function l(A){return t(A,2)^t(A,13)^t(A,22)},Q.s1_256=function N(A){return t(A,6)^t(A,11)^t(A,25)},Q.g0_256=function s(A){return t(A,7)^t(A,18)^A>>>3},Q.g1_256=function D(A){return t(A,17)^t(A,19)^A>>>10}},9299:(Ve,Q,m)=>{"use strict";var e=m(2391),t=m(3894);function y(a,p){return!(55296!=(64512&a.charCodeAt(p))||p<0||p+1>=a.length)&&56320==(64512&a.charCodeAt(p+1))}function M(a){return(a>>>24|a>>>8&65280|a<<8&16711680|(255&a)<<24)>>>0}function N(a){return 1===a.length?"0"+a:a}function s(a){return 7===a.length?"0"+a:6===a.length?"00"+a:5===a.length?"000"+a:4===a.length?"0000"+a:3===a.length?"00000"+a:2===a.length?"000000"+a:1===a.length?"0000000"+a:a}Q.inherits=t,Q.toArray=function C(a,p){if(Array.isArray(a))return a.slice();if(!a)return[];var u=[];if("string"==typeof a)if(p){if("hex"===p)for((a=a.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(a="0"+a),L=0;L>6|192,u[_++]=63&I|128):y(a,L)?(I=65536+((1023&I)<<10)+(1023&a.charCodeAt(++L)),u[_++]=I>>18|240,u[_++]=I>>12&63|128,u[_++]=I>>6&63|128,u[_++]=63&I|128):(u[_++]=I>>12|224,u[_++]=I>>6&63|128,u[_++]=63&I|128)}else for(L=0;L>>0;return I},Q.split32=function A(a,p){for(var u=new Array(4*a.length),_=0,L=0;_>>24,u[L+1]=I>>>16&255,u[L+2]=I>>>8&255,u[L+3]=255&I):(u[L+3]=I>>>24,u[L+2]=I>>>16&255,u[L+1]=I>>>8&255,u[L]=255&I)}return u},Q.rotr32=function O(a,p){return a>>>p|a<<32-p},Q.rotl32=function E(a,p){return a<>>32-p},Q.sum32=function P(a,p){return a+p>>>0},Q.sum32_3=function w(a,p,u){return a+p+u>>>0},Q.sum32_4=function Z(a,p,u,_){return a+p+u+_>>>0},Q.sum32_5=function j(a,p,u,_,L){return a+p+u+_+L>>>0},Q.sum64=function W(a,p,u,_){var x=_+a[p+1]>>>0;a[p]=(x<_?1:0)+u+a[p]>>>0,a[p+1]=x},Q.sum64_hi=function ie(a,p,u,_){return(p+_>>>0>>0},Q.sum64_lo=function ee(a,p,u,_){return p+_>>>0},Q.sum64_4_hi=function _e(a,p,u,_,L,I,x,r){var v=0,G=p;return v+=(G=G+_>>>0)>>0)>>0)>>0},Q.sum64_4_lo=function ce(a,p,u,_,L,I,x,r){return p+_+I+r>>>0},Q.sum64_5_hi=function re(a,p,u,_,L,I,x,r,v,G){var F=0,U=p;return F+=(U=U+_>>>0)>>0)>>0)>>0)>>0},Q.sum64_5_lo=function de(a,p,u,_,L,I,x,r,v,G){return p+_+I+r+G>>>0},Q.rotr64_hi=function oe(a,p,u){return(p<<32-u|a>>>u)>>>0},Q.rotr64_lo=function ae(a,p,u){return(a<<32-u|p>>>u)>>>0},Q.shr64_hi=function b(a,p,u){return a>>>u},Q.shr64_lo=function i(a,p,u){return(a<<32-u|p>>>u)>>>0}},2438:(Ve,Q,m)=>{"use strict";var e=m(7084),t=m(8195),y=m(2391);function C(o){if(!(this instanceof C))return new C(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 M=t.toArray(o.entropy,o.entropyEnc||"hex"),l=t.toArray(o.nonce,o.nonceEnc||"hex"),N=t.toArray(o.pers,o.persEnc||"hex");y(M.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(M,l,N)}Ve.exports=C,C.prototype._init=function(M,l,N){var s=M.concat(l).concat(N);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var D=0;D=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(M.concat(N||[])),this._reseed=1},C.prototype.generate=function(M,l,N,s){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof l&&(s=N,N=l,l=null),N&&(N=t.toArray(N,s||"hex"),this._update(N));for(var D=[];D.length{Q.read=function(m,e,t,y,C){var o,M,l=8*C-y-1,N=(1<>1,D=-7,A=t?C-1:0,O=t?-1:1,E=m[e+A];for(A+=O,o=E&(1<<-D)-1,E>>=-D,D+=l;D>0;o=256*o+m[e+A],A+=O,D-=8);for(M=o&(1<<-D)-1,o>>=-D,D+=y;D>0;M=256*M+m[e+A],A+=O,D-=8);if(0===o)o=1-s;else{if(o===N)return M?NaN:1/0*(E?-1:1);M+=Math.pow(2,y),o-=s}return(E?-1:1)*M*Math.pow(2,o-y)},Q.write=function(m,e,t,y,C,o){var M,l,N,s=8*o-C-1,D=(1<>1,O=23===C?Math.pow(2,-24)-Math.pow(2,-77):0,E=y?0:o-1,P=y?1:-1,w=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,M=D):(M=Math.floor(Math.log(e)/Math.LN2),e*(N=Math.pow(2,-M))<1&&(M--,N*=2),(e+=M+A>=1?O/N:O*Math.pow(2,1-A))*N>=2&&(M++,N/=2),M+A>=D?(l=0,M=D):M+A>=1?(l=(e*N-1)*Math.pow(2,C),M+=A):(l=e*Math.pow(2,A-1)*Math.pow(2,C),M=0));C>=8;m[t+E]=255&l,E+=P,l/=256,C-=8);for(M=M<0;m[t+E]=255&M,E+=P,M/=256,s-=8);m[t+E-P]|=128*w}},3894:Ve=>{Ve.exports="function"==typeof Object.create?function(m,e){e&&(m.super_=e,m.prototype=Object.create(e.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}))}:function(m,e){if(e){m.super_=e;var t=function(){};t.prototype=e.prototype,m.prototype=new t,m.prototype.constructor=m}}},717:(Ve,Q,m)=>{"use strict";var e=m(623);function t(y){return!0===e(y)&&"[object Object]"===Object.prototype.toString.call(y)}Ve.exports=function(C){var o,M;return!(!1===t(C)||(o=C.constructor,"function"!=typeof o)||(M=o.prototype,!1===t(M))||!1===M.hasOwnProperty("isPrototypeOf"))}},623:Ve=>{"use strict";Ve.exports=function(m){return null!=m&&"object"==typeof m&&!1===Array.isArray(m)}},2872:Ve=>{var Q=Object.prototype.toString;function m(s){return"function"==typeof s.constructor?s.constructor.name:null}Ve.exports=function(D){if(void 0===D)return"undefined";if(null===D)return"null";var A=typeof D;if("boolean"===A)return"boolean";if("string"===A)return"string";if("number"===A)return"number";if("symbol"===A)return"symbol";if("function"===A)return function o(s,D){return"GeneratorFunction"===m(s)}(D)?"generatorfunction":"function";if(function e(s){return Array.isArray?Array.isArray(s):s instanceof Array}(D))return"array";if(function N(s){return!(!s.constructor||"function"!=typeof s.constructor.isBuffer)&&s.constructor.isBuffer(s)}(D))return"buffer";if(function l(s){try{if("number"==typeof s.length&&"function"==typeof s.callee)return!0}catch(D){if(-1!==D.message.indexOf("callee"))return!0}return!1}(D))return"arguments";if(function y(s){return s instanceof Date||"function"==typeof s.toDateString&&"function"==typeof s.getDate&&"function"==typeof s.setDate}(D))return"date";if(function t(s){return s instanceof Error||"string"==typeof s.message&&s.constructor&&"number"==typeof s.constructor.stackTraceLimit}(D))return"error";if(function C(s){return s instanceof RegExp||"string"==typeof s.flags&&"boolean"==typeof s.ignoreCase&&"boolean"==typeof s.multiline&&"boolean"==typeof s.global}(D))return"regexp";switch(m(D)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function M(s){return"function"==typeof s.throw&&"function"==typeof s.return&&"function"==typeof s.next}(D))return"generator";switch(A=Q.call(D)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return A.slice(8,-1).toLowerCase().replace(/\s/g,"")}},8095:(Ve,Q,m)=>{"use strict";var e=m(3894),t=m(9650),y=m(3502).Buffer,C=new Array(16);function o(){t.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function M(A,O){return A<>>32-O}function l(A,O,E,P,w,Z,j){return M(A+(O&E|~O&P)+w+Z|0,j)+O|0}function N(A,O,E,P,w,Z,j){return M(A+(O&P|E&~P)+w+Z|0,j)+O|0}function s(A,O,E,P,w,Z,j){return M(A+(O^E^P)+w+Z|0,j)+O|0}function D(A,O,E,P,w,Z,j){return M(A+(E^(O|~P))+w+Z|0,j)+O|0}e(o,t),o.prototype._update=function(){for(var A=C,O=0;O<16;++O)A[O]=this._block.readInt32LE(4*O);var E=this._a,P=this._b,w=this._c,Z=this._d;E=l(E,P,w,Z,A[0],3614090360,7),Z=l(Z,E,P,w,A[1],3905402710,12),w=l(w,Z,E,P,A[2],606105819,17),P=l(P,w,Z,E,A[3],3250441966,22),E=l(E,P,w,Z,A[4],4118548399,7),Z=l(Z,E,P,w,A[5],1200080426,12),w=l(w,Z,E,P,A[6],2821735955,17),P=l(P,w,Z,E,A[7],4249261313,22),E=l(E,P,w,Z,A[8],1770035416,7),Z=l(Z,E,P,w,A[9],2336552879,12),w=l(w,Z,E,P,A[10],4294925233,17),P=l(P,w,Z,E,A[11],2304563134,22),E=l(E,P,w,Z,A[12],1804603682,7),Z=l(Z,E,P,w,A[13],4254626195,12),w=l(w,Z,E,P,A[14],2792965006,17),E=N(E,P=l(P,w,Z,E,A[15],1236535329,22),w,Z,A[1],4129170786,5),Z=N(Z,E,P,w,A[6],3225465664,9),w=N(w,Z,E,P,A[11],643717713,14),P=N(P,w,Z,E,A[0],3921069994,20),E=N(E,P,w,Z,A[5],3593408605,5),Z=N(Z,E,P,w,A[10],38016083,9),w=N(w,Z,E,P,A[15],3634488961,14),P=N(P,w,Z,E,A[4],3889429448,20),E=N(E,P,w,Z,A[9],568446438,5),Z=N(Z,E,P,w,A[14],3275163606,9),w=N(w,Z,E,P,A[3],4107603335,14),P=N(P,w,Z,E,A[8],1163531501,20),E=N(E,P,w,Z,A[13],2850285829,5),Z=N(Z,E,P,w,A[2],4243563512,9),w=N(w,Z,E,P,A[7],1735328473,14),E=s(E,P=N(P,w,Z,E,A[12],2368359562,20),w,Z,A[5],4294588738,4),Z=s(Z,E,P,w,A[8],2272392833,11),w=s(w,Z,E,P,A[11],1839030562,16),P=s(P,w,Z,E,A[14],4259657740,23),E=s(E,P,w,Z,A[1],2763975236,4),Z=s(Z,E,P,w,A[4],1272893353,11),w=s(w,Z,E,P,A[7],4139469664,16),P=s(P,w,Z,E,A[10],3200236656,23),E=s(E,P,w,Z,A[13],681279174,4),Z=s(Z,E,P,w,A[0],3936430074,11),w=s(w,Z,E,P,A[3],3572445317,16),P=s(P,w,Z,E,A[6],76029189,23),E=s(E,P,w,Z,A[9],3654602809,4),Z=s(Z,E,P,w,A[12],3873151461,11),w=s(w,Z,E,P,A[15],530742520,16),E=D(E,P=s(P,w,Z,E,A[2],3299628645,23),w,Z,A[0],4096336452,6),Z=D(Z,E,P,w,A[7],1126891415,10),w=D(w,Z,E,P,A[14],2878612391,15),P=D(P,w,Z,E,A[5],4237533241,21),E=D(E,P,w,Z,A[12],1700485571,6),Z=D(Z,E,P,w,A[3],2399980690,10),w=D(w,Z,E,P,A[10],4293915773,15),P=D(P,w,Z,E,A[1],2240044497,21),E=D(E,P,w,Z,A[8],1873313359,6),Z=D(Z,E,P,w,A[15],4264355552,10),w=D(w,Z,E,P,A[6],2734768916,15),P=D(P,w,Z,E,A[13],1309151649,21),E=D(E,P,w,Z,A[4],4149444226,6),Z=D(Z,E,P,w,A[11],3174756917,10),w=D(w,Z,E,P,A[2],718787259,15),P=D(P,w,Z,E,A[9],3951481745,21),this._a=this._a+E|0,this._b=this._b+P|0,this._c=this._c+w|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 A=y.allocUnsafe(16);return A.writeInt32LE(this._a,0),A.writeInt32LE(this._b,4),A.writeInt32LE(this._c,8),A.writeInt32LE(this._d,12),A},Ve.exports=o},7079:(Ve,Q,m)=>{var e=m(1378),t=m(7950);function y(C){this.rand=C||new t.Rand}Ve.exports=y,y.create=function(o){return new y(o)},y.prototype._randbelow=function(o){var M=o.bitLength(),l=Math.ceil(M/8);do{var N=new e(this.rand.generate(l))}while(N.cmp(o)>=0);return N},y.prototype._randrange=function(o,M){var l=M.sub(o);return o.add(this._randbelow(l))},y.prototype.test=function(o,M,l){var N=o.bitLength(),s=e.mont(o),D=new e(1).toRed(s);M||(M=Math.max(1,N/48|0));for(var A=o.subn(1),O=0;!A.testn(O);O++);for(var E=o.shrn(O),P=A.toRed(s);M>0;M--){var Z=this._randrange(new e(2),A);l&&l(Z);var j=Z.toRed(s).redPow(E);if(0!==j.cmp(D)&&0!==j.cmp(P)){for(var W=1;W0;M--){var P=this._randrange(new e(2),D),w=o.gcd(P);if(0!==w.cmpn(1))return w;var Z=P.toRed(N).redPow(O);if(0!==Z.cmp(s)&&0!==Z.cmp(E)){for(var j=1;j=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function N(b,i,a){var p=l(b,a);return a-1>=i&&(p|=l(b,a-1)<<4),p}function s(b,i,a,p){for(var u=0,_=Math.min(b.length,a),L=i;L<_;L++){var I=b.charCodeAt(L)-48;u*=p,u+=I>=49?I-49+10:I>=17?I-17+10:I}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),y(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(L=i[u]|i[u-1]<<8|i[u-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u=a;u-=2)I=N(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var L=i.length-p,I=L%u,x=Math.min(L,L-I)+p,r=0,v=p;v1&&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 D=["","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"],A=[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],O=[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 P(b,i,a){a.negative=i.negative^b.negative;var p=b.length+i.length|0;a.length=p,p=p-1|0;var u=0|b.words[0],_=0|i.words[0],L=u*_,x=L/67108864|0;a.words[0]=67108863&L;for(var r=1;r>>26,G=67108863&x,F=Math.min(r,i.length-1),U=Math.max(0,r-b.length+1);U<=F;U++)v+=(L=(u=0|b.words[r-U|0])*(_=0|i.words[U])+G)/67108864|0,G=67108863&L;a.words[r]=0|G,x=0|v}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,L=0;L>>24-u&16777215)||L!==this.length-1?D[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,L--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=A[i],v=O[i];p="";var G=this.clone();for(G.negative=0;!G.isZero();){var F=G.modn(v).toString(i);p=(G=G.idivn(v)).isZero()?F+p:D[r-F.length]+F+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}y(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return y(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);y(u<=_,"byte array longer than desired length"),y(_>0,"Requested array length <= 0"),this.strip();var x,r,L="le"===a,I=new i(_),v=this.clone();if(L){for(r=0;!v.isZero();r++)x=v.andln(255),v.iushrn(8),I[r]=x;for(;r<_;r++)I[r]=0}else{for(r=0;r<_-u;r++)I[r]=0;for(r=0;!v.isZero();r++)x=v.andln(255),v.iushrn(8),I[_-r-1]=x}return I},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;pi.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;ui.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){y("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){y("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<i.length?(p=this,u=i):(p=i,u=this);for(var _=0,L=0;L>>26;for(;0!==_&&L>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;Li.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var L=0,I=0;I<_.length;I++)L=(a=(0|u.words[I])-(0|_.words[I])+L)>>26,this.words[I]=67108863&a;for(;0!==L&&I>26,this.words[I]=67108863&a;if(0===L&&I>>13,ye=0|u[1],Ce=8191&ye,Be=ye>>>13,ze=0|u[2],Ie=8191&ze,K=ze>>>13,Me=0|u[3],we=8191&Me,z=Me>>>13,Ge=0|u[4],vt=8191&Ge,Re=Ge>>>13,Ne=0|u[5],he=8191&Ne,Le=Ne>>>13,ke=0|u[6],q=8191&ke,$=ke>>>13,le=0|u[7],xe=8191&le,Ue=le>>>13,lt=0|u[8],nt=8191<,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,Pi=0|_[2],ai=8191&Pi,hi=Pi>>>13,Ze=0|_[3],Ee=8191&Ze,Y=Ze>>>13,me=0|_[4],De=8191&me,et=me>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],Pe=8191&ct,Fe=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(I+(x=Math.imul(F,Ft))|0)+((8191&(r=(r=Math.imul(F,Vt))+Math.imul(U,Ft)|0))<<13)|0;I=((v=Math.imul(U,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(Ce,Ft),r=(r=Math.imul(Ce,Vt))+Math.imul(Be,Ft)|0,v=Math.imul(Be,Vt);var Ui=(I+(x=x+Math.imul(F,jt)|0)|0)+((8191&(r=(r=r+Math.imul(F,ei)|0)+Math.imul(U,jt)|0))<<13)|0;I=((v=v+Math.imul(U,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Ie,Ft),r=(r=Math.imul(Ie,Vt))+Math.imul(K,Ft)|0,v=Math.imul(K,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ei)|0)+Math.imul(Be,jt)|0,v=v+Math.imul(Be,ei)|0;var Di=(I+(x=x+Math.imul(F,ai)|0)|0)+((8191&(r=(r=r+Math.imul(F,hi)|0)+Math.imul(U,ai)|0))<<13)|0;I=((v=v+Math.imul(U,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Ft),r=(r=Math.imul(we,Vt))+Math.imul(z,Ft)|0,v=Math.imul(z,Vt),x=x+Math.imul(Ie,jt)|0,r=(r=r+Math.imul(Ie,ei)|0)+Math.imul(K,jt)|0,v=v+Math.imul(K,ei)|0,x=x+Math.imul(Ce,ai)|0,r=(r=r+Math.imul(Ce,hi)|0)+Math.imul(Be,ai)|0,v=v+Math.imul(Be,hi)|0;var Xi=(I+(x=x+Math.imul(F,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(F,Y)|0)+Math.imul(U,Ee)|0))<<13)|0;I=((v=v+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Re,Ft)|0,v=Math.imul(Re,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ei)|0)+Math.imul(z,jt)|0,v=v+Math.imul(z,ei)|0,x=x+Math.imul(Ie,ai)|0,r=(r=r+Math.imul(Ie,hi)|0)+Math.imul(K,ai)|0,v=v+Math.imul(K,hi)|0,x=x+Math.imul(Ce,Ee)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Be,Ee)|0,v=v+Math.imul(Be,Y)|0;var Ke=(I+(x=x+Math.imul(F,De)|0)|0)+((8191&(r=(r=r+Math.imul(F,et)|0)+Math.imul(U,De)|0))<<13)|0;I=((v=v+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(he,Ft),r=(r=Math.imul(he,Vt))+Math.imul(Le,Ft)|0,v=Math.imul(Le,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Re,jt)|0,v=v+Math.imul(Re,ei)|0,x=x+Math.imul(we,ai)|0,r=(r=r+Math.imul(we,hi)|0)+Math.imul(z,ai)|0,v=v+Math.imul(z,hi)|0,x=x+Math.imul(Ie,Ee)|0,r=(r=r+Math.imul(Ie,Y)|0)+Math.imul(K,Ee)|0,v=v+Math.imul(K,Y)|0,x=x+Math.imul(Ce,De)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Be,De)|0,v=v+Math.imul(Be,et)|0;var _t=(I+(x=x+Math.imul(F,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Jt)|0)+Math.imul(U,Nt)|0))<<13)|0;I=((v=v+Math.imul(U,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,v=Math.imul($,Vt),x=x+Math.imul(he,jt)|0,r=(r=r+Math.imul(he,ei)|0)+Math.imul(Le,jt)|0,v=v+Math.imul(Le,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Re,ai)|0,v=v+Math.imul(Re,hi)|0,x=x+Math.imul(we,Ee)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(z,Ee)|0,v=v+Math.imul(z,Y)|0,x=x+Math.imul(Ie,De)|0,r=(r=r+Math.imul(Ie,et)|0)+Math.imul(K,De)|0,v=v+Math.imul(K,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Jt)|0)+Math.imul(Be,Nt)|0,v=v+Math.imul(Be,Jt)|0;var ve=(I+(x=x+Math.imul(F,Pe)|0)|0)+((8191&(r=(r=r+Math.imul(F,Fe)|0)+Math.imul(U,Pe)|0))<<13)|0;I=((v=v+Math.imul(U,Fe)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,x=Math.imul(xe,Ft),r=(r=Math.imul(xe,Vt))+Math.imul(Ue,Ft)|0,v=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,v=v+Math.imul($,ei)|0,x=x+Math.imul(he,ai)|0,r=(r=r+Math.imul(he,hi)|0)+Math.imul(Le,ai)|0,v=v+Math.imul(Le,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Re,Ee)|0,v=v+Math.imul(Re,Y)|0,x=x+Math.imul(we,De)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(z,De)|0,v=v+Math.imul(z,et)|0,x=x+Math.imul(Ie,Nt)|0,r=(r=r+Math.imul(Ie,Jt)|0)+Math.imul(K,Nt)|0,v=v+Math.imul(K,Jt)|0,x=x+Math.imul(Ce,Pe)|0,r=(r=r+Math.imul(Ce,Fe)|0)+Math.imul(Be,Pe)|0,v=v+Math.imul(Be,Fe)|0;var qe=(I+(x=x+Math.imul(F,st)|0)|0)+((8191&(r=(r=r+Math.imul(F,At)|0)+Math.imul(U,st)|0))<<13)|0;I=((v=v+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,v=Math.imul(ft,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ei)|0)+Math.imul(Ue,jt)|0,v=v+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,v=v+Math.imul($,hi)|0,x=x+Math.imul(he,Ee)|0,r=(r=r+Math.imul(he,Y)|0)+Math.imul(Le,Ee)|0,v=v+Math.imul(Le,Y)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Re,De)|0,v=v+Math.imul(Re,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Jt)|0)+Math.imul(z,Nt)|0,v=v+Math.imul(z,Jt)|0,x=x+Math.imul(Ie,Pe)|0,r=(r=r+Math.imul(Ie,Fe)|0)+Math.imul(K,Pe)|0,v=v+Math.imul(K,Fe)|0,x=x+Math.imul(Ce,st)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Be,st)|0,v=v+Math.imul(Be,At)|0;var yt=(I+(x=x+Math.imul(F,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Rt)|0)+Math.imul(U,Bt)|0))<<13)|0;I=((v=v+Math.imul(U,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,v=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,v=v+Math.imul(ft,ei)|0,x=x+Math.imul(xe,ai)|0,r=(r=r+Math.imul(xe,hi)|0)+Math.imul(Ue,ai)|0,v=v+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul($,Ee)|0,v=v+Math.imul($,Y)|0,x=x+Math.imul(he,De)|0,r=(r=r+Math.imul(he,et)|0)+Math.imul(Le,De)|0,v=v+Math.imul(Le,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Re,Nt)|0,v=v+Math.imul(Re,Jt)|0,x=x+Math.imul(we,Pe)|0,r=(r=r+Math.imul(we,Fe)|0)+Math.imul(z,Pe)|0,v=v+Math.imul(z,Fe)|0,x=x+Math.imul(Ie,st)|0,r=(r=r+Math.imul(Ie,At)|0)+Math.imul(K,st)|0,v=v+Math.imul(K,At)|0,x=x+Math.imul(Ce,Bt)|0,r=(r=r+Math.imul(Ce,Rt)|0)+Math.imul(Be,Bt)|0,v=v+Math.imul(Be,Rt)|0;var fe=(I+(x=x+Math.imul(F,si)|0)|0)+((8191&(r=(r=r+Math.imul(F,ci)|0)+Math.imul(U,si)|0))<<13)|0;I=((v=v+Math.imul(U,ci)|0)+(r>>>13)|0)+(fe>>>26)|0,fe&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,v=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,v=v+Math.imul(ft,hi)|0,x=x+Math.imul(xe,Ee)|0,r=(r=r+Math.imul(xe,Y)|0)+Math.imul(Ue,Ee)|0,v=v+Math.imul(Ue,Y)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,v=v+Math.imul($,et)|0,x=x+Math.imul(he,Nt)|0,r=(r=r+Math.imul(he,Jt)|0)+Math.imul(Le,Nt)|0,v=v+Math.imul(Le,Jt)|0,x=x+Math.imul(vt,Pe)|0,r=(r=r+Math.imul(vt,Fe)|0)+Math.imul(Re,Pe)|0,v=v+Math.imul(Re,Fe)|0,x=x+Math.imul(we,st)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(z,st)|0,v=v+Math.imul(z,At)|0,x=x+Math.imul(Ie,Bt)|0,r=(r=r+Math.imul(Ie,Rt)|0)+Math.imul(K,Bt)|0,v=v+Math.imul(K,Rt)|0;var Je=(I+(x=x+Math.imul(Ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Be,si)|0))<<13)|0;I=((v=v+Math.imul(Be,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,v=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,Y)|0)+Math.imul(ft,Ee)|0,v=v+Math.imul(ft,Y)|0,x=x+Math.imul(xe,De)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Ue,De)|0,v=v+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,v=v+Math.imul($,Jt)|0,x=x+Math.imul(he,Pe)|0,r=(r=r+Math.imul(he,Fe)|0)+Math.imul(Le,Pe)|0,v=v+Math.imul(Le,Fe)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Re,st)|0,v=v+Math.imul(Re,At)|0,x=x+Math.imul(we,Bt)|0,r=(r=r+Math.imul(we,Rt)|0)+Math.imul(z,Bt)|0,v=v+Math.imul(z,Rt)|0;var St=(I+(x=x+Math.imul(Ie,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ie,ci)|0)+Math.imul(K,si)|0))<<13)|0;I=((v=v+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,Y))+Math.imul(Mt,Ee)|0,v=Math.imul(Mt,Y),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,v=v+Math.imul(ft,et)|0,x=x+Math.imul(xe,Nt)|0,r=(r=r+Math.imul(xe,Jt)|0)+Math.imul(Ue,Nt)|0,v=v+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,Pe)|0,r=(r=r+Math.imul(q,Fe)|0)+Math.imul($,Pe)|0,v=v+Math.imul($,Fe)|0,x=x+Math.imul(he,st)|0,r=(r=r+Math.imul(he,At)|0)+Math.imul(Le,st)|0,v=v+Math.imul(Le,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Re,Bt)|0,v=v+Math.imul(Re,Rt)|0;var Pt=(I+(x=x+Math.imul(we,si)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(z,si)|0))<<13)|0;I=((v=v+Math.imul(z,ci)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,v=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,v=v+Math.imul(ft,Jt)|0,x=x+Math.imul(xe,Pe)|0,r=(r=r+Math.imul(xe,Fe)|0)+Math.imul(Ue,Pe)|0,v=v+Math.imul(Ue,Fe)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,v=v+Math.imul($,At)|0,x=x+Math.imul(he,Bt)|0,r=(r=r+Math.imul(he,Rt)|0)+Math.imul(Le,Bt)|0,v=v+Math.imul(Le,Rt)|0;var yi=(I+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Re,si)|0))<<13)|0;I=((v=v+Math.imul(Re,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,v=Math.imul(Mt,Jt),x=x+Math.imul(nt,Pe)|0,r=(r=r+Math.imul(nt,Fe)|0)+Math.imul(ft,Pe)|0,v=v+Math.imul(ft,Fe)|0,x=x+Math.imul(xe,st)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Ue,st)|0,v=v+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,v=v+Math.imul($,Rt)|0;var Ni=(I+(x=x+Math.imul(he,si)|0)|0)+((8191&(r=(r=r+Math.imul(he,ci)|0)+Math.imul(Le,si)|0))<<13)|0;I=((v=v+Math.imul(Le,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,Pe),r=(r=Math.imul(rt,Fe))+Math.imul(Mt,Pe)|0,v=Math.imul(Mt,Fe),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,v=v+Math.imul(ft,At)|0,x=x+Math.imul(xe,Bt)|0,r=(r=r+Math.imul(xe,Rt)|0)+Math.imul(Ue,Bt)|0,v=v+Math.imul(Ue,Rt)|0;var Si=(I+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;I=((v=v+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,v=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,v=v+Math.imul(ft,Rt)|0;var qi=(I+(x=x+Math.imul(xe,si)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;I=((v=v+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,v=Math.imul(Mt,Rt);var ot=(I+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;I=((v=v+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(I+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return I=((v=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,L[0]=sn,L[1]=Ui,L[2]=Di,L[3]=Xi,L[4]=Ke,L[5]=_t,L[6]=ve,L[7]=qe,L[8]=yt,L[9]=fe,L[10]=Je,L[11]=St,L[12]=Pt,L[13]=yi,L[14]=Ni,L[15]=Si,L[16]=qi,L[17]=ot,L[18]=Kt,0!==I&&(L[19]=I,p.length++),p};function j(b,i,a){return(new W).mulp(b,i,a)}function W(b,i){this.x=b,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function Z(b,i,a){a.negative=i.negative^b.negative,a.length=b.length+i.length;for(var p=0,u=0,_=0;_>>26)|0)>>>26,L&=67108863}a.words[_]=I,p=L,L=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u>=1;return u},W.prototype.permute=function(i,a,p,u,_,L){for(var I=0;I>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u

>>=13),_>>>=13;for(L=2*a;L>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(b){for(var i=new Array(b.bitLength()),a=0;a>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var L=0;for(_=0;_>>26-a}L&&(this.words[_]=L,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_=0),u=a?(a-a%26)/26:0;var _=i%26,L=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=L,u=Math.max(0,u),x){for(var r=0;rL)for(this.length-=L,r=0;r=0&&(0!==v||r>=u);r--){var G=0|this.words[r];this.words[r]=v<<26-_|G>>>_,v=G&I}return x&&0!==v&&(x.words[x.length++]=v),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return y(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<=0);var a=i%26,p=(i-a)/26;return y(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(y("number"==typeof i),y(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a>26)-(x/67108864|0),this.words[_+p]=67108863&L}for(;_>26,this.words[_+p]=67108863&L;if(0===I)return this.strip();for(y(-1===I),I=0,_=0;_>26,this.words[_]=67108863&L;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,L=0|_.words[_.length-1];0!=(p=26-this._countBits(L))&&(_=_.ushln(p),u.iushln(p),L=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var v=0;v=0;F--){var U=67108864*(0|u.words[_.length+F])+(0|u.words[_.length+F-1]);for(U=Math.min(U/L|0,67108863),u._ishlnsubmul(_,U,F);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,F),u.isZero()||(u.negative^=1);r&&(r.words[F]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return y(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(L=this.neg().divmod(i,a),"mod"!==a&&(u=L.div.neg()),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(L=this.divmod(i.neg(),a),"mod"!==a&&(u=L.div.neg()),{div:u,mod:L.mod}):0!=(this.negative&i.negative)?(L=this.neg().divmod(i.neg(),a),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:L.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,L},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),L=p.cmp(u);return L<0||1===_&&0===L?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){y(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){y(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){y(0===i.negative),y(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),L=new o(0),I=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),v=a.clone();!a.isZero();){for(var G=0,F=1;0==(a.words[0]&F)&&G<26;++G,F<<=1);if(G>0)for(a.iushrn(G);G-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(v)),u.iushrn(1),_.iushrn(1);for(var U=0,ye=1;0==(p.words[0]&ye)&&U<26;++U,ye<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(L.isOdd()||I.isOdd())&&(L.iadd(r),I.isub(v)),L.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(L),_.isub(I)):(p.isub(a),L.isub(u),I.isub(_))}return{a:L,b:I,gcd:p.iushln(x)}},o.prototype._invmp=function(i){y(0===i.negative),y(!i.isZero());var G,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),L=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var I=0,x=1;0==(a.words[0]&x)&&I<26;++I,x<<=1);if(I>0)for(a.iushrn(I);I-- >0;)u.isOdd()&&u.iadd(L),u.iushrn(1);for(var r=0,v=1;0==(p.words[0]&v)&&r<26;++r,v<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(L),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(G=0===a.cmpn(1)?u:_).cmpn(0)<0&&G.iadd(i),G},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var L=a;a=p,p=L}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){y("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<>>26,this.words[L]=I&=67108863}return 0!==_&&(this.words[L]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),y(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:ui.length)return 1;if(this.length=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new oe(i)},o.prototype.toRed=function(i){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return y(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return y(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ie={k256:null,p224:null,p192:null,p25519:null};function ee(b,i){this.name=b,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _e(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ce(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function oe(b){if("string"==typeof b){var i=o._prime(b);this.m=i.p,this.prime=i}else y(b.gtn(1),"modulus must be greater than 1"),this.m=b,this.prime=null}function ae(b){oe.call(this,b),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)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(_e,ee),_e.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_>>22,L=I}i.words[_-10]=L>>>=22,i.length-=0===L&&i.length>10?10:9},_e.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(ie[i])return ie[i];var a;if("k256"===i)a=new _e;else if("p224"===i)a=new ce;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return ie[i]=a,a},oe.prototype._verify1=function(i){y(0===i.negative,"red works only with positives"),y(i.red,"red works only with red numbers")},oe.prototype._verify2=function(i,a){y(0==(i.negative|a.negative),"red works only with positives"),y(i.red&&i.red===a.red,"red works only with red numbers")},oe.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},oe.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},oe.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},oe.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},oe.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},oe.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},oe.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},oe.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},oe.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},oe.prototype.isqr=function(i){return this.imul(i,i.clone())},oe.prototype.sqr=function(i){return this.mul(i,i)},oe.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(y(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);y(!u.isZero());var L=new o(1).toRed(this),I=L.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(I);)r.redIAdd(I);for(var v=this.pow(r,u),G=this.pow(i,u.addn(1).iushrn(1)),F=this.pow(i,u),U=_;0!==F.cmp(L);){for(var ye=F,Ce=0;0!==ye.cmp(L);Ce++)ye=ye.redSqr();y(Ce=0;_--){for(var v=a.words[_],G=r-1;G>=0;G--){var F=v>>G&1;L!==u[0]&&(L=this.sqr(L)),0!==F||0!==I?(I<<=1,I|=F,(4==++x||0===_&&0===G)&&(L=this.mul(L,u[I]),x=0,I=0)):x=0}r=26}return L},oe.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},oe.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new ae(i)},C(ae,oe),ae.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ae.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},ae.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},ae.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},ae.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ve=m.nmd(Ve),this)},2391:Ve=>{function Q(m,e){if(!m)throw new Error(e||"Assertion failed")}Ve.exports=Q,Q.equal=function(e,t,y){if(e!=t)throw new Error(y||"Assertion failed: "+e+" != "+t)}},8195:(Ve,Q)=>{"use strict";var m=Q;function t(C){return 1===C.length?"0"+C:C}function y(C){for(var o="",M=0;M>8,D=255&N;s?M.push(s,D):M.push(D)}return M},m.zero2=t,m.toHex=y,m.encode=function(o,M){return"hex"===M?y(o):o}},644:(Ve,Q,m)=>{"use strict";m.d(Q,{op:()=>Ze,$V:()=>et,Xd:()=>Jt});var e=m(7579),t=m(4968),C=(m(6451),m(3601)),o=m(2722),N=(m(1884),m(9718),m(5e3)),s=m(9808);function D(ct){return getComputedStyle(ct)}function A(ct,Pe){for(var Fe in Pe){var at=Pe[Fe];"number"==typeof at&&(at+="px"),ct.style[Fe]=at}return ct}function O(ct){var Pe=document.createElement("div");return Pe.className=ct,Pe}var E="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function P(ct,Pe){if(!E)throw new Error("No element matching method supported");return E.call(ct,Pe)}function w(ct){ct.remove?ct.remove():ct.parentNode&&ct.parentNode.removeChild(ct)}function Z(ct,Pe){return Array.prototype.filter.call(ct.children,function(Fe){return P(Fe,Pe)})}var j_element_thumb=function(ct){return"ps__thumb-"+ct},j_element_rail=function(ct){return"ps__rail-"+ct},j_element_consuming="ps__child--consume",j_state_focus="ps--focus",j_state_clicking="ps--clicking",j_state_active=function(ct){return"ps--active-"+ct},j_state_scrolling=function(ct){return"ps--scrolling-"+ct},W={x:null,y:null};function ie(ct,Pe){var Fe=ct.element.classList,at=j_state_scrolling(Pe);Fe.contains(at)?clearTimeout(W[Pe]):Fe.add(at)}function ee(ct,Pe){W[Pe]=setTimeout(function(){return ct.isAlive&&ct.element.classList.remove(j_state_scrolling(Pe))},ct.settings.scrollingThreshold)}var ce=function(Pe){this.element=Pe,this.handlers={}},re={isEmpty:{configurable:!0}};ce.prototype.bind=function(Pe,Fe){void 0===this.handlers[Pe]&&(this.handlers[Pe]=[]),this.handlers[Pe].push(Fe),this.element.addEventListener(Pe,Fe,!1)},ce.prototype.unbind=function(Pe,Fe){var at=this;this.handlers[Pe]=this.handlers[Pe].filter(function(st){return!(!Fe||st===Fe)||(at.element.removeEventListener(Pe,st,!1),!1)})},ce.prototype.unbindAll=function(){for(var Pe in this.handlers)this.unbind(Pe)},re.isEmpty.get=function(){var ct=this;return Object.keys(this.handlers).every(function(Pe){return 0===ct.handlers[Pe].length})},Object.defineProperties(ce.prototype,re);var de=function(){this.eventElements=[]};function oe(ct){if("function"==typeof window.CustomEvent)return new CustomEvent(ct);var Pe=document.createEvent("CustomEvent");return Pe.initCustomEvent(ct,!1,!1,void 0),Pe}function ae(ct,Pe,Fe,at,st){var At;if(void 0===at&&(at=!0),void 0===st&&(st=!1),"top"===Pe)At=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==Pe)throw new Error("A proper axis should be provided");At=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function b(ct,Pe,Fe,at,st){var At=Fe[0],li=Fe[1],Bt=Fe[2],Rt=Fe[3],Li=Fe[4],si=Fe[5];void 0===at&&(at=!0),void 0===st&&(st=!1);var ci=ct.element;ct.reach[Rt]=null,ci[Bt]<1&&(ct.reach[Rt]="start"),ci[Bt]>ct[At]-ct[li]-1&&(ct.reach[Rt]="end"),Pe&&(ci.dispatchEvent(oe("ps-scroll-"+Rt)),Pe<0?ci.dispatchEvent(oe("ps-scroll-"+Li)):Pe>0&&ci.dispatchEvent(oe("ps-scroll-"+si)),at&&function _e(ct,Pe){ie(ct,Pe),ee(ct,Pe)}(ct,Rt)),ct.reach[Rt]&&(Pe||st)&&ci.dispatchEvent(oe("ps-"+Rt+"-reach-"+ct.reach[Rt]))}(ct,Fe,At,at,st)}function i(ct){return parseInt(ct,10)||0}de.prototype.eventElement=function(Pe){var Fe=this.eventElements.filter(function(at){return at.element===Pe})[0];return Fe||(Fe=new ce(Pe),this.eventElements.push(Fe)),Fe},de.prototype.bind=function(Pe,Fe,at){this.eventElement(Pe).bind(Fe,at)},de.prototype.unbind=function(Pe,Fe,at){var st=this.eventElement(Pe);st.unbind(Fe,at),st.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(st),1)},de.prototype.unbindAll=function(){this.eventElements.forEach(function(Pe){return Pe.unbindAll()}),this.eventElements=[]},de.prototype.once=function(Pe,Fe,at){var st=this.eventElement(Pe),At=function(li){st.unbind(Fe,At),at(li)};st.bind(Fe,At)};var u={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function _(ct){var Pe=ct.element,Fe=Math.floor(Pe.scrollTop),at=Pe.getBoundingClientRect();ct.containerWidth=Math.ceil(at.width),ct.containerHeight=Math.ceil(at.height),ct.contentWidth=Pe.scrollWidth,ct.contentHeight=Pe.scrollHeight,Pe.contains(ct.scrollbarXRail)||(Z(Pe,j_element_rail("x")).forEach(function(st){return w(st)}),Pe.appendChild(ct.scrollbarXRail)),Pe.contains(ct.scrollbarYRail)||(Z(Pe,j_element_rail("y")).forEach(function(st){return w(st)}),Pe.appendChild(ct.scrollbarYRail)),!ct.settings.suppressScrollX&&ct.containerWidth+ct.settings.scrollXMarginOffset=ct.railXWidth-ct.scrollbarXWidth&&(ct.scrollbarXLeft=ct.railXWidth-ct.scrollbarXWidth),ct.scrollbarYTop>=ct.railYHeight-ct.scrollbarYHeight&&(ct.scrollbarYTop=ct.railYHeight-ct.scrollbarYHeight),function I(ct,Pe){var Fe={width:Pe.railXWidth},at=Math.floor(ct.scrollTop);Fe.left=Pe.isRtl?Pe.negativeScrollAdjustment+ct.scrollLeft+Pe.containerWidth-Pe.contentWidth:ct.scrollLeft,Pe.isScrollbarXUsingBottom?Fe.bottom=Pe.scrollbarXBottom-at:Fe.top=Pe.scrollbarXTop+at,A(Pe.scrollbarXRail,Fe);var st={top:at,height:Pe.railYHeight};Pe.isScrollbarYUsingRight?st.right=Pe.isRtl?Pe.contentWidth-(Pe.negativeScrollAdjustment+ct.scrollLeft)-Pe.scrollbarYRight-Pe.scrollbarYOuterWidth-9:Pe.scrollbarYRight-ct.scrollLeft:st.left=Pe.isRtl?Pe.negativeScrollAdjustment+ct.scrollLeft+2*Pe.containerWidth-Pe.contentWidth-Pe.scrollbarYLeft-Pe.scrollbarYOuterWidth:Pe.scrollbarYLeft+ct.scrollLeft,A(Pe.scrollbarYRail,st),A(Pe.scrollbarX,{left:Pe.scrollbarXLeft,width:Pe.scrollbarXWidth-Pe.railBorderXWidth}),A(Pe.scrollbarY,{top:Pe.scrollbarYTop,height:Pe.scrollbarYHeight-Pe.railBorderYWidth})}(Pe,ct),ct.scrollbarXActive?Pe.classList.add(j_state_active("x")):(Pe.classList.remove(j_state_active("x")),ct.scrollbarXWidth=0,ct.scrollbarXLeft=0,Pe.scrollLeft=!0===ct.isRtl?ct.contentWidth:0),ct.scrollbarYActive?Pe.classList.add(j_state_active("y")):(Pe.classList.remove(j_state_active("y")),ct.scrollbarYHeight=0,ct.scrollbarYTop=0,Pe.scrollTop=0)}function L(ct,Pe){return ct.settings.minScrollbarLength&&(Pe=Math.max(Pe,ct.settings.minScrollbarLength)),ct.settings.maxScrollbarLength&&(Pe=Math.min(Pe,ct.settings.maxScrollbarLength)),Pe}function v(ct,Pe){var Fe=Pe[0],at=Pe[1],st=Pe[2],At=Pe[3],li=Pe[4],Bt=Pe[5],Rt=Pe[6],Li=Pe[7],si=Pe[8],ci=ct.element,sn=null,Ui=null,Di=null;function Xi(ve){ve.touches&&ve.touches[0]&&(ve[st]=ve.touches[0].pageY),ci[Rt]=sn+Di*(ve[st]-Ui),ie(ct,Li),_(ct),ve.stopPropagation(),ve.preventDefault()}function Ke(){ee(ct,Li),ct[si].classList.remove(j_state_clicking),ct.event.unbind(ct.ownerDocument,"mousemove",Xi)}function _t(ve,qe){sn=ci[Rt],qe&&ve.touches&&(ve[st]=ve.touches[0].pageY),Ui=ve[st],Di=(ct[at]-ct[Fe])/(ct[At]-ct[Bt]),qe?ct.event.bind(ct.ownerDocument,"touchmove",Xi):(ct.event.bind(ct.ownerDocument,"mousemove",Xi),ct.event.once(ct.ownerDocument,"mouseup",Ke),ve.preventDefault()),ct[si].classList.add(j_state_clicking),ve.stopPropagation()}ct.event.bind(ct[li],"mousedown",function(ve){_t(ve)}),ct.event.bind(ct[li],"touchstart",function(ve){_t(ve,!0)})}var Ce={"click-rail":function x(ct){ct.event.bind(ct.scrollbarY,"mousedown",function(Fe){return Fe.stopPropagation()}),ct.event.bind(ct.scrollbarYRail,"mousedown",function(Fe){var at=Fe.pageY-window.pageYOffset-ct.scrollbarYRail.getBoundingClientRect().top;ct.element.scrollTop+=(at>ct.scrollbarYTop?1:-1)*ct.containerHeight,_(ct),Fe.stopPropagation()}),ct.event.bind(ct.scrollbarX,"mousedown",function(Fe){return Fe.stopPropagation()}),ct.event.bind(ct.scrollbarXRail,"mousedown",function(Fe){var at=Fe.pageX-window.pageXOffset-ct.scrollbarXRail.getBoundingClientRect().left;ct.element.scrollLeft+=(at>ct.scrollbarXLeft?1:-1)*ct.containerWidth,_(ct),Fe.stopPropagation()})},"drag-thumb":function r(ct){v(ct,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),v(ct,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function G(ct){var Pe=ct.element;ct.event.bind(ct.ownerDocument,"keydown",function(At){if(!(At.isDefaultPrevented&&At.isDefaultPrevented()||At.defaultPrevented)&&(P(Pe,":hover")||P(ct.scrollbarX,":focus")||P(ct.scrollbarY,":focus"))){var li=document.activeElement?document.activeElement:ct.ownerDocument.activeElement;if(li){if("IFRAME"===li.tagName)li=li.contentDocument.activeElement;else for(;li.shadowRoot;)li=li.shadowRoot.activeElement;if(function a(ct){return P(ct,"input,[contenteditable]")||P(ct,"select,[contenteditable]")||P(ct,"textarea,[contenteditable]")||P(ct,"button,[contenteditable]")}(li))return}var Bt=0,Rt=0;switch(At.which){case 37:Bt=At.metaKey?-ct.contentWidth:At.altKey?-ct.containerWidth:-30;break;case 38:Rt=At.metaKey?ct.contentHeight:At.altKey?ct.containerHeight:30;break;case 39:Bt=At.metaKey?ct.contentWidth:At.altKey?ct.containerWidth:30;break;case 40:Rt=At.metaKey?-ct.contentHeight:At.altKey?-ct.containerHeight:-30;break;case 32:Rt=At.shiftKey?ct.containerHeight:-ct.containerHeight;break;case 33:Rt=ct.containerHeight;break;case 34:Rt=-ct.containerHeight;break;case 36:Rt=ct.contentHeight;break;case 35:Rt=-ct.contentHeight;break;default:return}ct.settings.suppressScrollX&&0!==Bt||ct.settings.suppressScrollY&&0!==Rt||(Pe.scrollTop-=Rt,Pe.scrollLeft+=Bt,_(ct),function st(At,li){var Bt=Math.floor(Pe.scrollTop);if(0===At){if(!ct.scrollbarYActive)return!1;if(0===Bt&&li>0||Bt>=ct.contentHeight-ct.containerHeight&&li<0)return!ct.settings.wheelPropagation}var Rt=Pe.scrollLeft;if(0===li){if(!ct.scrollbarXActive)return!1;if(0===Rt&&At<0||Rt>=ct.contentWidth-ct.containerWidth&&At>0)return!ct.settings.wheelPropagation}return!0}(Bt,Rt)&&At.preventDefault())}})},wheel:function F(ct){var Pe=ct.element;function At(li){var Bt=function at(li){var Bt=li.deltaX,Rt=-1*li.deltaY;return(void 0===Bt||void 0===Rt)&&(Bt=-1*li.wheelDeltaX/6,Rt=li.wheelDeltaY/6),li.deltaMode&&1===li.deltaMode&&(Bt*=10,Rt*=10),Bt!=Bt&&Rt!=Rt&&(Bt=0,Rt=li.wheelDelta),li.shiftKey?[-Rt,-Bt]:[Bt,Rt]}(li),Rt=Bt[0],Li=Bt[1];if(!function st(li,Bt,Rt){if(!u.isWebKit&&Pe.querySelector("select:focus"))return!0;if(!Pe.contains(li))return!1;for(var Li=li;Li&&Li!==Pe;){if(Li.classList.contains(j_element_consuming))return!0;var si=D(Li);if(Rt&&si.overflowY.match(/(scroll|auto)/)){var ci=Li.scrollHeight-Li.clientHeight;if(ci>0&&(Li.scrollTop>0&&Rt<0||Li.scrollTop0))return!0}if(Bt&&si.overflowX.match(/(scroll|auto)/)){var sn=Li.scrollWidth-Li.clientWidth;if(sn>0&&(Li.scrollLeft>0&&Bt<0||Li.scrollLeft0))return!0}Li=Li.parentNode}return!1}(li.target,Rt,Li)){var si=!1;ct.settings.useBothWheelAxes?ct.scrollbarYActive&&!ct.scrollbarXActive?(Li?Pe.scrollTop-=Li*ct.settings.wheelSpeed:Pe.scrollTop+=Rt*ct.settings.wheelSpeed,si=!0):ct.scrollbarXActive&&!ct.scrollbarYActive&&(Rt?Pe.scrollLeft+=Rt*ct.settings.wheelSpeed:Pe.scrollLeft-=Li*ct.settings.wheelSpeed,si=!0):(Pe.scrollTop-=Li*ct.settings.wheelSpeed,Pe.scrollLeft+=Rt*ct.settings.wheelSpeed),_(ct),si=si||function Fe(li,Bt){var Rt=Math.floor(Pe.scrollTop),Li=0===Pe.scrollTop,si=Rt+Pe.offsetHeight===Pe.scrollHeight,ci=0===Pe.scrollLeft,sn=Pe.scrollLeft+Pe.offsetWidth===Pe.scrollWidth;return!(Math.abs(Bt)>Math.abs(li)?Li||si:ci||sn)||!ct.settings.wheelPropagation}(Rt,Li),si&&!li.ctrlKey&&(li.stopPropagation(),li.preventDefault())}}void 0!==window.onwheel?ct.event.bind(Pe,"wheel",At):void 0!==window.onmousewheel&&ct.event.bind(Pe,"mousewheel",At)},touch:function U(ct){if(u.supportsTouch||u.supportsIePointer){var Pe=ct.element,st={},At=0,li={},Bt=null;u.supportsTouch?(ct.event.bind(Pe,"touchstart",si),ct.event.bind(Pe,"touchmove",sn),ct.event.bind(Pe,"touchend",Ui)):u.supportsIePointer&&(window.PointerEvent?(ct.event.bind(Pe,"pointerdown",si),ct.event.bind(Pe,"pointermove",sn),ct.event.bind(Pe,"pointerup",Ui)):window.MSPointerEvent&&(ct.event.bind(Pe,"MSPointerDown",si),ct.event.bind(Pe,"MSPointerMove",sn),ct.event.bind(Pe,"MSPointerUp",Ui)))}function at(Di,Xi){Pe.scrollTop-=Xi,Pe.scrollLeft-=Di,_(ct)}function Rt(Di){return Di.targetTouches?Di.targetTouches[0]:Di}function Li(Di){return!(Di.pointerType&&"pen"===Di.pointerType&&0===Di.buttons||!(Di.targetTouches&&1===Di.targetTouches.length||Di.pointerType&&"mouse"!==Di.pointerType&&Di.pointerType!==Di.MSPOINTER_TYPE_MOUSE))}function si(Di){if(Li(Di)){var Xi=Rt(Di);st.pageX=Xi.pageX,st.pageY=Xi.pageY,At=(new Date).getTime(),null!==Bt&&clearInterval(Bt)}}function sn(Di){if(Li(Di)){var Xi=Rt(Di),Ke={pageX:Xi.pageX,pageY:Xi.pageY},_t=Ke.pageX-st.pageX,ve=Ke.pageY-st.pageY;if(function ci(Di,Xi,Ke){if(!Pe.contains(Di))return!1;for(var _t=Di;_t&&_t!==Pe;){if(_t.classList.contains(j_element_consuming))return!0;var ve=D(_t);if(Ke&&ve.overflowY.match(/(scroll|auto)/)){var qe=_t.scrollHeight-_t.clientHeight;if(qe>0&&(_t.scrollTop>0&&Ke<0||_t.scrollTop0))return!0}if(Xi&&ve.overflowX.match(/(scroll|auto)/)){var yt=_t.scrollWidth-_t.clientWidth;if(yt>0&&(_t.scrollLeft>0&&Xi<0||_t.scrollLeft0))return!0}_t=_t.parentNode}return!1}(Di.target,_t,ve))return;at(_t,ve),st=Ke;var qe=(new Date).getTime(),yt=qe-At;yt>0&&(li.x=_t/yt,li.y=ve/yt,At=qe),function Fe(Di,Xi){var Ke=Math.floor(Pe.scrollTop),_t=Pe.scrollLeft,ve=Math.abs(Di),qe=Math.abs(Xi);if(qe>ve){if(Xi<0&&Ke===ct.contentHeight-ct.containerHeight||Xi>0&&0===Ke)return 0===window.scrollY&&Xi>0&&u.isChrome}else if(ve>qe&&(Di<0&&_t===ct.contentWidth-ct.containerWidth||Di>0&&0===_t))return!0;return!0}(_t,ve)&&Di.preventDefault()}}function Ui(){ct.settings.swipeEasing&&(clearInterval(Bt),Bt=setInterval(function(){ct.isInitialized?clearInterval(Bt):li.x||li.y?Math.abs(li.x)<.01&&Math.abs(li.y)<.01?clearInterval(Bt):(at(30*li.x,30*li.y),li.x*=.8,li.y*=.8):clearInterval(Bt)},10))}}},Be=function(Pe,Fe){var at=this;if(void 0===Fe&&(Fe={}),"string"==typeof Pe&&(Pe=document.querySelector(Pe)),!Pe||!Pe.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var st in this.element=Pe,Pe.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},Fe)this.settings[st]=Fe[st];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var si,Li,At=function(){return Pe.classList.add(j_state_focus)},li=function(){return Pe.classList.remove(j_state_focus)};this.isRtl="rtl"===D(Pe).direction,!0===this.isRtl&&Pe.classList.add("ps__rtl"),this.isNegativeScroll=(Li=Pe.scrollLeft,Pe.scrollLeft=-1,si=Pe.scrollLeft<0,Pe.scrollLeft=Li,si),this.negativeScrollAdjustment=this.isNegativeScroll?Pe.scrollWidth-Pe.clientWidth:0,this.event=new de,this.ownerDocument=Pe.ownerDocument||document,this.scrollbarXRail=O(j_element_rail("x")),Pe.appendChild(this.scrollbarXRail),this.scrollbarX=O(j_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",At),this.event.bind(this.scrollbarX,"blur",li),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var Bt=D(this.scrollbarXRail);this.scrollbarXBottom=parseInt(Bt.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=i(Bt.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=i(Bt.borderLeftWidth)+i(Bt.borderRightWidth),A(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=i(Bt.marginLeft)+i(Bt.marginRight),A(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=O(j_element_rail("y")),Pe.appendChild(this.scrollbarYRail),this.scrollbarY=O(j_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",At),this.event.bind(this.scrollbarY,"blur",li),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var Rt=D(this.scrollbarYRail);this.scrollbarYRight=parseInt(Rt.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=i(Rt.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function p(ct){var Pe=D(ct);return i(Pe.width)+i(Pe.paddingLeft)+i(Pe.paddingRight)+i(Pe.borderLeftWidth)+i(Pe.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=i(Rt.borderTopWidth)+i(Rt.borderBottomWidth),A(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=i(Rt.marginTop)+i(Rt.marginBottom),A(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:Pe.scrollLeft<=0?"start":Pe.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:Pe.scrollTop<=0?"start":Pe.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(Li){return Ce[Li](at)}),this.lastScrollTop=Math.floor(Pe.scrollTop),this.lastScrollLeft=Pe.scrollLeft,this.event.bind(this.element,"scroll",function(Li){return at.onScroll(Li)}),_(this)};Be.prototype.update=function(){!this.isAlive||(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,A(this.scrollbarXRail,{display:"block"}),A(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=i(D(this.scrollbarXRail).marginLeft)+i(D(this.scrollbarXRail).marginRight),this.railYMarginHeight=i(D(this.scrollbarYRail).marginTop)+i(D(this.scrollbarYRail).marginBottom),A(this.scrollbarXRail,{display:"none"}),A(this.scrollbarYRail,{display:"none"}),_(this),ae(this,"top",0,!1,!0),ae(this,"left",0,!1,!0),A(this.scrollbarXRail,{display:""}),A(this.scrollbarYRail,{display:""}))},Be.prototype.onScroll=function(Pe){!this.isAlive||(_(this),ae(this,"top",this.element.scrollTop-this.lastScrollTop),ae(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Be.prototype.destroy=function(){!this.isAlive||(this.event.unbindAll(),w(this.scrollbarX),w(this.scrollbarY),w(this.scrollbarXRail),w(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Be.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(Pe){return!Pe.match(/^ps([-_].+|)$/)}).join(" ")};const ze=Be;var Ie=function(){if("undefined"!=typeof Map)return Map;function ct(Pe,Fe){var at=-1;return Pe.some(function(st,At){return st[0]===Fe&&(at=At,!0)}),at}return function(){function Pe(){this.__entries__=[]}return Object.defineProperty(Pe.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),Pe.prototype.get=function(Fe){var at=ct(this.__entries__,Fe),st=this.__entries__[at];return st&&st[1]},Pe.prototype.set=function(Fe,at){var st=ct(this.__entries__,Fe);~st?this.__entries__[st][1]=at:this.__entries__.push([Fe,at])},Pe.prototype.delete=function(Fe){var at=this.__entries__,st=ct(at,Fe);~st&&at.splice(st,1)},Pe.prototype.has=function(Fe){return!!~ct(this.__entries__,Fe)},Pe.prototype.clear=function(){this.__entries__.splice(0)},Pe.prototype.forEach=function(Fe,at){void 0===at&&(at=null);for(var st=0,At=this.__entries__;st0},ct.prototype.connect_=function(){!K||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ne?(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)},ct.prototype.disconnect_=function(){!K||!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)},ct.prototype.onTransitionEnd_=function(Pe){var Fe=Pe.propertyName,at=void 0===Fe?"":Fe;Re.some(function(At){return!!~at.indexOf(At)})&&this.refresh()},ct.getInstance=function(){return this.instance_||(this.instance_=new ct),this.instance_},ct.instance_=null,ct}(),Le=function(ct,Pe){for(var Fe=0,at=Object.keys(Pe);Fe0},ct}(),Ii="undefined"!=typeof WeakMap?new WeakMap:new Ie,jt=function ct(Pe){if(!(this instanceof ct))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var Fe=he.getInstance(),at=new Vt(Pe,Fe,this);Ii.set(this,at)};["observe","unobserve","disconnect"].forEach(function(ct){jt.prototype[ct]=function(){var Pe;return(Pe=Ii.get(this))[ct].apply(Pe,arguments)}});const Pi=void 0!==Me.ResizeObserver?Me.ResizeObserver:jt,Ze=new N.OlP("PERFECT_SCROLLBAR_CONFIG");class Ee{constructor(Pe,Fe,at,st){this.x=Pe,this.y=Fe,this.w=at,this.h=st}}class Y{constructor(Pe,Fe){this.x=Pe,this.y=Fe}}const me=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class De{constructor(Pe={}){this.assign(Pe)}assign(Pe={}){for(const Fe in Pe)this[Fe]=Pe[Fe]}}let et=(()=>{class ct{constructor(Fe,at,st,At,li){this.zone=Fe,this.differs=at,this.elementRef=st,this.platformId=At,this.defaults=li,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new e.x,this.disabled=!1,this.psScrollY=new N.vpe,this.psScrollX=new N.vpe,this.psScrollUp=new N.vpe,this.psScrollDown=new N.vpe,this.psScrollLeft=new N.vpe,this.psScrollRight=new N.vpe,this.psYReachEnd=new N.vpe,this.psYReachStart=new N.vpe,this.psXReachEnd=new N.vpe,this.psXReachStart=new N.vpe}ngOnInit(){if(!this.disabled&&(0,s.NF)(this.platformId)){const Fe=new De(this.defaults);Fe.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new ze(this.elementRef.nativeElement,Fe)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new Pi(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{me.forEach(at=>{const st=at.replace(/([A-Z])/g,At=>`-${At.toLowerCase()}`);(0,t.R)(this.elementRef.nativeElement,st).pipe((0,C.e)(20),(0,o.R)(this.ngDestroy)).subscribe(At=>{this[at].emit(At)})})})}}ngOnDestroy(){(0,s.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&(0,s.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(Fe){Fe.disabled&&!Fe.disabled.isFirstChange()&&(0,s.NF)(this.platformId)&&Fe.disabled.currentValue!==Fe.disabled.previousValue&&(!0===Fe.disabled.currentValue?this.ngOnDestroy():!1===Fe.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){"undefined"!=typeof window&&(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(Fe){}},0))}geometry(Fe="scroll"){return new Ee(this.elementRef.nativeElement[Fe+"Left"],this.elementRef.nativeElement[Fe+"Top"],this.elementRef.nativeElement[Fe+"Width"],this.elementRef.nativeElement[Fe+"Height"])}position(Fe=!1){return!Fe&&this.instance?new Y(this.instance.reach.x||0,this.instance.reach.y||0):new Y(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(Fe="any"){const at=this.elementRef.nativeElement;return"any"===Fe?at.classList.contains("ps--active-x")||at.classList.contains("ps--active-y"):"both"===Fe?at.classList.contains("ps--active-x")&&at.classList.contains("ps--active-y"):at.classList.contains("ps--active-"+Fe)}scrollTo(Fe,at,st){this.disabled||(null==at&&null==st?this.animateScrolling("scrollTop",Fe,st):(null!=Fe&&this.animateScrolling("scrollLeft",Fe,st),null!=at&&this.animateScrolling("scrollTop",at,st)))}scrollToX(Fe,at){this.animateScrolling("scrollLeft",Fe,at)}scrollToY(Fe,at){this.animateScrolling("scrollTop",Fe,at)}scrollToTop(Fe,at){this.animateScrolling("scrollTop",Fe||0,at)}scrollToLeft(Fe,at){this.animateScrolling("scrollLeft",Fe||0,at)}scrollToRight(Fe,at){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(Fe||0),at)}scrollToBottom(Fe,at){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(Fe||0),at)}scrollToElement(Fe,at,st){if("string"==typeof Fe&&(Fe=this.elementRef.nativeElement.querySelector(Fe)),Fe){const At=Fe.getBoundingClientRect(),li=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",At.left-li.left+this.elementRef.nativeElement.scrollLeft+(at||0),st),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",At.top-li.top+this.elementRef.nativeElement.scrollTop+(at||0),st)}}animateScrolling(Fe,at,st){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),st&&"undefined"!=typeof window){if(at!==this.elementRef.nativeElement[Fe]){let At=0,li=0,Bt=performance.now(),Rt=this.elementRef.nativeElement[Fe];const Li=(Rt-at)/2,si=ci=>{li+=Math.PI/(st/(ci-Bt)),At=Math.round(at+Li+Li*Math.cos(li)),this.elementRef.nativeElement[Fe]===Rt&&(li>=Math.PI?this.animateScrolling(Fe,at,0):(this.elementRef.nativeElement[Fe]=At,Rt=this.elementRef.nativeElement[Fe],Bt=ci,this.animation=window.requestAnimationFrame(si)))};window.requestAnimationFrame(si)}}else this.elementRef.nativeElement[Fe]=at}}return ct.\u0275fac=function(Fe){return new(Fe||ct)(N.Y36(N.R0b),N.Y36(N.aQg),N.Y36(N.SBq),N.Y36(N.Lbi),N.Y36(Ze,8))},ct.\u0275dir=N.lG2({type:ct,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["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"],features:[N.TTD]}),ct})(),Jt=(()=>{class ct{}return ct.\u0275fac=function(Fe){return new(Fe||ct)},ct.\u0275mod=N.oAB({type:ct}),ct.\u0275inj=N.cJS({imports:[[s.ez],s.ez]}),ct})()},5768:(Ve,Q,m)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var e=m(842);Object.keys(e).forEach(function(t){"default"!==t&&Object.defineProperty(Q,t,{enumerable:!0,get:function(){return e[t]}})})},2999:(Ve,Q,m)=>{"use strict";var e=m(7977);Q.certificate=m(2390);var t=e.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=t;var y=e.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});Q.RSAPublicKey=y;var C=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())});Q.PublicKey=C;var o=e.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())}),M=e.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(o),this.key("subjectPrivateKey").octstr())});Q.PrivateKey=M;var l=e.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=l;var N=e.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=N,Q.DSAparam=e.define("DSAparam",function(){this.int()});var s=e.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=s;var D=e.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});Q.signature=e.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},2390:(Ve,Q,m)=>{"use strict";var e=m(7977),t=e.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),y=e.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),C=e.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),o=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(C),this.key("subjectPublicKey").bitstr())}),M=e.define("RelativeDistinguishedName",function(){this.setof(y)}),l=e.define("RDNSequence",function(){this.seqof(M)}),N=e.define("Name",function(){this.choice({rdnSequence:this.use(l)})}),s=e.define("Validity",function(){this.seq().obj(this.key("notBefore").use(t),this.key("notAfter").use(t))}),D=e.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),A=e.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(C),this.key("issuer").use(N),this.key("validity").use(s),this.key("subject").use(N),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(D).optional())}),O=e.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(A),this.key("signatureAlgorithm").use(C),this.key("signatureValue").bitstr())});Ve.exports=O},5269:(Ve,Q,m)=>{var e=/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,t=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,y=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,C=m(347),o=m(4330),M=m(3502).Buffer;Ve.exports=function(l,N){var A,s=l.toString(),D=s.match(e);if(D){var E="aes"+D[1],P=M.from(D[2],"hex"),w=M.from(D[3].replace(/[\r\n]/g,""),"base64"),Z=C(N,P.slice(0,8),parseInt(D[1],10)).key,j=[],W=o.createDecipheriv(E,Z,P);j.push(W.update(w)),j.push(W.final()),A=M.concat(j)}else{var O=s.match(y);A=M.from(O[2].replace(/[\r\n]/g,""),"base64")}return{tag:s.match(t)[1],data:A}}},2772:(Ve,Q,m)=>{var e=m(2999),t=m(2562),y=m(5269),C=m(4330),o=m(9357),M=m(3502).Buffer;function l(s){var D;"object"==typeof s&&!M.isBuffer(s)&&(D=s.passphrase,s=s.key),"string"==typeof s&&(s=M.from(s));var P,w,A=y(s,D),O=A.tag,E=A.data;switch(O){case"CERTIFICATE":w=e.certificate.decode(E,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(w||(w=e.PublicKey.decode(E,"der")),P=w.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return e.RSAPublicKey.decode(w.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return w.subjectPrivateKey=w.subjectPublicKey,{type:"ec",data:w};case"1.2.840.10040.4.1":return w.algorithm.params.pub_key=e.DSAparam.decode(w.subjectPublicKey.data,"der"),{type:"dsa",data:w.algorithm.params};default:throw new Error("unknown key id "+P)}case"ENCRYPTED PRIVATE KEY":E=function N(s,D){var A=s.algorithm.decrypt.kde.kdeparams.salt,O=parseInt(s.algorithm.decrypt.kde.kdeparams.iters.toString(),10),E=t[s.algorithm.decrypt.cipher.algo.join(".")],P=s.algorithm.decrypt.cipher.iv,w=s.subjectPrivateKey,Z=parseInt(E.split("-")[1],10)/8,j=o.pbkdf2Sync(D,A,O,Z,"sha1"),W=C.createDecipheriv(E,j,P),ie=[];return ie.push(W.update(w)),ie.push(W.final()),M.concat(ie)}(E=e.EncryptedPrivateKey.decode(E,"der"),D);case"PRIVATE KEY":switch(P=(w=e.PrivateKey.decode(E,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return e.RSAPrivateKey.decode(w.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:w.algorithm.curve,privateKey:e.ECPrivateKey.decode(w.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return w.algorithm.params.priv_key=e.DSAparam.decode(w.subjectPrivateKey,"der"),{type:"dsa",params:w.algorithm.params};default:throw new Error("unknown key id "+P)}case"RSA PUBLIC KEY":return e.RSAPublicKey.decode(E,"der");case"RSA PRIVATE KEY":return e.RSAPrivateKey.decode(E,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:e.DSAPrivateKey.decode(E,"der")};case"EC PRIVATE KEY":return{curve:(E=e.ECPrivateKey.decode(E,"der")).parameters.value,privateKey:E.privateKey};default:throw new Error("unknown key type "+O)}}Ve.exports=l,l.signature=e.signature},9357:(Ve,Q,m)=>{Q.pbkdf2=m(415),Q.pbkdf2Sync=m(7472)},415:(Ve,Q,m)=>{var M,A,e=m(3502).Buffer,t=m(2697),y=m(8867),C=m(7472),o=m(4566),l=global.crypto&&global.crypto.subtle,N={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"},s=[];function O(){return A||(A=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function E(w,Z,j,W,ie){return l.importKey("raw",w,{name:"PBKDF2"},!1,["deriveBits"]).then(function(ee){return l.deriveBits({name:"PBKDF2",salt:Z,iterations:j,hash:{name:ie}},ee,W<<3)}).then(function(ee){return e.from(ee)})}Ve.exports=function(w,Z,j,W,ie,ee){"function"==typeof ie&&(ee=ie,ie=void 0);var _e=N[(ie=ie||"sha1").toLowerCase()];if(_e&&"function"==typeof global.Promise){if(t(j,W),w=o(w,y,"Password"),Z=o(Z,y,"Salt"),"function"!=typeof ee)throw new Error("No callback provided to pbkdf2");!function P(w,Z){w.then(function(j){O()(function(){Z(null,j)})},function(j){O()(function(){Z(j)})})}(function D(w){if(global.process&&!global.process.browser||!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(void 0!==s[w])return s[w];var Z=E(M=M||e.alloc(8),M,10,128,w).then(function(){return!0}).catch(function(){return!1});return s[w]=Z,Z}(_e).then(function(ce){return ce?E(w,Z,j,W,_e):C(w,Z,j,W,ie)}),ee)}else O()(function(){var ce;try{ce=C(w,Z,j,W,ie)}catch(re){return ee(re)}ee(null,ce)})}},8867:Ve=>{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",Ve.exports=Q},2697:Ve=>{var Q=Math.pow(2,30)-1;Ve.exports=function(m,e){if("number"!=typeof m)throw new TypeError("Iterations not a number");if(m<0)throw new TypeError("Bad iterations");if("number"!=typeof e)throw new TypeError("Key length not a number");if(e<0||e>Q||e!=e)throw new TypeError("Bad key length")}},7472:(Ve,Q,m)=>{var e=m(5640),t=m(5634),y=m(5244),C=m(3502).Buffer,o=m(2697),M=m(8867),l=m(4566),N=C.alloc(128),s={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function D(E,P,w){var Z=function A(E){return"rmd160"===E||"ripemd160"===E?function w(Z){return(new t).update(Z).digest()}:"md5"===E?e:function P(Z){return y(E).update(Z).digest()}}(E),j="sha512"===E||"sha384"===E?128:64;P.length>j?P=Z(P):P.length{var e=m(3502).Buffer;Ve.exports=function(t,y,C){if(e.isBuffer(t))return t;if("string"==typeof t)return e.from(t,y);if(ArrayBuffer.isView(t))return e.from(t.buffer);throw new TypeError(C+" must be a string, a Buffer, a typed array or a DataView")}},3701:(Ve,Q,m)=>{Q.publicEncrypt=m(6562),Q.privateDecrypt=m(6705),Q.privateEncrypt=function(t,y){return Q.publicEncrypt(t,y,!0)},Q.publicDecrypt=function(t,y){return Q.privateDecrypt(t,y,!0)}},6945:(Ve,Q,m)=>{var e=m(6386),t=m(3502).Buffer;function y(C){var o=t.allocUnsafe(4);return o.writeUInt32BE(C,0),o}Ve.exports=function(C,o){for(var N,M=t.alloc(0),l=0;M.length=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function N(b,i,a){var p=l(b,a);return a-1>=i&&(p|=l(b,a-1)<<4),p}function s(b,i,a,p){for(var u=0,_=Math.min(b.length,a),L=i;L<_;L++){var I=b.charCodeAt(L)-48;u*=p,u+=I>=49?I-49+10:I>=17?I-17+10:I}return u}o.isBN=function(i){return i instanceof o||null!==i&&"object"==typeof i&&i.constructor.wordSize===o.wordSize&&Array.isArray(i.words)},o.max=function(i,a){return i.cmp(a)>0?i:a},o.min=function(i,a){return i.cmp(a)<0?i:a},o.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),y(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(L=i[u]|i[u-1]<<8|i[u-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},o.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u=a;u-=2)I=N(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;this.strip()},o.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var L=i.length-p,I=L%u,x=Math.min(L,L-I)+p,r=0,v=p;v1&&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 D=["","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"],A=[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],O=[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 P(b,i,a){a.negative=i.negative^b.negative;var p=b.length+i.length|0;a.length=p,p=p-1|0;var u=0|b.words[0],_=0|i.words[0],L=u*_,x=L/67108864|0;a.words[0]=67108863&L;for(var r=1;r>>26,G=67108863&x,F=Math.min(r,i.length-1),U=Math.max(0,r-b.length+1);U<=F;U++)v+=(L=(u=0|b.words[r-U|0])*(_=0|i.words[U])+G)/67108864|0,G=67108863&L;a.words[r]=0|G,x=0|v}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}o.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,L=0;L>>24-u&16777215)||L!==this.length-1?D[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,L--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=A[i],v=O[i];p="";var G=this.clone();for(G.negative=0;!G.isZero();){var F=G.modn(v).toString(i);p=(G=G.idivn(v)).isZero()?F+p:D[r-F.length]+F+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}y(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(i,a){return y(void 0!==M),this.toArrayLike(M,i,a)},o.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},o.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);y(u<=_,"byte array longer than desired length"),y(_>0,"Requested array length <= 0"),this.strip();var x,r,L="le"===a,I=new i(_),v=this.clone();if(L){for(r=0;!v.isZero();r++)x=v.andln(255),v.iushrn(8),I[r]=x;for(;r<_;r++)I[r]=0}else{for(r=0;r<_-u;r++)I[r]=0;for(r=0;!v.isZero();r++)x=v.andln(255),v.iushrn(8),I[_-r-1]=x}return I},o.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},o.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},o.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;ai.length?this.clone().ior(i):i.clone().ior(this)},o.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},o.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;pi.length?this.clone().iand(i):i.clone().iand(this)},o.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},o.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;ui.length?this.clone().ixor(i):i.clone().ixor(this)},o.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},o.prototype.inotn=function(i){y("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},o.prototype.notn=function(i){return this.clone().inotn(i)},o.prototype.setn=function(i,a){y("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<i.length?(p=this,u=i):(p=i,u=this);for(var _=0,L=0;L>>26;for(;0!==_&&L>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;Li.length?this.clone().iadd(i):i.clone().iadd(this)},o.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var L=0,I=0;I<_.length;I++)L=(a=(0|u.words[I])-(0|_.words[I])+L)>>26,this.words[I]=67108863&a;for(;0!==L&&I>26,this.words[I]=67108863&a;if(0===L&&I>>13,ye=0|u[1],Ce=8191&ye,Be=ye>>>13,ze=0|u[2],Ie=8191&ze,K=ze>>>13,Me=0|u[3],we=8191&Me,z=Me>>>13,Ge=0|u[4],vt=8191&Ge,Re=Ge>>>13,Ne=0|u[5],he=8191&Ne,Le=Ne>>>13,ke=0|u[6],q=8191&ke,$=ke>>>13,le=0|u[7],xe=8191&le,Ue=le>>>13,lt=0|u[8],nt=8191<,ft=lt>>>13,it=0|u[9],rt=8191&it,Mt=it>>>13,Zt=0|_[0],Ft=8191&Zt,Vt=Zt>>>13,Ii=0|_[1],jt=8191&Ii,ei=Ii>>>13,Pi=0|_[2],ai=8191&Pi,hi=Pi>>>13,Ze=0|_[3],Ee=8191&Ze,Y=Ze>>>13,me=0|_[4],De=8191&me,et=me>>>13,$t=0|_[5],Nt=8191&$t,Jt=$t>>>13,ct=0|_[6],Pe=8191&ct,Fe=ct>>>13,at=0|_[7],st=8191&at,At=at>>>13,li=0|_[8],Bt=8191&li,Rt=li>>>13,Li=0|_[9],si=8191&Li,ci=Li>>>13;p.negative=i.negative^a.negative,p.length=19;var sn=(I+(x=Math.imul(F,Ft))|0)+((8191&(r=(r=Math.imul(F,Vt))+Math.imul(U,Ft)|0))<<13)|0;I=((v=Math.imul(U,Vt))+(r>>>13)|0)+(sn>>>26)|0,sn&=67108863,x=Math.imul(Ce,Ft),r=(r=Math.imul(Ce,Vt))+Math.imul(Be,Ft)|0,v=Math.imul(Be,Vt);var Ui=(I+(x=x+Math.imul(F,jt)|0)|0)+((8191&(r=(r=r+Math.imul(F,ei)|0)+Math.imul(U,jt)|0))<<13)|0;I=((v=v+Math.imul(U,ei)|0)+(r>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,x=Math.imul(Ie,Ft),r=(r=Math.imul(Ie,Vt))+Math.imul(K,Ft)|0,v=Math.imul(K,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ei)|0)+Math.imul(Be,jt)|0,v=v+Math.imul(Be,ei)|0;var Di=(I+(x=x+Math.imul(F,ai)|0)|0)+((8191&(r=(r=r+Math.imul(F,hi)|0)+Math.imul(U,ai)|0))<<13)|0;I=((v=v+Math.imul(U,hi)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Ft),r=(r=Math.imul(we,Vt))+Math.imul(z,Ft)|0,v=Math.imul(z,Vt),x=x+Math.imul(Ie,jt)|0,r=(r=r+Math.imul(Ie,ei)|0)+Math.imul(K,jt)|0,v=v+Math.imul(K,ei)|0,x=x+Math.imul(Ce,ai)|0,r=(r=r+Math.imul(Ce,hi)|0)+Math.imul(Be,ai)|0,v=v+Math.imul(Be,hi)|0;var Xi=(I+(x=x+Math.imul(F,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(F,Y)|0)+Math.imul(U,Ee)|0))<<13)|0;I=((v=v+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Ft),r=(r=Math.imul(vt,Vt))+Math.imul(Re,Ft)|0,v=Math.imul(Re,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ei)|0)+Math.imul(z,jt)|0,v=v+Math.imul(z,ei)|0,x=x+Math.imul(Ie,ai)|0,r=(r=r+Math.imul(Ie,hi)|0)+Math.imul(K,ai)|0,v=v+Math.imul(K,hi)|0,x=x+Math.imul(Ce,Ee)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Be,Ee)|0,v=v+Math.imul(Be,Y)|0;var Ke=(I+(x=x+Math.imul(F,De)|0)|0)+((8191&(r=(r=r+Math.imul(F,et)|0)+Math.imul(U,De)|0))<<13)|0;I=((v=v+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(he,Ft),r=(r=Math.imul(he,Vt))+Math.imul(Le,Ft)|0,v=Math.imul(Le,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ei)|0)+Math.imul(Re,jt)|0,v=v+Math.imul(Re,ei)|0,x=x+Math.imul(we,ai)|0,r=(r=r+Math.imul(we,hi)|0)+Math.imul(z,ai)|0,v=v+Math.imul(z,hi)|0,x=x+Math.imul(Ie,Ee)|0,r=(r=r+Math.imul(Ie,Y)|0)+Math.imul(K,Ee)|0,v=v+Math.imul(K,Y)|0,x=x+Math.imul(Ce,De)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Be,De)|0,v=v+Math.imul(Be,et)|0;var _t=(I+(x=x+Math.imul(F,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Jt)|0)+Math.imul(U,Nt)|0))<<13)|0;I=((v=v+Math.imul(U,Jt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(q,Ft),r=(r=Math.imul(q,Vt))+Math.imul($,Ft)|0,v=Math.imul($,Vt),x=x+Math.imul(he,jt)|0,r=(r=r+Math.imul(he,ei)|0)+Math.imul(Le,jt)|0,v=v+Math.imul(Le,ei)|0,x=x+Math.imul(vt,ai)|0,r=(r=r+Math.imul(vt,hi)|0)+Math.imul(Re,ai)|0,v=v+Math.imul(Re,hi)|0,x=x+Math.imul(we,Ee)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(z,Ee)|0,v=v+Math.imul(z,Y)|0,x=x+Math.imul(Ie,De)|0,r=(r=r+Math.imul(Ie,et)|0)+Math.imul(K,De)|0,v=v+Math.imul(K,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Jt)|0)+Math.imul(Be,Nt)|0,v=v+Math.imul(Be,Jt)|0;var ve=(I+(x=x+Math.imul(F,Pe)|0)|0)+((8191&(r=(r=r+Math.imul(F,Fe)|0)+Math.imul(U,Pe)|0))<<13)|0;I=((v=v+Math.imul(U,Fe)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,x=Math.imul(xe,Ft),r=(r=Math.imul(xe,Vt))+Math.imul(Ue,Ft)|0,v=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ei)|0)+Math.imul($,jt)|0,v=v+Math.imul($,ei)|0,x=x+Math.imul(he,ai)|0,r=(r=r+Math.imul(he,hi)|0)+Math.imul(Le,ai)|0,v=v+Math.imul(Le,hi)|0,x=x+Math.imul(vt,Ee)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Re,Ee)|0,v=v+Math.imul(Re,Y)|0,x=x+Math.imul(we,De)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(z,De)|0,v=v+Math.imul(z,et)|0,x=x+Math.imul(Ie,Nt)|0,r=(r=r+Math.imul(Ie,Jt)|0)+Math.imul(K,Nt)|0,v=v+Math.imul(K,Jt)|0,x=x+Math.imul(Ce,Pe)|0,r=(r=r+Math.imul(Ce,Fe)|0)+Math.imul(Be,Pe)|0,v=v+Math.imul(Be,Fe)|0;var qe=(I+(x=x+Math.imul(F,st)|0)|0)+((8191&(r=(r=r+Math.imul(F,At)|0)+Math.imul(U,st)|0))<<13)|0;I=((v=v+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(nt,Ft),r=(r=Math.imul(nt,Vt))+Math.imul(ft,Ft)|0,v=Math.imul(ft,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ei)|0)+Math.imul(Ue,jt)|0,v=v+Math.imul(Ue,ei)|0,x=x+Math.imul(q,ai)|0,r=(r=r+Math.imul(q,hi)|0)+Math.imul($,ai)|0,v=v+Math.imul($,hi)|0,x=x+Math.imul(he,Ee)|0,r=(r=r+Math.imul(he,Y)|0)+Math.imul(Le,Ee)|0,v=v+Math.imul(Le,Y)|0,x=x+Math.imul(vt,De)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Re,De)|0,v=v+Math.imul(Re,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Jt)|0)+Math.imul(z,Nt)|0,v=v+Math.imul(z,Jt)|0,x=x+Math.imul(Ie,Pe)|0,r=(r=r+Math.imul(Ie,Fe)|0)+Math.imul(K,Pe)|0,v=v+Math.imul(K,Fe)|0,x=x+Math.imul(Ce,st)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Be,st)|0,v=v+Math.imul(Be,At)|0;var yt=(I+(x=x+Math.imul(F,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Rt)|0)+Math.imul(U,Bt)|0))<<13)|0;I=((v=v+Math.imul(U,Rt)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(rt,Ft),r=(r=Math.imul(rt,Vt))+Math.imul(Mt,Ft)|0,v=Math.imul(Mt,Vt),x=x+Math.imul(nt,jt)|0,r=(r=r+Math.imul(nt,ei)|0)+Math.imul(ft,jt)|0,v=v+Math.imul(ft,ei)|0,x=x+Math.imul(xe,ai)|0,r=(r=r+Math.imul(xe,hi)|0)+Math.imul(Ue,ai)|0,v=v+Math.imul(Ue,hi)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul($,Ee)|0,v=v+Math.imul($,Y)|0,x=x+Math.imul(he,De)|0,r=(r=r+Math.imul(he,et)|0)+Math.imul(Le,De)|0,v=v+Math.imul(Le,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Jt)|0)+Math.imul(Re,Nt)|0,v=v+Math.imul(Re,Jt)|0,x=x+Math.imul(we,Pe)|0,r=(r=r+Math.imul(we,Fe)|0)+Math.imul(z,Pe)|0,v=v+Math.imul(z,Fe)|0,x=x+Math.imul(Ie,st)|0,r=(r=r+Math.imul(Ie,At)|0)+Math.imul(K,st)|0,v=v+Math.imul(K,At)|0,x=x+Math.imul(Ce,Bt)|0,r=(r=r+Math.imul(Ce,Rt)|0)+Math.imul(Be,Bt)|0,v=v+Math.imul(Be,Rt)|0;var fe=(I+(x=x+Math.imul(F,si)|0)|0)+((8191&(r=(r=r+Math.imul(F,ci)|0)+Math.imul(U,si)|0))<<13)|0;I=((v=v+Math.imul(U,ci)|0)+(r>>>13)|0)+(fe>>>26)|0,fe&=67108863,x=Math.imul(rt,jt),r=(r=Math.imul(rt,ei))+Math.imul(Mt,jt)|0,v=Math.imul(Mt,ei),x=x+Math.imul(nt,ai)|0,r=(r=r+Math.imul(nt,hi)|0)+Math.imul(ft,ai)|0,v=v+Math.imul(ft,hi)|0,x=x+Math.imul(xe,Ee)|0,r=(r=r+Math.imul(xe,Y)|0)+Math.imul(Ue,Ee)|0,v=v+Math.imul(Ue,Y)|0,x=x+Math.imul(q,De)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul($,De)|0,v=v+Math.imul($,et)|0,x=x+Math.imul(he,Nt)|0,r=(r=r+Math.imul(he,Jt)|0)+Math.imul(Le,Nt)|0,v=v+Math.imul(Le,Jt)|0,x=x+Math.imul(vt,Pe)|0,r=(r=r+Math.imul(vt,Fe)|0)+Math.imul(Re,Pe)|0,v=v+Math.imul(Re,Fe)|0,x=x+Math.imul(we,st)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(z,st)|0,v=v+Math.imul(z,At)|0,x=x+Math.imul(Ie,Bt)|0,r=(r=r+Math.imul(Ie,Rt)|0)+Math.imul(K,Bt)|0,v=v+Math.imul(K,Rt)|0;var Je=(I+(x=x+Math.imul(Ce,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Be,si)|0))<<13)|0;I=((v=v+Math.imul(Be,ci)|0)+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,x=Math.imul(rt,ai),r=(r=Math.imul(rt,hi))+Math.imul(Mt,ai)|0,v=Math.imul(Mt,hi),x=x+Math.imul(nt,Ee)|0,r=(r=r+Math.imul(nt,Y)|0)+Math.imul(ft,Ee)|0,v=v+Math.imul(ft,Y)|0,x=x+Math.imul(xe,De)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Ue,De)|0,v=v+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Jt)|0)+Math.imul($,Nt)|0,v=v+Math.imul($,Jt)|0,x=x+Math.imul(he,Pe)|0,r=(r=r+Math.imul(he,Fe)|0)+Math.imul(Le,Pe)|0,v=v+Math.imul(Le,Fe)|0,x=x+Math.imul(vt,st)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Re,st)|0,v=v+Math.imul(Re,At)|0,x=x+Math.imul(we,Bt)|0,r=(r=r+Math.imul(we,Rt)|0)+Math.imul(z,Bt)|0,v=v+Math.imul(z,Rt)|0;var St=(I+(x=x+Math.imul(Ie,si)|0)|0)+((8191&(r=(r=r+Math.imul(Ie,ci)|0)+Math.imul(K,si)|0))<<13)|0;I=((v=v+Math.imul(K,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(rt,Ee),r=(r=Math.imul(rt,Y))+Math.imul(Mt,Ee)|0,v=Math.imul(Mt,Y),x=x+Math.imul(nt,De)|0,r=(r=r+Math.imul(nt,et)|0)+Math.imul(ft,De)|0,v=v+Math.imul(ft,et)|0,x=x+Math.imul(xe,Nt)|0,r=(r=r+Math.imul(xe,Jt)|0)+Math.imul(Ue,Nt)|0,v=v+Math.imul(Ue,Jt)|0,x=x+Math.imul(q,Pe)|0,r=(r=r+Math.imul(q,Fe)|0)+Math.imul($,Pe)|0,v=v+Math.imul($,Fe)|0,x=x+Math.imul(he,st)|0,r=(r=r+Math.imul(he,At)|0)+Math.imul(Le,st)|0,v=v+Math.imul(Le,At)|0,x=x+Math.imul(vt,Bt)|0,r=(r=r+Math.imul(vt,Rt)|0)+Math.imul(Re,Bt)|0,v=v+Math.imul(Re,Rt)|0;var Pt=(I+(x=x+Math.imul(we,si)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(z,si)|0))<<13)|0;I=((v=v+Math.imul(z,ci)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,x=Math.imul(rt,De),r=(r=Math.imul(rt,et))+Math.imul(Mt,De)|0,v=Math.imul(Mt,et),x=x+Math.imul(nt,Nt)|0,r=(r=r+Math.imul(nt,Jt)|0)+Math.imul(ft,Nt)|0,v=v+Math.imul(ft,Jt)|0,x=x+Math.imul(xe,Pe)|0,r=(r=r+Math.imul(xe,Fe)|0)+Math.imul(Ue,Pe)|0,v=v+Math.imul(Ue,Fe)|0,x=x+Math.imul(q,st)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul($,st)|0,v=v+Math.imul($,At)|0,x=x+Math.imul(he,Bt)|0,r=(r=r+Math.imul(he,Rt)|0)+Math.imul(Le,Bt)|0,v=v+Math.imul(Le,Rt)|0;var yi=(I+(x=x+Math.imul(vt,si)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Re,si)|0))<<13)|0;I=((v=v+Math.imul(Re,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(rt,Nt),r=(r=Math.imul(rt,Jt))+Math.imul(Mt,Nt)|0,v=Math.imul(Mt,Jt),x=x+Math.imul(nt,Pe)|0,r=(r=r+Math.imul(nt,Fe)|0)+Math.imul(ft,Pe)|0,v=v+Math.imul(ft,Fe)|0,x=x+Math.imul(xe,st)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Ue,st)|0,v=v+Math.imul(Ue,At)|0,x=x+Math.imul(q,Bt)|0,r=(r=r+Math.imul(q,Rt)|0)+Math.imul($,Bt)|0,v=v+Math.imul($,Rt)|0;var Ni=(I+(x=x+Math.imul(he,si)|0)|0)+((8191&(r=(r=r+Math.imul(he,ci)|0)+Math.imul(Le,si)|0))<<13)|0;I=((v=v+Math.imul(Le,ci)|0)+(r>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,x=Math.imul(rt,Pe),r=(r=Math.imul(rt,Fe))+Math.imul(Mt,Pe)|0,v=Math.imul(Mt,Fe),x=x+Math.imul(nt,st)|0,r=(r=r+Math.imul(nt,At)|0)+Math.imul(ft,st)|0,v=v+Math.imul(ft,At)|0,x=x+Math.imul(xe,Bt)|0,r=(r=r+Math.imul(xe,Rt)|0)+Math.imul(Ue,Bt)|0,v=v+Math.imul(Ue,Rt)|0;var Si=(I+(x=x+Math.imul(q,si)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul($,si)|0))<<13)|0;I=((v=v+Math.imul($,ci)|0)+(r>>>13)|0)+(Si>>>26)|0,Si&=67108863,x=Math.imul(rt,st),r=(r=Math.imul(rt,At))+Math.imul(Mt,st)|0,v=Math.imul(Mt,At),x=x+Math.imul(nt,Bt)|0,r=(r=r+Math.imul(nt,Rt)|0)+Math.imul(ft,Bt)|0,v=v+Math.imul(ft,Rt)|0;var qi=(I+(x=x+Math.imul(xe,si)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Ue,si)|0))<<13)|0;I=((v=v+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(qi>>>26)|0,qi&=67108863,x=Math.imul(rt,Bt),r=(r=Math.imul(rt,Rt))+Math.imul(Mt,Bt)|0,v=Math.imul(Mt,Rt);var ot=(I+(x=x+Math.imul(nt,si)|0)|0)+((8191&(r=(r=r+Math.imul(nt,ci)|0)+Math.imul(ft,si)|0))<<13)|0;I=((v=v+Math.imul(ft,ci)|0)+(r>>>13)|0)+(ot>>>26)|0,ot&=67108863;var Kt=(I+(x=Math.imul(rt,si))|0)+((8191&(r=(r=Math.imul(rt,ci))+Math.imul(Mt,si)|0))<<13)|0;return I=((v=Math.imul(Mt,ci))+(r>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,L[0]=sn,L[1]=Ui,L[2]=Di,L[3]=Xi,L[4]=Ke,L[5]=_t,L[6]=ve,L[7]=qe,L[8]=yt,L[9]=fe,L[10]=Je,L[11]=St,L[12]=Pt,L[13]=yi,L[14]=Ni,L[15]=Si,L[16]=qi,L[17]=ot,L[18]=Kt,0!==I&&(L[19]=I,p.length++),p};function j(b,i,a){return(new W).mulp(b,i,a)}function W(b,i){this.x=b,this.y=i}Math.imul||(w=P),o.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?P(this,i,a):u<1024?function Z(b,i,a){a.negative=i.negative^b.negative,a.length=b.length+i.length;for(var p=0,u=0,_=0;_>>26)|0)>>>26,L&=67108863}a.words[_]=I,p=L,L=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):j(this,i,a),p},W.prototype.makeRBT=function(i){for(var a=new Array(i),p=o.prototype._countBits(i)-1,u=0;u>=1;return u},W.prototype.permute=function(i,a,p,u,_,L){for(var I=0;I>>=1)_++;return 1<<_+1+u},W.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u

>>=13),_>>>=13;for(L=2*a;L>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},o.prototype.muln=function(i){return this.clone().imuln(i)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(i){var a=function E(b){for(var i=new Array(b.bitLength()),a=0;a>>u}return i}(i);if(0===a.length)return new o(1);for(var p=this,u=0;u=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var L=0;for(_=0;_>>26-a}L&&(this.words[_]=L,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_=0),u=a?(a-a%26)/26:0;var _=i%26,L=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=L,u=Math.max(0,u),x){for(var r=0;rL)for(this.length-=L,r=0;r=0&&(0!==v||r>=u);r--){var G=0|this.words[r];this.words[r]=v<<26-_|G>>>_,v=G&I}return x&&0!==v&&(x.words[x.length++]=v),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(i,a,p){return y(0===this.negative),this.iushrn(i,a,p)},o.prototype.shln=function(i){return this.clone().ishln(i)},o.prototype.ushln=function(i){return this.clone().iushln(i)},o.prototype.shrn=function(i){return this.clone().ishrn(i)},o.prototype.ushrn=function(i){return this.clone().iushrn(i)},o.prototype.testn=function(i){y("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<=0);var a=i%26,p=(i-a)/26;return y(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},o.prototype.isubn=function(i){if(y("number"==typeof i),y(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a>26)-(x/67108864|0),this.words[_+p]=67108863&L}for(;_>26,this.words[_+p]=67108863&L;if(0===I)return this.strip();for(y(-1===I),I=0,_=0;_>26,this.words[_]=67108863&L;return this.negative=1,this.strip()},o.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,L=0|_.words[_.length-1];0!=(p=26-this._countBits(L))&&(_=_.ushln(p),u.iushln(p),L=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new o(null)).length=x+1,r.words=new Array(r.length);for(var v=0;v=0;F--){var U=67108864*(0|u.words[_.length+F])+(0|u.words[_.length+F-1]);for(U=Math.min(U/L|0,67108863),u._ishlnsubmul(_,U,F);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,F),u.isZero()||(u.negative^=1);r&&(r.words[F]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},o.prototype.divmod=function(i,a,p){return y(!i.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===i.negative?(L=this.neg().divmod(i,a),"mod"!==a&&(u=L.div.neg()),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(L=this.divmod(i.neg(),a),"mod"!==a&&(u=L.div.neg()),{div:u,mod:L.mod}):0!=(this.negative&i.negative)?(L=this.neg().divmod(i.neg(),a),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:L.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new o(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new o(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new o(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,L},o.prototype.div=function(i){return this.divmod(i,"div",!1).div},o.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},o.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},o.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),L=p.cmp(u);return L<0||1===_&&0===L?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},o.prototype.modn=function(i){y(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},o.prototype.idivn=function(i){y(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},o.prototype.divn=function(i){return this.clone().idivn(i)},o.prototype.egcd=function(i){y(0===i.negative),y(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),L=new o(0),I=new o(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),v=a.clone();!a.isZero();){for(var G=0,F=1;0==(a.words[0]&F)&&G<26;++G,F<<=1);if(G>0)for(a.iushrn(G);G-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(v)),u.iushrn(1),_.iushrn(1);for(var U=0,ye=1;0==(p.words[0]&ye)&&U<26;++U,ye<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(L.isOdd()||I.isOdd())&&(L.iadd(r),I.isub(v)),L.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(L),_.isub(I)):(p.isub(a),L.isub(u),I.isub(_))}return{a:L,b:I,gcd:p.iushln(x)}},o.prototype._invmp=function(i){y(0===i.negative),y(!i.isZero());var G,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new o(1),_=new o(0),L=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var I=0,x=1;0==(a.words[0]&x)&&I<26;++I,x<<=1);if(I>0)for(a.iushrn(I);I-- >0;)u.isOdd()&&u.iadd(L),u.iushrn(1);for(var r=0,v=1;0==(p.words[0]&v)&&r<26;++r,v<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(L),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(G=0===a.cmpn(1)?u:_).cmpn(0)<0&&G.iadd(i),G},o.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var L=a;a=p,p=L}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},o.prototype.invm=function(i){return this.egcd(i).a.umod(i)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(i){return this.words[0]&i},o.prototype.bincn=function(i){y("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<>>26,this.words[L]=I&=67108863}return 0!==_&&(this.words[L]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),y(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:ui.length)return 1;if(this.length=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},o.prototype.gtn=function(i){return 1===this.cmpn(i)},o.prototype.gt=function(i){return 1===this.cmp(i)},o.prototype.gten=function(i){return this.cmpn(i)>=0},o.prototype.gte=function(i){return this.cmp(i)>=0},o.prototype.ltn=function(i){return-1===this.cmpn(i)},o.prototype.lt=function(i){return-1===this.cmp(i)},o.prototype.lten=function(i){return this.cmpn(i)<=0},o.prototype.lte=function(i){return this.cmp(i)<=0},o.prototype.eqn=function(i){return 0===this.cmpn(i)},o.prototype.eq=function(i){return 0===this.cmp(i)},o.red=function(i){return new oe(i)},o.prototype.toRed=function(i){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},o.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(i){return this.red=i,this},o.prototype.forceRed=function(i){return y(!this.red,"Already a number in reduction context"),this._forceRed(i)},o.prototype.redAdd=function(i){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},o.prototype.redIAdd=function(i){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},o.prototype.redSub=function(i){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},o.prototype.redISub=function(i){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},o.prototype.redShl=function(i){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},o.prototype.redMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},o.prototype.redIMul=function(i){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},o.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(i){return y(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ie={k256:null,p224:null,p192:null,p25519:null};function ee(b,i){this.name=b,this.p=new o(i,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _e(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ce(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function de(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function oe(b){if("string"==typeof b){var i=o._prime(b);this.m=i.p,this.prime=i}else y(b.gtn(1),"modulus must be greater than 1"),this.m=b,this.prime=null}function ae(b){oe.call(this,b),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)}ee.prototype._tmp=function(){var i=new o(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(_e,ee),_e.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_>>22,L=I}i.words[_-10]=L>>>=22,i.length-=0===L&&i.length>10?10:9},_e.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},o._prime=function(i){if(ie[i])return ie[i];var a;if("k256"===i)a=new _e;else if("p224"===i)a=new ce;else if("p192"===i)a=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new de}return ie[i]=a,a},oe.prototype._verify1=function(i){y(0===i.negative,"red works only with positives"),y(i.red,"red works only with red numbers")},oe.prototype._verify2=function(i,a){y(0==(i.negative|a.negative),"red works only with positives"),y(i.red&&i.red===a.red,"red works only with red numbers")},oe.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},oe.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},oe.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},oe.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},oe.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},oe.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},oe.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},oe.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},oe.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},oe.prototype.isqr=function(i){return this.imul(i,i.clone())},oe.prototype.sqr=function(i){return this.mul(i,i)},oe.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(y(a%2==1),3===a){var p=this.m.add(new o(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);y(!u.isZero());var L=new o(1).toRed(this),I=L.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new o(2*r*r).toRed(this);0!==this.pow(r,x).cmp(I);)r.redIAdd(I);for(var v=this.pow(r,u),G=this.pow(i,u.addn(1).iushrn(1)),F=this.pow(i,u),U=_;0!==F.cmp(L);){for(var ye=F,Ce=0;0!==ye.cmp(L);Ce++)ye=ye.redSqr();y(Ce=0;_--){for(var v=a.words[_],G=r-1;G>=0;G--){var F=v>>G&1;L!==u[0]&&(L=this.sqr(L)),0!==F||0!==I?(I<<=1,I|=F,(4==++x||0===_&&0===G)&&(L=this.mul(L,u[I]),x=0,I=0)):x=0}r=26}return L},oe.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},oe.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},o.mont=function(i){return new ae(i)},C(ae,oe),ae.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},ae.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},ae.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},ae.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new o(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},ae.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ve=m.nmd(Ve),this)},6705:(Ve,Q,m)=>{var e=m(2772),t=m(6945),y=m(9401),C=m(2057),o=m(8466),M=m(6386),l=m(8651),N=m(3502).Buffer;Ve.exports=function(E,P,w){var Z;Z=E.padding?E.padding:w?1:4;var ie,j=e(E),W=j.modulus.byteLength();if(P.length>W||new C(P).cmp(j.modulus)>=0)throw new Error("decryption error");ie=w?l(new C(P),j):o(P,j);var ee=N.alloc(W-ie.length);if(ie=N.concat([ee,ie],W),4===Z)return function s(O,E){var P=O.modulus.byteLength(),w=M("sha1").update(N.alloc(0)).digest(),Z=w.length;if(0!==E[0])throw new Error("decryption error");var j=E.slice(1,Z+1),W=E.slice(Z+1),ie=y(j,t(W,Z)),ee=y(W,t(ie,P-Z-1));if(function A(O,E){O=N.from(O),E=N.from(E);var P=0,w=O.length;O.length!==E.length&&(P++,w=Math.min(O.length,E.length));for(var Z=-1;++Z=E.length){j++;break}var W=E.slice(2,Z-1);if(("0002"!==w.toString("hex")&&!P||"0001"!==w.toString("hex")&&P)&&j++,W.length<8&&j++,j)throw new Error("decryption error");return E.slice(Z)}(0,ie,w);if(3===Z)return ie;throw new Error("unknown padding")}},6562:(Ve,Q,m)=>{var e=m(2772),t=m(3753),y=m(6386),C=m(6945),o=m(9401),M=m(2057),l=m(8651),N=m(8466),s=m(3502).Buffer;Ve.exports=function(P,w,Z){var j;j=P.padding?P.padding:Z?1:4;var ie,W=e(P);if(4===j)ie=function D(E,P){var w=E.modulus.byteLength(),Z=P.length,j=y("sha1").update(s.alloc(0)).digest(),W=j.length,ie=2*W;if(Z>w-ie-2)throw new Error("message too long");var ee=s.alloc(w-Z-ie-2),_e=w-W-1,ce=t(W),re=o(s.concat([j,ee,s.alloc(1,1),P],_e),C(ce,_e)),de=o(ce,C(re,W));return new M(s.concat([s.alloc(1),de,re],w))}(W,w);else if(1===j)ie=function A(E,P,w){var W,Z=P.length,j=E.modulus.byteLength();if(Z>j-11)throw new Error("message too long");return W=w?s.alloc(j-Z-3,255):function O(E){for(var W,P=s.allocUnsafe(E),w=0,Z=t(2*E),j=0;w=0)throw new Error("data too long for modulus")}return Z?N(ie,W):l(ie,W)}},8651:(Ve,Q,m)=>{var e=m(2057),t=m(3502).Buffer;Ve.exports=function y(C,o){return t.from(C.toRed(e.mont(o.modulus)).redPow(new e(o.publicExponent)).fromRed().toArray())}},9401:Ve=>{Ve.exports=function(m,e){for(var t=m.length,y=-1;++y{const e=m(8695),t=m(1465),y=m(3210),C=m(2334);function o(M,l,N,s,D){const A=[].slice.call(arguments,1),O=A.length,E="function"==typeof A[O-1];if(!E&&!e())throw new Error("Callback required as last argument");if(!E){if(O<1)throw new Error("Too few arguments provided");return 1===O?(N=l,l=s=void 0):2===O&&!l.getContext&&(s=N,N=l,l=void 0),new Promise(function(P,w){try{const Z=t.create(N,s);P(M(Z,l,s))}catch(Z){w(Z)}})}if(O<2)throw new Error("Too few arguments provided");2===O?(D=N,N=l,l=s=void 0):3===O&&(l.getContext&&void 0===D?(D=s,s=void 0):(D=s,s=N,N=l,l=void 0));try{const P=t.create(N,s);D(null,M(P,l,s))}catch(P){D(P)}}Q.create=t.create,Q.toCanvas=o.bind(null,y.render),Q.toDataURL=o.bind(null,y.renderToDataURL),Q.toString=o.bind(null,function(M,l,N){return C.render(M,N)})},8695:Ve=>{Ve.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6221:(Ve,Q,m)=>{const e=m(4792).getSymbolSize;Q.getRowColCoords=function(y){if(1===y)return[];const C=Math.floor(y/7)+2,o=e(y),M=145===o?26:2*Math.ceil((o-13)/(2*C-2)),l=[o-7];for(let N=1;N{const e=m(4016),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function y(C){this.mode=e.ALPHANUMERIC,this.data=C}y.getBitsLength=function(o){return 11*Math.floor(o/2)+o%2*6},y.prototype.getLength=function(){return this.data.length},y.prototype.getBitsLength=function(){return y.getBitsLength(this.data.length)},y.prototype.write=function(o){let M;for(M=0;M+2<=this.data.length;M+=2){let l=45*t.indexOf(this.data[M]);l+=t.indexOf(this.data[M+1]),o.put(l,11)}this.data.length%2&&o.put(t.indexOf(this.data[M]),6)},Ve.exports=y},2118:Ve=>{function Q(){this.buffer=[],this.length=0}Q.prototype={get:function(m){const e=Math.floor(m/8);return 1==(this.buffer[e]>>>7-m%8&1)},put:function(m,e){for(let t=0;t>>e-t-1&1))},getLengthInBits:function(){return this.length},putBit:function(m){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),m&&(this.buffer[e]|=128>>>this.length%8),this.length++}},Ve.exports=Q},4425:Ve=>{function Q(m){if(!m||m<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=m,this.data=new Uint8Array(m*m),this.reservedBit=new Uint8Array(m*m)}Q.prototype.set=function(m,e,t,y){const C=m*this.size+e;this.data[C]=t,y&&(this.reservedBit[C]=!0)},Q.prototype.get=function(m,e){return this.data[m*this.size+e]},Q.prototype.xor=function(m,e,t){this.data[m*this.size+e]^=t},Q.prototype.isReserved=function(m,e){return this.reservedBit[m*this.size+e]},Ve.exports=Q},5663:(Ve,Q,m)=>{const e=m(8419),t=m(4016);function y(C){this.mode=t.BYTE,this.data=new Uint8Array(e(C))}y.getBitsLength=function(o){return 8*o},y.prototype.getLength=function(){return this.data.length},y.prototype.getBitsLength=function(){return y.getBitsLength(this.data.length)},y.prototype.write=function(C){for(let o=0,M=this.data.length;o{const e=m(2259),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],y=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Q.getBlocksCount=function(o,M){switch(M){case e.L:return t[4*(o-1)+0];case e.M:return t[4*(o-1)+1];case e.Q:return t[4*(o-1)+2];case e.H:return t[4*(o-1)+3];default:return}},Q.getTotalCodewordsCount=function(o,M){switch(M){case e.L:return y[4*(o-1)+0];case e.M:return y[4*(o-1)+1];case e.Q:return y[4*(o-1)+2];case e.H:return y[4*(o-1)+3];default:return}}},2259:(Ve,Q)=>{Q.L={bit:1},Q.M={bit:0},Q.Q={bit:3},Q.H={bit:2},Q.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},Q.from=function(t,y){if(Q.isValid(t))return t;try{return function m(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.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: "+e)}}(t)}catch(C){return y}}},3114:(Ve,Q,m)=>{const e=m(4792).getSymbolSize;Q.getPositions=function(C){const o=e(C);return[[0,0],[o-7,0],[0,o-7]]}},7078:(Ve,Q,m)=>{const e=m(4792),C=e.getBCHDigit(1335);Q.getEncodedBits=function(M,l){const N=M.bit<<3|l;let s=N<<10;for(;e.getBCHDigit(s)-C>=0;)s^=1335<{const m=new Uint8Array(512),e=new Uint8Array(256);(function(){let y=1;for(let C=0;C<255;C++)m[C]=y,e[y]=C,y<<=1,256&y&&(y^=285);for(let C=255;C<512;C++)m[C]=m[C-255]})(),Q.log=function(y){if(y<1)throw new Error("log("+y+")");return e[y]},Q.exp=function(y){return m[y]},Q.mul=function(y,C){return 0===y||0===C?0:m[e[y]+e[C]]}},4388:(Ve,Q,m)=>{const e=m(4016),t=m(4792);function y(C){this.mode=e.KANJI,this.data=C}y.getBitsLength=function(o){return 13*o},y.prototype.getLength=function(){return this.data.length},y.prototype.getBitsLength=function(){return y.getBitsLength(this.data.length)},y.prototype.write=function(C){let o;for(o=0;o=33088&&M<=40956)M-=33088;else{if(!(M>=57408&&M<=60351))throw new Error("Invalid SJIS character: "+this.data[o]+"\nMake sure your charset is UTF-8");M-=49472}M=192*(M>>>8&255)+(255&M),C.put(M,13)}},Ve.exports=y},3667:(Ve,Q)=>{Q.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function e(t,y,C){switch(t){case Q.Patterns.PATTERN000:return(y+C)%2==0;case Q.Patterns.PATTERN001:return y%2==0;case Q.Patterns.PATTERN010:return C%3==0;case Q.Patterns.PATTERN011:return(y+C)%3==0;case Q.Patterns.PATTERN100:return(Math.floor(y/2)+Math.floor(C/3))%2==0;case Q.Patterns.PATTERN101:return y*C%2+y*C%3==0;case Q.Patterns.PATTERN110:return(y*C%2+y*C%3)%2==0;case Q.Patterns.PATTERN111:return(y*C%3+(y+C)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}Q.isValid=function(y){return null!=y&&""!==y&&!isNaN(y)&&y>=0&&y<=7},Q.from=function(y){return Q.isValid(y)?parseInt(y,10):void 0},Q.getPenaltyN1=function(y){const C=y.size;let o=0,M=0,l=0,N=null,s=null;for(let D=0;D=5&&(o+=M-5+3),N=O,M=1),O=y.get(A,D),O===s?l++:(l>=5&&(o+=l-5+3),s=O,l=1)}M>=5&&(o+=M-5+3),l>=5&&(o+=l-5+3)}return o},Q.getPenaltyN2=function(y){const C=y.size;let o=0;for(let M=0;M=10&&(1488===M||93===M)&&o++,l=l<<1&2047|y.get(s,N),s>=10&&(1488===l||93===l)&&o++}return 40*o},Q.getPenaltyN4=function(y){let C=0;const o=y.data.length;for(let l=0;l{const e=m(4406),t=m(2699);Q.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},Q.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},Q.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},Q.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},Q.MIXED={bit:-1},Q.getCharCountIndicator=function(o,M){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!e.isValid(M))throw new Error("Invalid version: "+M);return M>=1&&M<10?o.ccBits[0]:M<27?o.ccBits[1]:o.ccBits[2]},Q.getBestModeForData=function(o){return t.testNumeric(o)?Q.NUMERIC:t.testAlphanumeric(o)?Q.ALPHANUMERIC:t.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,M){if(Q.isValid(o))return o;try{return function y(C){if("string"!=typeof C)throw new Error("Param is not a string");switch(C.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: "+C)}}(o)}catch(l){return M}}},7783:(Ve,Q,m)=>{const e=m(4016);function t(y){this.mode=e.NUMERIC,this.data=y.toString()}t.getBitsLength=function(C){return 10*Math.floor(C/3)+(C%3?C%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(C){let o,M,l;for(o=0;o+3<=this.data.length;o+=3)M=this.data.substr(o,3),l=parseInt(M,10),C.put(l,10);const N=this.data.length-o;N>0&&(M=this.data.substr(o),l=parseInt(M,10),C.put(l,3*N+1))},Ve.exports=t},1106:(Ve,Q,m)=>{const e=m(5339);Q.mul=function(y,C){const o=new Uint8Array(y.length+C.length-1);for(let M=0;M=0;){const M=o[0];for(let N=0;N{const e=m(4792),t=m(2259),y=m(2118),C=m(4425),o=m(6221),M=m(3114),l=m(3667),N=m(4655),s=m(2636),D=m(2088),A=m(7078),O=m(4016),E=m(2033);function W(re,de,oe){const ae=re.size,b=A.getEncodedBits(de,oe);let i,a;for(i=0;i<15;i++)a=1==(b>>i&1),re.set(i<6?i:i<8?i+1:ae-15+i,8,a,!0),re.set(8,i<8?ae-i-1:i<9?15-i-1+1:15-i-1,a,!0);re.set(ae-8,8,1,!0)}function ce(re,de,oe,ae){let b;if(Array.isArray(re))b=E.fromArray(re);else{if("string"!=typeof re)throw new Error("Invalid data");{let _=de;if(!_){const L=E.rawSplit(re);_=D.getBestVersionForData(L,oe)}b=E.fromString(re,_||40)}}const i=D.getBestVersionForData(b,oe);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(de){if(de=0&&p<=6&&(0===u||6===u)||u>=0&&u<=6&&(0===p||6===p)||p>=2&&p<=4&&u>=2&&u<=4,!0)}}(u,de),function w(re){const de=re.size;for(let oe=8;oe=7&&function j(re,de){const oe=re.size,ae=D.getEncodedBits(de);let b,i,a;for(let p=0;p<18;p++)b=Math.floor(p/3),i=p%3+oe-8-3,a=1==(ae>>p&1),re.set(b,i,a,!0),re.set(i,b,a,!0)}(u,de),function ie(re,de){const oe=re.size;let ae=-1,b=oe-1,i=7,a=0;for(let p=oe-1;p>0;p-=2)for(6===p&&p--;;){for(let u=0;u<2;u++)if(!re.isReserved(b,p-u)){let _=!1;a>>i&1)),re.set(b,p-u,_),i--,-1===i&&(a++,i=7)}if(b+=ae,b<0||oe<=b){b-=ae,ae=-ae;break}}}(u,a),isNaN(ae)&&(ae=l.getBestMask(u,W.bind(null,u,oe))),l.applyMask(ae,u),W(u,oe,ae),{modules:u,version:de,errorCorrectionLevel:oe,maskPattern:ae,segments:b}}Q.create=function(de,oe){if(void 0===de||""===de)throw new Error("No input text");let b,i,ae=t.M;return void 0!==oe&&(ae=t.from(oe.errorCorrectionLevel,t.M),b=D.from(oe.version),i=l.from(oe.maskPattern),oe.toSJISFunc&&e.setToSJISFunction(oe.toSJISFunc)),ce(de,b,ae,i)}},2636:(Ve,Q,m)=>{const e=m(1106);function t(y){this.genPoly=void 0,this.degree=y,this.degree&&this.initialize(this.degree)}t.prototype.initialize=function(C){this.degree=C,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(C){if(!this.genPoly)throw new Error("Encoder not initialized");const o=new Uint8Array(C.length+this.degree);o.set(C);const M=e.mod(o,this.genPoly),l=this.degree-M.length;if(l>0){const N=new Uint8Array(this.degree);return N.set(M,l),N}return M},Ve.exports=t},2699:(Ve,Q)=>{const m="[0-9]+";let t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");const y="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+")(?:.|[\r\n]))+";Q.KANJI=new RegExp(t,"g"),Q.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Q.BYTE=new RegExp(y,"g"),Q.NUMERIC=new RegExp(m,"g"),Q.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const C=new RegExp("^"+t+"$"),o=new RegExp("^"+m+"$"),M=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Q.testKanji=function(N){return C.test(N)},Q.testNumeric=function(N){return o.test(N)},Q.testAlphanumeric=function(N){return M.test(N)}},2033:(Ve,Q,m)=>{const e=m(4016),t=m(7783),y=m(2424),C=m(5663),o=m(4388),M=m(2699),l=m(4792),N=m(4901);function s(j){return unescape(encodeURIComponent(j)).length}function D(j,W,ie){const ee=[];let _e;for(;null!==(_e=j.exec(ie));)ee.push({data:_e[0],index:_e.index,mode:W,length:_e[0].length});return ee}function A(j){const W=D(M.NUMERIC,e.NUMERIC,j),ie=D(M.ALPHANUMERIC,e.ALPHANUMERIC,j);let ee,_e;return l.isKanjiModeEnabled()?(ee=D(M.BYTE,e.BYTE,j),_e=D(M.KANJI,e.KANJI,j)):(ee=D(M.BYTE_KANJI,e.BYTE,j),_e=[]),W.concat(ie,ee,_e).sort(function(re,de){return re.index-de.index}).map(function(re){return{data:re.data,mode:re.mode,length:re.length}})}function O(j,W){switch(W){case e.NUMERIC:return t.getBitsLength(j);case e.ALPHANUMERIC:return y.getBitsLength(j);case e.KANJI:return o.getBitsLength(j);case e.BYTE:return C.getBitsLength(j)}}function Z(j,W){let ie;const ee=e.getBestModeForData(j);if(ie=e.from(W,ee),ie!==e.BYTE&&ie.bit=0?W[W.length-1]:null;return ee&&ee.mode===ie.mode?(W[W.length-1].data+=ie.data,W):(W.push(ie),W)},[])}(de))},Q.rawSplit=function(W){return Q.fromArray(A(W,l.isKanjiModeEnabled()))}},4792:(Ve,Q)=>{let m;const e=[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(y){if(!y)throw new Error('"version" cannot be null or undefined');if(y<1||y>40)throw new Error('"version" should be in range from 1 to 40');return 4*y+17},Q.getSymbolTotalCodewords=function(y){return e[y]},Q.getBCHDigit=function(t){let y=0;for(;0!==t;)y++,t>>>=1;return y},Q.setToSJISFunction=function(y){if("function"!=typeof y)throw new Error('"toSJISFunc" is not a valid function.');m=y},Q.isKanjiModeEnabled=function(){return void 0!==m},Q.toSJIS=function(y){return m(y)}},4406:(Ve,Q)=>{Q.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},2088:(Ve,Q,m)=>{const e=m(4792),t=m(4655),y=m(2259),C=m(4016),o=m(4406),l=e.getBCHDigit(7973);function s(O,E){return C.getCharCountIndicator(O,E)+4}function D(O,E){let P=0;return O.forEach(function(w){P+=s(w.mode,E)+w.getBitsLength()}),P}Q.from=function(E,P){return o.isValid(E)?parseInt(E,10):P},Q.getCapacity=function(E,P,w){if(!o.isValid(E))throw new Error("Invalid QR Code version");void 0===w&&(w=C.BYTE);const W=8*(e.getSymbolTotalCodewords(E)-t.getTotalCodewordsCount(E,P));if(w===C.MIXED)return W;const ie=W-s(w,E);switch(w){case C.NUMERIC:return Math.floor(ie/10*3);case C.ALPHANUMERIC:return Math.floor(ie/11*2);case C.KANJI:return Math.floor(ie/13);default:return Math.floor(ie/8)}},Q.getBestVersionForData=function(E,P){let w;const Z=y.from(P,y.M);if(Array.isArray(E)){if(E.length>1)return function A(O,E){for(let P=1;P<=40;P++)if(D(O,P)<=Q.getCapacity(P,E,C.MIXED))return P}(E,Z);if(0===E.length)return 1;w=E[0]}else w=E;return function N(O,E,P){for(let w=1;w<=40;w++)if(E<=Q.getCapacity(w,P,O))return w}(w.mode,w.getLength(),Z)},Q.getEncodedBits=function(E){if(!o.isValid(E)||E<7)throw new Error("Invalid QR Code version");let P=E<<12;for(;e.getBCHDigit(P)-l>=0;)P^=7973<{const e=m(6355);Q.render=function(o,M,l){let N=l,s=M;void 0===N&&(!M||!M.getContext)&&(N=M,M=void 0),M||(s=function y(){try{return document.createElement("canvas")}catch(C){throw new Error("You need to specify a canvas element")}}()),N=e.getOptions(N);const D=e.getImageWidth(o.modules.size,N),A=s.getContext("2d"),O=A.createImageData(D,D);return e.qrToImageData(O.data,o,N),function t(C,o,M){C.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=M,o.width=M,o.style.height=M+"px",o.style.width=M+"px"}(A,s,D),A.putImageData(O,0,0),s},Q.renderToDataURL=function(o,M,l){let N=l;return void 0===N&&(!M||!M.getContext)&&(N=M,M=void 0),N||(N={}),Q.render(o,M,N).toDataURL(N.type||"image/png",(N.rendererOpts||{}).quality)}},2334:(Ve,Q,m)=>{const e=m(6355);function t(o,M){const l=o.a/255,N=M+'="'+o.hex+'"';return l<1?N+" "+M+'-opacity="'+l.toFixed(2).slice(1)+'"':N}function y(o,M,l){let N=o+M;return void 0!==l&&(N+=" "+l),N}Q.render=function(M,l,N){const s=e.getOptions(l),D=M.modules.size,A=M.modules.data,O=D+2*s.margin,E=s.color.light.a?"':"",P="0&&E>0&&o[O-1]||(N+=D?y("M",E+l,.5+P+l):y("m",s,0),s=0,D=!1),E+1',j=''+E+P+"\n";return"function"==typeof N&&N(null,j),j}},6355:(Ve,Q)=>{function m(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);(3===t.length||4===t.length)&&(t=Array.prototype.concat.apply([],t.map(function(C){return[C,C]}))),6===t.length&&t.push("F","F");const y=parseInt(t.join(""),16);return{r:y>>24&255,g:y>>16&255,b:y>>8&255,a:255&y,hex:"#"+t.slice(0,6).join("")}}Q.getOptions=function(t){t||(t={}),t.color||(t.color={});const C=t.width&&t.width>=21?t.width:void 0;return{width:C,scale:C?4:t.scale||4,margin:null==t.margin||t.margin<0?4:t.margin,color:{dark:m(t.color.dark||"#000000ff"),light:m(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},Q.getScale=function(t,y){return y.width&&y.width>=t+2*y.margin?y.width/(t+2*y.margin):y.scale},Q.getImageWidth=function(t,y){const C=Q.getScale(t,y);return Math.floor((t+2*y.margin)*C)},Q.qrToImageData=function(t,y,C){const o=y.modules.size,M=y.modules.data,l=Q.getScale(o,C),N=Math.floor((o+2*C.margin)*l),s=C.margin*l,D=[C.color.light,C.color.dark];for(let A=0;A=s&&O>=s&&A{"use strict";var e=65536,C=m(3502).Buffer,o=global.crypto||global.msCrypto;Ve.exports=o&&o.getRandomValues?function M(l,N){if(l>4294967295)throw new RangeError("requested too many random bytes");var s=C.allocUnsafe(l);if(l>0)if(l>e)for(var D=0;D{"use strict";function e(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var t=m(3502),y=m(3753),C=t.Buffer,o=t.kMaxLength,M=global.crypto||global.msCrypto,l=Math.pow(2,32)-1;function N(E,P){if("number"!=typeof E||E!=E)throw new TypeError("offset must be a number");if(E>l||E<0)throw new TypeError("offset must be a uint32");if(E>o||E>P)throw new RangeError("offset out of range")}function s(E,P,w){if("number"!=typeof E||E!=E)throw new TypeError("size must be a number");if(E>l||E<0)throw new TypeError("size must be a uint32");if(E+P>w||E>o)throw new RangeError("buffer too small")}function A(E,P,w,Z){if(process.browser){var W=new Uint8Array(E.buffer,P,w);return M.getRandomValues(W),Z?void process.nextTick(function(){Z(null,E)}):E}if(!Z)return y(w).copy(E,P),E;y(w,function(ee,_e){if(ee)return Z(ee);_e.copy(E,P),Z(null,E)})}M&&M.getRandomValues||!process.browser?(Q.randomFill=function D(E,P,w,Z){if(!(C.isBuffer(E)||E instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof P)Z=P,P=0,w=E.length;else if("function"==typeof w)Z=w,w=E.length-P;else if("function"!=typeof Z)throw new TypeError('"cb" argument must be a function');return N(P,E.length),s(w,P,E.length),A(E,P,w,Z)},Q.randomFillSync=function O(E,P,w){if(void 0===P&&(P=0),!(C.isBuffer(E)||E instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return N(P,E.length),void 0===w&&(w=E.length-P),s(w,P,E.length),A(E,P,w)}):(Q.randomFill=e,Q.randomFillSync=e)},891:Ve=>{"use strict";var m={};function e(M,l,N){N||(N=Error);var D=function(A){function O(E,P,w){return A.call(this,function s(A,O,E){return"string"==typeof l?l:l(A,O,E)}(E,P,w))||this}return function Q(M,l){M.prototype=Object.create(l.prototype),M.prototype.constructor=M,M.__proto__=l}(O,A),O}(N);D.prototype.name=N.name,D.prototype.code=M,m[M]=D}function t(M,l){if(Array.isArray(M)){var N=M.length;return M=M.map(function(s){return String(s)}),N>2?"one of ".concat(l," ").concat(M.slice(0,N-1).join(", "),", or ")+M[N-1]:2===N?"one of ".concat(l," ").concat(M[0]," or ").concat(M[1]):"of ".concat(l," ").concat(M[0])}return"of ".concat(l," ").concat(String(M))}e("ERR_INVALID_OPT_VALUE",function(M,l){return'The value "'+l+'" is invalid for option "'+M+'"'},TypeError),e("ERR_INVALID_ARG_TYPE",function(M,l,N){var s,D;if("string"==typeof l&&function y(M,l,N){return M.substr(!N||N<0?0:+N,l.length)===l}(l,"not ")?(s="must not be",l=l.replace(/^not /,"")):s="must be",function C(M,l,N){return(void 0===N||N>M.length)&&(N=M.length),M.substring(N-l.length,N)===l}(M," argument"))D="The ".concat(M," ").concat(s," ").concat(t(l,"type"));else{var A=function o(M,l,N){return"number"!=typeof N&&(N=0),!(N+l.length>M.length)&&-1!==M.indexOf(l,N)}(M,".")?"property":"argument";D='The "'.concat(M,'" ').concat(A," ").concat(s," ").concat(t(l,"type"))}return D+". Received type ".concat(typeof N)},TypeError),e("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),e("ERR_METHOD_NOT_IMPLEMENTED",function(M){return"The "+M+" method is not implemented"}),e("ERR_STREAM_PREMATURE_CLOSE","Premature close"),e("ERR_STREAM_DESTROYED",function(M){return"Cannot call "+M+" after a stream was destroyed"}),e("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),e("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),e("ERR_STREAM_WRITE_AFTER_END","write after end"),e("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),e("ERR_UNKNOWN_ENCODING",function(M){return"Unknown encoding: "+M},TypeError),e("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Ve.exports.q=m},1339:(Ve,Q,m)=>{"use strict";var e=Object.keys||function(D){var A=[];for(var O in D)A.push(O);return A};Ve.exports=l;var t=m(3154),y=m(520);m(3894)(l,t);for(var C=e(y.prototype),o=0;o{"use strict";Ve.exports=t;var e=m(6025);function t(y){if(!(this instanceof t))return new t(y);e.call(this,y)}m(3894)(t,e),t.prototype._transform=function(y,C,o){o(null,y)}},3154:(Ve,Q,m)=>{"use strict";var e;Ve.exports=b,b.ReadableState=ae,m(9069);var D,y=function(Ge,vt){return Ge.listeners(vt).length},C=m(4970),o=m(3172).Buffer,M=global.Uint8Array||function(){},s=m(4616);D=s&&s.debuglog?s.debuglog("stream"):function(){};var ee,_e,ce,A=m(5019),O=m(1920),P=m(7102).getHighWaterMark,w=m(891).q,Z=w.ERR_INVALID_ARG_TYPE,j=w.ERR_STREAM_PUSH_AFTER_EOF,W=w.ERR_METHOD_NOT_IMPLEMENTED,ie=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;m(3894)(b,C);var re=O.errorOrDestroy,de=["error","close","destroy","pause","resume"];function ae(z,Ge,vt){e=e||m(1339),"boolean"!=typeof vt&&(vt=Ge instanceof e),this.objectMode=!!(z=z||{}).objectMode,vt&&(this.objectMode=this.objectMode||!!z.readableObjectMode),this.highWaterMark=P(this,z,"readableHighWaterMark",vt),this.buffer=new A,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==z.emitClose,this.autoDestroy=!!z.autoDestroy,this.destroyed=!1,this.defaultEncoding=z.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,z.encoding&&(ee||(ee=m(3054).s),this.decoder=new ee(z.encoding),this.encoding=z.encoding)}function b(z){if(e=e||m(1339),!(this instanceof b))return new b(z);this._readableState=new ae(z,this,this instanceof e),this.readable=!0,z&&("function"==typeof z.read&&(this._read=z.read),"function"==typeof z.destroy&&(this._destroy=z.destroy)),C.call(this)}function i(z,Ge,vt,Re,Ne){D("readableAddChunk",Ge);var Le,he=z._readableState;if(null===Ge)he.reading=!1,function I(z,Ge){if(D("onEofChunk"),!Ge.ended){if(Ge.decoder){var vt=Ge.decoder.end();vt&&vt.length&&(Ge.buffer.push(vt),Ge.length+=Ge.objectMode?1:vt.length)}Ge.ended=!0,Ge.sync?x(z):(Ge.needReadable=!1,Ge.emittedReadable||(Ge.emittedReadable=!0,r(z)))}}(z,he);else if(Ne||(Le=function p(z,Ge){var vt;return!function N(z){return o.isBuffer(z)||z instanceof M}(Ge)&&"string"!=typeof Ge&&void 0!==Ge&&!z.objectMode&&(vt=new Z("chunk",["string","Buffer","Uint8Array"],Ge)),vt}(he,Ge)),Le)re(z,Le);else if(he.objectMode||Ge&&Ge.length>0)if("string"!=typeof Ge&&!he.objectMode&&Object.getPrototypeOf(Ge)!==o.prototype&&(Ge=function l(z){return o.from(z)}(Ge)),Re)he.endEmitted?re(z,new ie):a(z,he,Ge,!0);else if(he.ended)re(z,new j);else{if(he.destroyed)return!1;he.reading=!1,he.decoder&&!vt?(Ge=he.decoder.write(Ge),he.objectMode||0!==Ge.length?a(z,he,Ge,!1):v(z,he)):a(z,he,Ge,!1)}else Re||(he.reading=!1,v(z,he));return!he.ended&&(he.lengthGe.highWaterMark&&(Ge.highWaterMark=function _(z){return z>=u?z=u:(z--,z|=z>>>1,z|=z>>>2,z|=z>>>4,z|=z>>>8,z|=z>>>16,z++),z}(z)),z<=Ge.length?z:Ge.ended?Ge.length:(Ge.needReadable=!0,0))}function x(z){var Ge=z._readableState;D("emitReadable",Ge.needReadable,Ge.emittedReadable),Ge.needReadable=!1,Ge.emittedReadable||(D("emitReadable",Ge.flowing),Ge.emittedReadable=!0,process.nextTick(r,z))}function r(z){var Ge=z._readableState;D("emitReadable_",Ge.destroyed,Ge.length,Ge.ended),!Ge.destroyed&&(Ge.length||Ge.ended)&&(z.emit("readable"),Ge.emittedReadable=!1),Ge.needReadable=!Ge.flowing&&!Ge.ended&&Ge.length<=Ge.highWaterMark,ze(z)}function v(z,Ge){Ge.readingMore||(Ge.readingMore=!0,process.nextTick(G,z,Ge))}function G(z,Ge){for(;!Ge.reading&&!Ge.ended&&(Ge.length0,Ge.resumeScheduled&&!Ge.paused?Ge.flowing=!0:z.listenerCount("data")>0&&z.resume()}function ye(z){D("readable nexttick read 0"),z.read(0)}function Be(z,Ge){D("resume",Ge.reading),Ge.reading||z.read(0),Ge.resumeScheduled=!1,z.emit("resume"),ze(z),Ge.flowing&&!Ge.reading&&z.read(0)}function ze(z){var Ge=z._readableState;for(D("flow",Ge.flowing);Ge.flowing&&null!==z.read(););}function Ie(z,Ge){return 0===Ge.length?null:(Ge.objectMode?vt=Ge.buffer.shift():!z||z>=Ge.length?(vt=Ge.decoder?Ge.buffer.join(""):1===Ge.buffer.length?Ge.buffer.first():Ge.buffer.concat(Ge.length),Ge.buffer.clear()):vt=Ge.buffer.consume(z,Ge.decoder),vt);var vt}function K(z){var Ge=z._readableState;D("endReadable",Ge.endEmitted),Ge.endEmitted||(Ge.ended=!0,process.nextTick(Me,Ge,z))}function Me(z,Ge){if(D("endReadableNT",z.endEmitted,z.length),!z.endEmitted&&0===z.length&&(z.endEmitted=!0,Ge.readable=!1,Ge.emit("end"),z.autoDestroy)){var vt=Ge._writableState;(!vt||vt.autoDestroy&&vt.finished)&&Ge.destroy()}}function we(z,Ge){for(var vt=0,Re=z.length;vt=Ge.highWaterMark:Ge.length>0)||Ge.ended))return D("read: emitReadable",Ge.length,Ge.ended),0===Ge.length&&Ge.ended?K(this):x(this),null;if(0===(z=L(z,Ge))&&Ge.ended)return 0===Ge.length&&K(this),null;var Ne,Re=Ge.needReadable;return D("need readable",Re),(0===Ge.length||Ge.length-z0?Ie(z,Ge):null)?(Ge.needReadable=Ge.length<=Ge.highWaterMark,z=0):(Ge.length-=z,Ge.awaitDrain=0),0===Ge.length&&(Ge.ended||(Ge.needReadable=!0),vt!==z&&Ge.ended&&K(this)),null!==Ne&&this.emit("data",Ne),Ne},b.prototype._read=function(z){re(this,new W("_read()"))},b.prototype.pipe=function(z,Ge){var vt=this,Re=this._readableState;switch(Re.pipesCount){case 0:Re.pipes=z;break;case 1:Re.pipes=[Re.pipes,z];break;default:Re.pipes.push(z)}Re.pipesCount+=1,D("pipe count=%d opts=%j",Re.pipesCount,Ge);var he=Ge&&!1===Ge.end||z===process.stdout||z===process.stderr?ft:ke;function ke(){D("onend"),z.end()}Re.endEmitted?process.nextTick(he):vt.once("end",he),z.on("unpipe",function Le(it,rt){D("onunpipe"),it===vt&&rt&&!1===rt.hasUnpiped&&(rt.hasUnpiped=!0,function le(){D("cleanup"),z.removeListener("close",lt),z.removeListener("finish",nt),z.removeListener("drain",q),z.removeListener("error",Ue),z.removeListener("unpipe",Le),vt.removeListener("end",ke),vt.removeListener("end",ft),vt.removeListener("data",xe),$=!0,Re.awaitDrain&&(!z._writableState||z._writableState.needDrain)&&q()}())});var q=function F(z){return function(){var vt=z._readableState;D("pipeOnDrain",vt.awaitDrain),vt.awaitDrain&&vt.awaitDrain--,0===vt.awaitDrain&&y(z,"data")&&(vt.flowing=!0,ze(z))}}(vt);z.on("drain",q);var $=!1;function xe(it){D("ondata");var rt=z.write(it);D("dest.write",rt),!1===rt&&((1===Re.pipesCount&&Re.pipes===z||Re.pipesCount>1&&-1!==we(Re.pipes,z))&&!$&&(D("false write response, pause",Re.awaitDrain),Re.awaitDrain++),vt.pause())}function Ue(it){D("onerror",it),ft(),z.removeListener("error",Ue),0===y(z,"error")&&re(z,it)}function lt(){z.removeListener("finish",nt),ft()}function nt(){D("onfinish"),z.removeListener("close",lt),ft()}function ft(){D("unpipe"),vt.unpipe(z)}return vt.on("data",xe),function oe(z,Ge,vt){if("function"==typeof z.prependListener)return z.prependListener(Ge,vt);z._events&&z._events[Ge]?Array.isArray(z._events[Ge])?z._events[Ge].unshift(vt):z._events[Ge]=[vt,z._events[Ge]]:z.on(Ge,vt)}(z,"error",Ue),z.once("close",lt),z.once("finish",nt),z.emit("pipe",vt),Re.flowing||(D("pipe resume"),vt.resume()),z},b.prototype.unpipe=function(z){var Ge=this._readableState,vt={hasUnpiped:!1};if(0===Ge.pipesCount)return this;if(1===Ge.pipesCount)return z&&z!==Ge.pipes||(z||(z=Ge.pipes),Ge.pipes=null,Ge.pipesCount=0,Ge.flowing=!1,z&&z.emit("unpipe",this,vt)),this;if(!z){var Re=Ge.pipes,Ne=Ge.pipesCount;Ge.pipes=null,Ge.pipesCount=0,Ge.flowing=!1;for(var he=0;he0,!1!==Re.flowing&&this.resume()):"readable"===z&&!Re.endEmitted&&!Re.readableListening&&(Re.readableListening=Re.needReadable=!0,Re.flowing=!1,Re.emittedReadable=!1,D("on readable",Re.length,Re.reading),Re.length?x(this):Re.reading||process.nextTick(ye,this)),vt},b.prototype.removeListener=function(z,Ge){var vt=C.prototype.removeListener.call(this,z,Ge);return"readable"===z&&process.nextTick(U,this),vt},b.prototype.removeAllListeners=function(z){var Ge=C.prototype.removeAllListeners.apply(this,arguments);return("readable"===z||void 0===z)&&process.nextTick(U,this),Ge},b.prototype.resume=function(){var z=this._readableState;return z.flowing||(D("resume"),z.flowing=!z.readableListening,function Ce(z,Ge){Ge.resumeScheduled||(Ge.resumeScheduled=!0,process.nextTick(Be,z,Ge))}(this,z)),z.paused=!1,this},b.prototype.pause=function(){return D("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(D("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},b.prototype.wrap=function(z){var Ge=this,vt=this._readableState,Re=!1;for(var Ne in z.on("end",function(){if(D("wrapped end"),vt.decoder&&!vt.ended){var Le=vt.decoder.end();Le&&Le.length&&Ge.push(Le)}Ge.push(null)}),z.on("data",function(Le){D("wrapped data"),vt.decoder&&(Le=vt.decoder.write(Le)),vt.objectMode&&null==Le||!(vt.objectMode||Le&&Le.length)||Ge.push(Le)||(Re=!0,z.pause())}),z)void 0===this[Ne]&&"function"==typeof z[Ne]&&(this[Ne]=function(ke){return function(){return z[ke].apply(z,arguments)}}(Ne));for(var he=0;he{"use strict";Ve.exports=N;var e=m(891).q,t=e.ERR_METHOD_NOT_IMPLEMENTED,y=e.ERR_MULTIPLE_CALLBACK,C=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=e.ERR_TRANSFORM_WITH_LENGTH_0,M=m(1339);function l(A,O){var E=this._transformState;E.transforming=!1;var P=E.writecb;if(null===P)return this.emit("error",new y);E.writechunk=null,E.writecb=null,null!=O&&this.push(O),P(A);var w=this._readableState;w.reading=!1,(w.needReadable||w.length{"use strict";function t(ze){var Ie=this;this.next=null,this.entry=null,this.finish=function(){!function Be(ze,Ie,K){var Me=ze.entry;for(ze.entry=null;Me;){var we=Me.callback;Ie.pendingcb--,we(K),Me=Me.next}Ie.corkedRequestsFree.next=ze}(Ie,ze)}}var y;Ve.exports=ae,ae.WritableState=de;var oe,C={deprecate:m(4364)},o=m(4970),M=m(3172).Buffer,l=global.Uint8Array||function(){},D=m(1920),O=m(7102).getHighWaterMark,E=m(891).q,P=E.ERR_INVALID_ARG_TYPE,w=E.ERR_METHOD_NOT_IMPLEMENTED,Z=E.ERR_MULTIPLE_CALLBACK,j=E.ERR_STREAM_CANNOT_PIPE,W=E.ERR_STREAM_DESTROYED,ie=E.ERR_STREAM_NULL_VALUES,ee=E.ERR_STREAM_WRITE_AFTER_END,_e=E.ERR_UNKNOWN_ENCODING,ce=D.errorOrDestroy;function re(){}function de(ze,Ie,K){y=y||m(1339),"boolean"!=typeof K&&(K=Ie instanceof y),this.objectMode=!!(ze=ze||{}).objectMode,K&&(this.objectMode=this.objectMode||!!ze.writableObjectMode),this.highWaterMark=O(this,ze,"writableHighWaterMark",K),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===ze.decodeStrings),this.defaultEncoding=ze.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(we){!function I(ze,Ie){var K=ze._writableState,Me=K.sync,we=K.writecb;if("function"!=typeof we)throw new Z;if(function L(ze){ze.writing=!1,ze.writecb=null,ze.length-=ze.writelen,ze.writelen=0}(K),Ie)!function _(ze,Ie,K,Me,we){--Ie.pendingcb,K?(process.nextTick(we,Me),process.nextTick(ye,ze,Ie),ze._writableState.errorEmitted=!0,ce(ze,Me)):(we(Me),ze._writableState.errorEmitted=!0,ce(ze,Me),ye(ze,Ie))}(ze,K,Me,Ie,we);else{var z=G(K)||ze.destroyed;!z&&!K.corked&&!K.bufferProcessing&&K.bufferedRequest&&v(ze,K),Me?process.nextTick(x,ze,K,z,we):x(ze,K,z,we)}}(Ie,we)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==ze.emitClose,this.autoDestroy=!!ze.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}function ae(ze){var Ie=this instanceof(y=y||m(1339));if(!Ie&&!oe.call(ae,this))return new ae(ze);this._writableState=new de(ze,this,Ie),this.writable=!0,ze&&("function"==typeof ze.write&&(this._write=ze.write),"function"==typeof ze.writev&&(this._writev=ze.writev),"function"==typeof ze.destroy&&(this._destroy=ze.destroy),"function"==typeof ze.final&&(this._final=ze.final)),o.call(this)}function u(ze,Ie,K,Me,we,z,Ge){Ie.writelen=Me,Ie.writecb=Ge,Ie.writing=!0,Ie.sync=!0,Ie.destroyed?Ie.onwrite(new W("write")):K?ze._writev(we,Ie.onwrite):ze._write(we,z,Ie.onwrite),Ie.sync=!1}function x(ze,Ie,K,Me){K||function r(ze,Ie){0===Ie.length&&Ie.needDrain&&(Ie.needDrain=!1,ze.emit("drain"))}(ze,Ie),Ie.pendingcb--,Me(),ye(ze,Ie)}function v(ze,Ie){Ie.bufferProcessing=!0;var K=Ie.bufferedRequest;if(ze._writev&&K&&K.next){var we=new Array(Ie.bufferedRequestCount),z=Ie.corkedRequestsFree;z.entry=K;for(var Ge=0,vt=!0;K;)we[Ge]=K,K.isBuf||(vt=!1),K=K.next,Ge+=1;we.allBuffers=vt,u(ze,Ie,!0,Ie.length,we,"",z.finish),Ie.pendingcb++,Ie.lastBufferedRequest=null,z.next?(Ie.corkedRequestsFree=z.next,z.next=null):Ie.corkedRequestsFree=new t(Ie),Ie.bufferedRequestCount=0}else{for(;K;){var Re=K.chunk;if(u(ze,Ie,!1,Ie.objectMode?1:Re.length,Re,K.encoding,K.callback),K=K.next,Ie.bufferedRequestCount--,Ie.writing)break}null===K&&(Ie.lastBufferedRequest=null)}Ie.bufferedRequest=K,Ie.bufferProcessing=!1}function G(ze){return ze.ending&&0===ze.length&&null===ze.bufferedRequest&&!ze.finished&&!ze.writing}function F(ze,Ie){ze._final(function(K){Ie.pendingcb--,K&&ce(ze,K),Ie.prefinished=!0,ze.emit("prefinish"),ye(ze,Ie)})}function ye(ze,Ie){var K=G(Ie);if(K&&(function U(ze,Ie){!Ie.prefinished&&!Ie.finalCalled&&("function"!=typeof ze._final||Ie.destroyed?(Ie.prefinished=!0,ze.emit("prefinish")):(Ie.pendingcb++,Ie.finalCalled=!0,process.nextTick(F,ze,Ie)))}(ze,Ie),0===Ie.pendingcb&&(Ie.finished=!0,ze.emit("finish"),Ie.autoDestroy))){var Me=ze._readableState;(!Me||Me.autoDestroy&&Me.endEmitted)&&ze.destroy()}return K}m(3894)(ae,o),de.prototype.getBuffer=function(){for(var Ie=this.bufferedRequest,K=[];Ie;)K.push(Ie),Ie=Ie.next;return K},function(){try{Object.defineProperty(de.prototype,"buffer",{get:C.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(ze){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(oe=Function.prototype[Symbol.hasInstance],Object.defineProperty(ae,Symbol.hasInstance,{value:function(Ie){return!!oe.call(this,Ie)||this===ae&&Ie&&Ie._writableState instanceof de}})):oe=function(Ie){return Ie instanceof this},ae.prototype.pipe=function(){ce(this,new j)},ae.prototype.write=function(ze,Ie,K){var Me=this._writableState,we=!1,z=!Me.objectMode&&function s(ze){return M.isBuffer(ze)||ze instanceof l}(ze);return z&&!M.isBuffer(ze)&&(ze=function N(ze){return M.from(ze)}(ze)),"function"==typeof Ie&&(K=Ie,Ie=null),z?Ie="buffer":Ie||(Ie=Me.defaultEncoding),"function"!=typeof K&&(K=re),Me.ending?function b(ze,Ie){var K=new ee;ce(ze,K),process.nextTick(Ie,K)}(this,K):(z||function i(ze,Ie,K,Me){var we;return null===K?we=new ie:"string"!=typeof K&&!Ie.objectMode&&(we=new P("chunk",["string","Buffer"],K)),!we||(ce(ze,we),process.nextTick(Me,we),!1)}(this,Me,ze,K))&&(Me.pendingcb++,we=function p(ze,Ie,K,Me,we,z){if(!K){var Ge=function a(ze,Ie,K){return!ze.objectMode&&!1!==ze.decodeStrings&&"string"==typeof Ie&&(Ie=M.from(Ie,K)),Ie}(Ie,Me,we);Me!==Ge&&(K=!0,we="buffer",Me=Ge)}var vt=Ie.objectMode?1:Me.length;Ie.length+=vt;var Re=Ie.length-1))throw new _e(Ie);return this._writableState.defaultEncoding=Ie,this},Object.defineProperty(ae.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(ae.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),ae.prototype._write=function(ze,Ie,K){K(new w("_write()"))},ae.prototype._writev=null,ae.prototype.end=function(ze,Ie,K){var Me=this._writableState;return"function"==typeof ze?(K=ze,ze=null,Ie=null):"function"==typeof Ie&&(K=Ie,Ie=null),null!=ze&&this.write(ze,Ie),Me.corked&&(Me.corked=1,this.uncork()),Me.ending||function Ce(ze,Ie,K){Ie.ending=!0,ye(ze,Ie),K&&(Ie.finished?process.nextTick(K):ze.once("finish",K)),Ie.ended=!0,ze.writable=!1}(this,Me,K),this},Object.defineProperty(ae.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(ae.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(Ie){!this._writableState||(this._writableState.destroyed=Ie)}}),ae.prototype.destroy=D.destroy,ae.prototype._undestroy=D.undestroy,ae.prototype._destroy=function(ze,Ie){Ie(ze)}},3872:(Ve,Q,m)=>{"use strict";var e;function t(W,ie,ee){return ie in W?Object.defineProperty(W,ie,{value:ee,enumerable:!0,configurable:!0,writable:!0}):W[ie]=ee,W}var y=m(7542),C=Symbol("lastResolve"),o=Symbol("lastReject"),M=Symbol("error"),l=Symbol("ended"),N=Symbol("lastPromise"),s=Symbol("handlePromise"),D=Symbol("stream");function A(W,ie){return{value:W,done:ie}}function O(W){var ie=W[C];if(null!==ie){var ee=W[D].read();null!==ee&&(W[N]=null,W[C]=null,W[o]=null,ie(A(ee,!1)))}}function E(W){process.nextTick(O,W)}var w=Object.getPrototypeOf(function(){}),Z=Object.setPrototypeOf((t(e={get stream(){return this[D]},next:function(){var ie=this,ee=this[M];if(null!==ee)return Promise.reject(ee);if(this[l])return Promise.resolve(A(void 0,!0));if(this[D].destroyed)return new Promise(function(de,oe){process.nextTick(function(){ie[M]?oe(ie[M]):de(A(void 0,!0))})});var ce,_e=this[N];if(_e)ce=new Promise(function P(W,ie){return function(ee,_e){W.then(function(){ie[l]?ee(A(void 0,!0)):ie[s](ee,_e)},_e)}}(_e,this));else{var re=this[D].read();if(null!==re)return Promise.resolve(A(re,!1));ce=new Promise(this[s])}return this[N]=ce,ce}},Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var ie=this;return new Promise(function(ee,_e){ie[D].destroy(null,function(ce){ce?_e(ce):ee(A(void 0,!0))})})}),e),w);Ve.exports=function(ie){var ee,_e=Object.create(Z,(t(ee={},D,{value:ie,writable:!0}),t(ee,C,{value:null,writable:!0}),t(ee,o,{value:null,writable:!0}),t(ee,M,{value:null,writable:!0}),t(ee,l,{value:ie._readableState.endEmitted,writable:!0}),t(ee,s,{value:function(re,de){var oe=_e[D].read();oe?(_e[N]=null,_e[C]=null,_e[o]=null,re(A(oe,!1))):(_e[C]=re,_e[o]=de)},writable:!0}),ee));return _e[N]=null,y(ie,function(ce){if(ce&&"ERR_STREAM_PREMATURE_CLOSE"!==ce.code){var re=_e[o];return null!==re&&(_e[N]=null,_e[C]=null,_e[o]=null,re(ce)),void(_e[M]=ce)}var de=_e[C];null!==de&&(_e[N]=null,_e[C]=null,_e[o]=null,de(A(void 0,!0))),_e[l]=!0}),ie.on("readable",E.bind(null,_e)),_e}},5019:(Ve,Q,m)=>{"use strict";function e(E,P){var w=Object.keys(E);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(E);P&&(Z=Z.filter(function(j){return Object.getOwnPropertyDescriptor(E,j).enumerable})),w.push.apply(w,Z)}return w}function y(E,P,w){return P in E?Object.defineProperty(E,P,{value:w,enumerable:!0,configurable:!0,writable:!0}):E[P]=w,E}function o(E,P){for(var w=0;w0?this.tail.next=Z:this.head=Z,this.tail=Z,++this.length}},{key:"unshift",value:function(w){var Z={data:w,next:this.head};0===this.length&&(this.tail=Z),this.head=Z,++this.length}},{key:"shift",value:function(){if(0!==this.length){var w=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,w}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(w){if(0===this.length)return"";for(var Z=this.head,j=""+Z.data;Z=Z.next;)j+=w+Z.data;return j}},{key:"concat",value:function(w){if(0===this.length)return N.alloc(0);for(var Z=N.allocUnsafe(w>>>0),j=this.head,W=0;j;)O(j.data,Z,W),W+=j.data.length,j=j.next;return Z}},{key:"consume",value:function(w,Z){var j;return wie.length?ie.length:w;if(W+=ee===ie.length?ie:ie.slice(0,w),0==(w-=ee)){ee===ie.length?(++j,this.head=Z.next?Z.next:this.tail=null):(this.head=Z,Z.data=ie.slice(ee));break}++j}return this.length-=j,W}},{key:"_getBuffer",value:function(w){var Z=N.allocUnsafe(w),j=this.head,W=1;for(j.data.copy(Z),w-=j.data.length;j=j.next;){var ie=j.data,ee=w>ie.length?ie.length:w;if(ie.copy(Z,Z.length-w,0,ee),0==(w-=ee)){ee===ie.length?(++W,this.head=j.next?j.next:this.tail=null):(this.head=j,j.data=ie.slice(ee));break}++W}return this.length-=W,Z}},{key:A,value:function(w,Z){return D(this,function t(E){for(var P=1;P{"use strict";function m(o,M){y(o,M),e(o)}function e(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function y(o,M){o.emit("error",M)}Ve.exports={destroy:function Q(o,M){var l=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(M?M(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(y,this,o)):process.nextTick(y,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(D){!M&&D?l._writableState?l._writableState.errorEmitted?process.nextTick(e,l):(l._writableState.errorEmitted=!0,process.nextTick(m,l,D)):process.nextTick(m,l,D):M?(process.nextTick(e,l),M(D)):process.nextTick(e,l)}),this)},undestroy:function t(){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 C(o,M){var l=o._readableState,N=o._writableState;l&&l.autoDestroy||N&&N.autoDestroy?o.destroy(M):o.emit("error",M)}}},7542:(Ve,Q,m)=>{"use strict";var e=m(891).q.ERR_STREAM_PREMATURE_CLOSE;function y(){}Ve.exports=function o(M,l,N){if("function"==typeof l)return o(M,null,l);l||(l={}),N=function t(M){var l=!1;return function(){if(!l){l=!0;for(var N=arguments.length,s=new Array(N),D=0;D{Ve.exports=function(){throw new Error("Readable.from is not available in the browser")}},954:(Ve,Q,m)=>{"use strict";var e,y=m(891).q,C=y.ERR_MISSING_ARGS,o=y.ERR_STREAM_DESTROYED;function M(E){if(E)throw E}function N(E,P,w,Z){Z=function t(E){var P=!1;return function(){P||(P=!0,E.apply(void 0,arguments))}}(Z);var j=!1;E.on("close",function(){j=!0}),void 0===e&&(e=m(7542)),e(E,{readable:P,writable:w},function(ie){if(ie)return Z(ie);j=!0,Z()});var W=!1;return function(ie){if(!j&&!W){if(W=!0,function l(E){return E.setHeader&&"function"==typeof E.abort}(E))return E.abort();if("function"==typeof E.destroy)return E.destroy();Z(ie||new o("pipe"))}}}function s(E){E()}function D(E,P){return E.pipe(P)}function A(E){return E.length&&"function"==typeof E[E.length-1]?E.pop():M}Ve.exports=function O(){for(var E=arguments.length,P=new Array(E),w=0;w0,function(re){j||(j=re),re&&W.forEach(s),!_e&&(W.forEach(s),Z(j))})});return P.reduce(D)}},7102:(Ve,Q,m)=>{"use strict";var e=m(891).q.ERR_INVALID_OPT_VALUE;Ve.exports={getHighWaterMark:function y(C,o,M,l){var N=function t(C,o,M){return null!=C.highWaterMark?C.highWaterMark:o?C[M]:null}(o,l,M);if(null!=N){if(!isFinite(N)||Math.floor(N)!==N||N<0)throw new e(l?M:"highWaterMark",N);return Math.floor(N)}return C.objectMode?16:16384}}},4970:(Ve,Q,m)=>{Ve.exports=m(9069).EventEmitter},5685:(Ve,Q,m)=>{(Q=Ve.exports=m(3154)).Stream=Q,Q.Readable=Q,Q.Writable=m(520),Q.Duplex=m(1339),Q.Transform=m(6025),Q.PassThrough=m(6071),Q.finished=m(7542),Q.pipeline=m(954)},5634:(Ve,Q,m)=>{"use strict";var e=m(3172).Buffer,t=m(3894),y=m(9650),C=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],M=[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],l=[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],N=[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],s=[0,1518500249,1859775393,2400959708,2840853838],D=[1352829926,1548603684,1836072691,2053994217,0];function A(){y.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function O(W,ie){return W<>>32-ie}function E(W,ie,ee,_e,ce,re,de,oe){return O(W+(ie^ee^_e)+re+de|0,oe)+ce|0}function P(W,ie,ee,_e,ce,re,de,oe){return O(W+(ie&ee|~ie&_e)+re+de|0,oe)+ce|0}function w(W,ie,ee,_e,ce,re,de,oe){return O(W+((ie|~ee)^_e)+re+de|0,oe)+ce|0}function Z(W,ie,ee,_e,ce,re,de,oe){return O(W+(ie&_e|ee&~_e)+re+de|0,oe)+ce|0}function j(W,ie,ee,_e,ce,re,de,oe){return O(W+(ie^(ee|~_e))+re+de|0,oe)+ce|0}t(A,y),A.prototype._update=function(){for(var W=C,ie=0;ie<16;++ie)W[ie]=this._block.readInt32LE(4*ie);for(var ee=0|this._a,_e=0|this._b,ce=0|this._c,re=0|this._d,de=0|this._e,oe=0|this._a,ae=0|this._b,b=0|this._c,i=0|this._d,a=0|this._e,p=0;p<80;p+=1){var u,_;p<16?(u=E(ee,_e,ce,re,de,W[o[p]],s[0],l[p]),_=j(oe,ae,b,i,a,W[M[p]],D[0],N[p])):p<32?(u=P(ee,_e,ce,re,de,W[o[p]],s[1],l[p]),_=Z(oe,ae,b,i,a,W[M[p]],D[1],N[p])):p<48?(u=w(ee,_e,ce,re,de,W[o[p]],s[2],l[p]),_=w(oe,ae,b,i,a,W[M[p]],D[2],N[p])):p<64?(u=Z(ee,_e,ce,re,de,W[o[p]],s[3],l[p]),_=P(oe,ae,b,i,a,W[M[p]],D[3],N[p])):(u=j(ee,_e,ce,re,de,W[o[p]],s[4],l[p]),_=E(oe,ae,b,i,a,W[M[p]],D[4],N[p])),ee=de,de=re,re=O(ce,10),ce=_e,_e=u,oe=a,a=i,i=O(b,10),b=ae,ae=_}var L=this._b+ce+i|0;this._b=this._c+re+a|0,this._c=this._d+de+oe|0,this._d=this._e+ee+ae|0,this._e=this._a+_e+b|0,this._a=L},A.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 W=e.alloc?e.alloc(20):new e(20);return W.writeInt32LE(this._a,0),W.writeInt32LE(this._b,4),W.writeInt32LE(this._c,8),W.writeInt32LE(this._d,12),W.writeInt32LE(this._e,16),W},Ve.exports=A},1135:(Ve,Q,m)=>{"use strict";m.d(Q,{X:()=>t});var e=m(7579);class t extends e.x{constructor(C){super(),this._value=C}get value(){return this.getValue()}_subscribe(C){const o=super._subscribe(C);return!o.closed&&C.next(this._value),o}getValue(){const{hasError:C,thrownError:o,_value:M}=this;if(C)throw o;return this._throwIfClosed(),M}next(C){super.next(this._value=C)}}},8306:(Ve,Q,m)=>{"use strict";m.d(Q,{y:()=>D});var e=m(930),t=m(727),y=m(8822),C=m(4671);var l=m(2416),N=m(576),s=m(2806);let D=(()=>{class P{constructor(Z){Z&&(this._subscribe=Z)}lift(Z){const j=new P;return j.source=this,j.operator=Z,j}subscribe(Z,j,W){const ie=function E(P){return P&&P instanceof e.Lv||function O(P){return P&&(0,N.m)(P.next)&&(0,N.m)(P.error)&&(0,N.m)(P.complete)}(P)&&(0,t.Nn)(P)}(Z)?Z:new e.Hp(Z,j,W);return(0,s.x)(()=>{const{operator:ee,source:_e}=this;ie.add(ee?ee.call(ie,_e):_e?this._subscribe(ie):this._trySubscribe(ie))}),ie}_trySubscribe(Z){try{return this._subscribe(Z)}catch(j){Z.error(j)}}forEach(Z,j){return new(j=A(j))((W,ie)=>{let ee;ee=this.subscribe(_e=>{try{Z(_e)}catch(ce){ie(ce),null==ee||ee.unsubscribe()}},ie,W)})}_subscribe(Z){var j;return null===(j=this.source)||void 0===j?void 0:j.subscribe(Z)}[y.L](){return this}pipe(...Z){return function M(P){return 0===P.length?C.y:1===P.length?P[0]:function(Z){return P.reduce((j,W)=>W(j),Z)}}(Z)(this)}toPromise(Z){return new(Z=A(Z))((j,W)=>{let ie;this.subscribe(ee=>ie=ee,ee=>W(ee),()=>j(ie))})}}return P.create=w=>new P(w),P})();function A(P){var w;return null!==(w=null!=P?P:l.v.Promise)&&void 0!==w?w:Promise}},4707:(Ve,Q,m)=>{"use strict";m.d(Q,{t:()=>y});var e=m(7579),t=m(6063);class y extends e.x{constructor(o=1/0,M=1/0,l=t.l){super(),this._bufferSize=o,this._windowTime=M,this._timestampProvider=l,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=M===1/0,this._bufferSize=Math.max(1,o),this._windowTime=Math.max(1,M)}next(o){const{isStopped:M,_buffer:l,_infiniteTimeWindow:N,_timestampProvider:s,_windowTime:D}=this;M||(l.push(o),!N&&l.push(s.now()+D)),this._trimBuffer(),super.next(o)}_subscribe(o){this._throwIfClosed(),this._trimBuffer();const M=this._innerSubscribe(o),{_infiniteTimeWindow:l,_buffer:N}=this,s=N.slice();for(let D=0;D{"use strict";m.d(Q,{u:()=>N,x:()=>l});var e=m(8306),t=m(727);const C=(0,m(3888).d)(s=>function(){s(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var o=m(8737),M=m(2806);let l=(()=>{class s extends e.y{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(A){const O=new N(this,this);return O.operator=A,O}_throwIfClosed(){if(this.closed)throw new C}next(A){(0,M.x)(()=>{if(this._throwIfClosed(),!this.isStopped){const O=this.observers.slice();for(const E of O)E.next(A)}})}error(A){(0,M.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=A;const{observers:O}=this;for(;O.length;)O.shift().error(A)}})}complete(){(0,M.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:A}=this;for(;A.length;)A.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var A;return(null===(A=this.observers)||void 0===A?void 0:A.length)>0}_trySubscribe(A){return this._throwIfClosed(),super._trySubscribe(A)}_subscribe(A){return this._throwIfClosed(),this._checkFinalizedStatuses(A),this._innerSubscribe(A)}_innerSubscribe(A){const{hasError:O,isStopped:E,observers:P}=this;return O||E?t.Lc:(P.push(A),new t.w0(()=>(0,o.P)(P,A)))}_checkFinalizedStatuses(A){const{hasError:O,thrownError:E,isStopped:P}=this;O?A.error(E):P&&A.complete()}asObservable(){const A=new e.y;return A.source=this,A}}return s.create=(D,A)=>new N(D,A),s})();class N extends l{constructor(D,A){super(),this.destination=D,this.source=A}next(D){var A,O;null===(O=null===(A=this.destination)||void 0===A?void 0:A.next)||void 0===O||O.call(A,D)}error(D){var A,O;null===(O=null===(A=this.destination)||void 0===A?void 0:A.error)||void 0===O||O.call(A,D)}complete(){var D,A;null===(A=null===(D=this.destination)||void 0===D?void 0:D.complete)||void 0===A||A.call(D)}_subscribe(D){var A,O;return null!==(O=null===(A=this.source)||void 0===A?void 0:A.subscribe(D))&&void 0!==O?O:t.Lc}}},930:(Ve,Q,m)=>{"use strict";m.d(Q,{Hp:()=>E,Lv:()=>O});var e=m(576),t=m(727),y=m(2416),C=m(7849),o=m(5032);const M=s("C",void 0,void 0);function s(W,ie,ee){return{kind:W,value:ie,error:ee}}var D=m(3410),A=m(2806);class O extends t.w0{constructor(ie){super(),this.isStopped=!1,ie?(this.destination=ie,(0,t.Nn)(ie)&&ie.add(this)):this.destination=j}static create(ie,ee,_e){return new E(ie,ee,_e)}next(ie){this.isStopped?Z(function N(W){return s("N",W,void 0)}(ie),this):this._next(ie)}error(ie){this.isStopped?Z(function l(W){return s("E",void 0,W)}(ie),this):(this.isStopped=!0,this._error(ie))}complete(){this.isStopped?Z(M,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(ie){this.destination.next(ie)}_error(ie){try{this.destination.error(ie)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}class E extends O{constructor(ie,ee,_e){let ce;if(super(),(0,e.m)(ie))ce=ie;else if(ie){let re;({next:ce,error:ee,complete:_e}=ie),this&&y.v.useDeprecatedNextContext?(re=Object.create(ie),re.unsubscribe=()=>this.unsubscribe()):re=ie,ce=null==ce?void 0:ce.bind(re),ee=null==ee?void 0:ee.bind(re),_e=null==_e?void 0:_e.bind(re)}this.destination={next:ce?P(ce):o.Z,error:P(null!=ee?ee:w),complete:_e?P(_e):o.Z}}}function P(W,ie){return(...ee)=>{try{W(...ee)}catch(_e){y.v.useDeprecatedSynchronousErrorHandling?(0,A.O)(_e):(0,C.h)(_e)}}}function w(W){throw W}function Z(W,ie){const{onStoppedNotification:ee}=y.v;ee&&D.z.setTimeout(()=>ee(W,ie))}const j={closed:!0,next:o.Z,error:w,complete:o.Z}},727:(Ve,Q,m)=>{"use strict";m.d(Q,{Lc:()=>M,w0:()=>o,Nn:()=>l});var e=m(576);const y=(0,m(3888).d)(s=>function(A){s(this),this.message=A?`${A.length} errors occurred during unsubscription:\n${A.map((O,E)=>`${E+1}) ${O.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=A});var C=m(8737);class o{constructor(D){this.initialTeardown=D,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let D;if(!this.closed){this.closed=!0;const{_parentage:A}=this;if(A)if(this._parentage=null,Array.isArray(A))for(const P of A)P.remove(this);else A.remove(this);const{initialTeardown:O}=this;if((0,e.m)(O))try{O()}catch(P){D=P instanceof y?P.errors:[P]}const{_teardowns:E}=this;if(E){this._teardowns=null;for(const P of E)try{N(P)}catch(w){D=null!=D?D:[],w instanceof y?D=[...D,...w.errors]:D.push(w)}}if(D)throw new y(D)}}add(D){var A;if(D&&D!==this)if(this.closed)N(D);else{if(D instanceof o){if(D.closed||D._hasParent(this))return;D._addParent(this)}(this._teardowns=null!==(A=this._teardowns)&&void 0!==A?A:[]).push(D)}}_hasParent(D){const{_parentage:A}=this;return A===D||Array.isArray(A)&&A.includes(D)}_addParent(D){const{_parentage:A}=this;this._parentage=Array.isArray(A)?(A.push(D),A):A?[A,D]:D}_removeParent(D){const{_parentage:A}=this;A===D?this._parentage=null:Array.isArray(A)&&(0,C.P)(A,D)}remove(D){const{_teardowns:A}=this;A&&(0,C.P)(A,D),D instanceof o&&D._removeParent(this)}}o.EMPTY=(()=>{const s=new o;return s.closed=!0,s})();const M=o.EMPTY;function l(s){return s instanceof o||s&&"closed"in s&&(0,e.m)(s.remove)&&(0,e.m)(s.add)&&(0,e.m)(s.unsubscribe)}function N(s){(0,e.m)(s)?s():s.unsubscribe()}},2416:(Ve,Q,m)=>{"use strict";m.d(Q,{v:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(Ve,Q,m)=>{"use strict";m.d(Q,{a:()=>D});var e=m(8306),t=m(4742),y=m(457),C=m(4671),o=m(3268),M=m(3269),l=m(1810),N=m(5403),s=m(9672);function D(...E){const P=(0,M.yG)(E),w=(0,M.jO)(E),{args:Z,keys:j}=(0,t.D)(E);if(0===Z.length)return(0,y.D)([],P);const W=new e.y(function A(E,P,w=C.y){return Z=>{O(P,()=>{const{length:j}=E,W=new Array(j);let ie=j,ee=j;for(let _e=0;_e{const ce=(0,y.D)(E[_e],P);let re=!1;ce.subscribe(new N.Q(Z,de=>{W[_e]=de,re||(re=!0,ee--),ee||Z.next(w(W.slice()))},()=>{--ie||Z.complete()}))},Z)},Z)}}(Z,P,j?ie=>(0,l.n)(j,ie):C.y));return w?W.pipe((0,o.Z)(w)):W}function O(E,P,w){E?(0,s.f)(w,E,P):P()}},7272:(Ve,Q,m)=>{"use strict";m.d(Q,{z:()=>o});var e=m(8189),y=m(3269),C=m(457);function o(...M){return function t(){return(0,e.J)(1)}()((0,C.D)(M,(0,y.yG)(M)))}},9770:(Ve,Q,m)=>{"use strict";m.d(Q,{P:()=>y});var e=m(8306),t=m(8421);function y(C){return new e.y(o=>{(0,t.Xf)(C()).subscribe(o)})}},515:(Ve,Q,m)=>{"use strict";m.d(Q,{E:()=>t});const t=new(m(8306).y)(o=>o.complete())},4128:(Ve,Q,m)=>{"use strict";m.d(Q,{D:()=>N});var e=m(8306),t=m(4742),y=m(8421),C=m(3269),o=m(5403),M=m(3268),l=m(1810);function N(...s){const D=(0,C.jO)(s),{args:A,keys:O}=(0,t.D)(s),E=new e.y(P=>{const{length:w}=A;if(!w)return void P.complete();const Z=new Array(w);let j=w,W=w;for(let ie=0;ie{ee||(ee=!0,W--),Z[ie]=_e},()=>j--,void 0,()=>{(!j||!ee)&&(W||P.next(O?(0,l.n)(O,Z):Z),P.complete())}))}});return D?E.pipe((0,M.Z)(D)):E}},457:(Ve,Q,m)=>{"use strict";m.d(Q,{D:()=>re});var e=m(8421),t=m(5363),y=m(4482);function C(de,oe=0){return(0,y.e)((ae,b)=>{b.add(de.schedule(()=>ae.subscribe(b),oe))})}var l=m(8306),s=m(2202),D=m(576),A=m(9672);function E(de,oe){if(!de)throw new Error("Iterable cannot be null");return new l.y(ae=>{(0,A.f)(ae,oe,()=>{const b=de[Symbol.asyncIterator]();(0,A.f)(ae,oe,()=>{b.next().then(i=>{i.done?ae.complete():ae.next(i.value)})},0,!0)})})}var P=m(3670),w=m(8239),Z=m(1144),j=m(6495),W=m(2206),ie=m(4532),ee=m(3260);function re(de,oe){return oe?function ce(de,oe){if(null!=de){if((0,P.c)(de))return function o(de,oe){return(0,e.Xf)(de).pipe(C(oe),(0,t.Q)(oe))}(de,oe);if((0,Z.z)(de))return function N(de,oe){return new l.y(ae=>{let b=0;return oe.schedule(function(){b===de.length?ae.complete():(ae.next(de[b++]),ae.closed||this.schedule())})})}(de,oe);if((0,w.t)(de))return function M(de,oe){return(0,e.Xf)(de).pipe(C(oe),(0,t.Q)(oe))}(de,oe);if((0,W.D)(de))return E(de,oe);if((0,j.T)(de))return function O(de,oe){return new l.y(ae=>{let b;return(0,A.f)(ae,oe,()=>{b=de[s.h](),(0,A.f)(ae,oe,()=>{let i,a;try{({value:i,done:a}=b.next())}catch(p){return void ae.error(p)}a?ae.complete():ae.next(i)},0,!0)}),()=>(0,D.m)(null==b?void 0:b.return)&&b.return()})}(de,oe);if((0,ee.L)(de))return function _e(de,oe){return E((0,ee.Q)(de),oe)}(de,oe)}throw(0,ie.z)(de)}(de,oe):(0,e.Xf)(de)}},4968:(Ve,Q,m)=>{"use strict";m.d(Q,{R:()=>D});var e=m(8421),t=m(8306),y=m(5577),C=m(1144),o=m(576),M=m(3268);const l=["addListener","removeListener"],N=["addEventListener","removeEventListener"],s=["on","off"];function D(w,Z,j,W){if((0,o.m)(j)&&(W=j,j=void 0),W)return D(w,Z,j).pipe((0,M.Z)(W));const[ie,ee]=function P(w){return(0,o.m)(w.addEventListener)&&(0,o.m)(w.removeEventListener)}(w)?N.map(_e=>ce=>w[_e](Z,ce,j)):function O(w){return(0,o.m)(w.addListener)&&(0,o.m)(w.removeListener)}(w)?l.map(A(w,Z)):function E(w){return(0,o.m)(w.on)&&(0,o.m)(w.off)}(w)?s.map(A(w,Z)):[];if(!ie&&(0,C.z)(w))return(0,y.z)(_e=>D(_e,Z,j))((0,e.Xf)(w));if(!ie)throw new TypeError("Invalid event target");return new t.y(_e=>{const ce=(...re)=>_e.next(1ee(ce)})}function A(w,Z){return j=>W=>w[j](Z,W)}},8421:(Ve,Q,m)=>{"use strict";m.d(Q,{Xf:()=>E});var e=m(5987),t=m(1144),y=m(8239),C=m(8306),o=m(3670),M=m(2206),l=m(4532),N=m(6495),s=m(3260),D=m(576),A=m(7849),O=m(8822);function E(_e){if(_e instanceof C.y)return _e;if(null!=_e){if((0,o.c)(_e))return function P(_e){return new C.y(ce=>{const re=_e[O.L]();if((0,D.m)(re.subscribe))return re.subscribe(ce);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(_e);if((0,t.z)(_e))return function w(_e){return new C.y(ce=>{for(let re=0;re<_e.length&&!ce.closed;re++)ce.next(_e[re]);ce.complete()})}(_e);if((0,y.t)(_e))return function Z(_e){return new C.y(ce=>{_e.then(re=>{ce.closed||(ce.next(re),ce.complete())},re=>ce.error(re)).then(null,A.h)})}(_e);if((0,M.D)(_e))return W(_e);if((0,N.T)(_e))return function j(_e){return new C.y(ce=>{for(const re of _e)if(ce.next(re),ce.closed)return;ce.complete()})}(_e);if((0,s.L)(_e))return function ie(_e){return W((0,s.Q)(_e))}(_e)}throw(0,l.z)(_e)}function W(_e){return new C.y(ce=>{(function ee(_e,ce){var re,de,oe,ae;return(0,e.mG)(this,void 0,void 0,function*(){try{for(re=(0,e.KL)(_e);!(de=yield re.next()).done;)if(ce.next(de.value),ce.closed)return}catch(b){oe={error:b}}finally{try{de&&!de.done&&(ae=re.return)&&(yield ae.call(re))}finally{if(oe)throw oe.error}}ce.complete()})})(_e,ce).catch(re=>ce.error(re))})}},6451:(Ve,Q,m)=>{"use strict";m.d(Q,{T:()=>M});var e=m(8189),t=m(8421),y=m(515),C=m(3269),o=m(457);function M(...l){const N=(0,C.yG)(l),s=(0,C._6)(l,1/0),D=l;return D.length?1===D.length?(0,t.Xf)(D[0]):(0,e.J)(s)((0,o.D)(D,N)):y.E}},9646:(Ve,Q,m)=>{"use strict";m.d(Q,{of:()=>y});var e=m(3269),t=m(457);function y(...C){const o=(0,e.yG)(C);return(0,t.D)(C,o)}},2843:(Ve,Q,m)=>{"use strict";m.d(Q,{_:()=>y});var e=m(8306),t=m(576);function y(C,o){const M=(0,t.m)(C)?C:()=>C,l=N=>N.error(M());return new e.y(o?N=>o.schedule(l,0,N):l)}},2805:(Ve,Q,m)=>{"use strict";m.d(Q,{H:()=>o});var e=m(8306),t=m(4986),y=m(3532),C=m(1165);function o(M=0,l,N=t.P){let s=-1;return null!=l&&((0,y.K)(l)?N=l:s=l),new e.y(D=>{let A=(0,C.q)(M)?+M-N.now():M;A<0&&(A=0);let O=0;return N.schedule(function(){D.closed||(D.next(O++),0<=s?this.schedule(void 0,s):D.complete())},A)})}},5403:(Ve,Q,m)=>{"use strict";m.d(Q,{Q:()=>t});var e=m(930);class t extends e.Lv{constructor(C,o,M,l,N){super(C),this.onFinalize=N,this._next=o?function(s){try{o(s)}catch(D){C.error(D)}}:super._next,this._error=l?function(s){try{l(s)}catch(D){C.error(D)}finally{this.unsubscribe()}}:super._error,this._complete=M?function(){try{M()}catch(s){C.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var C;const{closed:o}=this;super.unsubscribe(),!o&&(null===(C=this.onFinalize)||void 0===C||C.call(this))}}},3601:(Ve,Q,m)=>{"use strict";m.d(Q,{e:()=>l});var e=m(4986),t=m(4482),y=m(8421),C=m(5403),M=m(2805);function l(N,s=e.P){return function o(N){return(0,t.e)((s,D)=>{let A=!1,O=null,E=null,P=!1;const w=()=>{if(null==E||E.unsubscribe(),E=null,A){A=!1;const j=O;O=null,D.next(j)}P&&D.complete()},Z=()=>{E=null,P&&D.complete()};s.subscribe(new C.Q(D,j=>{A=!0,O=j,E||(0,y.Xf)(N(j)).subscribe(E=new C.Q(D,w,Z))},()=>{P=!0,(!A||!E||E.closed)&&D.complete()}))})}(()=>(0,M.H)(N,s))}},262:(Ve,Q,m)=>{"use strict";m.d(Q,{K:()=>C});var e=m(8421),t=m(5403),y=m(4482);function C(o){return(0,y.e)((M,l)=>{let D,N=null,s=!1;N=M.subscribe(new t.Q(l,void 0,void 0,A=>{D=(0,e.Xf)(o(A,C(o)(M))),N?(N.unsubscribe(),N=null,D.subscribe(l)):s=!0})),s&&(N.unsubscribe(),N=null,D.subscribe(l))})}},4351:(Ve,Q,m)=>{"use strict";m.d(Q,{b:()=>y});var e=m(5577),t=m(576);function y(C,o){return(0,t.m)(o)?(0,e.z)(C,o,1):(0,e.z)(C,1)}},8372:(Ve,Q,m)=>{"use strict";m.d(Q,{b:()=>C});var e=m(4986),t=m(4482),y=m(5403);function C(o,M=e.z){return(0,t.e)((l,N)=>{let s=null,D=null,A=null;const O=()=>{if(s){s.unsubscribe(),s=null;const P=D;D=null,N.next(P)}};function E(){const P=A+o,w=M.now();if(w{D=P,A=M.now(),s||(s=M.schedule(E,o),N.add(s))},()=>{O(),N.complete()},void 0,()=>{D=s=null}))})}},6590:(Ve,Q,m)=>{"use strict";m.d(Q,{d:()=>y});var e=m(4482),t=m(5403);function y(C){return(0,e.e)((o,M)=>{let l=!1;o.subscribe(new t.Q(M,N=>{l=!0,M.next(N)},()=>{l||M.next(C),M.complete()}))})}},4086:(Ve,Q,m)=>{"use strict";m.d(Q,{g:()=>s});var e=m(4986),t=m(7272),y=m(5698),C=m(8502),o=m(9718),M=m(5577);function l(D,A){return A?O=>(0,t.z)(A.pipe((0,y.q)(1),(0,C.l)()),O.pipe(l(D))):(0,M.z)((O,E)=>D(O,E).pipe((0,y.q)(1),(0,o.h)(O)))}var N=m(2805);function s(D,A=e.z){const O=(0,N.H)(D,A);return l(()=>O)}},1884:(Ve,Q,m)=>{"use strict";m.d(Q,{x:()=>C});var e=m(4671),t=m(4482),y=m(5403);function C(M,l=e.y){return M=null!=M?M:o,(0,t.e)((N,s)=>{let D,A=!0;N.subscribe(new y.Q(s,O=>{const E=l(O);(A||!M(D,E))&&(A=!1,D=E,s.next(O))}))})}function o(M,l){return M===l}},9300:(Ve,Q,m)=>{"use strict";m.d(Q,{h:()=>y});var e=m(4482),t=m(5403);function y(C,o){return(0,e.e)((M,l)=>{let N=0;M.subscribe(new t.Q(l,s=>C.call(o,s,N++)&&l.next(s)))})}},8746:(Ve,Q,m)=>{"use strict";m.d(Q,{x:()=>t});var e=m(4482);function t(y){return(0,e.e)((C,o)=>{try{C.subscribe(o)}finally{o.add(y)}})}},590:(Ve,Q,m)=>{"use strict";m.d(Q,{P:()=>l});var e=m(6805),t=m(9300),y=m(5698),C=m(6590),o=m(8068),M=m(4671);function l(N,s){const D=arguments.length>=2;return A=>A.pipe(N?(0,t.h)((O,E)=>N(O,E,A)):M.y,(0,y.q)(1),D?(0,C.d)(s):(0,o.T)(()=>new e.K))}},8502:(Ve,Q,m)=>{"use strict";m.d(Q,{l:()=>C});var e=m(4482),t=m(5403),y=m(5032);function C(){return(0,e.e)((o,M)=>{o.subscribe(new t.Q(M,y.Z))})}},4004:(Ve,Q,m)=>{"use strict";m.d(Q,{U:()=>y});var e=m(4482),t=m(5403);function y(C,o){return(0,e.e)((M,l)=>{let N=0;M.subscribe(new t.Q(l,s=>{l.next(C.call(o,s,N++))}))})}},9718:(Ve,Q,m)=>{"use strict";m.d(Q,{h:()=>t});var e=m(4004);function t(y){return(0,e.U)(()=>y)}},8189:(Ve,Q,m)=>{"use strict";m.d(Q,{J:()=>y});var e=m(5577),t=m(4671);function y(C=1/0){return(0,e.z)(t.y,C)}},5577:(Ve,Q,m)=>{"use strict";m.d(Q,{z:()=>N});var e=m(4004),t=m(8421),y=m(4482),C=m(9672),o=m(5403),l=m(576);function N(s,D,A=1/0){return(0,l.m)(D)?N((O,E)=>(0,e.U)((P,w)=>D(O,P,E,w))((0,t.Xf)(s(O,E))),A):("number"==typeof D&&(A=D),(0,y.e)((O,E)=>function M(s,D,A,O,E,P,w,Z){const j=[];let W=0,ie=0,ee=!1;const _e=()=>{ee&&!j.length&&!W&&D.complete()},ce=de=>W{P&&D.next(de),W++;let oe=!1;(0,t.Xf)(A(de,ie++)).subscribe(new o.Q(D,ae=>{null==E||E(ae),P?ce(ae):D.next(ae)},()=>{oe=!0},void 0,()=>{if(oe)try{for(W--;j.length&&Wre(ae)):re(ae)}_e()}catch(ae){D.error(ae)}}))};return s.subscribe(new o.Q(D,ce,()=>{ee=!0,_e()})),()=>{null==Z||Z()}}(O,E,s,A)))}},5363:(Ve,Q,m)=>{"use strict";m.d(Q,{Q:()=>C});var e=m(9672),t=m(4482),y=m(5403);function C(o,M=0){return(0,t.e)((l,N)=>{l.subscribe(new y.Q(N,s=>(0,e.f)(N,o,()=>N.next(s),M),()=>(0,e.f)(N,o,()=>N.complete(),M),s=>(0,e.f)(N,o,()=>N.error(s),M)))})}},5026:(Ve,Q,m)=>{"use strict";m.d(Q,{R:()=>C});var e=m(4482),t=m(5403);function y(o,M,l,N,s){return(D,A)=>{let O=l,E=M,P=0;D.subscribe(new t.Q(A,w=>{const Z=P++;E=O?o(E,w,Z):(O=!0,w),N&&A.next(E)},s&&(()=>{O&&A.next(E),A.complete()})))}}function C(o,M){return(0,e.e)(y(o,M,arguments.length>=2,!0))}},3099:(Ve,Q,m)=>{"use strict";m.d(Q,{B:()=>M});var e=m(457),t=m(5698),y=m(7579),C=m(930),o=m(4482);function M(N={}){const{connector:s=(()=>new y.x),resetOnError:D=!0,resetOnComplete:A=!0,resetOnRefCountZero:O=!0}=N;return E=>{let P=null,w=null,Z=null,j=0,W=!1,ie=!1;const ee=()=>{null==w||w.unsubscribe(),w=null},_e=()=>{ee(),P=Z=null,W=ie=!1},ce=()=>{const re=P;_e(),null==re||re.unsubscribe()};return(0,o.e)((re,de)=>{j++,!ie&&!W&&ee();const oe=Z=null!=Z?Z:s();de.add(()=>{j--,0===j&&!ie&&!W&&(w=l(ce,O))}),oe.subscribe(de),P||(P=new C.Hp({next:ae=>oe.next(ae),error:ae=>{ie=!0,ee(),w=l(_e,D,ae),oe.error(ae)},complete:()=>{W=!0,ee(),w=l(_e,A),oe.complete()}}),(0,e.D)(re).subscribe(P))})(E)}}function l(N,s,...D){return!0===s?(N(),null):!1===s?null:s(...D).pipe((0,t.q)(1)).subscribe(()=>N())}},5684:(Ve,Q,m)=>{"use strict";m.d(Q,{T:()=>t});var e=m(9300);function t(y){return(0,e.h)((C,o)=>y<=o)}},8675:(Ve,Q,m)=>{"use strict";m.d(Q,{O:()=>C});var e=m(7272),t=m(3269),y=m(4482);function C(...o){const M=(0,t.yG)(o);return(0,y.e)((l,N)=>{(M?(0,e.z)(o,l,M):(0,e.z)(o,l)).subscribe(N)})}},3900:(Ve,Q,m)=>{"use strict";m.d(Q,{w:()=>C});var e=m(8421),t=m(4482),y=m(5403);function C(o,M){return(0,t.e)((l,N)=>{let s=null,D=0,A=!1;const O=()=>A&&!s&&N.complete();l.subscribe(new y.Q(N,E=>{null==s||s.unsubscribe();let P=0;const w=D++;(0,e.Xf)(o(E,w)).subscribe(s=new y.Q(N,Z=>N.next(M?M(E,Z,w,P++):Z),()=>{s=null,O()}))},()=>{A=!0,O()}))})}},5698:(Ve,Q,m)=>{"use strict";m.d(Q,{q:()=>C});var e=m(515),t=m(4482),y=m(5403);function C(o){return o<=0?()=>e.E:(0,t.e)((M,l)=>{let N=0;M.subscribe(new y.Q(l,s=>{++N<=o&&(l.next(s),o<=N&&l.complete())}))})}},2722:(Ve,Q,m)=>{"use strict";m.d(Q,{R:()=>o});var e=m(4482),t=m(5403),y=m(8421),C=m(5032);function o(M){return(0,e.e)((l,N)=>{(0,y.Xf)(M).subscribe(new t.Q(N,()=>N.complete(),C.Z)),!N.closed&&l.subscribe(N)})}},8505:(Ve,Q,m)=>{"use strict";m.d(Q,{b:()=>o});var e=m(576),t=m(4482),y=m(5403),C=m(4671);function o(M,l,N){const s=(0,e.m)(M)||l||N?{next:M,error:l,complete:N}:M;return s?(0,t.e)((D,A)=>{var O;null===(O=s.subscribe)||void 0===O||O.call(s);let E=!0;D.subscribe(new y.Q(A,P=>{var w;null===(w=s.next)||void 0===w||w.call(s,P),A.next(P)},()=>{var P;E=!1,null===(P=s.complete)||void 0===P||P.call(s),A.complete()},P=>{var w;E=!1,null===(w=s.error)||void 0===w||w.call(s,P),A.error(P)},()=>{var P,w;E&&(null===(P=s.unsubscribe)||void 0===P||P.call(s)),null===(w=s.finalize)||void 0===w||w.call(s)}))}):C.y}},8068:(Ve,Q,m)=>{"use strict";m.d(Q,{T:()=>C});var e=m(6805),t=m(4482),y=m(5403);function C(M=o){return(0,t.e)((l,N)=>{let s=!1;l.subscribe(new y.Q(N,D=>{s=!0,N.next(D)},()=>s?N.complete():N.error(M())))})}function o(){return new e.K}},7414:(Ve,Q,m)=>{"use strict";m.d(Q,{V:()=>s});var e=m(4986),t=m(1165),y=m(4482),C=m(8421),o=m(3888),M=m(5403),l=m(9672);const N=(0,o.d)(A=>function(E=null){A(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=E});function s(A,O){const{first:E,each:P,with:w=D,scheduler:Z=(null!=O?O:e.z),meta:j=null}=(0,t.q)(A)?{first:A}:"number"==typeof A?{each:A}:A;if(null==E&&null==P)throw new TypeError("No timeout provided.");return(0,y.e)((W,ie)=>{let ee,_e,ce=null,re=0;const de=oe=>{_e=(0,l.f)(ie,Z,()=>{try{ee.unsubscribe(),(0,C.Xf)(w({meta:j,lastValue:ce,seen:re})).subscribe(ie)}catch(ae){ie.error(ae)}},oe)};ee=W.subscribe(new M.Q(ie,oe=>{null==_e||_e.unsubscribe(),re++,ie.next(ce=oe),P>0&&de(P)},void 0,void 0,()=>{(null==_e?void 0:_e.closed)||null==_e||_e.unsubscribe(),ce=null})),de(null!=E?"number"==typeof E?E:+E-Z.now():P)})}function D(A){throw new N(A)}},1365:(Ve,Q,m)=>{"use strict";m.d(Q,{M:()=>l});var e=m(4482),t=m(5403),y=m(8421),C=m(4671),o=m(5032),M=m(3269);function l(...N){const s=(0,M.jO)(N);return(0,e.e)((D,A)=>{const O=N.length,E=new Array(O);let P=N.map(()=>!1),w=!1;for(let Z=0;Z{E[Z]=j,!w&&!P[Z]&&(P[Z]=!0,(w=P.every(C.y))&&(P=null))},o.Z));D.subscribe(new t.Q(A,Z=>{if(w){const j=[Z,...E];A.next(s?s(...j):j)}}))})}},4408:(Ve,Q,m)=>{"use strict";m.d(Q,{o:()=>o});var e=m(727);class t extends e.w0{constructor(l,N){super()}schedule(l,N=0){return this}}const y={setInterval(...M){const{delegate:l}=y;return((null==l?void 0:l.setInterval)||setInterval)(...M)},clearInterval(M){const{delegate:l}=y;return((null==l?void 0:l.clearInterval)||clearInterval)(M)},delegate:void 0};var C=m(8737);class o extends t{constructor(l,N){super(l,N),this.scheduler=l,this.work=N,this.pending=!1}schedule(l,N=0){if(this.closed)return this;this.state=l;const s=this.id,D=this.scheduler;return null!=s&&(this.id=this.recycleAsyncId(D,s,N)),this.pending=!0,this.delay=N,this.id=this.id||this.requestAsyncId(D,this.id,N),this}requestAsyncId(l,N,s=0){return y.setInterval(l.flush.bind(l,this),s)}recycleAsyncId(l,N,s=0){if(null!=s&&this.delay===s&&!1===this.pending)return N;y.clearInterval(N)}execute(l,N){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const s=this._execute(l,N);if(s)return s;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(l,N){let D,s=!1;try{this.work(l)}catch(A){s=!0,D=A||new Error("Scheduled action threw falsy error")}if(s)return this.unsubscribe(),D}unsubscribe(){if(!this.closed){const{id:l,scheduler:N}=this,{actions:s}=N;this.work=this.state=this.scheduler=null,this.pending=!1,(0,C.P)(s,this),null!=l&&(this.id=this.recycleAsyncId(N,l,null)),this.delay=null,super.unsubscribe()}}}},7565:(Ve,Q,m)=>{"use strict";m.d(Q,{v:()=>y});var e=m(6063);class t{constructor(o,M=t.now){this.schedulerActionCtor=o,this.now=M}schedule(o,M=0,l){return new this.schedulerActionCtor(this,o).schedule(l,M)}}t.now=e.l.now;class y extends t{constructor(o,M=t.now){super(o,M),this.actions=[],this._active=!1,this._scheduled=void 0}flush(o){const{actions:M}=this;if(this._active)return void M.push(o);let l;this._active=!0;do{if(l=o.execute(o.state,o.delay))break}while(o=M.shift());if(this._active=!1,l){for(;o=M.shift();)o.unsubscribe();throw l}}}},3101:(Ve,Q,m)=>{"use strict";m.d(Q,{E:()=>P});var e=m(4408);let y,t=1;const C={};function o(Z){return Z in C&&(delete C[Z],!0)}const M={setImmediate(Z){const j=t++;return C[j]=!0,y||(y=Promise.resolve()),y.then(()=>o(j)&&Z()),j},clearImmediate(Z){o(Z)}},{setImmediate:N,clearImmediate:s}=M,D={setImmediate(...Z){const{delegate:j}=D;return((null==j?void 0:j.setImmediate)||N)(...Z)},clearImmediate(Z){const{delegate:j}=D;return((null==j?void 0:j.clearImmediate)||s)(Z)},delegate:void 0};var O=m(7565);const P=new class E extends O.v{flush(j){this._active=!0,this._scheduled=void 0;const{actions:W}=this;let ie,ee=-1;j=j||W.shift();const _e=W.length;do{if(ie=j.execute(j.state,j.delay))break}while(++ee<_e&&(j=W.shift()));if(this._active=!1,ie){for(;++ee<_e&&(j=W.shift());)j.unsubscribe();throw ie}}}(class A extends e.o{constructor(j,W){super(j,W),this.scheduler=j,this.work=W}requestAsyncId(j,W,ie=0){return null!==ie&&ie>0?super.requestAsyncId(j,W,ie):(j.actions.push(this),j._scheduled||(j._scheduled=D.setImmediate(j.flush.bind(j,void 0))))}recycleAsyncId(j,W,ie=0){if(null!=ie&&ie>0||null==ie&&this.delay>0)return super.recycleAsyncId(j,W,ie);0===j.actions.length&&(D.clearImmediate(W),j._scheduled=void 0)}})},4986:(Ve,Q,m)=>{"use strict";m.d(Q,{z:()=>y,P:()=>C});var e=m(4408);const y=new(m(7565).v)(e.o),C=y},6063:(Ve,Q,m)=>{"use strict";m.d(Q,{l:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},233:(Ve,Q,m)=>{"use strict";m.d(Q,{N:()=>o});var e=m(4408),y=m(7565);const o=new class C extends y.v{}(class t extends e.o{constructor(N,s){super(N,s),this.scheduler=N,this.work=s}schedule(N,s=0){return s>0?super.schedule(N,s):(this.delay=s,this.state=N,this.scheduler.flush(this),this)}execute(N,s){return s>0||this.closed?super.execute(N,s):this._execute(N,s)}requestAsyncId(N,s,D=0){return null!=D&&D>0||null==D&&this.delay>0?super.requestAsyncId(N,s,D):N.flush(this)}})},3410:(Ve,Q,m)=>{"use strict";m.d(Q,{z:()=>e});const e={setTimeout(...t){const{delegate:y}=e;return((null==y?void 0:y.setTimeout)||setTimeout)(...t)},clearTimeout(t){const{delegate:y}=e;return((null==y?void 0:y.clearTimeout)||clearTimeout)(t)},delegate:void 0}},2202:(Ve,Q,m)=>{"use strict";m.d(Q,{h:()=>t});const t=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(Ve,Q,m)=>{"use strict";m.d(Q,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(Ve,Q,m)=>{"use strict";m.d(Q,{K:()=>t});const t=(0,m(3888).d)(y=>function(){y(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(Ve,Q,m)=>{"use strict";m.d(Q,{jO:()=>C,yG:()=>o,_6:()=>M});var e=m(576),t=m(3532);function y(l){return l[l.length-1]}function C(l){return(0,e.m)(y(l))?l.pop():void 0}function o(l){return(0,t.K)(y(l))?l.pop():void 0}function M(l,N){return"number"==typeof y(l)?l.pop():N}},4742:(Ve,Q,m)=>{"use strict";m.d(Q,{D:()=>o});const{isArray:e}=Array,{getPrototypeOf:t,prototype:y,keys:C}=Object;function o(l){if(1===l.length){const N=l[0];if(e(N))return{args:N,keys:null};if(function M(l){return l&&"object"==typeof l&&t(l)===y}(N)){const s=C(N);return{args:s.map(D=>N[D]),keys:s}}}return{args:l,keys:null}}},8737:(Ve,Q,m)=>{"use strict";function e(t,y){if(t){const C=t.indexOf(y);0<=C&&t.splice(C,1)}}m.d(Q,{P:()=>e})},3888:(Ve,Q,m)=>{"use strict";function e(t){const C=t(o=>{Error.call(o),o.stack=(new Error).stack});return C.prototype=Object.create(Error.prototype),C.prototype.constructor=C,C}m.d(Q,{d:()=>e})},1810:(Ve,Q,m)=>{"use strict";function e(t,y){return t.reduce((C,o,M)=>(C[o]=y[M],C),{})}m.d(Q,{n:()=>e})},2806:(Ve,Q,m)=>{"use strict";m.d(Q,{x:()=>y,O:()=>C});var e=m(2416);let t=null;function y(o){if(e.v.useDeprecatedSynchronousErrorHandling){const M=!t;if(M&&(t={errorThrown:!1,error:null}),o(),M){const{errorThrown:l,error:N}=t;if(t=null,l)throw N}}else o()}function C(o){e.v.useDeprecatedSynchronousErrorHandling&&t&&(t.errorThrown=!0,t.error=o)}},9672:(Ve,Q,m)=>{"use strict";function e(t,y,C,o=0,M=!1){const l=y.schedule(function(){C(),M?t.add(this.schedule(null,o)):this.unsubscribe()},o);if(t.add(l),!M)return l}m.d(Q,{f:()=>e})},4671:(Ve,Q,m)=>{"use strict";function e(t){return t}m.d(Q,{y:()=>e})},1144:(Ve,Q,m)=>{"use strict";m.d(Q,{z:()=>e});const e=t=>t&&"number"==typeof t.length&&"function"!=typeof t},2206:(Ve,Q,m)=>{"use strict";m.d(Q,{D:()=>t});var e=m(576);function t(y){return Symbol.asyncIterator&&(0,e.m)(null==y?void 0:y[Symbol.asyncIterator])}},1165:(Ve,Q,m)=>{"use strict";function e(t){return t instanceof Date&&!isNaN(t)}m.d(Q,{q:()=>e})},576:(Ve,Q,m)=>{"use strict";function e(t){return"function"==typeof t}m.d(Q,{m:()=>e})},3670:(Ve,Q,m)=>{"use strict";m.d(Q,{c:()=>y});var e=m(8822),t=m(576);function y(C){return(0,t.m)(C[e.L])}},6495:(Ve,Q,m)=>{"use strict";m.d(Q,{T:()=>y});var e=m(2202),t=m(576);function y(C){return(0,t.m)(null==C?void 0:C[e.h])}},5191:(Ve,Q,m)=>{"use strict";m.d(Q,{b:()=>y});var e=m(8306),t=m(576);function y(C){return!!C&&(C instanceof e.y||(0,t.m)(C.lift)&&(0,t.m)(C.subscribe))}},8239:(Ve,Q,m)=>{"use strict";m.d(Q,{t:()=>t});var e=m(576);function t(y){return(0,e.m)(null==y?void 0:y.then)}},3260:(Ve,Q,m)=>{"use strict";m.d(Q,{Q:()=>y,L:()=>C});var e=m(5987),t=m(576);function y(o){return(0,e.FC)(this,arguments,function*(){const l=o.getReader();try{for(;;){const{value:N,done:s}=yield(0,e.qq)(l.read());if(s)return yield(0,e.qq)(void 0);yield yield(0,e.qq)(N)}}finally{l.releaseLock()}})}function C(o){return(0,t.m)(null==o?void 0:o.getReader)}},3532:(Ve,Q,m)=>{"use strict";m.d(Q,{K:()=>t});var e=m(576);function t(y){return y&&(0,e.m)(y.schedule)}},4482:(Ve,Q,m)=>{"use strict";m.d(Q,{A:()=>t,e:()=>y});var e=m(576);function t(C){return(0,e.m)(null==C?void 0:C.lift)}function y(C){return o=>{if(t(o))return o.lift(function(M){try{return C(M,this)}catch(l){this.error(l)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Ve,Q,m)=>{"use strict";m.d(Q,{Z:()=>C});var e=m(4004);const{isArray:t}=Array;function C(o){return(0,e.U)(M=>function y(o,M){return t(M)?o(...M):o(M)}(o,M))}},5032:(Ve,Q,m)=>{"use strict";function e(){}m.d(Q,{Z:()=>e})},7849:(Ve,Q,m)=>{"use strict";m.d(Q,{h:()=>y});var e=m(2416),t=m(3410);function y(C){t.z.setTimeout(()=>{const{onUnhandledError:o}=e.v;if(!o)throw C;o(C)})}},4532:(Ve,Q,m)=>{"use strict";function e(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}m.d(Q,{z:()=>e})},3502:(Ve,Q,m)=>{var e=m(3172),t=e.Buffer;function y(o,M){for(var l in o)M[l]=o[l]}function C(o,M,l){return t(o,M,l)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?Ve.exports=e:(y(e,Q),Q.Buffer=C),y(t,C),C.from=function(o,M,l){if("number"==typeof o)throw new TypeError("Argument must not be a number");return t(o,M,l)},C.alloc=function(o,M,l){if("number"!=typeof o)throw new TypeError("Argument must be a number");var N=t(o);return void 0!==M?"string"==typeof l?N.fill(M,l):N.fill(M):N.fill(0),N},C.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return t(o)},C.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return e.SlowBuffer(o)}},2038:(Ve,Q,m)=>{"use strict";var C,e=m(3172),t=e.Buffer,y={};for(C in e)!e.hasOwnProperty(C)||"SlowBuffer"===C||"Buffer"===C||(y[C]=e[C]);var o=y.Buffer={};for(C in t)!t.hasOwnProperty(C)||"allocUnsafe"===C||"allocUnsafeSlow"===C||(o[C]=t[C]);if(y.Buffer.prototype=t.prototype,(!o.from||o.from===Uint8Array.from)&&(o.from=function(M,l,N){if("number"==typeof M)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof M);if(M&&void 0===M.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof M);return t(M,l,N)}),o.alloc||(o.alloc=function(M,l,N){if("number"!=typeof M)throw new TypeError('The "size" argument must be of type number. Received type '+typeof M);if(M<0||M>=2*(1<<30))throw new RangeError('The value "'+M+'" is invalid for option "size"');var s=t(M);return l&&0!==l.length?"string"==typeof N?s.fill(l,N):s.fill(l):s.fill(0),s}),!y.kStringMaxLength)try{y.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(M){}y.constants||(y.constants={MAX_LENGTH:y.kMaxLength},y.kStringMaxLength&&(y.constants.MAX_STRING_LENGTH=y.kStringMaxLength)),Ve.exports=y},6692:(Ve,Q,m)=>{var e=m(3502).Buffer;function t(y,C){this._block=e.alloc(y),this._finalSize=C,this._blockSize=y,this._len=0}t.prototype.update=function(y,C){"string"==typeof y&&(y=e.from(y,C=C||"utf8"));for(var o=this._block,M=this._blockSize,l=y.length,N=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var o=8*this._len;if(o<=4294967295)this._block.writeUInt32BE(o,this._blockSize-4);else{var M=(4294967295&o)>>>0;this._block.writeUInt32BE((o-M)/4294967296,this._blockSize-8),this._block.writeUInt32BE(M,this._blockSize-4)}this._update(this._block);var N=this._hash();return y?N.toString(y):N},t.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Ve.exports=t},5244:(Ve,Q,m)=>{var e=Ve.exports=function(y){y=y.toLowerCase();var C=e[y];if(!C)throw new Error(y+" is not supported (we accept pull requests)");return new C};e.sha=m(8932),e.sha1=m(7736),e.sha224=m(5044),e.sha256=m(5014),e.sha384=m(6540),e.sha512=m(117)},8932:(Ve,Q,m)=>{var e=m(3894),t=m(6692),y=m(3502).Buffer,C=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function M(){this.init(),this._w=o,t.call(this,64,56)}function l(D){return D<<5|D>>>27}function N(D){return D<<30|D>>>2}function s(D,A,O,E){return 0===D?A&O|~A&E:2===D?A&O|A&E|O&E:A^O^E}e(M,t),M.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},M.prototype._update=function(D){for(var A=this._w,O=0|this._a,E=0|this._b,P=0|this._c,w=0|this._d,Z=0|this._e,j=0;j<16;++j)A[j]=D.readInt32BE(4*j);for(;j<80;++j)A[j]=A[j-3]^A[j-8]^A[j-14]^A[j-16];for(var W=0;W<80;++W){var ie=~~(W/20),ee=l(O)+s(ie,E,P,w)+Z+A[W]+C[ie]|0;Z=w,w=P,P=N(E),E=O,O=ee}this._a=O+this._a|0,this._b=E+this._b|0,this._c=P+this._c|0,this._d=w+this._d|0,this._e=Z+this._e|0},M.prototype._hash=function(){var D=y.allocUnsafe(20);return D.writeInt32BE(0|this._a,0),D.writeInt32BE(0|this._b,4),D.writeInt32BE(0|this._c,8),D.writeInt32BE(0|this._d,12),D.writeInt32BE(0|this._e,16),D},Ve.exports=M},7736:(Ve,Q,m)=>{var e=m(3894),t=m(6692),y=m(3502).Buffer,C=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function M(){this.init(),this._w=o,t.call(this,64,56)}function l(A){return A<<1|A>>>31}function N(A){return A<<5|A>>>27}function s(A){return A<<30|A>>>2}function D(A,O,E,P){return 0===A?O&E|~O&P:2===A?O&E|O&P|E&P:O^E^P}e(M,t),M.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},M.prototype._update=function(A){for(var O=this._w,E=0|this._a,P=0|this._b,w=0|this._c,Z=0|this._d,j=0|this._e,W=0;W<16;++W)O[W]=A.readInt32BE(4*W);for(;W<80;++W)O[W]=l(O[W-3]^O[W-8]^O[W-14]^O[W-16]);for(var ie=0;ie<80;++ie){var ee=~~(ie/20),_e=N(E)+D(ee,P,w,Z)+j+O[ie]+C[ee]|0;j=Z,Z=w,w=s(P),P=E,E=_e}this._a=E+this._a|0,this._b=P+this._b|0,this._c=w+this._c|0,this._d=Z+this._d|0,this._e=j+this._e|0},M.prototype._hash=function(){var A=y.allocUnsafe(20);return A.writeInt32BE(0|this._a,0),A.writeInt32BE(0|this._b,4),A.writeInt32BE(0|this._c,8),A.writeInt32BE(0|this._d,12),A.writeInt32BE(0|this._e,16),A},Ve.exports=M},5044:(Ve,Q,m)=>{var e=m(3894),t=m(5014),y=m(6692),C=m(3502).Buffer,o=new Array(64);function M(){this.init(),this._w=o,y.call(this,64,56)}e(M,t),M.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},M.prototype._hash=function(){var l=C.allocUnsafe(28);return l.writeInt32BE(this._a,0),l.writeInt32BE(this._b,4),l.writeInt32BE(this._c,8),l.writeInt32BE(this._d,12),l.writeInt32BE(this._e,16),l.writeInt32BE(this._f,20),l.writeInt32BE(this._g,24),l},Ve.exports=M},5014:(Ve,Q,m)=>{var e=m(3894),t=m(6692),y=m(3502).Buffer,C=[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 M(){this.init(),this._w=o,t.call(this,64,56)}function l(E,P,w){return w^E&(P^w)}function N(E,P,w){return E&P|w&(E|P)}function s(E){return(E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10)}function D(E){return(E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7)}function A(E){return(E>>>7|E<<25)^(E>>>18|E<<14)^E>>>3}function O(E){return(E>>>17|E<<15)^(E>>>19|E<<13)^E>>>10}e(M,t),M.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},M.prototype._update=function(E){for(var P=this._w,w=0|this._a,Z=0|this._b,j=0|this._c,W=0|this._d,ie=0|this._e,ee=0|this._f,_e=0|this._g,ce=0|this._h,re=0;re<16;++re)P[re]=E.readInt32BE(4*re);for(;re<64;++re)P[re]=O(P[re-2])+P[re-7]+A(P[re-15])+P[re-16]|0;for(var de=0;de<64;++de){var oe=ce+D(ie)+l(ie,ee,_e)+C[de]+P[de]|0,ae=s(w)+N(w,Z,j)|0;ce=_e,_e=ee,ee=ie,ie=W+oe|0,W=j,j=Z,Z=w,w=oe+ae|0}this._a=w+this._a|0,this._b=Z+this._b|0,this._c=j+this._c|0,this._d=W+this._d|0,this._e=ie+this._e|0,this._f=ee+this._f|0,this._g=_e+this._g|0,this._h=ce+this._h|0},M.prototype._hash=function(){var E=y.allocUnsafe(32);return E.writeInt32BE(this._a,0),E.writeInt32BE(this._b,4),E.writeInt32BE(this._c,8),E.writeInt32BE(this._d,12),E.writeInt32BE(this._e,16),E.writeInt32BE(this._f,20),E.writeInt32BE(this._g,24),E.writeInt32BE(this._h,28),E},Ve.exports=M},6540:(Ve,Q,m)=>{var e=m(3894),t=m(117),y=m(6692),C=m(3502).Buffer,o=new Array(160);function M(){this.init(),this._w=o,y.call(this,128,112)}e(M,t),M.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},M.prototype._hash=function(){var l=C.allocUnsafe(48);function N(s,D,A){l.writeInt32BE(s,A),l.writeInt32BE(D,A+4)}return N(this._ah,this._al,0),N(this._bh,this._bl,8),N(this._ch,this._cl,16),N(this._dh,this._dl,24),N(this._eh,this._el,32),N(this._fh,this._fl,40),l},Ve.exports=M},117:(Ve,Q,m)=>{var e=m(3894),t=m(6692),y=m(3502).Buffer,C=[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 M(){this.init(),this._w=o,t.call(this,128,112)}function l(Z,j,W){return W^Z&(j^W)}function N(Z,j,W){return Z&j|W&(Z|j)}function s(Z,j){return(Z>>>28|j<<4)^(j>>>2|Z<<30)^(j>>>7|Z<<25)}function D(Z,j){return(Z>>>14|j<<18)^(Z>>>18|j<<14)^(j>>>9|Z<<23)}function A(Z,j){return(Z>>>1|j<<31)^(Z>>>8|j<<24)^Z>>>7}function O(Z,j){return(Z>>>1|j<<31)^(Z>>>8|j<<24)^(Z>>>7|j<<25)}function E(Z,j){return(Z>>>19|j<<13)^(j>>>29|Z<<3)^Z>>>6}function P(Z,j){return(Z>>>19|j<<13)^(j>>>29|Z<<3)^(Z>>>6|j<<26)}function w(Z,j){return Z>>>0>>0?1:0}e(M,t),M.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},M.prototype._update=function(Z){for(var j=this._w,W=0|this._ah,ie=0|this._bh,ee=0|this._ch,_e=0|this._dh,ce=0|this._eh,re=0|this._fh,de=0|this._gh,oe=0|this._hh,ae=0|this._al,b=0|this._bl,i=0|this._cl,a=0|this._dl,p=0|this._el,u=0|this._fl,_=0|this._gl,L=0|this._hl,I=0;I<32;I+=2)j[I]=Z.readInt32BE(4*I),j[I+1]=Z.readInt32BE(4*I+4);for(;I<160;I+=2){var x=j[I-30],r=j[I-30+1],v=A(x,r),G=O(r,x),F=E(x=j[I-4],r=j[I-4+1]),U=P(r,x),Be=j[I-32],ze=j[I-32+1],Ie=G+j[I-14+1]|0,K=v+j[I-14]+w(Ie,G)|0;K=(K=K+F+w(Ie=Ie+U|0,U)|0)+Be+w(Ie=Ie+ze|0,ze)|0,j[I]=K,j[I+1]=Ie}for(var Me=0;Me<160;Me+=2){K=j[Me],Ie=j[Me+1];var we=N(W,ie,ee),z=N(ae,b,i),Ge=s(W,ae),vt=s(ae,W),Re=D(ce,p),Ne=D(p,ce),he=C[Me],Le=C[Me+1],ke=l(ce,re,de),q=l(p,u,_),$=L+Ne|0,le=oe+Re+w($,L)|0;le=(le=(le=le+ke+w($=$+q|0,q)|0)+he+w($=$+Le|0,Le)|0)+K+w($=$+Ie|0,Ie)|0;var xe=vt+z|0,Ue=Ge+we+w(xe,vt)|0;oe=de,L=_,de=re,_=u,re=ce,u=p,ce=_e+le+w(p=a+$|0,a)|0,_e=ee,a=i,ee=ie,i=b,ie=W,b=ae,W=le+Ue+w(ae=$+xe|0,$)|0}this._al=this._al+ae|0,this._bl=this._bl+b|0,this._cl=this._cl+i|0,this._dl=this._dl+a|0,this._el=this._el+p|0,this._fl=this._fl+u|0,this._gl=this._gl+_|0,this._hl=this._hl+L|0,this._ah=this._ah+W+w(this._al,ae)|0,this._bh=this._bh+ie+w(this._bl,b)|0,this._ch=this._ch+ee+w(this._cl,i)|0,this._dh=this._dh+_e+w(this._dl,a)|0,this._eh=this._eh+ce+w(this._el,p)|0,this._fh=this._fh+re+w(this._fl,u)|0,this._gh=this._gh+de+w(this._gl,_)|0,this._hh=this._hh+oe+w(this._hl,L)|0},M.prototype._hash=function(){var Z=y.allocUnsafe(64);function j(W,ie,ee){Z.writeInt32BE(W,ee),Z.writeInt32BE(ie,ee+4)}return j(this._ah,this._al,0),j(this._bh,this._bl,8),j(this._ch,this._cl,16),j(this._dh,this._dl,24),j(this._eh,this._el,32),j(this._fh,this._fl,40),j(this._gh,this._gl,48),j(this._hh,this._hl,56),Z},Ve.exports=M},8012:function(Ve,Q,m){!function(e){"use strict";var t={};Ve.exports?(t.bytesToHex=m(6128).bytesToHex,t.convertString=m(5612),Ve.exports=N):(t.bytesToHex=e.convertHex.bytesToHex,t.convertString=e.convertString,e.sha256=N);var y=[];!function(){function s(E){for(var P=Math.sqrt(E),w=2;w<=P;w++)if(!(E%w))return!1;return!0}for(var A=2,O=0;O<64;)s(A)&&(y[O]=4294967296*((E=Math.pow(A,1/3))-(0|E))|0,O++),A++;var E}();var M=[],l=function(s,D,A){for(var O=s[0],E=s[1],P=s[2],w=s[3],Z=s[4],j=s[5],W=s[6],ie=s[7],ee=0;ee<64;ee++){if(ee<16)M[ee]=0|D[A+ee];else{var _e=M[ee-15],re=M[ee-2];M[ee]=((_e<<25|_e>>>7)^(_e<<14|_e>>>18)^_e>>>3)+M[ee-7]+((re<<15|re>>>17)^(re<<13|re>>>19)^re>>>10)+M[ee-16]}var ae=O&E^O&P^E&P,a=ie+((Z<<26|Z>>>6)^(Z<<21|Z>>>11)^(Z<<7|Z>>>25))+(Z&j^~Z&W)+y[ee]+M[ee];ie=W,W=j,j=Z,Z=w+a|0,w=P,P=E,E=O,O=a+(((O<<30|O>>>2)^(O<<19|O>>>13)^(O<<10|O>>>22))+ae)|0}s[0]=s[0]+O|0,s[1]=s[1]+E|0,s[2]=s[2]+P|0,s[3]=s[3]+w|0,s[4]=s[4]+Z|0,s[5]=s[5]+j|0,s[6]=s[6]+W|0,s[7]=s[7]+ie|0};function N(s,D){s.constructor===String&&(s=t.convertString.UTF8.stringToBytes(s));var A=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],O=function(s){for(var D=[],A=0,O=0;A>>5]|=s[A]<<24-O%32;return D}(s),E=8*s.length;O[E>>5]|=128<<24-E%32,O[15+(E+64>>9<<4)]=E;for(var P=0;P>>5]>>>24-A%32&255);return D}(A);return D&&D.asBytes?w:D&&D.asString?t.convertString.bytesToString(w):t.bytesToHex(w)}N.x2=function(s,D){return N(N(s,{asBytes:!0}),D)}}(this)},4315:(Ve,Q,m)=>{"use strict";const e=Symbol.prototype.valueOf,t=m(2872);Ve.exports=function y(s,D){switch(t(s)){case"array":return s.slice();case"object":return Object.assign({},s);case"date":return new s.constructor(Number(s));case"map":return new Map(s);case"set":return new Set(s);case"buffer":return function l(s){const D=s.length,A=Buffer.allocUnsafe?Buffer.allocUnsafe(D):Buffer.from(D);return s.copy(A),A}(s);case"symbol":return function N(s){return e?Object(e.call(s)):{}}(s);case"arraybuffer":return function o(s){const D=new s.constructor(s.byteLength);return new Uint8Array(D).set(new Uint8Array(s)),D}(s);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function M(s,D){return new s.constructor(s.buffer,s.byteOffset,s.length)}(s);case"regexp":return function C(s){const D=void 0!==s.flags?s.flags:/\w+$/.exec(s)||void 0,A=new s.constructor(s.source,D);return A.lastIndex=s.lastIndex,A}(s);case"error":return Object.create(s);default:return s}}},295:(Ve,Q,m)=>{Ve.exports=y;var e=m(9069).EventEmitter;function y(){e.call(this)}m(3894)(y,e),y.Readable=m(3154),y.Writable=m(520),y.Duplex=m(1339),y.Transform=m(6025),y.PassThrough=m(6071),y.finished=m(7542),y.pipeline=m(954),y.Stream=y,y.prototype.pipe=function(C,o){var M=this;function l(P){C.writable&&!1===C.write(P)&&M.pause&&M.pause()}function N(){M.readable&&M.resume&&M.resume()}M.on("data",l),C.on("drain",N),!C._isStdio&&(!o||!1!==o.end)&&(M.on("end",D),M.on("close",A));var s=!1;function D(){s||(s=!0,C.end())}function A(){s||(s=!0,"function"==typeof C.destroy&&C.destroy())}function O(P){if(E(),0===e.listenerCount(this,"error"))throw P}function E(){M.removeListener("data",l),C.removeListener("drain",N),M.removeListener("end",D),M.removeListener("close",A),M.removeListener("error",O),C.removeListener("error",O),M.removeListener("end",E),M.removeListener("close",E),C.removeListener("close",E)}return M.on("error",O),C.on("error",O),M.on("end",E),M.on("close",E),C.on("close",E),C.emit("pipe",M),C}},3054:(Ve,Q,m)=>{"use strict";var e=m(858).Buffer,t=e.isEncoding||function(W){switch((W=""+W)&&W.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(W){var ie;switch(this.encoding=function C(W){var ie=function y(W){if(!W)return"utf8";for(var ie;;)switch(W){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 W;default:if(ie)return;W=(""+W).toLowerCase(),ie=!0}}(W);if("string"!=typeof ie&&(e.isEncoding===t||!t(W)))throw new Error("Unknown encoding: "+W);return ie||W}(W),this.encoding){case"utf16le":this.text=O,this.end=E,ie=4;break;case"utf8":this.fillLast=s,ie=4;break;case"base64":this.text=P,this.end=w,ie=3;break;default:return this.write=Z,void(this.end=j)}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(ie)}function M(W){return W<=127?0:W>>5==6?2:W>>4==14?3:W>>3==30?4:W>>6==2?-1:-2}function s(W){var ie=this.lastTotal-this.lastNeed,ee=function N(W,ie,ee){if(128!=(192&ie[0]))return W.lastNeed=0,"\ufffd";if(W.lastNeed>1&&ie.length>1){if(128!=(192&ie[1]))return W.lastNeed=1,"\ufffd";if(W.lastNeed>2&&ie.length>2&&128!=(192&ie[2]))return W.lastNeed=2,"\ufffd"}}(this,W);return void 0!==ee?ee:this.lastNeed<=W.length?(W.copy(this.lastChar,ie,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(W.copy(this.lastChar,ie,0,W.length),void(this.lastNeed-=W.length))}function O(W,ie){if((W.length-ie)%2==0){var ee=W.toString("utf16le",ie);if(ee){var _e=ee.charCodeAt(ee.length-1);if(_e>=55296&&_e<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1],ee.slice(0,-1)}return ee}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=W[W.length-1],W.toString("utf16le",ie,W.length-1)}function E(W){var ie=W&&W.length?this.write(W):"";return this.lastNeed?ie+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):ie}function P(W,ie){var ee=(W.length-ie)%3;return 0===ee?W.toString("base64",ie):(this.lastNeed=3-ee,this.lastTotal=3,1===ee?this.lastChar[0]=W[W.length-1]:(this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1]),W.toString("base64",ie,W.length-ee))}function w(W){var ie=W&&W.length?this.write(W):"";return this.lastNeed?ie+this.lastChar.toString("base64",0,3-this.lastNeed):ie}function Z(W){return W.toString(this.encoding)}function j(W){return W&&W.length?this.write(W):""}Q.s=o,o.prototype.write=function(W){if(0===W.length)return"";var ie,ee;if(this.lastNeed){if(void 0===(ie=this.fillLast(W)))return"";ee=this.lastNeed,this.lastNeed=0}else ee=0;return ee=0?(ce>0&&(W.lastNeed=ce-1),ce):--_e=0?(ce>0&&(W.lastNeed=ce-2),ce):--_e=0?(ce>0&&(2===ce?ce=0:W.lastNeed=ce-3),ce):0}(this,W,ie);if(!this.lastNeed)return W.toString("utf8",ie);this.lastTotal=ee;var _e=W.length-(ee-this.lastNeed);return W.copy(this.lastChar,0,_e),W.toString("utf8",ie,_e)},o.prototype.fillLast=function(W){if(this.lastNeed<=W.length)return W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,W.length),this.lastNeed-=W.length}},858:(Ve,Q,m)=>{var e=m(3172),t=e.Buffer;function y(o,M){for(var l in o)M[l]=o[l]}function C(o,M,l){return t(o,M,l)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?Ve.exports=e:(y(e,Q),Q.Buffer=C),C.prototype=Object.create(t.prototype),y(t,C),C.from=function(o,M,l){if("number"==typeof o)throw new TypeError("Argument must not be a number");return t(o,M,l)},C.alloc=function(o,M,l){if("number"!=typeof o)throw new TypeError("Argument must be a number");var N=t(o);return void 0!==M?"string"==typeof l?N.fill(M,l):N.fill(M):N.fill(0),N},C.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return t(o)},C.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return e.SlowBuffer(o)}},2167:(Ve,Q,m)=>{var e=m(4606);Q.encode=e.encode,Q.decode=e.decode},4606:(Ve,Q)=>{"use strict";var e=[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(y){Buffer.isBuffer(y)||(y=new Buffer(y));for(var C=0,o=0,M=0,l=0,N=new Buffer(8*function t(y){var C=Math.floor(y.length/5);return y.length%5==0?C:C+1}(y));C3?(l=(l=s&255>>M)<<(M=(M+5)%8)|(C+1>8-M,C++):(l=s>>8-(M+5)&31,0==(M=(M+5)%8)&&C++),N[o]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(l),o++}for(C=o;C>>(C=(C+5)%8),l++,M=255&o<<8-C)}return N.slice(0,l)}},4364:Ve=>{function m(e){try{if(!global.localStorage)return!1}catch(y){return!1}var t=global.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}Ve.exports=function Q(e,t){if(m("noDeprecation"))return e;var y=!1;return function C(){if(!y){if(m("throwDeprecation"))throw new Error(t);m("traceDeprecation")?console.trace(t):console.warn(t),y=!0}return e.apply(this,arguments)}}},5987:(Ve,Q,m)=>{"use strict";function N(b,i,a,p){return new(a||(a=Promise))(function(_,L){function I(v){try{r(p.next(v))}catch(G){L(G)}}function x(v){try{r(p.throw(v))}catch(G){L(G)}}function r(v){v.done?_(v.value):function u(_){return _ instanceof a?_:new a(function(L){L(_)})}(v.value).then(I,x)}r((p=p.apply(b,i||[])).next())})}function j(b){return this instanceof j?(this.v=b,this):new j(b)}function W(b,i,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u,p=a.apply(b,i||[]),_=[];return u={},L("next"),L("throw"),L("return"),u[Symbol.asyncIterator]=function(){return this},u;function L(F){p[F]&&(u[F]=function(U){return new Promise(function(ye,Ce){_.push([F,U,ye,Ce])>1||I(F,U)})})}function I(F,U){try{!function x(F){F.value instanceof j?Promise.resolve(F.value.v).then(r,v):G(_[0][2],F)}(p[F](U))}catch(ye){G(_[0][3],ye)}}function r(F){I("next",F)}function v(F){I("throw",F)}function G(F,U){F(U),_.shift(),_.length&&I(_[0][0],_[0][1])}}function ee(b){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a,i=b[Symbol.asyncIterator];return i?i.call(b):(b=function O(b){var i="function"==typeof Symbol&&Symbol.iterator,a=i&&b[i],p=0;if(a)return a.call(b);if(b&&"number"==typeof b.length)return{next:function(){return b&&p>=b.length&&(b=void 0),{value:b&&b[p++],done:!b}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(b),a={},p("next"),p("throw"),p("return"),a[Symbol.asyncIterator]=function(){return this},a);function p(_){a[_]=b[_]&&function(L){return new Promise(function(I,x){!function u(_,L,I,x){Promise.resolve(x).then(function(r){_({value:r,done:I})},L)}(I,x,(L=b[_](L)).done,L.value)})}}}m.d(Q,{mG:()=>N,qq:()=>j,FC:()=>W,KL:()=>ee})},655:(Ve,Q,m)=>{"use strict";function o(b,i,a,p){var L,u=arguments.length,_=u<3?i:null===p?p=Object.getOwnPropertyDescriptor(i,a):p;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_=Reflect.decorate(b,i,a,p);else for(var I=b.length-1;I>=0;I--)(L=b[I])&&(_=(u<3?L(_):u>3?L(i,a,_):L(i,a))||_);return u>3&&_&&Object.defineProperty(i,a,_),_}function N(b,i,a,p){return new(a||(a=Promise))(function(_,L){function I(v){try{r(p.next(v))}catch(G){L(G)}}function x(v){try{r(p.throw(v))}catch(G){L(G)}}function r(v){v.done?_(v.value):function u(_){return _ instanceof a?_:new a(function(L){L(_)})}(v.value).then(I,x)}r((p=p.apply(b,i||[])).next())})}m.d(Q,{gn:()=>o,mG:()=>N})},950:()=>{},6601:()=>{},8623:()=>{},7748:()=>{},5568:()=>{},6619:()=>{},7108:()=>{},2361:()=>{},4616:()=>{},1777:(Ve,Q,m)=>{"use strict";m.d(Q,{l3:()=>y,_j:()=>e,LC:()=>t,ZN:()=>W,jt:()=>o,pV:()=>E,ru:()=>M,F4:()=>D,IO:()=>w,vP:()=>l,SB:()=>s,oB:()=>N,eR:()=>A,X$:()=>C,ZE:()=>ie,k1:()=>ee});class e{}class t{}const y="*";function C(_e,ce){return{type:7,name:_e,definitions:ce,options:{}}}function o(_e,ce=null){return{type:4,styles:ce,timings:_e}}function M(_e,ce=null){return{type:3,steps:_e,options:ce}}function l(_e,ce=null){return{type:2,steps:_e,options:ce}}function N(_e){return{type:6,styles:_e,offset:null}}function s(_e,ce,re){return{type:0,name:_e,styles:ce,options:re}}function D(_e){return{type:5,steps:_e}}function A(_e,ce,re=null){return{type:1,expr:_e,animation:ce,options:re}}function E(_e=null){return{type:9,options:_e}}function w(_e,ce,re=null){return{type:11,selector:_e,animation:ce,options:re}}function j(_e){Promise.resolve(null).then(_e)}class W{constructor(ce=0,re=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=ce+re}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ce=>ce()),this._onDoneFns=[])}onStart(ce){this._onStartFns.push(ce)}onDone(ce){this._onDoneFns.push(ce)}onDestroy(ce){this._onDestroyFns.push(ce)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){j(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(ce=>ce()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(ce=>ce()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(ce){this._position=this.totalTime?ce*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(ce){const re="start"==ce?this._onStartFns:this._onDoneFns;re.forEach(de=>de()),re.length=0}}class ie{constructor(ce){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=ce;let re=0,de=0,oe=0;const ae=this.players.length;0==ae?j(()=>this._onFinish()):this.players.forEach(b=>{b.onDone(()=>{++re==ae&&this._onFinish()}),b.onDestroy(()=>{++de==ae&&this._onDestroy()}),b.onStart(()=>{++oe==ae&&this._onStart()})}),this.totalTime=this.players.reduce((b,i)=>Math.max(b,i.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ce=>ce()),this._onDoneFns=[])}init(){this.players.forEach(ce=>ce.init())}onStart(ce){this._onStartFns.push(ce)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(ce=>ce()),this._onStartFns=[])}onDone(ce){this._onDoneFns.push(ce)}onDestroy(ce){this._onDestroyFns.push(ce)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(ce=>ce.play())}pause(){this.players.forEach(ce=>ce.pause())}restart(){this.players.forEach(ce=>ce.restart())}finish(){this._onFinish(),this.players.forEach(ce=>ce.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(ce=>ce.destroy()),this._onDestroyFns.forEach(ce=>ce()),this._onDestroyFns=[])}reset(){this.players.forEach(ce=>ce.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(ce){const re=ce*this.totalTime;this.players.forEach(de=>{const oe=de.totalTime?Math.min(1,re/de.totalTime):1;de.setPosition(oe)})}getPosition(){const ce=this.players.reduce((re,de)=>null===re||de.totalTime>re.totalTime?de:re,null);return null!=ce?ce.getPosition():0}beforeDestroy(){this.players.forEach(ce=>{ce.beforeDestroy&&ce.beforeDestroy()})}triggerCallback(ce){const re="start"==ce?this._onStartFns:this._onDoneFns;re.forEach(de=>de()),re.length=0}}const ee="!"},5664:(Ve,Q,m)=>{"use strict";m.d(Q,{rt:()=>Ze,s1:()=>L,$s:()=>a,Qr:()=>Zt,kH:()=>jt,mK:()=>vt,Em:()=>I,tE:()=>Ii,qV:()=>Ge,qm:()=>hi,ic:()=>r,Kd:()=>Mt,X6:()=>q,yG:()=>$});var e=m(9808),t=m(5e3),y=m(7579),C=m(727),o=m(1135),M=m(9646),l=m(1159),N=m(8505),s=m(8372),D=m(9300),A=m(4004),O=m(5698),E=m(5684),P=m(1884),w=m(2722),Z=m(3191),j=m(925),W=m(7144);function ce(Ee,Y){return(Ee.getAttribute(Y)||"").match(/\S+/g)||[]}const re="cdk-describedby-message-container",de="cdk-describedby-message",oe="cdk-describedby-host";let ae=0;const b=new Map;let i=null,a=(()=>{class Ee{constructor(me){this._document=me}describe(me,De,et){if(!this._canBeDescribed(me,De))return;const $t=p(De,et);"string"!=typeof De?(u(De),b.set($t,{messageElement:De,referenceCount:0})):b.has($t)||this._createMessageElement(De,et),this._isElementDescribedByMessage(me,$t)||this._addMessageReference(me,$t)}removeDescription(me,De,et){if(!De||!this._isElementNode(me))return;const $t=p(De,et);if(this._isElementDescribedByMessage(me,$t)&&this._removeMessageReference(me,$t),"string"==typeof De){const Nt=b.get($t);Nt&&0===Nt.referenceCount&&this._deleteMessageElement($t)}i&&0===i.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const me=this._document.querySelectorAll(`[${oe}]`);for(let De=0;De0!=et.indexOf(de));me.setAttribute("aria-describedby",De.join(" "))}_addMessageReference(me,De){const et=b.get(De);(function ee(Ee,Y,me){const De=ce(Ee,Y);De.some(et=>et.trim()==me.trim())||(De.push(me.trim()),Ee.setAttribute(Y,De.join(" ")))})(me,"aria-describedby",et.messageElement.id),me.setAttribute(oe,""),et.referenceCount++}_removeMessageReference(me,De){const et=b.get(De);et.referenceCount--,function _e(Ee,Y,me){const et=ce(Ee,Y).filter($t=>$t!=me.trim());et.length?Ee.setAttribute(Y,et.join(" ")):Ee.removeAttribute(Y)}(me,"aria-describedby",et.messageElement.id),me.removeAttribute(oe)}_isElementDescribedByMessage(me,De){const et=ce(me,"aria-describedby"),$t=b.get(De),Nt=$t&&$t.messageElement.id;return!!Nt&&-1!=et.indexOf(Nt)}_canBeDescribed(me,De){if(!this._isElementNode(me))return!1;if(De&&"object"==typeof De)return!0;const et=null==De?"":`${De}`.trim(),$t=me.getAttribute("aria-label");return!(!et||$t&&$t.trim()===et)}_isElementNode(me){return me.nodeType===this._document.ELEMENT_NODE}}return Ee.\u0275fac=function(me){return new(me||Ee)(t.LFG(e.K0))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();function p(Ee,Y){return"string"==typeof Ee?`${Y||""}/${Ee}`:Ee}function u(Ee){Ee.id||(Ee.id=`${de}-${ae++}`)}class _{constructor(Y){this._items=Y,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new y.x,this._typeaheadSubscription=C.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=me=>me.disabled,this._pressedLetters=[],this.tabOut=new y.x,this.change=new y.x,Y instanceof t.n_E&&Y.changes.subscribe(me=>{if(this._activeItem){const et=me.toArray().indexOf(this._activeItem);et>-1&&et!==this._activeItemIndex&&(this._activeItemIndex=et)}})}skipPredicate(Y){return this._skipPredicateFn=Y,this}withWrap(Y=!0){return this._wrap=Y,this}withVerticalOrientation(Y=!0){return this._vertical=Y,this}withHorizontalOrientation(Y){return this._horizontal=Y,this}withAllowedModifierKeys(Y){return this._allowedModifierKeys=Y,this}withTypeAhead(Y=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,N.b)(me=>this._pressedLetters.push(me)),(0,s.b)(Y),(0,D.h)(()=>this._pressedLetters.length>0),(0,A.U)(()=>this._pressedLetters.join(""))).subscribe(me=>{const De=this._getItemsArray();for(let et=1;et!Y[$t]||this._allowedModifierKeys.indexOf($t)>-1);switch(me){case l.Mf:return void this.tabOut.next();case l.JH:if(this._vertical&&et){this.setNextItemActive();break}return;case l.LH:if(this._vertical&&et){this.setPreviousItemActive();break}return;case l.SV:if(this._horizontal&&et){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case l.oh:if(this._horizontal&&et){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case l.Sd:if(this._homeAndEnd&&et){this.setFirstItemActive();break}return;case l.uR:if(this._homeAndEnd&&et){this.setLastItemActive();break}return;default:return void((et||(0,l.Vb)(Y,"shiftKey"))&&(Y.key&&1===Y.key.length?this._letterKeyStream.next(Y.key.toLocaleUpperCase()):(me>=l.A&&me<=l.Z||me>=l.xE&&me<=l.aO)&&this._letterKeyStream.next(String.fromCharCode(me))))}this._pressedLetters=[],Y.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(Y){const me=this._getItemsArray(),De="number"==typeof Y?Y:me.indexOf(Y),et=me[De];this._activeItem=null==et?null:et,this._activeItemIndex=De}_setActiveItemByDelta(Y){this._wrap?this._setActiveInWrapMode(Y):this._setActiveInDefaultMode(Y)}_setActiveInWrapMode(Y){const me=this._getItemsArray();for(let De=1;De<=me.length;De++){const et=(this._activeItemIndex+Y*De+me.length)%me.length;if(!this._skipPredicateFn(me[et]))return void this.setActiveItem(et)}}_setActiveInDefaultMode(Y){this._setActiveItemByIndex(this._activeItemIndex+Y,Y)}_setActiveItemByIndex(Y,me){const De=this._getItemsArray();if(De[Y]){for(;this._skipPredicateFn(De[Y]);)if(!De[Y+=me])return;this.setActiveItem(Y)}}_getItemsArray(){return this._items instanceof t.n_E?this._items.toArray():this._items}}class L extends _{setActiveItem(Y){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Y),this.activeItem&&this.activeItem.setActiveStyles()}}class I extends _{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Y){return this._origin=Y,this}setActiveItem(Y){super.setActiveItem(Y),this.activeItem&&this.activeItem.focus(this._origin)}}let r=(()=>{class Ee{constructor(me){this._platform=me}isDisabled(me){return me.hasAttribute("disabled")}isVisible(me){return function G(Ee){return!!(Ee.offsetWidth||Ee.offsetHeight||"function"==typeof Ee.getClientRects&&Ee.getClientRects().length)}(me)&&"visible"===getComputedStyle(me).visibility}isTabbable(me){if(!this._platform.isBrowser)return!1;const De=function v(Ee){try{return Ee.frameElement}catch(Y){return null}}(function we(Ee){return Ee.ownerDocument&&Ee.ownerDocument.defaultView||window}(me));if(De&&(-1===Ie(De)||!this.isVisible(De)))return!1;let et=me.nodeName.toLowerCase(),$t=Ie(me);return me.hasAttribute("contenteditable")?-1!==$t:!("iframe"===et||"object"===et||this._platform.WEBKIT&&this._platform.IOS&&!function K(Ee){let Y=Ee.nodeName.toLowerCase(),me="input"===Y&&Ee.type;return"text"===me||"password"===me||"select"===Y||"textarea"===Y}(me))&&("audio"===et?!!me.hasAttribute("controls")&&-1!==$t:"video"===et?-1!==$t&&(null!==$t||this._platform.FIREFOX||me.hasAttribute("controls")):me.tabIndex>=0)}isFocusable(me,De){return function Me(Ee){return!function U(Ee){return function Ce(Ee){return"input"==Ee.nodeName.toLowerCase()}(Ee)&&"hidden"==Ee.type}(Ee)&&(function F(Ee){let Y=Ee.nodeName.toLowerCase();return"input"===Y||"select"===Y||"button"===Y||"textarea"===Y}(Ee)||function ye(Ee){return function Be(Ee){return"a"==Ee.nodeName.toLowerCase()}(Ee)&&Ee.hasAttribute("href")}(Ee)||Ee.hasAttribute("contenteditable")||ze(Ee))}(me)&&!this.isDisabled(me)&&((null==De?void 0:De.ignoreVisibility)||this.isVisible(me))}}return Ee.\u0275fac=function(me){return new(me||Ee)(t.LFG(j.t4))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();function ze(Ee){if(!Ee.hasAttribute("tabindex")||void 0===Ee.tabIndex)return!1;let Y=Ee.getAttribute("tabindex");return!(!Y||isNaN(parseInt(Y,10)))}function Ie(Ee){if(!ze(Ee))return null;const Y=parseInt(Ee.getAttribute("tabindex")||"",10);return isNaN(Y)?-1:Y}class z{constructor(Y,me,De,et,$t=!1){this._element=Y,this._checker=me,this._ngZone=De,this._document=et,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,$t||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Y){this._enabled=Y,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Y,this._startAnchor),this._toggleAnchorTabIndex(Y,this._endAnchor))}destroy(){const Y=this._startAnchor,me=this._endAnchor;Y&&(Y.removeEventListener("focus",this.startAnchorListener),Y.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(Y){return new Promise(me=>{this._executeOnStable(()=>me(this.focusInitialElement(Y)))})}focusFirstTabbableElementWhenReady(Y){return new Promise(me=>{this._executeOnStable(()=>me(this.focusFirstTabbableElement(Y)))})}focusLastTabbableElementWhenReady(Y){return new Promise(me=>{this._executeOnStable(()=>me(this.focusLastTabbableElement(Y)))})}_getRegionBoundary(Y){const me=this._element.querySelectorAll(`[cdk-focus-region-${Y}], [cdkFocusRegion${Y}], [cdk-focus-${Y}]`);return"start"==Y?me.length?me[0]:this._getFirstTabbableElement(this._element):me.length?me[me.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Y){const me=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(me){if(!this._checker.isFocusable(me)){const De=this._getFirstTabbableElement(me);return null==De||De.focus(Y),!!De}return me.focus(Y),!0}return this.focusFirstTabbableElement(Y)}focusFirstTabbableElement(Y){const me=this._getRegionBoundary("start");return me&&me.focus(Y),!!me}focusLastTabbableElement(Y){const me=this._getRegionBoundary("end");return me&&me.focus(Y),!!me}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Y){if(this._checker.isFocusable(Y)&&this._checker.isTabbable(Y))return Y;const me=Y.children;for(let De=0;De=0;De--){const et=me[De].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(me[De]):null;if(et)return et}return null}_createAnchor(){const Y=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Y),Y.classList.add("cdk-visually-hidden"),Y.classList.add("cdk-focus-trap-anchor"),Y.setAttribute("aria-hidden","true"),Y}_toggleAnchorTabIndex(Y,me){Y?me.setAttribute("tabindex","0"):me.removeAttribute("tabindex")}toggleAnchors(Y){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Y,this._startAnchor),this._toggleAnchorTabIndex(Y,this._endAnchor))}_executeOnStable(Y){this._ngZone.isStable?Y():this._ngZone.onStable.pipe((0,O.q)(1)).subscribe(Y)}}let Ge=(()=>{class Ee{constructor(me,De,et){this._checker=me,this._ngZone=De,this._document=et}create(me,De=!1){return new z(me,this._checker,this._ngZone,this._document,De)}}return Ee.\u0275fac=function(me){return new(me||Ee)(t.LFG(r),t.LFG(t.R0b),t.LFG(e.K0))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),vt=(()=>{class Ee{constructor(me,De,et){this._elementRef=me,this._focusTrapFactory=De,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(me){this.focusTrap.enabled=(0,Z.Ig)(me)}get autoCapture(){return this._autoCapture}set autoCapture(me){this._autoCapture=(0,Z.Ig)(me)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(me){const De=me.autoCapture;De&&!De.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,j.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Ee.\u0275fac=function(me){return new(me||Ee)(t.Y36(t.SBq),t.Y36(Ge),t.Y36(e.K0))},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[t.TTD]}),Ee})();function q(Ee){return 0===Ee.offsetX&&0===Ee.offsetY}function $(Ee){const Y=Ee.touches&&Ee.touches[0]||Ee.changedTouches&&Ee.changedTouches[0];return!(!Y||-1!==Y.identifier||null!=Y.radiusX&&1!==Y.radiusX||null!=Y.radiusY&&1!==Y.radiusY)}const le=new t.OlP("cdk-input-modality-detector-options"),xe={ignoreKeys:[l.zL,l.jx,l.b2,l.MW,l.JU]},lt=(0,j.i$)({passive:!0,capture:!0});let nt=(()=>{class Ee{constructor(me,De,et,$t){this._platform=me,this._mostRecentTarget=null,this._modality=new o.X(null),this._lastTouchMs=0,this._onKeydown=Nt=>{var Jt,ct;(null===(ct=null===(Jt=this._options)||void 0===Jt?void 0:Jt.ignoreKeys)||void 0===ct?void 0:ct.some(Pe=>Pe===Nt.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,j.sA)(Nt))},this._onMousedown=Nt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(q(Nt)?"keyboard":"mouse"),this._mostRecentTarget=(0,j.sA)(Nt))},this._onTouchstart=Nt=>{$(Nt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,j.sA)(Nt))},this._options=Object.assign(Object.assign({},xe),$t),this.modalityDetected=this._modality.pipe((0,E.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,P.x)()),me.isBrowser&&De.runOutsideAngular(()=>{et.addEventListener("keydown",this._onKeydown,lt),et.addEventListener("mousedown",this._onMousedown,lt),et.addEventListener("touchstart",this._onTouchstart,lt)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,lt),document.removeEventListener("mousedown",this._onMousedown,lt),document.removeEventListener("touchstart",this._onTouchstart,lt))}}return Ee.\u0275fac=function(me){return new(me||Ee)(t.LFG(j.t4),t.LFG(t.R0b),t.LFG(e.K0),t.LFG(le,8))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();const ft=new t.OlP("liveAnnouncerElement",{providedIn:"root",factory:function it(){return null}}),rt=new t.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Mt=(()=>{class Ee{constructor(me,De,et,$t){this._ngZone=De,this._defaultOptions=$t,this._document=et,this._liveElement=me||this._createLiveElement()}announce(me,...De){const et=this._defaultOptions;let $t,Nt;return 1===De.length&&"number"==typeof De[0]?Nt=De[0]:[$t,Nt]=De,this.clear(),clearTimeout(this._previousTimeout),$t||($t=et&&et.politeness?et.politeness:"polite"),null==Nt&&et&&(Nt=et.duration),this._liveElement.setAttribute("aria-live",$t),this._ngZone.runOutsideAngular(()=>new Promise(Jt=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=me,Jt(),"number"==typeof Nt&&(this._previousTimeout=setTimeout(()=>this.clear(),Nt))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var me;clearTimeout(this._previousTimeout),null===(me=this._liveElement)||void 0===me||me.remove(),this._liveElement=null}_createLiveElement(){const me="cdk-live-announcer-element",De=this._document.getElementsByClassName(me),et=this._document.createElement("div");for(let $t=0;$t{class Ee{constructor(me,De,et,$t){this._elementRef=me,this._liveAnnouncer=De,this._contentObserver=et,this._ngZone=$t,this._politeness="polite"}get politeness(){return this._politeness}set politeness(me){this._politeness="off"===me||"assertive"===me?me:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const De=this._elementRef.nativeElement.textContent;De!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(De,this._politeness),this._previousAnnouncedText=De)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return Ee.\u0275fac=function(me){return new(me||Ee)(t.Y36(t.SBq),t.Y36(Mt),t.Y36(W.yq),t.Y36(t.R0b))},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),Ee})();const Ft=new t.OlP("cdk-focus-monitor-default-options"),Vt=(0,j.i$)({passive:!0,capture:!0});let Ii=(()=>{class Ee{constructor(me,De,et,$t,Nt){this._ngZone=me,this._platform=De,this._inputModalityDetector=et,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new y.x,this._rootNodeFocusAndBlurListener=Jt=>{const ct=(0,j.sA)(Jt),Pe="focus"===Jt.type?this._onFocus:this._onBlur;for(let Fe=ct;Fe;Fe=Fe.parentElement)Pe.call(this,Jt,Fe)},this._document=$t,this._detectionMode=(null==Nt?void 0:Nt.detectionMode)||0}monitor(me,De=!1){const et=(0,Z.fI)(me);if(!this._platform.isBrowser||1!==et.nodeType)return(0,M.of)(null);const $t=(0,j.kV)(et)||this._getDocument(),Nt=this._elementInfo.get(et);if(Nt)return De&&(Nt.checkChildren=!0),Nt.subject;const Jt={checkChildren:De,subject:new y.x,rootNode:$t};return this._elementInfo.set(et,Jt),this._registerGlobalListeners(Jt),Jt.subject}stopMonitoring(me){const De=(0,Z.fI)(me),et=this._elementInfo.get(De);et&&(et.subject.complete(),this._setClasses(De),this._elementInfo.delete(De),this._removeGlobalListeners(et))}focusVia(me,De,et){const $t=(0,Z.fI)(me);$t===this._getDocument().activeElement?this._getClosestElementsInfo($t).forEach(([Jt,ct])=>this._originChanged(Jt,De,ct)):(this._setOrigin(De),"function"==typeof $t.focus&&$t.focus(et))}ngOnDestroy(){this._elementInfo.forEach((me,De)=>this.stopMonitoring(De))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(me){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(me)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(me){return 1===this._detectionMode||!!(null==me?void 0:me.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(me,De){me.classList.toggle("cdk-focused",!!De),me.classList.toggle("cdk-touch-focused","touch"===De),me.classList.toggle("cdk-keyboard-focused","keyboard"===De),me.classList.toggle("cdk-mouse-focused","mouse"===De),me.classList.toggle("cdk-program-focused","program"===De)}_setOrigin(me,De=!1){this._ngZone.runOutsideAngular(()=>{this._origin=me,this._originFromTouchInteraction="touch"===me&&De,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(me,De){const et=this._elementInfo.get(De),$t=(0,j.sA)(me);!et||!et.checkChildren&&De!==$t||this._originChanged(De,this._getFocusOrigin($t),et)}_onBlur(me,De){const et=this._elementInfo.get(De);!et||et.checkChildren&&me.relatedTarget instanceof Node&&De.contains(me.relatedTarget)||(this._setClasses(De),this._emitOrigin(et.subject,null))}_emitOrigin(me,De){this._ngZone.run(()=>me.next(De))}_registerGlobalListeners(me){if(!this._platform.isBrowser)return;const De=me.rootNode,et=this._rootNodeFocusListenerCount.get(De)||0;et||this._ngZone.runOutsideAngular(()=>{De.addEventListener("focus",this._rootNodeFocusAndBlurListener,Vt),De.addEventListener("blur",this._rootNodeFocusAndBlurListener,Vt)}),this._rootNodeFocusListenerCount.set(De,et+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,w.R)(this._stopInputModalityDetector)).subscribe($t=>{this._setOrigin($t,!0)}))}_removeGlobalListeners(me){const De=me.rootNode;if(this._rootNodeFocusListenerCount.has(De)){const et=this._rootNodeFocusListenerCount.get(De);et>1?this._rootNodeFocusListenerCount.set(De,et-1):(De.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Vt),De.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Vt),this._rootNodeFocusListenerCount.delete(De))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(me,De,et){this._setClasses(me,De),this._emitOrigin(et.subject,De),this._lastFocusOrigin=De}_getClosestElementsInfo(me){const De=[];return this._elementInfo.forEach((et,$t)=>{($t===me||et.checkChildren&&$t.contains(me))&&De.push([$t,et])}),De}}return Ee.\u0275fac=function(me){return new(me||Ee)(t.LFG(t.R0b),t.LFG(j.t4),t.LFG(nt),t.LFG(e.K0,8),t.LFG(Ft,8))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),jt=(()=>{class Ee{constructor(me,De){this._elementRef=me,this._focusMonitor=De,this.cdkFocusChange=new t.vpe}ngAfterViewInit(){const me=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(me,1===me.nodeType&&me.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(De=>this.cdkFocusChange.emit(De))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Ee.\u0275fac=function(me){return new(me||Ee)(t.Y36(t.SBq),t.Y36(Ii))},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Ee})();const ei="cdk-high-contrast-black-on-white",Pi="cdk-high-contrast-white-on-black",ai="cdk-high-contrast-active";let hi=(()=>{class Ee{constructor(me,De){this._platform=me,this._document=De}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const me=this._document.createElement("div");me.style.backgroundColor="rgb(1,2,3)",me.style.position="absolute",this._document.body.appendChild(me);const De=this._document.defaultView||window,et=De&&De.getComputedStyle?De.getComputedStyle(me):null,$t=(et&&et.backgroundColor||"").replace(/ /g,"");switch(me.remove(),$t){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const me=this._document.body.classList;me.remove(ai),me.remove(ei),me.remove(Pi),this._hasCheckedHighContrastMode=!0;const De=this.getHighContrastMode();1===De?(me.add(ai),me.add(ei)):2===De&&(me.add(ai),me.add(Pi))}}}return Ee.\u0275fac=function(me){return new(me||Ee)(t.LFG(j.t4),t.LFG(e.K0))},Ee.\u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),Ze=(()=>{class Ee{constructor(me){me._applyBodyHighContrastModeCssClasses()}}return Ee.\u0275fac=function(me){return new(me||Ee)(t.LFG(hi))},Ee.\u0275mod=t.oAB({type:Ee}),Ee.\u0275inj=t.cJS({imports:[[j.ud,W.Q8]]}),Ee})()},226:(Ve,Q,m)=>{"use strict";m.d(Q,{vT:()=>s,Is:()=>l});var e=m(5e3),t=m(9808);const y=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function C(){return(0,e.f3M)(t.K0)}}),o=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let l=(()=>{class D{constructor(O){if(this.value="ltr",this.change=new e.vpe,O){const P=O.documentElement?O.documentElement.dir:null;this.value=function M(D){const A=(null==D?void 0:D.toLowerCase())||"";return"auto"===A&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?o.test(navigator.language)?"rtl":"ltr":"rtl"===A?"rtl":"ltr"}((O.body?O.body.dir:null)||P||"ltr")}}ngOnDestroy(){this.change.complete()}}return D.\u0275fac=function(O){return new(O||D)(e.LFG(y,8))},D.\u0275prov=e.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})(),s=(()=>{class D{}return D.\u0275fac=function(O){return new(O||D)},D.\u0275mod=e.oAB({type:D}),D.\u0275inj=e.cJS({}),D})()},3191:(Ve,Q,m)=>{"use strict";m.d(Q,{t6:()=>C,Eq:()=>o,Ig:()=>t,HM:()=>M,fI:()=>l,su:()=>y,du:()=>N});var e=m(5e3);function t(s){return null!=s&&"false"!=`${s}`}function y(s,D=0){return C(s)?Number(s):D}function C(s){return!isNaN(parseFloat(s))&&!isNaN(Number(s))}function o(s){return Array.isArray(s)?s:[s]}function M(s){return null==s?"":"string"==typeof s?s:`${s}px`}function l(s){return s instanceof e.SBq?s.nativeElement:s}function N(s,D=/\s+/){const A=[];if(null!=s){const O=Array.isArray(s)?s:`${s}`.split(D);for(const E of O){const P=`${E}`.trim();P&&A.push(P)}}return A}},449:(Ve,Q,m)=>{"use strict";m.d(Q,{o2:()=>y,Ov:()=>N,A8:()=>D,yy:()=>M,eX:()=>l,k:()=>A,Z9:()=>C});var e=m(7579),t=m(5e3);class y{}function C(O){return O&&"function"==typeof O.connect}class M{applyChanges(E,P,w,Z,j){E.forEachOperation((W,ie,ee)=>{let _e,ce;if(null==W.previousIndex){const re=w(W,ie,ee);_e=P.createEmbeddedView(re.templateRef,re.context,re.index),ce=1}else null==ee?(P.remove(ie),ce=3):(_e=P.get(ie),P.move(_e,ee),ce=2);j&&j({context:null==_e?void 0:_e.context,operation:ce,record:W})})}detach(){}}class l{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(E,P,w,Z,j){E.forEachOperation((W,ie,ee)=>{let _e,ce;null==W.previousIndex?(_e=this._insertView(()=>w(W,ie,ee),ee,P,Z(W)),ce=_e?1:0):null==ee?(this._detachAndCacheView(ie,P),ce=3):(_e=this._moveView(ie,ee,P,Z(W)),ce=2),j&&j({context:null==_e?void 0:_e.context,operation:ce,record:W})})}detach(){for(const E of this._viewCache)E.destroy();this._viewCache=[]}_insertView(E,P,w,Z){const j=this._insertViewFromCache(P,w);if(j)return void(j.context.$implicit=Z);const W=E();return w.createEmbeddedView(W.templateRef,W.context,W.index)}_detachAndCacheView(E,P){const w=P.detach(E);this._maybeCacheView(w,P)}_moveView(E,P,w,Z){const j=w.get(E);return w.move(j,P),j.context.$implicit=Z,j}_maybeCacheView(E,P){if(this._viewCache.lengththis._markSelected(Z)):this._markSelected(P[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...E){this._verifyValueAssignment(E),E.forEach(P=>this._markSelected(P)),this._emitChangeEvent()}deselect(...E){this._verifyValueAssignment(E),E.forEach(P=>this._unmarkSelected(P)),this._emitChangeEvent()}toggle(E){this.isSelected(E)?this.deselect(E):this.select(E)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(E){return this._selection.has(E)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(E){this._multiple&&this.selected&&this._selected.sort(E)}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(E){this.isSelected(E)||(this._multiple||this._unmarkAll(),this._selection.add(E),this._emitChanges&&this._selectedToEmit.push(E))}_unmarkSelected(E){this.isSelected(E)&&(this._selection.delete(E),this._emitChanges&&this._deselectedToEmit.push(E))}_unmarkAll(){this.isEmpty()||this._selection.forEach(E=>this._unmarkSelected(E))}_verifyValueAssignment(E){}}let D=(()=>{class O{constructor(){this._listeners=[]}notify(P,w){for(let Z of this._listeners)Z(P,w)}listen(P){return this._listeners.push(P),()=>{this._listeners=this._listeners.filter(w=>P!==w)}}ngOnDestroy(){this._listeners=[]}}return O.\u0275fac=function(P){return new(P||O)},O.\u0275prov=t.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})();const A=new t.OlP("_ViewRepeater")},1159:(Ve,Q,m)=>{"use strict";m.d(Q,{A:()=>F,zL:()=>N,jx:()=>l,JH:()=>ee,uR:()=>w,K5:()=>o,hY:()=>A,Sd:()=>Z,oh:()=>j,b2:()=>ui,MW:()=>it,aO:()=>I,VM:()=>P,Ku:()=>E,SV:()=>ie,JU:()=>M,L_:()=>O,Mf:()=>y,LH:()=>W,Z:()=>ft,xE:()=>oe,Vb:()=>Ci});const y=9,o=13,M=16,l=17,N=18,A=27,O=32,E=33,P=34,w=35,Z=36,j=37,W=38,ie=39,ee=40,oe=48,I=57,F=65,ft=90,it=91,ui=224;function Ci(Yi,...$i){return $i.length?$i.some(Cn=>Yi[Cn]):Yi.altKey||Yi.shiftKey||Yi.ctrlKey||Yi.metaKey}},5113:(Ve,Q,m)=>{"use strict";m.d(Q,{Yg:()=>ee,u3:()=>ce,xu:()=>P});var e=m(5e3),t=m(3191),y=m(7579),C=m(9841),o=m(7272),M=m(8306),l=m(5698),N=m(5684),s=m(8372),D=m(4004),A=m(8675),O=m(2722),E=m(925);let P=(()=>{class re{}return re.\u0275fac=function(oe){return new(oe||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({}),re})();const w=new Set;let Z,j=(()=>{class re{constructor(oe){this._platform=oe,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ie}matchMedia(oe){return(this._platform.WEBKIT||this._platform.BLINK)&&function W(re){if(!w.has(re))try{Z||(Z=document.createElement("style"),Z.setAttribute("type","text/css"),document.head.appendChild(Z)),Z.sheet&&(Z.sheet.insertRule(`@media ${re} {body{ }}`,0),w.add(re))}catch(de){console.error(de)}}(oe),this._matchMedia(oe)}}return re.\u0275fac=function(oe){return new(oe||re)(e.LFG(E.t4))},re.\u0275prov=e.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})();function ie(re){return{matches:"all"===re||""===re,media:re,addListener:()=>{},removeListener:()=>{}}}let ee=(()=>{class re{constructor(oe,ae){this._mediaMatcher=oe,this._zone=ae,this._queries=new Map,this._destroySubject=new y.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(oe){return _e((0,t.Eq)(oe)).some(b=>this._registerQuery(b).mql.matches)}observe(oe){const b=_e((0,t.Eq)(oe)).map(a=>this._registerQuery(a).observable);let i=(0,C.a)(b);return i=(0,o.z)(i.pipe((0,l.q)(1)),i.pipe((0,N.T)(1),(0,s.b)(0))),i.pipe((0,D.U)(a=>{const p={matches:!1,breakpoints:{}};return a.forEach(({matches:u,query:_})=>{p.matches=p.matches||u,p.breakpoints[_]=u}),p}))}_registerQuery(oe){if(this._queries.has(oe))return this._queries.get(oe);const ae=this._mediaMatcher.matchMedia(oe),i={observable:new M.y(a=>{const p=u=>this._zone.run(()=>a.next(u));return ae.addListener(p),()=>{ae.removeListener(p)}}).pipe((0,A.O)(ae),(0,D.U)(({matches:a})=>({query:oe,matches:a})),(0,O.R)(this._destroySubject)),mql:ae};return this._queries.set(oe,i),i}}return re.\u0275fac=function(oe){return new(oe||re)(e.LFG(j),e.LFG(e.R0b))},re.\u0275prov=e.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})();function _e(re){return re.map(de=>de.split(",")).reduce((de,oe)=>de.concat(oe)).map(de=>de.trim())}const ce={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)"}},7144:(Ve,Q,m)=>{"use strict";m.d(Q,{wD:()=>N,yq:()=>l,Q8:()=>s});var e=m(3191),t=m(5e3),y=m(8306),C=m(7579),o=m(8372);let M=(()=>{class D{create(O){return"undefined"==typeof MutationObserver?null:new MutationObserver(O)}}return D.\u0275fac=function(O){return new(O||D)},D.\u0275prov=t.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})(),l=(()=>{class D{constructor(O){this._mutationObserverFactory=O,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((O,E)=>this._cleanupObserver(E))}observe(O){const E=(0,e.fI)(O);return new y.y(P=>{const Z=this._observeElement(E).subscribe(P);return()=>{Z.unsubscribe(),this._unobserveElement(E)}})}_observeElement(O){if(this._observedElements.has(O))this._observedElements.get(O).count++;else{const E=new C.x,P=this._mutationObserverFactory.create(w=>E.next(w));P&&P.observe(O,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(O,{observer:P,stream:E,count:1})}return this._observedElements.get(O).stream}_unobserveElement(O){this._observedElements.has(O)&&(this._observedElements.get(O).count--,this._observedElements.get(O).count||this._cleanupObserver(O))}_cleanupObserver(O){if(this._observedElements.has(O)){const{observer:E,stream:P}=this._observedElements.get(O);E&&E.disconnect(),P.complete(),this._observedElements.delete(O)}}}return D.\u0275fac=function(O){return new(O||D)(t.LFG(M))},D.\u0275prov=t.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})(),N=(()=>{class D{constructor(O,E,P){this._contentObserver=O,this._elementRef=E,this._ngZone=P,this.event=new t.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(O){this._disabled=(0,e.Ig)(O),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(O){this._debounce=(0,e.su)(O),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const O=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?O.pipe((0,o.b)(this.debounce)):O).subscribe(this.event)})}_unsubscribe(){var O;null===(O=this._currentSubscription)||void 0===O||O.unsubscribe()}}return D.\u0275fac=function(O){return new(O||D)(t.Y36(l),t.Y36(t.SBq),t.Y36(t.R0b))},D.\u0275dir=t.lG2({type:D,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),D})(),s=(()=>{class D{}return D.\u0275fac=function(O){return new(O||D)},D.\u0275mod=t.oAB({type:D}),D.\u0275inj=t.cJS({providers:[M]}),D})()},9776:(Ve,Q,m)=>{"use strict";m.d(Q,{pI:()=>vt,xu:()=>Ge,_G:()=>r,aV:()=>Me,X_:()=>ae,Xj:()=>L,U8:()=>he});var e=m(5303),t=m(9808),y=m(5e3),C=m(3191),o=m(925),M=m(226),l=m(7429),N=m(7579),s=m(727),D=m(6451),A=m(4482),O=m(5403),P=m(5698),w=m(2722),Z=m(1159);const j=(0,o.Mq)();class W{constructor(q,$){this._viewportRuler=q,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=$}attach(){}enable(){if(this._canBeEnabled()){const q=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=q.style.left||"",this._previousHTMLStyles.top=q.style.top||"",q.style.left=(0,C.HM)(-this._previousScrollPosition.left),q.style.top=(0,C.HM)(-this._previousScrollPosition.top),q.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const q=this._document.documentElement,le=q.style,xe=this._document.body.style,Ue=le.scrollBehavior||"",lt=xe.scrollBehavior||"";this._isEnabled=!1,le.left=this._previousHTMLStyles.left,le.top=this._previousHTMLStyles.top,q.classList.remove("cdk-global-scrollblock"),j&&(le.scrollBehavior=xe.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),j&&(le.scrollBehavior=Ue,xe.scrollBehavior=lt)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const $=this._document.body,le=this._viewportRuler.getViewportSize();return $.scrollHeight>le.height||$.scrollWidth>le.width}}class ee{constructor(q,$,le,xe){this._scrollDispatcher=q,this._ngZone=$,this._viewportRuler=le,this._config=xe,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(q){this._overlayRef=q}enable(){if(this._scrollSubscription)return;const q=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=q.subscribe(()=>{const $=this._viewportRuler.getViewportScrollPosition().top;Math.abs($-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=q.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class _e{enable(){}disable(){}attach(){}}function ce(ke,q){return q.some($=>ke.bottom<$.top||ke.top>$.bottom||ke.right<$.left||ke.left>$.right)}function re(ke,q){return q.some($=>ke.top<$.top||ke.bottom>$.bottom||ke.left<$.left||ke.right>$.right)}class de{constructor(q,$,le,xe){this._scrollDispatcher=q,this._viewportRuler=$,this._ngZone=le,this._config=xe,this._scrollSubscription=null}attach(q){this._overlayRef=q}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 $=this._overlayRef.overlayElement.getBoundingClientRect(),{width:le,height:xe}=this._viewportRuler.getViewportSize();ce($,[{width:le,height:xe,bottom:xe,right:le,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 oe=(()=>{class ke{constructor($,le,xe,Ue){this._scrollDispatcher=$,this._viewportRuler=le,this._ngZone=xe,this.noop=()=>new _e,this.close=lt=>new ee(this._scrollDispatcher,this._ngZone,this._viewportRuler,lt),this.block=()=>new W(this._viewportRuler,this._document),this.reposition=lt=>new de(this._scrollDispatcher,this._viewportRuler,this._ngZone,lt),this._document=Ue}}return ke.\u0275fac=function($){return new($||ke)(y.LFG(e.mF),y.LFG(e.rL),y.LFG(y.R0b),y.LFG(t.K0))},ke.\u0275prov=y.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();class ae{constructor(q){if(this.scrollStrategy=new _e,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,q){const $=Object.keys(q);for(const le of $)void 0!==q[le]&&(this[le]=q[le])}}}class a{constructor(q,$){this.connectionPair=q,this.scrollableViewProperties=$}}class _{constructor(q,$,le,xe,Ue,lt,nt,ft,it){this._portalOutlet=q,this._host=$,this._pane=le,this._config=xe,this._ngZone=Ue,this._keyboardDispatcher=lt,this._document=nt,this._location=ft,this._outsideClickDispatcher=it,this._backdropElement=null,this._backdropClick=new N.x,this._attachments=new N.x,this._detachments=new N.x,this._locationChanges=s.w0.EMPTY,this._backdropClickHandler=rt=>this._backdropClick.next(rt),this._keydownEvents=new N.x,this._outsidePointerEvents=new N.x,xe.scrollStrategy&&(this._scrollStrategy=xe.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=xe.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(q){let $=this._portalOutlet.attach(q);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),$}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const q=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),q}dispose(){var q;const $=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),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),null===(q=this._host)||void 0===q||q.remove(),this._previousHostParent=this._pane=this._host=null,$&&this._detachments.next(),this._detachments.complete()}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(q){q!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=q,this.hasAttached()&&(q.attach(this),this.updatePosition()))}updateSize(q){this._config=Object.assign(Object.assign({},this._config),q),this._updateElementSize()}setDirection(q){this._config=Object.assign(Object.assign({},this._config),{direction:q}),this._updateElementDirection()}addPanelClass(q){this._pane&&this._toggleClasses(this._pane,q,!0)}removePanelClass(q){this._pane&&this._toggleClasses(this._pane,q,!1)}getDirection(){const q=this._config.direction;return q?"string"==typeof q?q:q.value:"ltr"}updateScrollStrategy(q){q!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=q,this.hasAttached()&&(q.attach(this),q.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const q=this._pane.style;q.width=(0,C.HM)(this._config.width),q.height=(0,C.HM)(this._config.height),q.minWidth=(0,C.HM)(this._config.minWidth),q.minHeight=(0,C.HM)(this._config.minHeight),q.maxWidth=(0,C.HM)(this._config.maxWidth),q.maxHeight=(0,C.HM)(this._config.maxHeight)}_togglePointerEvents(q){this._pane.style.pointerEvents=q?"":"none"}_attachBackdrop(){const q="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(q)})}):this._backdropElement.classList.add(q)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const q=this._backdropElement;if(!q)return;let $;const le=()=>{q&&(q.removeEventListener("click",this._backdropClickHandler),q.removeEventListener("transitionend",le),this._disposeBackdrop(q)),this._config.backdropClass&&this._toggleClasses(q,this._config.backdropClass,!1),clearTimeout($)};q.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{q.addEventListener("transitionend",le)}),q.style.pointerEvents="none",$=this._ngZone.runOutsideAngular(()=>setTimeout(le,500))}_toggleClasses(q,$,le){const xe=(0,C.Eq)($||[]).filter(Ue=>!!Ue);xe.length&&(le?q.classList.add(...xe):q.classList.remove(...xe))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const q=this._ngZone.onStable.pipe((0,w.R)((0,D.T)(this._attachments,this._detachments))).subscribe(()=>{(!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()),q.unsubscribe())})})}_disposeScrollStrategy(){const q=this._scrollStrategy;q&&(q.disable(),q.detach&&q.detach())}_disposeBackdrop(q){q&&(q.remove(),this._backdropElement===q&&(this._backdropElement=null))}}let L=(()=>{class ke{constructor($,le){this._platform=le,this._document=$}ngOnDestroy(){var $;null===($=this._containerElement)||void 0===$||$.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const $="cdk-overlay-container";if(this._platform.isBrowser||(0,o.Oy)()){const xe=this._document.querySelectorAll(`.${$}[platform="server"], .${$}[platform="test"]`);for(let Ue=0;Ue{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();const q=this._originRect,$=this._overlayRect,le=this._viewportRect,xe=[];let Ue;for(let lt of this._preferredPositions){let nt=this._getOriginPoint(q,lt),ft=this._getOverlayPoint(nt,$,lt),it=this._getOverlayFit(ft,$,le,lt);if(it.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(lt,nt);this._canFitWithFlexibleDimensions(it,ft,le)?xe.push({position:lt,origin:nt,overlayRect:$,boundingBoxRect:this._calculateBoundingBoxRect(nt,lt)}):(!Ue||Ue.overlayFit.visibleAreant&&(nt=it,lt=ft)}return this._isPushed=!1,void this._applyPosition(lt.position,lt.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Ue.position,Ue.originPoint);this._applyPosition(Ue.position,Ue.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&v(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(I),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const q=this._lastPosition||this._preferredPositions[0],$=this._getOriginPoint(this._originRect,q);this._applyPosition(q,$)}}withScrollableContainers(q){return this._scrollables=q,this}withPositions(q){return this._preferredPositions=q,-1===q.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(q){return this._viewportMargin=q,this}withFlexibleDimensions(q=!0){return this._hasFlexibleDimensions=q,this}withGrowAfterOpen(q=!0){return this._growAfterOpen=q,this}withPush(q=!0){return this._canPush=q,this}withLockedPosition(q=!0){return this._positionLocked=q,this}setOrigin(q){return this._origin=q,this}withDefaultOffsetX(q){return this._offsetX=q,this}withDefaultOffsetY(q){return this._offsetY=q,this}withTransformOriginOn(q){return this._transformOriginSelector=q,this}_getOriginPoint(q,$){let le,xe;if("center"==$.originX)le=q.left+q.width/2;else{const Ue=this._isRtl()?q.right:q.left,lt=this._isRtl()?q.left:q.right;le="start"==$.originX?Ue:lt}return xe="center"==$.originY?q.top+q.height/2:"top"==$.originY?q.top:q.bottom,{x:le,y:xe}}_getOverlayPoint(q,$,le){let xe,Ue;return xe="center"==le.overlayX?-$.width/2:"start"===le.overlayX?this._isRtl()?-$.width:0:this._isRtl()?0:-$.width,Ue="center"==le.overlayY?-$.height/2:"top"==le.overlayY?0:-$.height,{x:q.x+xe,y:q.y+Ue}}_getOverlayFit(q,$,le,xe){const Ue=F($);let{x:lt,y:nt}=q,ft=this._getOffset(xe,"x"),it=this._getOffset(xe,"y");ft&&(lt+=ft),it&&(nt+=it);let Zt=0-nt,Ft=nt+Ue.height-le.height,Vt=this._subtractOverflows(Ue.width,0-lt,lt+Ue.width-le.width),Ii=this._subtractOverflows(Ue.height,Zt,Ft),jt=Vt*Ii;return{visibleArea:jt,isCompletelyWithinViewport:Ue.width*Ue.height===jt,fitsInViewportVertically:Ii===Ue.height,fitsInViewportHorizontally:Vt==Ue.width}}_canFitWithFlexibleDimensions(q,$,le){if(this._hasFlexibleDimensions){const xe=le.bottom-$.y,Ue=le.right-$.x,lt=G(this._overlayRef.getConfig().minHeight),nt=G(this._overlayRef.getConfig().minWidth),it=q.fitsInViewportHorizontally||null!=nt&&nt<=Ue;return(q.fitsInViewportVertically||null!=lt&<<=xe)&&it}return!1}_pushOverlayOnScreen(q,$,le){if(this._previousPushAmount&&this._positionLocked)return{x:q.x+this._previousPushAmount.x,y:q.y+this._previousPushAmount.y};const xe=F($),Ue=this._viewportRect,lt=Math.max(q.x+xe.width-Ue.width,0),nt=Math.max(q.y+xe.height-Ue.height,0),ft=Math.max(Ue.top-le.top-q.y,0),it=Math.max(Ue.left-le.left-q.x,0);let rt=0,Mt=0;return rt=xe.width<=Ue.width?it||-lt:q.xVt&&!this._isInitialRender&&!this._growAfterOpen&&(lt=q.y-Vt/2)}if("end"===$.overlayX&&!xe||"start"===$.overlayX&&xe)Zt=le.width-q.x+this._viewportMargin,rt=q.x-this._viewportMargin;else if("start"===$.overlayX&&!xe||"end"===$.overlayX&&xe)Mt=q.x,rt=le.right-q.x;else{const Ft=Math.min(le.right-q.x+le.left,q.x),Vt=this._lastBoundingBoxSize.width;rt=2*Ft,Mt=q.x-Ft,rt>Vt&&!this._isInitialRender&&!this._growAfterOpen&&(Mt=q.x-Vt/2)}return{top:lt,left:Mt,bottom:nt,right:Zt,width:rt,height:Ue}}_setBoundingBoxStyles(q,$){const le=this._calculateBoundingBoxRect(q,$);!this._isInitialRender&&!this._growAfterOpen&&(le.height=Math.min(le.height,this._lastBoundingBoxSize.height),le.width=Math.min(le.width,this._lastBoundingBoxSize.width));const xe={};if(this._hasExactPosition())xe.top=xe.left="0",xe.bottom=xe.right=xe.maxHeight=xe.maxWidth="",xe.width=xe.height="100%";else{const Ue=this._overlayRef.getConfig().maxHeight,lt=this._overlayRef.getConfig().maxWidth;xe.height=(0,C.HM)(le.height),xe.top=(0,C.HM)(le.top),xe.bottom=(0,C.HM)(le.bottom),xe.width=(0,C.HM)(le.width),xe.left=(0,C.HM)(le.left),xe.right=(0,C.HM)(le.right),xe.alignItems="center"===$.overlayX?"center":"end"===$.overlayX?"flex-end":"flex-start",xe.justifyContent="center"===$.overlayY?"center":"bottom"===$.overlayY?"flex-end":"flex-start",Ue&&(xe.maxHeight=(0,C.HM)(Ue)),lt&&(xe.maxWidth=(0,C.HM)(lt))}this._lastBoundingBoxSize=le,v(this._boundingBox.style,xe)}_resetBoundingBoxStyles(){v(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){v(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(q,$){const le={},xe=this._hasExactPosition(),Ue=this._hasFlexibleDimensions,lt=this._overlayRef.getConfig();if(xe){const rt=this._viewportRuler.getViewportScrollPosition();v(le,this._getExactOverlayY($,q,rt)),v(le,this._getExactOverlayX($,q,rt))}else le.position="static";let nt="",ft=this._getOffset($,"x"),it=this._getOffset($,"y");ft&&(nt+=`translateX(${ft}px) `),it&&(nt+=`translateY(${it}px)`),le.transform=nt.trim(),lt.maxHeight&&(xe?le.maxHeight=(0,C.HM)(lt.maxHeight):Ue&&(le.maxHeight="")),lt.maxWidth&&(xe?le.maxWidth=(0,C.HM)(lt.maxWidth):Ue&&(le.maxWidth="")),v(this._pane.style,le)}_getExactOverlayY(q,$,le){let xe={top:"",bottom:""},Ue=this._getOverlayPoint($,this._overlayRect,q);this._isPushed&&(Ue=this._pushOverlayOnScreen(Ue,this._overlayRect,le));let lt=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return Ue.y-=lt,"bottom"===q.overlayY?xe.bottom=this._document.documentElement.clientHeight-(Ue.y+this._overlayRect.height)+"px":xe.top=(0,C.HM)(Ue.y),xe}_getExactOverlayX(q,$,le){let lt,xe={left:"",right:""},Ue=this._getOverlayPoint($,this._overlayRect,q);return this._isPushed&&(Ue=this._pushOverlayOnScreen(Ue,this._overlayRect,le)),lt=this._isRtl()?"end"===q.overlayX?"left":"right":"end"===q.overlayX?"right":"left","right"===lt?xe.right=this._document.documentElement.clientWidth-(Ue.x+this._overlayRect.width)+"px":xe.left=(0,C.HM)(Ue.x),xe}_getScrollVisibility(){const q=this._getOriginRect(),$=this._pane.getBoundingClientRect(),le=this._scrollables.map(xe=>xe.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:re(q,le),isOriginOutsideView:ce(q,le),isOverlayClipped:re($,le),isOverlayOutsideView:ce($,le)}}_subtractOverflows(q,...$){return $.reduce((le,xe)=>le-Math.max(xe,0),q)}_getNarrowedViewportRect(){const q=this._document.documentElement.clientWidth,$=this._document.documentElement.clientHeight,le=this._viewportRuler.getViewportScrollPosition();return{top:le.top+this._viewportMargin,left:le.left+this._viewportMargin,right:le.left+q-this._viewportMargin,bottom:le.top+$-this._viewportMargin,width:q-2*this._viewportMargin,height:$-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(q,$){return"x"===$?null==q.offsetX?this._offsetX:q.offsetX:null==q.offsetY?this._offsetY:q.offsetY}_validatePositions(){}_addPanelClasses(q){this._pane&&(0,C.Eq)(q).forEach($=>{""!==$&&-1===this._appliedPanelClasses.indexOf($)&&(this._appliedPanelClasses.push($),this._pane.classList.add($))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(q=>{this._pane.classList.remove(q)}),this._appliedPanelClasses=[])}_getOriginRect(){const q=this._origin;if(q instanceof y.SBq)return q.nativeElement.getBoundingClientRect();if(q instanceof Element)return q.getBoundingClientRect();const $=q.width||0,le=q.height||0;return{top:q.y,bottom:q.y+le,left:q.x,right:q.x+$,height:le,width:$}}}function v(ke,q){for(let $ in q)q.hasOwnProperty($)&&(ke[$]=q[$]);return ke}function G(ke){if("number"!=typeof ke&&null!=ke){const[q,$]=ke.split(x);return $&&"px"!==$?null:parseFloat(q)}return ke||null}function F(ke){return{top:Math.floor(ke.top),right:Math.floor(ke.right),bottom:Math.floor(ke.bottom),left:Math.floor(ke.left),width:Math.floor(ke.width),height:Math.floor(ke.height)}}const U="cdk-global-overlay-wrapper";class ye{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(q){const $=q.getConfig();this._overlayRef=q,this._width&&!$.width&&q.updateSize({width:this._width}),this._height&&!$.height&&q.updateSize({height:this._height}),q.hostElement.classList.add(U),this._isDisposed=!1}top(q=""){return this._bottomOffset="",this._topOffset=q,this._alignItems="flex-start",this}left(q=""){return this._rightOffset="",this._leftOffset=q,this._justifyContent="flex-start",this}bottom(q=""){return this._topOffset="",this._bottomOffset=q,this._alignItems="flex-end",this}right(q=""){return this._leftOffset="",this._rightOffset=q,this._justifyContent="flex-end",this}width(q=""){return this._overlayRef?this._overlayRef.updateSize({width:q}):this._width=q,this}height(q=""){return this._overlayRef?this._overlayRef.updateSize({height:q}):this._height=q,this}centerHorizontally(q=""){return this.left(q),this._justifyContent="center",this}centerVertically(q=""){return this.top(q),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const q=this._overlayRef.overlayElement.style,$=this._overlayRef.hostElement.style,le=this._overlayRef.getConfig(),{width:xe,height:Ue,maxWidth:lt,maxHeight:nt}=le,ft=!("100%"!==xe&&"100vw"!==xe||lt&&"100%"!==lt&&"100vw"!==lt),it=!("100%"!==Ue&&"100vh"!==Ue||nt&&"100%"!==nt&&"100vh"!==nt);q.position=this._cssPosition,q.marginLeft=ft?"0":this._leftOffset,q.marginTop=it?"0":this._topOffset,q.marginBottom=this._bottomOffset,q.marginRight=this._rightOffset,ft?$.justifyContent="flex-start":"center"===this._justifyContent?$.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?$.justifyContent="flex-end":"flex-end"===this._justifyContent&&($.justifyContent="flex-start"):$.justifyContent=this._justifyContent,$.alignItems=it?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const q=this._overlayRef.overlayElement.style,$=this._overlayRef.hostElement,le=$.style;$.classList.remove(U),le.justifyContent=le.alignItems=q.marginTop=q.marginBottom=q.marginLeft=q.marginRight=q.position="",this._overlayRef=null,this._isDisposed=!0}}let Ce=(()=>{class ke{constructor($,le,xe,Ue){this._viewportRuler=$,this._document=le,this._platform=xe,this._overlayContainer=Ue}global(){return new ye}flexibleConnectedTo($){return new r($,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return ke.\u0275fac=function($){return new($||ke)(y.LFG(e.rL),y.LFG(t.K0),y.LFG(o.t4),y.LFG(L))},ke.\u0275prov=y.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),Be=(()=>{class ke{constructor($){this._attachedOverlays=[],this._document=$}ngOnDestroy(){this.detach()}add($){this.remove($),this._attachedOverlays.push($)}remove($){const le=this._attachedOverlays.indexOf($);le>-1&&this._attachedOverlays.splice(le,1),0===this._attachedOverlays.length&&this.detach()}}return ke.\u0275fac=function($){return new($||ke)(y.LFG(t.K0))},ke.\u0275prov=y.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),ze=(()=>{class ke extends Be{constructor($){super($),this._keydownListener=le=>{const xe=this._attachedOverlays;for(let Ue=xe.length-1;Ue>-1;Ue--)if(xe[Ue]._keydownEvents.observers.length>0){xe[Ue]._keydownEvents.next(le);break}}}add($){super.add($),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return ke.\u0275fac=function($){return new($||ke)(y.LFG(t.K0))},ke.\u0275prov=y.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),Ie=(()=>{class ke extends Be{constructor($,le){super($),this._platform=le,this._cursorStyleIsSet=!1,this._pointerDownListener=xe=>{this._pointerDownEventTarget=(0,o.sA)(xe)},this._clickListener=xe=>{const Ue=(0,o.sA)(xe),lt="click"===xe.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Ue;this._pointerDownEventTarget=null;const nt=this._attachedOverlays.slice();for(let ft=nt.length-1;ft>-1;ft--){const it=nt[ft];if(!(it._outsidePointerEvents.observers.length<1)&&it.hasAttached()){if(it.overlayElement.contains(Ue)||it.overlayElement.contains(lt))break;it._outsidePointerEvents.next(xe)}}}}add($){if(super.add($),!this._isAttached){const le=this._document.body;le.addEventListener("pointerdown",this._pointerDownListener,!0),le.addEventListener("click",this._clickListener,!0),le.addEventListener("auxclick",this._clickListener,!0),le.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=le.style.cursor,le.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const $=this._document.body;$.removeEventListener("pointerdown",this._pointerDownListener,!0),$.removeEventListener("click",this._clickListener,!0),$.removeEventListener("auxclick",this._clickListener,!0),$.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&($.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return ke.\u0275fac=function($){return new($||ke)(y.LFG(t.K0),y.LFG(o.t4))},ke.\u0275prov=y.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),K=0,Me=(()=>{class ke{constructor($,le,xe,Ue,lt,nt,ft,it,rt,Mt,Zt){this.scrollStrategies=$,this._overlayContainer=le,this._componentFactoryResolver=xe,this._positionBuilder=Ue,this._keyboardDispatcher=lt,this._injector=nt,this._ngZone=ft,this._document=it,this._directionality=rt,this._location=Mt,this._outsideClickDispatcher=Zt}create($){const le=this._createHostElement(),xe=this._createPaneElement(le),Ue=this._createPortalOutlet(xe),lt=new ae($);return lt.direction=lt.direction||this._directionality.value,new _(Ue,le,xe,lt,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement($){const le=this._document.createElement("div");return le.id="cdk-overlay-"+K++,le.classList.add("cdk-overlay-pane"),$.appendChild(le),le}_createHostElement(){const $=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild($),$}_createPortalOutlet($){return this._appRef||(this._appRef=this._injector.get(y.z2F)),new l.u0($,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return ke.\u0275fac=function($){return new($||ke)(y.LFG(oe),y.LFG(L),y.LFG(y._Vd),y.LFG(Ce),y.LFG(ze),y.LFG(y.zs3),y.LFG(y.R0b),y.LFG(t.K0),y.LFG(M.Is),y.LFG(t.Ye),y.LFG(Ie))},ke.\u0275prov=y.Yz7({token:ke,factory:ke.\u0275fac}),ke})();const we=[{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"}],z=new y.OlP("cdk-connected-overlay-scroll-strategy");let Ge=(()=>{class ke{constructor($){this.elementRef=$}}return ke.\u0275fac=function($){return new($||ke)(y.Y36(y.SBq))},ke.\u0275dir=y.lG2({type:ke,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),ke})(),vt=(()=>{class ke{constructor($,le,xe,Ue,lt){this._overlay=$,this._dir=lt,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=s.w0.EMPTY,this._attachSubscription=s.w0.EMPTY,this._detachSubscription=s.w0.EMPTY,this._positionSubscription=s.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new y.vpe,this.positionChange=new y.vpe,this.attach=new y.vpe,this.detach=new y.vpe,this.overlayKeydown=new y.vpe,this.overlayOutsideClick=new y.vpe,this._templatePortal=new l.UE(le,xe),this._scrollStrategyFactory=Ue,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX($){this._offsetX=$,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY($){this._offsetY=$,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop($){this._hasBackdrop=(0,C.Ig)($)}get lockPosition(){return this._lockPosition}set lockPosition($){this._lockPosition=(0,C.Ig)($)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions($){this._flexibleDimensions=(0,C.Ig)($)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen($){this._growAfterOpen=(0,C.Ig)($)}get push(){return this._push}set push($){this._push=(0,C.Ig)($)}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&&this._overlayRef.dispose()}ngOnChanges($){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),$.origin&&this.open&&this._position.apply()),$.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=we);const $=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=$.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=$.detachments().subscribe(()=>this.detach.emit()),$.keydownEvents().subscribe(le=>{this.overlayKeydown.next(le),le.keyCode===Z.hY&&!this.disableClose&&!(0,Z.Vb)(le)&&(le.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(le=>{this.overlayOutsideClick.next(le)})}_buildConfig(){const $=this._position=this.positionStrategy||this._createPositionStrategy(),le=new ae({direction:this._dir,positionStrategy:$,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(le.width=this.width),(this.height||0===this.height)&&(le.height=this.height),(this.minWidth||0===this.minWidth)&&(le.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(le.minHeight=this.minHeight),this.backdropClass&&(le.backdropClass=this.backdropClass),this.panelClass&&(le.panelClass=this.panelClass),le}_updatePositionStrategy($){const le=this.positions.map(xe=>({originX:xe.originX,originY:xe.originY,overlayX:xe.overlayX,overlayY:xe.overlayY,offsetX:xe.offsetX||this.offsetX,offsetY:xe.offsetY||this.offsetY,panelClass:xe.panelClass||void 0}));return $.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(le).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const $=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy($),$}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Ge?this.origin.elementRef:this.origin}_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($=>{this.backdropClick.emit($)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function E(ke,q=!1){return(0,A.e)(($,le)=>{let xe=0;$.subscribe(new O.Q(le,Ue=>{const lt=ke(Ue,xe++);(lt||q)&&le.next(Ue),!lt&&le.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe($=>{this.positionChange.emit($),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return ke.\u0275fac=function($){return new($||ke)(y.Y36(Me),y.Y36(y.Rgc),y.Y36(y.s_b),y.Y36(z),y.Y36(M.Is,8))},ke.\u0275dir=y.lG2({type:ke,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[y.TTD]}),ke})();const Ne={provide:z,deps:[Me],useFactory:function Re(ke){return()=>ke.scrollStrategies.reposition()}};let he=(()=>{class ke{}return ke.\u0275fac=function($){return new($||ke)},ke.\u0275mod=y.oAB({type:ke}),ke.\u0275inj=y.cJS({providers:[Me,Ne],imports:[[M.vT,l.eL,e.Cl],e.Cl]}),ke})()},925:(Ve,Q,m)=>{"use strict";m.d(Q,{t4:()=>C,ud:()=>o,sA:()=>ee,ht:()=>ie,kV:()=>W,Oy:()=>_e,_i:()=>w,qK:()=>N,i$:()=>A,Mq:()=>P});var e=m(5e3),t=m(9808);let y;try{y="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(ce){y=!1}let M,C=(()=>{class ce{constructor(de){this._platformId=de,this.isBrowser=this._platformId?(0,t.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!y)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return ce.\u0275fac=function(de){return new(de||ce)(e.LFG(e.Lbi))},ce.\u0275prov=e.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})(),o=(()=>{class ce{}return ce.\u0275fac=function(de){return new(de||ce)},ce.\u0275mod=e.oAB({type:ce}),ce.\u0275inj=e.cJS({}),ce})();const l=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function N(){if(M)return M;if("object"!=typeof document||!document)return M=new Set(l),M;let ce=document.createElement("input");return M=new Set(l.filter(re=>(ce.setAttribute("type",re),ce.type===re))),M}let s,O,E,Z;function A(ce){return function D(){if(null==s&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>s=!0}))}finally{s=s||!1}return s}()?ce:!!ce.capture}function P(){if(null==E){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return E=!1,E;if("scrollBehavior"in document.documentElement.style)E=!0;else{const ce=Element.prototype.scrollTo;E=!!ce&&!/\{\s*\[native code\]\s*\}/.test(ce.toString())}}return E}function w(){if("object"!=typeof document||!document)return 0;if(null==O){const ce=document.createElement("div"),re=ce.style;ce.dir="rtl",re.width="1px",re.overflow="auto",re.visibility="hidden",re.pointerEvents="none",re.position="absolute";const de=document.createElement("div"),oe=de.style;oe.width="2px",oe.height="1px",ce.appendChild(de),document.body.appendChild(ce),O=0,0===ce.scrollLeft&&(ce.scrollLeft=1,O=0===ce.scrollLeft?1:2),ce.remove()}return O}function W(ce){if(function j(){if(null==Z){const ce="undefined"!=typeof document?document.head:null;Z=!(!ce||!ce.createShadowRoot&&!ce.attachShadow)}return Z}()){const re=ce.getRootNode?ce.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&re instanceof ShadowRoot)return re}return null}function ie(){let ce="undefined"!=typeof document&&document?document.activeElement:null;for(;ce&&ce.shadowRoot;){const re=ce.shadowRoot.activeElement;if(re===ce)break;ce=re}return ce}function ee(ce){return ce.composedPath?ce.composedPath()[0]:ce.target}function _e(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(Ve,Q,m)=>{"use strict";m.d(Q,{en:()=>E,ig:()=>j,Pl:()=>ie,C5:()=>D,u0:()=>w,eL:()=>_e,UE:()=>A});var e=m(5e3),t=m(9808);class s{attach(de){return this._attachedHost=de,de.attach(this)}detach(){let de=this._attachedHost;null!=de&&(this._attachedHost=null,de.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(de){this._attachedHost=de}}class D extends s{constructor(de,oe,ae,b){super(),this.component=de,this.viewContainerRef=oe,this.injector=ae,this.componentFactoryResolver=b}}class A extends s{constructor(de,oe,ae){super(),this.templateRef=de,this.viewContainerRef=oe,this.context=ae}get origin(){return this.templateRef.elementRef}attach(de,oe=this.context){return this.context=oe,super.attach(de)}detach(){return this.context=void 0,super.detach()}}class O extends s{constructor(de){super(),this.element=de instanceof e.SBq?de.nativeElement:de}}class E{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(de){return de instanceof D?(this._attachedPortal=de,this.attachComponentPortal(de)):de instanceof A?(this._attachedPortal=de,this.attachTemplatePortal(de)):this.attachDomPortal&&de instanceof O?(this._attachedPortal=de,this.attachDomPortal(de)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(de){this._disposeFn=de}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class w extends E{constructor(de,oe,ae,b,i){super(),this.outletElement=de,this._componentFactoryResolver=oe,this._appRef=ae,this._defaultInjector=b,this.attachDomPortal=a=>{const p=a.element,u=this._document.createComment("dom-portal");p.parentNode.insertBefore(u,p),this.outletElement.appendChild(p),this._attachedPortal=a,super.setDisposeFn(()=>{u.parentNode&&u.parentNode.replaceChild(p,u)})},this._document=i}attachComponentPortal(de){const ae=(de.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(de.component);let b;return de.viewContainerRef?(b=de.viewContainerRef.createComponent(ae,de.viewContainerRef.length,de.injector||de.viewContainerRef.injector),this.setDisposeFn(()=>b.destroy())):(b=ae.create(de.injector||this._defaultInjector),this._appRef.attachView(b.hostView),this.setDisposeFn(()=>{this._appRef.detachView(b.hostView),b.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(b)),this._attachedPortal=de,b}attachTemplatePortal(de){let oe=de.viewContainerRef,ae=oe.createEmbeddedView(de.templateRef,de.context);return ae.rootNodes.forEach(b=>this.outletElement.appendChild(b)),ae.detectChanges(),this.setDisposeFn(()=>{let b=oe.indexOf(ae);-1!==b&&oe.remove(b)}),this._attachedPortal=de,ae}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(de){return de.hostView.rootNodes[0]}}let j=(()=>{class re extends A{constructor(oe,ae){super(oe,ae)}}return re.\u0275fac=function(oe){return new(oe||re)(e.Y36(e.Rgc),e.Y36(e.s_b))},re.\u0275dir=e.lG2({type:re,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.qOj]}),re})(),ie=(()=>{class re extends E{constructor(oe,ae,b){super(),this._componentFactoryResolver=oe,this._viewContainerRef=ae,this._isInitialized=!1,this.attached=new e.vpe,this.attachDomPortal=i=>{const a=i.element,p=this._document.createComment("dom-portal");i.setAttachedHost(this),a.parentNode.insertBefore(p,a),this._getRootNode().appendChild(a),this._attachedPortal=i,super.setDisposeFn(()=>{p.parentNode&&p.parentNode.replaceChild(a,p)})},this._document=b}get portal(){return this._attachedPortal}set portal(oe){this.hasAttached()&&!oe&&!this._isInitialized||(this.hasAttached()&&super.detach(),oe&&super.attach(oe),this._attachedPortal=oe)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(oe){oe.setAttachedHost(this);const ae=null!=oe.viewContainerRef?oe.viewContainerRef:this._viewContainerRef,i=(oe.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(oe.component),a=ae.createComponent(i,ae.length,oe.injector||ae.injector);return ae!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=oe,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(oe){oe.setAttachedHost(this);const ae=this._viewContainerRef.createEmbeddedView(oe.templateRef,oe.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=oe,this._attachedRef=ae,this.attached.emit(ae),ae}_getRootNode(){const oe=this._viewContainerRef.element.nativeElement;return oe.nodeType===oe.ELEMENT_NODE?oe:oe.parentNode}}return re.\u0275fac=function(oe){return new(oe||re)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(t.K0))},re.\u0275dir=e.lG2({type:re,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.qOj]}),re})(),_e=(()=>{class re{}return re.\u0275fac=function(oe){return new(oe||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({}),re})()},5303:(Ve,Q,m)=>{"use strict";m.d(Q,{PQ:()=>p,ZD:()=>G,mF:()=>a,Cl:()=>F,rL:()=>_});var e=m(3191),t=m(5e3),y=m(4408),C=m(727);const o={schedule(U){let ye=requestAnimationFrame,Ce=cancelAnimationFrame;const{delegate:Be}=o;Be&&(ye=Be.requestAnimationFrame,Ce=Be.cancelAnimationFrame);const ze=ye(Ie=>{Ce=void 0,U(Ie)});return new C.w0(()=>null==Ce?void 0:Ce(ze))},requestAnimationFrame(...U){const{delegate:ye}=o;return((null==ye?void 0:ye.requestAnimationFrame)||requestAnimationFrame)(...U)},cancelAnimationFrame(...U){const{delegate:ye}=o;return((null==ye?void 0:ye.cancelAnimationFrame)||cancelAnimationFrame)(...U)},delegate:void 0};var l=m(7565);new class N extends l.v{flush(ye){this._active=!0,this._scheduled=void 0;const{actions:Ce}=this;let Be,ze=-1;ye=ye||Ce.shift();const Ie=Ce.length;do{if(Be=ye.execute(ye.state,ye.delay))break}while(++ze0?super.requestAsyncId(ye,Ce,Be):(ye.actions.push(this),ye._scheduled||(ye._scheduled=o.requestAnimationFrame(()=>ye.flush(void 0))))}recycleAsyncId(ye,Ce,Be=0){if(null!=Be&&Be>0||null==Be&&this.delay>0)return super.recycleAsyncId(ye,Ce,Be);0===ye.actions.length&&(o.cancelAnimationFrame(Ce),ye._scheduled=void 0)}});var A=m(7579),O=m(9646),E=m(8306),P=m(4968),Z=(m(3101),m(3601)),j=m(9300),W=m(2722),ie=m(9808),ee=m(925),_e=m(226);let a=(()=>{class U{constructor(Ce,Be,ze){this._ngZone=Ce,this._platform=Be,this._scrolled=new A.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ze}register(Ce){this.scrollContainers.has(Ce)||this.scrollContainers.set(Ce,Ce.elementScrolled().subscribe(()=>this._scrolled.next(Ce)))}deregister(Ce){const Be=this.scrollContainers.get(Ce);Be&&(Be.unsubscribe(),this.scrollContainers.delete(Ce))}scrolled(Ce=20){return this._platform.isBrowser?new E.y(Be=>{this._globalSubscription||this._addGlobalListener();const ze=Ce>0?this._scrolled.pipe((0,Z.e)(Ce)).subscribe(Be):this._scrolled.subscribe(Be);return this._scrolledCount++,()=>{ze.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,O.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((Ce,Be)=>this.deregister(Be)),this._scrolled.complete()}ancestorScrolled(Ce,Be){const ze=this.getAncestorScrollContainers(Ce);return this.scrolled(Be).pipe((0,j.h)(Ie=>!Ie||ze.indexOf(Ie)>-1))}getAncestorScrollContainers(Ce){const Be=[];return this.scrollContainers.forEach((ze,Ie)=>{this._scrollableContainsElement(Ie,Ce)&&Be.push(Ie)}),Be}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(Ce,Be){let ze=(0,e.fI)(Be),Ie=Ce.getElementRef().nativeElement;do{if(ze==Ie)return!0}while(ze=ze.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const Ce=this._getWindow();return(0,P.R)(Ce.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return U.\u0275fac=function(Ce){return new(Ce||U)(t.LFG(t.R0b),t.LFG(ee.t4),t.LFG(ie.K0,8))},U.\u0275prov=t.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),p=(()=>{class U{constructor(Ce,Be,ze,Ie){this.elementRef=Ce,this.scrollDispatcher=Be,this.ngZone=ze,this.dir=Ie,this._destroyed=new A.x,this._elementScrolled=new E.y(K=>this.ngZone.runOutsideAngular(()=>(0,P.R)(this.elementRef.nativeElement,"scroll").pipe((0,W.R)(this._destroyed)).subscribe(K)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(Ce){const Be=this.elementRef.nativeElement,ze=this.dir&&"rtl"==this.dir.value;null==Ce.left&&(Ce.left=ze?Ce.end:Ce.start),null==Ce.right&&(Ce.right=ze?Ce.start:Ce.end),null!=Ce.bottom&&(Ce.top=Be.scrollHeight-Be.clientHeight-Ce.bottom),ze&&0!=(0,ee._i)()?(null!=Ce.left&&(Ce.right=Be.scrollWidth-Be.clientWidth-Ce.left),2==(0,ee._i)()?Ce.left=Ce.right:1==(0,ee._i)()&&(Ce.left=Ce.right?-Ce.right:Ce.right)):null!=Ce.right&&(Ce.left=Be.scrollWidth-Be.clientWidth-Ce.right),this._applyScrollToOptions(Ce)}_applyScrollToOptions(Ce){const Be=this.elementRef.nativeElement;(0,ee.Mq)()?Be.scrollTo(Ce):(null!=Ce.top&&(Be.scrollTop=Ce.top),null!=Ce.left&&(Be.scrollLeft=Ce.left))}measureScrollOffset(Ce){const Be="left",Ie=this.elementRef.nativeElement;if("top"==Ce)return Ie.scrollTop;if("bottom"==Ce)return Ie.scrollHeight-Ie.clientHeight-Ie.scrollTop;const K=this.dir&&"rtl"==this.dir.value;return"start"==Ce?Ce=K?"right":Be:"end"==Ce&&(Ce=K?Be:"right"),K&&2==(0,ee._i)()?Ce==Be?Ie.scrollWidth-Ie.clientWidth-Ie.scrollLeft:Ie.scrollLeft:K&&1==(0,ee._i)()?Ce==Be?Ie.scrollLeft+Ie.scrollWidth-Ie.clientWidth:-Ie.scrollLeft:Ce==Be?Ie.scrollLeft:Ie.scrollWidth-Ie.clientWidth-Ie.scrollLeft}}return U.\u0275fac=function(Ce){return new(Ce||U)(t.Y36(t.SBq),t.Y36(a),t.Y36(t.R0b),t.Y36(_e.Is,8))},U.\u0275dir=t.lG2({type:U,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),U})(),_=(()=>{class U{constructor(Ce,Be,ze){this._platform=Ce,this._change=new A.x,this._changeListener=Ie=>{this._change.next(Ie)},this._document=ze,Be.runOutsideAngular(()=>{if(Ce.isBrowser){const Ie=this._getWindow();Ie.addEventListener("resize",this._changeListener),Ie.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const Ce=this._getWindow();Ce.removeEventListener("resize",this._changeListener),Ce.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const Ce={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),Ce}getViewportRect(){const Ce=this.getViewportScrollPosition(),{width:Be,height:ze}=this.getViewportSize();return{top:Ce.top,left:Ce.left,bottom:Ce.top+ze,right:Ce.left+Be,height:ze,width:Be}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const Ce=this._document,Be=this._getWindow(),ze=Ce.documentElement,Ie=ze.getBoundingClientRect();return{top:-Ie.top||Ce.body.scrollTop||Be.scrollY||ze.scrollTop||0,left:-Ie.left||Ce.body.scrollLeft||Be.scrollX||ze.scrollLeft||0}}change(Ce=20){return Ce>0?this._change.pipe((0,Z.e)(Ce)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const Ce=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:Ce.innerWidth,height:Ce.innerHeight}:{width:0,height:0}}}return U.\u0275fac=function(Ce){return new(Ce||U)(t.LFG(ee.t4),t.LFG(t.R0b),t.LFG(ie.K0,8))},U.\u0275prov=t.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),G=(()=>{class U{}return U.\u0275fac=function(Ce){return new(Ce||U)},U.\u0275mod=t.oAB({type:U}),U.\u0275inj=t.cJS({}),U})(),F=(()=>{class U{}return U.\u0275fac=function(Ce){return new(Ce||U)},U.\u0275mod=t.oAB({type:U}),U.\u0275inj=t.cJS({imports:[[_e.vT,ee.ud,G],_e.vT,G]}),U})()},1555:(Ve,Q,m)=>{"use strict";m.d(Q,{be:()=>ee,KL:()=>P,u6:()=>w,B8:()=>_e,U5:()=>de,st:()=>ce,po:()=>re,gx:()=>ie});var e=m(5664),t=m(3191),y=m(1159),C=m(9808),o=m(5e3),M=m(925),l=m(7579),N=m(9646),s=m(8675),D=m(2722),A=m(226);function O(oe,ae){1&oe&&o.Hsn(0)}const E=["*"];let P=(()=>{class oe{constructor(b){this._elementRef=b}focus(){this._elementRef.nativeElement.focus()}}return oe.\u0275fac=function(b){return new(b||oe)(o.Y36(o.SBq))},oe.\u0275dir=o.lG2({type:oe,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),oe})(),w=(()=>{class oe{constructor(b){this.template=b}}return oe.\u0275fac=function(b){return new(b||oe)(o.Y36(o.Rgc))},oe.\u0275dir=o.lG2({type:oe,selectors:[["","cdkStepLabel",""]]}),oe})(),Z=0;const ie=new o.OlP("STEPPER_GLOBAL_OPTIONS");let ee=(()=>{class oe{constructor(b,i){this._stepper=b,this.interacted=!1,this.interactedStream=new o.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=i||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(b){this._editable=(0,t.Ig)(b)}get optional(){return this._optional}set optional(b){this._optional=(0,t.Ig)(b)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(b){this._completedOverride=(0,t.Ig)(b)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(b){this._customError=(0,t.Ig)(b)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){var b;return null!==(b=this._stepperOptions.showError)&&void 0!==b?b:null!=this._customError}}return oe.\u0275fac=function(b){return new(b||oe)(o.Y36((0,o.Gpc)(()=>_e)),o.Y36(ie,8))},oe.\u0275cmp=o.Xpm({type:oe,selectors:[["cdk-step"]],contentQueries:function(b,i,a){if(1&b&&o.Suo(a,w,5),2&b){let p;o.iGM(p=o.CRH())&&(i.stepLabel=p.first)}},viewQuery:function(b,i){if(1&b&&o.Gf(o.Rgc,7),2&b){let a;o.iGM(a=o.CRH())&&(i.content=a.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[o.TTD],ngContentSelectors:E,decls:1,vars:0,template:function(b,i){1&b&&(o.F$t(),o.YNc(0,O,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),oe})(),_e=(()=>{class oe{constructor(b,i,a,p){this._dir=b,this._changeDetectorRef=i,this._elementRef=a,this._destroyed=new l.x,this.steps=new o.n_E,this._sortedHeaders=new o.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new o.vpe,this._orientation="horizontal",this._groupId=Z++}get linear(){return this._linear}set linear(b){this._linear=(0,t.Ig)(b)}get selectedIndex(){return this._selectedIndex}set selectedIndex(b){var i;const a=(0,t.su)(b);this.steps&&this._steps?(this._isValidIndex(b),null===(i=this.selected)||void 0===i||i._markAsInteracted(),this._selectedIndex!==a&&!this._anyControlsInvalidOrPending(a)&&(a>=this._selectedIndex||this.steps.toArray()[a].editable)&&this._updateSelectedItemIndex(b)):this._selectedIndex=a}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(b){this.selectedIndex=b&&this.steps?this.steps.toArray().indexOf(b):-1}get orientation(){return this._orientation}set orientation(b){this._orientation=b,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===b)}ngAfterContentInit(){this._steps.changes.pipe((0,s.O)(this._steps),(0,D.R)(this._destroyed)).subscribe(b=>{this.steps.reset(b.filter(i=>i._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,s.O)(this._stepHeader),(0,D.R)(this._destroyed)).subscribe(b=>{this._sortedHeaders.reset(b.toArray().sort((i,a)=>i._elementRef.nativeElement.compareDocumentPosition(a._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new e.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,N.of)()).pipe((0,s.O)(this._layoutDirection()),(0,D.R)(this._destroyed)).subscribe(b=>this._keyManager.withHorizontalOrientation(b)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){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(b=>b.reset()),this._stateChanged()}_getStepLabelId(b){return`cdk-step-label-${this._groupId}-${b}`}_getStepContentId(b){return`cdk-step-content-${this._groupId}-${b}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(b){const i=b-this._selectedIndex;return i<0?"rtl"===this._layoutDirection()?"next":"previous":i>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(b,i="number"){const a=this.steps.toArray()[b],p=this._isCurrentStep(b);return a._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(a,p):this._getGuidelineLogic(a,p,i)}_getDefaultIndicatorLogic(b,i){return b._showError()&&b.hasError&&!i?"error":!b.completed||i?"number":b.editable?"edit":"done"}_getGuidelineLogic(b,i,a="number"){return b._showError()&&b.hasError&&!i?"error":b.completed&&!i?"done":b.completed&&i?a:b.editable&&i?"edit":a}_isCurrentStep(b){return this._selectedIndex===b}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(b){const i=this.steps.toArray();this.selectionChange.emit({selectedIndex:b,previouslySelectedIndex:this._selectedIndex,selectedStep:i[b],previouslySelectedStep:i[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(b):this._keyManager.updateActiveItem(b),this._selectedIndex=b,this._stateChanged()}_onKeydown(b){const i=(0,y.Vb)(b),a=b.keyCode,p=this._keyManager;null==p.activeItemIndex||i||a!==y.L_&&a!==y.K5?p.onKeydown(b):(this.selectedIndex=p.activeItemIndex,b.preventDefault())}_anyControlsInvalidOrPending(b){return!!(this._linear&&b>=0)&&this.steps.toArray().slice(0,b).some(i=>{const a=i.stepControl;return(a?a.invalid||a.pending||!i.interacted:!i.completed)&&!i.optional&&!i._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const b=this._elementRef.nativeElement,i=(0,M.ht)();return b===i||b.contains(i)}_isValidIndex(b){return b>-1&&(!this.steps||b{class oe{constructor(b){this._stepper=b,this.type="submit"}}return oe.\u0275fac=function(b){return new(b||oe)(o.Y36(_e))},oe.\u0275dir=o.lG2({type:oe,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(b,i){1&b&&o.NdJ("click",function(){return i._stepper.next()}),2&b&&o.Ikx("type",i.type)},inputs:{type:"type"}}),oe})(),re=(()=>{class oe{constructor(b){this._stepper=b,this.type="button"}}return oe.\u0275fac=function(b){return new(b||oe)(o.Y36(_e))},oe.\u0275dir=o.lG2({type:oe,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(b,i){1&b&&o.NdJ("click",function(){return i._stepper.previous()}),2&b&&o.Ikx("type",i.type)},inputs:{type:"type"}}),oe})(),de=(()=>{class oe{}return oe.\u0275fac=function(b){return new(b||oe)},oe.\u0275mod=o.oAB({type:oe}),oe.\u0275inj=o.cJS({imports:[[A.vT]]}),oe})()},8258:(Ve,Q,m)=>{"use strict";m.d(Q,{HI:()=>w,Xx:()=>i,_0:()=>de,nZ:()=>L,Hs:()=>oe,rO:()=>W,cu:()=>Z,XJ:()=>p,Ud:()=>u,VY:()=>P});var e=m(449),t=m(5191),y=m(7579),C=m(1135),o=m(9646),M=m(5698),l=m(9300),N=m(2722),s=m(5e3),D=m(3191),A=m(226);class P extends class O{constructor(){this.expansionModel=new e.Ov(!0)}toggle(x){this.expansionModel.toggle(this._trackByValue(x))}expand(x){this.expansionModel.select(this._trackByValue(x))}collapse(x){this.expansionModel.deselect(this._trackByValue(x))}isExpanded(x){return this.expansionModel.isSelected(this._trackByValue(x))}toggleDescendants(x){this.expansionModel.isSelected(this._trackByValue(x))?this.collapseDescendants(x):this.expandDescendants(x)}collapseAll(){this.expansionModel.clear()}expandDescendants(x){let r=[x];r.push(...this.getDescendants(x)),this.expansionModel.select(...r.map(v=>this._trackByValue(v)))}collapseDescendants(x){let r=[x];r.push(...this.getDescendants(x)),this.expansionModel.deselect(...r.map(v=>this._trackByValue(v)))}_trackByValue(x){return this.trackBy?this.trackBy(x):x}}{constructor(x,r){super(),this.getChildren=x,this.options=r,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const x=this.dataNodes.reduce((r,v)=>[...r,...this.getDescendants(v),v],[]);this.expansionModel.select(...x.map(r=>this._trackByValue(r)))}getDescendants(x){const r=[];return this._getDescendants(r,x),r.splice(1)}_getDescendants(x,r){x.push(r);const v=this.getChildren(r);Array.isArray(v)?v.forEach(G=>this._getDescendants(x,G)):(0,t.b)(v)&&v.pipe((0,M.q)(1),(0,l.h)(Boolean)).subscribe(G=>{for(const F of G)this._getDescendants(x,F)})}}const w=new s.OlP("CDK_TREE_NODE_OUTLET_NODE");let Z=(()=>{class I{constructor(r,v){this.viewContainer=r,this._node=v}}return I.\u0275fac=function(r){return new(r||I)(s.Y36(s.s_b),s.Y36(w,8))},I.\u0275dir=s.lG2({type:I,selectors:[["","cdkTreeNodeOutlet",""]]}),I})();class j{constructor(x){this.$implicit=x}}let W=(()=>{class I{constructor(r){this.template=r}}return I.\u0275fac=function(r){return new(r||I)(s.Y36(s.Rgc))},I.\u0275dir=s.lG2({type:I,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),I})(),de=(()=>{class I{constructor(r,v){this._differs=r,this._changeDetectorRef=v,this._onDestroy=new y.x,this._levels=new Map,this.viewChange=new C.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(r){this._dataSource!==r&&this._switchDataSource(r)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),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)}ngAfterContentChecked(){const r=this._nodeDefs.filter(v=>!v.when);this._defaultNodeDef=r[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(r){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),r||this._nodeOutlet.viewContainer.clear(),this._dataSource=r,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let r;(0,e.Z9)(this._dataSource)?r=this._dataSource.connect(this):(0,t.b)(this._dataSource)?r=this._dataSource:Array.isArray(this._dataSource)&&(r=(0,o.of)(this._dataSource)),r&&(this._dataSubscription=r.pipe((0,N.R)(this._onDestroy)).subscribe(v=>this.renderNodeChanges(v)))}renderNodeChanges(r,v=this._dataDiffer,G=this._nodeOutlet.viewContainer,F){const U=v.diff(r);!U||(U.forEachOperation((ye,Ce,Be)=>{if(null==ye.previousIndex)this.insertNode(r[Be],Be,G,F);else if(null==Be)G.remove(Ce),this._levels.delete(ye.item);else{const ze=G.get(Ce);G.move(ze,Be)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(r,v){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(F=>F.when&&F.when(v,r))||this._defaultNodeDef}insertNode(r,v,G,F){const U=this._getNodeDef(r,v),ye=new j(r);ye.level=this.treeControl.getLevel?this.treeControl.getLevel(r):void 0!==F&&this._levels.has(F)?this._levels.get(F)+1:0,this._levels.set(r,ye.level),(G||this._nodeOutlet.viewContainer).createEmbeddedView(U.template,ye,v),oe.mostRecentTreeNode&&(oe.mostRecentTreeNode.data=r)}}return I.\u0275fac=function(r){return new(r||I)(s.Y36(s.ZZ4),s.Y36(s.sBO))},I.\u0275cmp=s.Xpm({type:I,selectors:[["cdk-tree"]],contentQueries:function(r,v,G){if(1&r&&s.Suo(G,W,5),2&r){let F;s.iGM(F=s.CRH())&&(v._nodeDefs=F)}},viewQuery:function(r,v){if(1&r&&s.Gf(Z,7),2&r){let G;s.iGM(G=s.CRH())&&(v._nodeOutlet=G.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(r,v){1&r&&s.GkF(0,0)},directives:[Z],encapsulation:2}),I})(),oe=(()=>{class I{constructor(r,v){this._elementRef=r,this._tree=v,this._destroyed=new y.x,this._dataChanges=new y.x,I.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(r){this._elementRef.nativeElement.setAttribute("role",r)}get data(){return this._data}set data(r){r!==this._data&&(this._data=r,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function ae(I){let x=I.parentElement;for(;x&&!b(x);)x=x.parentElement;return x?x.classList.contains("cdk-nested-tree-node")?(0,D.su)(x.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){I.mostRecentTreeNode===this&&(I.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return I.mostRecentTreeNode=null,I.\u0275fac=function(r){return new(r||I)(s.Y36(s.SBq),s.Y36(de))},I.\u0275dir=s.lG2({type:I,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(r,v){2&r&&s.uIk("aria-expanded",v.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),I})();function b(I){const x=I.classList;return!(!(null==x?void 0:x.contains("cdk-nested-tree-node"))&&!(null==x?void 0:x.contains("cdk-tree")))}let i=(()=>{class I extends oe{constructor(r,v,G){super(r,v),this._differs=G}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const r=this._tree.treeControl.getChildren(this.data);Array.isArray(r)?this.updateChildrenNodes(r):(0,t.b)(r)&&r.pipe((0,N.R)(this._destroyed)).subscribe(v=>this.updateChildrenNodes(v)),this.nodeOutlet.changes.pipe((0,N.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(r){const v=this._getNodeOutlet();r&&(this._children=r),v&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,v.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const r=this._getNodeOutlet();r&&(r.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const r=this.nodeOutlet;return r&&r.find(v=>!v._node||v._node===this)}}return I.\u0275fac=function(r){return new(r||I)(s.Y36(s.SBq),s.Y36(de),s.Y36(s.ZZ4))},I.\u0275dir=s.lG2({type:I,selectors:[["cdk-nested-tree-node"]],contentQueries:function(r,v,G){if(1&r&&s.Suo(G,Z,5),2&r){let F;s.iGM(F=s.CRH())&&(v.nodeOutlet=F)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[s._Bn([{provide:oe,useExisting:I},{provide:w,useExisting:I}]),s.qOj]}),I})();const a=/([A-Za-z%]+)$/;let p=(()=>{class I{constructor(r,v,G,F){this._treeNode=r,this._tree=v,this._element=G,this._dir=F,this._destroyed=new y.x,this.indentUnits="px",this._indent=40,this._setPadding(),F&&F.change.pipe((0,N.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),r._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(r){this._setLevelInput(r)}get indent(){return this._indent}set indent(r){this._setIndentInput(r)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const r=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,v=null==this._level?r:this._level;return"number"==typeof v?`${v*this._indent}${this.indentUnits}`:null}_setPadding(r=!1){const v=this._paddingIndent();if(v!==this._currentPadding||r){const G=this._element.nativeElement,F=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",U="paddingLeft"===F?"paddingRight":"paddingLeft";G.style[F]=v||"",G.style[U]="",this._currentPadding=v}}_setLevelInput(r){this._level=(0,D.su)(r,null),this._setPadding()}_setIndentInput(r){let v=r,G="px";if("string"==typeof r){const F=r.split(a);v=F[0],G=F[1]||G}this.indentUnits=G,this._indent=(0,D.su)(v),this._setPadding()}}return I.\u0275fac=function(r){return new(r||I)(s.Y36(oe),s.Y36(de),s.Y36(s.SBq),s.Y36(A.Is,8))},I.\u0275dir=s.lG2({type:I,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),I})(),u=(()=>{class I{constructor(r,v){this._tree=r,this._treeNode=v,this._recursive=!1}get recursive(){return this._recursive}set recursive(r){this._recursive=(0,D.Ig)(r)}_toggle(r){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),r.stopPropagation()}}return I.\u0275fac=function(r){return new(r||I)(s.Y36(de),s.Y36(oe))},I.\u0275dir=s.lG2({type:I,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(r,v){1&r&&s.NdJ("click",function(F){return v._toggle(F)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),I})(),L=(()=>{class I{}return I.\u0275fac=function(r){return new(r||I)},I.\u0275mod=s.oAB({type:I}),I.\u0275inj=s.cJS({}),I})()},9808:(Ve,Q,m)=>{"use strict";m.d(Q,{mr:()=>ie,Ov:()=>xr,ez:()=>wa,K0:()=>l,uU:()=>Ga,JJ:()=>Ba,Do:()=>_e,Ts:()=>Kn,Nd:()=>Qn,V_:()=>D,Ye:()=>ce,S$:()=>j,i8:()=>hs,mk:()=>qi,sg:()=>gt,O5:()=>Ci,PC:()=>dn,RF:()=>Ln,n9:()=>_n,ED:()=>Pn,tP:()=>Lr,b0:()=>ee,lw:()=>N,OU:()=>ga,rS:()=>pa,gd:()=>ma,EM:()=>ra,JF:()=>ja,NF:()=>ha,PM:()=>pr,w_:()=>M,bD:()=>Nr,q:()=>y,Mx:()=>Si,HT:()=>o});var e=m(5e3);let t=null;function y(){return t}function o(Xe){t||(t=Xe)}class M{}const l=new e.OlP("DocumentToken");let N=(()=>{class Xe{historyGo(J){throw new Error("Not implemented")}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275prov=e.Yz7({token:Xe,factory:function(){return function s(){return(0,e.LFG)(A)}()},providedIn:"platform"}),Xe})();const D=new e.OlP("Location Initialized");let A=(()=>{class Xe extends N{constructor(J){super(),this._doc=J,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return y().getBaseHref(this._doc)}onPopState(J){const ne=y().getGlobalEventTarget(this._doc,"window");return ne.addEventListener("popstate",J,!1),()=>ne.removeEventListener("popstate",J)}onHashChange(J){const ne=y().getGlobalEventTarget(this._doc,"window");return ne.addEventListener("hashchange",J,!1),()=>ne.removeEventListener("hashchange",J)}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(J){this.location.pathname=J}pushState(J,ne,Qe){O()?this._history.pushState(J,ne,Qe):this.location.hash=Qe}replaceState(J,ne,Qe){O()?this._history.replaceState(J,ne,Qe):this.location.hash=Qe}forward(){this._history.forward()}back(){this._history.back()}historyGo(J=0){this._history.go(J)}getState(){return this._history.state}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.LFG(l))},Xe.\u0275prov=e.Yz7({token:Xe,factory:function(){return function E(){return new A((0,e.LFG)(l))}()},providedIn:"platform"}),Xe})();function O(){return!!window.history.pushState}function P(Xe,ge){if(0==Xe.length)return ge;if(0==ge.length)return Xe;let J=0;return Xe.endsWith("/")&&J++,ge.startsWith("/")&&J++,2==J?Xe+ge.substring(1):1==J?Xe+ge:Xe+"/"+ge}function w(Xe){const ge=Xe.match(/#|\?|$/),J=ge&&ge.index||Xe.length;return Xe.slice(0,J-("/"===Xe[J-1]?1:0))+Xe.slice(J)}function Z(Xe){return Xe&&"?"!==Xe[0]?"?"+Xe:Xe}let j=(()=>{class Xe{historyGo(J){throw new Error("Not implemented")}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275prov=e.Yz7({token:Xe,factory:function(){return function W(Xe){const ge=(0,e.LFG)(l).location;return new ee((0,e.LFG)(N),ge&&ge.origin||"")}()},providedIn:"root"}),Xe})();const ie=new e.OlP("appBaseHref");let ee=(()=>{class Xe extends j{constructor(J,ne){if(super(),this._platformLocation=J,this._removeListenerFns=[],null==ne&&(ne=this._platformLocation.getBaseHrefFromDOM()),null==ne)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=ne}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(J){this._removeListenerFns.push(this._platformLocation.onPopState(J),this._platformLocation.onHashChange(J))}getBaseHref(){return this._baseHref}prepareExternalUrl(J){return P(this._baseHref,J)}path(J=!1){const ne=this._platformLocation.pathname+Z(this._platformLocation.search),Qe=this._platformLocation.hash;return Qe&&J?`${ne}${Qe}`:ne}pushState(J,ne,Qe,Wt){const mi=this.prepareExternalUrl(Qe+Z(Wt));this._platformLocation.pushState(J,ne,mi)}replaceState(J,ne,Qe,Wt){const mi=this.prepareExternalUrl(Qe+Z(Wt));this._platformLocation.replaceState(J,ne,mi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(J=0){var ne,Qe;null===(Qe=(ne=this._platformLocation).historyGo)||void 0===Qe||Qe.call(ne,J)}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.LFG(N),e.LFG(ie,8))},Xe.\u0275prov=e.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})(),_e=(()=>{class Xe extends j{constructor(J,ne){super(),this._platformLocation=J,this._baseHref="",this._removeListenerFns=[],null!=ne&&(this._baseHref=ne)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(J){this._removeListenerFns.push(this._platformLocation.onPopState(J),this._platformLocation.onHashChange(J))}getBaseHref(){return this._baseHref}path(J=!1){let ne=this._platformLocation.hash;return null==ne&&(ne="#"),ne.length>0?ne.substring(1):ne}prepareExternalUrl(J){const ne=P(this._baseHref,J);return ne.length>0?"#"+ne:ne}pushState(J,ne,Qe,Wt){let mi=this.prepareExternalUrl(Qe+Z(Wt));0==mi.length&&(mi=this._platformLocation.pathname),this._platformLocation.pushState(J,ne,mi)}replaceState(J,ne,Qe,Wt){let mi=this.prepareExternalUrl(Qe+Z(Wt));0==mi.length&&(mi=this._platformLocation.pathname),this._platformLocation.replaceState(J,ne,mi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(J=0){var ne,Qe;null===(Qe=(ne=this._platformLocation).historyGo)||void 0===Qe||Qe.call(ne,J)}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.LFG(N),e.LFG(ie,8))},Xe.\u0275prov=e.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})(),ce=(()=>{class Xe{constructor(J,ne){this._subject=new e.vpe,this._urlChangeListeners=[],this._platformStrategy=J;const Qe=this._platformStrategy.getBaseHref();this._platformLocation=ne,this._baseHref=w(oe(Qe)),this._platformStrategy.onPopState(Wt=>{this._subject.emit({url:this.path(!0),pop:!0,state:Wt.state,type:Wt.type})})}path(J=!1){return this.normalize(this._platformStrategy.path(J))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(J,ne=""){return this.path()==this.normalize(J+Z(ne))}normalize(J){return Xe.stripTrailingSlash(function de(Xe,ge){return Xe&&ge.startsWith(Xe)?ge.substring(Xe.length):ge}(this._baseHref,oe(J)))}prepareExternalUrl(J){return J&&"/"!==J[0]&&(J="/"+J),this._platformStrategy.prepareExternalUrl(J)}go(J,ne="",Qe=null){this._platformStrategy.pushState(Qe,"",J,ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(J+Z(ne)),Qe)}replaceState(J,ne="",Qe=null){this._platformStrategy.replaceState(Qe,"",J,ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(J+Z(ne)),Qe)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(J=0){var ne,Qe;null===(Qe=(ne=this._platformStrategy).historyGo)||void 0===Qe||Qe.call(ne,J)}onUrlChange(J){this._urlChangeListeners.push(J),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(ne=>{this._notifyUrlChangeListeners(ne.url,ne.state)}))}_notifyUrlChangeListeners(J="",ne){this._urlChangeListeners.forEach(Qe=>Qe(J,ne))}subscribe(J,ne,Qe){return this._subject.subscribe({next:J,error:ne,complete:Qe})}}return Xe.normalizeQueryParams=Z,Xe.joinWithSlash=P,Xe.stripTrailingSlash=w,Xe.\u0275fac=function(J){return new(J||Xe)(e.LFG(j),e.LFG(N))},Xe.\u0275prov=e.Yz7({token:Xe,factory:function(){return function re(){return new ce((0,e.LFG)(j),(0,e.LFG)(N))}()},providedIn:"root"}),Xe})();function oe(Xe){return Xe.replace(/\/index.html$/,"")}var b=(()=>((b=b||{})[b.Decimal=0]="Decimal",b[b.Percent=1]="Percent",b[b.Currency=2]="Currency",b[b.Scientific=3]="Scientific",b))(),i=(()=>((i=i||{})[i.Zero=0]="Zero",i[i.One=1]="One",i[i.Two=2]="Two",i[i.Few=3]="Few",i[i.Many=4]="Many",i[i.Other=5]="Other",i))(),a=(()=>((a=a||{})[a.Format=0]="Format",a[a.Standalone=1]="Standalone",a))(),p=(()=>((p=p||{})[p.Narrow=0]="Narrow",p[p.Abbreviated=1]="Abbreviated",p[p.Wide=2]="Wide",p[p.Short=3]="Short",p))(),u=(()=>((u=u||{})[u.Short=0]="Short",u[u.Medium=1]="Medium",u[u.Long=2]="Long",u[u.Full=3]="Full",u))(),_=(()=>((_=_||{})[_.Decimal=0]="Decimal",_[_.Group=1]="Group",_[_.List=2]="List",_[_.PercentSign=3]="PercentSign",_[_.PlusSign=4]="PlusSign",_[_.MinusSign=5]="MinusSign",_[_.Exponential=6]="Exponential",_[_.SuperscriptingExponent=7]="SuperscriptingExponent",_[_.PerMille=8]="PerMille",_[_.Infinity=9]="Infinity",_[_.NaN=10]="NaN",_[_.TimeSeparator=11]="TimeSeparator",_[_.CurrencyDecimal=12]="CurrencyDecimal",_[_.CurrencyGroup=13]="CurrencyGroup",_))();function ye(Xe,ge){return Le((0,e.cg1)(Xe)[e.wAp.DateFormat],ge)}function Ce(Xe,ge){return Le((0,e.cg1)(Xe)[e.wAp.TimeFormat],ge)}function Be(Xe,ge){return Le((0,e.cg1)(Xe)[e.wAp.DateTimeFormat],ge)}function ze(Xe,ge){const J=(0,e.cg1)(Xe),ne=J[e.wAp.NumberSymbols][ge];if(void 0===ne){if(ge===_.CurrencyDecimal)return J[e.wAp.NumberSymbols][_.Decimal];if(ge===_.CurrencyGroup)return J[e.wAp.NumberSymbols][_.Group]}return ne}const Ge=e.kL8;function vt(Xe){if(!Xe[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Xe[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Le(Xe,ge){for(let J=ge;J>-1;J--)if(void 0!==Xe[J])return Xe[J];throw new Error("Locale data API: locale data undefined")}function ke(Xe){const[ge,J]=Xe.split(":");return{hours:+ge,minutes:+J}}const xe=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ue={},lt=/((?:[^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]*)/;var nt=(()=>((nt=nt||{})[nt.Short=0]="Short",nt[nt.ShortGMT=1]="ShortGMT",nt[nt.Long=2]="Long",nt[nt.Extended=3]="Extended",nt))(),ft=(()=>((ft=ft||{})[ft.FullYear=0]="FullYear",ft[ft.Month=1]="Month",ft[ft.Date=2]="Date",ft[ft.Hours=3]="Hours",ft[ft.Minutes=4]="Minutes",ft[ft.Seconds=5]="Seconds",ft[ft.FractionalSeconds=6]="FractionalSeconds",ft[ft.Day=7]="Day",ft))(),it=(()=>((it=it||{})[it.DayPeriods=0]="DayPeriods",it[it.Days=1]="Days",it[it.Months=2]="Months",it[it.Eras=3]="Eras",it))();function rt(Xe,ge,J,ne){let Qe=function Fe(Xe){if(st(Xe))return Xe;if("number"==typeof Xe&&!isNaN(Xe))return new Date(Xe);if("string"==typeof Xe){if(Xe=Xe.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Xe)){const[Qe,Wt=1,mi=1]=Xe.split("-").map(Ct=>+Ct);return Mt(Qe,Wt-1,mi)}const J=parseFloat(Xe);if(!isNaN(Xe-J))return new Date(J);let ne;if(ne=Xe.match(xe))return function at(Xe){const ge=new Date(0);let J=0,ne=0;const Qe=Xe[8]?ge.setUTCFullYear:ge.setFullYear,Wt=Xe[8]?ge.setUTCHours:ge.setHours;Xe[9]&&(J=Number(Xe[9]+Xe[10]),ne=Number(Xe[9]+Xe[11])),Qe.call(ge,Number(Xe[1]),Number(Xe[2])-1,Number(Xe[3]));const mi=Number(Xe[4]||0)-J,Ct=Number(Xe[5]||0)-ne,ti=Number(Xe[6]||0),bt=Math.floor(1e3*parseFloat("0."+(Xe[7]||0)));return Wt.call(ge,mi,Ct,ti,bt),ge}(ne)}const ge=new Date(Xe);if(!st(ge))throw new Error(`Unable to convert "${Xe}" into a date`);return ge}(Xe);ge=Zt(J,ge)||ge;let Ct,mi=[];for(;ge;){if(Ct=lt.exec(ge),!Ct){mi.push(ge);break}{mi=mi.concat(Ct.slice(1));const Yt=mi.pop();if(!Yt)break;ge=Yt}}let ti=Qe.getTimezoneOffset();ne&&(ti=Jt(ne,ti),Qe=function Pe(Xe,ge,J){const ne=J?-1:1,Qe=Xe.getTimezoneOffset();return function ct(Xe,ge){return(Xe=new Date(Xe.getTime())).setMinutes(Xe.getMinutes()+ge),Xe}(Xe,ne*(Jt(ge,Qe)-Qe))}(Qe,ne,!0));let bt="";return mi.forEach(Yt=>{const xi=function Nt(Xe){if($t[Xe])return $t[Xe];let ge;switch(Xe){case"G":case"GG":case"GGG":ge=Pi(it.Eras,p.Abbreviated);break;case"GGGG":ge=Pi(it.Eras,p.Wide);break;case"GGGGG":ge=Pi(it.Eras,p.Narrow);break;case"y":ge=jt(ft.FullYear,1,0,!1,!0);break;case"yy":ge=jt(ft.FullYear,2,0,!0,!0);break;case"yyy":ge=jt(ft.FullYear,3,0,!1,!0);break;case"yyyy":ge=jt(ft.FullYear,4,0,!1,!0);break;case"Y":ge=et(1);break;case"YY":ge=et(2,!0);break;case"YYY":ge=et(3);break;case"YYYY":ge=et(4);break;case"M":case"L":ge=jt(ft.Month,1,1);break;case"MM":case"LL":ge=jt(ft.Month,2,1);break;case"MMM":ge=Pi(it.Months,p.Abbreviated);break;case"MMMM":ge=Pi(it.Months,p.Wide);break;case"MMMMM":ge=Pi(it.Months,p.Narrow);break;case"LLL":ge=Pi(it.Months,p.Abbreviated,a.Standalone);break;case"LLLL":ge=Pi(it.Months,p.Wide,a.Standalone);break;case"LLLLL":ge=Pi(it.Months,p.Narrow,a.Standalone);break;case"w":ge=De(1);break;case"ww":ge=De(2);break;case"W":ge=De(1,!0);break;case"d":ge=jt(ft.Date,1);break;case"dd":ge=jt(ft.Date,2);break;case"c":case"cc":ge=jt(ft.Day,1);break;case"ccc":ge=Pi(it.Days,p.Abbreviated,a.Standalone);break;case"cccc":ge=Pi(it.Days,p.Wide,a.Standalone);break;case"ccccc":ge=Pi(it.Days,p.Narrow,a.Standalone);break;case"cccccc":ge=Pi(it.Days,p.Short,a.Standalone);break;case"E":case"EE":case"EEE":ge=Pi(it.Days,p.Abbreviated);break;case"EEEE":ge=Pi(it.Days,p.Wide);break;case"EEEEE":ge=Pi(it.Days,p.Narrow);break;case"EEEEEE":ge=Pi(it.Days,p.Short);break;case"a":case"aa":case"aaa":ge=Pi(it.DayPeriods,p.Abbreviated);break;case"aaaa":ge=Pi(it.DayPeriods,p.Wide);break;case"aaaaa":ge=Pi(it.DayPeriods,p.Narrow);break;case"b":case"bb":case"bbb":ge=Pi(it.DayPeriods,p.Abbreviated,a.Standalone,!0);break;case"bbbb":ge=Pi(it.DayPeriods,p.Wide,a.Standalone,!0);break;case"bbbbb":ge=Pi(it.DayPeriods,p.Narrow,a.Standalone,!0);break;case"B":case"BB":case"BBB":ge=Pi(it.DayPeriods,p.Abbreviated,a.Format,!0);break;case"BBBB":ge=Pi(it.DayPeriods,p.Wide,a.Format,!0);break;case"BBBBB":ge=Pi(it.DayPeriods,p.Narrow,a.Format,!0);break;case"h":ge=jt(ft.Hours,1,-12);break;case"hh":ge=jt(ft.Hours,2,-12);break;case"H":ge=jt(ft.Hours,1);break;case"HH":ge=jt(ft.Hours,2);break;case"m":ge=jt(ft.Minutes,1);break;case"mm":ge=jt(ft.Minutes,2);break;case"s":ge=jt(ft.Seconds,1);break;case"ss":ge=jt(ft.Seconds,2);break;case"S":ge=jt(ft.FractionalSeconds,1);break;case"SS":ge=jt(ft.FractionalSeconds,2);break;case"SSS":ge=jt(ft.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ge=hi(nt.Short);break;case"ZZZZZ":ge=hi(nt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ge=hi(nt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ge=hi(nt.Long);break;default:return null}return $t[Xe]=ge,ge}(Yt);bt+=xi?xi(Qe,J,ti):"''"===Yt?"'":Yt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),bt}function Mt(Xe,ge,J){const ne=new Date(0);return ne.setFullYear(Xe,ge,J),ne.setHours(0,0,0),ne}function Zt(Xe,ge){const J=function I(Xe){return(0,e.cg1)(Xe)[e.wAp.LocaleId]}(Xe);if(Ue[J]=Ue[J]||{},Ue[J][ge])return Ue[J][ge];let ne="";switch(ge){case"shortDate":ne=ye(Xe,u.Short);break;case"mediumDate":ne=ye(Xe,u.Medium);break;case"longDate":ne=ye(Xe,u.Long);break;case"fullDate":ne=ye(Xe,u.Full);break;case"shortTime":ne=Ce(Xe,u.Short);break;case"mediumTime":ne=Ce(Xe,u.Medium);break;case"longTime":ne=Ce(Xe,u.Long);break;case"fullTime":ne=Ce(Xe,u.Full);break;case"short":const Qe=Zt(Xe,"shortTime"),Wt=Zt(Xe,"shortDate");ne=Ft(Be(Xe,u.Short),[Qe,Wt]);break;case"medium":const mi=Zt(Xe,"mediumTime"),Ct=Zt(Xe,"mediumDate");ne=Ft(Be(Xe,u.Medium),[mi,Ct]);break;case"long":const ti=Zt(Xe,"longTime"),bt=Zt(Xe,"longDate");ne=Ft(Be(Xe,u.Long),[ti,bt]);break;case"full":const Yt=Zt(Xe,"fullTime"),xi=Zt(Xe,"fullDate");ne=Ft(Be(Xe,u.Full),[Yt,xi])}return ne&&(Ue[J][ge]=ne),ne}function Ft(Xe,ge){return ge&&(Xe=Xe.replace(/\{([^}]+)}/g,function(J,ne){return null!=ge&&ne in ge?ge[ne]:J})),Xe}function Vt(Xe,ge,J="-",ne,Qe){let Wt="";(Xe<0||Qe&&Xe<=0)&&(Qe?Xe=1-Xe:(Xe=-Xe,Wt=J));let mi=String(Xe);for(;mi.length0||Ct>-J)&&(Ct+=J),Xe===ft.Hours)0===Ct&&-12===J&&(Ct=12);else if(Xe===ft.FractionalSeconds)return function Ii(Xe,ge){return Vt(Xe,3).substr(0,ge)}(Ct,ge);const ti=ze(mi,_.MinusSign);return Vt(Ct,ge,ti,ne,Qe)}}function Pi(Xe,ge,J=a.Format,ne=!1){return function(Qe,Wt){return function ai(Xe,ge,J,ne,Qe,Wt){switch(J){case it.Months:return function v(Xe,ge,J){const ne=(0,e.cg1)(Xe),Wt=Le([ne[e.wAp.MonthsFormat],ne[e.wAp.MonthsStandalone]],ge);return Le(Wt,J)}(ge,Qe,ne)[Xe.getMonth()];case it.Days:return function r(Xe,ge,J){const ne=(0,e.cg1)(Xe),Wt=Le([ne[e.wAp.DaysFormat],ne[e.wAp.DaysStandalone]],ge);return Le(Wt,J)}(ge,Qe,ne)[Xe.getDay()];case it.DayPeriods:const mi=Xe.getHours(),Ct=Xe.getMinutes();if(Wt){const bt=function Re(Xe){const ge=(0,e.cg1)(Xe);return vt(ge),(ge[e.wAp.ExtraData][2]||[]).map(ne=>"string"==typeof ne?ke(ne):[ke(ne[0]),ke(ne[1])])}(ge),Yt=function Ne(Xe,ge,J){const ne=(0,e.cg1)(Xe);vt(ne);const Wt=Le([ne[e.wAp.ExtraData][0],ne[e.wAp.ExtraData][1]],ge)||[];return Le(Wt,J)||[]}(ge,Qe,ne),xi=bt.findIndex(Bi=>{if(Array.isArray(Bi)){const[yn,An]=Bi,Wi=mi>=yn.hours&&Ct>=yn.minutes,Cr=mi0?Math.floor(Qe/60):Math.ceil(Qe/60);switch(Xe){case nt.Short:return(Qe>=0?"+":"")+Vt(mi,2,Wt)+Vt(Math.abs(Qe%60),2,Wt);case nt.ShortGMT:return"GMT"+(Qe>=0?"+":"")+Vt(mi,1,Wt);case nt.Long:return"GMT"+(Qe>=0?"+":"")+Vt(mi,2,Wt)+":"+Vt(Math.abs(Qe%60),2,Wt);case nt.Extended:return 0===ne?"Z":(Qe>=0?"+":"")+Vt(mi,2,Wt)+":"+Vt(Math.abs(Qe%60),2,Wt);default:throw new Error(`Unknown zone width "${Xe}"`)}}}function me(Xe){return Mt(Xe.getFullYear(),Xe.getMonth(),Xe.getDate()+(4-Xe.getDay()))}function De(Xe,ge=!1){return function(J,ne){let Qe;if(ge){const Wt=new Date(J.getFullYear(),J.getMonth(),1).getDay()-1,mi=J.getDate();Qe=1+Math.floor((mi+Wt)/7)}else{const Wt=me(J),mi=function Y(Xe){const ge=Mt(Xe,0,1).getDay();return Mt(Xe,0,1+(ge<=4?4:11)-ge)}(Wt.getFullYear()),Ct=Wt.getTime()-mi.getTime();Qe=1+Math.round(Ct/6048e5)}return Vt(Qe,Xe,ze(ne,_.MinusSign))}}function et(Xe,ge=!1){return function(J,ne){return Vt(me(J).getFullYear(),Xe,ze(ne,_.MinusSign),ge)}}const $t={};function Jt(Xe,ge){Xe=Xe.replace(/:/g,"");const J=Date.parse("Jan 01, 1970 00:00:00 "+Xe)/6e4;return isNaN(J)?ge:J}function st(Xe){return Xe instanceof Date&&!isNaN(Xe.valueOf())}const At=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Je(Xe){const ge=parseInt(Xe);if(isNaN(ge))throw new Error("Invalid integer literal when parsing "+Xe);return ge}class St{}let yi=(()=>{class Xe extends St{constructor(J){super(),this.locale=J}getPluralCategory(J,ne){switch(Ge(ne||this.locale)(J)){case i.Zero:return"zero";case i.One:return"one";case i.Two:return"two";case i.Few:return"few";case i.Many:return"many";default:return"other"}}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.LFG(e.soG))},Xe.\u0275prov=e.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})();function Si(Xe,ge){ge=encodeURIComponent(ge);for(const J of Xe.split(";")){const ne=J.indexOf("="),[Qe,Wt]=-1==ne?[J,""]:[J.slice(0,ne),J.slice(ne+1)];if(Qe.trim()===ge)return decodeURIComponent(Wt)}return null}let qi=(()=>{class Xe{constructor(J,ne,Qe,Wt){this._iterableDiffers=J,this._keyValueDiffers=ne,this._ngEl=Qe,this._renderer=Wt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(J){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof J?J.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(J){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof J?J.split(/\s+/):J,this._rawClass&&((0,e.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const J=this._iterableDiffer.diff(this._rawClass);J&&this._applyIterableChanges(J)}else if(this._keyValueDiffer){const J=this._keyValueDiffer.diff(this._rawClass);J&&this._applyKeyValueChanges(J)}}_applyKeyValueChanges(J){J.forEachAddedItem(ne=>this._toggleClass(ne.key,ne.currentValue)),J.forEachChangedItem(ne=>this._toggleClass(ne.key,ne.currentValue)),J.forEachRemovedItem(ne=>{ne.previousValue&&this._toggleClass(ne.key,!1)})}_applyIterableChanges(J){J.forEachAddedItem(ne=>{if("string"!=typeof ne.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,e.AaK)(ne.item)}`);this._toggleClass(ne.item,!0)}),J.forEachRemovedItem(ne=>this._toggleClass(ne.item,!1))}_applyClasses(J){J&&(Array.isArray(J)||J instanceof Set?J.forEach(ne=>this._toggleClass(ne,!0)):Object.keys(J).forEach(ne=>this._toggleClass(ne,!!J[ne])))}_removeClasses(J){J&&(Array.isArray(J)||J instanceof Set?J.forEach(ne=>this._toggleClass(ne,!1)):Object.keys(J).forEach(ne=>this._toggleClass(ne,!1)))}_toggleClass(J,ne){(J=J.trim())&&J.split(/\s+/g).forEach(Qe=>{ne?this._renderer.addClass(this._ngEl.nativeElement,Qe):this._renderer.removeClass(this._ngEl.nativeElement,Qe)})}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),Xe})();class Kt{constructor(ge,J,ne,Qe){this.$implicit=ge,this.ngForOf=J,this.index=ne,this.count=Qe}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 gt=(()=>{class Xe{constructor(J,ne,Qe){this._viewContainer=J,this._template=ne,this._differs=Qe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(J){this._ngForOf=J,this._ngForOfDirty=!0}set ngForTrackBy(J){this._trackByFn=J}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(J){J&&(this._template=J)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const J=this._ngForOf;if(!this._differ&&J)try{this._differ=this._differs.find(J).create(this.ngForTrackBy)}catch(ne){throw new Error(`Cannot find a differ supporting object '${J}' of type '${function ui(Xe){return Xe.name||typeof Xe}(J)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const J=this._differ.diff(this._ngForOf);J&&this._applyChanges(J)}}_applyChanges(J){const ne=[];J.forEachOperation((Qe,Wt,mi)=>{if(null==Qe.previousIndex){const Ct=this._viewContainer.createEmbeddedView(this._template,new Kt(null,this._ngForOf,-1,-1),null===mi?void 0:mi),ti=new Lt(Qe,Ct);ne.push(ti)}else if(null==mi)this._viewContainer.remove(null===Wt?void 0:Wt);else if(null!==Wt){const Ct=this._viewContainer.get(Wt);this._viewContainer.move(Ct,mi);const ti=new Lt(Qe,Ct);ne.push(ti)}});for(let Qe=0;Qe{this._viewContainer.get(Qe.currentIndex).context.$implicit=Qe.item})}_perViewChange(J,ne){J.context.$implicit=ne.item}static ngTemplateContextGuard(J,ne){return!0}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),Xe})();class Lt{constructor(ge,J){this.record=ge,this.view=J}}let Ci=(()=>{class Xe{constructor(J,ne){this._viewContainer=J,this._context=new Yi,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ne}set ngIf(J){this._context.$implicit=this._context.ngIf=J,this._updateView()}set ngIfThen(J){$i("ngIfThen",J),this._thenTemplateRef=J,this._thenViewRef=null,this._updateView()}set ngIfElse(J){$i("ngIfElse",J),this._elseTemplateRef=J,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 ngTemplateContextGuard(J,ne){return!0}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.s_b),e.Y36(e.Rgc))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),Xe})();class Yi{constructor(){this.$implicit=null,this.ngIf=null}}function $i(Xe,ge){if(ge&&!ge.createEmbeddedView)throw new Error(`${Xe} must be a TemplateRef, but received '${(0,e.AaK)(ge)}'.`)}class Cn{constructor(ge,J){this._viewContainerRef=ge,this._templateRef=J,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(ge){ge&&!this._created?this.create():!ge&&this._created&&this.destroy()}}let Ln=(()=>{class Xe{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(J){this._ngSwitch=J,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(J){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(J)}_matchCase(J){const ne=J==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||ne,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),ne}_updateDefaultCases(J){if(this._defaultViews&&J!==this._defaultUsed){this._defaultUsed=J;for(let ne=0;ne{class Xe{constructor(J,ne,Qe){this.ngSwitch=Qe,Qe._addCase(),this._view=new Cn(J,ne)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Ln,9))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),Xe})(),Pn=(()=>{class Xe{constructor(J,ne,Qe){Qe._addDefault(new Cn(J,ne))}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Ln,9))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngSwitchDefault",""]]}),Xe})(),dn=(()=>{class Xe{constructor(J,ne,Qe){this._ngEl=J,this._differs=ne,this._renderer=Qe,this._ngStyle=null,this._differ=null}set ngStyle(J){this._ngStyle=J,!this._differ&&J&&(this._differ=this._differs.find(J).create())}ngDoCheck(){if(this._differ){const J=this._differ.diff(this._ngStyle);J&&this._applyChanges(J)}}_setStyle(J,ne){const[Qe,Wt]=J.split(".");null!=(ne=null!=ne&&Wt?`${ne}${Wt}`:ne)?this._renderer.setStyle(this._ngEl.nativeElement,Qe,ne):this._renderer.removeStyle(this._ngEl.nativeElement,Qe)}_applyChanges(J){J.forEachRemovedItem(ne=>this._setStyle(ne.key,null)),J.forEachAddedItem(ne=>this._setStyle(ne.key,ne.currentValue)),J.forEachChangedItem(ne=>this._setStyle(ne.key,ne.currentValue))}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),Xe})(),Lr=(()=>{class Xe{constructor(J){this._viewContainerRef=J,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(J){if(J.ngTemplateOutlet){const ne=this._viewContainerRef;this._viewRef&&ne.remove(ne.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?ne.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&J.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.s_b))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[e.TTD]}),Xe})();function Gn(Xe,ge){return Error(`InvalidPipeArgument: '${ge}' for pipe '${(0,e.AaK)(Xe)}'`)}class Or{createSubscription(ge,J){return ge.subscribe({next:J,error:ne=>{throw ne}})}dispose(ge){ge.unsubscribe()}onDestroy(ge){ge.unsubscribe()}}class Ra{createSubscription(ge,J){return ge.then(J,ne=>{throw ne})}dispose(ge){}onDestroy(ge){}}const Ma=new Ra,Fa=new Or;let xr=(()=>{class Xe{constructor(J){this._ref=J,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(J){return this._obj?J!==this._obj?(this._dispose(),this.transform(J)):this._latestValue:(J&&this._subscribe(J),this._latestValue)}_subscribe(J){this._obj=J,this._strategy=this._selectStrategy(J),this._subscription=this._strategy.createSubscription(J,ne=>this._updateLatestValue(J,ne))}_selectStrategy(J){if((0,e.QGY)(J))return Ma;if((0,e.F4k)(J))return Fa;throw Gn(Xe,J)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(J,ne){J===this._obj&&(this._latestValue=ne,this._ref.markForCheck())}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.sBO,16))},Xe.\u0275pipe=e.Yjl({name:"async",type:Xe,pure:!1}),Xe})(),hs=(()=>{class Xe{transform(J){if(null==J)return null;if("string"!=typeof J)throw Gn(Xe,J);return J.toLowerCase()}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275pipe=e.Yjl({name:"lowercase",type:Xe,pure:!0}),Xe})();const ur=/(?:[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 pa=(()=>{class Xe{transform(J){if(null==J)return null;if("string"!=typeof J)throw Gn(Xe,J);return J.replace(ur,ne=>ne[0].toUpperCase()+ne.substr(1).toLowerCase())}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275pipe=e.Yjl({name:"titlecase",type:Xe,pure:!0}),Xe})(),ma=(()=>{class Xe{transform(J){if(null==J)return null;if("string"!=typeof J)throw Gn(Xe,J);return J.toUpperCase()}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275pipe=e.Yjl({name:"uppercase",type:Xe,pure:!0}),Xe})();const Ir=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Ga=(()=>{class Xe{constructor(J,ne){this.locale=J,this.defaultTimezone=ne}transform(J,ne="mediumDate",Qe,Wt){var mi;if(null==J||""===J||J!=J)return null;try{return rt(J,ne,Wt||this.locale,null!==(mi=null!=Qe?Qe:this.defaultTimezone)&&void 0!==mi?mi:void 0)}catch(Ct){throw Gn(Xe,Ct.message)}}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.soG,16),e.Y36(Ir,24))},Xe.\u0275pipe=e.Yjl({name:"date",type:Xe,pure:!0}),Xe})(),Kn=(()=>{class Xe{transform(J){return JSON.stringify(J,null,2)}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275pipe=e.Yjl({name:"json",type:Xe,pure:!1}),Xe})(),Qn=(()=>{class Xe{constructor(J){this.differs=J,this.keyValues=[],this.compareFn=Tr}transform(J,ne=Tr){if(!J||!(J instanceof Map)&&"object"!=typeof J)return null;this.differ||(this.differ=this.differs.find(J).create());const Qe=this.differ.diff(J),Wt=ne!==this.compareFn;return Qe&&(this.keyValues=[],Qe.forEachItem(mi=>{this.keyValues.push(function vn(Xe,ge){return{key:Xe,value:ge}}(mi.key,mi.currentValue))})),(Qe||Wt)&&(this.keyValues.sort(ne),this.compareFn=ne),this.keyValues}}return Xe.\u0275fac=function(J){return new(J||Xe)(e.Y36(e.aQg,16))},Xe.\u0275pipe=e.Yjl({name:"keyvalue",type:Xe,pure:!1}),Xe})();function Tr(Xe,ge){const J=Xe.key,ne=ge.key;if(J===ne)return 0;if(void 0===J)return 1;if(void 0===ne)return-1;if(null===J)return 1;if(null===ne)return-1;if("string"==typeof J&&"string"==typeof ne)return J{class Xe{constructor(J){this._locale=J}transform(J,ne,Qe){if(!function la(Xe){return!(null==Xe||""===Xe||Xe!=Xe)}(J))return null;Qe=Qe||this._locale;try{return function _t(Xe,ge,J){return function Di(Xe,ge,J,ne,Qe,Wt,mi=!1){let Ct="",ti=!1;if(isFinite(Xe)){let bt=function yt(Xe){let ne,Qe,Wt,mi,Ct,ge=Math.abs(Xe)+"",J=0;for((Qe=ge.indexOf("."))>-1&&(ge=ge.replace(".","")),(Wt=ge.search(/e/i))>0?(Qe<0&&(Qe=Wt),Qe+=+ge.slice(Wt+1),ge=ge.substring(0,Wt)):Qe<0&&(Qe=ge.length),Wt=0;"0"===ge.charAt(Wt);Wt++);if(Wt===(Ct=ge.length))ne=[0],Qe=1;else{for(Ct--;"0"===ge.charAt(Ct);)Ct--;for(Qe-=Wt,ne=[],mi=0;Wt<=Ct;Wt++,mi++)ne[mi]=Number(ge.charAt(Wt))}return Qe>22&&(ne=ne.splice(0,21),J=Qe-1,Qe=1),{digits:ne,exponent:J,integerLen:Qe}}(Xe);mi&&(bt=function qe(Xe){if(0===Xe.digits[0])return Xe;const ge=Xe.digits.length-Xe.integerLen;return Xe.exponent?Xe.exponent+=2:(0===ge?Xe.digits.push(0,0):1===ge&&Xe.digits.push(0),Xe.integerLen+=2),Xe}(bt));let Yt=ge.minInt,xi=ge.minFrac,Bi=ge.maxFrac;if(Wt){const Rn=Wt.match(At);if(null===Rn)throw new Error(`${Wt} is not a valid digit info`);const _a=Rn[1],Mr=Rn[3],ds=Rn[5];null!=_a&&(Yt=Je(_a)),null!=Mr&&(xi=Je(Mr)),null!=ds?Bi=Je(ds):null!=Mr&&xi>Bi&&(Bi=xi)}!function fe(Xe,ge,J){if(ge>J)throw new Error(`The minimum number of digits after fraction (${ge}) is higher than the maximum (${J}).`);let ne=Xe.digits,Qe=ne.length-Xe.integerLen;const Wt=Math.min(Math.max(ge,Qe),J);let mi=Wt+Xe.integerLen,Ct=ne[mi];if(mi>0){ne.splice(Math.max(Xe.integerLen,mi));for(let xi=mi;xi=5)if(mi-1<0){for(let xi=0;xi>mi;xi--)ne.unshift(0),Xe.integerLen++;ne.unshift(1),Xe.integerLen++}else ne[mi-1]++;for(;Qe=bt?An.pop():ti=!1),Bi>=10?1:0},0);Yt&&(ne.unshift(Yt),Xe.integerLen++)}(bt,xi,Bi);let yn=bt.digits,An=bt.integerLen;const Wi=bt.exponent;let Cr=[];for(ti=yn.every(Rn=>!Rn);An0?Cr=yn.splice(An,yn.length):(Cr=yn,yn=[0]);const Un=[];for(yn.length>=ge.lgSize&&Un.unshift(yn.splice(-ge.lgSize,yn.length).join(""));yn.length>ge.gSize;)Un.unshift(yn.splice(-ge.gSize,yn.length).join(""));yn.length&&Un.unshift(yn.join("")),Ct=Un.join(ze(J,ne)),Cr.length&&(Ct+=ze(J,Qe)+Cr.join("")),Wi&&(Ct+=ze(J,_.Exponential)+"+"+Wi)}else Ct=ze(J,_.Infinity);return Ct=Xe<0&&!ti?ge.negPre+Ct+ge.negSuf:ge.posPre+Ct+ge.posSuf,Ct}(Xe,function ve(Xe,ge="-"){const J={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},ne=Xe.split(";"),Qe=ne[0],Wt=ne[1],mi=-1!==Qe.indexOf(".")?Qe.split("."):[Qe.substring(0,Qe.lastIndexOf("0")+1),Qe.substring(Qe.lastIndexOf("0")+1)],Ct=mi[0],ti=mi[1]||"";J.posPre=Ct.substr(0,Ct.indexOf("#"));for(let Yt=0;Yt{class Xe{transform(J,ne,Qe){if(null==J)return null;if(!this.supports(J))throw Gn(Xe,J);return J.slice(ne,Qe)}supports(J){return"string"==typeof J||Array.isArray(J)}}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275pipe=e.Yjl({name:"slice",type:Xe,pure:!1}),Xe})(),wa=(()=>{class Xe{}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275mod=e.oAB({type:Xe}),Xe.\u0275inj=e.cJS({providers:[{provide:St,useClass:yi}]}),Xe})();const Nr="browser";function ha(Xe){return Xe===Nr}function pr(Xe){return"server"===Xe}let ra=(()=>{class Xe{}return Xe.\u0275prov=(0,e.Yz7)({token:Xe,providedIn:"root",factory:()=>new Gr((0,e.LFG)(l),window)}),Xe})();class Gr{constructor(ge,J){this.document=ge,this.window=J,this.offset=()=>[0,0]}setOffset(ge){this.offset=Array.isArray(ge)?()=>ge:ge}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(ge){this.supportsScrolling()&&this.window.scrollTo(ge[0],ge[1])}scrollToAnchor(ge){if(!this.supportsScrolling())return;const J=function Zn(Xe,ge){const J=Xe.getElementById(ge)||Xe.getElementsByName(ge)[0];if(J)return J;if("function"==typeof Xe.createTreeWalker&&Xe.body&&(Xe.body.createShadowRoot||Xe.body.attachShadow)){const ne=Xe.createTreeWalker(Xe.body,NodeFilter.SHOW_ELEMENT);let Qe=ne.currentNode;for(;Qe;){const Wt=Qe.shadowRoot;if(Wt){const mi=Wt.getElementById(ge)||Wt.querySelector(`[name="${ge}"]`);if(mi)return mi}Qe=ne.nextNode()}}return null}(this.document,ge);J&&(this.scrollToElement(J),this.attemptFocus(J))}setHistoryScrollRestoration(ge){if(this.supportScrollRestoration()){const J=this.window.history;J&&J.scrollRestoration&&(J.scrollRestoration=ge)}}scrollToElement(ge){const J=ge.getBoundingClientRect(),ne=J.left+this.window.pageXOffset,Qe=J.top+this.window.pageYOffset,Wt=this.offset();this.window.scrollTo(ne-Wt[0],Qe-Wt[1])}attemptFocus(ge){return ge.focus(),this.document.activeElement===ge}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const ge=Ha(this.window.history)||Ha(Object.getPrototypeOf(this.window.history));return!(!ge||!ge.writable&&!ge.set)}catch(ge){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(ge){return!1}}}function Ha(Xe){return Object.getOwnPropertyDescriptor(Xe,"scrollRestoration")}class ja{}},8138:(Ve,Q,m)=>{"use strict";m.d(Q,{TP:()=>I,eN:()=>_,JF:()=>Le,LE:()=>j});var e=m(9808),t=m(5e3),y=m(9646),C=m(8306),o=m(4351),M=m(9300),l=m(4004);class N{}class s{}class D{constructor(le){this.normalizedNames=new Map,this.lazyUpdate=null,le?this.lazyInit="string"==typeof le?()=>{this.headers=new Map,le.split("\n").forEach(xe=>{const Ue=xe.indexOf(":");if(Ue>0){const lt=xe.slice(0,Ue),nt=lt.toLowerCase(),ft=xe.slice(Ue+1).trim();this.maybeSetNormalizedName(lt,nt),this.headers.has(nt)?this.headers.get(nt).push(ft):this.headers.set(nt,[ft])}})}:()=>{this.headers=new Map,Object.keys(le).forEach(xe=>{let Ue=le[xe];const lt=xe.toLowerCase();"string"==typeof Ue&&(Ue=[Ue]),Ue.length>0&&(this.headers.set(lt,Ue),this.maybeSetNormalizedName(xe,lt))})}:this.headers=new Map}has(le){return this.init(),this.headers.has(le.toLowerCase())}get(le){this.init();const xe=this.headers.get(le.toLowerCase());return xe&&xe.length>0?xe[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(le){return this.init(),this.headers.get(le.toLowerCase())||null}append(le,xe){return this.clone({name:le,value:xe,op:"a"})}set(le,xe){return this.clone({name:le,value:xe,op:"s"})}delete(le,xe){return this.clone({name:le,value:xe,op:"d"})}maybeSetNormalizedName(le,xe){this.normalizedNames.has(xe)||this.normalizedNames.set(xe,le)}init(){this.lazyInit&&(this.lazyInit instanceof D?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(le=>this.applyUpdate(le)),this.lazyUpdate=null))}copyFrom(le){le.init(),Array.from(le.headers.keys()).forEach(xe=>{this.headers.set(xe,le.headers.get(xe)),this.normalizedNames.set(xe,le.normalizedNames.get(xe))})}clone(le){const xe=new D;return xe.lazyInit=this.lazyInit&&this.lazyInit instanceof D?this.lazyInit:this,xe.lazyUpdate=(this.lazyUpdate||[]).concat([le]),xe}applyUpdate(le){const xe=le.name.toLowerCase();switch(le.op){case"a":case"s":let Ue=le.value;if("string"==typeof Ue&&(Ue=[Ue]),0===Ue.length)return;this.maybeSetNormalizedName(le.name,xe);const lt=("a"===le.op?this.headers.get(xe):void 0)||[];lt.push(...Ue),this.headers.set(xe,lt);break;case"d":const nt=le.value;if(nt){let ft=this.headers.get(xe);if(!ft)return;ft=ft.filter(it=>-1===nt.indexOf(it)),0===ft.length?(this.headers.delete(xe),this.normalizedNames.delete(xe)):this.headers.set(xe,ft)}else this.headers.delete(xe),this.normalizedNames.delete(xe)}}forEach(le){this.init(),Array.from(this.normalizedNames.keys()).forEach(xe=>le(this.normalizedNames.get(xe),this.headers.get(xe)))}}class A{encodeKey(le){return w(le)}encodeValue(le){return w(le)}decodeKey(le){return decodeURIComponent(le)}decodeValue(le){return decodeURIComponent(le)}}const E=/%(\d[a-f0-9])/gi,P={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function w($){return encodeURIComponent($).replace(E,(le,xe)=>{var Ue;return null!==(Ue=P[xe])&&void 0!==Ue?Ue:le})}function Z($){return`${$}`}class j{constructor(le={}){if(this.updates=null,this.cloneFrom=null,this.encoder=le.encoder||new A,le.fromString){if(le.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function O($,le){const xe=new Map;return $.length>0&&$.replace(/^\?/,"").split("&").forEach(lt=>{const nt=lt.indexOf("="),[ft,it]=-1==nt?[le.decodeKey(lt),""]:[le.decodeKey(lt.slice(0,nt)),le.decodeValue(lt.slice(nt+1))],rt=xe.get(ft)||[];rt.push(it),xe.set(ft,rt)}),xe}(le.fromString,this.encoder)}else le.fromObject?(this.map=new Map,Object.keys(le.fromObject).forEach(xe=>{const Ue=le.fromObject[xe];this.map.set(xe,Array.isArray(Ue)?Ue:[Ue])})):this.map=null}has(le){return this.init(),this.map.has(le)}get(le){this.init();const xe=this.map.get(le);return xe?xe[0]:null}getAll(le){return this.init(),this.map.get(le)||null}keys(){return this.init(),Array.from(this.map.keys())}append(le,xe){return this.clone({param:le,value:xe,op:"a"})}appendAll(le){const xe=[];return Object.keys(le).forEach(Ue=>{const lt=le[Ue];Array.isArray(lt)?lt.forEach(nt=>{xe.push({param:Ue,value:nt,op:"a"})}):xe.push({param:Ue,value:lt,op:"a"})}),this.clone(xe)}set(le,xe){return this.clone({param:le,value:xe,op:"s"})}delete(le,xe){return this.clone({param:le,value:xe,op:"d"})}toString(){return this.init(),this.keys().map(le=>{const xe=this.encoder.encodeKey(le);return this.map.get(le).map(Ue=>xe+"="+this.encoder.encodeValue(Ue)).join("&")}).filter(le=>""!==le).join("&")}clone(le){const xe=new j({encoder:this.encoder});return xe.cloneFrom=this.cloneFrom||this,xe.updates=(this.updates||[]).concat(le),xe}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(le=>this.map.set(le,this.cloneFrom.map.get(le))),this.updates.forEach(le=>{switch(le.op){case"a":case"s":const xe=("a"===le.op?this.map.get(le.param):void 0)||[];xe.push(Z(le.value)),this.map.set(le.param,xe);break;case"d":if(void 0===le.value){this.map.delete(le.param);break}{let Ue=this.map.get(le.param)||[];const lt=Ue.indexOf(Z(le.value));-1!==lt&&Ue.splice(lt,1),Ue.length>0?this.map.set(le.param,Ue):this.map.delete(le.param)}}}),this.cloneFrom=this.updates=null)}}class ie{constructor(){this.map=new Map}set(le,xe){return this.map.set(le,xe),this}get(le){return this.map.has(le)||this.map.set(le,le.defaultValue()),this.map.get(le)}delete(le){return this.map.delete(le),this}keys(){return this.map.keys()}}function _e($){return"undefined"!=typeof ArrayBuffer&&$ instanceof ArrayBuffer}function ce($){return"undefined"!=typeof Blob&&$ instanceof Blob}function re($){return"undefined"!=typeof FormData&&$ instanceof FormData}class oe{constructor(le,xe,Ue,lt){let nt;if(this.url=xe,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=le.toUpperCase(),function ee($){switch($){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||lt?(this.body=void 0!==Ue?Ue:null,nt=lt):nt=Ue,nt&&(this.reportProgress=!!nt.reportProgress,this.withCredentials=!!nt.withCredentials,nt.responseType&&(this.responseType=nt.responseType),nt.headers&&(this.headers=nt.headers),nt.context&&(this.context=nt.context),nt.params&&(this.params=nt.params)),this.headers||(this.headers=new D),this.context||(this.context=new ie),this.params){const ft=this.params.toString();if(0===ft.length)this.urlWithParams=xe;else{const it=xe.indexOf("?");this.urlWithParams=xe+(-1===it?"?":itVt.set(Ii,le.setHeaders[Ii]),Mt)),le.setParams&&(Zt=Object.keys(le.setParams).reduce((Vt,Ii)=>Vt.set(Ii,le.setParams[Ii]),Zt)),new oe(Ue,lt,ft,{params:Zt,headers:Mt,context:Ft,reportProgress:rt,responseType:nt,withCredentials:it})}}var ae=(()=>((ae=ae||{})[ae.Sent=0]="Sent",ae[ae.UploadProgress=1]="UploadProgress",ae[ae.ResponseHeader=2]="ResponseHeader",ae[ae.DownloadProgress=3]="DownloadProgress",ae[ae.Response=4]="Response",ae[ae.User=5]="User",ae))();class b{constructor(le,xe=200,Ue="OK"){this.headers=le.headers||new D,this.status=void 0!==le.status?le.status:xe,this.statusText=le.statusText||Ue,this.url=le.url||null,this.ok=this.status>=200&&this.status<300}}class i extends b{constructor(le={}){super(le),this.type=ae.ResponseHeader}clone(le={}){return new i({headers:le.headers||this.headers,status:void 0!==le.status?le.status:this.status,statusText:le.statusText||this.statusText,url:le.url||this.url||void 0})}}class a extends b{constructor(le={}){super(le),this.type=ae.Response,this.body=void 0!==le.body?le.body:null}clone(le={}){return new a({body:void 0!==le.body?le.body:this.body,headers:le.headers||this.headers,status:void 0!==le.status?le.status:this.status,statusText:le.statusText||this.statusText,url:le.url||this.url||void 0})}}class p extends b{constructor(le){super(le,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${le.url||"(unknown url)"}`:`Http failure response for ${le.url||"(unknown url)"}: ${le.status} ${le.statusText}`,this.error=le.error||null}}function u($,le){return{body:le,headers:$.headers,context:$.context,observe:$.observe,params:$.params,reportProgress:$.reportProgress,responseType:$.responseType,withCredentials:$.withCredentials}}let _=(()=>{class ${constructor(xe){this.handler=xe}request(xe,Ue,lt={}){let nt;if(xe instanceof oe)nt=xe;else{let rt,Mt;rt=lt.headers instanceof D?lt.headers:new D(lt.headers),lt.params&&(Mt=lt.params instanceof j?lt.params:new j({fromObject:lt.params})),nt=new oe(xe,Ue,void 0!==lt.body?lt.body:null,{headers:rt,context:lt.context,params:Mt,reportProgress:lt.reportProgress,responseType:lt.responseType||"json",withCredentials:lt.withCredentials})}const ft=(0,y.of)(nt).pipe((0,o.b)(rt=>this.handler.handle(rt)));if(xe instanceof oe||"events"===lt.observe)return ft;const it=ft.pipe((0,M.h)(rt=>rt instanceof a));switch(lt.observe||"body"){case"body":switch(nt.responseType){case"arraybuffer":return it.pipe((0,l.U)(rt=>{if(null!==rt.body&&!(rt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return rt.body}));case"blob":return it.pipe((0,l.U)(rt=>{if(null!==rt.body&&!(rt.body instanceof Blob))throw new Error("Response is not a Blob.");return rt.body}));case"text":return it.pipe((0,l.U)(rt=>{if(null!==rt.body&&"string"!=typeof rt.body)throw new Error("Response is not a string.");return rt.body}));default:return it.pipe((0,l.U)(rt=>rt.body))}case"response":return it;default:throw new Error(`Unreachable: unhandled observe type ${lt.observe}}`)}}delete(xe,Ue={}){return this.request("DELETE",xe,Ue)}get(xe,Ue={}){return this.request("GET",xe,Ue)}head(xe,Ue={}){return this.request("HEAD",xe,Ue)}jsonp(xe,Ue){return this.request("JSONP",xe,{params:(new j).append(Ue,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(xe,Ue={}){return this.request("OPTIONS",xe,Ue)}patch(xe,Ue,lt={}){return this.request("PATCH",xe,u(lt,Ue))}post(xe,Ue,lt={}){return this.request("POST",xe,u(lt,Ue))}put(xe,Ue,lt={}){return this.request("PUT",xe,u(lt,Ue))}}return $.\u0275fac=function(xe){return new(xe||$)(t.LFG(N))},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})();class L{constructor(le,xe){this.next=le,this.interceptor=xe}handle(le){return this.interceptor.intercept(le,this.next)}}const I=new t.OlP("HTTP_INTERCEPTORS");let x=(()=>{class ${intercept(xe,Ue){return Ue.handle(xe)}}return $.\u0275fac=function(xe){return new(xe||$)},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})();const Be=/^\)\]\}',?\n/;let Ie=(()=>{class ${constructor(xe){this.xhrFactory=xe}handle(xe){if("JSONP"===xe.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new C.y(Ue=>{const lt=this.xhrFactory.build();if(lt.open(xe.method,xe.urlWithParams),xe.withCredentials&&(lt.withCredentials=!0),xe.headers.forEach((Ii,jt)=>lt.setRequestHeader(Ii,jt.join(","))),xe.headers.has("Accept")||lt.setRequestHeader("Accept","application/json, text/plain, */*"),!xe.headers.has("Content-Type")){const Ii=xe.detectContentTypeHeader();null!==Ii&<.setRequestHeader("Content-Type",Ii)}if(xe.responseType){const Ii=xe.responseType.toLowerCase();lt.responseType="json"!==Ii?Ii:"text"}const nt=xe.serializeBody();let ft=null;const it=()=>{if(null!==ft)return ft;const Ii=1223===lt.status?204:lt.status,jt=lt.statusText||"OK",ei=new D(lt.getAllResponseHeaders()),Pi=function ze($){return"responseURL"in $&&$.responseURL?$.responseURL:/^X-Request-URL:/m.test($.getAllResponseHeaders())?$.getResponseHeader("X-Request-URL"):null}(lt)||xe.url;return ft=new i({headers:ei,status:Ii,statusText:jt,url:Pi}),ft},rt=()=>{let{headers:Ii,status:jt,statusText:ei,url:Pi}=it(),ai=null;204!==jt&&(ai=void 0===lt.response?lt.responseText:lt.response),0===jt&&(jt=ai?200:0);let hi=jt>=200&&jt<300;if("json"===xe.responseType&&"string"==typeof ai){const Ze=ai;ai=ai.replace(Be,"");try{ai=""!==ai?JSON.parse(ai):null}catch(Ee){ai=Ze,hi&&(hi=!1,ai={error:Ee,text:ai})}}hi?(Ue.next(new a({body:ai,headers:Ii,status:jt,statusText:ei,url:Pi||void 0})),Ue.complete()):Ue.error(new p({error:ai,headers:Ii,status:jt,statusText:ei,url:Pi||void 0}))},Mt=Ii=>{const{url:jt}=it(),ei=new p({error:Ii,status:lt.status||0,statusText:lt.statusText||"Unknown Error",url:jt||void 0});Ue.error(ei)};let Zt=!1;const Ft=Ii=>{Zt||(Ue.next(it()),Zt=!0);let jt={type:ae.DownloadProgress,loaded:Ii.loaded};Ii.lengthComputable&&(jt.total=Ii.total),"text"===xe.responseType&&!!lt.responseText&&(jt.partialText=lt.responseText),Ue.next(jt)},Vt=Ii=>{let jt={type:ae.UploadProgress,loaded:Ii.loaded};Ii.lengthComputable&&(jt.total=Ii.total),Ue.next(jt)};return lt.addEventListener("load",rt),lt.addEventListener("error",Mt),lt.addEventListener("timeout",Mt),lt.addEventListener("abort",Mt),xe.reportProgress&&(lt.addEventListener("progress",Ft),null!==nt&<.upload&<.upload.addEventListener("progress",Vt)),lt.send(nt),Ue.next({type:ae.Sent}),()=>{lt.removeEventListener("error",Mt),lt.removeEventListener("abort",Mt),lt.removeEventListener("load",rt),lt.removeEventListener("timeout",Mt),xe.reportProgress&&(lt.removeEventListener("progress",Ft),null!==nt&<.upload&<.upload.removeEventListener("progress",Vt)),lt.readyState!==lt.DONE&<.abort()}})}}return $.\u0275fac=function(xe){return new(xe||$)(t.LFG(e.JF))},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})();const K=new t.OlP("XSRF_COOKIE_NAME"),Me=new t.OlP("XSRF_HEADER_NAME");class we{}let z=(()=>{class ${constructor(xe,Ue,lt){this.doc=xe,this.platform=Ue,this.cookieName=lt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const xe=this.doc.cookie||"";return xe!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,e.Mx)(xe,this.cookieName),this.lastCookieString=xe),this.lastToken}}return $.\u0275fac=function(xe){return new(xe||$)(t.LFG(e.K0),t.LFG(t.Lbi),t.LFG(K))},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})(),Ge=(()=>{class ${constructor(xe,Ue){this.tokenService=xe,this.headerName=Ue}intercept(xe,Ue){const lt=xe.url.toLowerCase();if("GET"===xe.method||"HEAD"===xe.method||lt.startsWith("http://")||lt.startsWith("https://"))return Ue.handle(xe);const nt=this.tokenService.getToken();return null!==nt&&!xe.headers.has(this.headerName)&&(xe=xe.clone({headers:xe.headers.set(this.headerName,nt)})),Ue.handle(xe)}}return $.\u0275fac=function(xe){return new(xe||$)(t.LFG(we),t.LFG(Me))},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})(),vt=(()=>{class ${constructor(xe,Ue){this.backend=xe,this.injector=Ue,this.chain=null}handle(xe){if(null===this.chain){const Ue=this.injector.get(I,[]);this.chain=Ue.reduceRight((lt,nt)=>new L(lt,nt),this.backend)}return this.chain.handle(xe)}}return $.\u0275fac=function(xe){return new(xe||$)(t.LFG(s),t.LFG(t.zs3))},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})(),he=(()=>{class ${static disable(){return{ngModule:$,providers:[{provide:Ge,useClass:x}]}}static withOptions(xe={}){return{ngModule:$,providers:[xe.cookieName?{provide:K,useValue:xe.cookieName}:[],xe.headerName?{provide:Me,useValue:xe.headerName}:[]]}}}return $.\u0275fac=function(xe){return new(xe||$)},$.\u0275mod=t.oAB({type:$}),$.\u0275inj=t.cJS({providers:[Ge,{provide:I,useExisting:Ge,multi:!0},{provide:we,useClass:z},{provide:K,useValue:"XSRF-TOKEN"},{provide:Me,useValue:"X-XSRF-TOKEN"}]}),$})(),Le=(()=>{class ${}return $.\u0275fac=function(xe){return new(xe||$)},$.\u0275mod=t.oAB({type:$}),$.\u0275inj=t.cJS({providers:[_,{provide:N,useClass:vt},Ie,{provide:s,useExisting:Ie}],imports:[[he.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),$})()},5e3:(Ve,Q,m)=>{"use strict";m.d(Q,{deG:()=>fc,tb:()=>Vm,AFp:()=>zm,ip1:()=>_p,CZH:()=>$u,hGG:()=>x5,z2F:()=>P4,sBO:()=>Qg,Sil:()=>yp,_Vd:()=>T4,EJc:()=>Ym,SBq:()=>S4,qLn:()=>Ec,vpe:()=>lc,tBr:()=>Ho,XFs:()=>he,OlP:()=>Yr,zs3:()=>Rs,ZZ4:()=>W3,aQg:()=>j3,soG:()=>G3,YKP:()=>qp,h0i:()=>Qu,PXZ:()=>Zg,R0b:()=>So,FiY:()=>zo,Lbi:()=>Zm,g9A:()=>Um,n_E:()=>B3,Qsj:()=>D8,FYo:()=>Gp,JOm:()=>os,q3G:()=>ua,PiD:()=>Bl,tp0:()=>qs,Rgc:()=>I4,dDg:()=>qm,GfV:()=>Yp,s_b:()=>z3,ifc:()=>ft,eFA:()=>Jm,Ez6:()=>Be,G48:()=>Kg,Gpc:()=>A,f3M:()=>cl,X6Q:()=>qg,_c5:()=>p5,VLi:()=>Hg,c2e:()=>Gm,zSh:()=>y2,wAp:()=>wn,vHH:()=>w,EiD:()=>Eh,mCW:()=>hl,qzn:()=>sr,JVY:()=>Wo,pB0:()=>w0,eBb:()=>xc,L6k:()=>fo,LAX:()=>jo,cg1:()=>l0,kL8:()=>Gu,yhl:()=>Na,dqk:()=>Ft,sIi:()=>zc,CqO:()=>xu,QGY:()=>H2,F4k:()=>bu,RDi:()=>ra,AaK:()=>N,z3N:()=>ya,qOj:()=>A2,TTD:()=>Jr,_Bn:()=>Up,xp6:()=>R1,uIk:()=>S2,Tol:()=>e0,Gre:()=>a0,ekj:()=>rc,Suo:()=>vm,Xpm:()=>De,lG2:()=>at,Yz7:()=>Ce,cJS:()=>ze,oAB:()=>ct,Yjl:()=>st,Y36:()=>Zc,_UZ:()=>R2,GkF:()=>vu,BQk:()=>B2,ynx:()=>F2,qZA:()=>J1,TgZ:()=>N2,EpF:()=>yu,n5z:()=>so,Ikx:()=>ih,LFG:()=>Pa,$8M:()=>t1,$Z:()=>_u,NdJ:()=>X1,CRH:()=>ym,kcU:()=>kn,O4$:()=>on,oxw:()=>U2,ALo:()=>om,lcZ:()=>lm,xi3:()=>cm,Dn7:()=>hm,Hsn:()=>Mu,F$t:()=>Cu,Q6J:()=>k2,s9C:()=>Vc,MGl:()=>yr,DdM:()=>Xp,VKq:()=>$p,WLB:()=>em,kEZ:()=>tm,iGM:()=>gm,MAs:()=>au,Jf7:()=>Hh,CHM:()=>zs,oJD:()=>T0,LSH:()=>S0,kYT:()=>Pe,Udp:()=>wl,WFA:()=>z2,d8E:()=>Zu,YNc:()=>ru,W1O:()=>Mm,_uU:()=>X2,Oqu:()=>Kr,hij:()=>Al,AsE:()=>$s,lnq:()=>Iu,HOy:()=>$2,Gf:()=>_m});var e=m(7579),t=m(727),y=m(8306),C=m(6451),o=m(3099);function M(c){for(let h in c)if(c[h]===M)return h;throw Error("Could not find renamed property on target object.")}function l(c,h){for(const g in h)h.hasOwnProperty(g)&&!c.hasOwnProperty(g)&&(c[g]=h[g])}function N(c){if("string"==typeof c)return c;if(Array.isArray(c))return"["+c.map(N).join(", ")+"]";if(null==c)return""+c;if(c.overriddenName)return`${c.overriddenName}`;if(c.name)return`${c.name}`;const h=c.toString();if(null==h)return""+h;const g=h.indexOf("\n");return-1===g?h:h.substring(0,g)}function s(c,h){return null==c||""===c?null===h?"":h:null==h||""===h?c:c+" "+h}const D=M({__forward_ref__:M});function A(c){return c.__forward_ref__=A,c.toString=function(){return N(this())},c}function O(c){return E(c)?c():c}function E(c){return"function"==typeof c&&c.hasOwnProperty(D)&&c.__forward_ref__===A}class w extends Error{constructor(h,g){super(function j(c,h){return`${c?`NG0${c}: `:""}${h}`}(h,g)),this.code=h}}function W(c){return"string"==typeof c?c:null==c?"":String(c)}function ie(c){return"function"==typeof c?c.name||c.toString():"object"==typeof c&&null!=c&&"function"==typeof c.type?c.type.name||c.type.toString():W(c)}function re(c,h){const g=h?` in ${h}`:"";throw new w("201",`No provider for ${ie(c)} found${g}`)}function v(c,h){null==c&&function G(c,h,g,S){throw new Error(`ASSERTION ERROR: ${c}`+(null==S?"":` [Expected=> ${g} ${S} ${h} <=Actual]`))}(h,c,null,"!=")}function Ce(c){return{token:c.token,providedIn:c.providedIn||null,factory:c.factory,value:void 0}}const Be=Ce;function ze(c){return{providers:c.providers||[],imports:c.imports||[]}}function Ie(c){return K(c,Ge)||K(c,Re)}function K(c,h){return c.hasOwnProperty(h)?c[h]:null}function z(c){return c&&(c.hasOwnProperty(vt)||c.hasOwnProperty(Ne))?c[vt]:null}const Ge=M({\u0275prov:M}),vt=M({\u0275inj:M}),Re=M({ngInjectableDef:M}),Ne=M({ngInjectorDef:M});var he=(()=>((he=he||{})[he.Default=0]="Default",he[he.Host=1]="Host",he[he.Self=2]="Self",he[he.SkipSelf=4]="SkipSelf",he[he.Optional=8]="Optional",he))();let Le;function q(c){const h=Le;return Le=c,h}function $(c,h,g){const S=Ie(c);return S&&"root"==S.providedIn?void 0===S.value?S.value=S.factory():S.value:g&he.Optional?null:void 0!==h?h:void re(N(c),"Injector")}function xe(c){return{toString:c}.toString()}var Ue=(()=>((Ue=Ue||{})[Ue.OnPush=0]="OnPush",Ue[Ue.Default=1]="Default",Ue))(),ft=(()=>{return(c=ft||(ft={}))[c.Emulated=0]="Emulated",c[c.None=2]="None",c[c.ShadowDom=3]="ShadowDom",ft;var c})();const it="undefined"!=typeof globalThis&&globalThis,rt="undefined"!=typeof window&&window,Mt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ft=it||"undefined"!=typeof global&&global||rt||Mt,jt={},ei=[],Pi=M({\u0275cmp:M}),ai=M({\u0275dir:M}),hi=M({\u0275pipe:M}),Ze=M({\u0275mod:M}),Ee=M({\u0275fac:M}),Y=M({__NG_ELEMENT_ID__:M});let me=0;function De(c){return xe(()=>{const g={},S={type:c.type,providersResolver:null,decls:c.decls,vars:c.vars,factory:null,template:c.template||null,consts:c.consts||null,ngContentSelectors:c.ngContentSelectors,hostBindings:c.hostBindings||null,hostVars:c.hostVars||0,hostAttrs:c.hostAttrs||null,contentQueries:c.contentQueries||null,declaredInputs:g,inputs:null,outputs:null,exportAs:c.exportAs||null,onPush:c.changeDetection===Ue.OnPush,directiveDefs:null,pipeDefs:null,selectors:c.selectors||ei,viewQuery:c.viewQuery||null,features:c.features||null,data:c.data||{},encapsulation:c.encapsulation||ft.Emulated,id:"c",styles:c.styles||ei,_:null,setInput:null,schemas:c.schemas||null,tView:null},R=c.directives,V=c.features,pe=c.pipes;return S.id+=me++,S.inputs=Fe(c.inputs,g),S.outputs=Fe(c.outputs),V&&V.forEach(Oe=>Oe(S)),S.directiveDefs=R?()=>("function"==typeof R?R():R).map($t):null,S.pipeDefs=pe?()=>("function"==typeof pe?pe():pe).map(Nt):null,S})}function $t(c){return At(c)||function li(c){return c[ai]||null}(c)}function Nt(c){return function Bt(c){return c[hi]||null}(c)}const Jt={};function ct(c){return xe(()=>{const h={type:c.type,bootstrap:c.bootstrap||ei,declarations:c.declarations||ei,imports:c.imports||ei,exports:c.exports||ei,transitiveCompileScopes:null,schemas:c.schemas||null,id:c.id||null};return null!=c.id&&(Jt[c.id]=c.type),h})}function Pe(c,h){return xe(()=>{const g=Rt(c,!0);g.declarations=h.declarations||ei,g.imports=h.imports||ei,g.exports=h.exports||ei})}function Fe(c,h){if(null==c)return jt;const g={};for(const S in c)if(c.hasOwnProperty(S)){let R=c[S],V=R;Array.isArray(R)&&(V=R[1],R=R[0]),g[R]=S,h&&(h[R]=V)}return g}const at=De;function st(c){return{type:c.type,name:c.name,factory:null,pure:!1!==c.pure,onDestroy:c.type.prototype.ngOnDestroy||null}}function At(c){return c[Pi]||null}function Rt(c,h){const g=c[Ze]||null;if(!g&&!0===h)throw new Error(`Type ${N(c)} does not have '\u0275mod' property.`);return g}function _n(c){return Array.isArray(c)&&"object"==typeof c[1]}function Pn(c){return Array.isArray(c)&&!0===c[1]}function dr(c){return 0!=(8&c.flags)}function wi(c){return 2==(2&c.flags)}function Fi(c){return 1==(1&c.flags)}function dn(c){return null!==c.template}function Lr(c){return 0!=(512&c[2])}function Pr(c,h){return c.hasOwnProperty(Ee)?c[Ee]:null}class la{constructor(h,g,S){this.previousValue=h,this.currentValue=g,this.firstChange=S}isFirstChange(){return this.firstChange}}function Jr(){return ga}function ga(c){return c.type.prototype.ngOnChanges&&(c.setInput=wa),$n}function $n(){const c=ca(this),h=null==c?void 0:c.current;if(h){const g=c.previous;if(g===jt)c.previous=h;else for(let S in h)g[S]=h[S];c.current=null,this.ngOnChanges(h)}}function wa(c,h,g,S){const R=ca(c)||function Aa(c,h){return c[Nr]=h}(c,{previous:jt,current:null}),V=R.current||(R.current={}),pe=R.previous,Oe=this.declaredInputs[g],We=pe[Oe];V[Oe]=new la(We&&We.currentValue,h,pe===jt),c[S]=h}Jr.ngInherit=!0;const Nr="__ngSimpleChanges__";function ca(c){return c[Nr]||null}const Sr="http://www.w3.org/2000/svg";let Oa;function ra(c){Oa=c}function Gr(){return void 0!==Oa?Oa:"undefined"!=typeof document?document:void 0}function Zn(c){return!!c.listen}const ns={createRenderer:(c,h)=>Gr()};function Xe(c){for(;Array.isArray(c);)c=c[0];return c}function ne(c,h){return Xe(h[c])}function Qe(c,h){return Xe(h[c.index])}function mi(c,h){return c.data[h]}function Ct(c,h){return c[h]}function ti(c,h){const g=h[c];return _n(g)?g:g[0]}function bt(c){return 4==(4&c[2])}function Yt(c){return 128==(128&c[2])}function Bi(c,h){return null==h?null:c[h]}function yn(c){c[18]=0}function An(c,h){c[5]+=h;let g=c,S=c[3];for(;null!==S&&(1===h&&1===g[5]||-1===h&&0===g[5]);)S[5]+=h,g=S,S=S[3]}const Wi={lFrame:gn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Mr(){return Wi.bindingsEnabled}function ki(){return Wi.lFrame.lView}function Nn(){return Wi.lFrame.tView}function zs(c){return Wi.lFrame.contextLView=c,c[8]}function fr(){let c=Us();for(;null!==c&&64===c.type;)c=c.parent;return c}function Us(){return Wi.lFrame.currentTNode}function xt(c,h){const g=Wi.lFrame;g.currentTNode=c,g.isParent=h}function te(){return Wi.lFrame.isParent}function ue(){Wi.lFrame.isParent=!1}function kt(){return Wi.isInCheckNoChangesMode}function Qt(c){Wi.isInCheckNoChangesMode=c}function Xt(){const c=Wi.lFrame;let h=c.bindingRootIndex;return-1===h&&(h=c.bindingRootIndex=c.tView.bindingStartIndex),h}function pi(){return Wi.lFrame.bindingIndex}function Zi(){return Wi.lFrame.bindingIndex++}function tn(c){const h=Wi.lFrame,g=h.bindingIndex;return h.bindingIndex=h.bindingIndex+c,g}function tt(c,h){const g=Wi.lFrame;g.bindingIndex=g.bindingRootIndex=c,It(h)}function It(c){Wi.lFrame.currentDirectiveIndex=c}function zt(c){const h=Wi.lFrame.currentDirectiveIndex;return-1===h?null:c[h]}function ri(){return Wi.lFrame.currentQueryIndex}function vi(c){Wi.lFrame.currentQueryIndex=c}function Mi(c){const h=c[1];return 2===h.type?h.declTNode:1===h.type?c[6]:null}function Ai(c,h,g){if(g&he.SkipSelf){let R=h,V=c;for(;!(R=R.parent,null!==R||g&he.Host||(R=Mi(V),null===R||(V=V[15],10&R.type))););if(null===R)return!1;h=R,c=V}const S=Wi.lFrame=un();return S.currentTNode=h,S.lView=c,!0}function Ki(c){const h=un(),g=c[1];Wi.lFrame=h,h.currentTNode=g.firstChild,h.lView=c,h.tView=g,h.contextLView=c,h.bindingIndex=g.bindingStartIndex,h.inI18n=!1}function un(){const c=Wi.lFrame,h=null===c?null:c.child;return null===h?gn(c):h}function gn(c){const h={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:c,child:null,inI18n:!1};return null!==c&&(c.child=h),h}function En(){const c=Wi.lFrame;return Wi.lFrame=c.parent,c.currentTNode=null,c.lView=null,c}const zn=En;function Rr(){const c=En();c.isParent=!0,c.tView=null,c.selectedIndex=-1,c.contextLView=null,c.elementDepthCount=0,c.currentDirectiveIndex=-1,c.currentNamespace=null,c.bindingRootIndex=-1,c.bindingIndex=-1,c.currentQueryIndex=0}function Vn(){return Wi.lFrame.selectedIndex}function mr(c){Wi.lFrame.selectedIndex=c}function Hi(){const c=Wi.lFrame;return mi(c.tView,c.selectedIndex)}function on(){Wi.lFrame.currentNamespace=Sr}function kn(){!function jn(){Wi.lFrame.currentNamespace=null}()}function $r(c,h){for(let g=h.directiveStart,S=h.directiveEnd;g=S)break}else h[We]<0&&(c[18]+=65536),(Oe>11>16&&(3&c[2])===h){c[2]+=2048;try{V.call(Oe)}finally{}}}else try{V.call(Oe)}finally{}}class us{constructor(h,g,S){this.factory=h,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=S}}function Lo(c,h,g){const S=Zn(c);let R=0;for(;Rh){pe=V-1;break}}}for(;V>16}(c),S=h;for(;g>0;)S=S[15],g--;return S}let rl=!0;function al(c){const h=rl;return rl=c,h}let $e=0;function Ot(c,h){const g=ii(c,h);if(-1!==g)return g;const S=h[1];S.firstCreatePass&&(c.injectorIndex=h.length,qt(S.data,c),qt(h,null),qt(S.blueprint,null));const R=Ei(c,h),V=c.injectorIndex;if(Io(R)){const pe=ro(R),Oe=Gs(R,h),We=Oe[1].data;for(let ut=0;ut<8;ut++)h[V+ut]=Oe[pe+ut]|We[pe+ut]}return h[V+8]=R,V}function qt(c,h){c.push(0,0,0,0,0,0,0,0,h)}function ii(c,h){return-1===c.injectorIndex||c.parent&&c.parent.injectorIndex===c.injectorIndex||null===h[c.injectorIndex+8]?-1:c.injectorIndex}function Ei(c,h){if(c.parent&&-1!==c.parent.injectorIndex)return c.parent.injectorIndex;let g=0,S=null,R=h;for(;null!==R;){const V=R[1],pe=V.type;if(S=2===pe?V.declTNode:1===pe?R[6]:null,null===S)return-1;if(g++,R=R[15],-1!==S.injectorIndex)return S.injectorIndex|g<<16}return-1}function an(c,h,g){!function dt(c,h,g){let S;"string"==typeof g?S=g.charCodeAt(0)||0:g.hasOwnProperty(Y)&&(S=g[Y]),null==S&&(S=g[Y]=$e++);const R=255&S;h.data[c+(R>>5)]|=1<=0?255&h:ea:h}(g);if("function"==typeof V){if(!Ai(h,c,S))return S&he.Host?xn(R,g,S):er(h,g,S,R);try{const pe=V(S);if(null!=pe||S&he.Optional)return pe;re(g)}finally{zn()}}else if("number"==typeof V){let pe=null,Oe=ii(c,h),We=-1,ut=S&he.Host?h[16][6]:null;for((-1===Oe||S&he.SkipSelf)&&(We=-1===Oe?Ei(c,h):h[Oe+8],-1!==We&&Ol(S,!1)?(pe=h[1],Oe=ro(We),h=Gs(We,h)):Oe=-1);-1!==Oe;){const Tt=h[1];if(Ea(V,Oe,Tt.data)){const Gt=ys(Oe,h,g,pe,S,ut);if(Gt!==ao)return Gt}We=h[Oe+8],-1!==We&&Ol(S,h[1].data[Oe+8]===ut)&&Ea(V,Oe,h)?(pe=Tt,Oe=ro(We),h=Gs(We,h)):Oe=-1}}}return er(h,g,S,R)}const ao={};function ea(){return new yo(fr(),ki())}function ys(c,h,g,S,R,V){const pe=h[1],Oe=pe.data[c+8],Tt=fs(Oe,pe,g,null==S?wi(Oe)&&rl:S!=pe&&0!=(3&Oe.type),R&he.Host&&V===Oe);return null!==Tt?Ps(h,pe,Tt,Oe):ao}function fs(c,h,g,S,R){const V=c.providerIndexes,pe=h.data,Oe=1048575&V,We=c.directiveStart,Tt=V>>20,oi=R?Oe+Tt:c.directiveEnd;for(let gi=S?Oe:Oe+Tt;gi=We&&Oi.type===g)return gi}if(R){const gi=pe[We];if(gi&&dn(gi)&&gi.type===g)return We}return null}function Ps(c,h,g,S){let R=c[g];const V=h.data;if(function Jc(c){return c instanceof us}(R)){const pe=R;pe.resolving&&function ee(c,h){const g=h?`. Dependency path: ${h.join(" > ")} > ${c}`:"";throw new w("200",`Circular dependency in DI detected for ${c}${g}`)}(ie(V[g]));const Oe=al(pe.canSeeViewProviders);pe.resolving=!0;const We=pe.injectImpl?q(pe.injectImpl):null;Ai(c,S,he.Default);try{R=c[g]=pe.factory(void 0,V,c,S),h.firstCreatePass&&g>=S.directiveStart&&function Xr(c,h,g){const{ngOnChanges:S,ngOnInit:R,ngDoCheck:V}=h.type.prototype;if(S){const pe=ga(h);(g.preOrderHooks||(g.preOrderHooks=[])).push(c,pe),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(c,pe)}R&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-c,R),V&&((g.preOrderHooks||(g.preOrderHooks=[])).push(c,V),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(c,V))}(g,V[g],h)}finally{null!==We&&q(We),al(Oe),pe.resolving=!1,zn()}}return R}function Ea(c,h,g){return!!(g[h+(c>>5)]&1<{const h=c.prototype.constructor,g=h[Ee]||e1(h),S=Object.prototype;let R=Object.getPrototypeOf(c.prototype).constructor;for(;R&&R!==S;){const V=R[Ee]||e1(R);if(V&&V!==g)return V;R=Object.getPrototypeOf(R)}return V=>new V})}function e1(c){return E(c)?()=>{const h=e1(O(c));return h&&h()}:Pr(c)}function t1(c){return function Wn(c,h){if("class"===h)return c.classes;if("style"===h)return c.styles;const g=c.attrs;if(g){const S=g.length;let R=0;for(;R{const S=function uc(c){return function(...g){if(c){const S=c(...g);for(const R in S)this[R]=S[R]}}}(h);function R(...V){if(this instanceof R)return S.apply(this,V),this;const pe=new R(...V);return Oe.annotation=pe,Oe;function Oe(We,ut,Tt){const Gt=We.hasOwnProperty(Po)?We[Po]:Object.defineProperty(We,Po,{value:[]})[Po];for(;Gt.length<=Tt;)Gt.push(null);return(Gt[Tt]=Gt[Tt]||[]).push(pe),We}}return g&&(R.prototype=Object.create(g.prototype)),R.prototype.ngMetadataName=c,R.annotationCls=R,R})}class Yr{constructor(h,g){this._desc=h,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof g?this.__NG_ELEMENT_ID__=g:void 0!==g&&(this.\u0275prov=Ce({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}toString(){return`InjectionToken ${this._desc}`}}const fc=new Yr("AnalyzeForEntryComponents");function ps(c,h){void 0===h&&(h=c);for(let g=0;gArray.isArray(g)?xs(g,h):h(g))}function s1(c,h,g){h>=c.length?c.push(g):c.splice(h,0,g)}function Il(c,h){return h>=c.length-1?c.pop():c.splice(h,1)[0]}function Ws(c,h){const g=[];for(let S=0;S=0?c[1|S]=g:(S=~S,function m0(c,h,g,S){let R=c.length;if(R==h)c.push(g,S);else if(1===R)c.push(S,c[0]),c[0]=g;else{for(R--,c.push(c[R-1],c[R]);R>h;)c[R]=c[R-2],R--;c[h]=g,c[h+1]=S}}(c,S,h,g)),S}function Pl(c,h){const g=as(c,h);if(g>=0)return c[1|g]}function as(c,h){return function Nl(c,h,g){let S=0,R=c.length>>g;for(;R!==S;){const V=S+(R-S>>1),pe=c[V<h?R=V:S=V+1}return~(R<({token:c})),-1),zo=Bo(bo("Optional"),8),Bl=Bo(bo("Self"),2),qs=Bo(bo("SkipSelf"),4);let Yo,Hl;function ho(c){var h;return(null===(h=function g1(){if(void 0===Yo&&(Yo=null,Ft.trustedTypes))try{Yo=Ft.trustedTypes.createPolicy("angular",{createHTML:c=>c,createScript:c=>c,createScriptURL:c=>c})}catch(c){}return Yo}())||void 0===h?void 0:h.createHTML(c))||c}function He(c){var h;return(null===(h=function X(){if(void 0===Hl&&(Hl=null,Ft.trustedTypes))try{Hl=Ft.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:c=>c,createScript:c=>c,createScriptURL:c=>c})}catch(c){}return Hl}())||void 0===h?void 0:h.createHTML(c))||c}class pt{constructor(h){this.changingThisBreaksApplicationSecurity=h}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class fi extends pt{getTypeName(){return"HTML"}}class In extends pt{getTypeName(){return"Style"}}class tr extends pt{getTypeName(){return"Script"}}class Fn extends pt{getTypeName(){return"URL"}}class Br extends pt{getTypeName(){return"ResourceURL"}}function ya(c){return c instanceof pt?c.changingThisBreaksApplicationSecurity:c}function sr(c,h){const g=Na(c);if(null!=g&&g!==h){if("ResourceURL"===g&&"URL"===h)return!0;throw new Error(`Required a safe ${h}, got a ${g} (see https://g.co/ng/security#xss)`)}return g===h}function Na(c){return c instanceof pt&&c.getTypeName()||null}function Wo(c){return new fi(c)}function fo(c){return new In(c)}function xc(c){return new tr(c)}function jo(c){return new Fn(c)}function w0(c){return new Br(c)}class N4{constructor(h){this.inertDocumentHelper=h}getInertBodyElement(h){h=""+h;try{const g=(new window.DOMParser).parseFromString(ho(h),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(h):(g.removeChild(g.firstChild),g)}catch(g){return null}}}class R4{constructor(h){if(this.defaultDoc=h,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const g=this.inertDocument.createElement("html");this.inertDocument.appendChild(g);const S=this.inertDocument.createElement("body");g.appendChild(S)}}getInertBodyElement(h){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=ho(h),g;const S=this.inertDocument.createElement("body");return S.innerHTML=ho(h),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(S),S}stripCustomNsAttrs(h){const g=h.attributes;for(let R=g.length-1;0hl(h.trim())).join(", ")),this.buf.push(" ",pe,'="',Ah(We),'"')}var c;return this.buf.push(">"),!0}endElement(h){const g=h.nodeName.toLowerCase();ul.hasOwnProperty(g)&&!tf.hasOwnProperty(g)&&(this.buf.push(""))}chars(h){this.buf.push(Ah(h))}checkClobberedElement(h,g){if(g&&(h.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${h.outerHTML}`);return g}}const Cc=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Mc=/([^\#-~ |!])/g;function Ah(c){return c.replace(/&/g,"&").replace(Cc,function(h){return"&#"+(1024*(h.charCodeAt(0)-55296)+(h.charCodeAt(1)-56320)+65536)+";"}).replace(Mc,function(h){return"&#"+h.charCodeAt(0)+";"}).replace(//g,">")}let y1;function Eh(c,h){let g=null;try{y1=y1||function ef(c){const h=new R4(c);return function F4(){try{return!!(new window.DOMParser).parseFromString(ho(""),"text/html")}catch(c){return!1}}()?new N4(h):h}(c);let S=h?String(h):"";g=y1.getInertBodyElement(S);let R=5,V=S;do{if(0===R)throw new Error("Failed to sanitize html because the input is unstable");R--,S=V,V=g.innerHTML,g=y1.getInertBodyElement(S)}while(S!==V);return ho((new rf).sanitizeChildren(E0(g)||g))}finally{if(g){const S=E0(g)||g;for(;S.firstChild;)S.removeChild(S.firstChild)}}}function E0(c){return"content"in c&&function af(c){return c.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===c.nodeName}(c)?c.content:null}var ua=(()=>((ua=ua||{})[ua.NONE=0]="NONE",ua[ua.HTML=1]="HTML",ua[ua.STYLE=2]="STYLE",ua[ua.SCRIPT=3]="SCRIPT",ua[ua.URL=4]="URL",ua[ua.RESOURCE_URL=5]="RESOURCE_URL",ua))();function T0(c){const h=wc();return h?He(h.sanitize(ua.HTML,c)||""):sr(c,"HTML")?He(ya(c)):Eh(Gr(),W(c))}function S0(c){const h=wc();return h?h.sanitize(ua.URL,c)||"":sr(c,"URL")?ya(c):hl(W(c))}function wc(){const c=ki();return c&&c[12]}const Lh="__ngContext__";function ss(c,h){c[Lh]=h}function b1(c){const h=function Ac(c){return c[Lh]||null}(c);return h?Array.isArray(h)?h:h.lView:null}function k0(c){return c.ngOriginalError}function yf(c,...h){c.error(...h)}class Ec{constructor(){this._console=console}handleError(h){const g=this._findOriginalError(h),S=function Ph(c){return c&&c.ngErrorLogger||yf}(h);S(this._console,"ERROR",h),g&&S(this._console,"ORIGINAL ERROR",g)}_findOriginalError(h){let g=h&&k0(h);for(;g&&k0(g);)g=k0(g);return g||null}}const Bh=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ft))();function Hh(c){return c.ownerDocument.defaultView}function po(c){return c instanceof Function?c():c}var os=(()=>((os=os||{})[os.Important=1]="Important",os[os.DashCase=2]="DashCase",os))();function C1(c,h){return undefined(c,h)}function Tc(c){const h=c[3];return Pn(h)?h[3]:h}function M1(c){return If(c[13])}function R0(c){return If(c[4])}function If(c){for(;null!==c&&!Pn(c);)c=c[4];return c}function fl(c,h,g,S,R){if(null!=S){let V,pe=!1;Pn(S)?V=S:_n(S)&&(pe=!0,S=S[0]);const Oe=Xe(S);0===c&&null!==g?null==R?z0(h,g,Oe):Ms(h,g,Oe,R||null,!0):1===c&&null!==g?Ms(h,g,Oe,R||null,!0):2===c?function G0(c,h,g){const S=T1(c,h);S&&function E1(c,h,g,S){Zn(c)?c.removeChild(h,g,S):h.removeChild(g)}(c,S,h,g)}(h,Oe,pe):3===c&&h.destroyNode(Oe),null!=V&&function Y0(c,h,g,S,R){const V=g[7];V!==Xe(g)&&fl(h,c,S,V,R);for(let Oe=10;Oe0&&(c[g-1][4]=S[4]);const V=Il(c,10+h);!function Zl(c,h){Vl(c,h,h[11],2,null,null),h[0]=null,h[6]=null}(S[1],S);const pe=V[19];null!==pe&&pe.detachView(V[1]),S[3]=null,S[4]=null,S[2]&=-129}return S}function pl(c,h){if(!(256&h[2])){const g=h[11];Zn(g)&&g.destroyNode&&Vl(c,h,g,3,null,null),function Nf(c){let h=c[13];if(!h)return Yh(c[1],c);for(;h;){let g=null;if(_n(h))g=h[13];else{const S=h[10];S&&(g=S)}if(!g){for(;h&&!h[4]&&h!==c;)_n(h)&&Yh(h[1],h),h=h[3];null===h&&(h=c),_n(h)&&Yh(h[1],h),g=h&&h[4]}h=g}}(h)}}function Yh(c,h){if(!(256&h[2])){h[2]&=-129,h[2]|=256,function Bf(c,h){let g;if(null!=c&&null!=(g=c.destroyHooks))for(let S=0;S=0?S[R=ut]():S[R=-ut].unsubscribe(),V+=2}else{const pe=S[R=g[V+1]];g[V].call(pe)}if(null!==S){for(let V=R+1;VV?"":R[Gt+1].toLowerCase();const gi=8&S?oi:null;if(gi&&-1!==Jh(gi,ut,0)||2&S&&ut!==oi){if(Er(S))return!1;pe=!0}}}}else{if(!pe&&!Er(S)&&!Er(We))return!1;if(pe&&Er(We))continue;pe=!1,S=We|1&S}}return Er(S)||pe}function Er(c){return 0==(1&c)}function ed(c,h,g,S){if(null===h)return-1;let R=0;if(S||!g){let V=!1;for(;R-1)for(g++;g0?'="'+Oe+'"':"")+"]"}else 8&S?R+="."+pe:4&S&&(R+=" "+pe);else""!==R&&!Er(pe)&&(h+=N1(V,R),R=""),S=pe,V=V||!Er(S);g++}return""!==R&&(h+=N1(V,R)),h}const Sn={};function R1(c){F1(Nn(),ki(),Vn()+c,kt())}function F1(c,h,g,S){if(!S)if(3==(3&h[2])){const V=c.preOrderCheckHooks;null!==V&&Yn(h,V,g)}else{const V=c.preOrderHooks;null!==V&&io(h,V,0,g)}mr(g)}function B1(c,h){return c<<17|h<<2}function ws(c){return c>>17&32767}function rd(c){return 2|c}function Ks(c){return(131068&c)>>2}function Jn(c,h){return-131069&c|h<<2}function H1(c){return 1|c}function hd(c,h){const g=c.contentQueries;if(null!==g)for(let S=0;S20&&F1(c,h,20,kt()),g(S,R)}finally{mr(V)}}function ud(c,h,g){if(dr(h)){const R=h.directiveEnd;for(let V=h.directiveStart;V0;){const g=c[--h];if("number"==typeof g&&g<0)return g}return 0})(Oe)!=We&&Oe.push(We),Oe.push(S,R,pe)}}function xd(c,h){null!==c.hostBindings&&c.hostBindings(1,h)}function Cd(c,h){h.flags|=2,(c.components||(c.components=[])).push(h.index)}function a6(c,h,g){if(g){if(h.exportAs)for(let S=0;S0&&f2(g)}}function f2(c){for(let S=M1(c);null!==S;S=R0(S))for(let R=10;R0&&f2(V)}const g=c[1].components;if(null!==g)for(let S=0;S0&&f2(R)}}function h6(c,h){const g=ti(h,c),S=g[1];(function d6(c,h){for(let g=h.length;gPromise.resolve(null))();function _2(c){return c[7]||(c[7]=[])}function Dd(c){return c.cleanup||(c.cleanup=[])}function Ld(c,h,g){return(null===c||dn(c))&&(g=function ge(c){for(;Array.isArray(c);){if("object"==typeof c[1])return c;c=c[0]}return null}(g[h.index])),g[11]}function Od(c,h){const g=c[9],S=g?g.get(Ec,null):null;S&&S.handleError(h)}function Id(c,h,g,S,R){for(let V=0;Vthis.processProvider(Oe,h,g)),xs([h],Oe=>this.processInjectorType(Oe,[],V)),this.records.set(v2,jl(void 0,this));const pe=this.records.get(y2);this.scope=null!=pe?pe.value:null,this.source=R||("object"==typeof h?null:N(h))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(h=>h.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(h,g=za,S=he.Default){this.assertNotDestroyed();const R=ll(this),V=q(void 0);try{if(!(S&he.SkipSelf)){let Oe=this.records.get(h);if(void 0===Oe){const We=function E6(c){return"function"==typeof c||"object"==typeof c&&c instanceof Yr}(h)&&Ie(h);Oe=We&&this.injectableDefInScope(We)?jl(C2(h),Hc):null,this.records.set(h,Oe)}if(null!=Oe)return this.hydrate(h,Oe)}return(S&he.Self?Pd():this.parent).get(h,g=S&he.Optional&&g===za?null:g)}catch(pe){if("NullInjectorError"===pe.name){if((pe[Ns]=pe[Ns]||[]).unshift(N(h)),R)throw pe;return function ph(c,h,g,S){const R=c[Ns];throw h[Fl]&&R.unshift(h[Fl]),c.message=function f1(c,h,g,S=null){c=c&&"\n"===c.charAt(0)&&"\u0275"==c.charAt(1)?c.substr(2):c;let R=N(h);if(Array.isArray(h))R=h.map(N).join(" -> ");else if("object"==typeof h){let V=[];for(let pe in h)if(h.hasOwnProperty(pe)){let Oe=h[pe];V.push(pe+":"+("string"==typeof Oe?JSON.stringify(Oe):N(Oe)))}R=`{${V.join(", ")}}`}return`${g}${S?"("+S+")":""}[${R}]: ${c.replace(h1,"\n ")}`}("\n"+c.message,R,g,S),c.ngTokenPath=R,c[Ns]=null,c}(pe,h,"R3InjectorError",this.source)}throw pe}finally{q(V),ll(R)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(h=>this.get(h))}toString(){const h=[];return this.records.forEach((S,R)=>h.push(N(R))),`R3Injector[${h.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(h,g,S){if(!(h=O(h)))return!1;let R=z(h);const V=null==R&&h.ngModule||void 0,pe=void 0===V?h:V,Oe=-1!==S.indexOf(pe);if(void 0!==V&&(R=z(V)),null==R)return!1;if(null!=R.imports&&!Oe){let Tt;S.push(pe);try{xs(R.imports,Gt=>{this.processInjectorType(Gt,g,S)&&(void 0===Tt&&(Tt=[]),Tt.push(Gt))})}finally{}if(void 0!==Tt)for(let Gt=0;Gtthis.processProvider(Oi,oi,gi||ei))}}this.injectorDefTypes.add(pe);const We=Pr(pe)||(()=>new pe);this.records.set(pe,jl(We,Hc));const ut=R.providers;if(null!=ut&&!Oe){const Tt=h;xs(ut,Gt=>this.processProvider(Gt,Tt,ut))}return void 0!==V&&void 0!==h.providers}processProvider(h,g,S){let R=Hr(h=O(h))?h:O(h&&h.provide);const V=function x6(c,h,g){return Fd(c)?jl(void 0,c.useValue):jl(Rd(c),Hc)}(h);if(Hr(h)||!0!==h.multi)this.records.get(R);else{let pe=this.records.get(R);pe||(pe=jl(void 0,Hc,!0),pe.factory=()=>d1(pe.multi),this.records.set(R,pe)),R=h,pe.multi.push(h)}this.records.set(R,V)}hydrate(h,g){return g.value===Hc&&(g.value=v6,g.value=g.factory()),"object"==typeof g.value&&g.value&&function A6(c){return null!==c&&"object"==typeof c&&"function"==typeof c.ngOnDestroy}(g.value)&&this.onDestroy.add(g.value),g.value}injectableDefInScope(h){if(!h.providedIn)return!1;const g=O(h.providedIn);return"string"==typeof g?"any"===g||g===this.scope:this.injectorDefTypes.has(g)}}function C2(c){const h=Ie(c),g=null!==h?h.factory:Pr(c);if(null!==g)return g;if(c instanceof Yr)throw new Error(`Token ${N(c)} is missing a \u0275prov definition.`);if(c instanceof Function)return function b6(c){const h=c.length;if(h>0){const S=Ws(h,"?");throw new Error(`Can't resolve all parameters for ${N(c)}: (${S.join(", ")}).`)}const g=function Me(c){const h=c&&(c[Ge]||c[Re]);if(h){const g=function we(c){if(c.hasOwnProperty("name"))return c.name;const h=(""+c).match(/^function\s*([^\s(]+)/);return null===h?"":h[1]}(c);return console.warn(`DEPRECATED: DI is instantiating a token "${g}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${g}" class.`),h}return null}(c);return null!==g?()=>g.factory(c):()=>new c}(c);throw new Error("unreachable")}function Rd(c,h,g){let S;if(Hr(c)){const R=O(c);return Pr(R)||C2(R)}if(Fd(c))S=()=>O(c.useValue);else if(function M6(c){return!(!c||!c.useFactory)}(c))S=()=>c.useFactory(...d1(c.deps||[]));else if(function C6(c){return!(!c||!c.useExisting)}(c))S=()=>Pa(O(c.useExisting));else{const R=O(c&&(c.useClass||c.provide));if(!function w6(c){return!!c.deps}(c))return Pr(R)||C2(R);S=()=>new R(...d1(c.deps))}return S}function jl(c,h,g=!1){return{factory:c,value:h,multi:g?[]:void 0}}function Fd(c){return null!==c&&"object"==typeof c&&yc in c}function Hr(c){return"function"==typeof c}let Rs=(()=>{class c{static create(g,S){var R;if(Array.isArray(g))return x2({name:""},S,g,"");{const V=null!==(R=g.name)&&void 0!==R?R:"";return x2({name:V},g.parent,g.providers,V)}}}return c.THROW_IF_NOT_FOUND=za,c.NULL=new kd,c.\u0275prov=Ce({token:c,providedIn:"any",factory:()=>Pa(v2)}),c.__NG_ELEMENT_ID__=-1,c})();function k6(c,h){$r(b1(c)[1],fr())}function A2(c){let h=function qd(c){return Object.getPrototypeOf(c.prototype).constructor}(c.type),g=!0;const S=[c];for(;h;){let R;if(dn(c))R=h.\u0275cmp||h.\u0275dir;else{if(h.\u0275cmp)throw new Error("Directives cannot inherit Components");R=h.\u0275dir}if(R){if(g){S.push(R);const pe=c;pe.inputs=E2(c.inputs),pe.declaredInputs=E2(c.declaredInputs),pe.outputs=E2(c.outputs);const Oe=R.hostBindings;Oe&&F6(c,Oe);const We=R.viewQuery,ut=R.contentQueries;if(We&&N6(c,We),ut&&R6(c,ut),l(c.inputs,R.inputs),l(c.declaredInputs,R.declaredInputs),l(c.outputs,R.outputs),dn(R)&&R.data.animation){const Tt=c.data;Tt.animation=(Tt.animation||[]).concat(R.data.animation)}}const V=R.features;if(V)for(let pe=0;pe=0;S--){const R=c[S];R.hostVars=h+=R.hostVars,R.hostAttrs=Oo(R.hostAttrs,g=Oo(g,R.hostAttrs))}}(S)}function E2(c){return c===jt?{}:c===ei?[]:c}function N6(c,h){const g=c.viewQuery;c.viewQuery=g?(S,R)=>{h(S,R),g(S,R)}:h}function R6(c,h){const g=c.contentQueries;c.contentQueries=g?(S,R,V)=>{h(S,R,V),g(S,R,V)}:h}function F6(c,h){const g=c.hostBindings;c.hostBindings=g?(S,R)=>{h(S,R),g(S,R)}:h}let q1=null;function ql(){if(!q1){const c=Ft.Symbol;if(c&&c.iterator)q1=c.iterator;else{const h=Object.getOwnPropertyNames(Map.prototype);for(let g=0;gOe(Xe(rr[S.index])):S.index;if(Zn(g)){let rr=null;if(!Oe&&We&&(rr=function f4(c,h,g,S){const R=c.cleanup;if(null!=R)for(let V=0;VWe?Oe[We]:null}"string"==typeof pe&&(V+=2)}return null}(c,h,R,S.index)),null!==rr)(rr.__ngLastListenerFn__||rr).__ngNextListenerFn__=V,rr.__ngLastListenerFn__=V,gi=!1;else{V=$1(S,h,Gt,V,!1);const Ur=g.listen(pn,R,V);oi.push(V,Ur),Tt&&Tt.push(R,Tn,Ri,Ri+1)}}else V=$1(S,h,Gt,V,!0),pn.addEventListener(R,V,pe),oi.push(V),Tt&&Tt.push(R,Tn,Ri,pe)}else V=$1(S,h,Gt,V,!1);const Oi=S.outputs;let Ji;if(gi&&null!==Oi&&(Ji=Oi[R])){const rn=Ji.length;if(rn)for(let pn=0;pn0;)h=h[15],c--;return h}(c,Wi.lFrame.contextLView))[8]}(c)}function Es(c,h){let g=null;const S=function k1(c){const h=c.attrs;if(null!=h){const g=h.indexOf(5);if(0==(1&g))return h[g+1]}return null}(c);for(let R=0;R=0}const ir={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Bs(c){return c.substring(ir.key,ir.keyEnd)}function V2(c,h){const g=ir.textEnd;return g===h?-1:(h=ir.keyEnd=function Ua(c,h,g){for(;h32;)h++;return h}(c,ir.key=h,g),Cl(c,h,g))}function Cl(c,h,g){for(;h=0;g=V2(h,g))Ka(c,Bs(h),!0)}function Ss(c,h,g,S){const R=ki(),V=Nn(),pe=tn(2);V.firstUpdatePass&&W2(V,c,pe,S),h!==Sn&&ls(R,pe,h)&&K2(V,V.data[Vn()],R,R[11],c,R[pe+1]=function Hs(c,h){return null==c||("string"==typeof h?c+=h:"object"==typeof c&&(c=N(ya(c)))),c}(h,g),S,pe)}function Ds(c,h,g,S){const R=Nn(),V=tn(2);R.firstUpdatePass&&W2(R,null,V,S);const pe=ki();if(g!==Sn&&ls(pe,V,g)){const Oe=R.data[Vn()];if(qr(Oe,S)&&!Y2(R,V)){let We=S?Oe.classesWithoutHost:Oe.stylesWithoutHost;null!==We&&(g=s(We,g||"")),P2(R,Oe,pe,g,S)}else!function Ou(c,h,g,S,R,V,pe,Oe){R===Sn&&(R=ei);let We=0,ut=0,Tt=0=c.expandoStartIndex}function W2(c,h,g,S){const R=c.data;if(null===R[g+1]){const V=R[Vn()],pe=Y2(c,g);qr(V,S)&&null===h&&!pe&&(h=!1),h=function Du(c,h,g,S){const R=zt(c);let V=S?h.residualClasses:h.residualStyles;if(null===R)0===(S?h.classBindings:h.styleBindings)&&(g=Eo(g=Yc(null,c,h,g,S),h.attrs,S),V=null);else{const pe=h.directiveStylingLast;if(-1===pe||c[pe]!==R)if(g=Yc(R,c,h,g,S),null===V){let We=function t0(c,h,g){const S=g?h.classBindings:h.styleBindings;if(0!==Ks(S))return c[ws(S)]}(c,h,S);void 0!==We&&Array.isArray(We)&&(We=Yc(null,c,h,We[1],S),We=Eo(We,h.attrs,S),function j2(c,h,g,S){c[ws(g?h.classBindings:h.styleBindings)]=S}(c,h,S,We))}else V=function Lu(c,h,g){let S;const R=h.directiveEnd;for(let V=1+h.directiveStylingLast;V0)&&(ut=!0)}else Tt=g;if(R)if(0!==We){const oi=ws(c[Oe+1]);c[S+1]=B1(oi,Oe),0!==oi&&(c[oi+1]=Jn(c[oi+1],S)),c[Oe+1]=function K0(c,h){return 131071&c|h<<17}(c[Oe+1],S)}else c[S+1]=B1(Oe,0),0!==Oe&&(c[Oe+1]=Jn(c[Oe+1],S)),Oe=S;else c[S+1]=B1(We,0),0===Oe?Oe=S:c[We+1]=Jn(c[We+1],S),We=S;ut&&(c[S+1]=rd(c[S+1])),Xa(c,Tt,S,!0),Xa(c,Tt,S,!1),function Eu(c,h,g,S,R){const V=R?c.residualClasses:c.residualStyles;null!=V&&"string"==typeof h&&as(V,h)>=0&&(g[S+1]=H1(g[S+1]))}(h,Tt,c,S,V),pe=B1(Oe,We),V?h.classBindings=pe:h.styleBindings=pe}(R,V,h,g,pe,S)}}function Yc(c,h,g,S,R){let V=null;const pe=g.directiveEnd;let Oe=g.directiveStylingLast;for(-1===Oe?Oe=g.directiveStart:Oe++;Oe0;){const We=c[R],ut=Array.isArray(We),Tt=ut?We[1]:We,Gt=null===Tt;let oi=g[R+1];oi===Sn&&(oi=Gt?ei:void 0);let gi=Gt?Pl(oi,S):Tt===S?oi:void 0;if(ut&&!J2(gi)&&(gi=Pl(We,S)),J2(gi)&&(Oe=gi,pe))return Oe;const Oi=c[R+1];R=pe?ws(Oi):Ks(Oi)}if(null!==h){let We=V?h.residualClasses:h.residualStyles;null!=We&&(Oe=Pl(We,S))}return Oe}function J2(c){return void 0!==c}function qr(c,h){return 0!=(c.flags&(h?16:32))}function X2(c,h=""){const g=ki(),S=Nn(),R=c+20,V=S.firstCreatePass?Wl(S,R,1,h,null):S.data[R],pe=g[R]=function F0(c,h){return Zn(c)?c.createText(h):c.createTextNode(h)}(g[11],h);Dc(S,g,pe,V),xt(V,!1)}function Kr(c){return Al("",c,""),Kr}function Al(c,h,g){const S=ki(),R=Ql(S,c,h,g);return R!==Sn&&Mo(S,Vn(),R),Al}function $s(c,h,g,S,R){const V=ki(),pe=function Jl(c,h,g,S,R,V){const Oe=bl(c,pi(),g,R);return tn(2),Oe?h+W(g)+S+W(R)+V:Sn}(V,c,h,g,S,R);return pe!==Sn&&Mo(V,Vn(),pe),$s}function Iu(c,h,g,S,R,V,pe){const Oe=ki(),We=function Xl(c,h,g,S,R,V,pe,Oe){const ut=K1(c,pi(),g,R,pe);return tn(3),ut?h+W(g)+S+W(R)+V+W(pe)+Oe:Sn}(Oe,c,h,g,S,R,V,pe);return We!==Sn&&Mo(Oe,Vn(),We),Iu}function $2(c,h,g,S,R,V,pe,Oe,We){const ut=ki(),Tt=$l(ut,c,h,g,S,R,V,pe,Oe,We);return Tt!==Sn&&Mo(ut,Vn(),Tt),$2}function a0(c,h,g){Ds(Ka,ts,Ql(ki(),c,h,g),!0)}function ih(c,h,g){const S=ki();return ls(S,Zi(),h)&&As(Nn(),Hi(),S,c,h,S[11],g,!0),ih}function Zu(c,h,g){const S=ki();if(ls(S,Zi(),h)){const V=Nn(),pe=Hi();As(V,pe,S,c,h,Ld(zt(V.data),pe,S),g,!0)}return Zu}const El=void 0;var D3=["en",[["a","p"],["AM","PM"],El],[["AM","PM"],El,El],[["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"]],El,[["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"]],El,[["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}",El,"{1} 'at' {0}",El],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Vu(c){const g=Math.floor(Math.abs(c)),S=c.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===S?1:5}];let sc={};function l0(c){const h=function L3(c){return c.toLowerCase().replace(/_/g,"-")}(c);let g=b4(h);if(g)return g;const S=h.split("-")[0];if(g=b4(S),g)return g;if("en"===S)return D3;throw new Error(`Missing locale data for the locale "${c}".`)}function Gu(c){return l0(c)[wn.PluralCase]}function b4(c){return c in sc||(sc[c]=Ft.ng&&Ft.ng.common&&Ft.ng.common.locales&&Ft.ng.common.locales[c]),sc[c]}var wn=(()=>((wn=wn||{})[wn.LocaleId=0]="LocaleId",wn[wn.DayPeriodsFormat=1]="DayPeriodsFormat",wn[wn.DayPeriodsStandalone=2]="DayPeriodsStandalone",wn[wn.DaysFormat=3]="DaysFormat",wn[wn.DaysStandalone=4]="DaysStandalone",wn[wn.MonthsFormat=5]="MonthsFormat",wn[wn.MonthsStandalone=6]="MonthsStandalone",wn[wn.Eras=7]="Eras",wn[wn.FirstDayOfWeek=8]="FirstDayOfWeek",wn[wn.WeekendRange=9]="WeekendRange",wn[wn.DateFormat=10]="DateFormat",wn[wn.TimeFormat=11]="TimeFormat",wn[wn.DateTimeFormat=12]="DateTimeFormat",wn[wn.NumberSymbols=13]="NumberSymbols",wn[wn.NumberFormats=14]="NumberFormats",wn[wn.CurrencyCode=15]="CurrencyCode",wn[wn.CurrencySymbol=16]="CurrencySymbol",wn[wn.CurrencyName=17]="CurrencyName",wn[wn.Currencies=18]="Currencies",wn[wn.Directionality=19]="Directionality",wn[wn.PluralCase=20]="PluralCase",wn[wn.ExtraData=21]="ExtraData",wn))();const c0="en-US";let rh=c0;function X3(c,h,g,S,R){if(c=O(c),Array.isArray(c))for(let V=0;V>20;if(Hr(c)||!c.multi){const gi=new us(We,R,Zc),Oi=ep(Oe,h,R?Tt:Tt+oi,Gt);-1===Oi?(an(Ot(ut,pe),V,Oe),$3(V,c,h.length),h.push(Oe),ut.directiveStart++,ut.directiveEnd++,R&&(ut.providerIndexes+=1048576),g.push(gi),pe.push(gi)):(g[Oi]=gi,pe[Oi]=gi)}else{const gi=ep(Oe,h,Tt+oi,Gt),Oi=ep(Oe,h,Tt,Tt+oi),Ji=gi>=0&&g[gi],rn=Oi>=0&&g[Oi];if(R&&!rn||!R&&!Ji){an(Ot(ut,pe),V,Oe);const pn=function M8(c,h,g,S,R){const V=new us(c,g,Zc);return V.multi=[],V.index=h,V.componentProviders=0,zp(V,R,S&&!g),V}(R?C8:x8,g.length,R,S,We);!R&&rn&&(g[Oi].providerFactory=pn),$3(V,c,h.length,0),h.push(Oe),ut.directiveStart++,ut.directiveEnd++,R&&(ut.providerIndexes+=1048576),g.push(pn),pe.push(pn)}else $3(V,c,gi>-1?gi:Oi,zp(g[R?Oi:gi],We,!R&&S));!R&&S&&rn&&g[Oi].componentProviders++}}}function $3(c,h,g,S){const R=Hr(h),V=function j1(c){return!!c.useClass}(h);if(R||V){const We=(V?O(h.useClass):h).prototype.ngOnDestroy;if(We){const ut=c.destroyHooks||(c.destroyHooks=[]);if(!R&&h.multi){const Tt=ut.indexOf(g);-1===Tt?ut.push(g,[S,We]):ut[Tt+1].push(S,We)}else ut.push(g,We)}}}function zp(c,h,g){return g&&c.componentProviders++,c.multi.push(h)-1}function ep(c,h,g,S){for(let R=g;R{g.providersResolver=(S,R)=>function b8(c,h,g){const S=Nn();if(S.firstCreatePass){const R=dn(c);X3(g,S.data,S.blueprint,R,!0),X3(h,S.data,S.blueprint,R,!1)}}(S,R?R(c):c,h)}}class Zp{}class E8{resolveComponentFactory(h){throw function A8(c){const h=Error(`No component factory found for ${N(c)}. Did you add it to @NgModule.entryComponents?`);return h.ngComponent=c,h}(h)}}let T4=(()=>{class c{}return c.NULL=new E8,c})();function T8(){return Ku(fr(),ki())}function Ku(c,h){return new S4(Qe(c,h))}let S4=(()=>{class c{constructor(g){this.nativeElement=g}}return c.__NG_ELEMENT_ID__=T8,c})();function S8(c){return c instanceof S4?c.nativeElement:c}class Gp{}let D8=(()=>{class c{}return c.__NG_ELEMENT_ID__=()=>function O8(){const c=ki(),g=ti(fr().index,c);return function L8(c){return c[11]}(_n(g)?g:c)}(),c})(),I8=(()=>{class c{}return c.\u0275prov=Ce({token:c,providedIn:"root",factory:()=>null}),c})();class Yp{constructor(h){this.full=h,this.major=h.split(".")[0],this.minor=h.split(".")[1],this.patch=h.split(".").slice(2).join(".")}}const k8=new Yp("13.0.3"),ip={};function F3(c,h,g,S,R=!1){for(;null!==g;){const V=h[g.index];if(null!==V&&S.push(Xe(V)),Pn(V))for(let Oe=10;Oe-1&&(A1(h,S),Il(g,S))}this._attachedToViewContainer=!1}pl(this._lView[1],this._lView)}onDestroy(h){gd(this._lView[1],this._lView,null,h)}markForCheck(){Y1(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){m2(this._lView[1],this._lView,this.context)}checkNoChanges(){!function f6(c,h,g){Qt(!0);try{m2(c,h,g)}finally{Qt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Pf(c,h){Vl(c,h,h[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(h){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=h}}class P8 extends D4{constructor(h){super(h),this._view=h}detectChanges(){Sd(this._view)}checkNoChanges(){!function p6(c){Qt(!0);try{Sd(c)}finally{Qt(!1)}}(this._view)}get context(){return null}}class Wp extends T4{constructor(h){super(),this.ngModule=h}resolveComponentFactory(h){const g=At(h);return new np(g,this.ngModule)}}function jp(c){const h=[];for(let g in c)c.hasOwnProperty(g)&&h.push({propName:c[g],templateName:g});return h}const R8=new Yr("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Bh});class np extends Zp{constructor(h,g){super(),this.componentDef=h,this.ngModule=g,this.componentType=h.type,this.selector=function id(c){return c.map(zf).join(",")}(h.selectors),this.ngContentSelectors=h.ngContentSelectors?h.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return jp(this.componentDef.inputs)}get outputs(){return jp(this.componentDef.outputs)}create(h,g,S,R){const V=(R=R||this.ngModule)?function F8(c,h){return{get:(g,S,R)=>{const V=c.get(g,ip,R);return V!==ip||S===ip?V:h.get(g,S,R)}}}(h,R.injector):h,pe=V.get(Gp,ns),Oe=V.get(I8,null),We=pe.createRenderer(null,this.componentDef),ut=this.componentDef.selectors[0][0]||"div",Tt=S?function md(c,h,g){if(Zn(c))return c.selectRootElement(h,g===ft.ShadowDom);let S="string"==typeof h?c.querySelector(h):h;return S.textContent="",S}(We,S,this.componentDef.encapsulation):w1(pe.createRenderer(null,this.componentDef),ut,function N8(c){const h=c.toLowerCase();return"svg"===h?Sr:"math"===h?"http://www.w3.org/1998/MathML/":null}(ut)),Gt=this.componentDef.onPush?576:528,oi=function jd(c,h){return{components:[],scheduler:c||Bh,clean:m6,playerHandler:h||null,flags:0}}(),gi=Fc(0,null,null,1,0,null,null,null,null,null),Oi=Pc(null,gi,oi,Gt,null,null,pe,We,Oe,V);let Ji,rn;Ki(Oi);try{const pn=function Yd(c,h,g,S,R,V){const pe=g[1];g[20]=c;const We=Wl(pe,20,2,"#host",null),ut=We.mergedAttrs=h.hostAttrs;null!==ut&&(W1(We,ut,!0),null!==c&&(Lo(R,c,ut),null!==We.classes&&W0(R,c,We.classes),null!==We.styles&&Qh(R,c,We.styles)));const Tt=S.createRenderer(c,h),Gt=Pc(g,fd(h),null,h.onPush?64:16,g[20],We,S,Tt,V||null,null);return pe.firstCreatePass&&(an(Ot(We,g),pe,h.type),Cd(pe,We),Md(We,g.length,1)),G1(g,Gt),g[20]=Gt}(Tt,this.componentDef,Oi,pe,We);if(Tt)if(S)Lo(We,Tt,["ng-version",k8.full]);else{const{attrs:Ri,classes:Tn}=function nd(c){const h=[],g=[];let S=1,R=2;for(;S0&&W0(We,Tt,Tn.join(" "))}if(rn=mi(gi,20),void 0!==g){const Ri=rn.projection=[];for(let Tn=0;TnWe(pe,h)),h.contentQueries){const We=fr();h.contentQueries(1,pe,We.directiveStart)}const Oe=fr();return!V.firstCreatePass||null===h.hostBindings&&null===h.hostAttrs||(mr(Oe.index),u2(g[1],Oe,0,Oe.directiveStart,Oe.directiveEnd,h),xd(h,pe)),pe}(pn,this.componentDef,Oi,oi,[k6]),Jo(gi,Oi,null)}finally{Rr()}return new H8(this.componentType,Ji,Ku(rn,Oi),Oi,rn)}}class H8 extends class w8{}{constructor(h,g,S,R,V){super(),this.location=S,this._rootLView=R,this._tNode=V,this.instance=g,this.hostView=this.changeDetectorRef=new P8(R),this.componentType=h}get injector(){return new yo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(h){this.hostView.onDestroy(h)}}class Qu{}class qp{}const Ju=new Map;class Jp extends Qu{constructor(h,g){super(),this._parent=g,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Wp(this);const S=Rt(h);this._bootstrapComponents=po(S.bootstrap),this._r3Injector=Nd(h,g,[{provide:Qu,useValue:this},{provide:T4,useValue:this.componentFactoryResolver}],N(h)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(h)}get(h,g=Rs.THROW_IF_NOT_FOUND,S=he.Default){return h===Rs||h===Qu||h===v2?this:this._r3Injector.get(h,g,S)}destroy(){const h=this._r3Injector;!h.destroyed&&h.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(h){this.destroyCbs.push(h)}}class rp extends qp{constructor(h){super(),this.moduleType=h,null!==Rt(h)&&function U8(c){const h=new Set;!function g(S){const R=Rt(S,!0),V=R.id;null!==V&&(function Kp(c,h,g){if(h&&h!==g)throw new Error(`Duplicate module registered for ${c} - ${N(h)} vs ${N(h.name)}`)}(V,Ju.get(V),S),Ju.set(V,S));const pe=po(R.imports);for(const Oe of pe)h.has(Oe)||(h.add(Oe),g(Oe))}(c)}(h)}create(h){return new Jp(this.moduleType,h)}}function Xp(c,h,g){const S=Xt()+c,R=ki();return R[S]===Sn?_o(R,S,g?h.call(g):h()):function Uc(c,h){return c[h]}(R,S)}function $p(c,h,g,S){return im(ki(),Xt(),c,h,g,S)}function em(c,h,g,S,R){return nm(ki(),Xt(),c,h,g,S,R)}function tm(c,h,g,S,R,V){return rm(ki(),Xt(),c,h,g,S,R,V)}function L4(c,h){const g=c[h];return g===Sn?void 0:g}function im(c,h,g,S,R,V){const pe=h+g;return ls(c,pe,R)?_o(c,pe+1,V?S.call(V,R):S(R)):L4(c,pe+1)}function nm(c,h,g,S,R,V,pe){const Oe=h+g;return bl(c,Oe,R,V)?_o(c,Oe+2,pe?S.call(pe,R,V):S(R,V)):L4(c,Oe+2)}function rm(c,h,g,S,R,V,pe,Oe){const We=h+g;return K1(c,We,R,V,pe)?_o(c,We+3,Oe?S.call(Oe,R,V,pe):S(R,V,pe)):L4(c,We+3)}function om(c,h){const g=Nn();let S;const R=c+20;g.firstCreatePass?(S=function q8(c,h){if(h)for(let g=h.length-1;g>=0;g--){const S=h[g];if(c===S.name)return S}}(h,g.pipeRegistry),g.data[R]=S,S.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(R,S.onDestroy)):S=g.data[R];const V=S.factory||(S.factory=Pr(S.type)),pe=q(Zc);try{const Oe=al(!1),We=V();return al(Oe),function Y6(c,h,g,S){g>=c.data.length&&(c.data[g]=null,c.blueprint[g]=null),h[g]=S}(g,ki(),R,We),We}finally{q(pe)}}function lm(c,h,g){const S=c+20,R=ki(),V=Ct(R,S);return O4(R,S)?im(R,Xt(),h,V.transform,g,V):V.transform(g)}function cm(c,h,g,S){const R=c+20,V=ki(),pe=Ct(V,R);return O4(V,R)?nm(V,Xt(),h,pe.transform,g,S,pe):pe.transform(g,S)}function hm(c,h,g,S,R){const V=c+20,pe=ki(),Oe=Ct(pe,V);return O4(pe,V)?rm(pe,Xt(),h,Oe.transform,g,S,R,Oe):Oe.transform(g,S,R)}function O4(c,h){return c[1].data[h].pure}function ap(c){return h=>{setTimeout(c,void 0,h)}}const lc=class J8 extends e.x{constructor(h=!1){super(),this.__isAsync=h}emit(h){super.next(h)}subscribe(h,g,S){var R,V,pe;let Oe=h,We=g||(()=>null),ut=S;if(h&&"object"==typeof h){const Gt=h;Oe=null===(R=Gt.next)||void 0===R?void 0:R.bind(Gt),We=null===(V=Gt.error)||void 0===V?void 0:V.bind(Gt),ut=null===(pe=Gt.complete)||void 0===pe?void 0:pe.bind(Gt)}this.__isAsync&&(We=ap(We),Oe&&(Oe=ap(Oe)),ut&&(ut=ap(ut)));const Tt=super.subscribe({next:Oe,error:We,complete:ut});return h instanceof t.w0&&h.add(Tt),Tt}};function X8(){return this._results[ql()]()}class B3{constructor(h=!1){this._emitDistinctChangesOnly=h,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const g=ql(),S=B3.prototype;S[g]||(S[g]=X8)}get changes(){return this._changes||(this._changes=new lc)}get(h){return this._results[h]}map(h){return this._results.map(h)}filter(h){return this._results.filter(h)}find(h){return this._results.find(h)}reduce(h,g){return this._results.reduce(h,g)}forEach(h){this._results.forEach(h)}some(h){return this._results.some(h)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(h,g){const S=this;S.dirty=!1;const R=ps(h);(this._changesDetected=!function Ys(c,h,g){if(c.length!==h.length)return!1;for(let S=0;S{class c{}return c.__NG_ELEMENT_ID__=tg,c})();const $8=I4,eg=class extends $8{constructor(h,g,S){super(),this._declarationLView=h,this._declarationTContainer=g,this.elementRef=S}createEmbeddedView(h){const g=this._declarationTContainer.tViews,S=Pc(this._declarationLView,g,h,16,null,g.declTNode,null,null,null,null);S[17]=this._declarationLView[this._declarationTContainer.index];const V=this._declarationLView[19];return null!==V&&(S[19]=V.createEmbeddedView(g)),Jo(g,S,h),new D4(S)}};function tg(){return H3(fr(),ki())}function H3(c,h){return 4&c.type?new eg(h,c,Ku(c,h)):null}let z3=(()=>{class c{}return c.__NG_ELEMENT_ID__=ig,c})();function ig(){return fm(fr(),ki())}const ng=z3,dm=class extends ng{constructor(h,g,S){super(),this._lContainer=h,this._hostTNode=g,this._hostLView=S}get element(){return Ku(this._hostTNode,this._hostLView)}get injector(){return new yo(this._hostTNode,this._hostLView)}get parentInjector(){const h=Ei(this._hostTNode,this._hostLView);if(Io(h)){const g=Gs(h,this._hostLView),S=ro(h);return new yo(g[1].data[S+8],g)}return new yo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(h){const g=um(this._lContainer);return null!==g&&g[h]||null}get length(){return this._lContainer.length-10}createEmbeddedView(h,g,S){const R=h.createEmbeddedView(g||{});return this.insert(R,S),R}createComponent(h,g,S,R,V){const pe=h&&!function oo(c){return"function"==typeof c}(h);let Oe;if(pe)Oe=g;else{const Gt=g||{};Oe=Gt.index,S=Gt.injector,R=Gt.projectableNodes,V=Gt.ngModuleRef}const We=pe?h:new np(At(h)),ut=S||this.parentInjector;if(!V&&null==We.ngModule&&ut){const Gt=ut.get(Qu,null);Gt&&(V=Gt)}const Tt=We.create(ut,R,void 0,V);return this.insert(Tt.hostView,Oe),Tt}insert(h,g){const S=h._lView,R=S[1];if(function xi(c){return Pn(c[3])}(S)){const Tt=this.indexOf(h);if(-1!==Tt)this.detach(Tt);else{const Gt=S[3],oi=new dm(Gt,Gt[6],Gt[3]);oi.detach(oi.indexOf(h))}}const V=this._adjustIndex(g),pe=this._lContainer;!function Rf(c,h,g,S){const R=10+S,V=g.length;S>0&&(g[R-1][4]=h),S0)S.push(pe[Oe/2]);else{const ut=V[Oe+1],Tt=h[-We];for(let Gt=10;Gt{class c{constructor(g){this.appInits=g,this.resolve=V3,this.reject=V3,this.initialized=!1,this.done=!1,this.donePromise=new Promise((S,R)=>{this.resolve=S,this.reject=R})}runInitializers(){if(this.initialized)return;const g=[],S=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let R=0;R{V.subscribe({complete:Oe,error:We})});g.push(pe)}}Promise.all(g).then(()=>{S()}).catch(R=>{this.reject(R)}),0===g.length&&S(),this.initialized=!0}}return c.\u0275fac=function(g){return new(g||c)(Pa(_p,8))},c.\u0275prov=Ce({token:c,factory:c.\u0275fac}),c})();const zm=new Yr("AppId"),Dg={provide:zm,useFactory:function Sg(){return`${vp()}${vp()}${vp()}`},deps:[]};function vp(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Um=new Yr("Platform Initializer"),Zm=new Yr("Platform ID"),Vm=new Yr("appBootstrapListener");let Gm=(()=>{class c{log(g){console.log(g)}warn(g){console.warn(g)}}return c.\u0275fac=function(g){return new(g||c)},c.\u0275prov=Ce({token:c,factory:c.\u0275fac}),c})();const G3=new Yr("LocaleId"),Ym=new Yr("DefaultCurrencyCode");class Lg{constructor(h,g){this.ngModuleFactory=h,this.componentFactories=g}}let yp=(()=>{class c{compileModuleSync(g){return new rp(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const S=this.compileModuleSync(g),V=po(Rt(g).declarations).reduce((pe,Oe)=>{const We=At(Oe);return We&&pe.push(new np(We)),pe},[]);return new Lg(S,V)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return c.\u0275fac=function(g){return new(g||c)},c.\u0275prov=Ce({token:c,factory:c.\u0275fac}),c})();const Ig=(()=>Promise.resolve(0))();function bp(c){"undefined"==typeof Zone?Ig.then(()=>{c&&c.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",c)}class So{constructor({enableLongStackTrace:h=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:S=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new lc(!1),this.onMicrotaskEmpty=new lc(!1),this.onStable=new lc(!1),this.onError=new lc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const R=this;R._nesting=0,R._outer=R._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(R._inner=R._inner.fork(new Zone.TaskTrackingZoneSpec)),h&&Zone.longStackTraceZoneSpec&&(R._inner=R._inner.fork(Zone.longStackTraceZoneSpec)),R.shouldCoalesceEventChangeDetection=!S&&g,R.shouldCoalesceRunChangeDetection=S,R.lastRequestAnimationFrameId=-1,R.nativeRequestAnimationFrame=function kg(){let c=Ft.requestAnimationFrame,h=Ft.cancelAnimationFrame;if("undefined"!=typeof Zone&&c&&h){const g=c[Zone.__symbol__("OriginalDelegate")];g&&(c=g);const S=h[Zone.__symbol__("OriginalDelegate")];S&&(h=S)}return{nativeRequestAnimationFrame:c,nativeCancelAnimationFrame:h}}().nativeRequestAnimationFrame,function Rg(c){const h=()=>{!function Ng(c){c.isCheckStableRunning||-1!==c.lastRequestAnimationFrameId||(c.lastRequestAnimationFrameId=c.nativeRequestAnimationFrame.call(Ft,()=>{c.fakeTopEventTask||(c.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{c.lastRequestAnimationFrameId=-1,Cp(c),c.isCheckStableRunning=!0,xp(c),c.isCheckStableRunning=!1},void 0,()=>{},()=>{})),c.fakeTopEventTask.invoke()}),Cp(c))}(c)};c._inner=c._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,S,R,V,pe,Oe)=>{try{return Wm(c),g.invokeTask(R,V,pe,Oe)}finally{(c.shouldCoalesceEventChangeDetection&&"eventTask"===V.type||c.shouldCoalesceRunChangeDetection)&&h(),jm(c)}},onInvoke:(g,S,R,V,pe,Oe,We)=>{try{return Wm(c),g.invoke(R,V,pe,Oe,We)}finally{c.shouldCoalesceRunChangeDetection&&h(),jm(c)}},onHasTask:(g,S,R,V)=>{g.hasTask(R,V),S===R&&("microTask"==V.change?(c._hasPendingMicrotasks=V.microTask,Cp(c),xp(c)):"macroTask"==V.change&&(c.hasPendingMacrotasks=V.macroTask))},onHandleError:(g,S,R,V)=>(g.handleError(R,V),c.runOutsideAngular(()=>c.onError.emit(V)),!1)})}(R)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!So.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(So.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(h,g,S){return this._inner.run(h,g,S)}runTask(h,g,S,R){const V=this._inner,pe=V.scheduleEventTask("NgZoneEvent: "+R,h,Pg,V3,V3);try{return V.runTask(pe,g,S)}finally{V.cancelTask(pe)}}runGuarded(h,g,S){return this._inner.runGuarded(h,g,S)}runOutsideAngular(h){return this._outer.run(h)}}const Pg={};function xp(c){if(0==c._nesting&&!c.hasPendingMicrotasks&&!c.isStable)try{c._nesting++,c.onMicrotaskEmpty.emit(null)}finally{if(c._nesting--,!c.hasPendingMicrotasks)try{c.runOutsideAngular(()=>c.onStable.emit(null))}finally{c.isStable=!0}}}function Cp(c){c.hasPendingMicrotasks=!!(c._hasPendingMicrotasks||(c.shouldCoalesceEventChangeDetection||c.shouldCoalesceRunChangeDetection)&&-1!==c.lastRequestAnimationFrameId)}function Wm(c){c._nesting++,c.isStable&&(c.isStable=!1,c.onUnstable.emit(null))}function jm(c){c._nesting--,xp(c)}class Fg{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new lc,this.onMicrotaskEmpty=new lc,this.onStable=new lc,this.onError=new lc}run(h,g,S){return h.apply(g,S)}runGuarded(h,g,S){return h.apply(g,S)}runOutsideAngular(h){return h()}runTask(h,g,S,R){return h.apply(g,S)}}let qm=(()=>{class c{constructor(g){this._ngZone=g,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),g.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{So.assertNotInAngularZone(),bp(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())bp(()=>{for(;0!==this._callbacks.length;){let g=this._callbacks.pop();clearTimeout(g.timeoutId),g.doneCb(this._didWork)}this._didWork=!1});else{let g=this.getPendingTasks();this._callbacks=this._callbacks.filter(S=>!S.updateCb||!S.updateCb(g)||(clearTimeout(S.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(g=>({source:g.source,creationLocation:g.creationLocation,data:g.data})):[]}addCallback(g,S,R){let V=-1;S&&S>0&&(V=setTimeout(()=>{this._callbacks=this._callbacks.filter(pe=>pe.timeoutId!==V),g(this._didWork,this.getPendingTasks())},S)),this._callbacks.push({doneCb:g,timeoutId:V,updateCb:R})}whenStable(g,S,R){if(R&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(g,S,R),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(g,S,R){return[]}}return c.\u0275fac=function(g){return new(g||c)(Pa(So))},c.\u0275prov=Ce({token:c,factory:c.\u0275fac}),c})(),Km=(()=>{class c{constructor(){this._applications=new Map,Mp.addToWindow(this)}registerApplication(g,S){this._applications.set(g,S)}unregisterApplication(g){this._applications.delete(g)}unregisterAllApplications(){this._applications.clear()}getTestability(g){return this._applications.get(g)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(g,S=!0){return Mp.findTestabilityInTree(this,g,S)}}return c.\u0275fac=function(g){return new(g||c)},c.\u0275prov=Ce({token:c,factory:c.\u0275fac}),c})();class Bg{addToWindow(h){}findTestabilityInTree(h,g,S){return null}}function Hg(c){Mp=c}let Dl,Mp=new Bg;const Qm=new Yr("AllowMultipleToken");class Zg{constructor(h,g){this.name=h,this.token=g}}function Jm(c,h,g=[]){const S=`Platform: ${h}`,R=new Yr(S);return(V=[])=>{let pe=Xm();if(!pe||pe.injector.get(Qm,!1))if(c)c(g.concat(V).concat({provide:R,useValue:!0}));else{const Oe=g.concat(V).concat({provide:R,useValue:!0},{provide:y2,useValue:"platform"});!function Vg(c){if(Dl&&!Dl.destroyed&&!Dl.injector.get(Qm,!1))throw new w("400","");Dl=c.get($m);const h=c.get(Um,null);h&&h.forEach(g=>g())}(Rs.create({providers:Oe,name:S}))}return function Gg(c){const h=Xm();if(!h)throw new w("401","");return h}()}}function Xm(){return Dl&&!Dl.destroyed?Dl:null}let $m=(()=>{class c{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,S){const Oe=function Yg(c,h){let g;return g="noop"===c?new Fg:("zone.js"===c?void 0:c)||new So({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==h?void 0:h.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==h?void 0:h.ngZoneRunCoalescing)}),g}(S?S.ngZone:void 0,{ngZoneEventCoalescing:S&&S.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:S&&S.ngZoneRunCoalescing||!1}),We=[{provide:So,useValue:Oe}];return Oe.run(()=>{const ut=Rs.create({providers:We,parent:this.injector,name:g.moduleType.name}),Tt=g.create(ut),Gt=Tt.injector.get(Ec,null);if(!Gt)throw new w("402","");return Oe.runOutsideAngular(()=>{const oi=Oe.onError.subscribe({next:gi=>{Gt.handleError(gi)}});Tt.onDestroy(()=>{wp(this._modules,Tt),oi.unsubscribe()})}),function Wg(c,h,g){try{const S=g();return H2(S)?S.catch(R=>{throw h.runOutsideAngular(()=>c.handleError(R)),R}):S}catch(S){throw h.runOutsideAngular(()=>c.handleError(S)),S}}(Gt,Oe,()=>{const oi=Tt.injector.get($u);return oi.runInitializers(),oi.donePromise.then(()=>(function Wu(c){v(c,"Expected localeId to be defined"),"string"==typeof c&&(rh=c.toLowerCase().replace(/_/g,"-"))}(Tt.injector.get(G3,c0)||c0),this._moduleDoBootstrap(Tt),Tt))})})}bootstrapModule(g,S=[]){const R=e8({},S);return function zg(c,h,g){const S=new rp(g);return Promise.resolve(S)}(0,0,g).then(V=>this.bootstrapModuleFactory(V,R))}_moduleDoBootstrap(g){const S=g.injector.get(P4);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(R=>S.bootstrap(R));else{if(!g.instance.ngDoBootstrap)throw new w("403","");g.instance.ngDoBootstrap(S)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new w("404","");this._modules.slice().forEach(g=>g.destroy()),this._destroyListeners.forEach(g=>g()),this._destroyed=!0}get destroyed(){return this._destroyed}}return c.\u0275fac=function(g){return new(g||c)(Pa(Rs))},c.\u0275prov=Ce({token:c,factory:c.\u0275fac}),c})();function e8(c,h){return Array.isArray(h)?h.reduce(e8,c):Object.assign(Object.assign({},c),h)}let P4=(()=>{class c{constructor(g,S,R,V,pe){this._zone=g,this._injector=S,this._exceptionHandler=R,this._componentFactoryResolver=V,this._initStatus=pe,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const Oe=new y.y(ut=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{ut.next(this._stable),ut.complete()})}),We=new y.y(ut=>{let Tt;this._zone.runOutsideAngular(()=>{Tt=this._zone.onStable.subscribe(()=>{So.assertNotInAngularZone(),bp(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,ut.next(!0))})})});const Gt=this._zone.onUnstable.subscribe(()=>{So.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{ut.next(!1)}))});return()=>{Tt.unsubscribe(),Gt.unsubscribe()}});this.isStable=(0,C.T)(Oe,We.pipe((0,o.B)()))}bootstrap(g,S){if(!this._initStatus.done)throw new w("405","");let R;R=g instanceof Zp?g:this._componentFactoryResolver.resolveComponentFactory(g),this.componentTypes.push(R.componentType);const V=function Ug(c){return c.isBoundToModule}(R)?void 0:this._injector.get(Qu),Oe=R.create(Rs.NULL,[],S||R.selector,V),We=Oe.location.nativeElement,ut=Oe.injector.get(qm,null),Tt=ut&&Oe.injector.get(Km);return ut&&Tt&&Tt.registerApplication(We,ut),Oe.onDestroy(()=>{this.detachView(Oe.hostView),wp(this.components,Oe),Tt&&Tt.unregisterApplication(We)}),this._loadComponent(Oe),Oe}tick(){if(this._runningTick)throw new w("101","");try{this._runningTick=!0;for(let g of this._views)g.detectChanges()}catch(g){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(g))}finally{this._runningTick=!1}}attachView(g){const S=g;this._views.push(S),S.attachToAppRef(this)}detachView(g){const S=g;wp(this._views,S),S.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(Vm,[]).concat(this._bootstrapListeners).forEach(R=>R(g))}ngOnDestroy(){this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return c.\u0275fac=function(g){return new(g||c)(Pa(So),Pa(Rs),Pa(Ec),Pa(T4),Pa($u))},c.\u0275prov=Ce({token:c,factory:c.\u0275fac}),c})();function wp(c,h){const g=c.indexOf(h);g>-1&&c.splice(g,1)}let i8=!0,n8=!1;function qg(){return n8=!0,i8}function Kg(){if(n8)throw new Error("Cannot enable prod mode after platform setup.");i8=!1}let Qg=(()=>{class c{}return c.__NG_ELEMENT_ID__=Jg,c})();function Jg(c){return function Xg(c,h,g){if(wi(c)&&!g){const S=ti(c.index,h);return new D4(S,S)}return 47&c.type?new D4(h[16],h):null}(fr(),ki(),16==(16&c))}class c8{constructor(){}supports(h){return zc(h)}create(h){return new r5(h)}}const n5=(c,h)=>h;class r5{constructor(h){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=h||n5}forEachItem(h){let g;for(g=this._itHead;null!==g;g=g._next)h(g)}forEachOperation(h){let g=this._itHead,S=this._removalsHead,R=0,V=null;for(;g||S;){const pe=!S||g&&g.currentIndex{pe=this._trackByFn(R,Oe),null!==g&&Object.is(g.trackById,pe)?(S&&(g=this._verifyReinsertion(g,Oe,pe,R)),Object.is(g.item,Oe)||this._addIdentityChange(g,Oe)):(g=this._mismatch(g,Oe,pe,R),S=!0),g=g._next,R++}),this.length=R;return this._truncate(g),this.collection=h,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let h;for(h=this._previousItHead=this._itHead;null!==h;h=h._next)h._nextPrevious=h._next;for(h=this._additionsHead;null!==h;h=h._nextAdded)h.previousIndex=h.currentIndex;for(this._additionsHead=this._additionsTail=null,h=this._movesHead;null!==h;h=h._nextMoved)h.previousIndex=h.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(h,g,S,R){let V;return null===h?V=this._itTail:(V=h._prev,this._remove(h)),null!==(h=null===this._unlinkedRecords?null:this._unlinkedRecords.get(S,null))?(Object.is(h.item,g)||this._addIdentityChange(h,g),this._reinsertAfter(h,V,R)):null!==(h=null===this._linkedRecords?null:this._linkedRecords.get(S,R))?(Object.is(h.item,g)||this._addIdentityChange(h,g),this._moveAfter(h,V,R)):h=this._addAfter(new a5(g,S),V,R),h}_verifyReinsertion(h,g,S,R){let V=null===this._unlinkedRecords?null:this._unlinkedRecords.get(S,null);return null!==V?h=this._reinsertAfter(V,h._prev,R):h.currentIndex!=R&&(h.currentIndex=R,this._addToMoves(h,R)),h}_truncate(h){for(;null!==h;){const g=h._next;this._addToRemovals(this._unlink(h)),h=g}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(h,g,S){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(h);const R=h._prevRemoved,V=h._nextRemoved;return null===R?this._removalsHead=V:R._nextRemoved=V,null===V?this._removalsTail=R:V._prevRemoved=R,this._insertAfter(h,g,S),this._addToMoves(h,S),h}_moveAfter(h,g,S){return this._unlink(h),this._insertAfter(h,g,S),this._addToMoves(h,S),h}_addAfter(h,g,S){return this._insertAfter(h,g,S),this._additionsTail=null===this._additionsTail?this._additionsHead=h:this._additionsTail._nextAdded=h,h}_insertAfter(h,g,S){const R=null===g?this._itHead:g._next;return h._next=R,h._prev=g,null===R?this._itTail=h:R._prev=h,null===g?this._itHead=h:g._next=h,null===this._linkedRecords&&(this._linkedRecords=new h8),this._linkedRecords.put(h),h.currentIndex=S,h}_remove(h){return this._addToRemovals(this._unlink(h))}_unlink(h){null!==this._linkedRecords&&this._linkedRecords.remove(h);const g=h._prev,S=h._next;return null===g?this._itHead=S:g._next=S,null===S?this._itTail=g:S._prev=g,h}_addToMoves(h,g){return h.previousIndex===g||(this._movesTail=null===this._movesTail?this._movesHead=h:this._movesTail._nextMoved=h),h}_addToRemovals(h){return null===this._unlinkedRecords&&(this._unlinkedRecords=new h8),this._unlinkedRecords.put(h),h.currentIndex=null,h._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=h,h._prevRemoved=null):(h._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=h),h}_addIdentityChange(h,g){return h.item=g,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=h:this._identityChangesTail._nextIdentityChange=h,h}}class a5{constructor(h,g){this.item=h,this.trackById=g,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class s5{constructor(){this._head=null,this._tail=null}add(h){null===this._head?(this._head=this._tail=h,h._nextDup=null,h._prevDup=null):(this._tail._nextDup=h,h._prevDup=this._tail,h._nextDup=null,this._tail=h)}get(h,g){let S;for(S=this._head;null!==S;S=S._nextDup)if((null===g||g<=S.currentIndex)&&Object.is(S.trackById,h))return S;return null}remove(h){const g=h._prevDup,S=h._nextDup;return null===g?this._head=S:g._nextDup=S,null===S?this._tail=g:S._prevDup=g,null===this._head}}class h8{constructor(){this.map=new Map}put(h){const g=h.trackById;let S=this.map.get(g);S||(S=new s5,this.map.set(g,S)),S.add(h)}get(h,g){const R=this.map.get(h);return R?R.get(h,g):null}remove(h){const g=h.trackById;return this.map.get(g).remove(h)&&this.map.delete(g),h}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function d8(c,h,g){const S=c.previousIndex;if(null===S)return S;let R=0;return g&&S{if(g&&g.key===R)this._maybeAddToChanges(g,S),this._appendAfter=g,g=g._next;else{const V=this._getOrCreateRecordForKey(R,S);g=this._insertBeforeOrAppend(g,V)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let S=g;null!==S;S=S._nextRemoved)S===this._mapHead&&(this._mapHead=null),this._records.delete(S.key),S._nextRemoved=S._next,S.previousValue=S.currentValue,S.currentValue=null,S._prev=null,S._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(h,g){if(h){const S=h._prev;return g._next=h,g._prev=S,h._prev=g,S&&(S._next=g),h===this._mapHead&&(this._mapHead=g),this._appendAfter=h,h}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}_getOrCreateRecordForKey(h,g){if(this._records.has(h)){const R=this._records.get(h);this._maybeAddToChanges(R,g);const V=R._prev,pe=R._next;return V&&(V._next=pe),pe&&(pe._prev=V),R._next=null,R._prev=null,R}const S=new l5(h);return this._records.set(h,S),S.currentValue=g,this._addToAdditions(S),S}_reset(){if(this.isDirty){let h;for(this._previousMapHead=this._mapHead,h=this._previousMapHead;null!==h;h=h._next)h._nextPrevious=h._next;for(h=this._changesHead;null!==h;h=h._nextChanged)h.previousValue=h.currentValue;for(h=this._additionsHead;null!=h;h=h._nextAdded)h.previousValue=h.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(h,g){Object.is(g,h.currentValue)||(h.previousValue=h.currentValue,h.currentValue=g,this._addToChanges(h))}_addToAdditions(h){null===this._additionsHead?this._additionsHead=this._additionsTail=h:(this._additionsTail._nextAdded=h,this._additionsTail=h)}_addToChanges(h){null===this._changesHead?this._changesHead=this._changesTail=h:(this._changesTail._nextChanged=h,this._changesTail=h)}_forEach(h,g){h instanceof Map?h.forEach(g):Object.keys(h).forEach(S=>g(h[S],S))}}class l5{constructor(h){this.key=h,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function f8(){return new W3([new c8])}let W3=(()=>{class c{constructor(g){this.factories=g}static create(g,S){if(null!=S){const R=S.factories.slice();g=g.concat(R)}return new c(g)}static extend(g){return{provide:c,useFactory:S=>c.create(g,S||f8()),deps:[[c,new qs,new zo]]}}find(g){const S=this.factories.find(R=>R.supports(g));if(null!=S)return S;throw new Error(`Cannot find a differ supporting object '${g}' of type '${function c5(c){return c.name||typeof c}(g)}'`)}}return c.\u0275prov=Ce({token:c,providedIn:"root",factory:f8}),c})();function p8(){return new j3([new u8])}let j3=(()=>{class c{constructor(g){this.factories=g}static create(g,S){if(S){const R=S.factories.slice();g=g.concat(R)}return new c(g)}static extend(g){return{provide:c,useFactory:S=>c.create(g,S||p8()),deps:[[c,new qs,new zo]]}}find(g){const S=this.factories.find(R=>R.supports(g));if(S)return S;throw new Error(`Cannot find a differ supporting object '${g}'`)}}return c.\u0275prov=Ce({token:c,providedIn:"root",factory:p8}),c})();const h5=[new u8],u5=new W3([new c8]),f5=new j3(h5),p5=Jm(null,"core",[{provide:Zm,useValue:"unknown"},{provide:$m,deps:[Rs]},{provide:Km,deps:[]},{provide:Gm,deps:[]}]),y5=[{provide:P4,useClass:P4,deps:[So,Rs,Ec,T4,$u]},{provide:R8,deps:[So],useFactory:function b5(c){let h=[];return c.onStable.subscribe(()=>{for(;h.length;)h.pop()()}),function(g){h.push(g)}}},{provide:$u,useClass:$u,deps:[[new zo,_p]]},{provide:yp,useClass:yp,deps:[]},Dg,{provide:W3,useFactory:function m5(){return u5},deps:[]},{provide:j3,useFactory:function g5(){return f5},deps:[]},{provide:G3,useFactory:function _5(c){return c||function v5(){return"undefined"!=typeof $localize&&$localize.locale||c0}()},deps:[[new Ho(G3),new zo,new qs]]},{provide:Ym,useValue:"USD"}];let x5=(()=>{class c{constructor(g){}}return c.\u0275fac=function(g){return new(g||c)(Pa(P4))},c.\u0275mod=ct({type:c}),c.\u0275inj=ze({providers:y5}),c})()},9042:(Ve,Q,m)=>{"use strict";function e(D){for(let A in D){let O=D[A]||"";switch(A){case"display":D.display="flex"===O?["-webkit-flex","flex"]:"inline-flex"===O?["-webkit-inline-flex","inline-flex"]:O;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":D["-webkit-"+A]=O;break;case"flex-direction":O=O||"row",D["-webkit-flex-direction"]=O,D["flex-direction"]=O;break;case"order":D.order=D["-webkit-"+A]=isNaN(+O)?"0":O}}return D}m.d(Q,{iQ:()=>y,GK:()=>e,Ar:()=>C,kt:()=>s,tj:()=>M});const t="inline",y=["row","column","row-reverse","column-reverse"];function C(D){let[A,O,E]=o(D);return function N(D,A=null,O=!1){return{display:O?"inline-flex":"flex","box-sizing":"border-box","flex-direction":D,"flex-wrap":A||null}}(A,O,E)}function o(D){D=D?D.toLowerCase():"";let[A,O,E]=D.split(" ");return y.find(P=>P===A)||(A=y[0]),O===t&&(O=E!==t?E:"",E=t),[A,l(O),!!E]}function M(D){let[A]=o(D);return A.indexOf("row")>-1}function l(D){if(D)switch(D.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":D="wrap-reverse";break;case"no":case"none":case"nowrap":D="nowrap";break;default:D="wrap"}return D}function s(D,...A){if(null==D)throw TypeError("Cannot convert undefined or null to object");for(let O of A)if(null!=O)for(let E in O)O.hasOwnProperty(E)&&(D[E]=O[E]);return D}},3270:(Ve,Q,m)=>{"use strict";m.d(Q,{Bs:()=>ie,iR:()=>Re,IR:()=>E,g5:()=>Z,WU:()=>j,yB:()=>Ge,wY:()=>W,QI:()=>_e,RK:()=>ce,Ot:()=>Ue});var e=m(5e3),t=m(9808),y=m(1135),C=m(8306),o=m(6451),M=m(7579),l=m(9042),N=m(9300),s=m(8505);const A={provide:e.tb,useFactory:function D(nt,ft){return()=>{if((0,t.NF)(ft)){const it=Array.from(nt.querySelectorAll(`[class*=${O}]`)),rt=/\bflex-layout-.+?\b/g;it.forEach(Mt=>{Mt.classList.contains(`${O}ssr`)&&Mt.parentNode?Mt.parentNode.removeChild(Mt):Mt.className.replace(rt,"")})}}},deps:[t.K0,e.Lbi],multi:!0},O="flex-layout-";let E=(()=>{class nt{}return nt.\u0275fac=function(it){return new(it||nt)},nt.\u0275mod=e.oAB({type:nt}),nt.\u0275inj=e.cJS({providers:[A]}),nt})();class P{constructor(ft=!1,it="all",rt="",Mt="",Zt=0){this.matches=ft,this.mediaQuery=it,this.mqAlias=rt,this.suffix=Mt,this.priority=Zt,this.property=""}clone(){return new P(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let w=(()=>{class nt{constructor(){this.stylesheet=new Map}addStyleToElement(it,rt,Mt){const Zt=this.stylesheet.get(it);Zt?Zt.set(rt,Mt):this.stylesheet.set(it,new Map([[rt,Mt]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(it,rt){const Mt=this.stylesheet.get(it);let Zt="";if(Mt){const Ft=Mt.get(rt);("number"==typeof Ft||"string"==typeof Ft)&&(Zt=Ft+"")}return Zt}}return nt.\u0275fac=function(it){return new(it||nt)},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();const Z={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},j=new e.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>Z}),W=new e.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),ie=new e.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function ee(nt,ft){return nt=nt?nt.clone():new P,ft&&(nt.mqAlias=ft.alias,nt.mediaQuery=ft.mediaQuery,nt.suffix=ft.suffix,nt.priority=ft.priority),nt}class _e{constructor(){this.shouldCache=!0}sideEffect(ft,it,rt){}}let ce=(()=>{class nt{constructor(it,rt,Mt,Zt){this._serverStylesheet=it,this._serverModuleLoaded=rt,this._platformId=Mt,this.layoutConfig=Zt}applyStyleToElement(it,rt,Mt=null){let Zt={};"string"==typeof rt&&(Zt[rt]=Mt,rt=Zt),Zt=this.layoutConfig.disableVendorPrefixes?rt:(0,l.GK)(rt),this._applyMultiValueStyleToElement(Zt,it)}applyStyleToElements(it,rt=[]){const Mt=this.layoutConfig.disableVendorPrefixes?it:(0,l.GK)(it);rt.forEach(Zt=>{this._applyMultiValueStyleToElement(Mt,Zt)})}getFlowDirection(it){const rt="flex-direction";let Mt=this.lookupStyle(it,rt);return[Mt||"row",this.lookupInlineStyle(it,rt)||(0,t.PM)(this._platformId)&&this._serverModuleLoaded?Mt:""]}hasWrap(it){return"wrap"===this.lookupStyle(it,"flex-wrap")}lookupAttributeValue(it,rt){return it.getAttribute(rt)||""}lookupInlineStyle(it,rt){return(0,t.NF)(this._platformId)?it.style.getPropertyValue(rt):this._getServerStyle(it,rt)}lookupStyle(it,rt,Mt=!1){let Zt="";return it&&((Zt=this.lookupInlineStyle(it,rt))||((0,t.NF)(this._platformId)?Mt||(Zt=getComputedStyle(it).getPropertyValue(rt)):this._serverModuleLoaded&&(Zt=this._serverStylesheet.getStyleForElement(it,rt)))),Zt?Zt.trim():""}_applyMultiValueStyleToElement(it,rt){Object.keys(it).sort().forEach(Mt=>{const Zt=it[Mt],Ft=Array.isArray(Zt)?Zt:[Zt];Ft.sort();for(let Vt of Ft)Vt=Vt?Vt+"":"",(0,t.NF)(this._platformId)||!this._serverModuleLoaded?(0,t.NF)(this._platformId)?rt.style.setProperty(Mt,Vt):this._setServerStyle(rt,Mt,Vt):this._serverStylesheet.addStyleToElement(rt,Mt,Vt)})}_setServerStyle(it,rt,Mt){rt=rt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const Zt=this._readStyleAttribute(it);Zt[rt]=Mt||"",this._writeStyleAttribute(it,Zt)}_getServerStyle(it,rt){return this._readStyleAttribute(it)[rt]||""}_readStyleAttribute(it){const rt={},Mt=it.getAttribute("style");if(Mt){const Zt=Mt.split(/;+/g);for(let Ft=0;Ft0){const Ii=Vt.indexOf(":");if(-1===Ii)throw new Error(`Invalid CSS style: ${Vt}`);rt[Vt.substr(0,Ii).trim()]=Vt.substr(Ii+1).trim()}}}return rt}_writeStyleAttribute(it,rt){let Mt="";for(const Zt in rt)rt[Zt]&&(Mt+=Zt+":"+rt[Zt]+";");it.setAttribute("style",Mt)}}return nt.\u0275fac=function(it){return new(it||nt)(e.LFG(w),e.LFG(W),e.LFG(e.Lbi),e.LFG(j))},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();function re(nt,ft){return(ft&&ft.priority||0)-(nt&&nt.priority||0)}function de(nt,ft){return(nt.priority||0)-(ft.priority||0)}let oe=(()=>{class nt{constructor(it,rt,Mt){this._zone=it,this._platformId=rt,this._document=Mt,this.source=new y.X(new P(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const it=[];return this.registry.forEach((rt,Mt)=>{rt.matches&&it.push(Mt)}),it}isActive(it){const rt=this.registry.get(it);return rt?rt.matches:this.registerQuery(it).some(Mt=>Mt.matches)}observe(it,rt=!1){if(it&&it.length){const Mt=this._observable$.pipe((0,N.h)(Ft=>!rt||it.indexOf(Ft.mediaQuery)>-1)),Zt=new C.y(Ft=>{const Vt=this.registerQuery(it);if(Vt.length){const Ii=Vt.pop();Vt.forEach(jt=>{Ft.next(jt)}),this.source.next(Ii)}Ft.complete()});return(0,o.T)(Zt,Mt)}return this._observable$}registerQuery(it){const rt=Array.isArray(it)?it:[it],Mt=[];return function b(nt,ft){const it=nt.filter(rt=>!ae[rt]);if(it.length>0){const rt=it.join(", ");try{const Mt=ft.createElement("style");Mt.setAttribute("type","text/css"),Mt.styleSheet||Mt.appendChild(ft.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${rt} {.fx-query-test{ }}\n`)),ft.head.appendChild(Mt),it.forEach(Zt=>ae[Zt]=Mt)}catch(Mt){console.error(Mt)}}}(rt,this._document),rt.forEach(Zt=>{const Ft=Ii=>{this._zone.run(()=>this.source.next(new P(Ii.matches,Zt)))};let Vt=this.registry.get(Zt);Vt||(Vt=this.buildMQL(Zt),Vt.addListener(Ft),this.pendingRemoveListenerFns.push(()=>Vt.removeListener(Ft)),this.registry.set(Zt,Vt)),Vt.matches&&Mt.push(new P(!0,Zt))}),Mt}ngOnDestroy(){let it;for(;it=this.pendingRemoveListenerFns.pop();)it()}buildMQL(it){return function i(nt,ft){return ft&&window.matchMedia("all").addListener?window.matchMedia(nt):{matches:"all"===nt||""===nt,media:nt,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(it,(0,t.NF)(this._platformId))}}return nt.\u0275fac=function(it){return new(it||nt)(e.LFG(e.R0b),e.LFG(e.Lbi),e.LFG(t.K0))},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();const ae={},a=[{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}],p="(orientation: portrait) and (max-width: 599.98px)",u="(orientation: landscape) and (max-width: 959.98px)",_="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",L="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",I="(orientation: portrait) and (min-width: 840px)",x="(orientation: landscape) and (min-width: 1280px)",r={HANDSET:`${p}, ${u}`,TABLET:`${_} , ${L}`,WEB:`${I}, ${x} `,HANDSET_PORTRAIT:`${p}`,TABLET_PORTRAIT:`${_} `,WEB_PORTRAIT:`${I}`,HANDSET_LANDSCAPE:`${u}`,TABLET_LANDSCAPE:`${L}`,WEB_LANDSCAPE:`${x}`},v=[{alias:"handset",priority:2e3,mediaQuery:r.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:r.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:r.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:r.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:r.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:r.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:r.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:r.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:r.WEB_PORTRAIT,overlapping:!0}],G=/(\.|-|_)/g;function F(nt){let ft=nt.length>0?nt.charAt(0):"",it=nt.length>1?nt.slice(1):"";return ft.toUpperCase()+it}const Be=new e.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const nt=(0,e.f3M)(ie),ft=(0,e.f3M)(j),it=[].concat.apply([],(nt||[]).map(Mt=>Array.isArray(Mt)?Mt:[Mt]));return function Ce(nt,ft=[]){const it={};return nt.forEach(rt=>{it[rt.alias]=rt}),ft.forEach(rt=>{it[rt.alias]?(0,l.kt)(it[rt.alias],rt):it[rt.alias]=rt}),function ye(nt){return nt.forEach(ft=>{ft.suffix||(ft.suffix=function U(nt){return nt.replace(G,"|").split("|").map(F).join("")}(ft.alias),ft.overlapping=!!ft.overlapping)}),nt}(Object.keys(it).map(rt=>it[rt]))}((ft.disableDefaultBps?[]:a).concat(ft.addOrientationBps?v:[]),it)}});let ze=(()=>{class nt{constructor(it){this.findByMap=new Map,this.items=[...it].sort(de)}findByAlias(it){return it?this.findWithPredicate(it,rt=>rt.alias==it):null}findByQuery(it){return this.findWithPredicate(it,rt=>rt.mediaQuery==it)}get overlappings(){return this.items.filter(it=>1==it.overlapping)}get aliases(){return this.items.map(it=>it.alias)}get suffixes(){return this.items.map(it=>it.suffix?it.suffix:"")}findWithPredicate(it,rt){let Mt=this.findByMap.get(it);return Mt||(Mt=this.items.find(rt)||null,this.findByMap.set(it,Mt)),Mt||null}}return nt.\u0275fac=function(it){return new(it||nt)(e.LFG(Be))},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();const Ie="print",K={alias:Ie,mediaQuery:Ie,priority:1e3};let Me=(()=>{class nt{constructor(it,rt,Mt){this.breakpoints=it,this.layoutConfig=rt,this._document=Mt,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new we,this.deactivations=[]}withPrintQuery(it){return[...it,Ie]}isPrintEvent(it){return it.mediaQuery.startsWith(Ie)}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(it=>this.breakpoints.findByAlias(it)).filter(it=>null!==it)}getEventBreakpoints({mediaQuery:it}){const rt=this.breakpoints.findByQuery(it);return(rt?[...this.printBreakPoints,rt]:this.printBreakPoints).sort(re)}updateEvent(it){let rt=this.breakpoints.findByQuery(it.mediaQuery);return this.isPrintEvent(it)&&(rt=this.getEventBreakpoints(it)[0],it.mediaQuery=rt?rt.mediaQuery:""),ee(it,rt)}registerBeforeAfterPrintHooks(it){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const rt=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(it,this.getEventBreakpoints(new P(!0,Ie))),it.updateStyles())},Mt=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(it),it.updateStyles())};this._document.defaultView.addEventListener("beforeprint",rt),this._document.defaultView.addEventListener("afterprint",Mt),this.beforePrintEventListeners.push(rt),this.afterPrintEventListeners.push(Mt)}interceptEvents(it){return this.registerBeforeAfterPrintHooks(it),rt=>{this.isPrintEvent(rt)?rt.matches&&!this.isPrinting?(this.startPrinting(it,this.getEventBreakpoints(rt)),it.updateStyles()):!rt.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(it),it.updateStyles()):this.collectActivations(rt)}}blockPropagation(){return it=>!(this.isPrinting||this.isPrintEvent(it))}startPrinting(it,rt){this.isPrinting=!0,it.activatedBreakpoints=this.queue.addPrintBreakpoints(rt)}stopPrinting(it){it.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(it){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(it.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const rt=this.breakpoints.findByQuery(it.mediaQuery);rt&&(this.deactivations.push(rt),this.deactivations.sort(re))}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(it=>this._document.defaultView.removeEventListener("beforeprint",it)),this.afterPrintEventListeners.forEach(it=>this._document.defaultView.removeEventListener("afterprint",it)))}}return nt.\u0275fac=function(it){return new(it||nt)(e.LFG(ze),e.LFG(j),e.LFG(t.K0))},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();class we{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(ft){return ft.push(K),ft.sort(re),ft.forEach(it=>this.addBreakpoint(it)),this.printBreakpoints}addBreakpoint(ft){ft&&void 0===this.printBreakpoints.find(rt=>rt.mediaQuery===ft.mediaQuery)&&(this.printBreakpoints=function z(nt){return!!nt&&nt.mediaQuery.startsWith(Ie)}(ft)?[ft,...this.printBreakpoints]:[...this.printBreakpoints,ft])}clear(){this.printBreakpoints=[]}}let Ge=(()=>{class nt{constructor(it,rt,Mt){this.matchMedia=it,this.breakpoints=rt,this.hook=Mt,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 M.x,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(it){const rt=this.findByQuery(it.mediaQuery);rt&&((it=ee(it,rt)).matches&&-1===this.activatedBreakpoints.indexOf(rt)?(this.activatedBreakpoints.push(rt),this.activatedBreakpoints.sort(re),this.updateStyles()):!it.matches&&-1!==this.activatedBreakpoints.indexOf(rt)&&(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(rt),1),this.activatedBreakpoints.sort(re),this.updateStyles()))}init(it,rt,Mt,Zt,Ft=[]){vt(this.updateMap,it,rt,Mt),vt(this.clearMap,it,rt,Zt),this.buildElementKeyMap(it,rt),this.watchExtraTriggers(it,rt,Ft)}getValue(it,rt,Mt){const Zt=this.elementMap.get(it);if(Zt){const Ft=void 0!==Mt?Zt.get(Mt):this.getActivatedValues(Zt,rt);if(Ft)return Ft.get(rt)}}hasValue(it,rt){const Mt=this.elementMap.get(it);if(Mt){const Zt=this.getActivatedValues(Mt,rt);if(Zt)return void 0!==Zt.get(rt)||!1}return!1}setValue(it,rt,Mt,Zt){let Ft=this.elementMap.get(it);if(Ft){const Ii=(Ft.get(Zt)||new Map).set(rt,Mt);Ft.set(Zt,Ii),this.elementMap.set(it,Ft)}else Ft=(new Map).set(Zt,(new Map).set(rt,Mt)),this.elementMap.set(it,Ft);const Vt=this.getValue(it,rt);void 0!==Vt&&this.updateElement(it,rt,Vt)}trackValue(it,rt){return this.subject.asObservable().pipe((0,N.h)(Mt=>Mt.element===it&&Mt.key===rt))}updateStyles(){this.elementMap.forEach((it,rt)=>{const Mt=new Set(this.elementKeyMap.get(rt));let Zt=this.getActivatedValues(it);Zt&&Zt.forEach((Ft,Vt)=>{this.updateElement(rt,Vt,Ft),Mt.delete(Vt)}),Mt.forEach(Ft=>{if(Zt=this.getActivatedValues(it,Ft),Zt){const Vt=Zt.get(Ft);this.updateElement(rt,Ft,Vt)}else this.clearElement(rt,Ft)})})}clearElement(it,rt){const Mt=this.clearMap.get(it);if(Mt){const Zt=Mt.get(rt);Zt&&(Zt(),this.subject.next({element:it,key:rt,value:""}))}}updateElement(it,rt,Mt){const Zt=this.updateMap.get(it);if(Zt){const Ft=Zt.get(rt);Ft&&(Ft(Mt),this.subject.next({element:it,key:rt,value:Mt}))}}releaseElement(it){const rt=this.watcherMap.get(it);rt&&(rt.forEach(Zt=>Zt.unsubscribe()),this.watcherMap.delete(it));const Mt=this.elementMap.get(it);Mt&&(Mt.forEach((Zt,Ft)=>Mt.delete(Ft)),this.elementMap.delete(it))}triggerUpdate(it,rt){const Mt=this.elementMap.get(it);if(Mt){const Zt=this.getActivatedValues(Mt,rt);Zt&&(rt?this.updateElement(it,rt,Zt.get(rt)):Zt.forEach((Ft,Vt)=>this.updateElement(it,Vt,Ft)))}}buildElementKeyMap(it,rt){let Mt=this.elementKeyMap.get(it);Mt||(Mt=new Set,this.elementKeyMap.set(it,Mt)),Mt.add(rt)}watchExtraTriggers(it,rt,Mt){if(Mt&&Mt.length){let Zt=this.watcherMap.get(it);if(Zt||(Zt=new Map,this.watcherMap.set(it,Zt)),!Zt.get(rt)){const Vt=(0,o.T)(...Mt).subscribe(()=>{const Ii=this.getValue(it,rt);this.updateElement(it,rt,Ii)});Zt.set(rt,Vt)}}}findByQuery(it){return this.breakpoints.findByQuery(it)}getActivatedValues(it,rt){for(let Zt=0;ZtMt.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(rt)).pipe((0,s.b)(this.hook.interceptEvents(this)),(0,N.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return nt.\u0275fac=function(it){return new(it||nt)(e.LFG(oe),e.LFG(ze),e.LFG(Me))},nt.\u0275prov=e.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();function vt(nt,ft,it,rt){if(void 0!==rt){let Mt=nt.get(ft);Mt||(Mt=new Map,nt.set(ft,Mt)),Mt.set(it,rt)}}let Re=(()=>{class nt{constructor(it,rt,Mt,Zt){this.elementRef=it,this.styleBuilder=rt,this.styler=Mt,this.marshal=Zt,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new M.x,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(it){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,it,this.marshal.activatedAlias)}ngOnChanges(it){Object.keys(it).forEach(rt=>{if(-1!==this.inputs.indexOf(rt)){const Mt=rt.split(".").slice(1).join(".");this.setValue(it[rt].currentValue,Mt)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(it=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),it)}addStyles(it,rt){const Mt=this.styleBuilder,Zt=Mt.shouldCache;let Ft=this.styleCache.get(it);(!Ft||!Zt)&&(Ft=Mt.buildStyles(it,rt),Zt&&this.styleCache.set(it,Ft)),this.mru=Object.assign({},Ft),this.applyStyleToElement(Ft),Mt.sideEffect(it,Ft,rt)}clearStyles(){Object.keys(this.mru).forEach(it=>{this.mru[it]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(it,rt=!1){if(it){const[Mt,Zt]=this.styler.getFlowDirection(it);if(!Zt&&rt){const Ft=(0,l.Ar)(Mt);this.styler.applyStyleToElements(Ft,[it])}return Mt.trim()}return"row"}hasWrap(it){return this.styler.hasWrap(it)}applyStyleToElement(it,rt,Mt=this.nativeElement){this.styler.applyStyleToElement(Mt,it,rt)}setValue(it,rt){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,it,rt)}updateWithValue(it){this.currentValue!==it&&(this.addStyles(it),this.currentValue=it)}}return nt.\u0275fac=function(it){return new(it||nt)(e.Y36(e.SBq),e.Y36(_e),e.Y36(ce),e.Y36(Ge))},nt.\u0275dir=e.lG2({type:nt,features:[e.TTD]}),nt})();function Ue(nt,ft="1",it="1"){let rt=[ft,it,nt],Mt=nt.indexOf("calc");if(Mt>0){rt[2]=lt(nt.substring(Mt).trim());let Zt=nt.substr(0,Mt).trim().split(" ");2==Zt.length&&(rt[0]=Zt[0],rt[1]=Zt[1])}else if(0==Mt)rt[2]=lt(nt.trim());else{let Zt=nt.split(" ");rt=3===Zt.length?Zt:[ft,it,nt]}return rt}function lt(nt){return nt.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}},3322:(Ve,Q,m)=>{"use strict";m.d(Q,{oO:()=>Z,Zl:()=>L,aT:()=>r});var e=m(5e3),t=m(3270),y=m(9808),M=(m(3191),m(2722),m(2313));let E=(()=>{class v extends t.iR{constructor(F,U,ye,Ce,Be,ze,Ie){super(F,null,U,ye),this.ngClassInstance=Ie,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new y.mk(Ce,Be,F,ze)),this.init(),this.setValue("","")}set klass(F){this.ngClassInstance.klass=F,this.setValue(F,"")}updateWithValue(F){this.ngClassInstance.ngClass=F,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return v.\u0275fac=function(F){return new(F||v)(e.Y36(e.SBq),e.Y36(t.RK),e.Y36(t.yB),e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.Qsj),e.Y36(y.mk,10))},v.\u0275dir=e.lG2({type:v,inputs:{klass:["class","klass"]},features:[e.qOj]}),v})();const P=["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 Z=(()=>{class v extends E{constructor(){super(...arguments),this.inputs=P}}return v.\u0275fac=function(){let G;return function(U){return(G||(G=e.n5z(v)))(U||v)}}(),v.\u0275dir=e.lG2({type:v,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"},features:[e.qOj]}),v})();class re{constructor(G,F,U=!0){this.key=G,this.value=F,this.key=U?G.replace(/['"]/g,"").trim():G.trim(),this.value=U?F.replace(/['"]/g,"").trim():F.trim(),this.value=this.value.replace(/;/,"")}}function de(v){let G=typeof v;return"object"===G?v.constructor===Array?"array":v.constructor===Set?"set":"object":G}function i(v){const[G,...F]=v.split(":");return new re(G,F.join(":"))}function a(v,G){return G.key&&(v[G.key]=G.value),v}let p=(()=>{class v extends t.iR{constructor(F,U,ye,Ce,Be,ze,Ie,K,Me){super(F,null,U,ye),this.sanitizer=Ce,this.ngStyleInstance=Ie,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new y.PC(F,Be,ze)),this.init();const we=this.nativeElement.getAttribute("style")||"";this.fallbackStyles=this.buildStyleMap(we),this.isServer=K&&(0,y.PM)(Me)}updateWithValue(F){const U=this.buildStyleMap(F);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),U),this.isServer&&this.applyStyleToElement(U),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(F){const U=ye=>this.sanitizer.sanitize(e.q3G.STYLE,ye)||"";if(F)switch(de(F)){case"string":return I(function oe(v,G=";"){return String(v).trim().split(G).map(F=>F.trim()).filter(F=>""!==F)}(F),U);case"array":return I(F,U);default:return function b(v,G){let F=[];return"set"===de(v)?v.forEach(U=>F.push(U)):Object.keys(v).forEach(U=>{F.push(`${U}:${v[U]}`)}),function ae(v,G){return v.map(i).filter(U=>!!U).map(U=>(G&&(U.value=G(U.value)),U)).reduce(a,{})}(F,G)}(F,U)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return v.\u0275fac=function(F){return new(F||v)(e.Y36(e.SBq),e.Y36(t.RK),e.Y36(t.yB),e.Y36(M.H7),e.Y36(e.aQg),e.Y36(e.Qsj),e.Y36(y.PC,10),e.Y36(t.wY),e.Y36(e.Lbi))},v.\u0275dir=e.lG2({type:v,features:[e.qOj]}),v})();const u=["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 L=(()=>{class v extends p{constructor(){super(...arguments),this.inputs=u}}return v.\u0275fac=function(){let G;return function(U){return(G||(G=e.n5z(v)))(U||v)}}(),v.\u0275dir=e.lG2({type:v,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"},features:[e.qOj]}),v})();function I(v,G){return v.map(i).filter(U=>!!U).map(U=>(G&&(U.value=G(U.value)),U)).reduce(a,{})}let r=(()=>{class v{}return v.\u0275fac=function(F){return new(F||v)},v.\u0275mod=e.oAB({type:v}),v.\u0275inj=e.cJS({imports:[[t.IR]]}),v})()},7093:(Ve,Q,m)=>{"use strict";m.d(Q,{yH:()=>_,Wh:()=>rt,xw:()=>A,ae:()=>hi});var e=m(5e3),t=m(226),y=m(3270),C=m(9042),M=(m(7579),m(2722));let l=(()=>{class Ze extends y.QI{buildStyles(Y){return(0,C.Ar)(Y)}}return Ze.\u0275fac=function(){let Ee;return function(me){return(Ee||(Ee=e.n5z(Ze)))(me||Ze)}}(),Ze.\u0275prov=e.Yz7({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})();const N=["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 D=(()=>{class Ze extends y.iR{constructor(Y,me,De,et){super(Y,De,me,et),this.DIRECTIVE_KEY="layout",this.styleCache=O,this.init()}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(e.Y36(e.SBq),e.Y36(y.RK),e.Y36(l),e.Y36(y.yB))},Ze.\u0275dir=e.lG2({type:Ze,features:[e.qOj]}),Ze})(),A=(()=>{class Ze extends D{constructor(){super(...arguments),this.inputs=N}}return Ze.\u0275fac=function(){let Ee;return function(me){return(Ee||(Ee=e.n5z(Ze)))(me||Ze)}}(),Ze.\u0275dir=e.lG2({type:Ze,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"},features:[e.qOj]}),Ze})();const O=new Map;let i=(()=>{class Ze extends y.QI{constructor(Y){super(),this.layoutConfig=Y}buildStyles(Y,me){let[De,et,...$t]=Y.split(" "),Nt=$t.join(" ");const Jt=me.direction.indexOf("column")>-1?"column":"row",ct=(0,C.tj)(Jt)?"max-width":"max-height",Pe=(0,C.tj)(Jt)?"min-width":"min-height",Fe=String(Nt).indexOf("calc")>-1,at=Fe||"auto"===Nt,st=String(Nt).indexOf("%")>-1&&!Fe,At=String(Nt).indexOf("px")>-1||String(Nt).indexOf("rem")>-1||String(Nt).indexOf("em")>-1||String(Nt).indexOf("vw")>-1||String(Nt).indexOf("vh")>-1;let li=Fe||At;De="0"==De?0:De,et="0"==et?0:et;const Bt=!De&&!et;let Rt={};const Li={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(Nt||""){case"":const si=!1!==this.layoutConfig.useColumnBasisZero;Nt="row"===Jt?"0%":si?"0.000000001px":"auto";break;case"initial":case"nogrow":De=0,Nt="auto";break;case"grow":Nt="100%";break;case"noshrink":et=0,Nt="auto";break;case"auto":break;case"none":De=0,et=0,Nt="auto";break;default:!li&&!st&&!isNaN(Nt)&&(Nt+="%"),"0%"===Nt&&(li=!0),"0px"===Nt&&(Nt="0%"),Rt=(0,C.kt)(Li,Fe?{"flex-grow":De,"flex-shrink":et,"flex-basis":li?Nt:"100%"}:{flex:`${De} ${et} ${li?Nt:"100%"}`})}return Rt.flex||Rt["flex-grow"]||(Rt=(0,C.kt)(Li,Fe?{"flex-grow":De,"flex-shrink":et,"flex-basis":Nt}:{flex:`${De} ${et} ${Nt}`})),"0%"!==Nt&&"0px"!==Nt&&"0.000000001px"!==Nt&&"auto"!==Nt&&(Rt[Pe]=Bt||li&&De?Nt:null,Rt[ct]=Bt||!at&&et?Nt:null),Rt[Pe]||Rt[ct]?me.hasWrap&&(Rt[Fe?"flex-basis":"flex"]=Rt[ct]?Fe?Rt[ct]:`${De} ${et} ${Rt[ct]}`:Fe?Rt[Pe]:`${De} ${et} ${Rt[Pe]}`):Rt=(0,C.kt)(Li,Fe?{"flex-grow":De,"flex-shrink":et,"flex-basis":Nt}:{flex:`${De} ${et} ${Nt}`}),(0,C.kt)(Rt,{"box-sizing":"border-box"})}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(e.LFG(y.WU))},Ze.\u0275prov=e.Yz7({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})();const a=["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 u=(()=>{class Ze extends y.iR{constructor(Y,me,De,et,$t){super(Y,et,me,$t),this.layoutConfig=De,this.marshal=$t,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(Y){this.flexShrink=Y||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(Y){this.flexGrow=Y||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,M.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,M.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(Y){const De=Y.value.split(" ");this.direction=De[0],this.wrap=void 0!==De[1]&&"wrap"===De[1],this.triggerUpdate()}updateWithValue(Y){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 De=this.direction,et=De.startsWith("row"),$t=this.wrap;et&&$t?this.styleCache=x:et&&!$t?this.styleCache=L:!et&&$t?this.styleCache=r:!et&&!$t&&(this.styleCache=I);const Nt=String(Y).replace(";",""),Jt=(0,y.Ot)(Nt,this.flexGrow,this.flexShrink);this.addStyles(Jt.join(" "),{direction:De,hasWrap:$t})}triggerReflow(){const Y=this.activatedValue;if(void 0!==Y){const me=(0,y.Ot)(Y+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,me.join(" "))}}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(e.Y36(e.SBq),e.Y36(y.RK),e.Y36(y.WU),e.Y36(i),e.Y36(y.yB))},Ze.\u0275dir=e.lG2({type:Ze,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[e.qOj]}),Ze})(),_=(()=>{class Ze extends u{constructor(){super(...arguments),this.inputs=a}}return Ze.\u0275fac=function(){let Ee;return function(me){return(Ee||(Ee=e.n5z(Ze)))(me||Ze)}}(),Ze.\u0275dir=e.lG2({type:Ze,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"},features:[e.qOj]}),Ze})();const L=new Map,I=new Map,x=new Map,r=new Map;let lt=(()=>{class Ze extends y.QI{buildStyles(Y,me){const De={},[et,$t]=Y.split(" ");switch(et){case"center":De["justify-content"]="center";break;case"space-around":De["justify-content"]="space-around";break;case"space-between":De["justify-content"]="space-between";break;case"space-evenly":De["justify-content"]="space-evenly";break;case"end":case"flex-end":De["justify-content"]="flex-end";break;default:De["justify-content"]="flex-start"}switch($t){case"start":case"flex-start":De["align-items"]=De["align-content"]="flex-start";break;case"center":De["align-items"]=De["align-content"]="center";break;case"end":case"flex-end":De["align-items"]=De["align-content"]="flex-end";break;case"space-between":De["align-content"]="space-between",De["align-items"]="stretch";break;case"space-around":De["align-content"]="space-around",De["align-items"]="stretch";break;case"baseline":De["align-content"]="stretch",De["align-items"]="baseline";break;default:De["align-items"]=De["align-content"]="stretch"}return(0,C.kt)(De,{display:me.inline?"inline-flex":"flex","flex-direction":me.layout,"box-sizing":"border-box","max-width":"stretch"===$t?(0,C.tj)(me.layout)?null:"100%":null,"max-height":"stretch"===$t&&(0,C.tj)(me.layout)?"100%":null})}}return Ze.\u0275fac=function(){let Ee;return function(me){return(Ee||(Ee=e.n5z(Ze)))(me||Ze)}}(),Ze.\u0275prov=e.Yz7({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})();const nt=["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 it=(()=>{class Ze extends y.iR{constructor(Y,me,De,et){super(Y,De,me,et),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,M.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(Y){const me=this.layout||"row",De=this.inline;"row"===me&&De?this.styleCache=Ii:"row"!==me||De?"row-reverse"===me&&De?this.styleCache=ei:"row-reverse"!==me||De?"column"===me&&De?this.styleCache=jt:"column"!==me||De?"column-reverse"===me&&De?this.styleCache=Pi:"column-reverse"===me&&!De&&(this.styleCache=Vt):this.styleCache=Zt:this.styleCache=Ft:this.styleCache=Mt,this.addStyles(Y,{layout:me,inline:De})}onLayoutChange(Y){const me=Y.value.split(" ");this.layout=me[0],this.inline=Y.value.includes("inline"),C.iQ.find(De=>De===this.layout)||(this.layout="row"),this.triggerUpdate()}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(e.Y36(e.SBq),e.Y36(y.RK),e.Y36(lt),e.Y36(y.yB))},Ze.\u0275dir=e.lG2({type:Ze,features:[e.qOj]}),Ze})(),rt=(()=>{class Ze extends it{constructor(){super(...arguments),this.inputs=nt}}return Ze.\u0275fac=function(){let Ee;return function(me){return(Ee||(Ee=e.n5z(Ze)))(me||Ze)}}(),Ze.\u0275dir=e.lG2({type:Ze,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"},features:[e.qOj]}),Ze})();const Mt=new Map,Zt=new Map,Ft=new Map,Vt=new Map,Ii=new Map,jt=new Map,ei=new Map,Pi=new Map;let hi=(()=>{class Ze{}return Ze.\u0275fac=function(Y){return new(Y||Ze)},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({imports:[[y.IR,t.vT]]}),Ze})()},3075:(Ve,Q,m)=>{"use strict";m.d(Q,{Zs:()=>$n,Fj:()=>P,qu:()=>ja,NI:()=>Ui,oH:()=>dr,u:()=>Ma,sg:()=>Fi,u5:()=>Ha,Fd:()=>Ba,qQ:()=>Pr,Cf:()=>j,JU:()=>N,a5:()=>we,JJ:()=>Ne,JL:()=>he,F:()=>ve,On:()=>qi,wV:()=>gt,UX:()=>Zn,Q7:()=>ga,kI:()=>ee,_Y:()=>ot});var e=m(5e3),t=m(9808),y=m(457),C=m(4128),o=m(4004);let M=(()=>{class ge{constructor(ne,Qe){this._renderer=ne,this._elementRef=Qe,this.onChange=Wt=>{},this.onTouched=()=>{}}setProperty(ne,Qe){this._renderer.setProperty(this._elementRef.nativeElement,ne,Qe)}registerOnTouched(ne){this.onTouched=ne}registerOnChange(ne){this.onChange=ne}setDisabledState(ne){this.setProperty("disabled",ne)}}return ge.\u0275fac=function(ne){return new(ne||ge)(e.Y36(e.Qsj),e.Y36(e.SBq))},ge.\u0275dir=e.lG2({type:ge}),ge})(),l=(()=>{class ge extends M{}return ge.\u0275fac=function(){let J;return function(Qe){return(J||(J=e.n5z(ge)))(Qe||ge)}}(),ge.\u0275dir=e.lG2({type:ge,features:[e.qOj]}),ge})();const N=new e.OlP("NgValueAccessor"),A={provide:N,useExisting:(0,e.Gpc)(()=>P),multi:!0},E=new e.OlP("CompositionEventMode");let P=(()=>{class ge extends M{constructor(ne,Qe,Wt){super(ne,Qe),this._compositionMode=Wt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function O(){const ge=(0,t.q)()?(0,t.q)().getUserAgent():"";return/android (\d+)/.test(ge.toLowerCase())}())}writeValue(ne){this.setProperty("value",null==ne?"":ne)}_handleInput(ne){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(ne)}_compositionStart(){this._composing=!0}_compositionEnd(ne){this._composing=!1,this._compositionMode&&this.onChange(ne)}}return ge.\u0275fac=function(ne){return new(ne||ge)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(E,8))},ge.\u0275dir=e.lG2({type:ge,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(ne,Qe){1&ne&&e.NdJ("input",function(mi){return Qe._handleInput(mi.target.value)})("blur",function(){return Qe.onTouched()})("compositionstart",function(){return Qe._compositionStart()})("compositionend",function(mi){return Qe._compositionEnd(mi.target.value)})},features:[e._Bn([A]),e.qOj]}),ge})();function w(ge){return null==ge||0===ge.length}function Z(ge){return null!=ge&&"number"==typeof ge.length}const j=new e.OlP("NgValidators"),W=new e.OlP("NgAsyncValidators"),ie=/^(?=.{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(J){return _e(J)}static max(J){return ce(J)}static required(J){return re(J)}static requiredTrue(J){return de(J)}static email(J){return function oe(ge){return w(ge.value)||ie.test(ge.value)?null:{email:!0}}(J)}static minLength(J){return function ae(ge){return J=>w(J.value)||!Z(J.value)?null:J.value.lengthZ(J.value)&&J.value.length>ge?{maxlength:{requiredLength:ge,actualLength:J.value.length}}:null}(J)}static pattern(J){return function i(ge){if(!ge)return a;let J,ne;return"string"==typeof ge?(ne="","^"!==ge.charAt(0)&&(ne+="^"),ne+=ge,"$"!==ge.charAt(ge.length-1)&&(ne+="$"),J=new RegExp(ne)):(ne=ge.toString(),J=ge),Qe=>{if(w(Qe.value))return null;const Wt=Qe.value;return J.test(Wt)?null:{pattern:{requiredPattern:ne,actualValue:Wt}}}}(J)}static nullValidator(J){return null}static compose(J){return r(J)}static composeAsync(J){return G(J)}}function _e(ge){return J=>{if(w(J.value)||w(ge))return null;const ne=parseFloat(J.value);return!isNaN(ne)&&ne{if(w(J.value)||w(ge))return null;const ne=parseFloat(J.value);return!isNaN(ne)&&ne>ge?{max:{max:ge,actual:J.value}}:null}}function re(ge){return w(ge.value)?{required:!0}:null}function de(ge){return!0===ge.value?null:{required:!0}}function a(ge){return null}function p(ge){return null!=ge}function u(ge){const J=(0,e.QGY)(ge)?(0,y.D)(ge):ge;return(0,e.CqO)(J),J}function _(ge){let J={};return ge.forEach(ne=>{J=null!=ne?Object.assign(Object.assign({},J),ne):J}),0===Object.keys(J).length?null:J}function L(ge,J){return J.map(ne=>ne(ge))}function x(ge){return ge.map(J=>function I(ge){return!ge.validate}(J)?J:ne=>J.validate(ne))}function r(ge){if(!ge)return null;const J=ge.filter(p);return 0==J.length?null:function(ne){return _(L(ne,J))}}function v(ge){return null!=ge?r(x(ge)):null}function G(ge){if(!ge)return null;const J=ge.filter(p);return 0==J.length?null:function(ne){const Qe=L(ne,J).map(u);return(0,C.D)(Qe).pipe((0,o.U)(_))}}function F(ge){return null!=ge?G(x(ge)):null}function U(ge,J){return null===ge?[J]:Array.isArray(ge)?[...ge,J]:[ge,J]}function ye(ge){return ge._rawValidators}function Ce(ge){return ge._rawAsyncValidators}function Be(ge){return ge?Array.isArray(ge)?ge:[ge]:[]}function ze(ge,J){return Array.isArray(ge)?ge.includes(J):ge===J}function Ie(ge,J){const ne=Be(J);return Be(ge).forEach(Wt=>{ze(ne,Wt)||ne.push(Wt)}),ne}function K(ge,J){return Be(J).filter(ne=>!ze(ge,ne))}class Me{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}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}_setValidators(J){this._rawValidators=J||[],this._composedValidatorFn=v(this._rawValidators)}_setAsyncValidators(J){this._rawAsyncValidators=J||[],this._composedAsyncValidatorFn=F(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(J){this._onDestroyCallbacks.push(J)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(J=>J()),this._onDestroyCallbacks=[]}reset(J){this.control&&this.control.reset(J)}hasError(J,ne){return!!this.control&&this.control.hasError(J,ne)}getError(J,ne){return this.control?this.control.getError(J,ne):null}}class we extends Me{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class z extends Me{get formDirective(){return null}get path(){return null}}class Ge{constructor(J){this._cd=J}is(J){var ne,Qe,Wt;return"submitted"===J?!!(null===(ne=this._cd)||void 0===ne?void 0:ne.submitted):!!(null===(Wt=null===(Qe=this._cd)||void 0===Qe?void 0:Qe.control)||void 0===Wt?void 0:Wt[J])}}let Ne=(()=>{class ge extends Ge{constructor(ne){super(ne)}}return ge.\u0275fac=function(ne){return new(ne||ge)(e.Y36(we,2))},ge.\u0275dir=e.lG2({type:ge,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(ne,Qe){2&ne&&e.ekj("ng-untouched",Qe.is("untouched"))("ng-touched",Qe.is("touched"))("ng-pristine",Qe.is("pristine"))("ng-dirty",Qe.is("dirty"))("ng-valid",Qe.is("valid"))("ng-invalid",Qe.is("invalid"))("ng-pending",Qe.is("pending"))},features:[e.qOj]}),ge})(),he=(()=>{class ge extends Ge{constructor(ne){super(ne)}}return ge.\u0275fac=function(ne){return new(ne||ge)(e.Y36(z,10))},ge.\u0275dir=e.lG2({type:ge,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(ne,Qe){2&ne&&e.ekj("ng-untouched",Qe.is("untouched"))("ng-touched",Qe.is("touched"))("ng-pristine",Qe.is("pristine"))("ng-dirty",Qe.is("dirty"))("ng-valid",Qe.is("valid"))("ng-invalid",Qe.is("invalid"))("ng-pending",Qe.is("pending"))("ng-submitted",Qe.is("submitted"))},features:[e.qOj]}),ge})();function Mt(ge,J){return[...J.path,ge]}function Zt(ge,J){jt(ge,J),J.valueAccessor.writeValue(ge.value),function Pi(ge,J){J.valueAccessor.registerOnChange(ne=>{ge._pendingValue=ne,ge._pendingChange=!0,ge._pendingDirty=!0,"change"===ge.updateOn&&hi(ge,J)})}(ge,J),function Ze(ge,J){const ne=(Qe,Wt)=>{J.valueAccessor.writeValue(Qe),Wt&&J.viewToModelUpdate(Qe)};ge.registerOnChange(ne),J._registerOnDestroy(()=>{ge._unregisterOnChange(ne)})}(ge,J),function ai(ge,J){J.valueAccessor.registerOnTouched(()=>{ge._pendingTouched=!0,"blur"===ge.updateOn&&ge._pendingChange&&hi(ge,J),"submit"!==ge.updateOn&&ge.markAsTouched()})}(ge,J),function Ii(ge,J){if(J.valueAccessor.setDisabledState){const ne=Qe=>{J.valueAccessor.setDisabledState(Qe)};ge.registerOnDisabledChange(ne),J._registerOnDestroy(()=>{ge._unregisterOnDisabledChange(ne)})}}(ge,J)}function Ft(ge,J,ne=!0){const Qe=()=>{};J.valueAccessor&&(J.valueAccessor.registerOnChange(Qe),J.valueAccessor.registerOnTouched(Qe)),ei(ge,J),ge&&(J._invokeOnDestroyCallbacks(),ge._registerOnCollectionChange(()=>{}))}function Vt(ge,J){ge.forEach(ne=>{ne.registerOnValidatorChange&&ne.registerOnValidatorChange(J)})}function jt(ge,J){const ne=ye(ge);null!==J.validator?ge.setValidators(U(ne,J.validator)):"function"==typeof ne&&ge.setValidators([ne]);const Qe=Ce(ge);null!==J.asyncValidator?ge.setAsyncValidators(U(Qe,J.asyncValidator)):"function"==typeof Qe&&ge.setAsyncValidators([Qe]);const Wt=()=>ge.updateValueAndValidity();Vt(J._rawValidators,Wt),Vt(J._rawAsyncValidators,Wt)}function ei(ge,J){let ne=!1;if(null!==ge){if(null!==J.validator){const Wt=ye(ge);if(Array.isArray(Wt)&&Wt.length>0){const mi=Wt.filter(Ct=>Ct!==J.validator);mi.length!==Wt.length&&(ne=!0,ge.setValidators(mi))}}if(null!==J.asyncValidator){const Wt=Ce(ge);if(Array.isArray(Wt)&&Wt.length>0){const mi=Wt.filter(Ct=>Ct!==J.asyncValidator);mi.length!==Wt.length&&(ne=!0,ge.setAsyncValidators(mi))}}}const Qe=()=>{};return Vt(J._rawValidators,Qe),Vt(J._rawAsyncValidators,Qe),ne}function hi(ge,J){ge._pendingDirty&&ge.markAsDirty(),ge.setValue(ge._pendingValue,{emitModelToViewChange:!1}),J.viewToModelUpdate(ge._pendingValue),ge._pendingChange=!1}function Ee(ge,J){jt(ge,J)}function et(ge,J){if(!ge.hasOwnProperty("model"))return!1;const ne=ge.model;return!!ne.isFirstChange()||!Object.is(J,ne.currentValue)}function Nt(ge,J){ge._syncPendingControls(),J.forEach(ne=>{const Qe=ne.control;"submit"===Qe.updateOn&&Qe._pendingChange&&(ne.viewToModelUpdate(Qe._pendingValue),Qe._pendingChange=!1)})}function Jt(ge,J){if(!J)return null;let ne,Qe,Wt;return Array.isArray(J),J.forEach(mi=>{mi.constructor===P?ne=mi:function $t(ge){return Object.getPrototypeOf(ge.constructor)===l}(mi)?Qe=mi:Wt=mi}),Wt||Qe||ne||null}function ct(ge,J){const ne=ge.indexOf(J);ne>-1&&ge.splice(ne,1)}const Fe="VALID",at="INVALID",st="PENDING",At="DISABLED";function Bt(ge){return(ci(ge)?ge.validators:ge)||null}function Rt(ge){return Array.isArray(ge)?v(ge):ge||null}function Li(ge,J){return(ci(J)?J.asyncValidators:ge)||null}function si(ge){return Array.isArray(ge)?F(ge):ge||null}function ci(ge){return null!=ge&&!Array.isArray(ge)&&"object"==typeof ge}class sn{constructor(J,ne){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=J,this._rawAsyncValidators=ne,this._composedValidatorFn=Rt(this._rawValidators),this._composedAsyncValidatorFn=si(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(J){this._rawValidators=this._composedValidatorFn=J}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(J){this._rawAsyncValidators=this._composedAsyncValidatorFn=J}get parent(){return this._parent}get valid(){return this.status===Fe}get invalid(){return this.status===at}get pending(){return this.status==st}get disabled(){return this.status===At}get enabled(){return this.status!==At}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(J){this._rawValidators=J,this._composedValidatorFn=Rt(J)}setAsyncValidators(J){this._rawAsyncValidators=J,this._composedAsyncValidatorFn=si(J)}addValidators(J){this.setValidators(Ie(J,this._rawValidators))}addAsyncValidators(J){this.setAsyncValidators(Ie(J,this._rawAsyncValidators))}removeValidators(J){this.setValidators(K(J,this._rawValidators))}removeAsyncValidators(J){this.setAsyncValidators(K(J,this._rawAsyncValidators))}hasValidator(J){return ze(this._rawValidators,J)}hasAsyncValidator(J){return ze(this._rawAsyncValidators,J)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(J={}){this.touched=!0,this._parent&&!J.onlySelf&&this._parent.markAsTouched(J)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(J=>J.markAllAsTouched())}markAsUntouched(J={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(ne=>{ne.markAsUntouched({onlySelf:!0})}),this._parent&&!J.onlySelf&&this._parent._updateTouched(J)}markAsDirty(J={}){this.pristine=!1,this._parent&&!J.onlySelf&&this._parent.markAsDirty(J)}markAsPristine(J={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(ne=>{ne.markAsPristine({onlySelf:!0})}),this._parent&&!J.onlySelf&&this._parent._updatePristine(J)}markAsPending(J={}){this.status=st,!1!==J.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!J.onlySelf&&this._parent.markAsPending(J)}disable(J={}){const ne=this._parentMarkedDirty(J.onlySelf);this.status=At,this.errors=null,this._forEachChild(Qe=>{Qe.disable(Object.assign(Object.assign({},J),{onlySelf:!0}))}),this._updateValue(),!1!==J.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},J),{skipPristineCheck:ne})),this._onDisabledChange.forEach(Qe=>Qe(!0))}enable(J={}){const ne=this._parentMarkedDirty(J.onlySelf);this.status=Fe,this._forEachChild(Qe=>{Qe.enable(Object.assign(Object.assign({},J),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:J.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},J),{skipPristineCheck:ne})),this._onDisabledChange.forEach(Qe=>Qe(!1))}_updateAncestors(J){this._parent&&!J.onlySelf&&(this._parent.updateValueAndValidity(J),J.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(J){this._parent=J}updateValueAndValidity(J={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Fe||this.status===st)&&this._runAsyncValidator(J.emitEvent)),!1!==J.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!J.onlySelf&&this._parent.updateValueAndValidity(J)}_updateTreeValidity(J={emitEvent:!0}){this._forEachChild(ne=>ne._updateTreeValidity(J)),this.updateValueAndValidity({onlySelf:!0,emitEvent:J.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?At:Fe}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(J){if(this.asyncValidator){this.status=st,this._hasOwnPendingAsyncValidator=!0;const ne=u(this.asyncValidator(this));this._asyncValidationSubscription=ne.subscribe(Qe=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Qe,{emitEvent:J})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(J,ne={}){this.errors=J,this._updateControlsErrors(!1!==ne.emitEvent)}get(J){return function li(ge,J,ne){if(null==J||(Array.isArray(J)||(J=J.split(ne)),Array.isArray(J)&&0===J.length))return null;let Qe=ge;return J.forEach(Wt=>{Qe=Qe instanceof Di?Qe.controls.hasOwnProperty(Wt)?Qe.controls[Wt]:null:Qe instanceof Xi&&Qe.at(Wt)||null}),Qe}(this,J,".")}getError(J,ne){const Qe=ne?this.get(ne):this;return Qe&&Qe.errors?Qe.errors[J]:null}hasError(J,ne){return!!this.getError(J,ne)}get root(){let J=this;for(;J._parent;)J=J._parent;return J}_updateControlsErrors(J){this.status=this._calculateStatus(),J&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(J)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?At:this.errors?at:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(st)?st:this._anyControlsHaveStatus(at)?at:Fe}_anyControlsHaveStatus(J){return this._anyControls(ne=>ne.status===J)}_anyControlsDirty(){return this._anyControls(J=>J.dirty)}_anyControlsTouched(){return this._anyControls(J=>J.touched)}_updatePristine(J={}){this.pristine=!this._anyControlsDirty(),this._parent&&!J.onlySelf&&this._parent._updatePristine(J)}_updateTouched(J={}){this.touched=this._anyControlsTouched(),this._parent&&!J.onlySelf&&this._parent._updateTouched(J)}_isBoxedValue(J){return"object"==typeof J&&null!==J&&2===Object.keys(J).length&&"value"in J&&"disabled"in J}_registerOnCollectionChange(J){this._onCollectionChange=J}_setUpdateStrategy(J){ci(J)&&null!=J.updateOn&&(this._updateOn=J.updateOn)}_parentMarkedDirty(J){return!J&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Ui extends sn{constructor(J=null,ne,Qe){super(Bt(ne),Li(Qe,ne)),this._onChange=[],this._applyFormState(J),this._setUpdateStrategy(ne),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(J,ne={}){this.value=this._pendingValue=J,this._onChange.length&&!1!==ne.emitModelToViewChange&&this._onChange.forEach(Qe=>Qe(this.value,!1!==ne.emitViewToModelChange)),this.updateValueAndValidity(ne)}patchValue(J,ne={}){this.setValue(J,ne)}reset(J=null,ne={}){this._applyFormState(J),this.markAsPristine(ne),this.markAsUntouched(ne),this.setValue(this.value,ne),this._pendingChange=!1}_updateValue(){}_anyControls(J){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(J){this._onChange.push(J)}_unregisterOnChange(J){ct(this._onChange,J)}registerOnDisabledChange(J){this._onDisabledChange.push(J)}_unregisterOnDisabledChange(J){ct(this._onDisabledChange,J)}_forEachChild(J){}_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(J){this._isBoxedValue(J)?(this.value=this._pendingValue=J.value,J.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=J}}class Di extends sn{constructor(J,ne,Qe){super(Bt(ne),Li(Qe,ne)),this.controls=J,this._initObservables(),this._setUpdateStrategy(ne),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(J,ne){return this.controls[J]?this.controls[J]:(this.controls[J]=ne,ne.setParent(this),ne._registerOnCollectionChange(this._onCollectionChange),ne)}addControl(J,ne,Qe={}){this.registerControl(J,ne),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}removeControl(J,ne={}){this.controls[J]&&this.controls[J]._registerOnCollectionChange(()=>{}),delete this.controls[J],this.updateValueAndValidity({emitEvent:ne.emitEvent}),this._onCollectionChange()}setControl(J,ne,Qe={}){this.controls[J]&&this.controls[J]._registerOnCollectionChange(()=>{}),delete this.controls[J],ne&&this.registerControl(J,ne),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}contains(J){return this.controls.hasOwnProperty(J)&&this.controls[J].enabled}setValue(J,ne={}){this._checkAllValuesPresent(J),Object.keys(J).forEach(Qe=>{this._throwIfControlMissing(Qe),this.controls[Qe].setValue(J[Qe],{onlySelf:!0,emitEvent:ne.emitEvent})}),this.updateValueAndValidity(ne)}patchValue(J,ne={}){null!=J&&(Object.keys(J).forEach(Qe=>{this.controls[Qe]&&this.controls[Qe].patchValue(J[Qe],{onlySelf:!0,emitEvent:ne.emitEvent})}),this.updateValueAndValidity(ne))}reset(J={},ne={}){this._forEachChild((Qe,Wt)=>{Qe.reset(J[Wt],{onlySelf:!0,emitEvent:ne.emitEvent})}),this._updatePristine(ne),this._updateTouched(ne),this.updateValueAndValidity(ne)}getRawValue(){return this._reduceChildren({},(J,ne,Qe)=>(J[Qe]=ne instanceof Ui?ne.value:ne.getRawValue(),J))}_syncPendingControls(){let J=this._reduceChildren(!1,(ne,Qe)=>!!Qe._syncPendingControls()||ne);return J&&this.updateValueAndValidity({onlySelf:!0}),J}_throwIfControlMissing(J){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[J])throw new Error(`Cannot find form control with name: ${J}.`)}_forEachChild(J){Object.keys(this.controls).forEach(ne=>{const Qe=this.controls[ne];Qe&&J(Qe,ne)})}_setUpControls(){this._forEachChild(J=>{J.setParent(this),J._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(J){for(const ne of Object.keys(this.controls)){const Qe=this.controls[ne];if(this.contains(ne)&&J(Qe))return!0}return!1}_reduceValue(){return this._reduceChildren({},(J,ne,Qe)=>((ne.enabled||this.disabled)&&(J[Qe]=ne.value),J))}_reduceChildren(J,ne){let Qe=J;return this._forEachChild((Wt,mi)=>{Qe=ne(Qe,Wt,mi)}),Qe}_allControlsDisabled(){for(const J of Object.keys(this.controls))if(this.controls[J].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(J){this._forEachChild((ne,Qe)=>{if(void 0===J[Qe])throw new Error(`Must supply a value for form control with name: '${Qe}'.`)})}}class Xi extends sn{constructor(J,ne,Qe){super(Bt(ne),Li(Qe,ne)),this.controls=J,this._initObservables(),this._setUpdateStrategy(ne),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(J){return this.controls[J]}push(J,ne={}){this.controls.push(J),this._registerControl(J),this.updateValueAndValidity({emitEvent:ne.emitEvent}),this._onCollectionChange()}insert(J,ne,Qe={}){this.controls.splice(J,0,ne),this._registerControl(ne),this.updateValueAndValidity({emitEvent:Qe.emitEvent})}removeAt(J,ne={}){this.controls[J]&&this.controls[J]._registerOnCollectionChange(()=>{}),this.controls.splice(J,1),this.updateValueAndValidity({emitEvent:ne.emitEvent})}setControl(J,ne,Qe={}){this.controls[J]&&this.controls[J]._registerOnCollectionChange(()=>{}),this.controls.splice(J,1),ne&&(this.controls.splice(J,0,ne),this._registerControl(ne)),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(J,ne={}){this._checkAllValuesPresent(J),J.forEach((Qe,Wt)=>{this._throwIfControlMissing(Wt),this.at(Wt).setValue(Qe,{onlySelf:!0,emitEvent:ne.emitEvent})}),this.updateValueAndValidity(ne)}patchValue(J,ne={}){null!=J&&(J.forEach((Qe,Wt)=>{this.at(Wt)&&this.at(Wt).patchValue(Qe,{onlySelf:!0,emitEvent:ne.emitEvent})}),this.updateValueAndValidity(ne))}reset(J=[],ne={}){this._forEachChild((Qe,Wt)=>{Qe.reset(J[Wt],{onlySelf:!0,emitEvent:ne.emitEvent})}),this._updatePristine(ne),this._updateTouched(ne),this.updateValueAndValidity(ne)}getRawValue(){return this.controls.map(J=>J instanceof Ui?J.value:J.getRawValue())}clear(J={}){this.controls.length<1||(this._forEachChild(ne=>ne._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:J.emitEvent}))}_syncPendingControls(){let J=this.controls.reduce((ne,Qe)=>!!Qe._syncPendingControls()||ne,!1);return J&&this.updateValueAndValidity({onlySelf:!0}),J}_throwIfControlMissing(J){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(J))throw new Error(`Cannot find form control at index ${J}`)}_forEachChild(J){this.controls.forEach((ne,Qe)=>{J(ne,Qe)})}_updateValue(){this.value=this.controls.filter(J=>J.enabled||this.disabled).map(J=>J.value)}_anyControls(J){return this.controls.some(ne=>ne.enabled&&J(ne))}_setUpControls(){this._forEachChild(J=>this._registerControl(J))}_checkAllValuesPresent(J){this._forEachChild((ne,Qe)=>{if(void 0===J[Qe])throw new Error(`Must supply a value for form control at index: ${Qe}.`)})}_allControlsDisabled(){for(const J of this.controls)if(J.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(J){J.setParent(this),J._registerOnCollectionChange(this._onCollectionChange)}}const Ke={provide:z,useExisting:(0,e.Gpc)(()=>ve)},_t=(()=>Promise.resolve(null))();let ve=(()=>{class ge extends z{constructor(ne,Qe){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new e.vpe,this.form=new Di({},v(ne),F(Qe))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(ne){_t.then(()=>{const Qe=this._findContainer(ne.path);ne.control=Qe.registerControl(ne.name,ne.control),Zt(ne.control,ne),ne.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(ne)})}getControl(ne){return this.form.get(ne.path)}removeControl(ne){_t.then(()=>{const Qe=this._findContainer(ne.path);Qe&&Qe.removeControl(ne.name),ct(this._directives,ne)})}addFormGroup(ne){_t.then(()=>{const Qe=this._findContainer(ne.path),Wt=new Di({});Ee(Wt,ne),Qe.registerControl(ne.name,Wt),Wt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(ne){_t.then(()=>{const Qe=this._findContainer(ne.path);Qe&&Qe.removeControl(ne.name)})}getFormGroup(ne){return this.form.get(ne.path)}updateModel(ne,Qe){_t.then(()=>{this.form.get(ne.path).setValue(Qe)})}setValue(ne){this.control.setValue(ne)}onSubmit(ne){return this.submitted=!0,Nt(this.form,this._directives),this.ngSubmit.emit(ne),!1}onReset(){this.resetForm()}resetForm(ne){this.form.reset(ne),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(ne){return ne.pop(),ne.length?this.form.get(ne):this.form}}return ge.\u0275fac=function(ne){return new(ne||ge)(e.Y36(j,10),e.Y36(W,10))},ge.\u0275dir=e.lG2({type:ge,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(ne,Qe){1&ne&&e.NdJ("submit",function(mi){return Qe.onSubmit(mi)})("reset",function(){return Qe.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Ke]),e.qOj]}),ge})();const Ni={provide:we,useExisting:(0,e.Gpc)(()=>qi)},Si=(()=>Promise.resolve(null))();let qi=(()=>{class ge extends we{constructor(ne,Qe,Wt,mi){super(),this.control=new Ui,this._registered=!1,this.update=new e.vpe,this._parent=ne,this._setValidators(Qe),this._setAsyncValidators(Wt),this.valueAccessor=Jt(0,mi)}ngOnChanges(ne){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in ne&&this._updateDisabled(ne),et(ne,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Mt(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(ne){this.viewModel=ne,this.update.emit(ne)}_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(){Zt(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(ne){Si.then(()=>{this.control.setValue(ne,{emitViewToModelChange:!1})})}_updateDisabled(ne){const Qe=ne.isDisabled.currentValue,Wt=""===Qe||Qe&&"false"!==Qe;Si.then(()=>{Wt&&!this.control.disabled?this.control.disable():!Wt&&this.control.disabled&&this.control.enable()})}}return ge.\u0275fac=function(ne){return new(ne||ge)(e.Y36(z,9),e.Y36(j,10),e.Y36(W,10),e.Y36(N,10))},ge.\u0275dir=e.lG2({type:ge,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e._Bn([Ni]),e.qOj,e.TTD]}),ge})(),ot=(()=>{class ge{}return ge.\u0275fac=function(ne){return new(ne||ge)},ge.\u0275dir=e.lG2({type:ge,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),ge})();const Kt={provide:N,useExisting:(0,e.Gpc)(()=>gt),multi:!0};let gt=(()=>{class ge extends l{writeValue(ne){this.setProperty("value",null==ne?"":ne)}registerOnChange(ne){this.onChange=Qe=>{ne(""==Qe?null:parseFloat(Qe))}}}return ge.\u0275fac=function(){let J;return function(Qe){return(J||(J=e.n5z(ge)))(Qe||ge)}}(),ge.\u0275dir=e.lG2({type:ge,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(ne,Qe){1&ne&&e.NdJ("input",function(mi){return Qe.onChange(mi.target.value)})("blur",function(){return Qe.onTouched()})},features:[e._Bn([Kt]),e.qOj]}),ge})(),Ci=(()=>{class ge{}return ge.\u0275fac=function(ne){return new(ne||ge)},ge.\u0275mod=e.oAB({type:ge}),ge.\u0275inj=e.cJS({}),ge})();const _n=new e.OlP("NgModelWithFormControlWarning"),Pn={provide:we,useExisting:(0,e.Gpc)(()=>dr)};let dr=(()=>{class ge extends we{constructor(ne,Qe,Wt,mi){super(),this._ngModelWarningConfig=mi,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(ne),this._setAsyncValidators(Qe),this.valueAccessor=Jt(0,Wt)}set isDisabled(ne){}ngOnChanges(ne){if(this._isControlChanged(ne)){const Qe=ne.form.previousValue;Qe&&Ft(Qe,this,!1),Zt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}et(ne,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ft(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(ne){this.viewModel=ne,this.update.emit(ne)}_isControlChanged(ne){return ne.hasOwnProperty("form")}}return ge._ngModelWarningSentOnce=!1,ge.\u0275fac=function(ne){return new(ne||ge)(e.Y36(j,10),e.Y36(W,10),e.Y36(N,10),e.Y36(_n,8))},ge.\u0275dir=e.lG2({type:ge,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([Pn]),e.qOj,e.TTD]}),ge})();const wi={provide:z,useExisting:(0,e.Gpc)(()=>Fi)};let Fi=(()=>{class ge extends z{constructor(ne,Qe){super(),this.validators=ne,this.asyncValidators=Qe,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(ne),this._setAsyncValidators(Qe)}ngOnChanges(ne){this._checkFormPresent(),ne.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(ne){const Qe=this.form.get(ne.path);return Zt(Qe,ne),Qe.updateValueAndValidity({emitEvent:!1}),this.directives.push(ne),Qe}getControl(ne){return this.form.get(ne.path)}removeControl(ne){Ft(ne.control||null,ne,!1),ct(this.directives,ne)}addFormGroup(ne){this._setUpFormContainer(ne)}removeFormGroup(ne){this._cleanUpFormContainer(ne)}getFormGroup(ne){return this.form.get(ne.path)}addFormArray(ne){this._setUpFormContainer(ne)}removeFormArray(ne){this._cleanUpFormContainer(ne)}getFormArray(ne){return this.form.get(ne.path)}updateModel(ne,Qe){this.form.get(ne.path).setValue(Qe)}onSubmit(ne){return this.submitted=!0,Nt(this.form,this.directives),this.ngSubmit.emit(ne),!1}onReset(){this.resetForm()}resetForm(ne){this.form.reset(ne),this.submitted=!1}_updateDomValue(){this.directives.forEach(ne=>{const Qe=ne.control,Wt=this.form.get(ne.path);Qe!==Wt&&(Ft(Qe||null,ne),Wt instanceof Ui&&(Zt(Wt,ne),ne.control=Wt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(ne){const Qe=this.form.get(ne.path);Ee(Qe,ne),Qe.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(ne){if(this.form){const Qe=this.form.get(ne.path);Qe&&function Y(ge,J){return ei(ge,J)}(Qe,ne)&&Qe.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){jt(this.form,this),this._oldForm&&ei(this._oldForm,this)}_checkFormPresent(){}}return ge.\u0275fac=function(ne){return new(ne||ge)(e.Y36(j,10),e.Y36(W,10))},ge.\u0275dir=e.lG2({type:ge,selectors:[["","formGroup",""]],hostBindings:function(ne,Qe){1&ne&&e.NdJ("submit",function(mi){return Qe.onSubmit(mi)})("reset",function(){return Qe.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([wi]),e.qOj,e.TTD]}),ge})();const Ra={provide:we,useExisting:(0,e.Gpc)(()=>Ma)};let Ma=(()=>{class ge extends we{constructor(ne,Qe,Wt,mi,Ct){super(),this._ngModelWarningConfig=Ct,this._added=!1,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=ne,this._setValidators(Qe),this._setAsyncValidators(Wt),this.valueAccessor=Jt(0,mi)}set isDisabled(ne){}ngOnChanges(ne){this._added||this._setUpControl(),et(ne,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(ne){this.viewModel=ne,this.update.emit(ne)}get path(){return Mt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return ge._ngModelWarningSentOnce=!1,ge.\u0275fac=function(ne){return new(ne||ge)(e.Y36(z,13),e.Y36(j,10),e.Y36(W,10),e.Y36(N,10),e.Y36(_n,8))},ge.\u0275dir=e.lG2({type:ge,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([Ra]),e.qOj,e.TTD]}),ge})();function vn(ge){return"number"==typeof ge?ge:parseFloat(ge)}let Qn=(()=>{class ge{constructor(){this._validator=a}ngOnChanges(ne){if(this.inputName in ne){const Qe=this.normalizeInput(ne[this.inputName].currentValue);this._validator=this.enabled()?this.createValidator(Qe):a,this._onChange&&this._onChange()}}validate(ne){return this._validator(ne)}registerOnValidatorChange(ne){this._onChange=ne}enabled(){return null!=this[this.inputName]}}return ge.\u0275fac=function(ne){return new(ne||ge)},ge.\u0275dir=e.lG2({type:ge,features:[e.TTD]}),ge})();const Tr={provide:j,useExisting:(0,e.Gpc)(()=>Ba),multi:!0};let Ba=(()=>{class ge extends Qn{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=ne=>vn(ne),this.createValidator=ne=>ce(ne)}}return ge.\u0275fac=function(){let J;return function(Qe){return(J||(J=e.n5z(ge)))(Qe||ge)}}(),ge.\u0275dir=e.lG2({type:ge,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(ne,Qe){2&ne&&e.uIk("max",Qe.enabled()?Qe.max:null)},inputs:{max:"max"},features:[e._Bn([Tr]),e.qOj]}),ge})();const Wa={provide:j,useExisting:(0,e.Gpc)(()=>Pr),multi:!0};let Pr=(()=>{class ge extends Qn{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=ne=>vn(ne),this.createValidator=ne=>_e(ne)}}return ge.\u0275fac=function(){let J;return function(Qe){return(J||(J=e.n5z(ge)))(Qe||ge)}}(),ge.\u0275dir=e.lG2({type:ge,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(ne,Qe){2&ne&&e.uIk("min",Qe.enabled()?Qe.min:null)},inputs:{min:"min"},features:[e._Bn([Wa]),e.qOj]}),ge})();const la={provide:j,useExisting:(0,e.Gpc)(()=>ga),multi:!0},Jr={provide:j,useExisting:(0,e.Gpc)(()=>$n),multi:!0};let ga=(()=>{class ge{constructor(){this._required=!1}get required(){return this._required}set required(ne){this._required=null!=ne&&!1!==ne&&"false"!=`${ne}`,this._onChange&&this._onChange()}validate(ne){return this.required?re(ne):null}registerOnValidatorChange(ne){this._onChange=ne}}return ge.\u0275fac=function(ne){return new(ne||ge)},ge.\u0275dir=e.lG2({type:ge,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(ne,Qe){2&ne&&e.uIk("required",Qe.required?"":null)},inputs:{required:"required"},features:[e._Bn([la])]}),ge})(),$n=(()=>{class ge extends ga{validate(ne){return this.required?de(ne):null}}return ge.\u0275fac=function(){let J;return function(Qe){return(J||(J=e.n5z(ge)))(Qe||ge)}}(),ge.\u0275dir=e.lG2({type:ge,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(ne,Qe){2&ne&&e.uIk("required",Qe.required?"":null)},features:[e._Bn([Jr]),e.qOj]}),ge})(),Gr=(()=>{class ge{}return ge.\u0275fac=function(ne){return new(ne||ge)},ge.\u0275mod=e.oAB({type:ge}),ge.\u0275inj=e.cJS({imports:[[Ci]]}),ge})(),Ha=(()=>{class ge{}return ge.\u0275fac=function(ne){return new(ne||ge)},ge.\u0275mod=e.oAB({type:ge}),ge.\u0275inj=e.cJS({imports:[Gr]}),ge})(),Zn=(()=>{class ge{static withConfig(ne){return{ngModule:ge,providers:[{provide:_n,useValue:ne.warnOnNgModelWithFormControl}]}}}return ge.\u0275fac=function(ne){return new(ne||ge)},ge.\u0275mod=e.oAB({type:ge}),ge.\u0275inj=e.cJS({imports:[Gr]}),ge})(),ja=(()=>{class ge{group(ne,Qe=null){const Wt=this._reduceControls(ne);let ti,mi=null,Ct=null;return null!=Qe&&(function ns(ge){return void 0!==ge.asyncValidators||void 0!==ge.validators||void 0!==ge.updateOn}(Qe)?(mi=null!=Qe.validators?Qe.validators:null,Ct=null!=Qe.asyncValidators?Qe.asyncValidators:null,ti=null!=Qe.updateOn?Qe.updateOn:void 0):(mi=null!=Qe.validator?Qe.validator:null,Ct=null!=Qe.asyncValidator?Qe.asyncValidator:null)),new Di(Wt,{asyncValidators:Ct,updateOn:ti,validators:mi})}control(ne,Qe,Wt){return new Ui(ne,Qe,Wt)}array(ne,Qe,Wt){const mi=ne.map(Ct=>this._createControl(Ct));return new Xi(mi,Qe,Wt)}_reduceControls(ne){const Qe={};return Object.keys(ne).forEach(Wt=>{Qe[Wt]=this._createControl(ne[Wt])}),Qe}_createControl(ne){return ne instanceof Ui||ne instanceof Di||ne instanceof Xi?ne:Array.isArray(ne)?this.control(ne[0],ne.length>1?ne[1]:null,ne.length>2?ne[2]:null):this.control(ne)}}return ge.\u0275fac=function(ne){return new(ne||ge)},ge.\u0275prov=e.Yz7({token:ge,factory:ge.\u0275fac,providedIn:Zn}),ge})()},1079:(Ve,Q,m)=>{"use strict";m.d(Q,{XC:()=>x,Bb:()=>Ie,ZL:()=>Ce});var e=m(5664),t=m(3191),y=m(5e3),C=m(508),o=m(727),M=m(7579),l=m(9770),N=m(6451),s=m(9646),D=m(4968),A=m(925),O=m(9808),E=m(9776),P=m(5303),w=m(1159),Z=m(7429),j=m(3075),W=m(7322),ie=m(5698),ee=m(3900),_e=m(9300),ce=m(4004),re=m(8505),de=m(4086),oe=m(226);const ae=["panel"];function b(K,Me){if(1&K&&(y.TgZ(0,"div",0,1),y.Hsn(2),y.qZA()),2&K){const we=Me.id,z=y.oxw();y.Q6J("id",z.id)("ngClass",z._classList),y.uIk("aria-label",z.ariaLabel||null)("aria-labelledby",z._getPanelAriaLabelledby(we))}}const i=["*"];let a=0;class p{constructor(Me,we){this.source=Me,this.option=we}}const u=(0,C.Kr)(class{}),_=new y.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function L(){return{autoActiveFirstOption:!1}}});let I=(()=>{class K extends u{constructor(we,z,Ge,vt){super(),this._changeDetectorRef=we,this._elementRef=z,this._activeOptionChanges=o.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new y.vpe,this.opened=new y.vpe,this.closed=new y.vpe,this.optionActivated=new y.vpe,this._classList={},this.id="mat-autocomplete-"+a++,this.inertGroups=(null==vt?void 0:vt.SAFARI)||!1,this._autoActiveFirstOption=!!Ge.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(we){this._autoActiveFirstOption=(0,t.Ig)(we)}set classList(we){this._classList=we&&we.length?(0,t.du)(we).reduce((z,Ge)=>(z[Ge]=!0,z),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new e.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(we=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[we]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(we){this.panel&&(this.panel.nativeElement.scrollTop=we)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(we){const z=new p(this,we);this.optionSelected.emit(z)}_getPanelAriaLabelledby(we){return this.ariaLabel?null:this.ariaLabelledby?(we?we+" ":"")+this.ariaLabelledby:we}_setVisibilityClasses(we){we[this._visibleClass]=this.showPanel,we[this._hiddenClass]=!this.showPanel}}return K.\u0275fac=function(we){return new(we||K)(y.Y36(y.sBO),y.Y36(y.SBq),y.Y36(_),y.Y36(A.t4))},K.\u0275dir=y.lG2({type:K,viewQuery:function(we,z){if(1&we&&(y.Gf(y.Rgc,7),y.Gf(ae,5)),2&we){let Ge;y.iGM(Ge=y.CRH())&&(z.template=Ge.first),y.iGM(Ge=y.CRH())&&(z.panel=Ge.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[y.qOj]}),K})(),x=(()=>{class K extends I{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return K.\u0275fac=function(){let Me;return function(z){return(Me||(Me=y.n5z(K)))(z||K)}}(),K.\u0275cmp=y.Xpm({type:K,selectors:[["mat-autocomplete"]],contentQueries:function(we,z,Ge){if(1&we&&(y.Suo(Ge,C.K7,5),y.Suo(Ge,C.ey,5)),2&we){let vt;y.iGM(vt=y.CRH())&&(z.optionGroups=vt),y.iGM(vt=y.CRH())&&(z.options=vt)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[y._Bn([{provide:C.HF,useExisting:K}]),y.qOj],ngContentSelectors:i,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(we,z){1&we&&(y.F$t(),y.YNc(0,b,3,4,"ng-template"))},directives:[O.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),K})();const r=new y.OlP("mat-autocomplete-scroll-strategy"),G={provide:r,deps:[E.aV],useFactory:function v(K){return()=>K.scrollStrategies.reposition()}},F={provide:j.JU,useExisting:(0,y.Gpc)(()=>Ce),multi:!0};let ye=(()=>{class K{constructor(we,z,Ge,vt,Re,Ne,he,Le,ke,q,$){this._element=we,this._overlay=z,this._viewContainerRef=Ge,this._zone=vt,this._changeDetectorRef=Re,this._dir=he,this._formField=Le,this._document=ke,this._viewportRuler=q,this._defaults=$,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=o.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new M.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,l.P)(()=>this.autocomplete&&this.autocomplete.options?(0,N.T)(...this.autocomplete.options.map(le=>le.onSelectionChange)):this._zone.onStable.pipe((0,ie.q)(1),(0,ee.w)(()=>this.optionSelections))),this._scrollStrategy=Ne}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(we){this._autocompleteDisabled=(0,t.Ig)(we)}ngAfterViewInit(){const we=this._getWindow();void 0!==we&&this._zone.runOutsideAngular(()=>we.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(we){we.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const we=this._getWindow();void 0!==we&&we.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,N.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,_e.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,_e.h)(()=>this._overlayAttached)):(0,s.of)()).pipe((0,ce.U)(we=>we instanceof C.rN?we:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,N.T)((0,D.R)(this._document,"click"),(0,D.R)(this._document,"auxclick"),(0,D.R)(this._document,"touchend")).pipe((0,_e.h)(we=>{const z=(0,A.sA)(we),Ge=this._formField?this._formField._elementRef.nativeElement:null,vt=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&z!==this._element.nativeElement&&(!Ge||!Ge.contains(z))&&(!vt||!vt.contains(z))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(z)}))}writeValue(we){Promise.resolve(null).then(()=>this._setTriggerValue(we))}registerOnChange(we){this._onChange=we}registerOnTouched(we){this._onTouched=we}setDisabledState(we){this._element.nativeElement.disabled=we}_handleKeydown(we){const z=we.keyCode;if(z===w.hY&&!(0,w.Vb)(we)&&we.preventDefault(),this.activeOption&&z===w.K5&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),we.preventDefault();else if(this.autocomplete){const Ge=this.autocomplete._keyManager.activeItem,vt=z===w.LH||z===w.JH;this.panelOpen||z===w.Mf?this.autocomplete._keyManager.onKeydown(we):vt&&this._canOpen()&&this.openPanel(),(vt||this.autocomplete._keyManager.activeItem!==Ge)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(we){let z=we.target,Ge=z.value;"number"===z.type&&(Ge=""==Ge?null:parseFloat(Ge)),this._previousValue!==Ge&&(this._previousValue=Ge,this._onChange(Ge),this._canOpen()&&this._document.activeElement===we.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(we=!1){this._formField&&"auto"===this._formField.floatLabel&&(we?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const we=this._zone.onStable.pipe((0,ie.q)(1)),z=this.autocomplete.options.changes.pipe((0,re.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,de.g)(0));return(0,N.T)(we,z).pipe((0,ee.w)(()=>{const Ge=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),Ge!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),(0,ie.q)(1)).subscribe(Ge=>this._setValueAndClose(Ge))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(we){const z=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(we):we,Ge=null!=z?z:"";this._formField?this._formField._control.value=Ge:this._element.nativeElement.value=Ge,this._previousValue=Ge}_setValueAndClose(we){we&&we.source&&(this._clearPreviousSelectedOption(we.source),this._setTriggerValue(we.source.value),this._onChange(we.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(we.source)),this.closePanel()}_clearPreviousSelectedOption(we){this.autocomplete.options.forEach(z=>{z!==we&&z.selected&&z.deselect()})}_attachOverlay(){var we;let z=this._overlayRef;z?(this._positionStrategy.setOrigin(this._getConnectedElement()),z.updateSize({width:this._getPanelWidth()})):(this._portal=new Z.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(we=this._formField)||void 0===we?void 0:we.getLabelId()}),z=this._overlay.create(this._getOverlayConfig()),this._overlayRef=z,z.keydownEvents().subscribe(vt=>{(vt.keyCode===w.hY&&!(0,w.Vb)(vt)||vt.keyCode===w.LH&&(0,w.Vb)(vt,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),vt.stopPropagation(),vt.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&z&&z.updateSize({width:this._getPanelWidth()})})),z&&!z.hasAttached()&&(z.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const Ge=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&Ge!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var we;return new E.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(we=this._defaults)||void 0===we?void 0:we.overlayPanelClass})}_getOverlayPosition(){const we=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(we),this._positionStrategy=we,we}_setStrategyPositions(we){const z=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Ge=this._aboveClass,vt=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Ge},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Ge}];let Re;Re="above"===this.position?vt:"below"===this.position?z:[...z,...vt],we.withPositions(Re)}_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 we=this.autocomplete;we.autoActiveFirstOption?we._keyManager.setFirstItemActive():we._keyManager.setActiveItem(-1)}_canOpen(){const we=this._element.nativeElement;return!we.readOnly&&!we.disabled&&!this._autocompleteDisabled}_getWindow(){var we;return(null===(we=this._document)||void 0===we?void 0:we.defaultView)||window}_scrollToOption(we){const z=this.autocomplete,Ge=(0,C.CB)(we,z.options,z.optionGroups);if(0===we&&1===Ge)z._setScrollTop(0);else if(z.panel){const vt=z.options.toArray()[we];if(vt){const Re=vt._getHostElement(),Ne=(0,C.jH)(Re.offsetTop,Re.offsetHeight,z._getScrollTop(),z.panel.nativeElement.offsetHeight);z._setScrollTop(Ne)}}}}return K.\u0275fac=function(we){return new(we||K)(y.Y36(y.SBq),y.Y36(E.aV),y.Y36(y.s_b),y.Y36(y.R0b),y.Y36(y.sBO),y.Y36(r),y.Y36(oe.Is,8),y.Y36(W.G_,9),y.Y36(O.K0,8),y.Y36(P.rL),y.Y36(_,8))},K.\u0275dir=y.lG2({type:K,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[y.TTD]}),K})(),Ce=(()=>{class K extends ye{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return K.\u0275fac=function(){let Me;return function(z){return(Me||(Me=y.n5z(K)))(z||K)}}(),K.\u0275dir=y.lG2({type:K,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(we,z){1&we&&y.NdJ("focusin",function(){return z._handleFocus()})("blur",function(){return z._onTouched()})("input",function(vt){return z._handleInput(vt)})("keydown",function(vt){return z._handleKeydown(vt)}),2&we&&y.uIk("autocomplete",z.autocompleteAttribute)("role",z.autocompleteDisabled?null:"combobox")("aria-autocomplete",z.autocompleteDisabled?null:"list")("aria-activedescendant",z.panelOpen&&z.activeOption?z.activeOption.id:null)("aria-expanded",z.autocompleteDisabled?null:z.panelOpen.toString())("aria-owns",z.autocompleteDisabled||!z.panelOpen||null==z.autocomplete?null:z.autocomplete.id)("aria-haspopup",!z.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[y._Bn([F]),y.qOj]}),K})(),Ie=(()=>{class K{}return K.\u0275fac=function(we){return new(we||K)},K.\u0275mod=y.oAB({type:K}),K.\u0275inj=y.cJS({providers:[G],imports:[[E.U8,C.Ng,C.BQ,O.ez],P.ZD,C.Ng,C.BQ]}),K})()},7544:(Ve,Q,m)=>{"use strict";m.d(Q,{k:()=>s,g:()=>D});var e=m(5e3),t=m(508),y=m(5664),C=m(3191),o=m(6360);let M=0;const l=(0,t.Id)(class{}),N="mat-badge-content";let s=(()=>{class A extends l{constructor(E,P,w,Z,j){super(),this._ngZone=E,this._elementRef=P,this._ariaDescriber=w,this._renderer=Z,this._animationMode=j,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=M++,this._isInitialized=!1}get color(){return this._color}set color(E){this._setColor(E),this._color=E}get overlap(){return this._overlap}set overlap(E){this._overlap=(0,C.Ig)(E)}get content(){return this._content}set content(E){this._updateRenderedContent(E)}get description(){return this._description}set description(E){this._updateHostAriaDescription(E)}get hidden(){return this._hidden}set hidden(E){this._hidden=(0,C.Ig)(E)}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._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const E=this._renderer.createElement("span"),P="mat-badge-active";return E.setAttribute("id",`mat-badge-content-${this._id}`),E.setAttribute("aria-hidden","true"),E.classList.add(N),"NoopAnimations"===this._animationMode&&E.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(E),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{E.classList.add(P)})}):E.classList.add(P),E}_updateRenderedContent(E){const P=`${null!=E?E:""}`.trim();this._isInitialized&&P&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=P),this._content=P}_updateHostAriaDescription(E){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),E&&this._ariaDescriber.describe(this._elementRef.nativeElement,E),this._description=E}_setColor(E){const P=this._elementRef.nativeElement.classList;P.remove(`mat-badge-${this._color}`),E&&P.add(`mat-badge-${E}`)}_clearExistingBadges(){const E=this._elementRef.nativeElement.querySelectorAll(`:scope > .${N}`);for(const P of Array.from(E))P!==this._badgeElement&&P.remove()}}return A.\u0275fac=function(E){return new(E||A)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(y.$s),e.Y36(e.Qsj),e.Y36(o.Qb,8))},A.\u0275dir=e.lG2({type:A,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(E,P){2&E&&e.ekj("mat-badge-overlap",P.overlap)("mat-badge-above",P.isAbove())("mat-badge-below",!P.isAbove())("mat-badge-before",!P.isAfter())("mat-badge-after",P.isAfter())("mat-badge-small","small"===P.size)("mat-badge-medium","medium"===P.size)("mat-badge-large","large"===P.size)("mat-badge-hidden",P.hidden||!P.content)("mat-badge-disabled",P.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[e.qOj]}),A})(),D=(()=>{class A{}return A.\u0275fac=function(E){return new(E||A)},A.\u0275mod=e.oAB({type:A}),A.\u0275inj=e.cJS({imports:[[y.rt,t.BQ],t.BQ]}),A})()},7423:(Ve,Q,m)=>{"use strict";m.d(Q,{lW:()=>A,ot:()=>E});var e=m(5e3),t=m(508),y=m(6360),C=m(5664);const o=["mat-button",""],M=["*"],s=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],D=(0,t.pj)((0,t.Id)((0,t.Kr)(class{constructor(P){this._elementRef=P}})));let A=(()=>{class P extends D{constructor(Z,j,W){super(Z),this._focusMonitor=j,this._animationMode=W,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const ie of s)this._hasHostAttributes(ie)&&this._getHostElement().classList.add(ie);Z.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(Z,j){Z?this._focusMonitor.focusVia(this._getHostElement(),Z,j):this._getHostElement().focus(j)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...Z){return Z.some(j=>this._getHostElement().hasAttribute(j))}}return P.\u0275fac=function(Z){return new(Z||P)(e.Y36(e.SBq),e.Y36(C.tE),e.Y36(y.Qb,8))},P.\u0275cmp=e.Xpm({type:P,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(Z,j){if(1&Z&&e.Gf(t.wG,5),2&Z){let W;e.iGM(W=e.CRH())&&(j.ripple=W.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(Z,j){2&Z&&(e.uIk("disabled",j.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===j._animationMode)("mat-button-disabled",j.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:o,ngContentSelectors:M,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(Z,j){1&Z&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1),e._UZ(3,"span",2)),2&Z&&(e.xp6(2),e.ekj("mat-button-ripple-round",j.isRoundButton||j.isIconButton),e.Q6J("matRippleDisabled",j._isRippleDisabled())("matRippleCentered",j.isIconButton)("matRippleTrigger",j._getHostElement()))},directives:[t.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),P})(),E=(()=>{class P{}return P.\u0275fac=function(Z){return new(Z||P)},P.\u0275mod=e.oAB({type:P}),P.\u0275inj=e.cJS({imports:[[t.si,t.BQ],t.BQ]}),P})()},9224:(Ve,Q,m)=>{"use strict";m.d(Q,{a8:()=>_e,dn:()=>D,dk:()=>ce,QW:()=>de,$j:()=>O,n5:()=>A});var e=m(5e3),t=m(6360),y=m(508);const C=["*",[["mat-card-footer"]]],o=["*","mat-card-footer"],M=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],l=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let D=(()=>{class oe{}return oe.\u0275fac=function(b){return new(b||oe)},oe.\u0275dir=e.lG2({type:oe,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),oe})(),A=(()=>{class oe{}return oe.\u0275fac=function(b){return new(b||oe)},oe.\u0275dir=e.lG2({type:oe,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),oe})(),O=(()=>{class oe{}return oe.\u0275fac=function(b){return new(b||oe)},oe.\u0275dir=e.lG2({type:oe,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),oe})(),_e=(()=>{class oe{constructor(b){this._animationMode=b}}return oe.\u0275fac=function(b){return new(b||oe)(e.Y36(t.Qb,8))},oe.\u0275cmp=e.Xpm({type:oe,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(b,i){2&b&&e.ekj("_mat-animation-noopable","NoopAnimations"===i._animationMode)},exportAs:["matCard"],ngContentSelectors:o,decls:2,vars:0,template:function(b,i){1&b&&(e.F$t(C),e.Hsn(0),e.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),oe})(),ce=(()=>{class oe{}return oe.\u0275fac=function(b){return new(b||oe)},oe.\u0275cmp=e.Xpm({type:oe,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:l,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(b,i){1&b&&(e.F$t(M),e.Hsn(0),e.TgZ(1,"div",0),e.Hsn(2,1),e.qZA(),e.Hsn(3,2))},encapsulation:2,changeDetection:0}),oe})(),de=(()=>{class oe{}return oe.\u0275fac=function(b){return new(b||oe)},oe.\u0275mod=e.oAB({type:oe}),oe.\u0275inj=e.cJS({imports:[[y.BQ],y.BQ]}),oe})()},7446:(Ve,Q,m)=>{"use strict";m.d(Q,{oG:()=>W,p9:()=>ce});var e=m(3191),t=m(5e3),y=m(3075),C=m(508),o=m(6360),M=m(5664),l=m(7144);const N=["input"],s=function(re){return{enterDuration:re}},D=["*"],A=new t.OlP("mat-checkbox-default-options",{providedIn:"root",factory:O});function O(){return{color:"accent",clickAction:"check-indeterminate"}}let E=0;const P=O(),w={provide:y.JU,useExisting:(0,t.Gpc)(()=>W),multi:!0};class Z{}const j=(0,C.sb)((0,C.pj)((0,C.Kr)((0,C.Id)(class{constructor(re){this._elementRef=re}}))));let W=(()=>{class re extends j{constructor(oe,ae,b,i,a,p,u){super(oe),this._changeDetectorRef=ae,this._focusMonitor=b,this._ngZone=i,this._animationMode=p,this._options=u,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++E,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new t.vpe,this.indeterminateChange=new t.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||P,this.color=this.defaultColor=this._options.color||P.color,this.tabIndex=parseInt(a)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(oe){this._required=(0,e.Ig)(oe)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(oe=>{oe||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(oe){oe!=this.checked&&(this._checked=oe,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(oe){const ae=(0,e.Ig)(oe);ae!==this.disabled&&(this._disabled=ae,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(oe){const ae=oe!=this._indeterminate;this._indeterminate=(0,e.Ig)(oe),ae&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(oe){this.checked=!!oe}registerOnChange(oe){this._controlValueAccessorChangeFn=oe}registerOnTouched(oe){this._onTouched=oe}setDisabledState(oe){this.disabled=oe}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(oe){let ae=this._currentCheckState,b=this._elementRef.nativeElement;if(ae!==oe&&(this._currentAnimationClass.length>0&&b.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(ae,oe),this._currentCheckState=oe,this._currentAnimationClass.length>0)){b.classList.add(this._currentAnimationClass);const i=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{b.classList.remove(i)},1e3)})}}_emitChangeEvent(){const oe=new Z;oe.source=this,oe.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(oe),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(oe){var ae;const b=null===(ae=this._options)||void 0===ae?void 0:ae.clickAction;oe.stopPropagation(),this.disabled||"noop"===b?!this.disabled&&"noop"===b&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==b&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(oe,ae){oe?this._focusMonitor.focusVia(this._inputElement,oe,ae):this._inputElement.nativeElement.focus(ae)}_onInteractionEvent(oe){oe.stopPropagation()}_getAnimationClassForCheckStateTransition(oe,ae){if("NoopAnimations"===this._animationMode)return"";let b="";switch(oe){case 0:if(1===ae)b="unchecked-checked";else{if(3!=ae)return"";b="unchecked-indeterminate"}break;case 2:b=1===ae?"unchecked-checked":"unchecked-indeterminate";break;case 1:b=2===ae?"checked-unchecked":"checked-indeterminate";break;case 3:b=1===ae?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${b}`}_syncIndeterminate(oe){const ae=this._inputElement;ae&&(ae.nativeElement.indeterminate=oe)}}return re.\u0275fac=function(oe){return new(oe||re)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(M.tE),t.Y36(t.R0b),t.$8M("tabindex"),t.Y36(o.Qb,8),t.Y36(A,8))},re.\u0275cmp=t.Xpm({type:re,selectors:[["mat-checkbox"]],viewQuery:function(oe,ae){if(1&oe&&(t.Gf(N,5),t.Gf(C.wG,5)),2&oe){let b;t.iGM(b=t.CRH())&&(ae._inputElement=b.first),t.iGM(b=t.CRH())&&(ae.ripple=b.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(oe,ae){2&oe&&(t.Ikx("id",ae.id),t.uIk("tabindex",null),t.ekj("mat-checkbox-indeterminate",ae.indeterminate)("mat-checkbox-checked",ae.checked)("mat-checkbox-disabled",ae.disabled)("mat-checkbox-label-before","before"==ae.labelPosition)("_mat-animation-noopable","NoopAnimations"===ae._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[t._Bn([w]),t.qOj],ngContentSelectors:D,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(oe,ae){if(1&oe&&(t.F$t(),t.TgZ(0,"label",0,1),t.TgZ(2,"span",2),t.TgZ(3,"input",3,4),t.NdJ("change",function(i){return ae._onInteractionEvent(i)})("click",function(i){return ae._onInputClick(i)}),t.qZA(),t.TgZ(5,"span",5),t._UZ(6,"span",6),t.qZA(),t._UZ(7,"span",7),t.TgZ(8,"span",8),t.O4$(),t.TgZ(9,"svg",9),t._UZ(10,"path",10),t.qZA(),t.kcU(),t._UZ(11,"span",11),t.qZA(),t.qZA(),t.TgZ(12,"span",12,13),t.NdJ("cdkObserveContent",function(){return ae._onLabelTextChange()}),t.TgZ(14,"span",14),t._uU(15,"\xa0"),t.qZA(),t.Hsn(16),t.qZA(),t.qZA()),2&oe){const b=t.MAs(1),i=t.MAs(13);t.uIk("for",ae.inputId),t.xp6(2),t.ekj("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),t.xp6(1),t.Q6J("id",ae.inputId)("required",ae.required)("checked",ae.checked)("disabled",ae.disabled)("tabIndex",ae.tabIndex),t.uIk("value",ae.value)("name",ae.name)("aria-label",ae.ariaLabel||null)("aria-labelledby",ae.ariaLabelledby)("aria-checked",ae._getAriaChecked())("aria-describedby",ae.ariaDescribedby),t.xp6(2),t.Q6J("matRippleTrigger",b)("matRippleDisabled",ae._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",t.VKq(19,s,"NoopAnimations"===ae._animationMode?0:150))}},directives:[C.wG,l.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-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 mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),re})(),_e=(()=>{class re{}return re.\u0275fac=function(oe){return new(oe||re)},re.\u0275mod=t.oAB({type:re}),re.\u0275inj=t.cJS({}),re})(),ce=(()=>{class re{}return re.\u0275fac=function(oe){return new(oe||re)},re.\u0275mod=t.oAB({type:re}),re.\u0275inj=t.cJS({imports:[[C.si,C.BQ,l.Q8,_e],C.BQ,_e]}),re})()},508:(Ve,Q,m)=>{"use strict";m.d(Q,{yN:()=>ie,mZ:()=>ee,_A:()=>r,rD:()=>Ie,sG:()=>v,K7:()=>Zt,HF:()=>ft,Y2:()=>le,BQ:()=>de,X2:()=>K,uc:()=>z,XK:()=>Be,ey:()=>ei,Ng:()=>hi,rN:()=>Ii,nP:()=>lt,us:()=>nt,wG:()=>xe,si:()=>Ue,LF:()=>U,IR:()=>ke,CB:()=>Pi,jH:()=>ai,pj:()=>a,Kr:()=>p,Id:()=>i,FD:()=>_,dB:()=>L,sb:()=>u,E0:()=>Me});var e=m(5e3),t=m(226),C=m(9808),o=m(925),M=m(5664),l=m(3191),N=m(7579),s=m(8306),D=m(8675),A=m(6360),O=m(1159);function w(Ze,Ee){if(1&Ze&&e._UZ(0,"mat-pseudo-checkbox",4),2&Ze){const Y=e.oxw();e.Q6J("state",Y.selected?"checked":"unchecked")("disabled",Y.disabled)}}function Z(Ze,Ee){if(1&Ze&&(e.TgZ(0,"span",5),e._uU(1),e.qZA()),2&Ze){const Y=e.oxw();e.xp6(1),e.hij("(",Y.group.label,")")}}const j=["*"];let ie=(()=>{class Ze{}return Ze.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Ze.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Ze.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Ze.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Ze})(),ee=(()=>{class Ze{}return Ze.COMPLEX="375ms",Ze.ENTERING="225ms",Ze.EXITING="195ms",Ze})();const re=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function ce(){return!0}});let de=(()=>{class Ze{constructor(Y,me,De){this._sanityChecks=me,this._document=De,this._hasDoneGlobalChecks=!1,Y._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Y){return!(0,o.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Y])}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(e.LFG(M.qm),e.LFG(re,8),e.LFG(C.K0))},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({imports:[[t.vT],t.vT]}),Ze})();function i(Ze){return class extends Ze{constructor(...Ee){super(...Ee),this._disabled=!1}get disabled(){return this._disabled}set disabled(Ee){this._disabled=(0,l.Ig)(Ee)}}}function a(Ze,Ee){return class extends Ze{constructor(...Y){super(...Y),this.defaultColor=Ee,this.color=Ee}get color(){return this._color}set color(Y){const me=Y||this.defaultColor;me!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),me&&this._elementRef.nativeElement.classList.add(`mat-${me}`),this._color=me)}}}function p(Ze){return class extends Ze{constructor(...Ee){super(...Ee),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Ee){this._disableRipple=(0,l.Ig)(Ee)}}}function u(Ze,Ee=0){return class extends Ze{constructor(...Y){super(...Y),this._tabIndex=Ee,this.defaultTabIndex=Ee}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Y){this._tabIndex=null!=Y?(0,l.su)(Y):this.defaultTabIndex}}}function _(Ze){return class extends Ze{constructor(...Ee){super(...Ee),this.stateChanges=new N.x,this.errorState=!1}updateErrorState(){const Ee=this.errorState,et=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);et!==Ee&&(this.errorState=et,this.stateChanges.next())}}}function L(Ze){return class extends Ze{constructor(...Ee){super(...Ee),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new s.y(Y=>{this._isInitialized?this._notifySubscriber(Y):this._pendingSubscribers.push(Y)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Ee){Ee.next(),Ee.complete()}}}const I=new e.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function x(){return(0,e.f3M)(e.soG)}});class r{constructor(){this._localeChanges=new N.x,this.localeChanges=this._localeChanges}getValidDateOrNull(Ee){return this.isDateInstance(Ee)&&this.isValid(Ee)?Ee:null}deserialize(Ee){return null==Ee||this.isDateInstance(Ee)&&this.isValid(Ee)?Ee:this.invalid()}setLocale(Ee){this.locale=Ee,this._localeChanges.next()}compareDate(Ee,Y){return this.getYear(Ee)-this.getYear(Y)||this.getMonth(Ee)-this.getMonth(Y)||this.getDate(Ee)-this.getDate(Y)}sameDate(Ee,Y){if(Ee&&Y){let me=this.isValid(Ee),De=this.isValid(Y);return me&&De?!this.compareDate(Ee,Y):me==De}return Ee==Y}clampDate(Ee,Y,me){return Y&&this.compareDate(Ee,Y)<0?Y:me&&this.compareDate(Ee,me)>0?me:Ee}}const v=new e.OlP("mat-date-formats"),G=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function F(Ze,Ee){const Y=Array(Ze);for(let me=0;me{class Ze extends r{constructor(Y,me){super(),this.useUtcForDisplay=!1,super.setLocale(Y)}getYear(Y){return Y.getFullYear()}getMonth(Y){return Y.getMonth()}getDate(Y){return Y.getDate()}getDayOfWeek(Y){return Y.getDay()}getMonthNames(Y){const me=new Intl.DateTimeFormat(this.locale,{month:Y,timeZone:"utc"});return F(12,De=>this._format(me,new Date(2017,De,1)))}getDateNames(){const Y=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return F(31,me=>this._format(Y,new Date(2017,0,me+1)))}getDayOfWeekNames(Y){const me=new Intl.DateTimeFormat(this.locale,{weekday:Y,timeZone:"utc"});return F(7,De=>this._format(me,new Date(2017,0,De+1)))}getYearName(Y){const me=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(me,Y)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(Y){return this.getDate(this._createDateWithOverflow(this.getYear(Y),this.getMonth(Y)+1,0))}clone(Y){return new Date(Y.getTime())}createDate(Y,me,De){let et=this._createDateWithOverflow(Y,me,De);return et.getMonth(),et}today(){return new Date}parse(Y){return"number"==typeof Y?new Date(Y):Y?new Date(Date.parse(Y)):null}format(Y,me){if(!this.isValid(Y))throw Error("NativeDateAdapter: Cannot format invalid date.");const De=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},me),{timeZone:"utc"}));return this._format(De,Y)}addCalendarYears(Y,me){return this.addCalendarMonths(Y,12*me)}addCalendarMonths(Y,me){let De=this._createDateWithOverflow(this.getYear(Y),this.getMonth(Y)+me,this.getDate(Y));return this.getMonth(De)!=((this.getMonth(Y)+me)%12+12)%12&&(De=this._createDateWithOverflow(this.getYear(De),this.getMonth(De),0)),De}addCalendarDays(Y,me){return this._createDateWithOverflow(this.getYear(Y),this.getMonth(Y),this.getDate(Y)+me)}toIso8601(Y){return[Y.getUTCFullYear(),this._2digit(Y.getUTCMonth()+1),this._2digit(Y.getUTCDate())].join("-")}deserialize(Y){if("string"==typeof Y){if(!Y)return null;if(G.test(Y)){let me=new Date(Y);if(this.isValid(me))return me}}return super.deserialize(Y)}isDateInstance(Y){return Y instanceof Date}isValid(Y){return!isNaN(Y.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(Y,me,De){const et=new Date;return et.setFullYear(Y,me,De),et.setHours(0,0,0,0),et}_2digit(Y){return("00"+Y).slice(-2)}_format(Y,me){const De=new Date;return De.setUTCFullYear(me.getFullYear(),me.getMonth(),me.getDate()),De.setUTCHours(me.getHours(),me.getMinutes(),me.getSeconds(),me.getMilliseconds()),Y.format(De)}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(e.LFG(I,8),e.LFG(o.t4))},Ze.\u0275prov=e.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})();const ye={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Ce=(()=>{class Ze{}return Ze.\u0275fac=function(Y){return new(Y||Ze)},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({providers:[{provide:r,useClass:U}],imports:[[o.ud]]}),Ze})(),Be=(()=>{class Ze{}return Ze.\u0275fac=function(Y){return new(Y||Ze)},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({providers:[{provide:v,useValue:ye}],imports:[[Ce]]}),Ze})(),Ie=(()=>{class Ze{isErrorState(Y,me){return!!(Y&&Y.invalid&&(Y.touched||me&&me.submitted))}}return Ze.\u0275fac=function(Y){return new(Y||Ze)},Ze.\u0275prov=e.Yz7({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})(),K=(()=>{class Ze{}return Ze.\u0275fac=function(Y){return new(Y||Ze)},Ze.\u0275dir=e.lG2({type:Ze,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Ze})();function Me(Ze,Ee,Y="mat"){Ze.changes.pipe((0,D.O)(Ze)).subscribe(({length:me})=>{we(Ee,`${Y}-2-line`,!1),we(Ee,`${Y}-3-line`,!1),we(Ee,`${Y}-multi-line`,!1),2===me||3===me?we(Ee,`${Y}-${me}-line`,!0):me>3&&we(Ee,`${Y}-multi-line`,!0)})}function we(Ze,Ee,Y){Ze.nativeElement.classList.toggle(Ee,Y)}let z=(()=>{class Ze{}return Ze.\u0275fac=function(Y){return new(Y||Ze)},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({imports:[[de],de]}),Ze})();class Ge{constructor(Ee,Y,me){this._renderer=Ee,this.element=Y,this.config=me,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const vt={enterDuration:225,exitDuration:150},Ne=(0,o.i$)({passive:!0}),he=["mousedown","touchstart"],Le=["mouseup","mouseleave","touchend","touchcancel"];class ke{constructor(Ee,Y,me,De){this._target=Ee,this._ngZone=Y,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,De.isBrowser&&(this._containerElement=(0,l.fI)(me))}fadeInRipple(Ee,Y,me={}){const De=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),et=Object.assign(Object.assign({},vt),me.animation);me.centered&&(Ee=De.left+De.width/2,Y=De.top+De.height/2);const $t=me.radius||function $(Ze,Ee,Y){const me=Math.max(Math.abs(Ze-Y.left),Math.abs(Ze-Y.right)),De=Math.max(Math.abs(Ee-Y.top),Math.abs(Ee-Y.bottom));return Math.sqrt(me*me+De*De)}(Ee,Y,De),Nt=Ee-De.left,Jt=Y-De.top,ct=et.enterDuration,Pe=document.createElement("div");Pe.classList.add("mat-ripple-element"),Pe.style.left=Nt-$t+"px",Pe.style.top=Jt-$t+"px",Pe.style.height=2*$t+"px",Pe.style.width=2*$t+"px",null!=me.color&&(Pe.style.backgroundColor=me.color),Pe.style.transitionDuration=`${ct}ms`,this._containerElement.appendChild(Pe),function q(Ze){window.getComputedStyle(Ze).getPropertyValue("opacity")}(Pe),Pe.style.transform="scale(1)";const Fe=new Ge(this,Pe,me);return Fe.state=0,this._activeRipples.add(Fe),me.persistent||(this._mostRecentTransientRipple=Fe),this._runTimeoutOutsideZone(()=>{const at=Fe===this._mostRecentTransientRipple;Fe.state=1,!me.persistent&&(!at||!this._isPointerDown)&&Fe.fadeOut()},ct),Fe}fadeOutRipple(Ee){const Y=this._activeRipples.delete(Ee);if(Ee===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!Y)return;const me=Ee.element,De=Object.assign(Object.assign({},vt),Ee.config.animation);me.style.transitionDuration=`${De.exitDuration}ms`,me.style.opacity="0",Ee.state=2,this._runTimeoutOutsideZone(()=>{Ee.state=3,me.remove()},De.exitDuration)}fadeOutAll(){this._activeRipples.forEach(Ee=>Ee.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(Ee=>{Ee.config.persistent||Ee.fadeOut()})}setupTriggerEvents(Ee){const Y=(0,l.fI)(Ee);!Y||Y===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Y,this._registerEvents(he))}handleEvent(Ee){"mousedown"===Ee.type?this._onMousedown(Ee):"touchstart"===Ee.type?this._onTouchStart(Ee):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Le),this._pointerUpEventsRegistered=!0)}_onMousedown(Ee){const Y=(0,M.X6)(Ee),me=this._lastTouchStartEvent&&Date.now(){!Ee.config.persistent&&(1===Ee.state||Ee.config.terminateOnPointerUp&&0===Ee.state)&&Ee.fadeOut()}))}_runTimeoutOutsideZone(Ee,Y=0){this._ngZone.runOutsideAngular(()=>setTimeout(Ee,Y))}_registerEvents(Ee){this._ngZone.runOutsideAngular(()=>{Ee.forEach(Y=>{this._triggerElement.addEventListener(Y,this,Ne)})})}_removeTriggerEvents(){this._triggerElement&&(he.forEach(Ee=>{this._triggerElement.removeEventListener(Ee,this,Ne)}),this._pointerUpEventsRegistered&&Le.forEach(Ee=>{this._triggerElement.removeEventListener(Ee,this,Ne)}))}}const le=new e.OlP("mat-ripple-global-options");let xe=(()=>{class Ze{constructor(Y,me,De,et,$t){this._elementRef=Y,this._animationMode=$t,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=et||{},this._rippleRenderer=new ke(this,me,Y,De)}get disabled(){return this._disabled}set disabled(Y){Y&&this.fadeOutAllNonPersistent(),this._disabled=Y,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Y){this._trigger=Y,this._setupTriggerEventsIfEnabled()}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:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{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(Y,me=0,De){return"number"==typeof Y?this._rippleRenderer.fadeInRipple(Y,me,Object.assign(Object.assign({},this.rippleConfig),De)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),Y))}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(o.t4),e.Y36(le,8),e.Y36(A.Qb,8))},Ze.\u0275dir=e.lG2({type:Ze,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Y,me){2&Y&&e.ekj("mat-ripple-unbounded",me.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),Ze})(),Ue=(()=>{class Ze{}return Ze.\u0275fac=function(Y){return new(Y||Ze)},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({imports:[[de,o.ud],de]}),Ze})(),lt=(()=>{class Ze{constructor(Y){this._animationMode=Y,this.state="unchecked",this.disabled=!1}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(e.Y36(A.Qb,8))},Ze.\u0275cmp=e.Xpm({type:Ze,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(Y,me){2&Y&&e.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===me.state)("mat-pseudo-checkbox-checked","checked"===me.state)("mat-pseudo-checkbox-disabled",me.disabled)("_mat-animation-noopable","NoopAnimations"===me._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(Y,me){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;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-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),Ze})(),nt=(()=>{class Ze{}return Ze.\u0275fac=function(Y){return new(Y||Ze)},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({imports:[[de]]}),Ze})();const ft=new e.OlP("MAT_OPTION_PARENT_COMPONENT"),Zt=new e.OlP("MatOptgroup");let Vt=0;class Ii{constructor(Ee,Y=!1){this.source=Ee,this.isUserInput=Y}}let jt=(()=>{class Ze{constructor(Y,me,De,et){this._element=Y,this._changeDetectorRef=me,this._parent=De,this.group=et,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Vt++,this.onSelectionChange=new e.vpe,this._stateChanges=new N.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(Y){this._disabled=(0,l.Ig)(Y)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(Y,me){const De=this._getHostElement();"function"==typeof De.focus&&De.focus(me)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(Y){(Y.keyCode===O.K5||Y.keyCode===O.L_)&&!(0,O.Vb)(Y)&&(this._selectViaInteraction(),Y.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const Y=this.viewValue;Y!==this._mostRecentViewValue&&(this._mostRecentViewValue=Y,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Y=!1){this.onSelectionChange.emit(new Ii(this,Y))}}return Ze.\u0275fac=function(Y){e.$Z()},Ze.\u0275dir=e.lG2({type:Ze,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Ze})(),ei=(()=>{class Ze extends jt{constructor(Y,me,De,et){super(Y,me,De,et)}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(ft,8),e.Y36(Zt,8))},Ze.\u0275cmp=e.Xpm({type:Ze,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(Y,me){1&Y&&e.NdJ("click",function(){return me._selectViaInteraction()})("keydown",function(et){return me._handleKeydown(et)}),2&Y&&(e.Ikx("id",me.id),e.uIk("tabindex",me._getTabIndex())("aria-selected",me._getAriaSelected())("aria-disabled",me.disabled.toString()),e.ekj("mat-selected",me.selected)("mat-option-multiple",me.multiple)("mat-active",me.active)("mat-option-disabled",me.disabled))},exportAs:["matOption"],features:[e.qOj],ngContentSelectors:j,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(Y,me){1&Y&&(e.F$t(),e.YNc(0,w,1,2,"mat-pseudo-checkbox",0),e.TgZ(1,"span",1),e.Hsn(2),e.qZA(),e.YNc(3,Z,2,1,"span",2),e._UZ(4,"div",3)),2&Y&&(e.Q6J("ngIf",me.multiple),e.xp6(3),e.Q6J("ngIf",me.group&&me.group._inert),e.xp6(1),e.Q6J("matRippleTrigger",me._getHostElement())("matRippleDisabled",me.disabled||me.disableRipple))},directives:[C.O5,xe,lt],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Ze})();function Pi(Ze,Ee,Y){if(Y.length){let me=Ee.toArray(),De=Y.toArray(),et=0;for(let $t=0;$tY+me?Math.max(0,Ze-me+Ee):Y}let hi=(()=>{class Ze{}return Ze.\u0275fac=function(Y){return new(Y||Ze)},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({imports:[[Ue,C.ez,de,nt]]}),Ze})()},6856:(Ve,Q,m)=>{"use strict";m.d(Q,{Mq:()=>Nt,hl:()=>st,FA:()=>ve,nW:()=>li});var e=m(5664),t=m(9776),y=m(7429),C=m(9808),o=m(5e3),M=m(7423),l=m(5303),N=m(508),s=m(7579),D=m(727),A=m(6451),O=m(9646),E=m(1159),P=m(5698),w=m(8675),Z=m(9300),j=m(226),W=m(3191),ie=m(925),ee=m(1777),_e=m(3075),ce=m(7322),re=m(7531);const de=["mat-calendar-body",""];function oe(qe,yt){if(1&qe&&(o.TgZ(0,"tr",2),o.TgZ(1,"td",3),o._uU(2),o.qZA(),o.qZA()),2&qe){const fe=o.oxw();o.xp6(1),o.Udp("padding-top",fe._cellPadding)("padding-bottom",fe._cellPadding),o.uIk("colspan",fe.numCols),o.xp6(1),o.hij(" ",fe.label," ")}}function ae(qe,yt){if(1&qe&&(o.TgZ(0,"td",3),o._uU(1),o.qZA()),2&qe){const fe=o.oxw(2);o.Udp("padding-top",fe._cellPadding)("padding-bottom",fe._cellPadding),o.uIk("colspan",fe._firstRowOffset),o.xp6(1),o.hij(" ",fe._firstRowOffset>=fe.labelMinRequiredCells?fe.label:""," ")}}function b(qe,yt){if(1&qe){const fe=o.EpF();o.TgZ(0,"td",7),o.NdJ("click",function(St){const yi=o.CHM(fe).$implicit;return o.oxw(2)._cellClicked(yi,St)}),o.TgZ(1,"div",8),o._uU(2),o.qZA(),o._UZ(3,"div",9),o.qZA()}if(2&qe){const fe=yt.$implicit,Je=yt.index,St=o.oxw().index,Pt=o.oxw();o.Udp("width",Pt._cellWidth)("padding-top",Pt._cellPadding)("padding-bottom",Pt._cellPadding),o.ekj("mat-calendar-body-disabled",!fe.enabled)("mat-calendar-body-active",Pt._isActiveCell(St,Je))("mat-calendar-body-range-start",Pt._isRangeStart(fe.compareValue))("mat-calendar-body-range-end",Pt._isRangeEnd(fe.compareValue))("mat-calendar-body-in-range",Pt._isInRange(fe.compareValue))("mat-calendar-body-comparison-bridge-start",Pt._isComparisonBridgeStart(fe.compareValue,St,Je))("mat-calendar-body-comparison-bridge-end",Pt._isComparisonBridgeEnd(fe.compareValue,St,Je))("mat-calendar-body-comparison-start",Pt._isComparisonStart(fe.compareValue))("mat-calendar-body-comparison-end",Pt._isComparisonEnd(fe.compareValue))("mat-calendar-body-in-comparison-range",Pt._isInComparisonRange(fe.compareValue))("mat-calendar-body-preview-start",Pt._isPreviewStart(fe.compareValue))("mat-calendar-body-preview-end",Pt._isPreviewEnd(fe.compareValue))("mat-calendar-body-in-preview",Pt._isInPreview(fe.compareValue)),o.Q6J("ngClass",fe.cssClasses)("tabindex",Pt._isActiveCell(St,Je)?0:-1),o.uIk("data-mat-row",St)("data-mat-col",Je)("aria-label",fe.ariaLabel)("aria-disabled",!fe.enabled||null)("aria-selected",Pt._isSelected(fe.compareValue))("aria-current",Pt.todayValue===fe.compareValue?"date":null),o.xp6(1),o.ekj("mat-calendar-body-selected",Pt._isSelected(fe.compareValue))("mat-calendar-body-comparison-identical",Pt._isComparisonIdentical(fe.compareValue))("mat-calendar-body-today",Pt.todayValue===fe.compareValue),o.xp6(1),o.hij(" ",fe.displayValue," ")}}function i(qe,yt){if(1&qe&&(o.TgZ(0,"tr",4),o.YNc(1,ae,2,6,"td",5),o.YNc(2,b,4,47,"td",6),o.qZA()),2&qe){const fe=yt.$implicit,Je=yt.index,St=o.oxw();o.xp6(1),o.Q6J("ngIf",0===Je&&St._firstRowOffset),o.xp6(1),o.Q6J("ngForOf",fe)}}function a(qe,yt){if(1&qe&&(o.TgZ(0,"th",5),o.TgZ(1,"abbr",6),o._uU(2),o.qZA(),o.qZA()),2&qe){const fe=yt.$implicit;o.uIk("aria-label",fe.long),o.xp6(1),o.uIk("title",fe.long),o.xp6(1),o.Oqu(fe.narrow)}}const p=["*"];function u(qe,yt){}function _(qe,yt){if(1&qe){const fe=o.EpF();o.TgZ(0,"mat-month-view",5),o.NdJ("activeDateChange",function(St){return o.CHM(fe),o.oxw().activeDate=St})("_userSelection",function(St){return o.CHM(fe),o.oxw()._dateSelected(St)}),o.qZA()}if(2&qe){const fe=o.oxw();o.Q6J("activeDate",fe.activeDate)("selected",fe.selected)("dateFilter",fe.dateFilter)("maxDate",fe.maxDate)("minDate",fe.minDate)("dateClass",fe.dateClass)("comparisonStart",fe.comparisonStart)("comparisonEnd",fe.comparisonEnd)}}function L(qe,yt){if(1&qe){const fe=o.EpF();o.TgZ(0,"mat-year-view",6),o.NdJ("activeDateChange",function(St){return o.CHM(fe),o.oxw().activeDate=St})("monthSelected",function(St){return o.CHM(fe),o.oxw()._monthSelectedInYearView(St)})("selectedChange",function(St){return o.CHM(fe),o.oxw()._goToDateInView(St,"month")}),o.qZA()}if(2&qe){const fe=o.oxw();o.Q6J("activeDate",fe.activeDate)("selected",fe.selected)("dateFilter",fe.dateFilter)("maxDate",fe.maxDate)("minDate",fe.minDate)("dateClass",fe.dateClass)}}function I(qe,yt){if(1&qe){const fe=o.EpF();o.TgZ(0,"mat-multi-year-view",7),o.NdJ("activeDateChange",function(St){return o.CHM(fe),o.oxw().activeDate=St})("yearSelected",function(St){return o.CHM(fe),o.oxw()._yearSelectedInMultiYearView(St)})("selectedChange",function(St){return o.CHM(fe),o.oxw()._goToDateInView(St,"year")}),o.qZA()}if(2&qe){const fe=o.oxw();o.Q6J("activeDate",fe.activeDate)("selected",fe.selected)("dateFilter",fe.dateFilter)("maxDate",fe.maxDate)("minDate",fe.minDate)("dateClass",fe.dateClass)}}function x(qe,yt){}const r=["button"];function v(qe,yt){1&qe&&(o.O4$(),o.TgZ(0,"svg",3),o._UZ(1,"path",4),o.qZA())}const G=[[["","matDatepickerToggleIcon",""]]],F=["[matDatepickerToggleIcon]"];class ze{constructor(yt,fe,Je,St,Pt={},yi=yt,Ni){this.value=yt,this.displayValue=fe,this.ariaLabel=Je,this.enabled=St,this.cssClasses=Pt,this.compareValue=yi,this.rawValue=Ni}}let Ie=(()=>{class qe{constructor(fe,Je){this._elementRef=fe,this._ngZone=Je,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new o.vpe,this.previewChange=new o.vpe,this._enterHandler=St=>{if(this._skipNextFocus&&"focus"===St.type)this._skipNextFocus=!1;else if(St.target&&this.isRange){const Pt=this._getCellFromElement(St.target);Pt&&this._ngZone.run(()=>this.previewChange.emit({value:Pt.enabled?Pt:null,event:St}))}},this._leaveHandler=St=>{null!==this.previewEnd&&this.isRange&&St.target&&K(St.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:St}))},Je.runOutsideAngular(()=>{const St=fe.nativeElement;St.addEventListener("mouseenter",this._enterHandler,!0),St.addEventListener("focus",this._enterHandler,!0),St.addEventListener("mouseleave",this._leaveHandler,!0),St.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(fe,Je){fe.enabled&&this.selectedValueChange.emit({value:fe.value,event:Je})}_isSelected(fe){return this.startValue===fe||this.endValue===fe}ngOnChanges(fe){const Je=fe.numCols,{rows:St,numCols:Pt}=this;(fe.rows||Je)&&(this._firstRowOffset=St&&St.length&&St[0].length?Pt-St[0].length:0),(fe.cellAspectRatio||Je||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Pt+"%"),(Je||!this._cellWidth)&&(this._cellWidth=100/Pt+"%")}ngOnDestroy(){const fe=this._elementRef.nativeElement;fe.removeEventListener("mouseenter",this._enterHandler,!0),fe.removeEventListener("focus",this._enterHandler,!0),fe.removeEventListener("mouseleave",this._leaveHandler,!0),fe.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(fe,Je){let St=fe*this.numCols+Je;return fe&&(St-=this._firstRowOffset),St==this.activeCell}_focusActiveCell(fe=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(()=>{const Je=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Je&&(fe||(this._skipNextFocus=!0),Je.focus())})})}_isRangeStart(fe){return Me(fe,this.startValue,this.endValue)}_isRangeEnd(fe){return we(fe,this.startValue,this.endValue)}_isInRange(fe){return z(fe,this.startValue,this.endValue,this.isRange)}_isComparisonStart(fe){return Me(fe,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(fe,Je,St){if(!this._isComparisonStart(fe)||this._isRangeStart(fe)||!this._isInRange(fe))return!1;let Pt=this.rows[Je][St-1];if(!Pt){const yi=this.rows[Je-1];Pt=yi&&yi[yi.length-1]}return Pt&&!this._isRangeEnd(Pt.compareValue)}_isComparisonBridgeEnd(fe,Je,St){if(!this._isComparisonEnd(fe)||this._isRangeEnd(fe)||!this._isInRange(fe))return!1;let Pt=this.rows[Je][St+1];if(!Pt){const yi=this.rows[Je+1];Pt=yi&&yi[0]}return Pt&&!this._isRangeStart(Pt.compareValue)}_isComparisonEnd(fe){return we(fe,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(fe){return z(fe,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(fe){return this.comparisonStart===this.comparisonEnd&&fe===this.comparisonStart}_isPreviewStart(fe){return Me(fe,this.previewStart,this.previewEnd)}_isPreviewEnd(fe){return we(fe,this.previewStart,this.previewEnd)}_isInPreview(fe){return z(fe,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(fe){let Je;if(K(fe)?Je=fe:K(fe.parentNode)&&(Je=fe.parentNode),Je){const St=Je.getAttribute("data-mat-row"),Pt=Je.getAttribute("data-mat-col");if(St&&Pt)return this.rows[parseInt(St)][parseInt(Pt)]}return null}}return qe.\u0275fac=function(fe){return new(fe||qe)(o.Y36(o.SBq),o.Y36(o.R0b))},qe.\u0275cmp=o.Xpm({type:qe,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"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[o.TTD],attrs:de,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(fe,Je){1&fe&&(o.YNc(0,oe,3,6,"tr",0),o.YNc(1,i,3,2,"tr",1)),2&fe&&(o.Q6J("ngIf",Je._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],encapsulation:2,changeDetection:0}),qe})();function K(qe){return"TD"===qe.nodeName}function Me(qe,yt,fe){return null!==fe&&yt!==fe&&qe=yt&&qe===fe}function z(qe,yt,fe,Je){return Je&&null!==yt&&null!==fe&&yt!==fe&&qe>=yt&&qe<=fe}class Ge{constructor(yt,fe){this.start=yt,this.end=fe}}let vt=(()=>{class qe{constructor(fe,Je){this.selection=fe,this._adapter=Je,this._selectionChanged=new s.x,this.selectionChanged=this._selectionChanged,this.selection=fe}updateSelection(fe,Je){const St=this.selection;this.selection=fe,this._selectionChanged.next({selection:fe,source:Je,oldValue:St})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(fe){return this._adapter.isDateInstance(fe)&&this._adapter.isValid(fe)}}return qe.\u0275fac=function(fe){o.$Z()},qe.\u0275prov=o.Yz7({token:qe,factory:qe.\u0275fac}),qe})(),Re=(()=>{class qe extends vt{constructor(fe){super(null,fe)}add(fe){super.updateSelection(fe,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const fe=new qe(this._adapter);return fe.updateSelection(this.selection,this),fe}}return qe.\u0275fac=function(fe){return new(fe||qe)(o.LFG(N._A))},qe.\u0275prov=o.Yz7({token:qe,factory:qe.\u0275fac}),qe})();const Le={provide:vt,deps:[[new o.FiY,new o.tp0,vt],N._A],useFactory:function he(qe,yt){return qe||new Re(yt)}},$=new o.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let nt=(()=>{class qe{constructor(fe,Je,St,Pt,yi){this._changeDetectorRef=fe,this._dateFormats=Je,this._dateAdapter=St,this._dir=Pt,this._rangeStrategy=yi,this._rerenderSubscription=D.w0.EMPTY,this.selectedChange=new o.vpe,this._userSelection=new o.vpe,this.activeDateChange=new o.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(fe){const Je=this._activeDate,St=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(St,this.minDate,this.maxDate),this._hasSameMonthAndYear(Je,this._activeDate)||this._init()}get selected(){return this._selected}set selected(fe){this._selected=fe instanceof Ge?fe:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(fe){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}get maxDate(){return this._maxDate}set maxDate(fe){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnChanges(fe){const Je=fe.comparisonStart||fe.comparisonEnd;Je&&!Je.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(fe){const Je=fe.value,St=this._dateAdapter.getYear(this.activeDate),Pt=this._dateAdapter.getMonth(this.activeDate),yi=this._dateAdapter.createDate(St,Pt,Je);let Ni,Si;this._selected instanceof Ge?(Ni=this._getDateInCurrentMonth(this._selected.start),Si=this._getDateInCurrentMonth(this._selected.end)):Ni=Si=this._getDateInCurrentMonth(this._selected),(Ni!==Je||Si!==Je)&&this.selectedChange.emit(yi),this._userSelection.emit({value:yi,event:fe.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(fe){const Je=this._activeDate,St=this._isRtl();switch(fe.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,St?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,St?-1:1);break;case E.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case E.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case E.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case E.Ku:this.activeDate=fe.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case E.VM:this.activeDate=fe.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case E.K5:case E.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&fe.preventDefault());case E.hY:return void(null!=this._previewEnd&&!(0,E.Vb)(fe)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:fe}),fe.preventDefault(),fe.stopPropagation()));default:return}this._dateAdapter.compareDate(Je,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),fe.preventDefault()}_handleCalendarBodyKeyup(fe){(fe.keyCode===E.L_||fe.keyCode===E.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:fe}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let fe=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(fe)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(fe){this._matCalendarBody._focusActiveCell(fe)}_previewChanged({event:fe,value:Je}){if(this._rangeStrategy){const Pt=this._rangeStrategy.createPreview(Je?Je.rawValue:null,this.selected,fe);this._previewStart=this._getCellCompareValue(Pt.start),this._previewEnd=this._getCellCompareValue(Pt.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const fe=this._dateAdapter.getFirstDayOfWeek(),Je=this._dateAdapter.getDayOfWeekNames("narrow");let Pt=this._dateAdapter.getDayOfWeekNames("long").map((yi,Ni)=>({long:yi,narrow:Je[Ni]}));this._weekdays=Pt.slice(fe).concat(Pt.slice(0,fe))}_createWeekCells(){const fe=this._dateAdapter.getNumDaysInMonth(this.activeDate),Je=this._dateAdapter.getDateNames();this._weeks=[[]];for(let St=0,Pt=this._firstWeekOffset;St=0)&&(!this.maxDate||this._dateAdapter.compareDate(fe,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(fe))}_getDateInCurrentMonth(fe){return fe&&this._hasSameMonthAndYear(fe,this.activeDate)?this._dateAdapter.getDate(fe):null}_hasSameMonthAndYear(fe,Je){return!(!fe||!Je||this._dateAdapter.getMonth(fe)!=this._dateAdapter.getMonth(Je)||this._dateAdapter.getYear(fe)!=this._dateAdapter.getYear(Je))}_getCellCompareValue(fe){if(fe){const Je=this._dateAdapter.getYear(fe),St=this._dateAdapter.getMonth(fe),Pt=this._dateAdapter.getDate(fe);return new Date(Je,St,Pt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(fe){fe instanceof Ge?(this._rangeStart=this._getCellCompareValue(fe.start),this._rangeEnd=this._getCellCompareValue(fe.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(fe),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(fe){return!this.dateFilter||this.dateFilter(fe)}}return qe.\u0275fac=function(fe){return new(fe||qe)(o.Y36(o.sBO),o.Y36(N.sG,8),o.Y36(N._A,8),o.Y36(j.Is,8),o.Y36($,8))},qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-month-view"]],viewQuery:function(fe,Je){if(1&fe&&o.Gf(Ie,5),2&fe){let St;o.iGM(St=o.CRH())&&(Je._matCalendarBody=St.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[o.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keyup","keydown"],["scope","col"],[1,"mat-calendar-abbr"]],template:function(fe,Je){1&fe&&(o.TgZ(0,"table",0),o.TgZ(1,"thead",1),o.TgZ(2,"tr"),o.YNc(3,a,3,3,"th",2),o.qZA(),o.TgZ(4,"tr"),o._UZ(5,"th",3),o.qZA(),o.qZA(),o.TgZ(6,"tbody",4),o.NdJ("selectedValueChange",function(Pt){return Je._dateSelected(Pt)})("previewChange",function(Pt){return Je._previewChanged(Pt)})("keyup",function(Pt){return Je._handleCalendarBodyKeyup(Pt)})("keydown",function(Pt){return Je._handleCalendarBodyKeydown(Pt)}),o.qZA(),o.qZA()),2&fe&&(o.xp6(3),o.Q6J("ngForOf",Je._weekdays),o.xp6(3),o.Q6J("label",Je._monthLabel)("rows",Je._weeks)("todayValue",Je._todayDate)("startValue",Je._rangeStart)("endValue",Je._rangeEnd)("comparisonStart",Je._comparisonRangeStart)("comparisonEnd",Je._comparisonRangeEnd)("previewStart",Je._previewStart)("previewEnd",Je._previewEnd)("isRange",Je._isRange)("labelMinRequiredCells",3)("activeCell",Je._dateAdapter.getDate(Je.activeDate)-1))},directives:[C.sg,Ie],encapsulation:2,changeDetection:0}),qe})(),rt=(()=>{class qe{constructor(fe,Je,St){this._changeDetectorRef=fe,this._dateAdapter=Je,this._dir=St,this._rerenderSubscription=D.w0.EMPTY,this.selectedChange=new o.vpe,this.yearSelected=new o.vpe,this.activeDateChange=new o.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(fe){let Je=this._activeDate;const St=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(St,this.minDate,this.maxDate),Mt(this._dateAdapter,Je,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(fe){this._selected=fe instanceof Ge?fe:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe)),this._setSelectedYear(fe)}get minDate(){return this._minDate}set minDate(fe){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}get maxDate(){return this._maxDate}set maxDate(fe){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Je=this._dateAdapter.getYear(this._activeDate)-Zt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let St=0,Pt=[];St<24;St++)Pt.push(Je+St),4==Pt.length&&(this._years.push(Pt.map(yi=>this._createCellForYear(yi))),Pt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(fe){const Je=fe.value;this.yearSelected.emit(this._dateAdapter.createDate(Je,0,1));let St=this._dateAdapter.getMonth(this.activeDate),Pt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(Je,St,1));this.selectedChange.emit(this._dateAdapter.createDate(Je,St,Math.min(this._dateAdapter.getDate(this.activeDate),Pt)))}_handleCalendarBodyKeydown(fe){const Je=this._activeDate,St=this._isRtl();switch(fe.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,St?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,St?-1:1);break;case E.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case E.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case E.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Zt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Zt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case E.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,fe.altKey?-240:-24);break;case E.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,fe.altKey?240:24);break;case E.K5:case E.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Je,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),fe.preventDefault()}_handleCalendarBodyKeyup(fe){(fe.keyCode===E.L_||fe.keyCode===E.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:fe}),this._selectionKeyPressed=!1)}_getActiveCell(){return Zt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(fe){const Je=this._dateAdapter.createDate(fe,0,1),St=this._dateAdapter.getYearName(Je),Pt=this.dateClass?this.dateClass(Je,"multi-year"):void 0;return new ze(fe,St,St,this._shouldEnableYear(fe),Pt)}_shouldEnableYear(fe){if(null==fe||this.maxDate&&fe>this._dateAdapter.getYear(this.maxDate)||this.minDate&&fe{class qe{constructor(fe,Je,St,Pt){this._changeDetectorRef=fe,this._dateFormats=Je,this._dateAdapter=St,this._dir=Pt,this._rerenderSubscription=D.w0.EMPTY,this.selectedChange=new o.vpe,this.monthSelected=new o.vpe,this.activeDateChange=new o.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(fe){let Je=this._activeDate;const St=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(St,this.minDate,this.maxDate),this._dateAdapter.getYear(Je)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(fe){this._selected=fe instanceof Ge?fe:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe)),this._setSelectedMonth(fe)}get minDate(){return this._minDate}set minDate(fe){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}get maxDate(){return this._maxDate}set maxDate(fe){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(fe){const Je=fe.value,St=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Je,1);this.monthSelected.emit(St);const Pt=this._dateAdapter.getNumDaysInMonth(St);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Je,Math.min(this._dateAdapter.getDate(this.activeDate),Pt)))}_handleCalendarBodyKeydown(fe){const Je=this._activeDate,St=this._isRtl();switch(fe.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,St?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,St?-1:1);break;case E.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case E.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case E.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case E.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,fe.altKey?-10:-1);break;case E.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,fe.altKey?10:1);break;case E.K5:case E.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Je,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),fe.preventDefault()}_handleCalendarBodyKeyup(fe){(fe.keyCode===E.L_||fe.keyCode===E.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:fe}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let fe=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Je=>Je.map(St=>this._createCellForMonth(St,fe[St]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(fe){return fe&&this._dateAdapter.getYear(fe)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(fe):null}_createCellForMonth(fe,Je){const St=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),fe,1),Pt=this._dateAdapter.format(St,this._dateFormats.display.monthYearA11yLabel),yi=this.dateClass?this.dateClass(St,"year"):void 0;return new ze(fe,Je.toLocaleUpperCase(),Pt,this._shouldEnableMonth(fe),yi)}_shouldEnableMonth(fe){const Je=this._dateAdapter.getYear(this.activeDate);if(null==fe||this._isYearAndMonthAfterMaxDate(Je,fe)||this._isYearAndMonthBeforeMinDate(Je,fe))return!1;if(!this.dateFilter)return!0;for(let Pt=this._dateAdapter.createDate(Je,fe,1);this._dateAdapter.getMonth(Pt)==fe;Pt=this._dateAdapter.addCalendarDays(Pt,1))if(this.dateFilter(Pt))return!0;return!1}_isYearAndMonthAfterMaxDate(fe,Je){if(this.maxDate){const St=this._dateAdapter.getYear(this.maxDate),Pt=this._dateAdapter.getMonth(this.maxDate);return fe>St||fe===St&&Je>Pt}return!1}_isYearAndMonthBeforeMinDate(fe,Je){if(this.minDate){const St=this._dateAdapter.getYear(this.minDate),Pt=this._dateAdapter.getMonth(this.minDate);return fe{class qe{constructor(){this.changes=new s.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(fe,Je){return`${fe} \u2013 ${Je}`}}return qe.\u0275fac=function(fe){return new(fe||qe)},qe.\u0275prov=o.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),ei=0,Pi=(()=>{class qe{constructor(fe,Je,St,Pt,yi){this._intl=fe,this.calendar=Je,this._dateAdapter=St,this._dateFormats=Pt,this._buttonDescriptionId="mat-calendar-button-"+ei++,this.calendar.stateChanges.subscribe(()=>yi.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const Je=this._dateAdapter.getYear(this.calendar.activeDate)-Zt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),St=Je+24-1,Pt=this._dateAdapter.getYearName(this._dateAdapter.createDate(Je,0,1)),yi=this._dateAdapter.getYearName(this._dateAdapter.createDate(St,0,1));return this._intl.formatYearRange(Pt,yi)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){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.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)}_isSameView(fe,Je){return"month"==this.calendar.currentView?this._dateAdapter.getYear(fe)==this._dateAdapter.getYear(Je)&&this._dateAdapter.getMonth(fe)==this._dateAdapter.getMonth(Je):"year"==this.calendar.currentView?this._dateAdapter.getYear(fe)==this._dateAdapter.getYear(Je):Mt(this._dateAdapter,fe,Je,this.calendar.minDate,this.calendar.maxDate)}}return qe.\u0275fac=function(fe){return new(fe||qe)(o.Y36(jt),o.Y36((0,o.Gpc)(()=>ai)),o.Y36(N._A,8),o.Y36(N.sG,8),o.Y36(o.sBO))},qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:p,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(fe,Je){1&fe&&(o.F$t(),o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.TgZ(2,"button",2),o.NdJ("click",function(){return Je.currentPeriodClicked()}),o.TgZ(3,"span"),o._uU(4),o.qZA(),o.O4$(),o.TgZ(5,"svg",3),o._UZ(6,"polygon",4),o.qZA(),o.qZA(),o.kcU(),o._UZ(7,"div",5),o.Hsn(8),o.TgZ(9,"button",6),o.NdJ("click",function(){return Je.previousClicked()}),o.qZA(),o.TgZ(10,"button",7),o.NdJ("click",function(){return Je.nextClicked()}),o.qZA(),o.qZA(),o.qZA()),2&fe&&(o.xp6(2),o.uIk("aria-label",Je.periodButtonLabel)("aria-describedby",Je._buttonDescriptionId),o.xp6(1),o.uIk("id",Je._buttonDescriptionId),o.xp6(1),o.Oqu(Je.periodButtonText),o.xp6(1),o.ekj("mat-calendar-invert","month"!==Je.calendar.currentView),o.xp6(4),o.Q6J("disabled",!Je.previousEnabled()),o.uIk("aria-label",Je.prevButtonLabel),o.xp6(1),o.Q6J("disabled",!Je.nextEnabled()),o.uIk("aria-label",Je.nextButtonLabel))},directives:[M.lW,e.Qr],encapsulation:2,changeDetection:0}),qe})(),ai=(()=>{class qe{constructor(fe,Je,St,Pt){this._dateAdapter=Je,this._dateFormats=St,this._changeDetectorRef=Pt,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new o.vpe,this.yearSelected=new o.vpe,this.monthSelected=new o.vpe,this.viewChanged=new o.vpe(!0),this._userSelection=new o.vpe,this.stateChanges=new s.x,this._intlChanges=fe.changes.subscribe(()=>{Pt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(fe){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}get selected(){return this._selected}set selected(fe){this._selected=fe instanceof Ge?fe:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}get minDate(){return this._minDate}set minDate(fe){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}get maxDate(){return this._maxDate}set maxDate(fe){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}get activeDate(){return this._clampedActiveDate}set activeDate(fe){this._clampedActiveDate=this._dateAdapter.clampDate(fe,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(fe){const Je=this._currentView!==fe?fe:null;this._currentView=fe,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Je&&this.viewChanged.emit(Je)}ngAfterContentInit(){this._calendarHeaderPortal=new y.C5(this.headerComponent||Pi),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(fe){const Je=fe.minDate||fe.maxDate||fe.dateFilter;if(Je&&!Je.firstChange){const St=this._getCurrentViewComponent();St&&(this._changeDetectorRef.detectChanges(),St._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(fe){const Je=fe.value;(this.selected instanceof Ge||Je&&!this._dateAdapter.sameDate(Je,this.selected))&&this.selectedChange.emit(Je),this._userSelection.emit(fe)}_yearSelectedInMultiYearView(fe){this.yearSelected.emit(fe)}_monthSelectedInYearView(fe){this.monthSelected.emit(fe)}_goToDateInView(fe,Je){this.activeDate=fe,this.currentView=Je}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return qe.\u0275fac=function(fe){return new(fe||qe)(o.Y36(jt),o.Y36(N._A,8),o.Y36(N.sG,8),o.Y36(o.sBO))},qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-calendar"]],viewQuery:function(fe,Je){if(1&fe&&(o.Gf(nt,5),o.Gf(Ii,5),o.Gf(rt,5)),2&fe){let St;o.iGM(St=o.CRH())&&(Je.monthView=St.first),o.iGM(St=o.CRH())&&(Je.yearView=St.first),o.iGM(St=o.CRH())&&(Je.multiYearView=St.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"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[o._Bn([Le]),o.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(fe,Je){1&fe&&(o.YNc(0,u,0,0,"ng-template",0),o.TgZ(1,"div",1),o.YNc(2,_,1,8,"mat-month-view",2),o.YNc(3,L,1,6,"mat-year-view",3),o.YNc(4,I,1,6,"mat-multi-year-view",4),o.qZA()),2&fe&&(o.Q6J("cdkPortalOutlet",Je._calendarHeaderPortal),o.xp6(1),o.Q6J("ngSwitch",Je.currentView),o.xp6(1),o.Q6J("ngSwitchCase","month"),o.xp6(1),o.Q6J("ngSwitchCase","year"),o.xp6(1),o.Q6J("ngSwitchCase","multi-year"))},directives:[y.Pl,e.kH,C.RF,C.n9,nt,Ii,rt],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.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}.mat-calendar-abbr{text-decoration:none}\n'],encapsulation:2,changeDetection:0}),qe})();const hi={transformPanel:(0,ee.X$)("transformPanel",[(0,ee.eR)("void => enter-dropdown",(0,ee.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.F4)([(0,ee.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,ee.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,ee.eR)("void => enter-dialog",(0,ee.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.F4)([(0,ee.oB)({opacity:0,transform:"scale(0.7)"}),(0,ee.oB)({transform:"none",opacity:1})]))),(0,ee.eR)("* => void",(0,ee.jt)("100ms linear",(0,ee.oB)({opacity:0})))]),fadeInCalendar:(0,ee.X$)("fadeInCalendar",[(0,ee.SB)("void",(0,ee.oB)({opacity:0})),(0,ee.SB)("enter",(0,ee.oB)({opacity:1})),(0,ee.eR)("void => *",(0,ee.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Ze=0;const Ee=new o.OlP("mat-datepicker-scroll-strategy"),me={provide:Ee,deps:[t.aV],useFactory:function Y(qe){return()=>qe.scrollStrategies.reposition()}},De=(0,N.pj)(class{constructor(qe){this._elementRef=qe}});let et=(()=>{class qe extends De{constructor(fe,Je,St,Pt,yi,Ni){super(fe),this._changeDetectorRef=Je,this._globalModel=St,this._dateAdapter=Pt,this._rangeSelectionStrategy=yi,this._subscriptions=new D.w0,this._animationDone=new s.x,this._actionsPortal=null,this._closeButtonText=Ni.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(fe){const Je=this._model.selection,St=fe.value,Pt=Je instanceof Ge;if(Pt&&this._rangeSelectionStrategy){const yi=this._rangeSelectionStrategy.selectionFinished(St,Je,fe.event);this._model.updateSelection(yi,this)}else St&&(Pt||!this._dateAdapter.sameDate(St,Je))&&this._model.add(St);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return qe.\u0275fac=function(fe){return new(fe||qe)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(vt),o.Y36(N._A),o.Y36($,8),o.Y36(jt))},qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-datepicker-content"]],viewQuery:function(fe,Je){if(1&fe&&o.Gf(ai,5),2&fe){let St;o.iGM(St=o.CRH())&&(Je._calendar=St.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(fe,Je){1&fe&&o.WFA("@transformPanel.done",function(){return Je._animationDone.next()}),2&fe&&(o.d8E("@transformPanel",Je._animationState),o.ekj("mat-datepicker-content-touch",Je.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[o.qOj],decls:5,vars:20,consts:[["cdkTrapFocus","",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(fe,Je){1&fe&&(o.TgZ(0,"div",0),o.TgZ(1,"mat-calendar",1),o.NdJ("yearSelected",function(Pt){return Je.datepicker._selectYear(Pt)})("monthSelected",function(Pt){return Je.datepicker._selectMonth(Pt)})("viewChanged",function(Pt){return Je.datepicker._viewChanged(Pt)})("_userSelection",function(Pt){return Je._handleUserSelection(Pt)}),o.qZA(),o.YNc(2,x,0,0,"ng-template",2),o.TgZ(3,"button",3),o.NdJ("focus",function(){return Je._closeButtonFocused=!0})("blur",function(){return Je._closeButtonFocused=!1})("click",function(){return Je.datepicker.close()}),o._uU(4),o.qZA(),o.qZA()),2&fe&&(o.ekj("mat-datepicker-content-container-with-actions",Je._actionsPortal),o.xp6(1),o.Q6J("id",Je.datepicker.id)("ngClass",Je.datepicker.panelClass)("startAt",Je.datepicker.startAt)("startView",Je.datepicker.startView)("minDate",Je.datepicker._getMinDate())("maxDate",Je.datepicker._getMaxDate())("dateFilter",Je.datepicker._getDateFilter())("headerComponent",Je.datepicker.calendarHeaderComponent)("selected",Je._getSelected())("dateClass",Je.datepicker.dateClass)("comparisonStart",Je.comparisonStart)("comparisonEnd",Je.comparisonEnd)("@fadeInCalendar","enter"),o.xp6(1),o.Q6J("cdkPortalOutlet",Je._actionsPortal),o.xp6(1),o.ekj("cdk-visually-hidden",!Je._closeButtonFocused),o.Q6J("color",Je.color||"primary"),o.xp6(1),o.Oqu(Je._closeButtonText))},directives:[e.mK,ai,C.mk,y.Pl,M.lW],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-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;position:relative;overflow:visible}.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}@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,data:{animation:[hi.transformPanel,hi.fadeInCalendar]},changeDetection:0}),qe})(),$t=(()=>{class qe{constructor(fe,Je,St,Pt,yi,Ni,Si){this._overlay=fe,this._ngZone=Je,this._viewContainerRef=St,this._dateAdapter=yi,this._dir=Ni,this._model=Si,this._inputStateChanges=D.w0.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new o.vpe,this.monthSelected=new o.vpe,this.viewChanged=new o.vpe(!0),this.openedStream=new o.vpe,this.closedStream=new o.vpe,this._opened=!1,this.id="mat-datepicker-"+Ze++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new s.x,this._scrollStrategy=Pt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(fe){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(fe){this._color=fe}get touchUi(){return this._touchUi}set touchUi(fe){this._touchUi=(0,W.Ig)(fe)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(fe){const Je=(0,W.Ig)(fe);Je!==this._disabled&&(this._disabled=Je,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(fe){this._restoreFocus=(0,W.Ig)(fe)}get panelClass(){return this._panelClass}set panelClass(fe){this._panelClass=(0,W.du)(fe)}get opened(){return this._opened}set opened(fe){(0,W.Ig)(fe)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(fe){const Je=fe.xPosition||fe.yPosition;if(Je&&!Je.firstChange&&this._overlayRef){const St=this._overlayRef.getConfig().positionStrategy;St instanceof t._G&&(this._setConnectedPositions(St),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(fe){this._model.add(fe)}_selectYear(fe){this.yearSelected.emit(fe)}_selectMonth(fe){this.monthSelected.emit(fe)}_viewChanged(fe){this.viewChanged.emit(fe)}registerInput(fe){return this._inputStateChanges.unsubscribe(),this.datepickerInput=fe,this._inputStateChanges=fe.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(fe){this._actionsPortal=fe}removeActions(fe){fe===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,ie.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const Je=this._componentRef.instance;Je._startExitAnimation(),Je._animationDone.pipe((0,P.q)(1)).subscribe(()=>this._destroyOverlay())}const fe=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(fe)):fe()}_applyPendingSelection(){var fe,Je;null===(Je=null===(fe=this._componentRef)||void 0===fe?void 0:fe.instance)||void 0===Je||Je._applyPendingSelection()}_forwardContentValues(fe){fe.datepicker=this,fe.color=this.color,fe._actionsPortal=this._actionsPortal}_openOverlay(){this._destroyOverlay();const fe=this.touchUi,Je=this.datepickerInput.getOverlayLabelId(),St=new y.C5(et,this._viewContainerRef),Pt=this._overlayRef=this._overlay.create(new t.X_({positionStrategy:fe?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[fe?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:fe?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(fe?"dialog":"popup")})),yi=Pt.overlayElement;yi.setAttribute("role","dialog"),Je&&yi.setAttribute("aria-labelledby",Je),fe&&yi.setAttribute("aria-modal","true"),this._getCloseStream(Pt).subscribe(Ni=>{Ni&&Ni.preventDefault(),this.close()}),this._componentRef=Pt.attach(St),this._forwardContentValues(this._componentRef.instance),fe||this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(()=>Pt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const fe=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(fe)}_setConnectedPositions(fe){const Je="end"===this.xPosition?"end":"start",St="start"===Je?"end":"start",Pt="above"===this.yPosition?"bottom":"top",yi="top"===Pt?"bottom":"top";return fe.withPositions([{originX:Je,originY:yi,overlayX:Je,overlayY:Pt},{originX:Je,originY:Pt,overlayX:Je,overlayY:yi},{originX:St,originY:yi,overlayX:St,overlayY:Pt},{originX:St,originY:Pt,overlayX:St,overlayY:yi}])}_getCloseStream(fe){return(0,A.T)(fe.backdropClick(),fe.detachments(),fe.keydownEvents().pipe((0,Z.h)(Je=>Je.keyCode===E.hY&&!(0,E.Vb)(Je)||this.datepickerInput&&(0,E.Vb)(Je,"altKey")&&Je.keyCode===E.LH)))}}return qe.\u0275fac=function(fe){return new(fe||qe)(o.Y36(t.aV),o.Y36(o.R0b),o.Y36(o.s_b),o.Y36(Ee),o.Y36(N._A,8),o.Y36(j.Is,8),o.Y36(vt))},qe.\u0275dir=o.lG2({type:qe,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[o.TTD]}),qe})(),Nt=(()=>{class qe extends $t{}return qe.\u0275fac=function(){let yt;return function(Je){return(yt||(yt=o.n5z(qe)))(Je||qe)}}(),qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[o._Bn([Le,{provide:$t,useExisting:qe}]),o.qOj],decls:0,vars:0,template:function(fe,Je){},encapsulation:2,changeDetection:0}),qe})();class Jt{constructor(yt,fe){this.target=yt,this.targetElement=fe,this.value=this.target.value}}let ct=(()=>{class qe{constructor(fe,Je,St){this._elementRef=fe,this._dateAdapter=Je,this._dateFormats=St,this.dateChange=new o.vpe,this.dateInput=new o.vpe,this.stateChanges=new s.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=D.w0.EMPTY,this._localeSubscription=D.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Pt=>{const yi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Pt.value));return!yi||this._matchesFilter(yi)?null:{matDatepickerFilter:!0}},this._minValidator=Pt=>{const yi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Pt.value)),Ni=this._getMinDate();return!Ni||!yi||this._dateAdapter.compareDate(Ni,yi)<=0?null:{matDatepickerMin:{min:Ni,actual:yi}}},this._maxValidator=Pt=>{const yi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Pt.value)),Ni=this._getMaxDate();return!Ni||!yi||this._dateAdapter.compareDate(Ni,yi)>=0?null:{matDatepickerMax:{max:Ni,actual:yi}}},this._lastValueValid=!1,this._localeSubscription=Je.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(fe){this._assignValueProgrammatically(fe)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(fe){const Je=(0,W.Ig)(fe),St=this._elementRef.nativeElement;this._disabled!==Je&&(this._disabled=Je,this.stateChanges.next(void 0)),Je&&this._isInitialized&&St.blur&&St.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(fe){this._model=fe,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Je=>{if(this._shouldHandleChangeEvent(Je)){const St=this._getValueFromModel(Je.selection);this._lastValueValid=this._isValidValue(St),this._cvaOnChange(St),this._onTouched(),this._formatValue(St),this.dateInput.emit(new Jt(this,this._elementRef.nativeElement)),this.dateChange.emit(new Jt(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(fe){(function Pe(qe,yt){const fe=Object.keys(qe);for(let Je of fe){const{previousValue:St,currentValue:Pt}=qe[Je];if(!yt.isDateInstance(St)||!yt.isDateInstance(Pt))return!0;if(!yt.sameDate(St,Pt))return!0}return!1})(fe,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(fe){this._validatorOnChange=fe}validate(fe){return this._validator?this._validator(fe):null}writeValue(fe){this._assignValueProgrammatically(fe)}registerOnChange(fe){this._cvaOnChange=fe}registerOnTouched(fe){this._onTouched=fe}setDisabledState(fe){this.disabled=fe}_onKeydown(fe){fe.altKey&&fe.keyCode===E.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),fe.preventDefault())}_onInput(fe){const Je=this._lastValueValid;let St=this._dateAdapter.parse(fe,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(St),St=this._dateAdapter.getValidDateOrNull(St),this._dateAdapter.sameDate(St,this.value)?(fe&&!this.value&&this._cvaOnChange(St),Je!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(St),this._cvaOnChange(St),this.dateInput.emit(new Jt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Jt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(fe){this._elementRef.nativeElement.value=fe?this._dateAdapter.format(fe,this._dateFormats.display.dateInput):""}_assignValue(fe){this._model?(this._assignValueToModel(fe),this._pendingValue=null):this._pendingValue=fe}_isValidValue(fe){return!fe||this._dateAdapter.isValid(fe)}_parentDisabled(){return!1}_assignValueProgrammatically(fe){fe=this._dateAdapter.deserialize(fe),this._lastValueValid=this._isValidValue(fe),fe=this._dateAdapter.getValidDateOrNull(fe),this._assignValue(fe),this._formatValue(fe)}_matchesFilter(fe){const Je=this._getDateFilter();return!Je||Je(fe)}}return qe.\u0275fac=function(fe){return new(fe||qe)(o.Y36(o.SBq),o.Y36(N._A,8),o.Y36(N.sG,8))},qe.\u0275dir=o.lG2({type:qe,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[o.TTD]}),qe})();const Fe={provide:_e.JU,useExisting:(0,o.Gpc)(()=>st),multi:!0},at={provide:_e.Cf,useExisting:(0,o.Gpc)(()=>st),multi:!0};let st=(()=>{class qe extends ct{constructor(fe,Je,St,Pt){super(fe,Je,St),this._formField=Pt,this._closedSubscription=D.w0.EMPTY,this._validator=_e.kI.compose(super._getValidators())}set matDatepicker(fe){fe&&(this._datepicker=fe,this._closedSubscription=fe.closedStream.subscribe(()=>this._onTouched()),this._registerModel(fe.registerInput(this)))}get min(){return this._min}set min(fe){const Je=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe));this._dateAdapter.sameDate(Je,this._min)||(this._min=Je,this._validatorOnChange())}get max(){return this._max}set max(fe){const Je=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe));this._dateAdapter.sameDate(Je,this._max)||(this._max=Je,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(fe){const Je=this._matchesFilter(this.value);this._dateFilter=fe,this._matchesFilter(this.value)!==Je&&this._validatorOnChange()}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()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(fe){return fe}_assignValueToModel(fe){this._model&&this._model.updateSelection(fe,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(fe){return fe.source!==this}}return qe.\u0275fac=function(fe){return new(fe||qe)(o.Y36(o.SBq),o.Y36(N._A,8),o.Y36(N.sG,8),o.Y36(ce.G_,8))},qe.\u0275dir=o.lG2({type:qe,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(fe,Je){1&fe&&o.NdJ("input",function(Pt){return Je._onInput(Pt.target.value)})("change",function(){return Je._onChange()})("blur",function(){return Je._onBlur()})("keydown",function(Pt){return Je._onKeydown(Pt)}),2&fe&&(o.Ikx("disabled",Je.disabled),o.uIk("aria-haspopup",Je._datepicker?"dialog":null)("aria-owns",(null==Je._datepicker?null:Je._datepicker.opened)&&Je._datepicker.id||null)("min",Je.min?Je._dateAdapter.toIso8601(Je.min):null)("max",Je.max?Je._dateAdapter.toIso8601(Je.max):null)("data-mat-calendar",Je._datepicker?Je._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[o._Bn([Fe,at,{provide:re.Jk,useExisting:qe}]),o.qOj]}),qe})(),At=(()=>{class qe{}return qe.\u0275fac=function(fe){return new(fe||qe)},qe.\u0275dir=o.lG2({type:qe,selectors:[["","matDatepickerToggleIcon",""]]}),qe})(),li=(()=>{class qe{constructor(fe,Je,St){this._intl=fe,this._changeDetectorRef=Je,this._stateChanges=D.w0.EMPTY;const Pt=Number(St);this.tabIndex=Pt||0===Pt?Pt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(fe){this._disabled=(0,W.Ig)(fe)}ngOnChanges(fe){fe.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(fe){this.datepicker&&!this.disabled&&(this.datepicker.open(),fe.stopPropagation())}_watchStateChanges(){const fe=this.datepicker?this.datepicker.stateChanges:(0,O.of)(),Je=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,O.of)(),St=this.datepicker?(0,A.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,O.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,A.T)(this._intl.changes,fe,Je,St).subscribe(()=>this._changeDetectorRef.markForCheck())}}return qe.\u0275fac=function(fe){return new(fe||qe)(o.Y36(jt),o.Y36(o.sBO),o.$8M("tabindex"))},qe.\u0275cmp=o.Xpm({type:qe,selectors:[["mat-datepicker-toggle"]],contentQueries:function(fe,Je,St){if(1&fe&&o.Suo(St,At,5),2&fe){let Pt;o.iGM(Pt=o.CRH())&&(Je._customIcon=Pt.first)}},viewQuery:function(fe,Je){if(1&fe&&o.Gf(r,5),2&fe){let St;o.iGM(St=o.CRH())&&(Je._button=St.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(fe,Je){1&fe&&o.NdJ("click",function(Pt){return Je._open(Pt)}),2&fe&&(o.uIk("tabindex",null)("data-mat-calendar",Je.datepicker?Je.datepicker.id:null),o.ekj("mat-datepicker-toggle-active",Je.datepicker&&Je.datepicker.opened)("mat-accent",Je.datepicker&&"accent"===Je.datepicker.color)("mat-warn",Je.datepicker&&"warn"===Je.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[o.TTD],ngContentSelectors:F,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",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(fe,Je){1&fe&&(o.F$t(G),o.TgZ(0,"button",0,1),o.YNc(2,v,2,0,"svg",2),o.Hsn(3),o.qZA()),2&fe&&(o.Q6J("disabled",Je.disabled)("disableRipple",Je.disableRipple),o.uIk("aria-haspopup",Je.datepicker?"dialog":null)("aria-label",Je.ariaLabel||Je._intl.openCalendarLabel)("tabindex",Je.disabled?-1:Je.tabIndex),o.xp6(2),o.Q6J("ngIf",!Je._customIcon))},directives:[M.lW,C.O5],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"],encapsulation:2,changeDetection:0}),qe})(),ve=(()=>{class qe{}return qe.\u0275fac=function(fe){return new(fe||qe)},qe.\u0275mod=o.oAB({type:qe}),qe.\u0275inj=o.cJS({providers:[jt,me],imports:[[C.ez,M.ot,t.U8,e.rt,y.eL,N.BQ],l.ZD]}),qe})()},8966:(Ve,Q,m)=>{"use strict";m.d(Q,{WI:()=>i,Bq:()=>a,uw:()=>x,ZT:()=>G,Is:()=>Be,so:()=>ae});var e=m(9776),t=m(7429),y=m(5e3),C=m(508),o=m(226),M=m(7579),l=m(9770),N=m(727),s=m(9646),D=m(9300),A=m(5698),O=m(8675),E=m(925),P=m(9808),w=m(1777),Z=m(5664),j=m(1159),W=m(6360);function ie(ze,Ie){}class ee{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const _e={dialogContainer:(0,w.X$)("dialogContainer",[(0,w.SB)("void, exit",(0,w.oB)({opacity:0,transform:"scale(0.7)"})),(0,w.SB)("enter",(0,w.oB)({transform:"none"})),(0,w.eR)("* => enter",(0,w.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,w.oB)({transform:"none",opacity:1}))),(0,w.eR)("* => void, * => exit",(0,w.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,w.oB)({opacity:0})))])};let re=(()=>{class ze extends t.en{constructor(K,Me,we,z,Ge,vt,Re,Ne){super(),this._elementRef=K,this._focusTrapFactory=Me,this._changeDetectorRef=we,this._config=Ge,this._interactivityChecker=vt,this._ngZone=Re,this._focusMonitor=Ne,this._animationStateChanged=new y.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=he=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(he)),this._ariaLabelledBy=Ge.ariaLabelledBy||null,this._document=z}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(K){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(K)}attachTemplatePortal(K){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(K)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(K,Me){this._interactivityChecker.isFocusable(K)||(K.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{K.addEventListener("blur",()=>K.removeAttribute("tabindex")),K.addEventListener("mousedown",()=>K.removeAttribute("tabindex"))})),K.focus(Me)}_focusByCssSelector(K,Me){let we=this._elementRef.nativeElement.querySelector(K);we&&this._forceFocus(we,Me)}_trapFocus(){const K=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||K.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Me=>{Me||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const K=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&K&&"function"==typeof K.focus){const Me=(0,E.ht)(),we=this._elementRef.nativeElement;(!Me||Me===this._document.body||Me===we||we.contains(Me))&&(this._focusMonitor?(this._focusMonitor.focusVia(K,this._closeInteractionType),this._closeInteractionType=null):K.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,E.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const K=this._elementRef.nativeElement,Me=(0,E.ht)();return K===Me||K.contains(Me)}}return ze.\u0275fac=function(K){return new(K||ze)(y.Y36(y.SBq),y.Y36(Z.qV),y.Y36(y.sBO),y.Y36(P.K0,8),y.Y36(ee),y.Y36(Z.ic),y.Y36(y.R0b),y.Y36(Z.tE))},ze.\u0275dir=y.lG2({type:ze,viewQuery:function(K,Me){if(1&K&&y.Gf(t.Pl,7),2&K){let we;y.iGM(we=y.CRH())&&(Me._portalOutlet=we.first)}},features:[y.qOj]}),ze})(),de=(()=>{class ze extends re{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:K,totalTime:Me}){"enter"===K?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Me})):"exit"===K&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:Me}))}_onAnimationStart({toState:K,totalTime:Me}){"enter"===K?this._animationStateChanged.next({state:"opening",totalTime:Me}):("exit"===K||"void"===K)&&this._animationStateChanged.next({state:"closing",totalTime:Me})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return ze.\u0275fac=function(){let Ie;return function(Me){return(Ie||(Ie=y.n5z(ze)))(Me||ze)}}(),ze.\u0275cmp=y.Xpm({type:ze,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(K,Me){1&K&&y.WFA("@dialogContainer.start",function(z){return Me._onAnimationStart(z)})("@dialogContainer.done",function(z){return Me._onAnimationDone(z)}),2&K&&(y.Ikx("id",Me._id),y.uIk("role",Me._config.role)("aria-labelledby",Me._config.ariaLabel?null:Me._ariaLabelledBy)("aria-label",Me._config.ariaLabel)("aria-describedby",Me._config.ariaDescribedBy||null),y.d8E("@dialogContainer",Me._state))},features:[y.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(K,Me){1&K&&y.YNc(0,ie,0,0,"ng-template",0)},directives:[t.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[_e.dialogContainer]}}),ze})(),oe=0;class ae{constructor(Ie,K,Me="mat-dialog-"+oe++){this._overlayRef=Ie,this._containerInstance=K,this.id=Me,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new M.x,this._afterClosed=new M.x,this._beforeClosed=new M.x,this._state=0,K._id=Me,K._animationStateChanged.pipe((0,D.h)(we=>"opened"===we.state),(0,A.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),K._animationStateChanged.pipe((0,D.h)(we=>"closed"===we.state),(0,A.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Ie.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),Ie.keydownEvents().pipe((0,D.h)(we=>we.keyCode===j.hY&&!this.disableClose&&!(0,j.Vb)(we))).subscribe(we=>{we.preventDefault(),b(this,"keyboard")}),Ie.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():b(this,"mouse")})}close(Ie){this._result=Ie,this._containerInstance._animationStateChanged.pipe((0,D.h)(K=>"closing"===K.state),(0,A.q)(1)).subscribe(K=>{this._beforeClosed.next(Ie),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),K.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(Ie){let K=this._getPositionStrategy();return Ie&&(Ie.left||Ie.right)?Ie.left?K.left(Ie.left):K.right(Ie.right):K.centerHorizontally(),Ie&&(Ie.top||Ie.bottom)?Ie.top?K.top(Ie.top):K.bottom(Ie.bottom):K.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(Ie="",K=""){return this._overlayRef.updateSize({width:Ie,height:K}),this._overlayRef.updatePosition(),this}addPanelClass(Ie){return this._overlayRef.addPanelClass(Ie),this}removePanelClass(Ie){return this._overlayRef.removePanelClass(Ie),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function b(ze,Ie,K){return void 0!==ze._containerInstance&&(ze._containerInstance._closeInteractionType=Ie),ze.close(K)}const i=new y.OlP("MatDialogData"),a=new y.OlP("mat-dialog-default-options"),p=new y.OlP("mat-dialog-scroll-strategy"),L={provide:p,deps:[e.aV],useFactory:function _(ze){return()=>ze.scrollStrategies.block()}};let I=(()=>{class ze{constructor(K,Me,we,z,Ge,vt,Re,Ne,he,Le){this._overlay=K,this._injector=Me,this._defaultOptions=we,this._parentDialog=z,this._overlayContainer=Ge,this._dialogRefConstructor=Re,this._dialogContainerType=Ne,this._dialogDataToken=he,this._animationMode=Le,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new M.x,this._afterOpenedAtThisLevel=new M.x,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=(0,l.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,O.O)(void 0))),this._scrollStrategy=vt}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const K=this._parentDialog;return K?K._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(K,Me){if(Me=function r(ze,Ie){return Object.assign(Object.assign({},Ie),ze)}(Me,this._defaultOptions||new ee),Me.id&&this.getDialogById(Me.id),this._dialogAnimatingOpen)return this._lastDialogRef;const we=this._createOverlay(Me),z=this._attachDialogContainer(we,Me);if("NoopAnimations"!==this._animationMode){const vt=z._animationStateChanged.subscribe(Re=>{"opening"===Re.state&&(this._dialogAnimatingOpen=!0),"opened"===Re.state&&(this._dialogAnimatingOpen=!1,vt.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new N.w0),this._animationStateSubscriptions.add(vt)}const Ge=this._attachDialogContent(K,z,we,Me);return this._lastDialogRef=Ge,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Ge),Ge.afterClosed().subscribe(()=>this._removeOpenDialog(Ge)),this.afterOpened.next(Ge),z._initializeWithAttachedContent(),Ge}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(K){return this.openDialogs.find(Me=>Me.id===K)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(K){const Me=this._getOverlayConfig(K);return this._overlay.create(Me)}_getOverlayConfig(K){const Me=new e.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:K.scrollStrategy||this._scrollStrategy(),panelClass:K.panelClass,hasBackdrop:K.hasBackdrop,direction:K.direction,minWidth:K.minWidth,minHeight:K.minHeight,maxWidth:K.maxWidth,maxHeight:K.maxHeight,disposeOnNavigation:K.closeOnNavigation});return K.backdropClass&&(Me.backdropClass=K.backdropClass),Me}_attachDialogContainer(K,Me){const z=y.zs3.create({parent:Me&&Me.viewContainerRef&&Me.viewContainerRef.injector||this._injector,providers:[{provide:ee,useValue:Me}]}),Ge=new t.C5(this._dialogContainerType,Me.viewContainerRef,z,Me.componentFactoryResolver);return K.attach(Ge).instance}_attachDialogContent(K,Me,we,z){const Ge=new this._dialogRefConstructor(we,Me,z.id);if(K instanceof y.Rgc)Me.attachTemplatePortal(new t.UE(K,null,{$implicit:z.data,dialogRef:Ge}));else{const vt=this._createInjector(z,Ge,Me),Re=Me.attachComponentPortal(new t.C5(K,z.viewContainerRef,vt));Ge.componentInstance=Re.instance}return Ge.updateSize(z.width,z.height).updatePosition(z.position),Ge}_createInjector(K,Me,we){const z=K&&K.viewContainerRef&&K.viewContainerRef.injector,Ge=[{provide:this._dialogContainerType,useValue:we},{provide:this._dialogDataToken,useValue:K.data},{provide:this._dialogRefConstructor,useValue:Me}];return K.direction&&(!z||!z.get(o.Is,null,y.XFs.Optional))&&Ge.push({provide:o.Is,useValue:{value:K.direction,change:(0,s.of)()}}),y.zs3.create({parent:z||this._injector,providers:Ge})}_removeOpenDialog(K){const Me=this.openDialogs.indexOf(K);Me>-1&&(this.openDialogs.splice(Me,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((we,z)=>{we?z.setAttribute("aria-hidden",we):z.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const K=this._overlayContainer.getContainerElement();if(K.parentElement){const Me=K.parentElement.children;for(let we=Me.length-1;we>-1;we--){let z=Me[we];z!==K&&"SCRIPT"!==z.nodeName&&"STYLE"!==z.nodeName&&!z.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(z,z.getAttribute("aria-hidden")),z.setAttribute("aria-hidden","true"))}}}_closeDialogs(K){let Me=K.length;for(;Me--;)K[Me].close()}}return ze.\u0275fac=function(K){y.$Z()},ze.\u0275dir=y.lG2({type:ze}),ze})(),x=(()=>{class ze extends I{constructor(K,Me,we,z,Ge,vt,Re,Ne){super(K,Me,z,vt,Re,Ge,ae,de,i,Ne)}}return ze.\u0275fac=function(K){return new(K||ze)(y.LFG(e.aV),y.LFG(y.zs3),y.LFG(P.Ye,8),y.LFG(a,8),y.LFG(p),y.LFG(ze,12),y.LFG(e.Xj),y.LFG(W.Qb,8))},ze.\u0275prov=y.Yz7({token:ze,factory:ze.\u0275fac}),ze})(),G=(()=>{class ze{constructor(K,Me,we){this.dialogRef=K,this._elementRef=Me,this._dialog=we,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=function Ce(ze,Ie){let K=ze.nativeElement.parentElement;for(;K&&!K.classList.contains("mat-dialog-container");)K=K.parentElement;return K?Ie.find(Me=>Me.id===K.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(K){const Me=K._matDialogClose||K._matDialogCloseResult;Me&&(this.dialogResult=Me.currentValue)}_onButtonClick(K){b(this.dialogRef,0===K.screenX&&0===K.screenY?"keyboard":"mouse",this.dialogResult)}}return ze.\u0275fac=function(K){return new(K||ze)(y.Y36(ae,8),y.Y36(y.SBq),y.Y36(x))},ze.\u0275dir=y.lG2({type:ze,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(K,Me){1&K&&y.NdJ("click",function(z){return Me._onButtonClick(z)}),2&K&&y.uIk("aria-label",Me.ariaLabel||null)("type",Me.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[y.TTD]}),ze})(),Be=(()=>{class ze{}return ze.\u0275fac=function(K){return new(K||ze)},ze.\u0275mod=y.oAB({type:ze}),ze.\u0275inj=y.cJS({providers:[x,L],imports:[[e.U8,t.eL,C.BQ],C.BQ]}),ze})()},4834:(Ve,Q,m)=>{"use strict";m.d(Q,{d:()=>C,t:()=>o});var e=m(5e3),t=m(3191),y=m(508);let C=(()=>{class M{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(N){this._vertical=(0,t.Ig)(N)}get inset(){return this._inset}set inset(N){this._inset=(0,t.Ig)(N)}}return M.\u0275fac=function(N){return new(N||M)},M.\u0275cmp=e.Xpm({type:M,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(N,s){2&N&&(e.uIk("aria-orientation",s.vertical?"vertical":"horizontal"),e.ekj("mat-divider-vertical",s.vertical)("mat-divider-horizontal",!s.vertical)("mat-divider-inset",s.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(N,s){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.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}),M})(),o=(()=>{class M{}return M.\u0275fac=function(N){return new(N||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({imports:[[y.BQ],y.BQ]}),M})()},1125:(Ve,Q,m)=>{"use strict";m.d(Q,{pp:()=>Ie,To:()=>K,ib:()=>G,u4:()=>Be,yz:()=>Ce,yK:()=>ze});var e=m(5e3),t=m(3191),y=m(7579),C=m(727),o=m(449);let M=0;const l=new e.OlP("CdkAccordion");let N=(()=>{class Me{constructor(){this._stateChanges=new y.x,this._openCloseAllActions=new y.x,this.id="cdk-accordion-"+M++,this._multi=!1}get multi(){return this._multi}set multi(z){this._multi=(0,t.Ig)(z)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(z){this._stateChanges.next(z)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return Me.\u0275fac=function(z){return new(z||Me)},Me.\u0275dir=e.lG2({type:Me,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:l,useExisting:Me}]),e.TTD]}),Me})(),s=0,D=(()=>{class Me{constructor(z,Ge,vt){this.accordion=z,this._changeDetectorRef=Ge,this._expansionDispatcher=vt,this._openCloseAllSubscription=C.w0.EMPTY,this.closed=new e.vpe,this.opened=new e.vpe,this.destroyed=new e.vpe,this.expandedChange=new e.vpe,this.id="cdk-accordion-child-"+s++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=vt.listen((Re,Ne)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Ne&&this.id!==Re&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(z){z=(0,t.Ig)(z),this._expanded!==z&&(this._expanded=z,this.expandedChange.emit(z),z?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(z){this._disabled=(0,t.Ig)(z)}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(z=>{this.disabled||(this.expanded=z)})}}return Me.\u0275fac=function(z){return new(z||Me)(e.Y36(l,12),e.Y36(e.sBO),e.Y36(o.A8))},Me.\u0275dir=e.lG2({type:Me,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[e._Bn([{provide:l,useValue:void 0}])]}),Me})(),A=(()=>{class Me{}return Me.\u0275fac=function(z){return new(z||Me)},Me.\u0275mod=e.oAB({type:Me}),Me.\u0275inj=e.cJS({}),Me})();var O=m(7429),E=m(9808),P=m(508),w=m(5664),Z=m(1884),j=m(8675),W=m(9300),ie=m(5698),ee=m(1159),_e=m(6360),ce=m(515),re=m(6451),de=m(1777);const oe=["body"];function ae(Me,we){}const b=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],i=["mat-expansion-panel-header","*","mat-action-row"];function a(Me,we){if(1&Me&&e._UZ(0,"span",2),2&Me){const z=e.oxw();e.Q6J("@indicatorRotate",z._getExpandedState())}}const p=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],u=["mat-panel-title","mat-panel-description","*"],_=new e.OlP("MAT_ACCORDION"),L="225ms cubic-bezier(0.4,0.0,0.2,1)",I={indicatorRotate:(0,de.X$)("indicatorRotate",[(0,de.SB)("collapsed, void",(0,de.oB)({transform:"rotate(0deg)"})),(0,de.SB)("expanded",(0,de.oB)({transform:"rotate(180deg)"})),(0,de.eR)("expanded <=> collapsed, void => collapsed",(0,de.jt)(L))]),bodyExpansion:(0,de.X$)("bodyExpansion",[(0,de.SB)("collapsed, void",(0,de.oB)({height:"0px",visibility:"hidden"})),(0,de.SB)("expanded",(0,de.oB)({height:"*",visibility:"visible"})),(0,de.eR)("expanded <=> collapsed, void => collapsed",(0,de.jt)(L))])};let x=(()=>{class Me{constructor(z){this._template=z}}return Me.\u0275fac=function(z){return new(z||Me)(e.Y36(e.Rgc))},Me.\u0275dir=e.lG2({type:Me,selectors:[["ng-template","matExpansionPanelContent",""]]}),Me})(),r=0;const v=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let G=(()=>{class Me extends D{constructor(z,Ge,vt,Re,Ne,he,Le){super(z,Ge,vt),this._viewContainerRef=Re,this._animationMode=he,this._hideToggle=!1,this.afterExpand=new e.vpe,this.afterCollapse=new e.vpe,this._inputChanges=new y.x,this._headerId="mat-expansion-panel-header-"+r++,this._bodyAnimationDone=new y.x,this.accordion=z,this._document=Ne,this._bodyAnimationDone.pipe((0,Z.x)((ke,q)=>ke.fromState===q.fromState&&ke.toState===q.toState)).subscribe(ke=>{"void"!==ke.fromState&&("expanded"===ke.toState?this.afterExpand.emit():"collapsed"===ke.toState&&this.afterCollapse.emit())}),Le&&(this.hideToggle=Le.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(z){this._hideToggle=(0,t.Ig)(z)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(z){this._togglePosition=z}_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.opened.pipe((0,j.O)(null),(0,W.h)(()=>this.expanded&&!this._portal),(0,ie.q)(1)).subscribe(()=>{this._portal=new O.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(z){this._inputChanges.next(z)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const z=this._document.activeElement,Ge=this._body.nativeElement;return z===Ge||Ge.contains(z)}return!1}}return Me.\u0275fac=function(z){return new(z||Me)(e.Y36(_,12),e.Y36(e.sBO),e.Y36(o.A8),e.Y36(e.s_b),e.Y36(E.K0),e.Y36(_e.Qb,8),e.Y36(v,8))},Me.\u0275cmp=e.Xpm({type:Me,selectors:[["mat-expansion-panel"]],contentQueries:function(z,Ge,vt){if(1&z&&e.Suo(vt,x,5),2&z){let Re;e.iGM(Re=e.CRH())&&(Ge._lazyContent=Re.first)}},viewQuery:function(z,Ge){if(1&z&&e.Gf(oe,5),2&z){let vt;e.iGM(vt=e.CRH())&&(Ge._body=vt.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(z,Ge){2&z&&e.ekj("mat-expanded",Ge.expanded)("_mat-animation-noopable","NoopAnimations"===Ge._animationMode)("mat-expansion-panel-spacing",Ge._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[e._Bn([{provide:_,useValue:void 0}]),e.qOj,e.TTD],ngContentSelectors:i,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(z,Ge){1&z&&(e.F$t(b),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(Re){return Ge._bodyAnimationDone.next(Re)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,ae,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&z&&(e.xp6(1),e.Q6J("@bodyExpansion",Ge._getExpandedState())("id",Ge.id),e.uIk("aria-labelledby",Ge._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",Ge._portal))},directives:[O.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.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:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow: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}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[I.bodyExpansion]},changeDetection:0}),Me})();class U{}const ye=(0,P.sb)(U);let Ce=(()=>{class Me extends ye{constructor(z,Ge,vt,Re,Ne,he,Le){super(),this.panel=z,this._element=Ge,this._focusMonitor=vt,this._changeDetectorRef=Re,this._animationMode=he,this._parentChangeSubscription=C.w0.EMPTY;const ke=z.accordion?z.accordion._stateChanges.pipe((0,W.h)(q=>!(!q.hideToggle&&!q.togglePosition))):ce.E;this.tabIndex=parseInt(Le||"")||0,this._parentChangeSubscription=(0,re.T)(z.opened,z.closed,ke,z._inputChanges.pipe((0,W.h)(q=>!!(q.hideToggle||q.disabled||q.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),z.closed.pipe((0,W.h)(()=>z._containsFocus())).subscribe(()=>vt.focusVia(Ge,"program")),Ne&&(this.expandedHeight=Ne.expandedHeight,this.collapsedHeight=Ne.collapsedHeight)}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 z=this._isExpanded();return z&&this.expandedHeight?this.expandedHeight:!z&&this.collapsedHeight?this.collapsedHeight:null}_keydown(z){switch(z.keyCode){case ee.L_:case ee.K5:(0,ee.Vb)(z)||(z.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(z))}}focus(z,Ge){z?this._focusMonitor.focusVia(this._element,z,Ge):this._element.nativeElement.focus(Ge)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(z=>{z&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return Me.\u0275fac=function(z){return new(z||Me)(e.Y36(G,1),e.Y36(e.SBq),e.Y36(w.tE),e.Y36(e.sBO),e.Y36(v,8),e.Y36(_e.Qb,8),e.$8M("tabindex"))},Me.\u0275cmp=e.Xpm({type:Me,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(z,Ge){1&z&&e.NdJ("click",function(){return Ge._toggle()})("keydown",function(Re){return Ge._keydown(Re)}),2&z&&(e.uIk("id",Ge.panel._headerId)("tabindex",Ge.tabIndex)("aria-controls",Ge._getPanelId())("aria-expanded",Ge._isExpanded())("aria-disabled",Ge.panel.disabled),e.Udp("height",Ge._getHeaderHeight()),e.ekj("mat-expanded",Ge._isExpanded())("mat-expansion-toggle-indicator-after","after"===Ge._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===Ge._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===Ge._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.qOj],ngContentSelectors:u,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(z,Ge){1&z&&(e.F$t(p),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,a,1,1,"span",1)),2&z&&(e.xp6(4),e.Q6J("ngIf",Ge._showToggle()))},directives:[E.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.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:not([aria-disabled=true]){cursor:pointer}.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-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[I.indicatorRotate]},changeDetection:0}),Me})(),Be=(()=>{class Me{}return Me.\u0275fac=function(z){return new(z||Me)},Me.\u0275dir=e.lG2({type:Me,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),Me})(),ze=(()=>{class Me{}return Me.\u0275fac=function(z){return new(z||Me)},Me.\u0275dir=e.lG2({type:Me,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),Me})(),Ie=(()=>{class Me extends N{constructor(){super(...arguments),this._ownHeaders=new e.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(z){this._hideToggle=(0,t.Ig)(z)}ngAfterContentInit(){this._headers.changes.pipe((0,j.O)(this._headers)).subscribe(z=>{this._ownHeaders.reset(z.filter(Ge=>Ge.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new w.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(z){this._keyManager.onKeydown(z)}_handleHeaderFocus(z){this._keyManager.updateActiveItem(z)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return Me.\u0275fac=function(){let we;return function(Ge){return(we||(we=e.n5z(Me)))(Ge||Me)}}(),Me.\u0275dir=e.lG2({type:Me,selectors:[["mat-accordion"]],contentQueries:function(z,Ge,vt){if(1&z&&e.Suo(vt,Ce,5),2&z){let Re;e.iGM(Re=e.CRH())&&(Ge._headers=Re)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(z,Ge){2&z&&e.ekj("mat-accordion-multi",Ge.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[e._Bn([{provide:_,useExisting:Me}]),e.qOj]}),Me})(),K=(()=>{class Me{}return Me.\u0275fac=function(z){return new(z||Me)},Me.\u0275mod=e.oAB({type:Me}),Me.\u0275inj=e.cJS({imports:[[E.ez,P.BQ,A,O.eL]]}),Me})()},7322:(Ve,Q,m)=>{"use strict";m.d(Q,{G_:()=>he,TO:()=>I,KE:()=>Le,Eo:()=>r,lN:()=>ke,bx:()=>Ce,R9:()=>we});var e=m(7144),t=m(9808),y=m(5e3),C=m(508),o=m(3191),M=m(7579),l=m(6451),N=m(4968),s=m(8675),D=m(2722),A=m(5698),O=m(1777),E=m(6360),P=m(226),w=m(925);const Z=["connectionContainer"],j=["inputContainer"],W=["label"];function ie(q,$){1&q&&(y.ynx(0),y.TgZ(1,"div",14),y._UZ(2,"div",15),y._UZ(3,"div",16),y._UZ(4,"div",17),y.qZA(),y.TgZ(5,"div",18),y._UZ(6,"div",15),y._UZ(7,"div",16),y._UZ(8,"div",17),y.qZA(),y.BQk())}function ee(q,$){if(1&q){const le=y.EpF();y.TgZ(0,"div",19),y.NdJ("cdkObserveContent",function(){return y.CHM(le),y.oxw().updateOutlineGap()}),y.Hsn(1,1),y.qZA()}if(2&q){const le=y.oxw();y.Q6J("cdkObserveContentDisabled","outline"!=le.appearance)}}function _e(q,$){if(1&q&&(y.ynx(0),y.Hsn(1,2),y.TgZ(2,"span"),y._uU(3),y.qZA(),y.BQk()),2&q){const le=y.oxw(2);y.xp6(3),y.Oqu(le._control.placeholder)}}function ce(q,$){1&q&&y.Hsn(0,3,["*ngSwitchCase","true"])}function re(q,$){1&q&&(y.TgZ(0,"span",23),y._uU(1," *"),y.qZA())}function de(q,$){if(1&q){const le=y.EpF();y.TgZ(0,"label",20,21),y.NdJ("cdkObserveContent",function(){return y.CHM(le),y.oxw().updateOutlineGap()}),y.YNc(2,_e,4,1,"ng-container",12),y.YNc(3,ce,1,0,"ng-content",12),y.YNc(4,re,2,0,"span",22),y.qZA()}if(2&q){const le=y.oxw();y.ekj("mat-empty",le._control.empty&&!le._shouldAlwaysFloat())("mat-form-field-empty",le._control.empty&&!le._shouldAlwaysFloat())("mat-accent","accent"==le.color)("mat-warn","warn"==le.color),y.Q6J("cdkObserveContentDisabled","outline"!=le.appearance)("id",le._labelId)("ngSwitch",le._hasLabel()),y.uIk("for",le._control.id)("aria-owns",le._control.id),y.xp6(2),y.Q6J("ngSwitchCase",!1),y.xp6(1),y.Q6J("ngSwitchCase",!0),y.xp6(1),y.Q6J("ngIf",!le.hideRequiredMarker&&le._control.required&&!le._control.disabled)}}function oe(q,$){1&q&&(y.TgZ(0,"div",24),y.Hsn(1,4),y.qZA())}function ae(q,$){if(1&q&&(y.TgZ(0,"div",25),y._UZ(1,"span",26),y.qZA()),2&q){const le=y.oxw();y.xp6(1),y.ekj("mat-accent","accent"==le.color)("mat-warn","warn"==le.color)}}function b(q,$){if(1&q&&(y.TgZ(0,"div"),y.Hsn(1,5),y.qZA()),2&q){const le=y.oxw();y.Q6J("@transitionMessages",le._subscriptAnimationState)}}function i(q,$){if(1&q&&(y.TgZ(0,"div",30),y._uU(1),y.qZA()),2&q){const le=y.oxw(2);y.Q6J("id",le._hintLabelId),y.xp6(1),y.Oqu(le.hintLabel)}}function a(q,$){if(1&q&&(y.TgZ(0,"div",27),y.YNc(1,i,2,2,"div",28),y.Hsn(2,6),y._UZ(3,"div",29),y.Hsn(4,7),y.qZA()),2&q){const le=y.oxw();y.Q6J("@transitionMessages",le._subscriptAnimationState),y.xp6(1),y.Q6J("ngIf",le.hintLabel)}}const p=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],u=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let _=0;const L=new y.OlP("MatError");let I=(()=>{class q{constructor(le,xe){this.id="mat-error-"+_++,le||xe.nativeElement.setAttribute("aria-live","polite")}}return q.\u0275fac=function(le){return new(le||q)(y.$8M("aria-live"),y.Y36(y.SBq))},q.\u0275dir=y.lG2({type:q,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(le,xe){2&le&&y.uIk("id",xe.id)},inputs:{id:"id"},features:[y._Bn([{provide:L,useExisting:q}])]}),q})();const x={transitionMessages:(0,O.X$)("transitionMessages",[(0,O.SB)("enter",(0,O.oB)({opacity:1,transform:"translateY(0%)"})),(0,O.eR)("void => enter",[(0,O.oB)({opacity:0,transform:"translateY(-5px)"}),(0,O.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let r=(()=>{class q{}return q.\u0275fac=function(le){return new(le||q)},q.\u0275dir=y.lG2({type:q}),q})(),U=0;const ye=new y.OlP("MatHint");let Ce=(()=>{class q{constructor(){this.align="start",this.id="mat-hint-"+U++}}return q.\u0275fac=function(le){return new(le||q)},q.\u0275dir=y.lG2({type:q,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(le,xe){2&le&&(y.uIk("id",xe.id)("align",null),y.ekj("mat-form-field-hint-end","end"===xe.align))},inputs:{align:"align",id:"id"},features:[y._Bn([{provide:ye,useExisting:q}])]}),q})(),Be=(()=>{class q{}return q.\u0275fac=function(le){return new(le||q)},q.\u0275dir=y.lG2({type:q,selectors:[["mat-label"]]}),q})(),ze=(()=>{class q{}return q.\u0275fac=function(le){return new(le||q)},q.\u0275dir=y.lG2({type:q,selectors:[["mat-placeholder"]]}),q})();const Ie=new y.OlP("MatPrefix"),Me=new y.OlP("MatSuffix");let we=(()=>{class q{}return q.\u0275fac=function(le){return new(le||q)},q.\u0275dir=y.lG2({type:q,selectors:[["","matSuffix",""]],features:[y._Bn([{provide:Me,useExisting:q}])]}),q})(),z=0;const Re=(0,C.pj)(class{constructor(q){this._elementRef=q}},"primary"),Ne=new y.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),he=new y.OlP("MatFormField");let Le=(()=>{class q extends Re{constructor(le,xe,Ue,lt,nt,ft,it){super(le),this._changeDetectorRef=xe,this._dir=Ue,this._defaults=lt,this._platform=nt,this._ngZone=ft,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new M.x,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+z++,this._labelId="mat-form-field-label-"+z++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==it,this.appearance=lt&<.appearance?lt.appearance:"legacy",this._hideRequiredMarker=!(!lt||null==lt.hideRequiredMarker)&<.hideRequiredMarker}get appearance(){return this._appearance}set appearance(le){const xe=this._appearance;this._appearance=le||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&xe!==le&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(le){this._hideRequiredMarker=(0,o.Ig)(le)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(le){this._hintLabel=le,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(le){le!==this._floatLabel&&(this._floatLabel=le||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(le){this._explicitFormFieldControl=le}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const le=this._control;le.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${le.controlType}`),le.stateChanges.pipe((0,s.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),le.ngControl&&le.ngControl.valueChanges&&le.ngControl.valueChanges.pipe((0,D.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,l.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,s.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,s.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,D.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(le){const xe=this._control?this._control.ngControl:null;return xe&&xe[le]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,N.R)(this._label.nativeElement,"transitionend").pipe((0,A.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let le=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&le.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const xe=this._hintChildren?this._hintChildren.find(lt=>"start"===lt.align):null,Ue=this._hintChildren?this._hintChildren.find(lt=>"end"===lt.align):null;xe?le.push(xe.id):this._hintLabel&&le.push(this._hintLabelId),Ue&&le.push(Ue.id)}else this._errorChildren&&le.push(...this._errorChildren.map(xe=>xe.id));this._control.setDescribedByIds(le)}}_validateControlChild(){}updateOutlineGap(){const le=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&le&&le.children.length&&le.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let xe=0,Ue=0;const lt=this._connectionContainerRef.nativeElement,nt=lt.querySelectorAll(".mat-form-field-outline-start"),ft=lt.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const it=lt.getBoundingClientRect();if(0===it.width&&0===it.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const rt=this._getStartEnd(it),Mt=le.children,Zt=this._getStartEnd(Mt[0].getBoundingClientRect());let Ft=0;for(let Vt=0;Vt0?.75*Ft+10:0}for(let it=0;it{class q{}return q.\u0275fac=function(le){return new(le||q)},q.\u0275mod=y.oAB({type:q}),q.\u0275inj=y.cJS({imports:[[t.ez,C.BQ,e.Q8],C.BQ]}),q})()},3954:(Ve,Q,m)=>{"use strict";m.d(Q,{Il:()=>oe,N6:()=>ae,DX:()=>O});var e=m(5e3),t=m(508),y=m(3191),C=m(226);const o=["*"];class s{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const a=Math.max(...this.tracker);return a>1?this.rowCount+a-1:this.rowCount}update(a,p){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(a),this.tracker.fill(0,0,this.tracker.length),this.positions=p.map(u=>this._trackTile(u))}_trackTile(a){const p=this._findMatchingGap(a.colspan);return this._markTilePosition(p,a),this.columnIndex=p+a.colspan,new D(this.rowIndex,p)}_findMatchingGap(a){let p=-1,u=-1;do{this.columnIndex+a>this.tracker.length?(this._nextRow(),p=this.tracker.indexOf(0,this.columnIndex),u=this._findGapEndIndex(p)):(p=this.tracker.indexOf(0,this.columnIndex),-1!=p?(u=this._findGapEndIndex(p),this.columnIndex=p+1):(this._nextRow(),p=this.tracker.indexOf(0,this.columnIndex),u=this._findGapEndIndex(p)))}while(u-p{class i{constructor(p,u){this._element=p,this._gridList=u,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(p){this._rowspan=Math.round((0,y.su)(p))}get colspan(){return this._colspan}set colspan(p){this._colspan=Math.round((0,y.su)(p))}_setStyle(p,u){this._element.nativeElement.style[p]=u}}return i.\u0275fac=function(p){return new(p||i)(e.Y36(e.SBq),e.Y36(A,8))},i.\u0275cmp=e.Xpm({type:i,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(p,u){2&p&&e.uIk("rowspan",u.rowspan)("colspan",u.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:o,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(p,u){1&p&&(e.F$t(),e.TgZ(0,"div",0),e.Hsn(1),e.qZA())},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-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}),i})();const j=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class W{constructor(){this._rows=0,this._rowspan=0}init(a,p,u,_){this._gutterSize=re(a),this._rows=p.rowCount,this._rowspan=p.rowspan,this._cols=u,this._direction=_}getBaseTileSize(a,p){return`(${a}% - (${this._gutterSize} * ${p}))`}getTilePosition(a,p){return 0===p?"0":ce(`(${a} + ${this._gutterSize}) * ${p}`)}getTileSize(a,p){return`(${a} * ${p}) + (${p-1} * ${this._gutterSize})`}setStyle(a,p,u){let _=100/this._cols,L=(this._cols-1)/this._cols;this.setColStyles(a,u,_,L),this.setRowStyles(a,p,_,L)}setColStyles(a,p,u,_){let L=this.getBaseTileSize(u,_);a._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(L,p)),a._setStyle("width",ce(this.getTileSize(L,a.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(a){return`${this._rowspan} * ${this.getTileSize(a,1)}`}getComputedHeight(){return null}}class ie extends W{constructor(a){super(),this.fixedRowHeight=a}init(a,p,u,_){super.init(a,p,u,_),this.fixedRowHeight=re(this.fixedRowHeight),j.test(this.fixedRowHeight)}setRowStyles(a,p){a._setStyle("top",this.getTilePosition(this.fixedRowHeight,p)),a._setStyle("height",ce(this.getTileSize(this.fixedRowHeight,a.rowspan)))}getComputedHeight(){return["height",ce(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(a){a._setListStyle(["height",null]),a._tiles&&a._tiles.forEach(p=>{p._setStyle("top",null),p._setStyle("height",null)})}}class ee extends W{constructor(a){super(),this._parseRatio(a)}setRowStyles(a,p,u,_){this.baseTileHeight=this.getBaseTileSize(u/this.rowHeightRatio,_),a._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,p)),a._setStyle("paddingTop",ce(this.getTileSize(this.baseTileHeight,a.rowspan)))}getComputedHeight(){return["paddingBottom",ce(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(a){a._setListStyle(["paddingBottom",null]),a._tiles.forEach(p=>{p._setStyle("marginTop",null),p._setStyle("paddingTop",null)})}_parseRatio(a){const p=a.split(":");this.rowHeightRatio=parseFloat(p[0])/parseFloat(p[1])}}class _e extends W{setRowStyles(a,p){let L=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);a._setStyle("top",this.getTilePosition(L,p)),a._setStyle("height",ce(this.getTileSize(L,a.rowspan)))}reset(a){a._tiles&&a._tiles.forEach(p=>{p._setStyle("top",null),p._setStyle("height",null)})}}function ce(i){return`calc(${i})`}function re(i){return i.match(/([A-Za-z%]+)$/)?i:`${i}px`}let oe=(()=>{class i{constructor(p,u){this._element=p,this._dir=u,this._gutter="1px"}get cols(){return this._cols}set cols(p){this._cols=Math.max(1,Math.round((0,y.su)(p)))}get gutterSize(){return this._gutter}set gutterSize(p){this._gutter=`${null==p?"":p}`}get rowHeight(){return this._rowHeight}set rowHeight(p){const u=`${null==p?"":p}`;u!==this._rowHeight&&(this._rowHeight=u,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(p){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===p?new _e:p&&p.indexOf(":")>-1?new ee(p):new ie(p)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new s);const p=this._tileCoordinator,u=this._tiles.filter(L=>!L._gridList||L._gridList===this),_=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,u),this._tileStyler.init(this.gutterSize,p,this.cols,_),u.forEach((L,I)=>{const x=p.positions[I];this._tileStyler.setStyle(L,x.row,x.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(p){p&&(this._element.nativeElement.style[p[0]]=p[1])}}return i.\u0275fac=function(p){return new(p||i)(e.Y36(e.SBq),e.Y36(C.Is,8))},i.\u0275cmp=e.Xpm({type:i,selectors:[["mat-grid-list"]],contentQueries:function(p,u,_){if(1&p&&e.Suo(_,O,5),2&p){let L;e.iGM(L=e.CRH())&&(u._tiles=L)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(p,u){2&p&&e.uIk("cols",u.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[e._Bn([{provide:A,useExisting:i}])],ngContentSelectors:o,decls:2,vars:0,template:function(p,u){1&p&&(e.F$t(),e.TgZ(0,"div"),e.Hsn(1),e.qZA())},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-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}),i})(),ae=(()=>{class i{}return i.\u0275fac=function(p){return new(p||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[t.uc,t.BQ],t.uc,t.BQ]}),i})()},5245:(Ve,Q,m)=>{"use strict";m.d(Q,{Hw:()=>G,Ps:()=>F});var e=m(5e3),t=m(508),y=m(3191),C=m(9808),o=m(9646),M=m(2843),l=m(4128),N=m(727),s=m(8505),D=m(4004),A=m(262),O=m(8746),E=m(3099),P=m(5698),w=m(8138),Z=m(2313);const j=["*"];let W;function ee(U){var ye;return(null===(ye=function ie(){if(void 0===W&&(W=null,"undefined"!=typeof window)){const U=window;void 0!==U.trustedTypes&&(W=U.trustedTypes.createPolicy("angular#components",{createHTML:ye=>ye}))}return W}())||void 0===ye?void 0:ye.createHTML(U))||U}function _e(U){return Error(`Unable to find icon with the name "${U}"`)}function re(U){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${U}".`)}function de(U){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${U}".`)}class oe{constructor(ye,Ce,Be){this.url=ye,this.svgText=Ce,this.options=Be}}let ae=(()=>{class U{constructor(Ce,Be,ze,Ie){this._httpClient=Ce,this._sanitizer=Be,this._errorHandler=Ie,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=ze}addSvgIcon(Ce,Be,ze){return this.addSvgIconInNamespace("",Ce,Be,ze)}addSvgIconLiteral(Ce,Be,ze){return this.addSvgIconLiteralInNamespace("",Ce,Be,ze)}addSvgIconInNamespace(Ce,Be,ze,Ie){return this._addSvgIconConfig(Ce,Be,new oe(ze,null,Ie))}addSvgIconResolver(Ce){return this._resolvers.push(Ce),this}addSvgIconLiteralInNamespace(Ce,Be,ze,Ie){const K=this._sanitizer.sanitize(e.q3G.HTML,ze);if(!K)throw de(ze);const Me=ee(K);return this._addSvgIconConfig(Ce,Be,new oe("",Me,Ie))}addSvgIconSet(Ce,Be){return this.addSvgIconSetInNamespace("",Ce,Be)}addSvgIconSetLiteral(Ce,Be){return this.addSvgIconSetLiteralInNamespace("",Ce,Be)}addSvgIconSetInNamespace(Ce,Be,ze){return this._addSvgIconSetConfig(Ce,new oe(Be,null,ze))}addSvgIconSetLiteralInNamespace(Ce,Be,ze){const Ie=this._sanitizer.sanitize(e.q3G.HTML,Be);if(!Ie)throw de(Be);const K=ee(Ie);return this._addSvgIconSetConfig(Ce,new oe("",K,ze))}registerFontClassAlias(Ce,Be=Ce){return this._fontCssClassesByAlias.set(Ce,Be),this}classNameForFontAlias(Ce){return this._fontCssClassesByAlias.get(Ce)||Ce}setDefaultFontSetClass(Ce){return this._defaultFontSetClass=Ce,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Ce){const Be=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,Ce);if(!Be)throw re(Ce);const ze=this._cachedIconsByUrl.get(Be);return ze?(0,o.of)(a(ze)):this._loadSvgIconFromConfig(new oe(Ce,null)).pipe((0,s.b)(Ie=>this._cachedIconsByUrl.set(Be,Ie)),(0,D.U)(Ie=>a(Ie)))}getNamedSvgIcon(Ce,Be=""){const ze=p(Be,Ce);let Ie=this._svgIconConfigs.get(ze);if(Ie)return this._getSvgFromConfig(Ie);if(Ie=this._getIconConfigFromResolvers(Be,Ce),Ie)return this._svgIconConfigs.set(ze,Ie),this._getSvgFromConfig(Ie);const K=this._iconSetConfigs.get(Be);return K?this._getSvgFromIconSetConfigs(Ce,K):(0,M._)(_e(ze))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Ce){return Ce.svgText?(0,o.of)(a(this._svgElementFromConfig(Ce))):this._loadSvgIconFromConfig(Ce).pipe((0,D.U)(Be=>a(Be)))}_getSvgFromIconSetConfigs(Ce,Be){const ze=this._extractIconWithNameFromAnySet(Ce,Be);if(ze)return(0,o.of)(ze);const Ie=Be.filter(K=>!K.svgText).map(K=>this._loadSvgIconSetFromConfig(K).pipe((0,A.K)(Me=>{const z=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,K.url)} failed: ${Me.message}`;return this._errorHandler.handleError(new Error(z)),(0,o.of)(null)})));return(0,l.D)(Ie).pipe((0,D.U)(()=>{const K=this._extractIconWithNameFromAnySet(Ce,Be);if(!K)throw _e(Ce);return K}))}_extractIconWithNameFromAnySet(Ce,Be){for(let ze=Be.length-1;ze>=0;ze--){const Ie=Be[ze];if(Ie.svgText&&Ie.svgText.toString().indexOf(Ce)>-1){const K=this._svgElementFromConfig(Ie),Me=this._extractSvgIconFromSet(K,Ce,Ie.options);if(Me)return Me}}return null}_loadSvgIconFromConfig(Ce){return this._fetchIcon(Ce).pipe((0,s.b)(Be=>Ce.svgText=Be),(0,D.U)(()=>this._svgElementFromConfig(Ce)))}_loadSvgIconSetFromConfig(Ce){return Ce.svgText?(0,o.of)(null):this._fetchIcon(Ce).pipe((0,s.b)(Be=>Ce.svgText=Be))}_extractSvgIconFromSet(Ce,Be,ze){const Ie=Ce.querySelector(`[id="${Be}"]`);if(!Ie)return null;const K=Ie.cloneNode(!0);if(K.removeAttribute("id"),"svg"===K.nodeName.toLowerCase())return this._setSvgAttributes(K,ze);if("symbol"===K.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(K),ze);const Me=this._svgElementFromString(ee(""));return Me.appendChild(K),this._setSvgAttributes(Me,ze)}_svgElementFromString(Ce){const Be=this._document.createElement("DIV");Be.innerHTML=Ce;const ze=Be.querySelector("svg");if(!ze)throw Error(" tag not found");return ze}_toSvgElement(Ce){const Be=this._svgElementFromString(ee("")),ze=Ce.attributes;for(let Ie=0;Ieee(Ge)),(0,O.x)(()=>this._inProgressUrlFetches.delete(Me)),(0,E.B)());return this._inProgressUrlFetches.set(Me,z),z}_addSvgIconConfig(Ce,Be,ze){return this._svgIconConfigs.set(p(Ce,Be),ze),this}_addSvgIconSetConfig(Ce,Be){const ze=this._iconSetConfigs.get(Ce);return ze?ze.push(Be):this._iconSetConfigs.set(Ce,[Be]),this}_svgElementFromConfig(Ce){if(!Ce.svgElement){const Be=this._svgElementFromString(Ce.svgText);this._setSvgAttributes(Be,Ce.options),Ce.svgElement=Be}return Ce.svgElement}_getIconConfigFromResolvers(Ce,Be){for(let ze=0;zeye?ye.pathname+ye.search:""}}}),x=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],r=x.map(U=>`[${U}]`).join(", "),v=/^url\(['"]?#(.*?)['"]?\)$/;let G=(()=>{class U extends _{constructor(Ce,Be,ze,Ie,K){super(Ce),this._iconRegistry=Be,this._location=Ie,this._errorHandler=K,this._inline=!1,this._currentIconFetch=N.w0.EMPTY,ze||Ce.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(Ce){this._inline=(0,y.Ig)(Ce)}get svgIcon(){return this._svgIcon}set svgIcon(Ce){Ce!==this._svgIcon&&(Ce?this._updateSvgIcon(Ce):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Ce)}get fontSet(){return this._fontSet}set fontSet(Ce){const Be=this._cleanupFontValue(Ce);Be!==this._fontSet&&(this._fontSet=Be,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Ce){const Be=this._cleanupFontValue(Ce);Be!==this._fontIcon&&(this._fontIcon=Be,this._updateFontIconClasses())}_splitIconName(Ce){if(!Ce)return["",""];const Be=Ce.split(":");switch(Be.length){case 1:return["",Be[0]];case 2:return Be;default:throw Error(`Invalid icon name: "${Ce}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Ce=this._elementsWithExternalReferences;if(Ce&&Ce.size){const Be=this._location.getPathname();Be!==this._previousPath&&(this._previousPath=Be,this._prependPathToReferences(Be))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Ce){this._clearSvgElement();const Be=Ce.querySelectorAll("style");for(let Ie=0;Ie{ze.forEach(K=>{Ie.setAttribute(K.name,`url('${Ce}#${K.value}')`)})})}_cacheChildrenWithExternalReferences(Ce){const Be=Ce.querySelectorAll(r),ze=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Ie=0;Ie{const Me=Be[Ie],we=Me.getAttribute(K),z=we?we.match(v):null;if(z){let Ge=ze.get(Me);Ge||(Ge=[],ze.set(Me,Ge)),Ge.push({name:K,value:z[1]})}})}_updateSvgIcon(Ce){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Ce){const[Be,ze]=this._splitIconName(Ce);Be&&(this._svgNamespace=Be),ze&&(this._svgName=ze),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(ze,Be).pipe((0,P.q)(1)).subscribe(Ie=>this._setSvgElement(Ie),Ie=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Be}:${ze}! ${Ie.message}`))})}}}return U.\u0275fac=function(Ce){return new(Ce||U)(e.Y36(e.SBq),e.Y36(ae),e.$8M("aria-hidden"),e.Y36(L),e.Y36(e.qLn))},U.\u0275cmp=e.Xpm({type:U,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(Ce,Be){2&Ce&&(e.uIk("data-mat-icon-type",Be._usingFontIcon()?"font":"svg")("data-mat-icon-name",Be._svgName||Be.fontIcon)("data-mat-icon-namespace",Be._svgNamespace||Be.fontSet),e.ekj("mat-icon-inline",Be.inline)("mat-icon-no-color","primary"!==Be.color&&"accent"!==Be.color&&"warn"!==Be.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:j,decls:1,vars:0,template:function(Ce,Be){1&Ce&&(e.F$t(),e.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[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}),U})(),F=(()=>{class U{}return U.\u0275fac=function(Ce){return new(Ce||U)},U.\u0275mod=e.oAB({type:U}),U.\u0275inj=e.cJS({imports:[[t.BQ],t.BQ]}),U})()},7531:(Ve,Q,m)=>{"use strict";m.d(Q,{Jk:()=>w,Nt:()=>ie,c:()=>ee});var e=m(3191),t=m(925),y=m(5e3),C=m(3075),o=m(508),M=m(7322),l=m(7579),N=m(515);const s=(0,t.i$)({passive:!0});let D=(()=>{class _e{constructor(re,de){this._platform=re,this._ngZone=de,this._monitoredElements=new Map}monitor(re){if(!this._platform.isBrowser)return N.E;const de=(0,e.fI)(re),oe=this._monitoredElements.get(de);if(oe)return oe.subject;const ae=new l.x,b="cdk-text-field-autofilled",i=a=>{"cdk-text-field-autofill-start"!==a.animationName||de.classList.contains(b)?"cdk-text-field-autofill-end"===a.animationName&&de.classList.contains(b)&&(de.classList.remove(b),this._ngZone.run(()=>ae.next({target:a.target,isAutofilled:!1}))):(de.classList.add(b),this._ngZone.run(()=>ae.next({target:a.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{de.addEventListener("animationstart",i,s),de.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(de,{subject:ae,unlisten:()=>{de.removeEventListener("animationstart",i,s)}}),ae}stopMonitoring(re){const de=(0,e.fI)(re),oe=this._monitoredElements.get(de);oe&&(oe.unlisten(),oe.subject.complete(),de.classList.remove("cdk-text-field-autofill-monitored"),de.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(de))}ngOnDestroy(){this._monitoredElements.forEach((re,de)=>this.stopMonitoring(de))}}return _e.\u0275fac=function(re){return new(re||_e)(y.LFG(t.t4),y.LFG(y.R0b))},_e.\u0275prov=y.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"}),_e})(),E=(()=>{class _e{}return _e.\u0275fac=function(re){return new(re||_e)},_e.\u0275mod=y.oAB({type:_e}),_e.\u0275inj=y.cJS({imports:[[t.ud]]}),_e})();const w=new y.OlP("MAT_INPUT_VALUE_ACCESSOR"),Z=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let j=0;const W=(0,o.FD)(class{constructor(_e,ce,re,de){this._defaultErrorStateMatcher=_e,this._parentForm=ce,this._parentFormGroup=re,this.ngControl=de}});let ie=(()=>{class _e extends W{constructor(re,de,oe,ae,b,i,a,p,u,_){super(i,ae,b,oe),this._elementRef=re,this._platform=de,this._autofillMonitor=p,this._formField=_,this._uid="mat-input-"+j++,this.focused=!1,this.stateChanges=new l.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(x=>(0,t.qK)().has(x));const L=this._elementRef.nativeElement,I=L.nodeName.toLowerCase();this._inputValueAccessor=a||L,this._previousNativeValue=this.value,this.id=this.id,de.IOS&&u.runOutsideAngular(()=>{re.nativeElement.addEventListener("keyup",x=>{const r=x.target;!r.value&&0===r.selectionStart&&0===r.selectionEnd&&(r.setSelectionRange(1,1),r.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===I,this._isTextarea="textarea"===I,this._isInFormField=!!_,this._isNativeSelect&&(this.controlType=L.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(re){this._disabled=(0,e.Ig)(re),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(re){this._id=re||this._uid}get required(){var re,de,oe,ae;return null!==(ae=null!==(re=this._required)&&void 0!==re?re:null===(oe=null===(de=this.ngControl)||void 0===de?void 0:de.control)||void 0===oe?void 0:oe.hasValidator(C.kI.required))&&void 0!==ae&&ae}set required(re){this._required=(0,e.Ig)(re)}get type(){return this._type}set type(re){this._type=re||"text",this._validateType(),!this._isTextarea&&(0,t.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(re){re!==this.value&&(this._inputValueAccessor.value=re,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(re){this._readonly=(0,e.Ig)(re)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(re=>{this.autofilled=re.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(re){this._elementRef.nativeElement.focus(re)}_focusChanged(re){re!==this.focused&&(this.focused=re,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var re,de;const oe=(null===(de=null===(re=this._formField)||void 0===re?void 0:re._hideControlPlaceholder)||void 0===de?void 0:de.call(re))?null:this.placeholder;if(oe!==this._previousPlaceholder){const ae=this._elementRef.nativeElement;this._previousPlaceholder=oe,oe?ae.setAttribute("placeholder",oe):ae.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const re=this._elementRef.nativeElement.value;this._previousNativeValue!==re&&(this._previousNativeValue=re,this.stateChanges.next())}_validateType(){Z.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let re=this._elementRef.nativeElement.validity;return re&&re.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const re=this._elementRef.nativeElement,de=re.options[0];return this.focused||re.multiple||!this.empty||!!(re.selectedIndex>-1&&de&&de.label)}return this.focused||!this.empty}setDescribedByIds(re){re.length?this._elementRef.nativeElement.setAttribute("aria-describedby",re.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const re=this._elementRef.nativeElement;return this._isNativeSelect&&(re.multiple||re.size>1)}}return _e.\u0275fac=function(re){return new(re||_e)(y.Y36(y.SBq),y.Y36(t.t4),y.Y36(C.a5,10),y.Y36(C.F,8),y.Y36(C.sg,8),y.Y36(o.rD),y.Y36(w,10),y.Y36(D),y.Y36(y.R0b),y.Y36(M.G_,8))},_e.\u0275dir=y.lG2({type:_e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:11,hostBindings:function(re,de){1&re&&y.NdJ("focus",function(){return de._focusChanged(!0)})("blur",function(){return de._focusChanged(!1)})("input",function(){return de._onInput()}),2&re&&(y.Ikx("disabled",de.disabled)("required",de.required),y.uIk("id",de.id)("data-placeholder",de.placeholder)("readonly",de.readonly&&!de._isNativeSelect||null)("aria-invalid",de.empty&&de.required?null:de.errorState)("aria-required",de.required),y.ekj("mat-input-server",de._isServer)("mat-native-select-inline",de._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[y._Bn([{provide:M.Eo,useExisting:_e}]),y.qOj,y.TTD]}),_e})(),ee=(()=>{class _e{}return _e.\u0275fac=function(re){return new(re||_e)},_e.\u0275mod=y.oAB({type:_e}),_e.\u0275inj=y.cJS({providers:[o.rD],imports:[[E,M.lN,o.BQ],E,M.lN]}),_e})()},4623:(Ve,Q,m)=>{"use strict";m.d(Q,{i$:()=>ae,Tg:()=>p,ie:()=>v});var e=m(9808),t=m(5e3),y=m(508),C=m(3191),o=m(7579),M=m(2722),O=(m(8675),m(5664),m(449),m(1159),m(3075),m(4834));const E=["*"],w=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],Z=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],_e=(0,y.Id)((0,y.Kr)(class{})),ce=(0,y.Kr)(class{}),re=new t.OlP("MatList"),de=new t.OlP("MatNavList");let ae=(()=>{class G extends _e{constructor(U){super(),this._elementRef=U,this._stateChanges=new o.x,"action-list"===this._getListType()&&U.nativeElement.classList.add("mat-action-list")}_getListType(){const U=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===U?"list":"mat-action-list"===U?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return G.\u0275fac=function(U){return new(U||G)(t.Y36(t.SBq))},G.\u0275cmp=t.Xpm({type:G,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[t._Bn([{provide:re,useExisting:G}]),t.qOj,t.TTD],ngContentSelectors:E,decls:1,vars:0,template:function(U,ye){1&U&&(t.F$t(),t.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),G})(),b=(()=>{class G{}return G.\u0275fac=function(U){return new(U||G)},G.\u0275dir=t.lG2({type:G,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),G})(),i=(()=>{class G{}return G.\u0275fac=function(U){return new(U||G)},G.\u0275dir=t.lG2({type:G,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),G})(),p=(()=>{class G extends ce{constructor(U,ye,Ce,Be){super(),this._element=U,this._isInteractiveList=!1,this._destroyed=new o.x,this._disabled=!1,this._isInteractiveList=!!(Ce||Be&&"action-list"===Be._getListType()),this._list=Ce||Be;const ze=this._getHostElement();"button"===ze.nodeName.toLowerCase()&&!ze.hasAttribute("type")&&ze.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,M.R)(this._destroyed)).subscribe(()=>{ye.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(U){this._disabled=(0,C.Ig)(U)}ngAfterContentInit(){(0,y.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return G.\u0275fac=function(U){return new(U||G)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(de,8),t.Y36(re,8))},G.\u0275cmp=t.Xpm({type:G,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(U,ye,Ce){if(1&U&&(t.Suo(Ce,b,5),t.Suo(Ce,i,5),t.Suo(Ce,y.X2,5)),2&U){let Be;t.iGM(Be=t.CRH())&&(ye._avatar=Be.first),t.iGM(Be=t.CRH())&&(ye._icon=Be.first),t.iGM(Be=t.CRH())&&(ye._lines=Be)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(U,ye){2&U&&t.ekj("mat-list-item-disabled",ye.disabled)("mat-list-item-avatar",ye._avatar||ye._icon)("mat-list-item-with-avatar",ye._avatar||ye._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[t.qOj],ngContentSelectors:Z,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(U,ye){1&U&&(t.F$t(w),t.TgZ(0,"div",0),t._UZ(1,"div",1),t.Hsn(2),t.TgZ(3,"div",2),t.Hsn(4,1),t.qZA(),t.Hsn(5,2),t.qZA()),2&U&&(t.xp6(1),t.Q6J("matRippleTrigger",ye._getHostElement())("matRippleDisabled",ye._isRippleDisabled()))},directives:[y.wG],encapsulation:2,changeDetection:0}),G})(),v=(()=>{class G{}return G.\u0275fac=function(U){return new(U||G)},G.\u0275mod=t.oAB({type:G}),G.\u0275inj=t.cJS({imports:[[y.uc,y.si,y.BQ,y.us,e.ez],y.uc,y.BQ,y.us,O.t]}),G})()},2181:(Ve,Q,m)=>{"use strict";m.d(Q,{VK:()=>Ie,OP:()=>U,Tx:()=>Ne,p6:()=>Re});var e=m(5664),t=m(3191),y=m(1159),C=m(5e3),o=m(7579),M=m(727),l=m(6451),N=m(9646),s=m(3101),D=m(8675),A=m(3900),O=m(5698),E=m(9300),P=m(2722),w=m(4086),Z=m(1777),j=m(7429),W=m(9808),ie=m(508),ee=m(9776),_e=m(925),ce=m(226),re=m(5303);const de=["mat-menu-item",""];function oe(he,Le){1&he&&(C.O4$(),C.TgZ(0,"svg",2),C._UZ(1,"polygon",3),C.qZA())}const ae=["*"];function b(he,Le){if(1&he){const ke=C.EpF();C.TgZ(0,"div",0),C.NdJ("keydown",function($){return C.CHM(ke),C.oxw()._handleKeydown($)})("click",function(){return C.CHM(ke),C.oxw().closed.emit("click")})("@transformMenu.start",function($){return C.CHM(ke),C.oxw()._onAnimationStart($)})("@transformMenu.done",function($){return C.CHM(ke),C.oxw()._onAnimationDone($)}),C.TgZ(1,"div",1),C.Hsn(2),C.qZA(),C.qZA()}if(2&he){const ke=C.oxw();C.Q6J("id",ke.panelId)("ngClass",ke._classList)("@transformMenu",ke._panelAnimationState),C.uIk("aria-label",ke.ariaLabel||null)("aria-labelledby",ke.ariaLabelledby||null)("aria-describedby",ke.ariaDescribedby||null)}}const i={transformMenu:(0,Z.X$)("transformMenu",[(0,Z.SB)("void",(0,Z.oB)({opacity:0,transform:"scale(0.8)"})),(0,Z.eR)("void => enter",(0,Z.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Z.oB)({opacity:1,transform:"scale(1)"}))),(0,Z.eR)("* => void",(0,Z.jt)("100ms 25ms linear",(0,Z.oB)({opacity:0})))]),fadeInItems:(0,Z.X$)("fadeInItems",[(0,Z.SB)("showing",(0,Z.oB)({opacity:1})),(0,Z.eR)("void => *",[(0,Z.oB)({opacity:0}),(0,Z.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},u=new C.OlP("MatMenuContent"),G=new C.OlP("MAT_MENU_PANEL"),F=(0,ie.Kr)((0,ie.Id)(class{}));let U=(()=>{class he extends F{constructor(ke,q,$,le,xe){super(),this._elementRef=ke,this._focusMonitor=$,this._parentMenu=le,this._changeDetectorRef=xe,this.role="menuitem",this._hovered=new o.x,this._focused=new o.x,this._highlighted=!1,this._triggersSubmenu=!1,le&&le.addItem&&le.addItem(this)}focus(ke,q){this._focusMonitor&&ke?this._focusMonitor.focusVia(this._getHostElement(),ke,q):this._getHostElement().focus(q),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(ke){this.disabled&&(ke.preventDefault(),ke.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var ke;const q=this._elementRef.nativeElement.cloneNode(!0),$=q.querySelectorAll("mat-icon, .material-icons");for(let le=0;le<$.length;le++)$[le].remove();return(null===(ke=q.textContent)||void 0===ke?void 0:ke.trim())||""}_setHighlighted(ke){var q;this._highlighted=ke,null===(q=this._changeDetectorRef)||void 0===q||q.markForCheck()}}return he.\u0275fac=function(ke){return new(ke||he)(C.Y36(C.SBq),C.Y36(W.K0),C.Y36(e.tE),C.Y36(G,8),C.Y36(C.sBO))},he.\u0275cmp=C.Xpm({type:he,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(ke,q){1&ke&&C.NdJ("click",function(le){return q._checkDisabled(le)})("mouseenter",function(){return q._handleMouseEnter()}),2&ke&&(C.uIk("role",q.role)("tabindex",q._getTabIndex())("aria-disabled",q.disabled.toString())("disabled",q.disabled||null),C.ekj("mat-menu-item",!0)("mat-menu-item-highlighted",q._highlighted)("mat-menu-item-submenu-trigger",q._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[C.qOj],attrs:de,ngContentSelectors:ae,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(ke,q){1&ke&&(C.F$t(),C.Hsn(0),C._UZ(1,"div",0),C.YNc(2,oe,2,0,"svg",1)),2&ke&&(C.xp6(1),C.Q6J("matRippleDisabled",q.disableRipple||q.disabled)("matRippleTrigger",q._getHostElement()),C.xp6(1),C.Q6J("ngIf",q._triggersSubmenu))},directives:[ie.wG,W.O5],encapsulation:2,changeDetection:0}),he})();const ye=new C.OlP("mat-menu-default-options",{providedIn:"root",factory:function Ce(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Be=0,ze=(()=>{class he{constructor(ke,q,$){this._elementRef=ke,this._ngZone=q,this._defaultOptions=$,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new C.n_E,this._tabSubscription=M.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new o.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new C.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Be++}get xPosition(){return this._xPosition}set xPosition(ke){this._xPosition=ke,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(ke){this._yPosition=ke,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(ke){this._overlapTrigger=(0,t.Ig)(ke)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ke){this._hasBackdrop=(0,t.Ig)(ke)}set panelClass(ke){const q=this._previousPanelClass;q&&q.length&&q.split(" ").forEach($=>{this._classList[$]=!1}),this._previousPanelClass=ke,ke&&ke.length&&(ke.split(" ").forEach($=>{this._classList[$]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(ke){this.panelClass=ke}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new e.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,D.O)(this._directDescendantItems),(0,A.w)(ke=>(0,l.T)(...ke.map(q=>q._focused)))).subscribe(ke=>this._keyManager.updateActiveItem(ke))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,D.O)(this._directDescendantItems),(0,A.w)(q=>(0,l.T)(...q.map($=>$._hovered))))}addItem(ke){}removeItem(ke){}_handleKeydown(ke){const q=ke.keyCode,$=this._keyManager;switch(q){case y.hY:(0,y.Vb)(ke)||(ke.preventDefault(),this.closed.emit("keydown"));break;case y.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case y.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(q===y.LH||q===y.JH)&&$.setFocusOrigin("keyboard"),$.onKeydown(ke)}}focusFirstItem(ke="program"){this.lazyContent?this._ngZone.onStable.pipe((0,O.q)(1)).subscribe(()=>this._focusFirstItem(ke)):this._focusFirstItem(ke)}_focusFirstItem(ke){const q=this._keyManager;if(q.setFocusOrigin(ke).setFirstItemActive(),!q.activeItem&&this._directDescendantItems.length){let $=this._directDescendantItems.first._getHostElement().parentElement;for(;$;){if("menu"===$.getAttribute("role")){$.focus();break}$=$.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(ke){const q=Math.min(this._baseElevation+ke,24),$=`${this._elevationPrefix}${q}`,le=Object.keys(this._classList).find(xe=>xe.startsWith(this._elevationPrefix));(!le||le===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[$]=!0,this._previousElevation=$)}setPositionClasses(ke=this.xPosition,q=this.yPosition){const $=this._classList;$["mat-menu-before"]="before"===ke,$["mat-menu-after"]="after"===ke,$["mat-menu-above"]="above"===q,$["mat-menu-below"]="below"===q}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(ke){this._animationDone.next(ke),this._isAnimating=!1}_onAnimationStart(ke){this._isAnimating=!0,"enter"===ke.toState&&0===this._keyManager.activeItemIndex&&(ke.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,D.O)(this._allItems)).subscribe(ke=>{this._directDescendantItems.reset(ke.filter(q=>q._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return he.\u0275fac=function(ke){return new(ke||he)(C.Y36(C.SBq),C.Y36(C.R0b),C.Y36(ye))},he.\u0275dir=C.lG2({type:he,contentQueries:function(ke,q,$){if(1&ke&&(C.Suo($,u,5),C.Suo($,U,5),C.Suo($,U,4)),2&ke){let le;C.iGM(le=C.CRH())&&(q.lazyContent=le.first),C.iGM(le=C.CRH())&&(q._allItems=le),C.iGM(le=C.CRH())&&(q.items=le)}},viewQuery:function(ke,q){if(1&ke&&C.Gf(C.Rgc,5),2&ke){let $;C.iGM($=C.CRH())&&(q.templateRef=$.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),he})(),Ie=(()=>{class he extends ze{constructor(ke,q,$){super(ke,q,$),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return he.\u0275fac=function(ke){return new(ke||he)(C.Y36(C.SBq),C.Y36(C.R0b),C.Y36(ye))},he.\u0275cmp=C.Xpm({type:he,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(ke,q){2&ke&&C.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[C._Bn([{provide:G,useExisting:he}]),C.qOj],ngContentSelectors:ae,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(ke,q){1&ke&&(C.F$t(),C.YNc(0,b,3,6,"ng-template"))},directives:[W.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[i.transformMenu,i.fadeInItems]},changeDetection:0}),he})();const K=new C.OlP("mat-menu-scroll-strategy"),we={provide:K,deps:[ee.aV],useFactory:function Me(he){return()=>he.scrollStrategies.reposition()}},Ge=(0,_e.i$)({passive:!0});let vt=(()=>{class he{constructor(ke,q,$,le,xe,Ue,lt,nt){this._overlay=ke,this._element=q,this._viewContainerRef=$,this._menuItemInstance=Ue,this._dir=lt,this._focusMonitor=nt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=M.w0.EMPTY,this._hoverSubscription=M.w0.EMPTY,this._menuCloseSubscription=M.w0.EMPTY,this._handleTouchStart=ft=>{(0,e.yG)(ft)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new C.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new C.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=le,this._parentMaterialMenu=xe instanceof ze?xe:void 0,q.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ge),Ue&&(Ue._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(ke){this.menu=ke}get menu(){return this._menu}set menu(ke){ke!==this._menu&&(this._menu=ke,this._menuCloseSubscription.unsubscribe(),ke&&(this._menuCloseSubscription=ke.close.subscribe(q=>{this._destroyMenu(q),("click"===q||"tab"===q)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(q)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ge),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const ke=this._createOverlay(),q=ke.getConfig();this._setPosition(q.positionStrategy),q.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,ke.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof ze&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(ke,q){this._focusMonitor&&ke?this._focusMonitor.focusVia(this._element,ke,q):this._element.nativeElement.focus(q)}updatePosition(){var ke;null===(ke=this._overlayRef)||void 0===ke||ke.updatePosition()}_destroyMenu(ke){if(!this._overlayRef||!this.menuOpen)return;const q=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===ke||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,q instanceof ze?(q._resetAnimation(),q.lazyContent?q._animationDone.pipe((0,E.h)($=>"void"===$.toState),(0,O.q)(1),(0,P.R)(q.lazyContent._attached)).subscribe({next:()=>q.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),q.lazyContent&&q.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let ke=0,q=this.menu.parentMenu;for(;q;)ke++,q=q.parentMenu;this.menu.setElevation(ke)}}_setIsMenuOpen(ke){this._menuOpen=ke,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(ke)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const ke=this._getOverlayConfig();this._subscribeToPositions(ke.positionStrategy),this._overlayRef=this._overlay.create(ke),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new ee.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(ke){this.menu.setPositionClasses&&ke.positionChanges.subscribe(q=>{this.menu.setPositionClasses("start"===q.connectionPair.overlayX?"after":"before","top"===q.connectionPair.overlayY?"below":"above")})}_setPosition(ke){let[q,$]="before"===this.menu.xPosition?["end","start"]:["start","end"],[le,xe]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[Ue,lt]=[le,xe],[nt,ft]=[q,$],it=0;this.triggersSubmenu()?(ft=q="before"===this.menu.xPosition?"start":"end",$=nt="end"===q?"start":"end",it="bottom"===le?8:-8):this.menu.overlapTrigger||(Ue="top"===le?"bottom":"top",lt="top"===xe?"bottom":"top"),ke.withPositions([{originX:q,originY:Ue,overlayX:nt,overlayY:le,offsetY:it},{originX:$,originY:Ue,overlayX:ft,overlayY:le,offsetY:it},{originX:q,originY:lt,overlayX:nt,overlayY:xe,offsetY:-it},{originX:$,originY:lt,overlayX:ft,overlayY:xe,offsetY:-it}])}_menuClosingActions(){const ke=this._overlayRef.backdropClick(),q=this._overlayRef.detachments(),$=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,N.of)(),le=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,E.h)(xe=>xe!==this._menuItemInstance),(0,E.h)(()=>this._menuOpen)):(0,N.of)();return(0,l.T)(ke,$,le,q)}_handleMousedown(ke){(0,e.X6)(ke)||(this._openedBy=0===ke.button?"mouse":void 0,this.triggersSubmenu()&&ke.preventDefault())}_handleKeydown(ke){const q=ke.keyCode;(q===y.K5||q===y.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(q===y.SV&&"ltr"===this.dir||q===y.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(ke){this.triggersSubmenu()?(ke.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,E.h)(ke=>ke===this._menuItemInstance&&!ke.disabled),(0,w.g)(0,s.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ze&&this.menu._isAnimating?this.menu._animationDone.pipe((0,O.q)(1),(0,w.g)(0,s.E),(0,P.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new j.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return he.\u0275fac=function(ke){return new(ke||he)(C.Y36(ee.aV),C.Y36(C.SBq),C.Y36(C.s_b),C.Y36(K),C.Y36(G,8),C.Y36(U,10),C.Y36(ce.Is,8),C.Y36(e.tE))},he.\u0275dir=C.lG2({type:he,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(ke,q){1&ke&&C.NdJ("click",function(le){return q._handleClick(le)})("mousedown",function(le){return q._handleMousedown(le)})("keydown",function(le){return q._handleKeydown(le)}),2&ke&&C.uIk("aria-expanded",q.menuOpen||null)("aria-controls",q.menuOpen?q.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),he})(),Re=(()=>{class he extends vt{}return he.\u0275fac=function(){let Le;return function(q){return(Le||(Le=C.n5z(he)))(q||he)}}(),he.\u0275dir=C.lG2({type:he,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[C.qOj]}),he})(),Ne=(()=>{class he{}return he.\u0275fac=function(ke){return new(ke||he)},he.\u0275mod=C.oAB({type:he}),he.\u0275inj=C.cJS({providers:[we],imports:[[W.ez,ie.BQ,ie.si,ee.U8],re.ZD,ie.BQ]}),he})()},6087:(Ve,Q,m)=>{"use strict";m.d(Q,{NW:()=>de,ye:()=>Z,TU:()=>oe});var e=m(9808),t=m(5e3),y=m(508),C=m(7423),o=m(4107),M=m(7238),l=m(3191),N=m(7579),s=m(7322);function D(ae,b){if(1&ae&&(t.TgZ(0,"mat-option",19),t._uU(1),t.qZA()),2&ae){const i=b.$implicit;t.Q6J("value",i),t.xp6(1),t.hij(" ",i," ")}}function A(ae,b){if(1&ae){const i=t.EpF();t.TgZ(0,"mat-form-field",16),t.TgZ(1,"mat-select",17),t.NdJ("selectionChange",function(p){return t.CHM(i),t.oxw(2)._changePageSize(p.value)}),t.YNc(2,D,2,2,"mat-option",18),t.qZA(),t.qZA()}if(2&ae){const i=t.oxw(2);t.Q6J("appearance",i._formFieldAppearance)("color",i.color),t.xp6(1),t.Q6J("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),t.xp6(1),t.Q6J("ngForOf",i._displayedPageSizeOptions)}}function O(ae,b){if(1&ae&&(t.TgZ(0,"div",20),t._uU(1),t.qZA()),2&ae){const i=t.oxw(2);t.xp6(1),t.Oqu(i.pageSize)}}function E(ae,b){if(1&ae&&(t.TgZ(0,"div",12),t.TgZ(1,"div",13),t._uU(2),t.qZA(),t.YNc(3,A,3,6,"mat-form-field",14),t.YNc(4,O,2,1,"div",15),t.qZA()),2&ae){const i=t.oxw();t.xp6(2),t.hij(" ",i._intl.itemsPerPageLabel," "),t.xp6(1),t.Q6J("ngIf",i._displayedPageSizeOptions.length>1),t.xp6(1),t.Q6J("ngIf",i._displayedPageSizeOptions.length<=1)}}function P(ae,b){if(1&ae){const i=t.EpF();t.TgZ(0,"button",21),t.NdJ("click",function(){return t.CHM(i),t.oxw().firstPage()}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",22),t.qZA(),t.qZA()}if(2&ae){const i=t.oxw();t.Q6J("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),t.uIk("aria-label",i._intl.firstPageLabel)}}function w(ae,b){if(1&ae){const i=t.EpF();t.O4$(),t.kcU(),t.TgZ(0,"button",23),t.NdJ("click",function(){return t.CHM(i),t.oxw().lastPage()}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",24),t.qZA(),t.qZA()}if(2&ae){const i=t.oxw();t.Q6J("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),t.uIk("aria-label",i._intl.lastPageLabel)}}let Z=(()=>{class ae{constructor(){this.changes=new N.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(i,a,p)=>{if(0==p||0==a)return`0 of ${p}`;const u=i*a;return`${u+1} \u2013 ${u<(p=Math.max(p,0))?Math.min(u+a,p):u+a} of ${p}`}}}return ae.\u0275fac=function(i){return new(i||ae)},ae.\u0275prov=t.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})();const W={provide:Z,deps:[[new t.FiY,new t.tp0,Z]],useFactory:function j(ae){return ae||new Z}},_e=new t.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),ce=(0,y.Id)((0,y.dB)(class{}));let re=(()=>{class ae extends ce{constructor(i,a,p){if(super(),this._intl=i,this._changeDetectorRef=a,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new t.vpe,this._intlChanges=i.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),p){const{pageSize:u,pageSizeOptions:_,hidePageSize:L,showFirstLastButtons:I}=p;null!=u&&(this._pageSize=u),null!=_&&(this._pageSizeOptions=_),null!=L&&(this._hidePageSize=L),null!=I&&(this._showFirstLastButtons=I)}}get pageIndex(){return this._pageIndex}set pageIndex(i){this._pageIndex=Math.max((0,l.su)(i),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(i){this._length=(0,l.su)(i),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(i){this._pageSize=Math.max((0,l.su)(i),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(i){this._pageSizeOptions=(i||[]).map(a=>(0,l.su)(a)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(i){this._hidePageSize=(0,l.Ig)(i)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(i){this._showFirstLastButtons=(0,l.Ig)(i)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const i=this.pageIndex;this.pageIndex++,this._emitPageEvent(i)}previousPage(){if(!this.hasPreviousPage())return;const i=this.pageIndex;this.pageIndex--,this._emitPageEvent(i)}firstPage(){if(!this.hasPreviousPage())return;const i=this.pageIndex;this.pageIndex=0,this._emitPageEvent(i)}lastPage(){if(!this.hasNextPage())return;const i=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(i)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const i=this.getNumberOfPages()-1;return this.pageIndexi-a),this._changeDetectorRef.markForCheck())}_emitPageEvent(i){this.page.emit({previousPageIndex:i,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return ae.\u0275fac=function(i){t.$Z()},ae.\u0275dir=t.lG2({type:ae,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[t.qOj]}),ae})(),de=(()=>{class ae extends re{constructor(i,a,p){super(i,a,p),p&&null!=p.formFieldAppearance&&(this._formFieldAppearance=p.formFieldAppearance)}}return ae.\u0275fac=function(i){return new(i||ae)(t.Y36(Z),t.Y36(t.sBO),t.Y36(_e,8))},ae.\u0275cmp=t.Xpm({type:ae,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[t.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(i,a){1&i&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,E,5,3,"div",2),t.TgZ(3,"div",3),t.TgZ(4,"div",4),t._uU(5),t.qZA(),t.YNc(6,P,3,5,"button",5),t.TgZ(7,"button",6),t.NdJ("click",function(){return a.previousPage()}),t.O4$(),t.TgZ(8,"svg",7),t._UZ(9,"path",8),t.qZA(),t.qZA(),t.kcU(),t.TgZ(10,"button",9),t.NdJ("click",function(){return a.nextPage()}),t.O4$(),t.TgZ(11,"svg",7),t._UZ(12,"path",10),t.qZA(),t.qZA(),t.YNc(13,w,3,5,"button",11),t.qZA(),t.qZA(),t.qZA()),2&i&&(t.xp6(2),t.Q6J("ngIf",!a.hidePageSize),t.xp6(3),t.hij(" ",a._intl.getRangeLabel(a.pageIndex,a.pageSize,a.length)," "),t.xp6(1),t.Q6J("ngIf",a.showFirstLastButtons),t.xp6(1),t.Q6J("matTooltip",a._intl.previousPageLabel)("matTooltipDisabled",a._previousButtonsDisabled())("matTooltipPosition","above")("disabled",a._previousButtonsDisabled()),t.uIk("aria-label",a._intl.previousPageLabel),t.xp6(3),t.Q6J("matTooltip",a._intl.nextPageLabel)("matTooltipDisabled",a._nextButtonsDisabled())("matTooltipPosition","above")("disabled",a._nextButtonsDisabled()),t.uIk("aria-label",a._intl.nextPageLabel),t.xp6(3),t.Q6J("ngIf",a.showFirstLastButtons))},directives:[e.O5,C.lW,M.gM,s.KE,o.gD,e.sg,y.ey],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),ae})(),oe=(()=>{class ae{}return ae.\u0275fac=function(i){return new(i||ae)},ae.\u0275mod=t.oAB({type:ae}),ae.\u0275inj=t.cJS({providers:[W],imports:[[e.ez,C.ot,o.LD,M.AV,y.BQ]]}),ae})()},5899:(Ve,Q,m)=>{"use strict";m.d(Q,{pW:()=>w,Cv:()=>j});var e=m(5e3),t=m(9808),y=m(508),C=m(3191),o=m(6360),M=m(727),l=m(4968),N=m(9300);const s=["primaryValueBar"],D=(0,y.pj)(class{constructor(W){this._elementRef=W}},"primary"),A=new e.OlP("mat-progress-bar-location",{providedIn:"root",factory:function O(){const W=(0,e.f3M)(t.K0),ie=W?W.location:null;return{getPathname:()=>ie?ie.pathname+ie.search:""}}}),E=new e.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let P=0,w=(()=>{class W extends D{constructor(ee,_e,ce,re,de){super(ee),this._ngZone=_e,this._animationMode=ce,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new e.vpe,this._animationEndSubscription=M.w0.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+P++;const oe=re?re.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${oe}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===ce,de&&(de.color&&(this.color=this.defaultColor=de.color),this.mode=de.mode||this.mode)}get value(){return this._value}set value(ee){this._value=Z((0,C.su)(ee)||0)}get bufferValue(){return this._bufferValue}set bufferValue(ee){this._bufferValue=Z(ee||0)}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const ee=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,l.R)(ee,"transitionend").pipe((0,N.h)(_e=>_e.target===ee)).subscribe(()=>{("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return W.\u0275fac=function(ee){return new(ee||W)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(o.Qb,8),e.Y36(A,8),e.Y36(E,8))},W.\u0275cmp=e.Xpm({type:W,selectors:[["mat-progress-bar"]],viewQuery:function(ee,_e){if(1&ee&&e.Gf(s,5),2&ee){let ce;e.iGM(ce=e.CRH())&&(_e._primaryValueBar=ce.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(ee,_e){2&ee&&(e.uIk("aria-valuenow","indeterminate"===_e.mode||"query"===_e.mode?null:_e.value)("mode",_e.mode),e.ekj("_mat-animation-noopable",_e._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[e.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(ee,_e){1&ee&&(e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1),e.TgZ(2,"defs"),e.TgZ(3,"pattern",2),e._UZ(4,"circle",3),e.qZA(),e.qZA(),e._UZ(5,"rect",4),e.qZA(),e.kcU(),e._UZ(6,"div",5),e._UZ(7,"div",6,7),e._UZ(9,"div",8),e.qZA()),2&ee&&(e.xp6(3),e.Q6J("id",_e.progressbarId),e.xp6(2),e.uIk("fill",_e._rectangleFillValue),e.xp6(1),e.Q6J("ngStyle",_e._bufferTransform()),e.xp6(1),e.Q6J("ngStyle",_e._primaryTransform()))},directives:[t.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-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 mat-progress-bar-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 mat-progress-bar-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 mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),W})();function Z(W,ie=0,ee=100){return Math.max(ie,Math.min(ee,W))}let j=(()=>{class W{}return W.\u0275fac=function(ee){return new(ee||W)},W.\u0275mod=e.oAB({type:W}),W.\u0275inj=e.cJS({imports:[[t.ez,y.BQ],y.BQ]}),W})()},773:(Ve,Q,m)=>{"use strict";m.d(Q,{Cq:()=>ee,$g:()=>ie});var e=m(5e3),t=m(9808),y=m(508),C=m(3191),o=m(925),M=m(6360);function l(_e,ce){if(1&_e&&(e.O4$(),e._UZ(0,"circle",3)),2&_e){const re=e.oxw();e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+re._spinnerAnimationLabel)("stroke-dashoffset",re._getStrokeDashOffset(),"px")("stroke-dasharray",re._getStrokeCircumference(),"px")("stroke-width",re._getCircleStrokeWidth(),"%"),e.uIk("r",re._getCircleRadius())}}function N(_e,ce){if(1&_e&&(e.O4$(),e._UZ(0,"circle",3)),2&_e){const re=e.oxw();e.Udp("stroke-dashoffset",re._getStrokeDashOffset(),"px")("stroke-dasharray",re._getStrokeCircumference(),"px")("stroke-width",re._getCircleStrokeWidth(),"%"),e.uIk("r",re._getCircleRadius())}}function s(_e,ce){if(1&_e&&(e.O4$(),e._UZ(0,"circle",3)),2&_e){const re=e.oxw();e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+re._spinnerAnimationLabel)("stroke-dashoffset",re._getStrokeDashOffset(),"px")("stroke-dasharray",re._getStrokeCircumference(),"px")("stroke-width",re._getCircleStrokeWidth(),"%"),e.uIk("r",re._getCircleRadius())}}function D(_e,ce){if(1&_e&&(e.O4$(),e._UZ(0,"circle",3)),2&_e){const re=e.oxw();e.Udp("stroke-dashoffset",re._getStrokeDashOffset(),"px")("stroke-dasharray",re._getStrokeCircumference(),"px")("stroke-width",re._getCircleStrokeWidth(),"%"),e.uIk("r",re._getCircleRadius())}}const P=(0,y.pj)(class{constructor(_e){this._elementRef=_e}},"primary"),w=new e.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function Z(){return{diameter:100}}});class W extends P{constructor(ce,re,de,oe,ae){super(ce),this._document=de,this._diameter=100,this._value=0,this.mode="determinate";const b=W._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),b.has(de.head)||b.set(de.head,new Set([100])),this._noopAnimations="NoopAnimations"===oe&&!!ae&&!ae._forceAnimations,ae&&(ae.diameter&&(this.diameter=ae.diameter),ae.strokeWidth&&(this.strokeWidth=ae.strokeWidth))}get diameter(){return this._diameter}set diameter(ce){this._diameter=(0,C.su)(ce),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(ce){this._strokeWidth=(0,C.su)(ce)}get value(){return"determinate"===this.mode?this._value:0}set value(ce){this._value=Math.max(0,Math.min(100,(0,C.su)(ce)))}ngOnInit(){const ce=this._elementRef.nativeElement;this._styleRoot=(0,o.kV)(ce)||this._document.head,this._attachStyleNode(),ce.classList.add("mat-progress-spinner-indeterminate-animation")}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const ce=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${ce} ${ce}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const ce=this._styleRoot,re=this._diameter,de=W._diameters;let oe=de.get(ce);if(!oe||!oe.has(re)){const ae=this._document.createElement("style");ae.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),ae.textContent=this._getAnimationText(),ce.appendChild(ae),oe||(oe=new Set,de.set(ce,oe)),oe.add(re)}}_getAnimationText(){const ce=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*ce).replace(/END_VALUE/g,""+.2*ce).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}W._diameters=new WeakMap,W.\u0275fac=function(ce){return new(ce||W)(e.Y36(e.SBq),e.Y36(o.t4),e.Y36(t.K0,8),e.Y36(M.Qb,8),e.Y36(w))},W.\u0275cmp=e.Xpm({type:W,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(ce,re){2&ce&&(e.uIk("aria-valuemin","determinate"===re.mode?0:null)("aria-valuemax","determinate"===re.mode?100:null)("aria-valuenow","determinate"===re.mode?re.value:null)("mode",re.mode),e.Udp("width",re.diameter,"px")("height",re.diameter,"px"),e.ekj("_mat-animation-noopable",re._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[e.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(ce,re){1&ce&&(e.O4$(),e.TgZ(0,"svg",0),e.YNc(1,l,1,9,"circle",1),e.YNc(2,N,1,7,"circle",2),e.qZA()),2&ce&&(e.Udp("width",re.diameter,"px")("height",re.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===re.mode),e.uIk("viewBox",re._getViewBox()),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[t.RF,t.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0});let ie=(()=>{class _e extends W{constructor(re,de,oe,ae,b){super(re,de,oe,ae,b),this.mode="indeterminate"}}return _e.\u0275fac=function(re){return new(re||_e)(e.Y36(e.SBq),e.Y36(o.t4),e.Y36(t.K0,8),e.Y36(M.Qb,8),e.Y36(w))},_e.\u0275cmp=e.Xpm({type:_e,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(re,de){2&re&&(e.Udp("width",de.diameter,"px")("height",de.diameter,"px"),e.ekj("_mat-animation-noopable",de._noopAnimations))},inputs:{color:"color"},features:[e.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(re,de){1&re&&(e.O4$(),e.TgZ(0,"svg",0),e.YNc(1,s,1,9,"circle",1),e.YNc(2,D,1,7,"circle",2),e.qZA()),2&re&&(e.Udp("width",de.diameter,"px")("height",de.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===de.mode),e.uIk("viewBox",de._getViewBox()),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[t.RF,t.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0}),_e})(),ee=(()=>{class _e{}return _e.\u0275fac=function(re){return new(re||_e)},_e.\u0275mod=e.oAB({type:_e}),_e.\u0275inj=e.cJS({imports:[[y.BQ,t.ez],y.BQ]}),_e})()},9814:(Ve,Q,m)=>{"use strict";m.d(Q,{U0:()=>ce,VQ:()=>W,Fk:()=>re});var e=m(5e3),t=m(508),y=m(3191),C=m(3075),o=m(6360),M=m(5664),l=m(449);const N=["input"],s=function(de){return{enterDuration:de}},D=["*"],A=new e.OlP("mat-radio-default-options",{providedIn:"root",factory:function O(){return{color:"accent"}}});let E=0;const P={provide:C.JU,useExisting:(0,e.Gpc)(()=>W),multi:!0};class w{constructor(oe,ae){this.source=oe,this.value=ae}}const Z=new e.OlP("MatRadioGroup");let j=(()=>{class de{constructor(ae){this._changeDetector=ae,this._value=null,this._name="mat-radio-group-"+E++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new e.vpe}get name(){return this._name}set name(ae){this._name=ae,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(ae){this._labelPosition="before"===ae?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(ae){this._value!==ae&&(this._value=ae,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(ae){this._selected=ae,this.value=ae?ae.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(ae){this._disabled=(0,y.Ig)(ae),this._markRadiosForCheck()}get required(){return this._required}set required(ae){this._required=(0,y.Ig)(ae),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(ae=>{ae.name=this.name,ae._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(b=>{b.checked=this.value===b.value,b.checked&&(this._selected=b)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new w(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(ae=>ae._markForCheck())}writeValue(ae){this.value=ae,this._changeDetector.markForCheck()}registerOnChange(ae){this._controlValueAccessorChangeFn=ae}registerOnTouched(ae){this.onTouched=ae}setDisabledState(ae){this.disabled=ae,this._changeDetector.markForCheck()}}return de.\u0275fac=function(ae){return new(ae||de)(e.Y36(e.sBO))},de.\u0275dir=e.lG2({type:de,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),de})(),W=(()=>{class de extends j{}return de.\u0275fac=function(){let oe;return function(b){return(oe||(oe=e.n5z(de)))(b||de)}}(),de.\u0275dir=e.lG2({type:de,selectors:[["mat-radio-group"]],contentQueries:function(ae,b,i){if(1&ae&&e.Suo(i,ce,5),2&ae){let a;e.iGM(a=e.CRH())&&(b._radios=a)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[e._Bn([P,{provide:Z,useExisting:de}]),e.qOj]}),de})();class ie{constructor(oe){this._elementRef=oe}}const ee=(0,t.Kr)((0,t.sb)(ie));let _e=(()=>{class de extends ee{constructor(ae,b,i,a,p,u,_,L){super(b),this._changeDetector=i,this._focusMonitor=a,this._radioDispatcher=p,this._providerOverride=_,this._uniqueId="mat-radio-"+ ++E,this.id=this._uniqueId,this.change=new e.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=ae,this._noopAnimations="NoopAnimations"===u,L&&(this.tabIndex=(0,y.su)(L,0)),this._removeUniqueSelectionListener=p.listen((I,x)=>{I!==this.id&&x===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(ae){const b=(0,y.Ig)(ae);this._checked!==b&&(this._checked=b,b&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!b&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),b&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(ae){this._value!==ae&&(this._value=ae,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===ae),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(ae){this._labelPosition=ae}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(ae){this._setDisabled((0,y.Ig)(ae))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(ae){this._required=(0,y.Ig)(ae)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(ae){this._color=ae}get inputId(){return`${this.id||this._uniqueId}-input`}focus(ae,b){b?this._focusMonitor.focusVia(this._inputElement,b,ae):this._inputElement.nativeElement.focus(ae)}_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)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(ae=>{!ae&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new w(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(ae){ae.stopPropagation()}_onInputInteraction(ae){if(ae.stopPropagation(),!this.checked&&!this.disabled){const b=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),b&&this.radioGroup._emitChangeEvent())}}_setDisabled(ae){this._disabled!==ae&&(this._disabled=ae,this._changeDetector.markForCheck())}}return de.\u0275fac=function(ae){e.$Z()},de.\u0275dir=e.lG2({type:de,viewQuery:function(ae,b){if(1&ae&&e.Gf(N,5),2&ae){let i;e.iGM(i=e.CRH())&&(b._inputElement=i.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[e.qOj]}),de})(),ce=(()=>{class de extends _e{constructor(ae,b,i,a,p,u,_,L){super(ae,b,i,a,p,u,_,L)}}return de.\u0275fac=function(ae){return new(ae||de)(e.Y36(Z,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(M.tE),e.Y36(l.A8),e.Y36(o.Qb,8),e.Y36(A,8),e.$8M("tabindex"))},de.\u0275cmp=e.Xpm({type:de,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(ae,b){1&ae&&e.NdJ("focus",function(){return b._inputElement.nativeElement.focus()}),2&ae&&(e.uIk("tabindex",null)("id",b.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),e.ekj("mat-radio-checked",b.checked)("mat-radio-disabled",b.disabled)("_mat-animation-noopable",b._noopAnimations)("mat-primary","primary"===b.color)("mat-accent","accent"===b.color)("mat-warn","warn"===b.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[e.qOj],ngContentSelectors:D,decls:13,vars:20,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(ae,b){if(1&ae&&(e.F$t(),e.TgZ(0,"label",0,1),e.TgZ(2,"span",2),e._UZ(3,"span",3),e._UZ(4,"span",4),e.TgZ(5,"input",5,6),e.NdJ("change",function(a){return b._onInputInteraction(a)})("click",function(a){return b._onInputClick(a)}),e.qZA(),e.TgZ(7,"span",7),e._UZ(8,"span",8),e.qZA(),e.qZA(),e.TgZ(9,"span",9),e.TgZ(10,"span",10),e._uU(11,"\xa0"),e.qZA(),e.Hsn(12),e.qZA(),e.qZA()),2&ae){const i=e.MAs(1);e.uIk("for",b.inputId),e.xp6(5),e.Q6J("id",b.inputId)("checked",b.checked)("disabled",b.disabled)("tabIndex",b.tabIndex)("required",b.required),e.uIk("name",b.name)("value",b.value)("aria-label",b.ariaLabel)("aria-labelledby",b.ariaLabelledby)("aria-describedby",b.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",i)("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(18,s,b._noopAnimations?0:150)),e.xp6(2),e.ekj("mat-radio-label-before","before"==b.labelPosition)}},directives:[t.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),de})(),re=(()=>{class de{}return de.\u0275fac=function(ae){return new(ae||de)},de.\u0275mod=e.oAB({type:de}),de.\u0275inj=e.cJS({imports:[[t.si,t.BQ],t.BQ]}),de})()},4107:(Ve,Q,m)=>{"use strict";m.d(Q,{gD:()=>Ne,LD:()=>he,$L:()=>vt});var e=m(9776),t=m(9808),y=m(5e3),C=m(508),o=m(7322),M=m(5303),l=m(5664),N=m(3191),s=m(449),D=m(1159),A=m(3075),O=m(7579),E=m(9770),P=m(6451),w=m(8675),Z=m(3900),j=m(5698),W=m(9300),ie=m(4004),ee=m(1884),_e=m(2722),ce=m(1777),re=m(226);const de=["trigger"],oe=["panel"];function ae(Le,ke){if(1&Le&&(y.TgZ(0,"span",8),y._uU(1),y.qZA()),2&Le){const q=y.oxw();y.xp6(1),y.Oqu(q.placeholder)}}function b(Le,ke){if(1&Le&&(y.TgZ(0,"span",12),y._uU(1),y.qZA()),2&Le){const q=y.oxw(2);y.xp6(1),y.Oqu(q.triggerValue)}}function i(Le,ke){1&Le&&y.Hsn(0,0,["*ngSwitchCase","true"])}function a(Le,ke){if(1&Le&&(y.TgZ(0,"span",9),y.YNc(1,b,2,1,"span",10),y.YNc(2,i,1,0,"ng-content",11),y.qZA()),2&Le){const q=y.oxw();y.Q6J("ngSwitch",!!q.customTrigger),y.xp6(2),y.Q6J("ngSwitchCase",!0)}}function p(Le,ke){if(1&Le){const q=y.EpF();y.TgZ(0,"div",13),y.TgZ(1,"div",14,15),y.NdJ("@transformPanel.done",function(le){return y.CHM(q),y.oxw()._panelDoneAnimatingStream.next(le.toState)})("keydown",function(le){return y.CHM(q),y.oxw()._handleKeydown(le)}),y.Hsn(3,1),y.qZA(),y.qZA()}if(2&Le){const q=y.oxw();y.Q6J("@transformPanelWrap",void 0),y.xp6(1),y.Gre("mat-select-panel ",q._getPanelTheme(),""),y.Udp("transform-origin",q._transformOrigin)("font-size",q._triggerFontSize,"px"),y.Q6J("ngClass",q.panelClass)("@transformPanel",q.multiple?"showing-multiple":"showing"),y.uIk("id",q.id+"-panel")("aria-multiselectable",q.multiple)("aria-label",q.ariaLabel||null)("aria-labelledby",q._getPanelAriaLabelledby())}}const u=[[["mat-select-trigger"]],"*"],_=["mat-select-trigger","*"],L={transformPanelWrap:(0,ce.X$)("transformPanelWrap",[(0,ce.eR)("* => void",(0,ce.IO)("@transformPanel",[(0,ce.pV)()],{optional:!0}))]),transformPanel:(0,ce.X$)("transformPanel",[(0,ce.SB)("void",(0,ce.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,ce.SB)("showing",(0,ce.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,ce.SB)("showing-multiple",(0,ce.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,ce.eR)("void => *",(0,ce.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,ce.eR)("* => void",(0,ce.jt)("100ms 25ms linear",(0,ce.oB)({opacity:0})))])};let v=0;const G=256,ze=new y.OlP("mat-select-scroll-strategy"),K=new y.OlP("MAT_SELECT_CONFIG"),Me={provide:ze,deps:[e.aV],useFactory:function Ie(Le){return()=>Le.scrollStrategies.reposition()}};class we{constructor(ke,q){this.source=ke,this.value=q}}const z=(0,C.Kr)((0,C.sb)((0,C.Id)((0,C.FD)(class{constructor(Le,ke,q,$,le){this._elementRef=Le,this._defaultErrorStateMatcher=ke,this._parentForm=q,this._parentFormGroup=$,this.ngControl=le}})))),Ge=new y.OlP("MatSelectTrigger");let vt=(()=>{class Le{}return Le.\u0275fac=function(q){return new(q||Le)},Le.\u0275dir=y.lG2({type:Le,selectors:[["mat-select-trigger"]],features:[y._Bn([{provide:Ge,useExisting:Le}])]}),Le})(),Re=(()=>{class Le extends z{constructor(q,$,le,xe,Ue,lt,nt,ft,it,rt,Mt,Zt,Ft,Vt){var Ii,jt,ei;super(Ue,xe,nt,ft,rt),this._viewportRuler=q,this._changeDetectorRef=$,this._ngZone=le,this._dir=lt,this._parentFormField=it,this._liveAnnouncer=Ft,this._defaultOptions=Vt,this._panelOpen=!1,this._compareWith=(Pi,ai)=>Pi===ai,this._uid="mat-select-"+v++,this._triggerAriaLabelledBy=null,this._destroy=new O.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+v++,this._panelDoneAnimatingStream=new O.x,this._overlayPanelClass=(null===(Ii=this._defaultOptions)||void 0===Ii?void 0:Ii.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(ei=null===(jt=this._defaultOptions)||void 0===jt?void 0:jt.disableOptionCentering)&&void 0!==ei&&ei,this.ariaLabel="",this.optionSelectionChanges=(0,E.P)(()=>{const Pi=this.options;return Pi?Pi.changes.pipe((0,w.O)(Pi),(0,Z.w)(()=>(0,P.T)(...Pi.map(ai=>ai.onSelectionChange)))):this._ngZone.onStable.pipe((0,j.q)(1),(0,Z.w)(()=>this.optionSelectionChanges))}),this.openedChange=new y.vpe,this._openedStream=this.openedChange.pipe((0,W.h)(Pi=>Pi),(0,ie.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,W.h)(Pi=>!Pi),(0,ie.U)(()=>{})),this.selectionChange=new y.vpe,this.valueChange=new y.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==Vt?void 0:Vt.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=Vt.typeaheadDebounceInterval),this._scrollStrategyFactory=Zt,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Mt)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(q){this._placeholder=q,this.stateChanges.next()}get required(){var q,$,le,xe;return null!==(xe=null!==(q=this._required)&&void 0!==q?q:null===(le=null===($=this.ngControl)||void 0===$?void 0:$.control)||void 0===le?void 0:le.hasValidator(A.kI.required))&&void 0!==xe&&xe}set required(q){this._required=(0,N.Ig)(q),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(q){this._multiple=(0,N.Ig)(q)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(q){this._disableOptionCentering=(0,N.Ig)(q)}get compareWith(){return this._compareWith}set compareWith(q){this._compareWith=q,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(q){(q!==this._value||this._multiple&&Array.isArray(q))&&(this.options&&this._setSelectionByValue(q),this._value=q)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(q){this._typeaheadDebounceInterval=(0,N.su)(q)}get id(){return this._id}set id(q){this._id=q||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new s.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,ee.x)(),(0,_e.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,_e.R)(this._destroy)).subscribe(q=>{q.added.forEach($=>$.select()),q.removed.forEach($=>$.deselect())}),this.options.changes.pipe((0,w.O)(null),(0,_e.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const q=this._getTriggerAriaLabelledby();if(q!==this._triggerAriaLabelledBy){const $=this._elementRef.nativeElement;this._triggerAriaLabelledBy=q,q?$.setAttribute("aria-labelledby",q):$.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(q){q.disabled&&this.stateChanges.next(),q.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(q){this.value=q}registerOnChange(q){this._onChange=q}registerOnTouched(q){this._onTouched=q}setDisabledState(q){this.disabled=q,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var q,$;return this.multiple?(null===(q=this._selectionModel)||void 0===q?void 0:q.selected)||[]:null===($=this._selectionModel)||void 0===$?void 0:$.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const q=this._selectionModel.selected.map($=>$.viewValue);return this._isRtl()&&q.reverse(),q.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(q){this.disabled||(this.panelOpen?this._handleOpenKeydown(q):this._handleClosedKeydown(q))}_handleClosedKeydown(q){const $=q.keyCode,le=$===D.JH||$===D.LH||$===D.oh||$===D.SV,xe=$===D.K5||$===D.L_,Ue=this._keyManager;if(!Ue.isTyping()&&xe&&!(0,D.Vb)(q)||(this.multiple||q.altKey)&&le)q.preventDefault(),this.open();else if(!this.multiple){const lt=this.selected;Ue.onKeydown(q);const nt=this.selected;nt&<!==nt&&this._liveAnnouncer.announce(nt.viewValue,1e4)}}_handleOpenKeydown(q){const $=this._keyManager,le=q.keyCode,xe=le===D.JH||le===D.LH,Ue=$.isTyping();if(xe&&q.altKey)q.preventDefault(),this.close();else if(Ue||le!==D.K5&&le!==D.L_||!$.activeItem||(0,D.Vb)(q))if(!Ue&&this._multiple&&le===D.A&&q.ctrlKey){q.preventDefault();const lt=this.options.some(nt=>!nt.disabled&&!nt.selected);this.options.forEach(nt=>{nt.disabled||(lt?nt.select():nt.deselect())})}else{const lt=$.activeItemIndex;$.onKeydown(q),this._multiple&&xe&&q.shiftKey&&$.activeItem&&$.activeItemIndex!==lt&&$.activeItem._selectViaInteraction()}else q.preventDefault(),$.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,j.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(q){if(this._selectionModel.selected.forEach($=>$.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&q)Array.isArray(q),q.forEach($=>this._selectValue($)),this._sortValues();else{const $=this._selectValue(q);$?this._keyManager.updateActiveItem($):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(q){const $=this.options.find(le=>{if(this._selectionModel.isSelected(le))return!1;try{return null!=le.value&&this._compareWith(le.value,q)}catch(xe){return!1}});return $&&this._selectionModel.select($),$}_initKeyManager(){this._keyManager=new l.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,_e.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,_e.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const q=(0,P.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,_e.R)(q)).subscribe($=>{this._onSelect($.source,$.isUserInput),$.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,P.T)(...this.options.map($=>$._stateChanges)).pipe((0,_e.R)(q)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(q,$){const le=this._selectionModel.isSelected(q);null!=q.value||this._multiple?(le!==q.selected&&(q.selected?this._selectionModel.select(q):this._selectionModel.deselect(q)),$&&this._keyManager.setActiveItem(q),this.multiple&&(this._sortValues(),$&&this.focus())):(q.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(q.value)),le!==this._selectionModel.isSelected(q)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const q=this.options.toArray();this._selectionModel.sort(($,le)=>this.sortComparator?this.sortComparator($,le,q):q.indexOf($)-q.indexOf(le)),this.stateChanges.next()}}_propagateChanges(q){let $=null;$=this.multiple?this.selected.map(le=>le.value):this.selected?this.selected.value:q,this._value=$,this.valueChange.emit($),this._onChange($),this.selectionChange.emit(this._getChangeEvent($)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var q;return!this._panelOpen&&!this.disabled&&(null===(q=this.options)||void 0===q?void 0:q.length)>0}focus(q){this._elementRef.nativeElement.focus(q)}_getPanelAriaLabelledby(){var q;if(this.ariaLabel)return null;const $=null===(q=this._parentFormField)||void 0===q?void 0:q.getLabelId();return this.ariaLabelledby?($?$+" ":"")+this.ariaLabelledby:$}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var q;if(this.ariaLabel)return null;const $=null===(q=this._parentFormField)||void 0===q?void 0:q.getLabelId();let le=($?$+" ":"")+this._valueId;return this.ariaLabelledby&&(le+=" "+this.ariaLabelledby),le}_panelDoneAnimating(q){this.openedChange.emit(q)}setDescribedByIds(q){this._ariaDescribedby=q.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Le.\u0275fac=function(q){return new(q||Le)(y.Y36(M.rL),y.Y36(y.sBO),y.Y36(y.R0b),y.Y36(C.rD),y.Y36(y.SBq),y.Y36(re.Is,8),y.Y36(A.F,8),y.Y36(A.sg,8),y.Y36(o.G_,8),y.Y36(A.a5,10),y.$8M("tabindex"),y.Y36(ze),y.Y36(l.Kd),y.Y36(K,8))},Le.\u0275dir=y.lG2({type:Le,viewQuery:function(q,$){if(1&q&&(y.Gf(de,5),y.Gf(oe,5),y.Gf(e.pI,5)),2&q){let le;y.iGM(le=y.CRH())&&($.trigger=le.first),y.iGM(le=y.CRH())&&($.panel=le.first),y.iGM(le=y.CRH())&&($._overlayDir=le.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[y.qOj,y.TTD]}),Le})(),Ne=(()=>{class Le extends Re{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(q,$,le){const xe=this._getItemHeight();return Math.min(Math.max(0,xe*q-$+xe/2),le)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,_e.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,j.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(q){const $=(0,C.CB)(q,this.options,this.optionGroups),le=this._getItemHeight();this.panel.nativeElement.scrollTop=0===q&&1===$?0:(0,C.jH)((q+$)*le,le,this.panel.nativeElement.scrollTop,G)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(q){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(q)}_getChangeEvent(q){return new we(this,q)}_calculateOverlayOffsetX(){const q=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),$=this._viewportRuler.getViewportSize(),le=this._isRtl(),xe=this.multiple?56:32;let Ue;if(this.multiple)Ue=40;else if(this.disableOptionCentering)Ue=16;else{let ft=this._selectionModel.selected[0]||this.options.first;Ue=ft&&ft.group?32:16}le||(Ue*=-1);const lt=0-(q.left+Ue-(le?xe:0)),nt=q.right+Ue-$.width+(le?0:xe);lt>0?Ue+=lt+8:nt>0&&(Ue-=nt+8),this._overlayDir.offsetX=Math.round(Ue),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(q,$,le){const xe=this._getItemHeight(),Ue=(xe-this._triggerRect.height)/2,lt=Math.floor(G/xe);let nt;return this.disableOptionCentering?0:(nt=0===this._scrollTop?q*xe:this._scrollTop===le?(q-(this._getItemCount()-lt))*xe+(xe-(this._getItemCount()*xe-G)%xe):$-xe/2,Math.round(-1*nt-Ue))}_checkOverlayWithinViewport(q){const $=this._getItemHeight(),le=this._viewportRuler.getViewportSize(),xe=this._triggerRect.top-8,Ue=le.height-this._triggerRect.bottom-8,lt=Math.abs(this._offsetY),ft=Math.min(this._getItemCount()*$,G)-lt-this._triggerRect.height;ft>Ue?this._adjustPanelUp(ft,Ue):lt>xe?this._adjustPanelDown(lt,xe,q):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(q,$){const le=Math.round(q-$);this._scrollTop-=le,this._offsetY-=le,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(q,$,le){const xe=Math.round(q-$);if(this._scrollTop+=xe,this._offsetY+=xe,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=le)return this._scrollTop=le,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const q=this._getItemHeight(),$=this._getItemCount(),le=Math.min($*q,G),Ue=$*q-le;let lt;lt=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),lt+=(0,C.CB)(lt,this.options,this.optionGroups);const nt=le/2;this._scrollTop=this._calculateOverlayScroll(lt,nt,Ue),this._offsetY=this._calculateOverlayOffsetY(lt,nt,Ue),this._checkOverlayWithinViewport(Ue)}_getOriginBasedOnOption(){const q=this._getItemHeight(),$=(q-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-$+q/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Le.\u0275fac=function(){let ke;return function($){return(ke||(ke=y.n5z(Le)))($||Le)}}(),Le.\u0275cmp=y.Xpm({type:Le,selectors:[["mat-select"]],contentQueries:function(q,$,le){if(1&q&&(y.Suo(le,Ge,5),y.Suo(le,C.ey,5),y.Suo(le,C.K7,5)),2&q){let xe;y.iGM(xe=y.CRH())&&($.customTrigger=xe.first),y.iGM(xe=y.CRH())&&($.options=xe),y.iGM(xe=y.CRH())&&($.optionGroups=xe)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(q,$){1&q&&y.NdJ("keydown",function(xe){return $._handleKeydown(xe)})("focus",function(){return $._onFocus()})("blur",function(){return $._onBlur()}),2&q&&(y.uIk("id",$.id)("tabindex",$.tabIndex)("aria-controls",$.panelOpen?$.id+"-panel":null)("aria-expanded",$.panelOpen)("aria-label",$.ariaLabel||null)("aria-required",$.required.toString())("aria-disabled",$.disabled.toString())("aria-invalid",$.errorState)("aria-describedby",$._ariaDescribedby||null)("aria-activedescendant",$._getAriaActiveDescendant()),y.ekj("mat-select-disabled",$.disabled)("mat-select-invalid",$.errorState)("mat-select-required",$.required)("mat-select-empty",$.empty)("mat-select-multiple",$.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[y._Bn([{provide:o.Eo,useExisting:Le},{provide:C.HF,useExisting:Le}]),y.qOj],ngContentSelectors:_,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(q,$){if(1&q&&(y.F$t(u),y.TgZ(0,"div",0,1),y.NdJ("click",function(){return $.toggle()}),y.TgZ(3,"div",2),y.YNc(4,ae,2,1,"span",3),y.YNc(5,a,3,2,"span",4),y.qZA(),y.TgZ(6,"div",5),y._UZ(7,"div",6),y.qZA(),y.qZA(),y.YNc(8,p,4,14,"ng-template",7),y.NdJ("backdropClick",function(){return $.close()})("attach",function(){return $._onAttached()})("detach",function(){return $.close()})),2&q){const le=y.MAs(1);y.uIk("aria-owns",$.panelOpen?$.id+"-panel":null),y.xp6(3),y.Q6J("ngSwitch",$.empty),y.uIk("id",$._valueId),y.xp6(1),y.Q6J("ngSwitchCase",!0),y.xp6(1),y.Q6J("ngSwitchCase",!1),y.xp6(3),y.Q6J("cdkConnectedOverlayPanelClass",$._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",$._scrollStrategy)("cdkConnectedOverlayOrigin",le)("cdkConnectedOverlayOpen",$.panelOpen)("cdkConnectedOverlayPositions",$._positions)("cdkConnectedOverlayMinWidth",null==$._triggerRect?null:$._triggerRect.width)("cdkConnectedOverlayOffsetY",$._offsetY)}},directives:[e.xu,t.RF,t.n9,e.pI,t.ED,t.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[L.transformPanelWrap,L.transformPanel]},changeDetection:0}),Le})(),he=(()=>{class Le{}return Le.\u0275fac=function(q){return new(q||Le)},Le.\u0275mod=y.oAB({type:Le}),Le.\u0275inj=y.cJS({providers:[Me],imports:[[t.ez,e.U8,C.Ng,C.BQ],M.ZD,o.lN,C.Ng,C.BQ]}),Le})()},2638:(Ve,Q,m)=>{"use strict";m.d(Q,{JX:()=>Ce,TM:()=>Be,Rh:()=>ye,SJ:()=>ze});var e=m(925),t=m(5303),y=m(9808),C=m(5e3),o=m(508),M=m(3191),l=m(1159),N=m(7579),s=m(4968),D=m(6451),A=m(9300),O=m(4004),E=m(9718),P=m(2722),w=m(1884),Z=m(5698),j=m(8675),W=m(8372),ie=m(1777),ee=m(6360),_e=m(5664),ce=m(226);const re=["*"];function de(Ie,K){if(1&Ie){const Me=C.EpF();C.TgZ(0,"div",2),C.NdJ("click",function(){return C.CHM(Me),C.oxw()._onBackdropClicked()}),C.qZA()}if(2&Ie){const Me=C.oxw();C.ekj("mat-drawer-shown",Me._isShowingBackdrop())}}function oe(Ie,K){1&Ie&&(C.TgZ(0,"mat-drawer-content"),C.Hsn(1,2),C.qZA())}const ae=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],b=["mat-drawer","mat-drawer-content","*"];function i(Ie,K){if(1&Ie){const Me=C.EpF();C.TgZ(0,"div",2),C.NdJ("click",function(){return C.CHM(Me),C.oxw()._onBackdropClicked()}),C.qZA()}if(2&Ie){const Me=C.oxw();C.ekj("mat-drawer-shown",Me._isShowingBackdrop())}}function a(Ie,K){1&Ie&&(C.TgZ(0,"mat-sidenav-content",3),C.Hsn(1,2),C.qZA())}const p=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],u=["mat-sidenav","mat-sidenav-content","*"],L={transformDrawer:(0,ie.X$)("transform",[(0,ie.SB)("open, open-instant",(0,ie.oB)({transform:"none",visibility:"visible"})),(0,ie.SB)("void",(0,ie.oB)({"box-shadow":"none",visibility:"hidden"})),(0,ie.eR)("void => open-instant",(0,ie.jt)("0ms")),(0,ie.eR)("void <=> open, open-instant => void",(0,ie.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},x=new C.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function v(){return!1}}),r=new C.OlP("MAT_DRAWER_CONTAINER");let G=(()=>{class Ie extends t.PQ{constructor(Me,we,z,Ge,vt){super(z,Ge,vt),this._changeDetectorRef=Me,this._container=we}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return Ie.\u0275fac=function(Me){return new(Me||Ie)(C.Y36(C.sBO),C.Y36((0,C.Gpc)(()=>U)),C.Y36(C.SBq),C.Y36(t.mF),C.Y36(C.R0b))},Ie.\u0275cmp=C.Xpm({type:Ie,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(Me,we){2&Me&&C.Udp("margin-left",we._container._contentMargins.left,"px")("margin-right",we._container._contentMargins.right,"px")},features:[C.qOj],ngContentSelectors:re,decls:1,vars:0,template:function(Me,we){1&Me&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),Ie})(),F=(()=>{class Ie{constructor(Me,we,z,Ge,vt,Re,Ne,he){this._elementRef=Me,this._focusTrapFactory=we,this._focusMonitor=z,this._platform=Ge,this._ngZone=vt,this._interactivityChecker=Re,this._doc=Ne,this._container=he,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new N.x,this._animationEnd=new N.x,this._animationState="void",this.openedChange=new C.vpe(!0),this._openedStream=this.openedChange.pipe((0,A.h)(Le=>Le),(0,O.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,A.h)(Le=>Le.fromState!==Le.toState&&0===Le.toState.indexOf("open")),(0,E.h)(void 0)),this._closedStream=this.openedChange.pipe((0,A.h)(Le=>!Le),(0,O.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,A.h)(Le=>Le.fromState!==Le.toState&&"void"===Le.toState),(0,E.h)(void 0)),this._destroyed=new N.x,this.onPositionChanged=new C.vpe,this._modeChanged=new N.x,this.openedChange.subscribe(Le=>{Le?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,s.R)(this._elementRef.nativeElement,"keydown").pipe((0,A.h)(Le=>Le.keyCode===l.hY&&!this.disableClose&&!(0,l.Vb)(Le)),(0,P.R)(this._destroyed)).subscribe(Le=>this._ngZone.run(()=>{this.close(),Le.stopPropagation(),Le.preventDefault()}))}),this._animationEnd.pipe((0,w.x)((Le,ke)=>Le.fromState===ke.fromState&&Le.toState===ke.toState)).subscribe(Le=>{const{fromState:ke,toState:q}=Le;(0===q.indexOf("open")&&"void"===ke||"void"===q&&0===ke.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(Me){(Me="end"===Me?"end":"start")!=this._position&&(this._position=Me,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(Me){this._mode=Me,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(Me){this._disableClose=(0,M.Ig)(Me)}get autoFocus(){const Me=this._autoFocus;return null==Me?"side"===this.mode?"dialog":"first-tabbable":Me}set autoFocus(Me){("true"===Me||"false"===Me)&&(Me=(0,M.Ig)(Me)),this._autoFocus=Me}get opened(){return this._opened}set opened(Me){this.toggle((0,M.Ig)(Me))}_forceFocus(Me,we){this._interactivityChecker.isFocusable(Me)||(Me.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{Me.addEventListener("blur",()=>Me.removeAttribute("tabindex")),Me.addEventListener("mousedown",()=>Me.removeAttribute("tabindex"))})),Me.focus(we)}_focusByCssSelector(Me,we){let z=this._elementRef.nativeElement.querySelector(Me);z&&this._forceFocus(z,we)}_takeFocus(){if(!this._focusTrap)return;const Me=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(we=>{!we&&"function"==typeof this._elementRef.nativeElement.focus&&Me.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(Me){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,Me):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){var Me;const we=null===(Me=this._doc)||void 0===Me?void 0:Me.activeElement;return!!we&&this._elementRef.nativeElement.contains(we)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(Me){return this.toggle(!0,Me)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(Me=!this.opened,we){Me&&we&&(this._openedVia=we);const z=this._setOpen(Me,!Me&&this._isFocusWithinDrawer(),this._openedVia||"program");return Me||(this._openedVia=null),z}_setOpen(Me,we,z){return this._opened=Me,Me?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",we&&this._restoreFocus(z)),this._updateFocusTrapState(),new Promise(Ge=>{this.openedChange.pipe((0,Z.q)(1)).subscribe(vt=>Ge(vt?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}}return Ie.\u0275fac=function(Me){return new(Me||Ie)(C.Y36(C.SBq),C.Y36(_e.qV),C.Y36(_e.tE),C.Y36(e.t4),C.Y36(C.R0b),C.Y36(_e.ic),C.Y36(y.K0,8),C.Y36(r,8))},Ie.\u0275cmp=C.Xpm({type:Ie,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(Me,we){1&Me&&C.WFA("@transform.start",function(Ge){return we._animationStarted.next(Ge)})("@transform.done",function(Ge){return we._animationEnd.next(Ge)}),2&Me&&(C.uIk("align",null),C.d8E("@transform",we._animationState),C.ekj("mat-drawer-end","end"===we.position)("mat-drawer-over","over"===we.mode)("mat-drawer-push","push"===we.mode)("mat-drawer-side","side"===we.mode)("mat-drawer-opened",we.opened))},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:re,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(Me,we){1&Me&&(C.F$t(),C.TgZ(0,"div",0),C.Hsn(1),C.qZA())},directives:[t.PQ],encapsulation:2,data:{animation:[L.transformDrawer]},changeDetection:0}),Ie})(),U=(()=>{class Ie{constructor(Me,we,z,Ge,vt,Re=!1,Ne){this._dir=Me,this._element=we,this._ngZone=z,this._changeDetectorRef=Ge,this._animationMode=Ne,this._drawers=new C.n_E,this.backdropClick=new C.vpe,this._destroyed=new N.x,this._doCheckSubject=new N.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new N.x,Me&&Me.change.pipe((0,P.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),vt.change().pipe((0,P.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=Re}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(Me){this._autosize=(0,M.Ig)(Me)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(Me){this._backdropOverride=null==Me?null:(0,M.Ig)(Me)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,j.O)(this._allDrawers),(0,P.R)(this._destroyed)).subscribe(Me=>{this._drawers.reset(Me.filter(we=>!we._container||we._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,j.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(Me=>{this._watchDrawerToggle(Me),this._watchDrawerPosition(Me),this._watchDrawerMode(Me)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,W.b)(10),(0,P.R)(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(Me=>Me.open())}close(){this._drawers.forEach(Me=>Me.close())}updateContentMargins(){let Me=0,we=0;if(this._left&&this._left.opened)if("side"==this._left.mode)Me+=this._left._getWidth();else if("push"==this._left.mode){const z=this._left._getWidth();Me+=z,we-=z}if(this._right&&this._right.opened)if("side"==this._right.mode)we+=this._right._getWidth();else if("push"==this._right.mode){const z=this._right._getWidth();we+=z,Me-=z}Me=Me||null,we=we||null,(Me!==this._contentMargins.left||we!==this._contentMargins.right)&&(this._contentMargins={left:Me,right:we},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(Me){Me._animationStarted.pipe((0,A.h)(we=>we.fromState!==we.toState),(0,P.R)(this._drawers.changes)).subscribe(we=>{"open-instant"!==we.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==Me.mode&&Me.openedChange.pipe((0,P.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(Me.opened))}_watchDrawerPosition(Me){!Me||Me.onPositionChanged.pipe((0,P.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,Z.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(Me){Me&&Me._modeChanged.pipe((0,P.R)((0,D.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(Me){const we=this._element.nativeElement.classList,z="mat-drawer-container-has-open";Me?we.add(z):we.remove(z)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(Me=>{"end"==Me.position?this._end=Me:this._start=Me}),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(Me=>Me&&!Me.disableClose&&this._canHaveBackdrop(Me)).forEach(Me=>Me._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(Me){return"side"!==Me.mode||!!this._backdropOverride}_isDrawerOpen(Me){return null!=Me&&Me.opened}}return Ie.\u0275fac=function(Me){return new(Me||Ie)(C.Y36(ce.Is,8),C.Y36(C.SBq),C.Y36(C.R0b),C.Y36(C.sBO),C.Y36(t.rL),C.Y36(x),C.Y36(ee.Qb,8))},Ie.\u0275cmp=C.Xpm({type:Ie,selectors:[["mat-drawer-container"]],contentQueries:function(Me,we,z){if(1&Me&&(C.Suo(z,G,5),C.Suo(z,F,5)),2&Me){let Ge;C.iGM(Ge=C.CRH())&&(we._content=Ge.first),C.iGM(Ge=C.CRH())&&(we._allDrawers=Ge)}},viewQuery:function(Me,we){if(1&Me&&C.Gf(G,5),2&Me){let z;C.iGM(z=C.CRH())&&(we._userContent=z.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(Me,we){2&Me&&C.ekj("mat-drawer-container-explicit-backdrop",we._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[C._Bn([{provide:r,useExisting:Ie}])],ngContentSelectors:b,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(Me,we){1&Me&&(C.F$t(ae),C.YNc(0,de,1,2,"div",0),C.Hsn(1),C.Hsn(2,1),C.YNc(3,oe,2,0,"mat-drawer-content",1)),2&Me&&(C.Q6J("ngIf",we.hasBackdrop),C.xp6(3),C.Q6J("ngIf",!we._content))},directives:[y.O5,G],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;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}.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}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.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;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)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .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)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),Ie})(),ye=(()=>{class Ie extends G{constructor(Me,we,z,Ge,vt){super(Me,we,z,Ge,vt)}}return Ie.\u0275fac=function(Me){return new(Me||Ie)(C.Y36(C.sBO),C.Y36((0,C.Gpc)(()=>Be)),C.Y36(C.SBq),C.Y36(t.mF),C.Y36(C.R0b))},Ie.\u0275cmp=C.Xpm({type:Ie,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(Me,we){2&Me&&C.Udp("margin-left",we._container._contentMargins.left,"px")("margin-right",we._container._contentMargins.right,"px")},features:[C.qOj],ngContentSelectors:re,decls:1,vars:0,template:function(Me,we){1&Me&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),Ie})(),Ce=(()=>{class Ie extends F{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(Me){this._fixedInViewport=(0,M.Ig)(Me)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(Me){this._fixedTopGap=(0,M.su)(Me)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(Me){this._fixedBottomGap=(0,M.su)(Me)}}return Ie.\u0275fac=function(){let K;return function(we){return(K||(K=C.n5z(Ie)))(we||Ie)}}(),Ie.\u0275cmp=C.Xpm({type:Ie,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(Me,we){2&Me&&(C.uIk("align",null),C.Udp("top",we.fixedInViewport?we.fixedTopGap:null,"px")("bottom",we.fixedInViewport?we.fixedBottomGap:null,"px"),C.ekj("mat-drawer-end","end"===we.position)("mat-drawer-over","over"===we.mode)("mat-drawer-push","push"===we.mode)("mat-drawer-side","side"===we.mode)("mat-drawer-opened",we.opened)("mat-sidenav-fixed",we.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[C.qOj],ngContentSelectors:re,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(Me,we){1&Me&&(C.F$t(),C.TgZ(0,"div",0),C.Hsn(1),C.qZA())},directives:[t.PQ],encapsulation:2,data:{animation:[L.transformDrawer]},changeDetection:0}),Ie})(),Be=(()=>{class Ie extends U{}return Ie.\u0275fac=function(){let K;return function(we){return(K||(K=C.n5z(Ie)))(we||Ie)}}(),Ie.\u0275cmp=C.Xpm({type:Ie,selectors:[["mat-sidenav-container"]],contentQueries:function(Me,we,z){if(1&Me&&(C.Suo(z,ye,5),C.Suo(z,Ce,5)),2&Me){let Ge;C.iGM(Ge=C.CRH())&&(we._content=Ge.first),C.iGM(Ge=C.CRH())&&(we._allDrawers=Ge)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(Me,we){2&Me&&C.ekj("mat-drawer-container-explicit-backdrop",we._backdropOverride)},exportAs:["matSidenavContainer"],features:[C._Bn([{provide:r,useExisting:Ie}]),C.qOj],ngContentSelectors:u,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(Me,we){1&Me&&(C.F$t(p),C.YNc(0,i,1,2,"div",0),C.Hsn(1),C.Hsn(2,1),C.YNc(3,a,2,0,"mat-sidenav-content",1)),2&Me&&(C.Q6J("ngIf",we.hasBackdrop),C.xp6(3),C.Q6J("ngIf",!we._content))},directives:[y.O5,ye,t.PQ],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;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}.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}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.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;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)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .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)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),Ie})(),ze=(()=>{class Ie{}return Ie.\u0275fac=function(Me){return new(Me||Ie)},Ie.\u0275mod=C.oAB({type:Ie}),Ie.\u0275inj=C.cJS({imports:[[y.ez,o.BQ,e.ud,t.ZD],t.ZD,o.BQ]}),Ie})()},2368:(Ve,Q,m)=>{"use strict";m.d(Q,{Rr:()=>W,rP:()=>ce});var e=m(7144),t=m(5e3),y=m(508),C=m(3191),o=m(3075),M=m(6360),l=m(5664);const N=["thumbContainer"],s=["toggleBar"],D=["input"],A=function(re){return{enterDuration:re}},O=["*"],E=new t.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let P=0;const w={provide:o.JU,useExisting:(0,t.Gpc)(()=>W),multi:!0};class Z{constructor(de,oe){this.source=de,this.checked=oe}}const j=(0,y.sb)((0,y.pj)((0,y.Kr)((0,y.Id)(class{constructor(re){this._elementRef=re}}))));let W=(()=>{class re extends j{constructor(oe,ae,b,i,a,p){super(oe),this._focusMonitor=ae,this._changeDetectorRef=b,this.defaults=a,this._onChange=u=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++P,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new t.vpe,this.toggleChange=new t.vpe,this.tabIndex=parseInt(i)||0,this.color=this.defaultColor=a.color||"accent",this._noopAnimations="NoopAnimations"===p}get required(){return this._required}set required(oe){this._required=(0,C.Ig)(oe)}get checked(){return this._checked}set checked(oe){this._checked=(0,C.Ig)(oe),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(oe=>{oe||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(oe){oe.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(oe){oe.stopPropagation()}writeValue(oe){this.checked=!!oe}registerOnChange(oe){this._onChange=oe}registerOnTouched(oe){this._onTouched=oe}setDisabledState(oe){this.disabled=oe,this._changeDetectorRef.markForCheck()}focus(oe,ae){ae?this._focusMonitor.focusVia(this._inputElement,ae,oe):this._inputElement.nativeElement.focus(oe)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new Z(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return re.\u0275fac=function(oe){return new(oe||re)(t.Y36(t.SBq),t.Y36(l.tE),t.Y36(t.sBO),t.$8M("tabindex"),t.Y36(E),t.Y36(M.Qb,8))},re.\u0275cmp=t.Xpm({type:re,selectors:[["mat-slide-toggle"]],viewQuery:function(oe,ae){if(1&oe&&(t.Gf(N,5),t.Gf(s,5),t.Gf(D,5)),2&oe){let b;t.iGM(b=t.CRH())&&(ae._thumbEl=b.first),t.iGM(b=t.CRH())&&(ae._thumbBarEl=b.first),t.iGM(b=t.CRH())&&(ae._inputElement=b.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(oe,ae){2&oe&&(t.Ikx("id",ae.id),t.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),t.ekj("mat-checked",ae.checked)("mat-disabled",ae.disabled)("mat-slide-toggle-label-before","before"==ae.labelPosition)("_mat-animation-noopable",ae._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[t._Bn([w]),t.qOj],ngContentSelectors:O,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(oe,ae){if(1&oe&&(t.F$t(),t.TgZ(0,"label",0,1),t.TgZ(2,"div",2,3),t.TgZ(4,"input",4,5),t.NdJ("change",function(i){return ae._onChangeEvent(i)})("click",function(i){return ae._onInputClick(i)}),t.qZA(),t.TgZ(6,"div",6,7),t._UZ(8,"div",8),t.TgZ(9,"div",9),t._UZ(10,"div",10),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"span",11,12),t.NdJ("cdkObserveContent",function(){return ae._onLabelTextChange()}),t.TgZ(13,"span",13),t._uU(14,"\xa0"),t.qZA(),t.Hsn(15),t.qZA(),t.qZA()),2&oe){const b=t.MAs(1),i=t.MAs(12);t.uIk("for",ae.inputId),t.xp6(2),t.ekj("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),t.xp6(2),t.Q6J("id",ae.inputId)("required",ae.required)("tabIndex",ae.tabIndex)("checked",ae.checked)("disabled",ae.disabled),t.uIk("name",ae.name)("aria-checked",ae.checked.toString())("aria-label",ae.ariaLabel)("aria-labelledby",ae.ariaLabelledby)("aria-describedby",ae.ariaDescribedby),t.xp6(5),t.Q6J("matRippleTrigger",b)("matRippleDisabled",ae.disableRipple||ae.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",t.VKq(18,A,ae._noopAnimations?0:150))}},directives:[y.wG,e.wD],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),re})(),_e=(()=>{class re{}return re.\u0275fac=function(oe){return new(oe||re)},re.\u0275mod=t.oAB({type:re}),re.\u0275inj=t.cJS({}),re})(),ce=(()=>{class re{}return re.\u0275fac=function(oe){return new(oe||re)},re.\u0275mod=t.oAB({type:re}),re.\u0275inj=t.cJS({imports:[[_e,y.si,y.BQ,e.Q8],_e,y.BQ]}),re})()},7261:(Ve,Q,m)=>{"use strict";m.d(Q,{Ve:()=>de,ux:()=>ae,ZX:()=>re});var e=m(9776),t=m(7429),y=m(9808),C=m(5e3),o=m(508),M=m(7423),l=m(7579),N=m(5698),s=m(2722),D=m(1777),A=m(925),O=m(5113),E=m(5664);function P(b,i){if(1&b){const a=C.EpF();C.TgZ(0,"div",1),C.TgZ(1,"button",2),C.NdJ("click",function(){return C.CHM(a),C.oxw().action()}),C._uU(2),C.qZA(),C.qZA()}if(2&b){const a=C.oxw();C.xp6(2),C.Oqu(a.data.action)}}function w(b,i){}const Z=new C.OlP("MatSnackBarData");class j{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const W=Math.pow(2,31)-1;class ie{constructor(i,a){this._overlayRef=a,this._afterDismissed=new l.x,this._afterOpened=new l.x,this._onAction=new l.x,this._dismissedByAction=!1,this.containerInstance=i,this.onAction().subscribe(()=>this.dismiss()),i._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()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(i){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(i,W))}_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}}let ee=(()=>{class b{constructor(a,p){this.snackBarRef=a,this.data=p}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return b.\u0275fac=function(a){return new(a||b)(C.Y36(ie),C.Y36(Z))},b.\u0275cmp=C.Xpm({type:b,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(a,p){1&a&&(C.TgZ(0,"span"),C._uU(1),C.qZA(),C.YNc(2,P,3,1,"div",0)),2&a&&(C.xp6(1),C.Oqu(p.data.message),C.xp6(1),C.Q6J("ngIf",p.hasAction))},directives:[y.O5,M.lW],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),b})();const _e={snackBarState:(0,D.X$)("state",[(0,D.SB)("void, hidden",(0,D.oB)({transform:"scale(0.8)",opacity:0})),(0,D.SB)("visible",(0,D.oB)({transform:"scale(1)",opacity:1})),(0,D.eR)("* => visible",(0,D.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,D.eR)("* => void, * => hidden",(0,D.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,D.oB)({opacity:0})))])};let ce=(()=>{class b extends t.en{constructor(a,p,u,_,L){super(),this._ngZone=a,this._elementRef=p,this._changeDetectorRef=u,this._platform=_,this.snackBarConfig=L,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new l.x,this._onExit=new l.x,this._onEnter=new l.x,this._animationState="void",this.attachDomPortal=I=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(I)),this._live="assertive"!==L.politeness||L.announcementMessage?"off"===L.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(a){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(a)}attachTemplatePortal(a){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(a)}onAnimationEnd(a){const{fromState:p,toState:u}=a;if(("void"===u&&"void"!==p||"hidden"===u)&&this._completeExit(),"visible"===u){const _=this._onEnter;this._ngZone.run(()=>{_.next(),_.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,N.q)(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const a=this._elementRef.nativeElement,p=this.snackBarConfig.panelClass;p&&(Array.isArray(p)?p.forEach(u=>a.classList.add(u)):a.classList.add(p)),"center"===this.snackBarConfig.horizontalPosition&&a.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&a.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const a=this._elementRef.nativeElement.querySelector("[aria-hidden]"),p=this._elementRef.nativeElement.querySelector("[aria-live]");if(a&&p){let u=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&a.contains(document.activeElement)&&(u=document.activeElement),a.removeAttribute("aria-hidden"),p.appendChild(a),null==u||u.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return b.\u0275fac=function(a){return new(a||b)(C.Y36(C.R0b),C.Y36(C.SBq),C.Y36(C.sBO),C.Y36(A.t4),C.Y36(j))},b.\u0275cmp=C.Xpm({type:b,selectors:[["snack-bar-container"]],viewQuery:function(a,p){if(1&a&&C.Gf(t.Pl,7),2&a){let u;C.iGM(u=C.CRH())&&(p._portalOutlet=u.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(a,p){1&a&&C.WFA("@state.done",function(_){return p.onAnimationEnd(_)}),2&a&&C.d8E("@state",p._animationState)},features:[C.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(a,p){1&a&&(C.TgZ(0,"div",0),C.YNc(1,w,0,0,"ng-template",1),C.qZA(),C._UZ(2,"div")),2&a&&(C.xp6(2),C.uIk("aria-live",p._live)("role",p._role))},directives:[t.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[_e.snackBarState]}}),b})(),re=(()=>{class b{}return b.\u0275fac=function(a){return new(a||b)},b.\u0275mod=C.oAB({type:b}),b.\u0275inj=C.cJS({imports:[[e.U8,t.eL,y.ez,M.ot,o.BQ],o.BQ]}),b})();const de=new C.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function oe(){return new j}});let ae=(()=>{class b{constructor(a,p,u,_,L,I){this._overlay=a,this._live=p,this._injector=u,this._breakpointObserver=_,this._parentSnackBar=L,this._defaultConfig=I,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=ee,this.snackBarContainerComponent=ce,this.handsetCssClass="mat-snack-bar-handset"}get _openedSnackBarRef(){const a=this._parentSnackBar;return a?a._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(a){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=a:this._snackBarRefAtThisLevel=a}openFromComponent(a,p){return this._attach(a,p)}openFromTemplate(a,p){return this._attach(a,p)}open(a,p="",u){const _=Object.assign(Object.assign({},this._defaultConfig),u);return _.data={message:a,action:p},_.announcementMessage===a&&(_.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,_)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(a,p){const _=C.zs3.create({parent:p&&p.viewContainerRef&&p.viewContainerRef.injector||this._injector,providers:[{provide:j,useValue:p}]}),L=new t.C5(this.snackBarContainerComponent,p.viewContainerRef,_),I=a.attach(L);return I.instance.snackBarConfig=p,I.instance}_attach(a,p){const u=Object.assign(Object.assign(Object.assign({},new j),this._defaultConfig),p),_=this._createOverlay(u),L=this._attachSnackBarContainer(_,u),I=new ie(L,_);if(a instanceof C.Rgc){const x=new t.UE(a,null,{$implicit:u.data,snackBarRef:I});I.instance=L.attachTemplatePortal(x)}else{const x=this._createInjector(u,I),r=new t.C5(a,void 0,x),v=L.attachComponentPortal(r);I.instance=v.instance}return this._breakpointObserver.observe(O.u3.HandsetPortrait).pipe((0,s.R)(_.detachments())).subscribe(x=>{_.overlayElement.classList.toggle(this.handsetCssClass,x.matches)}),u.announcementMessage&&L._onAnnounce.subscribe(()=>{this._live.announce(u.announcementMessage,u.politeness)}),this._animateSnackBar(I,u),this._openedSnackBarRef=I,this._openedSnackBarRef}_animateSnackBar(a,p){a.afterDismissed().subscribe(()=>{this._openedSnackBarRef==a&&(this._openedSnackBarRef=null),p.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{a.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):a.containerInstance.enter(),p.duration&&p.duration>0&&a.afterOpened().subscribe(()=>a._dismissAfter(p.duration))}_createOverlay(a){const p=new e.X_;p.direction=a.direction;let u=this._overlay.position().global();const _="rtl"===a.direction,L="left"===a.horizontalPosition||"start"===a.horizontalPosition&&!_||"end"===a.horizontalPosition&&_,I=!L&&"center"!==a.horizontalPosition;return L?u.left("0"):I?u.right("0"):u.centerHorizontally(),"top"===a.verticalPosition?u.top("0"):u.bottom("0"),p.positionStrategy=u,this._overlay.create(p)}_createInjector(a,p){return C.zs3.create({parent:a&&a.viewContainerRef&&a.viewContainerRef.injector||this._injector,providers:[{provide:ie,useValue:p},{provide:Z,useValue:a.data}]})}}return b.\u0275fac=function(a){return new(a||b)(C.LFG(e.aV),C.LFG(E.Kd),C.LFG(C.zs3),C.LFG(O.Yg),C.LFG(b,12),C.LFG(de))},b.\u0275prov=C.Yz7({token:b,factory:b.\u0275fac,providedIn:re}),b})()},4847:(Ve,Q,m)=>{"use strict";m.d(Q,{YE:()=>de,nU:()=>b,JX:()=>i});var e=m(5e3),t=m(3191),y=m(1159),C=m(508),o=m(7579),M=m(6451),l=m(1777),N=m(5664),s=m(9808);const D=["mat-sort-header",""];function A(a,p){if(1&a){const u=e.EpF();e.TgZ(0,"div",3),e.NdJ("@arrowPosition.start",function(){return e.CHM(u),e.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return e.CHM(u),e.oxw()._disableViewStateAnimation=!1}),e._UZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"div",6),e._UZ(4,"div",7),e._UZ(5,"div",8),e.qZA(),e.qZA()}if(2&a){const u=e.oxw();e.Q6J("@arrowOpacity",u._getArrowViewState())("@arrowPosition",u._getArrowViewState())("@allowChildren",u._getArrowDirectionState()),e.xp6(2),e.Q6J("@indicator",u._getArrowDirectionState()),e.xp6(1),e.Q6J("@leftPointer",u._getArrowDirectionState()),e.xp6(1),e.Q6J("@rightPointer",u._getArrowDirectionState())}}const O=["*"],E=C.mZ.ENTERING+" "+C.yN.STANDARD_CURVE,P={indicator:(0,l.X$)("indicator",[(0,l.SB)("active-asc, asc",(0,l.oB)({transform:"translateY(0px)"})),(0,l.SB)("active-desc, desc",(0,l.oB)({transform:"translateY(10px)"})),(0,l.eR)("active-asc <=> active-desc",(0,l.jt)(E))]),leftPointer:(0,l.X$)("leftPointer",[(0,l.SB)("active-asc, asc",(0,l.oB)({transform:"rotate(-45deg)"})),(0,l.SB)("active-desc, desc",(0,l.oB)({transform:"rotate(45deg)"})),(0,l.eR)("active-asc <=> active-desc",(0,l.jt)(E))]),rightPointer:(0,l.X$)("rightPointer",[(0,l.SB)("active-asc, asc",(0,l.oB)({transform:"rotate(45deg)"})),(0,l.SB)("active-desc, desc",(0,l.oB)({transform:"rotate(-45deg)"})),(0,l.eR)("active-asc <=> active-desc",(0,l.jt)(E))]),arrowOpacity:(0,l.X$)("arrowOpacity",[(0,l.SB)("desc-to-active, asc-to-active, active",(0,l.oB)({opacity:1})),(0,l.SB)("desc-to-hint, asc-to-hint, hint",(0,l.oB)({opacity:.54})),(0,l.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,l.oB)({opacity:0})),(0,l.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,l.jt)("0ms")),(0,l.eR)("* <=> *",(0,l.jt)(E))]),arrowPosition:(0,l.X$)("arrowPosition",[(0,l.eR)("* => desc-to-hint, * => desc-to-active",(0,l.jt)(E,(0,l.F4)([(0,l.oB)({transform:"translateY(-25%)"}),(0,l.oB)({transform:"translateY(0)"})]))),(0,l.eR)("* => hint-to-desc, * => active-to-desc",(0,l.jt)(E,(0,l.F4)([(0,l.oB)({transform:"translateY(0)"}),(0,l.oB)({transform:"translateY(25%)"})]))),(0,l.eR)("* => asc-to-hint, * => asc-to-active",(0,l.jt)(E,(0,l.F4)([(0,l.oB)({transform:"translateY(25%)"}),(0,l.oB)({transform:"translateY(0)"})]))),(0,l.eR)("* => hint-to-asc, * => active-to-asc",(0,l.jt)(E,(0,l.F4)([(0,l.oB)({transform:"translateY(0)"}),(0,l.oB)({transform:"translateY(-25%)"})]))),(0,l.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,l.oB)({transform:"translateY(0)"})),(0,l.SB)("hint-to-desc, active-to-desc, desc",(0,l.oB)({transform:"translateY(-25%)"})),(0,l.SB)("hint-to-asc, active-to-asc, asc",(0,l.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,l.X$)("allowChildren",[(0,l.eR)("* <=> *",[(0,l.IO)("@*",(0,l.pV)(),{optional:!0})])])};let ie=(()=>{class a{constructor(){this.changes=new o.x}}return a.\u0275fac=function(u){return new(u||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();const _e={provide:ie,deps:[[new e.FiY,new e.tp0,ie]],useFactory:function ee(a){return a||new ie}},ce=new e.OlP("MAT_SORT_DEFAULT_OPTIONS"),re=(0,C.dB)((0,C.Id)(class{}));let de=(()=>{class a extends re{constructor(u){super(),this._defaultOptions=u,this.sortables=new Map,this._stateChanges=new o.x,this.start="asc",this._direction="",this.sortChange=new e.vpe}get direction(){return this._direction}set direction(u){this._direction=u}get disableClear(){return this._disableClear}set disableClear(u){this._disableClear=(0,t.Ig)(u)}register(u){this.sortables.set(u.id,u)}deregister(u){this.sortables.delete(u.id)}sort(u){this.active!=u.id?(this.active=u.id,this.direction=u.start?u.start:this.start):this.direction=this.getNextSortDirection(u),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(u){var _,L,I;if(!u)return"";const x=null!==(L=null!==(_=null==u?void 0:u.disableClear)&&void 0!==_?_:this.disableClear)&&void 0!==L?L:!!(null===(I=this._defaultOptions)||void 0===I?void 0:I.disableClear);let r=function oe(a,p){let u=["asc","desc"];return"desc"==a&&u.reverse(),p||u.push(""),u}(u.start||this.start,x),v=r.indexOf(this.direction)+1;return v>=r.length&&(v=0),r[v]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return a.\u0275fac=function(u){return new(u||a)(e.Y36(ce,8))},a.\u0275dir=e.lG2({type:a,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[e.qOj,e.TTD]}),a})();const ae=(0,C.Id)(class{});let b=(()=>{class a extends ae{constructor(u,_,L,I,x,r,v){super(),this._intl=u,this._changeDetectorRef=_,this._sort=L,this._columnDef=I,this._focusMonitor=x,this._elementRef=r,this._ariaDescriber=v,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(u){this._updateSortActionDescription(u)}get disableClear(){return this._disableClear}set disableClear(u){this._disableClear=(0,t.Ig)(u)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector('[role="button"]'),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(u=>{const _=!!u;_!==this._showIndicatorHint&&(this._setIndicatorHintVisible(_),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(u){this._isDisabled()&&u||(this._showIndicatorHint=u,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(u){this._viewState=u||{},this._disableViewStateAnimation&&(this._viewState={toState:u.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(u){!this._isDisabled()&&(u.keyCode===y.L_||u.keyCode===y.K5)&&(u.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const u=this._viewState.fromState;return(u?`${u}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_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(u){var _,L;this._sortButton&&(null===(_=this._ariaDescriber)||void 0===_||_.removeDescription(this._sortButton,this._sortActionDescription),null===(L=this._ariaDescriber)||void 0===L||L.describe(this._sortButton,u)),this._sortActionDescription=u}_handleStateChanges(){this._rerenderSubscription=(0,M.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return a.\u0275fac=function(u){return new(u||a)(e.Y36(ie),e.Y36(e.sBO),e.Y36(de,8),e.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),e.Y36(N.tE),e.Y36(e.SBq),e.Y36(N.$s,8))},a.\u0275cmp=e.Xpm({type:a,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(u,_){1&u&&e.NdJ("click",function(){return _._handleClick()})("keydown",function(I){return _._handleKeydown(I)})("mouseenter",function(){return _._setIndicatorHintVisible(!0)})("mouseleave",function(){return _._setIndicatorHintVisible(!1)}),2&u&&(e.uIk("aria-sort",_._getAriaSortAttribute()),e.ekj("mat-sort-header-disabled",_._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[e.qOj],attrs:D,ngContentSelectors:O,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(u,_){1&u&&(e.F$t(),e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA(),e.YNc(3,A,6,6,"div",2),e.qZA()),2&u&&(e.ekj("mat-sort-header-sorted",_._isSorted())("mat-sort-header-position-before","before"==_.arrowPosition),e.uIk("tabindex",_._isDisabled()?null:0),e.xp6(3),e.Q6J("ngIf",_._renderArrow()))},directives:[s.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;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-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity: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}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[P.indicator,P.leftPointer,P.rightPointer,P.arrowOpacity,P.arrowPosition,P.allowChildren]},changeDetection:0}),a})(),i=(()=>{class a{}return a.\u0275fac=function(u){return new(u||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({providers:[_e],imports:[[s.ez,C.BQ]]}),a})()},5615:(Ve,Q,m)=>{"use strict";m.d(Q,{C0:()=>we,VY:()=>F,Vq:()=>Re,z9:()=>K,T5:()=>Le,Ic:()=>Ne,fd:()=>he});var e=m(7429),t=m(1555),y=m(9808),C=m(5e3),o=m(7423),M=m(508),l=m(5245),N=m(7579),s=m(727),D=m(5664),A=m(3900),O=m(4004),E=m(8675),P=m(2722),w=m(1884),Z=m(1777),j=m(226);function W(ke,q){if(1&ke&&C.GkF(0,8),2&ke){const $=C.oxw();C.Q6J("ngTemplateOutlet",$.iconOverrides[$.state])("ngTemplateOutletContext",$._getIconContext())}}function ie(ke,q){if(1&ke&&(C.TgZ(0,"span"),C._uU(1),C.qZA()),2&ke){const $=C.oxw(2);C.xp6(1),C.Oqu($._getDefaultTextForState($.state))}}function ee(ke,q){if(1&ke&&(C.TgZ(0,"span",13),C._uU(1),C.qZA()),2&ke){const $=C.oxw(2);C.xp6(1),C.Oqu($._intl.completedLabel)}}function _e(ke,q){if(1&ke&&(C.TgZ(0,"span",13),C._uU(1),C.qZA()),2&ke){const $=C.oxw(2);C.xp6(1),C.Oqu($._intl.editableLabel)}}function ce(ke,q){if(1&ke&&(C.TgZ(0,"mat-icon"),C._uU(1),C.qZA()),2&ke){const $=C.oxw(2);C.xp6(1),C.Oqu($._getDefaultTextForState($.state))}}function re(ke,q){if(1&ke&&(C.ynx(0,9),C.YNc(1,ie,2,1,"span",10),C.YNc(2,ee,2,1,"span",11),C.YNc(3,_e,2,1,"span",11),C.YNc(4,ce,2,1,"mat-icon",12),C.BQk()),2&ke){const $=C.oxw();C.Q6J("ngSwitch",$.state),C.xp6(1),C.Q6J("ngSwitchCase","number"),C.xp6(1),C.Q6J("ngIf","done"===$.state),C.xp6(1),C.Q6J("ngIf","edit"===$.state)}}function de(ke,q){if(1&ke&&(C.TgZ(0,"div",14),C.GkF(1,15),C.qZA()),2&ke){const $=C.oxw();C.xp6(1),C.Q6J("ngTemplateOutlet",$._templateLabel().template)}}function oe(ke,q){if(1&ke&&(C.TgZ(0,"div",14),C._uU(1),C.qZA()),2&ke){const $=C.oxw();C.xp6(1),C.Oqu($.label)}}function ae(ke,q){if(1&ke&&(C.TgZ(0,"div",16),C._uU(1),C.qZA()),2&ke){const $=C.oxw();C.xp6(1),C.Oqu($._intl.optionalLabel)}}function b(ke,q){if(1&ke&&(C.TgZ(0,"div",17),C._uU(1),C.qZA()),2&ke){const $=C.oxw();C.xp6(1),C.Oqu($.errorMessage)}}function i(ke,q){}function a(ke,q){if(1&ke&&(C.Hsn(0),C.YNc(1,i,0,0,"ng-template",0)),2&ke){const $=C.oxw();C.xp6(1),C.Q6J("cdkPortalOutlet",$._portal)}}const p=["*"];function u(ke,q){1&ke&&C._UZ(0,"div",9)}const _=function(ke,q){return{step:ke,i:q}};function L(ke,q){if(1&ke&&(C.ynx(0),C.GkF(1,7),C.YNc(2,u,1,0,"div",8),C.BQk()),2&ke){const $=q.$implicit,le=q.index,xe=q.last;C.oxw(2);const Ue=C.MAs(4);C.xp6(1),C.Q6J("ngTemplateOutlet",Ue)("ngTemplateOutletContext",C.WLB(3,_,$,le)),C.xp6(1),C.Q6J("ngIf",!xe)}}function I(ke,q){if(1&ke){const $=C.EpF();C.TgZ(0,"div",10),C.NdJ("@horizontalStepTransition.done",function(xe){return C.CHM($),C.oxw(2)._animationDone.next(xe)}),C.GkF(1,11),C.qZA()}if(2&ke){const $=q.$implicit,le=q.index,xe=C.oxw(2);C.Q6J("@horizontalStepTransition",xe._getAnimationDirection(le))("id",xe._getStepContentId(le)),C.uIk("aria-labelledby",xe._getStepLabelId(le))("aria-expanded",xe.selectedIndex===le),C.xp6(1),C.Q6J("ngTemplateOutlet",$.content)}}function x(ke,q){if(1&ke&&(C.ynx(0),C.TgZ(1,"div",3),C.YNc(2,L,3,6,"ng-container",4),C.qZA(),C.TgZ(3,"div",5),C.YNc(4,I,2,5,"div",6),C.qZA(),C.BQk()),2&ke){const $=C.oxw();C.xp6(2),C.Q6J("ngForOf",$.steps),C.xp6(2),C.Q6J("ngForOf",$.steps)}}function r(ke,q){if(1&ke){const $=C.EpF();C.TgZ(0,"div",13),C.GkF(1,7),C.TgZ(2,"div",14),C.TgZ(3,"div",15),C.NdJ("@verticalStepTransition.done",function(xe){return C.CHM($),C.oxw(2)._animationDone.next(xe)}),C.TgZ(4,"div",16),C.GkF(5,11),C.qZA(),C.qZA(),C.qZA(),C.qZA()}if(2&ke){const $=q.$implicit,le=q.index,xe=q.last,Ue=C.oxw(2),lt=C.MAs(4);C.xp6(1),C.Q6J("ngTemplateOutlet",lt)("ngTemplateOutletContext",C.WLB(9,_,$,le)),C.xp6(1),C.ekj("mat-stepper-vertical-line",!xe),C.xp6(1),C.Q6J("@verticalStepTransition",Ue._getAnimationDirection(le))("id",Ue._getStepContentId(le)),C.uIk("aria-labelledby",Ue._getStepLabelId(le))("aria-expanded",Ue.selectedIndex===le),C.xp6(2),C.Q6J("ngTemplateOutlet",$.content)}}function v(ke,q){if(1&ke&&(C.ynx(0),C.YNc(1,r,6,12,"div",12),C.BQk()),2&ke){const $=C.oxw();C.xp6(1),C.Q6J("ngForOf",$.steps)}}function G(ke,q){if(1&ke){const $=C.EpF();C.TgZ(0,"mat-step-header",17),C.NdJ("click",function(){return C.CHM($).step.select()})("keydown",function(xe){return C.CHM($),C.oxw()._onKeydown(xe)}),C.qZA()}if(2&ke){const $=q.step,le=q.i,xe=C.oxw();C.ekj("mat-horizontal-stepper-header","horizontal"===xe.orientation)("mat-vertical-stepper-header","vertical"===xe.orientation),C.Q6J("tabIndex",xe._getFocusIndex()===le?0:-1)("id",xe._getStepLabelId(le))("index",le)("state",xe._getIndicatorType(le,$.state))("label",$.stepLabel||$.label)("selected",xe.selectedIndex===le)("active",xe._stepIsNavigable(le,$))("optional",$.optional)("errorMessage",$.errorMessage)("iconOverrides",xe._iconOverrides)("disableRipple",xe.disableRipple||!xe._stepIsNavigable(le,$))("color",$.color||xe.color),C.uIk("aria-posinset",le+1)("aria-setsize",xe.steps.length)("aria-controls",xe._getStepContentId(le))("aria-selected",xe.selectedIndex==le)("aria-label",$.ariaLabel||null)("aria-labelledby",!$.ariaLabel&&$.ariaLabelledby?$.ariaLabelledby:null)("aria-disabled",!xe._stepIsNavigable(le,$)||null)}}let F=(()=>{class ke extends t.u6{}return ke.\u0275fac=function(){let q;return function(le){return(q||(q=C.n5z(ke)))(le||ke)}}(),ke.\u0275dir=C.lG2({type:ke,selectors:[["","matStepLabel",""]],features:[C.qOj]}),ke})(),U=(()=>{class ke{constructor(){this.changes=new N.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return ke.\u0275fac=function($){return new($||ke)},ke.\u0275prov=C.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();const Ce={provide:U,deps:[[new C.FiY,new C.tp0,U]],useFactory:function ye(ke){return ke||new U}},Be=(0,M.pj)(class extends t.KL{constructor(q){super(q)}},"primary");let ze=(()=>{class ke extends Be{constructor($,le,xe,Ue){super(xe),this._intl=$,this._focusMonitor=le,this._intlSubscription=$.changes.subscribe(()=>Ue.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus($,le){$?this._focusMonitor.focusVia(this._elementRef,$,le):this._elementRef.nativeElement.focus(le)}_stringLabel(){return this.label instanceof F?null:this.label}_templateLabel(){return this.label instanceof F?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState($){return"number"==$?`${this.index+1}`:"edit"==$?"create":"error"==$?"warning":$}}return ke.\u0275fac=function($){return new($||ke)(C.Y36(U),C.Y36(D.tE),C.Y36(C.SBq),C.Y36(C.sBO))},ke.\u0275cmp=C.Xpm({type:ke,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[C.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],[4,"ngSwitchDefault"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function($,le){1&$&&(C._UZ(0,"div",0),C.TgZ(1,"div"),C.TgZ(2,"div",1),C.YNc(3,W,1,2,"ng-container",2),C.YNc(4,re,5,4,"ng-container",3),C.qZA(),C.qZA(),C.TgZ(5,"div",4),C.YNc(6,de,2,1,"div",5),C.YNc(7,oe,2,1,"div",5),C.YNc(8,ae,2,1,"div",6),C.YNc(9,b,2,1,"div",7),C.qZA()),2&$&&(C.Q6J("matRippleTrigger",le._getHostElement())("matRippleDisabled",le.disableRipple),C.xp6(1),C.Gre("mat-step-icon-state-",le.state," mat-step-icon"),C.ekj("mat-step-icon-selected",le.selected),C.xp6(1),C.Q6J("ngSwitch",!(!le.iconOverrides||!le.iconOverrides[le.state])),C.xp6(1),C.Q6J("ngSwitchCase",!0),C.xp6(2),C.ekj("mat-step-label-active",le.active)("mat-step-label-selected",le.selected)("mat-step-label-error","error"==le.state),C.xp6(1),C.Q6J("ngIf",le._templateLabel()),C.xp6(1),C.Q6J("ngIf",le._stringLabel()),C.xp6(1),C.Q6J("ngIf",le.optional&&"error"!=le.state),C.xp6(1),C.Q6J("ngIf","error"==le.state))},directives:[M.wG,y.RF,y.n9,y.ED,y.O5,y.tP,l.Hw],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header.cdk-keyboard-focused,.cdk-high-contrast-active .mat-step-header.cdk-program-focused{outline:solid 3px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.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}.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}\n"],encapsulation:2,changeDetection:0}),ke})();const Ie={horizontalStepTransition:(0,Z.X$)("horizontalStepTransition",[(0,Z.SB)("previous",(0,Z.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,Z.SB)("current",(0,Z.oB)({transform:"none",visibility:"inherit"})),(0,Z.SB)("next",(0,Z.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,Z.eR)("* => *",(0,Z.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,Z.X$)("verticalStepTransition",[(0,Z.SB)("previous",(0,Z.oB)({height:"0px",visibility:"hidden"})),(0,Z.SB)("next",(0,Z.oB)({height:"0px",visibility:"hidden"})),(0,Z.SB)("current",(0,Z.oB)({height:"*",visibility:"inherit"})),(0,Z.eR)("* <=> current",(0,Z.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let K=(()=>{class ke{constructor($){this.templateRef=$}}return ke.\u0275fac=function($){return new($||ke)(C.Y36(C.Rgc))},ke.\u0275dir=C.lG2({type:ke,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),ke})(),Me=(()=>{class ke{constructor($){this._template=$}}return ke.\u0275fac=function($){return new($||ke)(C.Y36(C.Rgc))},ke.\u0275dir=C.lG2({type:ke,selectors:[["ng-template","matStepContent",""]]}),ke})(),we=(()=>{class ke extends t.be{constructor($,le,xe,Ue){super($,Ue),this._errorStateMatcher=le,this._viewContainerRef=xe,this._isSelected=s.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,A.w)(()=>this._stepper.selectionChange.pipe((0,O.U)($=>$.selectedStep===this),(0,E.O)(this._stepper.selected===this)))).subscribe($=>{$&&this._lazyContent&&!this._portal&&(this._portal=new e.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState($,le){return this._errorStateMatcher.isErrorState($,le)||!!($&&$.invalid&&this.interacted)}}return ke.\u0275fac=function($){return new($||ke)(C.Y36((0,C.Gpc)(()=>Re)),C.Y36(M.rD,4),C.Y36(C.s_b),C.Y36(t.gx,8))},ke.\u0275cmp=C.Xpm({type:ke,selectors:[["mat-step"]],contentQueries:function($,le,xe){if(1&$&&(C.Suo(xe,F,5),C.Suo(xe,Me,5)),2&$){let Ue;C.iGM(Ue=C.CRH())&&(le.stepLabel=Ue.first),C.iGM(Ue=C.CRH())&&(le._lazyContent=Ue.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[C._Bn([{provide:M.rD,useExisting:ke},{provide:t.be,useExisting:ke}]),C.qOj],ngContentSelectors:p,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function($,le){1&$&&(C.F$t(),C.YNc(0,a,2,1,"ng-template"))},directives:[e.Pl],encapsulation:2,changeDetection:0}),ke})(),z=(()=>{class ke extends t.B8{}return ke.\u0275fac=function(){let q;return function(le){return(q||(q=C.n5z(ke)))(le||ke)}}(),ke.\u0275dir=C.lG2({type:ke,features:[C.qOj]}),ke})(),Ge=(()=>{class ke extends z{}return ke.\u0275fac=function(){let q;return function(le){return(q||(q=C.n5z(ke)))(le||ke)}}(),ke.\u0275dir=C.lG2({type:ke,selectors:[["mat-horizontal-stepper"]],features:[C.qOj]}),ke})(),vt=(()=>{class ke extends z{}return ke.\u0275fac=function(){let q;return function(le){return(q||(q=C.n5z(ke)))(le||ke)}}(),ke.\u0275dir=C.lG2({type:ke,selectors:[["mat-vertical-stepper"]],features:[C.qOj]}),ke})(),Re=(()=>{class ke extends t.B8{constructor($,le,xe,Ue){super($,le,xe,Ue),this.steps=new C.n_E,this.animationDone=new C.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new N.x;const lt=xe.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===lt?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:$,templateRef:le})=>this._iconOverrides[$]=le),this.steps.changes.pipe((0,P.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,w.x)(($,le)=>$.fromState===le.fromState&&$.toState===le.toState),(0,P.R)(this._destroyed)).subscribe($=>{"current"===$.toState&&this.animationDone.emit()})}_stepIsNavigable($,le){return le.completed||this.selectedIndex===$||!this.linear}}return ke.\u0275fac=function($){return new($||ke)(C.Y36(j.Is,8),C.Y36(C.sBO),C.Y36(C.SBq),C.Y36(y.K0))},ke.\u0275cmp=C.Xpm({type:ke,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function($,le,xe){if(1&$&&(C.Suo(xe,we,5),C.Suo(xe,K,5)),2&$){let Ue;C.iGM(Ue=C.CRH())&&(le._steps=Ue),C.iGM(Ue=C.CRH())&&(le._icons=Ue)}},viewQuery:function($,le){if(1&$&&C.Gf(ze,5),2&$){let xe;C.iGM(xe=C.CRH())&&(le._stepHeader=xe)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function($,le){2&$&&(C.uIk("aria-orientation",le.orientation),C.ekj("mat-stepper-horizontal","horizontal"===le.orientation)("mat-stepper-vertical","vertical"===le.orientation)("mat-stepper-label-position-end","horizontal"===le.orientation&&"end"==le.labelPosition)("mat-stepper-label-position-bottom","horizontal"===le.orientation&&"bottom"==le.labelPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[C._Bn([{provide:t.B8,useExisting:ke},{provide:Ge,useExisting:ke},{provide:vt,useExisting:ke}]),C.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function($,le){1&$&&(C.ynx(0,0),C.YNc(1,x,5,2,"ng-container",1),C.YNc(2,v,2,1,"ng-container",1),C.BQk(),C.YNc(3,G,1,23,"ng-template",null,2,C.W1O)),2&$&&(C.Q6J("ngSwitch",le.orientation),C.xp6(1),C.Q6J("ngSwitchCase","horizontal"),C.xp6(1),C.Q6J("ngSwitchCase","vertical"))},directives:[y.RF,y.n9,y.sg,y.tP,y.O5,ze],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.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-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.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;height:72px;overflow:hidden;align-items:center;padding:0 24px}.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-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}.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-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[Ie.horizontalStepTransition,Ie.verticalStepTransition]},changeDetection:0}),ke})(),Ne=(()=>{class ke extends t.st{}return ke.\u0275fac=function(){let q;return function(le){return(q||(q=C.n5z(ke)))(le||ke)}}(),ke.\u0275dir=C.lG2({type:ke,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function($,le){2&$&&C.Ikx("type",le.type)},inputs:{type:"type"},features:[C.qOj]}),ke})(),he=(()=>{class ke extends t.po{}return ke.\u0275fac=function(){let q;return function(le){return(q||(q=C.n5z(ke)))(le||ke)}}(),ke.\u0275dir=C.lG2({type:ke,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function($,le){2&$&&C.Ikx("type",le.type)},inputs:{type:"type"},features:[C.qOj]}),ke})(),Le=(()=>{class ke{}return ke.\u0275fac=function($){return new($||ke)},ke.\u0275mod=C.oAB({type:ke}),ke.\u0275inj=C.cJS({providers:[Ce,M.rD],imports:[[M.BQ,y.ez,e.eL,o.ot,t.U5,l.Ps,M.si],M.BQ]}),ke})()},2075:(Ve,Q,m)=>{"use strict";m.d(Q,{ev:()=>Fe,Dz:()=>et,w1:()=>Jt,yh:()=>Pe,mD:()=>Nt,Q2:()=>Bt,Ke:()=>st,ge:()=>ct,fO:()=>$t,XQ:()=>li,as:()=>at,Gk:()=>Rt,nj:()=>At,BZ:()=>De,by:()=>Xi,p0:()=>sn});var e=m(5e3),t=m(3191),y=m(449),C=m(9808),o=m(7579),M=m(457),l=m(1135),N=m(5191),s=m(9646),D=m(2722),A=m(5698),O=m(226),E=m(925),P=m(5303);const w=[[["caption"]],[["colgroup"],["col"]]],Z=["caption","colgroup, col"];function ie(Ke){return class extends Ke{constructor(..._t){super(..._t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(_t){const ve=this._sticky;this._sticky=(0,t.Ig)(_t),this._hasStickyChanged=ve!==this._sticky}hasStickyChanged(){const _t=this._hasStickyChanged;return this._hasStickyChanged=!1,_t}resetStickyChanged(){this._hasStickyChanged=!1}}}const ee=new e.OlP("CDK_TABLE");let ce=(()=>{class Ke{constructor(ve){this.template=ve}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.Rgc))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkCellDef",""]]}),Ke})(),re=(()=>{class Ke{constructor(ve){this.template=ve}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.Rgc))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkHeaderCellDef",""]]}),Ke})(),de=(()=>{class Ke{constructor(ve){this.template=ve}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.Rgc))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkFooterCellDef",""]]}),Ke})();class oe{}const ae=ie(oe);let b=(()=>{class Ke extends ae{constructor(ve){super(),this._table=ve,this._stickyEnd=!1}get name(){return this._name}set name(ve){this._setNameInput(ve)}get stickyEnd(){return this._stickyEnd}set stickyEnd(ve){const qe=this._stickyEnd;this._stickyEnd=(0,t.Ig)(ve),this._hasStickyChanged=qe!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(ve){ve&&(this._name=ve,this.cssClassFriendlyName=ve.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(ee,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkColumnDef",""]],contentQueries:function(ve,qe,yt){if(1&ve&&(e.Suo(yt,ce,5),e.Suo(yt,re,5),e.Suo(yt,de,5)),2&ve){let fe;e.iGM(fe=e.CRH())&&(qe.cell=fe.first),e.iGM(fe=e.CRH())&&(qe.headerCell=fe.first),e.iGM(fe=e.CRH())&&(qe.footerCell=fe.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[e._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ke}]),e.qOj]}),Ke})();class i{constructor(_t,ve){const qe=ve.nativeElement.classList;for(const yt of _t._columnCssClassName)qe.add(yt)}}let a=(()=>{class Ke extends i{constructor(ve,qe){super(ve,qe)}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[e.qOj]}),Ke})(),p=(()=>{class Ke extends i{constructor(ve,qe){var yt;if(super(ve,qe),1===(null===(yt=ve._table)||void 0===yt?void 0:yt._elementRef.nativeElement.nodeType)){const fe=ve._table._elementRef.nativeElement.getAttribute("role");qe.nativeElement.setAttribute("role","grid"===fe||"treegrid"===fe?"gridcell":"cell")}}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[e.qOj]}),Ke})(),u=(()=>{class Ke extends i{constructor(ve,qe){var yt;if(super(ve,qe),1===(null===(yt=ve._table)||void 0===yt?void 0:yt._elementRef.nativeElement.nodeType)){const fe=ve._table._elementRef.nativeElement.getAttribute("role");qe.nativeElement.setAttribute("role","grid"===fe||"treegrid"===fe?"gridcell":"cell")}}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.qOj]}),Ke})();class _{constructor(){this.tasks=[],this.endTasks=[]}}const L=new e.OlP("_COALESCED_STYLE_SCHEDULER");let I=(()=>{class Ke{constructor(ve){this._ngZone=ve,this._currentSchedule=null,this._destroyed=new o.x}schedule(ve){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(ve)}scheduleEnd(ve){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(ve)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new _,this._getScheduleObservable().pipe((0,D.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const ve=this._currentSchedule;this._currentSchedule=new _;for(const qe of ve.tasks)qe();for(const qe of ve.endTasks)qe()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,M.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,A.q)(1))}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.LFG(e.R0b))},Ke.\u0275prov=e.Yz7({token:Ke,factory:Ke.\u0275fac}),Ke})(),r=(()=>{class Ke{constructor(ve,qe){this.template=ve,this._differs=qe}ngOnChanges(ve){if(!this._columnsDiffer){const qe=ve.columns&&ve.columns.currentValue||[];this._columnsDiffer=this._differs.find(qe).create(),this._columnsDiffer.diff(qe)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(ve){return this instanceof F?ve.headerCell.template:this instanceof Ce?ve.footerCell.template:ve.cell.template}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4))},Ke.\u0275dir=e.lG2({type:Ke,features:[e.TTD]}),Ke})();class v extends r{}const G=ie(v);let F=(()=>{class Ke extends G{constructor(ve,qe,yt){super(ve,qe),this._table=yt}ngOnChanges(ve){super.ngOnChanges(ve)}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(ee,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),Ke})();class U extends r{}const ye=ie(U);let Ce=(()=>{class Ke extends ye{constructor(ve,qe,yt){super(ve,qe),this._table=yt}ngOnChanges(ve){super.ngOnChanges(ve)}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(ee,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),Ke})(),Be=(()=>{class Ke extends r{constructor(ve,qe,yt){super(ve,qe),this._table=yt}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(ee,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.qOj]}),Ke})(),ze=(()=>{class Ke{constructor(ve){this._viewContainer=ve,Ke.mostRecentCellOutlet=this}ngOnDestroy(){Ke.mostRecentCellOutlet===this&&(Ke.mostRecentCellOutlet=null)}}return Ke.mostRecentCellOutlet=null,Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.s_b))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkCellOutlet",""]]}),Ke})(),Ie=(()=>{class Ke{}return Ke.\u0275fac=function(ve){return new(ve||Ke)},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,qe){1&ve&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),K=(()=>{class Ke{}return Ke.\u0275fac=function(ve){return new(ve||Ke)},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,qe){1&ve&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),Me=(()=>{class Ke{}return Ke.\u0275fac=function(ve){return new(ve||Ke)},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,qe){1&ve&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),we=(()=>{class Ke{constructor(ve){this.templateRef=ve,this._contentClassName="cdk-no-data-row"}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.Rgc))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["ng-template","cdkNoDataRow",""]]}),Ke})();const z=["top","bottom","left","right"];class Ge{constructor(_t,ve,qe,yt,fe=!0,Je=!0,St){this._isNativeHtmlTable=_t,this._stickCellCss=ve,this.direction=qe,this._coalescedStyleScheduler=yt,this._isBrowser=fe,this._needsPositionStickyOnElement=Je,this._positionListener=St,this._cachedCellWidths=[],this._borderCellCss={top:`${ve}-border-elem-top`,bottom:`${ve}-border-elem-bottom`,left:`${ve}-border-elem-left`,right:`${ve}-border-elem-right`}}clearStickyPositioning(_t,ve){const qe=[];for(const yt of _t)if(yt.nodeType===yt.ELEMENT_NODE){qe.push(yt);for(let fe=0;fe{for(const yt of qe)this._removeStickyStyle(yt,ve)})}updateStickyColumns(_t,ve,qe,yt=!0){if(!_t.length||!this._isBrowser||!ve.some(qi=>qi)&&!qe.some(qi=>qi))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const fe=_t[0],Je=fe.children.length,St=this._getCellWidths(fe,yt),Pt=this._getStickyStartColumnPositions(St,ve),yi=this._getStickyEndColumnPositions(St,qe),Ni=ve.lastIndexOf(!0),Si=qe.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const qi="rtl"===this.direction,ot=qi?"right":"left",Kt=qi?"left":"right";for(const gt of _t)for(let Lt=0;Ltve[Lt]?gt:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Si?[]:St.slice(Si).map((gt,Lt)=>qe[Lt+Si]?gt:null).reverse()}))})}stickRows(_t,ve,qe){if(!this._isBrowser)return;const yt="bottom"===qe?_t.slice().reverse():_t,fe="bottom"===qe?ve.slice().reverse():ve,Je=[],St=[],Pt=[];for(let Ni=0,Si=0;Ni{var Ni,Si;for(let qi=0;qi{ve.some(yt=>!yt)?this._removeStickyStyle(qe,["bottom"]):this._addStickyStyle(qe,"bottom",0,!1)})}_removeStickyStyle(_t,ve){for(const yt of ve)_t.style[yt]="",_t.classList.remove(this._borderCellCss[yt]);z.some(yt=>-1===ve.indexOf(yt)&&_t.style[yt])?_t.style.zIndex=this._getCalculatedZIndex(_t):(_t.style.zIndex="",this._needsPositionStickyOnElement&&(_t.style.position=""),_t.classList.remove(this._stickCellCss))}_addStickyStyle(_t,ve,qe,yt){_t.classList.add(this._stickCellCss),yt&&_t.classList.add(this._borderCellCss[ve]),_t.style[ve]=`${qe}px`,_t.style.zIndex=this._getCalculatedZIndex(_t),this._needsPositionStickyOnElement&&(_t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(_t){const ve={top:100,bottom:10,left:1,right:1};let qe=0;for(const yt of z)_t.style[yt]&&(qe+=ve[yt]);return qe?`${qe}`:""}_getCellWidths(_t,ve=!0){if(!ve&&this._cachedCellWidths.length)return this._cachedCellWidths;const qe=[],yt=_t.children;for(let fe=0;fe0;fe--)ve[fe]&&(qe[fe]=yt,yt+=_t[fe]);return qe}}const le=new e.OlP("CDK_SPL");let Ue=(()=>{class Ke{constructor(ve,qe){this.viewContainer=ve,this.elementRef=qe}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.s_b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","rowOutlet",""]]}),Ke})(),lt=(()=>{class Ke{constructor(ve,qe){this.viewContainer=ve,this.elementRef=qe}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.s_b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","headerRowOutlet",""]]}),Ke})(),nt=(()=>{class Ke{constructor(ve,qe){this.viewContainer=ve,this.elementRef=qe}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.s_b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","footerRowOutlet",""]]}),Ke})(),ft=(()=>{class Ke{constructor(ve,qe){this.viewContainer=ve,this.elementRef=qe}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.s_b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","noDataRowOutlet",""]]}),Ke})(),Mt=(()=>{class Ke{constructor(ve,qe,yt,fe,Je,St,Pt,yi,Ni,Si,qi){this._differs=ve,this._changeDetectorRef=qe,this._elementRef=yt,this._dir=Je,this._platform=Pt,this._viewRepeater=yi,this._coalescedStyleScheduler=Ni,this._viewportRuler=Si,this._stickyPositioningListener=qi,this._onDestroy=new o.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new e.vpe,this.viewChange=new l.X({start:0,end:Number.MAX_VALUE}),fe||this._elementRef.nativeElement.setAttribute("role","table"),this._document=St,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(ve){this._trackByFn=ve}get dataSource(){return this._dataSource}set dataSource(ve){this._dataSource!==ve&&this._switchDataSource(ve)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(ve){this._multiTemplateDataRows=(0,t.Ig)(ve),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(ve){this._fixedLayout=(0,t.Ig)(ve),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((ve,qe)=>this.trackBy?this.trackBy(qe.dataIndex,qe.data):qe),this._viewportRuler.change().pipe((0,D.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const qe=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||qe,this._forceRecalculateCellWidths=qe,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()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),(0,y.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const ve=this._dataDiffer.diff(this._renderRows);if(!ve)return this._updateNoDataRow(),void this.contentChanged.next();const qe=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(ve,qe,(yt,fe,Je)=>this._getEmbeddedViewArgs(yt.item,Je),yt=>yt.item.data,yt=>{1===yt.operation&&yt.context&&this._renderCellTemplateForItem(yt.record.item.rowDef,yt.context)}),this._updateRowIndexContext(),ve.forEachIdentityChange(yt=>{qe.get(yt.currentIndex).context.$implicit=yt.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(ve){this._customColumnDefs.add(ve)}removeColumnDef(ve){this._customColumnDefs.delete(ve)}addRowDef(ve){this._customRowDefs.add(ve)}removeRowDef(ve){this._customRowDefs.delete(ve)}addHeaderRowDef(ve){this._customHeaderRowDefs.add(ve),this._headerRowDefChanged=!0}removeHeaderRowDef(ve){this._customHeaderRowDefs.delete(ve),this._headerRowDefChanged=!0}addFooterRowDef(ve){this._customFooterRowDefs.add(ve),this._footerRowDefChanged=!0}removeFooterRowDef(ve){this._customFooterRowDefs.delete(ve),this._footerRowDefChanged=!0}setNoDataRow(ve){this._customNoDataRow=ve}updateStickyHeaderRowStyles(){const ve=this._getRenderedRows(this._headerRowOutlet),yt=this._elementRef.nativeElement.querySelector("thead");yt&&(yt.style.display=ve.length?"":"none");const fe=this._headerRowDefs.map(Je=>Je.sticky);this._stickyStyler.clearStickyPositioning(ve,["top"]),this._stickyStyler.stickRows(ve,fe,"top"),this._headerRowDefs.forEach(Je=>Je.resetStickyChanged())}updateStickyFooterRowStyles(){const ve=this._getRenderedRows(this._footerRowOutlet),yt=this._elementRef.nativeElement.querySelector("tfoot");yt&&(yt.style.display=ve.length?"":"none");const fe=this._footerRowDefs.map(Je=>Je.sticky);this._stickyStyler.clearStickyPositioning(ve,["bottom"]),this._stickyStyler.stickRows(ve,fe,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,fe),this._footerRowDefs.forEach(Je=>Je.resetStickyChanged())}updateStickyColumnStyles(){const ve=this._getRenderedRows(this._headerRowOutlet),qe=this._getRenderedRows(this._rowOutlet),yt=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...ve,...qe,...yt],["left","right"]),this._stickyColumnStylesNeedReset=!1),ve.forEach((fe,Je)=>{this._addStickyColumnStyles([fe],this._headerRowDefs[Je])}),this._rowDefs.forEach(fe=>{const Je=[];for(let St=0;St{this._addStickyColumnStyles([fe],this._footerRowDefs[Je])}),Array.from(this._columnDefsByName.values()).forEach(fe=>fe.resetStickyChanged())}_getAllRenderRows(){const ve=[],qe=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let yt=0;yt{const St=yt&&yt.has(Je)?yt.get(Je):[];if(St.length){const Pt=St.shift();return Pt.dataIndex=qe,Pt}return{data:ve,rowDef:Je,dataIndex:qe}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Zt(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(qe=>{this._columnDefsByName.has(qe.name),this._columnDefsByName.set(qe.name,qe)})}_cacheRowDefs(){this._headerRowDefs=Zt(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Zt(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Zt(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const ve=this._rowDefs.filter(qe=>!qe.when);this._defaultRowDef=ve[0]}_renderUpdatedColumns(){const ve=(Je,St)=>Je||!!St.getColumnsDiff(),qe=this._rowDefs.reduce(ve,!1);qe&&this._forceRenderDataRows();const yt=this._headerRowDefs.reduce(ve,!1);yt&&this._forceRenderHeaderRows();const fe=this._footerRowDefs.reduce(ve,!1);return fe&&this._forceRenderFooterRows(),qe||yt||fe}_switchDataSource(ve){this._data=[],(0,y.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),ve||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=ve}_observeRenderChanges(){if(!this.dataSource)return;let ve;(0,y.Z9)(this.dataSource)?ve=this.dataSource.connect(this):(0,N.b)(this.dataSource)?ve=this.dataSource:Array.isArray(this.dataSource)&&(ve=(0,s.of)(this.dataSource)),this._renderChangeSubscription=ve.pipe((0,D.R)(this._onDestroy)).subscribe(qe=>{this._data=qe||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((ve,qe)=>this._renderRow(this._headerRowOutlet,ve,qe)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((ve,qe)=>this._renderRow(this._footerRowOutlet,ve,qe)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(ve,qe){const yt=Array.from(qe.columns||[]).map(St=>this._columnDefsByName.get(St)),fe=yt.map(St=>St.sticky),Je=yt.map(St=>St.stickyEnd);this._stickyStyler.updateStickyColumns(ve,fe,Je,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(ve){const qe=[];for(let yt=0;yt!fe.when||fe.when(qe,ve));else{let fe=this._rowDefs.find(Je=>Je.when&&Je.when(qe,ve))||this._defaultRowDef;fe&&yt.push(fe)}return yt}_getEmbeddedViewArgs(ve,qe){return{templateRef:ve.rowDef.template,context:{$implicit:ve.data},index:qe}}_renderRow(ve,qe,yt,fe={}){const Je=ve.viewContainer.createEmbeddedView(qe.template,fe,yt);return this._renderCellTemplateForItem(qe,fe),Je}_renderCellTemplateForItem(ve,qe){for(let yt of this._getCellTemplates(ve))ze.mostRecentCellOutlet&&ze.mostRecentCellOutlet._viewContainer.createEmbeddedView(yt,qe);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const ve=this._rowOutlet.viewContainer;for(let qe=0,yt=ve.length;qe{const yt=this._columnDefsByName.get(qe);return ve.extractCellTemplate(yt)}):[]}_applyNativeTableSections(){const ve=this._document.createDocumentFragment(),qe=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const yt of qe){const fe=this._document.createElement(yt.tag);fe.setAttribute("role","rowgroup");for(const Je of yt.outlets)fe.appendChild(Je.elementRef.nativeElement);ve.appendChild(fe)}this._elementRef.nativeElement.appendChild(ve)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const ve=(qe,yt)=>qe||yt.hasStickyChanged();this._headerRowDefs.reduce(ve,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(ve,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(ve,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Ge(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,s.of)()).pipe((0,D.R)(this._onDestroy)).subscribe(qe=>{this._stickyStyler.direction=qe,this.updateStickyColumnStyles()})}_getOwnDefs(ve){return ve.filter(qe=>!qe._table||qe._table===this)}_updateNoDataRow(){const ve=this._customNoDataRow||this._noDataRow;if(!ve)return;const qe=0===this._rowOutlet.viewContainer.length;if(qe===this._isShowingNoDataRow)return;const yt=this._noDataRowOutlet.viewContainer;if(qe){const fe=yt.createEmbeddedView(ve.templateRef),Je=fe.rootNodes[0];1===fe.rootNodes.length&&(null==Je?void 0:Je.nodeType)===this._document.ELEMENT_NODE&&(Je.setAttribute("role","row"),Je.classList.add(ve._contentClassName))}else yt.clear();this._isShowingNoDataRow=qe}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.ZZ4),e.Y36(e.sBO),e.Y36(e.SBq),e.$8M("role"),e.Y36(O.Is,8),e.Y36(C.K0),e.Y36(E.t4),e.Y36(y.k),e.Y36(L),e.Y36(P.rL),e.Y36(le,12))},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(ve,qe,yt){if(1&ve&&(e.Suo(yt,we,5),e.Suo(yt,b,5),e.Suo(yt,Be,5),e.Suo(yt,F,5),e.Suo(yt,Ce,5)),2&ve){let fe;e.iGM(fe=e.CRH())&&(qe._noDataRow=fe.first),e.iGM(fe=e.CRH())&&(qe._contentColumnDefs=fe),e.iGM(fe=e.CRH())&&(qe._contentRowDefs=fe),e.iGM(fe=e.CRH())&&(qe._contentHeaderRowDefs=fe),e.iGM(fe=e.CRH())&&(qe._contentFooterRowDefs=fe)}},viewQuery:function(ve,qe){if(1&ve&&(e.Gf(Ue,7),e.Gf(lt,7),e.Gf(nt,7),e.Gf(ft,7)),2&ve){let yt;e.iGM(yt=e.CRH())&&(qe._rowOutlet=yt.first),e.iGM(yt=e.CRH())&&(qe._headerRowOutlet=yt.first),e.iGM(yt=e.CRH())&&(qe._footerRowOutlet=yt.first),e.iGM(yt=e.CRH())&&(qe._noDataRowOutlet=yt.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(ve,qe){2&ve&&e.ekj("cdk-table-fixed-layout",qe.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[e._Bn([{provide:ee,useExisting:Ke},{provide:y.k,useClass:y.yy},{provide:L,useClass:I},{provide:le,useValue:null}])],ngContentSelectors:Z,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ve,qe){1&ve&&(e.F$t(w),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0),e.GkF(3,1),e.GkF(4,2),e.GkF(5,3))},directives:[lt,Ue,ft,nt],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),Ke})();function Zt(Ke,_t){return Ke.concat(Array.from(_t))}let Ii=(()=>{class Ke{}return Ke.\u0275fac=function(ve){return new(ve||Ke)},Ke.\u0275mod=e.oAB({type:Ke}),Ke.\u0275inj=e.cJS({imports:[[P.Cl]]}),Ke})();var jt=m(508),ei=m(6451),Pi=m(9841),ai=m(4004);const hi=[[["caption"]],[["colgroup"],["col"]]],Ze=["caption","colgroup, col"];let De=(()=>{class Ke extends Mt{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(ve,qe){2&ve&&e.ekj("mat-table-fixed-layout",qe.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:y.k,useClass:y.yy},{provide:Mt,useExisting:Ke},{provide:ee,useExisting:Ke},{provide:L,useClass:I},{provide:le,useValue:null}]),e.qOj],ngContentSelectors:Ze,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ve,qe){1&ve&&(e.F$t(hi),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0),e.GkF(3,1),e.GkF(4,2),e.GkF(5,3))},directives:[lt,Ue,ft,nt],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}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-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}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}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),Ke})(),et=(()=>{class Ke extends ce{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:ce,useExisting:Ke}]),e.qOj]}),Ke})(),$t=(()=>{class Ke extends re{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:re,useExisting:Ke}]),e.qOj]}),Ke})(),Nt=(()=>{class Ke extends de{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matFooterCellDef",""]],features:[e._Bn([{provide:de,useExisting:Ke}]),e.qOj]}),Ke})(),Jt=(()=>{class Ke extends b{get name(){return this._name}set name(ve){this._setNameInput(ve)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:b,useExisting:Ke},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ke}]),e.qOj]}),Ke})(),ct=(()=>{class Ke extends a{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[e.qOj]}),Ke})(),Pe=(()=>{class Ke extends p{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[e.qOj]}),Ke})(),Fe=(()=>{class Ke extends u{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.qOj]}),Ke})(),at=(()=>{class Ke extends F{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:F,useExisting:Ke}]),e.qOj]}),Ke})(),st=(()=>{class Ke extends Ce{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[e._Bn([{provide:Ce,useExisting:Ke}]),e.qOj]}),Ke})(),At=(()=>{class Ke extends Be{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:Be,useExisting:Ke}]),e.qOj]}),Ke})(),li=(()=>{class Ke extends Ie{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:Ie,useExisting:Ke}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,qe){1&ve&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),Bt=(()=>{class Ke extends K{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[e._Bn([{provide:K,useExisting:Ke}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,qe){1&ve&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),Rt=(()=>{class Ke extends Me{}return Ke.\u0275fac=function(){let _t;return function(qe){return(_t||(_t=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[e._Bn([{provide:Me,useExisting:Ke}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,qe){1&ve&&e.GkF(0,0)},directives:[ze],encapsulation:2}),Ke})(),sn=(()=>{class Ke{}return Ke.\u0275fac=function(ve){return new(ve||Ke)},Ke.\u0275mod=e.oAB({type:Ke}),Ke.\u0275inj=e.cJS({imports:[[Ii,jt.BQ],jt.BQ]}),Ke})();class Di extends y.o2{constructor(_t=[]){super(),this._renderData=new l.X([]),this._filter=new l.X(""),this._internalPageChanges=new o.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(ve,qe)=>{const yt=ve[qe];if((0,t.t6)(yt)){const fe=Number(yt);return fe<9007199254740991?fe:yt}return yt},this.sortData=(ve,qe)=>{const yt=qe.active,fe=qe.direction;return yt&&""!=fe?ve.sort((Je,St)=>{let Pt=this.sortingDataAccessor(Je,yt),yi=this.sortingDataAccessor(St,yt);const Ni=typeof Pt,Si=typeof yi;Ni!==Si&&("number"===Ni&&(Pt+=""),"number"===Si&&(yi+=""));let qi=0;return null!=Pt&&null!=yi?Pt>yi?qi=1:Pt{const yt=Object.keys(ve).reduce((Je,St)=>Je+ve[St]+"\u25ec","").toLowerCase(),fe=qe.trim().toLowerCase();return-1!=yt.indexOf(fe)},this._data=new l.X(_t),this._updateChangeSubscription()}get data(){return this._data.value}set data(_t){this._data.next(_t),this._renderChangesSubscription||this._filterData(_t)}get filter(){return this._filter.value}set filter(_t){this._filter.next(_t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(_t){this._sort=_t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(_t){this._paginator=_t,this._updateChangeSubscription()}_updateChangeSubscription(){var _t;const ve=this._sort?(0,ei.T)(this._sort.sortChange,this._sort.initialized):(0,s.of)(null),qe=this._paginator?(0,ei.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,s.of)(null),fe=(0,Pi.a)([this._data,this._filter]).pipe((0,ai.U)(([Pt])=>this._filterData(Pt))),Je=(0,Pi.a)([fe,ve]).pipe((0,ai.U)(([Pt])=>this._orderData(Pt))),St=(0,Pi.a)([Je,qe]).pipe((0,ai.U)(([Pt])=>this._pageData(Pt)));null===(_t=this._renderChangesSubscription)||void 0===_t||_t.unsubscribe(),this._renderChangesSubscription=St.subscribe(Pt=>this._renderData.next(Pt))}_filterData(_t){return this.filteredData=null==this.filter||""===this.filter?_t:_t.filter(ve=>this.filterPredicate(ve,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(_t){return this.sort?this.sortData(_t.slice(),this.sort):_t}_pageData(_t){if(!this.paginator)return _t;const ve=this.paginator.pageIndex*this.paginator.pageSize;return _t.slice(ve,ve+this.paginator.pageSize)}_updatePaginator(_t){Promise.resolve().then(()=>{const ve=this.paginator;if(ve&&(ve.length=_t,ve.pageIndex>0)){const qe=Math.ceil(ve.length/ve.pageSize)-1||0,yt=Math.min(ve.pageIndex,qe);yt!==ve.pageIndex&&(ve.pageIndex=yt,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var _t;null===(_t=this._renderChangesSubscription)||void 0===_t||_t.unsubscribe(),this._renderChangesSubscription=null}}class Xi extends Di{}},3251:(Ve,Q,m)=>{"use strict";m.d(Q,{uX:()=>vt,SP:()=>Vt,uD:()=>we,Nj:()=>ai,BU:()=>jt,Nh:()=>hi});var e=m(5664),t=m(7144),y=m(7429),C=m(9808),o=m(5e3),M=m(508),l=m(6360),N=m(7579),s=m(727),D=m(4968),A=m(9646),O=m(6451),E=m(2805),P=m(1777),w=m(8675),Z=m(1884),j=m(2722),W=m(226),ie=m(3191),ee=m(1159),_e=m(925),ce=m(5303);function re(Ze,Ee){1&Ze&&o.Hsn(0)}const de=["*"];function oe(Ze,Ee){}const ae=function(Ze){return{animationDuration:Ze}},b=function(Ze,Ee){return{value:Ze,params:Ee}},i=["tabListContainer"],a=["tabList"],p=["tabListInner"],u=["nextPaginator"],_=["previousPaginator"],L=["tabBodyWrapper"],I=["tabHeader"];function x(Ze,Ee){}function r(Ze,Ee){if(1&Ze&&o.YNc(0,x,0,0,"ng-template",9),2&Ze){const Y=o.oxw().$implicit;o.Q6J("cdkPortalOutlet",Y.templateLabel)}}function v(Ze,Ee){if(1&Ze&&o._uU(0),2&Ze){const Y=o.oxw().$implicit;o.Oqu(Y.textLabel)}}function G(Ze,Ee){if(1&Ze){const Y=o.EpF();o.TgZ(0,"div",6),o.NdJ("click",function(){const De=o.CHM(Y),et=De.$implicit,$t=De.index,Nt=o.oxw(),Jt=o.MAs(1);return Nt._handleClick(et,Jt,$t)})("cdkFocusChange",function(De){const $t=o.CHM(Y).index;return o.oxw()._tabFocusChanged(De,$t)}),o.TgZ(1,"div",7),o.YNc(2,r,1,1,"ng-template",8),o.YNc(3,v,1,1,"ng-template",8),o.qZA(),o.qZA()}if(2&Ze){const Y=Ee.$implicit,me=Ee.index,De=o.oxw();o.ekj("mat-tab-label-active",De.selectedIndex==me),o.Q6J("id",De._getTabLabelId(me))("disabled",Y.disabled)("matRippleDisabled",Y.disabled||De.disableRipple),o.uIk("tabIndex",De._getTabIndex(Y,me))("aria-posinset",me+1)("aria-setsize",De._tabs.length)("aria-controls",De._getTabContentId(me))("aria-selected",De.selectedIndex==me)("aria-label",Y.ariaLabel||null)("aria-labelledby",!Y.ariaLabel&&Y.ariaLabelledby?Y.ariaLabelledby:null),o.xp6(2),o.Q6J("ngIf",Y.templateLabel),o.xp6(1),o.Q6J("ngIf",!Y.templateLabel)}}function F(Ze,Ee){if(1&Ze){const Y=o.EpF();o.TgZ(0,"mat-tab-body",10),o.NdJ("_onCentered",function(){return o.CHM(Y),o.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(De){return o.CHM(Y),o.oxw()._setTabBodyWrapperHeight(De)}),o.qZA()}if(2&Ze){const Y=Ee.$implicit,me=Ee.index,De=o.oxw();o.ekj("mat-tab-body-active",De.selectedIndex===me),o.Q6J("id",De._getTabContentId(me))("content",Y.content)("position",Y.position)("origin",Y.origin)("animationDuration",De.animationDuration),o.uIk("tabindex",null!=De.contentTabIndex&&De.selectedIndex===me?De.contentTabIndex:null)("aria-labelledby",De._getTabLabelId(me))}}const U=["mat-tab-nav-bar",""],ye=new o.OlP("MatInkBarPositioner",{providedIn:"root",factory:function Ce(){return Ee=>({left:Ee?(Ee.offsetLeft||0)+"px":"0",width:Ee?(Ee.offsetWidth||0)+"px":"0"})}});let Be=(()=>{class Ze{constructor(Y,me,De,et){this._elementRef=Y,this._ngZone=me,this._inkBarPositioner=De,this._animationMode=et}alignToElement(Y){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(Y))}):this._setStyles(Y)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(Y){const me=this._inkBarPositioner(Y),De=this._elementRef.nativeElement;De.style.left=me.left,De.style.width=me.width}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(ye),o.Y36(l.Qb,8))},Ze.\u0275dir=o.lG2({type:Ze,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(Y,me){2&Y&&o.ekj("_mat-animation-noopable","NoopAnimations"===me._animationMode)}}),Ze})();const ze=new o.OlP("MatTabContent"),K=new o.OlP("MatTabLabel"),Me=new o.OlP("MAT_TAB");let we=(()=>{class Ze extends y.ig{constructor(Y,me,De){super(Y,me),this._closestTab=De}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(o.Rgc),o.Y36(o.s_b),o.Y36(Me,8))},Ze.\u0275dir=o.lG2({type:Ze,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[o._Bn([{provide:K,useExisting:Ze}]),o.qOj]}),Ze})();const z=(0,M.Id)(class{}),Ge=new o.OlP("MAT_TAB_GROUP");let vt=(()=>{class Ze extends z{constructor(Y,me){super(),this._viewContainerRef=Y,this._closestTabGroup=me,this.textLabel="",this._contentPortal=null,this._stateChanges=new N.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(Y){this._setTemplateLabelInput(Y)}get content(){return this._contentPortal}ngOnChanges(Y){(Y.hasOwnProperty("textLabel")||Y.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new y.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(Y){Y&&Y._closestTab===this&&(this._templateLabel=Y)}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(o.s_b),o.Y36(Ge,8))},Ze.\u0275cmp=o.Xpm({type:Ze,selectors:[["mat-tab"]],contentQueries:function(Y,me,De){if(1&Y&&(o.Suo(De,K,5),o.Suo(De,ze,7,o.Rgc)),2&Y){let et;o.iGM(et=o.CRH())&&(me.templateLabel=et.first),o.iGM(et=o.CRH())&&(me._explicitContent=et.first)}},viewQuery:function(Y,me){if(1&Y&&o.Gf(o.Rgc,7),2&Y){let De;o.iGM(De=o.CRH())&&(me._implicitContent=De.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[o._Bn([{provide:Me,useExisting:Ze}]),o.qOj,o.TTD],ngContentSelectors:de,decls:1,vars:0,template:function(Y,me){1&Y&&(o.F$t(),o.YNc(0,re,1,0,"ng-template"))},encapsulation:2}),Ze})();const Re={translateTab:(0,P.X$)("translateTab",[(0,P.SB)("center, void, left-origin-center, right-origin-center",(0,P.oB)({transform:"none"})),(0,P.SB)("left",(0,P.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,P.SB)("right",(0,P.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,P.eR)("* => left, * => right, left => center, right => center",(0,P.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,P.eR)("void => left-origin-center",[(0,P.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,P.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,P.eR)("void => right-origin-center",[(0,P.oB)({transform:"translate3d(100%, 0, 0)"}),(0,P.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Ne=(()=>{class Ze extends y.Pl{constructor(Y,me,De,et){super(Y,me,et),this._host=De,this._centeringSub=s.w0.EMPTY,this._leavingSub=s.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,w.O)(this._host._isCenterPosition(this._host._position))).subscribe(Y=>{Y&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(o._Vd),o.Y36(o.s_b),o.Y36((0,o.Gpc)(()=>Le)),o.Y36(C.K0))},Ze.\u0275dir=o.lG2({type:Ze,selectors:[["","matTabBodyHost",""]],features:[o.qOj]}),Ze})(),he=(()=>{class Ze{constructor(Y,me,De){this._elementRef=Y,this._dir=me,this._dirChangeSubscription=s.w0.EMPTY,this._translateTabComplete=new N.x,this._onCentering=new o.vpe,this._beforeCentering=new o.vpe,this._afterLeavingCenter=new o.vpe,this._onCentered=new o.vpe(!0),this.animationDuration="500ms",me&&(this._dirChangeSubscription=me.change.subscribe(et=>{this._computePositionAnimationState(et),De.markForCheck()})),this._translateTabComplete.pipe((0,Z.x)((et,$t)=>et.fromState===$t.fromState&&et.toState===$t.toState)).subscribe(et=>{this._isCenterPosition(et.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(et.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(Y){this._positionIndex=Y,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(Y){const me=this._isCenterPosition(Y.toState);this._beforeCentering.emit(me),me&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(Y){return"center"==Y||"left-origin-center"==Y||"right-origin-center"==Y}_computePositionAnimationState(Y=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==Y?"left":"right":this._positionIndex>0?"ltr"==Y?"right":"left":"center"}_computePositionFromOrigin(Y){const me=this._getLayoutDirection();return"ltr"==me&&Y<=0||"rtl"==me&&Y>0?"left-origin-center":"right-origin-center"}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(o.SBq),o.Y36(W.Is,8),o.Y36(o.sBO))},Ze.\u0275dir=o.lG2({type:Ze,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Ze})(),Le=(()=>{class Ze extends he{constructor(Y,me,De){super(Y,me,De)}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(o.SBq),o.Y36(W.Is,8),o.Y36(o.sBO))},Ze.\u0275cmp=o.Xpm({type:Ze,selectors:[["mat-tab-body"]],viewQuery:function(Y,me){if(1&Y&&o.Gf(y.Pl,5),2&Y){let De;o.iGM(De=o.CRH())&&(me._portalHost=De.first)}},hostAttrs:[1,"mat-tab-body"],features:[o.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(Y,me){1&Y&&(o.TgZ(0,"div",0,1),o.NdJ("@translateTab.start",function(et){return me._onTranslateTabStarted(et)})("@translateTab.done",function(et){return me._translateTabComplete.next(et)}),o.YNc(2,oe,0,0,"ng-template",2),o.qZA()),2&Y&&o.Q6J("@translateTab",o.WLB(3,b,me._position,o.VKq(1,ae,me.animationDuration)))},directives:[Ne],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Re.translateTab]}}),Ze})();const ke=new o.OlP("MAT_TABS_CONFIG"),q=(0,M.Id)(class{});let $=(()=>{class Ze extends q{constructor(Y){super(),this.elementRef=Y}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(o.SBq))},Ze.\u0275dir=o.lG2({type:Ze,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(Y,me){2&Y&&(o.uIk("aria-disabled",!!me.disabled),o.ekj("mat-tab-disabled",me.disabled))},inputs:{disabled:"disabled"},features:[o.qOj]}),Ze})();const le=(0,_e.i$)({passive:!0});let nt=(()=>{class Ze{constructor(Y,me,De,et,$t,Nt,Jt){this._elementRef=Y,this._changeDetectorRef=me,this._viewportRuler=De,this._dir=et,this._ngZone=$t,this._platform=Nt,this._animationMode=Jt,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new N.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new N.x,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new o.vpe,this.indexFocused=new o.vpe,$t.runOutsideAngular(()=>{(0,D.R)(Y.nativeElement,"mouseleave").pipe((0,j.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(Y){Y=(0,ie.su)(Y),this._selectedIndex!=Y&&(this._selectedIndexChanged=!0,this._selectedIndex=Y,this._keyManager&&this._keyManager.updateActiveItem(Y))}ngAfterViewInit(){(0,D.R)(this._previousPaginator.nativeElement,"touchstart",le).pipe((0,j.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,D.R)(this._nextPaginator.nativeElement,"touchstart",le).pipe((0,j.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const Y=this._dir?this._dir.change:(0,A.of)("ltr"),me=this._viewportRuler.change(150),De=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new e.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(De):De(),(0,O.T)(Y,me,this._items.changes).pipe((0,j.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(De)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,j.R)(this._destroyed)).subscribe(et=>{this.indexFocused.emit(et),this._setTabFocus(et)})}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._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(Y){if(!(0,ee.Vb)(Y))switch(Y.keyCode){case ee.K5:case ee.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(Y));break;default:this._keyManager.onKeydown(Y)}}_onContentChanges(){const Y=this._elementRef.nativeElement.textContent;Y!==this._currentTextContent&&(this._currentTextContent=Y||"",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(Y){!this._isValidIndex(Y)||this.focusIndex===Y||!this._keyManager||this._keyManager.setActiveItem(Y)}_isValidIndex(Y){if(!this._items)return!0;const me=this._items?this._items.toArray()[Y]:null;return!!me&&!me.disabled}_setTabFocus(Y){if(this._showPaginationControls&&this._scrollToLabel(Y),this._items&&this._items.length){this._items.toArray()[Y].focus();const me=this._tabListContainer.nativeElement;me.scrollLeft="ltr"==this._getLayoutDirection()?0:me.scrollWidth-me.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const Y=this.scrollDistance,me="ltr"===this._getLayoutDirection()?-Y:Y;this._tabList.nativeElement.style.transform=`translateX(${Math.round(me)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(Y){this._scrollTo(Y)}_scrollHeader(Y){return this._scrollTo(this._scrollDistance+("before"==Y?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(Y){this._stopInterval(),this._scrollHeader(Y)}_scrollToLabel(Y){if(this.disablePagination)return;const me=this._items?this._items.toArray()[Y]:null;if(!me)return;const De=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:et,offsetWidth:$t}=me.elementRef.nativeElement;let Nt,Jt;"ltr"==this._getLayoutDirection()?(Nt=et,Jt=Nt+$t):(Jt=this._tabListInner.nativeElement.offsetWidth-et,Nt=Jt-$t);const ct=this.scrollDistance,Pe=this.scrollDistance+De;NtPe&&(this.scrollDistance+=Jt-Pe+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const Y=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;Y||(this.scrollDistance=0),Y!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=Y}}_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 Y=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,me=Y?Y.elementRef.nativeElement:null;me?this._inkBar.alignToElement(me):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(Y,me){me&&null!=me.button&&0!==me.button||(this._stopInterval(),(0,E.H)(650,100).pipe((0,j.R)((0,O.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:De,distance:et}=this._scrollHeader(Y);(0===et||et>=De)&&this._stopInterval()}))}_scrollTo(Y){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const me=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(me,Y)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:me,distance:this._scrollDistance}}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(ce.rL),o.Y36(W.Is,8),o.Y36(o.R0b),o.Y36(_e.t4),o.Y36(l.Qb,8))},Ze.\u0275dir=o.lG2({type:Ze,inputs:{disablePagination:"disablePagination"}}),Ze})(),ft=(()=>{class Ze extends nt{constructor(Y,me,De,et,$t,Nt,Jt){super(Y,me,De,et,$t,Nt,Jt),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Y){this._disableRipple=(0,ie.Ig)(Y)}_itemSelected(Y){Y.preventDefault()}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(ce.rL),o.Y36(W.Is,8),o.Y36(o.R0b),o.Y36(_e.t4),o.Y36(l.Qb,8))},Ze.\u0275dir=o.lG2({type:Ze,inputs:{disableRipple:"disableRipple"},features:[o.qOj]}),Ze})(),it=(()=>{class Ze extends ft{constructor(Y,me,De,et,$t,Nt,Jt){super(Y,me,De,et,$t,Nt,Jt)}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(ce.rL),o.Y36(W.Is,8),o.Y36(o.R0b),o.Y36(_e.t4),o.Y36(l.Qb,8))},Ze.\u0275cmp=o.Xpm({type:Ze,selectors:[["mat-tab-header"]],contentQueries:function(Y,me,De){if(1&Y&&o.Suo(De,$,4),2&Y){let et;o.iGM(et=o.CRH())&&(me._items=et)}},viewQuery:function(Y,me){if(1&Y&&(o.Gf(Be,7),o.Gf(i,7),o.Gf(a,7),o.Gf(p,7),o.Gf(u,5),o.Gf(_,5)),2&Y){let De;o.iGM(De=o.CRH())&&(me._inkBar=De.first),o.iGM(De=o.CRH())&&(me._tabListContainer=De.first),o.iGM(De=o.CRH())&&(me._tabList=De.first),o.iGM(De=o.CRH())&&(me._tabListInner=De.first),o.iGM(De=o.CRH())&&(me._nextPaginator=De.first),o.iGM(De=o.CRH())&&(me._previousPaginator=De.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(Y,me){2&Y&&o.ekj("mat-tab-header-pagination-controls-enabled",me._showPaginationControls)("mat-tab-header-rtl","rtl"==me._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[o.qOj],ngContentSelectors:de,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Y,me){1&Y&&(o.F$t(),o.TgZ(0,"div",0,1),o.NdJ("click",function(){return me._handlePaginatorClick("before")})("mousedown",function(et){return me._handlePaginatorPress("before",et)})("touchend",function(){return me._stopInterval()}),o._UZ(2,"div",2),o.qZA(),o.TgZ(3,"div",3,4),o.NdJ("keydown",function(et){return me._handleKeydown(et)}),o.TgZ(5,"div",5,6),o.NdJ("cdkObserveContent",function(){return me._onContentChanges()}),o.TgZ(7,"div",7,8),o.Hsn(9),o.qZA(),o._UZ(10,"mat-ink-bar"),o.qZA(),o.qZA(),o.TgZ(11,"div",9,10),o.NdJ("mousedown",function(et){return me._handlePaginatorPress("after",et)})("click",function(){return me._handlePaginatorClick("after")})("touchend",function(){return me._stopInterval()}),o._UZ(13,"div",2),o.qZA()),2&Y&&(o.ekj("mat-tab-header-pagination-disabled",me._disableScrollBefore),o.Q6J("matRippleDisabled",me._disableScrollBefore||me.disableRipple),o.xp6(5),o.ekj("_mat-animation-noopable","NoopAnimations"===me._animationMode),o.xp6(6),o.ekj("mat-tab-header-pagination-disabled",me._disableScrollAfter),o.Q6J("matRippleDisabled",me._disableScrollAfter||me.disableRipple))},directives:[M.wG,t.wD,Be],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-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:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),Ze})(),rt=0;class Mt{}const Zt=(0,M.pj)((0,M.Kr)(class{constructor(Ze){this._elementRef=Ze}}),"primary");let Ft=(()=>{class Ze extends Zt{constructor(Y,me,De,et){var $t;super(Y),this._changeDetectorRef=me,this._animationMode=et,this._tabs=new o.n_E,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=s.w0.EMPTY,this._tabLabelSubscription=s.w0.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new o.vpe,this.focusChange=new o.vpe,this.animationDone=new o.vpe,this.selectedTabChange=new o.vpe(!0),this._groupId=rt++,this.animationDuration=De&&De.animationDuration?De.animationDuration:"500ms",this.disablePagination=!(!De||null==De.disablePagination)&&De.disablePagination,this.dynamicHeight=!(!De||null==De.dynamicHeight)&&De.dynamicHeight,this.contentTabIndex=null!==($t=null==De?void 0:De.contentTabIndex)&&void 0!==$t?$t:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(Y){this._dynamicHeight=(0,ie.Ig)(Y)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Y){this._indexToSelect=(0,ie.su)(Y,null)}get animationDuration(){return this._animationDuration}set animationDuration(Y){this._animationDuration=/^\d+$/.test(Y)?Y+"ms":Y}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(Y){this._contentTabIndex=(0,ie.su)(Y,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(Y){const me=this._elementRef.nativeElement;me.classList.remove(`mat-background-${this.backgroundColor}`),Y&&me.classList.add(`mat-background-${Y}`),this._backgroundColor=Y}ngAfterContentChecked(){const Y=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Y){const me=null==this._selectedIndex;if(!me){this.selectedTabChange.emit(this._createChangeEvent(Y));const De=this._tabBodyWrapper.nativeElement;De.style.minHeight=De.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((De,et)=>De.isActive=et===Y),me||(this.selectedIndexChange.emit(Y),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((me,De)=>{me.position=De-Y,null!=this._selectedIndex&&0==me.position&&!me.origin&&(me.origin=Y-this._selectedIndex)}),this._selectedIndex!==Y&&(this._selectedIndex=Y,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const me=this._tabs.toArray();for(let De=0;De{this._tabs.reset(Y.filter(me=>me._closestTabGroup===this||!me._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}focusTab(Y){const me=this._tabHeader;me&&(me.focusIndex=Y)}_focusChanged(Y){this.focusChange.emit(this._createChangeEvent(Y))}_createChangeEvent(Y){const me=new Mt;return me.index=Y,this._tabs&&this._tabs.length&&(me.tab=this._tabs.toArray()[Y]),me}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,O.T)(...this._tabs.map(Y=>Y._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(Y){return Math.min(this._tabs.length-1,Math.max(Y||0,0))}_getTabLabelId(Y){return`mat-tab-label-${this._groupId}-${Y}`}_getTabContentId(Y){return`mat-tab-content-${this._groupId}-${Y}`}_setTabBodyWrapperHeight(Y){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const me=this._tabBodyWrapper.nativeElement;me.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(me.style.height=Y+"px")}_removeTabBodyWrapperHeight(){const Y=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=Y.clientHeight,Y.style.height="",this.animationDone.emit()}_handleClick(Y,me,De){Y.disabled||(this.selectedIndex=me.focusIndex=De)}_getTabIndex(Y,me){return Y.disabled?null:this.selectedIndex===me?0:-1}_tabFocusChanged(Y,me){Y&&"mouse"!==Y&&"touch"!==Y&&(this._tabHeader.focusIndex=me)}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(ke,8),o.Y36(l.Qb,8))},Ze.\u0275dir=o.lG2({type:Ze,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[o.qOj]}),Ze})(),Vt=(()=>{class Ze extends Ft{constructor(Y,me,De,et){super(Y,me,De,et)}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(ke,8),o.Y36(l.Qb,8))},Ze.\u0275cmp=o.Xpm({type:Ze,selectors:[["mat-tab-group"]],contentQueries:function(Y,me,De){if(1&Y&&o.Suo(De,vt,5),2&Y){let et;o.iGM(et=o.CRH())&&(me._allTabs=et)}},viewQuery:function(Y,me){if(1&Y&&(o.Gf(L,5),o.Gf(I,5)),2&Y){let De;o.iGM(De=o.CRH())&&(me._tabBodyWrapper=De.first),o.iGM(De=o.CRH())&&(me._tabHeader=De.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(Y,me){2&Y&&o.ekj("mat-tab-group-dynamic-height",me.dynamicHeight)("mat-tab-group-inverted-header","below"===me.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[o._Bn([{provide:Ge,useExisting:Ze}]),o.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(Y,me){1&Y&&(o.TgZ(0,"mat-tab-header",0,1),o.NdJ("indexFocused",function(et){return me._focusChanged(et)})("selectFocusedIndex",function(et){return me.selectedIndex=et}),o.YNc(2,G,4,14,"div",2),o.qZA(),o.TgZ(3,"div",3,4),o.YNc(5,F,1,9,"mat-tab-body",5),o.qZA()),2&Y&&(o.Q6J("selectedIndex",me.selectedIndex||0)("disableRipple",me.disableRipple)("disablePagination",me.disablePagination),o.xp6(2),o.Q6J("ngForOf",me._tabs),o.xp6(1),o.ekj("_mat-animation-noopable","NoopAnimations"===me._animationMode),o.xp6(2),o.Q6J("ngForOf",me._tabs))},directives:[it,C.sg,$,M.wG,e.kH,C.O5,y.Pl,Le],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),Ze})(),Ii=(()=>{class Ze extends nt{constructor(Y,me,De,et,$t,Nt,Jt){super(Y,et,$t,me,De,Nt,Jt),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(Y){const me=this._elementRef.nativeElement.classList;me.remove(`mat-background-${this.backgroundColor}`),Y&&me.add(`mat-background-${Y}`),this._backgroundColor=Y}get disableRipple(){return this._disableRipple}set disableRipple(Y){this._disableRipple=(0,ie.Ig)(Y)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,w.O)(null),(0,j.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const Y=this._items.toArray();for(let me=0;me{class Ze extends Ii{constructor(Y,me,De,et,$t,Nt,Jt){super(Y,me,De,et,$t,Nt,Jt)}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(o.SBq),o.Y36(W.Is,8),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(ce.rL),o.Y36(_e.t4),o.Y36(l.Qb,8))},Ze.\u0275cmp=o.Xpm({type:Ze,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(Y,me,De){if(1&Y&&o.Suo(De,ai,5),2&Y){let et;o.iGM(et=o.CRH())&&(me._items=et)}},viewQuery:function(Y,me){if(1&Y&&(o.Gf(Be,7),o.Gf(i,7),o.Gf(a,7),o.Gf(p,7),o.Gf(u,5),o.Gf(_,5)),2&Y){let De;o.iGM(De=o.CRH())&&(me._inkBar=De.first),o.iGM(De=o.CRH())&&(me._tabListContainer=De.first),o.iGM(De=o.CRH())&&(me._tabList=De.first),o.iGM(De=o.CRH())&&(me._tabListInner=De.first),o.iGM(De=o.CRH())&&(me._nextPaginator=De.first),o.iGM(De=o.CRH())&&(me._previousPaginator=De.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(Y,me){2&Y&&o.ekj("mat-tab-header-pagination-controls-enabled",me._showPaginationControls)("mat-tab-header-rtl","rtl"==me._getLayoutDirection())("mat-primary","warn"!==me.color&&"accent"!==me.color)("mat-accent","accent"===me.color)("mat-warn","warn"===me.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[o.qOj],attrs:U,ngContentSelectors:de,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Y,me){1&Y&&(o.F$t(),o.TgZ(0,"div",0,1),o.NdJ("click",function(){return me._handlePaginatorClick("before")})("mousedown",function(et){return me._handlePaginatorPress("before",et)})("touchend",function(){return me._stopInterval()}),o._UZ(2,"div",2),o.qZA(),o.TgZ(3,"div",3,4),o.NdJ("keydown",function(et){return me._handleKeydown(et)}),o.TgZ(5,"div",5,6),o.NdJ("cdkObserveContent",function(){return me._onContentChanges()}),o.TgZ(7,"div",7,8),o.Hsn(9),o.qZA(),o._UZ(10,"mat-ink-bar"),o.qZA(),o.qZA(),o.TgZ(11,"div",9,10),o.NdJ("mousedown",function(et){return me._handlePaginatorPress("after",et)})("click",function(){return me._handlePaginatorClick("after")})("touchend",function(){return me._stopInterval()}),o._UZ(13,"div",2),o.qZA()),2&Y&&(o.ekj("mat-tab-header-pagination-disabled",me._disableScrollBefore),o.Q6J("matRippleDisabled",me._disableScrollBefore||me.disableRipple),o.xp6(5),o.ekj("_mat-animation-noopable","NoopAnimations"===me._animationMode),o.xp6(6),o.ekj("mat-tab-header-pagination-disabled",me._disableScrollAfter),o.Q6J("matRippleDisabled",me._disableScrollAfter||me.disableRipple))},directives:[M.wG,t.wD,Be],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-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:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n'],encapsulation:2}),Ze})();const ei=(0,M.sb)((0,M.Kr)((0,M.Id)(class{})));let Pi=(()=>{class Ze extends ei{constructor(Y,me,De,et,$t,Nt){super(),this._tabNavBar=Y,this.elementRef=me,this._focusMonitor=$t,this._isActive=!1,this.rippleConfig=De||{},this.tabIndex=parseInt(et)||0,"NoopAnimations"===Nt&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(Y){(0,ie.Ig)(Y)!==this._isActive&&(this._isActive=Y,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(Ii),o.Y36(o.SBq),o.Y36(M.Y2,8),o.$8M("tabindex"),o.Y36(e.tE),o.Y36(l.Qb,8))},Ze.\u0275dir=o.lG2({type:Ze,inputs:{active:"active"},features:[o.qOj]}),Ze})(),ai=(()=>{class Ze extends Pi{constructor(Y,me,De,et,$t,Nt,Jt,ct){super(Y,me,$t,Nt,Jt,ct),this._tabLinkRipple=new M.IR(this,De,me,et),this._tabLinkRipple.setupTriggerEvents(me.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(o.Y36(jt),o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(_e.t4),o.Y36(M.Y2,8),o.$8M("tabindex"),o.Y36(e.tE),o.Y36(l.Qb,8))},Ze.\u0275dir=o.lG2({type:Ze,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(Y,me){1&Y&&o.NdJ("focus",function(){return me._handleFocus()}),2&Y&&(o.uIk("aria-current",me.active?"page":null)("aria-disabled",me.disabled)("tabIndex",me.tabIndex),o.ekj("mat-tab-disabled",me.disabled)("mat-tab-label-active",me.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[o.qOj]}),Ze})(),hi=(()=>{class Ze{}return Ze.\u0275fac=function(Y){return new(Y||Ze)},Ze.\u0275mod=o.oAB({type:Ze}),Ze.\u0275inj=o.cJS({imports:[[C.ez,M.BQ,y.eL,M.si,t.Q8,e.rt],M.BQ]}),Ze})()},4594:(Ve,Q,m)=>{"use strict";m.d(Q,{Ye:()=>s,g0:()=>A});var e=m(5e3),t=m(508),y=m(9808),C=m(925);const o=["*",[["mat-toolbar-row"]]],M=["*","mat-toolbar-row"],l=(0,t.pj)(class{constructor(O){this._elementRef=O}});let N=(()=>{class O{}return O.\u0275fac=function(P){return new(P||O)},O.\u0275dir=e.lG2({type:O,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),O})(),s=(()=>{class O extends l{constructor(P,w,Z){super(P),this._platform=w,this._document=Z}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return O.\u0275fac=function(P){return new(P||O)(e.Y36(e.SBq),e.Y36(C.t4),e.Y36(y.K0))},O.\u0275cmp=e.Xpm({type:O,selectors:[["mat-toolbar"]],contentQueries:function(P,w,Z){if(1&P&&e.Suo(Z,N,5),2&P){let j;e.iGM(j=e.CRH())&&(w._toolbarRows=j)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(P,w){2&P&&e.ekj("mat-toolbar-multiple-rows",w._toolbarRows.length>0)("mat-toolbar-single-row",0===w._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[e.qOj],ngContentSelectors:M,decls:2,vars:0,template:function(P,w){1&P&&(e.F$t(o),e.Hsn(0),e.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.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}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),O})(),A=(()=>{class O{}return O.\u0275fac=function(P){return new(P||O)},O.\u0275mod=e.oAB({type:O}),O.\u0275inj=e.cJS({imports:[[t.BQ],t.BQ]}),O})()},7238:(Ve,Q,m)=>{"use strict";m.d(Q,{gM:()=>p,AV:()=>L});var e=m(9776),t=m(5664),y=m(9808),C=m(5e3),o=m(508),M=m(5303),l=m(3191),N=m(1159),s=m(5113),D=m(925),A=m(7429),O=m(7579),E=m(2722),P=m(5698),w=m(1777),Z=m(226);const j={tooltipState:(0,w.X$)("state",[(0,w.SB)("initial, void, hidden",(0,w.oB)({opacity:0,transform:"scale(0)"})),(0,w.SB)("visible",(0,w.oB)({transform:"scale(1)"})),(0,w.eR)("* => visible",(0,w.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,w.F4)([(0,w.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,w.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,w.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,w.eR)("* => hidden",(0,w.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,w.oB)({opacity:0})))])},ee="tooltip-panel",_e=(0,D.i$)({passive:!0}),de=new C.OlP("mat-tooltip-scroll-strategy"),ae={provide:de,deps:[e.aV],useFactory:function oe(I){return()=>I.scrollStrategies.reposition({scrollThrottle:20})}},b=new C.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function i(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let a=(()=>{class I{constructor(r,v,G,F,U,ye,Ce,Be,ze,Ie,K,Me){this._overlay=r,this._elementRef=v,this._scrollDispatcher=G,this._viewContainerRef=F,this._ngZone=U,this._platform=ye,this._ariaDescriber=Ce,this._focusMonitor=Be,this._dir=Ie,this._defaultOptions=K,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new O.x,this._handleKeydown=we=>{this._isTooltipVisible()&&we.keyCode===N.hY&&!(0,N.Vb)(we)&&(we.preventDefault(),we.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=ze,this._document=Me,K&&(K.position&&(this.position=K.position),K.touchGestures&&(this.touchGestures=K.touchGestures)),Ie.change.pipe((0,E.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),U.runOutsideAngular(()=>{v.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(r){var v;r!==this._position&&(this._position=r,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(v=this._tooltipInstance)||void 0===v||v.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(r){this._disabled=(0,l.Ig)(r),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(r){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=r?String(r).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(r){this._tooltipClass=r,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,E.R)(this._destroyed)).subscribe(r=>{r?"keyboard"===r&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const r=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),r.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([v,G])=>{r.removeEventListener(v,G,_e)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(r,this.message,"tooltip"),this._focusMonitor.stopMonitoring(r)}show(r=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const v=this._createOverlay();this._detach(),this._portal=this._portal||new A.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=v.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,E.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(r)}hide(r=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(r)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const r=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),v=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(r);return v.positionChanges.pipe((0,E.R)(this._destroyed)).subscribe(G=>{this._updateCurrentPositionClass(G.connectionPair),this._tooltipInstance&&G.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:v,panelClass:`${this._cssClassPrefix}-${ee}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,E.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,E.R)(this._destroyed)).subscribe(()=>{var G;return null===(G=this._tooltipInstance)||void 0===G?void 0:G._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(r){const v=r.getConfig().positionStrategy,G=this._getOrigin(),F=this._getOverlayPosition();v.withPositions([this._addOffset(Object.assign(Object.assign({},G.main),F.main)),this._addOffset(Object.assign(Object.assign({},G.fallback),F.fallback))])}_addOffset(r){return r}_getOrigin(){const r=!this._dir||"ltr"==this._dir.value,v=this.position;let G;"above"==v||"below"==v?G={originX:"center",originY:"above"==v?"top":"bottom"}:"before"==v||"left"==v&&r||"right"==v&&!r?G={originX:"start",originY:"center"}:("after"==v||"right"==v&&r||"left"==v&&!r)&&(G={originX:"end",originY:"center"});const{x:F,y:U}=this._invertPosition(G.originX,G.originY);return{main:G,fallback:{originX:F,originY:U}}}_getOverlayPosition(){const r=!this._dir||"ltr"==this._dir.value,v=this.position;let G;"above"==v?G={overlayX:"center",overlayY:"bottom"}:"below"==v?G={overlayX:"center",overlayY:"top"}:"before"==v||"left"==v&&r||"right"==v&&!r?G={overlayX:"end",overlayY:"center"}:("after"==v||"right"==v&&r||"left"==v&&!r)&&(G={overlayX:"start",overlayY:"center"});const{x:F,y:U}=this._invertPosition(G.overlayX,G.overlayY);return{main:G,fallback:{overlayX:F,overlayY:U}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,P.q)(1),(0,E.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(r){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=r,this._tooltipInstance._markForCheck())}_invertPosition(r,v){return"above"===this.position||"below"===this.position?"top"===v?v="bottom":"bottom"===v&&(v="top"):"end"===r?r="start":"start"===r&&(r="end"),{x:r,y:v}}_updateCurrentPositionClass(r){const{overlayY:v,originX:G,originY:F}=r;let U;if(U="center"===v?this._dir&&"rtl"===this._dir.value?"end"===G?"left":"right":"start"===G?"left":"right":"bottom"===v&&"top"===F?"above":"below",U!==this._currentPosition){const ye=this._overlayRef;if(ye){const Ce=`${this._cssClassPrefix}-${ee}-`;ye.removePanelClass(Ce+this._currentPosition),ye.addPanelClass(Ce+U)}this._currentPosition=U}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const r=[];if(this._platformSupportsMouseEvents())r.push(["mouseleave",()=>this.hide()],["wheel",v=>this._wheelListener(v)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const v=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};r.push(["touchend",v],["touchcancel",v])}this._addListeners(r),this._passiveListeners.push(...r)}_addListeners(r){r.forEach(([v,G])=>{this._elementRef.nativeElement.addEventListener(v,G,_e)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(r){if(this._isTooltipVisible()){const v=this._document.elementFromPoint(r.clientX,r.clientY),G=this._elementRef.nativeElement;v!==G&&!G.contains(v)&&this.hide()}}_disableNativeGesturesIfNecessary(){const r=this.touchGestures;if("off"!==r){const v=this._elementRef.nativeElement,G=v.style;("on"===r||"INPUT"!==v.nodeName&&"TEXTAREA"!==v.nodeName)&&(G.userSelect=G.msUserSelect=G.webkitUserSelect=G.MozUserSelect="none"),("on"===r||!v.draggable)&&(G.webkitUserDrag="none"),G.touchAction="none",G.webkitTapHighlightColor="transparent"}}}return I.\u0275fac=function(r){C.$Z()},I.\u0275dir=C.lG2({type:I,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),I})(),p=(()=>{class I extends a{constructor(r,v,G,F,U,ye,Ce,Be,ze,Ie,K,Me){super(r,v,G,F,U,ye,Ce,Be,ze,Ie,K,Me),this._tooltipComponent=_}}return I.\u0275fac=function(r){return new(r||I)(C.Y36(e.aV),C.Y36(C.SBq),C.Y36(M.mF),C.Y36(C.s_b),C.Y36(C.R0b),C.Y36(D.t4),C.Y36(t.$s),C.Y36(t.tE),C.Y36(de),C.Y36(Z.Is,8),C.Y36(b,8),C.Y36(y.K0))},I.\u0275dir=C.lG2({type:I,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[C.qOj]}),I})(),u=(()=>{class I{constructor(r){this._changeDetectorRef=r,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new O.x}show(r){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},r)}hide(r){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},r)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(r){const v=r.toState;"hidden"===v&&!this.isVisible()&&this._onHide.next(),("visible"===v||"hidden"===v)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return I.\u0275fac=function(r){return new(r||I)(C.Y36(C.sBO))},I.\u0275dir=C.lG2({type:I}),I})(),_=(()=>{class I extends u{constructor(r,v){super(r),this._breakpointObserver=v,this._isHandset=this._breakpointObserver.observe(s.u3.Handset)}}return I.\u0275fac=function(r){return new(r||I)(C.Y36(C.sBO),C.Y36(s.Yg))},I.\u0275cmp=C.Xpm({type:I,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(r,v){2&r&&C.Udp("zoom","visible"===v._visibility?1:null)},features:[C.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(r,v){if(1&r&&(C.TgZ(0,"div",0),C.NdJ("@state.start",function(){return v._animationStart()})("@state.done",function(F){return v._animationDone(F)}),C.ALo(1,"async"),C._uU(2),C.qZA()),2&r){let G;C.ekj("mat-tooltip-handset",null==(G=C.lcZ(1,5,v._isHandset))?null:G.matches),C.Q6J("ngClass",v.tooltipClass)("@state",v._visibility),C.xp6(2),C.Oqu(v.message)}},directives:[y.mk],pipes:[y.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[j.tooltipState]},changeDetection:0}),I})(),L=(()=>{class I{}return I.\u0275fac=function(r){return new(r||I)},I.\u0275mod=C.oAB({type:I}),I.\u0275inj=C.cJS({providers:[ae],imports:[[t.rt,y.ez,e.U8,o.BQ],o.BQ,M.ZD]}),I})()},149:(Ve,Q,m)=>{"use strict";m.d(Q,{GZ:()=>O,gi:()=>w,dp:()=>W,WX:()=>_e,uo:()=>D,fQ:()=>A,Ar:()=>P,eu:()=>Z});var e=m(8258),t=m(5e3),y=m(508),C=m(3191),o=m(449),M=m(1135),l=m(6451),N=m(4004);const s=(0,y.sb)((0,y.Id)(e.Hs));let D=(()=>{class ce extends s{constructor(de,oe,ae){super(de,oe),this.tabIndex=Number(ae)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return ce.\u0275fac=function(de){return new(de||ce)(t.Y36(t.SBq),t.Y36(e._0),t.$8M("tabindex"))},ce.\u0275dir=t.lG2({type:ce,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[t._Bn([{provide:e.Hs,useExisting:ce}]),t.qOj]}),ce})(),A=(()=>{class ce extends e.rO{}return ce.\u0275fac=function(){let re;return function(oe){return(re||(re=t.n5z(ce)))(oe||ce)}}(),ce.\u0275dir=t.lG2({type:ce,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[t._Bn([{provide:e.rO,useExisting:ce}]),t.qOj]}),ce})(),O=(()=>{class ce extends e.Xx{constructor(de,oe,ae,b){super(de,oe,ae),this._disabled=!1,this.tabIndex=Number(b)||0}get disabled(){return this._disabled}set disabled(de){this._disabled=(0,C.Ig)(de)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(de){this._tabIndex=null!=de?de:0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return ce.\u0275fac=function(de){return new(de||ce)(t.Y36(t.SBq),t.Y36(e._0),t.Y36(t.ZZ4),t.$8M("tabindex"))},ce.\u0275dir=t.lG2({type:ce,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[t._Bn([{provide:e.Xx,useExisting:ce},{provide:e.Hs,useExisting:ce},{provide:e.HI,useExisting:ce}]),t.qOj]}),ce})(),P=(()=>{class ce{constructor(de,oe){this.viewContainer=de,this._node=oe}}return ce.\u0275fac=function(de){return new(de||ce)(t.Y36(t.s_b),t.Y36(e.HI,8))},ce.\u0275dir=t.lG2({type:ce,selectors:[["","matTreeNodeOutlet",""]],features:[t._Bn([{provide:e.cu,useExisting:ce}])]}),ce})(),w=(()=>{class ce extends e._0{}return ce.\u0275fac=function(){let re;return function(oe){return(re||(re=t.n5z(ce)))(oe||ce)}}(),ce.\u0275cmp=t.Xpm({type:ce,selectors:[["mat-tree"]],viewQuery:function(de,oe){if(1&de&&t.Gf(P,7),2&de){let ae;t.iGM(ae=t.CRH())&&(oe._nodeOutlet=ae.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[t._Bn([{provide:e._0,useExisting:ce}]),t.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(de,oe){1&de&&t.GkF(0,0)},directives:[P],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),ce})(),Z=(()=>{class ce extends e.Ud{}return ce.\u0275fac=function(){let re;return function(oe){return(re||(re=t.n5z(ce)))(oe||ce)}}(),ce.\u0275dir=t.lG2({type:ce,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[t._Bn([{provide:e.Ud,useExisting:ce}]),t.qOj]}),ce})(),W=(()=>{class ce{}return ce.\u0275fac=function(de){return new(de||ce)},ce.\u0275mod=t.oAB({type:ce}),ce.\u0275inj=t.cJS({imports:[[e.nZ,y.BQ],y.BQ]}),ce})();class _e extends o.o2{constructor(){super(...arguments),this._data=new M.X([])}get data(){return this._data.value}set data(re){this._data.next(re)}connect(re){return(0,l.T)(re.viewChange,this._data).pipe((0,N.U)(()=>this.data))}disconnect(){}}},6360:(Ve,Q,m)=>{"use strict";m.d(Q,{Qb:()=>ki,PW:()=>Us});var e=m(5e3),t=m(2313),y=m(1777);function C(){return"undefined"!=typeof window&&void 0!==window.document}function o(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function M(xt){switch(xt.length){case 0:return new y.ZN;case 1:return xt[0];default:return new y.ZE(xt)}}function l(xt,te,ue,je,wt={},kt={}){const Qt=[],Xt=[];let pi=-1,Ti=null;if(je.forEach(Zi=>{const tn=Zi.offset,Mn=tn==pi,On=Mn&&Ti||{};Object.keys(Zi).forEach(tt=>{let Et=tt,It=Zi[tt];if("offset"!==tt)switch(Et=te.normalizePropertyName(Et,Qt),It){case y.k1:It=wt[tt];break;case y.l3:It=kt[tt];break;default:It=te.normalizeStyleValue(tt,Et,It,Qt)}On[Et]=It}),Mn||Xt.push(On),Ti=On,pi=tn}),Qt.length){const Zi="\n - ";throw new Error(`Unable to animate due to the following errors:${Zi}${Qt.join(Zi)}`)}return Xt}function N(xt,te,ue,je){switch(te){case"start":xt.onStart(()=>je(ue&&s(ue,"start",xt)));break;case"done":xt.onDone(()=>je(ue&&s(ue,"done",xt)));break;case"destroy":xt.onDestroy(()=>je(ue&&s(ue,"destroy",xt)))}}function s(xt,te,ue){const je=ue.totalTime,kt=D(xt.element,xt.triggerName,xt.fromState,xt.toState,te||xt.phaseName,null==je?xt.totalTime:je,!!ue.disabled),Qt=xt._data;return null!=Qt&&(kt._data=Qt),kt}function D(xt,te,ue,je,wt="",kt=0,Qt){return{element:xt,triggerName:te,fromState:ue,toState:je,phaseName:wt,totalTime:kt,disabled:!!Qt}}function A(xt,te,ue){let je;return xt instanceof Map?(je=xt.get(te),je||xt.set(te,je=ue)):(je=xt[te],je||(je=xt[te]=ue)),je}function O(xt){const te=xt.indexOf(":");return[xt.substring(1,te),xt.substr(te+1)]}let E=(xt,te)=>!1,P=(xt,te)=>!1,w=(xt,te,ue)=>[];const Z=o();(Z||"undefined"!=typeof Element)&&(E=C()?(xt,te)=>{for(;te&&te!==document.documentElement;){if(te===xt)return!0;te=te.parentNode||te.host}return!1}:(xt,te)=>xt.contains(te),P=(()=>{if(Z||Element.prototype.matches)return(xt,te)=>xt.matches(te);{const xt=Element.prototype,te=xt.matchesSelector||xt.mozMatchesSelector||xt.msMatchesSelector||xt.oMatchesSelector||xt.webkitMatchesSelector;return te?(ue,je)=>te.apply(ue,[je]):P}})(),w=(xt,te,ue)=>{let je=[];if(ue){const wt=xt.querySelectorAll(te);for(let kt=0;kt{const je=ue.replace(/([a-z])([A-Z])/g,"$1-$2");te[je]=xt[ue]}),te}let ae=(()=>{class xt{validateStyleProperty(ue){return ee(ue)}matchesElement(ue,je){return ce(ue,je)}containsElement(ue,je){return re(ue,je)}query(ue,je,wt){return de(ue,je,wt)}computeStyle(ue,je,wt){return wt||""}animate(ue,je,wt,kt,Qt,Xt=[],pi){return new y.ZN(wt,kt)}}return xt.\u0275fac=function(ue){return new(ue||xt)},xt.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac}),xt})(),b=(()=>{class xt{}return xt.NOOP=new ae,xt})();const u="ng-enter",_="ng-leave",x="ng-trigger",r=".ng-trigger",v="ng-animating",G=".ng-animating";function F(xt){if("number"==typeof xt)return xt;const te=xt.match(/^(-?[\.\d]+)(m?s)/);return!te||te.length<2?0:U(parseFloat(te[1]),te[2])}function U(xt,te){return"s"===te?1e3*xt:xt}function ye(xt,te,ue){return xt.hasOwnProperty("duration")?xt:function Ce(xt,te,ue){let wt,kt=0,Qt="";if("string"==typeof xt){const Xt=xt.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Xt)return te.push(`The provided timing value "${xt}" is invalid.`),{duration:0,delay:0,easing:""};wt=U(parseFloat(Xt[1]),Xt[2]);const pi=Xt[3];null!=pi&&(kt=U(parseFloat(pi),Xt[4]));const Ti=Xt[5];Ti&&(Qt=Ti)}else wt=xt;if(!ue){let Xt=!1,pi=te.length;wt<0&&(te.push("Duration values below 0 are not allowed for this animation step."),Xt=!0),kt<0&&(te.push("Delay values below 0 are not allowed for this animation step."),Xt=!0),Xt&&te.splice(pi,0,`The provided timing value "${xt}" is invalid.`)}return{duration:wt,delay:kt,easing:Qt}}(xt,te,ue)}function Be(xt,te={}){return Object.keys(xt).forEach(ue=>{te[ue]=xt[ue]}),te}function Ie(xt,te,ue={}){if(te)for(let je in xt)ue[je]=xt[je];else Be(xt,ue);return ue}function K(xt,te,ue){return ue?te+":"+ue+";":""}function Me(xt){let te="";for(let ue=0;ue{const wt=q(je);ue&&!ue.hasOwnProperty(je)&&(ue[je]=xt.style[wt]),xt.style[wt]=te[je]}),o()&&Me(xt))}function z(xt,te){xt.style&&(Object.keys(te).forEach(ue=>{const je=q(ue);xt.style[je]=""}),o()&&Me(xt))}function Ge(xt){return Array.isArray(xt)?1==xt.length?xt[0]:(0,y.vP)(xt):xt}const Re=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ne(xt){let te=[];if("string"==typeof xt){let ue;for(;ue=Re.exec(xt);)te.push(ue[1]);Re.lastIndex=0}return te}function he(xt,te,ue){const je=xt.toString(),wt=je.replace(Re,(kt,Qt)=>{let Xt=te[Qt];return te.hasOwnProperty(Qt)||(ue.push(`Please provide a value for the animation param ${Qt}`),Xt=""),Xt.toString()});return wt==je?xt:wt}function Le(xt){const te=[];let ue=xt.next();for(;!ue.done;)te.push(ue.value),ue=xt.next();return te}const ke=/-+([a-z0-9])/g;function q(xt){return xt.replace(ke,(...te)=>te[1].toUpperCase())}function $(xt){return xt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function le(xt,te){return 0===xt||0===te}function xe(xt,te,ue){const je=Object.keys(ue);if(je.length&&te.length){let kt=te[0],Qt=[];if(je.forEach(Xt=>{kt.hasOwnProperty(Xt)||Qt.push(Xt),kt[Xt]=ue[Xt]}),Qt.length)for(var wt=1;wtfunction it(xt,te,ue){if(":"==xt[0]){const pi=function rt(xt,te){switch(xt){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(ue,je)=>parseFloat(je)>parseFloat(ue);case":decrement":return(ue,je)=>parseFloat(je) *"}}(xt,ue);if("function"==typeof pi)return void te.push(pi);xt=pi}const je=xt.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==je||je.length<4)return ue.push(`The provided transition expression "${xt}" is not supported`),te;const wt=je[1],kt=je[2],Qt=je[3];te.push(Ft(wt,Qt));"<"==kt[0]&&!("*"==wt&&"*"==Qt)&&te.push(Ft(Qt,wt))}(je,ue,te)):ue.push(xt),ue}const Mt=new Set(["true","1"]),Zt=new Set(["false","0"]);function Ft(xt,te){const ue=Mt.has(xt)||Zt.has(xt),je=Mt.has(te)||Zt.has(te);return(wt,kt)=>{let Qt="*"==xt||xt==wt,Xt="*"==te||te==kt;return!Qt&&ue&&"boolean"==typeof wt&&(Qt=wt?Mt.has(xt):Zt.has(xt)),!Xt&&je&&"boolean"==typeof kt&&(Xt=kt?Mt.has(te):Zt.has(te)),Qt&&Xt}}const Ii=new RegExp("s*:selfs*,?","g");function jt(xt,te,ue){return new Pi(xt).build(te,ue)}class Pi{constructor(te){this._driver=te}build(te,ue){const je=new Ze(ue);return this._resetContextStyleTimingState(je),Ue(this,Ge(te),je)}_resetContextStyleTimingState(te){te.currentQuerySelector="",te.collectedStyles={},te.collectedStyles[""]={},te.currentTime=0}visitTrigger(te,ue){let je=ue.queryCount=0,wt=ue.depCount=0;const kt=[],Qt=[];return"@"==te.name.charAt(0)&&ue.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),te.definitions.forEach(Xt=>{if(this._resetContextStyleTimingState(ue),0==Xt.type){const pi=Xt,Ti=pi.name;Ti.toString().split(/\s*,\s*/).forEach(Zi=>{pi.name=Zi,kt.push(this.visitState(pi,ue))}),pi.name=Ti}else if(1==Xt.type){const pi=this.visitTransition(Xt,ue);je+=pi.queryCount,wt+=pi.depCount,Qt.push(pi)}else ue.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:te.name,states:kt,transitions:Qt,queryCount:je,depCount:wt,options:null}}visitState(te,ue){const je=this.visitStyle(te.styles,ue),wt=te.options&&te.options.params||null;if(je.containsDynamicStyles){const kt=new Set,Qt=wt||{};if(je.styles.forEach(Xt=>{if(Y(Xt)){const pi=Xt;Object.keys(pi).forEach(Ti=>{Ne(pi[Ti]).forEach(Zi=>{Qt.hasOwnProperty(Zi)||kt.add(Zi)})})}}),kt.size){const Xt=Le(kt.values());ue.errors.push(`state("${te.name}", ...) must define default values for all the following style substitutions: ${Xt.join(", ")}`)}}return{type:0,name:te.name,style:je,options:wt?{params:wt}:null}}visitTransition(te,ue){ue.queryCount=0,ue.depCount=0;const je=Ue(this,Ge(te.animation),ue);return{type:1,matchers:ft(te.expr,ue.errors),animation:je,queryCount:ue.queryCount,depCount:ue.depCount,options:De(te.options)}}visitSequence(te,ue){return{type:2,steps:te.steps.map(je=>Ue(this,je,ue)),options:De(te.options)}}visitGroup(te,ue){const je=ue.currentTime;let wt=0;const kt=te.steps.map(Qt=>{ue.currentTime=je;const Xt=Ue(this,Qt,ue);return wt=Math.max(wt,ue.currentTime),Xt});return ue.currentTime=wt,{type:3,steps:kt,options:De(te.options)}}visitAnimate(te,ue){const je=function me(xt,te){let ue=null;if(xt.hasOwnProperty("duration"))ue=xt;else if("number"==typeof xt)return et(ye(xt,te).duration,0,"");const je=xt;if(je.split(/\s+/).some(kt=>"{"==kt.charAt(0)&&"{"==kt.charAt(1))){const kt=et(0,0,"");return kt.dynamic=!0,kt.strValue=je,kt}return ue=ue||ye(je,te),et(ue.duration,ue.delay,ue.easing)}(te.timings,ue.errors);ue.currentAnimateTimings=je;let wt,kt=te.styles?te.styles:(0,y.oB)({});if(5==kt.type)wt=this.visitKeyframes(kt,ue);else{let Qt=te.styles,Xt=!1;if(!Qt){Xt=!0;const Ti={};je.easing&&(Ti.easing=je.easing),Qt=(0,y.oB)(Ti)}ue.currentTime+=je.duration+je.delay;const pi=this.visitStyle(Qt,ue);pi.isEmptyStep=Xt,wt=pi}return ue.currentAnimateTimings=null,{type:4,timings:je,style:wt,options:null}}visitStyle(te,ue){const je=this._makeStyleAst(te,ue);return this._validateStyleAst(je,ue),je}_makeStyleAst(te,ue){const je=[];Array.isArray(te.styles)?te.styles.forEach(Qt=>{"string"==typeof Qt?Qt==y.l3?je.push(Qt):ue.errors.push(`The provided style string value ${Qt} is not allowed.`):je.push(Qt)}):je.push(te.styles);let wt=!1,kt=null;return je.forEach(Qt=>{if(Y(Qt)){const Xt=Qt,pi=Xt.easing;if(pi&&(kt=pi,delete Xt.easing),!wt)for(let Ti in Xt)if(Xt[Ti].toString().indexOf("{{")>=0){wt=!0;break}}}),{type:6,styles:je,easing:kt,offset:te.offset,containsDynamicStyles:wt,options:null}}_validateStyleAst(te,ue){const je=ue.currentAnimateTimings;let wt=ue.currentTime,kt=ue.currentTime;je&&kt>0&&(kt-=je.duration+je.delay),te.styles.forEach(Qt=>{"string"!=typeof Qt&&Object.keys(Qt).forEach(Xt=>{if(!this._driver.validateStyleProperty(Xt))return void ue.errors.push(`The provided animation property "${Xt}" is not a supported CSS property for animations`);const pi=ue.collectedStyles[ue.currentQuerySelector],Ti=pi[Xt];let Zi=!0;Ti&&(kt!=wt&&kt>=Ti.startTime&&wt<=Ti.endTime&&(ue.errors.push(`The CSS property "${Xt}" that exists between the times of "${Ti.startTime}ms" and "${Ti.endTime}ms" is also being animated in a parallel animation between the times of "${kt}ms" and "${wt}ms"`),Zi=!1),kt=Ti.startTime),Zi&&(pi[Xt]={startTime:kt,endTime:wt}),ue.options&&function vt(xt,te,ue){const je=te.params||{},wt=Ne(xt);wt.length&&wt.forEach(kt=>{je.hasOwnProperty(kt)||ue.push(`Unable to resolve the local animation param ${kt} in the given list of values`)})}(Qt[Xt],ue.options,ue.errors)})})}visitKeyframes(te,ue){const je={type:5,styles:[],options:null};if(!ue.currentAnimateTimings)return ue.errors.push("keyframes() must be placed inside of a call to animate()"),je;let kt=0;const Qt=[];let Xt=!1,pi=!1,Ti=0;const Zi=te.steps.map(zt=>{const ri=this._makeStyleAst(zt,ue);let vi=null!=ri.offset?ri.offset:function Ee(xt){if("string"==typeof xt)return null;let te=null;if(Array.isArray(xt))xt.forEach(ue=>{if(Y(ue)&&ue.hasOwnProperty("offset")){const je=ue;te=parseFloat(je.offset),delete je.offset}});else if(Y(xt)&&xt.hasOwnProperty("offset")){const ue=xt;te=parseFloat(ue.offset),delete ue.offset}return te}(ri.styles),Mi=0;return null!=vi&&(kt++,Mi=ri.offset=vi),pi=pi||Mi<0||Mi>1,Xt=Xt||Mi0&&kt{const vi=Mn>0?ri==On?1:Mn*ri:Qt[ri],Mi=vi*It;ue.currentTime=tt+Et.delay+Mi,Et.duration=Mi,this._validateStyleAst(zt,ue),zt.offset=vi,je.styles.push(zt)}),je}visitReference(te,ue){return{type:8,animation:Ue(this,Ge(te.animation),ue),options:De(te.options)}}visitAnimateChild(te,ue){return ue.depCount++,{type:9,options:De(te.options)}}visitAnimateRef(te,ue){return{type:10,animation:this.visitReference(te.animation,ue),options:De(te.options)}}visitQuery(te,ue){const je=ue.currentQuerySelector,wt=te.options||{};ue.queryCount++,ue.currentQuery=te;const[kt,Qt]=function ai(xt){const te=!!xt.split(/\s*,\s*/).find(ue=>":self"==ue);return te&&(xt=xt.replace(Ii,"")),xt=xt.replace(/@\*/g,r).replace(/@\w+/g,ue=>r+"-"+ue.substr(1)).replace(/:animating/g,G),[xt,te]}(te.selector);ue.currentQuerySelector=je.length?je+" "+kt:kt,A(ue.collectedStyles,ue.currentQuerySelector,{});const Xt=Ue(this,Ge(te.animation),ue);return ue.currentQuery=null,ue.currentQuerySelector=je,{type:11,selector:kt,limit:wt.limit||0,optional:!!wt.optional,includeSelf:Qt,animation:Xt,originalSelector:te.selector,options:De(te.options)}}visitStagger(te,ue){ue.currentQuery||ue.errors.push("stagger() can only be used inside of query()");const je="full"===te.timings?{duration:0,delay:0,easing:"full"}:ye(te.timings,ue.errors,!0);return{type:12,animation:Ue(this,Ge(te.animation),ue),timings:je,options:null}}}class Ze{constructor(te){this.errors=te,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Y(xt){return!Array.isArray(xt)&&"object"==typeof xt}function De(xt){return xt?(xt=Be(xt)).params&&(xt.params=function hi(xt){return xt?Be(xt):null}(xt.params)):xt={},xt}function et(xt,te,ue){return{duration:xt,delay:te,easing:ue}}function $t(xt,te,ue,je,wt,kt,Qt=null,Xt=!1){return{type:1,element:xt,keyframes:te,preStyleProps:ue,postStyleProps:je,duration:wt,delay:kt,totalTime:wt+kt,easing:Qt,subTimeline:Xt}}class Nt{constructor(){this._map=new Map}consume(te){let ue=this._map.get(te);return ue?this._map.delete(te):ue=[],ue}append(te,ue){let je=this._map.get(te);je||this._map.set(te,je=[]),je.push(...ue)}has(te){return this._map.has(te)}clear(){this._map.clear()}}const Pe=new RegExp(":enter","g"),at=new RegExp(":leave","g");function st(xt,te,ue,je,wt,kt={},Qt={},Xt,pi,Ti=[]){return(new At).buildKeyframes(xt,te,ue,je,wt,kt,Qt,Xt,pi,Ti)}class At{buildKeyframes(te,ue,je,wt,kt,Qt,Xt,pi,Ti,Zi=[]){Ti=Ti||new Nt;const tn=new Bt(te,ue,Ti,wt,kt,Zi,[]);tn.options=pi,tn.currentTimeline.setStyles([Qt],null,tn.errors,pi),Ue(this,je,tn);const Mn=tn.timelines.filter(On=>On.containsAnimation());if(Mn.length&&Object.keys(Xt).length){const On=Mn[Mn.length-1];On.allowOnlyTimelineStyles()||On.setStyles([Xt],null,tn.errors,pi)}return Mn.length?Mn.map(On=>On.buildKeyframes()):[$t(ue,[],[],[],0,0,"",!1)]}visitTrigger(te,ue){}visitState(te,ue){}visitTransition(te,ue){}visitAnimateChild(te,ue){const je=ue.subInstructions.consume(ue.element);if(je){const wt=ue.createSubContext(te.options),kt=ue.currentTimeline.currentTime,Qt=this._visitSubInstructions(je,wt,wt.options);kt!=Qt&&ue.transformIntoNewTimeline(Qt)}ue.previousNode=te}visitAnimateRef(te,ue){const je=ue.createSubContext(te.options);je.transformIntoNewTimeline(),this.visitReference(te.animation,je),ue.transformIntoNewTimeline(je.currentTimeline.currentTime),ue.previousNode=te}_visitSubInstructions(te,ue,je){let kt=ue.currentTimeline.currentTime;const Qt=null!=je.duration?F(je.duration):null,Xt=null!=je.delay?F(je.delay):null;return 0!==Qt&&te.forEach(pi=>{const Ti=ue.appendInstructionToTimeline(pi,Qt,Xt);kt=Math.max(kt,Ti.duration+Ti.delay)}),kt}visitReference(te,ue){ue.updateOptions(te.options,!0),Ue(this,te.animation,ue),ue.previousNode=te}visitSequence(te,ue){const je=ue.subContextCount;let wt=ue;const kt=te.options;if(kt&&(kt.params||kt.delay)&&(wt=ue.createSubContext(kt),wt.transformIntoNewTimeline(),null!=kt.delay)){6==wt.previousNode.type&&(wt.currentTimeline.snapshotCurrentStyles(),wt.previousNode=li);const Qt=F(kt.delay);wt.delayNextStep(Qt)}te.steps.length&&(te.steps.forEach(Qt=>Ue(this,Qt,wt)),wt.currentTimeline.applyStylesToKeyframe(),wt.subContextCount>je&&wt.transformIntoNewTimeline()),ue.previousNode=te}visitGroup(te,ue){const je=[];let wt=ue.currentTimeline.currentTime;const kt=te.options&&te.options.delay?F(te.options.delay):0;te.steps.forEach(Qt=>{const Xt=ue.createSubContext(te.options);kt&&Xt.delayNextStep(kt),Ue(this,Qt,Xt),wt=Math.max(wt,Xt.currentTimeline.currentTime),je.push(Xt.currentTimeline)}),je.forEach(Qt=>ue.currentTimeline.mergeTimelineCollectedStyles(Qt)),ue.transformIntoNewTimeline(wt),ue.previousNode=te}_visitTiming(te,ue){if(te.dynamic){const je=te.strValue;return ye(ue.params?he(je,ue.params,ue.errors):je,ue.errors)}return{duration:te.duration,delay:te.delay,easing:te.easing}}visitAnimate(te,ue){const je=ue.currentAnimateTimings=this._visitTiming(te.timings,ue),wt=ue.currentTimeline;je.delay&&(ue.incrementTime(je.delay),wt.snapshotCurrentStyles());const kt=te.style;5==kt.type?this.visitKeyframes(kt,ue):(ue.incrementTime(je.duration),this.visitStyle(kt,ue),wt.applyStylesToKeyframe()),ue.currentAnimateTimings=null,ue.previousNode=te}visitStyle(te,ue){const je=ue.currentTimeline,wt=ue.currentAnimateTimings;!wt&&je.getCurrentStyleProperties().length&&je.forwardFrame();const kt=wt&&wt.easing||te.easing;te.isEmptyStep?je.applyEmptyStep(kt):je.setStyles(te.styles,kt,ue.errors,ue.options),ue.previousNode=te}visitKeyframes(te,ue){const je=ue.currentAnimateTimings,wt=ue.currentTimeline.duration,kt=je.duration,Xt=ue.createSubContext().currentTimeline;Xt.easing=je.easing,te.styles.forEach(pi=>{Xt.forwardTime((pi.offset||0)*kt),Xt.setStyles(pi.styles,pi.easing,ue.errors,ue.options),Xt.applyStylesToKeyframe()}),ue.currentTimeline.mergeTimelineCollectedStyles(Xt),ue.transformIntoNewTimeline(wt+kt),ue.previousNode=te}visitQuery(te,ue){const je=ue.currentTimeline.currentTime,wt=te.options||{},kt=wt.delay?F(wt.delay):0;kt&&(6===ue.previousNode.type||0==je&&ue.currentTimeline.getCurrentStyleProperties().length)&&(ue.currentTimeline.snapshotCurrentStyles(),ue.previousNode=li);let Qt=je;const Xt=ue.invokeQuery(te.selector,te.originalSelector,te.limit,te.includeSelf,!!wt.optional,ue.errors);ue.currentQueryTotal=Xt.length;let pi=null;Xt.forEach((Ti,Zi)=>{ue.currentQueryIndex=Zi;const tn=ue.createSubContext(te.options,Ti);kt&&tn.delayNextStep(kt),Ti===ue.element&&(pi=tn.currentTimeline),Ue(this,te.animation,tn),tn.currentTimeline.applyStylesToKeyframe(),Qt=Math.max(Qt,tn.currentTimeline.currentTime)}),ue.currentQueryIndex=0,ue.currentQueryTotal=0,ue.transformIntoNewTimeline(Qt),pi&&(ue.currentTimeline.mergeTimelineCollectedStyles(pi),ue.currentTimeline.snapshotCurrentStyles()),ue.previousNode=te}visitStagger(te,ue){const je=ue.parentContext,wt=ue.currentTimeline,kt=te.timings,Qt=Math.abs(kt.duration),Xt=Qt*(ue.currentQueryTotal-1);let pi=Qt*ue.currentQueryIndex;switch(kt.duration<0?"reverse":kt.easing){case"reverse":pi=Xt-pi;break;case"full":pi=je.currentStaggerTime}const Zi=ue.currentTimeline;pi&&Zi.delayNextStep(pi);const tn=Zi.currentTime;Ue(this,te.animation,ue),ue.previousNode=te,je.currentStaggerTime=wt.currentTime-tn+(wt.startTime-je.currentTimeline.startTime)}}const li={};class Bt{constructor(te,ue,je,wt,kt,Qt,Xt,pi){this._driver=te,this.element=ue,this.subInstructions=je,this._enterClassName=wt,this._leaveClassName=kt,this.errors=Qt,this.timelines=Xt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=li,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=pi||new Rt(this._driver,ue,0),Xt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(te,ue){if(!te)return;const je=te;let wt=this.options;null!=je.duration&&(wt.duration=F(je.duration)),null!=je.delay&&(wt.delay=F(je.delay));const kt=je.params;if(kt){let Qt=wt.params;Qt||(Qt=this.options.params={}),Object.keys(kt).forEach(Xt=>{(!ue||!Qt.hasOwnProperty(Xt))&&(Qt[Xt]=he(kt[Xt],Qt,this.errors))})}}_copyOptions(){const te={};if(this.options){const ue=this.options.params;if(ue){const je=te.params={};Object.keys(ue).forEach(wt=>{je[wt]=ue[wt]})}}return te}createSubContext(te=null,ue,je){const wt=ue||this.element,kt=new Bt(this._driver,wt,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(wt,je||0));return kt.previousNode=this.previousNode,kt.currentAnimateTimings=this.currentAnimateTimings,kt.options=this._copyOptions(),kt.updateOptions(te),kt.currentQueryIndex=this.currentQueryIndex,kt.currentQueryTotal=this.currentQueryTotal,kt.parentContext=this,this.subContextCount++,kt}transformIntoNewTimeline(te){return this.previousNode=li,this.currentTimeline=this.currentTimeline.fork(this.element,te),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(te,ue,je){const wt={duration:null!=ue?ue:te.duration,delay:this.currentTimeline.currentTime+(null!=je?je:0)+te.delay,easing:""},kt=new Li(this._driver,te.element,te.keyframes,te.preStyleProps,te.postStyleProps,wt,te.stretchStartingKeyframe);return this.timelines.push(kt),wt}incrementTime(te){this.currentTimeline.forwardTime(this.currentTimeline.duration+te)}delayNextStep(te){te>0&&this.currentTimeline.delayNextStep(te)}invokeQuery(te,ue,je,wt,kt,Qt){let Xt=[];if(wt&&Xt.push(this.element),te.length>0){te=(te=te.replace(Pe,"."+this._enterClassName)).replace(at,"."+this._leaveClassName);let Ti=this._driver.query(this.element,te,1!=je);0!==je&&(Ti=je<0?Ti.slice(Ti.length+je,Ti.length):Ti.slice(0,je)),Xt.push(...Ti)}return!kt&&0==Xt.length&&Qt.push(`\`query("${ue}")\` returned zero elements. (Use \`query("${ue}", { optional: true })\` if you wish to allow this.)`),Xt}}class Rt{constructor(te,ue,je,wt){this._driver=te,this.element=ue,this.startTime=je,this._elementTimelineStylesLookup=wt,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(ue),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(ue,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(te){const ue=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||ue?(this.forwardTime(this.currentTime+te),ue&&this.snapshotCurrentStyles()):this.startTime+=te}fork(te,ue){return this.applyStylesToKeyframe(),new Rt(this._driver,te,ue||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(te){this.applyStylesToKeyframe(),this.duration=te,this._loadKeyframe()}_updateStyle(te,ue){this._localTimelineStyles[te]=ue,this._globalTimelineStyles[te]=ue,this._styleSummary[te]={time:this.currentTime,value:ue}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(te){te&&(this._previousKeyframe.easing=te),Object.keys(this._globalTimelineStyles).forEach(ue=>{this._backFill[ue]=this._globalTimelineStyles[ue]||y.l3,this._currentKeyframe[ue]=y.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(te,ue,je,wt){ue&&(this._previousKeyframe.easing=ue);const kt=wt&&wt.params||{},Qt=function ci(xt,te){const ue={};let je;return xt.forEach(wt=>{"*"===wt?(je=je||Object.keys(te),je.forEach(kt=>{ue[kt]=y.l3})):Ie(wt,!1,ue)}),ue}(te,this._globalTimelineStyles);Object.keys(Qt).forEach(Xt=>{const pi=he(Qt[Xt],kt,je);this._pendingStyles[Xt]=pi,this._localTimelineStyles.hasOwnProperty(Xt)||(this._backFill[Xt]=this._globalTimelineStyles.hasOwnProperty(Xt)?this._globalTimelineStyles[Xt]:y.l3),this._updateStyle(Xt,pi)})}applyStylesToKeyframe(){const te=this._pendingStyles,ue=Object.keys(te);0!=ue.length&&(this._pendingStyles={},ue.forEach(je=>{this._currentKeyframe[je]=te[je]}),Object.keys(this._localTimelineStyles).forEach(je=>{this._currentKeyframe.hasOwnProperty(je)||(this._currentKeyframe[je]=this._localTimelineStyles[je])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(te=>{const ue=this._localTimelineStyles[te];this._pendingStyles[te]=ue,this._updateStyle(te,ue)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const te=[];for(let ue in this._currentKeyframe)te.push(ue);return te}mergeTimelineCollectedStyles(te){Object.keys(te._styleSummary).forEach(ue=>{const je=this._styleSummary[ue],wt=te._styleSummary[ue];(!je||wt.time>je.time)&&this._updateStyle(ue,wt.value)})}buildKeyframes(){this.applyStylesToKeyframe();const te=new Set,ue=new Set,je=1===this._keyframes.size&&0===this.duration;let wt=[];this._keyframes.forEach((Xt,pi)=>{const Ti=Ie(Xt,!0);Object.keys(Ti).forEach(Zi=>{const tn=Ti[Zi];tn==y.k1?te.add(Zi):tn==y.l3&&ue.add(Zi)}),je||(Ti.offset=pi/this.duration),wt.push(Ti)});const kt=te.size?Le(te.values()):[],Qt=ue.size?Le(ue.values()):[];if(je){const Xt=wt[0],pi=Be(Xt);Xt.offset=0,pi.offset=1,wt=[Xt,pi]}return $t(this.element,wt,kt,Qt,this.duration,this.startTime,this.easing,!1)}}class Li extends Rt{constructor(te,ue,je,wt,kt,Qt,Xt=!1){super(te,ue,Qt.delay),this.keyframes=je,this.preStyleProps=wt,this.postStyleProps=kt,this._stretchStartingKeyframe=Xt,this.timings={duration:Qt.duration,delay:Qt.delay,easing:Qt.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let te=this.keyframes,{delay:ue,duration:je,easing:wt}=this.timings;if(this._stretchStartingKeyframe&&ue){const kt=[],Qt=je+ue,Xt=ue/Qt,pi=Ie(te[0],!1);pi.offset=0,kt.push(pi);const Ti=Ie(te[0],!1);Ti.offset=si(Xt),kt.push(Ti);const Zi=te.length-1;for(let tn=1;tn<=Zi;tn++){let Mn=Ie(te[tn],!1);Mn.offset=si((ue+Mn.offset*je)/Qt),kt.push(Mn)}je=Qt,ue=0,wt="",te=kt}return $t(this.element,te,this.preStyleProps,this.postStyleProps,je,ue,wt,!0)}}function si(xt,te=3){const ue=Math.pow(10,te-1);return Math.round(xt*ue)/ue}class Ui{}class Xi extends Ui{normalizePropertyName(te,ue){return q(te)}normalizeStyleValue(te,ue,je,wt){let kt="";const Qt=je.toString().trim();if(Ke[ue]&&0!==je&&"0"!==je)if("number"==typeof je)kt="px";else{const Xt=je.match(/^[+-]?[\d\.]+([a-z]*)$/);Xt&&0==Xt[1].length&&wt.push(`Please provide a CSS unit value for ${te}:${je}`)}return Qt+kt}}const Ke=(()=>function _t(xt){const te={};return xt.forEach(ue=>te[ue]=!0),te}("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".split(",")))();function ve(xt,te,ue,je,wt,kt,Qt,Xt,pi,Ti,Zi,tn,Mn){return{type:0,element:xt,triggerName:te,isRemovalTransition:wt,fromState:ue,fromStyles:kt,toState:je,toStyles:Qt,timelines:Xt,queriedElements:pi,preStyleProps:Ti,postStyleProps:Zi,totalTime:tn,errors:Mn}}const qe={};class yt{constructor(te,ue,je){this._triggerName=te,this.ast=ue,this._stateStyles=je}match(te,ue,je,wt){return function fe(xt,te,ue,je,wt){return xt.some(kt=>kt(te,ue,je,wt))}(this.ast.matchers,te,ue,je,wt)}buildStyles(te,ue,je){const wt=this._stateStyles["*"],kt=this._stateStyles[te],Qt=wt?wt.buildStyles(ue,je):{};return kt?kt.buildStyles(ue,je):Qt}build(te,ue,je,wt,kt,Qt,Xt,pi,Ti,Zi){const tn=[],Mn=this.ast.options&&this.ast.options.params||qe,tt=this.buildStyles(je,Xt&&Xt.params||qe,tn),Et=pi&&pi.params||qe,It=this.buildStyles(wt,Et,tn),zt=new Set,ri=new Map,vi=new Map,Mi="void"===wt,Ai={params:Object.assign(Object.assign({},Mn),Et)},Ki=Zi?[]:st(te,ue,this.ast.animation,kt,Qt,tt,It,Ai,Ti,tn);let un=0;if(Ki.forEach(En=>{un=Math.max(En.duration+En.delay,un)}),tn.length)return ve(ue,this._triggerName,je,wt,Mi,tt,It,[],[],ri,vi,un,tn);Ki.forEach(En=>{const zn=En.element,Rr=A(ri,zn,{});En.preStyleProps.forEach(wr=>Rr[wr]=!0);const Fr=A(vi,zn,{});En.postStyleProps.forEach(wr=>Fr[wr]=!0),zn!==ue&&zt.add(zn)});const gn=Le(zt.values());return ve(ue,this._triggerName,je,wt,Mi,tt,It,Ki,gn,ri,vi,un)}}class Je{constructor(te,ue,je){this.styles=te,this.defaultParams=ue,this.normalizer=je}buildStyles(te,ue){const je={},wt=Be(this.defaultParams);return Object.keys(te).forEach(kt=>{const Qt=te[kt];null!=Qt&&(wt[kt]=Qt)}),this.styles.styles.forEach(kt=>{if("string"!=typeof kt){const Qt=kt;Object.keys(Qt).forEach(Xt=>{let pi=Qt[Xt];pi.length>1&&(pi=he(pi,wt,ue));const Ti=this.normalizer.normalizePropertyName(Xt,ue);pi=this.normalizer.normalizeStyleValue(Xt,Ti,pi,ue),je[Ti]=pi})}}),je}}class Pt{constructor(te,ue,je){this.name=te,this.ast=ue,this._normalizer=je,this.transitionFactories=[],this.states={},ue.states.forEach(wt=>{this.states[wt.name]=new Je(wt.style,wt.options&&wt.options.params||{},je)}),Ni(this.states,"true","1"),Ni(this.states,"false","0"),ue.transitions.forEach(wt=>{this.transitionFactories.push(new yt(te,wt,this.states))}),this.fallbackTransition=function yi(xt,te,ue){return new yt(xt,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Qt,Xt)=>!0],options:null,queryCount:0,depCount:0},te)}(te,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(te,ue,je,wt){return this.transitionFactories.find(Qt=>Qt.match(te,ue,je,wt))||null}matchStyles(te,ue,je){return this.fallbackTransition.buildStyles(te,ue,je)}}function Ni(xt,te,ue){xt.hasOwnProperty(te)?xt.hasOwnProperty(ue)||(xt[ue]=xt[te]):xt.hasOwnProperty(ue)&&(xt[te]=xt[ue])}const Si=new Nt;class qi{constructor(te,ue,je){this.bodyNode=te,this._driver=ue,this._normalizer=je,this._animations={},this._playersById={},this.players=[]}register(te,ue){const je=[],wt=jt(this._driver,ue,je);if(je.length)throw new Error(`Unable to build the animation due to the following errors: ${je.join("\n")}`);this._animations[te]=wt}_buildPlayer(te,ue,je){const wt=te.element,kt=l(0,this._normalizer,0,te.keyframes,ue,je);return this._driver.animate(wt,kt,te.duration,te.delay,te.easing,[],!0)}create(te,ue,je={}){const wt=[],kt=this._animations[te];let Qt;const Xt=new Map;if(kt?(Qt=st(this._driver,ue,kt,u,_,{},{},je,Si,wt),Qt.forEach(Zi=>{const tn=A(Xt,Zi.element,{});Zi.postStyleProps.forEach(Mn=>tn[Mn]=null)})):(wt.push("The requested animation doesn't exist or has already been destroyed"),Qt=[]),wt.length)throw new Error(`Unable to create the animation due to the following errors: ${wt.join("\n")}`);Xt.forEach((Zi,tn)=>{Object.keys(Zi).forEach(Mn=>{Zi[Mn]=this._driver.computeStyle(tn,Mn,y.l3)})});const Ti=M(Qt.map(Zi=>{const tn=Xt.get(Zi.element);return this._buildPlayer(Zi,{},tn)}));return this._playersById[te]=Ti,Ti.onDestroy(()=>this.destroy(te)),this.players.push(Ti),Ti}destroy(te){const ue=this._getPlayer(te);ue.destroy(),delete this._playersById[te];const je=this.players.indexOf(ue);je>=0&&this.players.splice(je,1)}_getPlayer(te){const ue=this._playersById[te];if(!ue)throw new Error(`Unable to find the timeline player referenced by ${te}`);return ue}listen(te,ue,je,wt){const kt=D(ue,"","","");return N(this._getPlayer(te),je,kt,wt),()=>{}}command(te,ue,je,wt){if("register"==je)return void this.register(te,wt[0]);if("create"==je)return void this.create(te,ue,wt[0]||{});const kt=this._getPlayer(te);switch(je){case"play":kt.play();break;case"pause":kt.pause();break;case"reset":kt.reset();break;case"restart":kt.restart();break;case"finish":kt.finish();break;case"init":kt.init();break;case"setPosition":kt.setPosition(parseFloat(wt[0]));break;case"destroy":this.destroy(te)}}}const ot="ng-animate-queued",gt="ng-animate-disabled",Lt=".ng-animate-disabled",Yi=[],$i={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Cn={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ln="__ng_removed";class _n{constructor(te,ue=""){this.namespaceId=ue;const je=te&&te.hasOwnProperty("value");if(this.value=function La(xt){return null!=xt?xt:null}(je?te.value:te),je){const kt=Be(te);delete kt.value,this.options=kt}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(te){const ue=te.params;if(ue){const je=this.options.params;Object.keys(ue).forEach(wt=>{null==je[wt]&&(je[wt]=ue[wt])})}}}const Pn="void",dr=new _n(Pn);class wi{constructor(te,ue,je){this.id=te,this.hostElement=ue,this._engine=je,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+te,ur(ue,this._hostClassName)}listen(te,ue,je,wt){if(!this._triggers.hasOwnProperty(ue))throw new Error(`Unable to listen on the animation trigger event "${je}" because the animation trigger "${ue}" doesn't exist!`);if(null==je||0==je.length)throw new Error(`Unable to listen on the animation trigger "${ue}" because the provided event is undefined!`);if(!function Or(xt){return"start"==xt||"done"==xt}(je))throw new Error(`The provided animation trigger event "${je}" for the animation trigger "${ue}" is not supported!`);const kt=A(this._elementListeners,te,[]),Qt={name:ue,phase:je,callback:wt};kt.push(Qt);const Xt=A(this._engine.statesByElement,te,{});return Xt.hasOwnProperty(ue)||(ur(te,x),ur(te,x+"-"+ue),Xt[ue]=dr),()=>{this._engine.afterFlush(()=>{const pi=kt.indexOf(Qt);pi>=0&&kt.splice(pi,1),this._triggers[ue]||delete Xt[ue]})}}register(te,ue){return!this._triggers[te]&&(this._triggers[te]=ue,!0)}_getTrigger(te){const ue=this._triggers[te];if(!ue)throw new Error(`The provided animation trigger "${te}" has not been registered!`);return ue}trigger(te,ue,je,wt=!0){const kt=this._getTrigger(ue),Qt=new dn(this.id,ue,te);let Xt=this._engine.statesByElement.get(te);Xt||(ur(te,x),ur(te,x+"-"+ue),this._engine.statesByElement.set(te,Xt={}));let pi=Xt[ue];const Ti=new _n(je,this.id);if(!(je&&je.hasOwnProperty("value"))&&pi&&Ti.absorbOptions(pi.options),Xt[ue]=Ti,pi||(pi=dr),Ti.value!==Pn&&pi.value===Ti.value){if(!function Ya(xt,te){const ue=Object.keys(xt),je=Object.keys(te);if(ue.length!=je.length)return!1;for(let wt=0;wt{z(te,It),we(te,zt)})}return}const Mn=A(this._engine.playersByElement,te,[]);Mn.forEach(Et=>{Et.namespaceId==this.id&&Et.triggerName==ue&&Et.queued&&Et.destroy()});let On=kt.matchTransition(pi.value,Ti.value,te,Ti.params),tt=!1;if(!On){if(!wt)return;On=kt.fallbackTransition,tt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:te,triggerName:ue,transition:On,fromState:pi,toState:Ti,player:Qt,isFallbackTransition:tt}),tt||(ur(te,ot),Qt.onStart(()=>{pa(te,ot)})),Qt.onDone(()=>{let Et=this.players.indexOf(Qt);Et>=0&&this.players.splice(Et,1);const It=this._engine.playersByElement.get(te);if(It){let zt=It.indexOf(Qt);zt>=0&&It.splice(zt,1)}}),this.players.push(Qt),Mn.push(Qt),Qt}deregister(te){delete this._triggers[te],this._engine.statesByElement.forEach((ue,je)=>{delete ue[te]}),this._elementListeners.forEach((ue,je)=>{this._elementListeners.set(je,ue.filter(wt=>wt.name!=te))})}clearElementCache(te){this._engine.statesByElement.delete(te),this._elementListeners.delete(te);const ue=this._engine.playersByElement.get(te);ue&&(ue.forEach(je=>je.destroy()),this._engine.playersByElement.delete(te))}_signalRemovalForInnerTriggers(te,ue){const je=this._engine.driver.query(te,r,!0);je.forEach(wt=>{if(wt[Ln])return;const kt=this._engine.fetchNamespacesByElement(wt);kt.size?kt.forEach(Qt=>Qt.triggerLeaveAnimation(wt,ue,!1,!0)):this.clearElementCache(wt)}),this._engine.afterFlushAnimationsDone(()=>je.forEach(wt=>this.clearElementCache(wt)))}triggerLeaveAnimation(te,ue,je,wt){const kt=this._engine.statesByElement.get(te);if(kt){const Qt=[];if(Object.keys(kt).forEach(Xt=>{if(this._triggers[Xt]){const pi=this.trigger(te,Xt,Pn,wt);pi&&Qt.push(pi)}}),Qt.length)return this._engine.markElementAsRemoved(this.id,te,!0,ue),je&&M(Qt).onDone(()=>this._engine.processLeaveNode(te)),!0}return!1}prepareLeaveAnimationListeners(te){const ue=this._elementListeners.get(te),je=this._engine.statesByElement.get(te);if(ue&&je){const wt=new Set;ue.forEach(kt=>{const Qt=kt.name;if(wt.has(Qt))return;wt.add(Qt);const pi=this._triggers[Qt].fallbackTransition,Ti=je[Qt]||dr,Zi=new _n(Pn),tn=new dn(this.id,Qt,te);this._engine.totalQueuedPlayers++,this._queue.push({element:te,triggerName:Qt,transition:pi,fromState:Ti,toState:Zi,player:tn,isFallbackTransition:!0})})}}removeNode(te,ue){const je=this._engine;if(te.childElementCount&&this._signalRemovalForInnerTriggers(te,ue),this.triggerLeaveAnimation(te,ue,!0))return;let wt=!1;if(je.totalAnimations){const kt=je.players.length?je.playersByQueriedElement.get(te):[];if(kt&&kt.length)wt=!0;else{let Qt=te;for(;Qt=Qt.parentNode;)if(je.statesByElement.get(Qt)){wt=!0;break}}}if(this.prepareLeaveAnimationListeners(te),wt)je.markElementAsRemoved(this.id,te,!1,ue);else{const kt=te[Ln];(!kt||kt===$i)&&(je.afterFlush(()=>this.clearElementCache(te)),je.destroyInnerAnimations(te),je._onRemovalComplete(te,ue))}}insertNode(te,ue){ur(te,this._hostClassName)}drainQueuedTransitions(te){const ue=[];return this._queue.forEach(je=>{const wt=je.player;if(wt.destroyed)return;const kt=je.element,Qt=this._elementListeners.get(kt);Qt&&Qt.forEach(Xt=>{if(Xt.name==je.triggerName){const pi=D(kt,je.triggerName,je.fromState.value,je.toState.value);pi._data=te,N(je.player,Xt.phase,pi,Xt.callback)}}),wt.markedForDestroy?this._engine.afterFlush(()=>{wt.destroy()}):ue.push(je)}),this._queue=[],ue.sort((je,wt)=>{const kt=je.transition.ast.depCount,Qt=wt.transition.ast.depCount;return 0==kt||0==Qt?kt-Qt:this._engine.driver.containsElement(je.element,wt.element)?1:-1})}destroy(te){this.players.forEach(ue=>ue.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,te)}elementContainsData(te){let ue=!1;return this._elementListeners.has(te)&&(ue=!0),ue=!!this._queue.find(je=>je.element===te)||ue,ue}}class Fi{constructor(te,ue,je){this.bodyNode=te,this.driver=ue,this._normalizer=je,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(wt,kt)=>{}}_onRemovalComplete(te,ue){this.onRemovalComplete(te,ue)}get queuedPlayers(){const te=[];return this._namespaceList.forEach(ue=>{ue.players.forEach(je=>{je.queued&&te.push(je)})}),te}createNamespace(te,ue){const je=new wi(te,ue,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,ue)?this._balanceNamespaceList(je,ue):(this.newHostElements.set(ue,je),this.collectEnterElement(ue)),this._namespaceLookup[te]=je}_balanceNamespaceList(te,ue){const je=this._namespaceList.length-1;if(je>=0){let wt=!1;for(let kt=je;kt>=0;kt--)if(this.driver.containsElement(this._namespaceList[kt].hostElement,ue)){this._namespaceList.splice(kt+1,0,te),wt=!0;break}wt||this._namespaceList.splice(0,0,te)}else this._namespaceList.push(te);return this.namespacesByHostElement.set(ue,te),te}register(te,ue){let je=this._namespaceLookup[te];return je||(je=this.createNamespace(te,ue)),je}registerTrigger(te,ue,je){let wt=this._namespaceLookup[te];wt&&wt.register(ue,je)&&this.totalAnimations++}destroy(te,ue){if(!te)return;const je=this._fetchNamespace(te);this.afterFlush(()=>{this.namespacesByHostElement.delete(je.hostElement),delete this._namespaceLookup[te];const wt=this._namespaceList.indexOf(je);wt>=0&&this._namespaceList.splice(wt,1)}),this.afterFlushAnimationsDone(()=>je.destroy(ue))}_fetchNamespace(te){return this._namespaceLookup[te]}fetchNamespacesByElement(te){const ue=new Set,je=this.statesByElement.get(te);if(je){const wt=Object.keys(je);for(let kt=0;kt=0&&this.collectedLeaveElements.splice(Qt,1)}if(te){const Qt=this._fetchNamespace(te);Qt&&Qt.insertNode(ue,je)}wt&&this.collectEnterElement(ue)}collectEnterElement(te){this.collectedEnterElements.push(te)}markElementAsDisabled(te,ue){ue?this.disabledNodes.has(te)||(this.disabledNodes.add(te),ur(te,gt)):this.disabledNodes.has(te)&&(this.disabledNodes.delete(te),pa(te,gt))}removeNode(te,ue,je,wt){if(Gn(ue)){const kt=te?this._fetchNamespace(te):null;if(kt?kt.removeNode(ue,wt):this.markElementAsRemoved(te,ue,!1,wt),je){const Qt=this.namespacesByHostElement.get(ue);Qt&&Qt.id!==te&&Qt.removeNode(ue,wt)}}else this._onRemovalComplete(ue,wt)}markElementAsRemoved(te,ue,je,wt){this.collectedLeaveElements.push(ue),ue[Ln]={namespaceId:te,setForRemoval:wt,hasAnimation:je,removedBeforeQueried:!1}}listen(te,ue,je,wt,kt){return Gn(ue)?this._fetchNamespace(te).listen(ue,je,wt,kt):()=>{}}_buildInstruction(te,ue,je,wt,kt){return te.transition.build(this.driver,te.element,te.fromState.value,te.toState.value,je,wt,te.fromState.options,te.toState.options,ue,kt)}destroyInnerAnimations(te){let ue=this.driver.query(te,r,!0);ue.forEach(je=>this.destroyActiveAnimationsForElement(je)),0!=this.playersByQueriedElement.size&&(ue=this.driver.query(te,G,!0),ue.forEach(je=>this.finishActiveQueriedAnimationOnElement(je)))}destroyActiveAnimationsForElement(te){const ue=this.playersByElement.get(te);ue&&ue.forEach(je=>{je.queued?je.markedForDestroy=!0:je.destroy()})}finishActiveQueriedAnimationOnElement(te){const ue=this.playersByQueriedElement.get(te);ue&&ue.forEach(je=>je.finish())}whenRenderingDone(){return new Promise(te=>{if(this.players.length)return M(this.players).onDone(()=>te());te()})}processLeaveNode(te){const ue=te[Ln];if(ue&&ue.setForRemoval){if(te[Ln]=$i,ue.namespaceId){this.destroyInnerAnimations(te);const je=this._fetchNamespace(ue.namespaceId);je&&je.clearElementCache(te)}this._onRemovalComplete(te,ue.setForRemoval)}this.driver.matchesElement(te,Lt)&&this.markElementAsDisabled(te,!1),this.driver.query(te,Lt,!0).forEach(je=>{this.markElementAsDisabled(je,!1)})}flush(te=-1){let ue=[];if(this.newHostElements.size&&(this.newHostElements.forEach((je,wt)=>this._balanceNamespaceList(je,wt)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let je=0;jeje()),this._flushFns=[],this._whenQuietFns.length){const je=this._whenQuietFns;this._whenQuietFns=[],ue.length?M(ue).onDone(()=>{je.forEach(wt=>wt())}):je.forEach(wt=>wt())}}reportError(te){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${te.join("\n")}`)}_flushAnimations(te,ue){const je=new Nt,wt=[],kt=new Map,Qt=[],Xt=new Map,pi=new Map,Ti=new Map,Zi=new Set;this.disabledNodes.forEach(Hi=>{Zi.add(Hi);const on=this.driver.query(Hi,".ng-animate-queued",!0);for(let nn=0;nn{const nn=u+Et++;tt.set(on,nn),Hi.forEach(kn=>ur(kn,nn))});const It=[],zt=new Set,ri=new Set;for(let Hi=0;Hizt.add(kn)):ri.add(on))}const vi=new Map,Mi=Fa(Mn,Array.from(zt));Mi.forEach((Hi,on)=>{const nn=_+Et++;vi.set(on,nn),Hi.forEach(kn=>ur(kn,nn))}),te.push(()=>{On.forEach((Hi,on)=>{const nn=tt.get(on);Hi.forEach(kn=>pa(kn,nn))}),Mi.forEach((Hi,on)=>{const nn=vi.get(on);Hi.forEach(kn=>pa(kn,nn))}),It.forEach(Hi=>{this.processLeaveNode(Hi)})});const Ai=[],Ki=[];for(let Hi=this._namespaceList.length-1;Hi>=0;Hi--)this._namespaceList[Hi].drainQueuedTransitions(ue).forEach(nn=>{const kn=nn.player,jn=nn.element;if(Ai.push(kn),this.collectedEnterElements.length){const Ia=jn[Ln];if(Ia&&Ia.setForMove)return void kn.destroy()}const da=!tn||!this.driver.containsElement(tn,jn),Xr=vi.get(jn),$r=tt.get(jn),Yn=this._buildInstruction(nn,je,$r,Xr,da);if(Yn.errors&&Yn.errors.length)Ki.push(Yn);else{if(da)return kn.onStart(()=>z(jn,Yn.fromStyles)),kn.onDestroy(()=>we(jn,Yn.toStyles)),void wt.push(kn);if(nn.isFallbackTransition)return kn.onStart(()=>z(jn,Yn.fromStyles)),kn.onDestroy(()=>we(jn,Yn.toStyles)),void wt.push(kn);Yn.timelines.forEach(Ia=>Ia.stretchStartingKeyframe=!0),je.append(jn,Yn.timelines),Qt.push({instruction:Yn,player:kn,element:jn}),Yn.queriedElements.forEach(Ia=>A(Xt,Ia,[]).push(kn)),Yn.preStyleProps.forEach((Ia,ks)=>{const Zs=Object.keys(Ia);if(Zs.length){let va=pi.get(ks);va||pi.set(ks,va=new Set),Zs.forEach(us=>va.add(us))}}),Yn.postStyleProps.forEach((Ia,ks)=>{const Zs=Object.keys(Ia);let va=Ti.get(ks);va||Ti.set(ks,va=new Set),Zs.forEach(us=>va.add(us))})}});if(Ki.length){const Hi=[];Ki.forEach(on=>{Hi.push(`@${on.triggerName} has failed due to:\n`),on.errors.forEach(nn=>Hi.push(`- ${nn}\n`))}),Ai.forEach(on=>on.destroy()),this.reportError(Hi)}const un=new Map,gn=new Map;Qt.forEach(Hi=>{const on=Hi.element;je.has(on)&&(gn.set(on,on),this._beforeAnimationBuild(Hi.player.namespaceId,Hi.instruction,un))}),wt.forEach(Hi=>{const on=Hi.element;this._getPreviousPlayers(on,!1,Hi.namespaceId,Hi.triggerName,null).forEach(kn=>{A(un,on,[]).push(kn),kn.destroy()})});const En=It.filter(Hi=>Zr(Hi,pi,Ti)),zn=new Map;Ma(zn,this.driver,ri,Ti,y.l3).forEach(Hi=>{Zr(Hi,pi,Ti)&&En.push(Hi)});const Fr=new Map;On.forEach((Hi,on)=>{Ma(Fr,this.driver,new Set(Hi),pi,y.k1)}),En.forEach(Hi=>{const on=zn.get(Hi),nn=Fr.get(Hi);zn.set(Hi,Object.assign(Object.assign({},on),nn))});const wr=[],Vn=[],mr={};Qt.forEach(Hi=>{const{element:on,player:nn,instruction:kn}=Hi;if(je.has(on)){if(Zi.has(on))return nn.onDestroy(()=>we(on,kn.toStyles)),nn.disabled=!0,nn.overrideTotalTime(kn.totalTime),void wt.push(nn);let jn=mr;if(gn.size>1){let Xr=on;const $r=[];for(;Xr=Xr.parentNode;){const Yn=gn.get(Xr);if(Yn){jn=Yn;break}$r.push(Xr)}$r.forEach(Yn=>gn.set(Yn,jn))}const da=this._buildAnimation(nn.namespaceId,kn,un,kt,Fr,zn);if(nn.setRealPlayer(da),jn===mr)wr.push(nn);else{const Xr=this.playersByElement.get(jn);Xr&&Xr.length&&(nn.parentPlayer=M(Xr)),wt.push(nn)}}else z(on,kn.fromStyles),nn.onDestroy(()=>we(on,kn.toStyles)),Vn.push(nn),Zi.has(on)&&wt.push(nn)}),Vn.forEach(Hi=>{const on=kt.get(Hi.element);if(on&&on.length){const nn=M(on);Hi.setRealPlayer(nn)}}),wt.forEach(Hi=>{Hi.parentPlayer?Hi.syncPlayerEvents(Hi.parentPlayer):Hi.destroy()});for(let Hi=0;Hi!da.destroyed);jn.length?ma(this,on,jn):this.processLeaveNode(on)}return It.length=0,wr.forEach(Hi=>{this.players.push(Hi),Hi.onDone(()=>{Hi.destroy();const on=this.players.indexOf(Hi);this.players.splice(on,1)}),Hi.play()}),wr}elementContainsData(te,ue){let je=!1;const wt=ue[Ln];return wt&&wt.setForRemoval&&(je=!0),this.playersByElement.has(ue)&&(je=!0),this.playersByQueriedElement.has(ue)&&(je=!0),this.statesByElement.has(ue)&&(je=!0),this._fetchNamespace(te).elementContainsData(ue)||je}afterFlush(te){this._flushFns.push(te)}afterFlushAnimationsDone(te){this._whenQuietFns.push(te)}_getPreviousPlayers(te,ue,je,wt,kt){let Qt=[];if(ue){const Xt=this.playersByQueriedElement.get(te);Xt&&(Qt=Xt)}else{const Xt=this.playersByElement.get(te);if(Xt){const pi=!kt||kt==Pn;Xt.forEach(Ti=>{Ti.queued||!pi&&Ti.triggerName!=wt||Qt.push(Ti)})}}return(je||wt)&&(Qt=Qt.filter(Xt=>!(je&&je!=Xt.namespaceId||wt&&wt!=Xt.triggerName))),Qt}_beforeAnimationBuild(te,ue,je){const kt=ue.element,Qt=ue.isRemovalTransition?void 0:te,Xt=ue.isRemovalTransition?void 0:ue.triggerName;for(const pi of ue.timelines){const Ti=pi.element,Zi=Ti!==kt,tn=A(je,Ti,[]);this._getPreviousPlayers(Ti,Zi,Qt,Xt,ue.toState).forEach(On=>{const tt=On.getRealPlayer();tt.beforeDestroy&&tt.beforeDestroy(),On.destroy(),tn.push(On)})}z(kt,ue.fromStyles)}_buildAnimation(te,ue,je,wt,kt,Qt){const Xt=ue.triggerName,pi=ue.element,Ti=[],Zi=new Set,tn=new Set,Mn=ue.timelines.map(tt=>{const Et=tt.element;Zi.add(Et);const It=Et[Ln];if(It&&It.removedBeforeQueried)return new y.ZN(tt.duration,tt.delay);const zt=Et!==pi,ri=function Ir(xt){const te=[];return Ga(xt,te),te}((je.get(Et)||Yi).map(un=>un.getRealPlayer())).filter(un=>!!un.element&&un.element===Et),vi=kt.get(Et),Mi=Qt.get(Et),Ai=l(0,this._normalizer,0,tt.keyframes,vi,Mi),Ki=this._buildPlayer(tt,Ai,ri);if(tt.subTimeline&&wt&&tn.add(Et),zt){const un=new dn(te,Xt,Et);un.setRealPlayer(Ki),Ti.push(un)}return Ki});Ti.forEach(tt=>{A(this.playersByQueriedElement,tt.element,[]).push(tt),tt.onDone(()=>function Lr(xt,te,ue){let je;if(xt instanceof Map){if(je=xt.get(te),je){if(je.length){const wt=je.indexOf(ue);je.splice(wt,1)}0==je.length&&xt.delete(te)}}else if(je=xt[te],je){if(je.length){const wt=je.indexOf(ue);je.splice(wt,1)}0==je.length&&delete xt[te]}return je}(this.playersByQueriedElement,tt.element,tt))}),Zi.forEach(tt=>ur(tt,v));const On=M(Mn);return On.onDestroy(()=>{Zi.forEach(tt=>pa(tt,v)),we(pi,ue.toStyles)}),tn.forEach(tt=>{A(wt,tt,[]).push(On)}),On}_buildPlayer(te,ue,je){return ue.length>0?this.driver.animate(te.element,ue,te.duration,te.delay,te.easing,je):new y.ZN(te.duration,te.delay)}}class dn{constructor(te,ue,je){this.namespaceId=te,this.triggerName=ue,this.element=je,this._player=new y.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(te){this._containsRealPlayer||(this._player=te,Object.keys(this._queuedCallbacks).forEach(ue=>{this._queuedCallbacks[ue].forEach(je=>N(te,ue,void 0,je))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(te.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(te){this.totalTime=te}syncPlayerEvents(te){const ue=this._player;ue.triggerCallback&&te.onStart(()=>ue.triggerCallback("start")),te.onDone(()=>this.finish()),te.onDestroy(()=>this.destroy())}_queueEvent(te,ue){A(this._queuedCallbacks,te,[]).push(ue)}onDone(te){this.queued&&this._queueEvent("done",te),this._player.onDone(te)}onStart(te){this.queued&&this._queueEvent("start",te),this._player.onStart(te)}onDestroy(te){this.queued&&this._queueEvent("destroy",te),this._player.onDestroy(te)}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(te){this.queued||this._player.setPosition(te)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(te){const ue=this._player;ue.triggerCallback&&ue.triggerCallback(te)}}function Gn(xt){return xt&&1===xt.nodeType}function Ra(xt,te){const ue=xt.style.display;return xt.style.display=null!=te?te:"none",ue}function Ma(xt,te,ue,je,wt){const kt=[];ue.forEach(pi=>kt.push(Ra(pi)));const Qt=[];je.forEach((pi,Ti)=>{const Zi={};pi.forEach(tn=>{const Mn=Zi[tn]=te.computeStyle(Ti,tn,wt);(!Mn||0==Mn.length)&&(Ti[Ln]=Cn,Qt.push(Ti))}),xt.set(Ti,Zi)});let Xt=0;return ue.forEach(pi=>Ra(pi,kt[Xt++])),Qt}function Fa(xt,te){const ue=new Map;if(xt.forEach(Xt=>ue.set(Xt,[])),0==te.length)return ue;const wt=new Set(te),kt=new Map;function Qt(Xt){if(!Xt)return 1;let pi=kt.get(Xt);if(pi)return pi;const Ti=Xt.parentNode;return pi=ue.has(Ti)?Ti:wt.has(Ti)?1:Qt(Ti),kt.set(Xt,pi),pi}return te.forEach(Xt=>{const pi=Qt(Xt);1!==pi&&ue.get(pi).push(Xt)}),ue}const xr="$$classes";function ur(xt,te){if(xt.classList)xt.classList.add(te);else{let ue=xt[xr];ue||(ue=xt[xr]={}),ue[te]=!0}}function pa(xt,te){if(xt.classList)xt.classList.remove(te);else{let ue=xt[xr];ue&&delete ue[te]}}function ma(xt,te,ue){M(ue).onDone(()=>xt.processLeaveNode(te))}function Ga(xt,te){for(let ue=0;uewt.add(kt)):te.set(xt,je),ue.delete(xt),!0}class kr{constructor(te,ue,je){this.bodyNode=te,this._driver=ue,this._normalizer=je,this._triggerCache={},this.onRemovalComplete=(wt,kt)=>{},this._transitionEngine=new Fi(te,ue,je),this._timelineEngine=new qi(te,ue,je),this._transitionEngine.onRemovalComplete=(wt,kt)=>this.onRemovalComplete(wt,kt)}registerTrigger(te,ue,je,wt,kt){const Qt=te+"-"+wt;let Xt=this._triggerCache[Qt];if(!Xt){const pi=[],Ti=jt(this._driver,kt,pi);if(pi.length)throw new Error(`The animation trigger "${wt}" has failed to build due to the following errors:\n - ${pi.join("\n - ")}`);Xt=function St(xt,te,ue){return new Pt(xt,te,ue)}(wt,Ti,this._normalizer),this._triggerCache[Qt]=Xt}this._transitionEngine.registerTrigger(ue,wt,Xt)}register(te,ue){this._transitionEngine.register(te,ue)}destroy(te,ue){this._transitionEngine.destroy(te,ue)}onInsert(te,ue,je,wt){this._transitionEngine.insertNode(te,ue,je,wt)}onRemove(te,ue,je,wt){this._transitionEngine.removeNode(te,ue,wt||!1,je)}disableAnimations(te,ue){this._transitionEngine.markElementAsDisabled(te,ue)}process(te,ue,je,wt){if("@"==je.charAt(0)){const[kt,Qt]=O(je);this._timelineEngine.command(kt,ue,Qt,wt)}else this._transitionEngine.trigger(te,ue,je,wt)}listen(te,ue,je,wt,kt){if("@"==je.charAt(0)){const[Qt,Xt]=O(je);return this._timelineEngine.listen(Qt,ue,Xt,kt)}return this._transitionEngine.listen(te,ue,je,wt,kt)}flush(te=-1){this._transitionEngine.flush(te)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Kn(xt,te){let ue=null,je=null;return Array.isArray(te)&&te.length?(ue=Qn(te[0]),te.length>1&&(je=Qn(te[te.length-1]))):te&&(ue=Qn(te)),ue||je?new vn(xt,ue,je):null}let vn=(()=>{class xt{constructor(ue,je,wt){this._element=ue,this._startStyles=je,this._endStyles=wt,this._state=0;let kt=xt.initialStylesByElement.get(ue);kt||xt.initialStylesByElement.set(ue,kt={}),this._initialStyles=kt}start(){this._state<1&&(this._startStyles&&we(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(we(this._element,this._initialStyles),this._endStyles&&(we(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(xt.initialStylesByElement.delete(this._element),this._startStyles&&(z(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(z(this._element,this._endStyles),this._endStyles=null),we(this._element,this._initialStyles),this._state=3)}}return xt.initialStylesByElement=new WeakMap,xt})();function Qn(xt){let te=null;const ue=Object.keys(xt);for(let je=0;jethis._handleCallback(pi)}apply(){(function $n(xt,te){const ue=ha(xt,"").trim();let je=0;ue.length&&(je=function pr(xt,te){let ue=0;for(let je=0;je=this._delay&&je>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Aa(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function wa(xt,te){const je=ha(xt,"").split(","),wt=ca(je,te);wt>=0&&(je.splice(wt,1),Vr(xt,"",je.join(",")))}(this._element,this._name))}}function ga(xt,te,ue){Vr(xt,"PlayState",ue,Nr(xt,te))}function Nr(xt,te){const ue=ha(xt,"");return ue.indexOf(",")>0?ca(ue.split(","),te):ca([ue],te)}function ca(xt,te){for(let ue=0;ue=0)return ue;return-1}function Aa(xt,te,ue){ue?xt.removeEventListener(Pr,te):xt.addEventListener(Pr,te)}function Vr(xt,te,ue,je){const wt=Wa+te;if(null!=je){const kt=xt.style[wt];if(kt.length){const Qt=kt.split(",");Qt[je]=ue,ue=Qt.join(",")}}xt.style[wt]=ue}function ha(xt,te){return xt.style[Wa+te]||""}class Oa{constructor(te,ue,je,wt,kt,Qt,Xt,pi){this.element=te,this.keyframes=ue,this.animationName=je,this._duration=wt,this._delay=kt,this._finalStyles=Xt,this._specialStyles=pi,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=Qt||"linear",this.totalTime=wt+kt,this._buildStyler()}onStart(te){this._onStartFns.push(te)}onDone(te){this._onDoneFns.push(te)}onDestroy(te){this._onDestroyFns.push(te)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(te=>te()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(te=>te()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(te=>te()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(te){this._styler.setPosition(te)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Jr(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(te){const ue="start"==te?this._onStartFns:this._onDoneFns;ue.forEach(je=>je()),ue.length=0}beforeDestroy(){this.init();const te={};if(this.hasStarted()){const ue=this._state>=3;Object.keys(this._finalStyles).forEach(je=>{"offset"!=je&&(te[je]=ue?this._finalStyles[je]:lt(this.element,je))})}this.currentSnapshot=te}}class ra extends y.ZN{constructor(te,ue){super(),this.element=te,this._startingStyles={},this.__initialized=!1,this._styles=oe(ue)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(te=>{this._startingStyles[te]=this.element.style[te]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(te=>this.element.style.setProperty(te,this._styles[te])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(te=>{const ue=this._startingStyles[te];ue?this.element.style.setProperty(te,ue):this.element.style.removeProperty(te)}),this._startingStyles=null,super.destroy())}}class Zn{constructor(){this._count=0}validateStyleProperty(te){return ee(te)}matchesElement(te,ue){return ce(te,ue)}containsElement(te,ue){return re(te,ue)}query(te,ue,je){return de(te,ue,je)}computeStyle(te,ue,je){return window.getComputedStyle(te)[ue]}buildKeyframeElement(te,ue,je){je=je.map(Xt=>oe(Xt));let wt=`@keyframes ${ue} {\n`,kt="";je.forEach(Xt=>{kt=" ";const pi=parseFloat(Xt.offset);wt+=`${kt}${100*pi}% {\n`,kt+=" ",Object.keys(Xt).forEach(Ti=>{const Zi=Xt[Ti];switch(Ti){case"offset":return;case"easing":return void(Zi&&(wt+=`${kt}animation-timing-function: ${Zi};\n`));default:return void(wt+=`${kt}${Ti}: ${Zi};\n`)}}),wt+=`${kt}}\n`}),wt+="}\n";const Qt=document.createElement("style");return Qt.textContent=wt,Qt}animate(te,ue,je,wt,kt,Qt=[],Xt){const pi=Qt.filter(It=>It instanceof Oa),Ti={};le(je,wt)&&pi.forEach(It=>{let zt=It.currentSnapshot;Object.keys(zt).forEach(ri=>Ti[ri]=zt[ri])});const Zi=function ja(xt){let te={};return xt&&(Array.isArray(xt)?xt:[xt]).forEach(je=>{Object.keys(je).forEach(wt=>{"offset"==wt||"easing"==wt||(te[wt]=je[wt])})}),te}(ue=xe(te,ue,Ti));if(0==je)return new ra(te,Zi);const tn="gen_css_kf_"+this._count++,Mn=this.buildKeyframeElement(te,tn,ue);(function ns(xt){var te;const ue=null===(te=xt.getRootNode)||void 0===te?void 0:te.call(xt);return"undefined"!=typeof ShadowRoot&&ue instanceof ShadowRoot?ue:document.head})(te).appendChild(Mn);const tt=Kn(te,ue),Et=new Oa(te,ue,tn,je,wt,kt,Zi,tt);return Et.onDestroy(()=>function Xe(xt){xt.parentNode.removeChild(xt)}(Mn)),Et}}class ne{constructor(te,ue,je,wt){this.element=te,this.keyframes=ue,this.options=je,this._specialStyles=wt,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=je.duration,this._delay=je.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(te=>te()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const te=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,te,this.options),this._finalKeyframe=te.length?te[te.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(te,ue,je){return te.animate(ue,je)}onStart(te){this._onStartFns.push(te)}onDone(te){this._onDoneFns.push(te)}onDestroy(te){this._onDestroyFns.push(te)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(te=>te()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&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(te=>te()),this._onDestroyFns=[])}setPosition(te){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=te*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const te={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(ue=>{"offset"!=ue&&(te[ue]=this._finished?this._finalKeyframe[ue]:lt(this.element,ue))}),this.currentSnapshot=te}triggerCallback(te){const ue="start"==te?this._onStartFns:this._onDoneFns;ue.forEach(je=>je()),ue.length=0}}class Qe{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(mi().toString()),this._cssKeyframesDriver=new Zn}validateStyleProperty(te){return ee(te)}matchesElement(te,ue){return ce(te,ue)}containsElement(te,ue){return re(te,ue)}query(te,ue,je){return de(te,ue,je)}computeStyle(te,ue,je){return window.getComputedStyle(te)[ue]}overrideWebAnimationsSupport(te){this._isNativeImpl=te}animate(te,ue,je,wt,kt,Qt=[],Xt){if(!Xt&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(te,ue,je,wt,kt,Qt);const Zi={duration:je,delay:wt,fill:0==wt?"both":"forwards"};kt&&(Zi.easing=kt);const tn={},Mn=Qt.filter(tt=>tt instanceof ne);le(je,wt)&&Mn.forEach(tt=>{let Et=tt.currentSnapshot;Object.keys(Et).forEach(It=>tn[It]=Et[It])});const On=Kn(te,ue=xe(te,ue=ue.map(tt=>Ie(tt,!1)),tn));return new ne(te,ue,Zi,On)}}function mi(){return C()&&Element.prototype.animate||{}}var Ct=m(9808);let ti=(()=>{class xt extends y._j{constructor(ue,je){super(),this._nextAnimationId=0,this._renderer=ue.createRenderer(je.body,{id:"0",encapsulation:e.ifc.None,styles:[],data:{animation:[]}})}build(ue){const je=this._nextAnimationId.toString();this._nextAnimationId++;const wt=Array.isArray(ue)?(0,y.vP)(ue):ue;return xi(this._renderer,null,je,"register",[wt]),new bt(je,this._renderer)}}return xt.\u0275fac=function(ue){return new(ue||xt)(e.LFG(e.FYo),e.LFG(Ct.K0))},xt.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac}),xt})();class bt extends y.LC{constructor(te,ue){super(),this._id=te,this._renderer=ue}create(te,ue){return new Yt(this._id,te,ue||{},this._renderer)}}class Yt{constructor(te,ue,je,wt){this.id=te,this.element=ue,this._renderer=wt,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",je)}_listen(te,ue){return this._renderer.listen(this.element,`@@${this.id}:${te}`,ue)}_command(te,...ue){return xi(this._renderer,this.element,this.id,te,ue)}onDone(te){this._listen("done",te)}onStart(te){this._listen("start",te)}onDestroy(te){this._listen("destroy",te)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(te){this._command("setPosition",te)}getPosition(){var te,ue;return null!==(ue=null===(te=this._renderer.engine.players[+this.id])||void 0===te?void 0:te.getPosition())&&void 0!==ue?ue:0}}function xi(xt,te,ue,je,wt){return xt.setProperty(te,`@@${ue}:${je}`,wt)}const yn="@.disabled";let An=(()=>{class xt{constructor(ue,je,wt){this.delegate=ue,this.engine=je,this._zone=wt,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),je.onRemovalComplete=(kt,Qt)=>{const Xt=null==Qt?void 0:Qt.parentNode(kt);Xt&&Qt.removeChild(Xt,kt)}}createRenderer(ue,je){const kt=this.delegate.createRenderer(ue,je);if(!(ue&&je&&je.data&&je.data.animation)){let Zi=this._rendererCache.get(kt);return Zi||(Zi=new Wi("",kt,this.engine),this._rendererCache.set(kt,Zi)),Zi}const Qt=je.id,Xt=je.id+"-"+this._currentId;this._currentId++,this.engine.register(Xt,ue);const pi=Zi=>{Array.isArray(Zi)?Zi.forEach(pi):this.engine.registerTrigger(Qt,Xt,ue,Zi.name,Zi)};return je.data.animation.forEach(pi),new Cr(this,Xt,kt,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(ue,je,wt){ue>=0&&ueje(wt)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(kt=>{const[Qt,Xt]=kt;Qt(Xt)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([je,wt]))}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()}}return xt.\u0275fac=function(ue){return new(ue||xt)(e.LFG(e.FYo),e.LFG(kr),e.LFG(e.R0b))},xt.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac}),xt})();class Wi{constructor(te,ue,je){this.namespaceId=te,this.delegate=ue,this.engine=je,this.destroyNode=this.delegate.destroyNode?wt=>ue.destroyNode(wt):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(te,ue){return this.delegate.createElement(te,ue)}createComment(te){return this.delegate.createComment(te)}createText(te){return this.delegate.createText(te)}appendChild(te,ue){this.delegate.appendChild(te,ue),this.engine.onInsert(this.namespaceId,ue,te,!1)}insertBefore(te,ue,je,wt=!0){this.delegate.insertBefore(te,ue,je),this.engine.onInsert(this.namespaceId,ue,te,wt)}removeChild(te,ue,je){this.engine.onRemove(this.namespaceId,ue,this.delegate,je)}selectRootElement(te,ue){return this.delegate.selectRootElement(te,ue)}parentNode(te){return this.delegate.parentNode(te)}nextSibling(te){return this.delegate.nextSibling(te)}setAttribute(te,ue,je,wt){this.delegate.setAttribute(te,ue,je,wt)}removeAttribute(te,ue,je){this.delegate.removeAttribute(te,ue,je)}addClass(te,ue){this.delegate.addClass(te,ue)}removeClass(te,ue){this.delegate.removeClass(te,ue)}setStyle(te,ue,je,wt){this.delegate.setStyle(te,ue,je,wt)}removeStyle(te,ue,je){this.delegate.removeStyle(te,ue,je)}setProperty(te,ue,je){"@"==ue.charAt(0)&&ue==yn?this.disableAnimations(te,!!je):this.delegate.setProperty(te,ue,je)}setValue(te,ue){this.delegate.setValue(te,ue)}listen(te,ue,je){return this.delegate.listen(te,ue,je)}disableAnimations(te,ue){this.engine.disableAnimations(te,ue)}}class Cr extends Wi{constructor(te,ue,je,wt){super(ue,je,wt),this.factory=te,this.namespaceId=ue}setProperty(te,ue,je){"@"==ue.charAt(0)?"."==ue.charAt(1)&&ue==yn?this.disableAnimations(te,je=void 0===je||!!je):this.engine.process(this.namespaceId,te,ue.substr(1),je):this.delegate.setProperty(te,ue,je)}listen(te,ue,je){if("@"==ue.charAt(0)){const wt=function Un(xt){switch(xt){case"body":return document.body;case"document":return document;case"window":return window;default:return xt}}(te);let kt=ue.substr(1),Qt="";return"@"!=kt.charAt(0)&&([kt,Qt]=function Rn(xt){const te=xt.indexOf(".");return[xt.substring(0,te),xt.substr(te+1)]}(kt)),this.engine.listen(this.namespaceId,wt,kt,Qt,Xt=>{this.factory.scheduleListenerCallback(Xt._data||-1,je,Xt)})}return this.delegate.listen(te,ue,je)}}let _a=(()=>{class xt extends kr{constructor(ue,je,wt){super(ue.body,je,wt)}ngOnDestroy(){this.flush()}}return xt.\u0275fac=function(ue){return new(ue||xt)(e.LFG(Ct.K0),e.LFG(b),e.LFG(Ui))},xt.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac}),xt})();const ki=new e.OlP("AnimationModuleType"),Nn=[{provide:y._j,useClass:ti},{provide:Ui,useFactory:function ds(){return new Xi}},{provide:kr,useClass:_a},{provide:e.FYo,useFactory:function vs(xt,te,ue){return new An(xt,te,ue)},deps:[t.se,kr,e.R0b]}],zs=[{provide:b,useFactory:function Mr(){return function Wt(){return"function"==typeof mi()}()?new Qe:new Zn}},{provide:ki,useValue:"BrowserAnimations"},...Nn],fr=[{provide:b,useClass:ae},{provide:ki,useValue:"NoopAnimations"},...Nn];let Us=(()=>{class xt{static withConfig(ue){return{ngModule:xt,providers:ue.disableAnimations?fr:zs}}}return xt.\u0275fac=function(ue){return new(ue||xt)},xt.\u0275mod=e.oAB({type:xt}),xt.\u0275inj=e.cJS({providers:zs,imports:[t.b2]}),xt})()},2313:(Ve,Q,m)=>{"use strict";m.d(Q,{b2:()=>vt,H7:()=>$t,t6:()=>et,q6:()=>z,se:()=>u});var e=m(9808),t=m(5e3);class y extends e.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class C extends y{static makeCurrent(){(0,e.HT)(new C)}onAndCancel(Fe,at,st){return Fe.addEventListener(at,st,!1),()=>{Fe.removeEventListener(at,st,!1)}}dispatchEvent(Fe,at){Fe.dispatchEvent(at)}remove(Fe){Fe.parentNode&&Fe.parentNode.removeChild(Fe)}createElement(Fe,at){return(at=at||this.getDefaultDocument()).createElement(Fe)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Fe){return Fe.nodeType===Node.ELEMENT_NODE}isShadowRoot(Fe){return Fe instanceof DocumentFragment}getGlobalEventTarget(Fe,at){return"window"===at?window:"document"===at?Fe:"body"===at?Fe.body:null}getBaseHref(Fe){const at=function M(){return o=o||document.querySelector("base"),o?o.getAttribute("href"):null}();return null==at?null:function N(Pe){l=l||document.createElement("a"),l.setAttribute("href",Pe);const Fe=l.pathname;return"/"===Fe.charAt(0)?Fe:`/${Fe}`}(at)}resetBaseElement(){o=null}getUserAgent(){return window.navigator.userAgent}getCookie(Fe){return(0,e.Mx)(document.cookie,Fe)}}let l,o=null;const s=new t.OlP("TRANSITION_ID"),A=[{provide:t.ip1,useFactory:function D(Pe,Fe,at){return()=>{at.get(t.CZH).donePromise.then(()=>{const st=(0,e.q)(),At=Fe.querySelectorAll(`style[ng-transition="${Pe}"]`);for(let li=0;li{const li=Fe.findTestabilityInTree(st,At);if(null==li)throw new Error("Could not find testability for element.");return li},t.dqk.getAllAngularTestabilities=()=>Fe.getAllTestabilities(),t.dqk.getAllAngularRootElements=()=>Fe.getAllRootElements(),t.dqk.frameworkStabilizers||(t.dqk.frameworkStabilizers=[]),t.dqk.frameworkStabilizers.push(st=>{const At=t.dqk.getAllAngularTestabilities();let li=At.length,Bt=!1;const Rt=function(Li){Bt=Bt||Li,li--,0==li&&st(Bt)};At.forEach(function(Li){Li.whenStable(Rt)})})}findTestabilityInTree(Fe,at,st){if(null==at)return null;const At=Fe.getTestability(at);return null!=At?At:st?(0,e.q)().isShadowRoot(at)?this.findTestabilityInTree(Fe,at.host,!0):this.findTestabilityInTree(Fe,at.parentElement,!0):null}}let E=(()=>{class Pe{build(){return new XMLHttpRequest}}return Pe.\u0275fac=function(at){return new(at||Pe)},Pe.\u0275prov=t.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const P=new t.OlP("EventManagerPlugins");let w=(()=>{class Pe{constructor(at,st){this._zone=st,this._eventNameToPlugin=new Map,at.forEach(At=>At.manager=this),this._plugins=at.slice().reverse()}addEventListener(at,st,At){return this._findPluginFor(st).addEventListener(at,st,At)}addGlobalEventListener(at,st,At){return this._findPluginFor(st).addGlobalEventListener(at,st,At)}getZone(){return this._zone}_findPluginFor(at){const st=this._eventNameToPlugin.get(at);if(st)return st;const At=this._plugins;for(let li=0;li{class Pe{constructor(){this._stylesSet=new Set}addStyles(at){const st=new Set;at.forEach(At=>{this._stylesSet.has(At)||(this._stylesSet.add(At),st.add(At))}),this.onStylesAdded(st)}onStylesAdded(at){}getAllStyles(){return Array.from(this._stylesSet)}}return Pe.\u0275fac=function(at){return new(at||Pe)},Pe.\u0275prov=t.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),W=(()=>{class Pe extends j{constructor(at){super(),this._doc=at,this._hostNodes=new Map,this._hostNodes.set(at.head,[])}_addStylesToHost(at,st,At){at.forEach(li=>{const Bt=this._doc.createElement("style");Bt.textContent=li,At.push(st.appendChild(Bt))})}addHost(at){const st=[];this._addStylesToHost(this._stylesSet,at,st),this._hostNodes.set(at,st)}removeHost(at){const st=this._hostNodes.get(at);st&&st.forEach(ie),this._hostNodes.delete(at)}onStylesAdded(at){this._hostNodes.forEach((st,At)=>{this._addStylesToHost(at,At,st)})}ngOnDestroy(){this._hostNodes.forEach(at=>at.forEach(ie))}}return Pe.\u0275fac=function(at){return new(at||Pe)(t.LFG(e.K0))},Pe.\u0275prov=t.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();function ie(Pe){(0,e.q)().remove(Pe)}const ee={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/"},_e=/%COMP%/g;function i(Pe,Fe,at){for(let st=0;st{if("__ngUnwrap__"===Fe)return Pe;!1===Pe(Fe)&&(Fe.preventDefault(),Fe.returnValue=!1)}}let u=(()=>{class Pe{constructor(at,st,At){this.eventManager=at,this.sharedStylesHost=st,this.appId=At,this.rendererByCompId=new Map,this.defaultRenderer=new _(at)}createRenderer(at,st){if(!at||!st)return this.defaultRenderer;switch(st.encapsulation){case t.ifc.Emulated:{let At=this.rendererByCompId.get(st.id);return At||(At=new x(this.eventManager,this.sharedStylesHost,st,this.appId),this.rendererByCompId.set(st.id,At)),At.applyToHost(at),At}case 1:case t.ifc.ShadowDom:return new r(this.eventManager,this.sharedStylesHost,at,st);default:if(!this.rendererByCompId.has(st.id)){const At=i(st.id,st.styles,[]);this.sharedStylesHost.addStyles(At),this.rendererByCompId.set(st.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Pe.\u0275fac=function(at){return new(at||Pe)(t.LFG(w),t.LFG(W),t.LFG(t.AFp))},Pe.\u0275prov=t.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();class _{constructor(Fe){this.eventManager=Fe,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Fe,at){return at?document.createElementNS(ee[at]||at,Fe):document.createElement(Fe)}createComment(Fe){return document.createComment(Fe)}createText(Fe){return document.createTextNode(Fe)}appendChild(Fe,at){Fe.appendChild(at)}insertBefore(Fe,at,st){Fe&&Fe.insertBefore(at,st)}removeChild(Fe,at){Fe&&Fe.removeChild(at)}selectRootElement(Fe,at){let st="string"==typeof Fe?document.querySelector(Fe):Fe;if(!st)throw new Error(`The selector "${Fe}" did not match any elements`);return at||(st.textContent=""),st}parentNode(Fe){return Fe.parentNode}nextSibling(Fe){return Fe.nextSibling}setAttribute(Fe,at,st,At){if(At){at=At+":"+at;const li=ee[At];li?Fe.setAttributeNS(li,at,st):Fe.setAttribute(at,st)}else Fe.setAttribute(at,st)}removeAttribute(Fe,at,st){if(st){const At=ee[st];At?Fe.removeAttributeNS(At,at):Fe.removeAttribute(`${st}:${at}`)}else Fe.removeAttribute(at)}addClass(Fe,at){Fe.classList.add(at)}removeClass(Fe,at){Fe.classList.remove(at)}setStyle(Fe,at,st,At){At&(t.JOm.DashCase|t.JOm.Important)?Fe.style.setProperty(at,st,At&t.JOm.Important?"important":""):Fe.style[at]=st}removeStyle(Fe,at,st){st&t.JOm.DashCase?Fe.style.removeProperty(at):Fe.style[at]=""}setProperty(Fe,at,st){Fe[at]=st}setValue(Fe,at){Fe.nodeValue=at}listen(Fe,at,st){return"string"==typeof Fe?this.eventManager.addGlobalEventListener(Fe,at,a(st)):this.eventManager.addEventListener(Fe,at,a(st))}}class x extends _{constructor(Fe,at,st,At){super(Fe),this.component=st;const li=i(At+"-"+st.id,st.styles,[]);at.addStyles(li),this.contentAttr=function ae(Pe){return"_ngcontent-%COMP%".replace(_e,Pe)}(At+"-"+st.id),this.hostAttr=function b(Pe){return"_nghost-%COMP%".replace(_e,Pe)}(At+"-"+st.id)}applyToHost(Fe){super.setAttribute(Fe,this.hostAttr,"")}createElement(Fe,at){const st=super.createElement(Fe,at);return super.setAttribute(st,this.contentAttr,""),st}}class r extends _{constructor(Fe,at,st,At){super(Fe),this.sharedStylesHost=at,this.hostEl=st,this.shadowRoot=st.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const li=i(At.id,At.styles,[]);for(let Bt=0;Bt{class Pe extends Z{constructor(at){super(at)}supports(at){return!0}addEventListener(at,st,At){return at.addEventListener(st,At,!1),()=>this.removeEventListener(at,st,At)}removeEventListener(at,st,At){return at.removeEventListener(st,At)}}return Pe.\u0275fac=function(at){return new(at||Pe)(t.LFG(e.K0))},Pe.\u0275prov=t.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const G=["alt","control","meta","shift"],U={"\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"},ye={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Ce={alt:Pe=>Pe.altKey,control:Pe=>Pe.ctrlKey,meta:Pe=>Pe.metaKey,shift:Pe=>Pe.shiftKey};let Be=(()=>{class Pe extends Z{constructor(at){super(at)}supports(at){return null!=Pe.parseEventName(at)}addEventListener(at,st,At){const li=Pe.parseEventName(st),Bt=Pe.eventCallback(li.fullKey,At,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,e.q)().onAndCancel(at,li.domEventName,Bt))}static parseEventName(at){const st=at.toLowerCase().split("."),At=st.shift();if(0===st.length||"keydown"!==At&&"keyup"!==At)return null;const li=Pe._normalizeKey(st.pop());let Bt="";if(G.forEach(Li=>{const si=st.indexOf(Li);si>-1&&(st.splice(si,1),Bt+=Li+".")}),Bt+=li,0!=st.length||0===li.length)return null;const Rt={};return Rt.domEventName=At,Rt.fullKey=Bt,Rt}static getEventFullKey(at){let st="",At=function ze(Pe){let Fe=Pe.key;if(null==Fe){if(Fe=Pe.keyIdentifier,null==Fe)return"Unidentified";Fe.startsWith("U+")&&(Fe=String.fromCharCode(parseInt(Fe.substring(2),16)),3===Pe.location&&ye.hasOwnProperty(Fe)&&(Fe=ye[Fe]))}return U[Fe]||Fe}(at);return At=At.toLowerCase()," "===At?At="space":"."===At&&(At="dot"),G.forEach(li=>{li!=At&&Ce[li](at)&&(st+=li+".")}),st+=At,st}static eventCallback(at,st,At){return li=>{Pe.getEventFullKey(li)===at&&At.runGuarded(()=>st(li))}}static _normalizeKey(at){return"esc"===at?"escape":at}}return Pe.\u0275fac=function(at){return new(at||Pe)(t.LFG(e.K0))},Pe.\u0275prov=t.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const z=(0,t.eFA)(t._c5,"browser",[{provide:t.Lbi,useValue:e.bD},{provide:t.g9A,useValue:function Ie(){C.makeCurrent(),O.init()},multi:!0},{provide:e.K0,useFactory:function Me(){return(0,t.RDi)(document),document},deps:[]}]),Ge=[{provide:t.zSh,useValue:"root"},{provide:t.qLn,useFactory:function K(){return new t.qLn},deps:[]},{provide:P,useClass:v,multi:!0,deps:[e.K0,t.R0b,t.Lbi]},{provide:P,useClass:Be,multi:!0,deps:[e.K0]},{provide:u,useClass:u,deps:[w,W,t.AFp]},{provide:t.FYo,useExisting:u},{provide:j,useExisting:W},{provide:W,useClass:W,deps:[e.K0]},{provide:t.dDg,useClass:t.dDg,deps:[t.R0b]},{provide:w,useClass:w,deps:[P,t.R0b]},{provide:e.JF,useClass:E,deps:[]}];let vt=(()=>{class Pe{constructor(at){if(at)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(at){return{ngModule:Pe,providers:[{provide:t.AFp,useValue:at.appId},{provide:s,useExisting:t.AFp},A]}}}return Pe.\u0275fac=function(at){return new(at||Pe)(t.LFG(Pe,12))},Pe.\u0275mod=t.oAB({type:Pe}),Pe.\u0275inj=t.cJS({providers:Ge,imports:[e.ez,t.hGG]}),Pe})();"undefined"!=typeof window&&window;const Ze={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},Ee=new t.OlP("HammerGestureConfig"),Y=new t.OlP("HammerLoader");let me=(()=>{class Pe{constructor(){this.events=[],this.overrides={}}buildHammer(at){const st=new Hammer(at,this.options);st.get("pinch").set({enable:!0}),st.get("rotate").set({enable:!0});for(const At in this.overrides)st.get(At).set(this.overrides[At]);return st}}return Pe.\u0275fac=function(at){return new(at||Pe)},Pe.\u0275prov=t.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),De=(()=>{class Pe extends Z{constructor(at,st,At,li){super(at),this._config=st,this.console=At,this.loader=li,this._loaderPromise=null}supports(at){return!(!Ze.hasOwnProperty(at.toLowerCase())&&!this.isCustomEvent(at)||!window.Hammer&&!this.loader)}addEventListener(at,st,At){const li=this.manager.getZone();if(st=st.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let Bt=!1,Rt=()=>{Bt=!0};return this._loaderPromise.then(()=>{window.Hammer?Bt||(Rt=this.addEventListener(at,st,At)):Rt=()=>{}}).catch(()=>{Rt=()=>{}}),()=>{Rt()}}return li.runOutsideAngular(()=>{const Bt=this._config.buildHammer(at),Rt=function(Li){li.runGuarded(function(){At(Li)})};return Bt.on(st,Rt),()=>{Bt.off(st,Rt),"function"==typeof Bt.destroy&&Bt.destroy()}})}isCustomEvent(at){return this._config.events.indexOf(at)>-1}}return Pe.\u0275fac=function(at){return new(at||Pe)(t.LFG(e.K0),t.LFG(Ee),t.LFG(t.c2e),t.LFG(Y,8))},Pe.\u0275prov=t.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),et=(()=>{class Pe{}return Pe.\u0275fac=function(at){return new(at||Pe)},Pe.\u0275mod=t.oAB({type:Pe}),Pe.\u0275inj=t.cJS({providers:[{provide:P,useClass:De,multi:!0,deps:[e.K0,Ee,t.c2e,[new t.FiY,Y]]},{provide:Ee,useClass:me,deps:[]}]}),Pe})(),$t=(()=>{class Pe{}return Pe.\u0275fac=function(at){return new(at||Pe)},Pe.\u0275prov=t.Yz7({token:Pe,factory:function(at){let st=null;return st=at?new(at||Pe):t.LFG(Jt),st},providedIn:"root"}),Pe})(),Jt=(()=>{class Pe extends $t{constructor(at){super(),this._doc=at}sanitize(at,st){if(null==st)return null;switch(at){case t.q3G.NONE:return st;case t.q3G.HTML:return(0,t.qzn)(st,"HTML")?(0,t.z3N)(st):(0,t.EiD)(this._doc,String(st)).toString();case t.q3G.STYLE:return(0,t.qzn)(st,"Style")?(0,t.z3N)(st):st;case t.q3G.SCRIPT:if((0,t.qzn)(st,"Script"))return(0,t.z3N)(st);throw new Error("unsafe value used in a script context");case t.q3G.URL:return(0,t.yhl)(st),(0,t.qzn)(st,"URL")?(0,t.z3N)(st):(0,t.mCW)(String(st));case t.q3G.RESOURCE_URL:if((0,t.qzn)(st,"ResourceURL"))return(0,t.z3N)(st);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${at} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(at){return(0,t.JVY)(at)}bypassSecurityTrustStyle(at){return(0,t.L6k)(at)}bypassSecurityTrustScript(at){return(0,t.eBb)(at)}bypassSecurityTrustUrl(at){return(0,t.LAX)(at)}bypassSecurityTrustResourceUrl(at){return(0,t.pB0)(at)}}return Pe.\u0275fac=function(at){return new(at||Pe)(t.LFG(e.K0))},Pe.\u0275prov=t.Yz7({token:Pe,factory:function(at){let st=null;return st=at?new at:function Nt(Pe){return new Jt(Pe.get(e.K0))}(t.LFG(t.zs3)),st},providedIn:"root"}),Pe})()},1402:(Ve,Q,m)=>{"use strict";m.d(Q,{gz:()=>Si,gk:()=>F,m2:()=>G,Q3:()=>U,OD:()=>v,Av:()=>Ie,F0:()=>nn,rH:()=>da,Od:()=>Yn,yS:()=>Xr,Bz:()=>hc,lC:()=>wa});var e=m(5e3),t=m(8306),y=m(727),C=m(4482),o=m(5403);function M(){return(0,C.e)((Ye,Te)=>{let be=null;Ye._refCount++;const $e=new o.Q(Te,void 0,void 0,void 0,()=>{if(!Ye||Ye._refCount<=0||0<--Ye._refCount)return void(be=null);const dt=Ye._connection,Ot=be;be=null,dt&&(!Ot||dt===Ot)&&dt.unsubscribe(),Te.unsubscribe()});Ye.subscribe($e),$e.closed||(be=Ye.connect())})}class l extends t.y{constructor(Te,be){super(),this.source=Te,this.subjectFactory=be,this._subject=null,this._refCount=0,this._connection=null,(0,C.A)(Te)&&(this.lift=Te.lift)}_subscribe(Te){return this.getSubject().subscribe(Te)}getSubject(){const Te=this._subject;return(!Te||Te.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:Te}=this;this._subject=this._connection=null,null==Te||Te.unsubscribe()}connect(){let Te=this._connection;if(!Te){Te=this._connection=new y.w0;const be=this.getSubject();Te.add(this.source.subscribe(new o.Q(be,void 0,()=>{this._teardown(),be.complete()},$e=>{this._teardown(),be.error($e)},()=>this._teardown()))),Te.closed&&(this._connection=null,Te=y.w0.EMPTY)}return Te}refCount(){return M()(this)}}var N=m(457),s=m(9646),D=m(1135),A=m(9841),O=m(6805),E=m(7272),P=m(9770),w=m(515),Z=m(7579),j=m(9300);function W(Ye){return Ye<=0?()=>w.E:(0,C.e)((Te,be)=>{let $e=[];Te.subscribe(new o.Q(be,dt=>{$e.push(dt),Ye<$e.length&&$e.shift()},()=>{for(const dt of $e)be.next(dt);be.complete()},void 0,()=>{$e=null}))})}var ie=m(8068),ee=m(6590),_e=m(4671),re=m(4004),de=m(3900),oe=m(5698),ae=m(8675),b=m(5026),i=m(262),a=m(4351),p=m(590),u=m(5577),_=m(8505),L=m(8746),I=m(8189),x=m(9808);class r{constructor(Te,be){this.id=Te,this.url=be}}class v extends r{constructor(Te,be,$e="imperative",dt=null){super(Te,be),this.navigationTrigger=$e,this.restoredState=dt}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class G extends r{constructor(Te,be,$e){super(Te,be),this.urlAfterRedirects=$e}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class F extends r{constructor(Te,be,$e){super(Te,be),this.reason=$e}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class U extends r{constructor(Te,be,$e){super(Te,be),this.error=$e}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ye extends r{constructor(Te,be,$e,dt){super(Te,be),this.urlAfterRedirects=$e,this.state=dt}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ce extends r{constructor(Te,be,$e,dt){super(Te,be),this.urlAfterRedirects=$e,this.state=dt}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Be extends r{constructor(Te,be,$e,dt,Ot){super(Te,be),this.urlAfterRedirects=$e,this.state=dt,this.shouldActivate=Ot}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ze extends r{constructor(Te,be,$e,dt){super(Te,be),this.urlAfterRedirects=$e,this.state=dt}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ie extends r{constructor(Te,be,$e,dt){super(Te,be),this.urlAfterRedirects=$e,this.state=dt}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class K{constructor(Te){this.route=Te}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Me{constructor(Te){this.route=Te}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class we{constructor(Te){this.snapshot=Te}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class z{constructor(Te){this.snapshot=Te}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ge{constructor(Te){this.snapshot=Te}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vt{constructor(Te){this.snapshot=Te}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Re{constructor(Te,be,$e){this.routerEvent=Te,this.position=be,this.anchor=$e}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Ne="primary";class he{constructor(Te){this.params=Te||{}}has(Te){return Object.prototype.hasOwnProperty.call(this.params,Te)}get(Te){if(this.has(Te)){const be=this.params[Te];return Array.isArray(be)?be[0]:be}return null}getAll(Te){if(this.has(Te)){const be=this.params[Te];return Array.isArray(be)?be:[be]}return[]}get keys(){return Object.keys(this.params)}}function Le(Ye){return new he(Ye)}const ke="ngNavigationCancelingError";function q(Ye){const Te=Error("NavigationCancelingError: "+Ye);return Te[ke]=!0,Te}function le(Ye,Te,be){const $e=be.path.split("/");if($e.length>Ye.length||"full"===be.pathMatch&&(Te.hasChildren()||$e.length$e[Ot]===dt)}return Ye===Te}function nt(Ye){return Array.prototype.concat.apply([],Ye)}function ft(Ye){return Ye.length>0?Ye[Ye.length-1]:null}function rt(Ye,Te){for(const be in Ye)Ye.hasOwnProperty(be)&&Te(Ye[be],be)}function Mt(Ye){return(0,e.CqO)(Ye)?Ye:(0,e.QGY)(Ye)?(0,N.D)(Promise.resolve(Ye)):(0,s.of)(Ye)}const Ft={exact:function ei(Ye,Te,be){if(!et(Ye.segments,Te.segments)||!Ze(Ye.segments,Te.segments,be)||Ye.numberOfChildren!==Te.numberOfChildren)return!1;for(const $e in Te.children)if(!Ye.children[$e]||!ei(Ye.children[$e],Te.children[$e],be))return!1;return!0},subset:ai},Vt={exact:function jt(Ye,Te){return Ue(Ye,Te)},subset:function Pi(Ye,Te){return Object.keys(Te).length<=Object.keys(Ye).length&&Object.keys(Te).every(be=>lt(Ye[be],Te[be]))},ignored:()=>!0};function Ii(Ye,Te,be){return Ft[be.paths](Ye.root,Te.root,be.matrixParams)&&Vt[be.queryParams](Ye.queryParams,Te.queryParams)&&!("exact"===be.fragment&&Ye.fragment!==Te.fragment)}function ai(Ye,Te,be){return hi(Ye,Te,Te.segments,be)}function hi(Ye,Te,be,$e){if(Ye.segments.length>be.length){const dt=Ye.segments.slice(0,be.length);return!(!et(dt,be)||Te.hasChildren()||!Ze(dt,be,$e))}if(Ye.segments.length===be.length){if(!et(Ye.segments,be)||!Ze(Ye.segments,be,$e))return!1;for(const dt in Te.children)if(!Ye.children[dt]||!ai(Ye.children[dt],Te.children[dt],$e))return!1;return!0}{const dt=be.slice(0,Ye.segments.length),Ot=be.slice(Ye.segments.length);return!!(et(Ye.segments,dt)&&Ze(Ye.segments,dt,$e)&&Ye.children[Ne])&&hi(Ye.children[Ne],Te,Ot,$e)}}function Ze(Ye,Te,be){return Te.every(($e,dt)=>Vt[be](Ye[dt].parameters,$e.parameters))}class Ee{constructor(Te,be,$e){this.root=Te,this.queryParams=be,this.fragment=$e}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Le(this.queryParams)),this._queryParamMap}toString(){return ct.serialize(this)}}class Y{constructor(Te,be){this.segments=Te,this.children=be,this.parent=null,rt(be,($e,dt)=>$e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Pe(this)}}class me{constructor(Te,be){this.path=Te,this.parameters=be}get parameterMap(){return this._parameterMap||(this._parameterMap=Le(this.parameters)),this._parameterMap}toString(){return Li(this)}}function et(Ye,Te){return Ye.length===Te.length&&Ye.every((be,$e)=>be.path===Te[$e].path)}class Nt{}class Jt{parse(Te){const be=new ve(Te);return new Ee(be.parseRootSegment(),be.parseQueryParams(),be.parseFragment())}serialize(Te){const be=`/${Fe(Te.root,!0)}`,$e=function ci(Ye){const Te=Object.keys(Ye).map(be=>{const $e=Ye[be];return Array.isArray($e)?$e.map(dt=>`${st(be)}=${st(dt)}`).join("&"):`${st(be)}=${st($e)}`}).filter(be=>!!be);return Te.length?`?${Te.join("&")}`:""}(Te.queryParams);return`${be}${$e}${"string"==typeof Te.fragment?`#${function At(Ye){return encodeURI(Ye)}(Te.fragment)}`:""}`}}const ct=new Jt;function Pe(Ye){return Ye.segments.map(Te=>Li(Te)).join("/")}function Fe(Ye,Te){if(!Ye.hasChildren())return Pe(Ye);if(Te){const be=Ye.children[Ne]?Fe(Ye.children[Ne],!1):"",$e=[];return rt(Ye.children,(dt,Ot)=>{Ot!==Ne&&$e.push(`${Ot}:${Fe(dt,!1)}`)}),$e.length>0?`${be}(${$e.join("//")})`:be}{const be=function $t(Ye,Te){let be=[];return rt(Ye.children,($e,dt)=>{dt===Ne&&(be=be.concat(Te($e,dt)))}),rt(Ye.children,($e,dt)=>{dt!==Ne&&(be=be.concat(Te($e,dt)))}),be}(Ye,($e,dt)=>dt===Ne?[Fe(Ye.children[Ne],!1)]:[`${dt}:${Fe($e,!1)}`]);return 1===Object.keys(Ye.children).length&&null!=Ye.children[Ne]?`${Pe(Ye)}/${be[0]}`:`${Pe(Ye)}/(${be.join("//")})`}}function at(Ye){return encodeURIComponent(Ye).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function st(Ye){return at(Ye).replace(/%3B/gi,";")}function li(Ye){return at(Ye).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Bt(Ye){return decodeURIComponent(Ye)}function Rt(Ye){return Bt(Ye.replace(/\+/g,"%20"))}function Li(Ye){return`${li(Ye.path)}${function si(Ye){return Object.keys(Ye).map(Te=>`;${li(Te)}=${li(Ye[Te])}`).join("")}(Ye.parameters)}`}const sn=/^[^\/()?;=#]+/;function Ui(Ye){const Te=Ye.match(sn);return Te?Te[0]:""}const Di=/^[^=?&#]+/,Ke=/^[^&#]+/;class ve{constructor(Te){this.url=Te,this.remaining=Te}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Y([],{}):new Y([],this.parseChildren())}parseQueryParams(){const Te={};if(this.consumeOptional("?"))do{this.parseQueryParam(Te)}while(this.consumeOptional("&"));return Te}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const Te=[];for(this.peekStartsWith("(")||Te.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),Te.push(this.parseSegment());let be={};this.peekStartsWith("/(")&&(this.capture("/"),be=this.parseParens(!0));let $e={};return this.peekStartsWith("(")&&($e=this.parseParens(!1)),(Te.length>0||Object.keys(be).length>0)&&($e[Ne]=new Y(Te,be)),$e}parseSegment(){const Te=Ui(this.remaining);if(""===Te&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(Te),new me(Bt(Te),this.parseMatrixParams())}parseMatrixParams(){const Te={};for(;this.consumeOptional(";");)this.parseParam(Te);return Te}parseParam(Te){const be=Ui(this.remaining);if(!be)return;this.capture(be);let $e="";if(this.consumeOptional("=")){const dt=Ui(this.remaining);dt&&($e=dt,this.capture($e))}Te[Bt(be)]=Bt($e)}parseQueryParam(Te){const be=function Xi(Ye){const Te=Ye.match(Di);return Te?Te[0]:""}(this.remaining);if(!be)return;this.capture(be);let $e="";if(this.consumeOptional("=")){const qt=function _t(Ye){const Te=Ye.match(Ke);return Te?Te[0]:""}(this.remaining);qt&&($e=qt,this.capture($e))}const dt=Rt(be),Ot=Rt($e);if(Te.hasOwnProperty(dt)){let qt=Te[dt];Array.isArray(qt)||(qt=[qt],Te[dt]=qt),qt.push(Ot)}else Te[dt]=Ot}parseParens(Te){const be={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const $e=Ui(this.remaining),dt=this.remaining[$e.length];if("/"!==dt&&")"!==dt&&";"!==dt)throw new Error(`Cannot parse url '${this.url}'`);let Ot;$e.indexOf(":")>-1?(Ot=$e.substr(0,$e.indexOf(":")),this.capture(Ot),this.capture(":")):Te&&(Ot=Ne);const qt=this.parseChildren();be[Ot]=1===Object.keys(qt).length?qt[Ne]:new Y([],qt),this.consumeOptional("//")}return be}peekStartsWith(Te){return this.remaining.startsWith(Te)}consumeOptional(Te){return!!this.peekStartsWith(Te)&&(this.remaining=this.remaining.substring(Te.length),!0)}capture(Te){if(!this.consumeOptional(Te))throw new Error(`Expected "${Te}".`)}}class qe{constructor(Te){this._root=Te}get root(){return this._root.value}parent(Te){const be=this.pathFromRoot(Te);return be.length>1?be[be.length-2]:null}children(Te){const be=yt(Te,this._root);return be?be.children.map($e=>$e.value):[]}firstChild(Te){const be=yt(Te,this._root);return be&&be.children.length>0?be.children[0].value:null}siblings(Te){const be=fe(Te,this._root);return be.length<2?[]:be[be.length-2].children.map(dt=>dt.value).filter(dt=>dt!==Te)}pathFromRoot(Te){return fe(Te,this._root).map(be=>be.value)}}function yt(Ye,Te){if(Ye===Te.value)return Te;for(const be of Te.children){const $e=yt(Ye,be);if($e)return $e}return null}function fe(Ye,Te){if(Ye===Te.value)return[Te];for(const be of Te.children){const $e=fe(Ye,be);if($e.length)return $e.unshift(Te),$e}return[]}class Je{constructor(Te,be){this.value=Te,this.children=be}toString(){return`TreeNode(${this.value})`}}function St(Ye){const Te={};return Ye&&Ye.children.forEach(be=>Te[be.value.outlet]=be),Te}class Pt extends qe{constructor(Te,be){super(Te),this.snapshot=be,Lt(this,Te)}toString(){return this.snapshot.toString()}}function yi(Ye,Te){const be=function Ni(Ye,Te){const qt=new Kt([],{},{},"",{},Ne,Te,null,Ye.root,-1,{});return new gt("",new Je(qt,[]))}(Ye,Te),$e=new D.X([new me("",{})]),dt=new D.X({}),Ot=new D.X({}),qt=new D.X({}),ii=new D.X(""),Ei=new Si($e,dt,qt,ii,Ot,Ne,Te,be.root);return Ei.snapshot=be.root,new Pt(new Je(Ei,[]),be)}class Si{constructor(Te,be,$e,dt,Ot,qt,ii,Ei){this.url=Te,this.params=be,this.queryParams=$e,this.fragment=dt,this.data=Ot,this.outlet=qt,this.component=ii,this._futureSnapshot=Ei}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._paramMap=this.params.pipe((0,re.U)(Te=>Le(Te)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,re.U)(Te=>Le(Te)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function qi(Ye,Te="emptyOnly"){const be=Ye.pathFromRoot;let $e=0;if("always"!==Te)for($e=be.length-1;$e>=1;){const dt=be[$e],Ot=be[$e-1];if(dt.routeConfig&&""===dt.routeConfig.path)$e--;else{if(Ot.component)break;$e--}}return function ot(Ye){return Ye.reduce((Te,be)=>({params:Object.assign(Object.assign({},Te.params),be.params),data:Object.assign(Object.assign({},Te.data),be.data),resolve:Object.assign(Object.assign({},Te.resolve),be._resolvedData)}),{params:{},data:{},resolve:{}})}(be.slice($e))}class Kt{constructor(Te,be,$e,dt,Ot,qt,ii,Ei,an,Wn,xn){this.url=Te,this.params=be,this.queryParams=$e,this.fragment=dt,this.data=Ot,this.outlet=qt,this.component=ii,this.routeConfig=Ei,this._urlSegment=an,this._lastPathIndex=Wn,this._resolve=xn}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._paramMap=Le(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Le(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map($e=>$e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class gt extends qe{constructor(Te,be){super(be),this.url=Te,Lt(this,be)}toString(){return ui(this._root)}}function Lt(Ye,Te){Te.value._routerState=Ye,Te.children.forEach(be=>Lt(Ye,be))}function ui(Ye){const Te=Ye.children.length>0?` { ${Ye.children.map(ui).join(", ")} } `:"";return`${Ye.value}${Te}`}function Ci(Ye){if(Ye.snapshot){const Te=Ye.snapshot,be=Ye._futureSnapshot;Ye.snapshot=be,Ue(Te.queryParams,be.queryParams)||Ye.queryParams.next(be.queryParams),Te.fragment!==be.fragment&&Ye.fragment.next(be.fragment),Ue(Te.params,be.params)||Ye.params.next(be.params),function xe(Ye,Te){if(Ye.length!==Te.length)return!1;for(let be=0;beUe(be.parameters,Te[$e].parameters))}(Ye.url,Te.url);return be&&!(!Ye.parent!=!Te.parent)&&(!Ye.parent||Yi(Ye.parent,Te.parent))}function Cn(Ye,Te,be){if(be&&Ye.shouldReuseRoute(Te.value,be.value.snapshot)){const $e=be.value;$e._futureSnapshot=Te.value;const dt=function Ln(Ye,Te,be){return Te.children.map($e=>{for(const dt of be.children)if(Ye.shouldReuseRoute($e.value,dt.value.snapshot))return Cn(Ye,$e,dt);return Cn(Ye,$e)})}(Ye,Te,be);return new Je($e,dt)}{if(Ye.shouldAttach(Te.value)){const Ot=Ye.retrieve(Te.value);if(null!==Ot){const qt=Ot.route;return qt.value._futureSnapshot=Te.value,qt.children=Te.children.map(ii=>Cn(Ye,ii)),qt}}const $e=function _n(Ye){return new Si(new D.X(Ye.url),new D.X(Ye.params),new D.X(Ye.queryParams),new D.X(Ye.fragment),new D.X(Ye.data),Ye.outlet,Ye.component,Ye)}(Te.value),dt=Te.children.map(Ot=>Cn(Ye,Ot));return new Je($e,dt)}}function dr(Ye){return"object"==typeof Ye&&null!=Ye&&!Ye.outlets&&!Ye.segmentPath}function wi(Ye){return"object"==typeof Ye&&null!=Ye&&Ye.outlets}function Fi(Ye,Te,be,$e,dt){let Ot={};return $e&&rt($e,(qt,ii)=>{Ot[ii]=Array.isArray(qt)?qt.map(Ei=>`${Ei}`):`${qt}`}),new Ee(be.root===Ye?Te:dn(be.root,Ye,Te),Ot,dt)}function dn(Ye,Te,be){const $e={};return rt(Ye.children,(dt,Ot)=>{$e[Ot]=dt===Te?be:dn(dt,Te,be)}),new Y(Ye.segments,$e)}class Lr{constructor(Te,be,$e){if(this.isAbsolute=Te,this.numberOfDoubleDots=be,this.commands=$e,Te&&$e.length>0&&dr($e[0]))throw new Error("Root segment cannot have matrix parameters");const dt=$e.find(wi);if(dt&&dt!==ft($e))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Gn{constructor(Te,be,$e){this.segmentGroup=Te,this.processChildren=be,this.index=$e}}function Fa(Ye,Te,be){if(Ye||(Ye=new Y([],{})),0===Ye.segments.length&&Ye.hasChildren())return xr(Ye,Te,be);const $e=function hs(Ye,Te,be){let $e=0,dt=Te;const Ot={match:!1,pathIndex:0,commandIndex:0};for(;dt=be.length)return Ot;const qt=Ye.segments[dt],ii=be[$e];if(wi(ii))break;const Ei=`${ii}`,an=$e0&&void 0===Ei)break;if(Ei&&an&&"object"==typeof an&&void 0===an.outlets){if(!Ir(Ei,an,qt))return Ot;$e+=2}else{if(!Ir(Ei,{},qt))return Ot;$e++}dt++}return{match:!0,pathIndex:dt,commandIndex:$e}}(Ye,Te,be),dt=be.slice($e.commandIndex);if($e.match&&$e.pathIndex{"string"==typeof Ot&&(Ot=[Ot]),null!==Ot&&(dt[qt]=Fa(Ye.children[qt],Te,Ot))}),rt(Ye.children,(Ot,qt)=>{void 0===$e[qt]&&(dt[qt]=Ot)}),new Y(Ye.segments,dt)}}function ur(Ye,Te,be){const $e=Ye.segments.slice(0,Te);let dt=0;for(;dt{"string"==typeof be&&(be=[be]),null!==be&&(Te[$e]=ur(new Y([],{}),0,be))}),Te}function ma(Ye){const Te={};return rt(Ye,(be,$e)=>Te[$e]=`${be}`),Te}function Ir(Ye,Te,be){return Ye==be.path&&Ue(Te,be.parameters)}class Ya{constructor(Te,be,$e,dt){this.routeReuseStrategy=Te,this.futureState=be,this.currState=$e,this.forwardEvent=dt}activate(Te){const be=this.futureState._root,$e=this.currState?this.currState._root:null;this.deactivateChildRoutes(be,$e,Te),Ci(this.futureState.root),this.activateChildRoutes(be,$e,Te)}deactivateChildRoutes(Te,be,$e){const dt=St(be);Te.children.forEach(Ot=>{const qt=Ot.value.outlet;this.deactivateRoutes(Ot,dt[qt],$e),delete dt[qt]}),rt(dt,(Ot,qt)=>{this.deactivateRouteAndItsChildren(Ot,$e)})}deactivateRoutes(Te,be,$e){const dt=Te.value,Ot=be?be.value:null;if(dt===Ot)if(dt.component){const qt=$e.getContext(dt.outlet);qt&&this.deactivateChildRoutes(Te,be,qt.children)}else this.deactivateChildRoutes(Te,be,$e);else Ot&&this.deactivateRouteAndItsChildren(be,$e)}deactivateRouteAndItsChildren(Te,be){Te.value.component&&this.routeReuseStrategy.shouldDetach(Te.value.snapshot)?this.detachAndStoreRouteSubtree(Te,be):this.deactivateRouteAndOutlet(Te,be)}detachAndStoreRouteSubtree(Te,be){const $e=be.getContext(Te.value.outlet),dt=$e&&Te.value.component?$e.children:be,Ot=St(Te);for(const qt of Object.keys(Ot))this.deactivateRouteAndItsChildren(Ot[qt],dt);if($e&&$e.outlet){const qt=$e.outlet.detach(),ii=$e.children.onOutletDeactivated();this.routeReuseStrategy.store(Te.value.snapshot,{componentRef:qt,route:Te,contexts:ii})}}deactivateRouteAndOutlet(Te,be){const $e=be.getContext(Te.value.outlet),dt=$e&&Te.value.component?$e.children:be,Ot=St(Te);for(const qt of Object.keys(Ot))this.deactivateRouteAndItsChildren(Ot[qt],dt);$e&&$e.outlet&&($e.outlet.deactivate(),$e.children.onOutletDeactivated(),$e.attachRef=null,$e.resolver=null,$e.route=null)}activateChildRoutes(Te,be,$e){const dt=St(be);Te.children.forEach(Ot=>{this.activateRoutes(Ot,dt[Ot.value.outlet],$e),this.forwardEvent(new vt(Ot.value.snapshot))}),Te.children.length&&this.forwardEvent(new z(Te.value.snapshot))}activateRoutes(Te,be,$e){const dt=Te.value,Ot=be?be.value:null;if(Ci(dt),dt===Ot)if(dt.component){const qt=$e.getOrCreateContext(dt.outlet);this.activateChildRoutes(Te,be,qt.children)}else this.activateChildRoutes(Te,be,$e);else if(dt.component){const qt=$e.getOrCreateContext(dt.outlet);if(this.routeReuseStrategy.shouldAttach(dt.snapshot)){const ii=this.routeReuseStrategy.retrieve(dt.snapshot);this.routeReuseStrategy.store(dt.snapshot,null),qt.children.onOutletReAttached(ii.contexts),qt.attachRef=ii.componentRef,qt.route=ii.route.value,qt.outlet&&qt.outlet.attach(ii.componentRef,ii.route.value),Ci(ii.route.value),this.activateChildRoutes(Te,null,qt.children)}else{const ii=function Zr(Ye){for(let Te=Ye.parent;Te;Te=Te.parent){const be=Te.routeConfig;if(be&&be._loadedConfig)return be._loadedConfig;if(be&&be.component)return null}return null}(dt.snapshot),Ei=ii?ii.module.componentFactoryResolver:null;qt.attachRef=null,qt.route=dt,qt.resolver=Ei,qt.outlet&&qt.outlet.activateWith(dt,Ei),this.activateChildRoutes(Te,null,qt.children)}}else this.activateChildRoutes(Te,null,$e)}}class kr{constructor(Te,be){this.routes=Te,this.module=be}}function Kn(Ye){return"function"==typeof Ye}function Qn(Ye){return Ye instanceof Ee}const la=Symbol("INITIAL_VALUE");function Jr(){return(0,de.w)(Ye=>(0,A.a)(Ye.map(Te=>Te.pipe((0,oe.q)(1),(0,ae.O)(la)))).pipe((0,b.R)((Te,be)=>{let $e=!1;return be.reduce((dt,Ot,qt)=>dt!==la?dt:(Ot===la&&($e=!0),$e||!1!==Ot&&qt!==be.length-1&&!Qn(Ot)?dt:Ot),Te)},la),(0,j.h)(Te=>Te!==la),(0,re.U)(Te=>Qn(Te)?Te:!0===Te),(0,oe.q)(1)))}class ga{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new $n,this.attachRef=null}}class $n{constructor(){this.contexts=new Map}onChildOutletCreated(Te,be){const $e=this.getOrCreateContext(Te);$e.outlet=be,this.contexts.set(Te,$e)}onChildOutletDestroyed(Te){const be=this.getContext(Te);be&&(be.outlet=null,be.attachRef=null)}onOutletDeactivated(){const Te=this.contexts;return this.contexts=new Map,Te}onOutletReAttached(Te){this.contexts=Te}getOrCreateContext(Te){let be=this.getContext(Te);return be||(be=new ga,this.contexts.set(Te,be)),be}getContext(Te){return this.contexts.get(Te)||null}}let wa=(()=>{class Ye{constructor(be,$e,dt,Ot,qt){this.parentContexts=be,this.location=$e,this.resolver=dt,this.changeDetector=qt,this.activated=null,this._activatedRoute=null,this.activateEvents=new e.vpe,this.deactivateEvents=new e.vpe,this.attachEvents=new e.vpe,this.detachEvents=new e.vpe,this.name=Ot||Ne,be.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const be=this.parentContexts.getContext(this.name);be&&be.route&&(be.attachRef?this.attach(be.attachRef,be.route):this.activateWith(be.route,be.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const be=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(be.instance),be}attach(be,$e){this.activated=be,this._activatedRoute=$e,this.location.insert(be.hostView),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,$e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=be;const qt=($e=$e||this.resolver).resolveComponentFactory(be._futureSnapshot.routeConfig.component),ii=this.parentContexts.getOrCreateContext(this.name).children,Ei=new Nr(be,ii,this.location.injector);this.activated=this.location.createComponent(qt,this.location.length,Ei),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return Ye.\u0275fac=function(be){return new(be||Ye)(e.Y36($n),e.Y36(e.s_b),e.Y36(e._Vd),e.$8M("name"),e.Y36(e.sBO))},Ye.\u0275dir=e.lG2({type:Ye,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),Ye})();class Nr{constructor(Te,be,$e){this.route=Te,this.childContexts=be,this.parent=$e}get(Te,be){return Te===Si?this.route:Te===$n?this.childContexts:this.parent.get(Te,be)}}let ca=(()=>{class Ye{}return Ye.\u0275fac=function(be){return new(be||Ye)},Ye.\u0275cmp=e.Xpm({type:Ye,selectors:[["ng-component"]],decls:1,vars:0,template:function(be,$e){1&be&&e._UZ(0,"router-outlet")},directives:[wa],encapsulation:2}),Ye})();function Aa(Ye,Te=""){for(let be=0;beSr($e)===Te);return be.push(...Ye.filter($e=>Sr($e)!==Te)),be}const Oa={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function ra(Ye,Te,be){var $e;if(""===Te.path)return"full"===Te.pathMatch&&(Ye.hasChildren()||be.length>0)?Object.assign({},Oa):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const Ot=(Te.matcher||le)(be,Ye,Te);if(!Ot)return Object.assign({},Oa);const qt={};rt(Ot.posParams,(Ei,an)=>{qt[an]=Ei.path});const ii=Ot.consumed.length>0?Object.assign(Object.assign({},qt),Ot.consumed[Ot.consumed.length-1].parameters):qt;return{matched:!0,consumedSegments:Ot.consumed,lastChild:Ot.consumed.length,parameters:ii,positionalParamSegments:null!==($e=Ot.posParams)&&void 0!==$e?$e:{}}}function Gr(Ye,Te,be,$e,dt="corrected"){if(be.length>0&&function ns(Ye,Te,be){return be.some($e=>Xe(Ye,Te,$e)&&Sr($e)!==Ne)}(Ye,be,$e)){const qt=new Y(Te,function Zn(Ye,Te,be,$e){const dt={};dt[Ne]=$e,$e._sourceSegment=Ye,$e._segmentIndexShift=Te.length;for(const Ot of be)if(""===Ot.path&&Sr(Ot)!==Ne){const qt=new Y([],{});qt._sourceSegment=Ye,qt._segmentIndexShift=Te.length,dt[Sr(Ot)]=qt}return dt}(Ye,Te,$e,new Y(be,Ye.children)));return qt._sourceSegment=Ye,qt._segmentIndexShift=Te.length,{segmentGroup:qt,slicedSegments:[]}}if(0===be.length&&function ja(Ye,Te,be){return be.some($e=>Xe(Ye,Te,$e))}(Ye,be,$e)){const qt=new Y(Ye.segments,function Ha(Ye,Te,be,$e,dt,Ot){const qt={};for(const ii of $e)if(Xe(Ye,be,ii)&&!dt[Sr(ii)]){const Ei=new Y([],{});Ei._sourceSegment=Ye,Ei._segmentIndexShift="legacy"===Ot?Ye.segments.length:Te.length,qt[Sr(ii)]=Ei}return Object.assign(Object.assign({},dt),qt)}(Ye,Te,be,$e,Ye.children,dt));return qt._sourceSegment=Ye,qt._segmentIndexShift=Te.length,{segmentGroup:qt,slicedSegments:be}}const Ot=new Y(Ye.segments,Ye.children);return Ot._sourceSegment=Ye,Ot._segmentIndexShift=Te.length,{segmentGroup:Ot,slicedSegments:be}}function Xe(Ye,Te,be){return(!(Ye.hasChildren()||Te.length>0)||"full"!==be.pathMatch)&&""===be.path}function ge(Ye,Te,be,$e){return!!(Sr(Ye)===$e||$e!==Ne&&Xe(Te,be,Ye))&&("**"===Ye.path||ra(Te,Ye,be).matched)}function J(Ye,Te,be){return 0===Te.length&&!Ye.children[be]}class ne{constructor(Te){this.segmentGroup=Te||null}}class Qe{constructor(Te){this.urlTree=Te}}function Wt(Ye){return new t.y(Te=>Te.error(new ne(Ye)))}function mi(Ye){return new t.y(Te=>Te.error(new Qe(Ye)))}function Ct(Ye){return new t.y(Te=>Te.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${Ye}'`)))}class Yt{constructor(Te,be,$e,dt,Ot){this.configLoader=be,this.urlSerializer=$e,this.urlTree=dt,this.config=Ot,this.allowRedirects=!0,this.ngModule=Te.get(e.h0i)}apply(){const Te=Gr(this.urlTree.root,[],[],this.config).segmentGroup,be=new Y(Te.segments,Te.children);return this.expandSegmentGroup(this.ngModule,this.config,be,Ne).pipe((0,re.U)(Ot=>this.createUrlTree(Bi(Ot),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,i.K)(Ot=>{if(Ot instanceof Qe)return this.allowRedirects=!1,this.match(Ot.urlTree);throw Ot instanceof ne?this.noMatchError(Ot):Ot}))}match(Te){return this.expandSegmentGroup(this.ngModule,this.config,Te.root,Ne).pipe((0,re.U)(dt=>this.createUrlTree(Bi(dt),Te.queryParams,Te.fragment))).pipe((0,i.K)(dt=>{throw dt instanceof ne?this.noMatchError(dt):dt}))}noMatchError(Te){return new Error(`Cannot match any routes. URL Segment: '${Te.segmentGroup}'`)}createUrlTree(Te,be,$e){const dt=Te.segments.length>0?new Y([],{[Ne]:Te}):Te;return new Ee(dt,be,$e)}expandSegmentGroup(Te,be,$e,dt){return 0===$e.segments.length&&$e.hasChildren()?this.expandChildren(Te,be,$e).pipe((0,re.U)(Ot=>new Y([],Ot))):this.expandSegment(Te,$e,be,$e.segments,dt,!0)}expandChildren(Te,be,$e){const dt=[];for(const Ot of Object.keys($e.children))"primary"===Ot?dt.unshift(Ot):dt.push(Ot);return(0,N.D)(dt).pipe((0,a.b)(Ot=>{const qt=$e.children[Ot],ii=is(be,Ot);return this.expandSegmentGroup(Te,ii,qt,Ot).pipe((0,re.U)(Ei=>({segment:Ei,outlet:Ot})))}),(0,b.R)((Ot,qt)=>(Ot[qt.outlet]=qt.segment,Ot),{}),function ce(Ye,Te){const be=arguments.length>=2;return $e=>$e.pipe(Ye?(0,j.h)((dt,Ot)=>Ye(dt,Ot,$e)):_e.y,W(1),be?(0,ee.d)(Te):(0,ie.T)(()=>new O.K))}())}expandSegment(Te,be,$e,dt,Ot,qt){return(0,N.D)($e).pipe((0,a.b)(ii=>this.expandSegmentAgainstRoute(Te,be,$e,ii,dt,Ot,qt).pipe((0,i.K)(an=>{if(an instanceof ne)return(0,s.of)(null);throw an}))),(0,p.P)(ii=>!!ii),(0,i.K)((ii,Ei)=>{if(ii instanceof O.K||"EmptyError"===ii.name){if(J(be,dt,Ot))return(0,s.of)(new Y([],{}));throw new ne(be)}throw ii}))}expandSegmentAgainstRoute(Te,be,$e,dt,Ot,qt,ii){return ge(dt,be,Ot,qt)?void 0===dt.redirectTo?this.matchSegmentAgainstRoute(Te,be,dt,Ot,qt):ii&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(Te,be,$e,dt,Ot,qt):Wt(be):Wt(be)}expandSegmentAgainstRouteUsingRedirect(Te,be,$e,dt,Ot,qt){return"**"===dt.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(Te,$e,dt,qt):this.expandRegularSegmentAgainstRouteUsingRedirect(Te,be,$e,dt,Ot,qt)}expandWildCardWithParamsAgainstRouteUsingRedirect(Te,be,$e,dt){const Ot=this.applyRedirectCommands([],$e.redirectTo,{});return $e.redirectTo.startsWith("/")?mi(Ot):this.lineralizeSegments($e,Ot).pipe((0,u.z)(qt=>{const ii=new Y(qt,{});return this.expandSegment(Te,ii,be,qt,dt,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(Te,be,$e,dt,Ot,qt){const{matched:ii,consumedSegments:Ei,lastChild:an,positionalParamSegments:Wn}=ra(be,dt,Ot);if(!ii)return Wt(be);const xn=this.applyRedirectCommands(Ei,dt.redirectTo,Wn);return dt.redirectTo.startsWith("/")?mi(xn):this.lineralizeSegments(dt,xn).pipe((0,u.z)(er=>this.expandSegment(Te,be,$e,er.concat(Ot.slice(an)),qt,!1)))}matchSegmentAgainstRoute(Te,be,$e,dt,Ot){if("**"===$e.path)return $e.loadChildren?($e._loadedConfig?(0,s.of)($e._loadedConfig):this.configLoader.load(Te.injector,$e)).pipe((0,re.U)(er=>($e._loadedConfig=er,new Y(dt,{})))):(0,s.of)(new Y(dt,{}));const{matched:qt,consumedSegments:ii,lastChild:Ei}=ra(be,$e,dt);if(!qt)return Wt(be);const an=dt.slice(Ei);return this.getChildConfig(Te,$e,dt).pipe((0,u.z)(xn=>{const er=xn.module,ar=xn.routes,{segmentGroup:ao,slicedSegments:ea}=Gr(be,ii,an,ar),ys=new Y(ao.segments,ao.children);if(0===ea.length&&ys.hasChildren())return this.expandChildren(er,ar,ys).pipe((0,re.U)(Ea=>new Y(ii,Ea)));if(0===ar.length&&0===ea.length)return(0,s.of)(new Y(ii,{}));const fs=Sr($e)===Ot;return this.expandSegment(er,ys,ar,ea,fs?Ne:Ot,!0).pipe((0,re.U)(bs=>new Y(ii.concat(bs.segments),bs.children)))}))}getChildConfig(Te,be,$e){return be.children?(0,s.of)(new kr(be.children,Te)):be.loadChildren?void 0!==be._loadedConfig?(0,s.of)(be._loadedConfig):this.runCanLoadGuards(Te.injector,be,$e).pipe((0,u.z)(dt=>dt?this.configLoader.load(Te.injector,be).pipe((0,re.U)(Ot=>(be._loadedConfig=Ot,Ot))):function ti(Ye){return new t.y(Te=>Te.error(q(`Cannot load children because the guard of the route "path: '${Ye.path}'" returned false`)))}(be))):(0,s.of)(new kr([],Te))}runCanLoadGuards(Te,be,$e){const dt=be.canLoad;if(!dt||0===dt.length)return(0,s.of)(!0);const Ot=dt.map(qt=>{const ii=Te.get(qt);let Ei;if(function Tr(Ye){return Ye&&Kn(Ye.canLoad)}(ii))Ei=ii.canLoad(be,$e);else{if(!Kn(ii))throw new Error("Invalid CanLoad guard");Ei=ii(be,$e)}return Mt(Ei)});return(0,s.of)(Ot).pipe(Jr(),(0,_.b)(qt=>{if(!Qn(qt))return;const ii=q(`Redirecting to "${this.urlSerializer.serialize(qt)}"`);throw ii.url=qt,ii}),(0,re.U)(qt=>!0===qt))}lineralizeSegments(Te,be){let $e=[],dt=be.root;for(;;){if($e=$e.concat(dt.segments),0===dt.numberOfChildren)return(0,s.of)($e);if(dt.numberOfChildren>1||!dt.children[Ne])return Ct(Te.redirectTo);dt=dt.children[Ne]}}applyRedirectCommands(Te,be,$e){return this.applyRedirectCreatreUrlTree(be,this.urlSerializer.parse(be),Te,$e)}applyRedirectCreatreUrlTree(Te,be,$e,dt){const Ot=this.createSegmentGroup(Te,be.root,$e,dt);return new Ee(Ot,this.createQueryParams(be.queryParams,this.urlTree.queryParams),be.fragment)}createQueryParams(Te,be){const $e={};return rt(Te,(dt,Ot)=>{if("string"==typeof dt&&dt.startsWith(":")){const ii=dt.substring(1);$e[Ot]=be[ii]}else $e[Ot]=dt}),$e}createSegmentGroup(Te,be,$e,dt){const Ot=this.createSegments(Te,be.segments,$e,dt);let qt={};return rt(be.children,(ii,Ei)=>{qt[Ei]=this.createSegmentGroup(Te,ii,$e,dt)}),new Y(Ot,qt)}createSegments(Te,be,$e,dt){return be.map(Ot=>Ot.path.startsWith(":")?this.findPosParam(Te,Ot,dt):this.findOrReturn(Ot,$e))}findPosParam(Te,be,$e){const dt=$e[be.path.substring(1)];if(!dt)throw new Error(`Cannot redirect to '${Te}'. Cannot find '${be.path}'.`);return dt}findOrReturn(Te,be){let $e=0;for(const dt of be){if(dt.path===Te.path)return be.splice($e),dt;$e++}return Te}}function Bi(Ye){const Te={};for(const $e of Object.keys(Ye.children)){const Ot=Bi(Ye.children[$e]);(Ot.segments.length>0||Ot.hasChildren())&&(Te[$e]=Ot)}return function xi(Ye){if(1===Ye.numberOfChildren&&Ye.children[Ne]){const Te=Ye.children[Ne];return new Y(Ye.segments.concat(Te.segments),Te.children)}return Ye}(new Y(Ye.segments,Te))}class An{constructor(Te){this.path=Te,this.route=this.path[this.path.length-1]}}class Wi{constructor(Te,be){this.component=Te,this.route=be}}function Cr(Ye,Te,be){const $e=Ye._root;return Mr($e,Te?Te._root:null,be,[$e.value])}function Rn(Ye,Te,be){const $e=function _a(Ye){if(!Ye)return null;for(let Te=Ye.parent;Te;Te=Te.parent){const be=Te.routeConfig;if(be&&be._loadedConfig)return be._loadedConfig}return null}(Te);return($e?$e.module.injector:be).get(Ye)}function Mr(Ye,Te,be,$e,dt={canDeactivateChecks:[],canActivateChecks:[]}){const Ot=St(Te);return Ye.children.forEach(qt=>{(function ds(Ye,Te,be,$e,dt={canDeactivateChecks:[],canActivateChecks:[]}){const Ot=Ye.value,qt=Te?Te.value:null,ii=be?be.getContext(Ye.value.outlet):null;if(qt&&Ot.routeConfig===qt.routeConfig){const Ei=function vs(Ye,Te,be){if("function"==typeof be)return be(Ye,Te);switch(be){case"pathParamsChange":return!et(Ye.url,Te.url);case"pathParamsOrQueryParamsChange":return!et(Ye.url,Te.url)||!Ue(Ye.queryParams,Te.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Yi(Ye,Te)||!Ue(Ye.queryParams,Te.queryParams);default:return!Yi(Ye,Te)}}(qt,Ot,Ot.routeConfig.runGuardsAndResolvers);Ei?dt.canActivateChecks.push(new An($e)):(Ot.data=qt.data,Ot._resolvedData=qt._resolvedData),Mr(Ye,Te,Ot.component?ii?ii.children:null:be,$e,dt),Ei&&ii&&ii.outlet&&ii.outlet.isActivated&&dt.canDeactivateChecks.push(new Wi(ii.outlet.component,qt))}else qt&&ki(Te,ii,dt),dt.canActivateChecks.push(new An($e)),Mr(Ye,null,Ot.component?ii?ii.children:null:be,$e,dt)})(qt,Ot[qt.value.outlet],be,$e.concat([qt.value]),dt),delete Ot[qt.value.outlet]}),rt(Ot,(qt,ii)=>ki(qt,be.getContext(ii),dt)),dt}function ki(Ye,Te,be){const $e=St(Ye),dt=Ye.value;rt($e,(Ot,qt)=>{ki(Ot,dt.component?Te?Te.children.getContext(qt):null:Te,be)}),be.canDeactivateChecks.push(new Wi(dt.component&&Te&&Te.outlet&&Te.outlet.isActivated?Te.outlet.component:null,dt))}class je{}function wt(Ye){return new t.y(Te=>Te.error(Ye))}class Qt{constructor(Te,be,$e,dt,Ot,qt){this.rootComponentType=Te,this.config=be,this.urlTree=$e,this.url=dt,this.paramsInheritanceStrategy=Ot,this.relativeLinkResolution=qt}recognize(){const Te=Gr(this.urlTree.root,[],[],this.config.filter(qt=>void 0===qt.redirectTo),this.relativeLinkResolution).segmentGroup,be=this.processSegmentGroup(this.config,Te,Ne);if(null===be)return null;const $e=new Kt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ne,this.rootComponentType,null,this.urlTree.root,-1,{}),dt=new Je($e,be),Ot=new gt(this.url,dt);return this.inheritParamsAndData(Ot._root),Ot}inheritParamsAndData(Te){const be=Te.value,$e=qi(be,this.paramsInheritanceStrategy);be.params=Object.freeze($e.params),be.data=Object.freeze($e.data),Te.children.forEach(dt=>this.inheritParamsAndData(dt))}processSegmentGroup(Te,be,$e){return 0===be.segments.length&&be.hasChildren()?this.processChildren(Te,be):this.processSegment(Te,be,be.segments,$e)}processChildren(Te,be){const $e=[];for(const Ot of Object.keys(be.children)){const qt=be.children[Ot],ii=is(Te,Ot),Ei=this.processSegmentGroup(ii,qt,Ot);if(null===Ei)return null;$e.push(...Ei)}const dt=Zi($e);return function Xt(Ye){Ye.sort((Te,be)=>Te.value.outlet===Ne?-1:be.value.outlet===Ne?1:Te.value.outlet.localeCompare(be.value.outlet))}(dt),dt}processSegment(Te,be,$e,dt){for(const Ot of Te){const qt=this.processSegmentAgainstRoute(Ot,be,$e,dt);if(null!==qt)return qt}return J(be,$e,dt)?[]:null}processSegmentAgainstRoute(Te,be,$e,dt){if(Te.redirectTo||!ge(Te,be,$e,dt))return null;let Ot,qt=[],ii=[];if("**"===Te.path){const ar=$e.length>0?ft($e).parameters:{};Ot=new Kt($e,ar,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,tt(Te),Sr(Te),Te.component,Te,Mn(be),On(be)+$e.length,Et(Te))}else{const ar=ra(be,Te,$e);if(!ar.matched)return null;qt=ar.consumedSegments,ii=$e.slice(ar.lastChild),Ot=new Kt(qt,ar.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,tt(Te),Sr(Te),Te.component,Te,Mn(be),On(be)+qt.length,Et(Te))}const Ei=function pi(Ye){return Ye.children?Ye.children:Ye.loadChildren?Ye._loadedConfig.routes:[]}(Te),{segmentGroup:an,slicedSegments:Wn}=Gr(be,qt,ii,Ei.filter(ar=>void 0===ar.redirectTo),this.relativeLinkResolution);if(0===Wn.length&&an.hasChildren()){const ar=this.processChildren(Ei,an);return null===ar?null:[new Je(Ot,ar)]}if(0===Ei.length&&0===Wn.length)return[new Je(Ot,[])];const xn=Sr(Te)===dt,er=this.processSegment(Ei,an,Wn,xn?Ne:dt);return null===er?null:[new Je(Ot,er)]}}function Ti(Ye){const Te=Ye.value.routeConfig;return Te&&""===Te.path&&void 0===Te.redirectTo}function Zi(Ye){const Te=[],be=new Set;for(const $e of Ye){if(!Ti($e)){Te.push($e);continue}const dt=Te.find(Ot=>$e.value.routeConfig===Ot.value.routeConfig);void 0!==dt?(dt.children.push(...$e.children),be.add(dt)):Te.push($e)}for(const $e of be){const dt=Zi($e.children);Te.push(new Je($e.value,dt))}return Te.filter($e=>!be.has($e))}function Mn(Ye){let Te=Ye;for(;Te._sourceSegment;)Te=Te._sourceSegment;return Te}function On(Ye){let Te=Ye,be=Te._segmentIndexShift?Te._segmentIndexShift:0;for(;Te._sourceSegment;)Te=Te._sourceSegment,be+=Te._segmentIndexShift?Te._segmentIndexShift:0;return be-1}function tt(Ye){return Ye.data||{}}function Et(Ye){return Ye.resolve||{}}function Ai(Ye){return(0,de.w)(Te=>{const be=Ye(Te);return be?(0,N.D)(be).pipe((0,re.U)(()=>Te)):(0,s.of)(Te)})}class gn extends class un{shouldDetach(Te){return!1}store(Te,be){}shouldAttach(Te){return!1}retrieve(Te){return null}shouldReuseRoute(Te,be){return Te.routeConfig===be.routeConfig}}{}const En=new e.OlP("ROUTES");class zn{constructor(Te,be,$e,dt){this.injector=Te,this.compiler=be,this.onLoadStartListener=$e,this.onLoadEndListener=dt}load(Te,be){if(be._loader$)return be._loader$;this.onLoadStartListener&&this.onLoadStartListener(be);const dt=this.loadModuleFactory(be.loadChildren).pipe((0,re.U)(Ot=>{this.onLoadEndListener&&this.onLoadEndListener(be);const qt=Ot.create(Te);return new kr(nt(qt.injector.get(En,void 0,e.XFs.Self|e.XFs.Optional)).map(pr),qt)}),(0,i.K)(Ot=>{throw be._loader$=void 0,Ot}));return be._loader$=new l(dt,()=>new Z.x).pipe(M()),be._loader$}loadModuleFactory(Te){return Mt(Te()).pipe((0,u.z)(be=>be instanceof e.YKP?(0,s.of)(be):(0,N.D)(this.compiler.compileModuleAsync(be))))}}class Fr{shouldProcessUrl(Te){return!0}extract(Te){return Te}merge(Te,be){return Te}}function wr(Ye){throw Ye}function Vn(Ye,Te,be){return Te.parse("/")}function mr(Ye,Te){return(0,s.of)(null)}const Hi={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},on={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let nn=(()=>{class Ye{constructor(be,$e,dt,Ot,qt,ii,Ei){this.rootComponentType=be,this.urlSerializer=$e,this.rootContexts=dt,this.location=Ot,this.config=Ei,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Z.x,this.errorHandler=wr,this.malformedUriErrorHandler=Vn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:mr,afterPreactivation:mr},this.urlHandlingStrategy=new Fr,this.routeReuseStrategy=new gn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=qt.get(e.h0i),this.console=qt.get(e.c2e);const xn=qt.get(e.R0b);this.isNgZoneEnabled=xn instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(Ei),this.currentUrlTree=function Zt(){return new Ee(new Y([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new zn(qt,ii,er=>this.triggerEvent(new K(er)),er=>this.triggerEvent(new Me(er))),this.routerState=yi(this.currentUrlTree,this.rootComponentType),this.transitions=new D.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var be;return null===(be=this.location.getState())||void 0===be?void 0:be.\u0275routerPageId}setupNavigations(be){const $e=this.events;return be.pipe((0,j.h)(dt=>0!==dt.id),(0,re.U)(dt=>Object.assign(Object.assign({},dt),{extractedUrl:this.urlHandlingStrategy.extract(dt.rawUrl)})),(0,de.w)(dt=>{let Ot=!1,qt=!1;return(0,s.of)(dt).pipe((0,_.b)(ii=>{this.currentNavigation={id:ii.id,initialUrl:ii.currentRawUrl,extractedUrl:ii.extractedUrl,trigger:ii.source,extras:ii.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,de.w)(ii=>{const Ei=this.browserUrlTree.toString(),an=!this.navigated||ii.extractedUrl.toString()!==Ei||Ei!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||an)&&this.urlHandlingStrategy.shouldProcessUrl(ii.rawUrl))return jn(ii.source)&&(this.browserUrlTree=ii.extractedUrl),(0,s.of)(ii).pipe((0,de.w)(xn=>{const er=this.transitions.getValue();return $e.next(new v(xn.id,this.serializeUrl(xn.extractedUrl),xn.source,xn.restoredState)),er!==this.transitions.getValue()?w.E:Promise.resolve(xn)}),function yn(Ye,Te,be,$e){return(0,de.w)(dt=>function bt(Ye,Te,be,$e,dt){return new Yt(Ye,Te,be,$e,dt).apply()}(Ye,Te,be,dt.extractedUrl,$e).pipe((0,re.U)(Ot=>Object.assign(Object.assign({},dt),{urlAfterRedirects:Ot}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,_.b)(xn=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:xn.urlAfterRedirects})}),function It(Ye,Te,be,$e,dt){return(0,u.z)(Ot=>function kt(Ye,Te,be,$e,dt="emptyOnly",Ot="legacy"){try{const qt=new Qt(Ye,Te,be,$e,dt,Ot).recognize();return null===qt?wt(new je):(0,s.of)(qt)}catch(qt){return wt(qt)}}(Ye,Te,Ot.urlAfterRedirects,be(Ot.urlAfterRedirects),$e,dt).pipe((0,re.U)(qt=>Object.assign(Object.assign({},Ot),{targetSnapshot:qt}))))}(this.rootComponentType,this.config,xn=>this.serializeUrl(xn),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,_.b)(xn=>{if("eager"===this.urlUpdateStrategy){if(!xn.extras.skipLocationChange){const ar=this.urlHandlingStrategy.merge(xn.urlAfterRedirects,xn.rawUrl);this.setBrowserUrl(ar,xn)}this.browserUrlTree=xn.urlAfterRedirects}const er=new ye(xn.id,this.serializeUrl(xn.extractedUrl),this.serializeUrl(xn.urlAfterRedirects),xn.targetSnapshot);$e.next(er)}));if(an&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:er,extractedUrl:ar,source:ao,restoredState:ea,extras:ys}=ii,fs=new v(er,this.serializeUrl(ar),ao,ea);$e.next(fs);const Ps=yi(ar,this.rootComponentType).snapshot;return(0,s.of)(Object.assign(Object.assign({},ii),{targetSnapshot:Ps,urlAfterRedirects:ar,extras:Object.assign(Object.assign({},ys),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=ii.rawUrl,ii.resolve(null),w.E}),Ai(ii=>{const{targetSnapshot:Ei,id:an,extractedUrl:Wn,rawUrl:xn,extras:{skipLocationChange:er,replaceUrl:ar}}=ii;return this.hooks.beforePreactivation(Ei,{navigationId:an,appliedUrlTree:Wn,rawUrlTree:xn,skipLocationChange:!!er,replaceUrl:!!ar})}),(0,_.b)(ii=>{const Ei=new Ce(ii.id,this.serializeUrl(ii.extractedUrl),this.serializeUrl(ii.urlAfterRedirects),ii.targetSnapshot);this.triggerEvent(Ei)}),(0,re.U)(ii=>Object.assign(Object.assign({},ii),{guards:Cr(ii.targetSnapshot,ii.currentSnapshot,this.rootContexts)})),function Nn(Ye,Te){return(0,u.z)(be=>{const{targetSnapshot:$e,currentSnapshot:dt,guards:{canActivateChecks:Ot,canDeactivateChecks:qt}}=be;return 0===qt.length&&0===Ot.length?(0,s.of)(Object.assign(Object.assign({},be),{guardsResult:!0})):function zs(Ye,Te,be,$e){return(0,N.D)(Ye).pipe((0,u.z)(dt=>function ue(Ye,Te,be,$e,dt){const Ot=Te&&Te.routeConfig?Te.routeConfig.canDeactivate:null;if(!Ot||0===Ot.length)return(0,s.of)(!0);const qt=Ot.map(ii=>{const Ei=Rn(ii,Te,dt);let an;if(function Pr(Ye){return Ye&&Kn(Ye.canDeactivate)}(Ei))an=Mt(Ei.canDeactivate(Ye,Te,be,$e));else{if(!Kn(Ei))throw new Error("Invalid CanDeactivate guard");an=Mt(Ei(Ye,Te,be,$e))}return an.pipe((0,p.P)())});return(0,s.of)(qt).pipe(Jr())}(dt.component,dt.route,be,Te,$e)),(0,p.P)(dt=>!0!==dt,!0))}(qt,$e,dt,Ye).pipe((0,u.z)(ii=>ii&&function vn(Ye){return"boolean"==typeof Ye}(ii)?function fr(Ye,Te,be,$e){return(0,N.D)(Te).pipe((0,a.b)(dt=>(0,E.z)(function rs(Ye,Te){return null!==Ye&&Te&&Te(new we(Ye)),(0,s.of)(!0)}(dt.route.parent,$e),function Us(Ye,Te){return null!==Ye&&Te&&Te(new Ge(Ye)),(0,s.of)(!0)}(dt.route,$e),function te(Ye,Te,be){const $e=Te[Te.length-1],Ot=Te.slice(0,Te.length-1).reverse().map(qt=>function Un(Ye){const Te=Ye.routeConfig?Ye.routeConfig.canActivateChild:null;return Te&&0!==Te.length?{node:Ye,guards:Te}:null}(qt)).filter(qt=>null!==qt).map(qt=>(0,P.P)(()=>{const ii=qt.guards.map(Ei=>{const an=Rn(Ei,qt.node,be);let Wn;if(function Wa(Ye){return Ye&&Kn(Ye.canActivateChild)}(an))Wn=Mt(an.canActivateChild($e,Ye));else{if(!Kn(an))throw new Error("Invalid CanActivateChild guard");Wn=Mt(an($e,Ye))}return Wn.pipe((0,p.P)())});return(0,s.of)(ii).pipe(Jr())}));return(0,s.of)(Ot).pipe(Jr())}(Ye,dt.path,be),function xt(Ye,Te,be){const $e=Te.routeConfig?Te.routeConfig.canActivate:null;if(!$e||0===$e.length)return(0,s.of)(!0);const dt=$e.map(Ot=>(0,P.P)(()=>{const qt=Rn(Ot,Te,be);let ii;if(function Ba(Ye){return Ye&&Kn(Ye.canActivate)}(qt))ii=Mt(qt.canActivate(Te,Ye));else{if(!Kn(qt))throw new Error("Invalid CanActivate guard");ii=Mt(qt(Te,Ye))}return ii.pipe((0,p.P)())}));return(0,s.of)(dt).pipe(Jr())}(Ye,dt.route,be))),(0,p.P)(dt=>!0!==dt,!0))}($e,Ot,Ye,Te):(0,s.of)(ii)),(0,re.U)(ii=>Object.assign(Object.assign({},be),{guardsResult:ii})))})}(this.ngModule.injector,ii=>this.triggerEvent(ii)),(0,_.b)(ii=>{if(Qn(ii.guardsResult)){const an=q(`Redirecting to "${this.serializeUrl(ii.guardsResult)}"`);throw an.url=ii.guardsResult,an}const Ei=new Be(ii.id,this.serializeUrl(ii.extractedUrl),this.serializeUrl(ii.urlAfterRedirects),ii.targetSnapshot,!!ii.guardsResult);this.triggerEvent(Ei)}),(0,j.h)(ii=>!!ii.guardsResult||(this.restoreHistory(ii),this.cancelNavigationTransition(ii,""),!1)),Ai(ii=>{if(ii.guards.canActivateChecks.length)return(0,s.of)(ii).pipe((0,_.b)(Ei=>{const an=new ze(Ei.id,this.serializeUrl(Ei.extractedUrl),this.serializeUrl(Ei.urlAfterRedirects),Ei.targetSnapshot);this.triggerEvent(an)}),(0,de.w)(Ei=>{let an=!1;return(0,s.of)(Ei).pipe(function zt(Ye,Te){return(0,u.z)(be=>{const{targetSnapshot:$e,guards:{canActivateChecks:dt}}=be;if(!dt.length)return(0,s.of)(be);let Ot=0;return(0,N.D)(dt).pipe((0,a.b)(qt=>function ri(Ye,Te,be,$e){return function vi(Ye,Te,be,$e){const dt=Object.keys(Ye);if(0===dt.length)return(0,s.of)({});const Ot={};return(0,N.D)(dt).pipe((0,u.z)(qt=>function Mi(Ye,Te,be,$e){const dt=Rn(Ye,Te,$e);return Mt(dt.resolve?dt.resolve(Te,be):dt(Te,be))}(Ye[qt],Te,be,$e).pipe((0,_.b)(ii=>{Ot[qt]=ii}))),W(1),(0,u.z)(()=>Object.keys(Ot).length===dt.length?(0,s.of)(Ot):w.E))}(Ye._resolve,Ye,Te,$e).pipe((0,re.U)(Ot=>(Ye._resolvedData=Ot,Ye.data=Object.assign(Object.assign({},Ye.data),qi(Ye,be).resolve),null)))}(qt.route,$e,Ye,Te)),(0,_.b)(()=>Ot++),W(1),(0,u.z)(qt=>Ot===dt.length?(0,s.of)(be):w.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,_.b)({next:()=>an=!0,complete:()=>{an||(this.restoreHistory(Ei),this.cancelNavigationTransition(Ei,"At least one route resolver didn't emit any value."))}}))}),(0,_.b)(Ei=>{const an=new Ie(Ei.id,this.serializeUrl(Ei.extractedUrl),this.serializeUrl(Ei.urlAfterRedirects),Ei.targetSnapshot);this.triggerEvent(an)}))}),Ai(ii=>{const{targetSnapshot:Ei,id:an,extractedUrl:Wn,rawUrl:xn,extras:{skipLocationChange:er,replaceUrl:ar}}=ii;return this.hooks.afterPreactivation(Ei,{navigationId:an,appliedUrlTree:Wn,rawUrlTree:xn,skipLocationChange:!!er,replaceUrl:!!ar})}),(0,re.U)(ii=>{const Ei=function $i(Ye,Te,be){const $e=Cn(Ye,Te._root,be?be._root:void 0);return new Pt($e,Te)}(this.routeReuseStrategy,ii.targetSnapshot,ii.currentRouterState);return Object.assign(Object.assign({},ii),{targetRouterState:Ei})}),(0,_.b)(ii=>{this.currentUrlTree=ii.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(ii.urlAfterRedirects,ii.rawUrl),this.routerState=ii.targetRouterState,"deferred"===this.urlUpdateStrategy&&(ii.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,ii),this.browserUrlTree=ii.urlAfterRedirects)}),((Ye,Te,be)=>(0,re.U)($e=>(new Ya(Te,$e.targetRouterState,$e.currentRouterState,be).activate(Ye),$e)))(this.rootContexts,this.routeReuseStrategy,ii=>this.triggerEvent(ii)),(0,_.b)({next(){Ot=!0},complete(){Ot=!0}}),(0,L.x)(()=>{var ii;Ot||qt||this.cancelNavigationTransition(dt,`Navigation ID ${dt.id} is not equal to the current navigation id ${this.navigationId}`),(null===(ii=this.currentNavigation)||void 0===ii?void 0:ii.id)===dt.id&&(this.currentNavigation=null)}),(0,i.K)(ii=>{if(qt=!0,function $(Ye){return Ye&&Ye[ke]}(ii)){const Ei=Qn(ii.url);Ei||(this.navigated=!0,this.restoreHistory(dt,!0));const an=new F(dt.id,this.serializeUrl(dt.extractedUrl),ii.message);$e.next(an),Ei?setTimeout(()=>{const Wn=this.urlHandlingStrategy.merge(ii.url,this.rawUrlTree),xn={skipLocationChange:dt.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||jn(dt.source)};this.scheduleNavigation(Wn,"imperative",null,xn,{resolve:dt.resolve,reject:dt.reject,promise:dt.promise})},0):dt.resolve(!1)}else{this.restoreHistory(dt,!0);const Ei=new U(dt.id,this.serializeUrl(dt.extractedUrl),ii);$e.next(Ei);try{dt.resolve(this.errorHandler(ii))}catch(an){dt.reject(an)}}return w.E}))}))}resetRootComponentType(be){this.rootComponentType=be,this.routerState.root.component=this.rootComponentType}setTransition(be){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),be))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(be=>{const $e="popstate"===be.type?"popstate":"hashchange";"popstate"===$e&&setTimeout(()=>{var dt;const Ot={replaceUrl:!0},qt=(null===(dt=be.state)||void 0===dt?void 0:dt.navigationId)?be.state:null;if(qt){const Ei=Object.assign({},qt);delete Ei.navigationId,delete Ei.\u0275routerPageId,0!==Object.keys(Ei).length&&(Ot.state=Ei)}const ii=this.parseUrl(be.url);this.scheduleNavigation(ii,$e,qt,Ot)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(be){this.events.next(be)}resetConfig(be){Aa(be),this.config=be.map(pr),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(be,$e={}){const{relativeTo:dt,queryParams:Ot,fragment:qt,queryParamsHandling:ii,preserveFragment:Ei}=$e,an=dt||this.routerState.root,Wn=Ei?this.currentUrlTree.fragment:qt;let xn=null;switch(ii){case"merge":xn=Object.assign(Object.assign({},this.currentUrlTree.queryParams),Ot);break;case"preserve":xn=this.currentUrlTree.queryParams;break;default:xn=Ot||null}return null!==xn&&(xn=this.removeEmptyProps(xn)),function Pn(Ye,Te,be,$e,dt){if(0===be.length)return Fi(Te.root,Te.root,Te,$e,dt);const Ot=function La(Ye){if("string"==typeof Ye[0]&&1===Ye.length&&"/"===Ye[0])return new Lr(!0,0,Ye);let Te=0,be=!1;const $e=Ye.reduce((dt,Ot,qt)=>{if("object"==typeof Ot&&null!=Ot){if(Ot.outlets){const ii={};return rt(Ot.outlets,(Ei,an)=>{ii[an]="string"==typeof Ei?Ei.split("/"):Ei}),[...dt,{outlets:ii}]}if(Ot.segmentPath)return[...dt,Ot.segmentPath]}return"string"!=typeof Ot?[...dt,Ot]:0===qt?(Ot.split("/").forEach((ii,Ei)=>{0==Ei&&"."===ii||(0==Ei&&""===ii?be=!0:".."===ii?Te++:""!=ii&&dt.push(ii))}),dt):[...dt,Ot]},[]);return new Lr(be,Te,$e)}(be);if(Ot.toRoot())return Fi(Te.root,new Y([],{}),Te,$e,dt);const qt=function Or(Ye,Te,be){if(Ye.isAbsolute)return new Gn(Te.root,!0,0);if(-1===be.snapshot._lastPathIndex){const Ot=be.snapshot._urlSegment;return new Gn(Ot,Ot===Te.root,0)}const $e=dr(Ye.commands[0])?0:1;return function Ra(Ye,Te,be){let $e=Ye,dt=Te,Ot=be;for(;Ot>dt;){if(Ot-=dt,$e=$e.parent,!$e)throw new Error("Invalid number of '../'");dt=$e.segments.length}return new Gn($e,!1,dt-Ot)}(be.snapshot._urlSegment,be.snapshot._lastPathIndex+$e,Ye.numberOfDoubleDots)}(Ot,Te,Ye),ii=qt.processChildren?xr(qt.segmentGroup,qt.index,Ot.commands):Fa(qt.segmentGroup,qt.index,Ot.commands);return Fi(qt.segmentGroup,ii,Te,$e,dt)}(an,this.currentUrlTree,be,xn,null!=Wn?Wn:null)}navigateByUrl(be,$e={skipLocationChange:!1}){const dt=Qn(be)?be:this.parseUrl(be),Ot=this.urlHandlingStrategy.merge(dt,this.rawUrlTree);return this.scheduleNavigation(Ot,"imperative",null,$e)}navigate(be,$e={skipLocationChange:!1}){return function kn(Ye){for(let Te=0;Te{const Ot=be[dt];return null!=Ot&&($e[dt]=Ot),$e},{})}processNavigations(){this.navigations.subscribe(be=>{this.navigated=!0,this.lastSuccessfulId=be.id,this.currentPageId=be.targetPageId,this.events.next(new G(be.id,this.serializeUrl(be.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,be.resolve(!0)},be=>{this.console.warn(`Unhandled Navigation Error: ${be}`)})}scheduleNavigation(be,$e,dt,Ot,qt){var ii,Ei,an;if(this.disposed)return Promise.resolve(!1);const Wn=this.transitions.value,xn=jn($e)&&Wn&&!jn(Wn.source),er=Wn.rawUrl.toString()===be.toString(),ar=Wn.id===(null===(ii=this.currentNavigation)||void 0===ii?void 0:ii.id);if(xn&&er&&ar)return Promise.resolve(!0);let ea,ys,fs;qt?(ea=qt.resolve,ys=qt.reject,fs=qt.promise):fs=new Promise((Ea,Ol)=>{ea=Ea,ys=Ol});const Ps=++this.navigationId;let bs;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(dt=this.location.getState()),bs=dt&&dt.\u0275routerPageId?dt.\u0275routerPageId:Ot.replaceUrl||Ot.skipLocationChange?null!==(Ei=this.browserPageId)&&void 0!==Ei?Ei:0:(null!==(an=this.browserPageId)&&void 0!==an?an:0)+1):bs=0,this.setTransition({id:Ps,targetPageId:bs,source:$e,restoredState:dt,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:be,extras:Ot,resolve:ea,reject:ys,promise:fs,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),fs.catch(Ea=>Promise.reject(Ea))}setBrowserUrl(be,$e){const dt=this.urlSerializer.serialize(be),Ot=Object.assign(Object.assign({},$e.extras.state),this.generateNgRouterState($e.id,$e.targetPageId));this.location.isCurrentPathEqualTo(dt)||$e.extras.replaceUrl?this.location.replaceState(dt,"",Ot):this.location.go(dt,"",Ot)}restoreHistory(be,$e=!1){var dt,Ot;if("computed"===this.canceledNavigationResolution){const qt=this.currentPageId-be.targetPageId;"popstate"!==be.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(dt=this.currentNavigation)||void 0===dt?void 0:dt.finalUrl)||0===qt?this.currentUrlTree===(null===(Ot=this.currentNavigation)||void 0===Ot?void 0:Ot.finalUrl)&&0===qt&&(this.resetState(be),this.browserUrlTree=be.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(qt)}else"replace"===this.canceledNavigationResolution&&($e&&this.resetState(be),this.resetUrlToCurrentUrlTree())}resetState(be){this.routerState=be.currentRouterState,this.currentUrlTree=be.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,be.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(be,$e){const dt=new F(be.id,this.serializeUrl(be.extractedUrl),$e);this.triggerEvent(dt),be.resolve(!1)}generateNgRouterState(be,$e){return"computed"===this.canceledNavigationResolution?{navigationId:be,\u0275routerPageId:$e}:{navigationId:be}}}return Ye.\u0275fac=function(be){e.$Z()},Ye.\u0275prov=e.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})();function jn(Ye){return"imperative"!==Ye}let da=(()=>{class Ye{constructor(be,$e,dt,Ot,qt){this.router=be,this.route=$e,this.tabIndexAttribute=dt,this.renderer=Ot,this.el=qt,this.commands=null,this.onChanges=new Z.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(be){if(null!=this.tabIndexAttribute)return;const $e=this.renderer,dt=this.el.nativeElement;null!==be?$e.setAttribute(dt,"tabindex",be):$e.removeAttribute(dt,"tabindex")}ngOnChanges(be){this.onChanges.next(this)}set routerLink(be){null!=be?(this.commands=Array.isArray(be)?be:[be],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const be={skipLocationChange:$r(this.skipLocationChange),replaceUrl:$r(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,be),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:$r(this.preserveFragment)})}}return Ye.\u0275fac=function(be){return new(be||Ye)(e.Y36(nn),e.Y36(Si),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq))},Ye.\u0275dir=e.lG2({type:Ye,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(be,$e){1&be&&e.NdJ("click",function(){return $e.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),Ye})(),Xr=(()=>{class Ye{constructor(be,$e,dt){this.router=be,this.route=$e,this.locationStrategy=dt,this.commands=null,this.href=null,this.onChanges=new Z.x,this.subscription=be.events.subscribe(Ot=>{Ot instanceof G&&this.updateTargetUrlAndHref()})}set routerLink(be){this.commands=null!=be?Array.isArray(be)?be:[be]:null}ngOnChanges(be){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(be,$e,dt,Ot,qt){if(0!==be||$e||dt||Ot||qt||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const ii={skipLocationChange:$r(this.skipLocationChange),replaceUrl:$r(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,ii),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:$r(this.preserveFragment)})}}return Ye.\u0275fac=function(be){return new(be||Ye)(e.Y36(nn),e.Y36(Si),e.Y36(x.S$))},Ye.\u0275dir=e.lG2({type:Ye,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(be,$e){1&be&&e.NdJ("click",function(Ot){return $e.onClick(Ot.button,Ot.ctrlKey,Ot.shiftKey,Ot.altKey,Ot.metaKey)}),2&be&&e.uIk("target",$e.target)("href",$e.href,e.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),Ye})();function $r(Ye){return""===Ye||!!Ye}let Yn=(()=>{class Ye{constructor(be,$e,dt,Ot,qt,ii){this.router=be,this.element=$e,this.renderer=dt,this.cdr=Ot,this.link=qt,this.linkWithHref=ii,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new e.vpe,this.routerEventsSubscription=be.events.subscribe(Ei=>{Ei instanceof G&&this.update()})}ngAfterContentInit(){(0,s.of)(this.links.changes,this.linksWithHrefs.changes,(0,s.of)(null)).pipe((0,I.J)()).subscribe(be=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var be;null===(be=this.linkInputChangesSubscription)||void 0===be||be.unsubscribe();const $e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(dt=>!!dt).map(dt=>dt.onChanges);this.linkInputChangesSubscription=(0,N.D)($e).pipe((0,I.J)()).subscribe(dt=>{this.isActive!==this.isLinkActive(this.router)(dt)&&this.update()})}set routerLinkActive(be){const $e=Array.isArray(be)?be:be.split(" ");this.classes=$e.filter(dt=>!!dt)}ngOnChanges(be){this.update()}ngOnDestroy(){var be;this.routerEventsSubscription.unsubscribe(),null===(be=this.linkInputChangesSubscription)||void 0===be||be.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const be=this.hasActiveLinks();this.isActive!==be&&(this.isActive=be,this.cdr.markForCheck(),this.classes.forEach($e=>{be?this.renderer.addClass(this.element.nativeElement,$e):this.renderer.removeClass(this.element.nativeElement,$e)}),this.isActiveChange.emit(be))})}isLinkActive(be){const $e=function io(Ye){return!!Ye.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return dt=>!!dt.urlTree&&be.isActive(dt.urlTree,$e)}hasActiveLinks(){const be=this.isLinkActive(this.router);return this.link&&be(this.link)||this.linkWithHref&&be(this.linkWithHref)||this.links.some(be)||this.linksWithHrefs.some(be)}}return Ye.\u0275fac=function(be){return new(be||Ye)(e.Y36(nn),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(da,8),e.Y36(Xr,8))},Ye.\u0275dir=e.lG2({type:Ye,selectors:[["","routerLinkActive",""]],contentQueries:function(be,$e,dt){if(1&be&&(e.Suo(dt,da,5),e.Suo(dt,Xr,5)),2&be){let Ot;e.iGM(Ot=e.CRH())&&($e.links=Ot),e.iGM(Ot=e.CRH())&&($e.linksWithHrefs=Ot)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[e.TTD]}),Ye})();class Ia{}class Zs{preload(Te,be){return(0,s.of)(null)}}let va=(()=>{class Ye{constructor(be,$e,dt,Ot){this.router=be,this.injector=dt,this.preloadingStrategy=Ot,this.loader=new zn(dt,$e,Ei=>be.triggerEvent(new K(Ei)),Ei=>be.triggerEvent(new Me(Ei)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,j.h)(be=>be instanceof G),(0,a.b)(()=>this.preload())).subscribe(()=>{})}preload(){const be=this.injector.get(e.h0i);return this.processRoutes(be,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(be,$e){const dt=[];for(const Ot of $e)if(Ot.loadChildren&&!Ot.canLoad&&Ot._loadedConfig){const qt=Ot._loadedConfig;dt.push(this.processRoutes(qt.module,qt.routes))}else Ot.loadChildren&&!Ot.canLoad?dt.push(this.preloadConfig(be,Ot)):Ot.children&&dt.push(this.processRoutes(be,Ot.children));return(0,N.D)(dt).pipe((0,I.J)(),(0,re.U)(Ot=>{}))}preloadConfig(be,$e){return this.preloadingStrategy.preload($e,()=>($e._loadedConfig?(0,s.of)($e._loadedConfig):this.loader.load(be.injector,$e)).pipe((0,u.z)(Ot=>($e._loadedConfig=Ot,this.processRoutes(Ot.module,Ot.routes)))))}}return Ye.\u0275fac=function(be){return new(be||Ye)(e.LFG(nn),e.LFG(e.Sil),e.LFG(e.zs3),e.LFG(Ia))},Ye.\u0275prov=e.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})(),us=(()=>{class Ye{constructor(be,$e,dt={}){this.router=be,this.viewportScroller=$e,this.options=dt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},dt.scrollPositionRestoration=dt.scrollPositionRestoration||"disabled",dt.anchorScrolling=dt.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(be=>{be instanceof v?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=be.navigationTrigger,this.restoredId=be.restoredState?be.restoredState.navigationId:0):be instanceof G&&(this.lastId=be.id,this.scheduleScrollEvent(be,this.router.parseUrl(be.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(be=>{be instanceof Re&&(be.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(be.position):be.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(be.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(be,$e){this.router.triggerEvent(new Re(be,"popstate"===this.lastSource?this.store[this.restoredId]:null,$e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return Ye.\u0275fac=function(be){e.$Z()},Ye.\u0275prov=e.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})();const Vs=new e.OlP("ROUTER_CONFIGURATION"),no=new e.OlP("ROUTER_FORROOT_GUARD"),tl=[x.Ye,{provide:Nt,useClass:Jt},{provide:nn,useFactory:function nl(Ye,Te,be,$e,dt,Ot,qt={},ii,Ei){const an=new nn(null,Ye,Te,be,$e,dt,nt(Ot));return ii&&(an.urlHandlingStrategy=ii),Ei&&(an.routeReuseStrategy=Ei),function Oo(Ye,Te){Ye.errorHandler&&(Te.errorHandler=Ye.errorHandler),Ye.malformedUriErrorHandler&&(Te.malformedUriErrorHandler=Ye.malformedUriErrorHandler),Ye.onSameUrlNavigation&&(Te.onSameUrlNavigation=Ye.onSameUrlNavigation),Ye.paramsInheritanceStrategy&&(Te.paramsInheritanceStrategy=Ye.paramsInheritanceStrategy),Ye.relativeLinkResolution&&(Te.relativeLinkResolution=Ye.relativeLinkResolution),Ye.urlUpdateStrategy&&(Te.urlUpdateStrategy=Ye.urlUpdateStrategy),Ye.canceledNavigationResolution&&(Te.canceledNavigationResolution=Ye.canceledNavigationResolution)}(qt,an),qt.enableTracing&&an.events.subscribe(Wn=>{var xn,er;null===(xn=console.group)||void 0===xn||xn.call(console,`Router Event: ${Wn.constructor.name}`),console.log(Wn.toString()),console.log(Wn),null===(er=console.groupEnd)||void 0===er||er.call(console)}),an},deps:[Nt,$n,x.Ye,e.zs3,e.Sil,En,Vs,[class Rr{},new e.FiY],[class Ki{},new e.FiY]]},$n,{provide:Si,useFactory:function Ll(Ye){return Ye.routerState.root},deps:[nn]},va,Zs,class ks{preload(Te,be){return be().pipe((0,i.K)(()=>(0,s.of)(null)))}},{provide:Vs,useValue:{enableTracing:!1}}];function cc(){return new e.PXZ("Router",nn)}let hc=(()=>{class Ye{constructor(be,$e){}static forRoot(be,$e){return{ngModule:Ye,providers:[tl,il(be),{provide:no,useFactory:Lo,deps:[[nn,new e.FiY,new e.tp0]]},{provide:Vs,useValue:$e||{}},{provide:x.S$,useFactory:$c,deps:[x.lw,[new e.tBr(x.mr),new e.FiY],Vs]},{provide:us,useFactory:Xc,deps:[nn,x.EM,Vs]},{provide:Ia,useExisting:$e&&$e.preloadingStrategy?$e.preloadingStrategy:Zs},{provide:e.PXZ,multi:!0,useFactory:cc},[Io,{provide:e.ip1,multi:!0,useFactory:ro,deps:[Io]},{provide:Gs,useFactory:dc,deps:[Io]},{provide:e.tb,multi:!0,useExisting:Gs}]]}}static forChild(be){return{ngModule:Ye,providers:[il(be)]}}}return Ye.\u0275fac=function(be){return new(be||Ye)(e.LFG(no,8),e.LFG(nn,8))},Ye.\u0275mod=e.oAB({type:Ye}),Ye.\u0275inj=e.cJS({}),Ye})();function Xc(Ye,Te,be){return be.scrollOffset&&Te.setOffset(be.scrollOffset),new us(Ye,Te,be)}function $c(Ye,Te,be={}){return be.useHash?new x.Do(Ye,Te):new x.b0(Ye,Te)}function Lo(Ye){return"guarded"}function il(Ye){return[{provide:e.deG,multi:!0,useValue:Ye},{provide:En,multi:!0,useValue:Ye}]}let Io=(()=>{class Ye{constructor(be){this.injector=be,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Z.x}appInitializer(){return this.injector.get(x.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let $e=null;const dt=new Promise(ii=>$e=ii),Ot=this.injector.get(nn),qt=this.injector.get(Vs);return"disabled"===qt.initialNavigation?(Ot.setUpLocationChangeListener(),$e(!0)):"enabled"===qt.initialNavigation||"enabledBlocking"===qt.initialNavigation?(Ot.hooks.afterPreactivation=()=>this.initNavigation?(0,s.of)(null):(this.initNavigation=!0,$e(!0),this.resultOfPreactivationDone),Ot.initialNavigation()):$e(!0),dt})}bootstrapListener(be){const $e=this.injector.get(Vs),dt=this.injector.get(va),Ot=this.injector.get(us),qt=this.injector.get(nn),ii=this.injector.get(e.z2F);be===ii.components[0]&&(("enabledNonBlocking"===$e.initialNavigation||void 0===$e.initialNavigation)&&qt.initialNavigation(),dt.setUpPreloading(),Ot.init(),qt.resetRootComponentType(ii.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return Ye.\u0275fac=function(be){return new(be||Ye)(e.LFG(e.zs3))},Ye.\u0275prov=e.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})();function ro(Ye){return Ye.appInitializer.bind(Ye)}function dc(Ye){return Ye.bootstrapListener.bind(Ye)}const Gs=new e.OlP("Router Initializer")},9444:(Ve,Q,m)=>{"use strict";m.d(Q,{BN:()=>Xt,uH:()=>On});var e=m(5e3);function t(tt){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Et){return typeof Et}:function(Et){return Et&&"function"==typeof Symbol&&Et.constructor===Symbol&&Et!==Symbol.prototype?"symbol":typeof Et})(tt)}function C(tt,Et){for(var It=0;It0;)Et+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return Et}function Ui(tt){return"".concat(tt).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Xi(tt){return Object.keys(tt||{}).reduce(function(Et,It){return Et+"".concat(It,": ").concat(tt[It],";")},"")}function Ke(tt){return tt.size!==At.size||tt.x!==At.x||tt.y!==At.y||tt.rotate!==At.rotate||tt.flipX||tt.flipY}function _t(tt){var Et=tt.transform,zt=tt.iconWidth,ri={transform:"translate(".concat(tt.containerWidth/2," 256)")},vi="translate(".concat(32*Et.x,", ").concat(32*Et.y,") "),Mi="scale(".concat(Et.size/16*(Et.flipX?-1:1),", ").concat(Et.size/16*(Et.flipY?-1:1),") "),Ai="rotate(".concat(Et.rotate," 0 0)");return{outer:ri,inner:{transform:"".concat(vi," ").concat(Mi," ").concat(Ai)},path:{transform:"translate(".concat(zt/2*-1," -256)")}}}var qe={x:0,y:0,width:"100%",height:"100%"};function yt(tt){var Et=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return tt.attributes&&(tt.attributes.fill||Et)&&(tt.attributes.fill="black"),tt}function fe(tt){return"g"===tt.tag?tt.children:[tt]}function Ni(tt){var Et=tt.icons,It=Et.main,zt=Et.mask,ri=tt.prefix,vi=tt.iconName,Mi=tt.transform,Ai=tt.symbol,Ki=tt.title,un=tt.maskId,gn=tt.titleId,En=tt.extra,zn=tt.watchable,Rr=void 0!==zn&&zn,Fr=zt.found?zt:It,wr=Fr.width,Vn=Fr.height,mr="fak"===ri,Hi=mr?"":"fa-w-".concat(Math.ceil(wr/Vn*16)),on=[xe.replacementClass,vi?"".concat(xe.familyPrefix,"-").concat(vi):"",Hi].filter(function(Yn){return-1===En.classes.indexOf(Yn)}).filter(function(Yn){return""!==Yn||!!Yn}).concat(En.classes).join(" "),nn={children:[],attributes:l({},En.attributes,{"data-prefix":ri,"data-icon":vi,class:on,role:En.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(wr," ").concat(Vn)})},kn=mr&&!~En.classes.indexOf("fa-fw")?{width:"".concat(wr/Vn*16*.0625,"em")}:{};Rr&&(nn.attributes["data-fa-i2svg"]=""),Ki&&nn.children.push({tag:"title",attributes:{id:nn.attributes["aria-labelledby"]||"title-".concat(gn||Li())},children:[Ki]});var jn=l({},nn,{prefix:ri,iconName:vi,main:It,mask:zt,maskId:un,transform:Mi,symbol:Ai,styles:l({},kn,En.styles)}),da=zt.found&&It.found?function Je(tt){var Et=tt.children,It=tt.attributes,zt=tt.main,ri=tt.mask,vi=tt.maskId,Ki=zt.icon,gn=ri.icon,En=_t({transform:tt.transform,containerWidth:ri.width,iconWidth:zt.width}),zn={tag:"rect",attributes:l({},qe,{fill:"white"})},Rr=Ki.children?{children:Ki.children.map(yt)}:{},Fr={tag:"g",attributes:l({},En.inner),children:[yt(l({tag:Ki.tag,attributes:l({},Ki.attributes,En.path)},Rr))]},wr={tag:"g",attributes:l({},En.outer),children:[Fr]},Vn="mask-".concat(vi||Li()),mr="clip-".concat(vi||Li()),Hi={tag:"mask",attributes:l({},qe,{id:Vn,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[zn,wr]},on={tag:"defs",children:[{tag:"clipPath",attributes:{id:mr},children:fe(gn)},Hi]};return Et.push(on,{tag:"rect",attributes:l({fill:"currentColor","clip-path":"url(#".concat(mr,")"),mask:"url(#".concat(Vn,")")},qe)}),{children:Et,attributes:It}}(jn):function St(tt){var Et=tt.children,It=tt.attributes,zt=tt.main,ri=tt.transform,Mi=Xi(tt.styles);if(Mi.length>0&&(It.style=Mi),Ke(ri)){var Ai=_t({transform:ri,containerWidth:zt.width,iconWidth:zt.width});Et.push({tag:"g",attributes:l({},Ai.outer),children:[{tag:"g",attributes:l({},Ai.inner),children:[{tag:zt.icon.tag,children:zt.icon.children,attributes:l({},zt.icon.attributes,Ai.path)}]}]})}else Et.push(zt.icon);return{children:Et,attributes:It}}(jn),$r=da.attributes;return jn.children=da.children,jn.attributes=$r,Ai?function yi(tt){var It=tt.iconName,zt=tt.children,vi=tt.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:l({},tt.attributes,{id:!0===vi?"".concat(tt.prefix,"-").concat(xe.familyPrefix,"-").concat(It):vi}),children:zt}]}]}(jn):function Pt(tt){var Et=tt.children,It=tt.main,zt=tt.mask,ri=tt.attributes,vi=tt.styles,Mi=tt.transform;if(Ke(Mi)&&It.found&&!zt.found){var un={x:It.width/It.height/2,y:.5};ri.style=Xi(l({},vi,{"transform-origin":"".concat(un.x+Mi.x/16,"em ").concat(un.y+Mi.y/16,"em")}))}return[{tag:"svg",attributes:ri,children:Et}]}(jn)}var $i=function(Et,It,zt,ri){var Ki,un,gn,vi=Object.keys(Et),Mi=vi.length,Ai=void 0!==ri?function(Et,It){return function(zt,ri,vi,Mi){return Et.call(It,zt,ri,vi,Mi)}}(It,ri):It;for(void 0===zt?(Ki=1,gn=Et[vi[0]]):(Ki=0,gn=zt);Ki2&&void 0!==arguments[2]?arguments[2]:{},zt=It.skipHooks,ri=void 0!==zt&&zt,vi=Object.keys(Et).reduce(function(Mi,Ai){var Ki=Et[Ai];return Ki.icon?Mi[Ki.iconName]=Ki.icon:Mi[Ai]=Ki,Mi},{});"function"!=typeof lt.hooks.addPack||ri?lt.styles[tt]=l({},lt.styles[tt]||{},vi):lt.hooks.addPack(tt,vi),"fas"===tt&&Ln("fa",Et)}var _n=lt.styles,Pn=lt.shims,dn=function(){var Et=function(ri){return $i(_n,function(vi,Mi,Ai){return vi[Ai]=$i(Mi,ri,{}),vi},{})};Et(function(zt,ri,vi){return ri[3]&&(zt[ri[3]]=vi),zt}),Et(function(zt,ri,vi){var Mi=ri[2];return zt[vi]=vi,Mi.forEach(function(Ai){zt[Ai]=vi}),zt});var It="far"in _n;$i(Pn,function(zt,ri){var Mi=ri[1];return"far"===Mi&&!It&&(Mi="fas"),zt[ri[0]]={prefix:Mi,iconName:ri[2]},zt},{})};function Fa(tt,Et,It){if(tt&&tt[Et]&&tt[Et][It])return{prefix:Et,iconName:It,icon:tt[Et][It]}}function xr(tt){var Et=tt.tag,It=tt.attributes,zt=void 0===It?{}:It,ri=tt.children,vi=void 0===ri?[]:ri;return"string"==typeof tt?Ui(tt):"<".concat(Et," ").concat(function Di(tt){return Object.keys(tt||{}).reduce(function(Et,It){return Et+"".concat(It,'="').concat(Ui(tt[It]),'" ')},"").trim()}(zt),">").concat(vi.map(xr).join(""),"")}dn();function Nr(tt){this.name="MissingIcon",this.message=tt||"Icon unavailable",this.stack=(new Error).stack}(Nr.prototype=Object.create(Error.prototype)).constructor=Nr;var ca={fill:"currentColor"},Aa={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},ha=(l({},ca,{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"}),l({},Aa,{attributeName:"opacity"}));function Gr(tt){var Et=tt[0],It=tt[1],vi=N(tt.slice(4),1)[0];return{found:!0,width:Et,height:It,icon:Array.isArray(vi)?{tag:"g",attributes:{class:"".concat(xe.familyPrefix,"-").concat(Re.GROUP)},children:[{tag:"path",attributes:{class:"".concat(xe.familyPrefix,"-").concat(Re.SECONDARY),fill:"currentColor",d:vi[0]}},{tag:"path",attributes:{class:"".concat(xe.familyPrefix,"-").concat(Re.PRIMARY),fill:"currentColor",d:vi[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:vi}}}}function Yt(){xe.autoAddCss&&!Cr&&(function Bt(tt){if(tt&&a){var Et=oe.createElement("style");Et.setAttribute("type","text/css"),Et.innerHTML=tt;for(var It=oe.head.childNodes,zt=null,ri=It.length-1;ri>-1;ri--){var vi=It[ri],Mi=(vi.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(Mi)>-1&&(zt=vi)}return oe.head.insertBefore(Et,zt),tt}}(function ti(){var Et=I,It=xe.familyPrefix,zt=xe.replacementClass,ri='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\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: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\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-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\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-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\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.fad.fa-inverse {\n color: #fff;\n}';if("fa"!==It||zt!==Et){var vi=new RegExp("\\.".concat("fa","\\-"),"g"),Mi=new RegExp("\\--".concat("fa","\\-"),"g"),Ai=new RegExp("\\.".concat(Et),"g");ri=ri.replace(vi,".".concat(It,"-")).replace(Mi,"--".concat(It,"-")).replace(Ai,".".concat(zt))}return ri}()),Cr=!0)}function xi(tt,Et){return Object.defineProperty(tt,"abstract",{get:Et}),Object.defineProperty(tt,"html",{get:function(){return tt.abstract.map(function(zt){return xr(zt)})}}),Object.defineProperty(tt,"node",{get:function(){if(a){var zt=oe.createElement("div");return zt.innerHTML=tt.html,zt.children}}}),tt}function Bi(tt){var Et=tt.prefix,It=void 0===Et?"fa":Et,zt=tt.iconName;if(zt)return Fa(An.definitions,It,zt)||Fa(lt.styles,It,zt)}l({},ca,{cx:"256",cy:"364",r:"28"}),l({},Aa,{attributeName:"r",values:"28;14;28;28;14;28;"}),l({},ha,{values:"1;0;1;1;0;1;"}),l({},ca,{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"}),l({},ha,{values:"1;0;0;0;0;1;"}),l({},ca,{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"}),l({},ha,{values:"0;0;1;1;0;0;"});var An=new(function(){function tt(){(function y(tt,Et){if(!(tt instanceof Et))throw new TypeError("Cannot call a class as a function")})(this,tt),this.definitions={}}return function o(tt,Et,It){Et&&C(tt.prototype,Et),It&&C(tt,It)}(tt,[{key:"add",value:function(){for(var It=this,zt=arguments.length,ri=new Array(zt),vi=0;vi1&&void 0!==arguments[1]?arguments[1]:{},zt=(Et||{}).icon?Et:Bi(Et||{}),ri=It.mask;return ri&&(ri=(ri||{}).icon?ri:Bi(ri||{})),tt(zt,l({},It,{mask:ri}))}}(function(tt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},It=Et.transform,zt=void 0===It?At:It,ri=Et.symbol,vi=void 0!==ri&&ri,Mi=Et.mask,Ai=void 0===Mi?null:Mi,Ki=Et.maskId,un=void 0===Ki?null:Ki,gn=Et.title,En=void 0===gn?null:gn,zn=Et.titleId,Rr=void 0===zn?null:zn,Fr=Et.classes,wr=void 0===Fr?[]:Fr,Vn=Et.attributes,mr=void 0===Vn?{}:Vn,Hi=Et.styles,on=void 0===Hi?{}:Hi;if(tt){var nn=tt.prefix,kn=tt.iconName,jn=tt.icon;return xi(l({type:"icon"},tt),function(){return Yt(),xe.autoA11y&&(En?mr["aria-labelledby"]="".concat(xe.replacementClass,"-title-").concat(Rr||Li()):(mr["aria-hidden"]="true",mr.focusable="false")),Ni({icons:{main:Gr(jn),mask:Ai?Gr(Ai.icon):{found:!1,width:null,height:null,icon:{}}},prefix:nn,iconName:kn,transform:l({},At,zt),symbol:vi,title:En,maskId:un,titleId:Rr,extra:{attributes:mr,styles:on,classes:wr}})})}}),zs=m(2313);const fr=["*"],xt=tt=>{const Et={"fa-spin":tt.spin,"fa-pulse":tt.pulse,"fa-fw":tt.fixedWidth,"fa-border":tt.border,"fa-inverse":tt.inverse,"fa-layers-counter":tt.counter,"fa-flip-horizontal":"horizontal"===tt.flip||"both"===tt.flip,"fa-flip-vertical":"vertical"===tt.flip||"both"===tt.flip,[`fa-${tt.size}`]:null!==tt.size,[`fa-rotate-${tt.rotate}`]:null!==tt.rotate,[`fa-pull-${tt.pull}`]:null!==tt.pull,[`fa-stack-${tt.stackItemSize}`]:null!=tt.stackItemSize};return Object.keys(Et).map(It=>Et[It]?It:null).filter(It=>It)};let je=(()=>{class tt{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return tt.\u0275fac=function(It){return new(It||tt)},tt.\u0275prov=e.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})(),wt=(()=>{class tt{constructor(){this.definitions={}}addIcons(...It){for(const zt of It){zt.prefix in this.definitions||(this.definitions[zt.prefix]={}),this.definitions[zt.prefix][zt.iconName]=zt;for(const ri of zt.icon[2])"string"==typeof ri&&(this.definitions[zt.prefix][ri]=zt)}}addIconPacks(...It){for(const zt of It){const ri=Object.keys(zt).map(vi=>zt[vi]);this.addIcons(...ri)}}getIconDefinition(It,zt){return It in this.definitions&&zt in this.definitions[It]?this.definitions[It][zt]:null}}return tt.\u0275fac=function(It){return new(It||tt)},tt.\u0275prov=e.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})(),kt=(()=>{class tt{constructor(){this.stackItemSize="1x"}ngOnChanges(It){if("size"in It)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')}}return tt.\u0275fac=function(It){return new(It||tt)},tt.\u0275dir=e.lG2({type:tt,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[e.TTD]}),tt})(),Qt=(()=>{class tt{constructor(It,zt){this.renderer=It,this.elementRef=zt}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(It){"size"in It&&(null!=It.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${It.size.currentValue}`),null!=It.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${It.size.previousValue}`))}}return tt.\u0275fac=function(It){return new(It||tt)(e.Y36(e.Qsj),e.Y36(e.SBq))},tt.\u0275cmp=e.Xpm({type:tt,selectors:[["fa-stack"]],inputs:{size:"size"},features:[e.TTD],ngContentSelectors:fr,decls:1,vars:0,template:function(It,zt){1&It&&(e.F$t(),e.Hsn(0))},encapsulation:2}),tt})(),Xt=(()=>{class tt{constructor(It,zt,ri,vi,Mi){this.sanitizer=It,this.config=zt,this.iconLibrary=ri,this.stackItem=vi,this.classes=[],null!=Mi&&null==vi&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(It){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let zt=null;if(zt=null==this.icon?this.config.fallbackIcon:this.icon,It){const ri=this.findIconDefinition(zt);if(null!=ri){const vi=this.buildParams();this.renderIcon(ri,vi)}}}render(){this.ngOnChanges({})}findIconDefinition(It){const zt=((tt,Et)=>(tt=>void 0!==tt.prefix&&void 0!==tt.iconName)(tt)?tt:Array.isArray(tt)&&2===tt.length?{prefix:tt[0],iconName:tt[1]}:"string"==typeof tt?{prefix:Et,iconName:tt}:void 0)(It,this.config.defaultPrefix);if("icon"in zt)return zt;const ri=this.iconLibrary.getIconDefinition(zt.prefix,zt.iconName);return null!=ri?ri:((tt=>{throw new Error(`Could not find icon with iconName=${tt.iconName} and prefix=${tt.prefix} in the icon library.`)})(zt),null)}buildParams(){const It={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},zt="string"==typeof this.transform?Rn_transform(this.transform):this.transform;return{title:this.title,transform:zt,classes:[...xt(It),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(It,zt){const ri=_a(It,zt);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(ri.html.join("\n"))}}return tt.\u0275fac=function(It){return new(It||tt)(e.Y36(zs.H7),e.Y36(je),e.Y36(wt),e.Y36(kt,8),e.Y36(Qt,8))},tt.\u0275cmp=e.Xpm({type:tt,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(It,zt){2&It&&(e.Ikx("innerHTML",zt.renderedIconHTML,e.oJD),e.uIk("title",zt.title))},inputs:{icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[e.TTD],decls:0,vars:0,template:function(It,zt){},encapsulation:2}),tt})(),On=(()=>{class tt{}return tt.\u0275fac=function(It){return new(It||tt)},tt.\u0275mod=e.oAB({type:tt}),tt.\u0275inj=e.cJS({}),tt})()},6642:(Ve,Q,m)=>{"use strict";m.d(Q,{eX:()=>Be,sQ:()=>Ii,GW:()=>a,l4:()=>ze});var e=m(5620),t=m(6451),y=m(8306),C=m(7579),o=m(515),M=m(9646),l=m(2843),N=m(576);class D{constructor(Ee,Y,me){this.kind=Ee,this.value=Y,this.error=me,this.hasValue="N"===Ee}observe(Ee){return A(this,Ee)}do(Ee,Y,me){const{kind:De,value:et,error:$t}=this;return"N"===De?null==Ee?void 0:Ee(et):"E"===De?null==Y?void 0:Y($t):null==me?void 0:me()}accept(Ee,Y,me){var De;return(0,N.m)(null===(De=Ee)||void 0===De?void 0:De.next)?this.observe(Ee):this.do(Ee,Y,me)}toObservable(){const{kind:Ee,value:Y,error:me}=this,De="N"===Ee?(0,M.of)(Y):"E"===Ee?(0,l._)(()=>me):"C"===Ee?o.E:0;if(!De)throw new TypeError(`Unexpected notification kind ${Ee}`);return De}static createNext(Ee){return new D("N",Ee)}static createError(Ee){return new D("E",void 0,Ee)}static createComplete(){return D.completeNotification}}function A(Ze,Ee){var Y,me,De;const{kind:et,value:$t,error:Nt}=Ze;if("string"!=typeof et)throw new TypeError('Invalid notification, missing "kind"');"N"===et?null===(Y=Ee.next)||void 0===Y||Y.call(Ee,$t):"E"===et?null===(me=Ee.error)||void 0===me||me.call(Ee,Nt):null===(De=Ee.complete)||void 0===De||De.call(Ee)}D.completeNotification=new D("C");var O=m(4482),E=m(5403),w=m(8421);function Z(Ze,Ee,Y,me){return(0,O.e)((De,et)=>{let $t;Ee&&"function"!=typeof Ee?({duration:Y,element:$t,connector:me}=Ee):$t=Ee;const Nt=new Map,Jt=at=>{Nt.forEach(at),at(et)},ct=at=>Jt(st=>st.error(at)),Pe=new j(et,at=>{try{const st=Ze(at);let At=Nt.get(st);if(!At){Nt.set(st,At=me?me():new C.x);const li=function Fe(at,st){const At=new y.y(li=>{Pe.activeGroups++;const Bt=st.subscribe(li);return()=>{Bt.unsubscribe(),0==--Pe.activeGroups&&Pe.teardownAttempted&&Pe.unsubscribe()}});return At.key=at,At}(st,At);if(et.next(li),Y){const Bt=new E.Q(At,()=>{At.complete(),null==Bt||Bt.unsubscribe()},void 0,void 0,()=>Nt.delete(st));Pe.add((0,w.Xf)(Y(li)).subscribe(Bt))}}At.next($t?$t(at):at)}catch(st){ct(st)}},()=>Jt(at=>at.complete()),ct,()=>Nt.clear());De.subscribe(Pe)})}class j extends E.Q{constructor(){super(...arguments),this.activeGroups=0,this.teardownAttempted=!1}unsubscribe(){this.teardownAttempted=!0,0===this.activeGroups&&super.unsubscribe()}}var W=m(4004);function ie(Ze,Ee){return Ee?Y=>Y.pipe(ie((me,De)=>(0,w.Xf)(Ze(me,De)).pipe((0,W.U)((et,$t)=>Ee(me,et,De,$t))))):(0,O.e)((Y,me)=>{let De=0,et=null,$t=!1;Y.subscribe(new E.Q(me,Nt=>{et||(et=new E.Q(me,void 0,()=>{et=null,$t&&me.complete()}),(0,w.Xf)(Ze(Nt,De++)).subscribe(et))},()=>{$t=!0,!et&&me.complete()}))})}var _e=m(8502),ce=m(262),re=m(9300),de=m(5577),oe=m(5698),ae=m(5e3);const b={dispatch:!0,useEffectsErrorHandler:!0},i="__@ngrx/effects_create__";function a(Ze,Ee){const Y=Ze(),me=Object.assign(Object.assign({},b),Ee);return Object.defineProperty(Y,i,{value:me}),Y}function p(Ze){return Object.getOwnPropertyNames(Ze).filter(me=>!(!Ze[me]||!Ze[me].hasOwnProperty(i))&&Ze[me][i].hasOwnProperty("dispatch")).map(me=>Object.assign({propertyName:me},Ze[me][i]))}function u(Ze){return Object.getPrototypeOf(Ze)}const _="__@ngrx/effects__";function I(Ze){return(0,e.qC)(v,u)(Ze)}function v(Ze){return function x(Ze){return Ze.constructor.hasOwnProperty(_)}(Ze)?Ze.constructor[_]:[]}function U(Ze,Ee,Y){const me=u(Ze).constructor.name,De=function F(Ze){return[I,p].reduce((Y,me)=>Y.concat(me(Ze)),[])}(Ze).map(({propertyName:et,dispatch:$t,useEffectsErrorHandler:Nt})=>{const Jt="function"==typeof Ze[et]?Ze[et]():Ze[et],ct=Nt?Y(Jt,Ee):Jt;return!1===$t?ct.pipe((0,_e.l)()):ct.pipe(function P(){return(0,O.e)((Ze,Ee)=>{Ze.subscribe(new E.Q(Ee,Y=>{Ee.next(D.createNext(Y))},()=>{Ee.next(D.createComplete()),Ee.complete()},Y=>{Ee.next(D.createError(Y)),Ee.complete()}))})}()).pipe((0,W.U)(Fe=>({effect:Ze[et],notification:Fe,propertyName:et,sourceName:me,sourceInstance:Ze})))});return(0,t.T)(...De)}function Ce(Ze,Ee,Y=10){return Ze.pipe((0,ce.K)(me=>(Ee&&Ee.handleError(me),Y<=1?Ze:Ce(Ze,Ee,Y-1))))}let Be=(()=>{class Ze extends y.y{constructor(Y){super(),Y&&(this.source=Y)}lift(Y){const me=new Ze;return me.source=this,me.operator=Y,me}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(ae.LFG(e.Y$))},Ze.\u0275prov=ae.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})();function ze(...Ze){return(0,re.h)(Ee=>Ze.some(Y=>"string"==typeof Y?Y===Ee.type:Y.type===Ee.type))}function he(Ze){return Le(Ze,"ngrxOnInitEffects")}function Le(Ze,Ee){return Ze&&Ee in Ze&&"function"==typeof Ze[Ee]}const ke=new ae.OlP("@ngrx/effects Internal Root Guard"),q=new ae.OlP("@ngrx/effects User Provided Effects"),$=new ae.OlP("@ngrx/effects Internal Root Effects"),le=new ae.OlP("@ngrx/effects Root Effects"),xe=new ae.OlP("@ngrx/effects Internal Feature Effects"),Ue=new ae.OlP("@ngrx/effects Feature Effects"),lt=new ae.OlP("@ngrx/effects Effects Error Handler");let nt=(()=>{class Ze extends C.x{constructor(Y,me){super(),this.errorHandler=Y,this.effectsErrorHandler=me}addEffects(Y){this.next(Y)}toActions(){return this.pipe(Z(u),(0,de.z)(Y=>Y.pipe(Z(ft))),(0,de.z)(Y=>{const me=Y.pipe(ie(et=>function it(Ze,Ee){return Y=>{const me=U(Y,Ze,Ee);return function Re(Ze){return Le(Ze,"ngrxOnRunEffects")}(Y)?Y.ngrxOnRunEffects(me):me}}(this.errorHandler,this.effectsErrorHandler)(et)),(0,W.U)(et=>(function Ie(Ze,Ee){if("N"===Ze.notification.kind){const Y=Ze.notification.value;!function K(Ze){return"function"!=typeof Ze&&Ze&&Ze.type&&"string"==typeof Ze.type}(Y)&&Ee.handleError(new Error(`Effect ${function Me({propertyName:Ze,sourceInstance:Ee,sourceName:Y}){const me="function"==typeof Ee[Ze];return`"${Y}.${String(Ze)}${me?"()":""}"`}(Ze)} dispatched an invalid action: ${function we(Ze){try{return JSON.stringify(Ze)}catch(Ee){return Ze}}(Y)}`))}}(et,this.errorHandler),et.notification)),(0,re.h)(et=>"N"===et.kind&&null!=et.value),function ee(){return(0,O.e)((Ze,Ee)=>{Ze.subscribe(new E.Q(Ee,Y=>A(Y,Ee)))})}()),De=Y.pipe((0,oe.q)(1),(0,re.h)(he),(0,W.U)(et=>et.ngrxOnInitEffects()));return(0,t.T)(me,De)}))}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(ae.LFG(ae.qLn),ae.LFG(lt))},Ze.\u0275prov=ae.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})();function ft(Ze){return function Ge(Ze){return Le(Ze,"ngrxOnIdentifyEffects")}(Ze)?Ze.ngrxOnIdentifyEffects():""}let rt=(()=>{class Ze{constructor(Y,me){this.effectSources=Y,this.store=me,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(ae.LFG(nt),ae.LFG(e.yh))},Ze.\u0275prov=ae.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})();const Mt="@ngrx/effects/init";(0,e.PH)(Mt);let Ft=(()=>{class Ze{constructor(Y,me,De,et,$t,Nt,Jt){this.sources=Y,me.start(),et.forEach(ct=>Y.addEffects(ct)),De.dispatch({type:Mt})}addEffects(Y){this.sources.addEffects(Y)}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(ae.LFG(nt),ae.LFG(rt),ae.LFG(e.yh),ae.LFG(le),ae.LFG(e.cr,8),ae.LFG(e.CK,8),ae.LFG(ke,8))},Ze.\u0275mod=ae.oAB({type:Ze}),Ze.\u0275inj=ae.cJS({}),Ze})(),Vt=(()=>{class Ze{constructor(Y,me,De,et){me.forEach($t=>$t.forEach(Nt=>Y.addEffects(Nt)))}}return Ze.\u0275fac=function(Y){return new(Y||Ze)(ae.LFG(Ft),ae.LFG(Ue),ae.LFG(e.cr,8),ae.LFG(e.CK,8))},Ze.\u0275mod=ae.oAB({type:Ze}),Ze.\u0275inj=ae.cJS({}),Ze})(),Ii=(()=>{class Ze{static forFeature(Y=[]){return{ngModule:Vt,providers:[Y,{provide:xe,multi:!0,useValue:Y},{provide:q,multi:!0,useValue:[]},{provide:Ue,multi:!0,useFactory:jt,deps:[ae.zs3,xe,q]}]}}static forRoot(Y=[]){return{ngModule:Ft,providers:[{provide:lt,useValue:Ce},rt,nt,Be,Y,{provide:$,useValue:[Y]},{provide:ke,useFactory:Pi,deps:[[rt,new ae.FiY,new ae.tp0],[$,new ae.PiD]]},{provide:q,multi:!0,useValue:[]},{provide:le,useFactory:jt,deps:[ae.zs3,$,q]}]}}}return Ze.\u0275fac=function(Y){return new(Y||Ze)},Ze.\u0275mod=ae.oAB({type:Ze}),Ze.\u0275inj=ae.cJS({}),Ze})();function jt(Ze,Ee,Y){const me=[];for(const De of Ee)me.push(...De);for(const De of Y)me.push(...De);return function ei(Ze,Ee){return Ee.map(Y=>Ze.get(Y))}(Ze,me)}function Pi(Ze,Ee){if((1!==Ee.length||0!==Ee[0].length)&&Ze)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},9565:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{FT:()=>StoreDevtoolsModule});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5e3),_ngrx_store__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5620),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(515),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8306),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(6451),rxjs__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(233),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(4707),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(3099),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(4351),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(2722),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(5684),rxjs_operators__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(5363),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(1365),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5026);class StoreDevtoolsConfig{constructor(){this.maxAge=!1}}const STORE_DEVTOOLS_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Options"),INITIAL_OPTIONS=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Initial Config");function noMonitor(){return null}const DEFAULT_NAME="NgRx Store DevTools";function createConfig(Ve){const Q={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,autoPause:!1,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0}},m="function"==typeof Ve?Ve():Ve,y=Object.assign({},Q,{features:m.features||!!m.logOnly&&{pause:!0,export:!0,test:!0}||Q.features},m);if(y.maxAge&&y.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${y.maxAge}`);return y}const PERFORM_ACTION="PERFORM_ACTION",REFRESH="REFRESH",RESET="RESET",ROLLBACK="ROLLBACK",COMMIT="COMMIT",SWEEP="SWEEP",TOGGLE_ACTION="TOGGLE_ACTION",SET_ACTIONS_ACTIVE="SET_ACTIONS_ACTIVE",JUMP_TO_STATE="JUMP_TO_STATE",JUMP_TO_ACTION="JUMP_TO_ACTION",IMPORT_STATE="IMPORT_STATE",LOCK_CHANGES="LOCK_CHANGES",PAUSE_RECORDING="PAUSE_RECORDING";class PerformAction{constructor(Q,m){if(this.action=Q,this.timestamp=m,this.type=PERFORM_ACTION,void 0===Q.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}}class Refresh{constructor(){this.type=REFRESH}}class Reset{constructor(Q){this.timestamp=Q,this.type=RESET}}class Rollback{constructor(Q){this.timestamp=Q,this.type=ROLLBACK}}class Commit{constructor(Q){this.timestamp=Q,this.type=COMMIT}}class Sweep{constructor(){this.type=SWEEP}}class ToggleAction{constructor(Q){this.id=Q,this.type=TOGGLE_ACTION}}class SetActionsActive{constructor(Q,m,e=!0){this.start=Q,this.end=m,this.active=e,this.type=SET_ACTIONS_ACTIVE}}class JumpToState{constructor(Q){this.index=Q,this.type=JUMP_TO_STATE}}class JumpToAction{constructor(Q){this.actionId=Q,this.type=JUMP_TO_ACTION}}class ImportState{constructor(Q){this.nextLiftedState=Q,this.type=IMPORT_STATE}}class LockChanges{constructor(Q){this.status=Q,this.type=LOCK_CHANGES}}class PauseRecording{constructor(Q){this.status=Q,this.type=PAUSE_RECORDING}}function difference(Ve,Q){return Ve.filter(m=>Q.indexOf(m)<0)}function unliftState(Ve){const{computedStates:Q,currentStateIndex:m}=Ve;if(m>=Q.length){const{state:t}=Q[Q.length-1];return t}const{state:e}=Q[m];return e}function unliftAction(Ve){return Ve.actionsById[Ve.nextActionId-1]}function liftAction(Ve){return new PerformAction(Ve,+Date.now())}function sanitizeActions(Ve,Q){return Object.keys(Q).reduce((m,e)=>{const t=Number(e);return m[t]=sanitizeAction(Ve,Q[t],t),m},{})}function sanitizeAction(Ve,Q,m){return Object.assign(Object.assign({},Q),{action:Ve(Q.action,m)})}function sanitizeStates(Ve,Q){return Q.map((m,e)=>({state:sanitizeState(Ve,m.state,e),error:m.error}))}function sanitizeState(Ve,Q,m){return Ve(Q,m)}function shouldFilterActions(Ve){return Ve.predicate||Ve.actionsSafelist||Ve.actionsBlocklist}function filterLiftedState(Ve,Q,m,e){const t=[],y={},C=[];return Ve.stagedActionIds.forEach((o,M)=>{const l=Ve.actionsById[o];!l||M&&isActionFiltered(Ve.computedStates[M],l,Q,m,e)||(y[o]=l,t.push(o),C.push(Ve.computedStates[M]))}),Object.assign(Object.assign({},Ve),{stagedActionIds:t,actionsById:y,computedStates:C})}function isActionFiltered(Ve,Q,m,e,t){const y=m&&!m(Ve,Q.action),C=e&&!Q.action.type.match(e.map(M=>escapeRegExp(M)).join("|")),o=t&&Q.action.type.match(t.map(M=>escapeRegExp(M)).join("|"));return y||C||o}function escapeRegExp(Ve){return Ve.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(Ve,Q,m,e,t){if(e)return{state:m,error:"Interrupted by an error up the chain"};let C,y=m;try{y=Ve(m,Q)}catch(o){C=o.toString(),t.handleError(o)}return{state:y,error:C}}function recomputeStates(Ve,Q,m,e,t,y,C,o,M){if(Q>=Ve.length&&Ve.length===y.length)return Ve;const l=Ve.slice(0,Q),N=y.length-(M?1:0);for(let s=Q;s-1?O:computeNextEntry(m,A,E,P,o);l.push(Z)}return M&&l.push(Ve[Ve.length-1]),l}function liftInitialState(Ve,Q){return{monitorState:Q(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:Ve,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(Ve,Q,m,e,t={}){return y=>(C,o)=>{let{monitorState:M,actionsById:l,nextActionId:N,stagedActionIds:s,skippedActionIds:D,committedState:A,currentStateIndex:O,computedStates:E,isLocked:P,isPaused:w}=C||Q;function Z(ie){let ee=ie,_e=s.slice(1,ee+1);for(let ce=0;ce<_e.length;ce++){if(E[ce+1].error){ee=ce,_e=s.slice(1,ee+1);break}delete l[_e[ce]]}D=D.filter(ce=>-1===_e.indexOf(ce)),s=[0,...s.slice(ee+1)],A=E[ee].state,E=E.slice(ee),O=O>ee?O-ee:0}function j(){l={0:liftAction(INIT_ACTION)},N=1,s=[0],D=[],A=E[O].state,O=0,E=[]}C||(l=Object.create(l));let W=0;switch(o.type){case LOCK_CHANGES:P=o.status,W=1/0;break;case PAUSE_RECORDING:w=o.status,w?(s=[...s,N],l[N]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),N++,W=s.length-1,E=E.concat(E[E.length-1]),O===s.length-2&&O++,W=1/0):j();break;case RESET:l={0:liftAction(INIT_ACTION)},N=1,s=[0],D=[],A=Ve,O=0,E=[];break;case COMMIT:j();break;case ROLLBACK:l={0:liftAction(INIT_ACTION)},N=1,s=[0],D=[],O=0,E=[];break;case TOGGLE_ACTION:{const{id:ie}=o;D=-1===D.indexOf(ie)?[ie,...D]:D.filter(_e=>_e!==ie),W=s.indexOf(ie);break}case SET_ACTIONS_ACTIVE:{const{start:ie,end:ee,active:_e}=o,ce=[];for(let re=ie;ret.maxAge&&(E=recomputeStates(E,W,y,A,l,s,D,m,w),Z(s.length-t.maxAge),W=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb:if(E.filter(ee=>ee.error).length>0)W=0,t.maxAge&&s.length>t.maxAge&&(E=recomputeStates(E,W,y,A,l,s,D,m,w),Z(s.length-t.maxAge),W=1/0);else{if(!w&&!P){O===s.length-1&&O++;const ee=N++;l[ee]=new PerformAction(o,+Date.now()),s=[...s,ee],W=s.length-1,E=recomputeStates(E,W,y,A,l,s,D,m,w)}E=E.map(ee=>Object.assign(Object.assign({},ee),{state:y(ee.state,RECOMPUTE_ACTION)})),O=s.length-1,t.maxAge&&s.length>t.maxAge&&Z(s.length-t.maxAge),W=1/0}break;default:W=1/0}return E=recomputeStates(E,W,y,A,l,s,D,m,w),M=e(M,o),{monitorState:M,actionsById:l,nextActionId:N,stagedActionIds:s,skippedActionIds:D,committedState:A,currentStateIndex:O,computedStates:E,isLocked:P,isPaused:w}}}let DevtoolsDispatcher=(()=>{class Ve extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO{}return Ve.\u0275fac=function(){let Q;return function(e){return(Q||(Q=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(Ve)))(e||Ve)}}(),Ve.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();const ExtensionActionTypes={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},REDUX_DEVTOOLS_EXTENSION=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Redux Devtools Extension");let DevtoolsExtension=(()=>{class DevtoolsExtension{constructor(Ve,Q,m){this.config=Q,this.dispatcher=m,this.devtoolsExtension=Ve,this.createActionStreams()}notify(Ve,Q){if(this.devtoolsExtension)if(Ve.type===PERFORM_ACTION){if(Q.isLocked||Q.isPaused)return;const m=unliftState(Q);if(shouldFilterActions(this.config)&&isActionFiltered(m,Ve,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const e=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,m,Q.currentStateIndex):m,t=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,Ve,Q.nextActionId):Ve;this.sendToReduxDevtools(()=>this.extensionConnection.send(t,e))}else{const m=Object.assign(Object.assign({},Q),{stagedActionIds:Q.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,Q.actionsById):Q.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,Q.computedStates):Q.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,m,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_3__.y(Ve=>{const Q=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=Q,Q.init(),Q.subscribe(m=>Ve.next(m)),Q.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_2__.E}createActionStreams(){const Ve=this.createChangesObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.B)()),Q=Ve.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(o=>o.type===ExtensionActionTypes.START)),m=Ve.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(o=>o.type===ExtensionActionTypes.STOP)),e=Ve.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(o=>o.type===ExtensionActionTypes.DISPATCH),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(o=>this.unwrapAction(o.payload)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.b)(o=>o.type===IMPORT_STATE?this.dispatcher.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(M=>M.type===_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.V)(1e3),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.b)(1e3),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(()=>o),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.K)(()=>(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(o)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.q)(1)):(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(o))),y=Ve.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(o=>o.type===ExtensionActionTypes.ACTION),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(o=>this.unwrapAction(o.payload))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(m)),C=e.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(m));this.start$=Q.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(m)),this.actions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>y)),this.liftedActions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>C))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(Ve){var Q;const m={name:Ve.name,features:Ve.features,serialize:Ve.serialize,autoPause:null!==(Q=Ve.autoPause)&&void 0!==Q&&Q};return!1!==Ve.maxAge&&(m.maxAge=Ve.maxAge),m}sendToReduxDevtools(Ve){try{Ve()}catch(Q){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",Q)}}}return DevtoolsExtension.\u0275fac=function Ve(Q){return new(Q||DevtoolsExtension)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(REDUX_DEVTOOLS_EXTENSION),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(STORE_DEVTOOLS_CONFIG),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsDispatcher))},DevtoolsExtension.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:DevtoolsExtension,factory:DevtoolsExtension.\u0275fac}),DevtoolsExtension})(),StoreDevtools=(()=>{class Ve{constructor(m,e,t,y,C,o,M,l){const N=liftInitialState(M,l.monitor),s=liftReducerWith(M,N,o,l.monitor,l),D=(0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)(e.asObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.T)(1)),y.actions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(liftAction)),m,y.liftedActions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.Q)(rxjs__WEBPACK_IMPORTED_MODULE_18__.N)),A=t.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(s)),O=new rxjs__WEBPACK_IMPORTED_MODULE_19__.t(1),E=D.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.M)(A),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.R)(({state:j},[W,ie])=>{let ee=ie(j,W);return W.type!==PERFORM_ACTION&&shouldFilterActions(l)&&(ee=filterLiftedState(ee,l.predicate,l.actionsSafelist,l.actionsBlocklist)),y.notify(W,ee),{state:ee,action:W}},{state:N,action:null})).subscribe(({state:j,action:W})=>{O.next(j),W.type===PERFORM_ACTION&&C.next(W.action)}),P=y.start$.subscribe(()=>{this.refresh()}),w=O.asObservable(),Z=w.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(unliftState));this.extensionStartSubscription=P,this.stateSubscription=E,this.dispatcher=m,this.liftedState=w,this.state=Z}dispatch(m){this.dispatcher.next(m)}next(m){this.dispatcher.next(m)}error(m){}complete(){}performAction(m){this.dispatch(new PerformAction(m,+Date.now()))}refresh(){this.dispatch(new Refresh)}reset(){this.dispatch(new Reset(+Date.now()))}rollback(){this.dispatch(new Rollback(+Date.now()))}commit(){this.dispatch(new Commit(+Date.now()))}sweep(){this.dispatch(new Sweep)}toggleAction(m){this.dispatch(new ToggleAction(m))}jumpToAction(m){this.dispatch(new JumpToAction(m))}jumpToState(m){this.dispatch(new JumpToState(m))}importState(m){this.dispatch(new ImportState(m))}lockChanges(m){this.dispatch(new LockChanges(m))}pauseRecording(m){this.dispatch(new PauseRecording(m))}}return Ve.\u0275fac=function(m){return new(m||Ve)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsDispatcher),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.n$),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsExtension),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.Y$),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_0__.qLn),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.Y6),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(STORE_DEVTOOLS_CONFIG))},Ve.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();const IS_EXTENSION_OR_MONITOR_PRESENT=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(Ve,Q){return Boolean(Ve)||Q.monitor!==noMonitor}function createReduxDevtoolsExtension(){const Ve="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&void 0!==window[Ve]?window[Ve]:null}function createStateObservable(Ve){return Ve.state}let StoreDevtoolsModule=(()=>{class Ve{static instrument(m={}){return{ngModule:Ve,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:m},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.FR,deps:[StoreDevtools],useFactory:createStateObservable},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.mK,useExisting:DevtoolsDispatcher}]}}}return Ve.\u0275fac=function(m){return new(m||Ve)},Ve.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:Ve}),Ve.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({}),Ve})()},5620:(Ve,Q,m)=>{"use strict";m.d(Q,{UO:()=>ie,qg:()=>W,Y6:()=>re,mK:()=>we,n$:()=>Me,Y$:()=>Re,FR:()=>he,yh:()=>$,CK:()=>qe,Aw:()=>yt,cr:()=>ve,wb:()=>z,qC:()=>ze,PH:()=>P,ZF:()=>Jt,Lq:()=>qi,P1:()=>et,on:()=>Si,Ky:()=>w});var e=m(5e3),t=m(1135),y=m(8306),C=m(7579),o=m(233),M=m(4004),N=m(5363),s=m(1365),D=m(5026),A=m(1884);const O={};function P(ot,Kt){if(O[ot]=(O[ot]||0)+1,"function"==typeof Kt)return j(ot,(...Lt)=>Object.assign(Object.assign({},Kt(...Lt)),{type:ot}));switch(Kt?Kt._as:"empty"){case"empty":return j(ot,()=>({type:ot}));case"props":return j(ot,Lt=>Object.assign(Object.assign({},Lt),{type:ot}));default:throw new Error("Unexpected config.")}}function w(){return{_as:"props",_p:void 0}}function j(ot,Kt){return Object.defineProperty(Kt,"type",{value:ot,writable:!1})}const W="@ngrx/store/init";let ie=(()=>{class ot extends t.X{constructor(){super({type:W})}next(gt){if("function"==typeof gt)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(void 0===gt)throw new TypeError("Actions must be objects");if(void 0===gt.type)throw new TypeError("Actions must have a type property");super.next(gt)}complete(){}ngOnDestroy(){super.complete()}}return ot.\u0275fac=function(gt){return new(gt||ot)},ot.\u0275prov=e.Yz7({token:ot,factory:ot.\u0275fac}),ot})();const ee=[ie],_e=new e.OlP("@ngrx/store Internal Root Guard"),ce=new e.OlP("@ngrx/store Internal Initial State"),re=new e.OlP("@ngrx/store Initial State"),de=new e.OlP("@ngrx/store Reducer Factory"),oe=new e.OlP("@ngrx/store Internal Reducer Factory Provider"),ae=new e.OlP("@ngrx/store Initial Reducers"),b=new e.OlP("@ngrx/store Internal Initial Reducers"),i=new e.OlP("@ngrx/store Store Features"),a=new e.OlP("@ngrx/store Internal Store Reducers"),p=new e.OlP("@ngrx/store Internal Feature Reducers"),u=new e.OlP("@ngrx/store Internal Feature Configs"),_=new e.OlP("@ngrx/store Internal Store Features"),L=new e.OlP("@ngrx/store Internal Feature Reducers Token"),I=new e.OlP("@ngrx/store Feature Reducers"),x=new e.OlP("@ngrx/store User Provided Meta Reducers"),r=new e.OlP("@ngrx/store Meta Reducers"),v=new e.OlP("@ngrx/store Internal Resolved Meta Reducers"),G=new e.OlP("@ngrx/store User Runtime Checks Config"),F=new e.OlP("@ngrx/store Internal User Runtime Checks Config"),U=new e.OlP("@ngrx/store Internal Runtime Checks"),ye=new e.OlP("@ngrx/store Check if Action types are unique");function Ce(ot,Kt={}){const gt=Object.keys(ot),Lt={};for(let Ci=0;CiCi(ui),gt(Kt))}}function Ie(ot,Kt){return Array.isArray(Kt)&&Kt.length>0&&(ot=ze.apply(null,[...Kt,ot])),(gt,Lt)=>{const ui=ot(gt);return(Ci,Yi)=>ui(Ci=void 0===Ci?Lt:Ci,Yi)}}class Me extends y.y{}class we extends ie{}const z="@ngrx/store/update-reducers";let Ge=(()=>{class ot extends t.X{constructor(gt,Lt,ui,Ci){super(Ci(ui,Lt)),this.dispatcher=gt,this.initialState=Lt,this.reducers=ui,this.reducerFactory=Ci}get currentReducers(){return this.reducers}addFeature(gt){this.addFeatures([gt])}addFeatures(gt){const Lt=gt.reduce((ui,{reducers:Ci,reducerFactory:Yi,metaReducers:$i,initialState:Cn,key:Ln})=>{const _n="function"==typeof Ci?function K(ot){const Kt=Array.isArray(ot)&&ot.length>0?ze(...ot):gt=>gt;return(gt,Lt)=>(gt=Kt(gt),(ui,Ci)=>gt(ui=void 0===ui?Lt:ui,Ci))}($i)(Ci,Cn):Ie(Yi,$i)(Ci,Cn);return ui[Ln]=_n,ui},{});this.addReducers(Lt)}removeFeature(gt){this.removeFeatures([gt])}removeFeatures(gt){this.removeReducers(gt.map(Lt=>Lt.key))}addReducer(gt,Lt){this.addReducers({[gt]:Lt})}addReducers(gt){this.reducers=Object.assign(Object.assign({},this.reducers),gt),this.updateReducers(Object.keys(gt))}removeReducer(gt){this.removeReducers([gt])}removeReducers(gt){gt.forEach(Lt=>{this.reducers=function Be(ot,Kt){return Object.keys(ot).filter(gt=>gt!==Kt).reduce((gt,Lt)=>Object.assign(gt,{[Lt]:ot[Lt]}),{})}(this.reducers,Lt)}),this.updateReducers(gt)}updateReducers(gt){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:z,features:gt})}ngOnDestroy(){this.complete()}}return ot.\u0275fac=function(gt){return new(gt||ot)(e.LFG(we),e.LFG(re),e.LFG(ae),e.LFG(de))},ot.\u0275prov=e.Yz7({token:ot,factory:ot.\u0275fac}),ot})();const vt=[Ge,{provide:Me,useExisting:Ge},{provide:we,useExisting:ie}];let Re=(()=>{class ot extends C.x{ngOnDestroy(){this.complete()}}return ot.\u0275fac=function(){let Kt;return function(Lt){return(Kt||(Kt=e.n5z(ot)))(Lt||ot)}}(),ot.\u0275prov=e.Yz7({token:ot,factory:ot.\u0275fac}),ot})();const Ne=[Re];class he extends y.y{}let Le=(()=>{class ot extends t.X{constructor(gt,Lt,ui,Ci){super(Ci);const Ln=gt.pipe((0,N.Q)(o.N)).pipe((0,s.M)(Lt)).pipe((0,D.R)(ke,{state:Ci}));this.stateSubscription=Ln.subscribe(({state:_n,action:Pn})=>{this.next(_n),ui.next(Pn)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return ot.INIT=W,ot.\u0275fac=function(gt){return new(gt||ot)(e.LFG(ie),e.LFG(Me),e.LFG(Re),e.LFG(re))},ot.\u0275prov=e.Yz7({token:ot,factory:ot.\u0275fac}),ot})();function ke(ot={state:void 0},[Kt,gt]){const{state:Lt}=ot;return{state:gt(Lt,Kt),action:Kt}}const q=[Le,{provide:he,useExisting:Le}];let $=(()=>{class ot extends y.y{constructor(gt,Lt,ui){super(),this.actionsObserver=Lt,this.reducerManager=ui,this.source=gt}select(gt,...Lt){return xe.call(null,gt,...Lt)(this)}lift(gt){const Lt=new ot(this,this.actionsObserver,this.reducerManager);return Lt.operator=gt,Lt}dispatch(gt){this.actionsObserver.next(gt)}next(gt){this.actionsObserver.next(gt)}error(gt){this.actionsObserver.error(gt)}complete(){this.actionsObserver.complete()}addReducer(gt,Lt){this.reducerManager.addReducer(gt,Lt)}removeReducer(gt){this.reducerManager.removeReducer(gt)}}return ot.\u0275fac=function(gt){return new(gt||ot)(e.LFG(he),e.LFG(ie),e.LFG(Ge))},ot.\u0275prov=e.Yz7({token:ot,factory:ot.\u0275fac}),ot})();const le=[$];function xe(ot,Kt,...gt){return function(ui){let Ci;if("string"==typeof ot){const Yi=[Kt,...gt].filter(Boolean);Ci=ui.pipe(function l(...ot){const Kt=ot.length;if(0===Kt)throw new Error("list of properties cannot be empty.");return(0,M.U)(gt=>{let Lt=gt;for(let ui=0;uiot(Yi,Kt)))}return Ci.pipe((0,A.x)())}}const lt="https://ngrx.io/guide/store/configuration/runtime-checks";function nt(ot){return void 0===ot}function ft(ot){return null===ot}function it(ot){return Array.isArray(ot)}function Ft(ot){return"object"==typeof ot&&null!==ot}function jt(ot){return"function"==typeof ot}function Ee(ot,Kt){return ot===Kt}function Y(ot,Kt,gt){for(let Lt=0;Lt_n.release&&"function"==typeof _n.release),$i=ot(function(..._n){return Ci.apply(null,_n)}),Cn=De(function(_n,Pn){return Kt.stateFn.apply(null,[_n,ui,Pn,$i])});return Object.assign(Cn.memoized,{release:function Ln(){Cn.reset(),$i.reset(),Yi.forEach(_n=>_n.release())},projector:$i.memoized,setResult:Cn.setResult,clearResult:Cn.clearResult})}}(De)(...ot)}function $t(ot,Kt,gt,Lt){if(void 0===gt){const Ci=Kt.map(Yi=>Yi(ot));return Lt.memoized.apply(null,Ci)}const ui=Kt.map(Ci=>Ci(ot,gt));return Lt.memoized.apply(null,[...ui,gt])}function Jt(ot){return et(Kt=>{const gt=Kt[ot];return(0,e.X6Q)()&&!(ot in Kt)&&console.warn(`@ngrx/store: The feature name "${ot}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${ot}', ...) or StoreModule.forFeature('${ot}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),gt},Kt=>Kt)}function st(ot){Object.freeze(ot);const Kt=jt(ot);return Object.getOwnPropertyNames(ot).forEach(gt=>{if(!gt.startsWith("\u0275")&&function Pi(ot,Kt){return Object.prototype.hasOwnProperty.call(ot,Kt)}(ot,gt)&&(!Kt||"caller"!==gt&&"callee"!==gt&&"arguments"!==gt)){const Lt=ot[gt];(Ft(Lt)||jt(Lt))&&!Object.isFrozen(Lt)&&st(Lt)}}),ot}function li(ot,Kt=[]){return(nt(ot)||ft(ot))&&0===Kt.length?{path:["root"],value:ot}:Object.keys(ot).reduce((Lt,ui)=>{if(Lt)return Lt;const Ci=ot[ui];return function ei(ot){return jt(ot)&&ot.hasOwnProperty("\u0275cmp")}(Ci)?Lt:!(nt(Ci)||ft(Ci)||function Zt(ot){return"number"==typeof ot}(Ci)||function Mt(ot){return"boolean"==typeof ot}(Ci)||function rt(ot){return"string"==typeof ot}(Ci)||it(Ci))&&(function Ii(ot){if(!function Vt(ot){return Ft(ot)&&!it(ot)}(ot))return!1;const Kt=Object.getPrototypeOf(ot);return Kt===Object.prototype||null===Kt}(Ci)?li(Ci,[...Kt,ui]):{path:[...Kt,ui],value:Ci})},!1)}function Bt(ot,Kt){if(!1===ot)return;const gt=ot.path.join("."),Lt=new Error(`Detected unserializable ${Kt} at "${gt}". ${lt}#strict${Kt}serializability`);throw Lt.value=ot.value,Lt.unserializablePath=gt,Lt}function Li(ot){return(0,e.X6Q)()?Object.assign({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},ot):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function si({strictActionSerializability:ot,strictStateSerializability:Kt}){return gt=>ot||Kt?function At(ot,Kt){return function(gt,Lt){Kt.action(Lt)&&Bt(li(Lt),"action");const ui=ot(gt,Lt);return Kt.state()&&Bt(li(ui),"state"),ui}}(gt,{action:Lt=>ot&&!sn(Lt),state:()=>Kt}):gt}function ci({strictActionImmutability:ot,strictStateImmutability:Kt}){return gt=>ot||Kt?function at(ot,Kt){return function(gt,Lt){const ui=Kt.action(Lt)?st(Lt):Lt,Ci=ot(gt,ui);return Kt.state()?st(Ci):Ci}}(gt,{action:Lt=>ot&&!sn(Lt),state:()=>Kt}):gt}function sn(ot){return ot.type.startsWith("@ngrx")}function Ui({strictActionWithinNgZone:ot}){return Kt=>ot?function Rt(ot,Kt){return function(gt,Lt){if(Kt.action(Lt)&&!e.R0b.isInAngularZone())throw new Error(`Action '${Lt.type}' running outside NgZone. ${lt}#strictactionwithinngzone`);return ot(gt,Lt)}}(Kt,{action:gt=>ot&&!sn(gt)}):Kt}function Di(ot){return[{provide:F,useValue:ot},{provide:G,useFactory:Ke,deps:[F]},{provide:U,deps:[G],useFactory:Li},{provide:r,multi:!0,deps:[U],useFactory:ci},{provide:r,multi:!0,deps:[U],useFactory:si},{provide:r,multi:!0,deps:[U],useFactory:Ui}]}function Xi(){return[{provide:ye,multi:!0,deps:[U],useFactory:_t}]}function Ke(ot){return ot}function _t(ot){if(!ot.strictActionTypeUniqueness)return;const Kt=Object.entries(O).filter(([,gt])=>gt>1).map(([gt])=>gt);if(Kt.length)throw new Error(`Action types are registered more than once, ${Kt.map(gt=>`"${gt}"`).join(", ")}. ${lt}#strictactiontypeuniqueness`)}let ve=(()=>{class ot{constructor(gt,Lt,ui,Ci,Yi,$i){}}return ot.\u0275fac=function(gt){return new(gt||ot)(e.LFG(ie),e.LFG(Me),e.LFG(Re),e.LFG($),e.LFG(_e,8),e.LFG(ye,8))},ot.\u0275mod=e.oAB({type:ot}),ot.\u0275inj=e.cJS({}),ot})(),qe=(()=>{class ot{constructor(gt,Lt,ui,Ci,Yi){this.features=gt,this.featureReducers=Lt,this.reducerManager=ui;const $i=gt.map((Cn,Ln)=>{const Pn=Lt.shift()[Ln];return Object.assign(Object.assign({},Cn),{reducers:Pn,initialState:Pt(Cn.initialState)})});ui.addFeatures($i)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return ot.\u0275fac=function(gt){return new(gt||ot)(e.LFG(_),e.LFG(I),e.LFG(Ge),e.LFG(ve),e.LFG(ye,8))},ot.\u0275mod=e.oAB({type:ot}),ot.\u0275inj=e.cJS({}),ot})(),yt=(()=>{class ot{static forRoot(gt,Lt={}){return{ngModule:ve,providers:[{provide:_e,useFactory:Ni,deps:[[$,new e.FiY,new e.tp0]]},{provide:ce,useValue:Lt.initialState},{provide:re,useFactory:Pt,deps:[ce]},{provide:b,useValue:gt},{provide:a,useExisting:gt instanceof e.OlP?gt:b},{provide:ae,deps:[e.zs3,b,[new e.tBr(a)]],useFactory:fe},{provide:x,useValue:Lt.metaReducers?Lt.metaReducers:[]},{provide:v,deps:[r,x],useFactory:yi},{provide:oe,useValue:Lt.reducerFactory?Lt.reducerFactory:Ce},{provide:de,deps:[oe,v],useFactory:Ie},ee,vt,Ne,q,le,Di(Lt.runtimeChecks),Xi()]}}static forFeature(gt,Lt,ui={}){return{ngModule:qe,providers:[{provide:u,multi:!0,useValue:gt instanceof Object?{}:ui},{provide:i,multi:!0,useValue:{key:gt instanceof Object?gt.name:gt,reducerFactory:ui instanceof e.OlP||!ui.reducerFactory?Ce:ui.reducerFactory,metaReducers:ui instanceof e.OlP||!ui.metaReducers?[]:ui.metaReducers,initialState:ui instanceof e.OlP||!ui.initialState?void 0:ui.initialState}},{provide:_,deps:[e.zs3,u,i],useFactory:Je},{provide:p,multi:!0,useValue:gt instanceof Object?gt.reducer:Lt},{provide:L,multi:!0,useExisting:Lt instanceof e.OlP?Lt:p},{provide:I,multi:!0,deps:[e.zs3,p,[new e.tBr(L)]],useFactory:St},Xi()]}}}return ot.\u0275fac=function(gt){return new(gt||ot)},ot.\u0275mod=e.oAB({type:ot}),ot.\u0275inj=e.cJS({}),ot})();function fe(ot,Kt){return Kt instanceof e.OlP?ot.get(Kt):Kt}function Je(ot,Kt,gt){return gt.map((Lt,ui)=>{if(Kt[ui]instanceof e.OlP){const Ci=ot.get(Kt[ui]);return{key:Lt.key,reducerFactory:Ci.reducerFactory?Ci.reducerFactory:Ce,metaReducers:Ci.metaReducers?Ci.metaReducers:[],initialState:Ci.initialState}}return Lt})}function St(ot,Kt){return Kt.map(Lt=>Lt instanceof e.OlP?ot.get(Lt):Lt)}function Pt(ot){return"function"==typeof ot?ot():ot}function yi(ot,Kt){return ot.concat(Kt)}function Ni(ot){if(ot)throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature() instead.");return"guarded"}function Si(...ot){return{reducer:ot.pop(),types:ot.map(Lt=>Lt.type)}}function qi(ot,...Kt){const gt=new Map;for(const Lt of Kt)for(const ui of Lt.types){const Ci=gt.get(ui);gt.set(ui,Ci?($i,Cn)=>Lt.reducer(Ci($i,Cn),Cn):Lt.reducer)}return function(Lt=ot,ui){const Ci=gt.get(ui.type);return Ci?Ci(Lt,ui):Lt}}},159:(Ve,Q,m)=>{"use strict";m.d(Q,{uU:()=>s,OF:()=>D});var e=m(5e3),t=m(9808),y=m(655),C=m(3259);function o(A,O){if(1&A&&e._UZ(0,"canvas",1),2&A){const E=e.oxw();e.Q6J("qrCode",E.value)("qrCodeErrorCorrectionLevel",E.errorCorrectionLevel)("qrCodeCenterImageSrc",E.centerImageSrc)("qrCodeCenterImageWidth",E.centerImageSize)("qrCodeCenterImageHeight",E.centerImageSize)("qrCodeMargin",E.margin)("width",E.size)("height",E.size)("darkColor",E.darkColor)("lightColor",E.lightColor)}}const M=/^#(?:[0-9a-fA-F]{3,4}){1,2}$/;let l=(()=>{class A{constructor(E){this.viewContainerRef=E,this.errorCorrectionLevel=A.DEFAULT_ERROR_CORRECTION_LEVEL,this.darkColor="#000000FF",this.lightColor="#FFFFFFFF",this.margin=16}ngOnChanges(){var E,P;return(0,y.mG)(this,void 0,void 0,function*(){if(!this.value)return;this.version&&this.version>40?(console.warn("[qrCode] max version is 40, clamping"),this.version=40):this.version&&this.version<1?(console.warn("[qrCode] min version is 1, clamping"),this.version=1):void 0!==this.version&&isNaN(this.version)&&(console.warn("[qrCode] version should be set to a number, defaulting to auto"),this.version=void 0);const w=this.viewContainerRef.element.nativeElement;if(!w)return;const Z=w.getContext("2d");Z&&Z.clearRect(0,0,Z.canvas.width,Z.canvas.height);const j=null!==(E=this.errorCorrectionLevel)&&void 0!==E?E:A.DEFAULT_ERROR_CORRECTION_LEVEL,W=M.test(this.darkColor)?this.darkColor:void 0,ie=M.test(this.lightColor)?this.lightColor:void 0;(0,e.X6Q)()&&(!W&&this.darkColor&&console.error("[ng-qrcode] darkColor set to invalid value, must be RGBA hex color string, eg: #3050A1FF"),!ie&&this.lightColor&&console.error("[ng-qrcode] lightColor set to invalid value, must be RGBA hex color string, eg: #3050A130")),yield C.toCanvas(w,this.value,{version:this.version,errorCorrectionLevel:j,width:this.width,margin:this.margin,color:{dark:W,light:ie}});const ee=this.centerImageSrc,_e=N(this.centerImageWidth,A.DEFAULT_CENTER_IMAGE_SIZE),ce=N(this.centerImageHeight,A.DEFAULT_CENTER_IMAGE_SIZE);if(ee&&Z){this.centerImage||(this.centerImage=new Image(_e,ce)),ee!==(null===(P=this.centerImage)||void 0===P?void 0:P.src)&&(this.centerImage.src=ee),_e!==this.centerImage.width&&(this.centerImage.width=_e),ce!==this.centerImage.height&&(this.centerImage.height=ce);const re=this.centerImage;re.onload=()=>{Z.drawImage(re,w.width/2-_e/2,w.height/2-ce/2,_e,ce)}}})}}return A.DEFAULT_ERROR_CORRECTION_LEVEL="M",A.DEFAULT_CENTER_IMAGE_SIZE=40,A.\u0275fac=function(E){return new(E||A)(e.Y36(e.s_b))},A.\u0275dir=e.lG2({type:A,selectors:[["canvas","qrCode",""]],inputs:{value:["qrCode","value"],version:["qrCodeVersion","version"],errorCorrectionLevel:["qrCodeErrorCorrectionLevel","errorCorrectionLevel"],width:"width",height:"height",darkColor:"darkColor",lightColor:"lightColor",centerImageSrc:["qrCodeCenterImageSrc","centerImageSrc"],centerImageWidth:["qrCodeCenterImageWidth","centerImageWidth"],centerImageHeight:["qrCodeCenterImageHeight","centerImageHeight"],margin:["qrCodeMargin","margin"]},features:[e.TTD]}),A})();function N(A,O){return void 0===A||""===A?O:"string"==typeof A?parseInt(A,10):A}let s=(()=>{class A{}return A.\u0275fac=function(E){return new(E||A)},A.\u0275cmp=e.Xpm({type:A,selectors:[["qr-code"]],inputs:{value:"value",size:"size",darkColor:"darkColor",lightColor:"lightColor",errorCorrectionLevel:"errorCorrectionLevel",centerImageSrc:"centerImageSrc",centerImageSize:"centerImageSize",margin:"margin"},decls:1,vars:1,consts:[[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","width","height","darkColor","lightColor",4,"ngIf"],[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","width","height","darkColor","lightColor"]],template:function(E,P){1&E&&e.YNc(0,o,1,10,"canvas",0),2&E&&e.Q6J("ngIf",P.value)},directives:[t.O5,l],encapsulation:2}),A})(),D=(()=>{class A{}return A.\u0275fac=function(E){return new(E||A)},A.\u0275mod=e.oAB({type:A}),A.\u0275inj=e.cJS({imports:[[t.ez]]}),A})()},4946:Ve=>{"use strict";Ve.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"}}')},5207:Ve=>{"use strict";Ve.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","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},1308:Ve=>{"use strict";Ve.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"}')},9799:Ve=>{"use strict";Ve.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"}}')},8597:Ve=>{"use strict";Ve.exports={i8:"6.5.4"}},2562:Ve=>{"use strict";Ve.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"}')}},Ve=>{Ve(Ve.s=8864)}]); \ No newline at end of file diff --git a/frontend/runtime.dae90b7a05c6a024.js b/frontend/runtime.4044bb587d7fc143.js similarity index 95% rename from frontend/runtime.dae90b7a05c6a024.js rename to frontend/runtime.4044bb587d7fc143.js index 8b570b50..0970c401 100644 --- a/frontend/runtime.dae90b7a05c6a024.js +++ b/frontend/runtime.4044bb587d7fc143.js @@ -1 +1 @@ -(()=>{"use strict";var e,v={},g={};function r(e){var n=g[e];if(void 0!==n)return n.exports;var t=g[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(n,t,f,o)=>{if(!t){var a=1/0;for(i=0;i=o)&&Object.keys(r.O).every(b=>r.O[b](t[u]))?t.splice(u--,1):(s=!1,o0&&e[i-1][2]>o;i--)e[i]=e[i-1];e[i]=[t,f,o]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{564:"d41ab2b8bdd42ac9",636:"f8c5bc0215761948",893:"355edadcb4ce94f4",924:"ff524ffae95c311b"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="RTLApp:";r.l=(t,f,o,i)=>{if(e[t])e[t].push(f);else{var a,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),d=0;d{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(_=>_(b)),m)return m(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)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(f,o)=>{var i=r.o(e,f)?e[f]:void 0;if(0!==i)if(i)o.push(i[2]);else if(666!=f){var a=new Promise((l,c)=>i=e[f]=[l,c]);o.push(i[2]=a);var s=r.p+r.u(f),u=new Error;r.l(s,l=>{if(r.o(e,f)&&(0!==(i=e[f])&&(e[f]=void 0),i)){var c=l&&("load"===l.type?"missing":l.type),p=l&&l.target&&l.target.src;u.message="Loading chunk "+f+" failed.\n("+c+": "+p+")",u.name="ChunkLoadError",u.type=c,u.request=p,i[1](u)}},"chunk-"+f,f)}else e[f]=0},r.O.j=f=>0===e[f];var n=(f,o)=>{var u,d,[i,a,s]=o,l=0;if(i.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(f&&f(o);l{"use strict";var e,v={},g={};function r(e){var n=g[e];if(void 0!==n)return n.exports;var t=g[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(n,t,f,o)=>{if(!t){var a=1/0;for(i=0;i=o)&&Object.keys(r.O).every(b=>r.O[b](t[u]))?t.splice(u--,1):(s=!1,o0&&e[i-1][2]>o;i--)e[i]=e[i-1];e[i]=[t,f,o]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{564:"b12bb2ed125c558f",636:"b549737f890c9793",893:"355edadcb4ce94f4",924:"ff524ffae95c311b"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="RTLApp:";r.l=(t,f,o,i)=>{if(e[t])e[t].push(f);else{var a,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),d=0;d{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(_=>_(b)),m)return m(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)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(f,o)=>{var i=r.o(e,f)?e[f]:void 0;if(0!==i)if(i)o.push(i[2]);else if(666!=f){var a=new Promise((l,c)=>i=e[f]=[l,c]);o.push(i[2]=a);var s=r.p+r.u(f),u=new Error;r.l(s,l=>{if(r.o(e,f)&&(0!==(i=e[f])&&(e[f]=void 0),i)){var c=l&&("load"===l.type?"missing":l.type),p=l&&l.target&&l.target.src;u.message="Loading chunk "+f+" failed.\n("+c+": "+p+")",u.name="ChunkLoadError",u.type=c,u.request=p,i[1](u)}},"chunk-"+f,f)}else e[f]=0},r.O.j=f=>0===e[f];var n=(f,o)=>{var u,d,[i,a,s]=o,l=0;if(i.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(f&&f(o);l { logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Channels', msg: 'Getting Paginated List Forwards..' }); options = common.getOptions(req); if (options.error) { return res.status(options.statusCode).json({ message: options.message, error: options.error }); } - let queryStr = ''; - if (req.query && Object.keys(req.query).length > 0) { - queryStr = req.query.status ? '&status=' + req.query.status : ''; - queryStr = req.query.maxLen ? (queryStr + '&maxLen=' + req.query.maxLen) : ''; - queryStr = req.query.offset ? (queryStr + '&offset=' + req.query.offset) : ''; - queryStr = req.query.reverse ? (queryStr + '&reverse=' + req.query.reverse) : ''; - queryStr = queryStr.replace('&', '?'); - } + const { status, maxLen, offset } = req.query; + let queryStr = '?status=' + (status ? status : 'settled'); + queryStr = queryStr + '&maxLen=' + (maxLen ? maxLen : '10'); + queryStr = queryStr + '&offset=' + (offset ? offset : '0'); options.url = req.session.selectedNode.ln_server_url + '/v1/channel/listForwardsPaginated' + queryStr; logger.log({ selectedNode: req.session.selectedNode, level: 'DEBUG', fileName: 'Channels', msg: 'Paginated Forwarding History url' + options.url }); request.get(options).then((body) => { diff --git a/src/app/cln/routing/failed-transactions/failed-transactions.component.ts b/src/app/cln/routing/failed-transactions/failed-transactions.component.ts index 73f6ee94..f0f45659 100644 --- a/src/app/cln/routing/failed-transactions/failed-transactions.component.ts +++ b/src/app/cln/routing/failed-transactions/failed-transactions.component.ts @@ -37,8 +37,7 @@ export class CLNFailedTransactionsComponent implements OnInit, AfterViewInit, On public failedForwardingEvents: any; public flgSticky = false; public selFilter = ''; - private firstOffset = -1; - private lastOffset = -1; + private indexOffset = -1; public totalFailedTransactions = 0; public pageSize = PAGE_SIZE; public pageSizeOptions = PAGE_SIZE_OPTIONS; @@ -65,7 +64,7 @@ export class CLNFailedTransactionsComponent implements OnInit, AfterViewInit, On ngOnInit() { this.router.routeReuseStrategy.shouldReuseRoute = () => false; this.router.onSameUrlNavigation = 'reload'; - this.store.dispatch(getForwardingHistory({ payload: { status: CLNForwardingEventsStatusEnum.FAILED, maxLen: this.pageSize, offset: 0, reverse: true } })); + this.store.dispatch(getForwardingHistory({ payload: { status: CLNForwardingEventsStatusEnum.FAILED, maxLen: this.pageSize, offset: 0 } })); this.store.select(failedForwardingHistory).pipe(takeUntil(this.unSubs[0])). subscribe((ffhSeletor: { failedForwardingHistory: ListForwards, apiCallStatus: ApiCallStatusPayload }) => { this.errorMessage = ''; @@ -73,9 +72,8 @@ export class CLNFailedTransactionsComponent implements OnInit, AfterViewInit, On if (this.apiCallStatus.status === APICallStatusEnum.ERROR) { this.errorMessage = (typeof (this.apiCallStatus.message) === 'object') ? JSON.stringify(this.apiCallStatus.message) : this.apiCallStatus.message; } - this.totalFailedTransactions = ffhSeletor.failedForwardingHistory.totalEvents; - this.firstOffset = ffhSeletor.failedForwardingHistory.firstIndexOffset; - this.lastOffset = ffhSeletor.failedForwardingHistory.lastIndexOffset; + this.totalFailedTransactions = ffhSeletor.failedForwardingHistory.totalForwards; + this.indexOffset = ffhSeletor.failedForwardingHistory.offset; this.failedEvents = ffhSeletor.failedForwardingHistory.listForwards || []; if (this.failedEvents.length > 0 && this.sort && this.paginator) { this.loadFailedEventsTable(this.failedEvents); @@ -142,23 +140,13 @@ export class CLNFailedTransactionsComponent implements OnInit, AfterViewInit, On } onPageChange(event: PageEvent) { - let reverse = true; - let index_offset = this.lastOffset; - this.pageSize = event.pageSize; - if (event.pageIndex === 0) { - reverse = true; - index_offset = 0; - } else if (event.pageIndex < event.previousPageIndex) { - reverse = false; - index_offset = this.lastOffset; - } else if (event.pageIndex > event.previousPageIndex && (event.length > ((event.pageIndex + 1) * event.pageSize))) { - reverse = true; - index_offset = this.firstOffset; - } else if (event.length <= ((event.pageIndex + 1) * event.pageSize)) { - reverse = false; - index_offset = 0; + if (this.pageSize !== event.pageSize) { + this.pageSize = event.pageSize; + this.indexOffset = 0; + } else { + this.indexOffset = event.pageIndex * this.pageSize; } - this.store.dispatch(getForwardingHistory({ payload: { status: CLNForwardingEventsStatusEnum.FAILED, maxLen: event.pageSize, offset: index_offset, reverse: reverse } })); + this.store.dispatch(getForwardingHistory({ payload: { status: CLNForwardingEventsStatusEnum.FAILED, maxLen: this.pageSize, offset: this.indexOffset } })); } ngOnDestroy() { diff --git a/src/app/cln/routing/forwarding-history/forwarding-history.component.ts b/src/app/cln/routing/forwarding-history/forwarding-history.component.ts index 18ce3be0..e0b86e11 100644 --- a/src/app/cln/routing/forwarding-history/forwarding-history.component.ts +++ b/src/app/cln/routing/forwarding-history/forwarding-history.component.ts @@ -36,8 +36,7 @@ export class CLNForwardingHistoryComponent implements OnInit, OnChanges, AfterVi public displayedColumns: any[] = []; public forwardingHistoryEvents: any; public flgSticky = false; - private firstOffset = -1; - private lastOffset = -1; + private indexOffset = -1; public totalForwardedTransactions = 0; public pageSize = PAGE_SIZE; public pageSizeOptions = PAGE_SIZE_OPTIONS; @@ -71,9 +70,8 @@ export class CLNForwardingHistoryComponent implements OnInit, OnChanges, AfterVi this.errorMessage = (typeof (this.apiCallStatus.message) === 'object') ? JSON.stringify(this.apiCallStatus.message) : this.apiCallStatus.message; } if (this.eventsData.length <= 0 && fhSeletor.forwardingHistory.listForwards) { - this.totalForwardedTransactions = fhSeletor.forwardingHistory.totalEvents; - this.firstOffset = fhSeletor.forwardingHistory.firstIndexOffset; - this.lastOffset = fhSeletor.forwardingHistory.lastIndexOffset; + this.totalForwardedTransactions = fhSeletor.forwardingHistory.totalForwards; + this.indexOffset = fhSeletor.forwardingHistory.offset; this.successfulEvents = fhSeletor.forwardingHistory.listForwards || []; if (this.successfulEvents.length > 0 && this.sort && this.paginator) { this.loadForwardingEventsTable(this.successfulEvents); @@ -154,23 +152,13 @@ export class CLNForwardingHistoryComponent implements OnInit, OnChanges, AfterVi } onPageChange(event: PageEvent) { - let reverse = true; - let index_offset = this.lastOffset; - this.pageSize = event.pageSize; - if (event.pageIndex === 0) { - reverse = true; - index_offset = 0; - } else if (event.pageIndex < event.previousPageIndex) { - reverse = false; - index_offset = this.lastOffset; - } else if (event.pageIndex > event.previousPageIndex && (event.length > ((event.pageIndex + 1) * event.pageSize))) { - reverse = true; - index_offset = this.firstOffset; - } else if (event.length <= ((event.pageIndex + 1) * event.pageSize)) { - reverse = false; - index_offset = 0; + if (this.pageSize !== event.pageSize) { + this.pageSize = event.pageSize; + this.indexOffset = 0; + } else { + this.indexOffset = event.pageIndex * this.pageSize; } - this.store.dispatch(getForwardingHistory({ payload: { status: CLNForwardingEventsStatusEnum.SETTLED, maxLen: event.pageSize, offset: index_offset, reverse: reverse } })); + this.store.dispatch(getForwardingHistory({ payload: { status: CLNForwardingEventsStatusEnum.SETTLED, maxLen: this.pageSize, offset: this.indexOffset } })); } ngOnDestroy() { diff --git a/src/app/cln/routing/local-failed-transactions/local-failed-transactions.component.ts b/src/app/cln/routing/local-failed-transactions/local-failed-transactions.component.ts index d20fd01a..fe6277aa 100644 --- a/src/app/cln/routing/local-failed-transactions/local-failed-transactions.component.ts +++ b/src/app/cln/routing/local-failed-transactions/local-failed-transactions.component.ts @@ -38,8 +38,7 @@ export class CLNLocalFailedTransactionsComponent implements OnInit, AfterViewIni public failedLocalForwardingEvents: any; public flgSticky = false; public selFilter = ''; - private firstOffset = -1; - private lastOffset = -1; + private indexOffset = -1; public totalLocalFailedTransactions = 0; public pageSize = PAGE_SIZE; public pageSizeOptions = PAGE_SIZE_OPTIONS; @@ -66,7 +65,7 @@ export class CLNLocalFailedTransactionsComponent implements OnInit, AfterViewIni ngOnInit() { this.router.routeReuseStrategy.shouldReuseRoute = () => false; this.router.onSameUrlNavigation = 'reload'; - this.store.dispatch(getForwardingHistory({ payload: { status: CLNForwardingEventsStatusEnum.LOCAL_FAILED, maxLen: this.pageSize, offset: 0, reverse: true } })); + this.store.dispatch(getForwardingHistory({ payload: { status: CLNForwardingEventsStatusEnum.LOCAL_FAILED, maxLen: this.pageSize, offset: 0 } })); this.store.select(localFailedForwardingHistory).pipe(takeUntil(this.unSubs[0])). subscribe((lffhSeletor: { localFailedForwardingHistory: ListForwards, apiCallStatus: ApiCallStatusPayload }) => { this.errorMessage = ''; @@ -74,9 +73,8 @@ export class CLNLocalFailedTransactionsComponent implements OnInit, AfterViewIni if (this.apiCallStatus.status === APICallStatusEnum.ERROR) { this.errorMessage = (typeof (this.apiCallStatus.message) === 'object') ? JSON.stringify(this.apiCallStatus.message) : this.apiCallStatus.message; } - this.totalLocalFailedTransactions = lffhSeletor.localFailedForwardingHistory.totalEvents; - this.firstOffset = lffhSeletor.localFailedForwardingHistory.firstIndexOffset; - this.lastOffset = lffhSeletor.localFailedForwardingHistory.lastIndexOffset; + this.totalLocalFailedTransactions = lffhSeletor.localFailedForwardingHistory.totalForwards; + this.indexOffset = lffhSeletor.localFailedForwardingHistory.offset; this.failedLocalEvents = lffhSeletor.localFailedForwardingHistory.listForwards || []; if (this.failedLocalEvents.length > 0 && this.sort && this.paginator) { this.loadLocalfailedLocalEventsTable(this.failedLocalEvents); @@ -143,24 +141,13 @@ export class CLNLocalFailedTransactionsComponent implements OnInit, AfterViewIni } onPageChange(event: PageEvent) { - let reverse = true; - let index_offset = this.lastOffset; - this.pageSize = event.pageSize; - if (event.pageIndex === 0) { - reverse = true; - index_offset = 0; - } else if (event.pageIndex < event.previousPageIndex) { - reverse = true; - index_offset = this.lastOffset; - } else if (event.pageIndex > event.previousPageIndex) { - reverse = true; - if (event.length <= (event.pageIndex + 1) * event.pageSize) { - index_offset = this.totalLocalFailedTransactions - (event.pageIndex * event.pageSize); - } else { - index_offset = this.firstOffset; - } + if (this.pageSize !== event.pageSize) { + this.pageSize = event.pageSize; + this.indexOffset = 0; + } else { + this.indexOffset = event.pageIndex * this.pageSize; } - this.store.dispatch(getForwardingHistory({ payload: { status: CLNForwardingEventsStatusEnum.LOCAL_FAILED, maxLen: event.pageSize, offset: index_offset, reverse: reverse } })); + this.store.dispatch(getForwardingHistory({ payload: { status: CLNForwardingEventsStatusEnum.LOCAL_FAILED, maxLen: this.pageSize, offset: this.indexOffset } })); } ngOnDestroy() { diff --git a/src/app/cln/store/cln.effects.ts b/src/app/cln/store/cln.effects.ts index 305b8162..32df73bb 100644 --- a/src/app/cln/store/cln.effects.ts +++ b/src/app/cln/store/cln.effects.ts @@ -326,7 +326,7 @@ export class CLNEffects implements OnDestroy { map((channels: Channel[]) => { this.logger.info(channels); this.store.dispatch(updateCLAPICallStatus({ payload: { action: 'FetchChannels', status: APICallStatusEnum.COMPLETED } })); - this.store.dispatch(getForwardingHistory({ payload: { status: CLNForwardingEventsStatusEnum.SETTLED, maxLen: 10, offset: 0, reverse: true } })); + this.store.dispatch(getForwardingHistory({ payload: { status: CLNForwardingEventsStatusEnum.SETTLED, maxLen: 10, offset: 0 } })); const sortedChannels = { activeChannels: [], pendingChannels: [], inactiveChannels: [] }; channels.forEach((channel) => { if (channel.state === 'CHANNELD_NORMAL') { @@ -658,16 +658,12 @@ export class CLNEffects implements OnDestroy { const status = (action.payload.status) ? action.payload.status : 'settled'; const maxLen = (action.payload.maxLen) ? action.payload.maxLen : 100; const offset = (action.payload.offset) ? action.payload.offset : 0; - const reverse = (action.payload.reverse) ? action.payload.reverse : false; const statusInitial = status.charAt(0).toUpperCase(); this.store.dispatch(updateCLAPICallStatus({ payload: { action: 'FetchForwardingHistory' + statusInitial, status: APICallStatusEnum.INITIATED } })); - return this.httpClient.get(this.CHILD_API_URL + environment.CHANNELS_API + '/listForwardsPaginated?status=' + status + '&maxLen=' + maxLen + '&offset=' + offset + '&reverse=' + reverse).pipe( + return this.httpClient.get(this.CHILD_API_URL + environment.CHANNELS_API + '/listForwardsPaginated?status=' + status + '&maxLen=' + maxLen + '&offset=' + offset).pipe( map((fhRes: ListForwards) => { this.logger.info(fhRes); this.store.dispatch(updateCLAPICallStatus({ payload: { action: 'FetchForwardingHistory' + statusInitial, status: APICallStatusEnum.COMPLETED } })); - if (reverse && offset === 0) { - fhRes['totalEvents'] = +fhRes.lastIndexOffset | 0; - } return { type: CLNActions.SET_FORWARDING_HISTORY_CLN, payload: { status: status, response: fhRes } diff --git a/src/app/cln/store/cln.reducers.ts b/src/app/cln/store/cln.reducers.ts index a01e0c7e..c2a3aee2 100644 --- a/src/app/cln/store/cln.reducers.ts +++ b/src/app/cln/store/cln.reducers.ts @@ -113,28 +113,19 @@ export const CLNReducer = createReducer(initCLNState, payload.response.listForwards = forwardsWithAlias; switch (payload.status) { case CLNForwardingEventsStatusEnum.SETTLED: - if (!payload.response.totalEvents) { - payload.response.totalEvents = state.forwardingHistory.totalEvents | 0; - } const modifiedFeeWithTxCount = state.fees; - modifiedFeeWithTxCount.totalTxCount = payload.response.totalEvents | 0; + modifiedFeeWithTxCount.totalTxCount = payload.response.totalForwards | 0; return { ...state, fees: modifiedFeeWithTxCount, forwardingHistory: payload.response }; case CLNForwardingEventsStatusEnum.FAILED: - if (!payload.response.totalEvents) { - payload.response.totalEvents = state.failedForwardingHistory.totalEvents; - } return { ...state, failedForwardingHistory: payload.response }; case CLNForwardingEventsStatusEnum.LOCAL_FAILED: - if (!payload.response.totalEvents) { - payload.response.totalEvents = state.localFailedForwardingHistory.totalEvents; - } return { ...state, localFailedForwardingHistory: payload.response diff --git a/src/app/shared/models/clnModels.ts b/src/app/shared/models/clnModels.ts index 3e31db5a..c1d7e571 100644 --- a/src/app/shared/models/clnModels.ts +++ b/src/app/shared/models/clnModels.ts @@ -284,9 +284,9 @@ export interface LocalFailedEvent { } export interface ListForwards { - firstIndexOffset?: number; - lastIndexOffset?: number; - totalEvents?: number; + offset?: number; + maxLen?: number; + totalForwards?: number; listForwards?: ForwardingEvent[] | LocalFailedEvent[]; } @@ -498,5 +498,4 @@ export interface FetchListForwards { status?: string; maxLen?: number; offset?: number; - reverse?: boolean; }